!function(e,n){"object"==typeof exports&&"undefined"!=typeof module?module.exports=n():"function"==typeof define&&define.amd?define(n):(e="undefined"!=typeof globalThis?globalThis:e||self).flatpickr=n()}(this,(function(){"use strict";var e=function(){return(e=Object.assign||function(e){for(var n,t=1,a=arguments.length;t<a;t++)for(var i in n=arguments[t])Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i]);return e}).apply(this,arguments)};function n(){for(var e=0,n=0,t=arguments.length;n<t;n++)e+=arguments[n].length;var a=Array(e),i=0;for(n=0;n<t;n++)for(var o=arguments[n],r=0,l=o.length;r<l;r++,i++)a[i]=o[r];return a}var t=["onChange","onClose","onDayCreate","onDestroy","onKeyDown","onMonthChange","onOpen","onParseConfig","onReady","onValueUpdate","onYearChange","onPreCalendarPosition"],a={_disable:[],allowInput:!1,allowInvalidPreload:!1,altFormat:"F j, Y",altInput:!1,altInputClass:"form-control input",animate:"object"==typeof window&&-1===window.navigator.userAgent.indexOf("MSIE"),ariaDateFormat:"F j, Y",autoFillDefaultTime:!0,clickOpens:!0,closeOnSelect:!0,conjunction:", ",dateFormat:"Y-m-d",defaultHour:12,defaultMinute:0,defaultSeconds:0,disable:[],disableMobile:!1,enableSeconds:!1,enableTime:!1,errorHandler:function(e){return"undefined"!=typeof console&&console.warn(e)},getWeek:function(e){var n=new Date(e.getTime());n.setHours(0,0,0,0),n.setDate(n.getDate()+3-(n.getDay()+6)%7);var t=new Date(n.getFullYear(),0,4);return 1+Math.round(((n.getTime()-t.getTime())/864e5-3+(t.getDay()+6)%7)/7)},hourIncrement:1,ignoredFocusElements:[],inline:!1,locale:"default",minuteIncrement:5,mode:"single",monthSelectorType:"dropdown",nextArrow:"<svg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' viewBox='0 0 17 17'><g></g><path d='M13.207 8.472l-7.854 7.854-0.707-0.707 7.146-7.146-7.146-7.148 0.707-0.707 7.854 7.854z' /></svg>",noCalendar:!1,now:new Date,onChange:[],onClose:[],onDayCreate:[],onDestroy:[],onKeyDown:[],onMonthChange:[],onOpen:[],onParseConfig:[],onReady:[],onValueUpdate:[],onYearChange:[],onPreCalendarPosition:[],plugins:[],position:"auto",positionElement:void 0,prevArrow:"<svg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' viewBox='0 0 17 17'><g></g><path d='M5.207 8.471l7.146 7.147-0.707 0.707-7.853-7.854 7.854-7.853 0.707 0.707-7.147 7.146z' /></svg>",shorthandCurrentMonth:!1,showMonths:1,static:!1,time_24hr:!1,weekNumbers:!1,wrap:!1},i={weekdays:{shorthand:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],longhand:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},months:{shorthand:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],longhand:["January","February","March","April","May","June","July","August","September","October","November","December"]},daysInMonth:[31,28,31,30,31,30,31,31,30,31,30,31],firstDayOfWeek:0,ordinal:function(e){var n=e%100;if(n>3&&n<21)return"th";switch(n%10){case 1:return"st";case 2:return"nd";case 3:return"rd";default:return"th"}},rangeSeparator:" to ",weekAbbreviation:"Wk",scrollTitle:"Scroll to increment",toggleTitle:"Click to toggle",amPM:["AM","PM"],yearAriaLabel:"Year",monthAriaLabel:"Month",hourAriaLabel:"Hour",minuteAriaLabel:"Minute",time_24hr:!1},o=function(e,n){return void 0===n&&(n=2),("000"+e).slice(-1*n)},r=function(e){return!0===e?1:0};function l(e,n){var t;return function(){var a=this,i=arguments;clearTimeout(t),t=setTimeout((function(){return e.apply(a,i)}),n)}}var c=function(e){return e instanceof Array?e:[e]};function s(e,n,t){if(!0===t)return e.classList.add(n);e.classList.remove(n)}function d(e,n,t){var a=window.document.createElement(e);return n=n||"",t=t||"",a.className=n,void 0!==t&&(a.textContent=t),a}function u(e){for(;e.firstChild;)e.removeChild(e.firstChild)}function f(e,n){return n(e)?e:e.parentNode?f(e.parentNode,n):void 0}function m(e,n){var t=d("div","numInputWrapper"),a=d("input","numInput "+e),i=d("span","arrowUp"),o=d("span","arrowDown");if(-1===navigator.userAgent.indexOf("MSIE 9.0")?a.type="number":(a.type="text",a.pattern="\\d*"),void 0!==n)for(var r in n)a.setAttribute(r,n[r]);return t.appendChild(a),t.appendChild(i),t.appendChild(o),t}function g(e){try{return"function"==typeof e.composedPath?e.composedPath()[0]:e.target}catch(n){return e.target}}var p=function(){},h=function(e,n,t){return t.months[n?"shorthand":"longhand"][e]},v={D:p,F:function(e,n,t){e.setMonth(t.months.longhand.indexOf(n))},G:function(e,n){e.setHours((e.getHours()>=12?12:0)+parseFloat(n))},H:function(e,n){e.setHours(parseFloat(n))},J:function(e,n){e.setDate(parseFloat(n))},K:function(e,n,t){e.setHours(e.getHours()%12+12*r(new RegExp(t.amPM[1],"i").test(n)))},M:function(e,n,t){e.setMonth(t.months.shorthand.indexOf(n))},S:function(e,n){e.setSeconds(parseFloat(n))},U:function(e,n){return new Date(1e3*parseFloat(n))},W:function(e,n,t){var a=parseInt(n),i=new Date(e.getFullYear(),0,2+7*(a-1),0,0,0,0);return i.setDate(i.getDate()-i.getDay()+t.firstDayOfWeek),i},Y:function(e,n){e.setFullYear(parseFloat(n))},Z:function(e,n){return new Date(n)},d:function(e,n){e.setDate(parseFloat(n))},h:function(e,n){e.setHours((e.getHours()>=12?12:0)+parseFloat(n))},i:function(e,n){e.setMinutes(parseFloat(n))},j:function(e,n){e.setDate(parseFloat(n))},l:p,m:function(e,n){e.setMonth(parseFloat(n)-1)},n:function(e,n){e.setMonth(parseFloat(n)-1)},s:function(e,n){e.setSeconds(parseFloat(n))},u:function(e,n){return new Date(parseFloat(n))},w:p,y:function(e,n){e.setFullYear(2e3+parseFloat(n))}},D={D:"",F:"",G:"(\\d\\d|\\d)",H:"(\\d\\d|\\d)",J:"(\\d\\d|\\d)\\w+",K:"",M:"",S:"(\\d\\d|\\d)",U:"(.+)",W:"(\\d\\d|\\d)",Y:"(\\d{4})",Z:"(.+)",d:"(\\d\\d|\\d)",h:"(\\d\\d|\\d)",i:"(\\d\\d|\\d)",j:"(\\d\\d|\\d)",l:"",m:"(\\d\\d|\\d)",n:"(\\d\\d|\\d)",s:"(\\d\\d|\\d)",u:"(.+)",w:"(\\d\\d|\\d)",y:"(\\d{2})"},w={Z:function(e){return e.toISOString()},D:function(e,n,t){return n.weekdays.shorthand[w.w(e,n,t)]},F:function(e,n,t){return h(w.n(e,n,t)-1,!1,n)},G:function(e,n,t){return o(w.h(e,n,t))},H:function(e){return o(e.getHours())},J:function(e,n){return void 0!==n.ordinal?e.getDate()+n.ordinal(e.getDate()):e.getDate()},K:function(e,n){return n.amPM[r(e.getHours()>11)]},M:function(e,n){return h(e.getMonth(),!0,n)},S:function(e){return o(e.getSeconds())},U:function(e){return e.getTime()/1e3},W:function(e,n,t){return t.getWeek(e)},Y:function(e){return o(e.getFullYear(),4)},d:function(e){return o(e.getDate())},h:function(e){return e.getHours()%12?e.getHours()%12:12},i:function(e){return o(e.getMinutes())},j:function(e){return e.getDate()},l:function(e,n){return n.weekdays.longhand[e.getDay()]},m:function(e){return o(e.getMonth()+1)},n:function(e){return e.getMonth()+1},s:function(e){return e.getSeconds()},u:function(e){return e.getTime()},w:function(e){return e.getDay()},y:function(e){return String(e.getFullYear()).substring(2)}},b=function(e){var n=e.config,t=void 0===n?a:n,o=e.l10n,r=void 0===o?i:o,l=e.isMobile,c=void 0!==l&&l;return function(e,n,a){var i=a||r;return void 0===t.formatDate||c?n.split("").map((function(n,a,o){return w[n]&&"\\"!==o[a-1]?w[n](e,i,t):"\\"!==n?n:""})).join(""):t.formatDate(e,n,i)}},C=function(e){var n=e.config,t=void 0===n?a:n,o=e.l10n,r=void 0===o?i:o;return function(e,n,i,o){if(0===e||e){var l,c=o||r,s=e;if(e instanceof Date)l=new Date(e.getTime());else if("string"!=typeof e&&void 0!==e.toFixed)l=new Date(e);else if("string"==typeof e){var d=n||(t||a).dateFormat,u=String(e).trim();if("today"===u)l=new Date,i=!0;else if(t&&t.parseDate)l=t.parseDate(e,d);else if(/Z$/.test(u)||/GMT$/.test(u))l=new Date(e);else{for(var f=void 0,m=[],g=0,p=0,h="";g<d.length;g++){var w=d[g],b="\\"===w,C="\\"===d[g-1]||b;if(D[w]&&!C){h+=D[w];var M=new RegExp(h).exec(e);M&&(f=!0)&&m["Y"!==w?"push":"unshift"]({fn:v[w],val:M[++p]})}else b||(h+=".")}l=t&&t.noCalendar?new Date((new Date).setHours(0,0,0,0)):new Date((new Date).getFullYear(),0,1,0,0,0,0),m.forEach((function(e){var n=e.fn,t=e.val;return l=n(l,t,c)||l})),l=f?l:void 0}}if(l instanceof Date&&!isNaN(l.getTime()))return!0===i&&l.setHours(0,0,0,0),l;t.errorHandler(new Error("Invalid date provided: "+s))}}};function M(e,n,t){return void 0===t&&(t=!0),!1!==t?new Date(e.getTime()).setHours(0,0,0,0)-new Date(n.getTime()).setHours(0,0,0,0):e.getTime()-n.getTime()}var y=function(e,n,t){return 3600*e+60*n+t};function x(e){var n=e.defaultHour,t=e.defaultMinute,a=e.defaultSeconds;if(void 0!==e.minDate){var i=e.minDate.getHours(),o=e.minDate.getMinutes(),r=e.minDate.getSeconds();n<i&&(n=i),n===i&&t<o&&(t=o),n===i&&t===o&&a<r&&(a=e.minDate.getSeconds())}if(void 0!==e.maxDate){var l=e.maxDate.getHours(),c=e.maxDate.getMinutes();(n=Math.min(n,l))===l&&(t=Math.min(c,t)),n===l&&t===c&&(a=e.maxDate.getSeconds())}return{hours:n,minutes:t,seconds:a}}function E(p,v){var w={config:e(e({},a),T.defaultConfig),l10n:i};function E(){var e;return(null===(e=w.calendarContainer)||void 0===e?void 0:e.getRootNode()).activeElement||document.activeElement}function k(e){return e.bind(w)}function I(){var e=w.config;!1===e.weekNumbers&&1===e.showMonths||!0!==e.noCalendar&&window.requestAnimationFrame((function(){if(void 0!==w.calendarContainer&&(w.calendarContainer.style.visibility="hidden",w.calendarContainer.style.display="block"),void 0!==w.daysContainer){var n=(w.days.offsetWidth+1)*e.showMonths;w.daysContainer.style.width=n+"px",w.calendarContainer.style.width=n+(void 0!==w.weekWrapper?w.weekWrapper.offsetWidth:0)+"px",w.calendarContainer.style.removeProperty("visibility"),w.calendarContainer.style.removeProperty("display")}}))}function S(e){if(0===w.selectedDates.length){var n=void 0===w.config.minDate||M(new Date,w.config.minDate)>=0?new Date:new Date(w.config.minDate.getTime()),t=x(w.config);n.setHours(t.hours,t.minutes,t.seconds,n.getMilliseconds()),w.selectedDates=[n],w.latestSelectedDateObj=n}void 0!==e&&"blur"!==e.type&&function(e){e.preventDefault();var n="keydown"===e.type,t=g(e),a=t;void 0!==w.amPM&&t===w.amPM&&(w.amPM.textContent=w.l10n.amPM[r(w.amPM.textContent===w.l10n.amPM[0])]);var i=parseFloat(a.getAttribute("min")),l=parseFloat(a.getAttribute("max")),c=parseFloat(a.getAttribute("step")),s=parseInt(a.value,10),d=s+c*(e.delta||(n?38===e.which?1:-1:0));if(void 0!==a.value&&2===a.value.length){var u=a===w.hourElement,f=a===w.minuteElement;d<i?(d=l+d+r(!u)+(r(u)&&r(!w.amPM)),f&&H(void 0,-1,w.hourElement)):d>l&&(d=a===w.hourElement?d-l-r(!w.amPM):i,f&&H(void 0,1,w.hourElement)),w.amPM&&u&&(1===c?d+s===23:Math.abs(d-s)>c)&&(w.amPM.textContent=w.l10n.amPM[r(w.amPM.textContent===w.l10n.amPM[0])]),a.value=o(d)}}(e);var a=w._input.value;_(),Me(),w._input.value!==a&&w._debouncedChange()}function _(){if(void 0!==w.hourElement&&void 0!==w.minuteElement){var e,n,t=(parseInt(w.hourElement.value.slice(-2),10)||0)%24,a=(parseInt(w.minuteElement.value,10)||0)%60,i=void 0!==w.secondElement?(parseInt(w.secondElement.value,10)||0)%60:0;void 0!==w.amPM&&(e=t,n=w.amPM.textContent,t=e%12+12*r(n===w.l10n.amPM[1]));var o=void 0!==w.config.minTime||w.config.minDate&&w.minDateHasTime&&w.latestSelectedDateObj&&0===M(w.latestSelectedDateObj,w.config.minDate,!0),l=void 0!==w.config.maxTime||w.config.maxDate&&w.maxDateHasTime&&w.latestSelectedDateObj&&0===M(w.latestSelectedDateObj,w.config.maxDate,!0);if(void 0!==w.config.maxTime&&void 0!==w.config.minTime&&w.config.minTime>w.config.maxTime){var c=y(w.config.minTime.getHours(),w.config.minTime.getMinutes(),w.config.minTime.getSeconds()),s=y(w.config.maxTime.getHours(),w.config.maxTime.getMinutes(),w.config.maxTime.getSeconds()),d=y(t,a,i);if(d>s&&d<c){var u=function(e){var n=Math.floor(e/3600),t=(e-3600*n)/60;return[n,t,e-3600*n-60*t]}(c);t=u[0],a=u[1],i=u[2]}}else{if(l){var f=void 0!==w.config.maxTime?w.config.maxTime:w.config.maxDate;(t=Math.min(t,f.getHours()))===f.getHours()&&(a=Math.min(a,f.getMinutes())),a===f.getMinutes()&&(i=Math.min(i,f.getSeconds()))}if(o){var m=void 0!==w.config.minTime?w.config.minTime:w.config.minDate;(t=Math.max(t,m.getHours()))===m.getHours()&&a<m.getMinutes()&&(a=m.getMinutes()),a===m.getMinutes()&&(i=Math.max(i,m.getSeconds()))}}F(t,a,i)}}function O(e){var n=e||w.latestSelectedDateObj;n&&n instanceof Date&&F(n.getHours(),n.getMinutes(),n.getSeconds())}function F(e,n,t){void 0!==w.latestSelectedDateObj&&w.latestSelectedDateObj.setHours(e%24,n,t||0,0),w.hourElement&&w.minuteElement&&!w.isMobile&&(w.hourElement.value=o(w.config.time_24hr?e:(12+e)%12+12*r(e%12==0)),w.minuteElement.value=o(n),void 0!==w.amPM&&(w.amPM.textContent=w.l10n.amPM[r(e>=12)]),void 0!==w.secondElement&&(w.secondElement.value=o(t)))}function A(e){var n=g(e),t=parseInt(n.value)+(e.delta||0);(t/1e3>1||"Enter"===e.key&&!/[^\d]/.test(t.toString()))&&X(t)}function N(e,n,t,a){return n instanceof Array?n.forEach((function(n){return N(e,n,t,a)})):e instanceof Array?e.forEach((function(e){return N(e,n,t,a)})):(e.addEventListener(n,t,a),void w._handlers.push({remove:function(){return e.removeEventListener(n,t,a)}}))}function P(){ve("onChange")}function Y(e,n){var t=void 0!==e?w.parseDate(e):w.latestSelectedDateObj||(w.config.minDate&&w.config.minDate>w.now?w.config.minDate:w.config.maxDate&&w.config.maxDate<w.now?w.config.maxDate:w.now),a=w.currentYear,i=w.currentMonth;try{void 0!==t&&(w.currentYear=t.getFullYear(),w.currentMonth=t.getMonth())}catch(e){e.message="Invalid date supplied: "+t,w.config.errorHandler(e)}n&&w.currentYear!==a&&(ve("onYearChange"),U()),!n||w.currentYear===a&&w.currentMonth===i||ve("onMonthChange"),w.redraw()}function j(e){var n=g(e);~n.className.indexOf("arrow")&&H(e,n.classList.contains("arrowUp")?1:-1)}function H(e,n,t){var a=e&&g(e),i=t||a&&a.parentNode&&a.parentNode.firstChild,o=De("increment");o.delta=n,i&&i.dispatchEvent(o)}function L(e,n,t,a){var i=ee(n,!0),o=d("span",e,n.getDate().toString());return o.dateObj=n,o.$i=a,o.setAttribute("aria-label",w.formatDate(n,w.config.ariaDateFormat)),-1===e.indexOf("hidden")&&0===M(n,w.now)&&(w.todayDateElem=o,o.classList.add("today"),o.setAttribute("aria-current","date")),i?(o.tabIndex=-1,we(n)&&(o.classList.add("selected"),w.selectedDateElem=o,"range"===w.config.mode&&(s(o,"startRange",w.selectedDates[0]&&0===M(n,w.selectedDates[0],!0)),s(o,"endRange",w.selectedDates[1]&&0===M(n,w.selectedDates[1],!0)),"nextMonthDay"===e&&o.classList.add("inRange")))):o.classList.add("flatpickr-disabled"),"range"===w.config.mode&&function(e){return!("range"!==w.config.mode||w.selectedDates.length<2)&&M(e,w.selectedDates[0])>=0&&M(e,w.selectedDates[1])<=0}(n)&&!we(n)&&o.classList.add("inRange"),w.weekNumbers&&1===w.config.showMonths&&"prevMonthDay"!==e&&a%7==6&&w.weekNumbers.insertAdjacentHTML("beforeend","<span class='flatpickr-day'>"+w.config.getWeek(n)+"</span>"),ve("onDayCreate",o),o}function R(e){e.focus(),"range"===w.config.mode&&ie(e)}function W(e){for(var n=e>0?0:w.config.showMonths-1,t=e>0?w.config.showMonths:-1,a=n;a!=t;a+=e)for(var i=w.daysContainer.children[a],o=e>0?0:i.children.length-1,r=e>0?i.children.length:-1,l=o;l!=r;l+=e){var c=i.children[l];if(-1===c.className.indexOf("hidden")&&ee(c.dateObj))return c}}function B(e,n){var t=E(),a=ne(t||document.body),i=void 0!==e?e:a?t:void 0!==w.selectedDateElem&&ne(w.selectedDateElem)?w.selectedDateElem:void 0!==w.todayDateElem&&ne(w.todayDateElem)?w.todayDateElem:W(n>0?1:-1);void 0===i?w._input.focus():a?function(e,n){for(var t=-1===e.className.indexOf("Month")?e.dateObj.getMonth():w.currentMonth,a=n>0?w.config.showMonths:-1,i=n>0?1:-1,o=t-w.currentMonth;o!=a;o+=i)for(var r=w.daysContainer.children[o],l=t-w.currentMonth===o?e.$i+n:n<0?r.children.length-1:0,c=r.children.length,s=l;s>=0&&s<c&&s!=(n>0?c:-1);s+=i){var d=r.children[s];if(-1===d.className.indexOf("hidden")&&ee(d.dateObj)&&Math.abs(e.$i-s)>=Math.abs(n))return R(d)}w.changeMonth(i),B(W(i),0)}(i,n):R(i)}function J(e,n){for(var t=(new Date(e,n,1).getDay()-w.l10n.firstDayOfWeek+7)%7,a=w.utils.getDaysInMonth((n-1+12)%12,e),i=w.utils.getDaysInMonth(n,e),o=window.document.createDocumentFragment(),r=w.config.showMonths>1,l=r?"prevMonthDay hidden":"prevMonthDay",c=r?"nextMonthDay hidden":"nextMonthDay",s=a+1-t,u=0;s<=a;s++,u++)o.appendChild(L("flatpickr-day "+l,new Date(e,n-1,s),0,u));for(s=1;s<=i;s++,u++)o.appendChild(L("flatpickr-day",new Date(e,n,s),0,u));for(var f=i+1;f<=42-t&&(1===w.config.showMonths||u%7!=0);f++,u++)o.appendChild(L("flatpickr-day "+c,new Date(e,n+1,f%i),0,u));var m=d("div","dayContainer");return m.appendChild(o),m}function K(){if(void 0!==w.daysContainer){u(w.daysContainer),w.weekNumbers&&u(w.weekNumbers);for(var e=document.createDocumentFragment(),n=0;n<w.config.showMonths;n++){var t=new Date(w.currentYear,w.currentMonth,1);t.setMonth(w.currentMonth+n),e.appendChild(J(t.getFullYear(),t.getMonth()))}w.daysContainer.appendChild(e),w.days=w.daysContainer.firstChild,"range"===w.config.mode&&1===w.selectedDates.length&&ie()}}function U(){if(!(w.config.showMonths>1||"dropdown"!==w.config.monthSelectorType)){var e=function(e){return!(void 0!==w.config.minDate&&w.currentYear===w.config.minDate.getFullYear()&&e<w.config.minDate.getMonth()||void 0!==w.config.maxDate&&w.currentYear===w.config.maxDate.getFullYear()&&e>w.config.maxDate.getMonth())};w.monthsDropdownContainer.tabIndex=-1,w.monthsDropdownContainer.innerHTML="";for(var n=0;n<12;n++)if(e(n)){var t=d("option","flatpickr-monthDropdown-month");t.value=new Date(w.currentYear,n).getMonth().toString(),t.textContent=h(n,w.config.shorthandCurrentMonth,w.l10n),t.tabIndex=-1,w.currentMonth===n&&(t.selected=!0),w.monthsDropdownContainer.appendChild(t)}}}function $(){var e,n=d("div","flatpickr-month"),t=window.document.createDocumentFragment();w.config.showMonths>1||"static"===w.config.monthSelectorType?e=d("span","cur-month"):(w.monthsDropdownContainer=d("select","flatpickr-monthDropdown-months"),w.monthsDropdownContainer.setAttribute("aria-label",w.l10n.monthAriaLabel),N(w.monthsDropdownContainer,"change",(function(e){var n=g(e),t=parseInt(n.value,10);w.changeMonth(t-w.currentMonth),ve("onMonthChange")})),U(),e=w.monthsDropdownContainer);var a=m("cur-year",{tabindex:"-1"}),i=a.getElementsByTagName("input")[0];i.setAttribute("aria-label",w.l10n.yearAriaLabel),w.config.minDate&&i.setAttribute("min",w.config.minDate.getFullYear().toString()),w.config.maxDate&&(i.setAttribute("max",w.config.maxDate.getFullYear().toString()),i.disabled=!!w.config.minDate&&w.config.minDate.getFullYear()===w.config.maxDate.getFullYear());var o=d("div","flatpickr-current-month");return o.appendChild(e),o.appendChild(a),t.appendChild(o),n.appendChild(t),{container:n,yearElement:i,monthElement:e}}function q(){u(w.monthNav),w.monthNav.appendChild(w.prevMonthNav),w.config.showMonths&&(w.yearElements=[],w.monthElements=[]);for(var e=w.config.showMonths;e--;){var n=$();w.yearElements.push(n.yearElement),w.monthElements.push(n.monthElement),w.monthNav.appendChild(n.container)}w.monthNav.appendChild(w.nextMonthNav)}function V(){w.weekdayContainer?u(w.weekdayContainer):w.weekdayContainer=d("div","flatpickr-weekdays");for(var e=w.config.showMonths;e--;){var n=d("div","flatpickr-weekdaycontainer");w.weekdayContainer.appendChild(n)}return z(),w.weekdayContainer}function z(){if(w.weekdayContainer){var e=w.l10n.firstDayOfWeek,t=n(w.l10n.weekdays.shorthand);e>0&&e<t.length&&(t=n(t.splice(e,t.length),t.splice(0,e)));for(var a=w.config.showMonths;a--;)w.weekdayContainer.children[a].innerHTML="\n      <span class='flatpickr-weekday'>\n        "+t.join("</span><span class='flatpickr-weekday'>")+"\n      </span>\n      "}}function G(e,n){void 0===n&&(n=!0);var t=n?e:e-w.currentMonth;t<0&&!0===w._hidePrevMonthArrow||t>0&&!0===w._hideNextMonthArrow||(w.currentMonth+=t,(w.currentMonth<0||w.currentMonth>11)&&(w.currentYear+=w.currentMonth>11?1:-1,w.currentMonth=(w.currentMonth+12)%12,ve("onYearChange"),U()),K(),ve("onMonthChange"),be())}function Z(e){return w.calendarContainer.contains(e)}function Q(e){if(w.isOpen&&!w.config.inline){var n=g(e),t=Z(n),a=!(n===w.input||n===w.altInput||w.element.contains(n)||e.path&&e.path.indexOf&&(~e.path.indexOf(w.input)||~e.path.indexOf(w.altInput))||t||Z(e.relatedTarget)),i=!w.config.ignoredFocusElements.some((function(e){return e.contains(n)}));a&&i&&(w.config.allowInput&&w.setDate(w._input.value,!1,w.config.altInput?w.config.altFormat:w.config.dateFormat),void 0!==w.timeContainer&&void 0!==w.minuteElement&&void 0!==w.hourElement&&""!==w.input.value&&void 0!==w.input.value&&S(),w.close(),w.config&&"range"===w.config.mode&&1===w.selectedDates.length&&w.clear(!1))}}function X(e){if(!(!e||w.config.minDate&&e<w.config.minDate.getFullYear()||w.config.maxDate&&e>w.config.maxDate.getFullYear())){var n=e,t=w.currentYear!==n;w.currentYear=n||w.currentYear,w.config.maxDate&&w.currentYear===w.config.maxDate.getFullYear()?w.currentMonth=Math.min(w.config.maxDate.getMonth(),w.currentMonth):w.config.minDate&&w.currentYear===w.config.minDate.getFullYear()&&(w.currentMonth=Math.max(w.config.minDate.getMonth(),w.currentMonth)),t&&(w.redraw(),ve("onYearChange"),U())}}function ee(e,n){var t;void 0===n&&(n=!0);var a=w.parseDate(e,void 0,n);if(w.config.minDate&&a&&M(a,w.config.minDate,void 0!==n?n:!w.minDateHasTime)<0||w.config.maxDate&&a&&M(a,w.config.maxDate,void 0!==n?n:!w.maxDateHasTime)>0)return!1;if(!w.config.enable&&0===w.config.disable.length)return!0;if(void 0===a)return!1;for(var i=!!w.config.enable,o=null!==(t=w.config.enable)&&void 0!==t?t:w.config.disable,r=0,l=void 0;r<o.length;r++){if("function"==typeof(l=o[r])&&l(a))return i;if(l instanceof Date&&void 0!==a&&l.getTime()===a.getTime())return i;if("string"==typeof l){var c=w.parseDate(l,void 0,!0);return c&&c.getTime()===a.getTime()?i:!i}if("object"==typeof l&&void 0!==a&&l.from&&l.to&&a.getTime()>=l.from.getTime()&&a.getTime()<=l.to.getTime())return i}return!i}function ne(e){return void 0!==w.daysContainer&&-1===e.className.indexOf("hidden")&&-1===e.className.indexOf("flatpickr-disabled")&&w.daysContainer.contains(e)}function te(e){var n=e.target===w._input,t=w._input.value.trimEnd()!==Ce();!n||!t||e.relatedTarget&&Z(e.relatedTarget)||w.setDate(w._input.value,!0,e.target===w.altInput?w.config.altFormat:w.config.dateFormat)}function ae(e){var n=g(e),t=w.config.wrap?p.contains(n):n===w._input,a=w.config.allowInput,i=w.isOpen&&(!a||!t),o=w.config.inline&&t&&!a;if(13===e.keyCode&&t){if(a)return w.setDate(w._input.value,!0,n===w.altInput?w.config.altFormat:w.config.dateFormat),w.close(),n.blur();w.open()}else if(Z(n)||i||o){var r=!!w.timeContainer&&w.timeContainer.contains(n);switch(e.keyCode){case 13:r?(e.preventDefault(),S(),ue()):fe(e);break;case 27:e.preventDefault(),ue();break;case 8:case 46:t&&!w.config.allowInput&&(e.preventDefault(),w.clear());break;case 37:case 39:if(r||t)w.hourElement&&w.hourElement.focus();else{e.preventDefault();var l=E();if(void 0!==w.daysContainer&&(!1===a||l&&ne(l))){var c=39===e.keyCode?1:-1;e.ctrlKey?(e.stopPropagation(),G(c),B(W(1),0)):B(void 0,c)}}break;case 38:case 40:e.preventDefault();var s=40===e.keyCode?1:-1;w.daysContainer&&void 0!==n.$i||n===w.input||n===w.altInput?e.ctrlKey?(e.stopPropagation(),X(w.currentYear-s),B(W(1),0)):r||B(void 0,7*s):n===w.currentYearElement?X(w.currentYear-s):w.config.enableTime&&(!r&&w.hourElement&&w.hourElement.focus(),S(e),w._debouncedChange());break;case 9:if(r){var d=[w.hourElement,w.minuteElement,w.secondElement,w.amPM].concat(w.pluginElements).filter((function(e){return e})),u=d.indexOf(n);if(-1!==u){var f=d[u+(e.shiftKey?-1:1)];e.preventDefault(),(f||w._input).focus()}}else!w.config.noCalendar&&w.daysContainer&&w.daysContainer.contains(n)&&e.shiftKey&&(e.preventDefault(),w._input.focus())}}if(void 0!==w.amPM&&n===w.amPM)switch(e.key){case w.l10n.amPM[0].charAt(0):case w.l10n.amPM[0].charAt(0).toLowerCase():w.amPM.textContent=w.l10n.amPM[0],_(),Me();break;case w.l10n.amPM[1].charAt(0):case w.l10n.amPM[1].charAt(0).toLowerCase():w.amPM.textContent=w.l10n.amPM[1],_(),Me()}(t||Z(n))&&ve("onKeyDown",e)}function ie(e,n){if(void 0===n&&(n="flatpickr-day"),1===w.selectedDates.length&&(!e||e.classList.contains(n)&&!e.classList.contains("flatpickr-disabled"))){for(var t=e?e.dateObj.getTime():w.days.firstElementChild.dateObj.getTime(),a=w.parseDate(w.selectedDates[0],void 0,!0).getTime(),i=Math.min(t,w.selectedDates[0].getTime()),o=Math.max(t,w.selectedDates[0].getTime()),r=!1,l=0,c=0,s=i;s<o;s+=864e5)ee(new Date(s),!0)||(r=r||s>i&&s<o,s<a&&(!l||s>l)?l=s:s>a&&(!c||s<c)&&(c=s));Array.from(w.rContainer.querySelectorAll("*:nth-child(-n+"+w.config.showMonths+") > ."+n)).forEach((function(n){var i,o,s,d=n.dateObj.getTime(),u=l>0&&d<l||c>0&&d>c;if(u)return n.classList.add("notAllowed"),void["inRange","startRange","endRange"].forEach((function(e){n.classList.remove(e)}));r&&!u||(["startRange","inRange","endRange","notAllowed"].forEach((function(e){n.classList.remove(e)})),void 0!==e&&(e.classList.add(t<=w.selectedDates[0].getTime()?"startRange":"endRange"),a<t&&d===a?n.classList.add("startRange"):a>t&&d===a&&n.classList.add("endRange"),d>=l&&(0===c||d<=c)&&(o=a,s=t,(i=d)>Math.min(o,s)&&i<Math.max(o,s))&&n.classList.add("inRange")))}))}}function oe(){!w.isOpen||w.config.static||w.config.inline||se()}function re(e){return function(n){var t=w.config["_"+e+"Date"]=w.parseDate(n,w.config.dateFormat),a=w.config["_"+("min"===e?"max":"min")+"Date"];void 0!==t&&(w["min"===e?"minDateHasTime":"maxDateHasTime"]=t.getHours()>0||t.getMinutes()>0||t.getSeconds()>0),w.selectedDates&&(w.selectedDates=w.selectedDates.filter((function(e){return ee(e)})),w.selectedDates.length||"min"!==e||O(t),Me()),w.daysContainer&&(de(),void 0!==t?w.currentYearElement[e]=t.getFullYear().toString():w.currentYearElement.removeAttribute(e),w.currentYearElement.disabled=!!a&&void 0!==t&&a.getFullYear()===t.getFullYear())}}function le(){return w.config.wrap?p.querySelector("[data-input]"):p}function ce(){"object"!=typeof w.config.locale&&void 0===T.l10ns[w.config.locale]&&w.config.errorHandler(new Error("flatpickr: invalid locale "+w.config.locale)),w.l10n=e(e({},T.l10ns.default),"object"==typeof w.config.locale?w.config.locale:"default"!==w.config.locale?T.l10ns[w.config.locale]:void 0),D.D="("+w.l10n.weekdays.shorthand.join("|")+")",D.l="("+w.l10n.weekdays.longhand.join("|")+")",D.M="("+w.l10n.months.shorthand.join("|")+")",D.F="("+w.l10n.months.longhand.join("|")+")",D.K="("+w.l10n.amPM[0]+"|"+w.l10n.amPM[1]+"|"+w.l10n.amPM[0].toLowerCase()+"|"+w.l10n.amPM[1].toLowerCase()+")",void 0===e(e({},v),JSON.parse(JSON.stringify(p.dataset||{}))).time_24hr&&void 0===T.defaultConfig.time_24hr&&(w.config.time_24hr=w.l10n.time_24hr),w.formatDate=b(w),w.parseDate=C({config:w.config,l10n:w.l10n})}function se(e){if("function"!=typeof w.config.position){if(void 0!==w.calendarContainer){ve("onPreCalendarPosition");var n=e||w._positionElement,t=Array.prototype.reduce.call(w.calendarContainer.children,(function(e,n){return e+n.offsetHeight}),0),a=w.calendarContainer.offsetWidth,i=w.config.position.split(" "),o=i[0],r=i.length>1?i[1]:null,l=n.getBoundingClientRect(),c=window.innerHeight-l.bottom,d="above"===o||"below"!==o&&c<t&&l.top>t,u=window.pageYOffset+l.top+(d?-t-2:n.offsetHeight+2);if(s(w.calendarContainer,"arrowTop",!d),s(w.calendarContainer,"arrowBottom",d),!w.config.inline){var f=window.pageXOffset+l.left,m=!1,g=!1;"center"===r?(f-=(a-l.width)/2,m=!0):"right"===r&&(f-=a-l.width,g=!0),s(w.calendarContainer,"arrowLeft",!m&&!g),s(w.calendarContainer,"arrowCenter",m),s(w.calendarContainer,"arrowRight",g);var p=window.document.body.offsetWidth-(window.pageXOffset+l.right),h=f+a>window.document.body.offsetWidth,v=p+a>window.document.body.offsetWidth;if(s(w.calendarContainer,"rightMost",h),!w.config.static)if(w.calendarContainer.style.top=u+"px",h)if(v){var D=function(){for(var e=null,n=0;n<document.styleSheets.length;n++){var t=document.styleSheets[n];if(t.cssRules){try{t.cssRules}catch(e){continue}e=t;break}}return null!=e?e:(a=document.createElement("style"),document.head.appendChild(a),a.sheet);var a}();if(void 0===D)return;var b=window.document.body.offsetWidth,C=Math.max(0,b/2-a/2),M=D.cssRules.length,y="{left:"+l.left+"px;right:auto;}";s(w.calendarContainer,"rightMost",!1),s(w.calendarContainer,"centerMost",!0),D.insertRule(".flatpickr-calendar.centerMost:before,.flatpickr-calendar.centerMost:after"+y,M),w.calendarContainer.style.left=C+"px",w.calendarContainer.style.right="auto"}else w.calendarContainer.style.left="auto",w.calendarContainer.style.right=p+"px";else w.calendarContainer.style.left=f+"px",w.calendarContainer.style.right="auto"}}}else w.config.position(w,e)}function de(){w.config.noCalendar||w.isMobile||(U(),be(),K())}function ue(){w._input.focus(),-1!==window.navigator.userAgent.indexOf("MSIE")||void 0!==navigator.msMaxTouchPoints?setTimeout(w.close,0):w.close()}function fe(e){e.preventDefault(),e.stopPropagation();var n=f(g(e),(function(e){return e.classList&&e.classList.contains("flatpickr-day")&&!e.classList.contains("flatpickr-disabled")&&!e.classList.contains("notAllowed")}));if(void 0!==n){var t=n,a=w.latestSelectedDateObj=new Date(t.dateObj.getTime()),i=(a.getMonth()<w.currentMonth||a.getMonth()>w.currentMonth+w.config.showMonths-1)&&"range"!==w.config.mode;if(w.selectedDateElem=t,"single"===w.config.mode)w.selectedDates=[a];else if("multiple"===w.config.mode){var o=we(a);o?w.selectedDates.splice(parseInt(o),1):w.selectedDates.push(a)}else"range"===w.config.mode&&(2===w.selectedDates.length&&w.clear(!1,!1),w.latestSelectedDateObj=a,w.selectedDates.push(a),0!==M(a,w.selectedDates[0],!0)&&w.selectedDates.sort((function(e,n){return e.getTime()-n.getTime()})));if(_(),i){var r=w.currentYear!==a.getFullYear();w.currentYear=a.getFullYear(),w.currentMonth=a.getMonth(),r&&(ve("onYearChange"),U()),ve("onMonthChange")}if(be(),K(),Me(),i||"range"===w.config.mode||1!==w.config.showMonths?void 0!==w.selectedDateElem&&void 0===w.hourElement&&w.selectedDateElem&&w.selectedDateElem.focus():R(t),void 0!==w.hourElement&&void 0!==w.hourElement&&w.hourElement.focus(),w.config.closeOnSelect){var l="single"===w.config.mode&&!w.config.enableTime,c="range"===w.config.mode&&2===w.selectedDates.length&&!w.config.enableTime;(l||c)&&ue()}P()}}w.parseDate=C({config:w.config,l10n:w.l10n}),w._handlers=[],w.pluginElements=[],w.loadedPlugins=[],w._bind=N,w._setHoursFromDate=O,w._positionCalendar=se,w.changeMonth=G,w.changeYear=X,w.clear=function(e,n){if(void 0===e&&(e=!0),void 0===n&&(n=!0),w.input.value="",void 0!==w.altInput&&(w.altInput.value=""),void 0!==w.mobileInput&&(w.mobileInput.value=""),w.selectedDates=[],w.latestSelectedDateObj=void 0,!0===n&&(w.currentYear=w._initialDate.getFullYear(),w.currentMonth=w._initialDate.getMonth()),!0===w.config.enableTime){var t=x(w.config);F(t.hours,t.minutes,t.seconds)}w.redraw(),e&&ve("onChange")},w.close=function(){w.isOpen=!1,w.isMobile||(void 0!==w.calendarContainer&&w.calendarContainer.classList.remove("open"),void 0!==w._input&&w._input.classList.remove("active")),ve("onClose")},w.onMouseOver=ie,w._createElement=d,w.createDay=L,w.destroy=function(){void 0!==w.config&&ve("onDestroy");for(var e=w._handlers.length;e--;)w._handlers[e].remove();if(w._handlers=[],w.mobileInput)w.mobileInput.parentNode&&w.mobileInput.parentNode.removeChild(w.mobileInput),w.mobileInput=void 0;else if(w.calendarContainer&&w.calendarContainer.parentNode)if(w.config.static&&w.calendarContainer.parentNode){var n=w.calendarContainer.parentNode;if(n.lastChild&&n.removeChild(n.lastChild),n.parentNode){for(;n.firstChild;)n.parentNode.insertBefore(n.firstChild,n);n.parentNode.removeChild(n)}}else w.calendarContainer.parentNode.removeChild(w.calendarContainer);w.altInput&&(w.input.type="text",w.altInput.parentNode&&w.altInput.parentNode.removeChild(w.altInput),delete w.altInput),w.input&&(w.input.type=w.input._type,w.input.classList.remove("flatpickr-input"),w.input.removeAttribute("readonly")),
["_showTimeInput","latestSelectedDateObj","_hideNextMonthArrow","_hidePrevMonthArrow","__hideNextMonthArrow","__hidePrevMonthArrow","isMobile","isOpen","selectedDateElem","minDateHasTime","maxDateHasTime","days","daysContainer","_input","_positionElement","innerContainer","rContainer","monthNav","todayDateElem","calendarContainer","weekdayContainer","prevMonthNav","nextMonthNav","monthsDropdownContainer","currentMonthElement","currentYearElement","navigationCurrentMonth","selectedDateElem","config"].forEach((function(e){try{delete w[e]}catch(e){}}))},w.isEnabled=ee,w.jumpToDate=Y,w.updateValue=Me,w.open=function(e,n){if(void 0===n&&(n=w._positionElement),!0===w.isMobile){if(e){e.preventDefault();var t=g(e);t&&t.blur()}return void 0!==w.mobileInput&&(w.mobileInput.focus(),w.mobileInput.click()),void ve("onOpen")}if(!w._input.disabled&&!w.config.inline){var a=w.isOpen;w.isOpen=!0,a||(w.calendarContainer.classList.add("open"),w._input.classList.add("active"),ve("onOpen"),se(n)),!0===w.config.enableTime&&!0===w.config.noCalendar&&(!1!==w.config.allowInput||void 0!==e&&w.timeContainer.contains(e.relatedTarget)||setTimeout((function(){return w.hourElement.select()}),50))}},w.redraw=de,w.set=function(e,n){if(null!==e&&"object"==typeof e)for(var a in Object.assign(w.config,e),e)void 0!==me[a]&&me[a].forEach((function(e){return e()}));else w.config[e]=n,void 0!==me[e]?me[e].forEach((function(e){return e()})):t.indexOf(e)>-1&&(w.config[e]=c(n));w.redraw(),Me(!0)},w.setDate=function(e,n,t){if(void 0===n&&(n=!1),void 0===t&&(t=w.config.dateFormat),0!==e&&!e||e instanceof Array&&0===e.length)return w.clear(n);ge(e,t),w.latestSelectedDateObj=w.selectedDates[w.selectedDates.length-1],w.redraw(),Y(void 0,n),O(),0===w.selectedDates.length&&w.clear(!1),Me(n),n&&ve("onChange")},w.toggle=function(e){if(!0===w.isOpen)return w.close();w.open(e)};var me={locale:[ce,z],showMonths:[q,I,V],minDate:[Y],maxDate:[Y],positionElement:[he],clickOpens:[function(){!0===w.config.clickOpens?(N(w._input,"focus",w.open),N(w._input,"click",w.open)):(w._input.removeEventListener("focus",w.open),w._input.removeEventListener("click",w.open))}]};function ge(e,n){var t=[];if(e instanceof Array)t=e.map((function(e){return w.parseDate(e,n)}));else if(e instanceof Date||"number"==typeof e)t=[w.parseDate(e,n)];else if("string"==typeof e)switch(w.config.mode){case"single":case"time":t=[w.parseDate(e,n)];break;case"multiple":t=e.split(w.config.conjunction).map((function(e){return w.parseDate(e,n)}));break;case"range":t=e.split(w.l10n.rangeSeparator).map((function(e){return w.parseDate(e,n)}))}else w.config.errorHandler(new Error("Invalid date supplied: "+JSON.stringify(e)));w.selectedDates=w.config.allowInvalidPreload?t:t.filter((function(e){return e instanceof Date&&ee(e,!1)})),"range"===w.config.mode&&w.selectedDates.sort((function(e,n){return e.getTime()-n.getTime()}))}function pe(e){return e.slice().map((function(e){return"string"==typeof e||"number"==typeof e||e instanceof Date?w.parseDate(e,void 0,!0):e&&"object"==typeof e&&e.from&&e.to?{from:w.parseDate(e.from,void 0),to:w.parseDate(e.to,void 0)}:e})).filter((function(e){return e}))}function he(){w._positionElement=w.config.positionElement||w._input}function ve(e,n){if(void 0!==w.config){var t=w.config[e];if(void 0!==t&&t.length>0)for(var a=0;t[a]&&a<t.length;a++)t[a](w.selectedDates,w.input.value,w,n);"onChange"===e&&(w.input.dispatchEvent(De("change")),w.input.dispatchEvent(De("input")))}}function De(e){var n=document.createEvent("Event");return n.initEvent(e,!0,!0),n}function we(e){for(var n=0;n<w.selectedDates.length;n++){var t=w.selectedDates[n];if(t instanceof Date&&0===M(t,e))return""+n}return!1}function be(){w.config.noCalendar||w.isMobile||!w.monthNav||(w.yearElements.forEach((function(e,n){var t=new Date(w.currentYear,w.currentMonth,1);t.setMonth(w.currentMonth+n),w.config.showMonths>1||"static"===w.config.monthSelectorType?w.monthElements[n].textContent=h(t.getMonth(),w.config.shorthandCurrentMonth,w.l10n)+" ":w.monthsDropdownContainer.value=t.getMonth().toString(),e.value=t.getFullYear().toString()})),w._hidePrevMonthArrow=void 0!==w.config.minDate&&(w.currentYear===w.config.minDate.getFullYear()?w.currentMonth<=w.config.minDate.getMonth():w.currentYear<w.config.minDate.getFullYear()),w._hideNextMonthArrow=void 0!==w.config.maxDate&&(w.currentYear===w.config.maxDate.getFullYear()?w.currentMonth+1>w.config.maxDate.getMonth():w.currentYear>w.config.maxDate.getFullYear()))}function Ce(e){var n=e||(w.config.altInput?w.config.altFormat:w.config.dateFormat);return w.selectedDates.map((function(e){return w.formatDate(e,n)})).filter((function(e,n,t){return"range"!==w.config.mode||w.config.enableTime||t.indexOf(e)===n})).join("range"!==w.config.mode?w.config.conjunction:w.l10n.rangeSeparator)}function Me(e){void 0===e&&(e=!0),void 0!==w.mobileInput&&w.mobileFormatStr&&(w.mobileInput.value=void 0!==w.latestSelectedDateObj?w.formatDate(w.latestSelectedDateObj,w.mobileFormatStr):""),w.input.value=Ce(w.config.dateFormat),void 0!==w.altInput&&(w.altInput.value=Ce(w.config.altFormat)),!1!==e&&ve("onValueUpdate")}function ye(e){var n=g(e),t=w.prevMonthNav.contains(n),a=w.nextMonthNav.contains(n);t||a?G(t?-1:1):w.yearElements.indexOf(n)>=0?n.select():n.classList.contains("arrowUp")?w.changeYear(w.currentYear+1):n.classList.contains("arrowDown")&&w.changeYear(w.currentYear-1)}return function(){w.element=w.input=p,w.isOpen=!1,function(){var n=["wrap","weekNumbers","allowInput","allowInvalidPreload","clickOpens","time_24hr","enableTime","noCalendar","altInput","shorthandCurrentMonth","inline","static","enableSeconds","disableMobile"],i=e(e({},JSON.parse(JSON.stringify(p.dataset||{}))),v),o={};w.config.parseDate=i.parseDate,w.config.formatDate=i.formatDate,Object.defineProperty(w.config,"enable",{get:function(){return w.config._enable},set:function(e){w.config._enable=pe(e)}}),Object.defineProperty(w.config,"disable",{get:function(){return w.config._disable},set:function(e){w.config._disable=pe(e)}});var r="time"===i.mode;if(!i.dateFormat&&(i.enableTime||r)){var l=T.defaultConfig.dateFormat||a.dateFormat;o.dateFormat=i.noCalendar||r?"H:i"+(i.enableSeconds?":S":""):l+" H:i"+(i.enableSeconds?":S":"")}if(i.altInput&&(i.enableTime||r)&&!i.altFormat){var s=T.defaultConfig.altFormat||a.altFormat;o.altFormat=i.noCalendar||r?"h:i"+(i.enableSeconds?":S K":" K"):s+" h:i"+(i.enableSeconds?":S":"")+" K"}Object.defineProperty(w.config,"minDate",{get:function(){return w.config._minDate},set:re("min")}),Object.defineProperty(w.config,"maxDate",{get:function(){return w.config._maxDate},set:re("max")});var d=function(e){return function(n){w.config["min"===e?"_minTime":"_maxTime"]=w.parseDate(n,"H:i:S")}};Object.defineProperty(w.config,"minTime",{get:function(){return w.config._minTime},set:d("min")}),Object.defineProperty(w.config,"maxTime",{get:function(){return w.config._maxTime},set:d("max")}),"time"===i.mode&&(w.config.noCalendar=!0,w.config.enableTime=!0),Object.assign(w.config,o,i);for(var u=0;u<n.length;u++)w.config[n[u]]=!0===w.config[n[u]]||"true"===w.config[n[u]];for(t.filter((function(e){return void 0!==w.config[e]})).forEach((function(e){w.config[e]=c(w.config[e]||[]).map(k)})),w.isMobile=!w.config.disableMobile&&!w.config.inline&&"single"===w.config.mode&&!w.config.disable.length&&!w.config.enable&&!w.config.weekNumbers&&/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent),u=0;u<w.config.plugins.length;u++){var f=w.config.plugins[u](w)||{};for(var m in f)t.indexOf(m)>-1?w.config[m]=c(f[m]).map(k).concat(w.config[m]):void 0===i[m]&&(w.config[m]=f[m])}i.altInputClass||(w.config.altInputClass=le().className+" "+w.config.altInputClass),ve("onParseConfig")}(),ce(),w.input=le(),w.input?(w.input._type=w.input.type,w.input.type="text",w.input.classList.add("flatpickr-input"),w._input=w.input,w.config.altInput&&(w.altInput=d(w.input.nodeName,w.config.altInputClass),w._input=w.altInput,w.altInput.placeholder=w.input.placeholder,w.altInput.disabled=w.input.disabled,w.altInput.required=w.input.required,w.altInput.tabIndex=w.input.tabIndex,w.altInput.type="text",w.input.setAttribute("type","hidden"),!w.config.static&&w.input.parentNode&&w.input.parentNode.insertBefore(w.altInput,w.input.nextSibling)),w.config.allowInput||w._input.setAttribute("readonly","readonly"),he()):w.config.errorHandler(new Error("Invalid input element specified")),function(){w.selectedDates=[],w.now=w.parseDate(w.config.now)||new Date;var e=w.config.defaultDate||("INPUT"!==w.input.nodeName&&"TEXTAREA"!==w.input.nodeName||!w.input.placeholder||w.input.value!==w.input.placeholder?w.input.value:null);e&&ge(e,w.config.dateFormat),w._initialDate=w.selectedDates.length>0?w.selectedDates[0]:w.config.minDate&&w.config.minDate.getTime()>w.now.getTime()?w.config.minDate:w.config.maxDate&&w.config.maxDate.getTime()<w.now.getTime()?w.config.maxDate:w.now,w.currentYear=w._initialDate.getFullYear(),w.currentMonth=w._initialDate.getMonth(),w.selectedDates.length>0&&(w.latestSelectedDateObj=w.selectedDates[0]),void 0!==w.config.minTime&&(w.config.minTime=w.parseDate(w.config.minTime,"H:i")),void 0!==w.config.maxTime&&(w.config.maxTime=w.parseDate(w.config.maxTime,"H:i")),w.minDateHasTime=!!w.config.minDate&&(w.config.minDate.getHours()>0||w.config.minDate.getMinutes()>0||w.config.minDate.getSeconds()>0),w.maxDateHasTime=!!w.config.maxDate&&(w.config.maxDate.getHours()>0||w.config.maxDate.getMinutes()>0||w.config.maxDate.getSeconds()>0)}(),w.utils={getDaysInMonth:function(e,n){return void 0===e&&(e=w.currentMonth),void 0===n&&(n=w.currentYear),1===e&&(n%4==0&&n%100!=0||n%400==0)?29:w.l10n.daysInMonth[e]}},w.isMobile||function(){var e=window.document.createDocumentFragment();if(w.calendarContainer=d("div","flatpickr-calendar"),w.calendarContainer.tabIndex=-1,!w.config.noCalendar){if(e.appendChild((w.monthNav=d("div","flatpickr-months"),w.yearElements=[],w.monthElements=[],w.prevMonthNav=d("span","flatpickr-prev-month"),w.prevMonthNav.innerHTML=w.config.prevArrow,w.nextMonthNav=d("span","flatpickr-next-month"),w.nextMonthNav.innerHTML=w.config.nextArrow,q(),Object.defineProperty(w,"_hidePrevMonthArrow",{get:function(){return w.__hidePrevMonthArrow},set:function(e){w.__hidePrevMonthArrow!==e&&(s(w.prevMonthNav,"flatpickr-disabled",e),w.__hidePrevMonthArrow=e)}}),Object.defineProperty(w,"_hideNextMonthArrow",{get:function(){return w.__hideNextMonthArrow},set:function(e){w.__hideNextMonthArrow!==e&&(s(w.nextMonthNav,"flatpickr-disabled",e),w.__hideNextMonthArrow=e)}}),w.currentYearElement=w.yearElements[0],be(),w.monthNav)),w.innerContainer=d("div","flatpickr-innerContainer"),w.config.weekNumbers){var n=function(){w.calendarContainer.classList.add("hasWeeks");var e=d("div","flatpickr-weekwrapper");e.appendChild(d("span","flatpickr-weekday",w.l10n.weekAbbreviation));var n=d("div","flatpickr-weeks");return e.appendChild(n),{weekWrapper:e,weekNumbers:n}}(),t=n.weekWrapper,a=n.weekNumbers;w.innerContainer.appendChild(t),w.weekNumbers=a,w.weekWrapper=t}w.rContainer=d("div","flatpickr-rContainer"),w.rContainer.appendChild(V()),w.daysContainer||(w.daysContainer=d("div","flatpickr-days"),w.daysContainer.tabIndex=-1),K(),w.rContainer.appendChild(w.daysContainer),w.innerContainer.appendChild(w.rContainer),e.appendChild(w.innerContainer)}w.config.enableTime&&e.appendChild(function(){w.calendarContainer.classList.add("hasTime"),w.config.noCalendar&&w.calendarContainer.classList.add("noCalendar");var e=x(w.config);w.timeContainer=d("div","flatpickr-time"),w.timeContainer.tabIndex=-1;var n=d("span","flatpickr-time-separator",":"),t=m("flatpickr-hour",{"aria-label":w.l10n.hourAriaLabel});w.hourElement=t.getElementsByTagName("input")[0];var a=m("flatpickr-minute",{"aria-label":w.l10n.minuteAriaLabel});if(w.minuteElement=a.getElementsByTagName("input")[0],w.hourElement.tabIndex=w.minuteElement.tabIndex=-1,w.hourElement.value=o(w.latestSelectedDateObj?w.latestSelectedDateObj.getHours():w.config.time_24hr?e.hours:function(e){switch(e%24){case 0:case 12:return 12;default:return e%12}}(e.hours)),w.minuteElement.value=o(w.latestSelectedDateObj?w.latestSelectedDateObj.getMinutes():e.minutes),w.hourElement.setAttribute("step",w.config.hourIncrement.toString()),w.minuteElement.setAttribute("step",w.config.minuteIncrement.toString()),w.hourElement.setAttribute("min",w.config.time_24hr?"0":"1"),w.hourElement.setAttribute("max",w.config.time_24hr?"23":"12"),w.hourElement.setAttribute("maxlength","2"),w.minuteElement.setAttribute("min","0"),w.minuteElement.setAttribute("max","59"),w.minuteElement.setAttribute("maxlength","2"),w.timeContainer.appendChild(t),w.timeContainer.appendChild(n),w.timeContainer.appendChild(a),w.config.time_24hr&&w.timeContainer.classList.add("time24hr"),w.config.enableSeconds){w.timeContainer.classList.add("hasSeconds");var i=m("flatpickr-second");w.secondElement=i.getElementsByTagName("input")[0],w.secondElement.value=o(w.latestSelectedDateObj?w.latestSelectedDateObj.getSeconds():e.seconds),w.secondElement.setAttribute("step",w.minuteElement.getAttribute("step")),w.secondElement.setAttribute("min","0"),w.secondElement.setAttribute("max","59"),w.secondElement.setAttribute("maxlength","2"),w.timeContainer.appendChild(d("span","flatpickr-time-separator",":")),w.timeContainer.appendChild(i)}return w.config.time_24hr||(w.amPM=d("span","flatpickr-am-pm",w.l10n.amPM[r((w.latestSelectedDateObj?w.hourElement.value:w.config.defaultHour)>11)]),w.amPM.title=w.l10n.toggleTitle,w.amPM.tabIndex=-1,w.timeContainer.appendChild(w.amPM)),w.timeContainer}()),s(w.calendarContainer,"rangeMode","range"===w.config.mode),s(w.calendarContainer,"animate",!0===w.config.animate),s(w.calendarContainer,"multiMonth",w.config.showMonths>1),w.calendarContainer.appendChild(e);var i=void 0!==w.config.appendTo&&void 0!==w.config.appendTo.nodeType;if((w.config.inline||w.config.static)&&(w.calendarContainer.classList.add(w.config.inline?"inline":"static"),w.config.inline&&(!i&&w.element.parentNode?w.element.parentNode.insertBefore(w.calendarContainer,w._input.nextSibling):void 0!==w.config.appendTo&&w.config.appendTo.appendChild(w.calendarContainer)),w.config.static)){var l=d("div","flatpickr-wrapper");w.element.parentNode&&w.element.parentNode.insertBefore(l,w.element),l.appendChild(w.element),w.altInput&&l.appendChild(w.altInput),l.appendChild(w.calendarContainer)}w.config.static||w.config.inline||(void 0!==w.config.appendTo?w.config.appendTo:window.document.body).appendChild(w.calendarContainer)}(),function(){if(w.config.wrap&&["open","close","toggle","clear"].forEach((function(e){Array.prototype.forEach.call(w.element.querySelectorAll("[data-"+e+"]"),(function(n){return N(n,"click",w[e])}))})),w.isMobile)!function(){var e=w.config.enableTime?w.config.noCalendar?"time":"datetime-local":"date";w.mobileInput=d("input",w.input.className+" flatpickr-mobile"),w.mobileInput.tabIndex=1,w.mobileInput.type=e,w.mobileInput.disabled=w.input.disabled,w.mobileInput.required=w.input.required,w.mobileInput.placeholder=w.input.placeholder,w.mobileFormatStr="datetime-local"===e?"Y-m-d\\TH:i:S":"date"===e?"Y-m-d":"H:i:S",w.selectedDates.length>0&&(w.mobileInput.defaultValue=w.mobileInput.value=w.formatDate(w.selectedDates[0],w.mobileFormatStr)),w.config.minDate&&(w.mobileInput.min=w.formatDate(w.config.minDate,"Y-m-d")),w.config.maxDate&&(w.mobileInput.max=w.formatDate(w.config.maxDate,"Y-m-d")),w.input.getAttribute("step")&&(w.mobileInput.step=String(w.input.getAttribute("step"))),w.input.type="hidden",void 0!==w.altInput&&(w.altInput.type="hidden");try{w.input.parentNode&&w.input.parentNode.insertBefore(w.mobileInput,w.input.nextSibling)}catch(e){}N(w.mobileInput,"change",(function(e){w.setDate(g(e).value,!1,w.mobileFormatStr),ve("onChange"),ve("onClose")}))}();else{var e=l(oe,50);w._debouncedChange=l(P,300),w.daysContainer&&!/iPhone|iPad|iPod/i.test(navigator.userAgent)&&N(w.daysContainer,"mouseover",(function(e){"range"===w.config.mode&&ie(g(e))})),N(w._input,"keydown",ae),void 0!==w.calendarContainer&&N(w.calendarContainer,"keydown",ae),w.config.inline||w.config.static||N(window,"resize",e),void 0!==window.ontouchstart?N(window.document,"touchstart",Q):N(window.document,"mousedown",Q),N(window.document,"focus",Q,{capture:!0}),!0===w.config.clickOpens&&(N(w._input,"focus",w.open),N(w._input,"click",w.open)),void 0!==w.daysContainer&&(N(w.monthNav,"click",ye),N(w.monthNav,["keyup","increment"],A),N(w.daysContainer,"click",fe)),void 0!==w.timeContainer&&void 0!==w.minuteElement&&void 0!==w.hourElement&&(N(w.timeContainer,["increment"],S),N(w.timeContainer,"blur",S,{capture:!0}),N(w.timeContainer,"click",j),N([w.hourElement,w.minuteElement],["focus","click"],(function(e){return g(e).select()})),void 0!==w.secondElement&&N(w.secondElement,"focus",(function(){return w.secondElement&&w.secondElement.select()})),void 0!==w.amPM&&N(w.amPM,"click",(function(e){S(e)}))),w.config.allowInput&&N(w._input,"blur",te)}}(),(w.selectedDates.length||w.config.noCalendar)&&(w.config.enableTime&&O(w.config.noCalendar?w.latestSelectedDateObj:void 0),Me(!1)),I();var n=/^((?!chrome|android).)*safari/i.test(navigator.userAgent);!w.isMobile&&n&&se(),ve("onReady")}(),w}function k(e,n){for(var t=Array.prototype.slice.call(e).filter((function(e){return e instanceof HTMLElement})),a=[],i=0;i<t.length;i++){var o=t[i];try{if(null!==o.getAttribute("data-fp-omit"))continue;void 0!==o._flatpickr&&(o._flatpickr.destroy(),o._flatpickr=void 0),o._flatpickr=E(o,n||{}),a.push(o._flatpickr)}catch(e){console.error(e)}}return 1===a.length?a[0]:a}"function"!=typeof Object.assign&&(Object.assign=function(e){for(var n=[],t=1;t<arguments.length;t++)n[t-1]=arguments[t];if(!e)throw TypeError("Cannot convert undefined or null to object");for(var a=function(n){n&&Object.keys(n).forEach((function(t){return e[t]=n[t]}))},i=0,o=n;i<o.length;i++){var r=o[i];a(r)}return e}),"undefined"!=typeof HTMLElement&&"undefined"!=typeof HTMLCollection&&"undefined"!=typeof NodeList&&(HTMLCollection.prototype.flatpickr=NodeList.prototype.flatpickr=function(e){return k(this,e)},HTMLElement.prototype.flatpickr=function(e){return k([this],e)});var T=function(e,n){return"string"==typeof e?k(window.document.querySelectorAll(e),n):e instanceof Node?k([e],n):k(e,n)};return T.defaultConfig={},T.l10ns={en:e({},i),default:e({},i)},T.localize=function(n){T.l10ns.default=e(e({},T.l10ns.default),n)},T.setDefaults=function(n){T.defaultConfig=e(e({},T.defaultConfig),n)},T.parseDate=C({}),T.formatDate=b({}),T.compareDates=M,"undefined"!=typeof jQuery&&void 0!==jQuery.fn&&(jQuery.fn.flatpickr=function(e){return k(this,e)}),Date.prototype.fp_incr=function(e){return new Date(this.getFullYear(),this.getMonth(),this.getDate()+("string"==typeof e?parseInt(e,10):e))},"undefined"!=typeof window&&(window.flatpickr=T),T}));
!function(n){"function"==typeof define&&define.amd?define(["jquery"],n):"object"==typeof module&&module.exports?module.exports=function(e,t){return void 0===t&&(t="undefined"!=typeof window?require("jquery"):require("jquery")(e)),n(t),t}:n(jQuery)}(function(u){var e=function(){if(u&&u.fn&&u.fn.select2&&u.fn.select2.amd)var e=u.fn.select2.amd;var t,n,r,h,o,s,f,g,m,v,y,_,i,a,b;function w(e,t){return i.call(e,t)}function l(e,t){var n,r,i,o,s,a,l,c,u,d,p,h=t&&t.split("/"),f=y.map,g=f&&f["*"]||{};if(e){for(s=(e=e.split("/")).length-1,y.nodeIdCompat&&b.test(e[s])&&(e[s]=e[s].replace(b,"")),"."===e[0].charAt(0)&&h&&(e=h.slice(0,h.length-1).concat(e)),u=0;u<e.length;u++)if("."===(p=e[u]))e.splice(u,1),--u;else if(".."===p){if(0===u||1===u&&".."===e[2]||".."===e[u-1])continue;0<u&&(e.splice(u-1,2),u-=2)}e=e.join("/")}if((h||g)&&f){for(u=(n=e.split("/")).length;0<u;--u){if(r=n.slice(0,u).join("/"),h)for(d=h.length;0<d;--d)if(i=(i=f[h.slice(0,d).join("/")])&&i[r]){o=i,a=u;break}if(o)break;!l&&g&&g[r]&&(l=g[r],c=u)}!o&&l&&(o=l,a=c),o&&(n.splice(0,a,o),e=n.join("/"))}return e}function A(t,n){return function(){var e=a.call(arguments,0);return"string"!=typeof e[0]&&1===e.length&&e.push(null),s.apply(h,e.concat([t,n]))}}function x(t){return function(e){m[t]=e}}function D(e){if(w(v,e)){var t=v[e];delete v[e],_[e]=!0,o.apply(h,t)}if(!w(m,e)&&!w(_,e))throw new Error("No "+e);return m[e]}function c(e){var t,n=e?e.indexOf("!"):-1;return-1<n&&(t=e.substring(0,n),e=e.substring(n+1,e.length)),[t,e]}function S(e){return e?c(e):[]}return e&&e.requirejs||(e?n=e:e={},m={},v={},y={},_={},i=Object.prototype.hasOwnProperty,a=[].slice,b=/\.js$/,f=function(e,t){var n,r,i=c(e),o=i[0],s=t[1];return e=i[1],o&&(n=D(o=l(o,s))),o?e=n&&n.normalize?n.normalize(e,(r=s,function(e){return l(e,r)})):l(e,s):(o=(i=c(e=l(e,s)))[0],e=i[1],o&&(n=D(o))),{f:o?o+"!"+e:e,n:e,pr:o,p:n}},g={require:function(e){return A(e)},exports:function(e){var t=m[e];return void 0!==t?t:m[e]={}},module:function(e){return{id:e,uri:"",exports:m[e],config:(t=e,function(){return y&&y.config&&y.config[t]||{}})};var t}},o=function(e,t,n,r){var i,o,s,a,l,c,u,d=[],p=typeof n;if(c=S(r=r||e),"undefined"==p||"function"==p){for(t=!t.length&&n.length?["require","exports","module"]:t,l=0;l<t.length;l+=1)if("require"===(o=(a=f(t[l],c)).f))d[l]=g.require(e);else if("exports"===o)d[l]=g.exports(e),u=!0;else if("module"===o)i=d[l]=g.module(e);else if(w(m,o)||w(v,o)||w(_,o))d[l]=D(o);else{if(!a.p)throw new Error(e+" missing "+o);a.p.load(a.n,A(r,!0),x(o),{}),d[l]=m[o]}s=n?n.apply(m[e],d):void 0,e&&(i&&i.exports!==h&&i.exports!==m[e]?m[e]=i.exports:s===h&&u||(m[e]=s))}else e&&(m[e]=n)},t=n=s=function(e,t,n,r,i){if("string"==typeof e)return g[e]?g[e](t):D(f(e,S(t)).f);if(!e.splice){if((y=e).deps&&s(y.deps,y.callback),!t)return;t.splice?(e=t,t=n,n=null):e=h}return t=t||function(){},"function"==typeof n&&(n=r,r=i),r?o(h,e,t,n):setTimeout(function(){o(h,e,t,n)},4),s},s.config=function(e){return s(e)},t._defined=m,(r=function(e,t,n){if("string"!=typeof e)throw new Error("See almond README: incorrect module build, no module name");t.splice||(n=t,t=[]),w(m,e)||w(v,e)||(v[e]=[e,t,n])}).amd={jQuery:!0},e.requirejs=t,e.require=n,e.define=r),e.define("almond",function(){}),e.define("jquery",[],function(){var e=u||$;return null==e&&console&&console.error&&console.error("Select2: An instance of jQuery or a jQuery-compatible library was not found. Make sure that you are including jQuery before Select2 on your web page."),e}),e.define("select2/utils",["jquery"],function(o){var i={};function u(e){var t=e.prototype,n=[];for(var r in t){"function"==typeof t[r]&&"constructor"!==r&&n.push(r)}return n}i.Extend=function(e,t){var n={}.hasOwnProperty;function r(){this.constructor=e}for(var i in t)n.call(t,i)&&(e[i]=t[i]);return r.prototype=t.prototype,e.prototype=new r,e.__super__=t.prototype,e},i.Decorate=function(r,i){var e=u(i),t=u(r);function o(){var e=Array.prototype.unshift,t=i.prototype.constructor.length,n=r.prototype.constructor;0<t&&(e.call(arguments,r.prototype.constructor),n=i.prototype.constructor),n.apply(this,arguments)}i.displayName=r.displayName,o.prototype=new function(){this.constructor=o};for(var n=0;n<t.length;n++){var s=t[n];o.prototype[s]=r.prototype[s]}function a(e){var t=function(){};e in o.prototype&&(t=o.prototype[e]);var n=i.prototype[e];return function(){return Array.prototype.unshift.call(arguments,t),n.apply(this,arguments)}}for(var l=0;l<e.length;l++){var c=e[l];o.prototype[c]=a(c)}return o};function e(){this.listeners={}}e.prototype.on=function(e,t){this.listeners=this.listeners||{},e in this.listeners?this.listeners[e].push(t):this.listeners[e]=[t]},e.prototype.trigger=function(e){var t=Array.prototype.slice,n=t.call(arguments,1);this.listeners=this.listeners||{},null==n&&(n=[]),0===n.length&&n.push({}),(n[0]._type=e)in this.listeners&&this.invoke(this.listeners[e],t.call(arguments,1)),"*"in this.listeners&&this.invoke(this.listeners["*"],arguments)},e.prototype.invoke=function(e,t){for(var n=0,r=e.length;n<r;n++)e[n].apply(this,t)},i.Observable=e,i.generateChars=function(e){for(var t="",n=0;n<e;n++){t+=Math.floor(36*Math.random()).toString(36)}return t},i.bind=function(e,t){return function(){e.apply(t,arguments)}},i._convertData=function(e){for(var t in e){var n=t.split("-"),r=e;if(1!==n.length){for(var i=0;i<n.length;i++){var o=n[i];(o=o.substring(0,1).toLowerCase()+o.substring(1))in r||(r[o]={}),i==n.length-1&&(r[o]=e[t]),r=r[o]}delete e[t]}}return e},i.hasScroll=function(e,t){var n=o(t),r=t.style.overflowX,i=t.style.overflowY;return(r!==i||"hidden"!==i&&"visible"!==i)&&("scroll"===r||"scroll"===i||(n.innerHeight()<t.scrollHeight||n.innerWidth()<t.scrollWidth))},i.escapeMarkup=function(e){var t={"\\":"&#92;","&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#47;"};return"string"!=typeof e?e:String(e).replace(/[&<>"'\/\\]/g,function(e){return t[e]})},i.appendMany=function(e,t){if("1.7"===o.fn.jquery.substr(0,3)){var n=o();o.map(t,function(e){n=n.add(e)}),t=n}e.append(t)},i.__cache={};var n=0;return i.GetUniqueElementId=function(e){var t=e.getAttribute("data-select2-id");return null==t&&(e.id?(t=e.id,e.setAttribute("data-select2-id",t)):(e.setAttribute("data-select2-id",++n),t=n.toString())),t},i.StoreData=function(e,t,n){var r=i.GetUniqueElementId(e);i.__cache[r]||(i.__cache[r]={}),i.__cache[r][t]=n},i.GetData=function(e,t){var n=i.GetUniqueElementId(e);return t?i.__cache[n]&&null!=i.__cache[n][t]?i.__cache[n][t]:o(e).data(t):i.__cache[n]},i.RemoveData=function(e){var t=i.GetUniqueElementId(e);null!=i.__cache[t]&&delete i.__cache[t],e.removeAttribute("data-select2-id")},i}),e.define("select2/results",["jquery","./utils"],function(h,f){function r(e,t,n){this.$element=e,this.data=n,this.options=t,r.__super__.constructor.call(this)}return f.Extend(r,f.Observable),r.prototype.render=function(){var e=h('<ul class="select2-results__options" role="listbox"></ul>');return this.options.get("multiple")&&e.attr("aria-multiselectable","true"),this.$results=e},r.prototype.clear=function(){this.$results.empty()},r.prototype.displayMessage=function(e){var t=this.options.get("escapeMarkup");this.clear(),this.hideLoading();var n=h('<li role="alert" aria-live="assertive" class="select2-results__option"></li>'),r=this.options.get("translations").get(e.message);n.append(t(r(e.args))),n[0].className+=" select2-results__message",this.$results.append(n)},r.prototype.hideMessages=function(){this.$results.find(".select2-results__message").remove()},r.prototype.append=function(e){this.hideLoading();var t=[];if(null!=e.results&&0!==e.results.length){e.results=this.sort(e.results);for(var n=0;n<e.results.length;n++){var r=e.results[n],i=this.option(r);t.push(i)}this.$results.append(t)}else 0===this.$results.children().length&&this.trigger("results:message",{message:"noResults"})},r.prototype.position=function(e,t){t.find(".select2-results").append(e)},r.prototype.sort=function(e){return this.options.get("sorter")(e)},r.prototype.highlightFirstItem=function(){var e=this.$results.find(".select2-results__option[aria-selected]"),t=e.filter("[aria-selected=true]");0<t.length?t.first().trigger("mouseenter"):e.first().trigger("mouseenter"),this.ensureHighlightVisible()},r.prototype.setClasses=function(){var t=this;this.data.current(function(e){var r=h.map(e,function(e){return e.id.toString()});t.$results.find(".select2-results__option[aria-selected]").each(function(){var e=h(this),t=f.GetData(this,"data"),n=""+t.id;null!=t.element&&t.element.selected||null==t.element&&-1<h.inArray(n,r)?e.attr("aria-selected","true"):e.attr("aria-selected","false")})})},r.prototype.showLoading=function(e){this.hideLoading();var t={disabled:!0,loading:!0,text:this.options.get("translations").get("searching")(e)},n=this.option(t);n.className+=" loading-results",this.$results.prepend(n)},r.prototype.hideLoading=function(){this.$results.find(".loading-results").remove()},r.prototype.option=function(e){var t=document.createElement("li");t.className="select2-results__option";var n={role:"option","aria-selected":"false"},r=window.Element.prototype.matches||window.Element.prototype.msMatchesSelector||window.Element.prototype.webkitMatchesSelector;for(var i in(null!=e.element&&r.call(e.element,":disabled")||null==e.element&&e.disabled)&&(delete n["aria-selected"],n["aria-disabled"]="true"),null==e.id&&delete n["aria-selected"],null!=e._resultId&&(t.id=e._resultId),e.title&&(t.title=e.title),e.children&&(n.role="group",n["aria-label"]=e.text,delete n["aria-selected"]),n){var o=n[i];t.setAttribute(i,o)}if(e.children){var s=h(t),a=document.createElement("strong");a.className="select2-results__group";h(a);this.template(e,a);for(var l=[],c=0;c<e.children.length;c++){var u=e.children[c],d=this.option(u);l.push(d)}var p=h("<ul></ul>",{class:"select2-results__options select2-results__options--nested"});p.append(l),s.append(a),s.append(p)}else this.template(e,t);return f.StoreData(t,"data",e),t},r.prototype.bind=function(t,e){var l=this,n=t.id+"-results";this.$results.attr("id",n),t.on("results:all",function(e){l.clear(),l.append(e.data),t.isOpen()&&(l.setClasses(),l.highlightFirstItem())}),t.on("results:append",function(e){l.append(e.data),t.isOpen()&&l.setClasses()}),t.on("query",function(e){l.hideMessages(),l.showLoading(e)}),t.on("select",function(){t.isOpen()&&(l.setClasses(),l.options.get("scrollAfterSelect")&&l.highlightFirstItem())}),t.on("unselect",function(){t.isOpen()&&(l.setClasses(),l.options.get("scrollAfterSelect")&&l.highlightFirstItem())}),t.on("open",function(){l.$results.attr("aria-expanded","true"),l.$results.attr("aria-hidden","false"),l.setClasses(),l.ensureHighlightVisible()}),t.on("close",function(){l.$results.attr("aria-expanded","false"),l.$results.attr("aria-hidden","true"),l.$results.removeAttr("aria-activedescendant")}),t.on("results:toggle",function(){var e=l.getHighlightedResults();0!==e.length&&e.trigger("mouseup")}),t.on("results:select",function(){var e=l.getHighlightedResults();if(0!==e.length){var t=f.GetData(e[0],"data");"true"==e.attr("aria-selected")?l.trigger("close",{}):l.trigger("select",{data:t})}}),t.on("results:previous",function(){var e=l.getHighlightedResults(),t=l.$results.find("[aria-selected]"),n=t.index(e);if(!(n<=0)){var r=n-1;0===e.length&&(r=0);var i=t.eq(r);i.trigger("mouseenter");var o=l.$results.offset().top,s=i.offset().top,a=l.$results.scrollTop()+(s-o);0===r?l.$results.scrollTop(0):s-o<0&&l.$results.scrollTop(a)}}),t.on("results:next",function(){var e=l.getHighlightedResults(),t=l.$results.find("[aria-selected]"),n=t.index(e)+1;if(!(n>=t.length)){var r=t.eq(n);r.trigger("mouseenter");var i=l.$results.offset().top+l.$results.outerHeight(!1),o=r.offset().top+r.outerHeight(!1),s=l.$results.scrollTop()+o-i;0===n?l.$results.scrollTop(0):i<o&&l.$results.scrollTop(s)}}),t.on("results:focus",function(e){e.element.addClass("select2-results__option--highlighted")}),t.on("results:message",function(e){l.displayMessage(e)}),h.fn.mousewheel&&this.$results.on("mousewheel",function(e){var t=l.$results.scrollTop(),n=l.$results.get(0).scrollHeight-t+e.deltaY,r=0<e.deltaY&&t-e.deltaY<=0,i=e.deltaY<0&&n<=l.$results.height();r?(l.$results.scrollTop(0),e.preventDefault(),e.stopPropagation()):i&&(l.$results.scrollTop(l.$results.get(0).scrollHeight-l.$results.height()),e.preventDefault(),e.stopPropagation())}),this.$results.on("mouseup",".select2-results__option[aria-selected]",function(e){var t=h(this),n=f.GetData(this,"data");"true"!==t.attr("aria-selected")?l.trigger("select",{originalEvent:e,data:n}):l.options.get("multiple")?l.trigger("unselect",{originalEvent:e,data:n}):l.trigger("close",{})}),this.$results.on("mouseenter",".select2-results__option[aria-selected]",function(e){var t=f.GetData(this,"data");l.getHighlightedResults().removeClass("select2-results__option--highlighted"),l.trigger("results:focus",{data:t,element:h(this)})})},r.prototype.getHighlightedResults=function(){return this.$results.find(".select2-results__option--highlighted")},r.prototype.destroy=function(){this.$results.remove()},r.prototype.ensureHighlightVisible=function(){var e=this.getHighlightedResults();if(0!==e.length){var t=this.$results.find("[aria-selected]").index(e),n=this.$results.offset().top,r=e.offset().top,i=this.$results.scrollTop()+(r-n),o=r-n;i-=2*e.outerHeight(!1),t<=2?this.$results.scrollTop(0):(o>this.$results.outerHeight()||o<0)&&this.$results.scrollTop(i)}},r.prototype.template=function(e,t){var n=this.options.get("templateResult"),r=this.options.get("escapeMarkup"),i=n(e,t);null==i?t.style.display="none":"string"==typeof i?t.innerHTML=r(i):h(t).append(i)},r}),e.define("select2/keys",[],function(){return{BACKSPACE:8,TAB:9,ENTER:13,SHIFT:16,CTRL:17,ALT:18,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46}}),e.define("select2/selection/base",["jquery","../utils","../keys"],function(n,r,i){function o(e,t){this.$element=e,this.options=t,o.__super__.constructor.call(this)}return r.Extend(o,r.Observable),o.prototype.render=function(){var e=n('<span class="select2-selection" role="combobox"  aria-haspopup="true" aria-expanded="false"></span>');return this._tabindex=0,null!=r.GetData(this.$element[0],"old-tabindex")?this._tabindex=r.GetData(this.$element[0],"old-tabindex"):null!=this.$element.attr("tabindex")&&(this._tabindex=this.$element.attr("tabindex")),e.attr("title",this.$element.attr("title")),e.attr("tabindex",this._tabindex),e.attr("aria-disabled","false"),this.$selection=e},o.prototype.bind=function(e,t){var n=this,r=e.id+"-results";this.container=e,this.$selection.on("focus",function(e){n.trigger("focus",e)}),this.$selection.on("blur",function(e){n._handleBlur(e)}),this.$selection.on("keydown",function(e){n.trigger("keypress",e),e.which===i.SPACE&&e.preventDefault()}),e.on("results:focus",function(e){n.$selection.attr("aria-activedescendant",e.data._resultId)}),e.on("selection:update",function(e){n.update(e.data)}),e.on("open",function(){n.$selection.attr("aria-expanded","true"),n.$selection.attr("aria-owns",r),n._attachCloseHandler(e)}),e.on("close",function(){n.$selection.attr("aria-expanded","false"),n.$selection.removeAttr("aria-activedescendant"),n.$selection.removeAttr("aria-owns"),n.$selection.trigger("focus"),n._detachCloseHandler(e)}),e.on("enable",function(){n.$selection.attr("tabindex",n._tabindex),n.$selection.attr("aria-disabled","false")}),e.on("disable",function(){n.$selection.attr("tabindex","-1"),n.$selection.attr("aria-disabled","true")})},o.prototype._handleBlur=function(e){var t=this;window.setTimeout(function(){document.activeElement==t.$selection[0]||n.contains(t.$selection[0],document.activeElement)||t.trigger("blur",e)},1)},o.prototype._attachCloseHandler=function(e){n(document.body).on("mousedown.select2."+e.id,function(e){var t=n(e.target).closest(".select2");n(".select2.select2-container--open").each(function(){this!=t[0]&&r.GetData(this,"element").select2("close")})})},o.prototype._detachCloseHandler=function(e){n(document.body).off("mousedown.select2."+e.id)},o.prototype.position=function(e,t){t.find(".selection").append(e)},o.prototype.destroy=function(){this._detachCloseHandler(this.container)},o.prototype.update=function(e){throw new Error("The `update` method must be defined in child classes.")},o.prototype.isEnabled=function(){return!this.isDisabled()},o.prototype.isDisabled=function(){return this.options.get("disabled")},o}),e.define("select2/selection/single",["jquery","./base","../utils","../keys"],function(e,t,n,r){function i(){i.__super__.constructor.apply(this,arguments)}return n.Extend(i,t),i.prototype.render=function(){var e=i.__super__.render.call(this);return e.addClass("select2-selection--single"),e.html('<span class="select2-selection__rendered"></span><span class="select2-selection__arrow" role="presentation"><b role="presentation"></b></span>'),e},i.prototype.bind=function(t,e){var n=this;i.__super__.bind.apply(this,arguments);var r=t.id+"-container";this.$selection.find(".select2-selection__rendered").attr("id",r).attr("role","textbox").attr("aria-readonly","true"),this.$selection.attr("aria-labelledby",r),this.$selection.on("mousedown",function(e){1===e.which&&n.trigger("toggle",{originalEvent:e})}),this.$selection.on("focus",function(e){}),this.$selection.on("blur",function(e){}),t.on("focus",function(e){t.isOpen()||n.$selection.trigger("focus")})},i.prototype.clear=function(){var e=this.$selection.find(".select2-selection__rendered");e.empty(),e.removeAttr("title")},i.prototype.display=function(e,t){var n=this.options.get("templateSelection");return this.options.get("escapeMarkup")(n(e,t))},i.prototype.selectionContainer=function(){return e("<span></span>")},i.prototype.update=function(e){if(0!==e.length){var t=e[0],n=this.$selection.find(".select2-selection__rendered"),r=this.display(t,n);n.empty().append(r);var i=t.title||t.text;i?n.attr("title",i):n.removeAttr("title")}else this.clear()},i}),e.define("select2/selection/multiple",["jquery","./base","../utils"],function(i,e,l){function n(e,t){n.__super__.constructor.apply(this,arguments)}return l.Extend(n,e),n.prototype.render=function(){var e=n.__super__.render.call(this);return e.addClass("select2-selection--multiple"),e.html('<ul class="select2-selection__rendered"></ul>'),e},n.prototype.bind=function(e,t){var r=this;n.__super__.bind.apply(this,arguments),this.$selection.on("click",function(e){r.trigger("toggle",{originalEvent:e})}),this.$selection.on("click",".select2-selection__choice__remove",function(e){if(!r.isDisabled()){var t=i(this).parent(),n=l.GetData(t[0],"data");r.trigger("unselect",{originalEvent:e,data:n})}})},n.prototype.clear=function(){var e=this.$selection.find(".select2-selection__rendered");e.empty(),e.removeAttr("title")},n.prototype.display=function(e,t){var n=this.options.get("templateSelection");return this.options.get("escapeMarkup")(n(e,t))},n.prototype.selectionContainer=function(){return i('<li class="select2-selection__choice"><span class="select2-selection__choice__remove" role="presentation">&times;</span></li>')},n.prototype.update=function(e){if(this.clear(),0!==e.length){for(var t=[],n=0;n<e.length;n++){var r=e[n],i=this.selectionContainer(),o=this.display(r,i);i.append(o);var s=r.title||r.text;s&&i.attr("title",s),l.StoreData(i[0],"data",r),t.push(i)}var a=this.$selection.find(".select2-selection__rendered");l.appendMany(a,t)}},n}),e.define("select2/selection/placeholder",["../utils"],function(e){function t(e,t,n){this.placeholder=this.normalizePlaceholder(n.get("placeholder")),e.call(this,t,n)}return t.prototype.normalizePlaceholder=function(e,t){return"string"==typeof t&&(t={id:"",text:t}),t},t.prototype.createPlaceholder=function(e,t){var n=this.selectionContainer();return n.html(this.display(t)),n.addClass("select2-selection__placeholder").removeClass("select2-selection__choice"),n},t.prototype.update=function(e,t){var n=1==t.length&&t[0].id!=this.placeholder.id;if(1<t.length||n)return e.call(this,t);this.clear();var r=this.createPlaceholder(this.placeholder);this.$selection.find(".select2-selection__rendered").append(r)},t}),e.define("select2/selection/allowClear",["jquery","../keys","../utils"],function(i,r,a){function e(){}return e.prototype.bind=function(e,t,n){var r=this;e.call(this,t,n),null==this.placeholder&&this.options.get("debug")&&window.console&&console.error&&console.error("Select2: The `allowClear` option should be used in combination with the `placeholder` option."),this.$selection.on("mousedown",".select2-selection__clear",function(e){r._handleClear(e)}),t.on("keypress",function(e){r._handleKeyboardClear(e,t)})},e.prototype._handleClear=function(e,t){if(!this.isDisabled()){var n=this.$selection.find(".select2-selection__clear");if(0!==n.length){t.stopPropagation();var r=a.GetData(n[0],"data"),i=this.$element.val();this.$element.val(this.placeholder.id);var o={data:r};if(this.trigger("clear",o),o.prevented)this.$element.val(i);else{for(var s=0;s<r.length;s++)if(o={data:r[s]},this.trigger("unselect",o),o.prevented)return void this.$element.val(i);this.$element.trigger("input").trigger("change"),this.trigger("toggle",{})}}}},e.prototype._handleKeyboardClear=function(e,t,n){n.isOpen()||t.which!=r.DELETE&&t.which!=r.BACKSPACE||this._handleClear(t)},e.prototype.update=function(e,t){if(e.call(this,t),!(0<this.$selection.find(".select2-selection__placeholder").length||0===t.length)){var n=this.options.get("translations").get("removeAllItems"),r=i('<span class="select2-selection__clear" title="'+n()+'">&times;</span>');a.StoreData(r[0],"data",t),this.$selection.find(".select2-selection__rendered").prepend(r)}},e}),e.define("select2/selection/search",["jquery","../utils","../keys"],function(r,a,l){function e(e,t,n){e.call(this,t,n)}return e.prototype.render=function(e){var t=r('<li class="select2-search select2-search--inline"><input class="select2-search__field" type="search" tabindex="-1" autocomplete="off" autocorrect="off" autocapitalize="none" spellcheck="false" role="searchbox" aria-autocomplete="list" /></li>');this.$searchContainer=t,this.$search=t.find("input");var n=e.call(this);return this._transferTabIndex(),n},e.prototype.bind=function(e,t,n){var r=this,i=t.id+"-results";e.call(this,t,n),t.on("open",function(){r.$search.attr("aria-controls",i),r.$search.trigger("focus")}),t.on("close",function(){r.$search.val(""),r.$search.removeAttr("aria-controls"),r.$search.removeAttr("aria-activedescendant"),r.$search.trigger("focus")}),t.on("enable",function(){r.$search.prop("disabled",!1),r._transferTabIndex()}),t.on("disable",function(){r.$search.prop("disabled",!0)}),t.on("focus",function(e){r.$search.trigger("focus")}),t.on("results:focus",function(e){e.data._resultId?r.$search.attr("aria-activedescendant",e.data._resultId):r.$search.removeAttr("aria-activedescendant")}),this.$selection.on("focusin",".select2-search--inline",function(e){r.trigger("focus",e)}),this.$selection.on("focusout",".select2-search--inline",function(e){r._handleBlur(e)}),this.$selection.on("keydown",".select2-search--inline",function(e){if(e.stopPropagation(),r.trigger("keypress",e),r._keyUpPrevented=e.isDefaultPrevented(),e.which===l.BACKSPACE&&""===r.$search.val()){var t=r.$searchContainer.prev(".select2-selection__choice");if(0<t.length){var n=a.GetData(t[0],"data");r.searchRemoveChoice(n),e.preventDefault()}}}),this.$selection.on("click",".select2-search--inline",function(e){r.$search.val()&&e.stopPropagation()});var o=document.documentMode,s=o&&o<=11;this.$selection.on("input.searchcheck",".select2-search--inline",function(e){s?r.$selection.off("input.search input.searchcheck"):r.$selection.off("keyup.search")}),this.$selection.on("keyup.search input.search",".select2-search--inline",function(e){if(s&&"input"===e.type)r.$selection.off("input.search input.searchcheck");else{var t=e.which;t!=l.SHIFT&&t!=l.CTRL&&t!=l.ALT&&t!=l.TAB&&r.handleSearch(e)}})},e.prototype._transferTabIndex=function(e){this.$search.attr("tabindex",this.$selection.attr("tabindex")),this.$selection.attr("tabindex","-1")},e.prototype.createPlaceholder=function(e,t){this.$search.attr("placeholder",t.text)},e.prototype.update=function(e,t){var n=this.$search[0]==document.activeElement;this.$search.attr("placeholder",""),e.call(this,t),this.$selection.find(".select2-selection__rendered").append(this.$searchContainer),this.resizeSearch(),n&&this.$search.trigger("focus")},e.prototype.handleSearch=function(){if(this.resizeSearch(),!this._keyUpPrevented){var e=this.$search.val();this.trigger("query",{term:e})}this._keyUpPrevented=!1},e.prototype.searchRemoveChoice=function(e,t){this.trigger("unselect",{data:t}),this.$search.val(t.text),this.handleSearch()},e.prototype.resizeSearch=function(){this.$search.css("width","25px");var e="";""!==this.$search.attr("placeholder")?e=this.$selection.find(".select2-selection__rendered").width():e=.75*(this.$search.val().length+1)+"em";this.$search.css("width",e)},e}),e.define("select2/selection/eventRelay",["jquery"],function(s){function e(){}return e.prototype.bind=function(e,t,n){var r=this,i=["open","opening","close","closing","select","selecting","unselect","unselecting","clear","clearing"],o=["opening","closing","selecting","unselecting","clearing"];e.call(this,t,n),t.on("*",function(e,t){if(-1!==s.inArray(e,i)){t=t||{};var n=s.Event("select2:"+e,{params:t});r.$element.trigger(n),-1!==s.inArray(e,o)&&(t.prevented=n.isDefaultPrevented())}})},e}),e.define("select2/translation",["jquery","require"],function(t,n){function r(e){this.dict=e||{}}return r.prototype.all=function(){return this.dict},r.prototype.get=function(e){return this.dict[e]},r.prototype.extend=function(e){this.dict=t.extend({},e.all(),this.dict)},r._cache={},r.loadPath=function(e){if(!(e in r._cache)){var t=n(e);r._cache[e]=t}return new r(r._cache[e])},r}),e.define("select2/diacritics",[],function(){return{"Ⓐ":"A","Ａ":"A","À":"A","Á":"A","Â":"A","Ầ":"A","Ấ":"A","Ẫ":"A","Ẩ":"A","Ã":"A","Ā":"A","Ă":"A","Ằ":"A","Ắ":"A","Ẵ":"A","Ẳ":"A","Ȧ":"A","Ǡ":"A","Ä":"A","Ǟ":"A","Ả":"A","Å":"A","Ǻ":"A","Ǎ":"A","Ȁ":"A","Ȃ":"A","Ạ":"A","Ậ":"A","Ặ":"A","Ḁ":"A","Ą":"A","Ⱥ":"A","Ɐ":"A","Ꜳ":"AA","Æ":"AE","Ǽ":"AE","Ǣ":"AE","Ꜵ":"AO","Ꜷ":"AU","Ꜹ":"AV","Ꜻ":"AV","Ꜽ":"AY","Ⓑ":"B","Ｂ":"B","Ḃ":"B","Ḅ":"B","Ḇ":"B","Ƀ":"B","Ƃ":"B","Ɓ":"B","Ⓒ":"C","Ｃ":"C","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","Ç":"C","Ḉ":"C","Ƈ":"C","Ȼ":"C","Ꜿ":"C","Ⓓ":"D","Ｄ":"D","Ḋ":"D","Ď":"D","Ḍ":"D","Ḑ":"D","Ḓ":"D","Ḏ":"D","Đ":"D","Ƌ":"D","Ɗ":"D","Ɖ":"D","Ꝺ":"D","Ǳ":"DZ","Ǆ":"DZ","ǲ":"Dz","ǅ":"Dz","Ⓔ":"E","Ｅ":"E","È":"E","É":"E","Ê":"E","Ề":"E","Ế":"E","Ễ":"E","Ể":"E","Ẽ":"E","Ē":"E","Ḕ":"E","Ḗ":"E","Ĕ":"E","Ė":"E","Ë":"E","Ẻ":"E","Ě":"E","Ȅ":"E","Ȇ":"E","Ẹ":"E","Ệ":"E","Ȩ":"E","Ḝ":"E","Ę":"E","Ḙ":"E","Ḛ":"E","Ɛ":"E","Ǝ":"E","Ⓕ":"F","Ｆ":"F","Ḟ":"F","Ƒ":"F","Ꝼ":"F","Ⓖ":"G","Ｇ":"G","Ǵ":"G","Ĝ":"G","Ḡ":"G","Ğ":"G","Ġ":"G","Ǧ":"G","Ģ":"G","Ǥ":"G","Ɠ":"G","Ꞡ":"G","Ᵹ":"G","Ꝿ":"G","Ⓗ":"H","Ｈ":"H","Ĥ":"H","Ḣ":"H","Ḧ":"H","Ȟ":"H","Ḥ":"H","Ḩ":"H","Ḫ":"H","Ħ":"H","Ⱨ":"H","Ⱶ":"H","Ɥ":"H","Ⓘ":"I","Ｉ":"I","Ì":"I","Í":"I","Î":"I","Ĩ":"I","Ī":"I","Ĭ":"I","İ":"I","Ï":"I","Ḯ":"I","Ỉ":"I","Ǐ":"I","Ȉ":"I","Ȋ":"I","Ị":"I","Į":"I","Ḭ":"I","Ɨ":"I","Ⓙ":"J","Ｊ":"J","Ĵ":"J","Ɉ":"J","Ⓚ":"K","Ｋ":"K","Ḱ":"K","Ǩ":"K","Ḳ":"K","Ķ":"K","Ḵ":"K","Ƙ":"K","Ⱪ":"K","Ꝁ":"K","Ꝃ":"K","Ꝅ":"K","Ꞣ":"K","Ⓛ":"L","Ｌ":"L","Ŀ":"L","Ĺ":"L","Ľ":"L","Ḷ":"L","Ḹ":"L","Ļ":"L","Ḽ":"L","Ḻ":"L","Ł":"L","Ƚ":"L","Ɫ":"L","Ⱡ":"L","Ꝉ":"L","Ꝇ":"L","Ꞁ":"L","Ǉ":"LJ","ǈ":"Lj","Ⓜ":"M","Ｍ":"M","Ḿ":"M","Ṁ":"M","Ṃ":"M","Ɱ":"M","Ɯ":"M","Ⓝ":"N","Ｎ":"N","Ǹ":"N","Ń":"N","Ñ":"N","Ṅ":"N","Ň":"N","Ṇ":"N","Ņ":"N","Ṋ":"N","Ṉ":"N","Ƞ":"N","Ɲ":"N","Ꞑ":"N","Ꞥ":"N","Ǌ":"NJ","ǋ":"Nj","Ⓞ":"O","Ｏ":"O","Ò":"O","Ó":"O","Ô":"O","Ồ":"O","Ố":"O","Ỗ":"O","Ổ":"O","Õ":"O","Ṍ":"O","Ȭ":"O","Ṏ":"O","Ō":"O","Ṑ":"O","Ṓ":"O","Ŏ":"O","Ȯ":"O","Ȱ":"O","Ö":"O","Ȫ":"O","Ỏ":"O","Ő":"O","Ǒ":"O","Ȍ":"O","Ȏ":"O","Ơ":"O","Ờ":"O","Ớ":"O","Ỡ":"O","Ở":"O","Ợ":"O","Ọ":"O","Ộ":"O","Ǫ":"O","Ǭ":"O","Ø":"O","Ǿ":"O","Ɔ":"O","Ɵ":"O","Ꝋ":"O","Ꝍ":"O","Œ":"OE","Ƣ":"OI","Ꝏ":"OO","Ȣ":"OU","Ⓟ":"P","Ｐ":"P","Ṕ":"P","Ṗ":"P","Ƥ":"P","Ᵽ":"P","Ꝑ":"P","Ꝓ":"P","Ꝕ":"P","Ⓠ":"Q","Ｑ":"Q","Ꝗ":"Q","Ꝙ":"Q","Ɋ":"Q","Ⓡ":"R","Ｒ":"R","Ŕ":"R","Ṙ":"R","Ř":"R","Ȑ":"R","Ȓ":"R","Ṛ":"R","Ṝ":"R","Ŗ":"R","Ṟ":"R","Ɍ":"R","Ɽ":"R","Ꝛ":"R","Ꞧ":"R","Ꞃ":"R","Ⓢ":"S","Ｓ":"S","ẞ":"S","Ś":"S","Ṥ":"S","Ŝ":"S","Ṡ":"S","Š":"S","Ṧ":"S","Ṣ":"S","Ṩ":"S","Ș":"S","Ş":"S","Ȿ":"S","Ꞩ":"S","Ꞅ":"S","Ⓣ":"T","Ｔ":"T","Ṫ":"T","Ť":"T","Ṭ":"T","Ț":"T","Ţ":"T","Ṱ":"T","Ṯ":"T","Ŧ":"T","Ƭ":"T","Ʈ":"T","Ⱦ":"T","Ꞇ":"T","Ꜩ":"TZ","Ⓤ":"U","Ｕ":"U","Ù":"U","Ú":"U","Û":"U","Ũ":"U","Ṹ":"U","Ū":"U","Ṻ":"U","Ŭ":"U","Ü":"U","Ǜ":"U","Ǘ":"U","Ǖ":"U","Ǚ":"U","Ủ":"U","Ů":"U","Ű":"U","Ǔ":"U","Ȕ":"U","Ȗ":"U","Ư":"U","Ừ":"U","Ứ":"U","Ữ":"U","Ử":"U","Ự":"U","Ụ":"U","Ṳ":"U","Ų":"U","Ṷ":"U","Ṵ":"U","Ʉ":"U","Ⓥ":"V","Ｖ":"V","Ṽ":"V","Ṿ":"V","Ʋ":"V","Ꝟ":"V","Ʌ":"V","Ꝡ":"VY","Ⓦ":"W","Ｗ":"W","Ẁ":"W","Ẃ":"W","Ŵ":"W","Ẇ":"W","Ẅ":"W","Ẉ":"W","Ⱳ":"W","Ⓧ":"X","Ｘ":"X","Ẋ":"X","Ẍ":"X","Ⓨ":"Y","Ｙ":"Y","Ỳ":"Y","Ý":"Y","Ŷ":"Y","Ỹ":"Y","Ȳ":"Y","Ẏ":"Y","Ÿ":"Y","Ỷ":"Y","Ỵ":"Y","Ƴ":"Y","Ɏ":"Y","Ỿ":"Y","Ⓩ":"Z","Ｚ":"Z","Ź":"Z","Ẑ":"Z","Ż":"Z","Ž":"Z","Ẓ":"Z","Ẕ":"Z","Ƶ":"Z","Ȥ":"Z","Ɀ":"Z","Ⱬ":"Z","Ꝣ":"Z","ⓐ":"a","ａ":"a","ẚ":"a","à":"a","á":"a","â":"a","ầ":"a","ấ":"a","ẫ":"a","ẩ":"a","ã":"a","ā":"a","ă":"a","ằ":"a","ắ":"a","ẵ":"a","ẳ":"a","ȧ":"a","ǡ":"a","ä":"a","ǟ":"a","ả":"a","å":"a","ǻ":"a","ǎ":"a","ȁ":"a","ȃ":"a","ạ":"a","ậ":"a","ặ":"a","ḁ":"a","ą":"a","ⱥ":"a","ɐ":"a","ꜳ":"aa","æ":"ae","ǽ":"ae","ǣ":"ae","ꜵ":"ao","ꜷ":"au","ꜹ":"av","ꜻ":"av","ꜽ":"ay","ⓑ":"b","ｂ":"b","ḃ":"b","ḅ":"b","ḇ":"b","ƀ":"b","ƃ":"b","ɓ":"b","ⓒ":"c","ｃ":"c","ć":"c","ĉ":"c","ċ":"c","č":"c","ç":"c","ḉ":"c","ƈ":"c","ȼ":"c","ꜿ":"c","ↄ":"c","ⓓ":"d","ｄ":"d","ḋ":"d","ď":"d","ḍ":"d","ḑ":"d","ḓ":"d","ḏ":"d","đ":"d","ƌ":"d","ɖ":"d","ɗ":"d","ꝺ":"d","ǳ":"dz","ǆ":"dz","ⓔ":"e","ｅ":"e","è":"e","é":"e","ê":"e","ề":"e","ế":"e","ễ":"e","ể":"e","ẽ":"e","ē":"e","ḕ":"e","ḗ":"e","ĕ":"e","ė":"e","ë":"e","ẻ":"e","ě":"e","ȅ":"e","ȇ":"e","ẹ":"e","ệ":"e","ȩ":"e","ḝ":"e","ę":"e","ḙ":"e","ḛ":"e","ɇ":"e","ɛ":"e","ǝ":"e","ⓕ":"f","ｆ":"f","ḟ":"f","ƒ":"f","ꝼ":"f","ⓖ":"g","ｇ":"g","ǵ":"g","ĝ":"g","ḡ":"g","ğ":"g","ġ":"g","ǧ":"g","ģ":"g","ǥ":"g","ɠ":"g","ꞡ":"g","ᵹ":"g","ꝿ":"g","ⓗ":"h","ｈ":"h","ĥ":"h","ḣ":"h","ḧ":"h","ȟ":"h","ḥ":"h","ḩ":"h","ḫ":"h","ẖ":"h","ħ":"h","ⱨ":"h","ⱶ":"h","ɥ":"h","ƕ":"hv","ⓘ":"i","ｉ":"i","ì":"i","í":"i","î":"i","ĩ":"i","ī":"i","ĭ":"i","ï":"i","ḯ":"i","ỉ":"i","ǐ":"i","ȉ":"i","ȋ":"i","ị":"i","į":"i","ḭ":"i","ɨ":"i","ı":"i","ⓙ":"j","ｊ":"j","ĵ":"j","ǰ":"j","ɉ":"j","ⓚ":"k","ｋ":"k","ḱ":"k","ǩ":"k","ḳ":"k","ķ":"k","ḵ":"k","ƙ":"k","ⱪ":"k","ꝁ":"k","ꝃ":"k","ꝅ":"k","ꞣ":"k","ⓛ":"l","ｌ":"l","ŀ":"l","ĺ":"l","ľ":"l","ḷ":"l","ḹ":"l","ļ":"l","ḽ":"l","ḻ":"l","ſ":"l","ł":"l","ƚ":"l","ɫ":"l","ⱡ":"l","ꝉ":"l","ꞁ":"l","ꝇ":"l","ǉ":"lj","ⓜ":"m","ｍ":"m","ḿ":"m","ṁ":"m","ṃ":"m","ɱ":"m","ɯ":"m","ⓝ":"n","ｎ":"n","ǹ":"n","ń":"n","ñ":"n","ṅ":"n","ň":"n","ṇ":"n","ņ":"n","ṋ":"n","ṉ":"n","ƞ":"n","ɲ":"n","ŉ":"n","ꞑ":"n","ꞥ":"n","ǌ":"nj","ⓞ":"o","ｏ":"o","ò":"o","ó":"o","ô":"o","ồ":"o","ố":"o","ỗ":"o","ổ":"o","õ":"o","ṍ":"o","ȭ":"o","ṏ":"o","ō":"o","ṑ":"o","ṓ":"o","ŏ":"o","ȯ":"o","ȱ":"o","ö":"o","ȫ":"o","ỏ":"o","ő":"o","ǒ":"o","ȍ":"o","ȏ":"o","ơ":"o","ờ":"o","ớ":"o","ỡ":"o","ở":"o","ợ":"o","ọ":"o","ộ":"o","ǫ":"o","ǭ":"o","ø":"o","ǿ":"o","ɔ":"o","ꝋ":"o","ꝍ":"o","ɵ":"o","œ":"oe","ƣ":"oi","ȣ":"ou","ꝏ":"oo","ⓟ":"p","ｐ":"p","ṕ":"p","ṗ":"p","ƥ":"p","ᵽ":"p","ꝑ":"p","ꝓ":"p","ꝕ":"p","ⓠ":"q","ｑ":"q","ɋ":"q","ꝗ":"q","ꝙ":"q","ⓡ":"r","ｒ":"r","ŕ":"r","ṙ":"r","ř":"r","ȑ":"r","ȓ":"r","ṛ":"r","ṝ":"r","ŗ":"r","ṟ":"r","ɍ":"r","ɽ":"r","ꝛ":"r","ꞧ":"r","ꞃ":"r","ⓢ":"s","ｓ":"s","ß":"s","ś":"s","ṥ":"s","ŝ":"s","ṡ":"s","š":"s","ṧ":"s","ṣ":"s","ṩ":"s","ș":"s","ş":"s","ȿ":"s","ꞩ":"s","ꞅ":"s","ẛ":"s","ⓣ":"t","ｔ":"t","ṫ":"t","ẗ":"t","ť":"t","ṭ":"t","ț":"t","ţ":"t","ṱ":"t","ṯ":"t","ŧ":"t","ƭ":"t","ʈ":"t","ⱦ":"t","ꞇ":"t","ꜩ":"tz","ⓤ":"u","ｕ":"u","ù":"u","ú":"u","û":"u","ũ":"u","ṹ":"u","ū":"u","ṻ":"u","ŭ":"u","ü":"u","ǜ":"u","ǘ":"u","ǖ":"u","ǚ":"u","ủ":"u","ů":"u","ű":"u","ǔ":"u","ȕ":"u","ȗ":"u","ư":"u","ừ":"u","ứ":"u","ữ":"u","ử":"u","ự":"u","ụ":"u","ṳ":"u","ų":"u","ṷ":"u","ṵ":"u","ʉ":"u","ⓥ":"v","ｖ":"v","ṽ":"v","ṿ":"v","ʋ":"v","ꝟ":"v","ʌ":"v","ꝡ":"vy","ⓦ":"w","ｗ":"w","ẁ":"w","ẃ":"w","ŵ":"w","ẇ":"w","ẅ":"w","ẘ":"w","ẉ":"w","ⱳ":"w","ⓧ":"x","ｘ":"x","ẋ":"x","ẍ":"x","ⓨ":"y","ｙ":"y","ỳ":"y","ý":"y","ŷ":"y","ỹ":"y","ȳ":"y","ẏ":"y","ÿ":"y","ỷ":"y","ẙ":"y","ỵ":"y","ƴ":"y","ɏ":"y","ỿ":"y","ⓩ":"z","ｚ":"z","ź":"z","ẑ":"z","ż":"z","ž":"z","ẓ":"z","ẕ":"z","ƶ":"z","ȥ":"z","ɀ":"z","ⱬ":"z","ꝣ":"z","Ά":"Α","Έ":"Ε","Ή":"Η","Ί":"Ι","Ϊ":"Ι","Ό":"Ο","Ύ":"Υ","Ϋ":"Υ","Ώ":"Ω","ά":"α","έ":"ε","ή":"η","ί":"ι","ϊ":"ι","ΐ":"ι","ό":"ο","ύ":"υ","ϋ":"υ","ΰ":"υ","ώ":"ω","ς":"σ","’":"'"}}),e.define("select2/data/base",["../utils"],function(r){function n(e,t){n.__super__.constructor.call(this)}return r.Extend(n,r.Observable),n.prototype.current=function(e){throw new Error("The `current` method must be defined in child classes.")},n.prototype.query=function(e,t){throw new Error("The `query` method must be defined in child classes.")},n.prototype.bind=function(e,t){},n.prototype.destroy=function(){},n.prototype.generateResultId=function(e,t){var n=e.id+"-result-";return n+=r.generateChars(4),null!=t.id?n+="-"+t.id.toString():n+="-"+r.generateChars(4),n},n}),e.define("select2/data/select",["./base","../utils","jquery"],function(e,a,l){function n(e,t){this.$element=e,this.options=t,n.__super__.constructor.call(this)}return a.Extend(n,e),n.prototype.current=function(e){var n=[],r=this;this.$element.find(":selected").each(function(){var e=l(this),t=r.item(e);n.push(t)}),e(n)},n.prototype.select=function(i){var o=this;if(i.selected=!0,l(i.element).is("option"))return i.element.selected=!0,void this.$element.trigger("input").trigger("change");if(this.$element.prop("multiple"))this.current(function(e){var t=[];(i=[i]).push.apply(i,e);for(var n=0;n<i.length;n++){var r=i[n].id;-1===l.inArray(r,t)&&t.push(r)}o.$element.val(t),o.$element.trigger("input").trigger("change")});else{var e=i.id;this.$element.val(e),this.$element.trigger("input").trigger("change")}},n.prototype.unselect=function(i){var o=this;if(this.$element.prop("multiple")){if(i.selected=!1,l(i.element).is("option"))return i.element.selected=!1,void this.$element.trigger("input").trigger("change");this.current(function(e){for(var t=[],n=0;n<e.length;n++){var r=e[n].id;r!==i.id&&-1===l.inArray(r,t)&&t.push(r)}o.$element.val(t),o.$element.trigger("input").trigger("change")})}},n.prototype.bind=function(e,t){var n=this;(this.container=e).on("select",function(e){n.select(e.data)}),e.on("unselect",function(e){n.unselect(e.data)})},n.prototype.destroy=function(){this.$element.find("*").each(function(){a.RemoveData(this)})},n.prototype.query=function(r,e){var i=[],o=this;this.$element.children().each(function(){var e=l(this);if(e.is("option")||e.is("optgroup")){var t=o.item(e),n=o.matches(r,t);null!==n&&i.push(n)}}),e({results:i})},n.prototype.addOptions=function(e){a.appendMany(this.$element,e)},n.prototype.option=function(e){var t;e.children?(t=document.createElement("optgroup")).label=e.text:void 0!==(t=document.createElement("option")).textContent?t.textContent=e.text:t.innerText=e.text,void 0!==e.id&&(t.value=e.id),e.disabled&&(t.disabled=!0),e.selected&&(t.selected=!0),e.title&&(t.title=e.title);var n=l(t),r=this._normalizeItem(e);return r.element=t,a.StoreData(t,"data",r),n},n.prototype.item=function(e){var t={};if(null!=(t=a.GetData(e[0],"data")))return t;if(e.is("option"))t={id:e.val(),text:e.text(),disabled:e.prop("disabled"),selected:e.prop("selected"),title:e.prop("title")};else if(e.is("optgroup")){t={text:e.prop("label"),children:[],title:e.prop("title")};for(var n=e.children("option"),r=[],i=0;i<n.length;i++){var o=l(n[i]),s=this.item(o);r.push(s)}t.children=r}return(t=this._normalizeItem(t)).element=e[0],a.StoreData(e[0],"data",t),t},n.prototype._normalizeItem=function(e){e!==Object(e)&&(e={id:e,text:e});return null!=(e=l.extend({},{text:""},e)).id&&(e.id=e.id.toString()),null!=e.text&&(e.text=e.text.toString()),null==e._resultId&&e.id&&null!=this.container&&(e._resultId=this.generateResultId(this.container,e)),l.extend({},{selected:!1,disabled:!1},e)},n.prototype.matches=function(e,t){return this.options.get("matcher")(e,t)},n}),e.define("select2/data/array",["./select","../utils","jquery"],function(e,f,g){function r(e,t){this._dataToConvert=t.get("data")||[],r.__super__.constructor.call(this,e,t)}return f.Extend(r,e),r.prototype.bind=function(e,t){r.__super__.bind.call(this,e,t),this.addOptions(this.convertToOptions(this._dataToConvert))},r.prototype.select=function(n){var e=this.$element.find("option").filter(function(e,t){return t.value==n.id.toString()});0===e.length&&(e=this.option(n),this.addOptions(e)),r.__super__.select.call(this,n)},r.prototype.convertToOptions=function(e){var t=this,n=this.$element.find("option"),r=n.map(function(){return t.item(g(this)).id}).get(),i=[];function o(e){return function(){return g(this).val()==e.id}}for(var s=0;s<e.length;s++){var a=this._normalizeItem(e[s]);if(0<=g.inArray(a.id,r)){var l=n.filter(o(a)),c=this.item(l),u=g.extend(!0,{},a,c),d=this.option(u);l.replaceWith(d)}else{var p=this.option(a);if(a.children){var h=this.convertToOptions(a.children);f.appendMany(p,h)}i.push(p)}}return i},r}),e.define("select2/data/ajax",["./array","../utils","jquery"],function(e,t,o){function n(e,t){this.ajaxOptions=this._applyDefaults(t.get("ajax")),null!=this.ajaxOptions.processResults&&(this.processResults=this.ajaxOptions.processResults),n.__super__.constructor.call(this,e,t)}return t.Extend(n,e),n.prototype._applyDefaults=function(e){var t={data:function(e){return o.extend({},e,{q:e.term})},transport:function(e,t,n){var r=o.ajax(e);return r.then(t),r.fail(n),r}};return o.extend({},t,e,!0)},n.prototype.processResults=function(e){return e},n.prototype.query=function(n,r){var i=this;null!=this._request&&(o.isFunction(this._request.abort)&&this._request.abort(),this._request=null);var t=o.extend({type:"GET"},this.ajaxOptions);function e(){var e=t.transport(t,function(e){var t=i.processResults(e,n);i.options.get("debug")&&window.console&&console.error&&(t&&t.results&&o.isArray(t.results)||console.error("Select2: The AJAX results did not return an array in the `results` key of the response.")),r(t)},function(){"status"in e&&(0===e.status||"0"===e.status)||i.trigger("results:message",{message:"errorLoading"})});i._request=e}"function"==typeof t.url&&(t.url=t.url.call(this.$element,n)),"function"==typeof t.data&&(t.data=t.data.call(this.$element,n)),this.ajaxOptions.delay&&null!=n.term?(this._queryTimeout&&window.clearTimeout(this._queryTimeout),this._queryTimeout=window.setTimeout(e,this.ajaxOptions.delay)):e()},n}),e.define("select2/data/tags",["jquery"],function(u){function e(e,t,n){var r=n.get("tags"),i=n.get("createTag");void 0!==i&&(this.createTag=i);var o=n.get("insertTag");if(void 0!==o&&(this.insertTag=o),e.call(this,t,n),u.isArray(r))for(var s=0;s<r.length;s++){var a=r[s],l=this._normalizeItem(a),c=this.option(l);this.$element.append(c)}}return e.prototype.query=function(e,c,u){var d=this;this._removeOldTags(),null!=c.term&&null==c.page?e.call(this,c,function e(t,n){for(var r=t.results,i=0;i<r.length;i++){var o=r[i],s=null!=o.children&&!e({results:o.children},!0);if((o.text||"").toUpperCase()===(c.term||"").toUpperCase()||s)return!n&&(t.data=r,void u(t))}if(n)return!0;var a=d.createTag(c);if(null!=a){var l=d.option(a);l.attr("data-select2-tag",!0),d.addOptions([l]),d.insertTag(r,a)}t.results=r,u(t)}):e.call(this,c,u)},e.prototype.createTag=function(e,t){var n=u.trim(t.term);return""===n?null:{id:n,text:n}},e.prototype.insertTag=function(e,t,n){t.unshift(n)},e.prototype._removeOldTags=function(e){this.$element.find("option[data-select2-tag]").each(function(){this.selected||u(this).remove()})},e}),e.define("select2/data/tokenizer",["jquery"],function(d){function e(e,t,n){var r=n.get("tokenizer");void 0!==r&&(this.tokenizer=r),e.call(this,t,n)}return e.prototype.bind=function(e,t,n){e.call(this,t,n),this.$search=t.dropdown.$search||t.selection.$search||n.find(".select2-search__field")},e.prototype.query=function(e,t,n){var i=this;t.term=t.term||"";var r=this.tokenizer(t,this.options,function(e){var t,n=i._normalizeItem(e);if(!i.$element.find("option").filter(function(){return d(this).val()===n.id}).length){var r=i.option(n);r.attr("data-select2-tag",!0),i._removeOldTags(),i.addOptions([r])}t=n,i.trigger("select",{data:t})});r.term!==t.term&&(this.$search.length&&(this.$search.val(r.term),this.$search.trigger("focus")),t.term=r.term),e.call(this,t,n)},e.prototype.tokenizer=function(e,t,n,r){for(var i=n.get("tokenSeparators")||[],o=t.term,s=0,a=this.createTag||function(e){return{id:e.term,text:e.term}};s<o.length;){var l=o[s];if(-1!==d.inArray(l,i)){var c=o.substr(0,s),u=a(d.extend({},t,{term:c}));null!=u?(r(u),o=o.substr(s+1)||"",s=0):s++}else s++}return{term:o}},e}),e.define("select2/data/minimumInputLength",[],function(){function e(e,t,n){this.minimumInputLength=n.get("minimumInputLength"),e.call(this,t,n)}return e.prototype.query=function(e,t,n){t.term=t.term||"",t.term.length<this.minimumInputLength?this.trigger("results:message",{message:"inputTooShort",args:{minimum:this.minimumInputLength,input:t.term,params:t}}):e.call(this,t,n)},e}),e.define("select2/data/maximumInputLength",[],function(){function e(e,t,n){this.maximumInputLength=n.get("maximumInputLength"),e.call(this,t,n)}return e.prototype.query=function(e,t,n){t.term=t.term||"",0<this.maximumInputLength&&t.term.length>this.maximumInputLength?this.trigger("results:message",{message:"inputTooLong",args:{maximum:this.maximumInputLength,input:t.term,params:t}}):e.call(this,t,n)},e}),e.define("select2/data/maximumSelectionLength",[],function(){function e(e,t,n){this.maximumSelectionLength=n.get("maximumSelectionLength"),e.call(this,t,n)}return e.prototype.bind=function(e,t,n){var r=this;e.call(this,t,n),t.on("select",function(){r._checkIfMaximumSelected()})},e.prototype.query=function(e,t,n){var r=this;this._checkIfMaximumSelected(function(){e.call(r,t,n)})},e.prototype._checkIfMaximumSelected=function(e,n){var r=this;this.current(function(e){var t=null!=e?e.length:0;0<r.maximumSelectionLength&&t>=r.maximumSelectionLength?r.trigger("results:message",{message:"maximumSelected",args:{maximum:r.maximumSelectionLength}}):n&&n()})},e}),e.define("select2/dropdown",["jquery","./utils"],function(t,e){function n(e,t){this.$element=e,this.options=t,n.__super__.constructor.call(this)}return e.Extend(n,e.Observable),n.prototype.render=function(){var e=t('<span class="select2-dropdown"><span class="select2-results"></span></span>');return e.attr("dir",this.options.get("dir")),this.$dropdown=e},n.prototype.bind=function(){},n.prototype.position=function(e,t){},n.prototype.destroy=function(){this.$dropdown.remove()},n}),e.define("select2/dropdown/search",["jquery","../utils"],function(o,e){function t(){}return t.prototype.render=function(e){var t=e.call(this),n=o('<span class="select2-search select2-search--dropdown"><input class="select2-search__field" type="search" tabindex="-1" autocomplete="off" autocorrect="off" autocapitalize="none" spellcheck="false" role="searchbox" aria-autocomplete="list" /></span>');return this.$searchContainer=n,this.$search=n.find("input"),t.prepend(n),t},t.prototype.bind=function(e,t,n){var r=this,i=t.id+"-results";e.call(this,t,n),this.$search.on("keydown",function(e){r.trigger("keypress",e),r._keyUpPrevented=e.isDefaultPrevented()}),this.$search.on("input",function(e){o(this).off("keyup")}),this.$search.on("keyup input",function(e){r.handleSearch(e)}),t.on("open",function(){r.$search.attr("tabindex",0),r.$search.attr("aria-controls",i),r.$search.trigger("focus"),window.setTimeout(function(){r.$search.trigger("focus")},0)}),t.on("close",function(){r.$search.attr("tabindex",-1),r.$search.removeAttr("aria-controls"),r.$search.removeAttr("aria-activedescendant"),r.$search.val(""),r.$search.trigger("blur")}),t.on("focus",function(){t.isOpen()||r.$search.trigger("focus")}),t.on("results:all",function(e){null!=e.query.term&&""!==e.query.term||(r.showSearch(e)?r.$searchContainer.removeClass("select2-search--hide"):r.$searchContainer.addClass("select2-search--hide"))}),t.on("results:focus",function(e){e.data._resultId?r.$search.attr("aria-activedescendant",e.data._resultId):r.$search.removeAttr("aria-activedescendant")})},t.prototype.handleSearch=function(e){if(!this._keyUpPrevented){var t=this.$search.val();this.trigger("query",{term:t})}this._keyUpPrevented=!1},t.prototype.showSearch=function(e,t){return!0},t}),e.define("select2/dropdown/hidePlaceholder",[],function(){function e(e,t,n,r){this.placeholder=this.normalizePlaceholder(n.get("placeholder")),e.call(this,t,n,r)}return e.prototype.append=function(e,t){t.results=this.removePlaceholder(t.results),e.call(this,t)},e.prototype.normalizePlaceholder=function(e,t){return"string"==typeof t&&(t={id:"",text:t}),t},e.prototype.removePlaceholder=function(e,t){for(var n=t.slice(0),r=t.length-1;0<=r;r--){var i=t[r];this.placeholder.id===i.id&&n.splice(r,1)}return n},e}),e.define("select2/dropdown/infiniteScroll",["jquery"],function(n){function e(e,t,n,r){this.lastParams={},e.call(this,t,n,r),this.$loadingMore=this.createLoadingMore(),this.loading=!1}return e.prototype.append=function(e,t){this.$loadingMore.remove(),this.loading=!1,e.call(this,t),this.showLoadingMore(t)&&(this.$results.append(this.$loadingMore),this.loadMoreIfNeeded())},e.prototype.bind=function(e,t,n){var r=this;e.call(this,t,n),t.on("query",function(e){r.lastParams=e,r.loading=!0}),t.on("query:append",function(e){r.lastParams=e,r.loading=!0}),this.$results.on("scroll",this.loadMoreIfNeeded.bind(this))},e.prototype.loadMoreIfNeeded=function(){var e=n.contains(document.documentElement,this.$loadingMore[0]);if(!this.loading&&e){var t=this.$results.offset().top+this.$results.outerHeight(!1);this.$loadingMore.offset().top+this.$loadingMore.outerHeight(!1)<=t+50&&this.loadMore()}},e.prototype.loadMore=function(){this.loading=!0;var e=n.extend({},{page:1},this.lastParams);e.page++,this.trigger("query:append",e)},e.prototype.showLoadingMore=function(e,t){return t.pagination&&t.pagination.more},e.prototype.createLoadingMore=function(){var e=n('<li class="select2-results__option select2-results__option--load-more"role="option" aria-disabled="true"></li>'),t=this.options.get("translations").get("loadingMore");return e.html(t(this.lastParams)),e},e}),e.define("select2/dropdown/attachBody",["jquery","../utils"],function(f,a){function e(e,t,n){this.$dropdownParent=f(n.get("dropdownParent")||document.body),e.call(this,t,n)}return e.prototype.bind=function(e,t,n){var r=this;e.call(this,t,n),t.on("open",function(){r._showDropdown(),r._attachPositioningHandler(t),r._bindContainerResultHandlers(t)}),t.on("close",function(){r._hideDropdown(),r._detachPositioningHandler(t)}),this.$dropdownContainer.on("mousedown",function(e){e.stopPropagation()})},e.prototype.destroy=function(e){e.call(this),this.$dropdownContainer.remove()},e.prototype.position=function(e,t,n){t.attr("class",n.attr("class")),t.removeClass("select2"),t.addClass("select2-container--open"),t.css({position:"absolute",top:-999999}),this.$container=n},e.prototype.render=function(e){var t=f("<span></span>"),n=e.call(this);return t.append(n),this.$dropdownContainer=t},e.prototype._hideDropdown=function(e){this.$dropdownContainer.detach()},e.prototype._bindContainerResultHandlers=function(e,t){if(!this._containerResultsHandlersBound){var n=this;t.on("results:all",function(){n._positionDropdown(),n._resizeDropdown()}),t.on("results:append",function(){n._positionDropdown(),n._resizeDropdown()}),t.on("results:message",function(){n._positionDropdown(),n._resizeDropdown()}),t.on("select",function(){n._positionDropdown(),n._resizeDropdown()}),t.on("unselect",function(){n._positionDropdown(),n._resizeDropdown()}),this._containerResultsHandlersBound=!0}},e.prototype._attachPositioningHandler=function(e,t){var n=this,r="scroll.select2."+t.id,i="resize.select2."+t.id,o="orientationchange.select2."+t.id,s=this.$container.parents().filter(a.hasScroll);s.each(function(){a.StoreData(this,"select2-scroll-position",{x:f(this).scrollLeft(),y:f(this).scrollTop()})}),s.on(r,function(e){var t=a.GetData(this,"select2-scroll-position");f(this).scrollTop(t.y)}),f(window).on(r+" "+i+" "+o,function(e){n._positionDropdown(),n._resizeDropdown()})},e.prototype._detachPositioningHandler=function(e,t){var n="scroll.select2."+t.id,r="resize.select2."+t.id,i="orientationchange.select2."+t.id;this.$container.parents().filter(a.hasScroll).off(n),f(window).off(n+" "+r+" "+i)},e.prototype._positionDropdown=function(){var e=f(window),t=this.$dropdown.hasClass("select2-dropdown--above"),n=this.$dropdown.hasClass("select2-dropdown--below"),r=null,i=this.$container.offset();i.bottom=i.top+this.$container.outerHeight(!1);var o={height:this.$container.outerHeight(!1)};o.top=i.top,o.bottom=i.top+o.height;var s=this.$dropdown.outerHeight(!1),a=e.scrollTop(),l=e.scrollTop()+e.height(),c=a<i.top-s,u=l>i.bottom+s,d={left:i.left,top:o.bottom},p=this.$dropdownParent;"static"===p.css("position")&&(p=p.offsetParent());var h={top:0,left:0};(f.contains(document.body,p[0])||p[0].isConnected)&&(h=p.offset()),d.top-=h.top,d.left-=h.left,t||n||(r="below"),u||!c||t?!c&&u&&t&&(r="below"):r="above",("above"==r||t&&"below"!==r)&&(d.top=o.top-h.top-s),null!=r&&(this.$dropdown.removeClass("select2-dropdown--below select2-dropdown--above").addClass("select2-dropdown--"+r),this.$container.removeClass("select2-container--below select2-container--above").addClass("select2-container--"+r)),this.$dropdownContainer.css(d)},e.prototype._resizeDropdown=function(){var e={width:this.$container.outerWidth(!1)+"px"};this.options.get("dropdownAutoWidth")&&(e.minWidth=e.width,e.position="relative",e.width="auto"),this.$dropdown.css(e)},e.prototype._showDropdown=function(e){this.$dropdownContainer.appendTo(this.$dropdownParent),this._positionDropdown(),this._resizeDropdown()},e}),e.define("select2/dropdown/minimumResultsForSearch",[],function(){function e(e,t,n,r){this.minimumResultsForSearch=n.get("minimumResultsForSearch"),this.minimumResultsForSearch<0&&(this.minimumResultsForSearch=1/0),e.call(this,t,n,r)}return e.prototype.showSearch=function(e,t){return!(function e(t){for(var n=0,r=0;r<t.length;r++){var i=t[r];i.children?n+=e(i.children):n++}return n}(t.data.results)<this.minimumResultsForSearch)&&e.call(this,t)},e}),e.define("select2/dropdown/selectOnClose",["../utils"],function(o){function e(){}return e.prototype.bind=function(e,t,n){var r=this;e.call(this,t,n),t.on("close",function(e){r._handleSelectOnClose(e)})},e.prototype._handleSelectOnClose=function(e,t){if(t&&null!=t.originalSelect2Event){var n=t.originalSelect2Event;if("select"===n._type||"unselect"===n._type)return}var r=this.getHighlightedResults();if(!(r.length<1)){var i=o.GetData(r[0],"data");null!=i.element&&i.element.selected||null==i.element&&i.selected||this.trigger("select",{data:i})}},e}),e.define("select2/dropdown/closeOnSelect",[],function(){function e(){}return e.prototype.bind=function(e,t,n){var r=this;e.call(this,t,n),t.on("select",function(e){r._selectTriggered(e)}),t.on("unselect",function(e){r._selectTriggered(e)})},e.prototype._selectTriggered=function(e,t){var n=t.originalEvent;n&&(n.ctrlKey||n.metaKey)||this.trigger("close",{originalEvent:n,originalSelect2Event:t})},e}),e.define("select2/i18n/en",[],function(){return{errorLoading:function(){return"The results could not be loaded."},inputTooLong:function(e){var t=e.input.length-e.maximum,n="Please delete "+t+" character";return 1!=t&&(n+="s"),n},inputTooShort:function(e){return"Please enter "+(e.minimum-e.input.length)+" or more characters"},loadingMore:function(){return"Loading more results…"},maximumSelected:function(e){var t="You can only select "+e.maximum+" item";return 1!=e.maximum&&(t+="s"),t},noResults:function(){return"No results found"},searching:function(){return"Searching…"},removeAllItems:function(){return"Remove all items"}}}),e.define("select2/defaults",["jquery","require","./results","./selection/single","./selection/multiple","./selection/placeholder","./selection/allowClear","./selection/search","./selection/eventRelay","./utils","./translation","./diacritics","./data/select","./data/array","./data/ajax","./data/tags","./data/tokenizer","./data/minimumInputLength","./data/maximumInputLength","./data/maximumSelectionLength","./dropdown","./dropdown/search","./dropdown/hidePlaceholder","./dropdown/infiniteScroll","./dropdown/attachBody","./dropdown/minimumResultsForSearch","./dropdown/selectOnClose","./dropdown/closeOnSelect","./i18n/en"],function(c,u,d,p,h,f,g,m,v,y,s,t,_,$,b,w,A,x,D,S,E,C,O,T,q,L,I,j,e){function n(){this.reset()}return n.prototype.apply=function(e){if(null==(e=c.extend(!0,{},this.defaults,e)).dataAdapter){if(null!=e.ajax?e.dataAdapter=b:null!=e.data?e.dataAdapter=$:e.dataAdapter=_,0<e.minimumInputLength&&(e.dataAdapter=y.Decorate(e.dataAdapter,x)),0<e.maximumInputLength&&(e.dataAdapter=y.Decorate(e.dataAdapter,D)),0<e.maximumSelectionLength&&(e.dataAdapter=y.Decorate(e.dataAdapter,S)),e.tags&&(e.dataAdapter=y.Decorate(e.dataAdapter,w)),null==e.tokenSeparators&&null==e.tokenizer||(e.dataAdapter=y.Decorate(e.dataAdapter,A)),null!=e.query){var t=u(e.amdBase+"compat/query");e.dataAdapter=y.Decorate(e.dataAdapter,t)}if(null!=e.initSelection){var n=u(e.amdBase+"compat/initSelection");e.dataAdapter=y.Decorate(e.dataAdapter,n)}}if(null==e.resultsAdapter&&(e.resultsAdapter=d,null!=e.ajax&&(e.resultsAdapter=y.Decorate(e.resultsAdapter,T)),null!=e.placeholder&&(e.resultsAdapter=y.Decorate(e.resultsAdapter,O)),e.selectOnClose&&(e.resultsAdapter=y.Decorate(e.resultsAdapter,I))),null==e.dropdownAdapter){if(e.multiple)e.dropdownAdapter=E;else{var r=y.Decorate(E,C);e.dropdownAdapter=r}if(0!==e.minimumResultsForSearch&&(e.dropdownAdapter=y.Decorate(e.dropdownAdapter,L)),e.closeOnSelect&&(e.dropdownAdapter=y.Decorate(e.dropdownAdapter,j)),null!=e.dropdownCssClass||null!=e.dropdownCss||null!=e.adaptDropdownCssClass){var i=u(e.amdBase+"compat/dropdownCss");e.dropdownAdapter=y.Decorate(e.dropdownAdapter,i)}e.dropdownAdapter=y.Decorate(e.dropdownAdapter,q)}if(null==e.selectionAdapter){if(e.multiple?e.selectionAdapter=h:e.selectionAdapter=p,null!=e.placeholder&&(e.selectionAdapter=y.Decorate(e.selectionAdapter,f)),e.allowClear&&(e.selectionAdapter=y.Decorate(e.selectionAdapter,g)),e.multiple&&(e.selectionAdapter=y.Decorate(e.selectionAdapter,m)),null!=e.containerCssClass||null!=e.containerCss||null!=e.adaptContainerCssClass){var o=u(e.amdBase+"compat/containerCss");e.selectionAdapter=y.Decorate(e.selectionAdapter,o)}e.selectionAdapter=y.Decorate(e.selectionAdapter,v)}e.language=this._resolveLanguage(e.language),e.language.push("en");for(var s=[],a=0;a<e.language.length;a++){var l=e.language[a];-1===s.indexOf(l)&&s.push(l)}return e.language=s,e.translations=this._processTranslations(e.language,e.debug),e},n.prototype.reset=function(){function a(e){return e.replace(/[^\u0000-\u007E]/g,function(e){return t[e]||e})}this.defaults={amdBase:"./",amdLanguageBase:"./i18n/",closeOnSelect:!0,debug:!1,dropdownAutoWidth:!1,escapeMarkup:y.escapeMarkup,language:{},matcher:function e(t,n){if(""===c.trim(t.term))return n;if(n.children&&0<n.children.length){for(var r=c.extend(!0,{},n),i=n.children.length-1;0<=i;i--)null==e(t,n.children[i])&&r.children.splice(i,1);return 0<r.children.length?r:e(t,r)}var o=a(n.text).toUpperCase(),s=a(t.term).toUpperCase();return-1<o.indexOf(s)?n:null},minimumInputLength:0,maximumInputLength:0,maximumSelectionLength:0,minimumResultsForSearch:0,selectOnClose:!1,scrollAfterSelect:!1,sorter:function(e){return e},templateResult:function(e){return e.text},templateSelection:function(e){return e.text},theme:"default",width:"resolve"}},n.prototype.applyFromElement=function(e,t){var n=e.language,r=this.defaults.language,i=t.prop("lang"),o=t.closest("[lang]").prop("lang"),s=Array.prototype.concat.call(this._resolveLanguage(i),this._resolveLanguage(n),this._resolveLanguage(r),this._resolveLanguage(o));return e.language=s,e},n.prototype._resolveLanguage=function(e){if(!e)return[];if(c.isEmptyObject(e))return[];if(c.isPlainObject(e))return[e];var t;t=c.isArray(e)?e:[e];for(var n=[],r=0;r<t.length;r++)if(n.push(t[r]),"string"==typeof t[r]&&0<t[r].indexOf("-")){var i=t[r].split("-")[0];n.push(i)}return n},n.prototype._processTranslations=function(e,t){for(var n=new s,r=0;r<e.length;r++){var i=new s,o=e[r];if("string"==typeof o)try{i=s.loadPath(o)}catch(e){try{o=this.defaults.amdLanguageBase+o,i=s.loadPath(o)}catch(e){t&&window.console&&console.warn&&console.warn('Select2: The language file for "'+o+'" could not be automatically loaded. A fallback will be used instead.')}}else i=c.isPlainObject(o)?new s(o):o;n.extend(i)}return n},n.prototype.set=function(e,t){var n={};n[c.camelCase(e)]=t;var r=y._convertData(n);c.extend(!0,this.defaults,r)},new n}),e.define("select2/options",["require","jquery","./defaults","./utils"],function(r,d,i,p){function e(e,t){if(this.options=e,null!=t&&this.fromElement(t),null!=t&&(this.options=i.applyFromElement(this.options,t)),this.options=i.apply(this.options),t&&t.is("input")){var n=r(this.get("amdBase")+"compat/inputData");this.options.dataAdapter=p.Decorate(this.options.dataAdapter,n)}}return e.prototype.fromElement=function(e){var t=["select2"];null==this.options.multiple&&(this.options.multiple=e.prop("multiple")),null==this.options.disabled&&(this.options.disabled=e.prop("disabled")),null==this.options.dir&&(e.prop("dir")?this.options.dir=e.prop("dir"):e.closest("[dir]").prop("dir")?this.options.dir=e.closest("[dir]").prop("dir"):this.options.dir="ltr"),e.prop("disabled",this.options.disabled),e.prop("multiple",this.options.multiple),p.GetData(e[0],"select2Tags")&&(this.options.debug&&window.console&&console.warn&&console.warn('Select2: The `data-select2-tags` attribute has been changed to use the `data-data` and `data-tags="true"` attributes and will be removed in future versions of Select2.'),p.StoreData(e[0],"data",p.GetData(e[0],"select2Tags")),p.StoreData(e[0],"tags",!0)),p.GetData(e[0],"ajaxUrl")&&(this.options.debug&&window.console&&console.warn&&console.warn("Select2: The `data-ajax-url` attribute has been changed to `data-ajax--url` and support for the old attribute will be removed in future versions of Select2."),e.attr("ajax--url",p.GetData(e[0],"ajaxUrl")),p.StoreData(e[0],"ajax-Url",p.GetData(e[0],"ajaxUrl")));var n={};function r(e,t){return t.toUpperCase()}for(var i=0;i<e[0].attributes.length;i++){var o=e[0].attributes[i].name,s="data-";if(o.substr(0,s.length)==s){var a=o.substring(s.length),l=p.GetData(e[0],a);n[a.replace(/-([a-z])/g,r)]=l}}d.fn.jquery&&"1."==d.fn.jquery.substr(0,2)&&e[0].dataset&&(n=d.extend(!0,{},e[0].dataset,n));var c=d.extend(!0,{},p.GetData(e[0]),n);for(var u in c=p._convertData(c))-1<d.inArray(u,t)||(d.isPlainObject(this.options[u])?d.extend(this.options[u],c[u]):this.options[u]=c[u]);return this},e.prototype.get=function(e){return this.options[e]},e.prototype.set=function(e,t){this.options[e]=t},e}),e.define("select2/core",["jquery","./options","./utils","./keys"],function(o,c,u,r){var d=function(e,t){null!=u.GetData(e[0],"select2")&&u.GetData(e[0],"select2").destroy(),this.$element=e,this.id=this._generateId(e),t=t||{},this.options=new c(t,e),d.__super__.constructor.call(this);var n=e.attr("tabindex")||0;u.StoreData(e[0],"old-tabindex",n),e.attr("tabindex","-1");var r=this.options.get("dataAdapter");this.dataAdapter=new r(e,this.options);var i=this.render();this._placeContainer(i);var o=this.options.get("selectionAdapter");this.selection=new o(e,this.options),this.$selection=this.selection.render(),this.selection.position(this.$selection,i);var s=this.options.get("dropdownAdapter");this.dropdown=new s(e,this.options),this.$dropdown=this.dropdown.render(),this.dropdown.position(this.$dropdown,i);var a=this.options.get("resultsAdapter");this.results=new a(e,this.options,this.dataAdapter),this.$results=this.results.render(),this.results.position(this.$results,this.$dropdown);var l=this;this._bindAdapters(),this._registerDomEvents(),this._registerDataEvents(),this._registerSelectionEvents(),this._registerDropdownEvents(),this._registerResultsEvents(),this._registerEvents(),this.dataAdapter.current(function(e){l.trigger("selection:update",{data:e})}),e.addClass("select2-hidden-accessible"),e.attr("aria-hidden","true"),this._syncAttributes(),u.StoreData(e[0],"select2",this),e.data("select2",this)};return u.Extend(d,u.Observable),d.prototype._generateId=function(e){return"select2-"+(null!=e.attr("id")?e.attr("id"):null!=e.attr("name")?e.attr("name")+"-"+u.generateChars(2):u.generateChars(4)).replace(/(:|\.|\[|\]|,)/g,"")},d.prototype._placeContainer=function(e){e.insertAfter(this.$element);var t=this._resolveWidth(this.$element,this.options.get("width"));null!=t&&e.css("width",t)},d.prototype._resolveWidth=function(e,t){var n=/^width:(([-+]?([0-9]*\.)?[0-9]+)(px|em|ex|%|in|cm|mm|pt|pc))/i;if("resolve"==t){var r=this._resolveWidth(e,"style");return null!=r?r:this._resolveWidth(e,"element")}if("element"==t){var i=e.outerWidth(!1);return i<=0?"auto":i+"px"}if("style"!=t)return"computedstyle"!=t?t:window.getComputedStyle(e[0]).width;var o=e.attr("style");if("string"!=typeof o)return null;for(var s=o.split(";"),a=0,l=s.length;a<l;a+=1){var c=s[a].replace(/\s/g,"").match(n);if(null!==c&&1<=c.length)return c[1]}return null},d.prototype._bindAdapters=function(){this.dataAdapter.bind(this,this.$container),this.selection.bind(this,this.$container),this.dropdown.bind(this,this.$container),this.results.bind(this,this.$container)},d.prototype._registerDomEvents=function(){var t=this;this.$element.on("change.select2",function(){t.dataAdapter.current(function(e){t.trigger("selection:update",{data:e})})}),this.$element.on("focus.select2",function(e){t.trigger("focus",e)}),this._syncA=u.bind(this._syncAttributes,this),this._syncS=u.bind(this._syncSubtree,this),this.$element[0].attachEvent&&this.$element[0].attachEvent("onpropertychange",this._syncA);var e=window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver;null!=e?(this._observer=new e(function(e){t._syncA(),t._syncS(null,e)}),this._observer.observe(this.$element[0],{attributes:!0,childList:!0,subtree:!1})):this.$element[0].addEventListener&&(this.$element[0].addEventListener("DOMAttrModified",t._syncA,!1),this.$element[0].addEventListener("DOMNodeInserted",t._syncS,!1),this.$element[0].addEventListener("DOMNodeRemoved",t._syncS,!1))},d.prototype._registerDataEvents=function(){var n=this;this.dataAdapter.on("*",function(e,t){n.trigger(e,t)})},d.prototype._registerSelectionEvents=function(){var n=this,r=["toggle","focus"];this.selection.on("toggle",function(){n.toggleDropdown()}),this.selection.on("focus",function(e){n.focus(e)}),this.selection.on("*",function(e,t){-1===o.inArray(e,r)&&n.trigger(e,t)})},d.prototype._registerDropdownEvents=function(){var n=this;this.dropdown.on("*",function(e,t){n.trigger(e,t)})},d.prototype._registerResultsEvents=function(){var n=this;this.results.on("*",function(e,t){n.trigger(e,t)})},d.prototype._registerEvents=function(){var n=this;this.on("open",function(){n.$container.addClass("select2-container--open")}),this.on("close",function(){n.$container.removeClass("select2-container--open")}),this.on("enable",function(){n.$container.removeClass("select2-container--disabled")}),this.on("disable",function(){n.$container.addClass("select2-container--disabled")}),this.on("blur",function(){n.$container.removeClass("select2-container--focus")}),this.on("query",function(t){n.isOpen()||n.trigger("open",{}),this.dataAdapter.query(t,function(e){n.trigger("results:all",{data:e,query:t})})}),this.on("query:append",function(t){this.dataAdapter.query(t,function(e){n.trigger("results:append",{data:e,query:t})})}),this.on("keypress",function(e){var t=e.which;n.isOpen()?t===r.ESC||t===r.TAB||t===r.UP&&e.altKey?(n.close(e),e.preventDefault()):t===r.ENTER?(n.trigger("results:select",{}),e.preventDefault()):t===r.SPACE&&e.ctrlKey?(n.trigger("results:toggle",{}),e.preventDefault()):t===r.UP?(n.trigger("results:previous",{}),e.preventDefault()):t===r.DOWN&&(n.trigger("results:next",{}),e.preventDefault()):(t===r.ENTER||t===r.SPACE||t===r.DOWN&&e.altKey)&&(n.open(),e.preventDefault())})},d.prototype._syncAttributes=function(){this.options.set("disabled",this.$element.prop("disabled")),this.isDisabled()?(this.isOpen()&&this.close(),this.trigger("disable",{})):this.trigger("enable",{})},d.prototype._isChangeMutation=function(e,t){var n=!1,r=this;if(!e||!e.target||"OPTION"===e.target.nodeName||"OPTGROUP"===e.target.nodeName){if(t)if(t.addedNodes&&0<t.addedNodes.length)for(var i=0;i<t.addedNodes.length;i++){t.addedNodes[i].selected&&(n=!0)}else t.removedNodes&&0<t.removedNodes.length?n=!0:o.isArray(t)&&o.each(t,function(e,t){if(r._isChangeMutation(e,t))return!(n=!0)});else n=!0;return n}},d.prototype._syncSubtree=function(e,t){var n=this._isChangeMutation(e,t),r=this;n&&this.dataAdapter.current(function(e){r.trigger("selection:update",{data:e})})},d.prototype.trigger=function(e,t){var n=d.__super__.trigger,r={open:"opening",close:"closing",select:"selecting",unselect:"unselecting",clear:"clearing"};if(void 0===t&&(t={}),e in r){var i=r[e],o={prevented:!1,name:e,args:t};if(n.call(this,i,o),o.prevented)return void(t.prevented=!0)}n.call(this,e,t)},d.prototype.toggleDropdown=function(){this.isDisabled()||(this.isOpen()?this.close():this.open())},d.prototype.open=function(){this.isOpen()||this.isDisabled()||this.trigger("query",{})},d.prototype.close=function(e){this.isOpen()&&this.trigger("close",{originalEvent:e})},d.prototype.isEnabled=function(){return!this.isDisabled()},d.prototype.isDisabled=function(){return this.options.get("disabled")},d.prototype.isOpen=function(){return this.$container.hasClass("select2-container--open")},d.prototype.hasFocus=function(){return this.$container.hasClass("select2-container--focus")},d.prototype.focus=function(e){this.hasFocus()||(this.$container.addClass("select2-container--focus"),this.trigger("focus",{}))},d.prototype.enable=function(e){this.options.get("debug")&&window.console&&console.warn&&console.warn('Select2: The `select2("enable")` method has been deprecated and will be removed in later Select2 versions. Use $element.prop("disabled") instead.'),null!=e&&0!==e.length||(e=[!0]);var t=!e[0];this.$element.prop("disabled",t)},d.prototype.data=function(){this.options.get("debug")&&0<arguments.length&&window.console&&console.warn&&console.warn('Select2: Data can no longer be set using `select2("data")`. You should consider setting the value instead using `$element.val()`.');var t=[];return this.dataAdapter.current(function(e){t=e}),t},d.prototype.val=function(e){if(this.options.get("debug")&&window.console&&console.warn&&console.warn('Select2: The `select2("val")` method has been deprecated and will be removed in later Select2 versions. Use $element.val() instead.'),null==e||0===e.length)return this.$element.val();var t=e[0];o.isArray(t)&&(t=o.map(t,function(e){return e.toString()})),this.$element.val(t).trigger("input").trigger("change")},d.prototype.destroy=function(){this.$container.remove(),this.$element[0].detachEvent&&this.$element[0].detachEvent("onpropertychange",this._syncA),null!=this._observer?(this._observer.disconnect(),this._observer=null):this.$element[0].removeEventListener&&(this.$element[0].removeEventListener("DOMAttrModified",this._syncA,!1),this.$element[0].removeEventListener("DOMNodeInserted",this._syncS,!1),this.$element[0].removeEventListener("DOMNodeRemoved",this._syncS,!1)),this._syncA=null,this._syncS=null,this.$element.off(".select2"),this.$element.attr("tabindex",u.GetData(this.$element[0],"old-tabindex")),this.$element.removeClass("select2-hidden-accessible"),this.$element.attr("aria-hidden","false"),u.RemoveData(this.$element[0]),this.$element.removeData("select2"),this.dataAdapter.destroy(),this.selection.destroy(),this.dropdown.destroy(),this.results.destroy(),this.dataAdapter=null,this.selection=null,this.dropdown=null,this.results=null},d.prototype.render=function(){var e=o('<span class="select2 select2-container"><span class="selection"></span><span class="dropdown-wrapper" aria-hidden="true"></span></span>');return e.attr("dir",this.options.get("dir")),this.$container=e,this.$container.addClass("select2-container--"+this.options.get("theme")),u.StoreData(e[0],"element",this.$element),e},d}),e.define("jquery-mousewheel",["jquery"],function(e){return e}),e.define("jquery.select2",["jquery","jquery-mousewheel","./select2/core","./select2/defaults","./select2/utils"],function(i,e,o,t,s){if(null==i.fn.select2){var a=["open","close","destroy"];i.fn.select2=function(t){if("object"==typeof(t=t||{}))return this.each(function(){var e=i.extend(!0,{},t);new o(i(this),e)}),this;if("string"!=typeof t)throw new Error("Invalid arguments for Select2: "+t);var n,r=Array.prototype.slice.call(arguments,1);return this.each(function(){var e=s.GetData(this,"select2");null==e&&window.console&&console.error&&console.error("The select2('"+t+"') method was called on an element that is not using Select2."),n=e[t].apply(e,r)}),-1<i.inArray(t,a)?this:n}}return null==i.fn.select2.defaults&&(i.fn.select2.defaults=t),o}),{define:e.define,require:e.require}}(),t=e.require("jquery.select2");return u.fn.select2.amd=e,t});
!function(t){var n={};function r(e){if(n[e])return n[e].exports;var i=n[e]={i:e,l:!1,exports:{}};return t[e].call(i.exports,i,i.exports,r),i.l=!0,i.exports}r.m=t,r.c=n,r.d=function(t,n,e){r.o(t,n)||Object.defineProperty(t,n,{enumerable:!0,get:e})},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(t,n){if(1&n&&(t=r(t)),8&n)return t;if(4&n&&"object"==typeof t&&t&&t.__esModule)return t;var e=Object.create(null);if(r.r(e),Object.defineProperty(e,"default",{enumerable:!0,value:t}),2&n&&"string"!=typeof t)for(var i in t)r.d(e,i,function(n){return t[n]}.bind(null,i));return e},r.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(n,"a",n),n},r.o=function(t,n){return Object.prototype.hasOwnProperty.call(t,n)},r.p="",r(r.s=706)}([,,,,,,,,function(t,n,r){var e=r(40),i=r(69),o=r(124),u=r(112),c=r(294),f=function(t,n,r){var a,s,l,h,p=t&f.F,v=t&f.G,y=t&f.S,d=t&f.P,g=t&f.B,x=v?e:y?e[n]||(e[n]={}):(e[n]||{}).prototype,m=v?i:i[n]||(i[n]={}),b=m.prototype||(m.prototype={});for(a in v&&(r=n),r)l=((s=!p&&x&&void 0!==x[a])?x:r)[a],h=g&&s?c(l,e):d&&"function"==typeof l?c(Function.call,l):l,x&&u(x,a,l,t&f.U),m[a]!=l&&o(m,a,h),d&&b[a]!=l&&(b[a]=l)};e.core=i,f.F=1,f.G=2,f.S=4,f.P=8,f.B=16,f.W=32,f.U=64,f.R=128,t.exports=f},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,n){var r=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=r)},function(t,n){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,n,r){var e=r(43);t.exports=function(t){if(!e(t))throw TypeError(t+" is not an object!");return t}},function(t,n){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},,,,,,,,,,,,,,,function(t,n,r){var e=r(549)("wks"),i=r(386),o=r(40).Symbol,u="function"==typeof o;(t.exports=function(t){return e[t]||(e[t]=u&&o[t]||(u?o:i)("Symbol."+t))}).store=e},,,,,,,,function(t,n,r){var e=r(296),i=Math.min;t.exports=function(t){return t>0?i(e(t),9007199254740991):0}},,,function(t,n){var r=t.exports={version:"2.6.12"};"number"==typeof __e&&(__e=r)},,,,,,,,,function(t,n,r){t.exports=!r(41)((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},function(t,n,r){var e=r(42),i=r(633),o=r(312),u=Object.defineProperty;n.f=r(78)?Object.defineProperty:function(t,n,r){if(e(t),n=o(n,!0),e(r),i)try{return u(t,n,r)}catch(t){}if("get"in r||"set"in r)throw TypeError("Accessors not supported!");return"value"in r&&(t[n]=r.value),t}},,,,,,,,,,,,,,,,,,,,,,,function(t,n,r){var e=r(305);t.exports=function(t){return Object(e(t))}},,,,,,,,,,function(t,n,r){var e=r(40),i=r(124),o=r(123),u=r(386)("src"),c=r(710),f=(""+c).split("toString");r(69).inspectSource=function(t){return c.call(t)},(t.exports=function(t,n,r,c){var a="function"==typeof r;a&&(o(r,"name")||i(r,"name",n)),t[n]!==r&&(a&&(o(r,u)||i(r,u,t[n]?""+t[n]:f.join(String(n)))),t===e?t[n]=r:c?t[n]?t[n]=r:i(t,n,r):(delete t[n],i(t,n,r)))})(Function.prototype,"toString",(function(){return"function"==typeof this&&this[u]||c.call(this)}))},function(t,n,r){var e=r(8),i=r(41),o=r(305),u=/"/g,c=function(t,n,r,e){var i=String(o(t)),c="<"+n;return""!==r&&(c+=" "+r+'="'+String(e).replace(u,"&quot;")+'"'),c+">"+i+"</"+n+">"};t.exports=function(t,n){var r={};r[t]=n(c),e(e.P+e.F*i((function(){var n=""[t]('"');return n!==n.toLowerCase()||n.split('"').length>3})),"String",r)}},,,,,,,,,,function(t,n){var r={}.hasOwnProperty;t.exports=function(t,n){return r.call(t,n)}},function(t,n,r){var e=r(79),i=r(385);t.exports=r(78)?function(t,n,r){return e.f(t,n,i(1,r))}:function(t,n,r){return t[n]=r,t}},function(t,n,r){var e=r(416),i=r(305);t.exports=function(t){return e(i(t))}},function(t,n,r){"use strict";var e=r(41);t.exports=function(t,n){return!!t&&e((function(){n?t.call(null,(function(){}),1):t.call(null)}))}},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,n,r){var e=r(295);t.exports=function(t,n,r){if(e(t),void 0===n)return t;switch(r){case 1:return function(r){return t.call(n,r)};case 2:return function(r,e){return t.call(n,r,e)};case 3:return function(r,e,i){return t.call(n,r,e,i)}}return function(){return t.apply(n,arguments)}}},function(t,n){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},function(t,n){var r=Math.ceil,e=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?e:r)(t)}},function(t,n,r){var e=r(417),i=r(385),o=r(125),u=r(312),c=r(123),f=r(633),a=Object.getOwnPropertyDescriptor;n.f=r(78)?a:function(t,n){if(t=o(t),n=u(n,!0),f)try{return a(t,n)}catch(t){}if(c(t,n))return i(!e.f.call(t,n),t[n])}},function(t,n,r){var e=r(8),i=r(69),o=r(41);t.exports=function(t,n){var r=(i.Object||{})[t]||Object[t],u={};u[t]=n(r),e(e.S+e.F*o((function(){r(1)})),"Object",u)}},function(t,n,r){var e=r(294),i=r(416),o=r(102),u=r(66),c=r(649);t.exports=function(t,n){var r=1==t,f=2==t,a=3==t,s=4==t,l=6==t,h=5==t||l,p=n||c;return function(n,c,v){for(var y,d,g=o(n),x=i(g),m=e(c,v,3),b=u(x.length),S=0,w=r?p(n,b):f?p(n,0):void 0;b>S;S++)if((h||S in x)&&(d=m(y=x[S],S,g),t))if(r)w[S]=d;else if(d)switch(t){case 3:return!0;case 5:return y;case 6:return S;case 2:w.push(y)}else if(s)return!1;return l?-1:a||s?s:w}}},,,,function(t,n,r){var e=function(t){"use strict";var n=Object.prototype,r=n.hasOwnProperty,e="function"==typeof Symbol?Symbol:{},i=e.iterator||"@@iterator",o=e.asyncIterator||"@@asyncIterator",u=e.toStringTag||"@@toStringTag";function c(t,n,r){return Object.defineProperty(t,n,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[n]}try{c({},"")}catch(t){c=function(t,n,r){return t[n]=r}}function f(t,n,r,e){var i=n&&n.prototype instanceof l?n:l,o=Object.create(i.prototype),u=new _(e||[]);return o._invoke=function(t,n,r){var e="suspendedStart";return function(i,o){if("executing"===e)throw new Error("Generator is already running");if("completed"===e){if("throw"===i)throw o;return O()}for(r.method=i,r.arg=o;;){var u=r.delegate;if(u){var c=b(u,r);if(c){if(c===s)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===e)throw e="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);e="executing";var f=a(t,n,r);if("normal"===f.type){if(e=r.done?"completed":"suspendedYield",f.arg===s)continue;return{value:f.arg,done:r.done}}"throw"===f.type&&(e="completed",r.method="throw",r.arg=f.arg)}}}(t,r,u),o}function a(t,n,r){try{return{type:"normal",arg:t.call(n,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=f;var s={};function l(){}function h(){}function p(){}var v={};v[i]=function(){return this};var y=Object.getPrototypeOf,d=y&&y(y(E([])));d&&d!==n&&r.call(d,i)&&(v=d);var g=p.prototype=l.prototype=Object.create(v);function x(t){["next","throw","return"].forEach((function(n){c(t,n,(function(t){return this._invoke(n,t)}))}))}function m(t,n){var e;this._invoke=function(i,o){function u(){return new n((function(e,u){!function e(i,o,u,c){var f=a(t[i],t,o);if("throw"!==f.type){var s=f.arg,l=s.value;return l&&"object"==typeof l&&r.call(l,"__await")?n.resolve(l.__await).then((function(t){e("next",t,u,c)}),(function(t){e("throw",t,u,c)})):n.resolve(l).then((function(t){s.value=t,u(s)}),(function(t){return e("throw",t,u,c)}))}c(f.arg)}(i,o,e,u)}))}return e=e?e.then(u,u):u()}}function b(t,n){var r=t.iterator[n.method];if(void 0===r){if(n.delegate=null,"throw"===n.method){if(t.iterator.return&&(n.method="return",n.arg=void 0,b(t,n),"throw"===n.method))return s;n.method="throw",n.arg=new TypeError("The iterator does not provide a 'throw' method")}return s}var e=a(r,t.iterator,n.arg);if("throw"===e.type)return n.method="throw",n.arg=e.arg,n.delegate=null,s;var i=e.arg;return i?i.done?(n[t.resultName]=i.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=void 0),n.delegate=null,s):i:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,s)}function S(t){var n={tryLoc:t[0]};1 in t&&(n.catchLoc=t[1]),2 in t&&(n.finallyLoc=t[2],n.afterLoc=t[3]),this.tryEntries.push(n)}function w(t){var n=t.completion||{};n.type="normal",delete n.arg,t.completion=n}function _(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(S,this),this.reset(!0)}function E(t){if(t){var n=t[i];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var e=-1,o=function n(){for(;++e<t.length;)if(r.call(t,e))return n.value=t[e],n.done=!1,n;return n.value=void 0,n.done=!0,n};return o.next=o}}return{next:O}}function O(){return{value:void 0,done:!0}}return h.prototype=g.constructor=p,p.constructor=h,h.displayName=c(p,u,"GeneratorFunction"),t.isGeneratorFunction=function(t){var n="function"==typeof t&&t.constructor;return!!n&&(n===h||"GeneratorFunction"===(n.displayName||n.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,p):(t.__proto__=p,c(t,u,"GeneratorFunction")),t.prototype=Object.create(g),t},t.awrap=function(t){return{__await:t}},x(m.prototype),m.prototype[o]=function(){return this},t.AsyncIterator=m,t.async=function(n,r,e,i,o){void 0===o&&(o=Promise);var u=new m(f(n,r,e,i),o);return t.isGeneratorFunction(r)?u:u.next().then((function(t){return t.done?t.value:u.next()}))},x(g),c(g,u,"Generator"),g[i]=function(){return this},g.toString=function(){return"[object Generator]"},t.keys=function(t){var n=[];for(var r in t)n.push(r);return n.reverse(),function r(){for(;n.length;){var e=n.pop();if(e in t)return r.value=e,r.done=!1,r}return r.done=!0,r}},t.values=E,_.prototype={constructor:_,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(w),!t)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function e(r,e){return u.type="throw",u.arg=t,n.next=r,e&&(n.method="next",n.arg=void 0),!!e}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],u=o.completion;if("root"===o.tryLoc)return e("end");if(o.tryLoc<=this.prev){var c=r.call(o,"catchLoc"),f=r.call(o,"finallyLoc");if(c&&f){if(this.prev<o.catchLoc)return e(o.catchLoc,!0);if(this.prev<o.finallyLoc)return e(o.finallyLoc)}else if(c){if(this.prev<o.catchLoc)return e(o.catchLoc,!0)}else{if(!f)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return e(o.finallyLoc)}}}},abrupt:function(t,n){for(var e=this.tryEntries.length-1;e>=0;--e){var i=this.tryEntries[e];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=n&&n<=o.finallyLoc&&(o=null);var u=o?o.completion:{};return u.type=t,u.arg=n,o?(this.method="next",this.next=o.finallyLoc,s):this.complete(u)},complete:function(t,n){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&n&&(this.next=n),s},finish:function(t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),w(r),s}},catch:function(t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc===t){var e=r.completion;if("throw"===e.type){var i=e.arg;w(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:E(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=void 0),s}},t}(t.exports);try{regeneratorRuntime=e}catch(t){Function("r","regeneratorRuntime=r")(e)}},function(t,n){var r={}.toString;t.exports=function(t){return r.call(t).slice(8,-1)}},function(t,n){t.exports=function(t){if(null==t)throw TypeError("Can't call method on  "+t);return t}},function(t,n,r){"use strict";if(r(78)){var e=r(387),i=r(40),o=r(41),u=r(8),c=r(560),f=r(599),a=r(294),s=r(411),l=r(385),h=r(124),p=r(412),v=r(296),y=r(66),d=r(660),g=r(389),x=r(312),m=r(123),b=r(418),S=r(43),w=r(102),_=r(591),E=r(390),O=r(392),P=r(391).f,F=r(593),M=r(386),A=r(58),j=r(299),I=r(550),N=r(419),T=r(595),L=r(409),R=r(553),k=r(410),C=r(594),D=r(651),W=r(79),G=r(297),U=W.f,B=G.f,V=i.RangeError,z=i.TypeError,Y=i.Uint8Array,q=Array.prototype,$=f.ArrayBuffer,K=f.DataView,J=j(0),X=j(2),H=j(3),Z=j(4),Q=j(5),tt=j(6),nt=I(!0),rt=I(!1),et=T.values,it=T.keys,ot=T.entries,ut=q.lastIndexOf,ct=q.reduce,ft=q.reduceRight,at=q.join,st=q.sort,lt=q.slice,ht=q.toString,pt=q.toLocaleString,vt=A("iterator"),yt=A("toStringTag"),dt=M("typed_constructor"),gt=M("def_constructor"),xt=c.CONSTR,mt=c.TYPED,bt=c.VIEW,St=j(1,(function(t,n){return Pt(N(t,t[gt]),n)})),wt=o((function(){return 1===new Y(new Uint16Array([1]).buffer)[0]})),_t=!!Y&&!!Y.prototype.set&&o((function(){new Y(1).set({})})),Et=function(t,n){var r=v(t);if(r<0||r%n)throw V("Wrong offset!");return r},Ot=function(t){if(S(t)&&mt in t)return t;throw z(t+" is not a typed array!")},Pt=function(t,n){if(!S(t)||!(dt in t))throw z("It is not a typed array constructor!");return new t(n)},Ft=function(t,n){return Mt(N(t,t[gt]),n)},Mt=function(t,n){for(var r=0,e=n.length,i=Pt(t,e);e>r;)i[r]=n[r++];return i},At=function(t,n,r){U(t,n,{get:function(){return this._d[r]}})},jt=function(t){var n,r,e,i,o,u,c=w(t),f=arguments.length,s=f>1?arguments[1]:void 0,l=void 0!==s,h=F(c);if(null!=h&&!_(h)){for(u=h.call(c),e=[],n=0;!(o=u.next()).done;n++)e.push(o.value);c=e}for(l&&f>2&&(s=a(s,arguments[2],2)),n=0,r=y(c.length),i=Pt(this,r);r>n;n++)i[n]=l?s(c[n],n):c[n];return i},It=function(){for(var t=0,n=arguments.length,r=Pt(this,n);n>t;)r[t]=arguments[t++];return r},Nt=!!Y&&o((function(){pt.call(new Y(1))})),Tt=function(){return pt.apply(Nt?lt.call(Ot(this)):Ot(this),arguments)},Lt={copyWithin:function(t,n){return D.call(Ot(this),t,n,arguments.length>2?arguments[2]:void 0)},every:function(t){return Z(Ot(this),t,arguments.length>1?arguments[1]:void 0)},fill:function(t){return C.apply(Ot(this),arguments)},filter:function(t){return Ft(this,X(Ot(this),t,arguments.length>1?arguments[1]:void 0))},find:function(t){return Q(Ot(this),t,arguments.length>1?arguments[1]:void 0)},findIndex:function(t){return tt(Ot(this),t,arguments.length>1?arguments[1]:void 0)},forEach:function(t){J(Ot(this),t,arguments.length>1?arguments[1]:void 0)},indexOf:function(t){return rt(Ot(this),t,arguments.length>1?arguments[1]:void 0)},includes:function(t){return nt(Ot(this),t,arguments.length>1?arguments[1]:void 0)},join:function(t){return at.apply(Ot(this),arguments)},lastIndexOf:function(t){return ut.apply(Ot(this),arguments)},map:function(t){return St(Ot(this),t,arguments.length>1?arguments[1]:void 0)},reduce:function(t){return ct.apply(Ot(this),arguments)},reduceRight:function(t){return ft.apply(Ot(this),arguments)},reverse:function(){for(var t,n=Ot(this).length,r=Math.floor(n/2),e=0;e<r;)t=this[e],this[e++]=this[--n],this[n]=t;return this},some:function(t){return H(Ot(this),t,arguments.length>1?arguments[1]:void 0)},sort:function(t){return st.call(Ot(this),t)},subarray:function(t,n){var r=Ot(this),e=r.length,i=g(t,e);return new(N(r,r[gt]))(r.buffer,r.byteOffset+i*r.BYTES_PER_ELEMENT,y((void 0===n?e:g(n,e))-i))}},Rt=function(t,n){return Ft(this,lt.call(Ot(this),t,n))},kt=function(t){Ot(this);var n=Et(arguments[1],1),r=this.length,e=w(t),i=y(e.length),o=0;if(i+n>r)throw V("Wrong length!");for(;o<i;)this[n+o]=e[o++]},Ct={entries:function(){return ot.call(Ot(this))},keys:function(){return it.call(Ot(this))},values:function(){return et.call(Ot(this))}},Dt=function(t,n){return S(t)&&t[mt]&&"symbol"!=typeof n&&n in t&&String(+n)==String(n)},Wt=function(t,n){return Dt(t,n=x(n,!0))?l(2,t[n]):B(t,n)},Gt=function(t,n,r){return!(Dt(t,n=x(n,!0))&&S(r)&&m(r,"value"))||m(r,"get")||m(r,"set")||r.configurable||m(r,"writable")&&!r.writable||m(r,"enumerable")&&!r.enumerable?U(t,n,r):(t[n]=r.value,t)};xt||(G.f=Wt,W.f=Gt),u(u.S+u.F*!xt,"Object",{getOwnPropertyDescriptor:Wt,defineProperty:Gt}),o((function(){ht.call({})}))&&(ht=pt=function(){return at.call(this)});var Ut=p({},Lt);p(Ut,Ct),h(Ut,vt,Ct.values),p(Ut,{slice:Rt,set:kt,constructor:function(){},toString:ht,toLocaleString:Tt}),At(Ut,"buffer","b"),At(Ut,"byteOffset","o"),At(Ut,"byteLength","l"),At(Ut,"length","e"),U(Ut,yt,{get:function(){return this[mt]}}),t.exports=function(t,n,r,f){var a=t+((f=!!f)?"Clamped":"")+"Array",l="get"+t,p="set"+t,v=i[a],g=v||{},x=v&&O(v),m=!v||!c.ABV,w={},_=v&&v.prototype,F=function(t,r){U(t,r,{get:function(){return function(t,r){var e=t._d;return e.v[l](r*n+e.o,wt)}(this,r)},set:function(t){return function(t,r,e){var i=t._d;f&&(e=(e=Math.round(e))<0?0:e>255?255:255&e),i.v[p](r*n+i.o,e,wt)}(this,r,t)},enumerable:!0})};m?(v=r((function(t,r,e,i){s(t,v,a,"_d");var o,u,c,f,l=0,p=0;if(S(r)){if(!(r instanceof $||"ArrayBuffer"==(f=b(r))||"SharedArrayBuffer"==f))return mt in r?Mt(v,r):jt.call(v,r);o=r,p=Et(e,n);var g=r.byteLength;if(void 0===i){if(g%n)throw V("Wrong length!");if((u=g-p)<0)throw V("Wrong length!")}else if((u=y(i)*n)+p>g)throw V("Wrong length!");c=u/n}else c=d(r),o=new $(u=c*n);for(h(t,"_d",{b:o,o:p,l:u,e:c,v:new K(o)});l<c;)F(t,l++)})),_=v.prototype=E(Ut),h(_,"constructor",v)):o((function(){v(1)}))&&o((function(){new v(-1)}))&&R((function(t){new v,new v(null),new v(1.5),new v(t)}),!0)||(v=r((function(t,r,e,i){var o;return s(t,v,a),S(r)?r instanceof $||"ArrayBuffer"==(o=b(r))||"SharedArrayBuffer"==o?void 0!==i?new g(r,Et(e,n),i):void 0!==e?new g(r,Et(e,n)):new g(r):mt in r?Mt(v,r):jt.call(v,r):new g(d(r))})),J(x!==Function.prototype?P(g).concat(P(x)):P(g),(function(t){t in v||h(v,t,g[t])})),v.prototype=_,e||(_.constructor=v));var M=_[vt],A=!!M&&("values"==M.name||null==M.name),j=Ct.values;h(v,dt,!0),h(_,mt,a),h(_,bt,!0),h(_,gt,v),(f?new v(1)[yt]==a:yt in _)||U(_,yt,{get:function(){return a}}),w[a]=v,u(u.G+u.W+u.F*(v!=g),w),u(u.S,a,{BYTES_PER_ELEMENT:n}),u(u.S+u.F*o((function(){g.of.call(v,1)})),a,{from:jt,of:It}),"BYTES_PER_ELEMENT"in _||h(_,"BYTES_PER_ELEMENT",n),u(u.P,a,Lt),k(a),u(u.P+u.F*_t,a,{set:kt}),u(u.P+u.F*!A,a,Ct),e||_.toString==ht||(_.toString=ht),u(u.P+u.F*o((function(){new v(1).slice()})),a,{slice:Rt}),u(u.P+u.F*(o((function(){return[1,2].toLocaleString()!=new v([1,2]).toLocaleString()}))||!o((function(){_.toLocaleString.call([1,2])}))),a,{toLocaleString:Tt}),L[a]=A?M:j,e||A||h(_,vt,j)}}else t.exports=function(){}},,,,,,function(t,n,r){var e=r(43);t.exports=function(t,n){if(!e(t))return t;var r,i;if(n&&"function"==typeof(r=t.toString)&&!e(i=r.call(t)))return i;if("function"==typeof(r=t.valueOf)&&!e(i=r.call(t)))return i;if(!n&&"function"==typeof(r=t.toString)&&!e(i=r.call(t)))return i;throw TypeError("Can't convert object to primitive value")}},function(t,n,r){var e=r(386)("meta"),i=r(43),o=r(123),u=r(79).f,c=0,f=Object.isExtensible||function(){return!0},a=!r(41)((function(){return f(Object.preventExtensions({}))})),s=function(t){u(t,e,{value:{i:"O"+ ++c,w:{}}})},l=t.exports={KEY:e,NEED:!1,fastKey:function(t,n){if(!i(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!o(t,e)){if(!f(t))return"F";if(!n)return"E";s(t)}return t[e].i},getWeak:function(t,n){if(!o(t,e)){if(!f(t))return!0;if(!n)return!1;s(t)}return t[e].w},onFreeze:function(t){return a&&l.NEED&&f(t)&&!o(t,e)&&s(t),t}}},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,n){t.exports=function(t,n){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:n}}},function(t,n){var r=0,e=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++r+e).toString(36))}},function(t,n){t.exports=!1},function(t,n,r){var e=r(635),i=r(578);t.exports=Object.keys||function(t){return e(t,i)}},function(t,n,r){var e=r(296),i=Math.max,o=Math.min;t.exports=function(t,n){return(t=e(t))<0?i(t+n,0):o(t,n)}},function(t,n,r){var e=r(42),i=r(636),o=r(578),u=r(577)("IE_PROTO"),c=function(){},f=function(){var t,n=r(575)("iframe"),e=o.length;for(n.style.display="none",r(579).appendChild(n),n.src="javascript:",(t=n.contentWindow.document).open(),t.write("<script>document.F=Object<\/script>"),t.close(),f=t.F;e--;)delete f.prototype[o[e]];return f()};t.exports=Object.create||function(t,n){var r;return null!==t?(c.prototype=e(t),r=new c,c.prototype=null,r[u]=t):r=f(),void 0===n?r:i(r,n)}},function(t,n,r){var e=r(635),i=r(578).concat("length","prototype");n.f=Object.getOwnPropertyNames||function(t){return e(t,i)}},function(t,n,r){var e=r(123),i=r(102),o=r(577)("IE_PROTO"),u=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=i(t),e(t,o)?t[o]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?u:null}},function(t,n,r){var e=r(58)("unscopables"),i=Array.prototype;null==i[e]&&r(124)(i,e,{}),t.exports=function(t){i[e][t]=!0}},function(t,n,r){var e=r(43);t.exports=function(t,n){if(!e(t)||t._t!==n)throw TypeError("Incompatible receiver, "+n+" required!");return t}},,,,,,,,,,,,,function(t,n,r){var e=r(79).f,i=r(123),o=r(58)("toStringTag");t.exports=function(t,n,r){t&&!i(t=r?t:t.prototype,o)&&e(t,o,{configurable:!0,value:n})}},function(t,n,r){var e=r(8),i=r(305),o=r(41),u=r(581),c="["+u+"]",f=RegExp("^"+c+c+"*"),a=RegExp(c+c+"*$"),s=function(t,n,r){var i={},c=o((function(){return!!u[t]()||"​"!="​"[t]()})),f=i[t]=c?n(l):u[t];r&&(i[r]=f),e(e.P+e.F*c,"String",i)},l=s.trim=function(t,n){return t=String(i(t)),1&n&&(t=t.replace(f,"")),2&n&&(t=t.replace(a,"")),t};t.exports=s},function(t,n){t.exports={}},function(t,n,r){"use strict";var e=r(40),i=r(79),o=r(78),u=r(58)("species");t.exports=function(t){var n=e[t];o&&n&&!n[u]&&i.f(n,u,{configurable:!0,get:function(){return this}})}},function(t,n){t.exports=function(t,n,r,e){if(!(t instanceof n)||void 0!==e&&e in t)throw TypeError(r+": incorrect invocation!");return t}},function(t,n,r){var e=r(112);t.exports=function(t,n,r){for(var i in n)e(t,i,n[i],r);return t}},,,,function(t,n,r){var e=r(304);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==e(t)?t.split(""):Object(t)}},function(t,n){n.f={}.propertyIsEnumerable},function(t,n,r){var e=r(304),i=r(58)("toStringTag"),o="Arguments"==e(function(){return arguments}());t.exports=function(t){var n,r,u;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(r=function(t,n){try{return t[n]}catch(t){}}(n=Object(t),i))?r:o?e(n):"Object"==(u=e(n))&&"function"==typeof n.callee?"Arguments":u}},function(t,n,r){var e=r(42),i=r(295),o=r(58)("species");t.exports=function(t,n){var r,u=e(t).constructor;return void 0===u||null==(r=e(u)[o])?n:i(r)}},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,n,r){var e=r(69),i=r(40),o=i["__core-js_shared__"]||(i["__core-js_shared__"]={});(t.exports=function(t,n){return o[t]||(o[t]=void 0!==n?n:{})})("versions",[]).push({version:e.version,mode:r(387)?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},function(t,n,r){var e=r(125),i=r(66),o=r(389);t.exports=function(t){return function(n,r,u){var c,f=e(n),a=i(f.length),s=o(u,a);if(t&&r!=r){for(;a>s;)if((c=f[s++])!=c)return!0}else for(;a>s;s++)if((t||s in f)&&f[s]===r)return t||s||0;return!t&&-1}}},function(t,n){n.f=Object.getOwnPropertySymbols},function(t,n,r){var e=r(304);t.exports=Array.isArray||function(t){return"Array"==e(t)}},function(t,n,r){var e=r(58)("iterator"),i=!1;try{var o=[7][e]();o.return=function(){i=!0},Array.from(o,(function(){throw 2}))}catch(t){}t.exports=function(t,n){if(!n&&!i)return!1;var r=!1;try{var o=[7],u=o[e]();u.next=function(){return{done:r=!0}},o[e]=function(){return u},t(o)}catch(t){}return r}},function(t,n,r){"use strict";var e=r(42);t.exports=function(){var t=e(this),n="";return t.global&&(n+="g"),t.ignoreCase&&(n+="i"),t.multiline&&(n+="m"),t.unicode&&(n+="u"),t.sticky&&(n+="y"),n}},function(t,n,r){"use strict";var e=r(418),i=RegExp.prototype.exec;t.exports=function(t,n){var r=t.exec;if("function"==typeof r){var o=r.call(t,n);if("object"!=typeof o)throw new TypeError("RegExp exec method returned something other than an Object or null");return o}if("RegExp"!==e(t))throw new TypeError("RegExp#exec called on incompatible receiver");return i.call(t,n)}},function(t,n,r){"use strict";r(653);var e=r(112),i=r(124),o=r(41),u=r(305),c=r(58),f=r(596),a=c("species"),s=!o((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")})),l=function(){var t=/(?:)/,n=t.exec;t.exec=function(){return n.apply(this,arguments)};var r="ab".split(t);return 2===r.length&&"a"===r[0]&&"b"===r[1]}();t.exports=function(t,n,r){var h=c(t),p=!o((function(){var n={};return n[h]=function(){return 7},7!=""[t](n)})),v=p?!o((function(){var n=!1,r=/a/;return r.exec=function(){return n=!0,null},"split"===t&&(r.constructor={},r.constructor[a]=function(){return r}),r[h](""),!n})):void 0;if(!p||!v||"replace"===t&&!s||"split"===t&&!l){var y=/./[h],d=r(u,h,""[t],(function(t,n,r,e,i){return n.exec===f?p&&!i?{done:!0,value:y.call(n,r,e)}:{done:!0,value:t.call(r,n,e)}:{done:!1}})),g=d[0],x=d[1];e(String.prototype,t,g),i(RegExp.prototype,h,2==n?function(t,n){return x.call(t,this,n)}:function(t){return x.call(t,this)})}}},function(t,n,r){var e=r(294),i=r(648),o=r(591),u=r(42),c=r(66),f=r(593),a={},s={};(n=t.exports=function(t,n,r,l,h){var p,v,y,d,g=h?function(){return t}:f(t),x=e(r,l,n?2:1),m=0;if("function"!=typeof g)throw TypeError(t+" is not iterable!");if(o(g)){for(p=c(t.length);p>m;m++)if((d=n?x(u(v=t[m])[0],v[1]):x(t[m]))===a||d===s)return d}else for(y=g.call(t);!(v=y.next()).done;)if((d=i(y,x,v.value,n))===a||d===s)return d}).BREAK=a,n.RETURN=s},function(t,n,r){var e=r(40).navigator;t.exports=e&&e.userAgent||""},function(t,n,r){"use strict";var e=r(40),i=r(8),o=r(112),u=r(412),c=r(313),f=r(557),a=r(411),s=r(43),l=r(41),h=r(553),p=r(407),v=r(582);t.exports=function(t,n,r,y,d,g){var x=e[t],m=x,b=d?"set":"add",S=m&&m.prototype,w={},_=function(t){var n=S[t];o(S,t,"delete"==t||"has"==t?function(t){return!(g&&!s(t))&&n.call(this,0===t?0:t)}:"get"==t?function(t){return g&&!s(t)?void 0:n.call(this,0===t?0:t)}:"add"==t?function(t){return n.call(this,0===t?0:t),this}:function(t,r){return n.call(this,0===t?0:t,r),this})};if("function"==typeof m&&(g||S.forEach&&!l((function(){(new m).entries().next()})))){var E=new m,O=E[b](g?{}:-0,1)!=E,P=l((function(){E.has(1)})),F=h((function(t){new m(t)})),M=!g&&l((function(){for(var t=new m,n=5;n--;)t[b](n,n);return!t.has(-0)}));F||((m=n((function(n,r){a(n,m,t);var e=v(new x,n,m);return null!=r&&f(r,d,e[b],e),e}))).prototype=S,S.constructor=m),(P||M)&&(_("delete"),_("has"),d&&_("get")),(M||O)&&_(b),g&&S.clear&&delete S.clear}else m=y.getConstructor(n,t,d,b),u(m.prototype,r),c.NEED=!0;return p(m,t),w[t]=m,i(i.G+i.W+i.F*(m!=x),w),g||y.setStrong(m,t,d),m}},function(t,n,r){for(var e,i=r(40),o=r(124),u=r(386),c=u("typed_array"),f=u("view"),a=!(!i.ArrayBuffer||!i.DataView),s=a,l=0,h="Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array".split(",");l<9;)(e=i[h[l++]])?(o(e.prototype,c,!0),o(e.prototype,f,!0)):s=!1;t.exports={ABV:a,CONSTR:s,TYPED:c,VIEW:f}},,,,,,,,,,,,,,,function(t,n,r){var e=r(43),i=r(40).document,o=e(i)&&e(i.createElement);t.exports=function(t){return o?i.createElement(t):{}}},function(t,n,r){n.f=r(58)},function(t,n,r){var e=r(549)("keys"),i=r(386);t.exports=function(t){return e[t]||(e[t]=i(t))}},function(t,n){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(t,n,r){var e=r(40).document;t.exports=e&&e.documentElement},function(t,n,r){var e=r(43),i=r(42),o=function(t,n){if(i(t),!e(n)&&null!==n)throw TypeError(n+": can't set as prototype!")};t.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(t,n,e){try{(e=r(294)(Function.call,r(297).f(Object.prototype,"__proto__").set,2))(t,[]),n=!(t instanceof Array)}catch(t){n=!0}return function(t,r){return o(t,r),n?t.__proto__=r:e(t,r),t}}({},!1):void 0),check:o}},function(t,n){t.exports="\t\n\v\f\r   ᠎             　\u2028\u2029\ufeff"},function(t,n,r){var e=r(43),i=r(580).set;t.exports=function(t,n,r){var o,u=n.constructor;return u!==r&&"function"==typeof u&&(o=u.prototype)!==r.prototype&&e(o)&&i&&i(t,o),t}},function(t,n,r){"use strict";var e=r(296),i=r(305);t.exports=function(t){var n=String(i(this)),r="",o=e(t);if(o<0||o==1/0)throw RangeError("Count can't be negative");for(;o>0;(o>>>=1)&&(n+=n))1&o&&(r+=n);return r}},function(t,n){t.exports=Math.sign||function(t){return 0==(t=+t)||t!=t?t:t<0?-1:1}},function(t,n){var r=Math.expm1;t.exports=!r||r(10)>22025.465794806718||r(10)<22025.465794806718||-2e-17!=r(-2e-17)?function(t){return 0==(t=+t)?t:t>-1e-6&&t<1e-6?t+t*t/2:Math.exp(t)-1}:r},function(t,n,r){var e=r(296),i=r(305);t.exports=function(t){return function(n,r){var o,u,c=String(i(n)),f=e(r),a=c.length;return f<0||f>=a?t?"":void 0:(o=c.charCodeAt(f))<55296||o>56319||f+1===a||(u=c.charCodeAt(f+1))<56320||u>57343?t?c.charAt(f):o:t?c.slice(f,f+2):u-56320+(o-55296<<10)+65536}}},function(t,n,r){"use strict";var e=r(387),i=r(8),o=r(112),u=r(124),c=r(409),f=r(647),a=r(407),s=r(392),l=r(58)("iterator"),h=!([].keys&&"next"in[].keys()),p=function(){return this};t.exports=function(t,n,r,v,y,d,g){f(r,n,v);var x,m,b,S=function(t){if(!h&&t in O)return O[t];switch(t){case"keys":case"values":return function(){return new r(this,t)}}return function(){return new r(this,t)}},w=n+" Iterator",_="values"==y,E=!1,O=t.prototype,P=O[l]||O["@@iterator"]||y&&O[y],F=P||S(y),M=y?_?S("entries"):F:void 0,A="Array"==n&&O.entries||P;if(A&&(b=s(A.call(new t)))!==Object.prototype&&b.next&&(a(b,w,!0),e||"function"==typeof b[l]||u(b,l,p)),_&&P&&"values"!==P.name&&(E=!0,F=function(){return P.call(this)}),e&&!g||!h&&!E&&O[l]||u(O,l,F),c[n]=F,c[w]=p,y)if(x={values:_?F:S("values"),keys:d?F:S("keys"),entries:M},g)for(m in x)m in O||o(O,m,x[m]);else i(i.P+i.F*(h||E),n,x);return x}},function(t,n,r){var e=r(589),i=r(305);t.exports=function(t,n,r){if(e(n))throw TypeError("String#"+r+" doesn't accept regex!");return String(i(t))}},function(t,n,r){var e=r(43),i=r(304),o=r(58)("match");t.exports=function(t){var n;return e(t)&&(void 0!==(n=t[o])?!!n:"RegExp"==i(t))}},function(t,n,r){var e=r(58)("match");t.exports=function(t){var n=/./;try{"/./"[t](n)}catch(r){try{return n[e]=!1,!"/./"[t](n)}catch(t){}}return!0}},function(t,n,r){var e=r(409),i=r(58)("iterator"),o=Array.prototype;t.exports=function(t){return void 0!==t&&(e.Array===t||o[i]===t)}},function(t,n,r){"use strict";var e=r(79),i=r(385);t.exports=function(t,n,r){n in t?e.f(t,n,i(0,r)):t[n]=r}},function(t,n,r){var e=r(418),i=r(58)("iterator"),o=r(409);t.exports=r(69).getIteratorMethod=function(t){if(null!=t)return t[i]||t["@@iterator"]||o[e(t)]}},function(t,n,r){"use strict";var e=r(102),i=r(389),o=r(66);t.exports=function(t){for(var n=e(this),r=o(n.length),u=arguments.length,c=i(u>1?arguments[1]:void 0,r),f=u>2?arguments[2]:void 0,a=void 0===f?r:i(f,r);a>c;)n[c++]=t;return n}},function(t,n,r){"use strict";var e=r(393),i=r(652),o=r(409),u=r(125);t.exports=r(587)(Array,"Array",(function(t,n){this._t=u(t),this._i=0,this._k=n}),(function(){var t=this._t,n=this._k,r=this._i++;return!t||r>=t.length?(this._t=void 0,i(1)):i(0,"keys"==n?r:"values"==n?t[r]:[r,t[r]])}),"values"),o.Arguments=o.Array,e("keys"),e("values"),e("entries")},function(t,n,r){"use strict";var e,i,o=r(554),u=RegExp.prototype.exec,c=String.prototype.replace,f=u,a=(e=/a/,i=/b*/g,u.call(e,"a"),u.call(i,"a"),0!==e.lastIndex||0!==i.lastIndex),s=void 0!==/()??/.exec("")[1];(a||s)&&(f=function(t){var n,r,e,i,f=this;return s&&(r=new RegExp("^"+f.source+"$(?!\\s)",o.call(f))),a&&(n=f.lastIndex),e=u.call(f,t),a&&e&&(f.lastIndex=f.global?e.index+e[0].length:n),s&&e&&e.length>1&&c.call(e[0],r,(function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(e[i]=void 0)})),e}),t.exports=f},function(t,n,r){"use strict";var e=r(586)(!0);t.exports=function(t,n,r){return n+(r?e(t,n).length:1)}},function(t,n,r){var e,i,o,u=r(294),c=r(641),f=r(579),a=r(575),s=r(40),l=s.process,h=s.setImmediate,p=s.clearImmediate,v=s.MessageChannel,y=s.Dispatch,d=0,g={},x=function(){var t=+this;if(g.hasOwnProperty(t)){var n=g[t];delete g[t],n()}},m=function(t){x.call(t.data)};h&&p||(h=function(t){for(var n=[],r=1;arguments.length>r;)n.push(arguments[r++]);return g[++d]=function(){c("function"==typeof t?t:Function(t),n)},e(d),d},p=function(t){delete g[t]},"process"==r(304)(l)?e=function(t){l.nextTick(u(x,t,1))}:y&&y.now?e=function(t){y.now(u(x,t,1))}:v?(o=(i=new v).port2,i.port1.onmessage=m,e=u(o.postMessage,o,1)):s.addEventListener&&"function"==typeof postMessage&&!s.importScripts?(e=function(t){s.postMessage(t+"","*")},s.addEventListener("message",m,!1)):e="onreadystatechange"in a("script")?function(t){f.appendChild(a("script")).onreadystatechange=function(){f.removeChild(this),x.call(t)}}:function(t){setTimeout(u(x,t,1),0)}),t.exports={set:h,clear:p}},function(t,n,r){"use strict";var e=r(40),i=r(78),o=r(387),u=r(560),c=r(124),f=r(412),a=r(41),s=r(411),l=r(296),h=r(66),p=r(660),v=r(391).f,y=r(79).f,d=r(594),g=r(407),x=e.ArrayBuffer,m=e.DataView,b=e.Math,S=e.RangeError,w=e.Infinity,_=x,E=b.abs,O=b.pow,P=b.floor,F=b.log,M=b.LN2,A=i?"_b":"buffer",j=i?"_l":"byteLength",I=i?"_o":"byteOffset";function N(t,n,r){var e,i,o,u=new Array(r),c=8*r-n-1,f=(1<<c)-1,a=f>>1,s=23===n?O(2,-24)-O(2,-77):0,l=0,h=t<0||0===t&&1/t<0?1:0;for((t=E(t))!=t||t===w?(i=t!=t?1:0,e=f):(e=P(F(t)/M),t*(o=O(2,-e))<1&&(e--,o*=2),(t+=e+a>=1?s/o:s*O(2,1-a))*o>=2&&(e++,o/=2),e+a>=f?(i=0,e=f):e+a>=1?(i=(t*o-1)*O(2,n),e+=a):(i=t*O(2,a-1)*O(2,n),e=0));n>=8;u[l++]=255&i,i/=256,n-=8);for(e=e<<n|i,c+=n;c>0;u[l++]=255&e,e/=256,c-=8);return u[--l]|=128*h,u}function T(t,n,r){var e,i=8*r-n-1,o=(1<<i)-1,u=o>>1,c=i-7,f=r-1,a=t[f--],s=127&a;for(a>>=7;c>0;s=256*s+t[f],f--,c-=8);for(e=s&(1<<-c)-1,s>>=-c,c+=n;c>0;e=256*e+t[f],f--,c-=8);if(0===s)s=1-u;else{if(s===o)return e?NaN:a?-w:w;e+=O(2,n),s-=u}return(a?-1:1)*e*O(2,s-n)}function L(t){return t[3]<<24|t[2]<<16|t[1]<<8|t[0]}function R(t){return[255&t]}function k(t){return[255&t,t>>8&255]}function C(t){return[255&t,t>>8&255,t>>16&255,t>>24&255]}function D(t){return N(t,52,8)}function W(t){return N(t,23,4)}function G(t,n,r){y(t.prototype,n,{get:function(){return this[r]}})}function U(t,n,r,e){var i=p(+r);if(i+n>t[j])throw S("Wrong index!");var o=t[A]._b,u=i+t[I],c=o.slice(u,u+n);return e?c:c.reverse()}function B(t,n,r,e,i,o){var u=p(+r);if(u+n>t[j])throw S("Wrong index!");for(var c=t[A]._b,f=u+t[I],a=e(+i),s=0;s<n;s++)c[f+s]=a[o?s:n-s-1]}if(u.ABV){if(!a((function(){x(1)}))||!a((function(){new x(-1)}))||a((function(){return new x,new x(1.5),new x(NaN),"ArrayBuffer"!=x.name}))){for(var V,z=(x=function(t){return s(this,x),new _(p(t))}).prototype=_.prototype,Y=v(_),q=0;Y.length>q;)(V=Y[q++])in x||c(x,V,_[V]);o||(z.constructor=x)}var $=new m(new x(2)),K=m.prototype.setInt8;$.setInt8(0,2147483648),$.setInt8(1,2147483649),!$.getInt8(0)&&$.getInt8(1)||f(m.prototype,{setInt8:function(t,n){K.call(this,t,n<<24>>24)},setUint8:function(t,n){K.call(this,t,n<<24>>24)}},!0)}else x=function(t){s(this,x,"ArrayBuffer");var n=p(t);this._b=d.call(new Array(n),0),this[j]=n},m=function(t,n,r){s(this,m,"DataView"),s(t,x,"DataView");var e=t[j],i=l(n);if(i<0||i>e)throw S("Wrong offset!");if(i+(r=void 0===r?e-i:h(r))>e)throw S("Wrong length!");this[A]=t,this[I]=i,this[j]=r},i&&(G(x,"byteLength","_l"),G(m,"buffer","_b"),G(m,"byteLength","_l"),G(m,"byteOffset","_o")),f(m.prototype,{getInt8:function(t){return U(this,1,t)[0]<<24>>24},getUint8:function(t){return U(this,1,t)[0]},getInt16:function(t){var n=U(this,2,t,arguments[1]);return(n[1]<<8|n[0])<<16>>16},getUint16:function(t){var n=U(this,2,t,arguments[1]);return n[1]<<8|n[0]},getInt32:function(t){return L(U(this,4,t,arguments[1]))},getUint32:function(t){return L(U(this,4,t,arguments[1]))>>>0},getFloat32:function(t){return T(U(this,4,t,arguments[1]),23,4)},getFloat64:function(t){return T(U(this,8,t,arguments[1]),52,8)},setInt8:function(t,n){B(this,1,t,R,n)},setUint8:function(t,n){B(this,1,t,R,n)},setInt16:function(t,n){B(this,2,t,k,n,arguments[2])},setUint16:function(t,n){B(this,2,t,k,n,arguments[2])},setInt32:function(t,n){B(this,4,t,C,n,arguments[2])},setUint32:function(t,n){B(this,4,t,C,n,arguments[2])},setFloat32:function(t,n){B(this,4,t,W,n,arguments[2])},setFloat64:function(t,n){B(this,8,t,D,n,arguments[2])}});g(x,"ArrayBuffer"),g(m,"DataView"),c(m.prototype,u.VIEW,!0),n.ArrayBuffer=x,n.DataView=m},function(t,n){var r=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=r)},function(t,n){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,n,r){t.exports=!r(665)((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,n,r){t.exports=!r(78)&&!r(41)((function(){return 7!=Object.defineProperty(r(575)("div"),"a",{get:function(){return 7}}).a}))},function(t,n,r){var e=r(40),i=r(69),o=r(387),u=r(576),c=r(79).f;t.exports=function(t){var n=i.Symbol||(i.Symbol=o?{}:e.Symbol||{});"_"==t.charAt(0)||t in n||c(n,t,{value:u.f(t)})}},function(t,n,r){var e=r(123),i=r(125),o=r(550)(!1),u=r(577)("IE_PROTO");t.exports=function(t,n){var r,c=i(t),f=0,a=[];for(r in c)r!=u&&e(c,r)&&a.push(r);for(;n.length>f;)e(c,r=n[f++])&&(~o(a,r)||a.push(r));return a}},function(t,n,r){var e=r(79),i=r(42),o=r(388);t.exports=r(78)?Object.defineProperties:function(t,n){i(t);for(var r,u=o(n),c=u.length,f=0;c>f;)e.f(t,r=u[f++],n[r]);return t}},function(t,n,r){var e=r(125),i=r(391).f,o={}.toString,u="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];t.exports.f=function(t){return u&&"[object Window]"==o.call(t)?function(t){try{return i(t)}catch(t){return u.slice()}}(t):i(e(t))}},function(t,n,r){"use strict";var e=r(78),i=r(388),o=r(551),u=r(417),c=r(102),f=r(416),a=Object.assign;t.exports=!a||r(41)((function(){var t={},n={},r=Symbol(),e="abcdefghijklmnopqrst";return t[r]=7,e.split("").forEach((function(t){n[t]=t})),7!=a({},t)[r]||Object.keys(a({},n)).join("")!=e}))?function(t,n){for(var r=c(t),a=arguments.length,s=1,l=o.f,h=u.f;a>s;)for(var p,v=f(arguments[s++]),y=l?i(v).concat(l(v)):i(v),d=y.length,g=0;d>g;)p=y[g++],e&&!h.call(v,p)||(r[p]=v[p]);return r}:a},function(t,n){t.exports=Object.is||function(t,n){return t===n?0!==t||1/t==1/n:t!=t&&n!=n}},function(t,n,r){"use strict";var e=r(295),i=r(43),o=r(641),u=[].slice,c={},f=function(t,n,r){if(!(n in c)){for(var e=[],i=0;i<n;i++)e[i]="a["+i+"]";c[n]=Function("F,a","return new F("+e.join(",")+")")}return c[n](t,r)};t.exports=Function.bind||function(t){var n=e(this),r=u.call(arguments,1),c=function(){var e=r.concat(u.call(arguments));return this instanceof c?f(n,e.length,e):o(n,e,t)};return i(n.prototype)&&(c.prototype=n.prototype),c}},function(t,n){t.exports=function(t,n,r){var e=void 0===r;switch(n.length){case 0:return e?t():t.call(r);case 1:return e?t(n[0]):t.call(r,n[0]);case 2:return e?t(n[0],n[1]):t.call(r,n[0],n[1]);case 3:return e?t(n[0],n[1],n[2]):t.call(r,n[0],n[1],n[2]);case 4:return e?t(n[0],n[1],n[2],n[3]):t.call(r,n[0],n[1],n[2],n[3])}return t.apply(r,n)}},function(t,n,r){var e=r(40).parseInt,i=r(408).trim,o=r(581),u=/^[-+]?0[xX]/;t.exports=8!==e(o+"08")||22!==e(o+"0x16")?function(t,n){var r=i(String(t),3);return e(r,n>>>0||(u.test(r)?16:10))}:e},function(t,n,r){var e=r(40).parseFloat,i=r(408).trim;t.exports=1/e(r(581)+"-0")!=-1/0?function(t){var n=i(String(t),3),r=e(n);return 0===r&&"-"==n.charAt(0)?-0:r}:e},function(t,n,r){var e=r(304);t.exports=function(t,n){if("number"!=typeof t&&"Number"!=e(t))throw TypeError(n);return+t}},function(t,n,r){var e=r(43),i=Math.floor;t.exports=function(t){return!e(t)&&isFinite(t)&&i(t)===t}},function(t,n){t.exports=Math.log1p||function(t){return(t=+t)>-1e-8&&t<1e-8?t-t*t/2:Math.log(1+t)}},function(t,n,r){"use strict";var e=r(390),i=r(385),o=r(407),u={};r(124)(u,r(58)("iterator"),(function(){return this})),t.exports=function(t,n,r){t.prototype=e(u,{next:i(1,r)}),o(t,n+" Iterator")}},function(t,n,r){var e=r(42);t.exports=function(t,n,r,i){try{return i?n(e(r)[0],r[1]):n(r)}catch(n){var o=t.return;throw void 0!==o&&e(o.call(t)),n}}},function(t,n,r){var e=r(800);t.exports=function(t,n){return new(e(t))(n)}},function(t,n,r){var e=r(295),i=r(102),o=r(416),u=r(66);t.exports=function(t,n,r,c,f){e(n);var a=i(t),s=o(a),l=u(a.length),h=f?l-1:0,p=f?-1:1;if(r<2)for(;;){if(h in s){c=s[h],h+=p;break}if(h+=p,f?h<0:l<=h)throw TypeError("Reduce of empty array with no initial value")}for(;f?h>=0:l>h;h+=p)h in s&&(c=n(c,s[h],h,a));return c}},function(t,n,r){"use strict";var e=r(102),i=r(389),o=r(66);t.exports=[].copyWithin||function(t,n){var r=e(this),u=o(r.length),c=i(t,u),f=i(n,u),a=arguments.length>2?arguments[2]:void 0,s=Math.min((void 0===a?u:i(a,u))-f,u-c),l=1;for(f<c&&c<f+s&&(l=-1,f+=s-1,c+=s-1);s-- >0;)f in r?r[c]=r[f]:delete r[c],c+=l,f+=l;return r}},function(t,n){t.exports=function(t,n){return{value:n,done:!!t}}},function(t,n,r){"use strict";var e=r(596);r(8)({target:"RegExp",proto:!0,forced:e!==/./.exec},{exec:e})},function(t,n,r){r(78)&&"g"!=/./g.flags&&r(79).f(RegExp.prototype,"flags",{configurable:!0,get:r(554)})},function(t,n,r){"use strict";var e,i,o,u,c=r(387),f=r(40),a=r(294),s=r(418),l=r(8),h=r(43),p=r(295),v=r(411),y=r(557),d=r(419),g=r(598).set,x=r(820)(),m=r(656),b=r(821),S=r(558),w=r(657),_=f.TypeError,E=f.process,O=E&&E.versions,P=O&&O.v8||"",F=f.Promise,M="process"==s(E),A=function(){},j=i=m.f,I=!!function(){try{var t=F.resolve(1),n=(t.constructor={})[r(58)("species")]=function(t){t(A,A)};return(M||"function"==typeof PromiseRejectionEvent)&&t.then(A)instanceof n&&0!==P.indexOf("6.6")&&-1===S.indexOf("Chrome/66")}catch(t){}}(),N=function(t){var n;return!(!h(t)||"function"!=typeof(n=t.then))&&n},T=function(t,n){if(!t._n){t._n=!0;var r=t._c;x((function(){for(var e=t._v,i=1==t._s,o=0,u=function(n){var r,o,u,c=i?n.ok:n.fail,f=n.resolve,a=n.reject,s=n.domain;try{c?(i||(2==t._h&&k(t),t._h=1),!0===c?r=e:(s&&s.enter(),r=c(e),s&&(s.exit(),u=!0)),r===n.promise?a(_("Promise-chain cycle")):(o=N(r))?o.call(r,f,a):f(r)):a(e)}catch(t){s&&!u&&s.exit(),a(t)}};r.length>o;)u(r[o++]);t._c=[],t._n=!1,n&&!t._h&&L(t)}))}},L=function(t){g.call(f,(function(){var n,r,e,i=t._v,o=R(t);if(o&&(n=b((function(){M?E.emit("unhandledRejection",i,t):(r=f.onunhandledrejection)?r({promise:t,reason:i}):(e=f.console)&&e.error&&e.error("Unhandled promise rejection",i)})),t._h=M||R(t)?2:1),t._a=void 0,o&&n.e)throw n.v}))},R=function(t){return 1!==t._h&&0===(t._a||t._c).length},k=function(t){g.call(f,(function(){var n;M?E.emit("rejectionHandled",t):(n=f.onrejectionhandled)&&n({promise:t,reason:t._v})}))},C=function(t){var n=this;n._d||(n._d=!0,(n=n._w||n)._v=t,n._s=2,n._a||(n._a=n._c.slice()),T(n,!0))},D=function(t){var n,r=this;if(!r._d){r._d=!0,r=r._w||r;try{if(r===t)throw _("Promise can't be resolved itself");(n=N(t))?x((function(){var e={_w:r,_d:!1};try{n.call(t,a(D,e,1),a(C,e,1))}catch(t){C.call(e,t)}})):(r._v=t,r._s=1,T(r,!1))}catch(t){C.call({_w:r,_d:!1},t)}}};I||(F=function(t){v(this,F,"Promise","_h"),p(t),e.call(this);try{t(a(D,this,1),a(C,this,1))}catch(t){C.call(this,t)}},(e=function(t){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1}).prototype=r(412)(F.prototype,{then:function(t,n){var r=j(d(this,F));return r.ok="function"!=typeof t||t,r.fail="function"==typeof n&&n,r.domain=M?E.domain:void 0,this._c.push(r),this._a&&this._a.push(r),this._s&&T(this,!1),r.promise},catch:function(t){return this.then(void 0,t)}}),o=function(){var t=new e;this.promise=t,this.resolve=a(D,t,1),this.reject=a(C,t,1)},m.f=j=function(t){return t===F||t===u?new o(t):i(t)}),l(l.G+l.W+l.F*!I,{Promise:F}),r(407)(F,"Promise"),r(410)("Promise"),u=r(69).Promise,l(l.S+l.F*!I,"Promise",{reject:function(t){var n=j(this);return(0,n.reject)(t),n.promise}}),l(l.S+l.F*(c||!I),"Promise",{resolve:function(t){return w(c&&this===u?F:this,t)}}),l(l.S+l.F*!(I&&r(553)((function(t){F.all(t).catch(A)}))),"Promise",{all:function(t){var n=this,r=j(n),e=r.resolve,i=r.reject,o=b((function(){var r=[],o=0,u=1;y(t,!1,(function(t){var c=o++,f=!1;r.push(void 0),u++,n.resolve(t).then((function(t){f||(f=!0,r[c]=t,--u||e(r))}),i)})),--u||e(r)}));return o.e&&i(o.v),r.promise},race:function(t){var n=this,r=j(n),e=r.reject,i=b((function(){y(t,!1,(function(t){n.resolve(t).then(r.resolve,e)}))}));return i.e&&e(i.v),r.promise}})},function(t,n,r){"use strict";var e=r(295);function i(t){var n,r;this.promise=new t((function(t,e){if(void 0!==n||void 0!==r)throw TypeError("Bad Promise constructor");n=t,r=e})),this.resolve=e(n),this.reject=e(r)}t.exports.f=function(t){return new i(t)}},function(t,n,r){var e=r(42),i=r(43),o=r(656);t.exports=function(t,n){if(e(t),i(n)&&n.constructor===t)return n;var r=o.f(t);return(0,r.resolve)(n),r.promise}},function(t,n,r){"use strict";var e=r(79).f,i=r(390),o=r(412),u=r(294),c=r(411),f=r(557),a=r(587),s=r(652),l=r(410),h=r(78),p=r(313).fastKey,v=r(394),y=h?"_s":"size",d=function(t,n){var r,e=p(n);if("F"!==e)return t._i[e];for(r=t._f;r;r=r.n)if(r.k==n)return r};t.exports={getConstructor:function(t,n,r,a){var s=t((function(t,e){c(t,s,n,"_i"),t._t=n,t._i=i(null),t._f=void 0,t._l=void 0,t[y]=0,null!=e&&f(e,r,t[a],t)}));return o(s.prototype,{clear:function(){for(var t=v(this,n),r=t._i,e=t._f;e;e=e.n)e.r=!0,e.p&&(e.p=e.p.n=void 0),delete r[e.i];t._f=t._l=void 0,t[y]=0},delete:function(t){var r=v(this,n),e=d(r,t);if(e){var i=e.n,o=e.p;delete r._i[e.i],e.r=!0,o&&(o.n=i),i&&(i.p=o),r._f==e&&(r._f=i),r._l==e&&(r._l=o),r[y]--}return!!e},forEach:function(t){v(this,n);for(var r,e=u(t,arguments.length>1?arguments[1]:void 0,3);r=r?r.n:this._f;)for(e(r.v,r.k,this);r&&r.r;)r=r.p},has:function(t){return!!d(v(this,n),t)}}),h&&e(s.prototype,"size",{get:function(){return v(this,n)[y]}}),s},def:function(t,n,r){var e,i,o=d(t,n);return o?o.v=r:(t._l=o={i:i=p(n,!0),k:n,v:r,p:e=t._l,n:void 0,r:!1},t._f||(t._f=o),e&&(e.n=o),t[y]++,"F"!==i&&(t._i[i]=o)),t},getEntry:d,setStrong:function(t,n,r){a(t,n,(function(t,r){this._t=v(t,n),this._k=r,this._l=void 0}),(function(){for(var t=this._k,n=this._l;n&&n.r;)n=n.p;return this._t&&(this._l=n=n?n.n:this._t._f)?s(0,"keys"==t?n.k:"values"==t?n.v:[n.k,n.v]):(this._t=void 0,s(1))}),r?"entries":"values",!r,!0),l(n)}}},function(t,n,r){"use strict";var e=r(412),i=r(313).getWeak,o=r(42),u=r(43),c=r(411),f=r(557),a=r(299),s=r(123),l=r(394),h=a(5),p=a(6),v=0,y=function(t){return t._l||(t._l=new d)},d=function(){this.a=[]},g=function(t,n){return h(t.a,(function(t){return t[0]===n}))};d.prototype={get:function(t){var n=g(this,t);if(n)return n[1]},has:function(t){return!!g(this,t)},set:function(t,n){var r=g(this,t);r?r[1]=n:this.a.push([t,n])},delete:function(t){var n=p(this.a,(function(n){return n[0]===t}));return~n&&this.a.splice(n,1),!!~n}},t.exports={getConstructor:function(t,n,r,o){var a=t((function(t,e){c(t,a,n,"_i"),t._t=n,t._i=v++,t._l=void 0,null!=e&&f(e,r,t[o],t)}));return e(a.prototype,{delete:function(t){if(!u(t))return!1;var r=i(t);return!0===r?y(l(this,n)).delete(t):r&&s(r,this._i)&&delete r[this._i]},has:function(t){if(!u(t))return!1;var r=i(t);return!0===r?y(l(this,n)).has(t):r&&s(r,this._i)}}),a},def:function(t,n,r){var e=i(o(n),!0);return!0===e?y(t).set(n,r):e[t._i]=r,t},ufstore:y}},function(t,n,r){var e=r(296),i=r(66);t.exports=function(t){if(void 0===t)return 0;var n=e(t),r=i(n);if(n!==r)throw RangeError("Wrong length!");return r}},function(t,n,r){var e=r(391),i=r(551),o=r(42),u=r(40).Reflect;t.exports=u&&u.ownKeys||function(t){var n=e.f(o(t)),r=i.f;return r?n.concat(r(t)):n}},function(t,n,r){var e=r(66),i=r(583),o=r(305);t.exports=function(t,n,r,u){var c=String(o(t)),f=c.length,a=void 0===r?" ":String(r),s=e(n);if(s<=f||""==a)return c;var l=s-f,h=i.call(a,Math.ceil(l/a.length));return h.length>l&&(h=h.slice(0,l)),u?h+c:c+h}},function(t,n,r){var e=r(78),i=r(388),o=r(125),u=r(417).f;t.exports=function(t){return function(n){for(var r,c=o(n),f=i(c),a=f.length,s=0,l=[];a>s;)r=f[s++],e&&!u.call(c,r)||l.push(t?[r,c[r]]:c[r]);return l}}},function(t,n){var r=t.exports={version:"2.6.12"};"number"==typeof __e&&(__e=r)},function(t,n){t.exports=function(t){try{return!!t()}catch(t){return!0}}},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,n,r){"use strict";r(707);var e,i=(e=r(878))&&e.__esModule?e:{default:e};i.default._babelPolyfill&&"undefined"!=typeof console&&console.warn&&console.warn("@babel/polyfill is loaded more than once on this page. This is probably not desirable/intended and may have consequences if different versions of the polyfills are applied sequentially. If you do need to load the polyfill more than once, use @babel/polyfill/noConflict instead to bypass the warning."),i.default._babelPolyfill=!0},function(t,n,r){"use strict";r(708),r(851),r(853),r(856),r(858),r(860),r(862),r(864),r(866),r(868),r(870),r(872),r(874),r(303)},function(t,n,r){r(709),r(712),r(713),r(714),r(715),r(716),r(717),r(718),r(719),r(720),r(721),r(722),r(723),r(724),r(725),r(726),r(727),r(728),r(729),r(730),r(731),r(732),r(733),r(734),r(735),r(736),r(737),r(738),r(739),r(740),r(741),r(742),r(743),r(744),r(745),r(746),r(747),r(748),r(749),r(750),r(751),r(752),r(753),r(755),r(756),r(757),r(758),r(759),r(760),r(761),r(762),r(763),r(764),r(765),r(766),r(767),r(768),r(769),r(770),r(771),r(772),r(773),r(774),r(775),r(776),r(777),r(778),r(779),r(780),r(781),r(782),r(783),r(784),r(785),r(786),r(787),r(788),r(790),r(791),r(793),r(794),r(795),r(796),r(797),r(798),r(799),r(801),r(802),r(803),r(804),r(805),r(806),r(807),r(808),r(809),r(810),r(811),r(812),r(813),r(595),r(814),r(653),r(815),r(654),r(816),r(817),r(818),r(819),r(655),r(822),r(823),r(824),r(825),r(826),r(827),r(828),r(829),r(830),r(831),r(832),r(833),r(834),r(835),r(836),r(837),r(838),r(839),r(840),r(841),r(842),r(843),r(844),r(845),r(846),r(847),r(848),r(849),r(850),t.exports=r(69)},function(t,n,r){"use strict";var e=r(40),i=r(123),o=r(78),u=r(8),c=r(112),f=r(313).KEY,a=r(41),s=r(549),l=r(407),h=r(386),p=r(58),v=r(576),y=r(634),d=r(711),g=r(552),x=r(42),m=r(43),b=r(102),S=r(125),w=r(312),_=r(385),E=r(390),O=r(637),P=r(297),F=r(551),M=r(79),A=r(388),j=P.f,I=M.f,N=O.f,T=e.Symbol,L=e.JSON,R=L&&L.stringify,k=p("_hidden"),C=p("toPrimitive"),D={}.propertyIsEnumerable,W=s("symbol-registry"),G=s("symbols"),U=s("op-symbols"),B=Object.prototype,V="function"==typeof T&&!!F.f,z=e.QObject,Y=!z||!z.prototype||!z.prototype.findChild,q=o&&a((function(){return 7!=E(I({},"a",{get:function(){return I(this,"a",{value:7}).a}})).a}))?function(t,n,r){var e=j(B,n);e&&delete B[n],I(t,n,r),e&&t!==B&&I(B,n,e)}:I,$=function(t){var n=G[t]=E(T.prototype);return n._k=t,n},K=V&&"symbol"==typeof T.iterator?function(t){return"symbol"==typeof t}:function(t){return t instanceof T},J=function(t,n,r){return t===B&&J(U,n,r),x(t),n=w(n,!0),x(r),i(G,n)?(r.enumerable?(i(t,k)&&t[k][n]&&(t[k][n]=!1),r=E(r,{enumerable:_(0,!1)})):(i(t,k)||I(t,k,_(1,{})),t[k][n]=!0),q(t,n,r)):I(t,n,r)},X=function(t,n){x(t);for(var r,e=d(n=S(n)),i=0,o=e.length;o>i;)J(t,r=e[i++],n[r]);return t},H=function(t){var n=D.call(this,t=w(t,!0));return!(this===B&&i(G,t)&&!i(U,t))&&(!(n||!i(this,t)||!i(G,t)||i(this,k)&&this[k][t])||n)},Z=function(t,n){if(t=S(t),n=w(n,!0),t!==B||!i(G,n)||i(U,n)){var r=j(t,n);return!r||!i(G,n)||i(t,k)&&t[k][n]||(r.enumerable=!0),r}},Q=function(t){for(var n,r=N(S(t)),e=[],o=0;r.length>o;)i(G,n=r[o++])||n==k||n==f||e.push(n);return e},tt=function(t){for(var n,r=t===B,e=N(r?U:S(t)),o=[],u=0;e.length>u;)!i(G,n=e[u++])||r&&!i(B,n)||o.push(G[n]);return o};V||(c((T=function(){if(this instanceof T)throw TypeError("Symbol is not a constructor!");var t=h(arguments.length>0?arguments[0]:void 0),n=function(r){this===B&&n.call(U,r),i(this,k)&&i(this[k],t)&&(this[k][t]=!1),q(this,t,_(1,r))};return o&&Y&&q(B,t,{configurable:!0,set:n}),$(t)}).prototype,"toString",(function(){return this._k})),P.f=Z,M.f=J,r(391).f=O.f=Q,r(417).f=H,F.f=tt,o&&!r(387)&&c(B,"propertyIsEnumerable",H,!0),v.f=function(t){return $(p(t))}),u(u.G+u.W+u.F*!V,{Symbol:T});for(var nt="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),rt=0;nt.length>rt;)p(nt[rt++]);for(var et=A(p.store),it=0;et.length>it;)y(et[it++]);u(u.S+u.F*!V,"Symbol",{for:function(t){return i(W,t+="")?W[t]:W[t]=T(t)},keyFor:function(t){if(!K(t))throw TypeError(t+" is not a symbol!");for(var n in W)if(W[n]===t)return n},useSetter:function(){Y=!0},useSimple:function(){Y=!1}}),u(u.S+u.F*!V,"Object",{create:function(t,n){return void 0===n?E(t):X(E(t),n)},defineProperty:J,defineProperties:X,getOwnPropertyDescriptor:Z,getOwnPropertyNames:Q,getOwnPropertySymbols:tt});var ot=a((function(){F.f(1)}));u(u.S+u.F*ot,"Object",{getOwnPropertySymbols:function(t){return F.f(b(t))}}),L&&u(u.S+u.F*(!V||a((function(){var t=T();return"[null]"!=R([t])||"{}"!=R({a:t})||"{}"!=R(Object(t))}))),"JSON",{stringify:function(t){for(var n,r,e=[t],i=1;arguments.length>i;)e.push(arguments[i++]);if(r=n=e[1],(m(n)||void 0!==t)&&!K(t))return g(n)||(n=function(t,n){if("function"==typeof r&&(n=r.call(this,t,n)),!K(n))return n}),e[1]=n,R.apply(L,e)}}),T.prototype[C]||r(124)(T.prototype,C,T.prototype.valueOf),l(T,"Symbol"),l(Math,"Math",!0),l(e.JSON,"JSON",!0)},function(t,n,r){t.exports=r(549)("native-function-to-string",Function.toString)},function(t,n,r){var e=r(388),i=r(551),o=r(417);t.exports=function(t){var n=e(t),r=i.f;if(r)for(var u,c=r(t),f=o.f,a=0;c.length>a;)f.call(t,u=c[a++])&&n.push(u);return n}},function(t,n,r){var e=r(8);e(e.S,"Object",{create:r(390)})},function(t,n,r){var e=r(8);e(e.S+e.F*!r(78),"Object",{defineProperty:r(79).f})},function(t,n,r){var e=r(8);e(e.S+e.F*!r(78),"Object",{defineProperties:r(636)})},function(t,n,r){var e=r(125),i=r(297).f;r(298)("getOwnPropertyDescriptor",(function(){return function(t,n){return i(e(t),n)}}))},function(t,n,r){var e=r(102),i=r(392);r(298)("getPrototypeOf",(function(){return function(t){return i(e(t))}}))},function(t,n,r){var e=r(102),i=r(388);r(298)("keys",(function(){return function(t){return i(e(t))}}))},function(t,n,r){r(298)("getOwnPropertyNames",(function(){return r(637).f}))},function(t,n,r){var e=r(43),i=r(313).onFreeze;r(298)("freeze",(function(t){return function(n){return t&&e(n)?t(i(n)):n}}))},function(t,n,r){var e=r(43),i=r(313).onFreeze;r(298)("seal",(function(t){return function(n){return t&&e(n)?t(i(n)):n}}))},function(t,n,r){var e=r(43),i=r(313).onFreeze;r(298)("preventExtensions",(function(t){return function(n){return t&&e(n)?t(i(n)):n}}))},function(t,n,r){var e=r(43);r(298)("isFrozen",(function(t){return function(n){return!e(n)||!!t&&t(n)}}))},function(t,n,r){var e=r(43);r(298)("isSealed",(function(t){return function(n){return!e(n)||!!t&&t(n)}}))},function(t,n,r){var e=r(43);r(298)("isExtensible",(function(t){return function(n){return!!e(n)&&(!t||t(n))}}))},function(t,n,r){var e=r(8);e(e.S+e.F,"Object",{assign:r(638)})},function(t,n,r){var e=r(8);e(e.S,"Object",{is:r(639)})},function(t,n,r){var e=r(8);e(e.S,"Object",{setPrototypeOf:r(580).set})},function(t,n,r){"use strict";var e=r(418),i={};i[r(58)("toStringTag")]="z",i+""!="[object z]"&&r(112)(Object.prototype,"toString",(function(){return"[object "+e(this)+"]"}),!0)},function(t,n,r){var e=r(8);e(e.P,"Function",{bind:r(640)})},function(t,n,r){var e=r(79).f,i=Function.prototype,o=/^\s*function ([^ (]*)/;"name"in i||r(78)&&e(i,"name",{configurable:!0,get:function(){try{return(""+this).match(o)[1]}catch(t){return""}}})},function(t,n,r){"use strict";var e=r(43),i=r(392),o=r(58)("hasInstance"),u=Function.prototype;o in u||r(79).f(u,o,{value:function(t){if("function"!=typeof this||!e(t))return!1;if(!e(this.prototype))return t instanceof this;for(;t=i(t);)if(this.prototype===t)return!0;return!1}})},function(t,n,r){var e=r(8),i=r(642);e(e.G+e.F*(parseInt!=i),{parseInt:i})},function(t,n,r){var e=r(8),i=r(643);e(e.G+e.F*(parseFloat!=i),{parseFloat:i})},function(t,n,r){"use strict";var e=r(40),i=r(123),o=r(304),u=r(582),c=r(312),f=r(41),a=r(391).f,s=r(297).f,l=r(79).f,h=r(408).trim,p=e.Number,v=p,y=p.prototype,d="Number"==o(r(390)(y)),g="trim"in String.prototype,x=function(t){var n=c(t,!1);if("string"==typeof n&&n.length>2){var r,e,i,o=(n=g?n.trim():h(n,3)).charCodeAt(0);if(43===o||45===o){if(88===(r=n.charCodeAt(2))||120===r)return NaN}else if(48===o){switch(n.charCodeAt(1)){case 66:case 98:e=2,i=49;break;case 79:case 111:e=8,i=55;break;default:return+n}for(var u,f=n.slice(2),a=0,s=f.length;a<s;a++)if((u=f.charCodeAt(a))<48||u>i)return NaN;return parseInt(f,e)}}return+n};if(!p(" 0o1")||!p("0b1")||p("+0x1")){p=function(t){var n=arguments.length<1?0:t,r=this;return r instanceof p&&(d?f((function(){y.valueOf.call(r)})):"Number"!=o(r))?u(new v(x(n)),r,p):x(n)};for(var m,b=r(78)?a(v):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),S=0;b.length>S;S++)i(v,m=b[S])&&!i(p,m)&&l(p,m,s(v,m));p.prototype=y,y.constructor=p,r(112)(e,"Number",p)}},function(t,n,r){"use strict";var e=r(8),i=r(296),o=r(644),u=r(583),c=1..toFixed,f=Math.floor,a=[0,0,0,0,0,0],s="Number.toFixed: incorrect invocation!",l=function(t,n){for(var r=-1,e=n;++r<6;)e+=t*a[r],a[r]=e%1e7,e=f(e/1e7)},h=function(t){for(var n=6,r=0;--n>=0;)r+=a[n],a[n]=f(r/t),r=r%t*1e7},p=function(){for(var t=6,n="";--t>=0;)if(""!==n||0===t||0!==a[t]){var r=String(a[t]);n=""===n?r:n+u.call("0",7-r.length)+r}return n},v=function(t,n,r){return 0===n?r:n%2==1?v(t,n-1,r*t):v(t*t,n/2,r)};e(e.P+e.F*(!!c&&("0.000"!==8e-5.toFixed(3)||"1"!==.9.toFixed(0)||"1.25"!==1.255.toFixed(2)||"1000000000000000128"!==(0xde0b6b3a7640080).toFixed(0))||!r(41)((function(){c.call({})}))),"Number",{toFixed:function(t){var n,r,e,c,f=o(this,s),a=i(t),y="",d="0";if(a<0||a>20)throw RangeError(s);if(f!=f)return"NaN";if(f<=-1e21||f>=1e21)return String(f);if(f<0&&(y="-",f=-f),f>1e-21)if(r=(n=function(t){for(var n=0,r=t;r>=4096;)n+=12,r/=4096;for(;r>=2;)n+=1,r/=2;return n}(f*v(2,69,1))-69)<0?f*v(2,-n,1):f/v(2,n,1),r*=4503599627370496,(n=52-n)>0){for(l(0,r),e=a;e>=7;)l(1e7,0),e-=7;for(l(v(10,e,1),0),e=n-1;e>=23;)h(1<<23),e-=23;h(1<<e),l(1,1),h(2),d=p()}else l(0,r),l(1<<-n,0),d=p()+u.call("0",a);return d=a>0?y+((c=d.length)<=a?"0."+u.call("0",a-c)+d:d.slice(0,c-a)+"."+d.slice(c-a)):y+d}})},function(t,n,r){"use strict";var e=r(8),i=r(41),o=r(644),u=1..toPrecision;e(e.P+e.F*(i((function(){return"1"!==u.call(1,void 0)}))||!i((function(){u.call({})}))),"Number",{toPrecision:function(t){var n=o(this,"Number#toPrecision: incorrect invocation!");return void 0===t?u.call(n):u.call(n,t)}})},function(t,n,r){var e=r(8);e(e.S,"Number",{EPSILON:Math.pow(2,-52)})},function(t,n,r){var e=r(8),i=r(40).isFinite;e(e.S,"Number",{isFinite:function(t){return"number"==typeof t&&i(t)}})},function(t,n,r){var e=r(8);e(e.S,"Number",{isInteger:r(645)})},function(t,n,r){var e=r(8);e(e.S,"Number",{isNaN:function(t){return t!=t}})},function(t,n,r){var e=r(8),i=r(645),o=Math.abs;e(e.S,"Number",{isSafeInteger:function(t){return i(t)&&o(t)<=9007199254740991}})},function(t,n,r){var e=r(8);e(e.S,"Number",{MAX_SAFE_INTEGER:9007199254740991})},function(t,n,r){var e=r(8);e(e.S,"Number",{MIN_SAFE_INTEGER:-9007199254740991})},function(t,n,r){var e=r(8),i=r(643);e(e.S+e.F*(Number.parseFloat!=i),"Number",{parseFloat:i})},function(t,n,r){var e=r(8),i=r(642);e(e.S+e.F*(Number.parseInt!=i),"Number",{parseInt:i})},function(t,n,r){var e=r(8),i=r(646),o=Math.sqrt,u=Math.acosh;e(e.S+e.F*!(u&&710==Math.floor(u(Number.MAX_VALUE))&&u(1/0)==1/0),"Math",{acosh:function(t){return(t=+t)<1?NaN:t>94906265.62425156?Math.log(t)+Math.LN2:i(t-1+o(t-1)*o(t+1))}})},function(t,n,r){var e=r(8),i=Math.asinh;e(e.S+e.F*!(i&&1/i(0)>0),"Math",{asinh:function t(n){return isFinite(n=+n)&&0!=n?n<0?-t(-n):Math.log(n+Math.sqrt(n*n+1)):n}})},function(t,n,r){var e=r(8),i=Math.atanh;e(e.S+e.F*!(i&&1/i(-0)<0),"Math",{atanh:function(t){return 0==(t=+t)?t:Math.log((1+t)/(1-t))/2}})},function(t,n,r){var e=r(8),i=r(584);e(e.S,"Math",{cbrt:function(t){return i(t=+t)*Math.pow(Math.abs(t),1/3)}})},function(t,n,r){var e=r(8);e(e.S,"Math",{clz32:function(t){return(t>>>=0)?31-Math.floor(Math.log(t+.5)*Math.LOG2E):32}})},function(t,n,r){var e=r(8),i=Math.exp;e(e.S,"Math",{cosh:function(t){return(i(t=+t)+i(-t))/2}})},function(t,n,r){var e=r(8),i=r(585);e(e.S+e.F*(i!=Math.expm1),"Math",{expm1:i})},function(t,n,r){var e=r(8);e(e.S,"Math",{fround:r(754)})},function(t,n,r){var e=r(584),i=Math.pow,o=i(2,-52),u=i(2,-23),c=i(2,127)*(2-u),f=i(2,-126);t.exports=Math.fround||function(t){var n,r,i=Math.abs(t),a=e(t);return i<f?a*(i/f/u+1/o-1/o)*f*u:(r=(n=(1+u/o)*i)-(n-i))>c||r!=r?a*(1/0):a*r}},function(t,n,r){var e=r(8),i=Math.abs;e(e.S,"Math",{hypot:function(t,n){for(var r,e,o=0,u=0,c=arguments.length,f=0;u<c;)f<(r=i(arguments[u++]))?(o=o*(e=f/r)*e+1,f=r):o+=r>0?(e=r/f)*e:r;return f===1/0?1/0:f*Math.sqrt(o)}})},function(t,n,r){var e=r(8),i=Math.imul;e(e.S+e.F*r(41)((function(){return-5!=i(4294967295,5)||2!=i.length})),"Math",{imul:function(t,n){var r=+t,e=+n,i=65535&r,o=65535&e;return 0|i*o+((65535&r>>>16)*o+i*(65535&e>>>16)<<16>>>0)}})},function(t,n,r){var e=r(8);e(e.S,"Math",{log10:function(t){return Math.log(t)*Math.LOG10E}})},function(t,n,r){var e=r(8);e(e.S,"Math",{log1p:r(646)})},function(t,n,r){var e=r(8);e(e.S,"Math",{log2:function(t){return Math.log(t)/Math.LN2}})},function(t,n,r){var e=r(8);e(e.S,"Math",{sign:r(584)})},function(t,n,r){var e=r(8),i=r(585),o=Math.exp;e(e.S+e.F*r(41)((function(){return-2e-17!=!Math.sinh(-2e-17)})),"Math",{sinh:function(t){return Math.abs(t=+t)<1?(i(t)-i(-t))/2:(o(t-1)-o(-t-1))*(Math.E/2)}})},function(t,n,r){var e=r(8),i=r(585),o=Math.exp;e(e.S,"Math",{tanh:function(t){var n=i(t=+t),r=i(-t);return n==1/0?1:r==1/0?-1:(n-r)/(o(t)+o(-t))}})},function(t,n,r){var e=r(8);e(e.S,"Math",{trunc:function(t){return(t>0?Math.floor:Math.ceil)(t)}})},function(t,n,r){var e=r(8),i=r(389),o=String.fromCharCode,u=String.fromCodePoint;e(e.S+e.F*(!!u&&1!=u.length),"String",{fromCodePoint:function(t){for(var n,r=[],e=arguments.length,u=0;e>u;){if(n=+arguments[u++],i(n,1114111)!==n)throw RangeError(n+" is not a valid code point");r.push(n<65536?o(n):o(55296+((n-=65536)>>10),n%1024+56320))}return r.join("")}})},function(t,n,r){var e=r(8),i=r(125),o=r(66);e(e.S,"String",{raw:function(t){for(var n=i(t.raw),r=o(n.length),e=arguments.length,u=[],c=0;r>c;)u.push(String(n[c++])),c<e&&u.push(String(arguments[c]));return u.join("")}})},function(t,n,r){"use strict";r(408)("trim",(function(t){return function(){return t(this,3)}}))},function(t,n,r){"use strict";var e=r(586)(!0);r(587)(String,"String",(function(t){this._t=String(t),this._i=0}),(function(){var t,n=this._t,r=this._i;return r>=n.length?{value:void 0,done:!0}:(t=e(n,r),this._i+=t.length,{value:t,done:!1})}))},function(t,n,r){"use strict";var e=r(8),i=r(586)(!1);e(e.P,"String",{codePointAt:function(t){return i(this,t)}})},function(t,n,r){"use strict";var e=r(8),i=r(66),o=r(588),u="".endsWith;e(e.P+e.F*r(590)("endsWith"),"String",{endsWith:function(t){var n=o(this,t,"endsWith"),r=arguments.length>1?arguments[1]:void 0,e=i(n.length),c=void 0===r?e:Math.min(i(r),e),f=String(t);return u?u.call(n,f,c):n.slice(c-f.length,c)===f}})},function(t,n,r){"use strict";var e=r(8),i=r(588);e(e.P+e.F*r(590)("includes"),"String",{includes:function(t){return!!~i(this,t,"includes").indexOf(t,arguments.length>1?arguments[1]:void 0)}})},function(t,n,r){var e=r(8);e(e.P,"String",{repeat:r(583)})},function(t,n,r){"use strict";var e=r(8),i=r(66),o=r(588),u="".startsWith;e(e.P+e.F*r(590)("startsWith"),"String",{startsWith:function(t){var n=o(this,t,"startsWith"),r=i(Math.min(arguments.length>1?arguments[1]:void 0,n.length)),e=String(t);return u?u.call(n,e,r):n.slice(r,r+e.length)===e}})},function(t,n,r){"use strict";r(113)("anchor",(function(t){return function(n){return t(this,"a","name",n)}}))},function(t,n,r){"use strict";r(113)("big",(function(t){return function(){return t(this,"big","","")}}))},function(t,n,r){"use strict";r(113)("blink",(function(t){return function(){return t(this,"blink","","")}}))},function(t,n,r){"use strict";r(113)("bold",(function(t){return function(){return t(this,"b","","")}}))},function(t,n,r){"use strict";r(113)("fixed",(function(t){return function(){return t(this,"tt","","")}}))},function(t,n,r){"use strict";r(113)("fontcolor",(function(t){return function(n){return t(this,"font","color",n)}}))},function(t,n,r){"use strict";r(113)("fontsize",(function(t){return function(n){return t(this,"font","size",n)}}))},function(t,n,r){"use strict";r(113)("italics",(function(t){return function(){return t(this,"i","","")}}))},function(t,n,r){"use strict";r(113)("link",(function(t){return function(n){return t(this,"a","href",n)}}))},function(t,n,r){"use strict";r(113)("small",(function(t){return function(){return t(this,"small","","")}}))},function(t,n,r){"use strict";r(113)("strike",(function(t){return function(){return t(this,"strike","","")}}))},function(t,n,r){"use strict";r(113)("sub",(function(t){return function(){return t(this,"sub","","")}}))},function(t,n,r){"use strict";r(113)("sup",(function(t){return function(){return t(this,"sup","","")}}))},function(t,n,r){var e=r(8);e(e.S,"Date",{now:function(){return(new Date).getTime()}})},function(t,n,r){"use strict";var e=r(8),i=r(102),o=r(312);e(e.P+e.F*r(41)((function(){return null!==new Date(NaN).toJSON()||1!==Date.prototype.toJSON.call({toISOString:function(){return 1}})})),"Date",{toJSON:function(t){var n=i(this),r=o(n);return"number"!=typeof r||isFinite(r)?n.toISOString():null}})},function(t,n,r){var e=r(8),i=r(789);e(e.P+e.F*(Date.prototype.toISOString!==i),"Date",{toISOString:i})},function(t,n,r){"use strict";var e=r(41),i=Date.prototype.getTime,o=Date.prototype.toISOString,u=function(t){return t>9?t:"0"+t};t.exports=e((function(){return"0385-07-25T07:06:39.999Z"!=o.call(new Date(-50000000000001))}))||!e((function(){o.call(new Date(NaN))}))?function(){if(!isFinite(i.call(this)))throw RangeError("Invalid time value");var t=this,n=t.getUTCFullYear(),r=t.getUTCMilliseconds(),e=n<0?"-":n>9999?"+":"";return e+("00000"+Math.abs(n)).slice(e?-6:-4)+"-"+u(t.getUTCMonth()+1)+"-"+u(t.getUTCDate())+"T"+u(t.getUTCHours())+":"+u(t.getUTCMinutes())+":"+u(t.getUTCSeconds())+"."+(r>99?r:"0"+u(r))+"Z"}:o},function(t,n,r){var e=Date.prototype,i=e.toString,o=e.getTime;new Date(NaN)+""!="Invalid Date"&&r(112)(e,"toString",(function(){var t=o.call(this);return t==t?i.call(this):"Invalid Date"}))},function(t,n,r){var e=r(58)("toPrimitive"),i=Date.prototype;e in i||r(124)(i,e,r(792))},function(t,n,r){"use strict";var e=r(42),i=r(312);t.exports=function(t){if("string"!==t&&"number"!==t&&"default"!==t)throw TypeError("Incorrect hint");return i(e(this),"number"!=t)}},function(t,n,r){var e=r(8);e(e.S,"Array",{isArray:r(552)})},function(t,n,r){"use strict";var e=r(294),i=r(8),o=r(102),u=r(648),c=r(591),f=r(66),a=r(592),s=r(593);i(i.S+i.F*!r(553)((function(t){Array.from(t)})),"Array",{from:function(t){var n,r,i,l,h=o(t),p="function"==typeof this?this:Array,v=arguments.length,y=v>1?arguments[1]:void 0,d=void 0!==y,g=0,x=s(h);if(d&&(y=e(y,v>2?arguments[2]:void 0,2)),null==x||p==Array&&c(x))for(r=new p(n=f(h.length));n>g;g++)a(r,g,d?y(h[g],g):h[g]);else for(l=x.call(h),r=new p;!(i=l.next()).done;g++)a(r,g,d?u(l,y,[i.value,g],!0):i.value);return r.length=g,r}})},function(t,n,r){"use strict";var e=r(8),i=r(592);e(e.S+e.F*r(41)((function(){function t(){}return!(Array.of.call(t)instanceof t)})),"Array",{of:function(){for(var t=0,n=arguments.length,r=new("function"==typeof this?this:Array)(n);n>t;)i(r,t,arguments[t++]);return r.length=n,r}})},function(t,n,r){"use strict";var e=r(8),i=r(125),o=[].join;e(e.P+e.F*(r(416)!=Object||!r(126)(o)),"Array",{join:function(t){return o.call(i(this),void 0===t?",":t)}})},function(t,n,r){"use strict";var e=r(8),i=r(579),o=r(304),u=r(389),c=r(66),f=[].slice;e(e.P+e.F*r(41)((function(){i&&f.call(i)})),"Array",{slice:function(t,n){var r=c(this.length),e=o(this);if(n=void 0===n?r:n,"Array"==e)return f.call(this,t,n);for(var i=u(t,r),a=u(n,r),s=c(a-i),l=new Array(s),h=0;h<s;h++)l[h]="String"==e?this.charAt(i+h):this[i+h];return l}})},function(t,n,r){"use strict";var e=r(8),i=r(295),o=r(102),u=r(41),c=[].sort,f=[1,2,3];e(e.P+e.F*(u((function(){f.sort(void 0)}))||!u((function(){f.sort(null)}))||!r(126)(c)),"Array",{sort:function(t){return void 0===t?c.call(o(this)):c.call(o(this),i(t))}})},function(t,n,r){"use strict";var e=r(8),i=r(299)(0),o=r(126)([].forEach,!0);e(e.P+e.F*!o,"Array",{forEach:function(t){return i(this,t,arguments[1])}})},function(t,n,r){var e=r(43),i=r(552),o=r(58)("species");t.exports=function(t){var n;return i(t)&&("function"!=typeof(n=t.constructor)||n!==Array&&!i(n.prototype)||(n=void 0),e(n)&&null===(n=n[o])&&(n=void 0)),void 0===n?Array:n}},function(t,n,r){"use strict";var e=r(8),i=r(299)(1);e(e.P+e.F*!r(126)([].map,!0),"Array",{map:function(t){return i(this,t,arguments[1])}})},function(t,n,r){"use strict";var e=r(8),i=r(299)(2);e(e.P+e.F*!r(126)([].filter,!0),"Array",{filter:function(t){return i(this,t,arguments[1])}})},function(t,n,r){"use strict";var e=r(8),i=r(299)(3);e(e.P+e.F*!r(126)([].some,!0),"Array",{some:function(t){return i(this,t,arguments[1])}})},function(t,n,r){"use strict";var e=r(8),i=r(299)(4);e(e.P+e.F*!r(126)([].every,!0),"Array",{every:function(t){return i(this,t,arguments[1])}})},function(t,n,r){"use strict";var e=r(8),i=r(650);e(e.P+e.F*!r(126)([].reduce,!0),"Array",{reduce:function(t){return i(this,t,arguments.length,arguments[1],!1)}})},function(t,n,r){"use strict";var e=r(8),i=r(650);e(e.P+e.F*!r(126)([].reduceRight,!0),"Array",{reduceRight:function(t){return i(this,t,arguments.length,arguments[1],!0)}})},function(t,n,r){"use strict";var e=r(8),i=r(550)(!1),o=[].indexOf,u=!!o&&1/[1].indexOf(1,-0)<0;e(e.P+e.F*(u||!r(126)(o)),"Array",{indexOf:function(t){return u?o.apply(this,arguments)||0:i(this,t,arguments[1])}})},function(t,n,r){"use strict";var e=r(8),i=r(125),o=r(296),u=r(66),c=[].lastIndexOf,f=!!c&&1/[1].lastIndexOf(1,-0)<0;e(e.P+e.F*(f||!r(126)(c)),"Array",{lastIndexOf:function(t){if(f)return c.apply(this,arguments)||0;var n=i(this),r=u(n.length),e=r-1;for(arguments.length>1&&(e=Math.min(e,o(arguments[1]))),e<0&&(e=r+e);e>=0;e--)if(e in n&&n[e]===t)return e||0;return-1}})},function(t,n,r){var e=r(8);e(e.P,"Array",{copyWithin:r(651)}),r(393)("copyWithin")},function(t,n,r){var e=r(8);e(e.P,"Array",{fill:r(594)}),r(393)("fill")},function(t,n,r){"use strict";var e=r(8),i=r(299)(5),o=!0;"find"in[]&&Array(1).find((function(){o=!1})),e(e.P+e.F*o,"Array",{find:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}}),r(393)("find")},function(t,n,r){"use strict";var e=r(8),i=r(299)(6),o="findIndex",u=!0;o in[]&&Array(1)[o]((function(){u=!1})),e(e.P+e.F*u,"Array",{findIndex:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}}),r(393)(o)},function(t,n,r){r(410)("Array")},function(t,n,r){var e=r(40),i=r(582),o=r(79).f,u=r(391).f,c=r(589),f=r(554),a=e.RegExp,s=a,l=a.prototype,h=/a/g,p=/a/g,v=new a(h)!==h;if(r(78)&&(!v||r(41)((function(){return p[r(58)("match")]=!1,a(h)!=h||a(p)==p||"/a/i"!=a(h,"i")})))){a=function(t,n){var r=this instanceof a,e=c(t),o=void 0===n;return!r&&e&&t.constructor===a&&o?t:i(v?new s(e&&!o?t.source:t,n):s((e=t instanceof a)?t.source:t,e&&o?f.call(t):n),r?this:l,a)};for(var y=function(t){t in a||o(a,t,{configurable:!0,get:function(){return s[t]},set:function(n){s[t]=n}})},d=u(s),g=0;d.length>g;)y(d[g++]);l.constructor=a,a.prototype=l,r(112)(e,"RegExp",a)}r(410)("RegExp")},function(t,n,r){"use strict";r(654);var e=r(42),i=r(554),o=r(78),u=/./.toString,c=function(t){r(112)(RegExp.prototype,"toString",t,!0)};r(41)((function(){return"/a/b"!=u.call({source:"a",flags:"b"})}))?c((function(){var t=e(this);return"/".concat(t.source,"/","flags"in t?t.flags:!o&&t instanceof RegExp?i.call(t):void 0)})):"toString"!=u.name&&c((function(){return u.call(this)}))},function(t,n,r){"use strict";var e=r(42),i=r(66),o=r(597),u=r(555);r(556)("match",1,(function(t,n,r,c){return[function(r){var e=t(this),i=null==r?void 0:r[n];return void 0!==i?i.call(r,e):new RegExp(r)[n](String(e))},function(t){var n=c(r,t,this);if(n.done)return n.value;var f=e(t),a=String(this);if(!f.global)return u(f,a);var s=f.unicode;f.lastIndex=0;for(var l,h=[],p=0;null!==(l=u(f,a));){var v=String(l[0]);h[p]=v,""===v&&(f.lastIndex=o(a,i(f.lastIndex),s)),p++}return 0===p?null:h}]}))},function(t,n,r){"use strict";var e=r(42),i=r(102),o=r(66),u=r(296),c=r(597),f=r(555),a=Math.max,s=Math.min,l=Math.floor,h=/\$([$&`']|\d\d?|<[^>]*>)/g,p=/\$([$&`']|\d\d?)/g;r(556)("replace",2,(function(t,n,r,v){return[function(e,i){var o=t(this),u=null==e?void 0:e[n];return void 0!==u?u.call(e,o,i):r.call(String(o),e,i)},function(t,n){var i=v(r,t,this,n);if(i.done)return i.value;var l=e(t),h=String(this),p="function"==typeof n;p||(n=String(n));var d=l.global;if(d){var g=l.unicode;l.lastIndex=0}for(var x=[];;){var m=f(l,h);if(null===m)break;if(x.push(m),!d)break;""===String(m[0])&&(l.lastIndex=c(h,o(l.lastIndex),g))}for(var b,S="",w=0,_=0;_<x.length;_++){m=x[_];for(var E=String(m[0]),O=a(s(u(m.index),h.length),0),P=[],F=1;F<m.length;F++)P.push(void 0===(b=m[F])?b:String(b));var M=m.groups;if(p){var A=[E].concat(P,O,h);void 0!==M&&A.push(M);var j=String(n.apply(void 0,A))}else j=y(E,h,O,P,M,n);O>=w&&(S+=h.slice(w,O)+j,w=O+E.length)}return S+h.slice(w)}];function y(t,n,e,o,u,c){var f=e+t.length,a=o.length,s=p;return void 0!==u&&(u=i(u),s=h),r.call(c,s,(function(r,i){var c;switch(i.charAt(0)){case"$":return"$";case"&":return t;case"`":return n.slice(0,e);case"'":return n.slice(f);case"<":c=u[i.slice(1,-1)];break;default:var s=+i;if(0===s)return r;if(s>a){var h=l(s/10);return 0===h?r:h<=a?void 0===o[h-1]?i.charAt(1):o[h-1]+i.charAt(1):r}c=o[s-1]}return void 0===c?"":c}))}}))},function(t,n,r){"use strict";var e=r(42),i=r(639),o=r(555);r(556)("search",1,(function(t,n,r,u){return[function(r){var e=t(this),i=null==r?void 0:r[n];return void 0!==i?i.call(r,e):new RegExp(r)[n](String(e))},function(t){var n=u(r,t,this);if(n.done)return n.value;var c=e(t),f=String(this),a=c.lastIndex;i(a,0)||(c.lastIndex=0);var s=o(c,f);return i(c.lastIndex,a)||(c.lastIndex=a),null===s?-1:s.index}]}))},function(t,n,r){"use strict";var e=r(589),i=r(42),o=r(419),u=r(597),c=r(66),f=r(555),a=r(596),s=r(41),l=Math.min,h=[].push,p="length",v=!s((function(){RegExp(4294967295,"y")}));r(556)("split",2,(function(t,n,r,s){var y;return y="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1)[p]||2!="ab".split(/(?:ab)*/)[p]||4!=".".split(/(.?)(.?)/)[p]||".".split(/()()/)[p]>1||"".split(/.?/)[p]?function(t,n){var i=String(this);if(void 0===t&&0===n)return[];if(!e(t))return r.call(i,t,n);for(var o,u,c,f=[],s=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":""),l=0,v=void 0===n?4294967295:n>>>0,y=new RegExp(t.source,s+"g");(o=a.call(y,i))&&!((u=y.lastIndex)>l&&(f.push(i.slice(l,o.index)),o[p]>1&&o.index<i[p]&&h.apply(f,o.slice(1)),c=o[0][p],l=u,f[p]>=v));)y.lastIndex===o.index&&y.lastIndex++;return l===i[p]?!c&&y.test("")||f.push(""):f.push(i.slice(l)),f[p]>v?f.slice(0,v):f}:"0".split(void 0,0)[p]?function(t,n){return void 0===t&&0===n?[]:r.call(this,t,n)}:r,[function(r,e){var i=t(this),o=null==r?void 0:r[n];return void 0!==o?o.call(r,i,e):y.call(String(i),r,e)},function(t,n){var e=s(y,t,this,n,y!==r);if(e.done)return e.value;var a=i(t),h=String(this),p=o(a,RegExp),d=a.unicode,g=(a.ignoreCase?"i":"")+(a.multiline?"m":"")+(a.unicode?"u":"")+(v?"y":"g"),x=new p(v?a:"^(?:"+a.source+")",g),m=void 0===n?4294967295:n>>>0;if(0===m)return[];if(0===h.length)return null===f(x,h)?[h]:[];for(var b=0,S=0,w=[];S<h.length;){x.lastIndex=v?S:0;var _,E=f(x,v?h:h.slice(S));if(null===E||(_=l(c(x.lastIndex+(v?0:S)),h.length))===b)S=u(h,S,d);else{if(w.push(h.slice(b,S)),w.length===m)return w;for(var O=1;O<=E.length-1;O++)if(w.push(E[O]),w.length===m)return w;S=b=_}}return w.push(h.slice(b)),w}]}))},function(t,n,r){var e=r(40),i=r(598).set,o=e.MutationObserver||e.WebKitMutationObserver,u=e.process,c=e.Promise,f="process"==r(304)(u);t.exports=function(){var t,n,r,a=function(){var e,i;for(f&&(e=u.domain)&&e.exit();t;){i=t.fn,t=t.next;try{i()}catch(e){throw t?r():n=void 0,e}}n=void 0,e&&e.enter()};if(f)r=function(){u.nextTick(a)};else if(!o||e.navigator&&e.navigator.standalone)if(c&&c.resolve){var s=c.resolve(void 0);r=function(){s.then(a)}}else r=function(){i.call(e,a)};else{var l=!0,h=document.createTextNode("");new o(a).observe(h,{characterData:!0}),r=function(){h.data=l=!l}}return function(e){var i={fn:e,next:void 0};n&&(n.next=i),t||(t=i,r()),n=i}}},function(t,n){t.exports=function(t){try{return{e:!1,v:t()}}catch(t){return{e:!0,v:t}}}},function(t,n,r){"use strict";var e=r(658),i=r(394);t.exports=r(559)("Map",(function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}}),{get:function(t){var n=e.getEntry(i(this,"Map"),t);return n&&n.v},set:function(t,n){return e.def(i(this,"Map"),0===t?0:t,n)}},e,!0)},function(t,n,r){"use strict";var e=r(658),i=r(394);t.exports=r(559)("Set",(function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}}),{add:function(t){return e.def(i(this,"Set"),t=0===t?0:t,t)}},e)},function(t,n,r){"use strict";var e,i=r(40),o=r(299)(0),u=r(112),c=r(313),f=r(638),a=r(659),s=r(43),l=r(394),h=r(394),p=!i.ActiveXObject&&"ActiveXObject"in i,v=c.getWeak,y=Object.isExtensible,d=a.ufstore,g=function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}},x={get:function(t){if(s(t)){var n=v(t);return!0===n?d(l(this,"WeakMap")).get(t):n?n[this._i]:void 0}},set:function(t,n){return a.def(l(this,"WeakMap"),t,n)}},m=t.exports=r(559)("WeakMap",g,x,a,!0,!0);h&&p&&(f((e=a.getConstructor(g,"WeakMap")).prototype,x),c.NEED=!0,o(["delete","has","get","set"],(function(t){var n=m.prototype,r=n[t];u(n,t,(function(n,i){if(s(n)&&!y(n)){this._f||(this._f=new e);var o=this._f[t](n,i);return"set"==t?this:o}return r.call(this,n,i)}))})))},function(t,n,r){"use strict";var e=r(659),i=r(394);r(559)("WeakSet",(function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}}),{add:function(t){return e.def(i(this,"WeakSet"),t,!0)}},e,!1,!0)},function(t,n,r){"use strict";var e=r(8),i=r(560),o=r(599),u=r(42),c=r(389),f=r(66),a=r(43),s=r(40).ArrayBuffer,l=r(419),h=o.ArrayBuffer,p=o.DataView,v=i.ABV&&s.isView,y=h.prototype.slice,d=i.VIEW;e(e.G+e.W+e.F*(s!==h),{ArrayBuffer:h}),e(e.S+e.F*!i.CONSTR,"ArrayBuffer",{isView:function(t){return v&&v(t)||a(t)&&d in t}}),e(e.P+e.U+e.F*r(41)((function(){return!new h(2).slice(1,void 0).byteLength})),"ArrayBuffer",{slice:function(t,n){if(void 0!==y&&void 0===n)return y.call(u(this),t);for(var r=u(this).byteLength,e=c(t,r),i=c(void 0===n?r:n,r),o=new(l(this,h))(f(i-e)),a=new p(this),s=new p(o),v=0;e<i;)s.setUint8(v++,a.getUint8(e++));return o}}),r(410)("ArrayBuffer")},function(t,n,r){var e=r(8);e(e.G+e.W+e.F*!r(560).ABV,{DataView:r(599).DataView})},function(t,n,r){r(306)("Int8",1,(function(t){return function(n,r,e){return t(this,n,r,e)}}))},function(t,n,r){r(306)("Uint8",1,(function(t){return function(n,r,e){return t(this,n,r,e)}}))},function(t,n,r){r(306)("Uint8",1,(function(t){return function(n,r,e){return t(this,n,r,e)}}),!0)},function(t,n,r){r(306)("Int16",2,(function(t){return function(n,r,e){return t(this,n,r,e)}}))},function(t,n,r){r(306)("Uint16",2,(function(t){return function(n,r,e){return t(this,n,r,e)}}))},function(t,n,r){r(306)("Int32",4,(function(t){return function(n,r,e){return t(this,n,r,e)}}))},function(t,n,r){r(306)("Uint32",4,(function(t){return function(n,r,e){return t(this,n,r,e)}}))},function(t,n,r){r(306)("Float32",4,(function(t){return function(n,r,e){return t(this,n,r,e)}}))},function(t,n,r){r(306)("Float64",8,(function(t){return function(n,r,e){return t(this,n,r,e)}}))},function(t,n,r){var e=r(8),i=r(295),o=r(42),u=(r(40).Reflect||{}).apply,c=Function.apply;e(e.S+e.F*!r(41)((function(){u((function(){}))})),"Reflect",{apply:function(t,n,r){var e=i(t),f=o(r);return u?u(e,n,f):c.call(e,n,f)}})},function(t,n,r){var e=r(8),i=r(390),o=r(295),u=r(42),c=r(43),f=r(41),a=r(640),s=(r(40).Reflect||{}).construct,l=f((function(){function t(){}return!(s((function(){}),[],t)instanceof t)})),h=!f((function(){s((function(){}))}));e(e.S+e.F*(l||h),"Reflect",{construct:function(t,n){o(t),u(n);var r=arguments.length<3?t:o(arguments[2]);if(h&&!l)return s(t,n,r);if(t==r){switch(n.length){case 0:return new t;case 1:return new t(n[0]);case 2:return new t(n[0],n[1]);case 3:return new t(n[0],n[1],n[2]);case 4:return new t(n[0],n[1],n[2],n[3])}var e=[null];return e.push.apply(e,n),new(a.apply(t,e))}var f=r.prototype,p=i(c(f)?f:Object.prototype),v=Function.apply.call(t,p,n);return c(v)?v:p}})},function(t,n,r){var e=r(79),i=r(8),o=r(42),u=r(312);i(i.S+i.F*r(41)((function(){Reflect.defineProperty(e.f({},1,{value:1}),1,{value:2})})),"Reflect",{defineProperty:function(t,n,r){o(t),n=u(n,!0),o(r);try{return e.f(t,n,r),!0}catch(t){return!1}}})},function(t,n,r){var e=r(8),i=r(297).f,o=r(42);e(e.S,"Reflect",{deleteProperty:function(t,n){var r=i(o(t),n);return!(r&&!r.configurable)&&delete t[n]}})},function(t,n,r){"use strict";var e=r(8),i=r(42),o=function(t){this._t=i(t),this._i=0;var n,r=this._k=[];for(n in t)r.push(n)};r(647)(o,"Object",(function(){var t,n=this._k;do{if(this._i>=n.length)return{value:void 0,done:!0}}while(!((t=n[this._i++])in this._t));return{value:t,done:!1}})),e(e.S,"Reflect",{enumerate:function(t){return new o(t)}})},function(t,n,r){var e=r(297),i=r(392),o=r(123),u=r(8),c=r(43),f=r(42);u(u.S,"Reflect",{get:function t(n,r){var u,a,s=arguments.length<3?n:arguments[2];return f(n)===s?n[r]:(u=e.f(n,r))?o(u,"value")?u.value:void 0!==u.get?u.get.call(s):void 0:c(a=i(n))?t(a,r,s):void 0}})},function(t,n,r){var e=r(297),i=r(8),o=r(42);i(i.S,"Reflect",{getOwnPropertyDescriptor:function(t,n){return e.f(o(t),n)}})},function(t,n,r){var e=r(8),i=r(392),o=r(42);e(e.S,"Reflect",{getPrototypeOf:function(t){return i(o(t))}})},function(t,n,r){var e=r(8);e(e.S,"Reflect",{has:function(t,n){return n in t}})},function(t,n,r){var e=r(8),i=r(42),o=Object.isExtensible;e(e.S,"Reflect",{isExtensible:function(t){return i(t),!o||o(t)}})},function(t,n,r){var e=r(8);e(e.S,"Reflect",{ownKeys:r(661)})},function(t,n,r){var e=r(8),i=r(42),o=Object.preventExtensions;e(e.S,"Reflect",{preventExtensions:function(t){i(t);try{return o&&o(t),!0}catch(t){return!1}}})},function(t,n,r){var e=r(79),i=r(297),o=r(392),u=r(123),c=r(8),f=r(385),a=r(42),s=r(43);c(c.S,"Reflect",{set:function t(n,r,c){var l,h,p=arguments.length<4?n:arguments[3],v=i.f(a(n),r);if(!v){if(s(h=o(n)))return t(h,r,c,p);v=f(0)}if(u(v,"value")){if(!1===v.writable||!s(p))return!1;if(l=i.f(p,r)){if(l.get||l.set||!1===l.writable)return!1;l.value=c,e.f(p,r,l)}else e.f(p,r,f(0,c));return!0}return void 0!==v.set&&(v.set.call(p,c),!0)}})},function(t,n,r){var e=r(8),i=r(580);i&&e(e.S,"Reflect",{setPrototypeOf:function(t,n){i.check(t,n);try{return i.set(t,n),!0}catch(t){return!1}}})},function(t,n,r){r(852),t.exports=r(69).Array.includes},function(t,n,r){"use strict";var e=r(8),i=r(550)(!0);e(e.P,"Array",{includes:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}}),r(393)("includes")},function(t,n,r){r(854),t.exports=r(69).Array.flatMap},function(t,n,r){"use strict";var e=r(8),i=r(855),o=r(102),u=r(66),c=r(295),f=r(649);e(e.P,"Array",{flatMap:function(t){var n,r,e=o(this);return c(t),n=u(e.length),r=f(e,0),i(r,e,e,n,0,1,t,arguments[1]),r}}),r(393)("flatMap")},function(t,n,r){"use strict";var e=r(552),i=r(43),o=r(66),u=r(294),c=r(58)("isConcatSpreadable");t.exports=function t(n,r,f,a,s,l,h,p){for(var v,y,d=s,g=0,x=!!h&&u(h,p,3);g<a;){if(g in f){if(v=x?x(f[g],g,r):f[g],y=!1,i(v)&&(y=void 0!==(y=v[c])?!!y:e(v)),y&&l>0)d=t(n,r,v,o(v.length),d,l-1)-1;else{if(d>=9007199254740991)throw TypeError();n[d]=v}d++}g++}return d}},function(t,n,r){r(857),t.exports=r(69).String.padStart},function(t,n,r){"use strict";var e=r(8),i=r(662),o=r(558),u=/Version\/10\.\d+(\.\d+)?(Mobile\/\w+)? Safari\//.test(o);e(e.P+e.F*u,"String",{padStart:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0,!0)}})},function(t,n,r){r(859),t.exports=r(69).String.padEnd},function(t,n,r){"use strict";var e=r(8),i=r(662),o=r(558),u=/Version\/10\.\d+(\.\d+)?(Mobile\/\w+)? Safari\//.test(o);e(e.P+e.F*u,"String",{padEnd:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0,!1)}})},function(t,n,r){r(861),t.exports=r(69).String.trimLeft},function(t,n,r){"use strict";r(408)("trimLeft",(function(t){return function(){return t(this,1)}}),"trimStart")},function(t,n,r){r(863),t.exports=r(69).String.trimRight},function(t,n,r){"use strict";r(408)("trimRight",(function(t){return function(){return t(this,2)}}),"trimEnd")},function(t,n,r){r(865),t.exports=r(576).f("asyncIterator")},function(t,n,r){r(634)("asyncIterator")},function(t,n,r){r(867),t.exports=r(69).Object.getOwnPropertyDescriptors},function(t,n,r){var e=r(8),i=r(661),o=r(125),u=r(297),c=r(592);e(e.S,"Object",{getOwnPropertyDescriptors:function(t){for(var n,r,e=o(t),f=u.f,a=i(e),s={},l=0;a.length>l;)void 0!==(r=f(e,n=a[l++]))&&c(s,n,r);return s}})},function(t,n,r){r(869),t.exports=r(69).Object.values},function(t,n,r){var e=r(8),i=r(663)(!1);e(e.S,"Object",{values:function(t){return i(t)}})},function(t,n,r){r(871),t.exports=r(69).Object.entries},function(t,n,r){var e=r(8),i=r(663)(!0);e(e.S,"Object",{entries:function(t){return i(t)}})},function(t,n,r){"use strict";r(655),r(873),t.exports=r(69).Promise.finally},function(t,n,r){"use strict";var e=r(8),i=r(69),o=r(40),u=r(419),c=r(657);e(e.P+e.R,"Promise",{finally:function(t){var n=u(this,i.Promise||o.Promise),r="function"==typeof t;return this.then(r?function(r){return c(n,t()).then((function(){return r}))}:t,r?function(r){return c(n,t()).then((function(){throw r}))}:t)}})},function(t,n,r){r(875),r(876),r(877),t.exports=r(69)},function(t,n,r){var e=r(40),i=r(8),o=r(558),u=[].slice,c=/MSIE .\./.test(o),f=function(t){return function(n,r){var e=arguments.length>2,i=!!e&&u.call(arguments,2);return t(e?function(){("function"==typeof n?n:Function(n)).apply(this,i)}:n,r)}};i(i.G+i.B+i.F*c,{setTimeout:f(e.setTimeout),setInterval:f(e.setInterval)})},function(t,n,r){var e=r(8),i=r(598);e(e.G+e.B,{setImmediate:i.set,clearImmediate:i.clear})},function(t,n,r){for(var e=r(595),i=r(388),o=r(112),u=r(40),c=r(124),f=r(409),a=r(58),s=a("iterator"),l=a("toStringTag"),h=f.Array,p={CSSRuleList:!0,CSSStyleDeclaration:!1,CSSValueList:!1,ClientRectList:!1,DOMRectList:!1,DOMStringList:!1,DOMTokenList:!0,DataTransferItemList:!1,FileList:!1,HTMLAllCollection:!1,HTMLCollection:!1,HTMLFormElement:!1,HTMLSelectElement:!1,MediaList:!0,MimeTypeArray:!1,NamedNodeMap:!1,NodeList:!0,PaintRequestList:!1,Plugin:!1,PluginArray:!1,SVGLengthList:!1,SVGNumberList:!1,SVGPathSegList:!1,SVGPointList:!1,SVGStringList:!1,SVGTransformList:!1,SourceBufferList:!1,StyleSheetList:!0,TextTrackCueList:!1,TextTrackList:!1,TouchList:!1},v=i(p),y=0;y<v.length;y++){var d,g=v[y],x=p[g],m=u[g],b=m&&m.prototype;if(b&&(b[s]||c(b,s,h),b[l]||c(b,l,g),f[g]=h,x))for(d in e)b[d]||o(b,d,e[d],!0)}},function(t,n,r){r(879),t.exports=r(664).global},function(t,n,r){var e=r(880);e(e.G,{global:r(600)})},function(t,n,r){var e=r(600),i=r(664),o=r(881),u=r(883),c=r(890),f=function(t,n,r){var a,s,l,h=t&f.F,p=t&f.G,v=t&f.S,y=t&f.P,d=t&f.B,g=t&f.W,x=p?i:i[n]||(i[n]={}),m=x.prototype,b=p?e:v?e[n]:(e[n]||{}).prototype;for(a in p&&(r=n),r)(s=!h&&b&&void 0!==b[a])&&c(x,a)||(l=s?b[a]:r[a],x[a]=p&&"function"!=typeof b[a]?r[a]:d&&s?o(l,e):g&&b[a]==l?function(t){var n=function(n,r,e){if(this instanceof t){switch(arguments.length){case 0:return new t;case 1:return new t(n);case 2:return new t(n,r)}return new t(n,r,e)}return t.apply(this,arguments)};return n.prototype=t.prototype,n}(l):y&&"function"==typeof l?o(Function.call,l):l,y&&((x.virtual||(x.virtual={}))[a]=l,t&f.R&&m&&!m[a]&&u(m,a,l)))};f.F=1,f.G=2,f.S=4,f.P=8,f.B=16,f.W=32,f.U=64,f.R=128,t.exports=f},function(t,n,r){var e=r(882);t.exports=function(t,n,r){if(e(t),void 0===n)return t;switch(r){case 1:return function(r){return t.call(n,r)};case 2:return function(r,e){return t.call(n,r,e)};case 3:return function(r,e,i){return t.call(n,r,e,i)}}return function(){return t.apply(n,arguments)}}},function(t,n){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},function(t,n,r){var e=r(884),i=r(889);t.exports=r(602)?function(t,n,r){return e.f(t,n,i(1,r))}:function(t,n,r){return t[n]=r,t}},function(t,n,r){var e=r(885),i=r(886),o=r(888),u=Object.defineProperty;n.f=r(602)?Object.defineProperty:function(t,n,r){if(e(t),n=o(n,!0),e(r),i)try{return u(t,n,r)}catch(t){}if("get"in r||"set"in r)throw TypeError("Accessors not supported!");return"value"in r&&(t[n]=r.value),t}},function(t,n,r){var e=r(601);t.exports=function(t){if(!e(t))throw TypeError(t+" is not an object!");return t}},function(t,n,r){t.exports=!r(602)&&!r(665)((function(){return 7!=Object.defineProperty(r(887)("div"),"a",{get:function(){return 7}}).a}))},function(t,n,r){var e=r(601),i=r(600).document,o=e(i)&&e(i.createElement);t.exports=function(t){return o?i.createElement(t):{}}},function(t,n,r){var e=r(601);t.exports=function(t,n){if(!e(t))return t;var r,i;if(n&&"function"==typeof(r=t.toString)&&!e(i=r.call(t)))return i;if("function"==typeof(r=t.valueOf)&&!e(i=r.call(t)))return i;if(!n&&"function"==typeof(r=t.toString)&&!e(i=r.call(t)))return i;throw TypeError("Can't convert object to primitive value")}},function(t,n){t.exports=function(t,n){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:n}}},function(t,n){var r={}.hasOwnProperty;t.exports=function(t,n){return r.call(t,n)}}]);
!function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=677)}({100:function(e,t){e.exports=function(e,t){var n=e&&("undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"]);if(null!=n){var r,i,o=[],a=!0,u=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);a=!0);}catch(e){u=!0,i=e}finally{try{a||null==n.return||n.return()}finally{if(u)throw i}}return o}},e.exports.default=e.exports,e.exports.__esModule=!0},1004:function(e,t,n){"use strict";n.r(t);n(679),n(563),n(680),n(414),n(413),n(568);var r=n(400),i=n(98),o=n(4),a=n.n(o),u=n(5),c=n.n(u);function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function l(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(Object(n),!0).forEach((function(t){c()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}jQuery((function(e){var t=jQuery("form.give-form"),n=e(document),r={forms:{}};e.fn.toggleError=function(e){return this.toggleClass("error",e),this.toggleClass("valid",!e),this},Give.init(),n.on("keyup","#give-first, #give-last, #give-email",(function(e){var t=e.target,n=t.parentElement.closest("form.give-form");if(n){var i=n.getAttribute("id");r.forms=l(l({},r.forms),{},c()({},i,l(l({},r.forms[i]),{},c()({},t.name,t.value))))}})),n.on("give_gateway_loaded",(function(){for(var e=0,t=Object.entries(r.forms);e<t.length;e++)for(var n=a()(t[e],2),i=n[0],o=n[1],u=0,c=Object.entries(o);u<c.length;u++){var s=a()(c[u],2),l=s[0],d=s[1],f=document.querySelector("form#".concat(i,' [name="').concat(l,'"]'));f&&(f.value=d)}})),n.on("change","#give_cc_address input.card_state, #give_cc_address select",(function(){var t=e(this),r=t.parents("form");if("card_state"!==t.attr("id")){r.find("#card_state").empty().append('<option value="1">'+Give.fn.getGlobalVar("general_loading")+"</option>").prop("disabled",!0);var i={action:"give_get_states",country:t.val(),field_name:"card_state"};e.ajax({type:"POST",data:i,url:Give.fn.getGlobalVar("ajaxurl"),xhrFields:{withCredentials:!0},success:function(t){var i="",o=t.states_label,a=r.find('input[name="card_state"], select[name="card_state"]'),u=r.find('input[name="card_city"]');void 0!==t.states_found&&!0===t.states_found?i=e(t.data):(i='<input type="text" id="card_state" name="card_state" class="card_state give-input required" placeholder="'.concat(o,'" value="').concat(t.default_state,'" autocomplete="address-level4"/>'),i=e(i)),!1===r.hasClass("float-labels-enabled")?(void 0!==t.states_require&&!0===t.states_require?(i.attr("required","required").attr("aria-required","true").addClass("required"),a.closest("p").find("label .give-required-indicator").removeClass("give-hidden")):(i.removeAttr("required").removeAttr("aria-required").removeClass("required"),a.closest("p").find("label .give-required-indicator").addClass("give-hidden")),void 0!==t.city_require&&!0===t.city_require?(u.closest("p").find("label .give-required-indicator").removeClass("give-hidden").removeClass("required"),u.attr("required",!0)):(u.closest("p").find("label .give-required-indicator").addClass("give-hidden").addClass("required"),u.removeAttr("required"))):(void 0!==t.states_require&&!0===t.states_require?(i.attr("required","required").attr("aria-required","true").addClass("required"),a.closest("p").find(".give-fl-wrap").addClass("give-fl-is-required")):(i.removeAttr("required").removeAttr("aria-required").removeClass("required"),a.closest("p").find(".give-fl-wrap").removeClass("give-fl-is-required")),void 0!==t.city_require&&!0===t.city_require?(u.closest("p").find(".give-fl-wrap").addClass("give-fl-is-required"),u.attr("required",!0)):(u.closest("p").find(".give-fl-wrap").removeClass("give-fl-is-required"),u.removeAttr("required"))),a.closest("p").find("label .state-label-text").text(o),a.replaceWith(i),void 0!==t.show_field&&!0===t.show_field?(r.find("p#give-card-state-wrap").removeClass("give-hidden"),r.find("p#give-card-zip-wrap").addClass("form-row-last"),r.find("p#give-card-zip-wrap").removeClass("form-row-wide")):(r.find("p#give-card-state-wrap").addClass("give-hidden"),r.find("p#give-card-zip-wrap").addClass("form-row-wide"),r.find("p#give-card-zip-wrap").removeClass("form-row-last"));var c=!!t.zip_require;r.find("input#card_zip").toggleClass("required",c).attr("required",c).attr("aria-required",c),r.find('label[for="card_zip"] span.give-required-indicator').toggleClass("give-hidden",!c),n.trigger("give_checkout_billing_address_updated",[t,r.attr("id")])}}).fail((function(e){window.console&&window.console.log&&console.log(e)}))}return!1})),n.on("give_gateway_loaded",(function(){Give.form.fn.field.formatCreditCard(t)})),n.on("submit","#give_payment_mode",(function(){if(!Give.form.fn.getGateway(e(this).closest("form")).length)return alert(Give.fn.getGlobalVar("no_gateway")),!1})),n.on("click",'#give-payment-mode-select input[name="payment-mode"]',(function(){var t,n=e(this).parents("form"),r=n.find("#give-payment-mode-select li"),i=n.find('li.give-gateway-option-selected input[name="payment-mode"]').val().trim();r.removeClass("give-gateway-option-selected"),r.prop("checked",!1),e(this).prop("checked",!0),e(this).parent().addClass("give-gateway-option-selected"),t=Give.form.fn.getGateway(n),n.attr("action",n.attr("action").replace("payment-mode="+i,"payment-mode="+t))})),n.on("focus",".give-donation-amount .give-text-input",(function(t){var n=e(this).parents("form");e(this).removeClass("invalid-amount");var r=n.find(".give-final-total-amount").attr("data-total"),i=Give.form.fn.getInfo("decimal_separator",n);e(this).attr("data-amount",Give.fn.unFormatCurrency(r,i)),e(this).parent(".give-donation-amount").addClass("give-custom-amount-focus-in"),n.find(".give-default-level, .give-radio-input").removeClass("give-default-level"),n.find(".give-btn-level-custom").addClass("give-default-level"),n.find(".give-radio-input").prop("checked",!1),n.find(".give-radio-input.give-radio-level-custom").prop("checked",!0),n.find(".give-select-level").prop("selected",!1),n.find(".give-select-level .give-donation-level-custom").prop("selected",!0)})),n.on("blur",".give-donation-amount .give-text-input",(function(t,n,r,i){var o=void 0!==n?n:e(this).closest("form"),a=e(this).attr("data-amount"),u=void 0!==r?r:e(this).val(),c=Give.form.fn.getInfo("decimal_separator",o),s=Give.form.fn.getMinimumAmount(o),l=Give.form.fn.getMaximumAmount(o),d=0===u?s:Give.fn.unFormatCurrency(u,c),f=Give.form.fn.formatAmount(d,o,{});if(i=void 0===i?Give.form.fn.getPriceID(o,!0):i,""===d||0===d){var p=e('.give-donation-levels-wrap [data-default="1"]',n);p.length&&(i=p.data("price-id"),u=d=Give.fn.unFormatCurrency(p.val(),c),f=Give.form.fn.formatAmount(d,o,{}))}if(Give.fn.setCache("amount_"+d,i,o),e(this).val(f),Give.form.fn.isValidDonationAmount(o))e(this).removeClass("give-invalid-amount"),o.find(".give-invalid-minimum, .give-invalid-maximum").slideUp(300,(function(){e(this).remove()})),Give.form.fn.disable(o,!1);else{e(this).addClass("give-invalid-amount"),Give.form.fn.disable(o,!0);var m=o.find(".give-invalid-minimum"),v=o.find(".give-invalid-maximum");0===m.length&&d<s?Give.notice.fn.renderNotice("bad_minimum",o):d>=s&&m.slideUp(300,(function(){e(this).remove()})),0===v.length&&d>l?Give.notice.fn.renderNotice("bad_maximum",o):d<=l&&v.slideUp(300,(function(){e(this).remove()}))}a!==d&&o.find(".give-final-total-amount").attr("data-total",d).text(Give.fn.formatCurrency(d,{symbol:Give.form.fn.getInfo("currency_symbol",o),position:Give.form.fn.getInfo("currency_position",o)},o)),-1!==i&&(e('input[name="give-price-id"]',o).val(i),o.find(".give-amount-hidden").val(Give.form.fn.formatAmount(d,o,{})),o.find(".give-default-level").removeClass("give-default-level"),Give.form.fn.autoSelectDonationLevel(o,i)),e(this).parent(".give-donation-amount").removeClass("give-custom-amount-focus-in"),e(document).trigger("give_donation_value_updated",[o,d,i])})),n.on("click touchend",".give-donation-level-btn",(function(t){t.preventDefault(),Give.form.fn.autoSetMultiLevel(e(this))})),n.on("click touchend",".give-radio-input-level",(function(t){Give.form.fn.autoSetMultiLevel(e(this))})),n.on("change",".give-select-level",(function(t){Give.form.fn.autoSetMultiLevel(e(this))})),n.on("click",".give_terms_links",(function(t){t.preventDefault();var n=e(this).closest("fieldset");return e("[class^=give_terms-]",n).slideToggle(),e("a.give_terms_links",n).toggle(),!1})),e('label[for^="give-radio-level"]').on("click",(function(t){var n=e(this).closest("form").find("#"+e(this).attr("for"));n.length&&(n.trigger("click"),t.preventDefault())}))})),jQuery(window).on("load",(function(){jQuery("body").on("keyup change focusout",".give-form .card-number, .give-form .card-cvc, .give-form .card-expiry",(function(e){var t=jQuery(this),n=t.parents("form.give-form"),r=t.attr("id"),i=n.find(".card-number"),o=n.find(".card-cvc"),a=n.find(".card-expiry"),u=jQuery.payment.cardType(i.val()),c=!1;switch(e.type){case"focusout":r.indexOf("card_number")>-1?(c=!jQuery.payment.validateCardNumber(i.val()),i.toggleError(c)):r.indexOf("card_cvc")>-1?(c=!jQuery.payment.validateCardCVC(o.val(),u),o.toggleError(c)):r.indexOf("card_expiry")>-1&&(c=!jQuery.payment.validateCardExpiry(a.payment("cardExpiryVal")),a.toggleError(c)),Give.form.fn.disable(t.parents("form"),c);break;default:if(t.hasClass("error")&&t.removeClass("error"),r.indexOf("card_number")>-1){var s=n.find(".card-type");null===u?(s.removeClass().addClass("off card-type"),t.removeClass("valid").addClass("error")):s.removeClass().addClass("card-type "+u)}else if(r.indexOf("card_expiry")>-1){var l=a.payment("cardExpiryVal");n.find(".card-expiry-month").val(l.month),n.find(".card-expiry-year").val(l.year)}}}))}));var d=n(19),f=n.n(d);function p(e,t){var n=jQuery(e).find("#give-payment-mode-select .give-loading-text"),r=jQuery(e).find("#give-amount").val(),i=jQuery(e).find('input[name="give-form-id"]').val(),o=jQuery(e).find('input[name="give-form-id-prefix"]').val();n.fadeIn(),1!=jQuery(e).data()["blockUI.isBlocked"]&&jQuery(e).find("#give_purchase_form_wrap").block({message:null,overlayCSS:{background:"#fff",opacity:.6}}),new Promise((function(n){jQuery(document).trigger("Give:onPreGatewayLoad"),jQuery.post(Give.fn.getGlobalVar("ajaxurl")+"?payment-mode="+t,{action:"give_load_gateway",give_total:r,give_form_id:i,give_form_id_prefix:o,give_payment_mode:t,nonce:Give.form.fn.getNonce(e)},(function(t){return jQuery(e).find("#give_purchase_form_wrap").html(t),jQuery(".give-no-js").hide(),jQuery(e).find("#give-payment-mode-select .give-loading-text").fadeOut(),n(t)}))})).then((function(n){jQuery(document).trigger("give_gateway_loaded",[n,jQuery(e).attr("id")]);var r=new CustomEvent("give_gateway_loaded",{detail:{selectedGateway:t,formIdAttribute:jQuery(e).attr("id")}});document.dispatchEvent(r),jQuery(e).unblock()}))}
jQuery(document).ready((function(e){Give.form.fn.isFormExist()&&(e(".give-loading-text").hide(),e(".give-form").each((function(e,t){var n,r;t=jQuery(t),(n=Give.form.fn.getNonceInfo(t)).el.attr("data-donor-session")&&(!n.createdInDonorSession&&!Give.donor.fn.hasSession(t)||Give.donor.fn.isLoggedIn())||Give.form.fn.resetAllNonce(t),r=0>(r=1e3*(parseInt(n.el.data("time"))+parseInt(n.el.data("nonce-life")))-Date.now())?r:r+100,window.setTimeout((function(){Give.form.fn.resetAllNonce(t)}),r)}))),e(document).on("click",".give-checkout-login",(function(t){var n=e(this),r=e(this).parents("form"),i=n.parents("div.give-login-account-wrap").find(".give-loading-text"),o={action:n.data("action"),form_id:e(r).find('[name="give-form-id"]').val()};return i.show(),e.post(Give.fn.getGlobalVar("ajaxurl"),o,(function(t){var n=e(r).find("[id^=give-checkout-login-register]");n.length&&parseInt(n.html().trim().length)?e(r).find("[id^=give-checkout-login-register]").html(t):e(r).find('[id^="give_checkout_user_info"]').html(t),e(r).find(".give-submit-button-wrap").hide()})).done((function(){i.hide(),give_fl_trigger()})),!1})),e(document).on("click",".give-checkout-register-cancel",(function(t){t.preventDefault();var n=e(this),r=e(this).parents("form"),i={action:n.data("action"),form_id:e(r).find('[name="give-form-id"]').val()};e.post(Give.fn.getGlobalVar("ajaxurl"),i,(function(t){e(r).find("[id^=give-checkout-login-register]").replaceWith(e.parseJSON(t.fields)),e(r).find("[id^=give-checkout-login-register]").css({display:"block"}),e(r).find(".give-submit-button-wrap").show()})).done((function(){give_fl_trigger()}))})),e(document).on("click","[id^=give-login-fields] input[type=submit]",(function(t){t.preventDefault();var n=e(this).val(),r=e(this).parents("form");e(this).val(Give.fn.getGlobalVar("purchase_loading")),r.find("[id^=give-login-fields] .give-loading-animation").fadeIn();var i={action:"give_process_donation_login",give_ajax:1,give_user_login:r.find("[name=give_user_login]").val(),give_user_pass:r.find("[name=give_user_pass]").val(),give_form_id:r.find("[name=give-form-id]").val()};e.post(Give.fn.getGlobalVar("ajaxurl"),i,(function(t){null!=e.trim(f()(t.success))&&1==t.success&&void 0!==f()(t.data)?(r.find(".give_errors").remove(),r.find("[id^=give-checkout-login-register]").before(t.data),r.find(".give_notices.give_errors").delay(5e3).slideUp(),Give.form.fn.resetAllNonce(r).then((function(e){p(r,r.find(".give-gateway-option-selected input").val())}))):(r.find("[id^=give-login-fields] input[type=submit]").val(n),r.find(".give-loading-animation").fadeOut(),r.find(".give_errors").remove(),r.find("[id^=give-user-login-submit]").before(t.data))}))})),e(document).on("change","select#give-gateway, input.give-gateway",(function(t){t.preventDefault();var n=e(this).val();return"0"==n?(console.log("There was a problem loading the selected gateway"),!1):(p(e(this).parents("form"),n),!1)})),e("body").on("click","#give-confirm-email-btn",(function(t){var n=e(this),r={action:"give_confirm_email_for_donations_access",email:n.data("email"),nonce:Give.fn.getGlobalVar("ajax_vars").ajaxNonce};return n.text(Give.fn.getGlobalVar("loading")),n.attr("disabled","disabled"),e.post(Give.fn.getGlobalVar("ajaxurl"),r,(function(e){"error"===(e=JSON.parse(e)).status?(n.closest("#give_user_history tfoot").hide(),n.closest(".give_user_history_main").find(".give_user_history_notice").html(e.message)):"success"===e.status&&(n.closest(".give_user_history_main").find(".give_user_history_notice").html(e.message),n.hide(),n.closest(".give-security-button-wrap").find("span").show())})),!1})),e("body").on("click touchend",'form.give-form input[name="give-purchase"].give-submit',(function(t){var n=e(this),r=n.parents("form.give-form"),i=r.find('input[type="submit"].give-submit + .give-loading-animation');i.fadeIn();var o=r.get(0);if("function"!=typeof o.checkValidity||!1!==o.checkValidity()){t.preventDefault();var a=e(this).val();e(this).val(Give.fn.getGlobalVar("purchase_loading")),Give.form.fn.disable(r,!0),e.post(Give.fn.getGlobalVar("ajaxurl"),r.serialize()+"&action=give_process_donation&give_ajax=true",(function(t){"success"==e.trim(t)?(r.find(".give_errors").remove(),e(o).submit(),r.trigger("give_form_validation_passed")):(n.val(a),i.fadeOut(),r.find(".give_errors").remove(),r.find('#give_purchase_submit input[type="submit"].give-submit').before(t),Give.form.fn.disable(r,!1))}))}else i.fadeOut()}));var t=document.getElementById("give-receipt");if(t){var n={action:"get_receipt",shortcode_atts:t.getAttribute("data-shortcode"),donation_id:t.getAttribute("data-donation-key"),receipt_type:t.getAttribute("data-receipt-type")};n[Give.fn.getGlobalVar("session_cookie_name")]=Give.fn.__getCookie(Give.fn.getGlobalVar("session_cookie_name")),e.ajax({url:Give.fn.getGlobalVar("ajaxurl"),method:"GET",data:n,success:function(e){if(t.innerHTML=e,t.parentElement.classList.contains("give-form-templates"))var n=setInterval((function(){window.parentIFrame&&(clearInterval(n),window.parentIFrame.sendMessage({action:"giveEmbedFormContentLoaded"}))}),50)}})}}));var m=n(629),v=n.n(m);jQuery((function(e){var t=e(document);give_fl_trigger(),give_change_html5_form_field_validation_message(),e(".js-give-grid-modal-launcher").magnificPopup({type:"inline",fixedContentPos:!0,fixedBgPos:!0,closeBtnInside:!0,midClick:!0,removalDelay:300,mainClass:"modal-fade-slide give-modal"}),void 0!==window.csGlobal&&window.jQuery((function(e){window.csGlobal.csHooks.filter("hash_scrolling_allow",(function(t,n){return!e(n).hasClass("give-card")&&t}))})),t.on("click touchend",".give-disabled",(function(e){return e.preventDefault(),!1})),t.on("give_gateway_loaded",(function(e,t,n){give_fl_trigger()})),t.on("give_checkout_billing_address_updated",(function(t,n,r){e("form#"+r).hasClass("float-labels-enabled")&&give_fl_trigger()})),t.on("click",".give-btn-reveal",(function(t){t.preventDefault();var n=e(this),r=e(this).parents("form"),i=e("#give-payment-mode-select"),o="";return n.hide(),e("li",i).length>1&&(o="#give-payment-mode-select, "),r.find(o+"#give_purchase_form_wrap").slideDown(),!1})),t.on("click",".give-btn-modal",(function(t){t.preventDefault();var n=e(this).parents("div.give-form-wrap"),r=n.find("form.give-form"),i=r.find("#give-amount"),o=i.val();if(!o||o<=0)return i.focus(),!1;give_open_form_modal(n,r)}));var n=jQuery('.give_notice[data-dismiss-type="auto"]');n.length&&n.each((function(t,n){n=e(n),window.setTimeout((function(){n.slideUp()}),n.data("dismiss-interval"))})),e("body").on("click",".give-notice-close",(function(){e(this).hide(),e(this).closest(".give_notices").slideUp()})),t.on("change","#give_profile_billing_address_wrap #give_address_country",update_profile_state_field),window.addEventListener("pageshow",(function(t){if(t.persisted||f()("undefined")!==window.performance&&2===window.performance.navigation.type){var n=e("body").find("form.give-form");n.length&&(n[0].reset(),Give.form.fn.resetAllNonce(n))}}))})),window.give_open_form_modal=function(e,t){var n="#give_purchase_form_wrap, #give-payment-mode-select, .mfp-close, .give-hidden, .give-form-title";jQuery.magnificPopup.open({mainClass:Give.fn.getGlobal().magnific_options.main_class,closeOnBgClick:Give.fn.getGlobal().magnific_options.close_on_bg_click,fixedContentPos:!0,fixedBgPos:!0,removalDelay:250,items:{src:t,type:"inline"},callbacks:{beforeOpen:function(){jQuery("body").addClass("give-modal-open");var n=jQuery(".give-form-title",e);if(e.hasClass("give-modal")&&!t.data("content"))n.length&&!jQuery(".give-form-title",t).length&&t.prepend(n),t.data("content","loaded");else if(e.hasClass("give-display-button-only")&&!t.data("content")){var r=jQuery(".give-form-content-wrap",e),i=jQuery(".give-goal-progress",e),o=jQuery(">.give_error",e),a=jQuery(".give_errors",e);r.length&&!jQuery(".give-form-content-wrap",t).length&&(r.hasClass("give_post_form-content")?t.append(r):t.prepend(r)),a.length&&!jQuery(".give_errors",t).length&&a.each((function(e,n){t.prepend(jQuery(n))})),o.length&&!jQuery(">.give_error",t).length&&o.each((function(e,n){t.prepend(jQuery(n))})),i.length&&!jQuery(".give-goal-progress",t).length&&t.prepend(i),n.length&&!jQuery(".give-form-title",t).length&&t.prepend(n),t.data("content","loaded")}},open:function(){var r=jQuery(".mfp-content");r.outerWidth()>=500&&r.addClass("give-responsive-mfp-content"),e.hasClass("give-display-button-only")&&(n=t.children().not(".give-btn-modal")),t.children().not(n).hide()},close:function(){t.removeClass("mfp-hide"),jQuery("body").removeClass("give-modal-open"),t.children().not(n).show()}}})},window.give_fl_trigger=function(){window.give_float_labels=void 0===window.give_float_labels?{}:window.give_float_labels,window.give_float_labels instanceof v.a?window.give_float_labels.rebuild():window.give_float_labels=new v.a(".float-labels-enabled",{exclude:"#give-amount, .give-select-level, [multiple], .give-honeypot",prioritize:"placeholder",prefix:"give-fl-",style:"give"})},window.give_change_html5_form_field_validation_message=function(){var e,t=jQuery(".give-form");t.length&&jQuery.each(t,(function(t,n){(e=jQuery("input",n)).length&&jQuery.each(e,(function(e,t){t=jQuery(t).get(0),Give.fn.getGlobal().form_translation.hasOwnProperty(t.name)&&(t.oninvalid=function(e){e.target.setCustomValidity(""),e.target.validity.valid||e.target.setCustomValidity(Give.fn.getGlobal().form_translation[t.name])})}))}))},window.update_profile_state_field=function(){var e=jQuery(this),t=e.parents("form");if("give_address_country"===e.attr("id")){t.find("#give_address_state").empty().append('<option value="1">'+Give.fn.getGlobalVar("general_loading")+"</option>").prop("disabled",!0);var n={action:"give_get_states",country:e.val(),field_name:"give_address_state"};jQuery.ajax({type:"POST",data:n,url:Give.fn.getGlobalVar("ajaxurl"),xhrFields:{withCredentials:!0},success:function(e){var n="",r=e.states_label;n=void 0!==f()(e.states_found)&&1==e.states_found?e.data:'<input type="text" id="give_address_state"  name="give_address_state" class="text give-input" placeholder="'+r+'" value="'+e.default_state+'"/>',t.find('input[name="give_address_state"], select[name="give_address_state"]').replaceWith(n),void 0!==f()(e.show_field)&&1==e.show_field?(t.find("p#give-card-state-wrap").removeClass("give-hidden"),t.find("p#give-card-zip-wrap").addClass("form-row-last"),t.find("p#give-card-zip-wrap").removeClass("form-row-wide")):(t.find("p#give-card-state-wrap").addClass("give-hidden"),t.find("p#give-card-zip-wrap").addClass("form-row-wide"),t.find("p#give-card-zip-wrap").removeClass("form-row-last"))}}).fail((function(e){window.console&&window.console.log&&console.log(e)}))}return!1};var g=n(23),h=n.n(g),y=n(31),b=n.n(y),w=(n(415),new(function(){function e(){h()(this,e),window.addEventListener("load",(function(){window.addDynamicEventListener(document,"click",".give-donor__read-more",e.readMoreBtnEvent),window.addDynamicEventListener(document,"click",".give-donor__load_more",e.loadMoreBtnEvent)}),!1),window.addEventListener("load",(function(){e.loadGravatars()}))}return b()(e,null,[{key:"readMoreBtnEvent",value:function(e){return e.preventDefault(),jQuery.magnificPopup.open({items:{src:e.target.parentNode.parentNode.parentNode.getElementsByClassName("give-donor__comment")[0],type:"inline"},mainClass:"give-modal give-donor-wall-modal",closeOnBgClick:!1}),!1}},{key:"loadMoreBtnEvent",value:function(t){t.preventDefault();var n=t.target,r=n.parentNode,i=r.getElementsByClassName("give-donor-wall-shortcode-attrs")[0];return jQuery.ajax({url:Give.fn.getGlobalVar("ajaxurl"),method:"POST",data:{action:"give_get_donor_comments",data:i.getAttribute("data-shortcode")},beforeSend:function(){n.className+=" give-active",n.setAttribute("disabled","disabled")}}).done((function(t){n.classList.remove("give-active"),n.removeAttribute("disabled","disabled"),t.html.length&&r.getElementsByClassName("give-grid")[0].insertAdjacentHTML("beforeend",t.html),t.shortcode.length&&i.setAttribute("data-shortcode",t.shortcode),t.remaining||n.remove(),e.loadGravatar(i)})),!1}},{key:"loadGravatars",value:function(){Array.from(document.querySelectorAll(".give-donor-wall-shortcode-attrs")).forEach((function(t,n){e.loadGravatar(t)}))}},{key:"loadGravatar",value:function(e){var t,r,i=n(569);if(!("1"===Give.fn.getParameterByName("show_avatar",decodeURIComponent(e.getAttribute("data-shortcode")))))return!1;Array.from(e.parentNode.querySelectorAll(".give-grid__item")).forEach((function(e,n){if(!(t=e.querySelector(".give-donor__image")).classList.contains("gravatar-loaded")){if(r=t.getAttribute("data-donor_email"),"1"===t.getAttribute("data-has-valid-gravatar")){var o=document.createElement("IMG"),a=t.getAttribute("data-avatar-size");t.innerHTML="",o.setAttribute("src",i.url(r,{s:2*parseInt(a)})),t.appendChild(o)}t.className+=" gravatar-loaded"}}))}}]),e}()),{targetOrigin:window.location.origin,onReady:function(){document.getElementById("give-receipt")||window.parentIFrame.sendMessage({action:"giveEmbedFormContentLoaded"})},onMessage:function(e){if("currentPage"in e){var t=document.getElementsByName("give-current-url");t.length&&t[0].setAttribute("value",e.currentPage)}}});jQuery((function(){if(document.querySelector("body.give-form-templates"))return!1;document.querySelectorAll(".js-give-embed-form-modal-opener").forEach((function(e){e.addEventListener("click",(function(){var t=document.getElementById(e.getAttribute("data-form-id")),n=t.querySelector('iframe[name="give-embed-form"]'),i=n.getAttribute("data-src");i&&(n.setAttribute("src",i),n.setAttribute("data-src",""),Object(r.a)(n)),document.documentElement.style.overflow="hidden",t.classList.add("modal"),t.classList.remove("is-hide")}))})),document.querySelectorAll(".js-give-embed-form-modal-closer").forEach((function(e){e.addEventListener("click",(function(t){t.preventDefault();var n=document.getElementById(e.getAttribute("data-form-id"));document.documentElement.style.overflow="",n.classList.remove("modal"),n.classList.add("is-hide")}))})),document.querySelectorAll(".js-give-grid-modal-launcher").forEach((function(e){e.addEventListener("click",(function(){var t=e.nextElementSibling.firstElementChild,n=document.querySelector(".mfp-wrap.give-modal");n&&n.classList.add("mfp-hide"),t?(jQuery.magnificPopup.close(),t.click()):n&&n.classList.remove("mfp-hide")}))})),document.addEventListener("keydown",(function(e){if(!e.isComposing&&27===e.keyCode){var t=document.querySelector(".give-embed-form-wrapper.modal");if(t){var n=t.getAttribute("id"),r=document.querySelector('.js-give-embed-form-modal-closer[data-form-id="'.concat(n,'"]'));r&&r.click()}}})),window.addEventListener("load",(function(){var e=document.querySelector('.modal-content iframe[data-autoScroll="1"]');if(e){var t=e.parentElement.parentElement.parentElement.getAttribute("id"),n=document.querySelector('.js-give-embed-form-modal-opener[data-form-id="'.concat(t,'"]'));n&&n.click()}}))}));var _=i.a.init,x=i.a.fn,C=i.a.form,k=i.a.notice,I=i.a.cache,E=i.a.donor,j=i.a.util,S=i.a.share;window.Give={init:_,fn:x,form:C,notice:k,cache:I,donor:E,util:j,share:S,initializeIframeResize:r.a},window.iFrameResizer=w},101:function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},e.exports.default=e.exports,e.exports.__esModule=!0},13:function(e,t,n){e.exports=n(303)},15:function(e,t,n){"use strict";(function(e){n.d(t,"e",(function(){return r})),n.d(t,"p",(function(){return i})),n.d(t,"a",(function(){return o})),n.d(t,"c",(function(){return a})),n.d(t,"d",(function(){return u})),n.d(t,"o",(function(){return c})),n.d(t,"q",(function(){return s})),n.d(t,"t",(function(){return l})),n.d(t,"i",(function(){return d})),n.d(t,"r",(function(){return f})),n.d(t,"s",(function(){return p})),n.d(t,"k",(function(){return m})),n.d(t,"m",(function(){return v})),n.d(t,"j",(function(){return g})),n.d(t,"l",(function(){return h})),n.d(t,"g",(function(){return y})),n.d(t,"f",(function(){return b})),n.d(t,"h",(function(){return w})),n.d(t,"n",(function(){return _})),n.d(t,"b",(function(){return x}));var r="1.13.1",i="object"==typeof self&&self.self===self&&self||"object"==typeof e&&e.global===e&&e||Function("return this")()||{},o=Array.prototype,a=Object.prototype,u="undefined"!=typeof Symbol?Symbol.prototype:null,c=o.push,s=o.slice,l=a.toString,d=a.hasOwnProperty,f="undefined"!=typeof ArrayBuffer,p="undefined"!=typeof DataView,m=Array.isArray,v=Object.keys,g=Object.create,h=f&&ArrayBuffer.isView,y=isNaN,b=isFinite,w=!{toString:null}.propertyIsEnumerable("toString"),_=["valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],x=Math.pow(2,53)-1}).call(this,n(54))},19:function(e,t){function n(t){return"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?(e.exports=n=function(e){return typeof e},e.exports.default=e.exports,e.exports.__esModule=!0):(e.exports=n=function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.default=e.exports,e.exports.__esModule=!0),n(t)}e.exports=n,e.exports.default=e.exports,e.exports.__esModule=!0},23:function(e,t){e.exports=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},e.exports.default=e.exports,e.exports.__esModule=!0},25:function(e,t){function n(e,t,n,r,i,o,a){try{var u=e[o](a),c=u.value}catch(e){return void n(e)}u.done?t(c):Promise.resolve(c).then(r,i)}e.exports=function(e){return function(){var t=this,r=arguments;return new Promise((function(i,o){var a=e.apply(t,r);function u(e){n(a,i,o,u,c,"next",e)}function c(e){n(a,i,o,u,c,"throw",e)}u(void 0)}))}},e.exports.default=e.exports,e.exports.__esModule=!0},303:function(e,t,n){var r=function(e){"use strict";var t=Object.prototype,n=t.hasOwnProperty,r="function"==typeof Symbol?Symbol:{},i=r.iterator||"@@iterator",o=r.asyncIterator||"@@asyncIterator",a=r.toStringTag||"@@toStringTag";function u(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(e){u=function(e,t,n){return e[t]=n}}function c(e,t,n,r){var i=t&&t.prototype instanceof d?t:d,o=Object.create(i.prototype),a=new C(r||[]);return o._invoke=function(e,t,n){var r="suspendedStart";return function(i,o){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===i)throw o;return I()}for(n.method=i,n.arg=o;;){var a=n.delegate;if(a){var u=w(a,n);if(u){if(u===l)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var c=s(e,t,n);if("normal"===c.type){if(r=n.done?"completed":"suspendedYield",c.arg===l)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(r="completed",n.method="throw",n.arg=c.arg)}}}(e,n,a),o}function s(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var l={};function d(){}function f(){}function p(){}var m={};m[i]=function(){return this};var v=Object.getPrototypeOf,g=v&&v(v(k([])));g&&g!==t&&n.call(g,i)&&(m=g);var h=p.prototype=d.prototype=Object.create(m);function y(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){var r;this._invoke=function(i,o){function a(){return new t((function(r,a){!function r(i,o,a,u){var c=s(e[i],e,o);if("throw"!==c.type){var l=c.arg,d=l.value;return d&&"object"==typeof d&&n.call(d,"__await")?t.resolve(d.__await).then((function(e){r("next",e,a,u)}),(function(e){r("throw",e,a,u)})):t.resolve(d).then((function(e){l.value=e,a(l)}),(function(e){return r("throw",e,a,u)}))}u(c.arg)}(i,o,r,a)}))}return r=r?r.then(a,a):a()}}function w(e,t){var n=e.iterator[t.method];if(void 0===n){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,w(e,t),"throw"===t.method))return l;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return l}var r=s(n,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,l;var i=r.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,l):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,l)}function _(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function x(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function C(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(_,this),this.reset(!0)}function k(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,o=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:I}}function I(){return{value:void 0,done:!0}}return f.prototype=h.constructor=p,p.constructor=f,f.displayName=u(p,a,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===f||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,p):(e.__proto__=p,u(e,a,"GeneratorFunction")),e.prototype=Object.create(h),e},e.awrap=function(e){return{__await:e}},y(b.prototype),b.prototype[o]=function(){return this},e.AsyncIterator=b,e.async=function(t,n,r,i,o){void 0===o&&(o=Promise);var a=new b(c(t,n,r,i),o);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(h),u(h,a,"Generator"),h[i]=function(){return this},h.toString=function(){return"[object Generator]"},e.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},e.values=k,C.prototype={constructor:C,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(x),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return a.type="throw",a.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var u=n.call(o,"catchLoc"),c=n.call(o,"finallyLoc");if(u&&c){if(this.prev<o.catchLoc)return r(o.catchLoc,!0);if(this.prev<o.finallyLoc)return r(o.finallyLoc)}else if(u){if(this.prev<o.catchLoc)return r(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return r(o.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,l):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),l},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),x(n),l}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var i=r.arg;x(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:k(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),l}},e}(e.exports);try{regeneratorRuntime=r}catch(e){Function("r","regeneratorRuntime=r")(r)}},31:function(e,t){function n(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}e.exports=function(e,t,r){return t&&n(e.prototype,t),r&&n(e,r),e},e.exports.default=e.exports,e.exports.__esModule=!0},384:function(e,t){e.exports=jQuery},4:function(e,t,n){var r=n(99),i=n(100),o=n(64),a=n(101);e.exports=function(e,t){return r(e)||i(e,t)||o(e,t)||a()},e.exports.default=e.exports,e.exports.__esModule=!0},400:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(413),i=function(e){return new r.iframeResize({log:!1,sizeWidth:!0,checkOrigin:[window.location.origin],heightCalculationMethod:"documentElementOffset",widthCalculationMethod:"documentElementOffset",onMessage:function(t){var n=e.parentElement;switch(e.parentElement.classList.contains("modal-content")&&(n=n.parentElement.parentElement),t.message.action){case"giveEmbedFormContentLoaded":var r=setTimeout((function(){i()}),400);e.setAttribute("data-contentLoaded","1");var i=function(){clearTimeout(r),n.querySelector(".iframe-loader").style.opacity=0,n.querySelector(".iframe-loader").style.transition="opacity 0.2s ease",e.style.visibility="visible",e.style.minHeight="",n.style.height=null};break;case"giveScrollIframeInToView":e.scrollIntoView({behavior:"smooth",inline:"nearest"})}},onInit:function(){var t=e.parentElement;window.top.addEventListener("resize",(function(){e.style.width=window.top.innerWidth+"px"}));var n=!1;window.addEventListener("beforeunload",(function(){n=!0})),e.contentWindow.addEventListener("beforeunload",(function(){!1===n&&(e.scrollIntoView({behavior:"smooth",inline:"nearest"}),e.parentElement.querySelector(".iframe-loader").style.opacity=1,e.parentElement.querySelector(".iframe-loader").style.transition="",e.style.visibility="hidden",t.style.height="700px")})),e.iFrameResizer.sendMessage({currentPage:Give.fn.removeURLParameter(window.location.href,"giveDonationAction")})}},e)}},413:function(e,t,n){e.exports=n(565)},414:function(e,t,n){var r,i,o;
i=[n(384)],void 0===(o="function"==typeof(r=function(e){var t,n,r,i,o,a,u=function(){},c=!!window.jQuery,s=e(window),l=function(e,n){t.ev.on("mfp"+e+".mfp",n)},d=function(t,n,r,i){var o=document.createElement("div");return o.className="mfp-"+t,r&&(o.innerHTML=r),i?n&&n.appendChild(o):(o=e(o),n&&o.appendTo(n)),o},f=function(n,r){t.ev.triggerHandler("mfp"+n,r),t.st.callbacks&&(n=n.charAt(0).toLowerCase()+n.slice(1),t.st.callbacks[n]&&t.st.callbacks[n].apply(t,e.isArray(r)?r:[r]))},p=function(n){return n===a&&t.currTemplate.closeBtn||(t.currTemplate.closeBtn=e(t.st.closeMarkup.replace("%title%",t.st.tClose)),a=n),t.currTemplate.closeBtn},m=function(){e.magnificPopup.instance||((t=new u).init(),e.magnificPopup.instance=t)};u.prototype={constructor:u,init:function(){var n=navigator.appVersion;t.isLowIE=t.isIE8=document.all&&!document.addEventListener,t.isAndroid=/android/gi.test(n),t.isIOS=/iphone|ipad|ipod/gi.test(n),t.supportsTransition=function(){var e=document.createElement("p").style,t=["ms","O","Moz","Webkit"];if(void 0!==e.transition)return!0;for(;t.length;)if(t.pop()+"Transition"in e)return!0;return!1}(),t.probablyMobile=t.isAndroid||t.isIOS||/(Opera Mini)|Kindle|webOS|BlackBerry|(Opera Mobi)|(Windows Phone)|IEMobile/i.test(navigator.userAgent),r=e(document),t.popupsCache={}},open:function(n){var i;if(!1===n.isObj){t.items=n.items.toArray(),t.index=0;var a,u=n.items;for(i=0;i<u.length;i++)if((a=u[i]).parsed&&(a=a.el[0]),a===n.el[0]){t.index=i;break}}else t.items=e.isArray(n.items)?n.items:[n.items],t.index=n.index||0;if(!t.isOpen){t.types=[],o="",n.mainEl&&n.mainEl.length?t.ev=n.mainEl.eq(0):t.ev=r,n.key?(t.popupsCache[n.key]||(t.popupsCache[n.key]={}),t.currTemplate=t.popupsCache[n.key]):t.currTemplate={},t.st=e.extend(!0,{},e.magnificPopup.defaults,n),t.fixedContentPos="auto"===t.st.fixedContentPos?!t.probablyMobile:t.st.fixedContentPos,t.st.modal&&(t.st.closeOnContentClick=!1,t.st.closeOnBgClick=!1,t.st.showCloseBtn=!1,t.st.enableEscapeKey=!1),t.bgOverlay||(t.bgOverlay=d("bg").on("click.mfp",(function(){t.close()})),t.wrap=d("wrap").attr("tabindex",-1).on("click.mfp",(function(e){t._checkIfClose(e.target)&&t.close()})),t.container=d("container",t.wrap)),t.contentContainer=d("content"),t.st.preloader&&(t.preloader=d("preloader",t.container,t.st.tLoading));var c=e.magnificPopup.modules;for(i=0;i<c.length;i++){var m=c[i];m=m.charAt(0).toUpperCase()+m.slice(1),t["init"+m].call(t)}f("BeforeOpen"),t.st.showCloseBtn&&(t.st.closeBtnInside?(l("MarkupParse",(function(e,t,n,r){n.close_replaceWith=p(r.type)})),o+=" mfp-close-btn-in"):t.wrap.append(p())),t.st.alignTop&&(o+=" mfp-align-top"),t.fixedContentPos?t.wrap.css({overflow:t.st.overflowY,overflowX:"hidden",overflowY:t.st.overflowY}):t.wrap.css({top:s.scrollTop(),position:"absolute"}),(!1===t.st.fixedBgPos||"auto"===t.st.fixedBgPos&&!t.fixedContentPos)&&t.bgOverlay.css({height:r.height(),position:"absolute"}),t.st.enableEscapeKey&&r.on("keyup.mfp",(function(e){27===e.keyCode&&t.close()})),s.on("resize.mfp",(function(){t.updateSize()})),t.st.closeOnContentClick||(o+=" mfp-auto-cursor"),o&&t.wrap.addClass(o);var v=t.wH=s.height(),g={};if(t.fixedContentPos&&t._hasScrollBar(v)){var h=t._getScrollbarSize();h&&(g.marginRight=h)}t.fixedContentPos&&(t.isIE7?e("body, html").css("overflow","hidden"):g.overflow="hidden");var y=t.st.mainClass;return t.isIE7&&(y+=" mfp-ie7"),y&&t._addClassToMFP(y),t.updateItemHTML(),f("BuildControls"),e("html").css(g),t.bgOverlay.add(t.wrap).prependTo(t.st.prependTo||e(document.body)),t._lastFocusedEl=document.activeElement,setTimeout((function(){t.content?(t._addClassToMFP("mfp-ready"),t._setFocus()):t.bgOverlay.addClass("mfp-ready"),r.on("focusin.mfp",t._onFocusIn)}),16),t.isOpen=!0,t.updateSize(v),f("Open"),n}t.updateItemHTML()},close:function(){t.isOpen&&(f("BeforeClose"),t.isOpen=!1,t.st.removalDelay&&!t.isLowIE&&t.supportsTransition?(t._addClassToMFP("mfp-removing"),setTimeout((function(){t._close()}),t.st.removalDelay)):t._close())},_close:function(){f("Close");var n="mfp-removing mfp-ready ";if(t.bgOverlay.detach(),t.wrap.detach(),t.container.empty(),t.st.mainClass&&(n+=t.st.mainClass+" "),t._removeClassFromMFP(n),t.fixedContentPos){var i={marginRight:""};t.isIE7?e("body, html").css("overflow",""):i.overflow="",e("html").css(i)}r.off("keyup.mfp focusin.mfp"),t.ev.off(".mfp"),t.wrap.attr("class","mfp-wrap").removeAttr("style"),t.bgOverlay.attr("class","mfp-bg"),t.container.attr("class","mfp-container"),!t.st.showCloseBtn||t.st.closeBtnInside&&!0!==t.currTemplate[t.currItem.type]||t.currTemplate.closeBtn&&t.currTemplate.closeBtn.detach(),t.st.autoFocusLast&&t._lastFocusedEl&&e(t._lastFocusedEl).focus(),t.currItem=null,t.content=null,t.currTemplate=null,t.prevHeight=0,f("AfterClose")},updateSize:function(e){if(t.isIOS){var n=document.documentElement.clientWidth/window.innerWidth,r=window.innerHeight*n;t.wrap.css("height",r),t.wH=r}else t.wH=e||s.height();t.fixedContentPos||t.wrap.css("height",t.wH),f("Resize")},updateItemHTML:function(){var n=t.items[t.index];t.contentContainer.detach(),t.content&&t.content.detach(),n.parsed||(n=t.parseEl(t.index));var r=n.type;if(f("BeforeChange",[t.currItem?t.currItem.type:"",r]),t.currItem=n,!t.currTemplate[r]){var o=!!t.st[r]&&t.st[r].markup;f("FirstMarkupParse",o),t.currTemplate[r]=!o||e(o)}i&&i!==n.type&&t.container.removeClass("mfp-"+i+"-holder");var a=t["get"+r.charAt(0).toUpperCase()+r.slice(1)](n,t.currTemplate[r]);t.appendContent(a,r),n.preloaded=!0,f("Change",n),i=n.type,t.container.prepend(t.contentContainer),f("AfterChange")},appendContent:function(e,n){t.content=e,e?t.st.showCloseBtn&&t.st.closeBtnInside&&!0===t.currTemplate[n]?t.content.find(".mfp-close").length||t.content.append(p()):t.content=e:t.content="",f("BeforeAppend"),t.container.addClass("mfp-"+n+"-holder"),t.contentContainer.append(t.content)},parseEl:function(n){var r,i=t.items[n];if(i.tagName?i={el:e(i)}:(r=i.type,i={data:i,src:i.src}),i.el){for(var o=t.types,a=0;a<o.length;a++)if(i.el.hasClass("mfp-"+o[a])){r=o[a];break}i.src=i.el.attr("data-mfp-src"),i.src||(i.src=i.el.attr("href"))}return i.type=r||t.st.type||"inline",i.index=n,i.parsed=!0,t.items[n]=i,f("ElementParse",i),t.items[n]},addGroup:function(e,n){var r=function(r){r.mfpEl=this,t._openClick(r,e,n)};n||(n={});var i="click.magnificPopup";n.mainEl=e,n.items?(n.isObj=!0,e.off(i).on(i,r)):(n.isObj=!1,n.delegate?e.off(i).on(i,n.delegate,r):(n.items=e,e.off(i).on(i,r)))},_openClick:function(n,r,i){if((void 0!==i.midClick?i.midClick:e.magnificPopup.defaults.midClick)||!(2===n.which||n.ctrlKey||n.metaKey||n.altKey||n.shiftKey)){var o=void 0!==i.disableOn?i.disableOn:e.magnificPopup.defaults.disableOn;if(o)if(e.isFunction(o)){if(!o.call(t))return!0}else if(s.width()<o)return!0;n.type&&(n.preventDefault(),t.isOpen&&n.stopPropagation()),i.el=e(n.mfpEl),i.delegate&&(i.items=r.find(i.delegate)),t.open(i)}},updateStatus:function(e,r){if(t.preloader){n!==e&&t.container.removeClass("mfp-s-"+n),r||"loading"!==e||(r=t.st.tLoading);var i={status:e,text:r};f("UpdateStatus",i),e=i.status,r=i.text,t.preloader.html(r),t.preloader.find("a").on("click",(function(e){e.stopImmediatePropagation()})),t.container.addClass("mfp-s-"+e),n=e}},_checkIfClose:function(n){if(!e(n).hasClass("mfp-prevent-close")){var r=t.st.closeOnContentClick,i=t.st.closeOnBgClick;if(r&&i)return!0;if(!t.content||e(n).hasClass("mfp-close")||t.preloader&&n===t.preloader[0])return!0;if(n===t.content[0]||e.contains(t.content[0],n)){if(r)return!0}else if(i&&e.contains(document,n))return!0;return!1}},_addClassToMFP:function(e){t.bgOverlay.addClass(e),t.wrap.addClass(e)},_removeClassFromMFP:function(e){this.bgOverlay.removeClass(e),t.wrap.removeClass(e)},_hasScrollBar:function(e){return(t.isIE7?r.height():document.body.scrollHeight)>(e||s.height())},_setFocus:function(){(t.st.focus?t.content.find(t.st.focus).eq(0):t.wrap).focus()},_onFocusIn:function(n){if(n.target!==t.wrap[0]&&!e.contains(t.wrap[0],n.target))return t._setFocus(),!1},_parseMarkup:function(t,n,r){var i;r.data&&(n=e.extend(r.data,n)),f("MarkupParse",[t,n,r]),e.each(n,(function(n,r){if(void 0===r||!1===r)return!0;if((i=n.split("_")).length>1){var o=t.find(".mfp-"+i[0]);if(o.length>0){var a=i[1];"replaceWith"===a?o[0]!==r[0]&&o.replaceWith(r):"img"===a?o.is("img")?o.attr("src",r):o.replaceWith(e("<img>").attr("src",r).attr("class",o.attr("class"))):o.attr(i[1],r)}}else t.find(".mfp-"+n).html(r)}))},_getScrollbarSize:function(){if(void 0===t.scrollbarSize){var e=document.createElement("div");e.style.cssText="width: 99px; height: 99px; overflow: scroll; position: absolute; top: -9999px;",document.body.appendChild(e),t.scrollbarSize=e.offsetWidth-e.clientWidth,document.body.removeChild(e)}return t.scrollbarSize}},e.magnificPopup={instance:null,proto:u.prototype,modules:[],open:function(t,n){return m(),(t=t?e.extend(!0,{},t):{}).isObj=!0,t.index=n||0,this.instance.open(t)},close:function(){return e.magnificPopup.instance&&e.magnificPopup.instance.close()},registerModule:function(t,n){n.options&&(e.magnificPopup.defaults[t]=n.options),e.extend(this.proto,n.proto),this.modules.push(t)},defaults:{disableOn:0,key:null,midClick:!1,mainClass:"",preloader:!0,focus:"",closeOnContentClick:!1,closeOnBgClick:!0,closeBtnInside:!0,showCloseBtn:!0,enableEscapeKey:!0,modal:!1,alignTop:!1,removalDelay:0,prependTo:null,fixedContentPos:"auto",fixedBgPos:"auto",overflowY:"auto",closeMarkup:'<button title="%title%" type="button" class="mfp-close">&#215;</button>',tClose:"Close (Esc)",tLoading:"Loading...",autoFocusLast:!0}},e.fn.magnificPopup=function(n){m();var r=e(this);if("string"==typeof n)if("open"===n){var i,o=c?r.data("magnificPopup"):r[0].magnificPopup,a=parseInt(arguments[1],10)||0;o.items?i=o.items[a]:(i=r,o.delegate&&(i=i.find(o.delegate)),i=i.eq(a)),t._openClick({mfpEl:i},r,o)}else t.isOpen&&t[n].apply(t,Array.prototype.slice.call(arguments,1));else n=e.extend(!0,{},n),c?r.data("magnificPopup",n):r[0].magnificPopup=n,t.addGroup(r,n);return r};var v,g,h,y=function(){h&&(g.after(h.addClass(v)).detach(),h=null)};e.magnificPopup.registerModule("inline",{options:{hiddenClass:"hide",markup:"",tNotFound:"Content not found"},proto:{initInline:function(){t.types.push("inline"),l("Close.inline",(function(){y()}))},getInline:function(n,r){if(y(),n.src){var i=t.st.inline,o=e(n.src);if(o.length){var a=o[0].parentNode;a&&a.tagName&&(g||(v=i.hiddenClass,g=d(v),v="mfp-"+v),h=o.after(g).detach().removeClass(v)),t.updateStatus("ready")}else t.updateStatus("error",i.tNotFound),o=e("<div>");return n.inlineElement=o,o}return t.updateStatus("ready"),t._parseMarkup(r,{},n),r}}});var b,w=function(){b&&e(document.body).removeClass(b)},_=function(){w(),t.req&&t.req.abort()};e.magnificPopup.registerModule("ajax",{options:{settings:null,cursor:"mfp-ajax-cur",tError:'<a href="%url%">The content</a> could not be loaded.'},proto:{initAjax:function(){t.types.push("ajax"),b=t.st.ajax.cursor,l("Close.ajax",_),l("BeforeChange.ajax",_)},getAjax:function(n){b&&e(document.body).addClass(b),t.updateStatus("loading");var r=e.extend({url:n.src,success:function(r,i,o){var a={data:r,xhr:o};f("ParseAjax",a),t.appendContent(e(a.data),"ajax"),n.finished=!0,w(),t._setFocus(),setTimeout((function(){t.wrap.addClass("mfp-ready")}),16),t.updateStatus("ready"),f("AjaxContentAdded")},error:function(){w(),n.finished=n.loadError=!0,t.updateStatus("error",t.st.ajax.tError.replace("%url%",n.src))}},t.st.ajax.settings);return t.req=e.ajax(r),""}}});var x,C,k=function(n){if(n.data&&void 0!==n.data.title)return n.data.title;var r=t.st.image.titleSrc;if(r){if(e.isFunction(r))return r.call(t,n);if(n.el)return n.el.attr(r)||""}return""};e.magnificPopup.registerModule("image",{options:{markup:'<div class="mfp-figure"><div class="mfp-close"></div><figure><div class="mfp-img"></div><figcaption><div class="mfp-bottom-bar"><div class="mfp-title"></div><div class="mfp-counter"></div></div></figcaption></figure></div>',cursor:"mfp-zoom-out-cur",titleSrc:"title",verticalFit:!0,tError:'<a href="%url%">The image</a> could not be loaded.'},proto:{initImage:function(){var n=t.st.image,r=".image";t.types.push("image"),l("Open"+r,(function(){"image"===t.currItem.type&&n.cursor&&e(document.body).addClass(n.cursor)})),l("Close"+r,(function(){n.cursor&&e(document.body).removeClass(n.cursor),s.off("resize.mfp")})),l("Resize"+r,t.resizeImage),t.isLowIE&&l("AfterChange",t.resizeImage)},resizeImage:function(){var e=t.currItem;if(e&&e.img&&t.st.image.verticalFit){var n=0;t.isLowIE&&(n=parseInt(e.img.css("padding-top"),10)+parseInt(e.img.css("padding-bottom"),10)),e.img.css("max-height",t.wH-n)}},_onImageHasSize:function(e){e.img&&(e.hasSize=!0,x&&clearInterval(x),e.isCheckingImgSize=!1,f("ImageHasSize",e),e.imgHidden&&(t.content&&t.content.removeClass("mfp-loading"),e.imgHidden=!1))},findImageSize:function(e){var n=0,r=e.img[0],i=function(o){x&&clearInterval(x),x=setInterval((function(){r.naturalWidth>0?t._onImageHasSize(e):(n>200&&clearInterval(x),3==++n?i(10):40===n?i(50):100===n&&i(500))}),o)};i(1)},getImage:function(n,r){var i=0,o=function(){n&&(n.img[0].complete?(n.img.off(".mfploader"),n===t.currItem&&(t._onImageHasSize(n),t.updateStatus("ready")),n.hasSize=!0,n.loaded=!0,f("ImageLoadComplete")):++i<200?setTimeout(o,100):a())},a=function(){n&&(n.img.off(".mfploader"),n===t.currItem&&(t._onImageHasSize(n),t.updateStatus("error",u.tError.replace("%url%",n.src))),n.hasSize=!0,n.loaded=!0,n.loadError=!0)},u=t.st.image,c=r.find(".mfp-img");if(c.length){var s=document.createElement("img");s.className="mfp-img",n.el&&n.el.find("img").length&&(s.alt=n.el.find("img").attr("alt")),n.img=e(s).on("load.mfploader",o).on("error.mfploader",a),s.src=n.src,c.is("img")&&(n.img=n.img.clone()),(s=n.img[0]).naturalWidth>0?n.hasSize=!0:s.width||(n.hasSize=!1)}return t._parseMarkup(r,{title:k(n),img_replaceWith:n.img},n),t.resizeImage(),n.hasSize?(x&&clearInterval(x),n.loadError?(r.addClass("mfp-loading"),t.updateStatus("error",u.tError.replace("%url%",n.src))):(r.removeClass("mfp-loading"),t.updateStatus("ready")),r):(t.updateStatus("loading"),n.loading=!0,n.hasSize||(n.imgHidden=!0,r.addClass("mfp-loading"),t.findImageSize(n)),r)}}}),e.magnificPopup.registerModule("zoom",{options:{enabled:!1,easing:"ease-in-out",duration:300,opener:function(e){return e.is("img")?e:e.find("img")}},proto:{initZoom:function(){var e,n=t.st.zoom,r=".zoom";if(n.enabled&&t.supportsTransition){var i,o,a=n.duration,u=function(e){var t=e.clone().removeAttr("style").removeAttr("class").addClass("mfp-animated-image"),r="all "+n.duration/1e3+"s "+n.easing,i={position:"fixed",zIndex:9999,left:0,top:0,"-webkit-backface-visibility":"hidden"},o="transition";return i["-webkit-"+o]=i["-moz-"+o]=i["-o-"+o]=i[o]=r,t.css(i),t},c=function(){t.content.css("visibility","visible")};l("BuildControls"+r,(function(){if(t._allowZoom()){if(clearTimeout(i),t.content.css("visibility","hidden"),!(e=t._getItemToZoom()))return void c();(o=u(e)).css(t._getOffset()),t.wrap.append(o),i=setTimeout((function(){o.css(t._getOffset(!0)),i=setTimeout((function(){c(),setTimeout((function(){o.remove(),e=o=null,f("ZoomAnimationEnded")}),16)}),a)}),16)}})),l("BeforeClose"+r,(function(){if(t._allowZoom()){if(clearTimeout(i),t.st.removalDelay=a,!e){if(!(e=t._getItemToZoom()))return;o=u(e)}o.css(t._getOffset(!0)),t.wrap.append(o),t.content.css("visibility","hidden"),setTimeout((function(){o.css(t._getOffset())}),16)}})),l("Close"+r,(function(){t._allowZoom()&&(c(),o&&o.remove(),e=null)}))}},_allowZoom:function(){return"image"===t.currItem.type},_getItemToZoom:function(){return!!t.currItem.hasSize&&t.currItem.img},_getOffset:function(n){var r,i=(r=n?t.currItem.img:t.st.zoom.opener(t.currItem.el||t.currItem)).offset(),o=parseInt(r.css("padding-top"),10),a=parseInt(r.css("padding-bottom"),10);i.top-=e(window).scrollTop()-o;var u={width:r.width(),height:(c?r.innerHeight():r[0].offsetHeight)-a-o};return void 0===C&&(C=void 0!==document.createElement("p").style.MozTransform),C?u["-moz-transform"]=u.transform="translate("+i.left+"px,"+i.top+"px)":(u.left=i.left,u.top=i.top),u}}});var I=function(e){if(t.currTemplate.iframe){var n=t.currTemplate.iframe.find("iframe");n.length&&(e||(n[0].src="//about:blank"),t.isIE8&&n.css("display",e?"block":"none"))}};e.magnificPopup.registerModule("iframe",{options:{markup:'<div class="mfp-iframe-scaler"><div class="mfp-close"></div><iframe class="mfp-iframe" src="//about:blank" frameborder="0" allowfullscreen></iframe></div>',srcAction:"iframe_src",patterns:{youtube:{index:"youtube.com",id:"v=",src:"//www.youtube.com/embed/%id%?autoplay=1"},vimeo:{index:"vimeo.com/",id:"/",src:"//player.vimeo.com/video/%id%?autoplay=1"},gmaps:{index:"//maps.google.",src:"%id%&output=embed"}}},proto:{initIframe:function(){t.types.push("iframe"),l("BeforeChange",(function(e,t,n){t!==n&&("iframe"===t?I():"iframe"===n&&I(!0))})),l("Close.iframe",(function(){I()}))},getIframe:function(n,r){var i=n.src,o=t.st.iframe;e.each(o.patterns,(function(){if(i.indexOf(this.index)>-1)return this.id&&(i="string"==typeof this.id?i.substr(i.lastIndexOf(this.id)+this.id.length,i.length):this.id.call(this,i)),i=this.src.replace("%id%",i),!1}));var a={};return o.srcAction&&(a[o.srcAction]=i),t._parseMarkup(r,a,n),t.updateStatus("ready"),r}}});var E=function(e){var n=t.items.length;return e>n-1?e-n:e<0?n+e:e},j=function(e,t,n){return e.replace(/%curr%/gi,t+1).replace(/%total%/gi,n)};e.magnificPopup.registerModule("gallery",{options:{enabled:!1,arrowMarkup:'<button title="%title%" type="button" class="mfp-arrow mfp-arrow-%dir%"></button>',preload:[0,2],navigateByImgClick:!0,arrows:!0,tPrev:"Previous (Left arrow key)",tNext:"Next (Right arrow key)",tCounter:"%curr% of %total%"},proto:{initGallery:function(){var n=t.st.gallery,i=".mfp-gallery";if(t.direction=!0,!n||!n.enabled)return!1;o+=" mfp-gallery",l("Open"+i,(function(){n.navigateByImgClick&&t.wrap.on("click"+i,".mfp-img",(function(){if(t.items.length>1)return t.next(),!1})),r.on("keydown"+i,(function(e){37===e.keyCode?t.prev():39===e.keyCode&&t.next()}))})),l("UpdateStatus"+i,(function(e,n){n.text&&(n.text=j(n.text,t.currItem.index,t.items.length))})),l("MarkupParse"+i,(function(e,r,i,o){var a=t.items.length;i.counter=a>1?j(n.tCounter,o.index,a):""})),l("BuildControls"+i,(function(){if(t.items.length>1&&n.arrows&&!t.arrowLeft){var r=n.arrowMarkup,i=t.arrowLeft=e(r.replace(/%title%/gi,n.tPrev).replace(/%dir%/gi,"left")).addClass("mfp-prevent-close"),o=t.arrowRight=e(r.replace(/%title%/gi,n.tNext).replace(/%dir%/gi,"right")).addClass("mfp-prevent-close");i.click((function(){t.prev()})),o.click((function(){t.next()})),t.container.append(i.add(o))}})),l("Change"+i,(function(){t._preloadTimeout&&clearTimeout(t._preloadTimeout),t._preloadTimeout=setTimeout((function(){t.preloadNearbyImages(),t._preloadTimeout=null}),16)})),l("Close"+i,(function(){r.off(i),t.wrap.off("click"+i),t.arrowRight=t.arrowLeft=null}))},next:function(){t.direction=!0,t.index=E(t.index+1),t.updateItemHTML()},prev:function(){t.direction=!1,t.index=E(t.index-1),t.updateItemHTML()},goTo:function(e){t.direction=e>=t.index,t.index=e,t.updateItemHTML()},preloadNearbyImages:function(){var e,n=t.st.gallery.preload,r=Math.min(n[0],t.items.length),i=Math.min(n[1],t.items.length);for(e=1;e<=(t.direction?i:r);e++)t._preloadItem(t.index+e);for(e=1;e<=(t.direction?r:i);e++)t._preloadItem(t.index-e)},_preloadItem:function(n){if(n=E(n),!t.items[n].preloaded){var r=t.items[n];r.parsed||(r=t.parseEl(n)),f("LazyLoad",r),"image"===r.type&&(r.img=e('<img class="mfp-img" />').on("load.mfploader",(function(){r.hasSize=!0})).on("error.mfploader",(function(){r.hasSize=!0,r.loadError=!0,f("LazyLoadError",r)})).attr("src",r.src)),r.preloaded=!0}}}}),e.magnificPopup.registerModule("retina",{options:{replaceSrc:function(e){return e.src.replace(/\.\w+$/,(function(e){return"@2x"+e}))},ratio:1},proto:{initRetina:function(){if(window.devicePixelRatio>1){var e=t.st.retina,n=e.ratio;(n=isNaN(n)?n():n)>1&&(l("ImageHasSize.retina",(function(e,t){t.img.css({"max-width":t.img[0].naturalWidth/n,width:"100%"})})),l("ElementParse.retina",(function(t,r){r.src=e.replaceSrc(r,n)})))}}}}),m()})?r.apply(t,i):r)||(e.exports=o)},415:function(e,t){!function(e){"use strict";Element.prototype.matches||(Element.prototype.matches=Element.prototype.matchesSelector||Element.prototype.mozMatchesSelector||Element.prototype.msMatchesSelector||Element.prototype.oMatchesSelector||Element.prototype.webkitMatchesSelector||function(e){for(var t=(this.document||this.ownerDocument).querySelectorAll(e),n=t.length;--n>=0&&t.item(n)!==this;);return n>-1}),e.addDynamicEventListener=function(e,t,n,r,i){e.addEventListener(t,function(e,t){return function(n){n.target&&n.target.matches(e)&&t.apply(this,arguments)}}(n,r),i)}}(window)},5:function(e,t){e.exports=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},e.exports.default=e.exports,e.exports.__esModule=!0},54:function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},563:function(e,t,n){(function(t){e.exports=t.accounting=n(564)}).call(this,n(54))},564:function(e,t,n){
!function(n,r){var i={version:"0.4.1",settings:{currency:{symbol:"$",format:"%s%v",decimal:".",thousand:",",precision:2,grouping:3},number:{precision:0,grouping:3,thousand:",",decimal:"."}}},o=Array.prototype.map,a=Array.isArray,u=Object.prototype.toString;function c(e){return!!(""===e||e&&e.charCodeAt&&e.substr)}function s(e){return a?a(e):"[object Array]"===u.call(e)}function l(e){return e&&"[object Object]"===u.call(e)}function d(e,t){var n;for(n in e=e||{},t=t||{})t.hasOwnProperty(n)&&null==e[n]&&(e[n]=t[n]);return e}function f(e,t,n){var r,i,a=[];if(!e)return a;if(o&&e.map===o)return e.map(t,n);for(r=0,i=e.length;r<i;r++)a[r]=t.call(n,e[r],r,e);return a}function p(e,t){return e=Math.round(Math.abs(e)),isNaN(e)?t:e}function m(e){var t=i.settings.currency.format;return"function"==typeof e&&(e=e()),c(e)&&e.match("%v")?{pos:e,neg:e.replace("-","").replace("%v","-%v"),zero:e}:e&&e.pos&&e.pos.match("%v")?e:c(t)?i.settings.currency.format={pos:t,neg:t.replace("%v","-%v"),zero:t}:t}var v=i.unformat=i.parse=function(e,t){if(s(e))return f(e,(function(e){return v(e,t)}));if("number"==typeof(e=e||0))return e;t=t||i.settings.number.decimal;var n=new RegExp("[^0-9-"+t+"]",["g"]),r=parseFloat((""+e).replace(/\((.*)\)/,"-$1").replace(n,"").replace(t,"."));return isNaN(r)?0:r},g=i.toFixed=function(e,t){t=p(t,i.settings.number.precision);var n=Math.pow(10,t);return(Math.round(i.unformat(e)*n)/n).toFixed(t)},h=i.formatNumber=i.format=function(e,t,n,r){if(s(e))return f(e,(function(e){return h(e,t,n,r)}));e=v(e);var o=d(l(t)?t:{precision:t,thousand:n,decimal:r},i.settings.number),a=p(o.precision),u=e<0?"-":"",c=parseInt(g(Math.abs(e||0),a),10)+"",m=c.length>3?c.length%3:0;return u+(m?c.substr(0,m)+o.thousand:"")+c.substr(m).replace(/(\d{3})(?=\d)/g,"$1"+o.thousand)+(a?o.decimal+g(Math.abs(e),a).split(".")[1]:"")},y=i.formatMoney=function(e,t,n,r,o,a){if(s(e))return f(e,(function(e){return y(e,t,n,r,o,a)}));e=v(e);var u=d(l(t)?t:{symbol:t,precision:n,thousand:r,decimal:o,format:a},i.settings.currency),c=m(u.format);return(e>0?c.pos:e<0?c.neg:c.zero).replace("%s",u.symbol).replace("%v",h(Math.abs(e),p(u.precision),u.thousand,u.decimal))};i.formatColumn=function(e,t,n,r,o,a){if(!e)return[];var u=d(l(t)?t:{symbol:t,precision:n,thousand:r,decimal:o,format:a},i.settings.currency),g=m(u.format),y=g.pos.indexOf("%s")<g.pos.indexOf("%v"),b=0,w=f(e,(function(e,t){if(s(e))return i.formatColumn(e,u);var n=((e=v(e))>0?g.pos:e<0?g.neg:g.zero).replace("%s",u.symbol).replace("%v",h(Math.abs(e),p(u.precision),u.thousand,u.decimal));return n.length>b&&(b=n.length),n}));return f(w,(function(e,t){return c(e)&&e.length<b?y?e.replace(u.symbol,u.symbol+new Array(b-e.length+1).join(" ")):new Array(b-e.length+1).join(" ")+e:e}))},e.exports&&(t=e.exports=i),t.accounting=i}()},565:function(e,t,n){var r=n(566);t.iframeResize=r,t.iframeResizer=r,t.iframeResizerContentWindow=n(567)},566:function(e,t,n){var r,i,o;!function(n){if("undefined"!=typeof window){var a,u=0,c=!1,s=!1,l="message".length,d="[iFrameSizer]",f=d.length,p=null,m=window.requestAnimationFrame,v={max:1,scroll:1,bodyScroll:1,documentElementScroll:1},g={},h=null,y={autoResize:!0,bodyBackground:null,bodyMargin:null,bodyMarginV1:8,bodyPadding:null,checkOrigin:!0,inPageLinks:!1,enablePublicMethods:!0,heightCalculationMethod:"bodyOffset",id:"iFrameResizer",interval:32,log:!1,maxHeight:1/0,maxWidth:1/0,minHeight:0,minWidth:0,mouseEvents:!0,resizeFrom:"parent",scrolling:!1,sizeHeight:!0,sizeWidth:!1,warningTimeout:5e3,tolerance:0,widthCalculationMethod:"scroll",onClose:function(){return!0},onClosed:function(){},onInit:function(){},onMessage:function(){j("onMessage function not defined")},onMouseEnter:function(){},onMouseLeave:function(){},onResized:function(){},onScroll:function(){return!0}},b={};window.jQuery&&((a=window.jQuery).fn?a.fn.iFrameResize||(a.fn.iFrameResize=function(e){return this.filter("iframe").each((function(t,n){q(n,e)})).end()}):E("","Unable to bind to jQuery, it is not fully loaded.")),i=[],void 0===(o="function"==typeof(r=H)?r.apply(t,i):r)||(e.exports=o),window.iFrameResize=window.iFrameResize||H()}function w(){return window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver}function _(e,t,n){e.addEventListener(t,n,!1)}function x(e,t,n){e.removeEventListener(t,n,!1)}function C(e){return d+"["+function(e){var t="Host page: "+e;return window.top!==window.self&&(t=window.parentIFrame&&window.parentIFrame.getId?window.parentIFrame.getId()+": "+e:"Nested host page: "+e),t}(e)+"]"}function k(e){return g[e]?g[e].log:c}function I(e,t){S("log",e,t,k(e))}function E(e,t){S("info",e,t,k(e))}function j(e,t){S("warn",e,t,!0)}function S(e,t,n,r){!0===r&&"object"==typeof window.console&&console[e](C(t),n)}function O(e){function t(){i("Height"),i("Width"),F((function(){z(M),N(q),v("onResized",M)}),M,"init")}function n(e){return"border-box"!==e.boxSizing?0:(e.paddingTop?parseInt(e.paddingTop,10):0)+(e.paddingBottom?parseInt(e.paddingBottom,10):0)}function r(e){return"border-box"!==e.boxSizing?0:(e.borderTopWidth?parseInt(e.borderTopWidth,10):0)+(e.borderBottomWidth?parseInt(e.borderBottomWidth,10):0)}function i(e){var t=Number(g[q]["max"+e]),n=Number(g[q]["min"+e]),r=e.toLowerCase(),i=Number(M[r]);I(q,"Checking "+r+" is in range "+n+"-"+t),i<n&&(i=n,I(q,"Set "+r+" to min value")),i>t&&(i=t,I(q,"Set "+r+" to max value")),M[r]=""+i}function o(e){return O.substr(O.indexOf(":")+l+e)}function a(e,t){var n,r,i;n=function(){var n,r;B("Send Page Info","pageInfo:"+(n=document.body.getBoundingClientRect(),r=M.iframe.getBoundingClientRect(),JSON.stringify({iframeHeight:r.height,iframeWidth:r.width,clientHeight:Math.max(document.documentElement.clientHeight,window.innerHeight||0),clientWidth:Math.max(document.documentElement.clientWidth,window.innerWidth||0),offsetTop:parseInt(r.top-n.top,10),offsetLeft:parseInt(r.left-n.left,10),scrollTop:window.pageYOffset,scrollLeft:window.pageXOffset,documentHeight:document.documentElement.clientHeight,documentWidth:document.documentElement.clientWidth,windowHeight:window.innerHeight,windowWidth:window.innerWidth})),e,t)},r=32,b[i=t]||(b[i]=setTimeout((function(){b[i]=null,n()}),r))}function u(e){var t=e.getBoundingClientRect();return L(q),{x:Math.floor(Number(t.left)+Number(p.x)),y:Math.floor(Number(t.top)+Number(p.y))}}function c(e){var t=e?u(M.iframe):{x:0,y:0},n={x:Number(M.width)+t.x,y:Number(M.height)+t.y};I(q,"Reposition requested from iFrame (offset x:"+t.x+" y:"+t.y+")"),window.top!==window.self?window.parentIFrame?window.parentIFrame["scrollTo"+(e?"Offset":"")](n.x,n.y):j(q,"Unable to scroll to requested position, window.parentIFrame not found"):(p=n,s(),I(q,"--"))}function s(){!1!==v("onScroll",p)?N(q):P()}function m(e){var t={};if(0===Number(M.width)&&0===Number(M.height)){var n=o(9).split(":");t={x:n[1],y:n[0]}}else t={x:M.width,y:M.height};v(e,{iframe:M.iframe,screenX:Number(t.x),screenY:Number(t.y),type:M.type})}function v(e,t){return T(q,e,t)}var h,y,w,C,k,S,O=e.data,M={},q=null;"[iFrameResizerChild]Ready"===O?function(){for(var e in g)B("iFrame requested init",R(e),g[e].iframe,e)}():d===(""+O).substr(0,f)&&O.substr(f).split(":")[0]in g?(w=O.substr(f).split(":"),C=w[1]?parseInt(w[1],10):0,k=g[w[0]]&&g[w[0]].iframe,S=getComputedStyle(k),M={iframe:k,id:w[0],height:C+n(S)+r(S),width:w[2],type:w[3]},q=M.id,g[q]&&(g[q].loaded=!0),(y=M.type in{true:1,false:1,undefined:1})&&I(q,"Ignoring init message from meta parent page"),!y&&function(e){var t=!0;return g[e]||(t=!1,j(M.type+" No settings for "+e+". Message was: "+O)),t}(q)&&(I(q,"Received: "+O),h=!0,null===M.iframe&&(j(q,"IFrame ("+M.id+") not found"),h=!1),h&&function(){var t,n=e.origin,r=g[q]&&g[q].checkOrigin;if(r&&""+n!="null"&&!(r.constructor===Array?function(){var e=0,t=!1;for(I(q,"Checking connection is from allowed list of origins: "+r);e<r.length;e++)if(r[e]===n){t=!0;break}return t}():(t=g[q]&&g[q].remoteHost,I(q,"Checking connection is from: "+t),n===t)))throw new Error("Unexpected message received from: "+n+" for "+M.iframe.id+". Message was: "+e.data+". This error can be disabled by setting the checkOrigin: false option or by providing of array of trusted domains.");return!0}()&&function(){switch(g[q]&&g[q].firstRun&&g[q]&&(g[q].firstRun=!1),M.type){case"close":A(M.iframe);break;case"message":d=o(6),I(q,"onMessage passed: {iframe: "+M.iframe.id+", message: "+d+"}"),v("onMessage",{iframe:M.iframe,message:JSON.parse(d)}),I(q,"--");break;case"mouseenter":m("onMouseEnter");break;case"mouseleave":m("onMouseLeave");break;case"autoResize":g[q].autoResize=JSON.parse(o(9));break;case"scrollTo":c(!1);break;case"scrollToOffset":c(!0);break;case"pageInfo":a(g[q]&&g[q].iframe,q),function(){function e(e,r){function i(){g[n]?a(g[n].iframe,n):t()}["scroll","resize"].forEach((function(t){I(n,e+t+" listener for sendPageInfo"),r(window,t,i)}))}function t(){e("Remove ",x)}var n=q;e("Add ",_),g[n]&&(g[n].stopPageInfo=t)}();break;case"pageInfoStop":g[q]&&g[q].stopPageInfo&&(g[q].stopPageInfo(),delete g[q].stopPageInfo);break;case"inPageLink":e=o(9),r=e.split("#")[1]||"",i=decodeURIComponent(r),(l=document.getElementById(i)||document.getElementsByName(i)[0])?(n=u(l),I(q,"Moving to in page link (#"+r+") at x: "+n.x+" y: "+n.y),p={x:n.x,y:n.y},s(),I(q,"--")):window.top!==window.self?window.parentIFrame?window.parentIFrame.moveToAnchor(r):I(q,"In page link #"+r+" not found and window.parentIFrame not found"):I(q,"In page link #"+r+" not found");break;case"reset":G(M);break;case"init":t(),v("onInit",M.iframe);break;default:0===Number(M.width)&&0===Number(M.height)?j("Unsupported message received ("+M.type+"), this is likely due to the iframe containing a later version of iframe-resizer than the parent page"):t()}var e,n,r,i,l,d}())):E(q,"Ignored: "+O)}function T(e,t,n){var r=null,i=null;if(g[e]){if("function"!=typeof(r=g[e][t]))throw new TypeError(t+" on iFrame["+e+"] is not a function");i=r(n)}return i}function M(e){var t=e.id;delete g[t]}function A(e){var t=e.id;if(!1!==T(t,"onClose",t)){I(t,"Removing iFrame: "+t);try{e.parentNode&&e.parentNode.removeChild(e)}catch(e){j(e)}T(t,"onClosed",t),I(t,"--"),M(e)}else I(t,"Close iframe cancelled by onClose event")}function L(e){null===p&&I(e,"Get page position: "+(p={x:void 0!==window.pageXOffset?window.pageXOffset:document.documentElement.scrollLeft,y:void 0!==window.pageYOffset?window.pageYOffset:document.documentElement.scrollTop}).x+","+p.y)}function N(e){null!==p&&(window.scrollTo(p.x,p.y),I(e,"Set page position: "+p.x+","+p.y),P())}function P(){p=null}function G(e){I(e.id,"Size reset requested by "+("init"===e.type?"host page":"iFrame")),L(e.id),F((function(){z(e),B("reset","reset",e.iframe,e.id)}),e,"reset")}function z(e){function t(t){s||"0"!==e[t]||(s=!0,I(r,"Hidden iFrame detected, creating visibility listener"),function(){function e(){Object.keys(g).forEach((function(e){!function(e){function t(t){return"0px"===(g[e]&&g[e].iframe.style[t])}g[e]&&null!==g[e].iframe.offsetParent&&(t("height")||t("width"))&&B("Visibility change","resize",g[e].iframe,e)}(e)}))}function t(t){I("window","Mutation observed: "+t[0].target+" "+t[0].type),D(e,16)}var n=w();n&&(r=document.querySelector("body"),new n(t).observe(r,{attributes:!0,attributeOldValue:!1,characterData:!0,characterDataOldValue:!1,childList:!0,subtree:!0}));var r}())}function n(n){!function(t){e.id?(e.iframe.style[t]=e[t]+"px",I(e.id,"IFrame ("+r+") "+t+" set to "+e[t]+"px")):I("undefined","messageData id not set")}(n),t(n)}var r=e.iframe.id;g[r]&&(g[r].sizeHeight&&n("height"),g[r].sizeWidth&&n("width"))}function F(e,t,n){n!==t.type&&m&&!window.jasmine?(I(t.id,"Requesting animation frame"),m(e)):e()}function B(e,t,n,r,i){var o,a=!1;r=r||n.id,g[r]&&(n&&"contentWindow"in n&&null!==n.contentWindow?(o=g[r]&&g[r].targetOrigin,I(r,"["+e+"] Sending msg to iframe["+r+"] ("+t+") targetOrigin: "+o),n.contentWindow.postMessage(d+t,o)):j(r,"["+e+"] IFrame("+r+") not found"),i&&g[r]&&g[r].warningTimeout&&(g[r].msgTimeout=setTimeout((function(){!g[r]||g[r].loaded||a||(a=!0,j(r,"IFrame has not responded within "+g[r].warningTimeout/1e3+" seconds. Check iFrameResizer.contentWindow.js has been loaded in iFrame. This message can be ignored if everything is working, or you can set the warningTimeout option to a higher value or zero to suppress this warning."))}),g[r].warningTimeout)))}function R(e){return e+":"+g[e].bodyMarginV1+":"+g[e].sizeWidth+":"+g[e].log+":"+g[e].interval+":"+g[e].enablePublicMethods+":"+g[e].autoResize+":"+g[e].bodyMargin+":"+g[e].heightCalculationMethod+":"+g[e].bodyBackground+":"+g[e].bodyPadding+":"+g[e].tolerance+":"+g[e].inPageLinks+":"+g[e].resizeFrom+":"+g[e].widthCalculationMethod+":"+g[e].mouseEvents}function q(e,t){function n(e){var t=e.split("Callback");if(2===t.length){var n="on"+t[0].charAt(0).toUpperCase()+t[0].slice(1);this[n]=this[e],delete this[e],j(o,"Deprecated: '"+e+"' has been renamed '"+n+"'. The old method will be removed in the next major version.")}}var r,i,o=function(n){var r;return""===n&&(e.id=(r=t&&t.id||y.id+u++,null!==document.getElementById(r)&&(r+=u++),n=r),c=(t||{}).log,I(n,"Added missing iframe ID: "+n+" ("+e.src+")")),n}(e.id);o in g&&"iFrameResizer"in e?j(o,"Ignored iFrame, already setup."):(!function(t){var r;t=t||{},g[o]={firstRun:!0,iframe:e,remoteHost:e.src&&e.src.split("/").slice(0,3).join("/")},function(e){if("object"!=typeof e)throw new TypeError("Options is not an object")}(t),Object.keys(t).forEach(n,t),function(e){for(var t in y)Object.prototype.hasOwnProperty.call(y,t)&&(g[o][t]=Object.prototype.hasOwnProperty.call(e,t)?e[t]:y[t])}(t),g[o]&&(g[o].targetOrigin=!0===g[o].checkOrigin?""===(r=g[o].remoteHost)||null!==r.match(/^(about:blank|javascript:|file:\/\/)/)?"*":r:"*")}(t),function(){switch(I(o,"IFrame scrolling "+(g[o]&&g[o].scrolling?"enabled":"disabled")+" for "+o),e.style.overflow=!1===(g[o]&&g[o].scrolling)?"hidden":"auto",g[o]&&g[o].scrolling){case"omit":break;case!0:e.scrolling="yes";break;case!1:e.scrolling="no";break;default:e.scrolling=g[o]?g[o].scrolling:"no"}}(),function(){function t(t){1/0!==g[o][t]&&0!==g[o][t]&&(e.style[t]=g[o][t]+"px",I(o,"Set "+t+"="+g[o][t]+"px"))}function n(e){if(g[o]["min"+e]>g[o]["max"+e])throw new Error("Value for min"+e+" can not be greater than max"+e)}n("Height"),n("Width"),t("maxHeight"),t("minHeight"),t("maxWidth"),t("minWidth")}(),"number"!=typeof(g[o]&&g[o].bodyMargin)&&"0"!==(g[o]&&g[o].bodyMargin)||(g[o].bodyMarginV1=g[o].bodyMargin,g[o].bodyMargin=g[o].bodyMargin+"px"),r=R(o),(i=w())&&function(t){e.parentNode&&new t((function(t){t.forEach((function(t){Array.prototype.slice.call(t.removedNodes).forEach((function(t){t===e&&A(e)}))}))})).observe(e.parentNode,{childList:!0})}(i),_(e,"load",(function(){var t,n;B("iFrame.onload",r,e,void 0,!0),t=g[o]&&g[o].firstRun,n=g[o]&&g[o].heightCalculationMethod in v,!t&&n&&G({iframe:e,height:0,width:0,type:"init"})})),B("init",r,e,void 0,!0),g[o]&&(g[o].iframe.iFrameResizer={close:A.bind(null,g[o].iframe),removeListeners:M.bind(null,g[o].iframe),resize:B.bind(null,"Window resize","resize",g[o].iframe),moveToAnchor:function(e){B("Move to anchor","moveToAnchor:"+e,g[o].iframe,o)},sendMessage:function(e){B("Send Message","message:"+(e=JSON.stringify(e)),g[o].iframe,o)}}))}function D(e,t){null===h&&(h=setTimeout((function(){h=null,e()}),t))}function Q(){"hidden"!==document.visibilityState&&(I("document","Trigger event: Visiblity change"),D((function(){U("Tab Visable","resize")}),16))}function U(e,t){Object.keys(g).forEach((function(n){(function(e){return g[e]&&"parent"===g[e].resizeFrom&&g[e].autoResize&&!g[e].firstRun})(n)&&B(e,t,g[n].iframe,n)}))}function V(){_(window,"message",O),_(window,"resize",(function(){var e;I("window","Trigger event: "+(e="resize")),D((function(){U("Window "+e,"resize")}),16)})),_(document,"visibilitychange",Q),_(document,"-webkit-visibilitychange",Q)}function H(){function e(e,n){n&&(!function(){if(!n.tagName)throw new TypeError("Object is not a valid DOM element");if("IFRAME"!==n.tagName.toUpperCase())throw new TypeError("Expected <IFRAME> tag, found <"+n.tagName+">")}(),q(n,e),t.push(n))}var t;return function(){var e,t=["moz","webkit","o","ms"];for(e=0;e<t.length&&!m;e+=1)m=window[t[e]+"RequestAnimationFrame"];m?m=m.bind(window):I("setup","RequestAnimationFrame not supported")}(),V(),function(n,r){switch(t=[],function(e){e&&e.enablePublicMethods&&j("enablePublicMethods option has been removed, public methods are now always available in the iFrame")}(n),typeof r){case"undefined":case"string":Array.prototype.forEach.call(document.querySelectorAll(r||"iframe"),e.bind(void 0,n));break;case"object":e(n,r);break;default:throw new TypeError("Unexpected data type ("+typeof r+")")}return t}}}()},567:function(e,t,n){!function(t){if("undefined"!=typeof window){var n=!0,r="",i=0,o="",a=null,u="",c=!1,s={resize:1,click:1},l=!0,d=1,f="bodyOffset",p=!0,m="",v={},g=32,h=null,y=!1,b=!1,w="[iFrameSizer]",_=w.length,x="",C={max:1,min:1,bodyScroll:1,documentElementScroll:1},k="child",I=window.parent,E="*",j=0,S=!1,O=null,T=16,M=1,A="scroll",L=window,N=function(){re("onMessage function not defined")},P=function(){},G=function(){},z={height:function(){return re("Custom height calculation function not defined"),document.documentElement.offsetHeight},width:function(){return re("Custom width calculation function not defined"),document.body.scrollWidth}},F={},B=!1;try{var R=Object.create({},{passive:{get:function(){B=!0}}});window.addEventListener("test",Z,R),window.removeEventListener("test",Z,R)}catch(e){}var q,D,Q,U,V,H,W,$=Date.now||function(){return(new Date).getTime()},K={bodyOffset:function(){return document.body.offsetHeight+me("marginTop")+me("marginBottom")},offset:function(){return K.bodyOffset()},bodyScroll:function(){return document.body.scrollHeight},custom:function(){return z.height()},documentElementOffset:function(){return document.documentElement.offsetHeight},documentElementScroll:function(){return document.documentElement.scrollHeight},max:function(){return Math.max.apply(null,ge(K))},min:function(){return Math.min.apply(null,ge(K))},grow:function(){return K.max()},lowestElement:function(){return Math.max(K.bodyOffset()||K.documentElementOffset(),ve("bottom",ye()))},taggedElement:function(){return he("bottom","data-iframe-height")}},Y={bodyScroll:function(){return document.body.scrollWidth},bodyOffset:function(){return document.body.offsetWidth},custom:function(){return z.width()},documentElementScroll:function(){return document.documentElement.scrollWidth},documentElementOffset:function(){return document.documentElement.offsetWidth},scroll:function(){return Math.max(Y.bodyScroll(),Y.documentElementScroll())},max:function(){return Math.max.apply(null,ge(Y))},min:function(){return Math.min.apply(null,ge(Y))},rightMostElement:function(){return ve("right",ye())},taggedElement:function(){return he("right","data-iframe-width")}},J=(q=be,V=null,H=0,W=function(){H=$(),V=null,U=q.apply(D,Q),V||(D=Q=null)},function(){var e=$();H||(H=e);var t=T-(e-H);return D=this,Q=arguments,t<=0||t>T?(V&&(clearTimeout(V),V=null),H=e,U=q.apply(D,Q),V||(D=Q=null)):V||(V=setTimeout(W,t)),U});X(window,"message",(function(t){var n={init:function(){m=t.data,I=t.source,ie(),l=!1,setTimeout((function(){p=!1}),128)},reset:function(){p?ne("Page reset ignored by init"):(ne("Page size reset by host page"),xe("resetPage"))},resize:function(){we("resizeParent","Parent window requested size check")},moveToAnchor:function(){v.findTarget(i())},inPageLink:function(){this.moveToAnchor()},pageInfo:function(){var e=i();ne("PageInfoFromParent called from parent: "+e),G(JSON.parse(e)),ne(" --")},message:function(){var e=i();ne("onMessage called from parent: "+e),N(JSON.parse(e)),ne(" --")}};function r(){return t.data.split("]")[1].split(":")[0]}function i(){return t.data.substr(t.data.indexOf(":")+1)}function o(){return t.data.split(":")[2]in{true:1,false:1}}function a(){var i=r();i in n?n[i]():!e.exports&&"iFrameResize"in window||"jQuery"in window&&"iFrameResize"in window.jQuery.prototype||o()||re("Unexpected message ("+t.data+")")}w===(""+t.data).substr(0,_)&&(!1===l?a():o()?n.init():ne('Ignored message of type "'+r()+'". Received before initialization.'))})),X(window,"readystatechange",Ie),Ie()}function Z(){}function X(e,t,n,r){e.addEventListener(t,n,!!B&&(r||{}))}function ee(e){return e.charAt(0).toUpperCase()+e.slice(1)}function te(e){return w+"["+x+"] "+e}function ne(e){y&&"object"==typeof window.console&&console.log(te(e))}function re(e){"object"==typeof window.console&&console.warn(te(e))}function ie(){var e;!function(){function e(e){return"true"===e}var t=m.substr(_).split(":");x=t[0],i=void 0!==t[1]?Number(t[1]):i,c=void 0!==t[2]?e(t[2]):c,y=void 0!==t[3]?e(t[3]):y,g=void 0!==t[4]?Number(t[4]):g,n=void 0!==t[6]?e(t[6]):n,o=t[7],f=void 0!==t[8]?t[8]:f,r=t[9],u=t[10],j=void 0!==t[11]?Number(t[11]):j,v.enable=void 0!==t[12]&&e(t[12]),k=void 0!==t[13]?t[13]:k,A=void 0!==t[14]?t[14]:A,b=void 0!==t[15]?Boolean(t[15]):b}(),ne("Initialising iFrame ("+window.location.href+")"),function(){function e(e,t){return"function"==typeof e&&(ne("Setup custom "+t+"CalcMethod"),z[t]=e,e="custom"),e}"iFrameResizer"in window&&Object===window.iFrameResizer.constructor&&(t=window.iFrameResizer,ne("Reading data from page: "+JSON.stringify(t)),Object.keys(t).forEach(oe,t),N="onMessage"in t?t.onMessage:N,P="onReady"in t?t.onReady:P,E="targetOrigin"in t?t.targetOrigin:E,f="heightCalculationMethod"in t?t.heightCalculationMethod:f,A="widthCalculationMethod"in t?t.widthCalculationMethod:A,f=e(f,"height"),A=e(A,"width"));var t;ne("TargetOrigin for parent set to: "+E)}(),function(){void 0===o&&(o=i+"px");ae("margin",function(e,t){-1!==t.indexOf("-")&&(re("Negative CSS value ignored for "+e),t="");return t}("margin",o))}(),ae("background",r),ae("padding",u),(e=document.createElement("div")).style.clear="both",e.style.display="block",e.style.height="0",document.body.appendChild(e),le(),de(),document.documentElement.style.height="",document.body.style.height="",ne('HTML & body height set to "auto"'),ne("Enable public methods"),L.parentIFrame={autoResize:function(e){return!0===e&&!1===n?(n=!0,fe()):!1===e&&!0===n&&(n=!1,ce("remove"),null!==a&&a.disconnect(),clearInterval(h)),ke(0,0,"autoResize",JSON.stringify(n)),n},close:function(){ke(0,0,"close")},getId:function(){return x},getPageInfo:function(e){"function"==typeof e?(G=e,ke(0,0,"pageInfo")):(G=function(){},ke(0,0,"pageInfoStop"))},moveToAnchor:function(e){v.findTarget(e)},reset:function(){Ce("parentIFrame.reset")},scrollTo:function(e,t){ke(t,e,"scrollTo")},scrollToOffset:function(e,t){ke(t,e,"scrollToOffset")},sendMessage:function(e,t){ke(0,0,"message",JSON.stringify(e),t)},setHeightCalculationMethod:function(e){f=e,le()},setWidthCalculationMethod:function(e){A=e,de()},setTargetOrigin:function(e){ne("Set targetOrigin: "+e),E=e},size:function(e,t){we("size","parentIFrame.size("+(e||"")+(t?","+t:"")+")",e,t)}},function(){if(!0!==b)return;function e(e){ke(0,0,e.type,e.screenY+":"+e.screenX)}function t(t,n){ne("Add event listener: "+n),X(window.document,t,e)}t("mouseenter","Mouse Enter"),t("mouseleave","Mouse Leave")}(),fe(),v=function(){function e(e){var t=e.getBoundingClientRect(),n={x:void 0!==window.pageXOffset?window.pageXOffset:document.documentElement.scrollLeft,y:void 0!==window.pageYOffset?window.pageYOffset:document.documentElement.scrollTop};return{x:parseInt(t.left,10)+parseInt(n.x,10),y:parseInt(t.top,10)+parseInt(n.y,10)}}function t(t){var n=t.split("#")[1]||t,r=decodeURIComponent(n),i=document.getElementById(r)||document.getElementsByName(r)[0];void 0!==i?function(t){var r=e(t);ne("Moving to in page link (#"+n+") at x: "+r.x+" y: "+r.y),ke(r.y,r.x,"scrollToOffset")}(i):(ne("In page link (#"+n+") not found in iFrame, so sending to parent"),ke(0,0,"inPageLink","#"+n))}function n(){var e=window.location.hash,n=window.location.href;""!==e&&"#"!==e&&t(n)}v.enable?Array.prototype.forEach&&document.querySelectorAll?(ne("Setting up location.hash handlers"),Array.prototype.forEach.call(document.querySelectorAll('a[href^="#"]'),(function(e){"#"!==e.getAttribute("href")&&X(e,"click",(function(e){e.preventDefault(),t(this.getAttribute("href"))}))})),X(window,"hashchange",n),setTimeout(n,128)):re("In page linking not fully supported in this browser! (See README.md for IE8 workaround)"):ne("In page linking not enabled");return{findTarget:t}}(),we("init","Init message from host page"),P()}function oe(e){var t=e.split("Callback");if(2===t.length){var n="on"+t[0].charAt(0).toUpperCase()+t[0].slice(1);this[n]=this[e],delete this[e],re("Deprecated: '"+e+"' has been renamed '"+n+"'. The old method will be removed in the next major version.")}}function ae(e,t){void 0!==t&&""!==t&&"null"!==t&&(document.body.style[e]=t,ne("Body "+e+' set to "'+t+'"'))}function ue(e){var t={add:function(t){function n(){we(e.eventName,e.eventType)}F[t]=n,X(window,t,n,{passive:!0})},remove:function(e){var t,n,r,i=F[e];delete F[e],t=window,n=e,r=i,t.removeEventListener(n,r,!1)}};e.eventNames&&Array.prototype.map?(e.eventName=e.eventNames[0],e.eventNames.map(t[e.method])):t[e.method](e.eventName),ne(ee(e.method)+" event listener: "+e.eventType)}function ce(e){ue({method:e,eventType:"Animation Start",eventNames:["animationstart","webkitAnimationStart"]}),ue({method:e,eventType:"Animation Iteration",eventNames:["animationiteration","webkitAnimationIteration"]}),ue({method:e,eventType:"Animation End",eventNames:["animationend","webkitAnimationEnd"]}),ue({method:e,eventType:"Input",eventName:"input"}),ue({method:e,eventType:"Mouse Up",eventName:"mouseup"}),ue({method:e,eventType:"Mouse Down",eventName:"mousedown"}),ue({method:e,eventType:"Orientation Change",eventName:"orientationchange"}),ue({method:e,eventType:"Print",eventName:["afterprint","beforeprint"]}),ue({method:e,eventType:"Ready State Change",eventName:"readystatechange"}),ue({method:e,eventType:"Touch Start",eventName:"touchstart"}),ue({method:e,eventType:"Touch End",eventName:"touchend"}),ue({method:e,eventType:"Touch Cancel",eventName:"touchcancel"}),ue({method:e,eventType:"Transition Start",eventNames:["transitionstart","webkitTransitionStart","MSTransitionStart","oTransitionStart","otransitionstart"]}),ue({method:e,eventType:"Transition Iteration",eventNames:["transitioniteration","webkitTransitionIteration","MSTransitionIteration","oTransitionIteration","otransitioniteration"]}),ue({method:e,eventType:"Transition End",eventNames:["transitionend","webkitTransitionEnd","MSTransitionEnd","oTransitionEnd","otransitionend"]}),"child"===k&&ue({method:e,eventType:"IFrame Resized",eventName:"resize"})}function se(e,t,n,r){return t!==e&&(e in n||(re(e+" is not a valid option for "+r+"CalculationMethod."),e=t),ne(r+' calculation method set to "'+e+'"')),e}function le(){f=se(f,"bodyOffset",K,"height")}function de(){A=se(A,"scroll",Y,"width")}function fe(){var e;!0===n?(ce("add"),e=0>g,window.MutationObserver||window.WebKitMutationObserver?e?pe():a=function(){function e(e){function t(e){!1===e.complete&&(ne("Attach listeners to "+e.src),e.addEventListener("load",r,!1),e.addEventListener("error",i,!1),a.push(e))}"attributes"===e.type&&"src"===e.attributeName?t(e.target):"childList"===e.type&&Array.prototype.forEach.call(e.target.querySelectorAll("img"),t)}function t(e){ne("Remove listeners from "+e.src),e.removeEventListener("load",r,!1),e.removeEventListener("error",i,!1),function(e){a.splice(a.indexOf(e),1)}(e)}function n(e,n,r){t(e.target),we(n,r+": "+e.target.src)}function r(e){n(e,"imageLoad","Image loaded")}function i(e){n(e,"imageLoadFailed","Image load failed")}function o(t){we("mutationObserver","mutationObserver: "+t[0].target+" "+t[0].type),t.forEach(e)}var a=[],u=window.MutationObserver||window.WebKitMutationObserver,c=function(){var e=document.querySelector("body");return c=new u(o),ne("Create body MutationObserver"),c.observe(e,{attributes:!0,attributeOldValue:!1,characterData:!0,characterDataOldValue:!1,childList:!0,subtree:!0}),c}();return{disconnect:function(){"disconnect"in c&&(ne("Disconnect body MutationObserver"),c.disconnect(),a.forEach(t))}}}():(ne("MutationObserver not supported in this browser!"),pe())):ne("Auto Resize disabled")}function pe(){0!==g&&(ne("setInterval: "+g+"ms"),h=setInterval((function(){we("interval","setInterval: "+g)}),Math.abs(g)))}function me(e,t){var n=0;return t=t||document.body,n=null!==(n=document.defaultView.getComputedStyle(t,null))?n[e]:0,parseInt(n,10)}function ve(e,t){for(var n=t.length,r=0,i=0,o=ee(e),a=$(),u=0;u<n;u++)(r=t[u].getBoundingClientRect()[e]+me("margin"+o,t[u]))>i&&(i=r);return a=$()-a,ne("Parsed "+n+" HTML elements"),ne("Element position calculated in "+a+"ms"),function(e){e>T/2&&ne("Event throttle increased to "+(T=2*e)+"ms")}(a),i}function ge(e){return[e.bodyOffset(),e.bodyScroll(),e.documentElementOffset(),e.documentElementScroll()]}function he(e,t){var n=document.querySelectorAll("["+t+"]");return 0===n.length&&(re("No tagged elements ("+t+") found on page"),document.querySelectorAll("body *")),ve(e,n)}function ye(){return document.querySelectorAll("body *")}function be(e,t,n,r){var i,o;!function(){function e(e,t){return!(Math.abs(e-t)<=j)}return i=void 0!==n?n:K[f](),o=void 0!==r?r:Y[A](),e(d,i)||c&&e(M,o)}()&&"init"!==e?!(e in{init:1,interval:1,size:1})&&(f in C||c&&A in C)?Ce(t):e in{interval:1}||ne("No change in size detected"):(_e(),ke(d=i,M=o,e))}function we(e,t,n,r){S&&e in s?ne("Trigger event cancelled: "+e):(e in{reset:1,resetPage:1,init:1}||ne("Trigger event: "+t),"init"===e?be(e,t,n,r):J(e,t,n,r))}function _e(){S||(S=!0,ne("Trigger event lock on")),clearTimeout(O),O=setTimeout((function(){S=!1,ne("Trigger event lock off"),ne("--")}),128)}function xe(e){d=K[f](),M=Y[A](),ke(d,M,e)}function Ce(e){var t=f;f="bodyOffset",ne("Reset trigger event: "+e),_e(),xe("reset"),f=t}function ke(e,t,n,r,i){var o;void 0===i?i=E:ne("Message targetOrigin: "+i),ne("Sending message to host page ("+(o=x+":"+e+":"+t+":"+n+(void 0!==r?":"+r:""))+")"),I.postMessage(w+o,i)}function Ie(){"loading"!==document.readyState&&window.parent.postMessage("[iFrameResizerChild]Ready","*")}}()},568:function(e,t){jQuery.fn.giveHintCss=function(e,t){return this.each((function(){var n=jQuery(this);t=jQuery.extend({label:""},t);var r=n.next("span.give-hint-tooltip-js");if(!r.length){var i=t.label.length?t.label:n.data("hint-aria-label");if(!i.length)return;n.after('<span class="give-hint-tooltip-js hint--top hint--medium" aria-label="'+i+'"></span>'),(r=n.next()).css({top:-n.outerHeight(),left:-n.outerWidth()/2})}"show"===e?r.addClass("hint--always"):"hide"===e&&r.removeClass("hint--always")}))},jQuery(document).ready((function(e){var t=e("[data-tooltip]");function n(t){if(!t.is('[class*="hint"]')){var n=t.attr("class"),r=[],i=t.data("tooltip").split(" ").length;n&&(n=n.split(" "),(r=e.grep(n,(function(e){return-1!==e.indexOf("give-icon")}))).length&&(r=r.join(" "),t.removeClass(r),t.append('<i class="'+r+'"></i>'))),t.addClass("hint--top"),15<i?t.addClass("hint--large"):7<i&&t.addClass("hint--medium"),t.attr("aria-label",t.data("tooltip"))}}t.length&&t.each((function(t,r){n(r=r instanceof jQuery?r:e(r))})),e("body").on("mouseenter mouseleave","[data-tooltip]",(function(){n(e(this))}))}))},569:function(e,t,n){e.exports=n(570)},570:function(e,t,n){var r=n(571),i=n(572),o=/^[0-9a-f]{32}$/;function a(e,t){if(e)return"boolean"==typeof e.protocol?e.protocol:"http"!==e.protocol&&("https"===e.protocol||void 0)}function u(e){return(e="string"==typeof e?e.trim().toLowerCase():"unspecified").match(o)?e:r(e)}function c(e){var t=i.stringify(function(e){var t={},n={protocol:1,format:1};for(var r in e)n[r]||(t[r]=e[r]);return t}(e));return t&&"?"+t||""}e.exports={url:function(e,t,n){var r="//www.gravatar.com/avatar/";t&&t.cdn?(r=t.cdn+"/avatar/",delete t.cdn):(t&&t.protocol&&(n=a(t)),void 0!==n&&(r=n?"https://s.gravatar.com/avatar/":"http://www.gravatar.com/avatar/"));var i=c(t);return r+u(e)+i},profile_url:function(e,t,n){var r=null!=t&&null!=t.format?String(t.format):"json";if(t&&t.cdn)i=t.cdn+"/",delete t.cdn;else{t&&t.protocol&&(n=a(t));var i=n?"https://secure.gravatar.com/":"http://www.gravatar.com/"}var o=c(t);return i+u(e)+"."+r+o}}},571:function(e,t,n){var r;!function(i){"use strict";function o(e,t){var n=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(n>>16)<<16|65535&n}function a(e,t,n,r,i,a){return o((u=o(o(t,e),o(r,a)))<<(c=i)|u>>>32-c,n);var u,c}function u(e,t,n,r,i,o,u){return a(t&n|~t&r,e,t,i,o,u)}function c(e,t,n,r,i,o,u){return a(t&r|n&~r,e,t,i,o,u)}function s(e,t,n,r,i,o,u){return a(t^n^r,e,t,i,o,u)}function l(e,t,n,r,i,o,u){return a(n^(t|~r),e,t,i,o,u)}function d(e,t){var n,r,i,a,d;e[t>>5]|=128<<t%32,e[14+(t+64>>>9<<4)]=t;var f=1732584193,p=-271733879,m=-1732584194,v=271733878;for(n=0;n<e.length;n+=16)r=f,i=p,a=m,d=v,f=u(f,p,m,v,e[n],7,-680876936),v=u(v,f,p,m,e[n+1],12,-389564586),m=u(m,v,f,p,e[n+2],17,606105819),p=u(p,m,v,f,e[n+3],22,-1044525330),f=u(f,p,m,v,e[n+4],7,-176418897),v=u(v,f,p,m,e[n+5],12,1200080426),m=u(m,v,f,p,e[n+6],17,-1473231341),p=u(p,m,v,f,e[n+7],22,-45705983),f=u(f,p,m,v,e[n+8],7,1770035416),v=u(v,f,p,m,e[n+9],12,-1958414417),m=u(m,v,f,p,e[n+10],17,-42063),p=u(p,m,v,f,e[n+11],22,-1990404162),f=u(f,p,m,v,e[n+12],7,1804603682),v=u(v,f,p,m,e[n+13],12,-40341101),m=u(m,v,f,p,e[n+14],17,-1502002290),f=c(f,p=u(p,m,v,f,e[n+15],22,1236535329),m,v,e[n+1],5,-165796510),v=c(v,f,p,m,e[n+6],9,-1069501632),m=c(m,v,f,p,e[n+11],14,643717713),p=c(p,m,v,f,e[n],20,-373897302),f=c(f,p,m,v,e[n+5],5,-701558691),v=c(v,f,p,m,e[n+10],9,38016083),m=c(m,v,f,p,e[n+15],14,-660478335),p=c(p,m,v,f,e[n+4],20,-405537848),f=c(f,p,m,v,e[n+9],5,568446438),v=c(v,f,p,m,e[n+14],9,-1019803690),m=c(m,v,f,p,e[n+3],14,-187363961),p=c(p,m,v,f,e[n+8],20,1163531501),f=c(f,p,m,v,e[n+13],5,-1444681467),v=c(v,f,p,m,e[n+2],9,-51403784),m=c(m,v,f,p,e[n+7],14,1735328473),f=s(f,p=c(p,m,v,f,e[n+12],20,-1926607734),m,v,e[n+5],4,-378558),v=s(v,f,p,m,e[n+8],11,-2022574463),m=s(m,v,f,p,e[n+11],16,1839030562),p=s(p,m,v,f,e[n+14],23,-35309556),f=s(f,p,m,v,e[n+1],4,-1530992060),v=s(v,f,p,m,e[n+4],11,1272893353),m=s(m,v,f,p,e[n+7],16,-155497632),p=s(p,m,v,f,e[n+10],23,-1094730640),f=s(f,p,m,v,e[n+13],4,681279174),v=s(v,f,p,m,e[n],11,-358537222),m=s(m,v,f,p,e[n+3],16,-722521979),p=s(p,m,v,f,e[n+6],23,76029189),f=s(f,p,m,v,e[n+9],4,-640364487),v=s(v,f,p,m,e[n+12],11,-421815835),m=s(m,v,f,p,e[n+15],16,530742520),f=l(f,p=s(p,m,v,f,e[n+2],23,-995338651),m,v,e[n],6,-198630844),v=l(v,f,p,m,e[n+7],10,1126891415),m=l(m,v,f,p,e[n+14],15,-1416354905),p=l(p,m,v,f,e[n+5],21,-57434055),f=l(f,p,m,v,e[n+12],6,1700485571),v=l(v,f,p,m,e[n+3],10,-1894986606),m=l(m,v,f,p,e[n+10],15,-1051523),p=l(p,m,v,f,e[n+1],21,-2054922799),f=l(f,p,m,v,e[n+8],6,1873313359),v=l(v,f,p,m,e[n+15],10,-30611744),m=l(m,v,f,p,e[n+6],15,-1560198380),p=l(p,m,v,f,e[n+13],21,1309151649),f=l(f,p,m,v,e[n+4],6,-145523070),v=l(v,f,p,m,e[n+11],10,-1120210379),m=l(m,v,f,p,e[n+2],15,718787259),p=l(p,m,v,f,e[n+9],21,-343485551),f=o(f,r),p=o(p,i),m=o(m,a),v=o(v,d);return[f,p,m,v]}function f(e){var t,n="",r=32*e.length;for(t=0;t<r;t+=8)n+=String.fromCharCode(e[t>>5]>>>t%32&255);return n}function p(e){var t,n=[];for(n[(e.length>>2)-1]=void 0,t=0;t<n.length;t+=1)n[t]=0;var r=8*e.length;for(t=0;t<r;t+=8)n[t>>5]|=(255&e.charCodeAt(t/8))<<t%32;return n}function m(e){var t,n,r="";for(n=0;n<e.length;n+=1)t=e.charCodeAt(n),r+="0123456789abcdef".charAt(t>>>4&15)+"0123456789abcdef".charAt(15&t);return r}function v(e){return unescape(encodeURIComponent(e))}function g(e){return function(e){return f(d(p(e),8*e.length))}(v(e))}function h(e,t){return function(e,t){var n,r,i=p(e),o=[],a=[];for(o[15]=a[15]=void 0,i.length>16&&(i=d(i,8*e.length)),n=0;n<16;n+=1)o[n]=909522486^i[n],a[n]=1549556828^i[n];return r=d(o.concat(p(t)),512+8*t.length),f(d(a.concat(r),640))}(v(e),v(t))}function y(e,t,n){return t?n?h(t,e):m(h(t,e)):n?g(e):m(g(e))}void 0===(r=function(){return y}.call(t,n,t,e))||(e.exports=r)}()},572:function(e,t,n){"use strict";t.decode=t.parse=n(573),t.encode=t.stringify=n(574)},573:function(e,t,n){"use strict";function r(e,t){return Object.prototype.hasOwnProperty.call(e,t)}e.exports=function(e,t,n,o){t=t||"&",n=n||"=";var a={};if("string"!=typeof e||0===e.length)return a;var u=/\+/g;e=e.split(t);var c=1e3;o&&"number"==typeof o.maxKeys&&(c=o.maxKeys);var s=e.length;c>0&&s>c&&(s=c);for(var l=0;l<s;++l){var d,f,p,m,v=e[l].replace(u,"%20"),g=v.indexOf(n);g>=0?(d=v.substr(0,g),f=v.substr(g+1)):(d=v,f=""),p=decodeURIComponent(d),m=decodeURIComponent(f),r(a,p)?i(a[p])?a[p].push(m):a[p]=[a[p],m]:a[p]=m}return a};var i=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)}},574:function(e,t,n){"use strict";var r=function(e){switch(typeof e){case"string":return e;case"boolean":return e?"true":"false";case"number":return isFinite(e)?e:"";default:return""}};e.exports=function(e,t,n,u){return t=t||"&",n=n||"=",null===e&&(e=void 0),"object"==typeof e?o(a(e),(function(a){var u=encodeURIComponent(r(a))+n;return i(e[a])?o(e[a],(function(e){return u+encodeURIComponent(r(e))})).join(t):u+encodeURIComponent(r(e[a]))})).join(t):u?encodeURIComponent(r(u))+n+encodeURIComponent(r(e)):""};var i=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)};function o(e,t){if(e.map)return e.map(t);for(var n=[],r=0;r<e.length;r++)n.push(t(e[r],r));return n}var a=Object.keys||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.push(n);return t}},629:function(e,t,n){var r;
!function(n,i,o){"use strict";var a=function(e,t){this.el_=this.isString_(e)?i.querySelectorAll(e):[e],this.config_=[],this.options_=t,this.selectors_=[],this.init_(),this.destroy=function(){this.loop_((function(e){e.removeEventListener("reset",this.events.reset),this.removeClasses_(e)}),(function(e){this.reset_(e)}))},this.rebuild=function(){this.loop_(null,(function(e){this.floatLabel_(e,!0)}))}};a.prototype={defaults_:{customEvent:null,customLabel:null,customPlaceholder:null,exclude:".no-label",inputRegex:/email|number|password|search|tel|text|url/,prefix:"fl-",prioritize:"label",requiredClass:"required",style:0,transform:"input,select,textarea"},init_:function(){var e=this;e.initEvents_(),e.loop_((function(t,n){var r=e.config_[n].style;t.addEventListener("reset",e.events.reset),t.classList.add(e.prefixed_("form")),r&&t.classList.add(e.prefixed_("style-"+r))}),(function(t){e.floatLabel_(t)}))},initEvents_:function(){this.events={blur:this.onBlur_.bind(this),change:this.onInput_.bind(this),focus:this.onFocus_.bind(this),input:this.onInput_.bind(this),reset:this.onReset_.bind(this)}},addRemove_:function(e){return e?"add":"remove"},build_:function(e){var t=this.getLabel_(e);t&&(e.classList.add(this.prefixed_(e.tagName.toLowerCase())),this.setLabel_(t,e),this.setPlaceholder_(t,e),this.wrapLabel_(t,e),this.handleEvents_(e,"add"),"function"==typeof this.config_[this.current_].customEvent&&this.config_[this.current_].customEvent.call(this,e))},createEl_:function(e,t){var n="string"==typeof e?i.createElement(e):e;for(var r in t=t||{})t.hasOwnProperty(r)&&n.setAttribute(r,t[r]);return n},extend_:function(){var e=[].slice.call(arguments),t=e[0],n=e.slice(1);return Object.keys(n).forEach((function(e){for(var r in n[e])n[e].hasOwnProperty(r)&&(t[r]=n[e][r])})),t},floatLabel_:function(e,t){if(this.isValidField_(e)){if(this.hasParent_(e)){if(!0!==t)return;this.reset_(e)}this.build_(e)}},getLabel_:function(e){var t='label[for="'+e.getAttribute("id")+'"]',n=this.el_[this.current_].querySelectorAll(t);return n.length>1&&(n=e.parentNode.querySelectorAll(t)),1===n.length&&n[0]},getLabelText_:function(e,t){var n=e.textContent.replace("*","").trim(),r=t.getAttribute("placeholder");return(!n||n&&r&&"placeholder"===this.config_[this.current_].prioritize)&&(n=r),n},handleEvents_:function(e,t){var n=this.events;["blur","input","focus"].forEach((function(r){"input"!==r||"file"!==e.type&&"SELECT"!==e.nodeName||(r="change"),e[t+"EventListener"](r,n[r])}))},hasParent_:function(e){return e.parentNode.classList.contains(this.prefixed_("wrap"))},isString_:function(e){return"[object String]"===Object.prototype.toString.call(e)},isValidField_:function(e){var t="INPUT"===e.tagName&&!this.config_[this.current_].inputRegex.test(e.getAttribute("type")),n="SELECT"===e.tagName&&null!==e.getAttribute("multiple");return e.getAttribute("id")&&!t&&!n},loop_:function(e,t){for(var n=0;n<this.el_.length;++n){if(void 0===this.selectors_[n]){var r=this.extend_({},this.defaults_,this.options_,this.el_[n].getAttribute("data-options")),i=":not("+r.exclude.split(/[\s,]+/).join("):not(")+")";this.selectors_[n]=r.transform.replace(/,/g,i+",")+i,this.config_[n]=r}var o=this.el_[n].querySelectorAll(this.selectors_[n]);this.current_=n,"function"==typeof e&&e.call(this,this.el_[n],n);for(var a=0;a<o.length;++a)"function"==typeof t&&t.call(this,o[a],n)}},onBlur_:function(e){e.target.parentNode.classList.remove(this.prefixed_("has-focus"))},onInput_:function(e){e.target.parentNode.classList[this.addRemove_(e.target.value.length)](this.prefixed_("is-active"))},onFocus_:function(e){e.target.parentNode.classList.add(this.prefixed_("has-focus"))},onReset_:function(){setTimeout(this.resetFields_.bind(this))},prefixed_:function(e){return this.config_[this.current_].prefix+e},removeClasses_:function(e){var t=this.config_[this.current_].prefix,n=e.className.split(" ").filter((function(e){return 0!==e.lastIndexOf(t,0)}));e.className=n.join(" ").trim()},reset_:function(e){var t=e.parentNode;if(this.hasParent_(e)){for(var n=i.createDocumentFragment();t.firstElementChild;){var r=t.firstElementChild;this.removeClasses_(r),n.appendChild(r)}t.parentNode.replaceChild(n,t),this.resetPlaceholder_(e),this.handleEvents_(e,"remove")}},resetFields_:function(){for(var e=this.el_[this.current_].querySelectorAll(this.selectors_[this.current_]),t=0;t<e.length;++t)e[t].parentNode.classList[this.addRemove_("SELECT"===e[t].tagName&&""!==e[t].value)](this.prefixed_("is-active"))},resetPlaceholder_:function(e){var t=e.getAttribute("data-placeholder");null!==t&&(e.removeAttribute("data-placeholder"),e.setAttribute("placeholder",t))},setLabel_:function(e,t){e.classList.add(this.prefixed_("label")),e.textContent=this.getLabelText_(e,t),"function"==typeof this.config_[this.current_].customLabel&&(e.textContent=this.config_[this.current_].customLabel.call(this,e,t))},setPlaceholder_:function(e,t){var n=t.getAttribute("placeholder");"label"!==this.config_[this.current_].prioritize&&n||(n&&t.setAttribute("data-placeholder",n),n=this.getLabelText_(e,t)),"function"==typeof this.config_[this.current_].customPlaceholder&&(n=this.config_[this.current_].customPlaceholder.call(this,n,t,e)),"SELECT"===t.tagName?this.setSelectPlaceholder_(t,n):t.setAttribute("placeholder",n)},setSelectPlaceholder_:function(e,t){var n=e.firstElementChild;n.hasAttribute("value")&&n.value?(e.insertBefore(new Option(t,""),n),!1===e.options[e.selectedIndex].defaultSelected&&(e.selectedIndex=0)):n.setAttribute("value",""),""===n.textContent&&(n.textContent=t)},wrapLabel_:function(e,t){var n=this.createEl_("div",{class:this.prefixed_("wrap")+" "+this.prefixed_("wrap-"+t.tagName.toLowerCase())});void 0!==t.value&&t.value.length&&n.classList.add(this.prefixed_("is-active")),(null!==t.getAttribute("required")||t.classList.contains(this.config_[this.current_].requiredClass))&&n.classList.add(this.prefixed_("is-required")),t.parentNode.insertBefore(n,t),n.appendChild(e),n.appendChild(t)}},void 0===(r=function(){return a}.apply(t,[]))||(e.exports=r)}(window,document)},64:function(e,t,n){var r=n(65);e.exports=function(e,t){if(e){if("string"==typeof e)return r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(e,t):void 0}},e.exports.default=e.exports,e.exports.__esModule=!0},65:function(e,t){e.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r},e.exports.default=e.exports,e.exports.__esModule=!0},677:function(e,t,n){n(678),e.exports=n(1004)},678:function(e,t,n){},679:function(e,t){(function(){var e,t,n,r,i,o,a,u,c,s,l,d,f,p,m,v,g,h,y,b,w,_,x,C,k=[].slice,I=[].indexOf||function(e){for(var t=0,n=this.length;t<n;t++)if(t in this&&this[t]===e)return t;return-1};(e=window.jQuery||window.Zepto||window.$).payment={},e.payment.fn={},e.fn.payment=function(){var t,n;return n=arguments[0],t=2<=arguments.length?k.call(arguments,1):[],e.payment.fn[n].apply(this,t)},i=/(\d{1,4})/g,e.payment.cards=r=[{type:"maestro",patterns:[5018,502,503,506,56,58,639,6220,67],format:i,length:[12,13,14,15,16,17,18,19],cvcLength:[3],luhn:!0},{type:"forbrugsforeningen",patterns:[600],format:i,length:[16],cvcLength:[3],luhn:!0},{type:"dankort",patterns:[5019],format:i,length:[16],cvcLength:[3],luhn:!0},{type:"visa",patterns:[4],format:i,length:[13,16],cvcLength:[3],luhn:!0},{type:"mastercard",patterns:[51,52,53,54,55,22,23,24,25,26,27],format:i,length:[16],cvcLength:[3],luhn:!0},{type:"amex",patterns:[34,37],format:/(\d{1,4})(\d{1,6})?(\d{1,5})?/,length:[15],cvcLength:[3,4],luhn:!0},{type:"dinersclub",patterns:[30,36,38,39],format:/(\d{1,4})(\d{1,6})?(\d{1,4})?/,length:[14],cvcLength:[3],luhn:!0},{type:"discover",patterns:[60,64,65,622],format:i,length:[16],cvcLength:[3],luhn:!0},{type:"unionpay",patterns:[62,88],format:i,length:[16,17,18,19],cvcLength:[3],luhn:!1},{type:"jcb",patterns:[35],format:i,length:[16],cvcLength:[3],luhn:!0}],t=function(e){var t,n,i,o,a,u,c;for(e=(e+"").replace(/\D/g,""),i=0,a=r.length;i<a;i++)for(o=0,u=(c=(t=r[i]).patterns).length;o<u;o++)if(n=c[o]+"",e.substr(0,n.length)===n)return t},n=function(e){var t,n,i;for(n=0,i=r.length;n<i;n++)if((t=r[n]).type===e)return t},f=function(e){var t,n,r,i,o,a;for(r=!0,i=0,o=0,a=(n=(e+"").split("").reverse()).length;o<a;o++)t=n[o],t=parseInt(t,10),(r=!r)&&(t*=2),t>9&&(t-=9),i+=t;return i%10==0},d=function(e){var t;return null!=e.prop("selectionStart")&&e.prop("selectionStart")!==e.prop("selectionEnd")||!(null==("undefined"!=typeof document&&null!==document&&null!=(t=document.selection)?t.createRange:void 0)||!document.selection.createRange().text)},x=function(e,t){var n,r,i,o,a;try{r=t.prop("selectionStart")}catch(e){e,r=null}if(o=t.val(),t.val(e),null!==r&&t.is(":focus"))return r===o.length&&(r=e.length),o!==e&&(a=o.slice(r-1,+r+1||9e9),n=e.slice(r-1,+r+1||9e9),i=e[r],/\d/.test(i)&&a===i+" "&&n===" "+i&&(r+=1)),t.prop("selectionStart",r),t.prop("selectionEnd",r)},h=function(e){var t,n,r,i,o,a;for(null==e&&(e=""),"０１２３４５６７８９","0123456789",i="",o=0,a=(t=e.split("")).length;o<a;o++)n=t[o],(r="０１２３４５６７８９".indexOf(n))>-1&&(n="0123456789"[r]),i+=n;return i},g=function(t){var n;return n=e(t.currentTarget),setTimeout((function(){var e;return e=n.val(),e=(e=h(e)).replace(/\D/g,""),x(e,n)}))},m=function(t){var n;return n=e(t.currentTarget),setTimeout((function(){var t;return t=n.val(),t=h(t),t=e.payment.formatCardNumber(t),x(t,n)}))},u=function(n){var r,i,o,a,u,c,s;if(o=String.fromCharCode(n.which),/^\d+$/.test(o)&&(r=e(n.currentTarget),s=r.val(),i=t(s+o),a=(s.replace(/\D/g,"")+o).length,c=16,i&&(c=i.length[i.length.length-1]),!(a>=c||null!=r.prop("selectionStart")&&r.prop("selectionStart")!==s.length)))return(u=i&&"amex"===i.type?/^(\d{4}|\d{4}\s\d{6})$/:/(?:^|\s)(\d{4})$/).test(s)?(n.preventDefault(),setTimeout((function(){return r.val(s+" "+o)}))):u.test(s+o)?(n.preventDefault(),setTimeout((function(){return r.val(s+o+" ")}))):void 0},o=function(t){var n,r;if(n=e(t.currentTarget),r=n.val(),8===t.which&&(null==n.prop("selectionStart")||n.prop("selectionStart")===r.length))return/\d\s$/.test(r)?(t.preventDefault(),setTimeout((function(){return n.val(r.replace(/\d\s$/,""))}))):/\s\d?$/.test(r)?(t.preventDefault(),setTimeout((function(){return n.val(r.replace(/\d$/,""))}))):void 0},v=function(t){var n;return n=e(t.currentTarget),setTimeout((function(){var t;return t=n.val(),t=h(t),t=e.payment.formatExpiry(t),x(t,n)}))},c=function(t){var n,r,i;if(r=String.fromCharCode(t.which),/^\d+$/.test(r))return n=e(t.currentTarget),i=n.val()+r,/^\d$/.test(i)&&"0"!==i&&"1"!==i?(t.preventDefault(),setTimeout((function(){return n.val("0"+i+" / ")}))):/^\d\d$/.test(i)?(t.preventDefault(),setTimeout((function(){var e,t;return e=parseInt(i[0],10),(t=parseInt(i[1],10))>2&&0!==e?n.val("0"+e+" / "+t):n.val(i+" / ")}))):void 0},s=function(t){var n,r,i;if(r=String.fromCharCode(t.which),/^\d+$/.test(r))return i=(n=e(t.currentTarget)).val(),/^\d\d$/.test(i)?n.val(i+" / "):void 0},l=function(t){var n,r,i;if("/"===(i=String.fromCharCode(t.which))||" "===i)return r=(n=e(t.currentTarget)).val(),/^\d$/.test(r)&&"0"!==r?n.val("0"+r+" / "):void 0},a=function(t){var n,r;if(n=e(t.currentTarget),r=n.val(),8===t.which&&(null==n.prop("selectionStart")||n.prop("selectionStart")===r.length))return/\d\s\/\s$/.test(r)?(t.preventDefault(),setTimeout((function(){return n.val(r.replace(/\d\s\/\s$/,""))}))):void 0},p=function(t){var n;return n=e(t.currentTarget),setTimeout((function(){var e;return e=n.val(),e=(e=h(e)).replace(/\D/g,"").slice(0,4),x(e,n)}))},_=function(e){var t;return!(!e.metaKey&&!e.ctrlKey)||32!==e.which&&(0===e.which||(e.which<33||(t=String.fromCharCode(e.which),!!/[\d\s]/.test(t))))},b=function(n){var r,i,o,a;if(r=e(n.currentTarget),o=String.fromCharCode(n.which),/^\d+$/.test(o)&&!d(r))return a=(r.val()+o).replace(/\D/g,""),(i=t(a))?a.length<=i.length[i.length.length-1]:a.length<=16},w=function(t){var n,r;if(n=e(t.currentTarget),r=String.fromCharCode(t.which),/^\d+$/.test(r)&&!d(n))return!((n.val()+r).replace(/\D/g,"").length>6)&&void 0},y=function(t){var n,r;if(n=e(t.currentTarget),r=String.fromCharCode(t.which),/^\d+$/.test(r)&&!d(n))return(n.val()+r).length<=4},C=function(t){var n,i,o,a,u;if(u=(n=e(t.currentTarget)).val(),a=e.payment.cardType(u)||"unknown",!n.hasClass(a))return i=function(){var e,t,n;for(n=[],e=0,t=r.length;e<t;e++)o=r[e],n.push(o.type);return n}(),n.removeClass("unknown"),n.removeClass(i.join(" ")),n.addClass(a),n.toggleClass("identified","unknown"!==a),n.trigger("payment.cardType",a)},e.payment.fn.formatCardCVC=function(){return this.on("keypress",_),this.on("keypress",y),this.on("paste",p),this.on("change",p),this.on("input",p),this},e.payment.fn.formatCardExpiry=function(){return this.on("keypress",_),this.on("keypress",w),this.on("keypress",c),this.on("keypress",l),this.on("keypress",s),this.on("keydown",a),this.on("change",v),this.on("input",v),this},e.payment.fn.formatCardNumber=function(){return this.on("keypress",_),this.on("keypress",b),this.on("keypress",u),this.on("keydown",o),this.on("keyup",C),this.on("paste",m),this.on("change",m),this.on("input",m),this.on("input",C),this},e.payment.fn.restrictNumeric=function(){return this.on("keypress",_),this.on("paste",g),this.on("change",g),this.on("input",g),this},e.payment.fn.cardExpiryVal=function(){return e.payment.cardExpiryVal(e(this).val())},e.payment.cardExpiryVal=function(e){var t,n,r;return t=(r=e.split(/[\s\/]+/,2))[0],2===(null!=(n=r[1])?n.length:void 0)&&/^\d+$/.test(n)&&(n=(new Date).getFullYear().toString().slice(0,2)+n),{month:t=parseInt(t,10),year:n=parseInt(n,10)}},e.payment.validateCardNumber=function(e){var n,r;return e=(e+"").replace(/\s+|-/g,""),!!/^\d+$/.test(e)&&(!!(n=t(e))&&(r=e.length,I.call(n.length,r)>=0&&(!1===n.luhn||f(e))))},e.payment.validateCardExpiry=function(t,n){var r,i,o;return"object"==typeof t&&"month"in t&&(t=(o=t).month,n=o.year),!(!t||!n)&&(t=e.trim(t),n=e.trim(n),!!/^\d+$/.test(t)&&(!!/^\d+$/.test(n)&&(1<=t&&t<=12&&(2===n.length&&(n=n<70?"20"+n:"19"+n),4===n.length&&(i=new Date(n,t),r=new Date,i.setMonth(i.getMonth()-1),i.setMonth(i.getMonth()+1,1),i>r)))))},e.payment.validateCardCVC=function(t,r){var i,o;return t=e.trim(t),!!/^\d+$/.test(t)&&(null!=(i=n(r))?(o=t.length,I.call(i.cvcLength,o)>=0):t.length>=3&&t.length<=4)},e.payment.cardType=function(e){var n;return e&&(null!=(n=t(e))?n.type:void 0)||null},e.payment.formatCardNumber=function(n){var r,i,o,a;return n=n.replace(/\D/g,""),(r=t(n))?(o=r.length[r.length.length-1],n=n.slice(0,o),r.format.global?null!=(a=n.match(r.format))?a.join(" "):void 0:null!=(i=r.format.exec(n))?(i.shift(),(i=e.grep(i,(function(e){return e}))).join(" ")):void 0):n},e.payment.formatExpiry=function(e){var t,n,r,i;return(n=e.match(/^\D*(\d{1,2})(\D+)?(\d{1,4})?/))?(t=n[1]||"",r=n[2]||"",(i=n[3]||"").length>0?r=" / ":" /"===r?(t=t.substring(0,1),r=""):2===t.length||r.length>0?r=" / ":1===t.length&&"0"!==t&&"1"!==t&&(t="0"+t,r=" / "),t+r+i):""}}).call(this)},680:function(e,t,n){var r=n(384);n(681);var i=n(998),o={transitionDelay:250,blockWith:function(e){var t=r.Deferred(),n=this,a=i(arguments).rest(),u=i(a).first();return u&&u.preventDefault&&u.preventDefault(),r.blockUI({message:null}),setTimeout((function(){var o=e.apply(n,a);i(o).isObject()&&i(o.always).isFunction()?o.always((function(){r.unblockUI()})).then(t.resolve,t.reject):r.unblockUI()}),o.transitionDelay),t.promise()},makeBlocked:function(e){return i.wrap(e,o.blockWith)}};e.exports=o},681:function(e,t,n){var r,i,o;
!function(){"use strict";function a(e){e.fn._fadeIn=e.fn.fadeIn;var t=e.noop||function(){},n=/MSIE/.test(navigator.userAgent),r=/MSIE 6.0/.test(navigator.userAgent)&&!/MSIE 8.0/.test(navigator.userAgent),i=(document.documentMode,e.isFunction(document.createElement("div").style.setExpression));e.blockUI=function(e){u(window,e)},e.unblockUI=function(e){c(window,e)},e.growlUI=function(t,n,r,i){var o=e('<div class="growlUI"></div>');t&&o.append("<h1>"+t+"</h1>"),n&&o.append("<h2>"+n+"</h2>"),void 0===r&&(r=3e3);var a=function(t){t=t||{},e.blockUI({message:o,fadeIn:void 0!==t.fadeIn?t.fadeIn:700,fadeOut:void 0!==t.fadeOut?t.fadeOut:1e3,timeout:void 0!==t.timeout?t.timeout:r,centerY:!1,showOverlay:!1,onUnblock:i,css:e.blockUI.defaults.growlCSS})};a();o.css("opacity");o.mouseover((function(){a({fadeIn:0,timeout:3e4});var t=e(".blockMsg");t.stop(),t.fadeTo(300,1)})).mouseout((function(){e(".blockMsg").fadeOut(1e3)}))},e.fn.block=function(t){if(this[0]===window)return e.blockUI(t),this;var n=e.extend({},e.blockUI.defaults,t||{});return this.each((function(){var t=e(this);n.ignoreIfBlocked&&t.data("blockUI.isBlocked")||t.unblock({fadeOut:0})})),this.each((function(){"static"==e.css(this,"position")&&(this.style.position="relative",e(this).data("blockUI.static",!0)),this.style.zoom=1,u(this,t)}))},e.fn.unblock=function(t){return this[0]===window?(e.unblockUI(t),this):this.each((function(){c(this,t)}))},e.blockUI.version=2.7,e.blockUI.defaults={message:"<h1>Please wait...</h1>",title:null,draggable:!0,theme:!1,css:{padding:0,margin:0,width:"30%",top:"40%",left:"35%",textAlign:"center",color:"#000",border:"3px solid #aaa",backgroundColor:"#fff",cursor:"wait"},themedCSS:{width:"30%",top:"40%",left:"35%"},overlayCSS:{backgroundColor:"#000",opacity:.6,cursor:"wait"},cursorReset:"default",growlCSS:{width:"350px",top:"10px",left:"",right:"10px",border:"none",padding:"5px",opacity:.6,cursor:"default",color:"#fff",backgroundColor:"#000","-webkit-border-radius":"10px","-moz-border-radius":"10px","border-radius":"10px"},iframeSrc:/^https/i.test(window.location.href||"")?"javascript:false":"about:blank",forceIframe:!1,baseZ:1e3,centerX:!0,centerY:!0,allowBodyStretch:!0,bindEvents:!0,constrainTabKey:!0,fadeIn:200,fadeOut:400,timeout:0,showOverlay:!0,focusInput:!0,focusableElements:":input:enabled:visible",onBlock:null,onUnblock:null,onOverlayClick:null,quirksmodeOffsetHack:4,blockMsgClass:"blockMsg",ignoreIfBlocked:!1};var o=null,a=[];function u(u,s){var d,m,v=u==window,g=s&&void 0!==s.message?s.message:void 0;if(!(s=e.extend({},e.blockUI.defaults,s||{})).ignoreIfBlocked||!e(u).data("blockUI.isBlocked")){if(s.overlayCSS=e.extend({},e.blockUI.defaults.overlayCSS,s.overlayCSS||{}),d=e.extend({},e.blockUI.defaults.css,s.css||{}),s.onOverlayClick&&(s.overlayCSS.cursor="pointer"),m=e.extend({},e.blockUI.defaults.themedCSS,s.themedCSS||{}),g=void 0===g?s.message:g,v&&o&&c(window,{fadeOut:0}),g&&"string"!=typeof g&&(g.parentNode||g.jquery)){var h=g.jquery?g[0]:g,y={};e(u).data("blockUI.history",y),y.el=h,y.parent=h.parentNode,y.display=h.style.display,y.position=h.style.position,y.parent&&y.parent.removeChild(h)}e(u).data("blockUI.onUnblock",s.onUnblock);var b,w,_,x,C=s.baseZ;b=n||s.forceIframe?e('<iframe class="blockUI" style="z-index:'+C+++';display:none;border:none;margin:0;padding:0;position:absolute;width:100%;height:100%;top:0;left:0" src="'+s.iframeSrc+'"></iframe>'):e('<div class="blockUI" style="display:none"></div>'),w=s.theme?e('<div class="blockUI blockOverlay ui-widget-overlay" style="z-index:'+C+++';display:none"></div>'):e('<div class="blockUI blockOverlay" style="z-index:'+C+++';display:none;border:none;margin:0;padding:0;width:100%;height:100%;top:0;left:0"></div>'),s.theme&&v?(x='<div class="blockUI '+s.blockMsgClass+' blockPage ui-dialog ui-widget ui-corner-all" style="z-index:'+(C+10)+';display:none;position:fixed">',s.title&&(x+='<div class="ui-widget-header ui-dialog-titlebar ui-corner-all blockTitle">'+(s.title||"&nbsp;")+"</div>"),x+='<div class="ui-widget-content ui-dialog-content"></div>',x+="</div>"):s.theme?(x='<div class="blockUI '+s.blockMsgClass+' blockElement ui-dialog ui-widget ui-corner-all" style="z-index:'+(C+10)+';display:none;position:absolute">',s.title&&(x+='<div class="ui-widget-header ui-dialog-titlebar ui-corner-all blockTitle">'+(s.title||"&nbsp;")+"</div>"),x+='<div class="ui-widget-content ui-dialog-content"></div>',x+="</div>"):x=v?'<div class="blockUI '+s.blockMsgClass+' blockPage" style="z-index:'+(C+10)+';display:none;position:fixed"></div>':'<div class="blockUI '+s.blockMsgClass+' blockElement" style="z-index:'+(C+10)+';display:none;position:absolute"></div>',_=e(x),g&&(s.theme?(_.css(m),_.addClass("ui-widget-content")):_.css(d)),s.theme||w.css(s.overlayCSS),w.css("position",v?"fixed":"absolute"),(n||s.forceIframe)&&b.css("opacity",0);var k=[b,w,_],I=e(v?"body":u);e.each(k,(function(){this.appendTo(I)})),s.theme&&s.draggable&&e.fn.draggable&&_.draggable({handle:".ui-dialog-titlebar",cancel:"li"});var E=i&&(!e.support.boxModel||e("object,embed",v?null:u).length>0);if(r||E){if(v&&s.allowBodyStretch&&e.support.boxModel&&e("html,body").css("height","100%"),(r||!e.support.boxModel)&&!v)var j=p(u,"borderTopWidth"),S=p(u,"borderLeftWidth"),O=j?"(0 - "+j+")":0,T=S?"(0 - "+S+")":0;e.each(k,(function(e,t){var n=t[0].style;if(n.position="absolute",e<2)v?n.setExpression("height","Math.max(document.body.scrollHeight, document.body.offsetHeight) - (jQuery.support.boxModel?0:"+s.quirksmodeOffsetHack+') + "px"'):n.setExpression("height",'this.parentNode.offsetHeight + "px"'),v?n.setExpression("width",'jQuery.support.boxModel&&document.documentElement.clientWidth||document.body.clientWidth + "px"'):n.setExpression("width",'this.parentNode.offsetWidth + "px"'),T&&n.setExpression("left",T),O&&n.setExpression("top",O);else if(s.centerY)v&&n.setExpression("top",'(document.documentElement.clientHeight||document.body.clientHeight) / 2 - (this.offsetHeight / 2) + (blah=document.documentElement.scrollTop ? document.documentElement.scrollTop:document.body.scrollTop) + "px"'),n.marginTop=0;else if(!s.centerY&&v){var r="((document.documentElement.scrollTop ? document.documentElement.scrollTop:document.body.scrollTop) + "+(s.css&&s.css.top?parseInt(s.css.top,10):0)+') + "px"';n.setExpression("top",r)}}))}if(g&&(s.theme?_.find(".ui-widget-content").append(g):_.append(g),(g.jquery||g.nodeType)&&e(g).show()),(n||s.forceIframe)&&s.showOverlay&&b.show(),s.fadeIn){var M=s.onBlock?s.onBlock:t,A=s.showOverlay&&!g?M:t,L=g?M:t;s.showOverlay&&w._fadeIn(s.fadeIn,A),g&&_._fadeIn(s.fadeIn,L)}else s.showOverlay&&w.show(),g&&_.show(),s.onBlock&&s.onBlock.bind(_)();if(l(1,u,s),v?(o=_[0],a=e(s.focusableElements,o),s.focusInput&&setTimeout(f,20)):function(e,t,n){var r=e.parentNode,i=e.style,o=(r.offsetWidth-e.offsetWidth)/2-p(r,"borderLeftWidth"),a=(r.offsetHeight-e.offsetHeight)/2-p(r,"borderTopWidth");t&&(i.left=o>0?o+"px":"0");n&&(i.top=a>0?a+"px":"0")}(_[0],s.centerX,s.centerY),s.timeout){var N=setTimeout((function(){v?e.unblockUI(s):e(u).unblock(s)}),s.timeout);e(u).data("blockUI.timeout",N)}}}function c(t,n){var r,i,u=t==window,c=e(t),d=c.data("blockUI.history"),f=c.data("blockUI.timeout");f&&(clearTimeout(f),c.removeData("blockUI.timeout")),n=e.extend({},e.blockUI.defaults,n||{}),l(0,t,n),null===n.onUnblock&&(n.onUnblock=c.data("blockUI.onUnblock"),c.removeData("blockUI.onUnblock")),i=u?e("body").children().filter(".blockUI").add("body > .blockUI"):c.find(">.blockUI"),n.cursorReset&&(i.length>1&&(i[1].style.cursor=n.cursorReset),i.length>2&&(i[2].style.cursor=n.cursorReset)),u&&(o=a=null),n.fadeOut?(r=i.length,i.stop().fadeOut(n.fadeOut,(function(){0==--r&&s(i,d,n,t)}))):s(i,d,n,t)}function s(t,n,r,i){var o=e(i);if(!o.data("blockUI.isBlocked")){t.each((function(e,t){this.parentNode&&this.parentNode.removeChild(this)})),n&&n.el&&(n.el.style.display=n.display,n.el.style.position=n.position,n.el.style.cursor="default",n.parent&&n.parent.appendChild(n.el),o.removeData("blockUI.history")),o.data("blockUI.static")&&o.css("position","static"),"function"==typeof r.onUnblock&&r.onUnblock(i,r);var a=e(document.body),u=a.width(),c=a[0].style.width;a.width(u-1).width(u),a[0].style.width=c}}function l(t,n,r){var i=n==window,a=e(n);if((t||(!i||o)&&(i||a.data("blockUI.isBlocked")))&&(a.data("blockUI.isBlocked",t),i&&r.bindEvents&&(!t||r.showOverlay))){var u="mousedown mouseup keydown keypress keyup touchstart touchend touchmove";t?e(document).bind(u,r,d):e(document).unbind(u,d)}}function d(t){if("keydown"===t.type&&t.keyCode&&9==t.keyCode&&o&&t.data.constrainTabKey){var n=a,r=!t.shiftKey&&t.target===n[n.length-1],i=t.shiftKey&&t.target===n[0];if(r||i)return setTimeout((function(){f(i)}),10),!1}var u=t.data,c=e(t.target);return c.hasClass("blockOverlay")&&u.onOverlayClick&&u.onOverlayClick(t),c.parents("div."+u.blockMsgClass).length>0||0===c.parents().children().filter("div.blockUI").length}function f(e){if(a){var t=a[!0===e?a.length-1:0];t&&t.focus()}}function p(t,n){return parseInt(e.css(t,n),10)||0}}n(682).jQuery?(i=[n(384)],void 0===(o="function"==typeof(r=a)?r.apply(t,i):r)||(e.exports=o)):a(jQuery)}()},682:function(e,t){(function(t){e.exports=t}).call(this,{})},98:function(e,t,n){"use strict";var r,i={fn:{renderNotice:function(e,t){var n;switch(t=void 0!==t?t:{},e){case"bad_minimum":n=jQuery('<div class="give_error give-invalid-minimum give-hidden">'+this.getNotice(e,t)+"</div>");break;case"bad_maximum":n=jQuery('<div class="give_error give-invalid-maximum give-hidden">'+this.getNotice(e,t)+"</div>")}if(!t.length)return"";n.insertBefore(t.find(".give-total-wrap")).show()},getNotice:function(e,t){if(!e.length)return null;var n,r,i;if(n=r=i="",t.length)switch(e){case"bad_minimum":r=Give.fn.getGlobalVar(e),i=Give.form.fn.getMinimumAmount(t);break;case"bad_maximum":r=Give.fn.getGlobalVar(e),i=Give.form.fn.getMaximumAmount(t)}return t.length&&""!==r&&(n=r+" "+Give.fn.formatCurrency(i,{symbol:Give.form.fn.getInfo("currency_symbol",t),position:Give.form.fn.getInfo("currency_position",t)},t)),n},getAdminNoticeHTML:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"info",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{dismissible:!0},r="undefined"!=typeof commonL10n?commonL10n.dismiss:wp.i18n.__("Dismiss this notice.");return'<div class="give-notice notice notice-'.concat(t).concat(n.dismissible?" is-dismissible":"",'"><p>').concat(e).concat(n.dismissible?' <button type="button" class="notice-dismiss"><span class="screen-reader-text">'.concat(r,"</span></button>"):"","</p</div>")}}},o=n(25),a=n.n(o),u=n(13),c=n.n(u),s={fn:{showOverlay:function(e){var t=document.createElement("div"),n=document.createElement("div"),r=document.createElement("div");r.innerHTML=e||Give.fn.getGlobalVar("textForOverlayScreen"),n.setAttribute("class","loader spinning"),t.setAttribute("id","give-processing-state-template"),t.append(n),t.append(r),t.classList.add("active"),document.body.appendChild(t)},hideOverlay:function(){document.getElementById("give-processing-state-template").remove()}}},l={init:function(){this.fn.field.formatCreditCard(jQuery("form.give-form")),this.fn.__initialize_cache(),window.addEventListener("load",(function(){Give.form.fn.__sendBackToForm()}))},fn:{isFormExist:function(){return!!document.getElementsByName("give-form-hash").length},hasDonationForm:function(e){var t=e.querySelector('form input[name="give_action"]');return t&&"purchase"===t.value},disable:function(e,t){if(!e.length)return!1;e.find(".give-submit").prop("disabled",t)},showProcessingState:function(e){s.fn.showOverlay(e)},hideProcessingState:function(){s.fn.hideOverlay()},formatAmount:function(e,t,n){return t.length?Give.fn.formatCurrency(e,n,t):e},getInfo:function(e,t){var n="";if(t=void 0!==t?jQuery(t):{},!e.length||!t.length)return n;switch(e){case"gateways":n=[],jQuery.each(t.find('input[name="payment-mode"]'),(function(e,t){t=t instanceof jQuery?t:jQuery(t),n.push(t.val().trim())}));break;case"form-type":t.hasClass("give-form-type-set")?n="set":t.hasClass("give-form-type-multi")&&(n="multi");break;case"form-id":n=t.find('input[name="give-form-id"]').val();break;default:void 0!==(n=t.get(0).hasAttribute("data-"+e)?t.attr("data-"+e):t.attr(e))&&n.trim()}return n},setInfo:function(e,t,n,r){if(!n.length)return!1;switch(e=void 0===e?"data":e){case"nonce":n.find('input[name="give-form-hash"]').val(t)}if(void 0!==r&&!r.length)return!1;switch(e){case"attr":n.attr(r,t);break;default:n.data(r,t)}return!0},getGateway:function(e){var t="";return e.length?void 0!==(t=e.find('input[name="payment-mode"]:checked').val().trim())?t:"":t},getVariablePrices:function(e){var t,n=[];return e.length&&e.hasClass("give-form-type-multi")&&(t=e.find(".give-donation-levels-wrap [data-price-id] "))?(jQuery.each(t,(function(t,r){r=r instanceof jQuery?r:jQuery(r);var i=Give.form.fn.getInfo("decimal_separator",e);n.push({price_id:r.data("price-id"),amount:Give.fn.unFormatCurrency(r.val(),i)})})),n):n},getPriceID:function(e,t){var n=this.getVariablePrices(e),r=Give.fn.unFormatCurrency(e.find('input[name="give-amount"]').val(),this.getInfo("decimal_separator",e)),i=Give.fn.getCache("amount_"+r,e)?Give.fn.getCache("amount_"+r,e):-1;return t=void 0===t||t,n.length&&-1===i&&(t?(jQuery.each(n,(function(e,t){if(t.amount===r)return i=t.price_id,!1})),-1===i&&this.getMinimumAmount(e)<=r&&this.getMaximumAmount(e)>=r&&this.getMinimumAmount(e)<=r&&(i="custom")):i=jQuery('input[name="give-price-id"]',e).val()),i},getMinimumAmount:function(e){return e.find('input[name="give-form-minimum"]').val()},getMaximumAmount:function(e){return e.find('input[name="give-form-maximum"]').val()},getAmount:function(e){if(!e.length)return null;var t=e.find('input[name="give-amount"]').val();return void 0!==t&&t||(t=0),Give.fn.unFormatCurrency(t,this.getInfo("decimal_separator",e))},getNonce:function(e){if(!e.length)return"";var t=e.find('input[name="give-form-hash"]').val();return void 0!==t&&t||(t=""),t},getNonceInfo:function(e){var t={};return e.length?(t.el=e.find('input[name="give-form-hash"]'),t.el.length?(t.value=e.find('input[name="give-form-hash"]').val(),t.value=void 0!==t.value&&t.value?t.value:"",t.createdInDonorSession="1"===t.el.attr("data-donor-session"),t):t):t},resetNonce:function(e){if(!e.length||!jQuery('input[name="give-form-hash"]',e).length)return!1;Give.form.fn.disable(e,!0),jQuery.post(Give.fn.getGlobalVar("ajaxurl"),{action:"give_donation_form_nonce",give_form_id:Give.form.fn.getInfo("form-id",e)},(function(t){Give.form.fn.setInfo("nonce",t.data,e,""),Give.form.fn.disable(e,!1)}))},resetAllNonce:function(e){return!!e.length&&(Give.form.fn.disable(e,!0),new Promise((function(t,n){jQuery.post(Give.fn.getGlobalVar("ajaxurl"),{action:"give_donation_form_reset_all_nonce",give_form_id:Give.form.fn.getInfo("form-id",e)},(function(r){if(!r.success)return n(r);var i=e.find('input[name="give-form-user-register-hash"]');return Give.form.fn.setInfo("nonce",r.data.give_form_hash,e,""),i.length&&i.val(r.data.give_form_user_register_hash),Give.form.fn.disable(e,!1),jQuery(document).trigger("give_reset_all_nonce",[r.data]),t(r)})).done((function(){Give.form.fn.disable(e,!1)}))})))},autoSelectDonationLevel:function(e,t){if(!e.length||"multi"!==this.getInfo("form-type",e))return!1;switch(t=void 0===t?this.getPriceID(e,!1):t,!0){case!!e.find(".give-radio-input").length:e.find(".give-radio-input").prop("checked",!1),e.find('.give-radio-input[data-price-id="'+t+'"]').prop("checked",!0).addClass("give-default-level");break;case!!e.find("button.give-donation-level-btn").length:e.find("button.give-donation-level-btn").blur(),e.find('button.give-donation-level-btn[data-price-id="'+t+'"]').addClass("give-default-level");break;case!!e.find("select.give-select-level").length:e.find("select.give-select-level option").prop("selected",!1),e.find('select.give-select-level option[data-price-id="'+t+'"]').prop("selected",!0).addClass("give-default-level")}},autoSetMultiLevel:function(e){var t=e.parents("form"),n=e.val(),r=e.data("price-id");if(void 0===r&&(r=e.find("option:selected").data("price-id")),"custom"===r)return t.find(".give-amount-top").val("").focus(),!1;t.find(".give-amount-top").val(n),t.find("span.give-amount-top").text(n);var i=Give.form.fn.getInfo("decimal_separator",t);jQuery(".give-donation-amount .give-text-input",t).attr("data-amount",Give.fn.unFormatCurrency(t.find(".give-final-total-amount").attr("data-total"),i)),t.find(".give-donation-amount .give-text-input").trigger("blur",[t,n,r])},__sendBackToForm:function(){var e=Give.fn.getParameterByName("form-id"),t=Give.fn.getParameterByName("payment-mode");if(!e||!t)return!1;var n=jQuery("body").find("#give-form-"+e+"-wrap"),r=n.find("form.give-form"),i=n.hasClass("give-display-modal"),o=n.hasClass("give-display-button"),a=n.hasClass("give-display-reveal");r.find("#give-gateway-radio-list label").removeClass("give-gateway-option-selected"),r.find("input[name=payment-mode][value="+t+"]").prop("checked",!0).parent().addClass("give-gateway-option-selected");var u=Give.fn.getParameterByName("level-id"),c=r.find('*[data-price-id="'+u+'"]');c.length>0&&this.autoSetMultiLevel(c),jQuery(".give-form-wrap").hasClass("give-form-grid-wrap")&&1===jQuery("#give-modal-form-"+e).length?jQuery.magnificPopup.open({items:{type:"inline",src:"#give-modal-form-"+e},fixedContentPos:!0,fixedBgPos:!0,closeBtnInside:!0,midClick:!0,removalDelay:300,mainClass:"modal-fade-slide"}):i||o?give_open_form_modal(n,r):a&&(r.find(".give-btn-reveal").hide(),r.find("#give-payment-mode-select, #give_purchase_form_wrap").slideDown())},isValidDonationAmount:function(e){if(e.find('input[name="give-form-minimum"]').length<=0)return!0;var t=this.getMinimumAmount(e),n=this.getMaximumAmount(e),r=this.getAmount(e),i=this.getPriceID(e,!0);return 0!==r&&(-1<r&&r>=t&&r<=n||-1!==i)},__initialize_cache:function(){jQuery.each(jQuery(".give-form"),(function(e,t){t=t instanceof jQuery?t:jQuery(t),Give.cache["form_"+Give.form.fn.getInfo("form-id",t)]=[]}))},isDonationFormHtml5Valid:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return"function"!=typeof e.checkValidity||!1!==e.checkValidity()||!1!=(-1!=navigator.userAgent.indexOf("Safari")&&-1==navigator.userAgent.indexOf("Chrome"))||(t&&e.reportValidity(),!1)},isDonorFilledValidData:(r=a()(c.a.mark((function e(t){var n,r,i,o=arguments;return c.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(n=(n=o.length>1&&void 0!==o[1]?o[1]:{})instanceof FormData?n:new FormData(t)).append("action","give_process_donation"),n.append("give_ajax",!0),e.next=6,fetch("".concat(Give.fn.getGlobalVar("ajaxurl")),{method:"POST",body:n});case 6:return r=e.sent,e.next=9,r.text();case 9:return i=e.sent,e.abrupt("return",i.trim());case 11:case"end":return e.stop()}}),e)}))),function(e){return r.apply(this,arguments)}),addErrors:function(e,t){e.find('#give_purchase_submit input[type="submit"].give-submit').before(t)},removeErrors:function(e){e.find(".give_errors").remove()},getErrorHTML:function(e){var t=document.createElement("div");return t.classList.add("give_errors"),e.forEach((function(e){var n=document.createElement("p");n.classList.add("give_error"),n.innerHTML=e.message,t.append(n)})),t},addErrorsAndResetDonationButton:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;t&&this.addErrors(e,t),this.resetDonationButton(e)},resetDonationButton:function(e){var t=e.find('#give_purchase_submit input[type="submit"].give-submit'),n=t.closest("div");t.val(t.data("before-validation-label")),n.find(".give-loading-animation").fadeOut(),e.find(".give_errors").remove(),Give.form.fn.disable(e,!1)},field:{formatCreditCard:function(e){e.each((function(e,t){var n=(t=jQuery(t)).find(".card-number"),r=t.find(".card-cvc"),i=t.find(".card-expiry");n.length&&(n.payment("formatCardNumber"),r.payment("formatCardCVC"),i.payment("formatCardExpiry"))}))}}}},d={fn:{hasSession:function(e){return!!e.length&&!!Give.fn.__getCookie(Give.fn.getGlobalVar("session_cookie_name"))},isLoggedIn:function(){return jQuery("body").hasClass("logged-in")}}},f={fn:{twitter:function(e,t){var n=parent.window?parent.window:window,r=n.innerHeight/2-126,i=n.innerWidth/2-280;n.open("https://twitter.com/intent/tweet?url=".concat(e,"&text=").concat(t),"newwindow","width=560,height=253,top=".concat(r,",left=").concat(i))},facebook:function(e){var t=parent.window?parent.window:window,n=t.innerHeight/2-365,r=t.innerWidth/2-280;window.open("https://www.facebook.com/sharer/sharer.php?u=".concat(e),"newwindow","width=560,height=730,top=".concat(n,",left=").concat(r))}}},p={init:function(){var e=["form"],t=0;for(jQuery(document).trigger("give:preInit");t<e.length;)p[e[t]].init&&p[e[t]].init(),t++;jQuery(document).trigger("give:postInit")},fn:{formatCurrency:function(e,t,n){var r={symbol:"",decimal:this.getGlobalVar("decimal_separator"),thousand:this.getGlobalVar("thousands_separator"),precision:parseInt(this.getGlobalVar("number_decimals")),currency:this.getGlobalVar("currency")};if(e=e.toString().trim(),(n=void 0===n?{}:n).length&&(r={symbol:"",decimal:p.form.fn.getInfo("decimal_separator",n),thousand:p.form.fn.getInfo("thousands_separator",n),precision:p.form.fn.getInfo("number_decimals",n),currency:p.form.fn.getInfo("currency_code",n)}),(t=jQuery.extend(r,t)).precision=parseInt(t.precision),"INR"===t.currency){var i,o=accounting.formatNumber(e,{precision:r.precision,decimal:"."}),a=t.precision?".0":"",u="",c="",s="";(o=(o=accounting.unformat(o,".").toString()).toString()).indexOf(".")>0&&(a=o.substring(o.indexOf("."),o.length)),u=(o=Math.floor(o).toString()).substring(o.length-3),""!==(c=o.substring(0,o.length-3))&&(u=r.thousand+u),i=(s=c.replace(/\B(?=(\d{2})+(?!\d))/g,r.thousand)+u+a).lastIndexOf("."),e=s=s.slice(0,i)+(s.slice(i)+"000000000000").substr(0,t.precision+1),void 0!==t.symbol&&t.symbol.length&&("after"===t.position?e+=t.symbol:e=t.symbol+e)}else"after"===t.position&&(t.format="%v%s"),e=accounting.formatMoney(e,t);return e},unFormatCurrency:function(e,t){if("string"==typeof e){var n=","===t.trim()?/[^0-9\,-]+/g:/[^0-9\.-]+/g;0===(e=e.replace(n,"")).indexOf(t)?e=e.substr(1):e.length-1===e.indexOf(t)&&(e=e.slice(0,-1))}return Math.abs(parseFloat(accounting.unformat(e,t)))},getParameterByName:function(e,t){t||(t=window.location.href),t=decodeURIComponent(t),e=e.replace(/[\[\]]/g,"\\$&");var n=new RegExp("[?&]"+e+"(=([^&#]*)|&|#|$)").exec(t);return n?n[2]?decodeURIComponent(n[2].replace(/\+/g," ")):"":null},getGlobalVar:function(e){var t=this.getGlobal();return void 0===t[e]?"":t[e]},getGlobal:function(){return"undefined"==typeof give_global_vars?give_vars:give_global_vars},setCache:function(e,t,n){n.length?p.cache["form_"+p.form.fn.getInfo("form-id",n)][e]=t:p.cache[e]=t},getCache:function(e,t){var n,r=p.cache["form_"+p.form.fn.getInfo("form-id",t)];return n=void 0===(n=t.length?void 0!==r?r[e]:"":p.cache[e])?"":n},__getCookie:function(e){var t=("; "+document.cookie).split("; "+e+"="),n="";return 2===t.length&&(n=t.pop().split(";").shift()),n},loader:function(e){var t,n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=(r=Object.assign({show:!0,loadingAnimation:!0,loadingText:null},r)).loadingAnimation?'<span class="is-active spinner"></span>':"",o=null!==r.loadingText?r.loadingText:p.fn.getGlobalVar("loader_translation").updating;return!1===r.show?(jQuery(".give-spinner-wrap",e).remove(),!1):(t=i.length?"give-has-spinner":"",t=(t+=o.length?" give-has-text":"").length?" "+t.trim():"",n='<div class="give-spinner-wrap'.concat(t,'"><div class="give-spinner-inner">').concat((o+i).trim(),"</div></div>"),null===r.show?n:(e.prepend(n),!0))},removeURLParameter:function(e,t){var n=e.split("?");if(n.length>=2){for(var r=encodeURIComponent(t)+"=",i=n[1].split(/[&;]/g),o=i.length;o-- >0;)-1!==i[o].lastIndexOf(r,0)&&i.splice(o,1);return n[0]+(i.length>0?"?"+i.join("&"):"")}return e},numberHasDecimal:function(e){return Math.floor(e)!==Number(e)}},cache:{}};p.notice=i,p.form=l,p.donor=d,p.util=s,p.share=f;t.a=p},99:function(e,t){e.exports=function(e){if(Array.isArray(e))return e},e.exports.default=e.exports,e.exports.__esModule=!0},998:function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return xn})),n.d(t,"VERSION",(function(){return i.e})),n.d(t,"restArguments",(function(){return o})),n.d(t,"isObject",(function(){return a})),n.d(t,"isNull",(function(){return u})),n.d(t,"isUndefined",(function(){return c})),n.d(t,"isBoolean",(function(){return s})),n.d(t,"isElement",(function(){return l})),n.d(t,"isString",(function(){return f})),n.d(t,"isNumber",(function(){return p})),n.d(t,"isDate",(function(){return m})),n.d(t,"isRegExp",(function(){return v})),n.d(t,"isError",(function(){return g})),n.d(t,"isSymbol",(function(){return h})),n.d(t,"isArrayBuffer",(function(){return y})),n.d(t,"isDataView",(function(){return E})),n.d(t,"isArray",(function(){return j})),n.d(t,"isFunction",(function(){return _})),n.d(t,"isArguments",(function(){return T})),n.d(t,"isFinite",(function(){return M})),n.d(t,"isNaN",(function(){return A})),n.d(t,"isTypedArray",(function(){return B})),n.d(t,"isEmpty",(function(){return Q})),n.d(t,"isMatch",(function(){return U})),n.d(t,"isEqual",(function(){return $})),n.d(t,"isMap",(function(){return re})),n.d(t,"isWeakMap",(function(){return ie})),n.d(t,"isSet",(function(){return oe})),n.d(t,"isWeakSet",(function(){return ae})),n.d(t,"keys",(function(){return D})),n.d(t,"allKeys",(function(){return K})),n.d(t,"values",(function(){return ue})),n.d(t,"pairs",(function(){return ce})),n.d(t,"invert",(function(){return se})),n.d(t,"functions",(function(){return le})),n.d(t,"methods",(function(){return le})),n.d(t,"extend",(function(){return fe})),n.d(t,"extendOwn",(function(){return pe})),n.d(t,"assign",(function(){return pe})),n.d(t,"defaults",(function(){return me})),n.d(t,"create",(function(){return ge})),n.d(t,"clone",(function(){return he})),n.d(t,"tap",(function(){return ye})),n.d(t,"get",(function(){return xe})),n.d(t,"has",(function(){return Ce})),n.d(t,"mapObject",(function(){return Me})),n.d(t,"identity",(function(){return ke})),n.d(t,"constant",(function(){return L})),n.d(t,"noop",(function(){return Ae})),n.d(t,"toPath",(function(){return be})),n.d(t,"property",(function(){return Ee})),n.d(t,"propertyOf",(function(){return Le})),n.d(t,"matcher",(function(){return Ie})),n.d(t,"matches",(function(){return Ie})),n.d(t,"times",(function(){return Ne})),n.d(t,"random",(function(){return Pe})),n.d(t,"now",(function(){return Ge})),n.d(t,"escape",(function(){return Be})),n.d(t,"unescape",(function(){return Re})),n.d(t,"templateSettings",(function(){return qe})),n.d(t,"template",(function(){return We})),n.d(t,"result",(function(){return $e})),n.d(t,"uniqueId",(function(){return Ye})),n.d(t,"chain",(function(){return Je})),n.d(t,"iteratee",(function(){return Oe})),n.d(t,"partial",(function(){return et})),n.d(t,"bind",(function(){return tt})),n.d(t,"bindAll",(function(){return it})),n.d(t,"memoize",(function(){return ot})),n.d(t,"delay",(function(){return at})),n.d(t,"defer",(function(){return ut})),n.d(t,"throttle",(function(){return ct})),n.d(t,"debounce",(function(){return st})),n.d(t,"wrap",(function(){return lt})),n.d(t,"negate",(function(){return dt})),n.d(t,"compose",(function(){return ft})),n.d(t,"after",(function(){return pt})),n.d(t,"before",(function(){return mt})),n.d(t,"once",(function(){return vt})),n.d(t,"findKey",(function(){return gt})),n.d(t,"findIndex",(function(){return yt})),n.d(t,"findLastIndex",(function(){return bt})),n.d(t,"sortedIndex",(function(){return wt})),n.d(t,"indexOf",(function(){return xt})),n.d(t,"lastIndexOf",(function(){return Ct})),n.d(t,"find",(function(){return kt})),n.d(t,"detect",(function(){return kt})),n.d(t,"findWhere",(function(){return It})),n.d(t,"each",(function(){return Et})),n.d(t,"forEach",(function(){return Et})),n.d(t,"map",(function(){return jt})),n.d(t,"collect",(function(){return jt})),n.d(t,"reduce",(function(){return Ot})),n.d(t,"foldl",(function(){return Ot})),n.d(t,"inject",(function(){return Ot})),n.d(t,"reduceRight",(function(){return Tt})),n.d(t,"foldr",(function(){return Tt})),n.d(t,"filter",(function(){return Mt})),n.d(t,"select",(function(){return Mt})),n.d(t,"reject",(function(){return At})),n.d(t,"every",(function(){return Lt})),n.d(t,"all",(function(){return Lt})),n.d(t,"some",(function(){return Nt})),n.d(t,"any",(function(){return Nt})),n.d(t,"contains",(function(){return Pt})),n.d(t,"includes",(function(){return Pt})),n.d(t,"include",(function(){return Pt})),n.d(t,"invoke",(function(){return Gt})),n.d(t,"pluck",(function(){return zt})),n.d(t,"where",(function(){return Ft})),n.d(t,"max",(function(){return Bt})),n.d(t,"min",(function(){return Rt})),n.d(t,"shuffle",(function(){return Dt})),n.d(t,"sample",(function(){return qt})),n.d(t,"sortBy",(function(){return Qt})),n.d(t,"groupBy",(function(){return Vt})),n.d(t,"indexBy",(function(){return Ht})),n.d(t,"countBy",(function(){return Wt})),n.d(t,"partition",(function(){return $t})),n.d(t,"toArray",(function(){return Yt})),n.d(t,"size",(function(){return Jt})),n.d(t,"pick",(function(){return Xt})),n.d(t,"omit",(function(){return en})),n.d(t,"first",(function(){return nn})),n.d(t,"head",(function(){return nn})),n.d(t,"take",(function(){return nn})),n.d(t,"initial",(function(){return tn})),n.d(t,"last",(function(){return on})),n.d(t,"rest",(function(){return rn})),n.d(t,"tail",(function(){return rn})),n.d(t,"drop",(function(){return rn})),n.d(t,"compact",(function(){return an})),n.d(t,"flatten",(function(){return un})),n.d(t,"without",(function(){return sn})),n.d(t,"uniq",(function(){return ln})),n.d(t,"unique",(function(){return ln})),n.d(t,"union",(function(){return dn})),n.d(t,"intersection",(function(){return fn})),n.d(t,"difference",(function(){return cn})),n.d(t,"unzip",(function(){return pn})),n.d(t,"transpose",(function(){return pn})),n.d(t,"zip",(function(){return mn})),n.d(t,"object",(function(){return vn})),n.d(t,"range",(function(){return gn})),n.d(t,"chunk",(function(){return hn})),n.d(t,"mixin",(function(){return bn}));var r={};n.r(r),n.d(r,"VERSION",(function(){return i.e})),n.d(r,"restArguments",(function(){return o})),n.d(r,"isObject",(function(){return a})),n.d(r,"isNull",(function(){return u})),n.d(r,"isUndefined",(function(){return c})),n.d(r,"isBoolean",(function(){return s})),n.d(r,"isElement",(function(){return l})),n.d(r,"isString",(function(){return f})),n.d(r,"isNumber",(function(){return p})),n.d(r,"isDate",(function(){return m})),n.d(r,"isRegExp",(function(){return v})),n.d(r,"isError",(function(){return g})),n.d(r,"isSymbol",(function(){return h})),n.d(r,"isArrayBuffer",(function(){return y})),n.d(r,"isDataView",(function(){return E})),n.d(r,"isArray",(function(){return j})),n.d(r,"isFunction",(function(){return _})),n.d(r,"isArguments",(function(){return T})),n.d(r,"isFinite",(function(){return M})),n.d(r,"isNaN",(function(){return A})),n.d(r,"isTypedArray",(function(){return B})),n.d(r,"isEmpty",(function(){return Q})),n.d(r,"isMatch",(function(){return U})),n.d(r,"isEqual",(function(){return $})),n.d(r,"isMap",(function(){return re})),n.d(r,"isWeakMap",(function(){return ie})),n.d(r,"isSet",(function(){return oe})),n.d(r,"isWeakSet",(function(){return ae})),n.d(r,"keys",(function(){return D})),n.d(r,"allKeys",(function(){return K})),n.d(r,"values",(function(){return ue})),n.d(r,"pairs",(function(){return ce})),n.d(r,"invert",(function(){return se})),n.d(r,"functions",(function(){return le})),n.d(r,"methods",(function(){return le})),n.d(r,"extend",(function(){return fe})),n.d(r,"extendOwn",(function(){return pe})),n.d(r,"assign",(function(){return pe})),n.d(r,"defaults",(function(){return me})),n.d(r,"create",(function(){return ge})),n.d(r,"clone",(function(){return he})),n.d(r,"tap",(function(){return ye})),n.d(r,"get",(function(){return xe})),n.d(r,"has",(function(){return Ce})),n.d(r,"mapObject",(function(){return Me})),n.d(r,"identity",(function(){return ke})),n.d(r,"constant",(function(){return L})),n.d(r,"noop",(function(){return Ae})),n.d(r,"toPath",(function(){return be})),n.d(r,"property",(function(){return Ee})),n.d(r,"propertyOf",(function(){return Le})),n.d(r,"matcher",(function(){return Ie})),n.d(r,"matches",(function(){return Ie})),n.d(r,"times",(function(){return Ne})),n.d(r,"random",(function(){return Pe})),n.d(r,"now",(function(){return Ge})),n.d(r,"escape",(function(){return Be})),n.d(r,"unescape",(function(){return Re})),n.d(r,"templateSettings",(function(){return qe})),n.d(r,"template",(function(){return We})),n.d(r,"result",(function(){return $e})),n.d(r,"uniqueId",(function(){return Ye})),n.d(r,"chain",(function(){return Je})),n.d(r,"iteratee",(function(){return Oe})),n.d(r,"partial",(function(){return et})),n.d(r,"bind",(function(){return tt})),n.d(r,"bindAll",(function(){return it})),n.d(r,"memoize",(function(){return ot})),n.d(r,"delay",(function(){return at})),n.d(r,"defer",(function(){return ut})),n.d(r,"throttle",(function(){return ct})),n.d(r,"debounce",(function(){return st})),n.d(r,"wrap",(function(){return lt})),n.d(r,"negate",(function(){return dt})),n.d(r,"compose",(function(){return ft})),n.d(r,"after",(function(){return pt})),n.d(r,"before",(function(){return mt})),n.d(r,"once",(function(){return vt})),n.d(r,"findKey",(function(){return gt})),n.d(r,"findIndex",(function(){return yt})),n.d(r,"findLastIndex",(function(){return bt})),n.d(r,"sortedIndex",(function(){return wt})),n.d(r,"indexOf",(function(){return xt})),n.d(r,"lastIndexOf",(function(){return Ct})),n.d(r,"find",(function(){return kt})),n.d(r,"detect",(function(){return kt})),n.d(r,"findWhere",(function(){return It})),n.d(r,"each",(function(){return Et})),n.d(r,"forEach",(function(){return Et})),n.d(r,"map",(function(){return jt})),n.d(r,"collect",(function(){return jt})),n.d(r,"reduce",(function(){return Ot})),n.d(r,"foldl",(function(){return Ot})),n.d(r,"inject",(function(){return Ot})),n.d(r,"reduceRight",(function(){return Tt})),n.d(r,"foldr",(function(){return Tt})),n.d(r,"filter",(function(){return Mt})),n.d(r,"select",(function(){return Mt})),n.d(r,"reject",(function(){return At})),n.d(r,"every",(function(){return Lt})),n.d(r,"all",(function(){return Lt})),n.d(r,"some",(function(){return Nt})),n.d(r,"any",(function(){return Nt})),n.d(r,"contains",(function(){return Pt})),n.d(r,"includes",(function(){return Pt})),n.d(r,"include",(function(){return Pt})),n.d(r,"invoke",(function(){return Gt})),n.d(r,"pluck",(function(){return zt})),n.d(r,"where",(function(){return Ft})),n.d(r,"max",(function(){return Bt})),n.d(r,"min",(function(){return Rt})),n.d(r,"shuffle",(function(){return Dt})),n.d(r,"sample",(function(){return qt})),n.d(r,"sortBy",(function(){return Qt})),n.d(r,"groupBy",(function(){return Vt})),n.d(r,"indexBy",(function(){return Ht})),n.d(r,"countBy",(function(){return Wt})),n.d(r,"partition",(function(){return $t})),n.d(r,"toArray",(function(){return Yt})),n.d(r,"size",(function(){return Jt})),n.d(r,"pick",(function(){return Xt})),n.d(r,"omit",(function(){return en})),n.d(r,"first",(function(){return nn})),n.d(r,"head",(function(){return nn})),n.d(r,"take",(function(){return nn})),n.d(r,"initial",(function(){return tn})),n.d(r,"last",(function(){return on})),n.d(r,"rest",(function(){return rn})),n.d(r,"tail",(function(){return rn})),n.d(r,"drop",(function(){return rn})),n.d(r,"compact",(function(){return an})),n.d(r,"flatten",(function(){return un})),n.d(r,"without",(function(){return sn})),n.d(r,"uniq",(function(){return ln})),n.d(r,"unique",(function(){return ln})),n.d(r,"union",(function(){return dn})),n.d(r,"intersection",(function(){return fn})),n.d(r,"difference",(function(){return cn})),n.d(r,"unzip",(function(){return pn})),n.d(r,"transpose",(function(){return pn})),n.d(r,"zip",(function(){return mn})),n.d(r,"object",(function(){return vn})),n.d(r,"range",(function(){return gn})),n.d(r,"chunk",(function(){return hn})),n.d(r,"mixin",(function(){return bn})),n.d(r,"default",(function(){return wn}));var i=n(15);function o(e,t){return t=null==t?e.length-1:+t,function(){for(var n=Math.max(arguments.length-t,0),r=Array(n),i=0;i<n;i++)r[i]=arguments[i+t];switch(t){case 0:return e.call(this,r);case 1:return e.call(this,arguments[0],r);case 2:return e.call(this,arguments[0],arguments[1],r)}var o=Array(t+1);for(i=0;i<t;i++)o[i]=arguments[i];return o[t]=r,e.apply(this,o)}}function a(e){var t=typeof e;return"function"===t||"object"===t&&!!e}function u(e){return null===e}function c(e){return void 0===e}function s(e){return!0===e||!1===e||"[object Boolean]"===i.t.call(e)}function l(e){return!(!e||1!==e.nodeType)}function d(e){var t="[object "+e+"]";return function(e){return i.t.call(e)===t}}var f=d("String"),p=d("Number"),m=d("Date"),v=d("RegExp"),g=d("Error"),h=d("Symbol"),y=d("ArrayBuffer"),b=d("Function"),w=i.p.document&&i.p.document.childNodes;"object"!=typeof Int8Array&&"function"!=typeof w&&(b=function(e){return"function"==typeof e||!1});var _=b,x=d("Object"),C=i.s&&x(new DataView(new ArrayBuffer(8))),k="undefined"!=typeof Map&&x(new Map),I=d("DataView");var E=C?function(e){return null!=e&&_(e.getInt8)&&y(e.buffer)}:I,j=i.k||d("Array");function S(e,t){return null!=e&&i.i.call(e,t)}var O=d("Arguments");!function(){O(arguments)||(O=function(e){return S(e,"callee")})}();var T=O;function M(e){return!h(e)&&Object(i.f)(e)&&!isNaN(parseFloat(e))}function A(e){return p(e)&&Object(i.g)(e)}function L(e){return function(){return e}}function N(e){return function(t){var n=e(t);return"number"==typeof n&&n>=0&&n<=i.b}}function P(e){return function(t){return null==t?void 0:t[e]}}var G=P("byteLength"),z=N(G),F=/\[object ((I|Ui)nt(8|16|32)|Float(32|64)|Uint8Clamped|Big(I|Ui)nt64)Array\]/;var B=i.r?function(e){return i.l?Object(i.l)(e)&&!E(e):z(e)&&F.test(i.t.call(e))}:L(!1),R=P("length");function q(e,t){t=function(e){for(var t={},n=e.length,r=0;r<n;++r)t[e[r]]=!0;return{contains:function(e){return t[e]},push:function(n){return t[n]=!0,e.push(n)}}}(t);var n=i.n.length,r=e.constructor,o=_(r)&&r.prototype||i.c,a="constructor";for(S(e,a)&&!t.contains(a)&&t.push(a);n--;)(a=i.n[n])in e&&e[a]!==o[a]&&!t.contains(a)&&t.push(a)}function D(e){if(!a(e))return[];if(i.m)return Object(i.m)(e);var t=[];for(var n in e)S(e,n)&&t.push(n);return i.h&&q(e,t),t}function Q(e){if(null==e)return!0;var t=R(e);return"number"==typeof t&&(j(e)||f(e)||T(e))?0===t:0===R(D(e))}function U(e,t){var n=D(t),r=n.length;if(null==e)return!r;for(var i=Object(e),o=0;o<r;o++){var a=n[o];if(t[a]!==i[a]||!(a in i))return!1}return!0}function V(e){return e instanceof V?e:this instanceof V?void(this._wrapped=e):new V(e)}function H(e){return new Uint8Array(e.buffer||e,e.byteOffset||0,G(e))}V.VERSION=i.e,V.prototype.value=function(){return this._wrapped},V.prototype.valueOf=V.prototype.toJSON=V.prototype.value,V.prototype.toString=function(){return String(this._wrapped)};function W(e,t,n,r){if(e===t)return 0!==e||1/e==1/t;if(null==e||null==t)return!1;if(e!=e)return t!=t;var o=typeof e;return("function"===o||"object"===o||"object"==typeof t)&&function e(t,n,r,o){t instanceof V&&(t=t._wrapped);n instanceof V&&(n=n._wrapped);var a=i.t.call(t);if(a!==i.t.call(n))return!1;if(C&&"[object Object]"==a&&E(t)){if(!E(n))return!1;a="[object DataView]"}switch(a){case"[object RegExp]":case"[object String]":return""+t==""+n;case"[object Number]":return+t!=+t?+n!=+n:0==+t?1/+t==1/n:+t==+n;case"[object Date]":case"[object Boolean]":return+t==+n;case"[object Symbol]":return i.d.valueOf.call(t)===i.d.valueOf.call(n);case"[object ArrayBuffer]":case"[object DataView]":return e(H(t),H(n),r,o)}var u="[object Array]"===a;if(!u&&B(t)){if(G(t)!==G(n))return!1;if(t.buffer===n.buffer&&t.byteOffset===n.byteOffset)return!0;u=!0}if(!u){if("object"!=typeof t||"object"!=typeof n)return!1;var c=t.constructor,s=n.constructor;if(c!==s&&!(_(c)&&c instanceof c&&_(s)&&s instanceof s)&&"constructor"in t&&"constructor"in n)return!1}o=o||[];var l=(r=r||[]).length;for(;l--;)if(r[l]===t)return o[l]===n;if(r.push(t),o.push(n),u){if((l=t.length)!==n.length)return!1;for(;l--;)if(!W(t[l],n[l],r,o))return!1}else{var d,f=D(t);if(l=f.length,D(n).length!==l)return!1;for(;l--;)if(d=f[l],!S(n,d)||!W(t[d],n[d],r,o))return!1}return r.pop(),o.pop(),!0}(e,t,n,r)}function $(e,t){return W(e,t)}function K(e){if(!a(e))return[];var t=[];for(var n in e)t.push(n);return i.h&&q(e,t),t}function Y(e){var t=R(e);return function(n){if(null==n)return!1;var r=K(n);if(R(r))return!1;for(var i=0;i<t;i++)if(!_(n[e[i]]))return!1;return e!==te||!_(n[J])}}var J="forEach",Z=["clear","delete"],X=["get","has","set"],ee=Z.concat(J,X),te=Z.concat(X),ne=["add"].concat(Z,J,"has"),re=k?Y(ee):d("Map"),ie=k?Y(te):d("WeakMap"),oe=k?Y(ne):d("Set"),ae=d("WeakSet");function ue(e){for(var t=D(e),n=t.length,r=Array(n),i=0;i<n;i++)r[i]=e[t[i]];return r}function ce(e){for(var t=D(e),n=t.length,r=Array(n),i=0;i<n;i++)r[i]=[t[i],e[t[i]]];return r}function se(e){for(var t={},n=D(e),r=0,i=n.length;r<i;r++)t[e[n[r]]]=n[r];return t}function le(e){var t=[];for(var n in e)_(e[n])&&t.push(n);return t.sort()}function de(e,t){return function(n){var r=arguments.length;if(t&&(n=Object(n)),r<2||null==n)return n;for(var i=1;i<r;i++)for(var o=arguments[i],a=e(o),u=a.length,c=0;c<u;c++){var s=a[c];t&&void 0!==n[s]||(n[s]=o[s])}return n}}var fe=de(K),pe=de(D),me=de(K,!0);function ve(e){if(!a(e))return{};if(i.j)return Object(i.j)(e);var t=function(){};t.prototype=e;var n=new t;return t.prototype=null,n}function ge(e,t){var n=ve(e);return t&&pe(n,t),n}function he(e){return a(e)?j(e)?e.slice():fe({},e):e}function ye(e,t){return t(e),e}function be(e){return j(e)?e:[e]}function we(e){return V.toPath(e)}function _e(e,t){for(var n=t.length,r=0;r<n;r++){if(null==e)return;e=e[t[r]]}return n?e:void 0}function xe(e,t,n){var r=_e(e,we(t));return c(r)?n:r}function Ce(e,t){for(var n=(t=we(t)).length,r=0;r<n;r++){var i=t[r];if(!S(e,i))return!1;e=e[i]}return!!n}function ke(e){return e}function Ie(e){return e=pe({},e),function(t){return U(t,e)}}function Ee(e){return e=we(e),function(t){return _e(t,e)}}function je(e,t,n){if(void 0===t)return e;switch(null==n?3:n){case 1:return function(n){return e.call(t,n)};case 3:return function(n,r,i){return e.call(t,n,r,i)};case 4:return function(n,r,i,o){return e.call(t,n,r,i,o)}}return function(){return e.apply(t,arguments)}}function Se(e,t,n){return null==e?ke:_(e)?je(e,t,n):a(e)&&!j(e)?Ie(e):Ee(e)}function Oe(e,t){return Se(e,t,1/0)}function Te(e,t,n){return V.iteratee!==Oe?V.iteratee(e,t):Se(e,t,n)}function Me(e,t,n){t=Te(t,n);for(var r=D(e),i=r.length,o={},a=0;a<i;a++){var u=r[a];o[u]=t(e[u],u,e)}return o}function Ae(){}function Le(e){return null==e?Ae:function(t){return xe(e,t)}}function Ne(e,t,n){var r=Array(Math.max(0,e));t=je(t,n,1);for(var i=0;i<e;i++)r[i]=t(i);return r}function Pe(e,t){return null==t&&(t=e,e=0),e+Math.floor(Math.random()*(t-e+1))}V.toPath=be,V.iteratee=Oe;var Ge=Date.now||function(){return(new Date).getTime()};function ze(e){var t=function(t){return e[t]},n="(?:"+D(e).join("|")+")",r=RegExp(n),i=RegExp(n,"g");return function(e){return e=null==e?"":""+e,r.test(e)?e.replace(i,t):e}}var Fe={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;"},Be=ze(Fe),Re=ze(se(Fe)),qe=V.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g},De=/(.)^/,Qe={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},Ue=/\\|'|\r|\n|\u2028|\u2029/g;function Ve(e){return"\\"+Qe[e]}var He=/^\s*(\w|\$)+\s*$/;function We(e,t,n){!t&&n&&(t=n),t=me({},t,V.templateSettings);var r=RegExp([(t.escape||De).source,(t.interpolate||De).source,(t.evaluate||De).source].join("|")+"|$","g"),i=0,o="__p+='";e.replace(r,(function(t,n,r,a,u){return o+=e.slice(i,u).replace(Ue,Ve),i=u+t.length,n?o+="'+\n((__t=("+n+"))==null?'':_.escape(__t))+\n'":r?o+="'+\n((__t=("+r+"))==null?'':__t)+\n'":a&&(o+="';\n"+a+"\n__p+='"),t})),o+="';\n";var a,u=t.variable;if(u){if(!He.test(u))throw new Error("variable is not a bare identifier: "+u)}else o="with(obj||{}){\n"+o+"}\n",u="obj";o="var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};\n"+o+"return __p;\n";try{a=new Function(u,"_",o)}catch(e){throw e.source=o,e}var c=function(e){return a.call(this,e,V)};return c.source="function("+u+"){\n"+o+"}",c}function $e(e,t,n){var r=(t=we(t)).length;if(!r)return _(n)?n.call(e):n;for(var i=0;i<r;i++){var o=null==e?void 0:e[t[i]];void 0===o&&(o=n,i=r),e=_(o)?o.call(e):o}return e}var Ke=0;function Ye(e){var t=++Ke+"";return e?e+t:t}function Je(e){var t=V(e);return t._chain=!0,t}function Ze(e,t,n,r,i){if(!(r instanceof t))return e.apply(n,i);var o=ve(e.prototype),u=e.apply(o,i);return a(u)?u:o}var Xe=o((function(e,t){var n=Xe.placeholder,r=function(){for(var i=0,o=t.length,a=Array(o),u=0;u<o;u++)a[u]=t[u]===n?arguments[i++]:t[u];for(;i<arguments.length;)a.push(arguments[i++]);return Ze(e,r,this,this,a)};return r}));Xe.placeholder=V;var et=Xe,tt=o((function(e,t,n){if(!_(e))throw new TypeError("Bind must be called on a function");var r=o((function(i){return Ze(e,r,t,this,n.concat(i))}));return r})),nt=N(R);function rt(e,t,n,r){if(r=r||[],t||0===t){if(t<=0)return r.concat(e)}else t=1/0;for(var i=r.length,o=0,a=R(e);o<a;o++){var u=e[o];if(nt(u)&&(j(u)||T(u)))if(t>1)rt(u,t-1,n,r),i=r.length;else for(var c=0,s=u.length;c<s;)r[i++]=u[c++];else n||(r[i++]=u)}return r}var it=o((function(e,t){var n=(t=rt(t,!1,!1)).length;if(n<1)throw new Error("bindAll must be passed function names");for(;n--;){var r=t[n];e[r]=tt(e[r],e)}return e}));function ot(e,t){var n=function(r){var i=n.cache,o=""+(t?t.apply(this,arguments):r);return S(i,o)||(i[o]=e.apply(this,arguments)),i[o]};return n.cache={},n}var at=o((function(e,t,n){return setTimeout((function(){return e.apply(null,n)}),t)})),ut=et(at,V,1);function ct(e,t,n){var r,i,o,a,u=0;n||(n={});var c=function(){u=!1===n.leading?0:Ge(),r=null,a=e.apply(i,o),r||(i=o=null)},s=function(){var s=Ge();u||!1!==n.leading||(u=s);var l=t-(s-u);return i=this,o=arguments,l<=0||l>t?(r&&(clearTimeout(r),r=null),u=s,a=e.apply(i,o),r||(i=o=null)):r||!1===n.trailing||(r=setTimeout(c,l)),a};return s.cancel=function(){clearTimeout(r),u=0,r=i=o=null},s}function st(e,t,n){var r,i,a,u,c,s=function(){var o=Ge()-i;t>o?r=setTimeout(s,t-o):(r=null,n||(u=e.apply(c,a)),r||(a=c=null))},l=o((function(o){return c=this,a=o,i=Ge(),r||(r=setTimeout(s,t),n&&(u=e.apply(c,a))),u}));return l.cancel=function(){clearTimeout(r),r=a=c=null},l}function lt(e,t){return et(t,e)}function dt(e){return function(){return!e.apply(this,arguments)}}function ft(){var e=arguments,t=e.length-1;return function(){for(var n=t,r=e[t].apply(this,arguments);n--;)r=e[n].call(this,r);return r}}function pt(e,t){return function(){if(--e<1)return t.apply(this,arguments)}}function mt(e,t){var n;return function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=null),n}}var vt=et(mt,2);function gt(e,t,n){t=Te(t,n);for(var r,i=D(e),o=0,a=i.length;o<a;o++)if(t(e[r=i[o]],r,e))return r}function ht(e){return function(t,n,r){n=Te(n,r);for(var i=R(t),o=e>0?0:i-1;o>=0&&o<i;o+=e)if(n(t[o],o,t))return o;return-1}}var yt=ht(1),bt=ht(-1);function wt(e,t,n,r){for(var i=(n=Te(n,r,1))(t),o=0,a=R(e);o<a;){var u=Math.floor((o+a)/2);n(e[u])<i?o=u+1:a=u}return o}function _t(e,t,n){return function(r,o,a){var u=0,c=R(r);if("number"==typeof a)e>0?u=a>=0?a:Math.max(a+c,u):c=a>=0?Math.min(a+1,c):a+c+1;else if(n&&a&&c)return r[a=n(r,o)]===o?a:-1;if(o!=o)return(a=t(i.q.call(r,u,c),A))>=0?a+u:-1;for(a=e>0?u:c-1;a>=0&&a<c;a+=e)if(r[a]===o)return a;return-1}}var xt=_t(1,yt,wt),Ct=_t(-1,bt);function kt(e,t,n){var r=(nt(e)?yt:gt)(e,t,n);if(void 0!==r&&-1!==r)return e[r]}function It(e,t){return kt(e,Ie(t))}function Et(e,t,n){var r,i;if(t=je(t,n),nt(e))for(r=0,i=e.length;r<i;r++)t(e[r],r,e);else{var o=D(e);for(r=0,i=o.length;r<i;r++)t(e[o[r]],o[r],e)}return e}function jt(e,t,n){t=Te(t,n);for(var r=!nt(e)&&D(e),i=(r||e).length,o=Array(i),a=0;a<i;a++){var u=r?r[a]:a;o[a]=t(e[u],u,e)}return o}function St(e){var t=function(t,n,r,i){var o=!nt(t)&&D(t),a=(o||t).length,u=e>0?0:a-1;for(i||(r=t[o?o[u]:u],u+=e);u>=0&&u<a;u+=e){var c=o?o[u]:u;r=n(r,t[c],c,t)}return r};return function(e,n,r,i){var o=arguments.length>=3;return t(e,je(n,i,4),r,o)}}var Ot=St(1),Tt=St(-1);function Mt(e,t,n){var r=[];return t=Te(t,n),Et(e,(function(e,n,i){t(e,n,i)&&r.push(e)})),r}function At(e,t,n){return Mt(e,dt(Te(t)),n)}function Lt(e,t,n){t=Te(t,n);for(var r=!nt(e)&&D(e),i=(r||e).length,o=0;o<i;o++){var a=r?r[o]:o;if(!t(e[a],a,e))return!1}return!0}function Nt(e,t,n){t=Te(t,n);for(var r=!nt(e)&&D(e),i=(r||e).length,o=0;o<i;o++){var a=r?r[o]:o;if(t(e[a],a,e))return!0}return!1}function Pt(e,t,n,r){return nt(e)||(e=ue(e)),("number"!=typeof n||r)&&(n=0),xt(e,t,n)>=0}var Gt=o((function(e,t,n){var r,i;return _(t)?i=t:(t=we(t),r=t.slice(0,-1),t=t[t.length-1]),jt(e,(function(e){var o=i;if(!o){if(r&&r.length&&(e=_e(e,r)),null==e)return;o=e[t]}return null==o?o:o.apply(e,n)}))}));function zt(e,t){return jt(e,Ee(t))}function Ft(e,t){return Mt(e,Ie(t))}function Bt(e,t,n){var r,i,o=-1/0,a=-1/0;if(null==t||"number"==typeof t&&"object"!=typeof e[0]&&null!=e)for(var u=0,c=(e=nt(e)?e:ue(e)).length;u<c;u++)null!=(r=e[u])&&r>o&&(o=r);else t=Te(t,n),Et(e,(function(e,n,r){((i=t(e,n,r))>a||i===-1/0&&o===-1/0)&&(o=e,a=i)}));return o}function Rt(e,t,n){var r,i,o=1/0,a=1/0;if(null==t||"number"==typeof t&&"object"!=typeof e[0]&&null!=e)for(var u=0,c=(e=nt(e)?e:ue(e)).length;u<c;u++)null!=(r=e[u])&&r<o&&(o=r);else t=Te(t,n),Et(e,(function(e,n,r){((i=t(e,n,r))<a||i===1/0&&o===1/0)&&(o=e,a=i)}));return o}function qt(e,t,n){if(null==t||n)return nt(e)||(e=ue(e)),e[Pe(e.length-1)];var r=nt(e)?he(e):ue(e),i=R(r);t=Math.max(Math.min(t,i),0);for(var o=i-1,a=0;a<t;a++){var u=Pe(a,o),c=r[a];r[a]=r[u],r[u]=c}return r.slice(0,t)}function Dt(e){return qt(e,1/0)}function Qt(e,t,n){var r=0;return t=Te(t,n),zt(jt(e,(function(e,n,i){return{value:e,index:r++,criteria:t(e,n,i)}})).sort((function(e,t){var n=e.criteria,r=t.criteria;if(n!==r){if(n>r||void 0===n)return 1;if(n<r||void 0===r)return-1}return e.index-t.index})),"value")}function Ut(e,t){return function(n,r,i){var o=t?[[],[]]:{};return r=Te(r,i),Et(n,(function(t,i){var a=r(t,i,n);e(o,t,a)})),o}}var Vt=Ut((function(e,t,n){S(e,n)?e[n].push(t):e[n]=[t]})),Ht=Ut((function(e,t,n){e[n]=t})),Wt=Ut((function(e,t,n){S(e,n)?e[n]++:e[n]=1})),$t=Ut((function(e,t,n){e[n?0:1].push(t)}),!0),Kt=/[^\ud800-\udfff]|[\ud800-\udbff][\udc00-\udfff]|[\ud800-\udfff]/g;function Yt(e){return e?j(e)?i.q.call(e):f(e)?e.match(Kt):nt(e)?jt(e,ke):ue(e):[]}function Jt(e){return null==e?0:nt(e)?e.length:D(e).length}function Zt(e,t,n){return t in n}var Xt=o((function(e,t){var n={},r=t[0];if(null==e)return n;_(r)?(t.length>1&&(r=je(r,t[1])),t=K(e)):(r=Zt,t=rt(t,!1,!1),e=Object(e));for(var i=0,o=t.length;i<o;i++){var a=t[i],u=e[a];r(u,a,e)&&(n[a]=u)}return n})),en=o((function(e,t){var n,r=t[0];return _(r)?(r=dt(r),t.length>1&&(n=t[1])):(t=jt(rt(t,!1,!1),String),r=function(e,n){return!Pt(t,n)}),Xt(e,r,n)}));function tn(e,t,n){return i.q.call(e,0,Math.max(0,e.length-(null==t||n?1:t)))}function nn(e,t,n){return null==e||e.length<1?null==t||n?void 0:[]:null==t||n?e[0]:tn(e,e.length-t)}function rn(e,t,n){return i.q.call(e,null==t||n?1:t)}function on(e,t,n){return null==e||e.length<1?null==t||n?void 0:[]:null==t||n?e[e.length-1]:rn(e,Math.max(0,e.length-t))}function an(e){return Mt(e,Boolean)}function un(e,t){return rt(e,t,!1)}var cn=o((function(e,t){return t=rt(t,!0,!0),Mt(e,(function(e){return!Pt(t,e)}))})),sn=o((function(e,t){return cn(e,t)}));function ln(e,t,n,r){s(t)||(r=n,n=t,t=!1),null!=n&&(n=Te(n,r));for(var i=[],o=[],a=0,u=R(e);a<u;a++){var c=e[a],l=n?n(c,a,e):c;t&&!n?(a&&o===l||i.push(c),o=l):n?Pt(o,l)||(o.push(l),i.push(c)):Pt(i,c)||i.push(c)}return i}var dn=o((function(e){return ln(rt(e,!0,!0))}));function fn(e){for(var t=[],n=arguments.length,r=0,i=R(e);r<i;r++){var o=e[r];if(!Pt(t,o)){var a;for(a=1;a<n&&Pt(arguments[a],o);a++);a===n&&t.push(o)}}return t}function pn(e){for(var t=e&&Bt(e,R).length||0,n=Array(t),r=0;r<t;r++)n[r]=zt(e,r);return n}var mn=o(pn);function vn(e,t){for(var n={},r=0,i=R(e);r<i;r++)t?n[e[r]]=t[r]:n[e[r][0]]=e[r][1];return n}function gn(e,t,n){null==t&&(t=e||0,e=0),n||(n=t<e?-1:1);for(var r=Math.max(Math.ceil((t-e)/n),0),i=Array(r),o=0;o<r;o++,e+=n)i[o]=e;return i}function hn(e,t){if(null==t||t<1)return[];for(var n=[],r=0,o=e.length;r<o;)n.push(i.q.call(e,r,r+=t));return n}function yn(e,t){return e._chain?V(t).chain():t}function bn(e){return Et(le(e),(function(t){var n=V[t]=e[t];V.prototype[t]=function(){var e=[this._wrapped];return i.o.apply(e,arguments),yn(this,n.apply(V,e))}})),V}Et(["pop","push","reverse","shift","sort","splice","unshift"],(function(e){var t=i.a[e];V.prototype[e]=function(){var n=this._wrapped;return null!=n&&(t.apply(n,arguments),"shift"!==e&&"splice"!==e||0!==n.length||delete n[0]),yn(this,n)}})),Et(["concat","join","slice"],(function(e){var t=i.a[e];V.prototype[e]=function(){var e=this._wrapped;return null!=e&&(e=t.apply(e,arguments)),yn(this,e)}}));var wn=V,_n=bn(r);_n._=_n;var xn=_n}});
var Give_Recurring_Vars;
jQuery(document).ready(function($){
var doc=$(document);
var Give_Recurring={
init: function(){
doc.on('give_donation_value_updated', function(e, parent_form, amount){
if(! parent_form){
parent_form=$(this).closest('form.give-form');
}
var give_total=('undefined'===typeof amount) ? parent_form.find('input[name="give-amount"]').val():amount,
price_id=parent_form.find('input[name="give-price-id"]').val(),
give_is_donation_recurring=parent_form.find('input[name="_give_is_donation_recurring"]').data('_give_recurring'),
give_is_price_option=parent_form.find('input[name="_give_is_donation_recurring"]').data('_give_price_option');
if('yes_donor'===give_is_donation_recurring||'set'===give_is_price_option){
return false;
}
Give_Recurring.notifyUserOnLevels(parent_form, give_total, price_id);
});
doc.on('give_gateway_loaded', function(e, response, form_id){
var form=$(e.currentTarget.activeElement).closest('form.give-form');
if(0===form.length){
form=$('#' + form_id);
}
var amount=form.find('input[name="give-amount"]').val(),
price_id=form.find('input[name="give-price-id"]').val(),
give_is_donation_recurring=form.find('input[name="_give_is_donation_recurring"]').data('_give_recurring'),
give_is_price_option=form.find('input[name="_give_is_donation_recurring"]').data('_give_price_option');
if('yes_donor'===give_is_donation_recurring||'set'===give_is_price_option){
var recurring_period_label=form.find('.give-recurring-period');
Give_Recurring.fetchRecurringPeriodText(recurring_period_label);
return false;
}
var decimal=Give.form.fn.getInfo('decimal_separator', form);
amount=Give.fn.unFormatCurrency(amount, decimal);
Give_Recurring.notifyUserOnLevels(form, amount, price_id);
});
Give_Recurring.confirm_subscription_cancellation();
Give_Recurring.conditional_account_creation();
$('.give-recurring-period').on('click', function(){
var $this=$(this),
form=$this.closest('form.give-form');
if($this.is(':checked') ){
Give_Recurring.fetchRecurringPeriodText($this);
}else{
form.find('#give-recurring-modal-period-wrap').hide();
form.find('#give-recurring-modal-period').html('');
}});
$('.give-recurring-donors-choice-period').on('change', function(){
Give_Recurring.fetchRecurringPeriodText($(this) );
});
doc.on('give_gateway_loaded', this.conditionalPeriodDropdown);
doc.on('blur', '.give-donation-amount .give-recurring-text-input', this.edit_renewal_amount);
Give_Recurring.conditionalPeriodDropdown();
Give_Recurring.changeGiveIsDonationRecurring();
Give_Recurring.update_payment_method();
},
displayModalLabel: function(label, form){
if(label!=="once"&&label!==""){
form.find('#give-recurring-modal-period-wrap').show();
form.find('#give-recurring-modal-period').html(label.charAt(0).toUpperCase() + label.slice(1));
}else if(label==="once"){
form.find('#give-recurring-modal-period-wrap').hide();
form.find('#give-recurring-modal-period').html('');
}},
fetchRecurringPeriodText: function($this){
var recurringPeriod=$this.data('period');
var recurringPeriodLabel=$this.data('period-label');
var form=$this.closest('form.give-form');
var currentRecurringPeriod=form.find('.give-recurring-donors-choice-period').val();
var prettyPeriods=Give_Recurring_Vars.pretty_periods;
var isRecurringOpted=form.find('.give-recurring-period:checked').val();
if($this.is('select') ){
recurringPeriodLabel=$this.closest('div.give-recurring-donors-choice')
.find('.give-recurring-period')
.data('period-label');
recurringPeriod=$this.closest('div.give-recurring-donors-choice')
.find('.give-recurring-period')
.data('period');
}
if(currentRecurringPeriod){
recurringPeriodLabel=recurringPeriodLabel.replace(new RegExp(recurringPeriod, 'g'), currentRecurringPeriod);
recurringPeriodLabel=recurringPeriodLabel.replace(new RegExp(prettyPeriods[ recurringPeriod ], 'g'), prettyPeriods[ currentRecurringPeriod ]);
}
if('on'===isRecurringOpted){
Give_Recurring.displayModalLabel(recurringPeriodLabel, form);
}else{
form.find('#give-recurring-modal-period-wrap').hide();
form.find('#give-recurring-modal-period').html('');
}},
notifyUserOnLevels: function(form, amount, price_id){
var data=JSON.parse(form.find('input[name="give_recurring_donation_details"]').val());
if(false===data.is_recurring||'yes_donor'===data.give_recurring_option){
return false;
}
var multi_level_message=data.multi[ price_id ].give_recurring_pretty_text,
multi_level_lower_message=multi_level_message.toLowerCase();
amount=Give.fn.formatCurrency(amount, {
currency: Give.form.fn.getInfo('currency_code', form),
symbol: Give.form.fn.getInfo('currency_symbol', form),
position: Give.form.fn.getInfo('currency_position', form)
}, form);
var multi_level_message_html=Give_Recurring_Vars.multi_level_message_pre_text + ' <span class="amount">' + amount + '</span> ' + multi_level_lower_message + '.';
form.find('.give-recurring-multi-level-message').html(multi_level_message_html);
if('once'!==multi_level_lower_message){
form.find('#_give_is_donation_recurring').val(1);
}else{
form.find('#_give_is_donation_recurring').val(0);
}
Give_Recurring.displayModalLabel(multi_level_message, form);
Give_Recurring.register_checkbox(form);
},
changeGiveIsDonationRecurring: function (){
$('.give-form').on('change', '.give-recurring-donors-choice', function (){
var give_is_donation_recurring='0';
var recurring_period=$(this).find('.give-recurring-period:checked').val();
if('undefined'!==typeof(
recurring_period
)&&'on'===recurring_period){
give_is_donation_recurring=1;
}
var form=$(this).closest('form');
form.find('._give_is_donation_recurring').val(give_is_donation_recurring);
Give_Recurring.register_checkbox(form);
});
},
conditional_account_creation: function(){
if(Give_Recurring_Vars.email_access){
return false;
}
doc.on('give_gateway_loaded', function(ev, response, form_id){
Give_Recurring.register_checkbox($('form#' + form_id) );
});
$('form[id^=give-form].give-recurring-form').each(function (){
Give_Recurring.register_checkbox($(this) );
});
$(document).ajaxComplete(function(event, xhr, settings){
var get_action=Give_Recurring.get_parameter('action', settings.data);
if('give_cancel_login'===get_action){
var form_id=Give_Recurring.get_parameter('form_id', settings.data);
Give_Recurring.register_checkbox($('form#give-form-' + form_id) );
}});
},
get_parameter: function(parameter, data){
if(! parameter){
return false;
}
if(! data){
data=window.location.href;
}
var parameter=parameter.replace(/[\[]/, "\\\[").replace(/[\]]/, "\\\]");
var expr=parameter + "=([^&#]*)";
var regex=new RegExp(expr);
var results=regex.exec(data);
if(null!==results){
return results[1];
}else{
return false;
}},
register_checkbox: function(form){
if(Give_Recurring_Vars.email_access){
return false;
}
var recurring_logged=form.find('.give-logged-in-only').val();
if('undefined'!==typeof(recurring_logged)&&1===parseInt(recurring_logged) ){
var is_recurring=form.find('._give_is_donation_recurring').val();
if('undefined'!==typeof(is_recurring)&&1===parseInt(is_recurring) ){
Give_Recurring.disable_register_checkbox(form);
}else{
Give_Recurring.enable_register_checkbox(form);
}}
},
enable_register_checkbox: function(form){
var create_account_html=form.find('[name="give_create_account"]');
create_account_html.removeClass('give-disabled');
create_account_html.closest('span').removeClass('hint--top hint--bounce');
},
disable_register_checkbox: function(form){
var create_account_html=form.find('[name="give_create_account"]');
create_account_html.attr('checked', true);
create_account_html.addClass('give-disabled');
create_account_html.closest('span').addClass('hint--top hint--bounce');
},
confirm_subscription_cancellation: function(){
$('.give-cancel-subscription').on('click touchend', function(){
var response=confirm(Give_Recurring_Vars.messages.confirm_cancel);
if(response!==true){
return false;
}});
},
conditionalPeriodDropdown: function(response){
$('.give-gateway-option-selected').each(function(){
var $form=$(this).parents('.give-form'),
gateway=$(this).find('input').val(),
period_select=$form.find('.give-recurring-donors-choice-period'),
period=period_select.val(),
day_option=$form.find('.give-recurring-donors-choice-period option[value="day"]');
if('authorize'===gateway||'razorpay'===gateway){
if('day'!==period){
return;
}
day_option.prop('disabled', true).next().attr('selected', 'selected');
if('undefined'!==typeof response){
alert(Give_Recurring_Vars.messages.daily_forbidden);
}}else{
day_option.prop('disabled', false);
}});
},
update_payment_method: function(){
$('form[name="give-recurring-form"]').submit(function(e){
e.preventDefault();
var this_form=$(this),
update_button=this_form.find('#give-recurring-update-submit'),
loading_animation=this_form.find('input[type="submit"].give-submit + .give-loading-animation'),
give_payment_update_form=this_form.get(0),
complete_purchase_val=this_form.find('#give-recurring-update-submit').val();
loading_animation.fadeIn();
if(typeof give_payment_update_form.checkValidity==='function'&&give_payment_update_form.checkValidity()===false){
loading_animation.fadeOut();
if((navigator.userAgent.indexOf('Safari')!==- 1&&navigator.userAgent.indexOf('Chrome')===- 1)===false){
return;
}}
update_button.val(give_global_vars.purchase_loading);
update_button.attr('disabled', 'disabled');
$.ajax({
type: 'POST',
url: this_form.attr('action'),
data: this_form.serialize(),
success: function(data){
loading_animation.fadeOut();
this_form.find('.give_errors').remove();
update_button.val(complete_purchase_val);
update_button.prop('disabled', false);
window.location.href=data;
}});
});
},
edit_renewal_amount:function(e, $parent_form){
var parent_form=('undefined'!==typeof $parent_form) ? $parent_form:$(this).closest('form'),
this_value=$(this).val(),
decimal_separator=Give.form.fn.getInfo('decimal_separator', parent_form),
value_min=Give.form.fn.getMinimumAmount(parent_form),
value_max=Give.form.fn.getMaximumAmount(parent_form),
value_now=(this_value===0||''===this_value) ? value_min:Give.fn.unFormatCurrency(this_value, decimal_separator),
formatted_total=Give.form.fn.formatAmount(value_now, parent_form, {});
$(this).val(formatted_total);
if(! Give_Recurring.isValidRenewalAmount(parent_form) ){
$(this).addClass('give-invalid-amount');
Give.form.fn.disable(parent_form, true);
var invalid_minimum_notice=parent_form.find('.give-invalid-minimum'),
invalid_maximum_notice=parent_form.find('.give-invalid-maximum');
if(0===invalid_minimum_notice.length&&value_now < value_min){
Give.notice.fn.renderNotice('bad_minimum', parent_form);
}else if(value_now >=value_min){
invalid_minimum_notice.slideUp(300, function(){ $(this).remove(); });
}
if(0===invalid_maximum_notice.length&&value_now > value_max){
Give.notice.fn.renderNotice('bad_maximum', parent_form);
}else if(value_now <=value_max){
invalid_maximum_notice.slideUp(300, function(){ $(this).remove(); });
}}else{
$(this).removeClass('give-invalid-amount');
parent_form.find('.give-invalid-minimum, .give-invalid-maximum').slideUp(300, function(){
$(this).remove();
});
Give.form.fn.disable(parent_form, false);
}},
isValidRenewalAmount: function($form){
if($form.find('input[name="give-form-minimum"]').length <=0){
return true;
}
var min_amount=Give.form.fn.getMinimumAmount($form),
max_amount=Give.form.fn.getMaximumAmount($form),
amount=Give.form.fn.getAmount($form);
if(0===amount){
return false;
}
return (
((- 1 < amount)&&amount >=min_amount&&amount <=max_amount)
);
}};
Give_Recurring.init();
});
if(function(t){var a=function(){};a.dumy=document.createElement("div"),a.trim=function(e){return e.replace(/\s/gi,"")},a.storArrayBasedOnObjectValue=function(e,t){e.sort(function(s){var i=1;"-"===s[0]&&(i=-1,s=s.substr(1));return function(e,t){var o=e[s]<t[s]?-1:e[s]>t[s]?1:0;return o*i}}(t))},a.trimAndFormatUrl=function(e){return e=(e=e.toLocaleLowerCase()).replace(/ /g,"-")},a.splitAndTrim=function(e,t){for(var o=e.split(","),s=o.length,i=0;i<s;i++)t&&(o[i]=a.trim(o[i]));return o},a.checkTime=function(e){return!!/^(?:2[0-3]|[01][0-9]):[0-5][0-9]:[0-5][0-9]$/.test(e)},a.formatTime=function(e,t){var o=Math.floor(e/3600),s=e%3600,i=Math.floor(s/60),n=s%60,l=Math.ceil(n);return i=10<=i?i:"0"+i,l=10<=l?l:"0"+l,isNaN(l)?"00:00":o||t?"0"+o+":"+i+":"+l:i+":"+l},a.formatTimeWithMiliseconds=function(e){var t=60*parseInt(e.split(":")[0])*60+60*parseInt(e.split(":")[1])+parseInt(e.split(":")[2])+parseInt(e.split(",")[1]||e.split(".")[1])/1e3;return t=Math.round(100*t)/100},a.isLocal=-1!=location.protocol.indexOf("file:"),a.xmlToJson=function(e){var t={};if(1==e.nodeType){if(0<e.attributes.length){t["@attributes"]={};for(var o=0;o<e.attributes.length;o++){var s=e.attributes.item(o);t["@attributes"][s.nodeName]=s.nodeValue}}}else 3==e.nodeType?t=e.nodeValue.trim():4==e.nodeType&&(t=e.nodeValue);if(e.hasChildNodes())for(var i=0;i<e.childNodes.length;i++){var n=e.childNodes.item(i),l=n.nodeName;if(void 0===t[l])t[l]=a.xmlToJson(n);else{if(void 0===t[l].length){var r=t[l];t[l]=[],t[l].push(r)}"object"==typeof t[l]&&t[l].push(a.xmlToJson(n))}}return t},a.MD5=function(e){function a(e,t){return e<<t|e>>>32-t}function d(e,t){var o,s,i,n,l;return i=2147483648&e,n=2147483648&t,l=(1073741823&e)+(1073741823&t),(o=1073741824&e)&(s=1073741824&t)?2147483648^l^i^n:o|s?1073741824&l?3221225472^l^i^n:1073741824^l^i^n:l^i^n}function t(e,t,o,s,i,n,l){var r;return d(a(e=d(e,d(d((r=t)&o|~r&s,i),l)),n),t)}function o(e,t,o,s,i,n,l){var r;return d(a(e=d(e,d(d(t&(r=s)|o&~r,i),l)),n),t)}function s(e,t,o,s,i,n,l){return d(a(e=d(e,d(d(t^o^s,i),l)),n),t)}function i(e,t,o,s,i,n,l){return d(a(e=d(e,d(d(o^(t|~s),i),l)),n),t)}function n(e){var t,o="",s="";for(t=0;t<=3;t++)o+=(s="0"+(e>>>8*t&255).toString(16)).substr(s.length-2,2);return o}var l,r,u,h,_,c,f,p,b,m=Array();for(m=function(e){for(var t,o=e.length,s=o+8,i=16*((s-s%64)/64+1),n=Array(i-1),l=0,r=0;r<o;)l=r%4*8,n[t=(r-r%4)/4]=n[t]|e.charCodeAt(r)<<l,r++;return l=r%4*8,n[t=(r-r%4)/4]=n[t]|128<<l,n[i-2]=o<<3,n[i-1]=o>>>29,n}(e=function(e){e=e.replace(/\r\n/g,"\n");for(var t="",o=0;o<e.length;o++){var s=e.charCodeAt(o);s<128?t+=String.fromCharCode(s):(127<s&&s<2048?t+=String.fromCharCode(s>>6|192):(t+=String.fromCharCode(s>>12|224),t+=String.fromCharCode(s>>6&63|128)),t+=String.fromCharCode(63&s|128))}return t}(e)),c=1732584193,f=4023233417,p=2562383102,b=271733878,l=0;l<m.length;l+=16)f=i(f=i(f=i(f=i(f=s(f=s(f=s(f=s(f=o(f=o(f=o(f=o(f=t(f=t(f=t(f=t(u=f,p=t(h=p,b=t(_=b,c=t(r=c,f,p,b,m[l+0],7,3614090360),f,p,m[l+1],12,3905402710),c,f,m[l+2],17,606105819),b,c,m[l+3],22,3250441966),p=t(p,b=t(b,c=t(c,f,p,b,m[l+4],7,4118548399),f,p,m[l+5],12,1200080426),c,f,m[l+6],17,2821735955),b,c,m[l+7],22,4249261313),p=t(p,b=t(b,c=t(c,f,p,b,m[l+8],7,1770035416),f,p,m[l+9],12,2336552879),c,f,m[l+10],17,4294925233),b,c,m[l+11],22,2304563134),p=t(p,b=t(b,c=t(c,f,p,b,m[l+12],7,1804603682),f,p,m[l+13],12,4254626195),c,f,m[l+14],17,2792965006),b,c,m[l+15],22,1236535329),p=o(p,b=o(b,c=o(c,f,p,b,m[l+1],5,4129170786),f,p,m[l+6],9,3225465664),c,f,m[l+11],14,643717713),b,c,m[l+0],20,3921069994),p=o(p,b=o(b,c=o(c,f,p,b,m[l+5],5,3593408605),f,p,m[l+10],9,38016083),c,f,m[l+15],14,3634488961),b,c,m[l+4],20,3889429448),p=o(p,b=o(b,c=o(c,f,p,b,m[l+9],5,568446438),f,p,m[l+14],9,3275163606),c,f,m[l+3],14,4107603335),b,c,m[l+8],20,1163531501),p=o(p,b=o(b,c=o(c,f,p,b,m[l+13],5,2850285829),f,p,m[l+2],9,4243563512),c,f,m[l+7],14,1735328473),b,c,m[l+12],20,2368359562),p=s(p,b=s(b,c=s(c,f,p,b,m[l+5],4,4294588738),f,p,m[l+8],11,2272392833),c,f,m[l+11],16,1839030562),b,c,m[l+14],23,4259657740),p=s(p,b=s(b,c=s(c,f,p,b,m[l+1],4,2763975236),f,p,m[l+4],11,1272893353),c,f,m[l+7],16,4139469664),b,c,m[l+10],23,3200236656),p=s(p,b=s(b,c=s(c,f,p,b,m[l+13],4,681279174),f,p,m[l+0],11,3936430074),c,f,m[l+3],16,3572445317),b,c,m[l+6],23,76029189),p=s(p,b=s(b,c=s(c,f,p,b,m[l+9],4,3654602809),f,p,m[l+12],11,3873151461),c,f,m[l+15],16,530742520),b,c,m[l+2],23,3299628645),p=i(p,b=i(b,c=i(c,f,p,b,m[l+0],6,4096336452),f,p,m[l+7],10,1126891415),c,f,m[l+14],15,2878612391),b,c,m[l+5],21,4237533241),p=i(p,b=i(b,c=i(c,f,p,b,m[l+12],6,1700485571),f,p,m[l+3],10,2399980690),c,f,m[l+10],15,4293915773),b,c,m[l+1],21,2240044497),p=i(p,b=i(b,c=i(c,f,p,b,m[l+8],6,1873313359),f,p,m[l+15],10,4264355552),c,f,m[l+6],15,2734768916),b,c,m[l+13],21,1309151649),p=i(p,b=i(b,c=i(c,f,p,b,m[l+4],6,4149444226),f,p,m[l+11],10,3174756917),c,f,m[l+2],15,718787259),b,c,m[l+9],21,3951481745),c=d(c,r),f=d(f,u),p=d(p,h),b=d(b,_);return(n(c)+n(f)+n(p)+n(b)).toLowerCase()},a.getSecondsFromString=function(e){var t=0,o=0,s=0;if(e)return"0"==(t=(e=e.split(":"))[0])[0]&&"0"!=t[1]&&(t=parseInt(t[1])),"00"==t&&(t=0),"0"==(o=e[1])[0]&&"0"!=o[1]&&(o=parseInt(o[1])),"00"==o&&(o=0),secs=parseInt(e[2].replace(/,.*/gi,"")),"0"==secs[0]&&"0"!=secs[1]&&(secs=parseInt(secs[1])),"00"==secs&&(secs=0),0!=t&&(s+=60*t*60),0!=o&&(s+=60*o),s+=secs},a.indexOfArray=function(e,t){for(var o=e.length,s=0;s<o;s++)if(e[s]===t)return s;return-1},a.randomizeArray=function(e){for(var t=[],o=e.concat(),s=o.length,i=0;i<s;i++){var n=Math.floor(Math.random()*o.length);t.push(o[n]),o.splice(n,1)}return t},a.getCookie=function(e){for(var t=e+"=",o=document.cookie.split(";"),s=0;s<o.length;s++){for(var i=o[s];" "==i.charAt(0);)i=i.substring(1,i.length);if(0==i.indexOf(t))return i.substring(t.length,i.length)}return null},a.parent=function(e,t){for(void 0===t&&(t=1);t--&&e;)e=e.parentNode;return e&&1===e.nodeType?e:null},a.sibling=function(e,t){for(;e&&0!==t;)if(0<t){if(e.nextElementSibling)e=e.nextElementSibling;else for(e=e.nextSibling;e&&1!==e.nodeType;e=e.nextSibling);t--}else{if(e.previousElementSibling)e=e.previousElementSibling;else for(e=e.previousSibling;e&&1!==e.nodeType;e=e.previousSibling);t++}return e},a.getChildAt=function(e,t){var o=a.getChildren(e);return t<0&&(t+=o.length),t<0?null:o[t]},a.getChildById=function(e){return document.getElementById(e)||void 0},a.getChildren=function(e,t){for(var o=[],s=e.firstChild;null!=s;s=s.nextSibling)t?o.push(s):1===s.nodeType&&o.push(s);return o},a.getChildrenFromAttribute=function(e,t,o){for(var s=[],i=e.firstChild;null!=i;i=i.nextSibling)o&&a.hasAttribute(i,t)?s.push(i):1===i.nodeType&&a.hasAttribute(i,t)&&s.push(i);return 0==s.length?void 0:s},a.getChildFromNodeListFromAttribute=function(e,t,o){for(var s=e.firstChild;null!=s;s=s.nextSibling){if(o&&a.hasAttribute(s,t))return s;if(1===s.nodeType&&a.hasAttribute(s,t))return s}},a.getAttributeValue=function(e,t){if(a.hasAttribute(e,t))return e.getAttribute(t)},a.hasAttribute=function(e,t){return e.hasAttribute?e.hasAttribute(t):!!e.attributes[t]},a.insertNodeAt=function(e,t,o){var s=a.children(e);if(o<0||o>s.length)throw new Error("invalid index!");e.insertBefore(t,s[o])},a.hasCanvas=function(){return Boolean(document.createElement("canvas"))},a.getCanvasWithModifiedColor=function(e,t,o){if(e){var s,i,n=document.createElement("canvas"),l=n.getContext("2d"),r=null,a=parseInt(t.replace(/^#/,""),16),d=a>>>16&255,u=a>>>8&255,h=255&a;n.style.position="absolute",n.style.left="0px",n.style.top="0px",n.style.margin="0px",n.style.padding="0px",n.style.maxWidth="none",n.style.maxHeight="none",n.style.border="none",n.style.lineHeight="1",n.style.backgroundColor="transparent",n.style.backfaceVisibility="hidden",n.style.webkitBackfaceVisibility="hidden",n.style.MozBackfaceVisibility="hidden",n.style.MozImageRendering="optimizeSpeed",n.style.WebkitImageRendering="optimizeSpeed",n.width=e.width,n.height=e.height,l.drawImage(e,0,0,e.naturalWidth,e.naturalHeight,0,0,e.width,e.height),i=l.getImageData(0,0,e.width,e.height),r=l.getImageData(0,0,e.width,e.height);for(var _=0,c=i.data.length;_<c;_+=4)0<r.data[_+3]&&(r.data[_]=i.data[_]/255*d,r.data[_+1]=i.data[_+1]/255*u,r.data[_+2]=i.data[_+2]/255*h);return l.globalAlpha=.5,l.putImageData(r,0,0),l.drawImage(n,0,0),o&&((s=new Image).src=n.toDataURL()),{canvas:n,image:s}}},a.changeCanvasHEXColor=function(e,t,o,s){if(e){var i,n=(t=t).getContext("2d"),l=null,r=parseInt(o.replace(/^#/,""),16),a=r>>>16&255,d=r>>>8&255,u=255&r;t.width=e.width,t.height=e.height,n.drawImage(e,0,0,e.naturalWidth,e.naturalHeight,0,0,e.width,e.height),i=n.getImageData(0,0,e.width,e.height),l=n.getImageData(0,0,e.width,e.height);for(var h=0,_=i.data.length;h<_;h+=4)0<l.data[h+3]&&(l.data[h]=i.data[h]/255*a,l.data[h+1]=i.data[h+1]/255*d,l.data[h+2]=i.data[h+2]/255*u);if(n.globalAlpha=.5,n.putImageData(l,0,0),n.drawImage(t,0,0),s){var c=new Image;return c.src=t.toDataURL(),c}}},a.hitTest=function(e,t,o){if(!e)throw Error("Hit test target is null!");var s=e.getBoundingClientRect();return t>=s.left&&t<=s.left+(s.right-s.left)&&o>=s.top&&o<=s.top+(s.bottom-s.top)},a.getScrollOffsets=function(){return null!=t.pageXOffset?{x:t.pageXOffset,y:t.pageYOffset}:"CSS1Compat"==document.compatMode?{x:document.documentElement.scrollLeft,y:document.documentElement.scrollTop}:void 0},a.getViewportSize=function(){return a.hasPointerEvent&&1<navigator.msMaxTouchPoints?{w:document.documentElement.clientWidth||t.innerWidth,h:document.documentElement.clientHeight||t.innerHeight}:a.isMobile?{w:t.innerWidth,h:t.innerHeight}:{w:document.documentElement.clientWidth||t.innerWidth,h:document.documentElement.clientHeight||t.innerHeight}},a.getViewportMouseCoordinates=function(e){var t=a.getScrollOffsets();return e.touches?{screenX:null==e.touches[0]?e.touches.pageX-t.x:e.touches[0].pageX-t.x,screenY:null==e.touches[0]?e.touches.pageY-t.y:e.touches[0].pageY-t.y}:{screenX:null==e.clientX?e.pageX-t.x:e.clientX,screenY:null==e.clientY?e.pageY-t.y:e.clientY}},a.hexToRgb=function(e){e=e.replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i,function(e,t,o,s){return t+t+o+o+s+s});var t=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e);return"rgb("+(t=t?{r:parseInt(t[1],16),g:parseInt(t[2],16),b:parseInt(t[3],16)}:null).r+","+t.g+","+t.b+")"},a.hasPointerEvent=Boolean(t.navigator.msPointerEnabled)||Boolean(t.navigator.pointerEnabled),a.isMobile=function(){var e=["android","webos","iphone","ipad","blackberry","kfsowi"];for(i in e)if(-1!=navigator.userAgent.toLowerCase().indexOf(e[i]))return!0;return!1}(),a.isAndroid=-1!=navigator.userAgent.toLowerCase().indexOf("android".toLowerCase()),a.hasWEBGL=function(){try{var e=document.createElement("canvas");return!!t.WebGLRenderingContext&&(e.getContext("webgl")||e.getContext("experimental-webgl"))}catch(e){return!1}}(),a.isLocal="file:"==document.location.protocol,a.isSafari=-1!=navigator.userAgent.toLowerCase().indexOf("safari")&&-1==navigator.userAgent.toLowerCase().indexOf("chrome"),a.isOpera=-1!=navigator.userAgent.toLowerCase().indexOf("opr"),a.isFirefox=-1!=navigator.userAgent.toLowerCase().indexOf("firefox"),a.isIEWebKit=Boolean(document.documentElement.msRequestFullscreen),a.isIE=Boolean(-1!=navigator.userAgent.toLowerCase().indexOf("msie"))||Boolean(-1!=navigator.userAgent.toLowerCase().indexOf("edge"))||Boolean(document.documentElement.msRequestFullscreen),a.isIEAndLessThen9=Boolean(-1!=navigator.userAgent.toLowerCase().indexOf("msie 7"))||Boolean(-1!=navigator.userAgent.toLowerCase().indexOf("msie 8")),a.isChrome=!a.isIE&&-1!=navigator.userAgent.toLowerCase().indexOf("chrome"),a.isIE7=Boolean(-1!=navigator.userAgent.toLowerCase().indexOf("msie 7")),a.isApple=Boolean(-1!=navigator.appVersion.toLowerCase().indexOf("mac")),a.isIphone=navigator.userAgent.match(/(iPhone|iPod)/g),a.hasFullScreen=a.dumy.requestFullScreen||a.dumy.mozRequestFullScreen||a.dumy.webkitRequestFullScreen||a.dumy.msieRequestFullScreen,a.volumeCanBeSet=function(){var e=document.createElement("audio");if(e)return(e.volume=0)==e.volume}(),a.getVideoFormat=function(){var e,t=document.createElement("video");if(t.canPlayType)return"probably"==t.canPlayType("video/mp4")||"maybe"==t.canPlayType("video/mp4")?e=".mp4":"probably"==t.canPlayType("video/ogg")||"maybe"==t.canPlayType("video/ogg")?e=".ogg":"probably"!=t.canPlayType("video/webm")&&"maybe"!=t.canPlayType("video/webm")||(e=".webm"),t=null,e}(),a.onReady=function(e){document.addEventListener?t.addEventListener("DOMContentLoaded",function(){a.checkIfHasTransofrms(),a.hasFullScreen=a.checkIfHasFullscreen(),setTimeout(e,100)}):document.onreadystatechange=function(){a.checkIfHasTransofrms(),a.hasFullScreen=a.checkIfHasFullscreen(),"complete"==document.readyState&&setTimeout(e,100)}},a.checkIfHasTransofrms=function(){document.documentElement.appendChild(a.dumy),a.hasTransform3d=function(){for(var e,t,o=["transform","msTransform","WebkitTransform","MozTransform","OTransform","KhtmlTransform"];e=o.shift();)if(void 0!==a.dumy.style[e]&&(a.dumy.style.position="absolute",t=a.dumy.getBoundingClientRect().left,a.dumy.style[e]="translate3d(500px, 0px, 0px)",100<(t=Math.abs(a.dumy.getBoundingClientRect().left-t))&&t<900)){try{document.documentElement.removeChild(a.dumy)}catch(e){}return!0}try{document.documentElement.removeChild(a.dumy)}catch(e){}return!1}(),a.hasTransform2d=function(){for(var e,t=["transform","msTransform","WebkitTransform","MozTransform","OTransform","KhtmlTransform"];e=t.shift();)if(void 0!==a.dumy.style[e])return!0;try{document.documentElement.removeChild(a.dumy)}catch(e){}return!1}(),a.isReadyMethodCalled_bl=!0},a.checkIfHasFullscreen=function(){return Boolean(document.documentElement.requestFullScreen||document.documentElement.mozRequestFullScreen||document.documentElement.webkitRequestFullScreen||document.documentElement.msRequestFullscreen)},a.disableElementSelection=function(e){try{e.style.userSelect="none"}catch(e){}try{e.style.MozUserSelect="none"}catch(e){}try{e.style.webkitUserSelect="none"}catch(e){}try{e.style.khtmlUserSelect="none"}catch(e){}try{e.style.oUserSelect="none"}catch(e){}try{e.style.msUserSelect="none"}catch(e){}try{e.msUserSelect="none"}catch(e){}e.onselectstart=function(){return!1}},a.getUrlArgs=function(e){for(var t={},o=e.substr(e.indexOf("?")+1)||location.search.substring(1),s=(o=o.replace(/(\?*)(\/*)/g,"")).split("&"),i=0;i<s.length;i++){var n=s[i].indexOf("="),l=s[i].substring(0,n),r=s[i].substring(n+1);r=decodeURIComponent(r),t[l]=r}return t},a.getHashUrlArgs=function(e){for(var t={},o=e.substr(e.indexOf("#")+1)||location.search.substring(1),s=(o=o.replace(/(\?*)(\/*)/g,"")).split("&"),i=0;i<s.length;i++){var n=s[i].indexOf("="),l=s[i].substring(0,n),r=s[i].substring(n+1);r=decodeURIComponent(r),t[l]=r}return t},a.validateEmail=function(e){return!!/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(e)},a.isReadyMethodCalled_bl=!1,t.FWDEVPUtils=a}(window),!window.FWDAnimation){var _fwd_gsScope="undefined"!=typeof fwd_module&&fwd_module.exports&&"undefined"!=typeof fwd_global?fwd_global:this||window;(_fwd_gsScope._fwd_gsQueue||(_fwd_gsScope._fwd_gsQueue=[])).push(function(){"use strict";var E,S,P,w,m,o,g,T,y,v,c,f,b,e,t,a,s;_fwd_gsScope.FWDFWD_gsDefine("FWDAnimation",["core.FWDAnim","core.FWDSimpleTimeline","FWDTweenLite"],function(s,u,b){var m=function(e){var t,o=[],s=e.length;for(t=0;t!==s;o.push(e[t++]));return o},g=function(e,t,o){var s,i,n=e.cycle;for(s in n)i=n[s],e[s]="function"==typeof i?i(o,t[o]):i[o%i.length];delete e.cycle},y=function(e,t,o){b.call(this,e,t,o),this._cycle=0,this._yoyo=!0===this.vars.yoyo,this._repeat=this.vars.repeat||0,this._repeatDelay=this.vars.repeatDelay||0,this._dirty=!0,this.render=y.prototype.render},v=1e-10,S=b._internals,P=S.isSelector,E=S.isArray,e=y.prototype=b.to({},.1,{}),w=[];y.version="1.19.0",e.constructor=y,e.kill()._gc=!1,y.killTweensOf=y.killDelayedCallsTo=b.killTweensOf,y.getTweensOf=b.getTweensOf,y.lagSmoothing=b.lagSmoothing,y.ticker=b.ticker,y.render=b.render,e.invalidate=function(){return this._yoyo=!0===this.vars.yoyo,this._repeat=this.vars.repeat||0,this._repeatDelay=this.vars.repeatDelay||0,this._uncache(!0),b.prototype.invalidate.call(this)},e.updateTo=function(e,t){var o,s=this.ratio,i=this.vars.immediateRender||e.immediateRender;for(o in t&&this._startTime<this._timeline._time&&(this._startTime=this._timeline._time,this._uncache(!1),this._gc?this._enabled(!0,!1):this._timeline.insert(this,this._startTime-this._delay)),e)this.vars[o]=e[o];if(this._initted||i)if(t)this._initted=!1,i&&this.render(0,!0,!0);else if(this._gc&&this._enabled(!0,!1),this._notifyPluginsOfEnabled&&this._firstPT&&b._onPluginEvent("_onDisable",this),.998<this._time/this._duration){var n=this._totalTime;this.render(0,!0,!1),this._initted=!1,this.render(n,!0,!1)}else if(this._initted=!1,this._init(),0<this._time||i)for(var l,r=1/(1-s),a=this._firstPT;a;)l=a.s+a.c,a.c*=r,a.s=l-a.c,a=a._next;return this},e.render=function(e,t,o){this._initted||0===this._duration&&this.vars.repeat&&this.invalidate();var s,i,n,l,r,a,d,u,h=this._dirty?this.totalDuration():this._totalDuration,_=this._time,c=this._totalTime,f=this._cycle,p=this._duration,b=this._rawPrevTime;if(h-1e-7<=e?(this._totalTime=h,this._cycle=this._repeat,this._yoyo&&0!=(1&this._cycle)?(this._time=0,this.ratio=this._ease._calcEnd?this._ease.getRatio(0):0):(this._time=p,this.ratio=this._ease._calcEnd?this._ease.getRatio(1):1),this._reversed||(s=!0,i="onComplete",o=o||this._timeline.autoRemoveChildren),0===p&&(this._initted||!this.vars.lazy||o)&&(this._startTime===this._timeline._duration&&(e=0),(b<0||e<=0&&-1e-7<=e||b===v&&"isPause"!==this.data)&&b!==e&&(o=!0,v<b&&(i="onReverseComplete")),this._rawPrevTime=u=!t||e||b===e?e:v)):e<1e-7?(this._totalTime=this._time=this._cycle=0,this.ratio=this._ease._calcEnd?this._ease.getRatio(0):0,(0!==c||0===p&&0<b)&&(i="onReverseComplete",s=this._reversed),e<0&&(this._active=!1,0===p&&(this._initted||!this.vars.lazy||o)&&(0<=b&&(o=!0),this._rawPrevTime=u=!t||e||b===e?e:v)),this._initted||(o=!0)):(this._totalTime=this._time=e,0!==this._repeat&&(l=p+this._repeatDelay,this._cycle=this._totalTime/l>>0,0!==this._cycle&&this._cycle===this._totalTime/l&&c<=e&&this._cycle--,this._time=this._totalTime-this._cycle*l,this._yoyo&&0!=(1&this._cycle)&&(this._time=p-this._time),this._time>p?this._time=p:this._time<0&&(this._time=0)),this._easeType?(r=this._time/p,(1===(a=this._easeType)||3===a&&.5<=r)&&(r=1-r),3===a&&(r*=2),1===(d=this._easePower)?r*=r:2===d?r*=r*r:3===d?r*=r*r*r:4===d&&(r*=r*r*r*r),1===a?this.ratio=1-r:2===a?this.ratio=r:this._time/p<.5?this.ratio=r/2:this.ratio=1-r/2):this.ratio=this._ease.getRatio(this._time/p)),_!==this._time||o||f!==this._cycle){if(!this._initted){if(this._init(),!this._initted||this._gc)return;if(!o&&this._firstPT&&(!1!==this.vars.lazy&&this._duration||this.vars.lazy&&!this._duration))return this._time=_,this._totalTime=c,this._rawPrevTime=b,this._cycle=f,S.lazyTweens.push(this),void(this._lazy=[e,t]);this._time&&!s?this.ratio=this._ease.getRatio(this._time/p):s&&this._ease._calcEnd&&(this.ratio=this._ease.getRatio(0===this._time?0:1))}for(!1!==this._lazy&&(this._lazy=!1),this._active||!this._paused&&this._time!==_&&0<=e&&(this._active=!0),0===c&&(2===this._initted&&0<e&&this._init(),this._startAt&&(0<=e?this._startAt.render(e,t,o):i||(i="_dummyGS")),this.vars.onStart&&(0===this._totalTime&&0!==p||t||this._callback("onStart"))),n=this._firstPT;n;){if(n.f)n.t[n.p](n.c*this.ratio+n.s);else{var m=n.c*this.ratio+n.s;"x"==n.p?n.t.setX(m):"y"==n.p?n.t.setY(m):"z"==n.p?n.t.setZ(m):"angleX"==n.p?n.t.setAngleX(m):"angleY"==n.p?n.t.setAngleY(m):"angleZ"==n.p?n.t.setAngleZ(m):"w"==n.p?n.t.setWidth(m):"h"==n.p?n.t.setHeight(m):"alpha"==n.p?n.t.setAlpha(m):"scale"==n.p?n.t.setScale2(m):n.t[n.p]=m}n=n._next}this._onUpdate&&(e<0&&this._startAt&&this._startTime&&this._startAt.render(e,t,o),t||(this._totalTime!==c||i)&&this._callback("onUpdate")),this._cycle!==f&&(t||this._gc||this.vars.onRepeat&&this._callback("onRepeat")),i&&(this._gc&&!o||(e<0&&this._startAt&&!this._onUpdate&&this._startTime&&this._startAt.render(e,t,o),s&&(this._timeline.autoRemoveChildren&&this._enabled(!1,!1),this._active=!1),!t&&this.vars[i]&&this._callback(i),0===p&&this._rawPrevTime===v&&u!==v&&(this._rawPrevTime=0)))}else c!==this._totalTime&&this._onUpdate&&(t||this._callback("onUpdate"))},y.to=function(e,t,o){return new y(e,t,o)},y.from=function(e,t,o){return o.runBackwards=!0,o.immediateRender=0!=o.immediateRender,new y(e,t,o)},y.fromTo=function(e,t,o,s){return s.startAt=o,s.immediateRender=0!=s.immediateRender&&0!=o.immediateRender,new y(e,t,s)},y.staggerTo=y.allTo=function(e,t,o,s,i,n,l){s=s||0;var r,a,d,u,h=0,_=[],c=function(){o.onComplete&&o.onComplete.apply(o.onCompleteScope||this,arguments),i.apply(l||o.callbackScope||this,n||w)},f=o.cycle,p=o.startAt&&o.startAt.cycle;for(E(e)||("string"==typeof e&&(e=b.selector(e)||e),P(e)&&(e=m(e))),e=e||[],s<0&&((e=m(e)).reverse(),s*=-1),r=e.length-1,d=0;d<=r;d++){for(u in a={},o)a[u]=o[u];if(f&&(g(a,e,d),null!=a.duration&&(t=a.duration,delete a.duration)),p){for(u in p=a.startAt={},o.startAt)p[u]=o.startAt[u];g(a.startAt,e,d)}a.delay=h+(a.delay||0),d===r&&i&&(a.onComplete=c),_[d]=new y(e[d],t,a),h+=s}return _},y.staggerFrom=y.allFrom=function(e,t,o,s,i,n,l){return o.runBackwards=!0,o.immediateRender=0!=o.immediateRender,y.staggerTo(e,t,o,s,i,n,l)},y.staggerFromTo=y.allFromTo=function(e,t,o,s,i,n,l,r){return s.startAt=o,s.immediateRender=0!=s.immediateRender&&0!=o.immediateRender,y.staggerTo(e,t,s,i,n,l,r)},y.delayedCall=function(e,t,o,s,i){return new y(t,0,{delay:e,onComplete:t,onCompleteParams:o,callbackScope:s,onReverseComplete:t,onReverseCompleteParams:o,immediateRender:!1,useFrames:i,overwrite:0})},y.set=function(e,t){return new y(e,0,t)},y.isTweening=function(e){return 0<b.getTweensOf(e,!0).length};var n=function(e,t){for(var o=[],s=0,i=e._first;i;)i instanceof b?o[s++]=i:(t&&(o[s++]=i),s=(o=o.concat(n(i,t))).length),i=i._next;return o},h=y.getAllTweens=function(e){return n(s._rootTimeline,e).concat(n(s._rootFramesTimeline,e))};y.killAll=function(e,t,o,s){null==t&&(t=!0),null==o&&(o=!0);var i,n,l,r=h(0!=s),a=r.length,d=t&&o&&s;for(l=0;l<a;l++)n=r[l],(d||n instanceof u||(i=n.target===n.vars.onComplete)&&o||t&&!i)&&(e?n.totalTime(n._reversed?0:n.totalDuration()):n._enabled(!1,!1))},y.killChildTweensOf=function(e,t){if(null!=e){var o,s,i,n,l,r=S.tweenLookup;if("string"==typeof e&&(e=b.selector(e)||e),P(e)&&(e=m(e)),E(e))for(n=e.length;-1<--n;)y.killChildTweensOf(e[n],t);else{for(i in o=[],r)for(s=r[i].target.parentNode;s;)s===e&&(o=o.concat(r[i].tweens)),s=s.parentNode;for(l=o.length,n=0;n<l;n++)t&&o[n].totalTime(o[n].totalDuration()),o[n]._enabled(!1,!1)}}};var i=function(e,t,o,s){t=!1!==t,o=!1!==o;for(var i,n,l=h(s=!1!==s),r=t&&o&&s,a=l.length;-1<--a;)n=l[a],(r||n instanceof u||(i=n.target===n.vars.onComplete)&&o||t&&!i)&&n.paused(e)};return y.pauseAll=function(e,t,o){i(!0,e,t,o)},y.resumeAll=function(e,t,o){i(!1,e,t,o)},y.globalTimeScale=function(e){var t=s._rootTimeline,o=b.ticker.time;return arguments.length?(e=e||v,t._startTime=o-(o-t._startTime)*t._timeScale/e,t=s._rootFramesTimeline,o=b.ticker.frame,t._startTime=o-(o-t._startTime)*t._timeScale/e,t._timeScale=s._rootTimeline._timeScale=e,e):t._timeScale},e.progress=function(e,t){return arguments.length?this.totalTime(this.duration()*(this._yoyo&&0!=(1&this._cycle)?1-e:e)+this._cycle*(this._duration+this._repeatDelay),t):this._time/this.duration()},e.totalProgress=function(e,t){return arguments.length?this.totalTime(this.totalDuration()*e,t):this._totalTime/this.totalDuration()},e.time=function(e,t){return arguments.length?(this._dirty&&this.totalDuration(),e>this._duration&&(e=this._duration),this._yoyo&&0!=(1&this._cycle)?e=this._duration-e+this._cycle*(this._duration+this._repeatDelay):0!==this._repeat&&(e+=this._cycle*(this._duration+this._repeatDelay)),this.totalTime(e,t)):this._time},e.duration=function(e){return arguments.length?s.prototype.duration.call(this,e):this._duration},e.totalDuration=function(e){return arguments.length?-1===this._repeat?this:this.duration((e-this._repeat*this._repeatDelay)/(this._repeat+1)):(this._dirty&&(this._totalDuration=-1===this._repeat?999999999999:this._duration*(this._repeat+1)+this._repeatDelay*this._repeat,this._dirty=!1),this._totalDuration)},e.repeat=function(e){return arguments.length?(this._repeat=e,this._uncache(!0)):this._repeat},e.repeatDelay=function(e){return arguments.length?(this._repeatDelay=e,this._uncache(!0)):this._repeatDelay},e.yoyo=function(e){return arguments.length?(this._yoyo=e,this):this._yoyo},y},!0),_fwd_gsScope.FWDFWD_gsDefine("FWDTimelineLite",["core.FWDAnim","core.FWDSimpleTimeline","FWDTweenLite"],function(u,h,_){var c=function(e){h.call(this,e),this._labels={},this.autoRemoveChildren=!0===this.vars.autoRemoveChildren,this.smoothChildTiming=!0===this.vars.smoothChildTiming,this._sortChildren=!0,this._onUpdate=this.vars.onUpdate;var t,o,s=this.vars;for(o in s)t=s[o],b(t)&&-1!==t.join("").indexOf("{self}")&&(s[o]=this._swapSelfInParams(t));b(s.tweens)&&this.add(s.tweens,0,s.align,s.stagger)},p=1e-10,e=_._internals,t=c._internals={},f=e.isSelector,b=e.isArray,m=e.lazyTweens,g=e.lazyRender,l=_fwd_gsScope.FWDFWD_gsDefine.globals,y=function(e){var t,o={};for(t in e)o[t]=e[t];return o},v=function(e,t,o){var s,i,n=e.cycle;for(s in n)i=n[s],e[s]="function"==typeof i?i.call(t[o],o):i[o%i.length];delete e.cycle},n=t.pauseCallback=function(){},S=function(e){var t,o=[],s=e.length;for(t=0;t!==s;o.push(e[t++]));return o},o=c.prototype=new h;return c.version="1.19.0",o.constructor=c,o.kill()._gc=o._forcingPlayhead=o._hasPause=!1,o.to=function(e,t,o,s){var i=o.repeat&&l.FWDAnimation||_;return t?this.add(new i(e,t,o),s):this.set(e,o,s)},o.from=function(e,t,o,s){return this.add((o.repeat&&l.FWDAnimation||_).from(e,t,o),s)},o.fromTo=function(e,t,o,s,i){var n=s.repeat&&l.FWDAnimation||_;return t?this.add(n.fromTo(e,t,o,s),i):this.set(e,s,i)},o.staggerTo=function(e,t,o,s,i,n,l,r){var a,d,u=new c({onComplete:n,onCompleteParams:l,callbackScope:r,smoothChildTiming:this.smoothChildTiming}),h=o.cycle;for("string"==typeof e&&(e=_.selector(e)||e),f(e=e||[])&&(e=S(e)),(s=s||0)<0&&((e=S(e)).reverse(),s*=-1),d=0;d<e.length;d++)(a=y(o)).startAt&&(a.startAt=y(a.startAt),a.startAt.cycle&&v(a.startAt,e,d)),h&&(v(a,e,d),null!=a.duration&&(t=a.duration,delete a.duration)),u.to(e[d],t,a,d*s);return this.add(u,i)},o.staggerFrom=function(e,t,o,s,i,n,l,r){return o.immediateRender=0!=o.immediateRender,o.runBackwards=!0,this.staggerTo(e,t,o,s,i,n,l,r)},o.staggerFromTo=function(e,t,o,s,i,n,l,r,a){return s.startAt=o,s.immediateRender=0!=s.immediateRender&&0!=o.immediateRender,this.staggerTo(e,t,s,i,n,l,r,a)},o.call=function(e,t,o,s){return this.add(_.delayedCall(0,e,t,o),s)},o.set=function(e,t,o){return o=this._parseTimeOrLabel(o,0,!0),null==t.immediateRender&&(t.immediateRender=o===this._time&&!this._paused),this.add(new _(e,0,t),o)},c.exportRoot=function(e,t){null==(e=e||{}).smoothChildTiming&&(e.smoothChildTiming=!0);var o,s,i=new c(e),n=i._timeline;for(null==t&&(t=!0),n._remove(i,!0),i._startTime=0,i._rawPrevTime=i._time=i._totalTime=n._time,o=n._first;o;)s=o._next,t&&o instanceof _&&o.target===o.vars.onComplete||i.add(o,o._startTime-o._delay),o=s;return n.add(i,0),i},o.add=function(e,t,o,s){var i,n,l,r,a,d;if("number"!=typeof t&&(t=this._parseTimeOrLabel(t,0,!0,e)),!(e instanceof u)){if(e instanceof Array||e&&e.push&&b(e)){for(o=o||"normal",s=s||0,i=t,n=e.length,l=0;l<n;l++)b(r=e[l])&&(r=new c({tweens:r})),this.add(r,i),"string"!=typeof r&&"function"!=typeof r&&("sequence"===o?i=r._startTime+r.totalDuration()/r._timeScale:"start"===o&&(r._startTime-=r.delay())),i+=s;return this._uncache(!0)}if("string"==typeof e)return this.addLabel(e,t);if("function"!=typeof e)throw"Cannot add "+e+" into the timeline; it is not a tween, timeline, function, or string.";e=_.delayedCall(0,e)}if(h.prototype.add.call(this,e,t),(this._gc||this._time===this._duration)&&!this._paused&&this._duration<this.duration())for(d=(a=this).rawTime()>e._startTime;a._timeline;)d&&a._timeline.smoothChildTiming?a.totalTime(a._totalTime,!0):a._gc&&a._enabled(!0,!1),a=a._timeline;return this},o.remove=function(e){if(e instanceof u){this._remove(e,!1);var t=e._timeline=e.vars.useFrames?u._rootFramesTimeline:u._rootTimeline;return e._startTime=(e._paused?e._pauseTime:t._time)-(e._reversed?e.totalDuration()-e._totalTime:e._totalTime)/e._timeScale,this}if(e instanceof Array||e&&e.push&&b(e)){for(var o=e.length;-1<--o;)this.remove(e[o]);return this}return"string"==typeof e?this.removeLabel(e):this.kill(null,e)},o._remove=function(e,t){h.prototype._remove.call(this,e,t);var o=this._last;return o?this._time>o._startTime+o._totalDuration/o._timeScale&&(this._time=this.duration(),this._totalTime=this._totalDuration):this._time=this._totalTime=this._duration=this._totalDuration=0,this},o.append=function(e,t){return this.add(e,this._parseTimeOrLabel(null,t,!0,e))},o.insert=o.insertMultiple=function(e,t,o,s){return this.add(e,t||0,o,s)},o.appendMultiple=function(e,t,o,s){return this.add(e,this._parseTimeOrLabel(null,t,!0,e),o,s)},o.addLabel=function(e,t){return this._labels[e]=this._parseTimeOrLabel(t),this},o.addPause=function(e,t,o,s){var i=_.delayedCall(0,n,o,s||this);return i.vars.onComplete=i.vars.onReverseComplete=t,i.data="isPause",this._hasPause=!0,this.add(i,e)},o.removeLabel=function(e){return delete this._labels[e],this},o.getLabelTime=function(e){return null!=this._labels[e]?this._labels[e]:-1},o._parseTimeOrLabel=function(e,t,o,s){var i;if(s instanceof u&&s.timeline===this)this.remove(s);else if(s&&(s instanceof Array||s.push&&b(s)))for(i=s.length;-1<--i;)s[i]instanceof u&&s[i].timeline===this&&this.remove(s[i]);if("string"==typeof t)return this._parseTimeOrLabel(t,o&&"number"==typeof e&&null==this._labels[t]?e-this.duration():0,o);if(t=t||0,"string"!=typeof e||!isNaN(e)&&null==this._labels[e])null==e&&(e=this.duration());else{if(-1===(i=e.indexOf("=")))return null==this._labels[e]?o?this._labels[e]=this.duration()+t:t:this._labels[e]+t;t=parseInt(e.charAt(i-1)+"1",10)*Number(e.substr(i+1)),e=1<i?this._parseTimeOrLabel(e.substr(0,i-1),0,o):this.duration()}return Number(e)+t},o.seek=function(e,t){return this.totalTime("number"==typeof e?e:this._parseTimeOrLabel(e),!1!==t)},o.stop=function(){return this.paused(!0)},o.gotoAndPlay=function(e,t){return this.play(e,t)},o.gotoAndStop=function(e,t){return this.pause(e,t)},o.render=function(e,t,o){this._gc&&this._enabled(!0,!1);var s,i,n,l,r,a,d,u=this._dirty?this.totalDuration():this._totalDuration,h=this._time,_=this._startTime,c=this._timeScale,f=this._paused;if(u-1e-7<=e)this._totalTime=this._time=u,this._reversed||this._hasPausedChild()||(i=!0,l="onComplete",r=!!this._timeline.autoRemoveChildren,0===this._duration&&(e<=0&&-1e-7<=e||this._rawPrevTime<0||this._rawPrevTime===p)&&this._rawPrevTime!==e&&this._first&&(r=!0,this._rawPrevTime>p&&(l="onReverseComplete"))),this._rawPrevTime=this._duration||!t||e||this._rawPrevTime===e?e:p,e=u+1e-4;else if(e<1e-7)if(this._totalTime=this._time=0,(0!==h||0===this._duration&&this._rawPrevTime!==p&&(0<this._rawPrevTime||e<0&&0<=this._rawPrevTime))&&(l="onReverseComplete",i=this._reversed),e<0)this._active=!1,this._timeline.autoRemoveChildren&&this._reversed?(r=i=!0,l="onReverseComplete"):0<=this._rawPrevTime&&this._first&&(r=!0),this._rawPrevTime=e;else{if(this._rawPrevTime=this._duration||!t||e||this._rawPrevTime===e?e:p,0===e&&i)for(s=this._first;s&&0===s._startTime;)s._duration||(i=!1),s=s._next;e=0,this._initted||(r=!0)}else{if(this._hasPause&&!this._forcingPlayhead&&!t){if(h<=e)for(s=this._first;s&&s._startTime<=e&&!a;)s._duration||"isPause"!==s.data||s.ratio||0===s._startTime&&0===this._rawPrevTime||(a=s),s=s._next;else for(s=this._last;s&&s._startTime>=e&&!a;)s._duration||"isPause"===s.data&&0<s._rawPrevTime&&(a=s),s=s._prev;a&&(this._time=e=a._startTime,this._totalTime=e+this._cycle*(this._totalDuration+this._repeatDelay))}this._totalTime=this._time=this._rawPrevTime=e}if(this._time!==h&&this._first||o||r||a){if(this._initted||(this._initted=!0),this._active||!this._paused&&this._time!==h&&0<e&&(this._active=!0),0===h&&this.vars.onStart&&(0===this._time&&this._duration||t||this._callback("onStart")),h<=(d=this._time))for(s=this._first;s&&(n=s._next,d===this._time&&(!this._paused||f));)(s._active||s._startTime<=d&&!s._paused&&!s._gc)&&(a===s&&this.pause(),s._reversed?s.render((s._dirty?s.totalDuration():s._totalDuration)-(e-s._startTime)*s._timeScale,t,o):s.render((e-s._startTime)*s._timeScale,t,o)),s=n;else for(s=this._last;s&&(n=s._prev,d===this._time&&(!this._paused||f));){if(s._active||s._startTime<=h&&!s._paused&&!s._gc){if(a===s){for(a=s._prev;a&&a.endTime()>this._time;)a.render(a._reversed?a.totalDuration()-(e-a._startTime)*a._timeScale:(e-a._startTime)*a._timeScale,t,o),a=a._prev;a=null,this.pause()}s._reversed?s.render((s._dirty?s.totalDuration():s._totalDuration)-(e-s._startTime)*s._timeScale,t,o):s.render((e-s._startTime)*s._timeScale,t,o)}s=n}this._onUpdate&&(t||(m.length&&g(),this._callback("onUpdate"))),l&&(this._gc||_!==this._startTime&&c===this._timeScale||(0===this._time||u>=this.totalDuration())&&(i&&(m.length&&g(),this._timeline.autoRemoveChildren&&this._enabled(!1,!1),this._active=!1),!t&&this.vars[l]&&this._callback(l)))}},o._hasPausedChild=function(){for(var e=this._first;e;){if(e._paused||e instanceof c&&e._hasPausedChild())return!0;e=e._next}return!1},o.getChildren=function(e,t,o,s){s=s||-9999999999;for(var i=[],n=this._first,l=0;n;)n._startTime<s||(n instanceof _?!1!==t&&(i[l++]=n):(!1!==o&&(i[l++]=n),!1!==e&&(l=(i=i.concat(n.getChildren(!0,t,o))).length))),n=n._next;return i},o.getTweensOf=function(e,t){var o,s,i=this._gc,n=[],l=0;for(i&&this._enabled(!0,!0),s=(o=_.getTweensOf(e)).length;-1<--s;)(o[s].timeline===this||t&&this._contains(o[s]))&&(n[l++]=o[s]);return i&&this._enabled(!1,!0),n},o.recent=function(){return this._recent},o._contains=function(e){for(var t=e.timeline;t;){if(t===this)return!0;t=t.timeline}return!1},o.shiftChildren=function(e,t,o){o=o||0;for(var s,i=this._first,n=this._labels;i;)i._startTime>=o&&(i._startTime+=e),i=i._next;if(t)for(s in n)n[s]>=o&&(n[s]+=e);return this._uncache(!0)},o._kill=function(e,t){if(!e&&!t)return this._enabled(!1,!1);for(var o=t?this.getTweensOf(t):this.getChildren(!0,!0,!1),s=o.length,i=!1;-1<--s;)o[s]._kill(e,t)&&(i=!0);return i},o.clear=function(e){var t=this.getChildren(!1,!0,!0),o=t.length;for(this._time=this._totalTime=0;-1<--o;)t[o]._enabled(!1,!1);return!1!==e&&(this._labels={}),this._uncache(!0)},o.invalidate=function(){for(var e=this._first;e;)e.invalidate(),e=e._next;return u.prototype.invalidate.call(this)},o._enabled=function(e,t){if(e===this._gc)for(var o=this._first;o;)o._enabled(e,!0),o=o._next;return h.prototype._enabled.call(this,e,t)},o.totalTime=function(e,t,o){this._forcingPlayhead=!0;var s=u.prototype.totalTime.apply(this,arguments);return this._forcingPlayhead=!1,s},o.duration=function(e){return arguments.length?(0!==this.duration()&&0!==e&&this.timeScale(this._duration/e),this):(this._dirty&&this.totalDuration(),this._duration)},o.totalDuration=function(e){if(arguments.length)return e&&this.totalDuration()?this.timeScale(this._totalDuration/e):this;if(this._dirty){for(var t,o,s=0,i=this._last,n=999999999999;i;)t=i._prev,i._dirty&&i.totalDuration(),i._startTime>n&&this._sortChildren&&!i._paused?this.add(i,i._startTime-i._delay):n=i._startTime,i._startTime<0&&!i._paused&&(s-=i._startTime,this._timeline.smoothChildTiming&&(this._startTime+=i._startTime/this._timeScale),this.shiftChildren(-i._startTime,!1,-9999999999),n=0),s<(o=i._startTime+i._totalDuration/i._timeScale)&&(s=o),i=t;this._duration=this._totalDuration=s,this._dirty=!1}return this._totalDuration},o.paused=function(e){if(!e)for(var t=this._first,o=this._time;t;)t._startTime===o&&"isPause"===t.data&&(t._rawPrevTime=0),t=t._next;return u.prototype.paused.apply(this,arguments)},o.usesFrames=function(){for(var e=this._timeline;e._timeline;)e=e._timeline;return e===u._rootFramesTimeline},o.rawTime=function(){return this._paused?this._totalTime:(this._timeline.rawTime()-this._startTime)*this._timeScale},c},!0),_fwd_gsScope.FWDFWD_gsDefine("TimelineMax",["FWDTimelineLite","FWDTweenLite","easing.Ease"],function(t,r,e){var o=function(e){t.call(this,e),this._repeat=this.vars.repeat||0,this._repeatDelay=this.vars.repeatDelay||0,this._cycle=0,this._yoyo=!0===this.vars.yoyo,this._dirty=!0},D=1e-10,s=r._internals,W=s.lazyTweens,C=s.lazyRender,a=_fwd_gsScope.FWDFWD_gsDefine.globals,d=new e(null,null,1,0),i=o.prototype=new t;return i.constructor=o,i.kill()._gc=!1,o.version="1.19.0",i.invalidate=function(){return this._yoyo=!0===this.vars.yoyo,this._repeat=this.vars.repeat||0,this._repeatDelay=this.vars.repeatDelay||0,this._uncache(!0),t.prototype.invalidate.call(this)},i.addCallback=function(e,t,o,s){return this.add(r.delayedCall(0,e,o,s),t)},i.removeCallback=function(e,t){if(e)if(null==t)this._kill(null,e);else for(var o=this.getTweensOf(e,!1),s=o.length,i=this._parseTimeOrLabel(t);-1<--s;)o[s]._startTime===i&&o[s]._enabled(!1,!1);return this},i.removePause=function(e){return this.removeCallback(t._internals.pauseCallback,e)},i.tweenTo=function(e,t){t=t||{};var o,s,i,n={ease:d,useFrames:this.usesFrames(),immediateRender:!1},l=t.repeat&&a.FWDAnimation||r;for(s in t)n[s]=t[s];return n.time=this._parseTimeOrLabel(e),o=Math.abs(Number(n.time)-this._time)/this._timeScale||.001,i=new l(this,o,n),n.onStart=function(){i.target.paused(!0),i.vars.time!==i.target.time()&&o===i.duration()&&i.duration(Math.abs(i.vars.time-i.target.time())/i.target._timeScale),t.onStart&&i._callback("onStart")},i},i.tweenFromTo=function(e,t,o){o=o||{},e=this._parseTimeOrLabel(e),o.startAt={onComplete:this.seek,onCompleteParams:[e],callbackScope:this},o.immediateRender=!1!==o.immediateRender;var s=this.tweenTo(t,o);return s.duration(Math.abs(s.vars.time-e)/this._timeScale||.001)},i.render=function(e,t,o){this._gc&&this._enabled(!0,!1);var s,i,n,l,r,a,d,u,h=this._dirty?this.totalDuration():this._totalDuration,_=this._duration,c=this._time,f=this._totalTime,p=this._startTime,b=this._timeScale,m=this._rawPrevTime,g=this._paused,y=this._cycle;if(h-1e-7<=e)this._locked||(this._totalTime=h,this._cycle=this._repeat),this._reversed||this._hasPausedChild()||(i=!0,l="onComplete",r=!!this._timeline.autoRemoveChildren,0===this._duration&&(e<=0&&-1e-7<=e||m<0||m===D)&&m!==e&&this._first&&(r=!0,D<m&&(l="onReverseComplete"))),this._rawPrevTime=this._duration||!t||e||this._rawPrevTime===e?e:D,this._yoyo&&0!=(1&this._cycle)?this._time=e=0:e=(this._time=_)+1e-4;else if(e<1e-7)if(this._locked||(this._totalTime=this._cycle=0),((this._time=0)!==c||0===_&&m!==D&&(0<m||e<0&&0<=m)&&!this._locked)&&(l="onReverseComplete",i=this._reversed),e<0)this._active=!1,this._timeline.autoRemoveChildren&&this._reversed?(r=i=!0,l="onReverseComplete"):0<=m&&this._first&&(r=!0),this._rawPrevTime=e;else{if(this._rawPrevTime=_||!t||e||this._rawPrevTime===e?e:D,0===e&&i)for(s=this._first;s&&0===s._startTime;)s._duration||(i=!1),s=s._next;e=0,this._initted||(r=!0)}else if(0===_&&m<0&&(r=!0),this._time=this._rawPrevTime=e,this._locked||(this._totalTime=e,0!==this._repeat&&(a=_+this._repeatDelay,this._cycle=this._totalTime/a>>0,0!==this._cycle&&this._cycle===this._totalTime/a&&f<=e&&this._cycle--,this._time=this._totalTime-this._cycle*a,this._yoyo&&0!=(1&this._cycle)&&(this._time=_-this._time),this._time>_?e=(this._time=_)+1e-4:this._time<0?this._time=e=0:e=this._time)),this._hasPause&&!this._forcingPlayhead&&!t){if(c<=(e=this._time))for(s=this._first;s&&s._startTime<=e&&!d;)s._duration||"isPause"!==s.data||s.ratio||0===s._startTime&&0===this._rawPrevTime||(d=s),s=s._next;else for(s=this._last;s&&s._startTime>=e&&!d;)s._duration||"isPause"===s.data&&0<s._rawPrevTime&&(d=s),s=s._prev;d&&(this._time=e=d._startTime,this._totalTime=e+this._cycle*(this._totalDuration+this._repeatDelay))}if(this._cycle!==y&&!this._locked){var v=this._yoyo&&0!=(1&y),S=v===(this._yoyo&&0!=(1&this._cycle)),P=this._totalTime,E=this._cycle,w=this._rawPrevTime,T=this._time;if(this._totalTime=y*_,this._cycle<y?v=!v:this._totalTime+=_,this._time=c,this._rawPrevTime=0===_?m-1e-4:m,this._cycle=y,this._locked=!0,c=v?0:_,this.render(c,t,0===_),t||this._gc||this.vars.onRepeat&&this._callback("onRepeat"),c!==this._time)return;if(S&&(c=v?_+1e-4:-1e-4,this.render(c,!0,!1)),this._locked=!1,this._paused&&!g)return;this._time=T,this._totalTime=P,this._cycle=E,this._rawPrevTime=w}if(this._time!==c&&this._first||o||r||d){if(this._initted||(this._initted=!0),this._active||!this._paused&&this._totalTime!==f&&0<e&&(this._active=!0),0===f&&this.vars.onStart&&(0===this._totalTime&&this._totalDuration||t||this._callback("onStart")),c<=(u=this._time))for(s=this._first;s&&(n=s._next,u===this._time&&(!this._paused||g));)(s._active||s._startTime<=this._time&&!s._paused&&!s._gc)&&(d===s&&this.pause(),s._reversed?s.render((s._dirty?s.totalDuration():s._totalDuration)-(e-s._startTime)*s._timeScale,t,o):s.render((e-s._startTime)*s._timeScale,t,o)),s=n;else for(s=this._last;s&&(n=s._prev,u===this._time&&(!this._paused||g));){if(s._active||s._startTime<=c&&!s._paused&&!s._gc){if(d===s){for(d=s._prev;d&&d.endTime()>this._time;)d.render(d._reversed?d.totalDuration()-(e-d._startTime)*d._timeScale:(e-d._startTime)*d._timeScale,t,o),d=d._prev;d=null,this.pause()}s._reversed?s.render((s._dirty?s.totalDuration():s._totalDuration)-(e-s._startTime)*s._timeScale,t,o):s.render((e-s._startTime)*s._timeScale,t,o)}s=n}this._onUpdate&&(t||(W.length&&C(),this._callback("onUpdate"))),l&&(this._locked||this._gc||p!==this._startTime&&b===this._timeScale||(0===this._time||h>=this.totalDuration())&&(i&&(W.length&&C(),this._timeline.autoRemoveChildren&&this._enabled(!1,!1),this._active=!1),!t&&this.vars[l]&&this._callback(l)))}else f!==this._totalTime&&this._onUpdate&&(t||this._callback("onUpdate"))},i.getActive=function(e,t,o){null==e&&(e=!0),null==t&&(t=!0),null==o&&(o=!1);var s,i,n=[],l=this.getChildren(e,t,o),r=0,a=l.length;for(s=0;s<a;s++)(i=l[s]).isActive()&&(n[r++]=i);return n},i.getLabelAfter=function(e){e||0!==e&&(e=this._time);var t,o=this.getLabelsArray(),s=o.length;for(t=0;t<s;t++)if(o[t].time>e)return o[t].name;return null},i.getLabelBefore=function(e){null==e&&(e=this._time);for(var t=this.getLabelsArray(),o=t.length;-1<--o;)if(t[o].time<e)return t[o].name;return null},i.getLabelsArray=function(){var e,t=[],o=0;for(e in this._labels)t[o++]={time:this._labels[e],name:e};return t.sort(function(e,t){return e.time-t.time}),t},i.progress=function(e,t){return arguments.length?this.totalTime(this.duration()*(this._yoyo&&0!=(1&this._cycle)?1-e:e)+this._cycle*(this._duration+this._repeatDelay),t):this._time/this.duration()},i.totalProgress=function(e,t){return arguments.length?this.totalTime(this.totalDuration()*e,t):this._totalTime/this.totalDuration()},i.totalDuration=function(e){return arguments.length?-1!==this._repeat&&e?this.timeScale(this.totalDuration()/e):this:(this._dirty&&(t.prototype.totalDuration.call(this),this._totalDuration=-1===this._repeat?999999999999:this._duration*(this._repeat+1)+this._repeatDelay*this._repeat),this._totalDuration)},i.time=function(e,t){return arguments.length?(this._dirty&&this.totalDuration(),e>this._duration&&(e=this._duration),this._yoyo&&0!=(1&this._cycle)?e=this._duration-e+this._cycle*(this._duration+this._repeatDelay):0!==this._repeat&&(e+=this._cycle*(this._duration+this._repeatDelay)),this.totalTime(e,t)):this._time},i.repeat=function(e){return arguments.length?(this._repeat=e,this._uncache(!0)):this._repeat},i.repeatDelay=function(e){return arguments.length?(this._repeatDelay=e,this._uncache(!0)):this._repeatDelay},i.yoyo=function(e){return arguments.length?(this._yoyo=e,this):this._yoyo},i.currentLabel=function(e){return arguments.length?this.seek(e,!0):this.getLabelBefore(this._time+1e-8)},o},!0),E=180/Math.PI,S=[],P=[],w=[],m={},o=_fwd_gsScope.FWDFWD_gsDefine.globals,g=function(e,t,o,s){o===s&&(o=s-(s-t)/1e6),e===t&&(t=e+(o-e)/1e6),this.a=e,this.b=t,this.c=o,this.d=s,this.da=s-e,this.ca=o-e,this.ba=t-e},T=function(e,t,o,s){var i={a:e},n={},l={},r={c:s},a=(e+t)/2,d=(t+o)/2,u=(o+s)/2,h=(a+d)/2,_=(d+u)/2,c=(_-h)/8;return i.b=a+(e-a)/4,n.b=h+c,i.c=n.a=(i.b+n.b)/2,n.c=l.a=(h+_)/2,l.b=_-c,r.b=u+(s-u)/4,l.c=r.a=(l.b+r.b)/2,[i,n,l,r]},y=function(e,t,o,s,i){var n,l,r,a,d,u,h,_,c,f,p,b,m,g=e.length-1,y=0,v=e[0].a;for(n=0;n<g;n++)l=(d=e[y]).a,r=d.d,a=e[y+1].d,_=i?(p=S[n],m=((b=P[n])+p)*t*.25/(s?.5:w[n]||.5),r-((u=r-(r-l)*(s?.5*t:0!==p?m/p:0))+(((h=r+(a-r)*(s?.5*t:0!==b?m/b:0))-u)*(3*p/(p+b)+.5)/4||0))):r-((u=r-(r-l)*t*.5)+(h=r+(a-r)*t*.5))/2,u+=_,h+=_,d.c=c=u,d.b=0!==n?v:v=d.a+.6*(d.c-d.a),d.da=r-l,d.ca=c-l,d.ba=v-l,o?(f=T(l,v,c,r),e.splice(y,1,f[0],f[1],f[2],f[3]),y+=4):y++,v=h;(d=e[y]).b=v,d.c=v+.4*(d.d-v),d.da=d.d-d.a,d.ca=d.c-d.a,d.ba=v-d.a,o&&(f=T(d.a,v,d.c,d.d),e.splice(y,1,f[0],f[1],f[2],f[3]))},v=function(e,t,o,s){var i,n,l,r,a,d,u=[];if(s)for(n=(e=[s].concat(e)).length;-1<--n;)"string"==typeof(d=e[n][t])&&"="===d.charAt(1)&&(e[n][t]=s[t]+Number(d.charAt(0)+d.substr(2)));if((i=e.length-2)<0)return u[0]=new g(e[0][t],0,0,e[i<-1?0:1][t]),u;for(n=0;n<i;n++)l=e[n][t],r=e[n+1][t],u[n]=new g(l,0,0,r),o&&(a=e[n+2][t],S[n]=(S[n]||0)+(r-l)*(r-l),P[n]=(P[n]||0)+(a-r)*(a-r));return u[n]=new g(e[n][t],0,0,e[n+1][t]),u},c=function(e,t,o,s,i,n){var l,r,a,d,u,h,_,c,f={},p=[],b=n||e[0];for(r in i="string"==typeof i?","+i+",":",x,y,z,left,top,right,bottom,marginTop,marginLeft,marginRight,marginBottom,paddingLeft,paddingTop,paddingRight,paddingBottom,backgroundPosition,backgroundPosition_y,",null==t&&(t=1),e[0])p.push(r);if(1<e.length){for(c=e[e.length-1],_=!0,l=p.length;-1<--l;)if(r=p[l],.05<Math.abs(b[r]-c[r])){_=!1;break}_&&(e=e.concat(),n&&e.unshift(n),e.push(e[1]),n=e[e.length-3])}for(S.length=P.length=w.length=0,l=p.length;-1<--l;)r=p[l],m[r]=-1!==i.indexOf(","+r+","),f[r]=v(e,r,m[r],n);for(l=S.length;-1<--l;)S[l]=Math.sqrt(S[l]),P[l]=Math.sqrt(P[l]);if(!s){for(l=p.length;-1<--l;)if(m[r])for(h=(a=f[p[l]]).length-1,d=0;d<h;d++)u=a[d+1].da/P[d]+a[d].da/S[d]||0,w[d]=(w[d]||0)+u*u;for(l=w.length;-1<--l;)w[l]=Math.sqrt(w[l])}for(l=p.length,d=o?4:1;-1<--l;)a=f[r=p[l]],y(a,t,o,s,m[r]),_&&(a.splice(0,d),a.splice(a.length-d,d));return f},f=function(e,t,o){for(var s,i,n,l,r,a,d,u,h,_,c,f=1/o,p=e.length;-1<--p;)for(n=(_=e[p]).a,l=_.d-n,r=_.c-n,a=_.b-n,s=i=0,u=1;u<=o;u++)s=i-(i=((d=f*u)*d*l+3*(h=1-d)*(d*r+h*a))*d),t[c=p*o+u-1]=(t[c]||0)+s*s},b=_fwd_gsScope.FWDFWD_gsDefine.plugin({propName:"bezier",priority:-1,version:"1.3.7",API:2,fwd_global:!0,init:function(e,t,o){this._target=e,t instanceof Array&&(t={values:t}),this._func={},this._mod={},this._props=[],this._timeRes=null==t.timeResolution?6:parseInt(t.timeResolution,10);var s,i,n,l,r,a=t.values||[],d={},u=a[0],h=t.autoRotate||o.vars.orientToBezier;for(s in this._autoRotate=h?h instanceof Array?h:[["x","y","rotation",!0===h?0:Number(h)||0]]:null,u)this._props.push(s);for(n=this._props.length;-1<--n;)s=this._props[n],this._overwriteProps.push(s),i=this._func[s]="function"==typeof e[s],d[s]=i?e[s.indexOf("set")||"function"!=typeof e["get"+s.substr(3)]?s:"get"+s.substr(3)]():parseFloat(e[s]),r||d[s]!==a[0][s]&&(r=d);if(this._beziers="cubic"!==t.type&&"quadratic"!==t.type&&"soft"!==t.type?c(a,isNaN(t.curviness)?1:t.curviness,!1,"thruBasic"===t.type,t.correlate,r):function(e,t,o){var s,i,n,l,r,a,d,u,h,_,c,f={},p="cubic"===(t=t||"soft")?3:2,b="soft"===t,m=[];if(b&&o&&(e=[o].concat(e)),null==e||e.length<p+1)throw"invalid Bezier data";for(h in e[0])m.push(h);for(a=m.length;-1<--a;){for(f[h=m[a]]=r=[],_=0,u=e.length,d=0;d<u;d++)s=null==o?e[d][h]:"string"==typeof(c=e[d][h])&&"="===c.charAt(1)?o[h]+Number(c.charAt(0)+c.substr(2)):Number(c),b&&1<d&&d<u-1&&(r[_++]=(s+r[_-2])/2),r[_++]=s;for(u=_-p+1,d=_=0;d<u;d+=p)s=r[d],i=r[d+1],n=r[d+2],l=2===p?0:r[d+3],r[_++]=c=3===p?new g(s,i,n,l):new g(s,(2*i+s)/3,(2*i+n)/3,n);r.length=_}return f}(a,t.type,d),this._segCount=this._beziers[s].length,this._timeRes){var _=function(e,t){var o,s,i,n,l=[],r=[],a=0,d=0,u=(t=t>>0||6)-1,h=[],_=[];for(o in e)f(e[o],l,t);for(i=l.length,s=0;s<i;s++)a+=Math.sqrt(l[s]),_[n=s%t]=a,n===u&&(d+=a,h[n=s/t>>0]=_,r[n]=d,a=0,_=[]);return{length:d,lengths:r,segments:h}}(this._beziers,this._timeRes);this._length=_.length,this._lengths=_.lengths,this._segments=_.segments,this._l1=this._li=this._s1=this._si=0,this._l2=this._lengths[0],this._curSeg=this._segments[0],this._s2=this._curSeg[0],this._prec=1/this._curSeg.length}if(h=this._autoRotate)for(this._initialRotations=[],h[0]instanceof Array||(this._autoRotate=h=[h]),n=h.length;-1<--n;){for(l=0;l<3;l++)s=h[n][l],this._func[s]="function"==typeof e[s]&&e[s.indexOf("set")||"function"!=typeof e["get"+s.substr(3)]?s:"get"+s.substr(3)];s=h[n][2],this._initialRotations[n]=(this._func[s]?this._func[s].call(this._target):this._target[s])||0,this._overwriteProps.push(s)}return this._startRatio=o.vars.runBackwards?1:0,!0},set:function(e){var t,o,s,i,n,l,r,a,d,u,h=this._segCount,_=this._func,c=this._target,f=e!==this._startRatio;if(this._timeRes){if(d=this._lengths,u=this._curSeg,e*=this._length,s=this._li,e>this._l2&&s<h-1){for(a=h-1;s<a&&(this._l2=d[++s])<=e;);this._l1=d[s-1],this._li=s,this._curSeg=u=this._segments[s],this._s2=u[this._s1=this._si=0]}else if(e<this._l1&&0<s){for(;0<s&&(this._l1=d[--s])>=e;);0===s&&e<this._l1?this._l1=0:s++,this._l2=d[s],this._li=s,this._curSeg=u=this._segments[s],this._s1=u[(this._si=u.length-1)-1]||0,this._s2=u[this._si]}if(t=s,e-=this._l1,s=this._si,e>this._s2&&s<u.length-1){for(a=u.length-1;s<a&&(this._s2=u[++s])<=e;);this._s1=u[s-1],this._si=s}else if(e<this._s1&&0<s){for(;0<s&&(this._s1=u[--s])>=e;);0===s&&e<this._s1?this._s1=0:s++,this._s2=u[s],this._si=s}l=(s+(e-this._s1)/(this._s2-this._s1))*this._prec||0}else l=(e-(t=e<0?0:1<=e?h-1:h*e>>0)*(1/h))*h;for(o=1-l,s=this._props.length;-1<--s;)i=this._props[s],r=(l*l*(n=this._beziers[i][t]).da+3*o*(l*n.ca+o*n.ba))*l+n.a,this._mod[i]&&(r=this._mod[i](r,c)),_[i]?c[i](r):"x"==i?c.setX(r):"y"==i?c.setY(r):"z"==i?c.setZ(r):"angleX"==i?c.setAngleX(r):"angleY"==i?c.setAngleY(r):"angleZ"==i?c.setAngleZ(r):"w"==i?c.setWidth(r):"h"==i?c.setHeight(r):"alpha"==i?c.setAlpha(r):"scale"==i?c.setScale2(r):c[i]=r;if(this._autoRotate){var p,b,m,g,y,v,S,P=this._autoRotate;for(s=P.length;-1<--s;)i=P[s][2],v=P[s][3]||0,S=!0===P[s][4]?1:E,n=this._beziers[P[s][0]],p=this._beziers[P[s][1]],n&&p&&(n=n[t],p=p[t],b=n.a+(n.b-n.a)*l,b+=((g=n.b+(n.c-n.b)*l)-b)*l,g+=(n.c+(n.d-n.c)*l-g)*l,m=p.a+(p.b-p.a)*l,m+=((y=p.b+(p.c-p.b)*l)-m)*l,y+=(p.c+(p.d-p.c)*l-y)*l,r=f?Math.atan2(y-m,g-b)*S+v:this._initialRotations[s],this._mod[i]&&(r=this._mod[i](r,c)),_[i]?c[i](r):c[i]=r)}}}),e=b.prototype,b.bezierThrough=c,b.cubicToQuadratic=T,b._autoCSS=!0,b.quadraticToCubic=function(e,t,o){return new g(e,(2*t+e)/3,(2*t+o)/3,o)},b._cssRegister=function(){var e=o.CSSPlugin;if(e){var t=e._internals,c=t._parseToProxy,f=t._setPluginRatio,p=t.CSSPropTween;t._registerComplexSpecialProp("bezier",{parser:function(e,t,o,s,i,n){t instanceof Array&&(t={values:t}),n=new b;var l,r,a,d=t.values,u=d.length-1,h=[],_={};if(u<0)return i;for(l=0;l<=u;l++)a=c(e,d[l],s,i,n,u!==l),h[l]=a.end;for(r in t)_[r]=t[r];return _.values=h,(i=new p(e,"bezier",0,0,a.pt,2)).data=a,i.plugin=n,i.setRatio=f,0===_.autoRotate&&(_.autoRotate=!0),!_.autoRotate||_.autoRotate instanceof Array||(l=!0===_.autoRotate?0:Number(_.autoRotate),_.autoRotate=null!=a.end.left?[["left","top","rotation",l,!1]]:null!=a.end.x&&[["x","y","rotation",l,!1]]),_.autoRotate&&(s._transform||s._enableTransforms(!1),a.autoRotate=s._target._gsTransform,a.proxy.rotation=a.autoRotate.rotation||0,s._overwriteProps.push("rotation")),n._onInitTween(a.proxy,_,s._tween),i}})}},e._mod=function(e){for(var t,o=this._overwriteProps,s=o.length;-1<--s;)(t=e[o[s]])&&"function"==typeof t&&(this._mod[o[s]]=t)},e._kill=function(e){var t,o,s=this._props;for(t in this._beziers)if(t in e)for(delete this._beziers[t],delete this._func[t],o=s.length;-1<--o;)s[o]===t&&s.splice(o,1);if(s=this._autoRotate)for(o=s.length;-1<--o;)e[s[o][2]]&&s.splice(o,1);return this._super._kill.call(this,e)},_fwd_gsScope.FWDFWD_gsDefine("plugins.CSSPlugin",["plugins.TweenPlugin","FWDTweenLite"],function(n,R){var f,w,T,p,U=function(){n.call(this,"css"),this._overwriteProps.length=0,this.setRatio=U.prototype.setRatio},d=_fwd_gsScope.FWDFWD_gsDefine.globals,b={},e=U.prototype=new n("css");(e.constructor=U).version="1.19.0",U.API=2,U.defaultTransformPerspective=0,U.defaultSkewType="compensated",U.defaultSmoothOrigin=!0,e="px",U.suffixMap={top:e,right:e,bottom:e,left:e,width:e,height:e,fontSize:e,padding:e,margin:e,perspective:e,lineHeight:""};var W,m,g,I,y,D,C,B,t,o,F=/(?:\-|\.|\b)(\d|\.|e\-)+/g,V=/(?:\d|\-\d|\.\d|\-\.\d|\+=\d|\-=\d|\+=.\d|\-=\.\d)+/g,v=/(?:\+=|\-=|\-|\b)[\d\-\.]+[a-zA-Z0-9]*(?:%|\b)/gi,u=/(?![+-]?\d*\.?\d+|[+-]|e[+-]\d+)[^0-9]/g,k=/(?:\d|\-|\+|=|#|\.)*/g,O=/opacity *=*([^)]*)/i,S=/opacity:([^;]*)/i,l=/alpha\(opacity *=.+?\)/i,P=/^(rgb|hsl)/,r=/([A-Z])/g,a=/-([a-z])/gi,E=/(^(?:url\(\"|url\())|(?:(\"\))$|\)$)/gi,h=function(e,t){return t.toUpperCase()},c=/(?:Left|Right|Width)/i,_=/(M11|M12|M21|M22)=[\d\-\.e]+/gi,H=/progid\:DXImageTransform\.Microsoft\.Matrix\(.+?\)/i,x=/,(?=[^\)]*(?:\(|$))/gi,L=/[\s,\(]/i,M=Math.PI/180,N=180/Math.PI,A={},X=document,s=function(e){return X.createElementNS?X.createElementNS("http://www.w3.org/1999/xhtml",e):X.createElement(e)},Y=s("div"),z=s("img"),i=U._internals={_specialProps:b},j=navigator.userAgent,Q=(t=j.indexOf("Android"),o=s("a"),g=-1!==j.indexOf("Safari")&&-1===j.indexOf("Chrome")&&(-1===t||3<Number(j.substr(t+8,1))),y=g&&Number(j.substr(j.indexOf("Version/")+8,1))<6,I=-1!==j.indexOf("Firefox"),(/MSIE ([0-9]{1,}[\.0-9]{0,})/.exec(j)||/Trident\/.*rv:([0-9]{1,}[\.0-9]{0,})/.exec(j))&&(D=parseFloat(RegExp.$1)),!!o&&(o.style.cssText="top:1px;opacity:.55;",/^0.55/.test(o.style.opacity))),G=function(e){return O.test("string"==typeof e?e:(e.currentStyle?e.currentStyle.filter:e.style.filter)||"")?parseFloat(RegExp.$1)/100:1},q=function(e){window.console&&console.log(e)},K="",J="",$=function(e,t){var o,s,i=(t=t||Y).style;if(void 0!==i[e])return e;for(e=e.charAt(0).toUpperCase()+e.substr(1),o=["O","Moz","ms","Ms","Webkit"],s=5;-1<--s&&void 0===i[o[s]+e];);return 0<=s?(K="-"+(J=3===s?"ms":o[s]).toLowerCase()+"-",J+e):null},Z=X.defaultView?X.defaultView.getComputedStyle:function(){},ee=U.getStyle=function(e,t,o,s,i){var n;return Q||"opacity"!==t?(!s&&e.style[t]?n=e.style[t]:(o=o||Z(e))?n=o[t]||o.getPropertyValue(t)||o.getPropertyValue(t.replace(r,"-$1").toLowerCase()):e.currentStyle&&(n=e.currentStyle[t]),null==i||n&&"none"!==n&&"auto"!==n&&"auto auto"!==n?n:i):G(e)},te=i.convertToPixels=function(e,t,o,s,i){if("px"===s||!s)return o;if("auto"===s||!o)return 0;var n,l,r,a=c.test(t),d=e,u=Y.style,h=o<0,_=1===o;if(h&&(o=-o),_&&(o*=100),"%"===s&&-1!==t.indexOf("border"))n=o/100*(a?e.clientWidth:e.clientHeight);else{if(u.cssText="border:0 solid red;position:"+ee(e,"position")+";line-height:0;","%"!==s&&d.appendChild&&"v"!==s.charAt(0)&&"rem"!==s)u[a?"borderLeftWidth":"borderTopWidth"]=o+s;else{if(l=(d=e.parentNode||X.body)._gsCache,r=R.ticker.frame,l&&a&&l.time===r)return l.width*o/100;u[a?"width":"height"]=o+s}d.appendChild(Y),n=parseFloat(Y[a?"offsetWidth":"offsetHeight"]),d.removeChild(Y),a&&"%"===s&&!1!==U.cacheWidths&&((l=d._gsCache=d._gsCache||{}).time=r,l.width=n/o*100),0!==n||i||(n=te(e,t,o,s,!0))}return _&&(n/=100),h?-n:n},oe=i.calculateOffset=function(e,t,o){if("absolute"!==ee(e,"position",o))return 0;var s="left"===t?"Left":"Top",i=ee(e,"margin"+s,o);return e["offset"+s]-(te(e,t,parseFloat(i),i.replace(k,""))||0)},se=function(e,t){var o,s,i,n={};if(t=t||Z(e,null))if(o=t.length)for(;-1<--o;)-1!==(i=t[o]).indexOf("-transform")&&He!==i||(n[i.replace(a,h)]=t.getPropertyValue(i));else for(o in t)-1!==o.indexOf("Transform")&&Oe!==o||(n[o]=t[o]);else if(t=e.currentStyle||e.style)for(o in t)"string"==typeof o&&void 0===n[o]&&(n[o.replace(a,h)]=t[o]);return Q||(n.opacity=G(e)),s=je(e,t,!1),n.rotation=s.rotation,n.skewX=s.skewX,n.scaleX=s.scaleX,n.scaleY=s.scaleY,n.x=s.x,n.y=s.y,Le&&(n.z=s.z,n.rotationX=s.rotationX,n.rotationY=s.rotationY,n.scaleZ=s.scaleZ),n.filters&&delete n.filters,n},ie=function(e,t,o,s,i){var n,l,r,a={},d=e.style;for(l in o)"cssText"!==l&&"length"!==l&&isNaN(l)&&(t[l]!==(n=o[l])||i&&i[l])&&-1===l.indexOf("Origin")&&("number"!=typeof n&&"string"!=typeof n||(a[l]="auto"!==n||"left"!==l&&"top"!==l?""!==n&&"auto"!==n&&"none"!==n||"string"!=typeof t[l]||""===t[l].replace(u,"")?n:0:oe(e,l),void 0!==d[l]&&(r=new ye(d,l,d[l],r))));if(s)for(l in s)"className"!==l&&(a[l]=s[l]);return{difs:a,firstMPT:r}},ne={width:["Left","Right"],height:["Top","Bottom"]},le=["marginLeft","marginRight","marginTop","marginBottom"],re=function(e,t,o){if("svg"===(e.nodeName+"").toLowerCase())return(o||Z(e))[t]||0;if(e.getBBox&&Xe(e))return e.getBBox()[t]||0;var s=parseFloat("width"===t?e.offsetWidth:e.offsetHeight),i=ne[t],n=i.length;for(o=o||Z(e,null);-1<--n;)s-=parseFloat(ee(e,"padding"+i[n],o,!0))||0,s-=parseFloat(ee(e,"border"+i[n]+"Width",o,!0))||0;return s},ae=function(e,t){if("contain"===e||"auto"===e||"auto auto"===e)return e+" ";null!=e&&""!==e||(e="0 0");var o,s=e.split(" "),i=-1!==e.indexOf("left")?"0%":-1!==e.indexOf("right")?"100%":s[0],n=-1!==e.indexOf("top")?"0%":-1!==e.indexOf("bottom")?"100%":s[1];if(3<s.length&&!t){for(s=e.split(", ").join(",").split(","),e=[],o=0;o<s.length;o++)e.push(ae(s[o]));return e.join(",")}return null==n?n="center"===i?"50%":"0":"center"===n&&(n="50%"),("center"===i||isNaN(parseFloat(i))&&-1===(i+"").indexOf("="))&&(i="50%"),e=i+" "+n+(2<s.length?" "+s[2]:""),t&&(t.oxp=-1!==i.indexOf("%"),t.oyp=-1!==n.indexOf("%"),t.oxr="="===i.charAt(1),t.oyr="="===n.charAt(1),t.ox=parseFloat(i.replace(u,"")),t.oy=parseFloat(n.replace(u,"")),t.v=e),t||e},de=function(e,t){return"function"==typeof e&&(e=e(B,C)),"string"==typeof e&&"="===e.charAt(1)?parseInt(e.charAt(0)+"1",10)*parseFloat(e.substr(2)):parseFloat(e)-parseFloat(t)||0},ue=function(e,t){return"function"==typeof e&&(e=e(B,C)),null==e?t:"string"==typeof e&&"="===e.charAt(1)?parseInt(e.charAt(0)+"1",10)*parseFloat(e.substr(2))+t:parseFloat(e)||0},he=function(e,t,o,s){var i,n,l,r,a;return"function"==typeof e&&(e=e(B,C)),(r=null==e?t:"number"==typeof e?e:(i=360,n=e.split("_"),l=((a="="===e.charAt(1))?parseInt(e.charAt(0)+"1",10)*parseFloat(n[0].substr(2)):parseFloat(n[0]))*(-1===e.indexOf("rad")?1:N)-(a?0:t),n.length&&(s&&(s[o]=t+l),-1!==e.indexOf("short")&&(l%=i)!==l%180&&(l=l<0?l+i:l-i),-1!==e.indexOf("_cw")&&l<0?l=(l+3599999999640)%i-(l/i|0)*i:-1!==e.indexOf("ccw")&&0<l&&(l=(l-3599999999640)%i-(l/i|0)*i)),t+l))<1e-6&&-1e-6<r&&(r=0),r},_e={aqua:[0,255,255],lime:[0,255,0],silver:[192,192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,255],navy:[0,0,128],white:[255,255,255],fuchsia:[255,0,255],olive:[128,128,0],yellow:[255,255,0],orange:[255,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[255,0,0],pink:[255,192,203],cyan:[0,255,255],transparent:[255,255,255,0]},ce=function(e,t,o){return 255*(6*(e=e<0?e+1:1<e?e-1:e)<1?t+(o-t)*e*6:e<.5?o:3*e<2?t+(o-t)*(2/3-e)*6:t)+.5|0},fe=U.parseColor=function(e,t){var o,s,i,n,l,r,a,d,u,h,_;if(e)if("number"==typeof e)o=[e>>16,e>>8&255,255&e];else{if(","===e.charAt(e.length-1)&&(e=e.substr(0,e.length-1)),_e[e])o=_e[e];else if("#"===e.charAt(0))4===e.length&&(e="#"+(s=e.charAt(1))+s+(i=e.charAt(2))+i+(n=e.charAt(3))+n),o=[(e=parseInt(e.substr(1),16))>>16,e>>8&255,255&e];else if("hsl"===e.substr(0,3))if(o=_=e.match(F),t){if(-1!==e.indexOf("="))return e.match(V)}else l=Number(o[0])%360/360,r=Number(o[1])/100,s=2*(a=Number(o[2])/100)-(i=a<=.5?a*(r+1):a+r-a*r),3<o.length&&(o[3]=Number(e[3])),o[0]=ce(l+1/3,s,i),o[1]=ce(l,s,i),o[2]=ce(l-1/3,s,i);else o=e.match(F)||_e.transparent;o[0]=Number(o[0]),o[1]=Number(o[1]),o[2]=Number(o[2]),3<o.length&&(o[3]=Number(o[3]))}else o=_e.black;return t&&!_&&(s=o[0]/255,i=o[1]/255,n=o[2]/255,a=((d=Math.max(s,i,n))+(u=Math.min(s,i,n)))/2,d===u?l=r=0:(h=d-u,r=.5<a?h/(2-d-u):h/(d+u),l=d===s?(i-n)/h+(i<n?6:0):d===i?(n-s)/h+2:(s-i)/h+4,l*=60),o[0]=l+.5|0,o[1]=100*r+.5|0,o[2]=100*a+.5|0),o},pe=function(e,t){var o,s,i,n=e.match(be)||[],l=0,r=n.length?"":e;for(o=0;o<n.length;o++)s=n[o],l+=(i=e.substr(l,e.indexOf(s,l)-l)).length+s.length,3===(s=fe(s,t)).length&&s.push(1),r+=i+(t?"hsla("+s[0]+","+s[1]+"%,"+s[2]+"%,"+s[3]:"rgba("+s.join(","))+")";return r+e.substr(l)},be="(?:\\b(?:(?:rgb|rgba|hsl|hsla)\\(.+?\\))|\\B#(?:[0-9a-f]{3}){1,2}\\b";for(e in _e)be+="|"+e+"\\b";be=new RegExp(be+")","gi"),U.colorStringFilter=function(e){var t,o=e[0]+e[1];be.test(o)&&(t=-1!==o.indexOf("hsl(")||-1!==o.indexOf("hsla("),e[0]=pe(e[0],t),e[1]=pe(e[1],t)),be.lastIndex=0},R.defaultStringFilter||(R.defaultStringFilter=U.colorStringFilter);var me=function(e,t,n,l){if(null==e)return function(e){return e};var r,a=t?(e.match(be)||[""])[0]:"",d=e.split(a).join("").match(v)||[],u=e.substr(0,e.indexOf(d[0])),h=")"===e.charAt(e.length-1)?")":"",_=-1!==e.indexOf(" ")?" ":",",c=d.length,f=0<c?d[0].replace(F,""):"";return c?r=t?function(e){var t,o,s,i;if("number"==typeof e)e+=f;else if(l&&x.test(e)){for(i=e.replace(x,"|").split("|"),s=0;s<i.length;s++)i[s]=r(i[s]);return i.join(",")}if(t=(e.match(be)||[a])[0],s=(o=e.split(t).join("").match(v)||[]).length,c>s--)for(;++s<c;)o[s]=n?o[(s-1)/2|0]:d[s];return u+o.join(_)+_+t+h+(-1!==e.indexOf("inset")?" inset":"")}:function(e){var t,o,s;if("number"==typeof e)e+=f;else if(l&&x.test(e)){for(o=e.replace(x,"|").split("|"),s=0;s<o.length;s++)o[s]=r(o[s]);return o.join(",")}if(s=(t=e.match(v)||[]).length,c>s--)for(;++s<c;)t[s]=n?t[(s-1)/2|0]:d[s];return u+t.join(_)+h}:function(e){return e}},ge=function(d){return d=d.split(","),function(e,t,o,s,i,n,l){var r,a=(t+"").split(" ");for(l={},r=0;r<4;r++)l[d[r]]=a[r]=a[r]||a[(r-1)/2>>0];return s.parse(e,l,i,n)}},ye=(i._setPluginRatio=function(e){this.plugin.setRatio(e);for(var t,o,s,i,n,l=this.data,r=l.proxy,a=l.firstMPT;a;)t=r[a.v],a.r?t=Math.round(t):t<1e-6&&-1e-6<t&&(t=0),a.t[a.p]=t,a=a._next;if(l.autoRotate&&(l.autoRotate.rotation=l.mod?l.mod(r.rotation,this.t):r.rotation),1===e||0===e)for(a=l.firstMPT,n=1===e?"e":"b";a;){if((o=a.t).type){if(1===o.type){for(i=o.xs0+o.s+o.xs1,s=1;s<o.l;s++)i+=o["xn"+s]+o["xs"+(s+1)];o[n]=i}}else o[n]=o.s+o.xs0;a=a._next}},function(e,t,o,s,i){this.t=e,this.p=t,this.v=o,this.r=i,s&&((s._prev=this)._next=s)}),ve=(i._parseToProxy=function(e,t,o,s,i,n){var l,r,a,d,u,h=s,_={},c={},f=o._transform,p=A;for(o._transform=null,A=t,s=u=o.parse(e,t,s,i),A=p,n&&(o._transform=f,h&&(h._prev=null,h._prev&&(h._prev._next=null)));s&&s!==h;){if(s.type<=1&&(c[r=s.p]=s.s+s.c,_[r]=s.s,n||(d=new ye(s,"s",r,d,s.r),s.c=0),1===s.type))for(l=s.l;0<--l;)a="xn"+l,c[r=s.p+"_"+a]=s.data[a],_[r]=s[a],n||(d=new ye(s,a,r,d,s.rxp[a]));s=s._next}return{proxy:_,end:c,firstMPT:d,pt:u}},i.CSSPropTween=function(e,t,o,s,i,n,l,r,a,d,u){this.t=e,this.p=t,this.s=o,this.c=s,this.n=l||t,e instanceof ve||p.push(this.n),this.r=r,this.type=n||0,a&&(this.pr=a,f=!0),this.b=void 0===d?o:d,this.e=void 0===u?o+s:u,i&&((this._next=i)._prev=this)}),Se=function(e,t,o,s,i,n){var l=new ve(e,t,o,s-o,i,-1,n);return l.b=o,l.e=l.xs0=s,l},Pe=U.parseComplex=function(e,t,o,s,i,n,l,r,a,d){o=o||n||"","function"==typeof s&&(s=s(B,C)),l=new ve(e,t,0,0,l,d?2:1,null,!1,r,o,s),s+="",i&&be.test(s+o)&&(s=[o,s],U.colorStringFilter(s),o=s[0],s=s[1]);var u,h,_,c,f,p,b,m,g,y,v,S,P,E=o.split(", ").join(",").split(" "),w=s.split(", ").join(",").split(" "),T=E.length,D=!1!==W;for(-1===s.indexOf(",")&&-1===o.indexOf(",")||(E=E.join(" ").replace(x,", ").split(" "),w=w.join(" ").replace(x,", ").split(" "),T=E.length),T!==w.length&&(T=(E=(n||"").split(" ")).length),l.plugin=a,l.setRatio=d,u=be.lastIndex=0;u<T;u++)if(c=E[u],f=w[u],(m=parseFloat(c))||0===m)l.appendXtra("",m,de(f,m),f.replace(V,""),D&&-1!==f.indexOf("px"),!0);else if(i&&be.test(c))S=")"+((S=f.indexOf(")")+1)?f.substr(S):""),P=-1!==f.indexOf("hsl")&&Q,c=fe(c,P),f=fe(f,P),(g=6<c.length+f.length)&&!Q&&0===f[3]?(l["xs"+l.l]+=l.l?" transparent":"transparent",l.e=l.e.split(w[u]).join("transparent")):(Q||(g=!1),P?l.appendXtra(g?"hsla(":"hsl(",c[0],de(f[0],c[0]),",",!1,!0).appendXtra("",c[1],de(f[1],c[1]),"%,",!1).appendXtra("",c[2],de(f[2],c[2]),g?"%,":"%"+S,!1):l.appendXtra(g?"rgba(":"rgb(",c[0],f[0]-c[0],",",!0,!0).appendXtra("",c[1],f[1]-c[1],",",!0).appendXtra("",c[2],f[2]-c[2],g?",":S,!0),g&&(c=c.length<4?1:c[3],l.appendXtra("",c,(f.length<4?1:f[3])-c,S,!1))),be.lastIndex=0;else if(p=c.match(F)){if(!(b=f.match(V))||b.length!==p.length)return l;for(h=_=0;h<p.length;h++)v=p[h],y=c.indexOf(v,_),l.appendXtra(c.substr(_,y-_),Number(v),de(b[h],v),"",D&&"px"===c.substr(y+v.length,2),0===h),_=y+v.length;l["xs"+l.l]+=c.substr(_)}else l["xs"+l.l]+=l.l||l["xs"+l.l]?" "+f:f;if(-1!==s.indexOf("=")&&l.data){for(S=l.xs0+l.data.s,u=1;u<l.l;u++)S+=l["xs"+u]+l.data["xn"+u];l.e=S+l["xs"+u]}return l.l||(l.type=-1,l.xs0=l.e),l.xfirst||l},Ee=9;for((e=ve.prototype).l=e.pr=0;0<--Ee;)e["xn"+Ee]=0,e["xs"+Ee]="";e.xs0="",e._next=e._prev=e.xfirst=e.data=e.plugin=e.setRatio=e.rxp=null,e.appendXtra=function(e,t,o,s,i,n){var l=this,r=l.l;return l["xs"+r]+=n&&(r||l["xs"+r])?" "+e:e||"",o||0===r||l.plugin?(l.l++,l.type=l.setRatio?2:1,l["xs"+l.l]=s||"",0<r?(l.data["xn"+r]=t+o,l.rxp["xn"+r]=i,l["xn"+r]=t,l.plugin||(l.xfirst=new ve(l,"xn"+r,t,o,l.xfirst||l,0,l.n,i,l.pr),l.xfirst.xs0=0)):(l.data={s:t+o},l.rxp={},l.s=t,l.c=o,l.r=i),l):(l["xs"+r]+=t+(s||""),l)};var we=function(e,t){t=t||{},this.p=t.prefix&&$(e)||e,b[e]=b[this.p]=this,this.format=t.formatter||me(t.defaultValue,t.color,t.collapsible,t.multi),t.parser&&(this.parse=t.parser),this.clrs=t.color,this.multi=t.multi,this.keyword=t.keyword,this.dflt=t.defaultValue,this.pr=t.priority||0},Te=i._registerComplexSpecialProp=function(e,t,o){"object"!=typeof t&&(t={parser:o});var s,i=e.split(","),n=t.defaultValue;for(o=o||[n],s=0;s<i.length;s++)t.prefix=0===s&&t.prefix,t.defaultValue=o[s]||n,new we(i[s],t)},De=i._registerPluginProp=function(e){if(!b[e]){var a=e.charAt(0).toUpperCase()+e.substr(1)+"Plugin";Te(e,{parser:function(e,t,o,s,i,n,l){var r=d.com.greensock.plugins[a];return r?(r._cssRegister(),b[o].parse(e,t,o,s,i,n,l)):(q("Error: "+a+" js file not loaded."),i)}})}};(e=we.prototype).parseComplex=function(e,t,o,s,i,n){var l,r,a,d,u,h,_=this.keyword;if(this.multi&&(x.test(o)||x.test(t)?(r=t.replace(x,"|").split("|"),a=o.replace(x,"|").split("|")):_&&(r=[t],a=[o])),a){for(d=a.length>r.length?a.length:r.length,l=0;l<d;l++)t=r[l]=r[l]||this.dflt,o=a[l]=a[l]||this.dflt,_&&(u=t.indexOf(_))!==(h=o.indexOf(_))&&(-1===h?r[l]=r[l].split(_).join(""):-1===u&&(r[l]+=" "+_));t=r.join(", "),o=a.join(", ")}return Pe(e,this.p,t,o,this.clrs,this.dflt,s,this.pr,i,n)},e.parse=function(e,t,o,s,i,n,l){return this.parseComplex(e.style,this.format(ee(e,this.p,T,!1,this.dflt)),this.format(t),i,n)},U.registerSpecialProp=function(e,a,d){Te(e,{parser:function(e,t,o,s,i,n,l){var r=new ve(e,o,0,0,i,2,o,!1,d);return r.plugin=n,r.setRatio=a(e,t,s._tween,o),r},priority:d})},U.useSVGTransformAttr=g||I;var We,Ce,Be,Fe,Ve,ke="scaleX,scaleY,scaleZ,x,y,z,skewX,skewY,rotation,rotationX,rotationY,perspective,xPercent,yPercent".split(","),Oe=$("transform"),He=K+"transform",xe=$("transformOrigin"),Le=null!==$("perspective"),Ae=i.Transform=function(){this.perspective=parseFloat(U.defaultTransformPerspective)||0,this.force3D=!(!1===U.defaultForce3D||!Le)&&(U.defaultForce3D||"auto")},Ie=window.SVGElement,Me=function(e,t,o){var s,i=X.createElementNS("http://www.w3.org/2000/svg",e),n=/([a-z])([A-Z])/g;for(s in o)i.setAttributeNS(null,s.replace(n,"$1-$2").toLowerCase(),o[s]);return t.appendChild(i),i},Re=X.documentElement,Ue=(Ve=D||/Android/i.test(j)&&!window.chrome,X.createElementNS&&!Ve&&(Ce=Me("svg",Re),Fe=(Be=Me("rect",Ce,{width:100,height:50,x:100})).getBoundingClientRect().width,Be.style[xe]="50% 50%",Be.style[Oe]="scaleX(0.5)",Ve=Fe===Be.getBoundingClientRect().width&&!(I&&Le),Re.removeChild(Ce)),Ve),Ne=function(e,t,o,s,i,n){var l,r,a,d,u,h,_,c,f,p,b,m,g,y,v=e._gsTransform,S=ze(e,!0);v&&(g=v.xOrigin,y=v.yOrigin),(!s||(l=s.split(" ")).length<2)&&(_=e.getBBox(),l=[(-1!==(t=ae(t).split(" "))[0].indexOf("%")?parseFloat(t[0])/100*_.width:parseFloat(t[0]))+_.x,(-1!==t[1].indexOf("%")?parseFloat(t[1])/100*_.height:parseFloat(t[1]))+_.y]),o.xOrigin=d=parseFloat(l[0]),o.yOrigin=u=parseFloat(l[1]),s&&S!==Ye&&(h=S[0],_=S[1],c=S[2],f=S[3],p=S[4],r=d*(f/(m=h*f-_*c))+u*(-c/m)+(c*(b=S[5])-f*p)/m,a=d*(-_/m)+u*(h/m)-(h*b-_*p)/m,d=o.xOrigin=l[0]=r,u=o.yOrigin=l[1]=a),v&&(n&&(o.xOffset=v.xOffset,o.yOffset=v.yOffset,v=o),i||!1!==i&&!1!==U.defaultSmoothOrigin?(r=d-g,a=u-y,v.xOffset+=r*S[0]+a*S[2]-r,v.yOffset+=r*S[1]+a*S[3]-a):v.xOffset=v.yOffset=0),n||e.setAttribute("data-svg-origin",l.join(" "))},Xe=function(e){return!!(Ie&&e.getBBox&&e.getCTM&&function(e){try{return e.getBBox()}catch(e){}}(e)&&(!e.parentNode||e.parentNode.getBBox&&e.parentNode.getCTM))},Ye=[1,0,0,1,0,0],ze=function(e,t){var o,s,i,n,l,r,a=e._gsTransform||new Ae,d=e.style;if(Oe?s=ee(e,He,null,!0):e.currentStyle&&(s=(s=e.currentStyle.filter.match(_))&&4===s.length?[s[0].substr(4),Number(s[2].substr(4)),Number(s[1].substr(4)),s[3].substr(4),a.x||0,a.y||0].join(","):""),(o=!s||"none"===s||"matrix(1, 0, 0, 1, 0, 0)"===s)&&Oe&&((r="none"===Z(e).display)||!e.parentNode)&&(r&&(n=d.display,d.display="block"),e.parentNode||(l=1,Re.appendChild(e)),o=!(s=ee(e,He,null,!0))||"none"===s||"matrix(1, 0, 0, 1, 0, 0)"===s,n?d.display=n:r&&Ke(d,"display"),l&&Re.removeChild(e)),(a.svg||e.getBBox&&Xe(e))&&(o&&-1!==(d[Oe]+"").indexOf("matrix")&&(s=d[Oe],o=0),i=e.getAttribute("transform"),o&&i&&(-1!==i.indexOf("matrix")?(s=i,o=0):-1!==i.indexOf("translate")&&(s="matrix(1,0,0,1,"+i.match(/(?:\-|\b)[\d\-\.e]+\b/gi).join(",")+")",o=0))),o)return Ye;for(i=(s||"").match(F)||[],Ee=i.length;-1<--Ee;)n=Number(i[Ee]),i[Ee]=(l=n-(n|=0))?(1e5*l+(l<0?-.5:.5)|0)/1e5+n:n;return t&&6<i.length?[i[0],i[1],i[4],i[5],i[12],i[13]]:i},je=i.getTransform=function(e,t,o,s){if(e._gsTransform&&o&&!s)return e._gsTransform;var i,n,l,r,a,d,u=o&&e._gsTransform||new Ae,h=u.scaleX<0,_=Le&&(parseFloat(ee(e,xe,t,!1,"0 0 0").split(" ")[2])||u.zOrigin)||0,c=parseFloat(U.defaultTransformPerspective)||0;if(u.svg=!(!e.getBBox||!Xe(e)),u.svg&&(Ne(e,ee(e,xe,t,!1,"50% 50%")+"",u,e.getAttribute("data-svg-origin")),We=U.useSVGTransformAttr||Ue),(i=ze(e))!==Ye){if(16===i.length){var f,p,b,m,g,y=i[0],v=i[1],S=i[2],P=i[3],E=i[4],w=i[5],T=i[6],D=i[7],W=i[8],C=i[9],B=i[10],F=i[12],V=i[13],k=i[14],O=i[11],H=Math.atan2(T,B);u.zOrigin&&(F=W*(k=-u.zOrigin)-i[12],V=C*k-i[13],k=B*k+u.zOrigin-i[14]),u.rotationX=H*N,H&&(f=E*(m=Math.cos(-H))+W*(g=Math.sin(-H)),p=w*m+C*g,b=T*m+B*g,W=E*-g+W*m,C=w*-g+C*m,B=T*-g+B*m,O=D*-g+O*m,E=f,w=p,T=b),H=Math.atan2(-S,B),u.rotationY=H*N,H&&(p=v*(m=Math.cos(-H))-C*(g=Math.sin(-H)),b=S*m-B*g,C=v*g+C*m,B=S*g+B*m,O=P*g+O*m,y=f=y*m-W*g,v=p,S=b),H=Math.atan2(v,y),u.rotation=H*N,H&&(y=y*(m=Math.cos(-H))+E*(g=Math.sin(-H)),p=v*m+w*g,w=v*-g+w*m,T=S*-g+T*m,v=p),u.rotationX&&359.9<Math.abs(u.rotationX)+Math.abs(u.rotation)&&(u.rotationX=u.rotation=0,u.rotationY=180-u.rotationY),u.scaleX=(1e5*Math.sqrt(y*y+v*v)+.5|0)/1e5,u.scaleY=(1e5*Math.sqrt(w*w+C*C)+.5|0)/1e5,u.scaleZ=(1e5*Math.sqrt(T*T+B*B)+.5|0)/1e5,u.rotationX||u.rotationY?u.skewX=0:(u.skewX=E||w?Math.atan2(E,w)*N+u.rotation:u.skewX||0,90<Math.abs(u.skewX)&&Math.abs(u.skewX)<270&&(h?(u.scaleX*=-1,u.skewX+=u.rotation<=0?180:-180,u.rotation+=u.rotation<=0?180:-180):(u.scaleY*=-1,u.skewX+=u.skewX<=0?180:-180))),u.perspective=O?1/(O<0?-O:O):0,u.x=F,u.y=V,u.z=k,u.svg&&(u.x-=u.xOrigin-(u.xOrigin*y-u.yOrigin*E),u.y-=u.yOrigin-(u.yOrigin*v-u.xOrigin*w))}else if(!Le||s||!i.length||u.x!==i[4]||u.y!==i[5]||!u.rotationX&&!u.rotationY){var x=6<=i.length,L=x?i[0]:1,A=i[1]||0,I=i[2]||0,M=x?i[3]:1;u.x=i[4]||0,u.y=i[5]||0,l=Math.sqrt(L*L+A*A),r=Math.sqrt(M*M+I*I),a=L||A?Math.atan2(A,L)*N:u.rotation||0,d=I||M?Math.atan2(I,M)*N+a:u.skewX||0,90<Math.abs(d)&&Math.abs(d)<270&&(h?(l*=-1,d+=a<=0?180:-180,a+=a<=0?180:-180):(r*=-1,d+=d<=0?180:-180)),u.scaleX=l,u.scaleY=r,u.rotation=a,u.skewX=d,Le&&(u.rotationX=u.rotationY=u.z=0,u.perspective=c,u.scaleZ=1),u.svg&&(u.x-=u.xOrigin-(u.xOrigin*L+u.yOrigin*I),u.y-=u.yOrigin-(u.xOrigin*A+u.yOrigin*M))}for(n in u.zOrigin=_,u)u[n]<2e-5&&-2e-5<u[n]&&(u[n]=0)}return o&&(e._gsTransform=u).svg&&(We&&e.style[Oe]?R.delayedCall(.001,function(){Ke(e.style,Oe)}):!We&&e.getAttribute("transform")&&R.delayedCall(.001,function(){e.removeAttribute("transform")})),u},Qe=function(e){var t,o,s=this.data,i=-s.rotation*M,n=i+s.skewX*M,l=1e5,r=(Math.cos(i)*s.scaleX*l|0)/l,a=(Math.sin(i)*s.scaleX*l|0)/l,d=(Math.sin(n)*-s.scaleY*l|0)/l,u=(Math.cos(n)*s.scaleY*l|0)/l,h=this.t.style,_=this.t.currentStyle;if(_){o=a,a=-d,d=-o,t=_.filter,h.filter="";var c,f,p=this.t.offsetWidth,b=this.t.offsetHeight,m="absolute"!==_.position,g="progid:DXImageTransform.Microsoft.Matrix(M11="+r+", M12="+a+", M21="+d+", M22="+u,y=s.x+p*s.xPercent/100,v=s.y+b*s.yPercent/100;if(null!=s.ox&&(y+=(c=(s.oxp?p*s.ox*.01:s.ox)-p/2)-(c*r+(f=(s.oyp?b*s.oy*.01:s.oy)-b/2)*a),v+=f-(c*d+f*u)),g+=m?", Dx="+((c=p/2)-(c*r+(f=b/2)*a)+y)+", Dy="+(f-(c*d+f*u)+v)+")":", sizingMethod='auto expand')",-1!==t.indexOf("DXImageTransform.Microsoft.Matrix(")?h.filter=t.replace(H,g):h.filter=g+" "+t,0!==e&&1!==e||1===r&&0===a&&0===d&&1===u&&(m&&-1===g.indexOf("Dx=0, Dy=0")||O.test(t)&&100!==parseFloat(RegExp.$1)||-1===t.indexOf(t.indexOf("Alpha"))&&h.removeAttribute("filter")),!m){var S,P,E,w=D<8?1:-1;for(c=s.ieOffsetX||0,f=s.ieOffsetY||0,s.ieOffsetX=Math.round((p-((r<0?-r:r)*p+(a<0?-a:a)*b))/2+y),s.ieOffsetY=Math.round((b-((u<0?-u:u)*b+(d<0?-d:d)*p))/2+v),Ee=0;Ee<4;Ee++)E=(o=-1!==(S=_[P=le[Ee]]).indexOf("px")?parseFloat(S):te(this.t,P,parseFloat(S),S.replace(k,""))||0)!==s[P]?Ee<2?-s.ieOffsetX:-s.ieOffsetY:Ee<2?c-s.ieOffsetX:f-s.ieOffsetY,h[P]=(s[P]=Math.round(o-E*(0===Ee||2===Ee?1:w)))+"px"}}},Ge=i.set3DTransformRatio=i.setTransformRatio=function(e){var t,o,s,i,n,l,r,a,d,u,h,_,c,f,p,b,m,g,y,v,S,P,E,w=this.data,T=this.t.style,D=w.rotation,W=w.rotationX,C=w.rotationY,B=w.scaleX,F=w.scaleY,V=w.scaleZ,k=w.x,O=w.y,H=w.z,x=w.svg,L=w.perspective,A=w.force3D;if(!((1!==e&&0!==e||"auto"!==A||this.tween._totalTime!==this.tween._totalDuration&&this.tween._totalTime)&&A||H||L||C||W||1!==V)||We&&x||!Le)D||w.skewX||x?(D*=M,P=w.skewX*M,E=1e5,t=Math.cos(D)*B,i=Math.sin(D)*B,o=Math.sin(D-P)*-F,n=Math.cos(D-P)*F,P&&"simple"===w.skewType&&(m=Math.tan(P-w.skewY*M),o*=m=Math.sqrt(1+m*m),n*=m,w.skewY&&(m=Math.tan(w.skewY*M),t*=m=Math.sqrt(1+m*m),i*=m)),x&&(k+=w.xOrigin-(w.xOrigin*t+w.yOrigin*o)+w.xOffset,O+=w.yOrigin-(w.xOrigin*i+w.yOrigin*n)+w.yOffset,We&&(w.xPercent||w.yPercent)&&(f=this.t.getBBox(),k+=.01*w.xPercent*f.width,O+=.01*w.yPercent*f.height),k<(f=1e-6)&&-f<k&&(k=0),O<f&&-f<O&&(O=0)),y=(t*E|0)/E+","+(i*E|0)/E+","+(o*E|0)/E+","+(n*E|0)/E+","+k+","+O+")",x&&We?this.t.setAttribute("transform","matrix("+y):T[Oe]=(w.xPercent||w.yPercent?"translate("+w.xPercent+"%,"+w.yPercent+"%) matrix(":"matrix(")+y):T[Oe]=(w.xPercent||w.yPercent?"translate("+w.xPercent+"%,"+w.yPercent+"%) matrix(":"matrix(")+B+",0,0,"+F+","+k+","+O+")";else{if(I&&(B<(f=1e-4)&&-f<B&&(B=V=2e-5),F<f&&-f<F&&(F=V=2e-5),!L||w.z||w.rotationX||w.rotationY||(L=0)),D||w.skewX)D*=M,p=t=Math.cos(D),b=i=Math.sin(D),w.skewX&&(D-=w.skewX*M,p=Math.cos(D),b=Math.sin(D),"simple"===w.skewType&&(m=Math.tan((w.skewX-w.skewY)*M),p*=m=Math.sqrt(1+m*m),b*=m,w.skewY&&(m=Math.tan(w.skewY*M),t*=m=Math.sqrt(1+m*m),i*=m))),o=-b,n=p;else{if(!(C||W||1!==V||L||x))return void(T[Oe]=(w.xPercent||w.yPercent?"translate("+w.xPercent+"%,"+w.yPercent+"%) translate3d(":"translate3d(")+k+"px,"+O+"px,"+H+"px)"+(1!==B||1!==F?" scale("+B+","+F+")":""));t=n=1,o=i=0}d=1,s=l=r=a=u=h=0,_=L?-1/L:0,c=w.zOrigin,f=1e-6,v=",",S="0",(D=C*M)&&(p=Math.cos(D),u=_*(r=-(b=Math.sin(D))),s=t*b,l=i*b,_*=d=p,t*=p,i*=p),(D=W*M)&&(m=o*(p=Math.cos(D))+s*(b=Math.sin(D)),g=n*p+l*b,a=d*b,h=_*b,s=o*-b+s*p,l=n*-b+l*p,d*=p,_*=p,o=m,n=g),1!==V&&(s*=V,l*=V,d*=V,_*=V),1!==F&&(o*=F,n*=F,a*=F,h*=F),1!==B&&(t*=B,i*=B,r*=B,u*=B),(c||x)&&(c&&(k+=s*-c,O+=l*-c,H+=d*-c+c),x&&(k+=w.xOrigin-(w.xOrigin*t+w.yOrigin*o)+w.xOffset,O+=w.yOrigin-(w.xOrigin*i+w.yOrigin*n)+w.yOffset),k<f&&-f<k&&(k=S),O<f&&-f<O&&(O=S),H<f&&-f<H&&(H=0)),y=w.xPercent||w.yPercent?"translate("+w.xPercent+"%,"+w.yPercent+"%) matrix3d(":"matrix3d(",y+=(t<f&&-f<t?S:t)+v+(i<f&&-f<i?S:i)+v+(r<f&&-f<r?S:r),y+=v+(u<f&&-f<u?S:u)+v+(o<f&&-f<o?S:o)+v+(n<f&&-f<n?S:n),W||C||1!==V?(y+=v+(a<f&&-f<a?S:a)+v+(h<f&&-f<h?S:h)+v+(s<f&&-f<s?S:s),y+=v+(l<f&&-f<l?S:l)+v+(d<f&&-f<d?S:d)+v+(_<f&&-f<_?S:_)+v):y+=",0,0,0,0,1,0,",y+=k+v+O+v+H+v+(L?1+-H/L:1)+")",T[Oe]=y}};(e=Ae.prototype).x=e.y=e.z=e.skewX=e.skewY=e.rotation=e.rotationX=e.rotationY=e.zOrigin=e.xPercent=e.yPercent=e.xOffset=e.yOffset=0,e.scaleX=e.scaleY=e.scaleZ=1,Te("transform,scale,scaleX,scaleY,scaleZ,x,y,z,rotation,rotationX,rotationY,rotationZ,skewX,skewY,shortRotation,shortRotationX,shortRotationY,shortRotationZ,transformOrigin,svgOrigin,transformPerspective,directionalRotation,parseTransform,force3D,skewType,xPercent,yPercent,smoothOrigin",{parser:function(e,t,o,s,i,n,l){if(s._lastParsedTransform===l)return i;var r;"function"==typeof(s._lastParsedTransform=l)[o]&&(r=l[o],l[o]=t);var a,d,u,h,_,c,f,p,b,m=e._gsTransform,g=e.style,y=ke.length,v=l,S={},P="transformOrigin",E=je(e,T,!0,v.parseTransform),w=v.transform&&("function"==typeof v.transform?v.transform(B,C):v.transform);if(s._transform=E,w&&"string"==typeof w&&Oe)(d=Y.style)[Oe]=w,d.display="block",d.position="absolute",X.body.appendChild(Y),a=je(Y,null,!1),E.svg&&(c=E.xOrigin,f=E.yOrigin,a.x-=E.xOffset,a.y-=E.yOffset,(v.transformOrigin||v.svgOrigin)&&(w={},Ne(e,ae(v.transformOrigin),w,v.svgOrigin,v.smoothOrigin,!0),c=w.xOrigin,f=w.yOrigin,a.x-=w.xOffset-E.xOffset,a.y-=w.yOffset-E.yOffset),(c||f)&&(p=ze(Y,!0),a.x-=c-(c*p[0]+f*p[2]),a.y-=f-(c*p[1]+f*p[3]))),X.body.removeChild(Y),a.perspective||(a.perspective=E.perspective),null!=v.xPercent&&(a.xPercent=ue(v.xPercent,E.xPercent)),null!=v.yPercent&&(a.yPercent=ue(v.yPercent,E.yPercent));else if("object"==typeof v){if(a={scaleX:ue(null!=v.scaleX?v.scaleX:v.scale,E.scaleX),scaleY:ue(null!=v.scaleY?v.scaleY:v.scale,E.scaleY),scaleZ:ue(v.scaleZ,E.scaleZ),x:ue(v.x,E.x),y:ue(v.y,E.y),z:ue(v.z,E.z),xPercent:ue(v.xPercent,E.xPercent),yPercent:ue(v.yPercent,E.yPercent),perspective:ue(v.transformPerspective,E.perspective)},null!=(_=v.directionalRotation))if("object"==typeof _)for(d in _)v[d]=_[d];else v.rotation=_;"string"==typeof v.x&&-1!==v.x.indexOf("%")&&(a.x=0,a.xPercent=ue(v.x,E.xPercent)),"string"==typeof v.y&&-1!==v.y.indexOf("%")&&(a.y=0,a.yPercent=ue(v.y,E.yPercent)),a.rotation=he("rotation"in v?v.rotation:"shortRotation"in v?v.shortRotation+"_short":"rotationZ"in v?v.rotationZ:E.rotation-E.skewY,E.rotation-E.skewY,"rotation",S),Le&&(a.rotationX=he("rotationX"in v?v.rotationX:"shortRotationX"in v?v.shortRotationX+"_short":E.rotationX||0,E.rotationX,"rotationX",S),a.rotationY=he("rotationY"in v?v.rotationY:"shortRotationY"in v?v.shortRotationY+"_short":E.rotationY||0,E.rotationY,"rotationY",S)),a.skewX=he(v.skewX,E.skewX-E.skewY),(a.skewY=he(v.skewY,E.skewY))&&(a.skewX+=a.skewY,a.rotation+=a.skewY)}for(Le&&null!=v.force3D&&(E.force3D=v.force3D,h=!0),E.skewType=v.skewType||E.skewType||U.defaultSkewType,(u=E.force3D||E.z||E.rotationX||E.rotationY||a.z||a.rotationX||a.rotationY||a.perspective)||null==v.scale||(a.scaleZ=1);-1<--y;)(1e-6<(w=a[b=ke[y]]-E[b])||w<-1e-6||null!=v[b]||null!=A[b])&&(h=!0,i=new ve(E,b,E[b],w,i),b in S&&(i.e=S[b]),i.xs0=0,i.plugin=n,s._overwriteProps.push(i.n));return w=v.transformOrigin,E.svg&&(w||v.svgOrigin)&&(c=E.xOffset,f=E.yOffset,Ne(e,ae(w),a,v.svgOrigin,v.smoothOrigin),i=Se(E,"xOrigin",(m?E:a).xOrigin,a.xOrigin,i,P),i=Se(E,"yOrigin",(m?E:a).yOrigin,a.yOrigin,i,P),c===E.xOffset&&f===E.yOffset||(i=Se(E,"xOffset",m?c:E.xOffset,E.xOffset,i,P),i=Se(E,"yOffset",m?f:E.yOffset,E.yOffset,i,P)),w=We?null:"0px 0px"),(w||Le&&u&&E.zOrigin)&&(Oe?(h=!0,b=xe,w=(w||ee(e,b,T,!1,"50% 50%"))+"",(i=new ve(g,b,0,0,i,-1,P)).b=g[b],i.plugin=n,i.xs0=i.e=Le?(d=E.zOrigin,w=w.split(" "),E.zOrigin=(2<w.length&&(0===d||"0px"!==w[2])?parseFloat(w[2]):d)||0,i.xs0=i.e=w[0]+" "+(w[1]||"50%")+" 0px",(i=new ve(E,"zOrigin",0,0,i,-1,i.n)).b=d,E.zOrigin):w):ae(w+"",E)),h&&(s._transformType=E.svg&&We||!u&&3!==this._transformType?2:3),r&&(l[o]=r),i},prefix:!0}),Te("boxShadow",{defaultValue:"0px 0px 0px 0px #999",prefix:!0,color:!0,multi:!0,keyword:"inset"}),Te("borderRadius",{defaultValue:"0px",parser:function(e,t,o,s,i,n){t=this.format(t);var l,r,a,d,u,h,_,c,f,p,b,m,g,y,v,S,P=["borderTopLeftRadius","borderTopRightRadius","borderBottomRightRadius","borderBottomLeftRadius"],E=e.style;for(f=parseFloat(e.offsetWidth),p=parseFloat(e.offsetHeight),l=t.split(" "),r=0;r<P.length;r++)this.p.indexOf("border")&&(P[r]=$(P[r])),-1!==(u=d=ee(e,P[r],T,!1,"0px")).indexOf(" ")&&(u=(d=u.split(" "))[0],d=d[1]),h=a=l[r],_=parseFloat(u),m=u.substr((_+"").length),""===(b=(g="="===h.charAt(1))?(c=parseInt(h.charAt(0)+"1",10),h=h.substr(2),c*=parseFloat(h),h.substr((c+"").length-(c<0?1:0))||""):(c=parseFloat(h),h.substr((c+"").length)))&&(b=w[o]||m),b!==m&&(y=te(e,"borderLeft",_,m),v=te(e,"borderTop",_,m),d="%"===b?(u=y/f*100+"%",v/p*100+"%"):"em"===b?(u=y/(S=te(e,"borderLeft",1,"em"))+"em",v/S+"em"):(u=y+"px",v+"px"),g&&(h=parseFloat(u)+c+b,a=parseFloat(d)+c+b)),i=Pe(E,P[r],u+" "+d,h+" "+a,!1,"0px",i);return i},prefix:!0,formatter:me("0px 0px 0px 0px",!1,!0)}),Te("borderBottomLeftRadius,borderBottomRightRadius,borderTopLeftRadius,borderTopRightRadius",{defaultValue:"0px",parser:function(e,t,o,s,i,n){return Pe(e.style,o,this.format(ee(e,o,T,!1,"0px 0px")),this.format(t),!1,"0px",i)},prefix:!0,formatter:me("0px 0px",!1,!0)}),Te("backgroundPosition",{defaultValue:"0 0",parser:function(e,t,o,s,i,n){var l,r,a,d,u,h,_="background-position",c=T||Z(e,null),f=this.format((c?D?c.getPropertyValue(_+"-x")+" "+c.getPropertyValue(_+"-y"):c.getPropertyValue(_):e.currentStyle.backgroundPositionX+" "+e.currentStyle.backgroundPositionY)||"0 0"),p=this.format(t);if(-1!==f.indexOf("%")!=(-1!==p.indexOf("%"))&&p.split(",").length<2&&(h=ee(e,"backgroundImage").replace(E,""))&&"none"!==h){for(l=f.split(" "),r=p.split(" "),z.setAttribute("src",h),a=2;-1<--a;)(d=-1!==(f=l[a]).indexOf("%"))!==(-1!==r[a].indexOf("%"))&&(u=0===a?e.offsetWidth-z.width:e.offsetHeight-z.height,l[a]=d?parseFloat(f)/100*u+"px":parseFloat(f)/u*100+"%");f=l.join(" ")}return this.parseComplex(e.style,f,p,i,n)},formatter:ae}),Te("backgroundSize",{defaultValue:"0 0",formatter:function(e){return ae(-1===(e+="").indexOf(" ")?e+" "+e:e)}}),Te("perspective",{defaultValue:"0px",prefix:!0}),Te("perspectiveOrigin",{defaultValue:"50% 50%",prefix:!0}),Te("transformStyle",{prefix:!0}),Te("backfaceVisibility",{prefix:!0}),Te("userSelect",{prefix:!0}),Te("margin",{parser:ge("marginTop,marginRight,marginBottom,marginLeft")}),Te("padding",{parser:ge("paddingTop,paddingRight,paddingBottom,paddingLeft")}),Te("clip",{defaultValue:"rect(0px,0px,0px,0px)",parser:function(e,t,o,s,i,n){var l,r,a;return t=D<9?(r=e.currentStyle,a=D<8?" ":",",l="rect("+r.clipTop+a+r.clipRight+a+r.clipBottom+a+r.clipLeft+")",this.format(t).split(",").join(a)):(l=this.format(ee(e,this.p,T,!1,this.dflt)),this.format(t)),this.parseComplex(e.style,l,t,i,n)}}),Te("textShadow",{defaultValue:"0px 0px 0px #999",color:!0,multi:!0}),Te("autoRound,strictUnits",{parser:function(e,t,o,s,i){return i}}),Te("border",{defaultValue:"0px solid #000",parser:function(e,t,o,s,i,n){var l=ee(e,"borderTopWidth",T,!1,"0px"),r=this.format(t).split(" "),a=r[0].replace(k,"");return"px"!==a&&(l=parseFloat(l)/te(e,"borderTopWidth",1,a)+a),this.parseComplex(e.style,this.format(l+" "+ee(e,"borderTopStyle",T,!1,"solid")+" "+ee(e,"borderTopColor",T,!1,"#000")),r.join(" "),i,n)},color:!0,formatter:function(e){var t=e.split(" ");return t[0]+" "+(t[1]||"solid")+" "+(e.match(be)||["#000"])[0]}}),Te("borderWidth",{parser:ge("borderTopWidth,borderRightWidth,borderBottomWidth,borderLeftWidth")}),Te("float,cssFloat,styleFloat",{parser:function(e,t,o,s,i,n){var l=e.style,r="cssFloat"in l?"cssFloat":"styleFloat";return new ve(l,r,0,0,i,-1,o,!1,0,l[r],t)}});var qe=function(e){var t,o=this.t,s=o.filter||ee(this.data,"filter")||"",i=this.s+this.c*e|0;100===i&&(t=-1===s.indexOf("atrix(")&&-1===s.indexOf("radient(")&&-1===s.indexOf("oader(")?(o.removeAttribute("filter"),!ee(this.data,"filter")):(o.filter=s.replace(l,""),!0)),t||(this.xn1&&(o.filter=s=s||"alpha(opacity="+i+")"),-1===s.indexOf("pacity")?0===i&&this.xn1||(o.filter=s+" alpha(opacity="+i+")"):o.filter=s.replace(O,"opacity="+i))};Te("opacity,alpha,autoAlpha",{defaultValue:"1",parser:function(e,t,o,s,i,n){var l=parseFloat(ee(e,"opacity",T,!1,"1")),r=e.style,a="autoAlpha"===o;return"string"==typeof t&&"="===t.charAt(1)&&(t=("-"===t.charAt(0)?-1:1)*parseFloat(t.substr(2))+l),a&&1===l&&"hidden"===ee(e,"visibility",T)&&0!==t&&(l=0),Q?i=new ve(r,"opacity",l,t-l,i):((i=new ve(r,"opacity",100*l,100*(t-l),i)).xn1=a?1:0,r.zoom=1,i.type=2,i.b="alpha(opacity="+i.s+")",i.e="alpha(opacity="+(i.s+i.c)+")",i.data=e,i.plugin=n,i.setRatio=qe),a&&((i=new ve(r,"visibility",0,0,i,-1,null,!1,0,0!==l?"inherit":"hidden",0===t?"hidden":"inherit")).xs0="inherit",s._overwriteProps.push(i.n),s._overwriteProps.push(o)),i}});var Ke=function(e,t){t&&(e.removeProperty?("ms"!==t.substr(0,2)&&"webkit"!==t.substr(0,6)||(t="-"+t),e.removeProperty(t.replace(r,"-$1").toLowerCase())):e.removeAttribute(t))},Je=function(e){if(this.t._gsClassPT=this,1===e||0===e){this.t.setAttribute("class",0===e?this.b:this.e);for(var t=this.data,o=this.t.style;t;)t.v?o[t.p]=t.v:Ke(o,t.p),t=t._next;1===e&&this.t._gsClassPT===this&&(this.t._gsClassPT=null)}else this.t.getAttribute("class")!==this.e&&this.t.setAttribute("class",this.e)};Te("className",{parser:function(e,t,o,s,i,n,l){var r,a,d,u,h,_=e.getAttribute("class")||"",c=e.style.cssText;if((i=s._classNamePT=new ve(e,o,0,0,i,2)).setRatio=Je,i.pr=-11,f=!0,i.b=_,a=se(e,T),d=e._gsClassPT){for(u={},h=d.data;h;)u[h.p]=1,h=h._next;d.setRatio(1)}return(e._gsClassPT=i).e="="!==t.charAt(1)?t:_.replace(new RegExp("(?:\\s|^)"+t.substr(2)+"(?![\\w-])"),"")+("+"===t.charAt(0)?" "+t.substr(2):""),e.setAttribute("class",i.e),r=ie(e,a,se(e),l,u),e.setAttribute("class",_),i.data=r.firstMPT,e.style.cssText=c,i=i.xfirst=s.parse(e,r.difs,i,n)}});var $e=function(e){if((1===e||0===e)&&this.data._totalTime===this.data._totalDuration&&"isFromStart"!==this.data.data){var t,o,s,i,n,l=this.t.style,r=b.transform.parse;if("all"===this.e)i=!(l.cssText="");else for(s=(t=this.e.split(" ").join("").split(",")).length;-1<--s;)o=t[s],b[o]&&(b[o].parse===r?i=!0:o="transformOrigin"===o?xe:b[o].p),Ke(l,o);i&&(Ke(l,Oe),(n=this.t._gsTransform)&&(n.svg&&(this.t.removeAttribute("data-svg-origin"),this.t.removeAttribute("transform")),delete this.t._gsTransform))}};for(Te("clearProps",{parser:function(e,t,o,s,i){return(i=new ve(e,o,0,0,i,2)).setRatio=$e,i.e=t,i.pr=-10,i.data=s._tween,f=!0,i}}),e="bezier,throwProps,physicsProps,physics2D".split(","),Ee=e.length;Ee--;)De(e[Ee]);(e=U.prototype)._firstPT=e._lastParsedTransform=e._transform=null,e._onInitTween=function(e,t,o,s){if(!e.nodeType)return!1;this._target=C=e,this._tween=o,this._vars=t,B=s,W=t.autoRound,f=!1,w=t.suffixMap||U.suffixMap,T=Z(e,""),p=this._overwriteProps;var i,n,l,r,a,d,u,h,_,c=e.style;if(m&&""===c.zIndex&&("auto"!==(i=ee(e,"zIndex",T))&&""!==i||this._addLazySet(c,"zIndex",0)),"string"==typeof t&&(r=c.cssText,i=se(e,T),c.cssText=r+";"+t,i=ie(e,i,se(e)).difs,!Q&&S.test(t)&&(i.opacity=parseFloat(RegExp.$1)),t=i,c.cssText=r),t.className?this._firstPT=n=b.className.parse(e,t.className,"className",this,null,null,t):this._firstPT=n=this.parse(e,t,null),this._transformType){for(_=3===this._transformType,Oe?g&&(m=!0,""===c.zIndex&&("auto"!==(u=ee(e,"zIndex",T))&&""!==u||this._addLazySet(c,"zIndex",0)),y&&this._addLazySet(c,"WebkitBackfaceVisibility",this._vars.WebkitBackfaceVisibility||(_?"visible":"hidden"))):c.zoom=1,l=n;l&&l._next;)l=l._next;h=new ve(e,"transform",0,0,null,2),this._linkCSSP(h,null,l),h.setRatio=Oe?Ge:Qe,h.data=this._transform||je(e,T,!0),h.tween=o,h.pr=-1,p.pop()}if(f){for(;n;){for(d=n._next,l=r;l&&l.pr>n.pr;)l=l._next;(n._prev=l?l._prev:a)?n._prev._next=n:r=n,(n._next=l)?l._prev=n:a=n,n=d}this._firstPT=r}return!0},e.parse=function(e,t,o,s){var i,n,l,r,a,d,u,h,_,c,f=e.style;for(i in t)"function"==typeof(d=t[i])&&(d=d(B,C)),(n=b[i])?o=n.parse(e,d,i,this,o,s,t):(a=ee(e,i,T)+"",_="string"==typeof d,"color"===i||"fill"===i||"stroke"===i||-1!==i.indexOf("Color")||_&&P.test(d)?(_||(d=(3<(d=fe(d)).length?"rgba(":"rgb(")+d.join(",")+")"),o=Pe(f,i,a,d,!0,"transparent",o,0,s)):_&&L.test(d)?o=Pe(f,i,a,d,!0,null,o,0,s):(u=(l=parseFloat(a))||0===l?a.substr((l+"").length):"",""!==a&&"auto"!==a||(u="width"===i||"height"===i?(l=re(e,i,T),"px"):"left"===i||"top"===i?(l=oe(e,i,T),"px"):(l="opacity"!==i?0:1,"")),""===(h=(c=_&&"="===d.charAt(1))?(r=parseInt(d.charAt(0)+"1",10),d=d.substr(2),r*=parseFloat(d),d.replace(k,"")):(r=parseFloat(d),_?d.replace(k,""):""))&&(h=i in w?w[i]:u),d=r||0===r?(c?r+l:r)+h:t[i],u!==h&&""!==h&&(r||0===r)&&l&&(l=te(e,i,l,u),"%"===h?(l/=te(e,i,100,"%")/100,!0!==t.strictUnits&&(a=l+"%")):"em"===h||"rem"===h||"vw"===h||"vh"===h?l/=te(e,i,1,h):"px"!==h&&(r=te(e,i,r,h),h="px"),c&&(r||0===r)&&(d=r+l+h)),c&&(r+=l),!l&&0!==l||!r&&0!==r?void 0!==f[i]&&(d||d+""!="NaN"&&null!=d)?(o=new ve(f,i,r||l||0,0,o,-1,i,!1,0,a,d)).xs0="none"!==d||"display"!==i&&-1===i.indexOf("Style")?d:a:q("invalid "+i+" tween value: "+t[i]):(o=new ve(f,i,l,r-l,o,0,i,!1!==W&&("px"===h||"zIndex"===i),0,a,d)).xs0=h)),s&&o&&!o.plugin&&(o.plugin=s);return o},e.setRatio=function(e){var t,o,s,i=this._firstPT;if(1!==e||this._tween._time!==this._tween._duration&&0!==this._tween._time)if(e||this._tween._time!==this._tween._duration&&0!==this._tween._time||-1e-6===this._tween._rawPrevTime)for(;i;){if(t=i.c*e+i.s,i.r?t=Math.round(t):t<1e-6&&-1e-6<t&&(t=0),i.type)if(1===i.type)if(2===(s=i.l))i.t[i.p]=i.xs0+t+i.xs1+i.xn1+i.xs2;else if(3===s)i.t[i.p]=i.xs0+t+i.xs1+i.xn1+i.xs2+i.xn2+i.xs3;else if(4===s)i.t[i.p]=i.xs0+t+i.xs1+i.xn1+i.xs2+i.xn2+i.xs3+i.xn3+i.xs4;else if(5===s)i.t[i.p]=i.xs0+t+i.xs1+i.xn1+i.xs2+i.xn2+i.xs3+i.xn3+i.xs4+i.xn4+i.xs5;else{for(o=i.xs0+t+i.xs1,s=1;s<i.l;s++)o+=i["xn"+s]+i["xs"+(s+1)];i.t[i.p]=o}else-1===i.type?i.t[i.p]=i.xs0:i.setRatio&&i.setRatio(e);else i.t[i.p]=t+i.xs0;i=i._next}else for(;i;)2!==i.type?i.t[i.p]=i.b:i.setRatio(e),i=i._next;else for(;i;){if(2!==i.type)if(i.r&&-1!==i.type)if(t=Math.round(i.s+i.c),i.type){if(1===i.type){for(s=i.l,o=i.xs0+t+i.xs1,s=1;s<i.l;s++)o+=i["xn"+s]+i["xs"+(s+1)];i.t[i.p]=o}}else i.t[i.p]=t+i.xs0;else i.t[i.p]=i.e;else i.setRatio(e);i=i._next}},e._enableTransforms=function(e){this._transform=this._transform||je(this._target,T,!0),this._transformType=this._transform.svg&&We||!e&&3!==this._transformType?2:3};var Ze=function(e){this.t[this.p]=this.e,this.data._linkCSSP(this,this._next,null,!0)};e._addLazySet=function(e,t,o){var s=this._firstPT=new ve(e,t,0,0,this._firstPT,2);s.e=o,s.setRatio=Ze,s.data=this},e._linkCSSP=function(e,t,o,s){return e&&(t&&(t._prev=e),e._next&&(e._next._prev=e._prev),e._prev?e._prev._next=e._next:this._firstPT===e&&(this._firstPT=e._next,s=!0),o?o._next=e:s||null!==this._firstPT||(this._firstPT=e),e._next=t,e._prev=o),e},e._mod=function(e){for(var t=this._firstPT;t;)"function"==typeof e[t.p]&&e[t.p]===Math.round&&(t.r=1),t=t._next},e._kill=function(e){var t,o,s,i=e;if(e.autoAlpha||e.alpha){for(o in i={},e)i[o]=e[o];i.opacity=1,i.autoAlpha&&(i.visibility=1)}for(e.className&&(t=this._classNamePT)&&((s=t.xfirst)&&s._prev?this._linkCSSP(s._prev,t._next,s._prev._prev):s===this._firstPT&&(this._firstPT=t._next),t._next&&this._linkCSSP(t._next,t._next._next,s._prev),this._classNamePT=null),t=this._firstPT;t;)t.plugin&&t.plugin!==o&&t.plugin._kill&&(t.plugin._kill(e),o=t.plugin),t=t._next;return n.prototype._kill.call(this,i)};var et=function(e,t,o){var s,i,n,l;if(e.slice)for(i=e.length;-1<--i;)et(e[i],t,o);else for(i=(s=e.childNodes).length;-1<--i;)l=(n=s[i]).type,n.style&&(t.push(se(n)),o&&o.push(n)),1!==l&&9!==l&&11!==l||!n.childNodes.length||et(n,t,o)};return U.cascadeTo=function(e,t,o){var s,i,n,l,r=R.to(e,t,o),a=[r],d=[],u=[],h=[],_=R._internals.reservedProps;for(e=r._targets||r.target,et(e,d,h),r.render(t,!0,!0),et(e,u),r.render(0,!0,!0),r._enabled(!0),s=h.length;-1<--s;)if((i=ie(h[s],d[s],u[s])).firstMPT){for(n in i=i.difs,o)_[n]&&(i[n]=o[n]);for(n in l={},i)l[n]=d[s][n];a.push(R.fromTo(h[s],t,l,i))}return a},n.activate([U]),U},!0),t=_fwd_gsScope.FWDFWD_gsDefine.plugin({propName:"roundProps",version:"1.6.0",priority:-1,API:2,init:function(e,t,o){return this._tween=o,!0}}),a=function(e){for(;e;)e.f||e.blob||(e.m=Math.round),e=e._next},(s=t.prototype)._onInitAllProps=function(){for(var e,t,o,s=this._tween,i=s.vars.roundProps.join?s.vars.roundProps:s.vars.roundProps.split(","),n=i.length,l={},r=s._propLookup.roundProps;-1<--n;)l[i[n]]=Math.round;for(n=i.length;-1<--n;)for(e=i[n],t=s._firstPT;t;)o=t._next,t.pg?t.t._mod(l):t.n===e&&(2===t.f&&t.t?a(t.t._firstPT):(this._add(t.t,e,t.s,t.c),o&&(o._prev=t._prev),t._prev?t._prev._next=o:s._firstPT===t&&(s._firstPT=o),t._next=t._prev=null,s._propLookup[e]=r)),t=o;return!1},s._add=function(e,t,o,s){this._addTween(e,t,o,o+s,t,Math.round),this._overwriteProps.push(t)},_fwd_gsScope.FWDFWD_gsDefine.plugin({propName:"attr",API:2,version:"0.6.0",init:function(e,t,o,s){var i,n;if("function"!=typeof e.setAttribute)return!1;for(i in t)"function"==typeof(n=t[i])&&(n=n(s,e)),this._addTween(e,"setAttribute",e.getAttribute(i)+"",n+"",i,!1,i),this._overwriteProps.push(i);return!0}}),_fwd_gsScope.FWDFWD_gsDefine.plugin({propName:"directionalRotation",version:"0.3.0",API:2,init:function(e,t,o,s){"object"!=typeof t&&(t={rotation:t}),this.finals={};var i,n,l,r,a,d,u=!0===t.useRadians?2*Math.PI:360;for(i in t)"useRadians"!==i&&("function"==typeof(r=t[i])&&(r=r(s,e)),n=(d=(r+"").split("_"))[0],l=parseFloat("function"!=typeof e[i]?e[i]:e[i.indexOf("set")||"function"!=typeof e["get"+i.substr(3)]?i:"get"+i.substr(3)]()),a=(r=this.finals[i]="string"==typeof n&&"="===n.charAt(1)?l+parseInt(n.charAt(0)+"1",10)*Number(n.substr(2)):Number(n)||0)-l,d.length&&(-1!==(n=d.join("_")).indexOf("short")&&(a%=u)!==a%(u/2)&&(a=a<0?a+u:a-u),-1!==n.indexOf("_cw")&&a<0?a=(a+9999999999*u)%u-(a/u|0)*u:-1!==n.indexOf("ccw")&&0<a&&(a=(a-9999999999*u)%u-(a/u|0)*u)),(1e-6<a||a<-1e-6)&&(this._addTween(e,i,l,l+a,i),this._overwriteProps.push(i)));return!0},set:function(e){var t;if(1!==e)this._super.setRatio.call(this,e);else for(t=this._firstPT;t;)t.f?t.t[t.p](this.finals[t.p]):t.t[t.p]=this.finals[t.p],t=t._next}})._autoCSS=!0,_fwd_gsScope.FWDFWD_gsDefine("easing.Back",["easing.Ease"],function(b){var t,o,e,s=_fwd_gsScope.FWDGreenSockGlobals||_fwd_gsScope,i=s.com.greensock,n=2*Math.PI,l=Math.PI/2,r=i._class,a=function(e,t){var o=r("easing."+e,function(){},!0),s=o.prototype=new b;return s.constructor=o,s.getRatio=t,o},d=b.register||function(){},u=function(e,t,o,s,i){var n=r("easing."+e,{easeOut:new t,easeIn:new o,easeInOut:new s},!0);return d(n,e),n},m=function(e,t,o){this.t=e,this.v=t,o&&(((this.next=o).prev=this).c=o.v-t,this.gap=o.t-e)},h=function(e,t){var o=r("easing."+e,function(e){this._p1=e||0===e?e:1.70158,this._p2=1.525*this._p1},!0),s=o.prototype=new b;return s.constructor=o,s.getRatio=t,s.config=function(e){return new o(e)},o},_=u("Back",h("BackOut",function(e){return(e-=1)*e*((this._p1+1)*e+this._p1)+1}),h("BackIn",function(e){return e*e*((this._p1+1)*e-this._p1)}),h("BackInOut",function(e){return(e*=2)<1?.5*e*e*((this._p2+1)*e-this._p2):.5*((e-=2)*e*((this._p2+1)*e+this._p2)+2)})),c=r("easing.SlowMo",function(e,t,o){t=t||0===t?t:.7,null==e?e=.7:1<e&&(e=1),this._p=1!==e?t:0,this._p1=(1-e)/2,this._p2=e,this._p3=this._p1+this._p2,this._calcEnd=!0===o},!0),f=c.prototype=new b;return f.constructor=c,f.getRatio=function(e){var t=e+(.5-e)*this._p;return e<this._p1?this._calcEnd?1-(e=1-e/this._p1)*e:t-(e=1-e/this._p1)*e*e*e*t:e>this._p3?this._calcEnd?1-(e=(e-this._p3)/this._p1)*e:t+(e-t)*(e=(e-this._p3)/this._p1)*e*e*e:this._calcEnd?1:t},c.ease=new c(.7,.7),f.config=c.config=function(e,t,o){return new c(e,t,o)},(f=(t=r("easing.SteppedEase",function(e){e=e||1,this._p1=1/e,this._p2=e+1},!0)).prototype=new b).constructor=t,f.getRatio=function(e){return e<0?e=0:1<=e&&(e=.999999999),(this._p2*e>>0)*this._p1},f.config=t.config=function(e){return new t(e)},(f=(o=r("easing.RoughEase",function(e){for(var t,o,s,i,n,l,r=(e=e||{}).taper||"none",a=[],d=0,u=0|(e.points||20),h=u,_=!1!==e.randomize,c=!0===e.clamp,f=e.template instanceof b?e.template:null,p="number"==typeof e.strength?.4*e.strength:.4;-1<--h;)t=_?Math.random():1/u*h,o=f?f.getRatio(t):t,s="none"===r?p:"out"===r?(i=1-t)*i*p:"in"===r?t*t*p:t<.5?(i=2*t)*i*.5*p:(i=2*(1-t))*i*.5*p,_?o+=Math.random()*s-.5*s:h%2?o+=.5*s:o-=.5*s,c&&(1<o?o=1:o<0&&(o=0)),a[d++]={x:t,y:o};for(a.sort(function(e,t){return e.x-t.x}),l=new m(1,1,null),h=u;-1<--h;)n=a[h],l=new m(n.x,n.y,l);this._prev=new m(0,0,0!==l.t?l:l.next)},!0)).prototype=new b).constructor=o,f.getRatio=function(e){var t=this._prev;if(e>t.t){for(;t.next&&e>=t.t;)t=t.next;t=t.prev}else for(;t.prev&&e<=t.t;)t=t.prev;return(this._prev=t).v+(e-t.t)/t.gap*t.c},f.config=function(e){return new o(e)},o.ease=new o,u("Bounce",a("BounceOut",function(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375}),a("BounceIn",function(e){return(e=1-e)<1/2.75?1-7.5625*e*e:e<2/2.75?1-(7.5625*(e-=1.5/2.75)*e+.75):e<2.5/2.75?1-(7.5625*(e-=2.25/2.75)*e+.9375):1-(7.5625*(e-=2.625/2.75)*e+.984375)}),a("BounceInOut",function(e){var t=e<.5;return(e=t?1-2*e:2*e-1)<1/2.75?e*=7.5625*e:e=e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375,t?.5*(1-e):.5*e+.5})),u("Circ",a("CircOut",function(e){return Math.sqrt(1-(e-=1)*e)}),a("CircIn",function(e){return-(Math.sqrt(1-e*e)-1)}),a("CircInOut",function(e){return(e*=2)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1)})),u("Elastic",(e=function(e,t,o){var s=r("easing."+e,function(e,t){this._p1=1<=e?e:1,this._p2=(t||o)/(e<1?e:1),this._p3=this._p2/n*(Math.asin(1/this._p1)||0),this._p2=n/this._p2},!0),i=s.prototype=new b;return i.constructor=s,i.getRatio=t,i.config=function(e,t){return new s(e,t)},s})("ElasticOut",function(e){return this._p1*Math.pow(2,-10*e)*Math.sin((e-this._p3)*this._p2)+1},.3),e("ElasticIn",function(e){return-this._p1*Math.pow(2,10*(e-=1))*Math.sin((e-this._p3)*this._p2)},.3),e("ElasticInOut",function(e){return(e*=2)<1?this._p1*Math.pow(2,10*(e-=1))*Math.sin((e-this._p3)*this._p2)*-.5:this._p1*Math.pow(2,-10*(e-=1))*Math.sin((e-this._p3)*this._p2)*.5+1},.45)),u("Expo",a("ExpoOut",function(e){return 1-Math.pow(2,-10*e)}),a("ExpoIn",function(e){return Math.pow(2,10*(e-1))-.001}),a("ExpoInOut",function(e){return(e*=2)<1?.5*Math.pow(2,10*(e-1)):.5*(2-Math.pow(2,-10*(e-1)))})),u("Sine",a("SineOut",function(e){return Math.sin(e*l)}),a("SineIn",function(e){return 1-Math.cos(e*l)}),a("SineInOut",function(e){return-.5*(Math.cos(Math.PI*e)-1)})),r("easing.EaseLookup",{find:function(e){return b.map[e]}},!0),d(s.SlowMo,"SlowMo","ease,"),d(o,"RoughEase","ease,"),d(t,"SteppedEase","ease,"),_},!0)}),_fwd_gsScope.FWDFWD_gsDefine&&_fwd_gsScope._fwd_gsQueue.pop()(),function(c,f){"use strict";var p={},b=c.FWDGreenSockGlobals=c.FWDGreenSockGlobals||c;if(!b.FWDTweenLite){var e,t,o,m,g,s,i,y=function(e){var t,o=e.split("."),s=b;for(t=0;t<o.length;t++)s[o[t]]=s=s[o[t]]||{};return s},h=y("com.greensock"),v=1e-10,a=function(e){var t,o=[],s=e.length;for(t=0;t!==s;o.push(e[t++]));return o},S=function(){},P=(s=Object.prototype.toString,i=s.call([]),function(e){return null!=e&&(e instanceof Array||"object"==typeof e&&!!e.push&&s.call(e)===i)}),E={},w=function(a,d,u,h){this.sc=E[a]?E[a].sc:[],(E[a]=this).gsClass=null,this.func=u;var _=[];this.check=function(e){for(var t,o,s,i,n,l=d.length,r=l;-1<--l;)(t=E[d[l]]||new w(d[l],[])).gsClass?(_[l]=t.gsClass,r--):e&&t.sc.push(this);if(0===r&&u){if(s=(o=("com.greensock."+a).split(".")).pop(),i=y(o.join("."))[s]=this.gsClass=u.apply(u,_),h)if(b[s]=p[s]=i,!(n="undefined"!=typeof fwd_module&&fwd_module.exports)&&"function"==typeof define&&define.amd)define((c.FWDGreenSockAMDPath?c.FWDGreenSockAMDPath+"/":"")+a.split(".").pop(),[],function(){return i});else if(n)if(a===f)for(l in fwd_module.exports=p[f]=i,p)i[l]=p[l];else p[f]&&(p[f][s]=i);for(l=0;l<this.sc.length;l++)this.sc[l].check()}},this.check(!0)},n=c.FWDFWD_gsDefine=function(e,t,o,s){return new w(e,t,o,s)},_=h._class=function(e,t,o){return t=t||function(){},n(e,[],function(){return t},o),t};n.globals=b;var l=[0,0,1,1],T=_("easing.Ease",function(e,t,o,s){this._func=e,this._type=o||0,this._power=s||0,this._params=t?l.concat(t):l},!0),D=T.map={},r=T.register=function(e,t,o,s){for(var i,n,l,r,a=t.split(","),d=a.length,u=(o||"easeIn,easeOut,easeInOut").split(",");-1<--d;)for(n=a[d],i=s?_("easing."+n,null,!0):h.easing[n]||{},l=u.length;-1<--l;)r=u[l],D[n+"."+r]=D[r+n]=i[r]=e.getRatio?e:e[r]||new e};for((o=T.prototype)._calcEnd=!1,o.getRatio=function(e){if(this._func)return this._params[0]=e,this._func.apply(null,this._params);var t=this._type,o=this._power,s=1===t?1-e:2===t?e:e<.5?2*e:2*(1-e);return 1===o?s*=s:2===o?s*=s*s:3===o?s*=s*s*s:4===o&&(s*=s*s*s*s),1===t?1-s:2===t?s:e<.5?s/2:1-s/2},t=(e=["Linear","Quad","Cubic","Quart","Quint,Strong"]).length;-1<--t;)o=e[t]+",Power"+t,r(new T(null,null,1,t),o,"easeOut",!0),r(new T(null,null,2,t),o,"easeIn"+(0===t?",easeNone":"")),r(new T(null,null,3,t),o,"easeInOut");D.linear=h.easing.Linear.easeIn,D.swing=h.easing.Quad.easeInOut;var W=_("events.EventDispatcher",function(e){this._listeners={},this._eventTarget=e||this});(o=W.prototype).addEventListener=function(e,t,o,s,i){i=i||0;var n,l,r=this._listeners[e],a=0;for(this!==m||g||m.wake(),null==r&&(this._listeners[e]=r=[]),l=r.length;-1<--l;)(n=r[l]).c===t&&n.s===o?r.splice(l,1):0===a&&n.pr<i&&(a=l+1);r.splice(a,0,{c:t,s:o,up:s,pr:i})},o.removeEventListener=function(e,t){var o,s=this._listeners[e];if(s)for(o=s.length;-1<--o;)if(s[o].c===t)return void s.splice(o,1)},o.dispatchEvent=function(e){var t,o,s,i=this._listeners[e];if(i)for(1<(t=i.length)&&(i=i.slice(0)),o=this._eventTarget;-1<--t;)(s=i[t])&&(s.up?s.c.call(s.s||o,{type:e,target:o}):s.c.call(s.s||o))};var C=c.requestAnimationFrame,B=c.cancelAnimationFrame,F=Date.now||function(){return(new Date).getTime()},V=F();for(t=(e=["ms","moz","webkit","o"]).length;-1<--t&&!C;)C=c[e[t]+"RequestAnimationFrame"],B=c[e[t]+"CancelAnimationFrame"]||c[e[t]+"CancelRequestAnimationFrame"];_("Ticker",function(e,t){var i,n,l,r,a,d=this,u=F(),o=!(!1===t||!C)&&"auto",h=500,_=33,c=function(e){var t,o,s=F()-V;h<s&&(u+=s-_),V+=s,d.time=(V-u)/1e3,t=d.time-a,(!i||0<t||!0===e)&&(d.frame++,a+=t+(r<=t?.004:r-t),o=!0),!0!==e&&(l=n(c)),o&&d.dispatchEvent("tick")};W.call(d),d.time=d.frame=0,d.tick=function(){c(!0)},d.lagSmoothing=function(e,t){h=e||1e10,_=Math.min(t,h,0)},d.sleep=function(){null!=l&&(o&&B?B(l):clearTimeout(l),n=S,l=null,d===m&&(g=!1))},d.wake=function(e){null!==l?d.sleep():e?u+=-V+(V=F()):10<d.frame&&(V=F()-h+5),n=0===i?S:o&&C?C:function(e){return setTimeout(e,1e3*(a-d.time)+1|0)},d===m&&(g=!0),c(2)},d.fps=function(e){if(!arguments.length)return i;r=1/((i=e)||60),a=this.time+r,d.wake()},d.useRAF=function(e){if(!arguments.length)return o;d.sleep(),o=e,d.fps(i)},d.fps(e),setTimeout(function(){"auto"===o&&d.frame<5&&"hidden"!==document.visibilityState&&d.useRAF(!1)},1500)}),(o=h.Ticker.prototype=new h.events.EventDispatcher).constructor=h.Ticker;var d=_("core.FWDAnim",function(e,t){if(this.vars=t=t||{},this._duration=this._totalDuration=e||0,this._delay=Number(t.delay)||0,this._timeScale=1,this._active=!0===t.immediateRender,this.data=t.data,this._reversed=!0===t.reversed,G){g||m.wake();var o=this.vars.useFrames?Q:G;o.add(this,o._time),this.vars.paused&&this.paused(!0)}});m=d.ticker=new h.Ticker,(o=d.prototype)._dirty=o._gc=o._initted=o._paused=!1,o._totalTime=o._time=0,o._rawPrevTime=-1,o._next=o._last=o._onUpdate=o._timeline=o.timeline=null,o._paused=!1;var u=function(){g&&2e3<F()-V&&m.wake(),setTimeout(u,2e3)};u(),o.play=function(e,t){return null!=e&&this.seek(e,t),this.reversed(!1).paused(!1)},o.pause=function(e,t){return null!=e&&this.seek(e,t),this.paused(!0)},o.resume=function(e,t){return null!=e&&this.seek(e,t),this.paused(!1)},o.seek=function(e,t){return this.totalTime(Number(e),!1!==t)},o.restart=function(e,t){return this.reversed(!1).paused(!1).totalTime(e?-this._delay:0,!1!==t,!0)},o.reverse=function(e,t){return null!=e&&this.seek(e||this.totalDuration(),t),this.reversed(!0).paused(!1)},o.render=function(e,t,o){},o.invalidate=function(){return this._time=this._totalTime=0,this._initted=this._gc=!1,this._rawPrevTime=-1,!this._gc&&this.timeline||this._enabled(!0),this},o.isActive=function(){var e,t=this._timeline,o=this._startTime;return!t||!this._gc&&!this._paused&&t.isActive()&&(e=t.rawTime())>=o&&e<o+this.totalDuration()/this._timeScale},o._enabled=function(e,t){return g||m.wake(),this._gc=!e,this._active=this.isActive(),!0!==t&&(e&&!this.timeline?this._timeline.add(this,this._startTime-this._delay):!e&&this.timeline&&this._timeline._remove(this,!0)),!1},o._kill=function(e,t){return this._enabled(!1,!1)},o.kill=function(e,t){return this._kill(e,t),this},o._uncache=function(e){for(var t=e?this:this.timeline;t;)t._dirty=!0,t=t.timeline;return this},o._swapSelfInParams=function(e){for(var t=e.length,o=e.concat();-1<--t;)"{self}"===e[t]&&(o[t]=this);return o},o._callback=function(e){var t=this.vars,o=t[e],s=t[e+"Params"],i=t[e+"Scope"]||t.callbackScope||this;switch(s?s.length:0){case 0:o.call(i);break;case 1:o.call(i,s[0]);break;case 2:o.call(i,s[0],s[1]);break;default:o.apply(i,s)}},o.eventCallback=function(e,t,o,s){if("on"===(e||"").substr(0,2)){var i=this.vars;if(1===arguments.length)return i[e];null==t?delete i[e]:(i[e]=t,i[e+"Params"]=P(o)&&-1!==o.join("").indexOf("{self}")?this._swapSelfInParams(o):o,i[e+"Scope"]=s),"onUpdate"===e&&(this._onUpdate=t)}return this},o.delay=function(e){return arguments.length?(this._timeline.smoothChildTiming&&this.startTime(this._startTime+e-this._delay),this._delay=e,this):this._delay},o.duration=function(e){return arguments.length?(this._duration=this._totalDuration=e,this._uncache(!0),this._timeline.smoothChildTiming&&0<this._time&&this._time<this._duration&&0!==e&&this.totalTime(this._totalTime*(e/this._duration),!0),this):(this._dirty=!1,this._duration)},o.totalDuration=function(e){return this._dirty=!1,arguments.length?this.duration(e):this._totalDuration},o.time=function(e,t){return arguments.length?(this._dirty&&this.totalDuration(),this.totalTime(e>this._duration?this._duration:e,t)):this._time},o.totalTime=function(e,t,o){if(g||m.wake(),!arguments.length)return this._totalTime;if(this._timeline){if(e<0&&!o&&(e+=this.totalDuration()),this._timeline.smoothChildTiming){this._dirty&&this.totalDuration();var s=this._totalDuration,i=this._timeline;if(s<e&&!o&&(e=s),this._startTime=(this._paused?this._pauseTime:i._time)-(this._reversed?s-e:e)/this._timeScale,i._dirty||this._uncache(!1),i._timeline)for(;i._timeline;)i._timeline._time!==(i._startTime+i._totalTime)/i._timeScale&&i.totalTime(i._totalTime,!0),i=i._timeline}this._gc&&this._enabled(!0,!1),this._totalTime===e&&0!==this._duration||(x.length&&K(),this.render(e,t,!1),x.length&&K())}return this},o.progress=o.totalProgress=function(e,t){var o=this.duration();return arguments.length?this.totalTime(o*e,t):o?this._time/o:this.ratio},o.startTime=function(e){return arguments.length?(e!==this._startTime&&(this._startTime=e,this.timeline&&this.timeline._sortChildren&&this.timeline.add(this,e-this._delay)),this):this._startTime},o.endTime=function(e){return this._startTime+(0!=e?this.totalDuration():this.duration())/this._timeScale},o.timeScale=function(e){if(!arguments.length)return this._timeScale;if(e=e||v,this._timeline&&this._timeline.smoothChildTiming){var t=this._pauseTime,o=t||0===t?t:this._timeline.totalTime();this._startTime=o-(o-this._startTime)*this._timeScale/e}return this._timeScale=e,this._uncache(!1)},o.reversed=function(e){return arguments.length?(e!=this._reversed&&(this._reversed=e,this.totalTime(this._timeline&&!this._timeline.smoothChildTiming?this.totalDuration()-this._totalTime:this._totalTime,!0)),this):this._reversed},o.paused=function(e){if(!arguments.length)return this._paused;var t,o,s=this._timeline;return e!=this._paused&&s&&(g||e||m.wake(),o=(t=s.rawTime())-this._pauseTime,!e&&s.smoothChildTiming&&(this._startTime+=o,this._uncache(!1)),this._pauseTime=e?t:null,this._paused=e,this._active=this.isActive(),!e&&0!==o&&this._initted&&this.duration()&&(t=s.smoothChildTiming?this._totalTime:(t-this._startTime)/this._timeScale,this.render(t,t===this._totalTime,!0))),this._gc&&!e&&this._enabled(!0,!1),this};var k=_("core.FWDSimpleTimeline",function(e){d.call(this,0,e),this.autoRemoveChildren=this.smoothChildTiming=!0});(o=k.prototype=new d).constructor=k,o.kill()._gc=!1,o._first=o._last=o._recent=null,o._sortChildren=!1,o.add=o.insert=function(e,t,o,s){var i,n;if(e._startTime=Number(t||0)+e._delay,e._paused&&this!==e._timeline&&(e._pauseTime=e._startTime+(this.rawTime()-e._startTime)/e._timeScale),e.timeline&&e.timeline._remove(e,!0),e.timeline=e._timeline=this,e._gc&&e._enabled(!0,!0),i=this._last,this._sortChildren)for(n=e._startTime;i&&i._startTime>n;)i=i._prev;return i?(e._next=i._next,i._next=e):(e._next=this._first,this._first=e),e._next?e._next._prev=e:this._last=e,e._prev=i,this._recent=e,this._timeline&&this._uncache(!0),this},o._remove=function(e,t){return e.timeline===this&&(t||e._enabled(!1,!0),e._prev?e._prev._next=e._next:this._first===e&&(this._first=e._next),e._next?e._next._prev=e._prev:this._last===e&&(this._last=e._prev),e._next=e._prev=e.timeline=null,e===this._recent&&(this._recent=this._last),this._timeline&&this._uncache(!0)),this},o.render=function(e,t,o){var s,i=this._first;for(this._totalTime=this._time=this._rawPrevTime=e;i;)s=i._next,(i._active||e>=i._startTime&&!i._paused)&&(i._reversed?i.render((i._dirty?i.totalDuration():i._totalDuration)-(e-i._startTime)*i._timeScale,t,o):i.render((e-i._startTime)*i._timeScale,t,o)),i=s},o.rawTime=function(){return g||m.wake(),this._totalTime};var O=_("FWDTweenLite",function(e,t,o){if(d.call(this,t,o),this.render=O.prototype.render,null==e)throw"Cannot tween a null target.";this.target=e="string"!=typeof e?e:O.selector(e)||e;var s,i,n,l=e.jquery||e.length&&e!==c&&e[0]&&(e[0]===c||e[0].nodeType&&e[0].style&&!e.nodeType),r=this.vars.overwrite;if(this._overwrite=r=null==r?j[O.defaultOverwrite]:"number"==typeof r?r>>0:j[r],(l||e instanceof Array||e.push&&P(e))&&"number"!=typeof e[0])for(this._targets=n=a(e),this._propLookup=[],this._siblings=[],s=0;s<n.length;s++)(i=n[s])?"string"!=typeof i?i.length&&i!==c&&i[0]&&(i[0]===c||i[0].nodeType&&i[0].style&&!i.nodeType)?(n.splice(s--,1),this._targets=n=n.concat(a(i))):(this._siblings[s]=J(i,this,!1),1===r&&1<this._siblings[s].length&&Z(i,this,null,1,this._siblings[s])):"string"==typeof(i=n[s--]=O.selector(i))&&n.splice(s+1,1):n.splice(s--,1);else this._propLookup={},this._siblings=J(e,this,!1),1===r&&1<this._siblings.length&&Z(e,this,null,1,this._siblings);(this.vars.immediateRender||0===t&&0===this._delay&&!1!==this.vars.immediateRender)&&(this._time=-v,this.render(Math.min(0,-this._delay)))},!0),H=function(e){return e&&e.length&&e!==c&&e[0]&&(e[0]===c||e[0].nodeType&&e[0].style&&!e.nodeType)};(o=O.prototype=new d).constructor=O,o.kill()._gc=!1,o.ratio=0,o._firstPT=o._targets=o._overwrittenProps=o._startAt=null,o._notifyPluginsOfEnabled=o._lazy=!1,O.version="1.19.0",O.defaultEase=o._ease=new T(null,null,1,1),O.defaultOverwrite="auto",O.ticker=m,O.autoSleep=120,O.lagSmoothing=function(e,t){m.lagSmoothing(e,t)},O.selector=c.$||c.jQuery||function(e){var t=c.$||c.jQuery;return t?(O.selector=t)(e):"undefined"==typeof document?e:document.querySelectorAll?document.querySelectorAll(e):document.getElementById("#"===e.charAt(0)?e.substr(1):e)};var x=[],L={},A=/(?:(-|-=|\+=)?\d*\.?\d*(?:e[\-+]?\d+)?)[0-9]/gi,I=function(e){for(var t,o=this._firstPT;o;)t=o.blob?e?this.join(""):this.start:o.c*e+o.s,o.m?t=o.m(t,this._target||o.t):t<1e-6&&-1e-6<t&&(t=0),o.f?o.fp?o.t[o.p](o.fp,t):o.t[o.p](t):o.t[o.p]=t,o=o._next},M=function(e,t,o,s){var i,n,l,r,a,d,u,h=[e,t],_=0,c="",f=0;for(h.start=e,o&&(o(h),e=h[0],t=h[1]),h.length=0,i=e.match(A)||[],n=t.match(A)||[],s&&(s._next=null,s.blob=1,h._firstPT=h._applyPT=s),a=n.length,r=0;r<a;r++)u=n[r],c+=(d=t.substr(_,t.indexOf(u,_)-_))||!r?d:",",_+=d.length,f?f=(f+1)%5:"rgba("===d.substr(-5)&&(f=1),u===i[r]||i.length<=r?c+=u:(c&&(h.push(c),c=""),l=parseFloat(i[r]),h.push(l),h._firstPT={_next:h._firstPT,t:h,p:h.length-1,s:l,c:("="===u.charAt(1)?parseInt(u.charAt(0)+"1",10)*parseFloat(u.substr(2)):parseFloat(u)-l)||0,f:0,m:f&&f<4?Math.round:0}),_+=u.length;return(c+=t.substr(_))&&h.push(c),h.setRatio=I,h},R=function(e,t,o,s,i,n,l,r,a){"function"==typeof s&&(s=s(a||0,e));var d,u="get"===o?e[t]:o,h=typeof e[t],_="string"==typeof s&&"="===s.charAt(1),c={t:e,p:t,s:u,f:"function"===h,pg:0,n:i||t,m:n?"function"==typeof n?n:Math.round:0,pr:0,c:_?parseInt(s.charAt(0)+"1",10)*parseFloat(s.substr(2)):parseFloat(s)-u||0};if("number"!==h&&("function"===h&&"get"===o&&(d=t.indexOf("set")||"function"!=typeof e["get"+t.substr(3)]?t:"get"+t.substr(3),c.s=u=l?e[d](l):e[d]()),"string"==typeof u&&(l||isNaN(u))?(c.fp=l,c={t:M(u,s,r||O.defaultStringFilter,c),p:"setRatio",s:0,c:1,f:2,pg:0,n:i||t,pr:0,m:0}):_||(c.s=parseFloat(u),c.c=parseFloat(s)-c.s||0)),c.c)return(c._next=this._firstPT)&&(c._next._prev=c),this._firstPT=c},U=O._internals={isArray:P,isSelector:H,lazyTweens:x,blobDif:M},N=O._plugins={},X=U.tweenLookup={},Y=0,z=U.reservedProps={ease:1,delay:1,overwrite:1,onComplete:1,onCompleteParams:1,onCompleteScope:1,useFrames:1,runBackwards:1,startAt:1,onUpdate:1,onUpdateParams:1,onUpdateScope:1,onStart:1,onStartParams:1,onStartScope:1,onReverseComplete:1,onReverseCompleteParams:1,onReverseCompleteScope:1,onRepeat:1,onRepeatParams:1,onRepeatScope:1,easeParams:1,yoyo:1,immediateRender:1,repeat:1,repeatDelay:1,data:1,paused:1,reversed:1,autoCSS:1,lazy:1,onOverwrite:1,callbackScope:1,stringFilter:1,id:1},j={none:0,all:1,auto:2,concurrent:3,allOnStart:4,preexisting:5,true:1,false:0},Q=d._rootFramesTimeline=new k,G=d._rootTimeline=new k,q=30,K=U.lazyRender=function(){var e,t=x.length;for(L={};-1<--t;)(e=x[t])&&!1!==e._lazy&&(e.render(e._lazy[0],e._lazy[1],!0),e._lazy=!1);x.length=0};G._startTime=m.time,Q._startTime=m.frame,G._active=Q._active=!0,setTimeout(K,1),d._updateRoot=O.render=function(){var e,t,o;if(x.length&&K(),G.render((m.time-G._startTime)*G._timeScale,!1,!1),Q.render((m.frame-Q._startTime)*Q._timeScale,!1,!1),x.length&&K(),m.frame>=q){for(o in q=m.frame+(parseInt(O.autoSleep,10)||120),X){for(e=(t=X[o].tweens).length;-1<--e;)t[e]._gc&&t.splice(e,1);0===t.length&&delete X[o]}if((!(o=G._first)||o._paused)&&O.autoSleep&&!Q._first&&1===m._listeners.tick.length){for(;o&&o._paused;)o=o._next;o||m.sleep()}}},m.addEventListener("tick",d._updateRoot);var J=function(e,t,o){var s,i,n=e._gsTweenID;if(X[n||(e._gsTweenID=n="t"+Y++)]||(X[n]={target:e,tweens:[]}),t&&((s=X[n].tweens)[i=s.length]=t,o))for(;-1<--i;)s[i]===t&&s.splice(i,1);return X[n].tweens},$=function(e,t,o,s){var i,n,l=e.vars.onOverwrite;return l&&(i=l(e,t,o,s)),(l=O.onOverwrite)&&(n=l(e,t,o,s)),!1!==i&&!1!==n},Z=function(e,t,o,s,i){var n,l,r,a;if(1===s||4<=s){for(a=i.length,n=0;n<a;n++)if((r=i[n])!==t)r._gc||r._kill(null,e,t)&&(l=!0);else if(5===s)break;return l}var d,u=t._startTime+v,h=[],_=0,c=0===t._duration;for(n=i.length;-1<--n;)(r=i[n])===t||r._gc||r._paused||(r._timeline!==t._timeline?(d=d||ee(t,0,c),0===ee(r,d,c)&&(h[_++]=r)):r._startTime<=u&&r._startTime+r.totalDuration()/r._timeScale>u&&((c||!r._initted)&&u-r._startTime<=2e-10||(h[_++]=r)));for(n=_;-1<--n;)if(r=h[n],2===s&&r._kill(o,e,t)&&(l=!0),2!==s||!r._firstPT&&r._initted){if(2!==s&&!$(r,t))continue;r._enabled(!1,!1)&&(l=!0)}return l},ee=function(e,t,o){for(var s=e._timeline,i=s._timeScale,n=e._startTime;s._timeline;){if(n+=s._startTime,i*=s._timeScale,s._paused)return-100;s=s._timeline}return t<(n/=i)?n-t:o&&n===t||!e._initted&&n-t<2*v?v:(n+=e.totalDuration()/e._timeScale/i)>t+v?0:n-t-v};o._init=function(){var e,t,o,s,i,n,l=this.vars,r=this._overwrittenProps,a=this._duration,d=!!l.immediateRender,u=l.ease;if(l.startAt){for(s in this._startAt&&(this._startAt.render(-1,!0),this._startAt.kill()),i={},l.startAt)i[s]=l.startAt[s];if(i.overwrite=!1,i.immediateRender=!0,i.lazy=d&&!1!==l.lazy,i.startAt=i.delay=null,this._startAt=O.to(this.target,0,i),d)if(0<this._time)this._startAt=null;else if(0!==a)return}else if(l.runBackwards&&0!==a)if(this._startAt)this._startAt.render(-1,!0),this._startAt.kill(),this._startAt=null;else{for(s in 0!==this._time&&(d=!1),o={},l)z[s]&&"autoCSS"!==s||(o[s]=l[s]);if(o.overwrite=0,o.data="isFromStart",o.lazy=d&&!1!==l.lazy,o.immediateRender=d,this._startAt=O.to(this.target,0,o),d){if(0===this._time)return}else this._startAt._init(),this._startAt._enabled(!1),this.vars.immediateRender&&(this._startAt=null)}if(this._ease=u=u?u instanceof T?u:"function"==typeof u?new T(u,l.easeParams):D[u]||O.defaultEase:O.defaultEase,l.easeParams instanceof Array&&u.config&&(this._ease=u.config.apply(u,l.easeParams)),this._easeType=this._ease._type,this._easePower=this._ease._power,this._firstPT=null,this._targets)for(n=this._targets.length,e=0;e<n;e++)this._initProps(this._targets[e],this._propLookup[e]={},this._siblings[e],r?r[e]:null,e)&&(t=!0);else t=this._initProps(this.target,this._propLookup,this._siblings,r,0);if(t&&O._onPluginEvent("_onInitAllProps",this),r&&(this._firstPT||"function"!=typeof this.target&&this._enabled(!1,!1)),l.runBackwards)for(o=this._firstPT;o;)o.s+=o.c,o.c=-o.c,o=o._next;this._onUpdate=l.onUpdate,this._initted=!0},o._initProps=function(e,t,o,s,i){var n,l,r,a,d,u;if(null==e)return!1;for(n in L[e._gsTweenID]&&K(),this.vars.css||e.style&&e!==c&&e.nodeType&&N.css&&!1!==this.vars.autoCSS&&function(e,t){var o,s={};for(o in e)z[o]||o in t&&"transform"!==o&&"x"!==o&&"y"!==o&&"width"!==o&&"height"!==o&&"className"!==o&&"border"!==o||!(!N[o]||N[o]&&N[o]._autoCSS)||(s[o]=e[o],delete e[o]);e.css=s}(this.vars,e),this.vars)if(u=this.vars[n],z[n])u&&(u instanceof Array||u.push&&P(u))&&-1!==u.join("").indexOf("{self}")&&(this.vars[n]=u=this._swapSelfInParams(u,this));else if(N[n]&&(a=new N[n])._onInitTween(e,this.vars[n],this,i)){for(this._firstPT=d={_next:this._firstPT,t:a,p:"setRatio",s:0,c:1,f:1,n:n,pg:1,pr:a._priority,m:0},l=a._overwriteProps.length;-1<--l;)t[a._overwriteProps[l]]=this._firstPT;(a._priority||a._onInitAllProps)&&(r=!0),(a._onDisable||a._onEnable)&&(this._notifyPluginsOfEnabled=!0),d._next&&(d._next._prev=d)}else t[n]=R.call(this,e,n,"get",u,n,0,null,this.vars.stringFilter,i);return s&&this._kill(s,e)?this._initProps(e,t,o,s,i):1<this._overwrite&&this._firstPT&&1<o.length&&Z(e,this,t,this._overwrite,o)?(this._kill(t,e),this._initProps(e,t,o,s,i)):(this._firstPT&&(!1!==this.vars.lazy&&this._duration||this.vars.lazy&&!this._duration)&&(L[e._gsTweenID]=!0),r)},o.render=function(e,t,o){var s,i,n,l,r=this._time,a=this._duration,d=this._rawPrevTime;if(a-1e-7<=e)this._totalTime=this._time=a,this.ratio=this._ease._calcEnd?this._ease.getRatio(1):1,this._reversed||(s=!0,i="onComplete",o=o||this._timeline.autoRemoveChildren),0===a&&(this._initted||!this.vars.lazy||o)&&(this._startTime===this._timeline._duration&&(e=0),(d<0||e<=0&&-1e-7<=e||d===v&&"isPause"!==this.data)&&d!==e&&(o=!0,v<d&&(i="onReverseComplete")),this._rawPrevTime=l=!t||e||d===e?e:v);else if(e<1e-7)this._totalTime=this._time=0,this.ratio=this._ease._calcEnd?this._ease.getRatio(0):0,(0!==r||0===a&&0<d)&&(i="onReverseComplete",s=this._reversed),e<0&&(this._active=!1,0===a&&(this._initted||!this.vars.lazy||o)&&(0<=d&&(d!==v||"isPause"!==this.data)&&(o=!0),this._rawPrevTime=l=!t||e||d===e?e:v)),this._initted||(o=!0);else if(this._totalTime=this._time=e,this._easeType){var u=e/a,h=this._easeType,_=this._easePower;(1===h||3===h&&.5<=u)&&(u=1-u),3===h&&(u*=2),1===_?u*=u:2===_?u*=u*u:3===_?u*=u*u*u:4===_&&(u*=u*u*u*u),this.ratio=1===h?1-u:2===h?u:e/a<.5?u/2:1-u/2}else this.ratio=this._ease.getRatio(e/a);if(this._time!==r||o){if(!this._initted){if(this._init(),!this._initted||this._gc)return;if(!o&&this._firstPT&&(!1!==this.vars.lazy&&this._duration||this.vars.lazy&&!this._duration))return this._time=this._totalTime=r,this._rawPrevTime=d,x.push(this),void(this._lazy=[e,t]);this._time&&!s?this.ratio=this._ease.getRatio(this._time/a):s&&this._ease._calcEnd&&(this.ratio=this._ease.getRatio(0===this._time?0:1))}for(!1!==this._lazy&&(this._lazy=!1),this._active||!this._paused&&this._time!==r&&0<=e&&(this._active=!0),0===r&&(this._startAt&&(0<=e?this._startAt.render(e,t,o):i||(i="_dummyGS")),this.vars.onStart&&(0===this._time&&0!==a||t||this._callback("onStart"))),n=this._firstPT;n;)n.f?n.t[n.p](n.c*this.ratio+n.s):n.t[n.p]=n.c*this.ratio+n.s,n=n._next;this._onUpdate&&(e<0&&this._startAt&&-1e-4!==e&&this._startAt.render(e,t,o),t||(this._time!==r||s||o)&&this._callback("onUpdate")),i&&(this._gc&&!o||(e<0&&this._startAt&&!this._onUpdate&&-1e-4!==e&&this._startAt.render(e,t,o),s&&(this._timeline.autoRemoveChildren&&this._enabled(!1,!1),this._active=!1),!t&&this.vars[i]&&this._callback(i),0===a&&this._rawPrevTime===v&&l!==v&&(this._rawPrevTime=0)))}},o._kill=function(e,t,o){if("all"===e&&(e=null),null==e&&(null==t||t===this.target))return this._lazy=!1,this._enabled(!1,!1);t="string"!=typeof t?t||this._targets||this.target:O.selector(t)||t;var s,i,n,l,r,a,d,u,h,_=o&&this._time&&o._startTime===this._startTime&&this._timeline===o._timeline;if((P(t)||H(t))&&"number"!=typeof t[0])for(s=t.length;-1<--s;)this._kill(e,t[s],o)&&(a=!0);else{if(this._targets){for(s=this._targets.length;-1<--s;)if(t===this._targets[s]){r=this._propLookup[s]||{},this._overwrittenProps=this._overwrittenProps||[],i=this._overwrittenProps[s]=e?this._overwrittenProps[s]||{}:"all";break}}else{if(t!==this.target)return!1;r=this._propLookup,i=this._overwrittenProps=e?this._overwrittenProps||{}:"all"}if(r){if(d=e||r,u=e!==i&&"all"!==i&&e!==r&&("object"!=typeof e||!e._tempKill),o&&(O.onOverwrite||this.vars.onOverwrite)){for(n in d)r[n]&&(h||(h=[]),h.push(n));if((h||!e)&&!$(this,o,t,h))return!1}for(n in d)(l=r[n])&&(_&&(l.f?l.t[l.p](l.s):l.t[l.p]=l.s,a=!0),l.pg&&l.t._kill(d)&&(a=!0),l.pg&&0!==l.t._overwriteProps.length||(l._prev?l._prev._next=l._next:l===this._firstPT&&(this._firstPT=l._next),l._next&&(l._next._prev=l._prev),l._next=l._prev=null),delete r[n]),u&&(i[n]=1);!this._firstPT&&this._initted&&this._enabled(!1,!1)}}return a},o.invalidate=function(){return this._notifyPluginsOfEnabled&&O._onPluginEvent("_onDisable",this),this._firstPT=this._overwrittenProps=this._startAt=this._onUpdate=null,this._notifyPluginsOfEnabled=this._active=this._lazy=!1,this._propLookup=this._targets?{}:[],d.prototype.invalidate.call(this),this.vars.immediateRender&&(this._time=-v,this.render(Math.min(0,-this._delay))),this},o._enabled=function(e,t){if(g||m.wake(),e&&this._gc){var o,s=this._targets;if(s)for(o=s.length;-1<--o;)this._siblings[o]=J(s[o],this,!0);else this._siblings=J(this.target,this,!0)}return d.prototype._enabled.call(this,e,t),!(!this._notifyPluginsOfEnabled||!this._firstPT)&&O._onPluginEvent(e?"_onEnable":"_onDisable",this)},O.to=function(e,t,o){return new O(e,t,o)},O.from=function(e,t,o){return o.runBackwards=!0,o.immediateRender=0!=o.immediateRender,new O(e,t,o)},O.fromTo=function(e,t,o,s){return s.startAt=o,s.immediateRender=0!=s.immediateRender&&0!=o.immediateRender,new O(e,t,s)},O.delayedCall=function(e,t,o,s,i){return new O(t,0,{delay:e,onComplete:t,onCompleteParams:o,callbackScope:s,onReverseComplete:t,onReverseCompleteParams:o,immediateRender:!1,lazy:!1,useFrames:i,overwrite:0})},O.set=function(e,t){return new O(e,0,t)},O.getTweensOf=function(e,t){if(null==e)return[];var o,s,i,n;if(e="string"!=typeof e?e:O.selector(e)||e,(P(e)||H(e))&&"number"!=typeof e[0]){for(o=e.length,s=[];-1<--o;)s=s.concat(O.getTweensOf(e[o],t));for(o=s.length;-1<--o;)for(n=s[o],i=o;-1<--i;)n===s[i]&&s.splice(o,1)}else for(o=(s=J(e).concat()).length;-1<--o;)(s[o]._gc||t&&!s[o].isActive())&&s.splice(o,1);return s},O.killTweensOf=O.killDelayedCallsTo=function(e,t,o){"object"==typeof t&&(o=t,t=!1);for(var s=O.getTweensOf(e,t),i=s.length;-1<--i;)s[i]._kill(o,e)};var te=_("plugins.TweenPlugin",function(e,t){this._overwriteProps=(e||"").split(","),this._propName=this._overwriteProps[0],this._priority=t||0,this._super=te.prototype},!0);if(o=te.prototype,te.version="1.19.0",te.API=2,o._firstPT=null,o._addTween=R,o.setRatio=I,o._kill=function(e){var t,o=this._overwriteProps,s=this._firstPT;if(null!=e[this._propName])this._overwriteProps=[];else for(t=o.length;-1<--t;)null!=e[o[t]]&&o.splice(t,1);for(;s;)null!=e[s.n]&&(s._next&&(s._next._prev=s._prev),s._prev?(s._prev._next=s._next,s._prev=null):this._firstPT===s&&(this._firstPT=s._next)),s=s._next;return!1},o._mod=o._roundProps=function(e){for(var t,o=this._firstPT;o;)(t=e[this._propName]||null!=o.n&&e[o.n.split(this._propName+"_").join("")])&&"function"==typeof t&&(2===o.f?o.t._applyPT.m=t:o.m=t),o=o._next},O._onPluginEvent=function(e,t){var o,s,i,n,l,r=t._firstPT;if("_onInitAllProps"===e){for(;r;){for(l=r._next,s=i;s&&s.pr>r.pr;)s=s._next;(r._prev=s?s._prev:n)?r._prev._next=r:i=r,(r._next=s)?s._prev=r:n=r,r=l}r=t._firstPT=i}for(;r;)r.pg&&"function"==typeof r.t[e]&&r.t[e]()&&(o=!0),r=r._next;return o},te.activate=function(e){for(var t=e.length;-1<--t;)e[t].API===te.API&&(N[(new e[t])._propName]=e[t]);return!0},n.plugin=function(e){if(!(e&&e.propName&&e.init&&e.API))throw"illegal plugin definition.";var t,o=e.propName,s=e.priority||0,i=e.overwriteProps,n={init:"_onInitTween",set:"setRatio",kill:"_kill",round:"_mod",mod:"_mod",initAll:"_onInitAllProps"},l=_("plugins."+o.charAt(0).toUpperCase()+o.substr(1)+"Plugin",function(){te.call(this,o,s),this._overwriteProps=i||[]},!0===e.fwd_global),r=l.prototype=new te(o);for(t in(r.constructor=l).API=e.API,n)"function"==typeof e[t]&&(r[n[t]]=e[t]);return l.version=e.version,te.activate([l]),l},e=c._fwd_gsQueue){for(t=0;t<e.length;t++)e[t]();for(o in E)E[o].func||c.console.log("GSAP encountered missing dependency: "+o)}g=!1}}("undefined"!=typeof fwd_module&&fwd_module.exports&&"undefined"!=typeof fwd_global?fwd_global:this||window,"FWDAnimation")}!function(e){var t=function(){var i=this;t.prototype;this.main_do=null,this.init=function(){this.setupScreen(),e.onerror=this.showError,this.screen.style.zIndex=1e25,setTimeout(this.addConsoleToDom,100),setInterval(this.position,100)},this.position=function(){var e=FWDEVPUtils.getScrollOffsets();i.setX(e.x),i.setY(e.y)},this.addConsoleToDom=function(){-1!=navigator.userAgent.toLowerCase().indexOf("msie 7")?document.getElementsByTagName("body")[0].appendChild(i.screen):document.documentElement.appendChild(i.screen)},this.setupScreen=function(){this.main_do=new FWDEVPDisplayObject("div","absolute"),this.main_do.setOverflow("auto"),this.main_do.setWidth(300),this.main_do.setHeight(200),this.setWidth(300),this.setHeight(200),this.main_do.setBkColor("#FFFFFF"),this.addChild(this.main_do)},this.showError=function(e,t,o){var s=i.main_do.getInnerHTML()+"<br>JavaScript error: "+e+" on line "+o+" for "+t;i.main_do.setInnerHTML(s),i.main_do.screen.scrollTop=i.main_do.screen.scrollHeight},this.log=function(e){var t=i.main_do.getInnerHTML()+"<br>"+e;i.main_do.setInnerHTML(t),i.main_do.getScreen().scrollTop=1e4},this.init()};t.setPrototype=function(){t.prototype=new FWDEVPDisplayObject("div","absolute")},t.prototype=null,e.FWDConsole=t}(window),function(e){var c=function(e,t,o,s,i,n,l,r,a,d,u,h){var _=this;c.prototype;this.main_do=null,this.icon_do=null,this.iconS_do=null,this.bk_do=null,this.text_do=null,this.border_do=null,this.thumbHolder_do=null,this.icon_img=e,_.useHEXColorsForSkin_bl=d,_.normalButtonsColor_str=u,_.selectedButtonsColor_str=h,this.borderNColor_str=i,this.borderSColor_str=n,this.adsBackgroundPath_str=l,this.position_str=s,this.textNormalColor_str=r,this.textSelectedColor_str=a,this.text_str=o,this.iconOverPath_str=t,this.totalWidth=215,this.totalHeight=64,this.fontSize=12,this.hasThumbanil_bl=!1,this.isShowed_bl=!1,this.isMobile_bl=FWDEVPUtils.isMobile,this.hasPointerEvent_bl=FWDEVPUtils.hasPointerEvent,_.init=function(){_.setOverflow("visible"),_.setupMainContainers(),_.hide(!1,!0)},_.setupMainContainers=function(){this.main_do=new FWDEVPDisplayObject("div"),this.main_do.hasTransform3d_bl=!1,this.main_do.hasTransform2d_bl=!1,this.main_do.setBackfaceVisibility(),this.bk_do=new FWDEVPDisplayObject("div"),this.bk_do.getStyle().background="url('"+this.adsBackgroundPath_str+"')",this.text_do=new FWDEVPDisplayObject("div"),this.text_do.hasTransform3d_bl=!1,this.text_do.hasTransform2d_bl=!1,this.text_do.setBackfaceVisibility(),this.text_do.setOverflow("visible"),this.text_do.getStyle().display="inline",this.text_do.getStyle().fontFamily="Arial",this.text_do.getStyle().fontSize="22px",this.text_do.getStyle().whiteSpace="nowrap",this.text_do.getStyle().color=this.textNormalColor_str,this.text_do.getStyle().fontSmoothing="antialiased",this.text_do.getStyle().webkitFontSmoothing="antialiased",this.text_do.getStyle().textRendering="optimizeLegibility",this.thumbHolder_do=new FWDEVPDisplayObject("div"),this.thumbHolder_do.setWidth(this.totalHeight-8),this.thumbHolder_do.setHeight(this.totalHeight-8),this.thumbHolder_do.setX(this.totalWidth-this.thumbHolder_do.w-4),this.thumbHolder_do.setY(4),this.border_do=new FWDEVPDisplayObject("div"),this.border_do.getStyle().border="1px solid "+this.borderNColor_str,this.border_do.setButtonMode(!0),this.main_do.setWidth(this.totalWidth),this.main_do.setHeight(this.totalHeight),this.bk_do.setWidth(this.totalWidth),this.bk_do.setHeight(this.totalHeight),"left"==this.position_str?(this.border_do.setX(-1),this.border_do.setWidth(this.totalWidth-1)):this.border_do.setWidth(this.totalWidth),this.border_do.setHeight(this.totalHeight-2),this.setWidth(this.totalWidth),this.setHeight(this.totalHeight),this.useHEXColorsForSkin_bl?(this.icon_do=new FWDEVPDisplayObject("div"),this.icon_do.setWidth(_.icon_img.width),this.icon_do.setHeight(_.icon_img.height),this.icon_do_canvas=FWDEVPUtils.getCanvasWithModifiedColor(this.icon_img,this.normalButtonsColor_str).canvas,this.icon_do.screen.appendChild(_.icon_do_canvas)):(this.icon_do=new FWDEVPDisplayObject("img"),this.icon_do.setScreen(this.icon_img),this.icon_do.setWidth(this.icon_img.width),this.icon_do.setHeight(this.icon_img.height)),this.iconS_img=new Image,this.iconS_img.src=this.iconOverPath_str,this.useHEXColorsForSkin_bl?(this.iconS_do=new FWDEVPDisplayObject("div"),this.iconS_do.setWidth(this.icon_do.w),this.iconS_do.setHeight(this.icon_do.h),this.iconS_img.onload=function(){_.iconS_do_canvas=FWDEVPUtils.getCanvasWithModifiedColor(_.iconS_img,_.selectedButtonsColor_str).canvas,_.iconS_do.screen.appendChild(_.iconS_do_canvas)}):(this.iconS_do=new FWDEVPDisplayObject("img"),this.iconS_do.setScreen(this.iconS_img),this.iconS_do.setWidth(this.icon_do.w),this.iconS_do.setHeight(this.icon_do.h)),this.iconS_do.setAlpha(0),this.main_do.addChild(this.bk_do),this.main_do.addChild(this.text_do),this.main_do.addChild(this.thumbHolder_do),this.main_do.addChild(this.icon_do),this.main_do.addChild(this.iconS_do),this.main_do.addChild(this.border_do),FWDEVPUtils.isIEAndLessThen9&&(this.dumy_do=new FWDEVPDisplayObject("div"),this.dumy_do.setBkColor("#00FF00"),this.dumy_do.setAlpha(1e-4),this.dumy_do.setWidth(this.totalWidth),this.dumy_do.setHeight(this.totalHeight),this.dumy_do.setButtonMode(!0),this.main_do.addChild(this.dumy_do)),this.addChild(this.main_do),this.updateText(_.text_str),_.hasPointerEvent_bl?(_.screen.addEventListener("pointerup",_.onMouseUp),_.screen.addEventListener("pointerover",_.onMouseOver),_.screen.addEventListener("pointerout",_.onMouseOut)):_.screen.addEventListener&&(_.isMobile_bl||(_.screen.addEventListener("mouseover",_.onMouseOver),_.screen.addEventListener("mouseout",_.onMouseOut),_.screen.addEventListener("mouseup",_.onMouseUp)),_.screen.addEventListener("touchend",_.onMouseUp))},_.onMouseOver=function(e){e.pointerType&&e.pointerType!=e.MSPOINTER_TYPE_MOUSE&&"mouse"!=e.pointerType||_.setSelectedState()},_.onMouseOut=function(e){e.pointerType&&e.pointerType!=e.MSPOINTER_TYPE_MOUSE&&"mouse"!=e.pointerType||_.setNormalState()},_.onMouseUp=function(e){e.preventDefault&&e.preventDefault(),2!=e.button&&_.isShowed_bl&&_.dispatchEvent(c.MOUSE_UP)},this.updateText=function(e){var t;this.text_do.setInnerHTML(e),setTimeout(function(){t=_.text_do.getWidth()+8+_.iconS_do.w,_.text_do.setX(parseInt(_.totalWidth-t)/2),_.text_do.setY(parseInt((_.totalHeight-_.text_do.getHeight())/2)+2),_.icon_do.setX(_.text_do.x+t-_.iconS_do.w),_.icon_do.setY(parseInt((_.totalHeight-_.iconS_do.h)/2)+2),_.iconS_do.setX(_.text_do.x+t-_.iconS_do.w),_.iconS_do.setY(parseInt((_.totalHeight-_.iconS_do.h)/2)+2)},50)},this.setNormalState=function(){FWDAnimation.to(_.iconS_do,.5,{alpha:0,ease:Expo.easeOut}),FWDAnimation.to(_.text_do.screen,.5,{css:{color:_.textNormalColor_str},ease:Expo.easeOut}),FWDAnimation.to(_.border_do.screen,.5,{css:{borderColor:_.borderNColor_str},ease:Expo.easeOut})},this.setSelectedState=function(){FWDAnimation.to(_.iconS_do,.5,{alpha:1,ease:Expo.easeOut}),FWDAnimation.to(_.text_do.screen,.5,{css:{color:_.textSelectedColor_str},ease:Expo.easeOut}),FWDAnimation.to(_.border_do.screen,.5,{css:{borderColor:_.borderSColor_str},ease:Expo.easeOut})},this.show=function(e){this.isShowed_bl||(this.isShowed_bl=!0,this.setVisible(!0),FWDAnimation.killTweensOf(this.main_do),e&&!_.isMobile_bl?"left"==this.position_str?FWDAnimation.to(this.main_do,.8,{x:0,delay:.8,ease:Expo.easeInOut}):FWDAnimation.to(this.main_do,.8,{x:1-this.totalWidth,delay:.8,ease:Expo.easeInOut}):"left"==this.position_str?this.main_do.setX(0):this.main_do.setX(-this.totalWidth))},this.hide=function(e,t){(this.isShowed_bl||t)&&(this.isShowed_bl=!1,this.hasThumbanil_bl=!1,FWDAnimation.killTweensOf(this.main_do),e&&!_.isMobile_bl?"left"==this.position_str?FWDAnimation.to(this.main_do,.8,{x:-this.totalWidth,ease:Expo.easeInOut,onComplete:this.hideCompleteHandler}):FWDAnimation.to(this.main_do,.8,{x:0,ease:Expo.easeInOut,onComplete:this.hideCompleteHandler}):("left"==this.position_str?this.main_do.setX(-this.totalWidth):this.main_do.setX(0),this.hideCompleteHandler()))},this.hideCompleteHandler=function(){_.smallImage_img&&(_.smallImage_img.onload=null,_.smallImage_img.src="",FWDAnimation.killTweensOf(_.icon_do)),1!=_.main_do.alpha&&_.main_do.setAlpha(1),_.thumbHolder_do.setVisible(!1),_.setVisible(!1)},this.hideWithOpacity=function(){FWDEVPUtils.isIEAndLessThen9||FWDAnimation.to(this.main_do,.8,{alpha:.5})},this.showWithOpacity=function(){FWDEVPUtils.isIEAndLessThen9||FWDAnimation.to(this.main_do,.8,{alpha:1})},_.updateHEXColors=function(e,t){FWDEVPUtils.changeCanvasHEXColor(_.icon_img,_.icon_do_canvas,e),FWDEVPUtils.changeCanvasHEXColor(_.iconS_img,_.iconS_do_canvas,t),this.text_do.getStyle().color=e,this.borderNColor_str=e,this.borderSColor_str=t,this.border_do.getStyle().border="1px solid "+this.borderNColor_str},_.init()};c.setPrototype=function(){c.prototype=null,c.prototype=new FWDEVPTransformDisplayObject("div")},c.CLICK="onClick",c.MOUSE_OVER="onMouseOver",c.SHOW_TOOLTIP="showTooltip",c.MOUSE_OUT="onMouseOut",c.MOUSE_UP="onMouseDown",c.prototype=null,e.FWDEVPAdsButton=c}(window),function(e){var l=function(e,t,o,s,i){var n=this;l.prototype;this.main_do=null,this.bk_do=null,this.text_do=null,this.border_do=null,this.thumbHolder_do=null,this.borderNColor_str=t,this.borderSColor_str=o,this.adsBackgroundPath_str=s,this.position_str=e,this.timeColor_str=i,this.totalWidth=215,this.totalHeight=64,this.fontSize=12,this.hasThumbanil_bl=!1,this.isShowed_bl=!1,this.isMobile_bl=FWDEVPUtils.isMobile,this.hasPointerEvent_bl=FWDEVPUtils.hasPointerEvent,n.init=function(){n.setOverflow("visible"),n.setupMainContainers(),n.hide(!1,!0)},n.setupMainContainers=function(){this.main_do=new FWDEVPDisplayObject("div"),this.main_do.hasTransform3d_bl=!1,this.main_do.hasTransform2d_bl=!1,this.main_do.setBackfaceVisibility(),this.bk_do=new FWDEVPDisplayObject("div"),this.bk_do.getStyle().background="url('"+this.adsBackgroundPath_str+"')",this.text_do=new FWDEVPDisplayObject("div"),this.text_do.hasTransform3d_bl=!1,this.text_do.hasTransform2d_bl=!1,this.text_do.setBackfaceVisibility(),this.text_do.getStyle().fontFamily="Arial",this.text_do.getStyle().fontSize="12px",this.text_do.getStyle().lineHeight="18px",this.text_do.getStyle().textAlign="center",this.text_do.getStyle().color=this.timeColor_str,this.text_do.getStyle().fontSmoothing="antialiased",this.text_do.getStyle().webkitFontSmoothing="antialiased",this.text_do.getStyle().textRendering="optimizeLegibility",this.text_do.setInnerHTML("..."),this.thumbHolder_do=new FWDEVPDisplayObject("div"),this.thumbHolder_do.setWidth(this.totalHeight-8),this.thumbHolder_do.setHeight(this.totalHeight-8),this.thumbHolder_do.setX(this.totalWidth-this.thumbHolder_do.w-4),this.thumbHolder_do.setY(4),this.border_do=new FWDEVPDisplayObject("div"),this.border_do.getStyle().border="1px solid "+this.borderNColor_str,this.main_do.setWidth(this.totalWidth),this.main_do.setHeight(this.totalHeight),this.bk_do.setWidth(this.totalWidth),this.bk_do.setHeight(this.totalHeight),"left"==this.position_str?(this.border_do.setX(-1),this.border_do.setWidth(this.totalWidth-1)):this.border_do.setWidth(this.totalWidth),this.border_do.setHeight(this.totalHeight-2),this.setWidth(this.totalWidth),this.setHeight(this.totalHeight),this.main_do.addChild(this.bk_do),this.main_do.addChild(this.text_do),this.main_do.addChild(this.thumbHolder_do),this.main_do.addChild(this.border_do),this.addChild(this.main_do)},this.loadThumbnail=function(e){this.hasThumbanil_bl=!0,this.thumbnail_do||(this.thumbnail_do=new FWDEVPDisplayObject("img"),this.smallImage_img=new Image),this.thumbHolder_do.setVisible(!0),this.smallImage_img.onload=this.onSmallImageLoad,this.smallImage_img.src=e},this.onSmallImageLoad=function(){n.smallImageOriginalW=n.smallImage_img.width,n.smallImageOriginalH=n.smallImage_img.height,n.thumbnail_do.setScreen(n.smallImage_img),n.thumbHolder_do.addChild(n.thumbnail_do);var e=n.thumbHolder_do.w/n.smallImageOriginalW,t=n.thumbHolder_do.h/n.smallImageOriginalH,o=0;t<=e?o=e:e<=t&&(o=t),n.thumbnail_do.setWidth(Math.round(n.smallImageOriginalW*o)),n.thumbnail_do.setHeight(Math.round(n.smallImageOriginalH*o)),n.thumbnail_do.setX(Math.round((n.thumbHolder_do.w-n.thumbnail_do.w)/2)),n.thumbnail_do.setY(Math.round((n.thumbHolder_do.h-n.thumbnail_do.h)/2)),n.thumbnail_do.setAlpha(0),FWDAnimation.to(n.thumbnail_do,.8,{alpha:1})},this.updateText=function(e){this.text_do.setInnerHTML(e),this.hasThumbanil_bl?(this.text_do.setX(16),this.text_do.setWidth(this.totalWidth-this.totalHeight-26)):(this.text_do.setX(8),this.text_do.setWidth(this.totalWidth-16)),this.text_do.setY(parseInt((n.totalHeight-n.text_do.getHeight())/2))},this.show=function(e){this.isShowed_bl||(this.isShowed_bl=!0,this.setVisible(!0),FWDAnimation.killTweensOf(this.main_do),e&&!n.isMobile_bl?"left"==this.position_str?FWDAnimation.to(this.main_do,.8,{x:0,delay:.2,ease:Expo.easeInOut}):FWDAnimation.to(this.main_do,.8,{x:1-this.totalWidth,delay:.2,ease:Expo.easeInOut}):"left"==this.position_str?this.main_do.setX(0):this.main_do.setX(-this.totalWidth))},this.hide=function(e,t){(this.isShowed_bl||t)&&(this.isShowed_bl=!1,this.hasThumbanil_bl=!1,FWDAnimation.killTweensOf(this.main_do),e&&!n.isMobile_bl?"left"==this.position_str?FWDAnimation.to(this.main_do,.8,{x:-this.totalWidth,ease:Expo.easeInOut,onComplete:this.hideCompleteHandler}):FWDAnimation.to(this.main_do,.8,{x:0,ease:Expo.easeInOut,onComplete:this.hideCompleteHandler}):("left"==this.position_str?this.main_do.setX(-this.totalWidth):this.main_do.setX(0),this.hideCompleteHandler()))},this.hideCompleteHandler=function(){n.smallImage_img&&(n.smallImage_img.onload=null,n.smallImage_img.src="",FWDAnimation.killTweensOf(n.thumbnail_do)),1!=n.main_do.alpha&&n.main_do.setAlpha(1),n.thumbHolder_do.setVisible(!1),n.setVisible(!1)},this.hideWithOpacity=function(){FWDEVPUtils.isIEAndLessThen9||FWDAnimation.to(this.main_do,.8,{alpha:.5})},this.showWithOpacity=function(){FWDEVPUtils.isIEAndLessThen9||FWDAnimation.to(this.main_do,.8,{alpha:1})},n.init()};l.setPrototype=function(){l.prototype=null,l.prototype=new FWDEVPTransformDisplayObject("div")},l.CLICK="onClick",l.MOUSE_OVER="onMouseOver",l.SHOW_TOOLTIP="showTooltip",l.MOUSE_OUT="onMouseOut",l.MOUSE_UP="onMouseDown",l.prototype=null,e.FWDEVPAdsStart=l}(window),function(window){var FWDEVPAnnotation=function(props_obj){var self=this,prototype=FWDEVPAnnotation.prototype;this.id=props_obj.id,this.startTime=props_obj.start,this.endTime=props_obj.end,this.htmlContent_str=props_obj.content,this.left=props_obj.left,this.top=props_obj.top,this.showCloseButton_bl=props_obj.showCloseButton_bl,this.clickSource=props_obj.clickSource,this.clickSourceTarget=props_obj.clickSourceTarget,this.closeButtonNpath=props_obj.closeButtonNpath,this.closeButtonSPath=props_obj.closeButtonSPath,this.normalStateClass=props_obj.normalStateClass,this.selectedStateClass=props_obj.selectedStateClass,this.showAnnotationsPositionTool_bl=props_obj.showAnnotationsPositionTool_bl,this.parent=props_obj.parent,this.curX=this.left,this.curY=this.top,this.handPath_str=props_obj.handPath_str,this.grabPath_str=props_obj.grabPath_str,this.dummy_do=null,this.isShowed_bl=!1,this.isClosed_bl=!1,self.init=function(){self.setOverflow("visible"),self.setAlpha(0),self.setVisible(!1),FWDEVPUtils.hasTransform2d&&(this.getStyle().transformOrigin="0% 0%"),this.screen.innerHTML=this.htmlContent_str,this.screen.className=this.normalStateClass,this.setBackfaceVisibility(),this.getStyle().fontSmoothing="antialiased",this.getStyle().webkitFontSmoothing="antialiased",this.getStyle().textRendering="optimizeLegibility",this.dummy_do=new FWDEVPDisplayObject("div"),this.dummy_do.getStyle().width="100%",this.dummy_do.getStyle().height="100%",this.addChild(this.dummy_do),setTimeout(function(){self.w=self.getWidth(),self.h=self.getHeight()},100),self.showCloseButton_bl&&!self.showAnnotationsPositionTool_bl&&(FWDEVPSimpleSizeButton.setPrototype(),self.closeButton_do=new FWDEVPSimpleSizeButton(self.closeButtonNpath,self.closeButtonSPath,21,21),self.closeButton_do.setScale2(0),self.closeButton_do.addListener(FWDEVPSimpleSizeButton.CLICK,self.closeClickButtonCloseHandler),self.closeButton_do.getStyle().position="absolute",self.addChild(self.closeButton_do)),self.showAnnotationsPositionTool_bl&&(self.info_do=new FWDEVPDisplayObject("div"),self.info_do.getStyle().backgroundColor="#FFFFFF",self.info_do.getStyle().boxShadow="2px 2px 2px #888888;",this.info_do.getStyle().fontSmoothing="antialiased",this.info_do.getStyle().webkitFontSmoothing="antialiased",this.info_do.getStyle().textRendering="optimizeLegibility",this.addChild(this.info_do),setTimeout(function(){self.info_do.screen.innerHTML="<div style='padding:4px; maring:4px; color:#000000'> data-left="+Math.round(self.curX*self.parent.scaleInverse)+"</div><div style='padding:4px; margin:4px; color:#000000;'> data-top="+Math.round(self.curY*self.parent.scaleInverse)+"</div>",self.setX(Math.round(self.curX*self.parent.scale)),self.setY(Math.round(self.curY*self.parent.scale))},100),self.isMobile_bl?self.hasPointerEvent_bl?self.screen.addEventListener("pointerdown",self.selfOnDownHandler):self.screen.addEventListener("touchdown",self.selfOnDownHandler):window.addEventListener&&self.screen.addEventListener("mousedown",self.selfOnDownHandler),self.getStyle().cursor="url("+self.handPath_str+"), default"),self.clickSource&&!self.showAnnotationsPositionTool_bl&&(self.dummy_do.setButtonMode(!0),self.dummy_do.screen.addEventListener("click",this.onClickHandler),self.dummy_do.screen.addEventListener("mouseover",this.onMouseOverHandler),self.dummy_do.screen.addEventListener("mouseout",this.onMouseOutHandler))},this.selfOnDownHandler=function(e){e.preventDefault&&e.preventDefault(),self.getStyle().cursor="url("+self.grabPath_str+"), default",self.parent.addChild(self);var t=FWDEVPUtils.getViewportMouseCoordinates(e);self.startX=t.screenX-self.parent.getGlobalX(),self.startY=t.screenY-self.parent.getGlobalY(),self.curX=self.x,self.curY=self.y,self.isMobile_bl?self.hasPointerEvent_bl?(window.addEventListener("pointermove",self.selfMoveHandler),window.addEventListener("pointerup",self.selfEndHandler)):(window.addEventListener("touchmove",self.selfMoveHandler),window.addEventListener("touchend",self.selfEndHandler)):window.addEventListener&&(window.addEventListener("mousemove",self.selfMoveHandler),window.addEventListener("mouseup",self.selfEndHandler))},this.selfMoveHandler=function(e){e.preventDefault&&e.preventDefault();var t=FWDEVPUtils.getViewportMouseCoordinates(e);self.localX=t.screenX-self.parent.getGlobalX(),self.localY=t.screenY-self.parent.getGlobalY(),self.curX=self.x,self.curY=self.y,self.curX+=self.localX-self.startX,self.curY+=self.localY-self.startY,self.setX(self.curX),self.setY(self.curY),self.startX=t.screenX-self.parent.getGlobalX(),self.startY=t.screenY-self.parent.getGlobalY(),self.info_do.screen.innerHTML="<div style='padding:4px; maring:4px; color:#000000'> data-left="+Math.round(self.curX*self.parent.scaleInverse)+"</div><div style='padding:4px; margin:4px; color:#000000;'> data-top="+Math.round(self.curY*self.parent.scaleInverse)+"</div>"},this.selfEndHandler=function(e){self.getStyle().cursor="url("+self.handPath_str+"), default",self.isMobile_bl?self.hasPointerEvent_bl?(window.removeEventListener("pointermove",self.selfMoveHandler),window.removeEventListener("pointerup",self.selfEndHandler)):(window.removeEventListener("touchmove",self.selfMoveHandler),window.removeEventListener("touchend",self.selfEndHandler)):window.removeEventListener&&(window.removeEventListener("mousemove",self.selfMoveHandler),window.removeEventListener("mouseup",self.selfEndHandler))},this.onMouseOverHandler=function(e){self.setSelectedAtate()},this.onMouseOutHandler=function(e){self.setNormalState()},this.onClickHandler=function(){-1!=self.clickSource.indexOf("http")?window.open(self.clickSource,self.target):eval(self.clickSource)},this.closeClickButtonCloseHandler=function(){self.hide(),self.isClosed_bl=!0},this.show=function(){this.isShowed_bl||this.isClosed_bl||(self.isShowed_bl=!0,self.setVisible(!0),FWDAnimation.killTweensOf(self),FWDAnimation.to(self,.8,{alpha:1,ease:Quint.easeOut}),self.closeButton_do&&FWDAnimation.to(self.closeButton_do,.8,{scale:1,delay:.2,ease:Elastic.easeOut}))},this.hide=function(){this.isShowed_bl&&(FWDAnimation.killTweensOf(self),self.isShowed_bl=!1,self.setVisible(!1),self.setAlpha(0),self.closeButton_do&&(FWDAnimation.killTweensOf(self.closeButton_do),self.closeButton_do.setScale2(0)))},this.setNormalState=function(){self.selectedStateClass&&FWDAnimation.to(self.screen,.8,{className:self.normalStateClass,ease:Quint.easeOut})},this.setSelectedAtate=function(){self.selectedStateClass&&FWDAnimation.to(self.screen,.8,{className:self.selectedStateClass,ease:Quint.easeOut})},self.init()};FWDEVPAnnotation.setPrototype=function(){FWDEVPAnnotation.prototype=null,FWDEVPUtils.hasTransform2d?FWDEVPAnnotation.prototype=new FWDEVPTransformDisplayObject("div"):FWDEVPAnnotation.prototype=new FWDEVPDisplayObject("div","absolute")},FWDEVPAnnotation.prototype=null,window.FWDEVPAnnotation=FWDEVPAnnotation}(window),function(e){var t=function(i,o){var n=this;t.prototype;this.source_ar=o.annotations_ar,this.ann_ar=[],this.totalAnnotations=n.source_ar.length,this.showAnnotationsPositionTool_bl=o.showAnnotationsPositionTool_bl,n.init=function(){n.setOverflow("visible"),n.setupAnnotations()},n.setupAnnotations=function(){for(var e=0;e<n.totalAnnotations;e++){FWDEVPAnnotation.setPrototype();var t=new FWDEVPAnnotation({id:e,start:this.source_ar[e].start,end:this.source_ar[e].end,left:this.source_ar[e].left,top:this.source_ar[e].top,clickSource:this.source_ar[e].clickSource,clickSourceTarget:this.source_ar[e].clickSourceTarget,content:this.source_ar[e].content,showCloseButton_bl:this.source_ar[e].showCloseButton_bl,closeButtonNpath:o.annotationAddCloseNPath_str,closeButtonSPath:o.annotationAddCloseSPath_str,normalStateClass:this.source_ar[e].normalStateClass,selectedStateClass:this.source_ar[e].selectedStateClass,showAnnotationsPositionTool_bl:n.showAnnotationsPositionTool_bl,parent:n,handPath_str:o.handPath_str,grabPath_str:o.grabPath_str});this.ann_ar[e]=t,this.addChild(t)}},this.update=function(e){if(0!=n.totalAnnotations&&0!=e)for(var t,o=0;o<n.totalAnnotations;o++)t=n.ann_ar[o],e<0?t.hide():e>=t.startTime&&e<=t.endTime?(t.show(),n.position()):t.hide()},this.position=function(e){var t=i.stageWidth/i.maxWidth;if(n.setX(Math.round((i.stageWidth-t*i.maxWidth)/2)),n.setY(Math.round((i.tempVidStageHeight-t*i.maxHeight)/2)),n.scale=i.stageWidth/i.maxWidth,n.scaleY=n.scale,n.scaleX=n.scale,n.scaleInverse=i.maxWidth/i.stageWidth,!n.showAnnotationsPositionTool_bl)for(var o=0;o<n.totalAnnotations;o++){var s=this.ann_ar[o];s.setScale2(n.scale),s.finalX=Math.floor(s.left*n.scaleX),s.finalY=Math.floor(s.top*n.scaleY),s.closeButton_do&&(s.closeButton_do.setWidth(s.closeButton_do.buttonWidth*n.scaleInverse),s.closeButton_do.setHeight(s.closeButton_do.buttonHeight*n.scaleInverse),s.closeButton_do.n_do.setWidth(s.closeButton_do.buttonWidth*n.scaleInverse),s.closeButton_do.n_do.setHeight(s.closeButton_do.buttonHeight*n.scaleInverse),s.closeButton_do.s_do.setWidth(s.closeButton_do.buttonWidth*n.scaleInverse),s.closeButton_do.s_do.setHeight(s.closeButton_do.buttonHeight*n.scaleInverse),s.closeButton_do.setX(Math.floor(s.getWidth()-s.closeButton_do.w/2)),s.closeButton_do.setY(Math.floor(-s.closeButton_do.h/2))),s.prevFinalX!=s.finalX&&(e?FWDAnimation.to(s,.8,{x:s.finalX,ease:Expo.easeInOut}):s.setX(s.finalX)),s.prevFinalY!=s.finalY&&(e?FWDAnimation.to(s,.8,{y:s.finalY,ease:Expo.easeInOut}):s.setY(s.finalY)),s.prevFinalX=s.finalX,s.prevFinalY=s.finalY}},n.init()};t.setPrototype=function(){t.prototype=null,t.prototype=new FWDEVPDisplayObject("div","absolute")},t.prototype=null,e.FWDEVPAnnotations=t}(window),function(o){var i=function(t,e){var l=this;i.prototype;this.audio_el=null,this.sourcePath_str=null,this.lastPercentPlayed=0,this.volume=e,this.curDuration=0,this.countNormalMp3Errors=0,this.countShoutCastErrors=0,this.maxShoutCastCountErrors=5,this.maxNormalCountErrors=1,this.testShoutCastId_to,this.audioVisualizerLinesColor_str=FWDEVPUtils.hexToRgb(t.data.audioVisualizerLinesColor_str),this.audioVisualizerCircleColor_str=FWDEVPUtils.hexToRgb(t.data.audioVisualizerCircleColor_str),this.preload_bl=!1,this.allowScrubing_bl=!1,this.hasError_bl=!0,this.isPlaying_bl=!1,this.isStopped_bl=!0,this.hasPlayedOnce_bl=!1,this.isStartEventDispatched_bl=!1,this.isSafeToBeControlled_bl=!1,this.isShoutcast_bl=!1,this.isNormalMp3_bl=!1,this.init=function(){l.setupAudio()},this.resizeAndPosition=function(e,t){e&&(l.stageWidth=e,l.stageHeight=t),l.setWidth(l.stageWidth),l.setHeight(l.stageHeight),l.resizeSpectrumCanvas()},this.setupAudio=function(){null==l.audio_el&&(l.audio_el=document.createElement("audio"),l.screen.appendChild(l.audio_el),l.audio_el.controls=!1,l.audio_el.preload="auto",l.audio_el.volume=l.volume,l.audio_el.crossOrigin="anonymous",l.setPlaybackRate(t.data.defaultPlaybackRate_ar[t.data.startAtPlaybackIndex])),l.audio_el.addEventListener("error",l.errorHandler),l.audio_el.addEventListener("canplay",l.safeToBeControlled),l.audio_el.addEventListener("canplaythrough",l.safeToBeControlled),l.audio_el.addEventListener("progress",l.updateProgress),l.audio_el.addEventListener("timeupdate",l.updateAudio),l.audio_el.addEventListener("pause",l.pauseHandler),l.audio_el.addEventListener("play",l.playHandler),l.audio_el.addEventListener("ended",l.endedHandler)},this.destroyAudio=function(){l.audio_el&&(l.audio_el.removeEventListener("error",l.errorHandler),l.audio_el.removeEventListener("canplay",l.safeToBeControlled),l.audio_el.removeEventListener("canplaythrough",l.safeToBeControlled),l.audio_el.removeEventListener("progress",l.updateProgress),l.audio_el.removeEventListener("timeupdate",l.updateAudio),l.audio_el.removeEventListener("pause",l.pauseHandler),l.audio_el.removeEventListener("play",l.playHandler),l.audio_el.removeEventListener("ended",l.endedHandler),l.audio_el.removeEventListener("waiting",l.startToBuffer),l.audio_el.removeEventListener("playing",l.stopToBuffer),l.audio_el.src="",l.audio_el.load())},this.startToBuffer=function(e){l.dispatchEvent(FWDEVPVideoScreen.START_TO_BUFFER)},this.stopToBuffer=function(){l.dispatchEvent(FWDEVPVideoScreen.STOP_TO_BUFFER)},this.togglePlayPause=function(){null!=l&&l.isSafeToBeControlled_bl&&(l.isPlaying_bl?l.pause():l.play())},this.errorHandler=function(e){if(null!=l.sourcePath_str&&null!=l.sourcePath_str){if(l.isNormalMp3_bl&&l.countNormalMp3Errors<=l.maxNormalCountErrors)return l.stop(),l.testShoutCastId_to=setTimeout(l.play,200),void l.countNormalMp3Errors++;if(l.isShoutcast_bl&&l.countShoutCastErrors<=l.maxShoutCastCountErrors&&0==l.audio_el.networkState)return l.testShoutCastId_to=setTimeout(l.play,200),void l.countShoutCastErrors++;var t;l.hasError_bl=!0,l.stop(),t=0==l.audio_el.networkState?"error 'self.audio_el.networkState=1'":1==l.audio_el.networkState?"error 'self.audio_el.networkState=1'":2==l.audio_el.networkState?"'self.audio_el.networkState=2'":3==l.audio_el.networkState?"source not found":e,o.console&&o.console.log(l.audio_el.networkState),l.dispatchEvent(i.ERROR,{text:t})}},this.setSource=function(e){l.sourcePath_str=e,clearTimeout(l.testShoutCastId_to),-1!=l.sourcePath_str.indexOf(";")?(l.isShoutcast_bl=!0,l.countShoutCastErrors=0):l.isShoutcast_bl=!1,-1==l.sourcePath_str.indexOf(";")?(l.isNormalMp3_bl=!0,l.countNormalMp3Errors=0):l.isNormalMp3_bl=!1,l.lastPercentPlayed=0,l.audio_el&&l.stop(!0)},this.play=function(e){if(l.isStopped_bl)l.isPlaying_bl=!1,l.hasError_bl=!1,l.allowScrubing_bl=!1,l.isStopped_bl=!1,l.setupAudio(),l.audio_el.src=l.sourcePath_str,l.play(),l.setVisible(!0);else if(!l.audio_el.ended||e)try{l.isPlaying_bl=!0,l.hasPlayedOnce_bl=!0,l.audio_el.play(),FWDEVPUtils.isIE&&l.dispatchEvent(i.PLAY)}catch(e){}},this.resume=function(){l.isStopped_bl||l.play()},this.pause=function(){null!=l&&null!=l.audio_el&&(l.audio_el.ended||(l.audio_el.pause(),l.isPlaying_bl=!1,FWDEVPUtils.isIE&&l.dispatchEvent(i.PAUSE)))},this.pauseHandler=function(){l.allowScrubing_bl||(l.stopSpectrum(),l.dispatchEvent(i.PAUSE))},this.playHandler=function(){l.allowScrubing_bl||(l.isStartEventDispatched_bl||(l.dispatchEvent(i.START),l.isStartEventDispatched_bl=!0),l.startSpectrum(),l.dispatchEvent(i.PLAY))},this.endedHandler=function(){l.dispatchEvent(i.PLAY_COMPLETE)},this.stop=function(e){(null!=l&&null!=l.audio_el&&!l.isStopped_bl||e)&&(l.isPlaying_bl=!1,l.isStopped_bl=!0,l.hasPlayedOnce_bl=!0,l.isSafeToBeControlled_bl=!1,l.isStartEventDispatched_bl=!1,l.setVisible(!1),clearTimeout(l.testShoutCastId_to),l.stopToUpdateSubtitles(),l.stopSpectrum(),l.audio_el.pause(),l.destroyAudio(),l.dispatchEvent(i.STOP),l.dispatchEvent(i.LOAD_PROGRESS,{percent:0}),l.dispatchEvent(i.UPDATE_TIME,{curTime:"00:00",totalTime:"00:00"}))},this.safeToBeControlled=function(){l.isSafeToBeControlled_bl||(l.hasHours_bl=0<Math.floor(l.audio_el.duration/3600),l.isPlaying_bl=!0,l.isSafeToBeControlled_bl=!0,l.startToUpdateSubtitles(),l.dispatchEvent(i.SAFE_TO_SCRUBB),l.dispatchEvent(i.SAFE_TO_UPDATE_VOLUME))},this.updateProgress=function(){var e=0;0<l.audio_el.buffered.length&&(e=l.audio_el.buffered.end(l.audio_el.buffered.length-1).toFixed(1)/l.audio_el.duration.toFixed(1),!isNaN(e)&&e||(e=0)),1==e&&l.audio_el.removeEventListener("progress",l.updateProgress),l.dispatchEvent(i.LOAD_PROGRESS,{percent:e})},this.updateAudio=function(){var e;l.allowScrubing_bl||(e=l.audio_el.currentTime/l.audio_el.duration,l.dispatchEvent(i.UPDATE,{percent:e}));var t=l.formatTime(l.audio_el.duration),o=l.formatTime(l.audio_el.currentTime);isNaN(l.audio_el.duration)?l.dispatchEvent(i.UPDATE_TIME,{curTime:"00:00",totalTime:"00:00",seconds:Math.round(l.audio_el.currentTime)}):l.dispatchEvent(i.UPDATE_TIME,{curTime:o,totalTime:t,seconds:Math.round(l.audio_el.currentTime),totalTimeInSeconds:l.audio_el.duration}),l.lastPercentPlayed=e,l.curDuration=o},this.startToScrub=function(){l.allowScrubing_bl=!0},this.stopToScrub=function(){l.allowScrubing_bl=!1},this.scrubbAtTime=function(e){l.audio_el.currentTime=e;var t=FWDEVPVideoScreen.formatTime(l.audio_el.duration),o=FWDEVPVideoScreen.formatTime(l.audio_el.currentTime);l.dispatchEvent(FWDEVPVideoScreen.UPDATE_TIME,{curTime:o,totalTime:t})},this.scrub=function(e,t){if(null!=l.audio_el&&l.audio_el.duration){t&&l.startToScrub();try{l.audio_el.currentTime=l.audio_el.duration*e;var o=l.formatTime(l.audio_el.duration),s=l.formatTime(l.audio_el.currentTime);l.dispatchEvent(i.UPDATE_TIME,{curTime:s,totalTime:o})}catch(t){}}},this.replay=function(){l.scrub(0),l.play()},this.setVolume=function(e){null!=e&&(l.volume=e),l.audio_el&&(l.audio_el.volume=l.volume)},this.formatTime=function(e){var t=Math.floor(e/3600),o=e%3600,s=Math.floor(o/60),i=o%60,n=Math.ceil(i);return s=10<=s?s:"0"+s,n=10<=n?n:"0"+n,isNaN(n)?"00:00":l.hasHours_bl?t+":"+s+":"+n:s+":"+n},this.setPlaybackRate=function(e){l.audio_el&&(.25==e&&(e="0.5"),l.audio_el.defaultPlaybackRate=e,l.audio_el.playbackRate=e)},this.stopToUpdateSubtitles=function(){clearInterval(l.startToUpdateSubtitleId_int)},this.startToUpdateSubtitles=function(){clearInterval(l.startToUpdateSubtitleId_int),l.startToUpdateSubtitleId_int=setInterval(l.updateSubtitleHandler,10)},this.updateSubtitleHandler=function(){l.dispatchEvent(i.UPDATE_SUBTITLE,{curTime:l.audio_el.currentTime})},this.setupSpectrum=function(){if(!t.useWithoutVideoScreen_bl){var e=o.AudioContext||o.webkitAudioContext;!this.canvas_do&&e&&(3<i.countAudioContext||(i.countAudioContext++,this.canvas_do=new FWDEVPDisplayObject("canvas"),this.addChild(this.canvas_do),this.canvas=this.canvas_do.screen,this.ctx=this.canvas.getContext("2d"),this.resizeSpectrumCanvas(),e&&(this.context=new e,this.analyser=this.context.createAnalyser(),this.source=this.context.createMediaElementSource(this.audio_el),this.source.connect(this.analyser),this.analyser.connect(this.context.destination),this.fbc_array=new Uint8Array(this.analyser.frequencyBinCount),this.renderSpectrum())))}},this.resizeSpectrumCanvas=function(){l.canvas_do&&(l.canvas_do.setWidth(l.stageWidth),l.canvas_do.setHeight(l.stageHeight),l.canvas.width=l.stageWidth,l.canvas.height=l.stageHeight)},l.bars=200,FWDEVPUtils.isMobile&&(l.bars=100),l.react_x=0,l.react_y=0,l.radius=0,l.deltarad=0,l.shockwave=0,l.rot=0,l.intensity=0,l.isSeeking=0,l.center_x,l.center_y,this.renderSpectrum=function(){if(l.canvas_do){l.resizeSpectrumCanvas();var e=l.ctx.createLinearGradient(0,0,0,l.canvas.height);e.addColorStop(0,"rgba(0, 0, 0, 1)"),e.addColorStop(1,"rgba(0, 0, 0, 1)"),l.ctx.fillStyle=e,l.ctx.fillRect(0,0,l.canvas.width,l.canvas.height),l.ctx.fillStyle="rgba(255, 255, 255, "+(125e-7*l.intensity-.4)+")",l.ctx.fillRect(0,0,l.canvas.width,l.canvas.height),l.rot=l.rot+1e-7*l.intensity,l.react_x=0,l.react_y=0,l.intensity=0,l.analyser.getByteFrequencyData(l.fbc_array);for(var t=0;t<l.bars;t++){rads=2*Math.PI/l.bars,bar_x=l.center_x,bar_y=l.center_y;var o=l.stageHeight/3;isNaN(o)&&(o=10),bar_height=Math.round(l.fbc_array[t]/256*o),bar_width=Math.round(.02*bar_height),bar_x_term=l.center_x+Math.cos(rads*t+l.rot)*(l.radius+bar_height),bar_y_term=l.center_y+Math.sin(rads*t+l.rot)*(l.radius+bar_height),l.ctx.save();var s=l.audioVisualizerLinesColor_str;l.ctx.strokeStyle=s,l.ctx.lineWidth=bar_width,l.ctx.beginPath(),l.ctx.moveTo(bar_x,bar_y),l.ctx.lineTo(bar_x_term,bar_y_term),l.ctx.stroke(),l.react_x+=Math.cos(rads*t+l.rot)*(l.radius+bar_height),l.react_y+=Math.sin(rads*t+l.rot)*(l.radius+bar_height),l.intensity+=bar_height}l.center_x=l.canvas.width/2-.007*l.react_x,l.center_y=l.canvas.height/2-.007*l.react_y,radius_old=l.radius,l.radius=25+.002*l.intensity,l.deltarad=l.radius-radius_old,l.ctx.fillStyle=l.audioVisualizerCircleColor_str,l.ctx.beginPath(),l.ctx.arc(l.center_x,l.center_y,l.radius+2,0,2*Math.PI,!1),l.ctx.fill(),l.shockwave+=60,l.ctx.lineWidth=15,l.ctx.strokeStyle=l.audioVisualizerCircleColor_str,l.ctx.beginPath(),l.ctx.arc(l.center_x,l.center_y,l.shockwave+l.radius,0,2*Math.PI,!1),l.ctx.stroke(),15<l.deltarad&&(l.shockwave=0,l.ctx.fillStyle="rgba(255, 255, 255, 0.7)",l.ctx.fillRect(0,0,l.canvas.width,l.canvas.height),l.rot=l.rot+.4),l.startSpectrum()}},this.startSpectrum=function(){l.canvas_do&&(l.stopSpectrum(),l.spectrumAnimationFrameId=o.requestAnimationFrame(l.renderSpectrum))},this.stopSpectrum=function(){l.canvas_do&&cancelAnimationFrame(l.spectrumAnimationFrameId)},this.init()};i.setPrototype=function(){i.prototype=new FWDEVPDisplayObject("div")},i.UPDATE_SUBTITLE="updateSubtitle",i.countAudioContext=0,i.ERROR="error",i.UPDATE="update",i.UPDATE="update",i.UPDATE_TIME="updateTime",i.SAFE_TO_SCRUBB="safeToControll",i.SAFE_TO_UPDATE_VOLUME="safeToUpdateVolume",i.LOAD_PROGRESS="loadProgress",i.START="start",i.PLAY="play",i.PAUSE="pause",i.STOP="stop",i.PLAY_COMPLETE="playComplete",o.FWDEVPAudioScreen=i}(window),function(){var c=function(e,t,o,s,i,n,l,r,a,d,u,h){var _=this;c.prototype;this.iconCSSString=a,this.icon2CSSString=d,this.normalCalssName=u,this.selectedCalssName=h,this.n1Img=e,this.s1Path_str=t,this.n2Img=o,this.s2Path_str=s,this.firstButton_do,this.n1_do,this.s1_do,this.secondButton_do,this.n2_do,this.s2_do,this.n1Img&&(this.buttonWidth=_.n1Img.width,this.buttonHeight=_.n1Img.height),this.useHEXColorsForSkin_bl=n,this.normalButtonsColor_str=l,this.selectedButtonsColor_str=r,this.isSelectedState_bl=!1,this.currentState=1,this.isDisabled_bl=!1,this.isMaximized_bl=!1,this.disptachMainEvent_bl=i,this.isDisabled_bl=!1,this.isMobile_bl=FWDEVPUtils.isMobile,this.hasPointerEvent_bl=FWDEVPUtils.hasPointerEvent,this.allowToCreateSecondButton_bl=!_.isMobile_bl||_.hasPointerEvent_bl,this.useFontAwesome_bl=Boolean(this.iconCSSString),_.init=function(){_.hasTransform2d_bl=!1,_.setButtonMode(!0),_.setWidth(_.buttonWidth),_.setHeight(_.buttonHeight),_.setupMainContainers(),_.secondButton_do.setVisible(!1),_.setNormalState()},_.setupMainContainers=function(){_.useFontAwesome_bl?(_.firstButton_do=new FWDEVPDisplayObject("div"),_.n1_do=new FWDEVPDisplayObject("div"),_.n1_do.setInnerHTML(_.iconCSSString),_.firstButton_do.addChild(_.n1_do),_.secondButton_do=new FWDEVPDisplayObject("div"),_.n2_do=new FWDEVPDisplayObject("div"),_.n2_do.setInnerHTML(_.icon2CSSString),_.secondButton_do.addChild(_.n2_do),_.setFinalSize()):(_.firstButton_do=new FWDEVPDisplayObject("div"),_.firstButton_do.setWidth(_.buttonWidth),_.firstButton_do.setHeight(_.buttonHeight),_.useHEXColorsForSkin_bl?(_.n1_do=new FWDEVPDisplayObject("div"),_.n1_do.setWidth(_.buttonWidth),_.n1_do.setHeight(_.buttonHeight),_.n1_sdo_canvas=FWDEVPUtils.getCanvasWithModifiedColor(_.n1Img,_.normalButtonsColor_str).canvas,_.n1_do.screen.appendChild(_.n1_sdo_canvas)):(_.n1_do=new FWDEVPDisplayObject("img"),_.n1_do.setScreen(_.n1Img)),_.firstButton_do.addChild(_.n1_do),_.allowToCreateSecondButton_bl&&(_.s1_img=new Image,_.s1_img.src=_.s1Path_str,_.useHEXColorsForSkin_bl?(_.s1_do=new FWDEVPTransformDisplayObject("div"),_.s1_do.setWidth(_.buttonWidth),_.s1_do.setHeight(_.buttonHeight),_.s1_img.onload=function(){_.s1_do_canvas=FWDEVPUtils.getCanvasWithModifiedColor(_.s1_img,_.selectedButtonsColor_str).canvas,_.s1_do.screen.appendChild(_.s1_do_canvas)}):(_.s1_do=new FWDEVPDisplayObject("img"),_.s1_do.setScreen(_.s1_img),_.s1_do.setWidth(_.buttonWidth),_.s1_do.setHeight(_.buttonHeight)),_.s1_do.setAlpha(0),_.firstButton_do.addChild(_.s1_do)),_.secondButton_do=new FWDEVPDisplayObject("div"),_.secondButton_do.setWidth(_.buttonWidth),_.secondButton_do.setHeight(_.buttonHeight),_.useHEXColorsForSkin_bl?(_.n2_do=new FWDEVPDisplayObject("div"),_.n2_do.setWidth(_.buttonWidth),_.n2_do.setHeight(_.buttonHeight),_.n2_sdo_canvas=FWDEVPUtils.getCanvasWithModifiedColor(_.n2Img,_.normalButtonsColor_str).canvas,_.n2_do.screen.appendChild(_.n2_sdo_canvas)):(_.n2_do=new FWDEVPDisplayObject("img"),_.n2_do.setScreen(_.n2Img)),_.secondButton_do.addChild(_.n2_do),_.allowToCreateSecondButton_bl&&(_.s2_img=new Image,_.s2_img.src=_.s2Path_str,_.useHEXColorsForSkin_bl?(_.s2_do=new FWDEVPTransformDisplayObject("div"),_.s2_do.setWidth(_.buttonWidth),_.s2_do.setHeight(_.buttonHeight),_.s2_img.onload=function(){_.s2_do_canvas=FWDEVPUtils.getCanvasWithModifiedColor(_.s2_img,_.selectedButtonsColor_str).canvas,_.s2_do.screen.appendChild(_.s2_do_canvas)}):(_.s2_do=new FWDEVPDisplayObject("img"),_.s2_do.setScreen(_.s2_img),_.s2_do.setWidth(_.buttonWidth),_.s2_do.setHeight(_.buttonHeight)),_.s2_do.setAlpha(0),_.secondButton_do.addChild(_.s2_do))),_.addChild(_.secondButton_do),_.addChild(_.firstButton_do),_.hasPointerEvent_bl?(_.screen.addEventListener("pointerup",_.onMouseUp),_.screen.addEventListener("pointerover",_.onMouseOver),_.screen.addEventListener("pointerout",_.onMouseOut)):_.screen.addEventListener&&(_.isMobile_bl||(_.screen.addEventListener("mouseover",_.onMouseOver),_.screen.addEventListener("mouseout",_.onMouseOut),_.screen.addEventListener("mouseup",_.onMouseUp)),_.screen.addEventListener("toustart",_.onDown),_.screen.addEventListener("touchend",_.onMouseUp))},_.onMouseOver=function(e,t){_.isDisabled_bl||_.isSelectedState_bl||e.pointerType&&e.pointerType!=e.MSPOINTER_TYPE_MOUSE&&"mouse"!=e.pointerType||(_.dispatchEvent(c.MOUSE_OVER,{e:e}),_.dispatchEvent(c.SHOW_TOOLTIP,{e:e}),_.setSelectedState(!0))},_.onMouseOut=function(e){!_.isDisabled_bl&&_.isSelectedState_bl&&(e.pointerType&&e.pointerType!=e.MSPOINTER_TYPE_MOUSE&&"mouse"!=e.pointerType||(_.setNormalState(!0),_.dispatchEvent(c.MOUSE_OUT)))},_.onDown=function(e){e.preventDefault&&e.preventDefault()},_.onMouseUp=function(e){_.isDisabled_bl||2==e.button||(e.preventDefault&&e.preventDefault(),_.isMobile_bl||_.onMouseOver(e,!1),_.disptachMainEvent_bl&&_.dispatchEvent(c.MOUSE_UP,{e:e}))},_.checkCount=0,this.setFinalSize=function(){if(clearInterval(_.checkId_int),_.lastWidth=_.n1_do.screen.firstChild.offsetWidth,!(5<_.checkCount)&&(_.checkCount++,_.checkId_int=setInterval(function(){_.setFinalSize()},100),_.prevWidth!=_.lastWidth&&0!=_.lastWidth)){var e=Math.max(_.n1_do.screen.firstChild.offsetWidth,_.n2_do.screen.firstChild.offsetWidth),t=Math.max(_.n1_do.screen.offsetHeight,_.n2_do.screen.firstChild.offsetHeight);_.buttonWidth=e,_.buttonHeight=t,_.setWidth(e),_.setHeight(t),_.firstButton_do.setWidth(_.w),_.firstButton_do.setHeight(_.h),_.secondButton_do.setWidth(_.w),_.secondButton_do.setHeight(_.h),_.n1_do.setX(Math.round((e-_.n1_do.getWidth())/2)),_.n1_do.setY(Math.round((t-_.n1_do.getHeight())/2)),_.n2_do.setX(Math.round((e-_.n2_do.getWidth())/2)),_.n2_do.setY(Math.round((t-_.n2_do.getHeight())/2)),_.prevWidth=_.lastWidth}},_.toggleButton=function(){1==_.currentState?(_.firstButton_do.setVisible(!1),_.secondButton_do.setVisible(!0),_.currentState=0,_.dispatchEvent(c.FIRST_BUTTON_CLICK)):(_.firstButton_do.setVisible(!0),_.secondButton_do.setVisible(!1),_.currentState=1,_.dispatchEvent(c.SECOND_BUTTON_CLICK))},_.setButtonState=function(e){_.currentState=1==e?(_.firstButton_do.setVisible(!0),_.secondButton_do.setVisible(!1),1):(_.firstButton_do.setVisible(!1),_.secondButton_do.setVisible(!0),0)},this.setNormalState=function(e){(!_.isMobile_bl||_.hasPointerEvent_bl||_.useFontAwesome_bl)&&(_.isSelectedState_bl=!1,FWDAnimation.killTweensOf(_.s1_do),FWDAnimation.killTweensOf(_.s2_do),_.useFontAwesome_bl?(FWDAnimation.killTweensOf(_.n1_do.screen),FWDAnimation.killTweensOf(_.n2_do.screen),e?(FWDAnimation.to(_.n1_do.screen,.8,{className:_.normalCalssName,ease:Expo.easeOut}),FWDAnimation.to(_.n2_do.screen,.8,{className:_.normalCalssName,ease:Expo.easeOut})):(_.n1_do.screen.className=_.normalCalssName,_.n2_do.screen.className=_.normalCalssName)):(FWDAnimation.to(_.s1_do,.5,{alpha:0,ease:Expo.easeOut}),FWDAnimation.to(_.s2_do,.5,{alpha:0,ease:Expo.easeOut})))},this.setSelectedState=function(e){_.isSelectedState_bl=!0,FWDAnimation.killTweensOf(_.s1_do),FWDAnimation.killTweensOf(_.s2_do),_.useFontAwesome_bl?(FWDAnimation.killTweensOf(_.n1_do.screen),FWDAnimation.killTweensOf(_.n2_do.screen),e?(FWDAnimation.to(_.n1_do.screen,.8,{className:_.selectedCalssName,ease:Expo.easeOut}),FWDAnimation.to(_.n2_do.screen,.8,{className:_.selectedCalssName,ease:Expo.easeOut})):(_.n1_do.screen.className=_.selectedCalssName,_.n2_do.screen.className=_.selectedCalssName)):(FWDAnimation.to(_.s1_do,.5,{alpha:1,delay:.1,ease:Expo.easeOut}),FWDAnimation.to(_.s2_do,.5,{alpha:1,delay:.1,ease:Expo.easeOut}))},this.disable=function(){_.isDisabled_bl||(_.isDisabled_bl=!0,_.setButtonMode(!1),FWDAnimation.killTweensOf(_),FWDAnimation.to(_,.6,{alpha:.4}),_.setNormalState())},this.enable=function(){_.isDisabled_bl&&(_.isDisabled_bl=!1,_.setButtonMode(!0),FWDAnimation.killTweensOf(_),FWDAnimation.to(_,.6,{alpha:1}))},this.updateHEXColors=function(e,t){FWDEVPUtils.changeCanvasHEXColor(_.n1Img,_.n1_sdo_canvas,e),FWDEVPUtils.changeCanvasHEXColor(_.s1_img,_.s1_do_canvas,t),FWDEVPUtils.changeCanvasHEXColor(_.n2Img,_.n2_sdo_canvas,e),FWDEVPUtils.changeCanvasHEXColor(_.s2_img,_.s2_do_canvas,t)},_.init()};c.setPrototype=function(){c.prototype=new FWDEVPDisplayObject("div")},c.FIRST_BUTTON_CLICK="onFirstClick",c.SECOND_BUTTON_CLICK="secondButtonOnClick",c.MOUSE_OVER="onMouseOver",c.MOUSE_OUT="onMouseOut",c.MOUSE_UP="onMouseUp",c.CLICK="onClick",c.SHOW_TOOLTIP="showTooltip",c.prototype=null,window.FWDEVPComplexButton=c}(window),function(){var e=function(n,l){var a=this;e.prototype;a.parent=n,a.buttonsTest_ar=["copy_url","copy_url_time","fullscreen"],a.itemsLabels_ar=["Copy video URL","Copy video URL at current time","Fullscreen/Normalscreen"],a.items_ar=[],a.spacers_ar=[],a.copyURL_do=null,a.copyURLTime_do=null,a.backgroundColor_str=l.contextMenuBackgroundColor_str,a.borderColor_str=l.contextMenuBorderColor_str,a.spacerColor_str=l.contextMenuSpacerColor_str,a.itemNormalColor_str=l.contextMenuItemNormalColor_str,a.itemSelectedColor_str=l.contextMenuItemSelectedColor_str,a.itemDisabledColor_str=l.contextMenuItemDisabledColor_str,a.draggingMode_str=l.startDraggingMode_str,a.link_str=l.link_str,a.borderRadius=0,a.biggestWidth,a.totalWidth=400,a.totalHeight=400,a.sapaceBetweenButtons=7,a.padding=6,a.getMaxWidthResizeAndPositionId_to,a.inverseNextAndPrevRotation_bl=l.inverseNextAndPrevRotation_bl,a.showScriptDeveloper_bl=l.showScriptDeveloper_bl,a.show_bl=!1,a.init=function(){(a.itemsLabels_ar||a.showScriptDeveloper_bl)&&(a.show_bl=!0,a.setWidth(a.totalWidth),a.setHeight(a.totalHeight),a.setBkColor(a.backgroundColor_str),a.getStyle().borderColor=a.borderColor_str,a.getStyle().borderStyle="solid",a.getStyle().borderRadius=a.borderRadius+"px",a.getStyle().borderWidth="1px",a.setVisible(!1),a.setY(-2e3),a.parent.main_do.addChild(a),a.setupLabels(),a.setupDeveloperButton(),a.setupSpacers(),a.disable(),a.getMaxWidthResizeAndPositionId_to=setTimeout(a.getMaxWidthResizeAndPosition,200)),a.addContextEvent()},a.copyText=function(e){var t=document.createElement("textarea");t.value=e,document.body.appendChild(t),t.select(),document.execCommand ("copy"),document.body.removeChild(t)},a.setupLabels=function(){var e,t=a.buttonsTest_ar.length,o="",s="";if(a.itemsLabels_ar)for(var i=0;i<t;i++)"copy_url"==(e=a.buttonsTest_ar[i])?(o=a.itemsLabels_ar[i],FWDEVPContextMenuButton.setPrototype(),a.copyURL_do=new FWDEVPContextMenuButton(o,void 0,a.itemNormalColor_str,a.itemSelectedColor_str,a.itemDisabledColor_str),a.items_ar.push(a.copyURL_do),a.copyURL_do.addListener(FWDEVPContextMenuButton.MOUSE_DOWN,a.copyURLHandler),a.addChild(a.copyURL_do)):"copy_url_time"==e?(o=a.itemsLabels_ar[i],FWDEVPContextMenuButton.setPrototype(),a.copyURLTime_do=new FWDEVPContextMenuButton(o,void 0,a.itemNormalColor_str,a.itemSelectedColor_str,a.itemDisabledColor_str),a.items_ar.push(a.copyURLTime_do),a.copyURLTime_do.addListener(FWDEVPContextMenuButton.MOUSE_DOWN,a.copyURLAtTimeHandler),a.addChild(a.copyURLTime_do)):"fullscreen"==e&&l.showFullScreenButton_bl&&(str=a.itemsLabels_ar[i],o=str.substr(0,str.indexOf("/")),s=str.substr(str.indexOf("/")+1),FWDEVPContextMenuButton.setPrototype(),a.fullScreenButton_do=new FWDEVPContextMenuButton(o,s,a.itemNormalColor_str,a.itemSelectedColor_str,a.itemDisabledColor_str),a.items_ar.push(a.fullScreenButton_do),a.fullScreenButton_do.addListener(FWDEVPContextMenuButton.MOUSE_DOWN,a.fullScreenStartHandler),a.addChild(a.fullScreenButton_do))},a.setupDeveloperButton=function(){a.showScriptDeveloper_bl&&(a.itemsLabels_ar||(a.itemsLabels_ar=[]),a.itemsLabels_ar.push("&#0169; made by FWD"),label1_str="&#0169; made by FWD",FWDEVPContextMenuButton.setPrototype(),a.developerButton_do=new FWDEVPContextMenuButton(label1_str,void 0,a.itemNormalColor_str,a.itemSelectedColor_str,a.itemDisabledColor_str),a.developerButton_do.isDeveleper_bl=!0,a.items_ar.push(a.developerButton_do),a.addChild(a.developerButton_do))},a.copyURLAtTimeHandler=function(e){var t=n.curTime;5==t.length&&(t="00:"+t);for(var o=String(t).split(":"),s=0;s<o.length;s++)"00"==o[s]&&(o[s]="0");FWDEVPUtils.getHashUrlArgs(window.location.hash);var i=location.href;i=(i=i.replace(/&evpi=.*/i,"")).replace(/&t=.*/i,""),-1==(t=-1==location.href.indexOf("?")?1<FWDEVPlayer.instaces_ar.length?i+"?&evpi="+n.instanceName_str:i+"?":1<FWDEVPlayer.instaces_ar.length?i+"&evpi="+n.instanceName_str:i).indexOf("t=")&&(t=t+"&t="+o[0]+"h"+o[1]+"m"+o[2]+"s"),a.copyText(t),a.removeMenuId_to=setTimeout(a.removeFromDOM,150)},a.copyURLHandler=function(e){a.copyText(location.href),a.removeMenuId_to=setTimeout(a.removeFromDOM,150)},a.fullScreenStartHandler=function(e){0==a.fullScreenButton_do.currentState?n.goFullScreen():1==a.fullScreenButton_do.currentState&&n.goNormalScreen(),a.fullScreenButton_do.onMouseOut()},a.updateFullScreenButton=function(e){a.fullScreenButton_do&&(0==e?a.fullScreenButton_do.setButtonState(0):a.fullScreenButton_do.setButtonState(1),a.removeMenuId_to=setTimeout(a.removeFromDOM,150))},a.setupSpacers=function(){for(var e,t=a.items_ar.length-1,o=0;o<t;o++)e=new FWDEVPDisplayObject("div"),(a.spacers_ar[o]=e).setHeight(1),e.setBkColor(a.spacerColor_str),a.addChild(e)},a.getMaxWidthResizeAndPosition=function(){var e,t,o=a.items_ar.length;a.totalWidth=0;for(var s=a.totalHeight=0;s<o;s++)(e=a.items_ar[s]).getMaxTextWidth()>a.totalWidth&&(a.totalWidth=e.getMaxTextWidth());for(s=0;s<o;s++)t=a.spacers_ar[s-1],(e=a.items_ar[s]).setX(a.padding),e.setY(10+s*(e.totalHeight+a.sapaceBetweenButtons)-a.padding),t&&(t.setWidth(a.totalWidth+2),t.setX(a.padding),t.setY(parseInt(e.getY()-a.sapaceBetweenButtons/2)-1)),e.setWidth(a.totalWidth+2),e.centerText();a.totalHeight=e.getY()+e.totalHeight+2,a.setWidth(a.totalWidth+2*a.padding+4),a.setHeight(a.totalHeight),a.setVisible(!0),a.removeMenuId_to=setTimeout(a.removeFromDOM,150)},a.addContextEvent=function(){a.parent.main_do.screen.addEventListener?a.parent.main_do.screen.addEventListener("contextmenu",a.contextMenuHandler):a.parent.main_do.screen.attachEvent("oncontextmenu",a.contextMenuHandler)},a.contextMenuHandler=function(e){return a.show_bl&&l.showContextmenu_bl&&(clearTimeout(a.removeMenuId_to),a.parent.main_do.addChild(a),a.positionButtons(e),a.setAlpha(0),FWDAnimation.to(a,.4,{alpha:1,ease:Quart.easeOut}),window.addEventListener?(window.addEventListener("mousedown",a.contextMenuWindowOnMouseDownHandler),window.addEventListener("mouseup",a.contextMenuWindowOnMouseDownHandler)):(document.documentElement.attachEvent("onmousedown",a.contextMenuWindowOnMouseDownHandler),document.documentElement.attachEvent("onmouseup",a.contextMenuWindowOnMouseDownHandler))),!!e.preventDefault&&void e.preventDefault()},a.contextMenuWindowOnMouseDownHandler=function(e){var t=FWDEVPUtils.getViewportMouseCoordinates(e),o=t.screenX,s=t.screenY;FWDEVPUtils.hitTest(a.screen,o,s)||(window.removeEventListener?(window.removeEventListener("mousedown",a.contextMenuWindowOnMouseDownHandler),window.removeEventListener("mouseup",a.contextMenuWindowOnMouseDownHandler)):(document.documentElement.detachEvent("onmousedown",a.contextMenuWindowOnMouseDownHandler),document.documentElement.detachEvent("onmouseup",a.contextMenuWindowOnMouseDownHandler)),a.removeMenuId_to=setTimeout(a.removeFromDOM,150))},a.positionButtons=function(e){var t=FWDEVPUtils.getViewportMouseCoordinates(e),o=a.parent.main_do.getWidth(),s=a.parent.main_do.getHeight(),i=t.screenX-a.parent.main_do.getGlobalX(),n=t.screenY-a.parent.main_do.getGlobalY(),l=i-2,r=n-2;a.totalWidth=a.getWidth(),a.totalHeight=a.getHeight(),l+a.totalWidth>o-2&&(l=i-a.totalWidth),l<0&&(l=parseInt((o-a.totalWidth)/2)),l<0&&(l=0),r+a.totalHeight>s-2&&(r=n-a.totalHeight),r<0&&(r=parseInt((s-a.totalHeight)/2)),r<0&&(r=0),a.setX(l),a.setY(r)},a.disable=function(){a.copyURL_do&&a.copyURL_do.disable(),a.copyURLTime_do&&a.copyURLTime_do.disable()},a.enable=function(){a.copyURL_do&&a.copyURL_do.enable(),a.copyURLTime_do&&a.copyURLTime_do.enable()},a.removeFromDOM=function(){a.setX(-5e3)},a.init()};e.setPrototype=function(){e.prototype=new FWDEVPDisplayObject("div")},e.prototype=null,window.FWDEVPContextMenu=e}(window),function(){var r=function(e,t,o,s,i,n){var l=this;r.prototype;l.label1_str=e,l.label2_str=t,l.normalColor_str=o,l.selectedColor_str=s,l.disabledColor_str=i,l.totalWidth=400,l.totalHeight=20,l.padding,l.text1_sdo=null,l.text2_sdo=null,l.dumy_sdo=null,l.isMobile_bl=FWDEVPUtils.isMobile,l.currentState=1,l.isDisabled_bl=!1,l.isMaximized_bl=!1,l.showSecondButton_bl=null!=t,l.isDeveleper_bl=!1,l.init=function(){l.setBackfaceVisibility(),l.setButtonMode(!0),l.setupMainContainers(),l.setWidth(l.totalWidth),l.setHeight(l.totalHeight),l.setButtonState(0)},l.setupMainContainers=function(){l.text1_sdo=new FWDEVPDisplayObject("div"),l.text1_sdo.setBackfaceVisibility(),l.text1_sdo.setDisplay("inline-block"),l.text1_sdo.getStyle().fontFamily="Arial",l.text1_sdo.getStyle().fontSize="12px",l.text1_sdo.getStyle().color=l.normalColor_str,l.text1_sdo.getStyle().fontSmoothing="antialiased",l.text1_sdo.setInnerHTML(l.label1_str),l.addChild(l.text1_sdo),l.showSecondButton_bl&&(l.text2_sdo=new FWDEVPDisplayObject("div"),l.text2_sdo.setBackfaceVisibility(),l.text2_sdo.setDisplay("inline-block"),l.text2_sdo.getStyle().fontFamily="Arial",l.text2_sdo.getStyle().fontSize="12px",l.text2_sdo.getStyle().color=l.normalColor_str,l.text2_sdo.getStyle().fontSmoothing="antialiased",l.text2_sdo.setInnerHTML(l.label2_str),l.addChild(l.text2_sdo)),l.dumy_sdo=new FWDEVPDisplayObject("div"),FWDEVPUtils.isIE&&(l.dumy_sdo.setBkColor("#FF0000"),l.dumy_sdo.setAlpha(0)),l.addChild(l.dumy_sdo),l.isMobile_bl?l.screen.addEventListener("touchstart",l.onMouseDown):l.screen.addEventListener&&(l.screen.addEventListener("mouseover",l.onMouseOver),l.screen.addEventListener("mouseout",l.onMouseOut),l.screen.addEventListener("mousedown",l.onMouseDown),l.screen.addEventListener("click",l.onClick))},l.onMouseOver=function(e){l.isDisabled_bl||(FWDAnimation.killTweensOf(l.text1_sdo),e?(FWDAnimation.to(l.text1_sdo.screen,.5,{css:{color:l.selectedColor_str},ease:Expo.easeOut}),l.showSecondButton_bl&&FWDAnimation.to(l.text2_sdo.screen,.5,{css:{color:l.selectedColor_str},ease:Expo.easeOut})):(l.text1_sdo.getStyle().color=l.selectedColor_str,l.showSecondButton_bl&&(FWDAnimation.killTweensOf(l.text2_sdo),l.text2_sdo.getStyle().color=l.selectedColor_str)),l.dispatchEvent(r.MOUSE_OVER))},l.onMouseOut=function(e){l.isDisabled_bl||(FWDAnimation.killTweensOf(l.text1_sdo),FWDAnimation.to(l.text1_sdo.screen,.5,{css:{color:l.normalColor_str},ease:Expo.easeOut}),l.showSecondButton_bl&&(FWDAnimation.killTweensOf(l.text2_sdo),FWDAnimation.to(l.text2_sdo.screen,.5,{css:{color:l.normalColor_str},ease:Expo.easeOut})),l.dispatchEvent(r.MOUSE_OUT))},l.onClick=function(e){l.isDeveleper_bl?window.open("http://www.webdesign-flash.ro","_blank"):l.isDisabled_bl||(e.preventDefault&&e.preventDefault(),l.dispatchEvent(r.CLICK))},l.onMouseDown=function(e){l.isDisabled_bl||(e.preventDefault&&e.preventDefault(),l.dispatchEvent(r.MOUSE_DOWN,{e:e}))},l.toggleButton=function(){l.showSecondButton_bl&&(1==l.currentState?(l.text1_sdo.setVisible(!0),l.text2_sdo.setVisible(!1),l.currentState=0,l.dispatchEvent(r.FIRST_BUTTON_CLICK)):(l.text1_sdo.setVisible(!1),l.text2_sdo.setVisible(!0),l.currentState=1,l.dispatchEvent(r.SECOND_BUTTON_CLICK)))},l.setButtonState=function(e){0==e?(l.text1_sdo.setVisible(!0),l.showSecondButton_bl&&l.text2_sdo.setVisible(!1),l.currentState=0):1==e&&(l.text1_sdo.setVisible(!1),l.showSecondButton_bl&&l.text2_sdo.setVisible(!0),l.currentState=1)},l.centerText=function(){l.dumy_sdo.setWidth(l.totalWidth),l.dumy_sdo.setHeight(l.totalHeight),FWDEVPUtils.isIEAndLessThen9?(l.text1_sdo.setY(Math.round((l.totalHeight-l.text1_sdo.getHeight())/2)-1),l.showSecondButton_bl&&l.text2_sdo.setY(Math.round((l.totalHeight-l.text2_sdo.getHeight())/2)-1)):(l.text1_sdo.setY(Math.round((l.totalHeight-l.text1_sdo.getHeight())/2)),l.showSecondButton_bl&&l.text2_sdo.setY(Math.round((l.totalHeight-l.text2_sdo.getHeight())/2))),l.text1_sdo.setHeight(l.totalHeight+2),l.showSecondButton_bl&&l.text2_sdo.setHeight(l.totalHeight+2)},l.getMaxTextWidth=function(){var e=l.text1_sdo.getWidth(),t=0;return l.showSecondButton_bl&&(t=l.text2_sdo.getWidth()),Math.max(e,t)},l.disable=function(){l.isDisabled_bl=!0,FWDAnimation.killTweensOf(l.text1_sdo),FWDAnimation.to(l.text1_sdo.screen,.5,{css:{color:l.disabledColor_str},ease:Expo.easeOut}),l.setButtonMode(!1)},l.enable=function(){l.isDisabled_bl=!1,FWDAnimation.killTweensOf(l.text1_sdo),FWDAnimation.to(l.text1_sdo.screen,.5,{css:{color:l.normalColor_str},ease:Expo.easeOut}),l.setButtonMode(!0)},l.init()};r.setPrototype=function(){r.prototype=new FWDEVPDisplayObject("div")},r.FIRST_BUTTON_CLICK="onFirstClick",r.SECOND_BUTTON_CLICK="secondButtonOnClick",r.MOUSE_OVER="onMouseOver",r.MOUSE_OUT="onMouseOut",r.MOUSE_DOWN="onMouseDown",r.CLICK="onClick",r.prototype=null,window.FWDEVPContextMenuButton=r}(window),function(){var s=function(a,d){var u=this;u.parent=d;s.prototype;this.data=a,this.bkLeft_img=a.bkLeft_img,this.bkRight_img=a.bkRight_img,this.playN_img=a.playN_img,this.playS_img=a.playS_img,this.pauseN_img=a.pauseN_img,this.pauseS_img=a.pauseS_img,this.mainScrubberBkLeft_img=a.mainScrubberBkLeft_img,this.mainScrubberBkRight_img=a.mainScrubberBkRight_img,this.mainScrubberDragLeft_img=a.mainScrubberDragLeft_img,this.mainScrubberDragLeftSource=a.mainScrubberDragLeft_img.src,this.mainScrubberLine_img=a.mainScrubberLine_img,this.volumeScrubberBkLeft_img=a.volumeScrubberBkLeft_img,this.volumeScrubberBkRight_img=a.volumeScrubberBkRight_img,this.volumeScrubberDragLeft_img=a.volumeScrubberDragLeft_img,this.volumeScrubberLine_img=a.volumeScrubberLine_img,this.volumeN_img=a.volumeN_img,this.volumeS_img=a.volumeS_img,this.volumeD_img=a.volumeD_img,this.progressLeft_img=a.progressLeft_img,this.ytbQualityN_img=a.ytbQualityN_img,this.ytbQualityS_img=a.ytbQualityS_img,this.ytbQualityD_img=a.ytbQualityD_img,this.shareN_img=a.shareN_img,this.subtitleN_img=a.subtitleNPath_img,this.facebookS_img=a.facebookS_img,this.fullScreenN_img=a.fullScreenN_img,this.fullScreenS_img=a.fullScreenS_img,this.normalScreenN_img=a.normalScreenN_img,this.normalScreenS_img=a.normalScreenS_img,this.embedN_img=a.embedN_img,this.showSubtitileByDefault_bl=a.showSubtitileByDefault_bl,this.buttons_ar=[],this.ytbQuality_ar=null,this.ytbButtons_ar=null,this.pointer_do,this.ytbDisabledButton_do=null,this.disable_do=null,this.mainHolder_do=null,this.ytbButtonsHolder_do=null,this.playPauseButton_do=null,this.mainScrubber_do=null,this.mainScrubberBkLeft_do=null,this.mainScrubberBkMiddle_do=null,this.mainScrubberBkRight_do=null,this.mainScrubberDrag_do=null,this.mainScrubberDragLeft_do=null,this.mainScrubberDragMiddle_do=null,this.mainScrubberBarLine_do=null,this.mainProgress_do=null,this.progressLeft_do=null,this.progressMiddle_do=null,this.time_do=null,this.volumeButton_do=null,this.volumeScrubber_do=null,this.volumeScrubberBkLeft_do=null,this.volumeScrubberBkMiddle_do=null,this.volumeScrubberBkRight_do=null,this.volumeScrubberDrag_do=null,this.volumeScrubberDragLeft_do=null,this.volumeScrubberDragMiddle_do=null,this.volumeScrubberBarLine_do=null,this.ytbQualityButton_do=null,this.shareButton_do=null,this.fullScreenButton_do=null,this.ytbQualityArrow_do=null,this.bk_do=null,this.isMainScrubberOnTop_bl=!0,this.bkMiddlePath_str=a.bkMiddlePath_str,this.mainScrubberBkMiddlePath_str=a.mainScrubberBkMiddlePath_str,this.volumeScrubberBkMiddlePath_str=a.volumeScrubberBkMiddlePath_str,this.mainScrubberDragMiddlePath_str=a.mainScrubberDragMiddlePath_str,this.mainScrubberDragMiddleAddPath_str=a.mainScrubberDragMiddleAddPath_str,this.volumeScrubberDragMiddlePath_str=a.volumeScrubberDragMiddlePath_str,this.timeColor_str=a.timeColor_str,this.progressMiddlePath_str=a.progressMiddlePath_str,this.youtubeQualityButtonNormalColor_str=a.youtubeQualityButtonNormalColor_str,this.youtubeQualityButtonSelectedColor_str=a.youtubeQualityButtonSelectedColor_str,this.youtubeQualityArrowPath_str=a.youtubeQualityArrowPath_str,this.controllerBkPath_str=a.controllerBkPath_str,this.ytbQualityButtonPointerPath_str=a.ytbQualityButtonPointerPath_str,this.subtitleSPath_str=a.subtitleSPath_str,this.mainScrubberOffestTop=a.mainScrubberOffestTop,this.totalYtbButtons=0,this.stageWidth=0,this.stageHeight=a.controllerHeight,this.scrubbersBkLeftAndRightWidth=this.mainScrubberBkLeft_img.width,this.mainScrubberWidth=0,this.mainScrubberMinWidth=100,this.volumeScrubberWidth=a.volumeScrubberWidth,this.scrubbersHeight=this.mainScrubberBkLeft_img.height,this.mainScrubberDragLeftWidth=u.mainScrubberDragLeft_img.width,this.scrubbersOffsetWidth=a.scrubbersOffsetWidth,this.volumeScrubberOffsetRightWidth=a.volumeScrubberOffsetRightWidth,this.volume=a.volume,this.lastVolume=u.volume,this.startSpaceBetweenButtons=a.startSpaceBetweenButtons,this.spaceBetweenButtons=a.spaceBetweenButtons,this.percentPlayed=0,this.percentLoaded=0,this.lastTimeLength=0,this.prevYtbQualityButtonsLength=0,this.pointerWidth=8,this.pointerHeight=5,this.timeOffsetLeftWidth=a.timeOffsetLeftWidth,this.timeOffsetRightWidth=a.timeOffsetRightWidth,u.useHEXColorsForSkin_bl=a.useHEXColorsForSkin_bl,u.normalButtonsColor_str=a.normalButtonsColor_str,u.selectedButtonsColor_str=a.selectedButtonsColor_str,this.showFullScreenButton_bl=a.showFullScreenButton_bl,this.showYoutubeQualityButton_bl=a.showYoutubeQualityButton_bl,this.showSubtitleButton_bl=a.showSubtitleButton_bl,this.showShareButton_bl=a.showShareButton_bl,this.showVolumeScrubber_bl=a.showVolumeScrubber_bl,this.allowToChangeVolume_bl=!0,this.showTime_bl=a.showTime_bl,this.showVolumeButton_bl=a.showVolumeButton_bl,this.showRewindButton_bl=a.showRewindButton_bl,this.showControllerWhenVideoIsStopped_bl=a.showControllerWhenVideoIsStopped_bl,this.showDownloadVideoButton_bl=a.showDownloadVideoButton_bl,this.showEmbedButton_bl=a.showEmbedButton_bl,this.showPlaybackRateButton_bl=a.showPlaybackRateButton_bl,this.isMainScrubberScrubbing_bl=!1,this.isMainScrubberDisabled_bl=!1,this.isVolumeScrubberDisabled_bl=!1,this.isMainScrubberLineVisible_bl=!1,this.isVolumeScrubberLineVisible_bl=!1,this.useVectorIcons_bl=a.useVectorIcons_bl,this.hasYtbButton_bl=!1,this.isMute_bl=!1,this.isShowed_bl=!0,this.areYtbQualityButtonsShowed_bl=!0,this.repeatBackground_bl=a.repeatBackground_bl,this.isMobile_bl=FWDEVPUtils.isMobile,this.hasPointerEvent_bl=FWDEVPUtils.hasPointerEvent,u.init=function(){if(u.setOverflow("visible"),u.mainHolder_do=new FWDEVPDisplayObject("div"),a.useAToB&&u.setupATB(),a.thumbnailsPreview&&u.setupThumbnailsPreview(),u.repeatBackground_bl)u.bk_do=new FWDEVPDisplayObject("div"),u.bk_do.getStyle().background="url('"+u.controllerBkPath_str+"')";else{u.bk_do=new FWDEVPDisplayObject("img");var e=new Image;e.src=u.controllerBkPath_str,u.bk_do.setScreen(e)}u.mainHolder_do.addChild(u.bk_do),u.mainHolder_do.setOverflow("visible"),u.addChild(u.mainHolder_do),u.showYoutubeQualityButton_bl&&(u.ytbQuality_ar=["hd2160","hd2160","hd1440","highres","hd1080","hd720","large","medium","small","tiny"],u.ytbButtons_ar=[],u.totalYtbButtons=u.ytbQuality_ar.length,u.setupYtbButtons()),u.setupPlayPauseButton(),u.showRewindButton_bl&&u.setupRewindButton(),u.setupMainScrubber(),u.showTime_bl&&u.setupTime(),u.showVolumeButton_bl&&u.setupVolumeButton(),u.showVolumeScrubber_bl&&u.setupVolumeScrubber(),u.showPlaybackRateButton_bl&&u.setupPlaybackRateButton(),u.showYoutubeQualityButton_bl&&u.setupYoutubeQualityButton(),u.showSubtitleButton_bl&&u.setupSubtitleButton(),u.showShareButton_bl&&u.setupShareButton(),u.showEmbedButton_bl&&u.setupEmbedButton(),a.useAToB&&u.setupAtbButton(),u.showDownloadVideoButton_bl&&u.setupDownloadButton(),u.showFullScreenButton_bl&&u.setupFullscreenButton(),u.isMobile_bl||u.setupDisable(),u.hide(!1,!0),u.showControllerWhenVideoIsStopped_bl&&u.show(!0)},u.resizeAndPosition=function(){u.stageWidth=d.stageWidth,u.positionButtons(),u.setY(d.stageHeight-u.stageHeight),u.hideQualityButtons(!1),u.ytbButtonsHolder_do&&(FWDAnimation.killTweensOf(u.ytbButtonsHolder_do),u.ytbButtonsHolder_do.setY(d.stageHeight)),u.subtitlesButtonsHolder_do&&(FWDAnimation.killTweensOf(u.subtitlesButtonsHolder_do),u.subtitlesButtonsHolder_do.setY(d.stageHeight)),u.playbackRatesButtonsHolder_do&&(FWDAnimation.killTweensOf(u.playbackRatesButtonsHolder_do),u.playbackRatesButtonsHolder_do.setY(d.stageHeight)),u.positionAdsLines()},u.positionButtons=function(){if(u.stageWidth){var e,t,o=u.showTime_bl,s=u.volumeScrubber_do;u.mainHolder_do.setWidth(u.stageWidth),u.mainHolder_do.setHeight(u.stageHeight),u.setWidth(u.stageWidth),u.setHeight(u.stageHeight);for(var i=[],n=0;n<u.buttons_ar.length;n++)i[n]=u.buttons_ar[n];d.videoType_str!=FWDEVPlayer.VIMEO||a.showDefaultControllerForVimeo_bl?u.setX(0):u.setX(-5e3),u.mainScrubberWidth=u.stageWidth-2*u.startSpaceBetweenButtons;for(n=0;n<i.length;n++)(e=i[n])!=u.mainScrubber_do&&(u.mainScrubberWidth-=e.w+u.spaceBetweenButtons);var l=3;for(u.hasYtbButton_bl&&(l=4);u.mainScrubberWidth<u.mainScrubberMinWidth&&i.length>l;){u.mainScrubberWidth=u.stageWidth-2*u.startSpaceBetweenButtons,u.volumeScrubber_do&&-1!=FWDEVPUtils.indexOfArray(i,u.volumeScrubber_do)?(i.splice(FWDEVPUtils.indexOfArray(i,u.volumeScrubber_do),1),u.volumeScrubber_do.setX(-1e3)):u.time_do&&-1!=FWDEVPUtils.indexOfArray(i,u.time_do)?(i.splice(FWDEVPUtils.indexOfArray(i,u.time_do),1),u.time_do.setX(-1e3),o=!1):u.volumeButton_do&&-1!=FWDEVPUtils.indexOfArray(i,u.volumeButton_do)?(i.splice(FWDEVPUtils.indexOfArray(i,u.volumeButton_do),1),u.volumeButton_do.setX(-1e3)):u.volumeScrubber_do&&-1!=FWDEVPUtils.indexOfArray(i,u.volumeScrubber_do)?(i.splice(FWDEVPUtils.indexOfArray(i,u.volumeScrubber_do),1),u.volumeScrubber_do.setX(-1e3),s=!1):u.atbButton_do&&-1!=FWDEVPUtils.indexOfArray(i,u.atbButton_do)?(i.splice(FWDEVPUtils.indexOfArray(i,u.atbButton_do),1),u.atbButton_do.setX(-1e3)):u.subtitleButton_do&&-1!=FWDEVPUtils.indexOfArray(i,u.subtitleButton_do)?(i.splice(FWDEVPUtils.indexOfArray(i,u.subtitleButton_do),1),u.subtitleButton_do.setX(-1e3)):u.shareButton_do&&-1!=FWDEVPUtils.indexOfArray(i,u.shareButton_do)?(i.splice(FWDEVPUtils.indexOfArray(i,u.shareButton_do),1),u.shareButton_do.setX(-1e3)):u.embedButton_do&&-1!=FWDEVPUtils.indexOfArray(i,u.embedButton_do)&&(i.splice(FWDEVPUtils.indexOfArray(i,u.embedButton_do),1),u.embedButton_do.setX(-1e3));for(n=0;n<i.length;n++)(e=i[n])!=u.mainScrubber_do&&(u.mainScrubberWidth-=e.w+u.spaceBetweenButtons)}o&&(u.mainScrubberWidth-=2*u.timeOffsetLeftWidth),s&&(u.mainScrubberWidth-=u.volumeScrubberOffsetRightWidth);for(n=0;n<i.length;n++)if(e=i[n],0==n)e.setX(u.startSpaceBetweenButtons),e.setY(parseInt((u.stageHeight-e.h)/2));else if(e==u.mainScrubber_do)t=i[n-1],FWDAnimation.killTweensOf(u.mainScrubber_do),u.mainScrubber_do.setX(t.x+t.w+u.spaceBetweenButtons),u.mainScrubber_do.setY(parseInt((u.stageHeight-u.scrubbersHeight)/2)),u.mainScrubber_do.setWidth(u.mainScrubberWidth),u.mainScrubberBkMiddle_do.setWidth(u.mainScrubberWidth-2*u.scrubbersBkLeftAndRightWidth),u.mainScrubberBkRight_do.setX(u.mainScrubberWidth-u.scrubbersBkLeftAndRightWidth),u.mainScrubberDragMiddle_do.setWidth(u.mainScrubberWidth-u.scrubbersBkLeftAndRightWidth-u.scrubbersOffsetWidth);else if(e==u.time_do){t=i[n-1],e.setX(t.x+t.w+u.spaceBetweenButtons+u.timeOffsetLeftWidth);var r=0;u.isLive&&(r=2),e.setY(parseInt((u.stageHeight-e.h)/2)+r)}else e==u.volumeButton_do&&o?(t=i[n-1],e.setX(t.x+t.w+u.spaceBetweenButtons+u.timeOffsetRightWidth)):(t=i[n-1],s&&t==u.volumeScrubber_do?e.setX(t.x+t.w+u.spaceBetweenButtons+u.volumeScrubberOffsetRightWidth):e.setX(t.x+t.w+u.spaceBetweenButtons)),e.setY(parseInt((u.stageHeight-e.h)/2));u.disable_do&&(u.disable_do.setWidth(u.stageWidth),u.disable_do.setHeight(u.stageHeight)),u.bk_do&&(u.bk_do.setWidth(u.stageWidth),u.bk_do.setHeight(u.stageHeight)),u.isShowed_bl?u.isMainScrubberOnTop_bl=!1:(u.isMainScrubberOnTop_bl=!0,u.positionScrollBarOnTopOfTheController()),u.progressMiddle_do&&u.progressMiddle_do.setWidth(u.mainScrubberWidth-u.scrubbersBkLeftAndRightWidth-u.scrubbersOffsetWidth),u.updateMainScrubber(u.percentPlayed),u.updatePreloaderBar(u.percentLoaded),u.atb&&u.atb.resize()}},this.positionScrollBarOnTopOfTheController=function(){u.mainScrubberWidth=u.stageWidth,u.updatePreloaderBar(u.percentLoaded),u.mainScrubber_do.setWidth(u.mainScrubberWidth),u.mainScrubberBkMiddle_do.setWidth(u.mainScrubberWidth-2*u.scrubbersBkLeftAndRightWidth),u.mainScrubberBkRight_do.setX(u.mainScrubberWidth-u.scrubbersBkLeftAndRightWidth),u.mainScrubberDragMiddle_do.setWidth(u.mainScrubberWidth-u.scrubbersBkLeftAndRightWidth-u.scrubbersOffsetWidth),FWDAnimation.killTweensOf(u.mainScrubber_do),u.mainScrubber_do.setX(0);var e=0;u.atb&&u.atb.isShowed_bl&&(e=u.stageHeight+1),a.showScrubberWhenControllerIsHidden_bl&&(u.isMainScrubberOnTop_bl||u.isShowed_bl?u.mainScrubber_do.setY(-u.mainScrubberOffestTop-e):u.mainScrubber_do.y==-u.mainScrubberOffestTop||u.isLive||FWDAnimation.to(u.mainScrubber_do,.8,{y:-u.mainScrubberOffestTop-e,ease:Expo.easeOut})),u.isMainScrubberOnTop_bl=!0},this.setupDisable=function(){u.disable_do=new FWDEVPDisplayObject("div"),FWDEVPUtils.isIE&&(u.disable_do.setBkColor("#FFFFFF"),u.disable_do.setAlpha(0))},this.setupThumbnailsPreview=function(){FWDEVPThumbnailsPreview.setPrototype(),u.thumbnailsPreview_do=new FWDEVPThumbnailsPreview(u),u.thumbnailsPreview_do.addListener(FWDEVPData.LOAD_ERROR,function(e){u.dispatchEvent(FWDEVPData.LOAD_ERROR,{text:e.text})})},this.setupATB=function(){FWDEVPATB.setPrototype(),u.atb=new FWDEVPATB(u),u.mainHolder_do.addChild(u.atb),u.atb.addListener(FWDEVPATB.START_TO_SCRUB,u.atbStartToScrub),u.atb.addListener(FWDEVPATB.STOP_TO_SCRUB,u.atbStopToScrub)},u.atbStartToScrub=function(){d.showDisable()},u.atbStopToScrub=function(){d.hideDisable()},this.setupAtbButton=function(){u.useVectorIcons_bl?(FWDEVPSimpleButton.setPrototype(),u.atbButton_do=new FWDEVPSimpleButton(void 0,void 0,void 0,!0,void 0,void 0,void 0,"<span class='icomoon icon-AB'></span>",void 0,"EVPMainButtonsNormalState","EVPMainButtonsSelectedState")):(FWDEVPSimpleButton.setPrototype(),u.atbButton_do=new FWDEVPSimpleButton(a.atbNPath_img,a.atbSPath_str,void 0,!0,u.useHEXColorsForSkin_bl,u.normalButtonsColor_str,u.selectedButtonsColor_str)),u.atbButton_do.setX(-5e3),u.buttons_ar.push(u.atbButton_do),u.atbButton_do.setY(parseInt((u.stageHeight-u.atbButton_do.h)/2));var e=setInterval(function(){0<u.atbButton_do.buttonHeight&&(clearInterval(e),u.atbButton_do.setY(parseInt((u.stageHeight-u.atbButton_do.buttonHeight)/2)))},50);u.atbButton_do.addListener(FWDEVPSimpleButton.SHOW_TOOLTIP,u.atbButtonShowTooltipHandler),u.atbButton_do.addListener(FWDEVPSimpleButton.MOUSE_UP,u.atbButtonMouseUpHandler),u.mainHolder_do.addChild(u.atbButton_do)},this.atbButtonShowTooltipHandler=function(e){},this.atbButtonMouseUpHandler=function(){u.atbButton_do.isSelected?(u.atbButton_do.doNotallowToSetNormal=!1,u.atbButton_do.isSelected=!1,u.atb.hide(!0)):(u.atbButton_do.isSelected=!0,u.atbButton_do.doNotallowToSetNormal=!0,u.atbButton_do.setSelectedState(),u.atb.show(!0))},this.disableAtbButton=function(){u.atbButton_do&&u.atbButton_do.disable()},this.enableAtbButton=function(){u.atbButton_do&&u.atbButton_do.enable()},this.playbackRatesSource_ar=a.defaultPlaybackRate_ar,this.playbackRateButtons_ar=[],this.totalPlaybackRateButtons=6,this.arePlaybackRateButtonsShowed_bl=!0,this.showPlaybackRateButton_bl||(this.arePlaybackRateButtonsShowed_bl=!1),this.setupPlaybackRateButton=function(){u.useVectorIcons_bl?(FWDEVPSimpleButton.setPrototype(),u.playbackRateButton_do=new FWDEVPSimpleButton(void 0,void 0,void 0,!0,void 0,void 0,void 0,"<span class='icomoon icon-watch-later'></span>",void 0,"EVPMainButtonsNormalState","EVPMainButtonsSelectedState")):(FWDEVPSimpleButton.setPrototype(),u.playbackRateButton_do=new FWDEVPSimpleButton(a.playbackRateNPath_img,a.playbackRateSPath_str,void 0,!0,u.useHEXColorsForSkin_bl,u.normalButtonsColor_str,u.selectedButtonsColor_str)),u.buttons_ar.push(u.playbackRateButton_do),u.playbackRateButton_do.setY(parseInt((u.stageHeight-u.playbackRateButton_do.h)/2)),u.playbackRateButton_do.addListener(FWDEVPSimpleButton.MOUSE_UP,u.playbackRateButtonMouseUpHandler),u.mainHolder_do.addChild(u.playbackRateButton_do),u.disablePlaybackRateButton(),u.setupPlaybackRateButtons()},this.playbackRateButtonMouseUpHandler=function(){u.arePlaybackRateButtonsShowed_bl?u.hidePlaybackRateButtons(!0):u.showPlaybackRateButtons(!0)},this.disablePlaybackRateButton=function(){u.playbackRateButton_do&&u.playbackRateButton_do.disable()},this.enablePlaybackRateButton=function(){u.playbackRateButton_do&&u.playbackRateButton_do.enable()},this.removePlaybackRateButton=function(){u.playbackRateButton_do&&-1!=FWDEVPUtils.indexOfArray(u.buttons_ar,u.playbackRateButton_do)&&(u.buttons_ar.splice(FWDEVPUtils.indexOfArray(u.buttons_ar,u.playbackRateButton_do),1),u.playbackRateButton_do.setX(-300),u.positionButtons())},this.addPlaybackRateButton=function(){u.playbackRateButton_do&&-1==FWDEVPUtils.indexOfArray(u.buttons_ar,u.playbackRateButton_do)&&(u.ytbQualityButton_do&&-1!=FWDEVPUtils.indexOfArray(u.buttons_ar,u.ytbQualityButton_do)?u.buttons_ar.splice(FWDEVPUtils.indexOfArray(u.buttons_ar,u.ytbQualityButton_do),0,u.playbackRateButton_do):u.subtitleButton_do&&-1!=FWDEVPUtils.indexOfArray(u.buttons_ar,u.subtitleButton_do)?u.buttons_ar.splice(FWDEVPUtils.indexOfArray(u.buttons_ar,u.subtitleButton_do),0,u.playbackRateButton_do):u.shareButton_do&&-1!=FWDEVPUtils.indexOfArray(u.buttons_ar,u.shareButton_do)?u.buttons_ar.splice(FWDEVPUtils.indexOfArray(u.buttons_ar,u.shareButton_do),0,u.playbackRateButton_do):u.fullScreenButton_do&&-1!=FWDEVPUtils.indexOfArray(u.buttons_ar,u.fullScreenButton_do)?u.buttons_ar.splice(FWDEVPUtils.indexOfArray(u.buttons_ar,u.fullScreenButton_do),0,u.playbackRateButton_do):u.buttons_ar.splice(u.buttons_ar.length,0,u.playbackRateButton_do),u.positionButtons())},this.updatePlaybackRateButtons=function(e,t){u.playbackRateButton_do&&(u.positionAndResizePlaybackRateButtons(e),setTimeout(function(){u.disablePlaybackRateButtons(t)},65),u.prevplaybackRateIndex=t)},this.setupPlaybackRateButtons=function(){var e,t;(u.playbackRatesButtonsHolder_do=new FWDEVPDisplayObject("div"),u.playbackRatesButtonsHolder_do.setOverflow("visible"),u.repeatBackground_bl)?u.playbackRatesButtonsHolder_do.getStyle().background="url('"+u.controllerBkPath_str+"')":(u.playbackRatesButtonsBackground_do=new FWDEVPDisplayObject("img"),(e=new Image).src=u.controllerBkPath_str,u.playbackRatesButtonsBackground_do.setScreen(e),u.playbackRatesButtonsHolder_do.addChild(u.playbackRatesButtonsBackground_do));u.playbackRatesButtonsHolder_do.setX(300),u.playbackRatesButtonsHolder_do.setY(-300),d.main_do.addChild(u.playbackRatesButtonsHolder_do,0),(e=new Image).src=u.ytbQualityButtonPointerPath_str,u.playbackRatesPonter_do=new FWDEVPDisplayObject("img"),u.playbackRatesPonter_do.setScreen(e),u.playbackRatesPonter_do.setWidth(u.pointerWidth),u.playbackRatesPonter_do.setHeight(u.pointerHeight),u.playbackRatesButtonsHolder_do.addChild(u.playbackRatesPonter_do),(e=new Image).src=u.youtubeQualityArrowPath_str,u.playbackRateQualityArrow_do=new FWDEVPDisplayObject("img"),u.playbackRateQualityArrow_do.setScreen(e),u.playbackRateQualityArrow_do.setX(7),u.playbackRateQualityArrow_do.setWidth(5),u.playbackRateQualityArrow_do.setHeight(7),u.playbackRatesButtonsHolder_do.addChild(u.playbackRateQualityArrow_do);for(var o=0;o<u.totalPlaybackRateButtons;o++)FWDEVPYTBQButton.setPrototype(),(t=new FWDEVPYTBQButton("no source",u.youtubeQualityButtonNormalColor_str,u.youtubeQualityButtonSelectedColor_str,void 0,o)).addListener(FWDEVPYTBQButton.MOUSE_OVER,u.plbkQualityOver),t.addListener(FWDEVPYTBQButton.MOUSE_OUT,u.plbkQualityOut),t.addListener(FWDEVPYTBQButton.CLICK,u.plbkQualityClick),u.playbackRateButtons_ar[o]=t,u.playbackRatesButtonsHolder_do.addChild(t);u.positionAndResizePlaybackRateButtons(u.playbackRatesSource_ar),u.hidePlaybackRateButtons(!1)},this.plbkQualityOver=function(e){u.setPlaybackRateArrowPosition(e.target)},this.plbkQualityOut=function(e){u.setPlaybackRateArrowPosition(void 0)},this.plbkQualityClick=function(e){u.startAtPlaybackRate=e.id,u.disablePlaybackRateButtons(u.startAtPlaybackRate),u.hidePlaybackRateButtons(!0),u.dispatchEvent(s.CHANGE_PLAYBACK_RATES,{rate:u.playbackRatesSource_ar[e.id]})},this.positionAndResizePlaybackRateButtons=function(e){if(e){var t=e.length;if(u.prevplaybackRatesQualityButtonsLength!=t){var o;this.prevplaybackRatesQualityButtonsLength=t;for(var s=5,i=0,n=0,l=0;l<t;l++)o=u.playbackRateButtons_ar[l],1==e[l]?o.updateText("normal"):o.updateText(e[l]),o.setFinalSize();setTimeout(function(){for(var e=0;e<t;e++)o=u.playbackRateButtons_ar[e],e<t?(0!=o.x&&o.setX(0),o.w>i&&(i=o.w),o.setY(s),s+=o.h):-3e3!=o.x&&o.setX(-3e3);for(e=0;e<t;e++)(o=u.playbackRateButtons_ar[e]).dumy_do.w<i&&(o.setWidth(i),o.dumy_do.setWidth(i));n=s+5,u.playbackRatesPonter_do.setX(parseInt((i-u.playbackRatesPonter_do.w)/2)),u.playbackRatesPonter_do.setY(n),u.playbackRatesButtonsBackground_do&&(u.playbackRatesButtonsBackground_do.setWidth(i),u.playbackRatesButtonsBackground_do.setHeight(n)),u.playbackRatesButtonsHolder_do.setWidth(i),u.playbackRatesButtonsHolder_do.setHeight(n)},60)}}},this.disablePlaybackRateButtons=function(e){for(var t=0;t<u.totalPlaybackRateButtons;t++)btn=u.playbackRateButtons_ar[t],t==e?(FWDAnimation.killTweensOf(u.playbackRateQualityArrow_do),u.playbackRateQualityArrow_do.setY(btn.y+parseInt((btn.h-u.playbackRateQualityArrow_do.h)/2)-1),btn.disable(),u.playbackRateDisabledButton_do=btn):btn.enable()},this.setPlaybackRateArrowPosition=function(e){var t=0;t=e?e.y+parseInt((e.h-u.playbackRateQualityArrow_do.h)/2-1):u.playbackRateDisabledButton_do.y+parseInt((u.playbackRateDisabledButton_do.h-u.playbackRateQualityArrow_do.h)/2-1),FWDAnimation.killTweensOf(u.playbackRateQualityArrow_do),FWDAnimation.to(u.playbackRateQualityArrow_do,.6,{y:t,delay:.1,ease:Expo.easeInOut})},this.showPlaybackRateButtons=function(e){if(!u.arePlaybackRateButtonsShowed_bl){u.hideQualityButtons(),u.arePlaybackRateButtonsShowed_bl=!0;var t=parseInt(u.playbackRateButton_do.x+parseInt(u.playbackRateButton_do.w-u.playbackRatesButtonsHolder_do.w)/2),o=parseInt(d.stageHeight-u.stageHeight-u.playbackRatesButtonsHolder_do.h-6);u.hasPointerEvent_bl?window.addEventListener("pointerdown",u.hideplaybackRatesButtonsHandler):(u.isMobile_bl||window.addEventListener("mousedown",u.hideplaybackRatesButtonsHandler),window.addEventListener("touchstart",u.hideplaybackRatesButtonsHandler)),u.playbackRatesButtonsHolder_do.setX(t),e?FWDAnimation.to(u.playbackRatesButtonsHolder_do,.6,{y:o,ease:Expo.easeInOut}):(FWDAnimation.killTweensOf(u.playbackRatesButtonsHolder_do),u.playbackRatesButtonsHolder_do.setY(o))}},this.hidePlaybackRateButtons=function(e){u.arePlaybackRateButtonsShowed_bl&&u.showPlaybackRateButton_bl&&(u.arePlaybackRateButtonsShowed_bl=!1,e?FWDAnimation.to(u.playbackRatesButtonsHolder_do,.6,{y:d.stageHeight,ease:Expo.easeInOut}):(FWDAnimation.killTweensOf(u.playbackRatesButtonsHolder_do),u.playbackRatesButtonsHolder_do.setY(d.stageHeight)),u.hasPointerEvent_bl?window.removeEventListener("pointerdown",u.hideplaybackRatesButtonsHandler):(u.isMobile_bl||window.removeEventListener("mousedown",u.hideplaybackRatesButtonsHandler),window.removeEventListener("touchstart",u.hideplaybackRatesButtonsHandler)))},this.hideplaybackRatesButtonsHandler=function(e){var t=FWDEVPUtils.getViewportMouseCoordinates(e);FWDEVPUtils.hitTest(u.playbackRateButton_do.screen,t.screenX,t.screenY)||FWDEVPUtils.hitTest(u.playbackRatesButtonsHolder_do.screen,t.screenX,t.screenY)||u.hidePlaybackRateButtons(!0)},this.setupAdsLines=function(e){if(!this.createdAdsOnce_bl){if(this.linesHolder_do||(this.linesHolder_do=new FWDEVPDisplayObject("div"),this.linesHolder_do.setOverflow("visible"),this.mainScrubber_do.addChild(this.linesHolder_do)),this.createdAdsOnce_bl=!0,this.lines_ar=e,this.lines_ar){var t;this.line_ar=[];for(var o=0;o<this.lines_ar.length;o++)(t=new FWDEVPDisplayObject("div")).getStyle().background="url('"+a.adLinePat_str+"') repeat-x",t.timeStart=e[o].timeStart,t.setWidth(2),t.setHeight(u.mainScrubberDragLeft_img.height),t.isUsed_bl=!1,t.isShowed_bl=!1,t.setAlpha(0),this.line_ar[o]=t,this.linesHolder_do.addChild(t)}u.totalDuration=0}},this.hideAdsLines=function(){if(u.linesHolder_do&&u.linesHolder_do.setX(-5e3),this.line_ar)for(var e=0;e<this.line_ar.length;e++)this.line_ar[e].setAlpha(0),this.line_ar[e].isShowed_bl=!1},this.positionAdsLines=function(e){if(u.linesHolder_do&&(e&&(u.totalDuration=e),d.isAdd_bl?this.linesHolder_do.setX(-5e3):this.linesHolder_do.setX(0),this.line_ar))for(var t,o=0;o<this.line_ar.length;o++){t=this.line_ar[o];var s=Math.round(t.timeStart/u.totalDuration*u.mainScrubberWidth)-1;s==1/0&&(s=0),isNaN(s)&&(s=0),s<0&&(s=0),t.setX(s),t.isUsed_bl||0==u.totalDuration||t.isShowed_bl||(FWDAnimation.to(t,1,{alpha:1,ease:Expo.easeOut}),t.isShowed_bl=!0)}},u.setIsLive=function(e){(u.isLive=e)?u.mainScrubber_do.contains(u.live_do)||(u.mainScrubber_do.setAlpha(.2),u.mainHolder_do.addChild(u.live_do),setTimeout(function(){u.live_do.setX(4),u.live_do.setY(-u.live_do.getHeight()-4)},100),u.disableMainScrubber()):u.mainHolder_do.contains(u.live_do)&&(u.mainHolder_do.removeChild(u.live_do),u.mainScrubber_do.setAlpha(1),u.enableMainScrubber())},this.setupMainScrubber=function(){u.mainScrubber_do=new FWDEVPDisplayObject("div"),u.mainScrubber_do.setHeight(u.scrubbersHeight),u.mainScrubberBkLeft_do=new FWDEVPDisplayObject("img"),u.mainScrubberBkLeft_do.setScreen(u.mainScrubberBkLeft_img),u.mainScrubberBkRight_do=new FWDEVPDisplayObject("img"),u.mainScrubberBkRight_do.setScreen(u.mainScrubberBkRight_img);var e=new Image;e.src=u.mainScrubberBkMiddlePath_str,u.mainScrubberBkMiddle_do=new FWDEVPDisplayObject("div"),u.mainScrubberBkMiddle_do.getStyle().background="url('"+u.mainScrubberBkMiddlePath_str+"') repeat-x",u.mainScrubberBkMiddle_do.setHeight(u.scrubbersHeight),u.mainScrubberBkMiddle_do.setX(u.scrubbersBkLeftAndRightWidth),u.mainProgress_do=new FWDEVPDisplayObject("div"),u.mainProgress_do.setHeight(u.scrubbersHeight),u.progressLeft_do=new FWDEVPDisplayObject("img"),u.progressLeft_do.setScreen(u.progress),(e=new Image).src=u.progressMiddlePath_str,u.progressMiddle_do=new FWDEVPDisplayObject("div"),u.progressMiddle_do.getStyle().background="url('"+u.progressMiddlePath_str+"') repeat-x",u.progressMiddle_do.setHeight(u.scrubbersHeight),u.progressMiddle_do.setX(u.mainScrubberDragLeftWidth),u.mainScrubberDrag_do=new FWDEVPDisplayObject("div"),u.mainScrubberDrag_do.setHeight(u.scrubbersHeight),u.useHEXColorsForSkin_bl?(u.mainScrubberDragLeft_do=new FWDEVPDisplayObject("div"),u.mainScrubberDragLeft_do.setWidth(u.mainScrubberDragLeft_img.width+20),u.mainScrubberDragLeft_do.setHeight(u.mainScrubberDragLeft_img.height+20),u.mainScrubberDragLeft_canvas=FWDEVPUtils.getCanvasWithModifiedColor(u.mainScrubberDragLeft_img,u.normalButtonsColor_str).canvas,u.mainScrubberDragLeft_do.screen.appendChild(u.mainScrubberDragLeft_canvas)):(u.mainScrubberDragLeft_do=new FWDEVPDisplayObject("img"),u.mainScrubberDragLeft_do.setScreen(u.mainScrubberDragLeft_img)),u.mainScrubberMiddleImage=new Image,u.mainScrubberMiddleImage.src=u.mainScrubberDragMiddlePath_str,u.volumeScrubberDragMiddle_do=new FWDEVPDisplayObject("div"),u.useHEXColorsForSkin_bl?(u.mainScrubberDragMiddle_do=new FWDEVPDisplayObject("div"),u.mainScrubberMiddleImage.onload=function(){var e=FWDEVPUtils.getCanvasWithModifiedColor(u.mainScrubberMiddleImage,u.normalButtonsColor_str,!0);u.mainSCrubberMiddleCanvas=e.canvas,u.mainSCrubberDragMiddleImageBackground=e.image,u.mainScrubberDragMiddle_do.getStyle().background="url('"+u.mainSCrubberDragMiddleImageBackground.src+"') repeat-x",setTimeout(function(){u.volumeScrubberDragMiddle_do.getStyle().background="url('"+u.mainSCrubberDragMiddleImageBackground.src+"') repeat-x"},50)}):(u.mainScrubberDragMiddle_do=new FWDEVPDisplayObject("div"),u.mainScrubberDragMiddle_do.getStyle().background="url('"+u.mainScrubberDragMiddlePath_str+"') repeat-x"),u.mainScrubberDragMiddle_do.setHeight(u.scrubbersHeight),u.mainScrubberDragMiddle_do.setX(u.mainScrubberDragLeftWidth),u.mainScrubberBarLine_do=new FWDEVPDisplayObject("img"),u.mainScrubberBarLine_do.setScreen(u.mainScrubberLine_img),u.mainScrubberBarLine_do.setAlpha(0),u.mainScrubberBarLine_do.hasTransform3d_bl=!1,u.mainScrubberBarLine_do.hasTransform2d_bl=!1,u.buttons_ar.push(u.mainScrubber_do),u.live_do=new FWDEVPDisplayObject("div"),u.live_do.hasTransform3d_bl=!1,u.live_do.hasTransform2d_bl=!1,u.live_do.setBackfaceVisibility(),u.live_do.getStyle().fontFamily="Arial",u.live_do.getStyle().fontSize="12px",u.live_do.getStyle().whiteSpace="nowrap",u.live_do.getStyle().textAlign="center",u.live_do.getStyle().padding="4px",u.live_do.getStyle().paddingLeft="6px",u.live_do.getStyle().paddingRIght="6px",u.live_do.getStyle().color="#FFFFFF",u.live_do.getStyle().fontSmoothing="antialiased",u.live_do.getStyle().webkitFontSmoothing="antialiased",u.live_do.getStyle().textRendering="optimizeLegibility",u.live_do.getStyle().backgroundColor="rgba(255,0,0,0.8)",u.live_do.setInnerHTML("&#x25C9; LIVE"),u.mainScrubber_do.addChild(u.mainScrubberBkLeft_do),u.mainScrubber_do.addChild(u.mainScrubberBkMiddle_do),u.mainScrubber_do.addChild(u.mainScrubberBkRight_do),u.mainScrubber_do.addChild(u.mainScrubberBarLine_do),u.mainScrubberDrag_do.addChild(u.mainScrubberDragLeft_do),u.mainScrubberDrag_do.addChild(u.mainScrubberDragMiddle_do),u.mainProgress_do.addChild(u.progressLeft_do),u.mainProgress_do.addChild(u.progressMiddle_do),u.mainScrubber_do.addChild(u.mainProgress_do),u.mainScrubber_do.addChild(u.mainScrubberDrag_do),u.mainScrubber_do.addChild(u.mainScrubberBarLine_do),u.mainHolder_do.addChild(u.mainScrubber_do),u.disableVideoScrubber_bl||(u.hasPointerEvent_bl?(u.mainScrubber_do.screen.addEventListener("pointerover",u.mainScrubberOnOverHandler),u.mainScrubber_do.screen.addEventListener("pointerout",u.mainScrubberOnOutHandler),u.mainScrubber_do.screen.addEventListener("pointerdown",u.mainScrubberOnDownHandler)):u.screen.addEventListener&&(u.isMobile_bl||(u.mainScrubber_do.screen.addEventListener("mouseover",u.mainScrubberOnOverHandler),u.mainScrubber_do.screen.addEventListener("mouseout",u.mainScrubberOnOutHandler),u.mainScrubber_do.screen.addEventListener("mousemove",u.updateTooltipOnMove),u.mainScrubber_do.screen.addEventListener("mousedown",u.mainScrubberOnDownHandler)),u.mainScrubber_do.screen.addEventListener("touchstart",u.mainScrubberOnDownHandler))),u.disableMainScrubber(),u.updateMainScrubber(0),FWDEVPScrubberToolip.setPrototype(),u.ttm=new FWDEVPScrubberToolip(u.mainScrubber_do,a.scrubbersToolTipLabelBackgroundColor,a.scrubbersToolTipLabelFontColor,test),u.addChild(u.ttm)},this.updateToolTip=function(e,t){a.showMainScrubberToolTipLabel_bl&&(u.ttm.setLabel(FWDEVPUtils.formatTime(Math.round(d.totalDuration*t))),u.ttm.setX(Math.round(u.mainScrubber_do.x+e-u.ttm.getWidth()/2)+1),u.ttm.setY(u.mainScrubber_do.y-u.ttm.h-2))},this.updateThumbnailsPreview=function(e,t){if(a.thumbnailsPreview){var o=Math.round(u.mainScrubber_do.x+e-u.thumbnailsPreview_do.getWidth()/2)+1;o<1?o=1:o>u.stageWidth-u.thumbnailsPreview_do.w&&(o=u.stageWidth-u.thumbnailsPreview_do.w),u.thumbnailsPreview_do.setLabel(FWDEVPUtils.formatTime(Math.round(d.totalDuration*t)),Math.round(d.totalDuration*t)),u.thumbnailsPreview_do.setX(o),u.thumbnailsPreview_do.setY(u.mainScrubber_do.y-u.thumbnailsPreview_do.h-2)}},this.updateTooltipOnMove=function(e){var t=FWDEVPUtils.getViewportMouseCoordinates(e).screenX-u.mainScrubber_do.getGlobalX();t<0?t=0:t>u.mainScrubberWidth-u.scrubbersOffsetWidth&&(t=u.mainScrubberWidth-u.scrubbersOffsetWidth);var o=t/u.mainScrubberWidth;u.updateToolTip(t,o),u.updateThumbnailsPreview(t,o)},this.mainScrubberOnOverHandler=function(e){if(!u.isMainScrubberDisabled_bl){a.showMainScrubberToolTipLabel_bl&&u.ttm.show(),a.thumbnailsPreview&&u.thumbnailsPreview_do.show();var t=FWDEVPUtils.getViewportMouseCoordinates(e).screenX-u.mainScrubber_do.getGlobalX();t<0?t=0:t>u.mainScrubberWidth-u.scrubbersOffsetWidth&&(t=u.mainScrubberWidth-u.scrubbersOffsetWidth);var o=t/u.mainScrubberWidth;u.updateToolTip(t,o),u.updateThumbnailsPreview(t,o)}},this.mainScrubberOnOutHandler=function(e){u.isMainScrubberDisabled_bl||u.isMainScrubberScrubbing_bl||(u.ttm&&u.ttm.hide(),u.thumbnailsPreview_do&&u.thumbnailsPreview_do.hide())},this.mainScrubberOnDownHandler=function(e){if(!u.isMainScrubberDisabled_bl&&2!=e.button){e.preventDefault&&e.preventDefault(),u.isMainScrubberScrubbing_bl=!0;var t=FWDEVPUtils.getViewportMouseCoordinates(e).screenX-u.mainScrubber_do.getGlobalX();t<0?t=0:t>u.mainScrubberWidth-u.scrubbersOffsetWidth&&(t=u.mainScrubberWidth-u.scrubbersOffsetWidth);var o=t/u.mainScrubberWidth;u.disable_do&&u.addChild(u.disable_do),a.showMainScrubberToolTipLabel_bl&&u.ttm.show(),a.thumbnailsPreview&&u.thumbnailsPreview_do.show(),u.updateThumbnailsPreview(t,o),u.updateMainScrubber(o),u.dispatchEvent(s.START_TO_SCRUB),u.dispatchEvent(s.SCRUB,{percent:o}),u.hasPointerEvent_bl?(window.addEventListener("pointermove",u.mainScrubberMoveHandler),window.addEventListener("pointerup",u.mainScrubberEndHandler)):(window.addEventListener("mousemove",u.mainScrubberMoveHandler),window.addEventListener("mouseup",u.mainScrubberEndHandler),window.addEventListener("touchmove",u.mainScrubberMoveHandler),window.addEventListener("touchend",u.mainScrubberEndHandler))}},this.mainScrubberMoveHandler=function(e){e.preventDefault&&e.preventDefault();var t=FWDEVPUtils.getViewportMouseCoordinates(e).screenX-u.mainScrubber_do.getGlobalX();t<0?t=0:t>u.mainScrubberWidth-u.scrubbersOffsetWidth&&(t=u.mainScrubberWidth-u.scrubbersOffsetWidth);var o=t/u.mainScrubberWidth;u.updateToolTip(t,o),u.updateThumbnailsPreview(t,o),u.updateMainScrubber(o),u.dispatchEvent(s.SCRUB,{percent:o})},this.mainScrubberEndHandler=function(e){if(u.isMainScrubberScrubbing_bl=!1,u.disable_do&&u.contains(u.disable_do)&&u.removeChild(u.disable_do),e){var t=FWDEVPUtils.getViewportMouseCoordinates(e);FWDEVPUtils.hitTest(u.mainScrubber_do.screen,t.screenX,t.screenY)||(u.ttm&&u.ttm.hide(),u.thumbnailsPreview_do&&u.thumbnailsPreview_do.hide())}u.dispatchEvent(s.STOP_TO_SCRUB),u.hasPointerEvent_bl?(window.removeEventListener("pointermove",u.mainScrubberMoveHandler),window.removeEventListener("pointerup",u.mainScrubberEndHandler)):(window.removeEventListener("mousemove",u.mainScrubberMoveHandler),window.removeEventListener("mouseup",u.mainScrubberEndHandler),window.removeEventListener("touchmove",u.mainScrubberMoveHandler),window.removeEventListener("touchend",u.mainScrubberEndHandler))},this.disableMainScrubber=function(){u.mainScrubber_do&&(u.isMainScrubberDisabled_bl=!0,u.mainScrubber_do.setButtonMode(!1),u.mainScrubberEndHandler(),u.updateMainScrubber(0),u.updatePreloaderBar(0))},this.enableMainScrubber=function(){u.mainScrubber_do&&!u.isLive&&(u.isMainScrubberDisabled_bl=!1,u.mainScrubber_do.setButtonMode(!0))},this.updateMainScrubber=function(e){if(u.mainScrubber_do){u.isLive&&(e=0);var t=parseInt(e*u.mainScrubberWidth);isNaN(t)||(u.percentPlayed=e,!FWDEVPlayer.hasHTML5Video&&t>=u.mainProgress_do.w&&(t=u.mainProgress_do.w),t<1&&u.isMainScrubberLineVisible_bl?(u.isMainScrubberLineVisible_bl=!1,FWDAnimation.to(u.mainScrubberBarLine_do,.5,{alpha:0})):1<t&&!u.isMainScrubberLineVisible_bl&&(u.isMainScrubberLineVisible_bl=!0,FWDAnimation.to(u.mainScrubberBarLine_do,.5,{alpha:1})),u.mainScrubberDrag_do.setWidth(t),t>u.mainScrubberWidth-u.scrubbersOffsetWidth&&(t=u.mainScrubberWidth-u.scrubbersOffsetWidth),FWDAnimation.to(u.mainScrubberBarLine_do,.8,{x:t+1,ease:Expo.easeOut}))}},this.updatePreloaderBar=function(e){if(u.mainProgress_do){u.isLive&&(e=0),u.percentLoaded=e;var t=parseInt(Math.max(0,u.percentLoaded*u.mainScrubberWidth));.98<=u.percentLoaded?u.mainProgress_do.setY(-30):0!=u.mainProgress_do.y&&1!=u.percentLoaded&&u.mainProgress_do.setY(0),t>u.mainScrubberWidth-u.scrubbersOffsetWidth&&(t=Math.max(0,u.mainScrubberWidth-u.scrubbersOffsetWidth)),t<0&&(t=0),u.mainProgress_do.setWidth(t)}},this.setupPlayPauseButton=function(){u.useVectorIcons_bl?(FWDEVPComplexButton.setPrototype(),u.playPauseButton_do=new FWDEVPComplexButton(void 0,void 0,void 0,void 0,!0,void 0,void 0,void 0,"<span class='icomoon icon-play'></span>","<span class='icomoon icon-pause'></span>","EVPMainButtonsNormalState","EVPMainButtonsSelectedState")):(FWDEVPComplexButton.setPrototype(),u.playPauseButton_do=new FWDEVPComplexButton(u.playN_img,a.playSPath_str,u.pauseN_img,a.pauseSPath_str,!0,u.useHEXColorsForSkin_bl,u.normalButtonsColor_str,u.selectedButtonsColor_str)),u.buttons_ar.push(u.playPauseButton_do),u.playPauseButton_do.setY(parseInt((u.stageHeight-u.playPauseButton_do.buttonHeight)/2)),u.playPauseButton_do.addListener(FWDEVPComplexButton.MOUSE_UP,u.playButtonMouseUpHandler),u.mainHolder_do.addChild(u.playPauseButton_do)},this.showPlayButton=function(){u.playPauseButton_do&&(a.showDefaultControllerForVimeo_bl||d.videoType_str!=FWDEVPlayer.VIMEO)&&u.playPauseButton_do.setButtonState(1)},this.showPauseButton=function(){u.playPauseButton_do&&(a.showDefaultControllerForVimeo_bl||d.videoType_str!=FWDEVPlayer.VIMEO)&&u.playPauseButton_do.setButtonState(0)},this.playButtonMouseUpHandler=function(){0==u.playPauseButton_do.currentState?u.dispatchEvent(s.PAUSE):u.dispatchEvent(s.PLAY)},this.setupEmbedButton=function(){u.useVectorIcons_bl?(FWDEVPSimpleButton.setPrototype(),u.embedButton_do=new FWDEVPSimpleButton(void 0,void 0,void 0,!0,void 0,void 0,void 0,"<span class='icomoon icon-embed'></span>",void 0,"EVPMainButtonsNormalState","EVPMainButtonsSelectedState")):(FWDEVPSimpleButton.setPrototype(),u.embedButton_do=new FWDEVPSimpleButton(u.embedN_img,a.embedPathS_str,void 0,!0,u.useHEXColorsForSkin_bl,u.normalButtonsColor_str,u.selectedButtonsColor_str)),u.embedButton_do.addListener(FWDEVPSimpleButton.MOUSE_UP,u.embedButtonOnMouseUpHandler),u.embedButton_do.setY(parseInt((u.stageHeight-u.embedButton_do.h)/2)),u.buttons_ar.push(u.embedButton_do),u.mainHolder_do.addChild(u.embedButton_do)},this.embedButtonOnMouseUpHandler=function(){u.dispatchEvent(s.SHOW_EMBED_WINDOW)},this.setupYtbButtons=function(){var e,t;(u.ytbButtonsHolder_do=new FWDEVPDisplayObject("div"),u.ytbButtonsHolder_do.setOverflow("visible"),u.repeatBackground_bl)?u.ytbButtonsHolder_do.getStyle().background="url('"+u.controllerBkPath_str+"')":(u.ytbButtonBackground_do=new FWDEVPDisplayObject("img"),(e=new Image).src=u.controllerBkPath_str,u.ytbButtonBackground_do.setScreen(e),u.ytbButtonsHolder_do.addChild(u.ytbButtonBackground_do));u.ytbButtonsHolder_do.setX(300),u.ytbButtonsHolder_do.setY(-300),d.main_do.addChild(u.ytbButtonsHolder_do,0),(e=new Image).src=u.ytbQualityButtonPointerPath_str,u.pointer_do=new FWDEVPDisplayObject("img"),u.pointer_do.setScreen(e),u.pointer_do.setWidth(u.pointerWidth),u.pointer_do.setHeight(u.pointerHeight),u.ytbButtonsHolder_do.addChild(u.pointer_do),(e=new Image).src=u.youtubeQualityArrowPath_str,u.ytbQualityArrow_do=new FWDEVPDisplayObject("img"),u.ytbQualityArrow_do.setScreen(e),u.ytbQualityArrow_do.setX(7),u.ytbQualityArrow_do.setWidth(5),u.ytbQualityArrow_do.setHeight(7);for(var o=0;o<u.totalYtbButtons;o++)FWDEVPYTBQButton.setPrototype(),(t=new FWDEVPYTBQButton(u.ytbQuality_ar[o],u.youtubeQualityButtonNormalColor_str,u.youtubeQualityButtonSelectedColor_str,a.hdPath_str,o)).addListener(FWDEVPYTBQButton.MOUSE_OVER,u.ytbQualityOver),t.addListener(FWDEVPYTBQButton.MOUSE_OUT,u.ytbQualityOut),t.addListener(FWDEVPYTBQButton.CLICK,u.ytbQualityClick),u.ytbButtons_ar[o]=t,u.ytbButtonsHolder_do.addChild(t);u.ytbButtonsHolder_do.addChild(u.ytbQualityArrow_do),u.hideQualityButtons(!1)},this.ytbQualityOver=function(e){u.setYtbQualityArrowPosition(e.target)},this.ytbQualityOut=function(e){u.setYtbQualityArrowPosition(void 0)},this.ytbQualityClick=function(e){u.hideQualityButtons(!0),u.dispatchEvent(s.CHANGE_YOUTUBE_QUALITY,{quality:e.target.label_str,id:e.id})},this.positionAndResizeYtbQualityButtons=function(e){if(e){var t=e.length;if(u.prevYtbQualityButtonsLength!=t){var o;this.prevYtbQualityButtonsLength=t;for(var s=5,i=0,n=0,l=0;l<t;l++)(o=u.ytbButtons_ar[l]).updateText(e[l]),o.setFinalSize();setTimeout(function(){for(var e=0;e<u.totalYtbButtons;e++)o=u.ytbButtons_ar[e],e<t?(0!=o.x&&o.setX(0),o.w>i&&(i=o.w),o.setY(s),s+=o.h):-3e3!=o.x&&o.setX(-3e3);for(e=0;e<u.totalYtbButtons;e++)(o=u.ytbButtons_ar[e]).dumy_do.w<i&&(o.setWidth(i),o.dumy_do.setWidth(i));n=s+5,u.pointer_do.setX(parseInt((i-u.pointer_do.w)/2)),u.pointer_do.setY(n),u.ytbButtonBackground_do&&(u.ytbButtonBackground_do.setWidth(i),u.ytbButtonBackground_do.setHeight(n)),u.ytbButtonsHolder_do.setWidth(i),u.ytbButtonsHolder_do.setHeight(n)},60)}}},this.disableQualityButtons=function(e){"highres"==e||"hd1080"==e||"hd720"==e||"hd1440"==e||"hd2160"==e?u.ytbQualityButton_do.showDisabledState():u.ytbQualityButton_do.hideDisabledState();for(var t=0;t<u.totalYtbButtons;t++)btn=u.ytbButtons_ar[t],btn.label_str==e?(FWDAnimation.killTweensOf(u.ytbQualityArrow_do),0!=btn.y&&(u.ytbQualityArrow_do.setY(btn.y+Math.round((btn.h-u.ytbQualityArrow_do.h)/2)),u.ytbDisabledButton_do=btn),btn.disable()):btn.enable()},this.setYtbQualityArrowPosition=function(e){var t=0;t=e?e.y+Math.round((e.h-u.ytbQualityArrow_do.h)/2):u.ytbDisabledButton_do.y+Math.round((u.ytbDisabledButton_do.h-u.ytbQualityArrow_do.h)/2),FWDAnimation.killTweensOf(u.ytbQualityArrow_do),FWDAnimation.to(u.ytbQualityArrow_do,.6,{y:t,delay:.1,ease:Expo.easeInOut})},this.showQualityButtons=function(e){if(!u.areYtbQualityButtonsShowed_bl&&u.showYoutubeQualityButton_bl){u.hideSubtitleButtons(),u.areYtbQualityButtonsShowed_bl=!0;var t=parseInt(u.ytbQualityButton_do.x+parseInt(u.ytbQualityButton_do.w-u.ytbButtonsHolder_do.w)/2),o=parseInt(d.stageHeight-u.stageHeight-u.ytbButtonsHolder_do.h-6);window.hasPointerEvent_bl?window.addEventListener("pointerdown",u.hideQualityButtonsHandler):(u.isMobile_bl||window.addEventListener("mousedown",u.hideQualityButtonsHandler),window.addEventListener("touchstart",u.hideQualityButtonsHandler)),u.ytbButtonsHolder_do.setX(t),e?FWDAnimation.to(u.ytbButtonsHolder_do,.6,{y:o,ease:Expo.easeInOut}):(FWDAnimation.killTweensOf(u.ytbButtonsHolder_do),u.ytbButtonsHolder_do.setY(o))}},this.hideQualityButtons=function(e){u.areYtbQualityButtonsShowed_bl&&u.showYoutubeQualityButton_bl&&(u.areYtbQualityButtonsShowed_bl=!1,e?FWDAnimation.to(u.ytbButtonsHolder_do,.6,{y:d.stageHeight,ease:Expo.easeInOut}):(FWDAnimation.killTweensOf(u.ytbButtonsHolder_do),u.ytbButtonsHolder_do.setY(d.stageHeight)),window.hasPointerEvent_bl?window.removeEventListener("pointerdown",u.hideQualityButtonsHandler):(u.isMobile_bl||window.removeEventListener("mousedown",u.hideQualityButtonsHandler),window.removeEventListener("touchstart",u.hideQualityButtonsHandler)))},this.setupYoutubeQualityButton=function(){u.useVectorIcons_bl?(FWDEVPSimpleButton.setPrototype(),u.ytbQualityButton_do=new FWDEVPSimpleButton(void 0,void 0,void 0,!0,void 0,void 0,void 0,"<span class='icomoon icon-settings'></span>",!0,"EVPMainButtonsNormalState","EVPMainButtonsSelectedState")):(FWDEVPSimpleButton.setPrototype(),u.ytbQualityButton_do=new FWDEVPSimpleButton(u.ytbQualityN_img,a.ytbQualitySPath_str,a.ytbQualityDPath_str,!0,u.useHEXColorsForSkin_bl,u.normalButtonsColor_str,u.selectedButtonsColor_str)),u.ytbQualityButton_do.setX(-300),u.ytbQualityButton_do.setY(parseInt((u.stageHeight-u.ytbQualityButton_do.h)/2)),u.ytbQualityButton_do.addListener(FWDEVPSimpleButton.MOUSE_UP,u.ytbQualityMouseUpHandler),u.mainHolder_do.addChild(u.ytbQualityButton_do)},this.ytbQualityMouseUpHandler=function(){u.areYtbQualityButtonsShowed_bl?u.hideQualityButtons(!0):u.showQualityButtons(!0)},this.hideQualityButtonsHandler=function(e){var t=FWDEVPUtils.getViewportMouseCoordinates(e);FWDEVPUtils.hitTest(u.ytbQualityButton_do.screen,t.screenX,t.screenY)||FWDEVPUtils.hitTest(u.ytbButtonsHolder_do.screen,t.screenX,t.screenY)||u.hideQualityButtons(!0)},this.addYtbQualityButton=function(){!u.hasYtbButton_bl&&u.showYoutubeQualityButton_bl&&(u.hasYtbButton_bl=!0,u.shareButton_do&&-1!=FWDEVPUtils.indexOfArray(u.buttons_ar,u.shareButton_do)?u.buttons_ar.splice(FWDEVPUtils.indexOfArray(u.buttons_ar,u.shareButton_do),0,u.ytbQualityButton_do):u.fullScreenButton_do&&-1!=FWDEVPUtils.indexOfArray(u.buttons_ar,u.fullScreenButton_do)?u.buttons_ar.splice(FWDEVPUtils.indexOfArray(u.buttons_ar,u.fullScreenButton_do),0,u.ytbQualityButton_do):u.buttons_ar.splice(u.buttons_ar.length,0,u.ytbQualityButton_do),u.ytbQualityButton_do.disable(),u.ytbQualityButton_do.rotation=0,u.ytbQualityButton_do.setRotation(u.ytbQualityButton_do.rotation),u.ytbQualityButton_do.hideDisabledState(),u.hideQualityButtons(!1),u.positionButtons())},this.removeYtbQualityButton=function(){u.hasYtbButton_bl&&u.showYoutubeQualityButton_bl&&(u.hasYtbButton_bl=!1,u.buttons_ar.splice(FWDEVPUtils.indexOfArray(u.buttons_ar,u.ytbQualityButton_do),1),u.ytbQualityButton_do.setX(-300),u.ytbQualityButton_do.hideDisabledState(),u.hideQualityButtons(!1),u.positionButtons())},this.updateQuality=function(e,t){u.hasYtbButton_bl&&u.showYoutubeQualityButton_bl&&!d.isAdd_bl&&(u.positionAndResizeYtbQualityButtons(e),setTimeout(function(){u.disableQualityButtons(t)},65))},this.showSubtitleButton_bl,this.subtitlesSource_ar=a.subtitles_ar,this.subtitleButtons_ar=[],this.totalSubttleButtons=10,this.setupSubtitleButton=function(){u.useVectorIcons_bl?(FWDEVPComplexButton.setPrototype(),u.subtitleButton_do=new FWDEVPComplexButton(void 0,void 0,void 0,void 0,!0,void 0,void 0,void 0,"<span class='icomoon icon-CC'></span>","<span class='icomoon icon-CC-off'></span>","EVPMainButtonsNormalState","EVPMainButtonsSelectedState")):(FWDEVPComplexButton.setPrototype(),u.subtitleButton_do=new FWDEVPComplexButton(a.showSubtitleNPath_img,a.showSubtitleSPath_str,a.hideSubtitleNPath_img,a.hideSubtitleSPath_str,!0,u.useHEXColorsForSkin_bl,u.normalButtonsColor_str,u.selectedButtonsColor_str)),u.subtitleButton_do.setX(-1e4),u.buttons_ar.push(u.subtitleButton_do),u.subtitleButton_do.setY(parseInt((u.stageHeight-u.subtitleButton_do.h)/2)),u.subtitleButton_do.addListener(FWDEVPComplexButton.MOUSE_UP,u.subtitleButtonMouseUpHandler),u.mainHolder_do.addChild(u.subtitleButton_do),u.setupSubtitleButtons(),-1!=location.protocol.indexOf("file:")&&u.disableSubtitleButton(),d.subtitle_do.showSubtitileByDefault_bl&&u.subtitleButton_do.setButtonState(0)},this.subtitleButtonMouseUpHandler=function(){u.areSubtitleButtonsShowed_bl?u.hideSubtitleButtons(!0):u.showSubtitleButtons(!0)},this.disableSubtitleButton=function(){u.subtitleButton_do&&u.subtitleButton_do.disable()},this.enableSubtitleButton=function(){u.subtitleButton_do&&u.subtitleButton_do.enable()},this.updateSubtitleButtons=function(e,t){u.subtitleButton_do&&(u.subtitleButton_do.enable(),u.positionAndResizeSubtitleButtons(e),setTimeout(function(){t=u.subtitlesSource_ar.length-1-t,u.disableSubtitleButtons(t)},65),u.prevSubtitleIndex=t)},this.setupSubtitleButtons=function(){var e,t;(u.subtitlesButtonsHolder_do=new FWDEVPDisplayObject("div"),u.subtitlesButtonsHolder_do.setOverflow("visible"),u.repeatBackground_bl)?u.subtitlesButtonsHolder_do.getStyle().background="url('"+u.controllerBkPath_str+"')":(u.subtitlesButtonsBackground_do=new FWDEVPDisplayObject("img"),(e=new Image).src=u.controllerBkPath_str,u.subtitlesButtonsBackground_do.setScreen(e),u.subtitlesButtonsHolder_do.addChild(u.subtitlesButtonsBackground_do));u.subtitlesButtonsHolder_do.setX(300),u.subtitlesButtonsHolder_do.setY(-300),d.main_do.addChild(u.subtitlesButtonsHolder_do,0),(e=new Image).src=u.ytbQualityButtonPointerPath_str,u.subtitlesPonter_do=new FWDEVPDisplayObject("img"),u.subtitlesPonter_do.setScreen(e),u.subtitlesPonter_do.setWidth(u.pointerWidth),u.subtitlesPonter_do.setHeight(u.pointerHeight),u.subtitlesButtonsHolder_do.addChild(u.subtitlesPonter_do),(e=new Image).src=u.youtubeQualityArrowPath_str,u.subtitleQualityArrow_do=new FWDEVPDisplayObject("img"),u.subtitleQualityArrow_do.setScreen(e),u.subtitleQualityArrow_do.setX(7),u.subtitleQualityArrow_do.setWidth(5),u.subtitleQualityArrow_do.setHeight(7),u.subtitlesButtonsHolder_do.addChild(u.subtitleQualityArrow_do);for(var o=0;o<u.totalSubttleButtons;o++)FWDEVPYTBQButton.setPrototype(),(t=new FWDEVPYTBQButton("no source",u.youtubeQualityButtonNormalColor_str,u.youtubeQualityButtonSelectedColor_str,a.hdPath_str,o)).addListener(FWDEVPYTBQButton.MOUSE_OVER,u.sbtQualityOver),t.addListener(FWDEVPYTBQButton.MOUSE_OUT,u.sbtQualityOut),t.addListener(FWDEVPYTBQButton.CLICK,u.sbtQualityClick),u.subtitleButtons_ar[o]=t,u.subtitlesButtonsHolder_do.addChild(t);u.hideSubtitleButtons(!1)},this.sbtQualityOver=function(e){u.setSubtitleArrowPosition(e.target)},this.sbtQualityOut=function(e){u.setSubtitleArrowPosition(void 0)},this.sbtQualityClick=function(e){u.startAtSubtitle=e.id,u.disableSubtitleButtons(u.startAtSubtitle),u.hideSubtitleButtons(!0),u.dispatchEvent(s.CHANGE_SUBTITLE,{id:u.subtitlesSource_ar.length-1-e.id})},this.positionAndResizeSubtitleButtons=function(e){if(e){var t=e.length;if(u.prevSubtitlesQualityButtonsLength!=t){var o;this.prevSubtitlesQualityButtonsLength=t;for(var s=5,i=0,n=0,l=0;l<t;l++)(o=u.subtitleButtons_ar[l]).updateText(e[l].label),o.setFinalSize();setTimeout(function(){for(var e=0;e<u.totalSubttleButtons;e++)o=u.subtitleButtons_ar[e],e<t?(0!=o.x&&o.setX(0),o.w>i&&(i=o.w),o.setY(s),s+=o.h):-3e3!=o.x&&o.setX(-3e3);for(e=0;e<u.totalSubttleButtons;e++)(o=u.subtitleButtons_ar[e]).dumy_do.w<i&&(o.setWidth(i),o.dumy_do.setWidth(i));n=s+5,u.subtitlesPonter_do.setX(parseInt((i-u.subtitlesPonter_do.w)/2)),u.subtitlesPonter_do.setY(n),u.subtitlesButtonsBackground_do&&(u.subtitlesButtonsBackground_do.setWidth(i),u.subtitlesButtonsBackground_do.setHeight(n)),u.subtitlesButtonsHolder_do.setWidth(i),u.subtitlesButtonsHolder_do.setHeight(n)},60)}}},this.disableSubtitleButtons=function(e){for(var t=0;t<u.totalSubttleButtons;t++)btn=u.subtitleButtons_ar[t],t==e?(FWDAnimation.killTweensOf(u.subtitleQualityArrow_do),u.subtitleQualityArrow_do.setY(btn.y+parseInt((btn.h-u.subtitleQualityArrow_do.h)/2)+1),btn.disable(),u.subtitleDisabledButton_do=btn):btn.enable();u.subtitlesSource_ar.length-1-e==0?u.subtitleButton_do.setButtonState(0):u.subtitleButton_do.setButtonState(1)},this.setSubtitleArrowPosition=function(e){var t=0;t=e?e.y+parseInt((e.h-u.subtitleQualityArrow_do.h)/2):u.subtitleDisabledButton_do.y+parseInt((u.subtitleDisabledButton_do.h-u.subtitleQualityArrow_do.h)/2),FWDAnimation.killTweensOf(u.subtitleQualityArrow_do),FWDAnimation.to(u.subtitleQualityArrow_do,.6,{y:t,delay:.1,ease:Expo.easeInOut})},this.showSubtitleButtons=function(e){if(!u.areSubtitleButtonsShowed_bl){u.hideQualityButtons(),u.areSubtitleButtonsShowed_bl=!0;var t=parseInt(u.subtitleButton_do.x+parseInt(u.subtitleButton_do.w-u.subtitlesButtonsHolder_do.w)/2),o=parseInt(d.stageHeight-u.stageHeight-u.subtitlesButtonsHolder_do.h-6);u.hasPointerEvent_bl?window.addEventListener("pointerdown",u.hideSubtitlesButtonsHandler):(u.isMobile_bl||window.addEventListener("mousedown",u.hideSubtitlesButtonsHandler),window.addEventListener("touchstart",u.hideSubtitlesButtonsHandler)),u.subtitlesButtonsHolder_do.setX(t),e?FWDAnimation.to(u.subtitlesButtonsHolder_do,.6,{y:o,ease:Expo.easeInOut}):(FWDAnimation.killTweensOf(u.subtitlesButtonsHolder_do),u.subtitlesButtonsHolder_do.setY(o))}},this.hideSubtitleButtons=function(e){u.areSubtitleButtonsShowed_bl&&u.showSubtitleButton_bl&&(u.areSubtitleButtonsShowed_bl=!1,e?FWDAnimation.to(u.subtitlesButtonsHolder_do,.6,{y:d.stageHeight,ease:Expo.easeInOut}):(FWDAnimation.killTweensOf(u.subtitlesButtonsHolder_do),u.subtitlesButtonsHolder_do.setY(d.stageHeight)),u.hasPointerEvent_bl?window.removeEventListener("pointerdown",u.hideSubtitlesButtonsHandler):(u.isMobile_bl||window.removeEventListener("mousedown",u.hideSubtitlesButtonsHandler),window.removeEventListener("touchstart",u.hideSubtitlesButtonsHandler)))},this.hideSubtitlesButtonsHandler=function(e){var t=FWDEVPUtils.getViewportMouseCoordinates(e);FWDEVPUtils.hitTest(u.subtitleButton_do.screen,t.screenX,t.screenY)||FWDEVPUtils.hitTest(u.subtitlesButtonsHolder_do.screen,t.screenX,t.screenY)||u.hideSubtitleButtons(!0)},this.setupRewindButton=function(){u.useVectorIcons_bl?(FWDEVPSimpleButton.setPrototype(),u.rewindButton_do=new FWDEVPSimpleButton(void 0,void 0,void 0,!0,void 0,void 0,void 0,"<span class='icomoon icon-10'></span>",void 0,"EVPMainButtonsNormalState","EVPMainButtonsSelectedState")):(FWDEVPSimpleButton.setPrototype(),u.rewindButton_do=new FWDEVPSimpleButton(a.rewindN_img,a.rewindSPath_str,void 0,!0,u.useHEXColorsForSkin_bl,u.normalButtonsColor_str,u.selectedButtonsColor_str)),u.buttons_ar.push(u.rewindButton_do),u.rewindButton_do.setY(parseInt((u.stageHeight-u.rewindButton_do.h)/2)),u.rewindButton_do.addListener(FWDEVPSimpleButton.MOUSE_UP,u.rewindButtonMouseUpHandler),u.mainHolder_do.addChild(u.rewindButton_do)},this.rewindButtonMouseUpHandler=function(){u.dispatchEvent(s.REWIND)},this.setupShareButton=function(){u.useVectorIcons_bl?(FWDEVPSimpleButton.setPrototype(),u.shareButton_do=new FWDEVPSimpleButton(void 0,void 0,void 0,!0,void 0,void 0,void 0,"<span class='icomoon icon-share'></span>",void 0,"EVPMainButtonsNormalState","EVPMainButtonsSelectedState")):(FWDEVPSimpleButton.setPrototype(),u.shareButton_do=new FWDEVPSimpleButton(u.shareN_img,a.shareSPath_str,void 0,!0,u.useHEXColorsForSkin_bl,u.normalButtonsColor_str,u.selectedButtonsColor_str)),u.buttons_ar.push(u.shareButton_do),u.shareButton_do.setY(parseInt((u.stageHeight-u.shareButton_do.h)/2)),u.shareButton_do.addListener(FWDEVPSimpleButton.MOUSE_UP,u.facebookButtonMouseUpHandler),u.mainHolder_do.addChild(u.shareButton_do)},this.facebookButtonMouseUpHandler=function(){u.dispatchEvent(s.SHARE)},this.setupDownloadButton=function(){u.useVectorIcons_bl?(FWDEVPSimpleButton.setPrototype(),u.downloadButton_do=new FWDEVPSimpleButton(void 0,void 0,void 0,!0,void 0,void 0,void 0,"<span class='icomoon icon-download'></span>",void 0,"EVPMainButtonsNormalState","EVPMainButtonsSelectedState")):(FWDEVPSimpleButton.setPrototype(),u.downloadButton_do=new FWDEVPSimpleButton(a.downloadN_img,a.downloadSPath_str,void 0,!0,u.useHEXColorsForSkin_bl,u.normalButtonsColor_str,u.selectedButtonsColor_str)),u.downloadButton_do.addListener(FWDEVPSimpleButton.MOUSE_UP,u.downloadButtonOnMouseUpHandler),u.buttons_ar.push(u.downloadButton_do),u.mainHolder_do.addChild(u.downloadButton_do)},this.downloadButtonShowToolTipHandler=function(e){},this.downloadButtonOnMouseUpHandler=function(){u.dispatchEvent(s.DOWNLOAD_VIDEO)},this.setupFullscreenButton=function(){u.useVectorIcons_bl?(FWDEVPComplexButton.setPrototype(),u.fullScreenButton_do=new FWDEVPComplexButton(void 0,void 0,void 0,void 0,!0,void 0,void 0,void 0,"<span class='icomoon icon-fullscreen'></span>","<span class='icomoon icon-normalscreen'></span>","EVPMainButtonsNormalState","EVPMainButtonsSelectedState")):(FWDEVPComplexButton.setPrototype(),u.fullScreenButton_do=new FWDEVPComplexButton(u.fullScreenN_img,a.fullScreenSPath_str,u.normalScreenN_img,a.normalScreenSPath_str,!0,u.useHEXColorsForSkin_bl,u.normalButtonsColor_str,u.selectedButtonsColor_str)),u.buttons_ar.push(u.fullScreenButton_do),u.fullScreenButton_do.setY(parseInt((u.stageHeight-u.fullScreenButton_do.buttonHeight)/2)),u.fullScreenButton_do.addListener(FWDEVPComplexButton.MOUSE_UP,u.fullScreenButtonMouseUpHandler),u.mainHolder_do.addChild(u.fullScreenButton_do)},this.showFullScreenButton=function(){u.fullScreenButton_do&&u.fullScreenButton_do.setButtonState(1)},this.showNormalScreenButton=function(){u.fullScreenButton_do&&u.fullScreenButton_do.setButtonState(0)},this.setNormalStateToFullScreenButton=function(){u.fullScreenButton_do&&(u.fullScreenButton_do.setNormalState(!0),u.hideQualityButtons(!1))},this.fullScreenButtonMouseUpHandler=function(){1==u.fullScreenButton_do.currentState?u.dispatchEvent(s.FULL_SCREEN):u.dispatchEvent(s.NORMAL_SCREEN)},this.setupTime=function(){u.time_do=new FWDEVPDisplayObject("div"),u.time_do.hasTransform3d_bl=!1,u.time_do.hasTransform2d_bl=!1,u.time_do.setBackfaceVisibility(),u.time_do.getStyle().fontFamily="Arial",u.time_do.getStyle().fontSize="12px",u.time_do.getStyle().whiteSpace="nowrap",u.time_do.getStyle().textAlign="center",u.time_do.getStyle().color=u.timeColor_str,u.time_do.getStyle().fontSmoothing="antialiased",u.time_do.getStyle().webkitFontSmoothing="antialiased",u.time_do.getStyle().textRendering="optimizeLegibility",u.mainHolder_do.addChild(u.time_do),u.updateTime("00:00/00:00"),u.buttons_ar.push(u.time_do)},this.updateTime=function(e){u.time_do&&(u.isLive&&(e=e.substr(0,e.indexOf("/"))),u.time_do.setInnerHTML(e),u.lastTimeLength!=e.length&&(u.time_do.w=u.time_do.getWidth(),u.positionButtons(),setTimeout(function(){u.time_do.w=u.time_do.getWidth(),u.time_do.h=u.time_do.getHeight(),u.positionButtons()},50),u.lastTimeLength=e.length))},this.setupVolumeButton=function(){u.useVectorIcons_bl?(FWDEVPVolumeButton.setPrototype(),u.volumeButton_do=new FWDEVPVolumeButton(void 0,void 0,void 0,void 0,void 0,void 0,"<span class='icomoon icon-sound'></span>","<span class='icomoon icon-sound-off'></span>","EVPMainButtonsNormalState","EVPMainButtonsSelectedState")):(FWDEVPVolumeButton.setPrototype(),u.volumeButton_do=new FWDEVPVolumeButton(u.volumeN_img,a.volumeSPath_str,a.volumeDPath_str,u.useHEXColorsForSkin_bl,u.normalButtonsColor_str,u.selectedButtonsColor_str)),u.volumeButton_do.addListener(FWDEVPVolumeButton.MOUSE_UP,u.volumeOnMouseUpHandler),u.volumeButton_do.setX(-1e4),u.volumeButton_do.setY(parseInt((u.stageHeight-u.volumeButton_do.h)/2)),u.buttons_ar.push(u.volumeButton_do),u.mainHolder_do.addChild(u.volumeButton_do),u.allowToChangeVolume_bl||u.volumeButton_do.disable()},this.volumeOnMouseUpHandler=function(){var e=u.lastVolume;u.isMute_bl?(e=u.lastVolume,u.isMute_bl=!1):(e=0,u.isMute_bl=!0),u.updateVolume(e)},this.setupVolumeScrubber=function(){u.volumeScrubber_do=new FWDEVPDisplayObject("div"),u.volumeScrubber_do.setHeight(u.scrubbersHeight),u.volumeScrubberBkLeft_do=new FWDEVPDisplayObject("img"),u.volumeScrubberBkLeft_do.setScreen(u.volumeScrubberBkLeft_img),u.volumeScrubberBkRight_do=new FWDEVPDisplayObject("img"),u.volumeScrubberBkRight_do.setScreen(u.volumeScrubberBkRight_img),(new Image).src=u.volumeScrubberBkMiddlePath_str,i,u.volumeScrubberBkMiddle_do=new FWDEVPDisplayObject("div"),u.volumeScrubberBkMiddle_do.getStyle().background="url('"+u.volumeScrubberBkMiddlePath_str+"') repeat-x",u.volumeScrubberBkMiddle_do.setHeight(u.scrubbersHeight),u.volumeScrubberBkMiddle_do.setX(u.scrubbersBkLeftAndRightWidth),u.volumeScrubberDrag_do=new FWDEVPDisplayObject("div"),u.volumeScrubberDrag_do.setHeight(u.scrubbersHeight),u.useHEXColorsForSkin_bl?(u.volumeScrubberDragLeft_do=new FWDEVPDisplayObject("div"),u.volumeScrubberDragLeft_do.setWidth(u.volumeScrubberDragLeft_img.width),u.volumeScrubberDragLeft_do.setHeight(u.volumeScrubberDragLeft_img.height),u.volumeScrubberDragLeft_canvas=FWDEVPUtils.getCanvasWithModifiedColor(u.volumeScrubberDragLeft_img,u.normalButtonsColor_str).canvas,u.volumeScrubberDragLeft_do.screen.appendChild(u.volumeScrubberDragLeft_canvas)):(u.volumeScrubberDragLeft_do=new FWDEVPDisplayObject("img"),u.volumeScrubberDragLeft_do.setScreen(u.volumeScrubberDragLeft_img)),u.useHEXColorsForSkin_bl||(u.volumeScrubberDragMiddle_do=new FWDEVPDisplayObject("div"),u.volumeScrubberDragMiddle_do.getStyle().background="url('"+u.volumeScrubberDragMiddlePath_str+"') repeat-x"),u.volumeScrubberDragMiddle_do.setHeight(u.scrubbersHeight),u.volumeScrubberDragMiddle_do.setX(u.mainScrubberDragLeftWidth),u.volumeScrubberBarLine_do=new FWDEVPDisplayObject("img"),u.volumeScrubberBarLine_do.setScreen(u.volumeScrubberLine_img),u.volumeScrubberBarLine_do.setAlpha(0),u.volumeScrubberBarLine_do.hasTransform3d_bl=!1,u.volumeScrubberBarLine_do.hasTransform2d_bl=!1,u.volumeScrubber_do.setWidth(u.volumeScrubberWidth),u.volumeScrubberBkMiddle_do.setWidth(u.volumeScrubberWidth-2*u.scrubbersBkLeftAndRightWidth),u.volumeScrubberBkRight_do.setX(u.volumeScrubberWidth-u.scrubbersBkLeftAndRightWidth),u.volumeScrubberDragMiddle_do.setWidth(u.volumeScrubberWidth-u.scrubbersBkLeftAndRightWidth-u.scrubbersOffsetWidth),u.volumeScrubber_do.addChild(u.volumeScrubberBkLeft_do),u.volumeScrubber_do.addChild(u.volumeScrubberBkMiddle_do),u.volumeScrubber_do.addChild(u.volumeScrubberBkRight_do),u.volumeScrubber_do.addChild(u.volumeScrubberBarLine_do),u.volumeScrubberDrag_do.addChild(u.volumeScrubberDragLeft_do),u.volumeScrubberDrag_do.addChild(u.volumeScrubberDragMiddle_do),u.volumeScrubber_do.addChild(u.volumeScrubberDrag_do),u.volumeScrubber_do.addChild(u.volumeScrubberBarLine_do),u.buttons_ar.push(u.volumeScrubber_do),u.mainHolder_do.addChild(u.volumeScrubber_do),u.disableVideoScrubber_bl||(u.hasPointerEvent_bl?(u.volumeScrubber_do.screen.addEventListener("pointerover",u.volumeScrubberOnOverHandler),u.volumeScrubber_do.screen.addEventListener("pointerout",u.volumeScrubberOnOutHandler),u.volumeScrubber_do.screen.addEventListener("pointerdown",u.volumeScrubberOnDownHandler)):u.screen.addEventListener&&(u.isMobile_bl||(u.volumeScrubber_do.screen.addEventListener("mouseover",u.volumeScrubberOnOverHandler),u.volumeScrubber_do.screen.addEventListener("mouseout",u.volumeScrubberOnOutHandler),u.volumeScrubber_do.screen.addEventListener("mousedown",u.volumeScrubberOnDownHandler)),u.volumeScrubber_do.screen.addEventListener("touchstart",u.volumeScrubberOnDownHandler))),u.enableVolumeScrubber(),u.updateVolumeScrubber(u.volume)},this.volumeScrubberOnOverHandler=function(e){u.isVolumeScrubberDisabled_bl},this.volumeScrubberOnOutHandler=function(e){u.isVolumeScrubberDisabled_bl},this.volumeScrubberOnDownHandler=function(e){if(!u.isVolumeScrubberDisabled_bl&&2!=e.button){e.preventDefault&&e.preventDefault();var t=FWDEVPUtils.getViewportMouseCoordinates(e).screenX-u.volumeScrubber_do.getGlobalX();t<0?t=0:t>u.volumeScrubberWidth-u.scrubbersOffsetWidth&&(t=u.volumeScrubberWidth-u.scrubbersOffsetWidth);var o=t/u.volumeScrubberWidth;u.disable_do&&u.addChild(u.disable_do),u.lastVolume=o,u.updateVolume(o),u.hasPointerEvent_bl?(window.addEventListener("pointermove",u.volumeScrubberMoveHandler),window.addEventListener("pointerup",u.volumeScrubberEndHandler)):(window.addEventListener("mousemove",u.volumeScrubberMoveHandler),window.addEventListener("mouseup",u.volumeScrubberEndHandler),window.addEventListener("touchmove",u.volumeScrubberMoveHandler),window.addEventListener("touchend",u.volumeScrubberEndHandler))}},this.volumeScrubberMoveHandler=function(e){if(!u.isVolumeScrubberDisabled_bl){e.preventDefault&&e.preventDefault();var t=FWDEVPUtils.getViewportMouseCoordinates(e).screenX-u.volumeScrubber_do.getGlobalX();t<0?t=0:t>u.volumeScrubberWidth-u.scrubbersOffsetWidth&&(t=u.volumeScrubberWidth-u.scrubbersOffsetWidth);var o=t/u.volumeScrubberWidth;u.lastVolume=o,u.updateVolume(o)}},this.volumeScrubberEndHandler=function(){u.disable_do&&u.contains(u.disable_do)&&u.removeChild(u.disable_do),u.hasPointerEvent_bl?(window.removeEventListener("pointermove",u.volumeScrubberMoveHandler),window.removeEventListener("pointerup",u.volumeScrubberEndHandler)):(window.removeEventListener("mousemove",u.volumeScrubberMoveHandler),window.removeEventListener("mouseup",u.volumeScrubberEndHandler),window.removeEventListener("touchmove",u.volumeScrubberMoveHandler),window.removeEventListener("touchend",u.volumeScrubberEndHandler))},this.disableVolumeScrubber=function(){u.isVolumeScrubberDisabled_bl=!0,u.volumeScrubber_do.setButtonMode(!1),u.volumeScrubberEndHandler()},this.enableVolumeScrubber=function(){u.isVolumeScrubberDisabled_bl=!1,u.volumeScrubber_do.setButtonMode(!0)},this.updateVolumeScrubber=function(e){var t=parseInt(e*u.volumeScrubberWidth);u.volumeScrubberDrag_do.setWidth(t),t<1&&u.isVolumeScrubberLineVisible_bl?(u.isVolumeScrubberLineVisible_bl=!1,FWDAnimation.to(u.volumeScrubberBarLine_do,.5,{alpha:0})):1<t&&!u.isVolumeScrubberLineVisible_bl&&(u.isVolumeScrubberLineVisible_bl=!0,FWDAnimation.to(u.volumeScrubberBarLine_do,.5,{alpha:1})),t>u.volumeScrubberWidth-u.scrubbersOffsetWidth&&(t=u.volumeScrubberWidth-u.scrubbersOffsetWidth),FWDAnimation.to(u.volumeScrubberBarLine_do,.8,{x:t+1,ease:Expo.easeOut})},this.updateVolume=function(e,t){u.showVolumeScrubber_bl&&(u.volume=e,u.volume<=1e-6?(u.isMute_bl=!0,u.volume=0):1<=u.voume?(u.isMute_bl=!1,u.volume=1):u.isMute_bl=!1,0==u.volume?u.volumeButton_do&&u.volumeButton_do.setDisabledState():u.volumeButton_do&&u.volumeButton_do.setEnabledState(),u.volumeScrubberBarLine_do&&u.updateVolumeScrubber(u.volume),t||u.dispatchEvent(s.CHANGE_VOLUME,{percent:u.volume}))},this.show=function(e){u.isShowed_bl||(u.isShowed_bl=!0,e?FWDAnimation.to(u.mainHolder_do,.8,{y:0,ease:Expo.easeInOut}):(FWDAnimation.killTweensOf(u.mainHolder_do),u.mainHolder_do.setY(0)),setTimeout(u.positionButtons,200))},this.hide=function(e,t){if(u.isShowed_bl||t){u.isShowed_bl=!1;var o=0;t&&(o=u.mainScrubberOffestTop),u.atb&&u.atb.isShowed_bl&&(o+=u.h+1),e?FWDAnimation.to(u.mainHolder_do,.8,{y:u.stageHeight+o,ease:Expo.easeInOut}):(FWDAnimation.killTweensOf(u.mainHolder_do),u.mainHolder_do.setY(u.stageHeight+o)),u.hideQualityButtons(!0),u.hidePlaybackRateButtons(!0),u.hideSubtitleButtons(!0)}},this.updateHexColorForScrubber=function(e){u.mainScrubberDragLeft_do.screen.src=e?(u.mainScrubberDragMiddle_do.getStyle().background="url('"+u.mainScrubberDragMiddleAddPath_str+"') repeat-x",a.mainScrubberDragLeftAddPath_str):(u.mainScrubberDragMiddle_do.getStyle().background="url('"+u.mainScrubberDragMiddlePath_str+"') repeat-x",u.mainScrubberDragLeftSource)},u.updateHEXColors=function(e,t){u.normalColor_str=e,u.selectedColor_str=t,FWDEVPUtils.changeCanvasHEXColor(u.mainScrubberDragLeft_img,u.mainScrubberDragLeft_canvas,e);try{FWDEVPUtils.changeCanvasHEXColor(u.volumeScrubberDragLeft_img,u.volumeScrubberDragLeft_canvas,e)}catch(e){}var o=FWDEVPUtils.changeCanvasHEXColor(u.mainScrubberMiddleImage,u.mainSCrubberMiddleCanvas,e,!0);u.mainScrubberDragMiddle_do.getStyle().background="url('"+o.src+"') repeat-x";try{u.volumeScrubberDragMiddle_do&&(u.volumeScrubberDragMiddle_do.getStyle().background="url('"+o.src+"') repeat-x")}catch(e){}if(u.playPauseButton_do.updateHEXColors(e,t),u.playbackRateButton_do&&u.playbackRateButton_do.updateHEXColors(e,t),u.rewindButton_do&&u.rewindButton_do.updateHEXColors(e,t),u.subtitleButton_do&&u.subtitleButton_do.updateHEXColors(e,t),u.volumeButton_do&&u.volumeButton_do.updateHEXColors(e,t),u.ytbQualityButton_do&&u.ytbQualityButton_do.updateHEXColors(e,t),u.shareButton_do&&u.shareButton_do.updateHEXColors(e,t),u.embedButton_do&&u.embedButton_do.updateHEXColors(e,t),u.fullScreenButton_do&&u.fullScreenButton_do.updateHEXColors(e,t),u.time_do&&(u.time_do.getStyle().color=e),u.ytbButtons_ar)for(var s=0;s<u.totalYtbButtons;s++){(i=u.ytbButtons_ar[s])&&(i.normalColor_str=e,i.selectedColor_str=t,i.isSelected_bl?i.setSelectedState():i.setNormalState())}if(u.playbackRateButtons_ar)for(s=0;s<u.playbackRateButtons_ar.length;s++){(i=u.playbackRateButtons_ar[s])&&(i.normalColor_str=e,i.selectedColor_str=t,i.isSelected_bl?i.setSelectedState():i.setNormalState())}if(u.subtitleButtons_ar)for(s=0;s<u.totalSubttleButtons;s++){var i;(i=u.subtitleButtons_ar[s])&&(i.normalColor_str=e,i.selectedColor_str=t,i.isSelected_bl?i.setSelectedState():i.setNormalState())}},this.init()};s.setPrototype=function(){s.prototype=new FWDEVPDisplayObject("div")},s.REWIND="rewind",s.DOWNLOAD_VIDEO="downloadVideo",s.SHOW_SUBTITLE="showSubtitle",s.HIDE_SUBTITLE="hideSubtitle",s.SHARE="share",s.FULL_SCREEN="fullScreen",s.NORMAL_SCREEN="normalScreen",s.PLAY="play",s.PAUSE="pause",s.START_TO_SCRUB="startToScrub",s.SCRUB="scrub",s.STOP_TO_SCRUB="stopToScrub",s.CHANGE_VOLUME="changeVolume",s.CHANGE_YOUTUBE_QUALITY="changeYoutubeQuality",s.SHOW_EMBED_WINDOW="showEmbedWindow",s.CHANGE_SUBTITLE="changeSubtitle",s.CHANGE_PLAYBACK_RATES="changePlaybackRates",s.prototype=null,window.FWDEVPController=s}(window),function(p){var b=function(e,t,a){var f=this;b.prototype;this.skipIconPath_img=null,this.mainPreloader_img=null,this.bkLeft_img=null,this.bkMiddle_img=null,this.bkRight_img=null,this.playN_img=null,this.pauseN_img=null,this.mainScrubberBkLeft_img=null,this.mainScrubberBkRight_img=null,this.mainScrubberDragLeft_img=null,this.mainScrubberLine_img=null,this.volumeScrubberBkLeft_img=null,this.volumeScrubberBkRight_img=null,this.volumeScrubberDragLeft_img=null,this.volumeScrubberLine_img=null,this.volumeN_img=null,this.progressLeft_img=null,this.largePlayN_img=null,this.fullScreenN_img=null,this.ytbQualityN_img=null,this.ytbQualityD_img=null,this.shareN_img=null,this.normalScreenN_img=null,this.embedN_img=null,this.embedColoseN_img=null,this.props_obj=e,this.skinPaths_ar=[],this.images_ar=[],this.skinPath_str=null,this.flashPath_str=null,this.flashCopyToCBPath_str=null,this.mainFolderPath_str=null,this.bkMiddlePath_str=null,this.hdPath_str=null,this.youtubeQualityArrowPath_str=null,this.mainScrubberBkMiddlePath_str=null,this.volumeScrubberBkMiddlePath_str=null,this.mainScrubberDragMiddlePath_str=null,this.volumeScrubberDragMiddlePath_str=null,this.timeColor_str=null,this.progressMiddlePath_str=null,this.facebookAppId_str=null,this.ytbQualityButtonPointerPath_str=null,this.youtubeQualityButtonNormalColor_str=null,this.youtubeQualityButtonSelectedColor_str=null,this.controllerBkPath_str=null,this.logoPosition_str=null,this.logoPath_str=null,this.shareAndEmbedTextColor_str=null,this.inputBackgroundColor_str=null,this.borderColor_str=null,this.inputColor_str=null,this.secondaryLabelsColor_str=null,this.mainLabelsColor_str=null,this.embedPathS_str=null,this.embedWindowClosePathS_str=null,this.embedWindowInputBackgroundPath_str=null,this.embedCopyButtonNPath_str=null,this.embedCopyButtonSPath_str=null,this.sendButtonNPath_str=null,this.sendButtonSPath_str=null,this.embedWindowBackground_str=null,this.controllerHeight=0,this.countLoadedSkinImages=0,this.volume=1,this.controllerHideDelay=0,this.startSpaceBetweenButtons=0,this.spaceBetweenButtons=0,this.scrubbersOffsetWidth=0,this.volumeScrubberOffsetRightWidth=0,this.timeOffsetLeftWidth=0,this.timeOffsetTop=0,this.logoMargins=0,this.embedWindowCloseButtonMargins=0,this.loadImageId_to,this.dispatchLoadSkinCompleteWithDelayId_to,this.showEmbedButton_bl,this.showShareButton_bl,this.allowToChangeVolume_bl=!0,this.showContextMenu_bl=!1,this.autoPlay_bl=!1,this.showPoster_bl=!1,this.loop_bl=!1,this.showVolumeScrubber_bl=!1,this.showVolumeButton_bl=!1,this.showControllerWhenVideoIsStopped_bl=!1,this.showLogo_bl=!1,this.hideLogoWithController_bl=!1,this.isMobile_bl=FWDEVPUtils.isMobile,this.hasPointerEvent_bl=FWDEVPUtils.hasPointerEvent,f.init=function(){f.parseProperties()},f.parseProperties=function(){if(f.useHEXColorsForSkin_bl=f.props_obj.useHEXColorsForSkin,f.useHEXColorsForSkin_bl="yes"==f.useHEXColorsForSkin_bl,-1!=location.protocol.indexOf("file:")&&(f.useHEXColorsForSkin_bl=!1),f.mainFolderPath_str=f.props_obj.mainFolderPath,f.mainFolderPath_str)if(f.mainFolderPath_str.lastIndexOf("/")+1!=f.mainFolderPath_str.length&&(f.mainFolderPath_str+="/"),f.skinPath_str=f.props_obj.skinPath,f.skinPath_str){f.skinPath_str.lastIndexOf("/")+1!=f.skinPath_str.length&&(f.skinPath_str+="/"),f.skinPath_str=f.mainFolderPath_str+f.skinPath_str,f.flashPath_str=f.mainFolderPath_str+"flashlsChromeless.swf",f.flashCopyToCBPath_str=f.mainFolderPath_str+"cb.swf",f.sendToAFriendPath_str=f.mainFolderPath_str+"sendMailToAFriend.php",f.videoDownloaderPath_str=f.mainFolderPath_str+"downloader.php",f.mailPath_str=f.mainFolderPath_str+"sendMail.php",f.hlsPath_str=f.mainFolderPath_str+"java/hls.js",f.threeJsPath_str=f.mainFolderPath_str+"java/three.js",f.threeJsControlsPath_str=f.mainFolderPath_str+"java/threeControled.js",f.timeColor_str=f.props_obj.timeColor||"#FF0000",f.privateVideoPassword_str=f.props_obj.privateVideoPassword,f.adsVideoSourcePath_str=f.props_obj.adsVideoSourcePath,f.adsPageToOpenURL_str=f.props_obj.adsPageToOpenURL,f.adsPageToOpenTarget_str=f.props_obj.adsPageToOpenTarget||"_blank",f.adsThumbnailPath_str=f.props_obj.adsThumbnailPath,f.youtubeQualityButtonNormalColor_str=f.props_obj.youtubeQualityButtonNormalColor||"#FF0000",f.youtubeQualityButtonSelectedColor_str=f.props_obj.youtubeQualityButtonSelectedColor||"#FF0000",f.posterBackgroundColor_str=f.props_obj.posterBackgroundColor||"transparent",f.logoPosition_str=f.props_obj.logoPosition||"topleft",f.logoPosition_str=String(f.logoPosition_str).toLowerCase(),test="topleft"==f.logoPosition_str||"topright"==f.logoPosition_str||"bottomleft"==f.logoPosition_str||"bottomright"==f.logoPosition_str,test||(f.logoPosition_str="topleft"),f.adsButtonsPosition_str=f.props_obj.adsButtonsPosition||"left",f.adsButtonsPosition_str=String(f.adsButtonsPosition_str).toLowerCase(),test="left"==f.adsButtonsPosition_str||"right"==f.adsButtonsPosition_str,test||(f.adsButtonsPosition_str="left"),f.rightClickContextMenu_str=f.props_obj.rightClickContextMenu||"developer",test="developer"==f.rightClickContextMenu_str||"disabled"==f.rightClickContextMenu_str||"default"==f.rightClickContextMenu_str,test||(f.rightClickContextMenu_str="developer"),f.logoLink_str=f.props_obj.logoLink||"none",f.skipToVideoButtonText_str=f.props_obj.skipToVideoButtonText||"not defined",f.skipToVideoText_str=f.props_obj.skipToVideoText,f.shareAndEmbedTextColor_str=f.props_obj.shareAndEmbedTextColor||"#FF0000",f.inputBackgroundColor_str=f.props_obj.inputBackgroundColor||"#FF0000",f.borderColor_str=f.props_obj.borderColor||"#FF0000",f.inputColor_str=f.props_obj.inputColor||"#FF0000",f.secondaryLabelsColor_str=f.props_obj.secondaryLabelsColor||"#FF0000",f.mainLabelsColor_str=f.props_obj.mainLabelsColor||"#FF0000",f.adsTextNormalColor=f.props_obj.adsTextNormalColor||"#FF0000",f.adsTextSelectedColor=f.props_obj.adsTextSelectedColor||"#FF0000",f.adsBorderNormalColor_str=f.props_obj.adsBorderNormalColor||"#FF0000",f.adsBorderSelectedColor_str=f.props_obj.adsBorderSelectedColor||"#FF0000",f.normalButtonsColor_str=f.props_obj.normalHEXButtonsColor||"#FFFFFF",f.selectedButtonsColor_str=f.props_obj.selectedHEXButtonsColor||"#999999",f.volume=f.props_obj.volume,null==f.volume&&(f.volume=1),isNaN(f.volume)&&(volume=1),1<f.volume?f.volume=1:f.volume<=0&&(f.volume=0),f.audioVisualizerLinesColor_str=f.props_obj.audioVisualizerLinesColor||"#0099FF",f.audioVisualizerCircleColor_str=f.props_obj.audioVisualizerCircleColor||"#00FF00",f.controllerHeight=f.props_obj.controllerHeight||50,f.startSpaceBetweenButtons=f.props_obj.startSpaceBetweenButtons||0,f.controllerHideDelay=f.props_obj.controllerHideDelay||2,f.controllerHideDelay*=1e3,f.spaceBetweenButtons=f.props_obj.spaceBetweenButtons||0,f.scrubbersOffsetWidth=f.props_obj.scrubbersOffsetWidth||0,f.volumeScrubberOffsetRightWidth=f.props_obj.volumeScrubberOffsetRightWidth||0,f.timeOffsetLeftWidth=f.props_obj.timeOffsetLeftWidth||0,f.timeOffsetRightWidth=f.props_obj.timeOffsetRightWidth||0,f.timeOffsetTop=f.props_obj.timeOffsetTop||0,f.embedWindowCloseButtonMargins=f.props_obj.embedWindowCloseButtonMargins||0,f.logoMargins=f.props_obj.logoMargins||0,f.mainScrubberOffestTop=f.props_obj.mainScrubberOffestTop||0,f.volumeScrubberWidth=f.props_obj.volumeScrubberWidth||10,200<f.volumeScrubberWidth&&(f.volumeScrubberWidth=200),f.timeToHoldAds=4,f.greenScreenTolerance=f.props_obj.greenScreenTolerance||200,f.isMobile_bl&&(f.allowToChangeVolume_bl=!1),f.showContextMenu_bl=f.props_obj.showContextMenu,f.showContextMenu_bl="no"!=f.showContextMenu_bl,f.showDefaultControllerForVimeo_bl=f.props_obj.showDefaultControllerForVimeo,f.showDefaultControllerForVimeo_bl="yes"==f.showDefaultControllerForVimeo_bl,f.showScrubberWhenControllerIsHidden_bl=f.props_obj.showScrubberWhenControllerIsHidden,f.showScrubberWhenControllerIsHidden_bl="no"!=f.showScrubberWhenControllerIsHidden_bl,f.addKeyboardSupport_bl=f.props_obj.addKeyboardSupport,f.addKeyboardSupport_bl="no"!=f.addKeyboardSupport_bl,f.autoPlay_bl=f.props_obj.autoPlay,f.autoPlay_bl="yes"==f.autoPlay_bl,FWDEVPUtils.isMobile&&(f.autoPlay_bl=!1),f.showContextmenu_bl=f.props_obj.showContextmenu,f.showContextmenu_bl="no"!=f.showContextmenu_bl,f.scrubAtTimeAtFirstPlay=f.props_obj.scrubAtTimeAtFirstPlay||"00:00:00",f.scrubAtTimeAtFirstPlay=FWDEVPUtils.getSecondsFromString(f.scrubAtTimeAtFirstPlay),f.loop_bl=f.props_obj.loop,f.loop_bl="yes"==f.loop_bl,f.showSkipButton_bl=!0,f.showLogo_bl=f.props_obj.showLogo,f.showLogo_bl="yes"==f.showLogo_bl,f.showRewindButton_bl=f.props_obj.showRewindButton,f.showRewindButton_bl="yes"==f.showRewindButton_bl,f.openDownloadLinkOnMobile_bl=f.props_obj.openDownloadLinkOnMobile,f.openDownloadLinkOnMobile_bl="yes"==f.openDownloadLinkOnMobile_bl,f.thumbnailsPreview=f.props_obj.thumbnailsPreview||!1,f.thumbnailsPreviewWidth=f.props_obj.thumbnailsPreviewWidth||300,f.thumbnailsPreviewHeight=f.props_obj.thumbnailsPreviewHeight||168,f.thumbnailsPreviewBackgroundColor=f.props_obj.thumbnailsPreviewBackgroundColor||"#000",f.thumbnailsPreviewBorderColor=f.props_obj.thumbnailsPreviewBorderColor||"#333",f.thumbnailsPreviewLabelBackgroundColor=f.props_obj.thumbnailsPreviewLabelBackgroundColor||"#FFF",f.thumbnailsPreviewLabelFontColor=f.props_obj.thumbnailsPreviewLabelFontColor||"#000",f.contextMenuBackgroundColor_str=f.props_obj.contextMenuBackgroundColor||"#000000",f.contextMenuBorderColor_str=f.props_obj.contextMenuBorderColor||"#FF0000",f.contextMenuSpacerColor_str=f.props_obj.contextMenuSpacerColor||"#FF0000",f.contextMenuItemNormalColor_str=f.props_obj.contextMenuItemNormalColor||"#FF0000",f.contextMenuItemSelectedColor_str=f.props_obj.contextMenuItemSelectedColor||"#FF0000",f.contextMenuItemDisabledColor_str=f.props_obj.contextMenuItemDisabledColor||"#FF0000",f.playVideoOnlyWhenLoggedIn_bl=f.props_obj.playVideoOnlyWhenLoggedIn,f.playVideoOnlyWhenLoggedIn_bl="yes"==f.playVideoOnlyWhenLoggedIn_bl,f.isLoggedIn_bl=f.props_obj.isLoggedIn,f.isLoggedIn_bl="yes"==f.isLoggedIn_bl,f.useVectorIcons_bl=f.props_obj.useVectorIcons,f.useVectorIcons_bl="yes"==f.useVectorIcons_bl,f.loggedInMessage_str=f.props_obj.loggedInMessage||"Only loggedin users can view this video",f.hideLogoWithController_bl=f.props_obj.hideLogoWithController,f.hideLogoWithController_bl="yes"==f.hideLogoWithController_bl,f.showDefaultControllerForVimeo_bl=f.props_obj.showDefaultControllerForVimeo,f.showDefaultControllerForVimeo_bl="yes"==f.showDefaultControllerForVimeo_bl,f.aopwSource=f.props_obj.aopwSource,f.aopwBorderSize=f.props_obj.aopwBorderSize||0,f.aopwTitle=f.props_obj.aopwTitle||"Advertisement",f.aopwTitleColor_str=f.props_obj.aopwTitleColor||"#FFFFFF",f.openerAlignment_str=f.props_obj.openerAlignment,f.openerEqulizerOffsetTop=f.props_obj.openerEqulizerOffsetTop||0,f.openerEqulizerOffsetLeft=f.props_obj.openerEqulizerOffsetLeft||0,f.showOpener_bl=f.props_obj.showOpener,f.showOpener_bl="yes"==f.showOpener_bl,f.showOpenerPlayPauseButton_bl=f.props_obj.showOpenerPlayPauseButton,f.showOpenerPlayPauseButton_bl="yes"==f.showOpenerPlayPauseButton_bl,f.animate_bl=f.props_obj.animatePlayer,f.animate_bl="yes"==f.animate_bl,f.showScriptDeveloper_bl=f.props_obj.showScriptDeveloper,f.showScriptDeveloper_bl="yes"==f.showScriptDeveloper_bl,f.useAToB="yes"==f.props_obj.useAToB,f.playsinline="yes"==f.props_obj.playsinline,f.atbTimeBackgroundColor=f.props_obj.atbTimeBackgroundColor||"transparent",f.atbTimeTextColorNormal=f.props_obj.atbTimeTextColorNormal||"#888888",f.atbTimeTextColorSelected=f.props_obj.atbTimeTextColorSelected||"#FFFFFF",f.atbButtonTextNormalColor=f.props_obj.atbButtonTextNormalColor||"#888888",f.atbButtonTextSelectedColor=f.props_obj.atbButtonTextSelectedColor||"#FFFFFF",f.atbButtonBackgroundNormalColor=f.props_obj.atbButtonBackgroundNormalColor||"#FFFFFF",f.atbButtonBackgroundSelectedColor=f.props_obj.atbButtonBackgroundSelectedColor||"#000000",f.scrubbersToolTipLabelBackgroundColor=f.props_obj.scrubbersToolTipLabelBackgroundColor||"#FFFFFF",f.scrubbersToolTipLabelFontColor=f.props_obj.scrubbersToolTipLabelFontColor||"#000000",f.showMainScrubberToolTipLabel_bl=f.props_obj.showMainScrubberToolTipLabel,f.showMainScrubberToolTipLabel_bl="yes"==f.showMainScrubberToolTipLabel_bl,f.thumbnailsPreview&&(f.showMainScrubberToolTipLabel_bl=!1),f.aopwWidth=f.props_obj.aopwWidth||200,f.aopwHeight=f.props_obj.aopwHeight||200,f.aopwSource&&5<String(f.aopwSource.length)?f.showAopwWindow_bl=!0:f.showAopwWindow_bl=!1,f.fillEntireScreenWithPoster_bl=f.props_obj.fillEntireScreenWithPoster,f.fillEntireScreenWithPoster_bl="yes"==f.fillEntireScreenWithPoster_bl,f.startAtTime=f.props_obj.startAtTime,"00:00:00"!=f.startAtTime&&FWDEVPUtils.checkTime(f.startAtTime)||(f.startAtTime=void 0),f.stopAtTime=f.props_obj.stopAtTime,"00:00:00"!=f.stopAtTime&&FWDEVPUtils.checkTime(f.stopAtTime)||(f.stopAtTime=void 0),f.showPoster_bl=f.props_obj.showPoster,f.showPoster_bl="yes"==f.showPoster_bl,f.showVolumeScrubber_bl=f.props_obj.showVolumeScrubber,f.showVolumeScrubber_bl="no"!=f.showVolumeScrubber_bl,f.showVolumeButton_bl=f.props_obj.showVolumeButton,f.showVolumeButton_bl="no"!=f.showVolumeButton_bl,f.showControllerWhenVideoIsStopped_bl=f.props_obj.showControllerWhenVideoIsStopped,f.showControllerWhenVideoIsStopped_bl="yes"==f.showControllerWhenVideoIsStopped_bl,f.showTime_bl=f.props_obj.showTime,f.showTime_bl="no"!=f.showTime_bl,f.showAnnotationsPositionTool_bl=f.props_obj.showAnnotationsPositionTool,f.showAnnotationsPositionTool_bl="yes"==f.showAnnotationsPositionTool_bl,f.showDownloadVideoButton_bl=f.props_obj.showDownloadButton,f.showDownloadVideoButton_bl="yes"==f.showDownloadVideoButton_bl,f.showFullScreenButton_bl=f.props_obj.showFullScreenButton,f.showFullScreenButton_bl="no"!=f.showFullScreenButton_bl,f.executeCuepointsOnlyOnce_bl=f.props_obj.executeCuepointsOnlyOnce,f.executeCuepointsOnlyOnce_bl="yes"==f.executeCuepointsOnlyOnce_bl,f.showAnnotationsPositionTool_bl&&(f.showFullScreenButton_bl=!1),f.repeatBackground_bl=f.props_obj.repeatBackground,f.repeatBackground_bl="no"!=f.repeatBackground_bl,f.showShareButton_bl=f.props_obj.showShareButton,f.showShareButton_bl="no"!=f.showShareButton_bl,f.showEmbedButton_bl=f.props_obj.showEmbedButton,f.showEmbedButton_bl="no"!=f.showEmbedButton_bl,f.showController_bl=f.props_obj.showController,f.showController_bl="no"!=f.showController_bl,f.fillEntireVideoScreen_bl=f.props_obj.fillEntireVideoScreen,f.fillEntireVideoScreen_bl="yes"==f.fillEntireVideoScreen_bl,f.showSubtitileByDefault_bl=f.props_obj.showSubtitleByDefault,f.showSubtitileByDefault_bl="no"!=f.showSubtitileByDefault_bl,f.useResumeOnPlay_bl=f.props_obj.useResumeOnPlay,f.useResumeOnPlay_bl="yes"==f.useResumeOnPlay_bl,f.showPopupAdsCloseButton_bl=f.props_obj.showPopupAdsCloseButton,f.showPopupAdsCloseButton_bl="no"!=f.showPopupAdsCloseButton_bl,f.showSubtitleButton_bl=f.props_obj.showSubtitleButton,f.showSubtitleButton_bl="no"!=f.showSubtitleButton_bl,f.useChromeless_bl=f.props_obj.useChromeless,f.useChromeless_bl="yes"==f.useChromeless_bl,f.stickyOnScrollShowOpener_bl=f.props_obj.stickyOnScrollShowOpener,f.stickyOnScrollShowOpener_bl="yes"==f.stickyOnScrollShowOpener_bl,f.hasAds_bl=f.adsVideoSourcePath_str,f.hasAds_bl="none"!=f.hasAds_bl,f.adsVideoSourcePath_str||(f.hasAds_bl=!1),f.openNewPageAtTheEndOfTheAds_bl=f.props_obj.openNewPageAtTheEndOfTheAds,f.openNewPageAtTheEndOfTheAds_bl="yes"==f.openNewPageAtTheEndOfTheAds_bl,f.vastXML=f.props_obj.vastSource,f.vastLinearStartTime=f.props_obj.vastLinearStartTime||"00:00:00",f.vastNonLinearStartTime=f.props_obj.vastNonLinearStartTime||"00:00:00",f.vastClickTroughTarget=f.props_obj.vastClickTroughTarget||"_blank",f.redirectURL=f.props_obj.redirectURL,null!=f.redirectURL&&f.redirectURL.length<4&&(f.redirectURL=void 0),f.redirectTarget=f.props_obj.redirectTarget||"_self","_self"!=f.redirectTarget&&"_blank"!=f.redirectTarget&&"_parent"!=f.redirectTarget&&(f.redirectTarget="_blank"),f.showYoutubeQualityButton_bl=f.props_obj.showQualityButton,f.showYoutubeQualityButton_bl="no"!=f.showYoutubeQualityButton_bl,f.showPlaybackRateButton_bl=f.props_obj.showPlaybackRateButton,f.showPlaybackRateButton_bl="yes"==f.showPlaybackRateButton_bl,f.defaultPlaybackRate_str=f.props_obj.defaultPlaybackRate,f.defaultPlaybackRate_ar=["0.25","0.5","1","1.25","1.5","2"],f.startAtPlaybackIndex=3,f.defaultPlaybackRate_ar.reverse();for(var e=!1,t=0;t<f.defaultPlaybackRate_ar.length;t++)f.defaultPlaybackRate_ar[t]==f.defaultPlaybackRate_str&&(e=!0,f.startAtPlaybackIndex=t);e||(f.defaultPlaybackRate_str=1),f.logoPath_str=f.skinPath_str+"logo.png",f.handPath_str=f.skinPath_str+"hand.cur",f.grabPath_str=f.skinPath_str+"grab.cur",f.props_obj.logoPath&&(f.logoPath_str=f.props_obj.logoPath),f.popupAddCloseNPath_str=f.skinPath_str+"close-button-normal.png",f.popupAddCloseSPath_str=f.skinPath_str+"close-button-selected.png",f.annotationAddCloseNPath_str=f.skinPath_str+"annotation-close-button-normal.png",f.annotationAddCloseSPath_str=f.skinPath_str+"annotation-close-button-selected.png",f.adLinePat_str=f.skinPath_str+"ad-line.png",f.playSPath_str=f.skinPath_str+"play-over.png";f.skinPath_str;if(f.pauseSPath_str=f.skinPath_str+"pause-over.png",f.bkMiddlePath_str=f.skinPath_str+"controller-middle.png",f.hdPath_str=f.skinPath_str+"hd.png",f.youtubeQualityArrowPath_str=f.skinPath_str+"youtube-quality-arrow.png",f.ytbQualityButtonPointerPath_str=f.skinPath_str+"youtube-quality-pointer.png",f.controllerBkPath_str=f.skinPath_str+"controller-background.png",f.skipIconSPath_str=f.skinPath_str+"skip-icon-over.png",f.adsBackgroundPath_str=f.skinPath_str+"ads-background.png",f.showSubtitleSPath_str=f.skinPath_str+"show-subtitle-icon-over.png",f.hideSubtitleSPath_str=f.skinPath_str+"hide-subtitle-icon-over.png",f.mainScrubberBkMiddlePath_str=f.skinPath_str+"scrubber-middle-background.png",f.mainScrubberDragMiddlePath_str=f.skinPath_str+"scrubber-middle-drag.png",f.mainScrubberDragLeftAddPath_str=f.skinPath_str+"scrubber-left-drag-add.png",f.mainScrubberDragMiddleAddPath_str=f.skinPath_str+"scrubber-middle-drag-add.png",f.volumeScrubberBkMiddlePath_str=f.skinPath_str+"scrubber-middle-background.png",f.volumeScrubberDragMiddlePath_str=f.skinPath_str+"scrubber-middle-drag.png",f.volumeSPath_str=f.skinPath_str+"volume-over.png",f.volumeDPath_str=f.skinPath_str+"volume-disabled.png",f.largePlayS_str=f.skinPath_str+"large-play-over.png",f.fullScreenSPath_str=f.skinPath_str+"full-screen-over.png",f.ytbQualitySPath_str=f.skinPath_str+"youtube-quality-over.png",f.ytbQualityDPath_str=f.skinPath_str+"youtube-quality-hd.png",f.shareSPath_str=f.skinPath_str+"share-over.png",f.normalScreenSPath_str=f.skinPath_str+"normal-screen-over.png",f.progressMiddlePath_str=f.skinPath_str+"progress-middle.png",f.embedPathS_str=f.skinPath_str+"embed-over.png",f.embedWindowClosePathS_str=f.skinPath_str+"embed-close-button-over.png",f.shareWindowClosePathS_str=f.skinPath_str+"embed-close-button-over.png",f.embedWindowInputBackgroundPath_str=f.skinPath_str+"embed-window-input-background.png",f.embedCopyButtonNPath_str=f.skinPath_str+"embed-copy-button.png",f.embedCopyButtonSPath_str=f.skinPath_str+"embed-copy-button-over.png",f.sendButtonNPath_str=f.skinPath_str+"send-button.png",f.sendButtonSPath_str=f.skinPath_str+"send-button-over.png",f.embedWindowBackground_str=f.skinPath_str+"embed-window-background.png",f.playbackRateSPath_str=f.skinPath_str+"playback-rate-selected.png",f.passButtonNPath_str=f.skinPath_str+"pass-button.png",f.passButtonSPath_str=f.skinPath_str+"pass-button-over.png",f.mainPreloader_img=new Image,f.mainPreloader_img.onerror=f.onSkinLoadErrorHandler,f.mainPreloader_img.onload=f.onPreloaderLoadHandler,f.mainPreloader_img.src=f.skinPath_str+"preloader.jpg",f.annotiationsListId_str=f.props_obj.annotiationsListId,f.annotations_el=FWDEVPUtils.getChildById(f.annotiationsListId_str),f.hasAnnotiations_bl=Boolean(f.annotations_el),f.hasAnnotiations_bl){var o,s=FWDEVPUtils.getChildren(f.annotations_el);f.annotations_ar=[];var i=s.length;for(t=0;t<i;t++){var n={};o=s[t],n.start=FWDEVPSubtitle.getDuration(FWDEVPUtils.getAttributeValue(o,"data-start-time")),n.end=FWDEVPSubtitle.getDuration(FWDEVPUtils.getAttributeValue(o,"data-end-time")),n.left=parseInt(FWDEVPUtils.getAttributeValue(o,"data-left"),10),n.top=parseInt(FWDEVPUtils.getAttributeValue(o,"data-top"),10),n.showCloseButton_bl="yes"==FWDEVPUtils.getAttributeValue(o,"data-show-close-button"),n.clickSource=FWDEVPUtils.getAttributeValue(o,"data-click-source"),n.clickSourceTarget=FWDEVPUtils.getAttributeValue(o,"data-click-source-target"),n.normalStateClass=FWDEVPUtils.getAttributeValue(o,"data-normal-state-class"),n.selectedStateClass=FWDEVPUtils.getAttributeValue(o,"data-selected-state-class"),n.content=o.innerHTML,f.annotations_ar[t]=n}try{f.annotations_el.parentNode.removeChild(f.annotations_el)}catch(e){}}if(f.startAtVideoSource=f.props_obj.startAtVideoSource||0,f.videoSource_ar=f.props_obj.videoSource,f.videoSource_ar){f.videosSource_ar=[],f.videoLabels_ar=[];for(t=0;t<f.videoSource_ar.length;t++){(n={}).source=f.videoSource_ar[t].source,n.videoType=f.videoSource_ar[t].videoType||"normal",n.label=f.videoSource_ar[t].label,f.videoSource_ar[t].videoType=n.videoType,n.isLive=f.videoSource_ar[t].isLive||"no",n.isLive="yes"==n.isLive,f.videoLabels_ar[t]=f.videoSource_ar[t].label,n.isPrivate=f.videoSource_ar[t].isPrivate||"no",n.isPrivate="yes"==n.isPrivate,f.videosSource_ar[t]=n}f.videoLabels_ar.reverse(),f.startAtVideoSource>f.videoLabels_ar.length-1&&(f.startAtVideoSource=f.videoLabels_ar.length-1)}if(!f.videosSource_ar||f.videoLabels_ar&&0==f.videoSource_ar.length)setTimeout(function(){null!=f&&(errorMessage_str="Please specify at least a video source!",f.dispatchEvent(b.LOAD_ERROR,{text:errorMessage_str}))},100);else{if(-1==f.videoSource_ar[f.startAtVideoSource].source.indexOf(".mp4")&&(f.showDownloadVideoButton_bl=!1),f.startAtSubtitle=f.props_obj.startAtSubtitle||0,f.subtitlesSource_ar=f.props_obj.subtitlesSource,f.subtitlesOffLabel_str=f.props_obj.subtitlesOffLabel||"Subtitle off",f.subtitlesSource_ar){f.subtitles_ar=[];for(t=0;t<f.subtitlesSource_ar.length;t++){(n={}).source=f.subtitlesSource_ar[t].subtitlePath,-1!=n.source.indexOf("encrypt:")&&(n.source=atob(n.source.substr(8))),n.label=f.subtitlesSource_ar[t].subtileLabel,f.subtitles_ar[t]=n}f.subtitles_ar.splice(0,0,{source:"none",label:f.subtitlesOffLabel_str}),f.subtitles_ar.reverse()}if(f.subtitlesSource_ar||(f.showSubtitleButton_bl=!1),f.popupAds_ar=f.props_obj.popupCommercialAdsSource,f.popupAds_ar)for(t=0;t<f.popupAds_ar.length;t++)f.popupAds_ar[t].timeStart=FWDEVPUtils.getSecondsFromString(f.popupAds_ar[t].timeStart),f.popupAds_ar[t].timeEnd=FWDEVPUtils.getSecondsFromString(f.popupAds_ar[t].timeEnd),f.popupAds_ar[t].google_ad_width=f.popupAds_ar[t].google_ad_width||600,f.popupAds_ar[t].google_ad_height=f.popupAds_ar[t].google_ad_height||200;if(f.ads_ar=f.props_obj.adsSource,f.adsSource_ar=[],f.ads_ar)for(t=0;t<f.ads_ar.length;t++){var l={};l.timeStart=FWDEVPUtils.getSecondsFromString(f.ads_ar[t].timeStart),l.addDuration=FWDEVPUtils.getSecondsFromString(f.ads_ar[t].addDuration)||10,l.thumbnailSource=f.ads_ar[t].thumbnailSource,l.timeToHoldAds=f.ads_ar[t].timeToHoldAds||0,l.source=f.ads_ar[t].source,l.link=f.ads_ar[t].link,l.target=f.ads_ar[t].target,f.adsSource_ar[t]=l}if(f.cuePoints_ar=f.props_obj.cuepoints,f.cuePointsSource_ar=[],f.cuePoints_ar)for(t=0;t<f.cuePoints_ar.length;t++){var r={};r.timeStart=FWDEVPUtils.getSecondsFromString(f.cuePoints_ar[t].timeStart),r.javascriptCall=f.cuePoints_ar[t].javascriptCall,r.isPlayed_bl=!1,f.cuePointsSource_ar[t]=r}f.useChromeless_bl||(f.skinPaths_ar=[{img:f.largePlayN_img=new Image,src:f.skinPath_str+"large-play.png"},{img:f.skipIconPath_img=new Image,src:f.skinPath_str+"skip-icon.png"}],f.showController_bl&&f.skinPaths_ar.push({img:f.mainScrubberBkLeft_img=new Image,src:f.skinPath_str+"scrubber-left-background.png"},{img:f.mainScrubberBkRight_img=new Image,src:f.skinPath_str+"scrubber-right-background.png"},{img:f.mainScrubberDragLeft_img=new Image,src:f.skinPath_str+"scrubber-left-drag.png"},{img:f.mainScrubberLine_img=new Image,src:f.skinPath_str+"scrubber-line.png"},{img:f.volumeScrubberBkLeft_img=new Image,src:f.skinPath_str+"scrubber-left-background.png"},{img:f.volumeScrubberBkRight_img=new Image,src:f.skinPath_str+"scrubber-right-background.png"},{img:f.volumeScrubberDragLeft_img=new Image,src:f.skinPath_str+"scrubber-left-drag.png"},{img:f.volumeScrubberLine_img=new Image,src:f.skinPath_str+"scrubber-line.png"},{img:f.progressLeft_img=new Image,src:f.skinPath_str+"progress-left.png"}),(f.showOpener_bl&&a.displayType==FWDEVPlayer.STICKY||f.stickyOnScrollShowOpener_bl&&a.stickyOnScroll)&&(f.skinPaths_ar.push({img:f.openerPauseN_img=new Image,src:f.skinPath_str+"open-pause-button-normal.png"},{img:f.openerPlayN_img=new Image,src:f.skinPath_str+"open-play-button-normal.png"},{img:f.animationPath_img=new Image,src:f.skinPath_str+"equalizer.png"},{img:f.closeN_img=new Image,src:f.skinPath_str+"opener-close.png"},{img:f.openTopN_img=new Image,src:f.skinPath_str+"open-button-normal-top.png"},{img:f.openBottomN_img=new Image,src:f.skinPath_str+"open-button-normal-bottom.png"}),f.openerPauseS_str=f.skinPath_str+"open-pause-button-selected.png",f.openerPlayS_str=f.skinPath_str+"open-play-button-selected.png",f.openerAnimationPath_str=f.skinPath_str+"equalizer.png",f.openTopSPath_str=f.skinPath_str+"open-button-selected-top.png",f.openBottomSPath_str=f.skinPath_str+"open-button-selected-bottom.png",f.openTopSPath_str=f.skinPath_str+"open-button-selected-top.png",f.openBottomSPath_str=f.skinPath_str+"open-button-selected-bottom.png",f.closeSPath_str=f.skinPath_str+"opener-close-over.png"),f.showRewindButton_bl&&(f.skinPaths_ar.push({img:f.rewindN_img=new Image,src:f.skinPath_str+"rewind.png"}),f.rewindSPath_str=f.skinPath_str+"rewind-over.png"),f.showShareButton_bl&&(f.shareSPath_str=f.skinPath_str+"share-over.png",f.facebookSPath_str=f.skinPath_str+"facebook-over.png",f.googleSPath_str=f.skinPath_str+"google-plus-over.png",f.twitterSPath_str=f.skinPath_str+"twitter-over.png",f.likedInSPath_str=f.skinPath_str+"likedin-over.png",f.bufferSPath_str=f.skinPath_str+"buffer-over.png",f.diggSPath_str=f.skinPath_str+"digg-over.png",f.redditSPath_str=f.skinPath_str+"reddit-over.png",f.thumbrlSPath_str=f.skinPath_str+"thumbrl-over.png")),f.atbSPath_str=f.skinPath_str+"a-to-b-button-over.png",f.useVectorIcons_bl||(f.skinPaths_ar.push({img:f.playN_img=new Image,src:f.skinPath_str+"play.png"},{img:f.pauseN_img=new Image,src:f.skinPath_str+"pause.png"},{img:f.volumeN_img=new Image,src:f.skinPath_str+"volume.png"},{img:f.downloadN_img=new Image,src:f.skinPath_str+"download-button.png"},{img:f.fullScreenN_img=new Image,src:f.skinPath_str+"full-screen.png"},{img:f.ytbQualityN_img=new Image,src:f.skinPath_str+"youtube-quality.png"},{img:f.normalScreenN_img=new Image,src:f.skinPath_str+"normal-screen.png"},{img:f.embedN_img=new Image,src:f.skinPath_str+"embed.png"},{img:f.embedColoseN_img=new Image,src:f.skinPath_str+"embed-close-button.png"},{img:f.passColoseN_img=new Image,src:f.skinPath_str+"embed-close-button.png"},{img:f.showSubtitleNPath_img=new Image,src:f.skinPath_str+"show-subtitle-icon.png"},{img:f.hideSubtitleNPath_img=new Image,src:f.skinPath_str+"hide-subtitle-icon.png"},{img:f.playbackRateNPath_img=new Image,src:f.skinPath_str+"playback-rate-normal.png"}),(f.showShareButton_bl||f.showEmbedButton_bl)&&f.skinPaths_ar.push({img:f.shareClooseN_img=new Image,src:f.skinPath_str+"embed-close-button.png"},{img:f.embedClooseN_img=new Image,src:f.skinPath_str+"embed-close-button.png"}),f.showShareButton_bl&&f.skinPaths_ar.push({img:f.shareN_img=new Image,src:f.skinPath_str+"share.png"},{img:f.facebookN_img=new Image,src:f.skinPath_str+"facebook.png"},{img:f.googleN_img=new Image,src:f.skinPath_str+"google-plus.png"},{img:f.twitterN_img=new Image,src:f.skinPath_str+"twitter.png"},{img:f.likedInkN_img=new Image,src:f.skinPath_str+"likedin.png"},{img:f.bufferkN_img=new Image,src:f.skinPath_str+"buffer.png"},{img:f.diggN_img=new Image,src:f.skinPath_str+"digg.png"},{img:f.redditN_img=new Image,src:f.skinPath_str+"reddit.png"},{img:f.thumbrlN_img=new Image,src:f.skinPath_str+"thumbrl.png"}),f.useAToB&&f.skinPaths_ar.push({img:f.atbNPath_img=new Image,src:f.skinPath_str+"a-to-b-button.png"})),f.downloadSPath_str=f.skinPath_str+"download-button-over.png",f.showHelpScreen_bl&&f.skinPaths_ar.push({img:f.helpScreen_img=new Image,src:f.skinPath_str+f.helpScreenPath_str},{img:f.pauseN_img=new Image,src:f.skinPath_str+"ok-button.png"}),f.showAopwWindow_bl&&(f.skinPaths_ar.push({img:f.popwColseN_img=new Image,src:f.skinPath_str+"popw-close-button.png"}),f.popwColseSPath_str=f.skinPath_str+"popw-close-button-over.png",f.popwWindowBackgroundPath_str=f.skinPath_str+"popw-window-background.png",f.popwBarBackgroundPath_str=f.skinPath_str+"popw-bar-background.png"),f.totalGraphics=f.skinPaths_ar.length}}else setTimeout(function(){null!=f&&(errorMessage_str="The <font color='#FF0000'>skinPath</font> property is not defined in the constructor function!",f.dispatchEvent(b.LOAD_ERROR,{text:errorMessage_str}))},50);else setTimeout(function(){null!=f&&(errorMessage_str="The <font color='#FF0000'>mainFolderPath</font> property is not defined in the constructor function!",f.dispatchEvent(b.LOAD_ERROR,{text:errorMessage_str}))},50)},this.onPreloaderLoadHandler=function(){f.countLoadedSCript=0,f.scripts=[],f.useAToB&&f.scripts.push("FWDEVPATB.js"),f.thumbnailsPreview&&f.scripts.push("FWDEVPThumbnailsPreview.js"),f.totalScripts=f.scripts.length,f.dispatchEvent(b.PRELOADER_LOAD_DONE),f.useChromeless_bl?setTimeout(function(){f.dispatchEvent(b.SKIN_LOAD_COMPLETE)},50):f.loadPlugin()},f.loadPlugin=function(){if(f.countLoadedSCript==f.totalScripts)f.loadSkin();else{var e=document.createElement("script");document.head.appendChild(e),e.src=f.mainFolderPath_str+"java/"+f.scripts[f.countLoadedSCript],e.onload=f.loadPlugin,e.onerror=function(e){console.log(e),"FWDEVPATB.js"==f.scripts[f.countLoadedSCript]?f.dispatchEvent(b.LOAD_ERROR,{text:'You have enabled the A to B plugin<br>A to B js file named <font color="#FF0000">FWDEVPATB.js</font> is not found. Please make sure that the content folder contains the java folder that contains the <font color="#FF0000">FWDEVPATB.js</font> file. '}):"FWDEVPThumbnailsPreview.js"==f.scripts[f.countLoadedSCript]&&f.dispatchEvent(b.LOAD_ERROR,{text:'You have enabled thethumbnal preview plugin<br>thumbnail preview js file named <font color="#FF0000">FWDEVPThumbnailsPreview.js</font> is not found. Please make sure that the content folder contains the java folder that contains the <font color="#FF0000">FWDEVPThumbnailsPreview.js</font> file. '})}}f.countLoadedSCript++},f.loadSkin=function(){for(var e,t,o=0;o<f.totalGraphics;o++)e=f.skinPaths_ar[o].img,t=f.skinPaths_ar[o].src,e.onload=f.onSkinLoadHandler,e.onerror=f.onSkinLoadErrorHandler,e.src=t},this.onSkinLoadHandler=function(e){f.countLoadedSkinImages++,f.countLoadedSkinImages==f.totalGraphics&&setTimeout(function(){f.dispatchEvent(b.SKIN_LOAD_COMPLETE)},50)},f.onSkinLoadErrorHandler=function(e){FWDEVPUtils.isIEAndLessThen9?message="Graphics image not found!":message="The skin graphics with label <font color='#FF0000'>"+e.target.src+"</font> can't be loaded, check path!",p.console&&console.log(e);var t={text:message};setTimeout(function(){f.dispatchEvent(b.LOAD_ERROR,t)},50)},f.onSkinLoadHandlersss=function(e){f.countLoadedSkinImages++,f.countLoadedSkinImages<f.totalGraphics?FWDEVPUtils.isIEAndLessThen9?f.loadImageId_to=setTimeout(f.loadSkin,16):f.loadSkin():setTimeout(function(){f.dispatchEvent(b.SKIN_LOAD_COMPLETE)},50)},this.downloadVideo=function(e,t){if("file:"==document.location.protocol)return f.isPlaylistDispatchingError_bl=!0,void(showLoadPlaylistErrorId_to=setTimeout(function(){f.dispatchEvent(b.LOAD_ERROR,{text:"Downloading video files local is not allowed or possible! To function properly please test online."}),f.isPlaylistDispatchingError_bl=!1},50));if(!e)return f.isPlaylistDispatchingError_bl=!0,void(showLoadPlaylistErrorId_to=setTimeout(function(){f.dispatchEvent(b.LOAD_ERROR,{text:"Not allowed to download this video!"}),f.isPlaylistDispatchingError_bl=!1},50));if(-1==String(e.indexOf(".mp4")))return f.isPlaylistDispatchingError_bl=!0,void(showLoadPlaylistErrorId_to=setTimeout(function(){f.dispatchEvent(b.LOAD_ERROR,{text:"Only mp4 video files hosted on your server can be downloaded."}),f.isPlaylistDispatchingError_bl=!1},50));var o=e,s=location.origin,i=location.pathname;if(-1!=i.indexOf(".")&&(i=i.substr(0,i.lastIndexOf("/")+1)),-1==e.indexOf("http:")&&-1==e.indexOf("https:")&&(e=s+i+e),t){t=t.replace(/[^A-Z0-9\-\_\.]+/gi,"_"),/\.(mp3)$/i.test(t)||(t+=".mp3"),e=e;var n=f.videoDownloaderPath_str;if(f.dlIframe||(f.dlIframe=document.createElement("IFRAME"),f.dlIframe.style.display="none",document.documentElement.appendChild(f.dlIframe)),f.isMobile_bl){if(f.openDownloadLinkOnMobile_bl)return void p.open(o,"_blank");var l=f.getValidEmail();if(!l)return;if(null!=f.emailXHR){try{f.emailXHR.abort()}catch(e){}f.emailXHR.onreadystatechange=null,f.emailXHR.onerror=null,f.emailXHR=null}return f.emailXHR=new XMLHttpRequest,f.emailXHR.onreadystatechange=function(e){4==f.emailXHR.readyState&&(200==f.emailXHR.status?"sent"==f.emailXHR.responseText?alert("Email sent."):alert("Error sending email, this is a server side error, the php file can't send the email!"):alert("Error sending email: "+f.emailXHR.status+": "+f.emailXHR.statusText))},f.emailXHR.onerror=function(e){try{p.console&&console.log(e),p.console&&console.log(e.message)}catch(e){}alert("Error sending email: "+e.message)},f.emailXHR.open("get",f.mailPath_str+"?mail="+l+"&name="+t+"&path="+e,!0),void f.emailXHR.send()}f.dlIframe.src=n+"?path="+e+"&name="+t}},this.getValidEmail=function(){for(var e=prompt("Please enter your email address where the video download link will be sent:"),t=/^([\w-\.]+@([\w-]+\.)+[\w-]{2,4})?$/;!t.test(e)||""==e;){if(null===e)return;e=prompt("Please enter a valid email address:")}return e},this.loadVast=function(e){var _,c=[];f.vastXHR=new XMLHttpRequest,f.vastXHR.onreadystatechange=function(e){if(4==f.vastXHR.readyState)if(200==f.vastXHR.status){var t=FWDEVPUtils.xmlToJson(f.vastXHR.responseXML).VAST;if(!t.Ad)return void f.dispatchEvent(b.LOAD_ERROR,{text:"No <font color='#FF0000'> &lt;ad&gt; </font> tag was found in the VAST xml file."});t.Ad.length||(t.Ad=[t.Ad]);for(var o=0;o<t.Ad.length;o++){if((_={}).id=t.Ad[o]["@attributes"].id,_.sequence=t.Ad[o]["@attributes"].sequence,_.startTime=t.Ad[o]["@attributes"].startTime,_.sequence||(_.sequence=o),!t.Ad[o].InLine)return void f.dispatchEvent(b.LOAD_ERROR,{text:"No <font color='#FF0000'> &lt;InLine&gt; </font>tag was found in the VAST xml file."});if(_.InLine={},_.InLine.Impression=void 0,t.Ad[o].InLine.Impression&&(t.Ad[o].InLine.Impression["#cdata-section"]?_.InLine.Impression=t.Ad[o].InLine.Impression["#cdata-section"]:_.InLine.Impression=t.Ad[o].InLine.Impression["#text"]),t.Ad[o].InLine.Creatives.Creative.length||(t.Ad[o].InLine.Creatives.Creative=[t.Ad[o].InLine.Creatives.Creative]),t.Ad[o].InLine.Creatives.Creative.length)for(var s=0;s<t.Ad[o].InLine.Creatives.Creative.length;s++)if(t.Ad[o].InLine.Creatives.Creative[s].Linear){t.Ad[o].InLine.Creatives.Creative[s].Linear.MediaFiles.MediaFile.length||(t.Ad[o].InLine.Creatives.Creative[s].Linear.MediaFiles.MediaFile=[t.Ad[o].InLine.Creatives.Creative[s].Linear.MediaFiles.MediaFile]),_.InLine.Linear={};for(var i=[],n=0;n<t.Ad[o].InLine.Creatives.Creative[s].Linear.MediaFiles.MediaFile.length;n++)i.push(t.Ad[o].InLine.Creatives.Creative[s].Linear.MediaFiles.MediaFile[n]);var l=0;e:for(var r=0;r<i.length;r++)if(p.innerWidth>=i[r]["@attributes"].width){l=r;break e}if(i[l]["#cdata-section"]?_.InLine.Linear.videoSource=i[l]["#cdata-section"]:_.InLine.Linear.videoSource=i[l]["#text"],t.Ad[o].InLine.Creatives.Creative[s].Linear.Duration&&(t.Ad[o].InLine.Creatives.Creative[s].Linear.Duration["#cdata-section"]?_.InLine.Linear.Duration=t.Ad[o].InLine.Creatives.Creative[s].Linear.Duration["#cdata-section"]:t.Ad[o].InLine.Creatives.Creative[s].Linear.Duration["#text"]&&(_.InLine.Linear.Duration=t.Ad[o].InLine.Creatives.Creative[s].Linear.Duration["#text"])),_.InLine.Linear.skipoffset=void 0,t.Ad[o].InLine.Creatives.Creative[s].Linear["@attributes"]&&t.Ad[o].InLine.Creatives.Creative[s].Linear["@attributes"].skipoffset&&(_.InLine.Linear.skipoffset=t.Ad[o].InLine.Creatives.Creative[s].Linear["@attributes"].skipoffset),_.InLine.Linear.skipoffset&&(_.InLine.Linear.skipoffset=_.InLine.Linear.skipoffset.substr(0,8),_.InLine.Linear.Duration&&-1!=_.InLine.Linear.skipoffset.indexOf("%"))){var a=Math.round(FWDEVPUtils.getSecondsFromString(_.InLine.Linear.Duration)*(_.InLine.Linear.skipoffset.substr(0,_.InLine.Linear.skipoffset.length-1)/100));_.InLine.Linear.skipoffset=FWDEVPUtils.formatTime(a,!0)}if(_.InLine.Linear.skipoffset&&(_.InLine.Linear.skipoffset=FWDEVPUtils.getSecondsFromString(_.InLine.Linear.skipoffset),_.InLine.Linear.Duration&&FWDEVPUtils.getSecondsFromString(_.InLine.Linear.Duration)<=_.InLine.Linear.skipoffset&&(_.InLine.Linear.skipoffset=void 0)),_.InLine.Linear.TrackingEvents=void 0,t.Ad[o].InLine.Creatives.Creative[s].Linear.TrackingEvents.Tracking){_.InLine.Linear.TrackingEvents=[];for(var d=0;d<t.Ad[o].InLine.Creatives.Creative[s].Linear.TrackingEvents.Tracking.length;d++)_.InLine.Linear.TrackingEvents.push({event:t.Ad[o].InLine.Creatives.Creative[s].Linear.TrackingEvents.Tracking[d]["@attributes"].event}),t.Ad[o].InLine.Creatives.Creative[s].Linear.TrackingEvents.Tracking[d]["#cdata-section"]?_.InLine.Linear.TrackingEvents[d].URI=t.Ad[o].InLine.Creatives.Creative[s].Linear.TrackingEvents.Tracking[d]["#cdata-section"]:_.InLine.Linear.TrackingEvents[d].URI=t.Ad[o].InLine.Creatives.Creative[s].Linear.TrackingEvents.Tracking[d]["#text"]}t.Ad[o].InLine.Creatives.Creative[s].Linear.VideoClicks&&(t.Ad[o].InLine.Creatives.Creative[s].Linear.VideoClicks.ClickThrough&&((_.InLine.Linear.ClickThrough=t.Ad[o].InLine.Creatives.Creative[s].Linear.VideoClicks.ClickThrough["#cdata-section"])?_.InLine.Linear.ClickThrough=t.Ad[o].InLine.Creatives.Creative[s].Linear.VideoClicks.ClickThrough["#cdata-section"]:_.InLine.Linear.ClickThrough=t.Ad[o].InLine.Creatives.Creative[s].Linear.VideoClicks.ClickThrough["#text"]),t.Ad[o].InLine.Creatives.Creative[s].Linear.VideoClicks.ClickTracking&&(t.Ad[o].InLine.Creatives.Creative[s].Linear.VideoClicks.ClickTracking["#cdata-section"]?_.InLine.Linear.ClickTracking=t.Ad[o].InLine.Creatives.Creative[s].Linear.VideoClicks.ClickTracking["#cdata-section"]:_.InLine.Linear.ClickTracking=t.Ad[o].InLine.Creatives.Creative[s].Linear.VideoClicks.ClickTracking["#text"]))}c.push(_)}FWDEVPUtils.storArrayBasedOnObjectValue(c,"sequence");var u=[];for(o=0;o<c.length;o++){var h={};h.source=c[o].InLine.Linear.videoSource,h.timeStart=FWDEVPUtils.getSecondsFromString(f.vastLinearStartTime),c[o].startTime&&(h.timeStart=FWDEVPUtils.getSecondsFromString(c[o].startTime)),c[o].InLine.Linear.skipoffset&&(h.timeToHoldAds=c[o].InLine.Linear.skipoffset),h.link=c[o].InLine.Linear.ClickThrough,c[o].InLine.Linear.ClickTracking&&(h.ClickTracking=c[o].InLine.Linear.ClickTracking),h.target=f.vastClickTroughTarget,c[o].InLine.Impression&&(h.Impression=c[o].InLine.Impression),c[o].InLine.Linear.TrackingEvents&&(h.TrackingEvents=c[o].InLine.Linear.TrackingEvents),u.push(h)}f.adsSource_ar=u,f.isVastXMLParsed_bl=!0,f.dispatchEvent(b.VAST_LOADED,{ads:u})}else f.dispatchEvent(b.LOAD_ERROR,{text:"vast XML file can't be loaded "+f.vastXHR.statusText})},f.vastXHR.onerror=function(e){try{p.console&&console.log(e),p.console&&console.log(e.message)}catch(e){}},-1==e.indexOf("http")&&-1==e.indexOf("https")||(e="https://cors-anywhere.herokuapp.com/"+e),f.vastXHR.open("get",e,!0),f.vastXHR.send()},f.showPropertyError=function(e){f.dispatchEvent(b.LOAD_ERROR,{text:"The property called <font color='#FF0000'>"+e+"</font> is not defined."})},f.init()};b.setPrototype=function(){b.prototype=new FWDEVPEventDispatcher},b.prototype=null,b.VAST_LOADED="vastLoaded",b.PRELOADER_LOAD_DONE="onPreloaderLoadDone",b.LOAD_DONE="onLoadDone",b.LOAD_ERROR="onLoadError",b.IMAGE_LOADED="onImageLoaded",b.SKIN_LOAD_COMPLETE="onSkinLoadComplete",b.SKIN_PROGRESS="onSkinProgress",b.IMAGES_PROGRESS="onImagesPogress",p.FWDEVPData=b}(window),window.FWDEVPDisplayObject=function(e,t,o,s){var i=this;if(i.listeners={events_ar:[]},"div"!=e&&"img"!=e&&"canvas"!=e&&"input"!=e&&"iframe"!=e)throw Error("Type is not valid! "+e);i.type=e,this.children_ar=[],this.style,this.screen,this.transform,this.position=t||"absolute",this.overflow=o||"hidden",this.display=s||"inline-block",this.visible=!0,this.buttonMode,this.x=0,this.y=0,this.w=0,this.h=0,this.rect,this.alpha=1,this.innerHTML="",this.opacityType="",this.isHtml5_bl=!1,this.hasTransform3d_bl=FWDEVPUtils.hasTransform3d,this.hasTransform2d_bl=FWDEVPUtils.hasTransform2d,(FWDEVPUtils.isFirefox||FWDEVPUtils.isIE)&&(i.hasTransform3d_bl=!1),(FWDEVPUtils.isFirefox||FWDEVPUtils.isIE)&&(i.hasTransform2d_bl=!1),this.hasBeenSetSelectable_bl=!1,i.init=function(){i.setScreen()},i.getTransform=function(){for(var e,t=["transform","msTransform","WebkitTransform","MozTransform","OTransform"];e=t.shift();)if(void 0!==i.screen.style[e])return e;return!1},i.getOpacityType=function(){return void 0!==i.screen.style.opacity?"opacity":"filter"},i.setScreen=function(e){"img"==i.type&&e?i.screen=e:i.screen=document.createElement(i.type),i.setMainProperties()},i.setMainProperties=function(){i.transform=i.getTransform(),i.setPosition(i.position),i.setOverflow(i.overflow),i.opacityType=i.getOpacityType(),"opacity"==i.opacityType&&(i.isHtml5_bl=!0),"filter"==i.opacityType&&(i.screen.style.filter="inherit"),i.screen.style.left="0px",i.screen.style.top="0px",i.screen.style.margin="0px",i.screen.style.padding="0px",i.screen.style.maxWidth="none",i.screen.style.maxHeight="none",i.screen.style.border="none",i.screen.style.lineHeight="1",i.screen.style.backfaceVisibility="hidden",i.screen.style.webkitBackfaceVisibility="hidden",i.screen.style.MozBackfaceVisibility="hidden",i.screen.style.MozImageRendering="optimizeSpeed",i.screen.style.WebkitImageRendering="optimizeSpeed","img"==e&&(i.setWidth(i.screen.width),i.setHeight(i.screen.height))},i.setBackfaceVisibility=function(){i.screen.style.backfaceVisibility="visible",i.screen.style.webkitBackfaceVisibility="visible",i.screen.style.MozBackfaceVisibility="visible"},i.setSelectable=function(e){i.hasBeenSetSelectable_bl=e?(FWDEVPUtils.isFirefox||FWDEVPUtils.isIE?(i.screen.style.userSelect="element",i.screen.style.MozUserSelect="element",i.screen.style.msUserSelect="element"):FWDEVPUtils.isSafari?(i.screen.style.userSelect="text",i.screen.style.webkitUserSelect="text"):(i.screen.style.userSelect="auto",i.screen.style.webkitUserSelect="auto"),i.screen.style.khtmlUserSelect="auto",i.screen.style.oUserSelect="auto",FWDEVPUtils.isIEAndLessThen9?(i.screen.ondragstart=null,i.screen.onselectstart=null,i.screen.ontouchstart=null):(i.screen.ondragstart=void 0,i.screen.onselectstart=void 0,i.screen.ontouchstart=void 0),!(i.screen.style.webkitTouchCallout="default")):(i.screen.style.userSelect="none",i.screen.style.MozUserSelect="none",i.screen.style.webkitUserSelect="none",i.screen.style.khtmlUserSelect="none",i.screen.style.oUserSelect="none",i.screen.style.msUserSelect="none",i.screen.msUserSelect="none",i.screen.ondragstart=function(e){return!1},i.screen.onselectstart=function(){return!1},i.screen.ontouchstart=function(){return!1},i.screen.style.webkitTouchCallout="none",!0)},i.getScreen=function(){return i.screen},i.setVisible=function(e){i.visible=e,1==i.visible?i.screen.style.visibility="visible":i.screen.style.visibility="hidden"},i.getVisible=function(){return i.visible},i.setResizableSizeAfterParent=function(){i.screen.style.width="100%",i.screen.style.height="100%"},i.getStyle=function(){return i.screen.style},i.setOverflow=function(e){i.overflow=e,i.screen.style.overflow=i.overflow},i.setPosition=function(e){i.position=e,i.screen.style.position=i.position},i.setDisplay=function(e){i.display=e,i.screen.style.display=i.display},i.setButtonMode=function(e){i.buttonMode=e,1==i.buttonMode?i.screen.style.cursor="pointer":i.screen.style.cursor="default"},i.setBkColor=function(e){i.screen.style.backgroundColor=e},i.setInnerHTML=function(e){i.innerHTML=e,i.screen.innerHTML=i.innerHTML},i.getInnerHTML=function(){return i.innerHTML},i.getRect=function(){return i.screen.getBoundingClientRect()},i.setAlpha=function(e){i.alpha=e,"opacity"==i.opacityType?i.screen.style.opacity=i.alpha:"filter"==i.opacityType&&(i.screen.style.filter="alpha(opacity="+100*i.alpha+")",i.screen.style.filter="progid:DXImageTransform.Microsoft.Alpha(Opacity="+Math.round(100*i.alpha)+")")},i.getAlpha=function(){return i.alpha},i.getRect=function(){return i.screen.getBoundingClientRect()},i.getGlobalX=function(){return i.getRect().left},i.getGlobalY=function(){return i.getRect().top},i.setX=function(e){i.x=e,i.hasTransform3d_bl?i.screen.style[i.transform]="translate3d("+i.x+"px,"+i.y+"px,0)":i.hasTransform2d_bl?i.screen.style[i.transform]="translate("+i.x+"px,"+i.y+"px)":i.screen.style.left=i.x+"px"},i.getX=function(){return i.x},i.setY=function(e){i.y=e,i.hasTransform3d_bl?i.screen.style[i.transform]="translate3d("+i.x+"px,"+i.y+"px,0)":i.hasTransform2d_bl?i.screen.style[i.transform]="translate("+i.x+"px,"+i.y+"px)":i.screen.style.top=i.y+"px"},i.getY=function(){return i.y},i.setWidth=function(e){i.w=e,"img"==i.type&&(i.screen.width=i.w),i.screen.style.width=i.w+"px"},i.getWidth=function(){return"div"==i.type||"input"==i.type?0!=i.screen.offsetWidth?i.screen.offsetWidth:i.w:"img"==i.type?0!=i.screen.offsetWidth?i.screen.offsetWidth:0!=i.screen.width?i.screen.width:i._w:"canvas"==i.type?0!=i.screen.offsetWidth?i.screen.offsetWidth:i.w:void 0},i.setHeight=function(e){i.h=e,"img"==i.type&&(i.screen.height=i.h),i.screen.style.height=i.h+"px"},i.getHeight=function(){return"div"==i.type||"input"==i.type?0!=i.screen.offsetHeight?i.screen.offsetHeight:i.h:"img"==i.type?0!=i.screen.offsetHeight?i.screen.offsetHeight:0!=i.screen.height?i.screen.height:i.h:"canvas"==i.type?0!=i.screen.offsetHeight?i.screen.offsetHeight:i.h:void 0},i.addChild=function(e){i.contains(e)&&i.children_ar.splice(FWDEVPUtils.indexOfArray(i.children_ar,e),1),i.children_ar.push(e),i.screen.appendChild(e.screen)},i.removeChild=function(e){if(!i.contains(e))throw Error("##removeChild()## Child dose't exist, it can't be removed!");i.children_ar.splice(FWDEVPUtils.indexOfArray(i.children_ar,e),1),i.screen.removeChild(e.screen)},i.contains=function(e){return-1!=FWDEVPUtils.indexOfArray(i.children_ar,e)},i.addChildAt=function(e,t){if(0==i.getNumChildren())i.children_ar.push(e),i.screen.appendChild(e.screen);else if(1==t)i.screen.insertBefore(e.screen,i.children_ar[0].screen),i.screen.insertBefore(i.children_ar[0].screen,e.screen),i.contains(e)?i.children_ar.splice(FWDEVPUtils.indexOfArray(i.children_ar,e),1,e):i.children_ar.splice(FWDEVPUtils.indexOfArray(i.children_ar,e),0,e);else{if(t<0||t>i.getNumChildren()-1)throw Error("##getChildAt()## Index out of bounds!");i.screen.insertBefore(e.screen,i.children_ar[t].screen),i.contains(e)?i.children_ar.splice(FWDEVPUtils.indexOfArray(i.children_ar,e),1,e):i.children_ar.splice(FWDEVPUtils.indexOfArray(i.children_ar,e),0,e)}},i.getChildAt=function(e){if(e<0||e>i.getNumChildren()-1)throw Error("##getChildAt()## Index out of bounds!");if(0==i.getNumChildren())throw Errror("##getChildAt## Child dose not exist!");return i.children_ar[e]},i.getChildIndex=function(e){return i.contains(e)?FWDEVPUtils.indexOfArray(i.children_ar,e):0},i.removeChildAtZero=function(){i.screen.removeChild(i.children_ar[0].screen),i.children_ar.shift()},i.getNumChildren=function(){return i.children_ar.length},i.addListener=function(e,t){if(null==e)throw Error("type is required.");if("object"==typeof e)throw Error("type must be of type String.");if("function"!=typeof t)throw Error("listener must be of type Function.");var o={};o.type=e,o.listener=t,(o.target=this).listeners.events_ar.push(o)},i.dispatchEvent=function(e,t){if(null!=this.listeners){if(null==e)throw Error("type is required.");if("object"==typeof e)throw Error("type must be of type String.");for(var o=0,s=this.listeners.events_ar.length;o<s;o++)if(this.listeners.events_ar[o].target===this&&this.listeners.events_ar[o].type===e){if(t)for(var i in t)this.listeners.events_ar[o][i]=t[i];this.listeners.events_ar[o].listener.call(this,this.listeners.events_ar[o])}}},i.removeListener=function(e,t){if(null==e)throw Error("type is required.");if("object"==typeof e)throw Error("type must be of type String.");if("function"!=typeof t)throw Error("listener must be of type Function."+e);for(var o=0,s=this.listeners.events_ar.length;o<s;o++)if(this.listeners.events_ar[o].target===this&&this.listeners.events_ar[o].type===e&&this.listeners.events_ar[o].listener===t){this.listeners.events_ar.splice(o,1);break}},i.disposeImage=function(){"img"==i.type&&(i.screen.src=null)},i.destroy=function(){i.hasBeenSetSelectable_bl&&(i.screen.ondragstart=null,i.screen.onselectstart=null,i.screen.ontouchstart=null),i.screen.removeAttribute("style"),i.listeners=[],i.listeners=null,i.children_ar=[],i.children_ar=null,i.style=null,i.screen=null,i.transform=null,i.position=null,i.overflow=null,i.display=null,i.visible=null,i.buttonMode=null,i.x=null,i.y=null,i.w=null,i.h=null,i.rect=null,i.alpha=null,i.innerHTML=null,i.opacityType=null,i.isHtml5_bl=null,i.hasTransform3d_bl=null,i.hasTransform2d_bl=null,i=null},i.init()},function(s){var o=function(e,l){var a=this;o.prototype;function t(e){var t,o;s.top!=s&&FWDEVPUtils.isIE||(e||(e=this),document.body.createTextRange?((t=document.body.createTextRange()).moveToElementText(e),t.select()):s.getSelection&&document.createRange&&(o=s.getSelection(),(t=document.createRange()).selectNodeContents(e),o.removeAllRanges(),o.addRange(t)))}this.xhr=null,this.embedColoseN_img=e.embedColoseN_img,this.bk_do=null,this.mainHolder_do=null,this.embedAndLinkMainLabel_do=null,this.linkAndEmbedHolderBk_do=null,this.linkText_do=null,this.linkLabel_do=null,this.embedText_do=null,this.embedLabel_do=null,this.linkAndEmbedHolder_do=null,this.copyLinkButton_do=null,this.copyEmbedButton_do=null,this.infoText_do=null,this.sendMainHolder_do=null,this.sendMainHolderBk_do=null,this.sendMainLabel_do=null,this.yourEmailLabel_do=null,this.yourEmailInput_do=null,this.friendEmailLabel_do=null,this.friendEmailInput_do=null,this.closeButton_do=null,this.videoLink_str=null,this.embedWindowBackground_str=e.embedWindowBackground_str,this.embedWindowInputBackgroundPath_str=e.embedWindowInputBackgroundPath_str,this.secondaryLabelsColor_str=e.secondaryLabelsColor_str,this.inputColor_str=e.inputColor_str,this.mainLabelsColor_str=e.mainLabelsColor_str,this.sendButtonNPath_str=e.sendButtonNPath_str,this.sendButtonSPath_str=e.sendButtonSPath_str,this.inputBackgroundColor_str=e.inputBackgroundColor_str,this.borderColor_str=e.borderColor_str,this.sendToAFriendPath_str=e.sendToAFriendPath_str,this.maxTextWidth=0,this.totalWidth=0,this.stageWidth=0,this.stageHeight=0,this.buttonWidth=44,this.buttonHeight=19,this.embedWindowCloseButtonMargins=e.embedWindowCloseButtonMargins,this.finalEmbedPath_str=null,this.finalEmbedCode_str=null,this.linkToVideo_str=null,this.shareAndEmbedTextColor_str=e.shareAndEmbedTextColor_str,this.isSending_bl=!1,this.isShowed_bl=!1,this.isMobile_bl=FWDEVPUtils.isMobile,a.useVectorIcons_bl=e.useVectorIcons_bl,this.init=function(){a.closeButton_do||(a.setBackfaceVisibility(),a.mainHolder_do=new FWDEVPDisplayObject("div"),a.mainHolder_do.hasTransform3d_bl=!1,a.mainHolder_do.hasTransform2d_bl=!1,a.mainHolder_do.setBackfaceVisibility(),a.bk_do=new FWDEVPDisplayObject("div"),a.bk_do.getStyle().width="100%",a.bk_do.getStyle().height="100%",a.bk_do.setAlpha(.9),a.bk_do.getStyle().background="url('"+a.embedWindowBackground_str+"')",a.linkAndEmbedHolder_do=new FWDEVPDisplayObject("div"),a.linkAndEmbedHolderBk_do=new FWDEVPDisplayObject("div"),a.linkAndEmbedHolderBk_do.getStyle().background="url('"+a.embedWindowBackground_str+"')",a.linkAndEmbedHolderBk_do.getStyle().borderStyle="solid",a.linkAndEmbedHolderBk_do.getStyle().borderWidth="1px",a.linkAndEmbedHolderBk_do.getStyle().borderColor=a.borderColor_str,a.embedAndLinkMainLabel_do=new FWDEVPDisplayObject("div"),a.embedAndLinkMainLabel_do.setBackfaceVisibility(),a.embedAndLinkMainLabel_do.getStyle().fontFamily="Arial",a.embedAndLinkMainLabel_do.getStyle().fontSize="12px",a.embedAndLinkMainLabel_do.getStyle().color=a.mainLabelsColor_str,a.embedAndLinkMainLabel_do.getStyle().whiteSpace="nowrap",a.embedAndLinkMainLabel_do.getStyle().fontSmoothing="antialiased",a.embedAndLinkMainLabel_do.getStyle().webkitFontSmoothing="antialiased",a.embedAndLinkMainLabel_do.getStyle().textRendering="optimizeLegibility",a.embedAndLinkMainLabel_do.getStyle().padding="0px",a.embedAndLinkMainLabel_do.setInnerHTML("SHARE & EMBED"),a.linkLabel_do=new FWDEVPDisplayObject("div"),a.linkLabel_do.setBackfaceVisibility(),a.linkLabel_do.getStyle().fontFamily="Arial",a.linkLabel_do.getStyle().fontSize="12px",a.linkLabel_do.getStyle().color=a.secondaryLabelsColor_str,a.linkLabel_do.getStyle().whiteSpace="nowrap",a.linkLabel_do.getStyle().fontSmoothing="antialiased",a.linkLabel_do.getStyle().webkitFontSmoothing="antialiased",a.linkLabel_do.getStyle().textRendering="optimizeLegibility",a.linkLabel_do.getStyle().padding="0px",a.linkLabel_do.setInnerHTML("Link to this video:"),a.linkText_do=new FWDEVPDisplayObject("div"),a.linkText_do.setBackfaceVisibility(),a.linkText_do.getStyle().fontFamily="Arial",a.linkText_do.getStyle().fontSize="12px",a.linkText_do.getStyle().color=a.shareAndEmbedTextColor_str,FWDEVPUtils.isIEAndLessThen9||(a.linkText_do.getStyle().wordBreak="break-all"),a.linkText_do.getStyle().fontSmoothing="antialiased",a.linkText_do.getStyle().webkitFontSmoothing="antialiased",a.linkText_do.getStyle().textRendering="optimizeLegibility",a.linkText_do.getStyle().padding="6px",a.linkText_do.getStyle().paddingTop="4px",a.linkText_do.getStyle().paddingBottom="4px",a.linkText_do.getStyle().backgroundColor=a.inputBackgroundColor_str,a.linkText_do.screen.onclick=t,a.embedLabel_do=new FWDEVPDisplayObject("div"),a.embedLabel_do.setBackfaceVisibility(),a.embedLabel_do.getStyle().fontFamily="Arial",a.embedLabel_do.getStyle().fontSize="12px",a.embedLabel_do.getStyle().color=a.secondaryLabelsColor_str,a.embedLabel_do.getStyle().whiteSpace="nowrap",a.embedLabel_do.getStyle().fontSmoothing="antialiased",a.embedLabel_do.getStyle().webkitFontSmoothing="antialiased",a.embedLabel_do.getStyle().textRendering="optimizeLegibility",a.embedLabel_do.getStyle().padding="0px",a.embedLabel_do.setInnerHTML("Embed this video:"),a.embedText_do=new FWDEVPDisplayObject("div"),a.embedText_do.setBackfaceVisibility(),FWDEVPUtils.isIEAndLessThen9||(a.embedText_do.getStyle().wordBreak="break-all"),a.embedText_do.getStyle().fontFamily="Arial",a.embedText_do.getStyle().fontSize="12px",a.embedText_do.getStyle().lineHeight="16px",a.embedText_do.getStyle().color=a.shareAndEmbedTextColor_str,a.embedText_do.getStyle().fontSmoothing="antialiased",a.embedText_do.getStyle().webkitFontSmoothing="antialiased",a.embedText_do.getStyle().textRendering="optimizeLegibility",a.embedText_do.getStyle().backgroundColor=a.inputBackgroundColor_str,a.embedText_do.getStyle().padding="6px",a.embedText_do.getStyle().paddingTop="4px",a.embedText_do.getStyle().paddingBottom="4px",a.embedText_do.screen.onclick=t,FWDEVPSimpleSizeButton.setPrototype(),a.copyLinkButton_do=new FWDEVPSimpleSizeButton(e.embedCopyButtonNPath_str,e.embedCopyButtonSPath_str,a.buttonWidth,a.buttonHeight,e.useHEXColorsForSkin_bl,e.normalButtonsColor_str,e.selectedButtonsColor_str),a.copyLinkButton_do.screen.style.position="absolute",a.copyLinkButton_do.addListener(FWDEVPSimpleSizeButton.CLICK,function(){a.copyToClipboard(a.linkText_do.screen)}),FWDEVPSimpleSizeButton.setPrototype(),a.copyEmbedButton_do=new FWDEVPSimpleSizeButton(e.embedCopyButtonNPath_str,e.embedCopyButtonSPath_str,a.buttonWidth,a.buttonHeight,e.useHEXColorsForSkin_bl,e.normalButtonsColor_str,e.selectedButtonsColor_str),a.copyEmbedButton_do.screen.style.position="absolute",a.copyEmbedButton_do.addListener(FWDEVPSimpleSizeButton.CLICK,function(){a.copyToClipboard(a.embedText_do.screen)}),a.sendMainHolder_do=new FWDEVPDisplayObject("div"),a.sendMainHolderBk_do=new FWDEVPDisplayObject("div"),a.sendMainHolderBk_do.getStyle().background="url('"+a.embedWindowBackground_str+"')",a.sendMainHolderBk_do.getStyle().borderStyle="solid",a.sendMainHolderBk_do.getStyle().borderWidth="1px",a.sendMainHolderBk_do.getStyle().borderColor=a.borderColor_str,a.sendMainLabel_do=new FWDEVPDisplayObject("div"),a.sendMainLabel_do.setBackfaceVisibility(),a.sendMainLabel_do.getStyle().fontFamily="Arial",a.sendMainLabel_do.getStyle().fontSize="12px",a.sendMainLabel_do.getStyle().color=a.mainLabelsColor_str,a.sendMainLabel_do.getStyle().whiteSpace="nowrap",a.sendMainLabel_do.getStyle().fontSmoothing="antialiased",a.sendMainLabel_do.getStyle().webkitFontSmoothing="antialiased",a.sendMainLabel_do.getStyle().textRendering="optimizeLegibility",a.sendMainLabel_do.getStyle().padding="0px",a.sendMainLabel_do.setInnerHTML("SEND TO A FRIEND"),a.yourEmailLabel_do=new FWDEVPDisplayObject("div"),a.yourEmailLabel_do.setBackfaceVisibility(),a.yourEmailLabel_do.getStyle().fontFamily="Arial",a.yourEmailLabel_do.getStyle().fontSize="12px",a.yourEmailLabel_do.getStyle().color=a.secondaryLabelsColor_str,a.yourEmailLabel_do.getStyle().whiteSpace="nowrap",a.yourEmailLabel_do.getStyle().fontSmoothing="antialiased",a.yourEmailLabel_do.getStyle().webkitFontSmoothing="antialiased",a.yourEmailLabel_do.getStyle().textRendering="optimizeLegibility",a.yourEmailLabel_do.getStyle().padding="0px",a.yourEmailLabel_do.setInnerHTML("Your email:"),a.yourEmailInput_do=new FWDEVPDisplayObject("input"),a.yourEmailInput_do.setBackfaceVisibility(),a.yourEmailInput_do.getStyle().fontFamily="Arial",a.yourEmailInput_do.getStyle().fontSize="12px",a.yourEmailInput_do.getStyle().backgroundColor=a.inputBackgroundColor_str,a.yourEmailInput_do.getStyle().color=a.inputColor_str,a.yourEmailInput_do.getStyle().outline=0,a.yourEmailInput_do.getStyle().whiteSpace="nowrap",a.yourEmailInput_do.getStyle().fontSmoothing="antialiased",a.yourEmailInput_do.getStyle().webkitFontSmoothing="antialiased",a.yourEmailInput_do.getStyle().textRendering="optimizeLegibility",a.yourEmailInput_do.getStyle().padding="6px",a.yourEmailInput_do.getStyle().paddingTop="4px",a.yourEmailInput_do.getStyle().paddingBottom="4px",a.friendEmailLabel_do=new FWDEVPDisplayObject("div"),a.friendEmailLabel_do.setBackfaceVisibility(),a.friendEmailLabel_do.getStyle().fontFamily="Arial",a.friendEmailLabel_do.getStyle().fontSize="12px",a.friendEmailLabel_do.getStyle().color=a.secondaryLabelsColor_str,a.friendEmailLabel_do.getStyle().whiteSpace="nowrap",a.friendEmailLabel_do.getStyle().fontSmoothing="antialiased",a.friendEmailLabel_do.getStyle().webkitFontSmoothing="antialiased",a.friendEmailLabel_do.getStyle().textRendering="optimizeLegibility",a.friendEmailLabel_do.getStyle().padding="0px",a.friendEmailLabel_do.setInnerHTML("Your friend's email:"),a.friendEmailInput_do=new FWDEVPDisplayObject("input"),a.friendEmailInput_do.setBackfaceVisibility(),a.friendEmailInput_do.getStyle().fontFamily="Arial",a.friendEmailInput_do.getStyle().fontSize="12px",a.friendEmailInput_do.getStyle().backgroundColor=a.inputBackgroundColor_str,a.friendEmailInput_do.getStyle().color=a.inputColor_str,a.friendEmailInput_do.getStyle().outline=0,a.friendEmailInput_do.getStyle().whiteSpace="nowrap",a.friendEmailInput_do.getStyle().fontSmoothing="antialiased",a.friendEmailInput_do.getStyle().webkitFontSmoothing="antialiased",a.friendEmailInput_do.getStyle().textRendering="optimizeLegibility",a.friendEmailInput_do.getStyle().padding="6px",a.friendEmailInput_do.getStyle().paddingTop="4px",a.friendEmailInput_do.getStyle().paddingBottom="4px",FWDEVPSimpleSizeButton.setPrototype(),a.sendButton_do=new FWDEVPSimpleSizeButton(a.sendButtonNPath_str,a.sendButtonSPath_str,a.buttonWidth,a.buttonHeight,e.useHEXColorsForSkin_bl,e.normalButtonsColor_str,e.selectedButtonsColor_str),a.sendButton_do.addListener(FWDEVPSimpleSizeButton.CLICK,a.sendClickHandler),a.infoText_do=new FWDEVPDisplayObject("div"),a.infoText_do.setBackfaceVisibility(),a.infoText_do.getStyle().fontFamily="Arial",a.infoText_do.getStyle().fontSize="12px",a.infoText_do.getStyle().color=a.secondaryLabelsColor_str,a.infoText_do.getStyle().whiteSpace="nowrap",a.infoText_do.getStyle().fontSmoothing="antialiased",a.infoText_do.getStyle().webkitFontSmoothing="antialiased",a.infoText_do.getStyle().textRendering="optimizeLegibility",a.infoText_do.getStyle().padding="0px",a.infoText_do.getStyle().paddingTop="4px",a.infoText_do.getStyle().textAlign="center",a.infoText_do.getStyle().color=a.mainLabelsColor_str,a.useVectorIcons_bl?(FWDEVPSimpleButton.setPrototype(),a.closeButton_do=new FWDEVPSimpleButton(void 0,void 0,void 0,!0,void 0,void 0,void 0,"<div class='table-fwdevp-button'><span class='table-cell-fwdevp-button icon-close'></span></div>",void 0,"EVPCloseButtonNormalState","EVPCloseButtonSelectedState")):(FWDEVPSimpleButton.setPrototype(),a.closeButton_do=new FWDEVPSimpleButton(e.embedClooseN_img,e.embedWindowClosePathS_str,void 0,!0,e.useHEXColorsForSkin_bl,e.normalButtonsColor_str,e.selectedButtonsColor_str)),a.closeButton_do.addListener(FWDEVPSimpleButton.MOUSE_UP,a.closeButtonOnMouseUpHandler),a.addChild(a.mainHolder_do),a.mainHolder_do.addChild(a.bk_do),a.linkAndEmbedHolder_do.addChild(a.linkAndEmbedHolderBk_do),a.linkAndEmbedHolder_do.addChild(a.embedAndLinkMainLabel_do),a.linkAndEmbedHolder_do.addChild(a.linkLabel_do),a.linkAndEmbedHolder_do.addChild(a.linkText_do),a.linkAndEmbedHolder_do.addChild(a.embedLabel_do),a.linkAndEmbedHolder_do.addChild(a.embedText_do),a.linkAndEmbedHolder_do.addChild(a.copyLinkButton_do),a.linkAndEmbedHolder_do.addChild(a.copyEmbedButton_do),a.sendMainHolder_do.addChild(a.sendMainHolderBk_do),a.sendMainHolder_do.addChild(a.sendMainLabel_do),a.sendMainHolder_do.addChild(a.yourEmailLabel_do),a.sendMainHolder_do.addChild(a.yourEmailInput_do),a.sendMainHolder_do.addChild(a.friendEmailLabel_do),a.sendMainHolder_do.addChild(a.friendEmailInput_do),a.sendMainHolder_do.addChild(a.sendButton_do),a.mainHolder_do.addChild(a.linkAndEmbedHolder_do),a.mainHolder_do.addChild(a.sendMainHolder_do),a.mainHolder_do.addChild(a.closeButton_do))},this.closeButtonOnMouseUpHandler=function(){a.isShowed_bl&&a.hide()},this.copyToClipboard=function(e){t(e),document.execCommand ("copy")},this.positionAndResize=function(){a.stageWidth=l.stageWidth,a.stageHeight=l.stageHeight,a.maxTextWidth=Math.min(a.stageWidth-150,500),a.totalWidth=a.maxTextWidth+a.buttonWidth+40,a.isMobile_bl?(a.linkText_do.setWidth(a.maxTextWidth+52),a.embedText_do.setWidth(a.maxTextWidth+52)):(a.linkText_do.setWidth(a.maxTextWidth),a.embedText_do.setWidth(a.maxTextWidth)),a.positionFinal(),a.closeButton_do.setX(a.stageWidth-a.closeButton_do.w-a.embedWindowCloseButtonMargins),a.closeButton_do.setY(a.embedWindowCloseButtonMargins),a.setWidth(a.stageWidth),a.setHeight(a.stageHeight),a.mainHolder_do.setWidth(a.stageWidth),a.mainHolder_do.setHeight(a.stageHeight)},this.positionFinal=function(){var e,t,o,s,i,n,l,r=!1;a.stageHeight<360||a.stageWidth<350?(a.linkText_do.getStyle().whiteSpace="nowrap",a.embedText_do.getStyle().whiteSpace="nowrap"):(a.linkText_do.getStyle().whiteSpace="normal",a.embedText_do.getStyle().whiteSpace="normal"),a.linkLabel_do.screen.offsetHeight<6&&(r=!0),t=r?Math.round(100*a.embedAndLinkMainLabel_do.screen.getBoundingClientRect().height):a.embedAndLinkMainLabel_do.getHeight(),a.embedAndLinkMainLabel_do.setX(16),a.linkLabel_do.setX(16),a.linkLabel_do.setY(t+14),s=r?(o=Math.round(100*a.linkLabel_do.screen.getBoundingClientRect().height),Math.round(100*a.linkText_do.screen.getBoundingClientRect().height)):(o=a.linkLabel_do.getHeight(),a.linkText_do.getHeight()),a.linkText_do.setX(10),a.linkText_do.setY(a.linkLabel_do.y+o+5),a.isMobile_bl?a.copyLinkButton_do.setX(-100):a.copyLinkButton_do.setX(a.maxTextWidth+30),a.copyLinkButton_do.setY(a.linkText_do.y+s-a.buttonHeight),a.embedLabel_do.setX(16),a.embedLabel_do.setY(a.copyLinkButton_do.y+a.copyLinkButton_do.h+14),i=r?Math.round(100*a.embedText_do.screen.getBoundingClientRect().height):a.embedText_do.getHeight(),a.embedText_do.setX(10),a.embedText_do.setY(a.embedLabel_do.y+o+5),a.isMobile_bl?a.copyEmbedButton_do.setX(-100):a.copyEmbedButton_do.setX(a.maxTextWidth+30),a.copyEmbedButton_do.setY(a.embedText_do.y+i-a.buttonHeight),a.linkAndEmbedHolderBk_do.setY(a.linkLabel_do.y-9),a.linkAndEmbedHolderBk_do.setWidth(a.totalWidth-2),a.linkAndEmbedHolderBk_do.setHeight(a.embedText_do.y+i-9),a.linkAndEmbedHolder_do.setWidth(a.totalWidth),a.linkAndEmbedHolder_do.setHeight(a.embedText_do.y+i+14),l=r?(n=Math.round(100*a.sendMainLabel_do.screen.getBoundingClientRect().height),Math.round(100*a.yourEmailInput_do.screen.getBoundingClientRect().height)):(n=a.sendMainLabel_do.getHeight(),a.yourEmailInput_do.getHeight()),a.sendMainLabel_do.setX(16),a.yourEmailLabel_do.setX(16),a.yourEmailLabel_do.setY(n+14),400<a.stageWidth?(a.yourEmailInput_do.setX(10),a.yourEmailInput_do.setWidth(parseInt(a.totalWidth-52-a.buttonWidth)/2),a.yourEmailInput_do.setY(a.yourEmailLabel_do.y+o+5),a.friendEmailLabel_do.setX(a.yourEmailInput_do.x+a.yourEmailInput_do.w+26),a.friendEmailLabel_do.setY(a.yourEmailLabel_do.y),a.friendEmailInput_do.setX(a.yourEmailInput_do.x+a.yourEmailInput_do.w+20),a.friendEmailInput_do.setWidth(parseInt((a.maxTextWidth-30)/2)),a.friendEmailInput_do.setY(a.yourEmailLabel_do.y+o+5),a.sendButton_do.setX(a.friendEmailInput_do.x+a.yourEmailInput_do.w+10),a.sendButton_do.setY(a.friendEmailInput_do.y+l-a.buttonHeight)):(a.yourEmailInput_do.setX(10),a.yourEmailInput_do.setWidth(a.totalWidth-32),a.yourEmailInput_do.setY(a.yourEmailLabel_do.y+o+5),a.friendEmailLabel_do.setX(16),a.friendEmailLabel_do.setY(a.yourEmailInput_do.y+l+14),a.friendEmailInput_do.setX(10),a.friendEmailInput_do.setY(a.friendEmailLabel_do.y+o+5),a.friendEmailInput_do.setWidth(a.totalWidth-32),a.sendButton_do.setX(a.totalWidth-a.buttonWidth-10),a.sendButton_do.setY(a.friendEmailInput_do.y+l+10)),a.sendMainHolderBk_do.setY(a.yourEmailLabel_do.y-9),a.sendMainHolderBk_do.setWidth(a.totalWidth-2),a.sendMainHolderBk_do.setHeight(a.sendButton_do.y+a.sendButton_do.h-9),a.sendMainHolder_do.setWidth(a.totalWidth),a.sendMainHolder_do.setHeight(a.sendButton_do.y+a.sendButton_do.h+14),e=r?Math.round(100*a.linkAndEmbedHolder_do.screen.getBoundingClientRect().height+100*a.sendMainHolder_do.screen.getBoundingClientRect().height):a.linkAndEmbedHolder_do.getHeight()+a.sendMainHolder_do.getHeight(),a.linkAndEmbedHolder_do.setX(parseInt((a.stageWidth-a.totalWidth)/2)),a.linkAndEmbedHolder_do.setY(parseInt((a.stageHeight-e)/2)-8),a.sendMainHolder_do.setX(parseInt((a.stageWidth-a.totalWidth)/2)),r?a.sendMainHolder_do.setY(Math.round(a.linkAndEmbedHolder_do.y+100*a.linkAndEmbedHolder_do.screen.getBoundingClientRect().height+20)):a.sendMainHolder_do.setY(a.linkAndEmbedHolder_do.y+a.linkAndEmbedHolder_do.getHeight()+20)},this.sendClickHandler=function(){var e=!1;if(!a.getValidEmail(a.yourEmailInput_do.screen.value)){if(FWDAnimation.isTweening(a.yourEmailInput_do.screen))return;FWDAnimation.to(a.yourEmailInput_do.screen,.1,{css:{backgroundColor:"#FF0000"},yoyo:!0,repeat:3}),e=!0}if(!a.getValidEmail(a.friendEmailInput_do.screen.value)){if(FWDAnimation.isTweening(a.friendEmailInput_do.screen))return;FWDAnimation.to(a.friendEmailInput_do.screen,.1,{css:{backgroundColor:"#FF0000"},yoyo:!0,repeat:3}),e=!0}e||a.sendEmail()},this.updateHEXColors=function(e,t){a.copyEmbedButton_do&&(a.copyEmbedButton_do.updateHEXColors(e,t),a.copyLinkButton_do.updateHEXColors(e,t),a.sendButton_do.updateHEXColors(e,t),a.closeButton_do.updateHEXColors(e,t))},this.sendEmail=function(){if(!a.isSending_bl){a.isSending_bl=!0,a.xhr=new XMLHttpRequest,a.xhr.onreadystatechange=a.onChange,a.xhr.onerror=a.ajaxOnErrorHandler;try{a.xhr.open("get",a.sendToAFriendPath_str+"?friendMail="+a.friendEmailInput_do.screen.value+"&yourMail="+a.yourEmailInput_do.screen.value+"&link="+encodeURIComponent(a.linkToVideo_str),!0),a.xhr.send()}catch(e){a.showInfo("ERROR",!0),console&&console.log(e),e.message&&console.log(e.message)}a.resetInputs()}},this.ajaxOnErrorHandler=function(e){a.showInfo("ERROR",!0);try{s.console&&console.log(e),s.console&&console.log(e.message)}catch(e){}a.isSending_bl=!1},this.onChange=function(e){4==a.xhr.readyState&&200==a.xhr.status&&("sent"==a.xhr.responseText?a.showInfo("SENT"):(a.showInfo("ERROR",!0),s.console&&console.log("Error The server can't send the email!")),a.isSending_bl=!1)},this.resetInputs=function(){a.yourEmailInput_do.screen.value="",a.friendEmailInput_do.screen.value=""},this.getValidEmail=function(e){return!(!/^([\w-\.]+@([\w-]+\.)+[\w-]{2,4})?$/.test(e)||""==e)},this.setEmbedData=function(){var e=location.href,t=location.protocol+"//"+location.host,o=location.pathname,s=location.hash,i=location.search,n=t+o;i=i.replace(/&?EVPInstanceName=.+/g,""),s=s.replace(/&?EVPInstanceName=.+/g,""),e=e.replace(/&?EVPInstanceName=.+/g,""),"?"==i&&(i=null),a.linkToVideo_str=i?s?(a.finalEmbedPath_str=n+i+s+"&EVPInstanceName="+l.instanceName_str,n+i+s):(a.finalEmbedPath_str=n+i+"&EVPInstanceName="+l.instanceName_str,n+i):s?(a.finalEmbedPath_str=n+s+"?EVPInstanceName="+l.instanceName_str,n+s):(a.finalEmbedPath_str=n+"?EVPInstanceName="+l.instanceName_str,n),a.finalEmbedPath_str=encodeURI(a.finalEmbedPath_str),a.linkToVideo_str=encodeURI(a.linkToVideo_str),a.finalEmbedCode_str="<iframe src='"+a.finalEmbedPath_str+"' width='"+l.stageWidth+"' height='"+l.stageHeight+"' frameborder='0' scrolling='no' allowfullscreen></iframe>",FWDEVPUtils.isIE?(a.linkText_do.screen.innerText=a.linkToVideo_str,a.embedText_do.screen.innerText=a.finalEmbedCode_str):(a.linkText_do.screen.textContent=a.linkToVideo_str,a.embedText_do.screen.textContent=a.finalEmbedCode_str)},this.showInfo=function(e,t){a.infoText_do.setInnerHTML(e),a.sendMainHolder_do.addChild(a.infoText_do),a.infoText_do.setWidth(a.buttonWidth),a.infoText_do.setHeight(a.buttonHeight-4),a.infoText_do.setX(a.sendButton_do.x),a.infoText_do.setY(a.sendButton_do.y-23),a.infoText_do.setAlpha(0),a.infoText_do.getStyle().color=t?"#FF0000":a.mainLabelsColor_str,FWDAnimation.killTweensOf(a.infoText_do),FWDAnimation.to(a.infoText_do,.16,{alpha:1,yoyo:!0,repeat:7})},this.show=function(e){a.isShowed_bl||(a.isShowed_bl=!0,l.main_do.addChild(a),a.init(),a.resetInputs(),a.setEmbedData(),(!FWDEVPUtils.isMobile||FWDEVPUtils.isMobile&&FWDEVPUtils.hasPointerEvent)&&l.main_do.setSelectable(!0),a.useVectorIcons_bl?a.checkButtonsId_to=setInterval(function(){0!=a.closeButton_do.w&&(a.positionAndResize(),clearInterval(a.checkButtonsId_to),clearTimeout(a.hideCompleteId_to),clearTimeout(a.showCompleteId_to),a.mainHolder_do.setY(-a.stageHeight),a.showCompleteId_to=setTimeout(a.showCompleteHandler,900),setTimeout(function(){FWDAnimation.to(a.mainHolder_do,.8,{y:0,delay:.1,ease:Expo.easeInOut})},100))},50):(a.positionAndResize(),clearTimeout(a.hideCompleteId_to),clearTimeout(a.showCompleteId_to),a.mainHolder_do.setY(-a.stageHeight),a.showCompleteId_to=setTimeout(a.showCompleteHandler,900),setTimeout(function(){FWDAnimation.to(a.mainHolder_do,.8,{y:0,delay:.1,ease:Expo.easeInOut})},100)))},this.showCompleteHandler=function(){},this.hide=function(){a.isShowed_bl&&(a.isShowed_bl=!1,l.customContextMenu_do&&l.customContextMenu_do.enable(),a.positionAndResize(),clearTimeout(a.hideCompleteId_to),clearTimeout(a.showCompleteId_to),(!FWDEVPUtils.isMobile||FWDEVPUtils.isMobile&&FWDEVPUtils.hasPointerEvent)&&l.main_do.setSelectable(!1),a.hideCompleteId_to=setTimeout(a.hideCompleteHandler,800),FWDAnimation.killTweensOf(a.mainHolder_do),FWDAnimation.to(a.mainHolder_do,.8,{y:-a.stageHeight,ease:Expo.easeInOut}))},this.hideCompleteHandler=function(){l.main_do.removeChild(a),a.dispatchEvent(o.HIDE_COMPLETE)}};o.setPrototype=function(){o.prototype=new FWDEVPDisplayObject("div")},o.ERROR="error",o.HIDE_COMPLETE="hideComplete",o.prototype=null,s.FWDEVPEmbedWindow=o}(window),window,window.FWDEVPEventDispatcher=function(){this.listeners={events_ar:[]},this.addListener=function(e,t){if(null==e)throw Error("type is required.");if("object"==typeof e)throw Error("type must be of type String.");if("function"!=typeof t)throw Error("listener must be of type Function.");var o={};o.type=e,o.listener=t,(o.target=this).listeners.events_ar.push(o)},this.dispatchEvent=function(e,t){if(null!=this.listeners){if(null==e)throw Error("type is required.");if("object"==typeof e)throw Error("type must be of type String.");for(var o=0,s=this.listeners.events_ar.length;o<s;o++)if(this.listeners.events_ar[o].target===this&&this.listeners.events_ar[o].type===e){if(t)for(var i in t)this.listeners.events_ar[o][i]=t[i];this.listeners.events_ar[o].listener.call(this,this.listeners.events_ar[o])}}},this.removeListener=function(e,t){if(null==e)throw Error("type is required.");if("object"==typeof e)throw Error("type must be of type String.");if("function"!=typeof t)throw Error("listener must be of type Function."+e);for(var o=0,s=this.listeners.events_ar.length;o<s;o++)if(this.listeners.events_ar[o].target===this&&this.listeners.events_ar[o].type===e&&this.listeners.events_ar[o].listener===t){this.listeners.events_ar.splice(o,1);break}},this.destroy=function(){this.listeners=null,this.addListener=null,this.dispatchEvent=null,this.removeListener=null}},function(i){var t=function(e){var s=this;t.prototype;this.appId=parseInt(e);s.init=function(){s.checkFBRoot(),i.fbAsyncInit||s.connect()},this.checkFBRoot=function(){var e=Boolean(document.getElementById("fb-root"));e||((e=document.createElement("div")).id="fb-root",document.getElementsByTagName("body")[0].appendChild(e))},this.connect=function(){var e,t,o;s.hasStartedToConnect_bl||(s.hasStartedToConnect_bl=!0,i.fbAsyncInit=function(){FB.init({appId:s.appId,status:!0,cookie:!0,xfbml:!0,oauth:!0}),FB.Event.subscribe("auth.authResponseChange",function(e){"connected"===e.status||FB.login()})},e=document,o="facebook-jssdk",e.getElementById(o)||((t=e.createElement("script")).id=o,t.async=!0,t.src="//connect.facebook.net/en_US/all.js",e.getElementsByTagName("body")[0].appendChild(t)))},this.share=function(e,t,o){FB.ui({method:"feed",link:e,caption:t,picture:o},function(e){})},s.init()};t.setPrototype=function(){t.prototype=new FWDEVPEventDispatcher},t.prototype=null,i.FWDEVPFacebookShare=t}(window);var FWDEVPFlashTest=function(){var u="undefined",h="object",_="Shockwave Flash",c="application/x-shockwave-flash",f=window,p=document,b=navigator,s=function(){var e=typeof p.getElementById!=u&&typeof p.getElementsByTagName!=u&&typeof p.createElement!=u,t=b.userAgent.toLowerCase(),o=b.platform.toLowerCase(),s=/win/.test(o||t),i=/mac/.test(o||t),n=!!/webkit/.test(t)&&parseFloat(t.replace(/^.*webkit\/(\d+(\.\d+)?).*$/,"$1")),l=!1,r=[0,0,0],a=null;if(typeof b.plugins!=u&&typeof b.plugins[_]==h)!(a=b.plugins[_].description)||typeof b.mimeTypes!=u&&b.mimeTypes[c]&&!b.mimeTypes[c].enabledPlugin||(l=!!0,a=a.replace(/^.*\s+(\S+\s+\S+$)/,"$1"),r[0]=parseInt(a.replace(/^(.*)\..*$/,"$1"),10),r[1]=parseInt(a.replace(/^.*\.(.*)\s.*$/,"$1"),10),r[2]=/[a-zA-Z]/.test(a)?parseInt(a.replace(/^.*[a-zA-Z]+(.*)$/,"$1"),10):0);else if(typeof f.ActiveXObject!=u)try{var d=new ActiveXObject("ShockwaveFlash.ShockwaveFlash");d&&(a=d.GetVariable("$version"))&&(l=!0,a=a.split(" ")[1].split(","),r=[parseInt(a[0],10),parseInt(a[1],10),parseInt(a[2],10)])}catch(e){}return{w3:e,pv:r,wk:n,ie:l,win:s,mac:i}}();function e(e){var t=s.pv,o=e.split(".");return o[0]=parseInt(o[0],10),o[1]=parseInt(o[1],10)||0,o[2]=parseInt(o[2],10)||0,t[0]>o[0]||t[0]==o[0]&&t[1]>o[1]||t[0]==o[0]&&t[1]==o[1]&&t[2]>=o[2]}return{hasFlashPlayerVersion:e}}();!function(n){var l=function(e,t,o){var s=this,i=l.prototype;this.screenToTest=e,this.screenToTest2=t,this.hideDelay=o,this.globalX=0,this.globalY=0,this.currentTime,this.checkIntervalId_int,this.hideCompleteId_to,this.hasInitialTestEvents_bl=!1,this.addSecondTestEvents_bl=!1,this.dispatchOnceShow_bl=!0,this.dispatchOnceHide_bl=!1,this.isStopped_bl=!0,this.isMobile_bl=FWDEVPUtils.isMobile,this.hasPointerEvent_bl=FWDEVPUtils.hasPointerEvent,s.init=function(){},s.start=function(){s.currentTime=(new Date).getTime(),clearInterval(s.checkIntervalId_int),s.checkIntervalId_int=setInterval(s.update,100),s.addMouseOrTouchCheck(),s.isStopped_bl=!1},s.stop=function(){clearInterval(s.checkIntervalId_int),s.isStopped_bl=!0,s.removeMouseOrTouchCheck(),s.removeMouseOrTouchCheck2()},s.addMouseOrTouchCheck=function(){s.hasInitialTestEvents_bl||(s.hasInitialTestEvents_bl=!0,s.isMobile_bl?s.hasPointerEvent_bl?(s.screenToTest.screen.addEventListener("pointerdown",s.onMouseOrTouchUpdate),s.screenToTest.screen.addEventListener("MSPointerMove",s.onMouseOrTouchUpdate)):(s.screenToTest.screen.addEventListener("touchstart",s.onMouseOrTouchUpdate),s.screenToTest.screen.addEventListener("touchend",s.onMouseOrTouchEndUpdate)):n.addEventListener?n.addEventListener("mousemove",s.onMouseOrTouchUpdate):document.attachEvent&&document.attachEvent("onmousemove",s.onMouseOrTouchUpdate))},s.removeMouseOrTouchCheck=function(){s.hasInitialTestEvents_bl&&(s.hasInitialTestEvents_bl=!1,s.isMobile_bl?s.hasPointerEvent_bl?(s.screenToTest.screen.removeEventListener("pointerdown",s.onMouseOrTouchUpdate),s.screenToTest.screen.removeEventListener("MSPointerMove",s.onMouseOrTouchUpdate)):s.screenToTest.screen.removeEventListener("touchstart",s.onMouseOrTouchUpdate):n.removeEventListener?n.removeEventListener("mousemove",s.onMouseOrTouchUpdate):document.detachEvent&&document.detachEvent("onmousemove",s.onMouseOrTouchUpdate))},s.addMouseOrTouchCheck2=function(){s.addSecondTestEvents_bl||(s.addSecondTestEvents_bl=!0,s.screenToTest.screen.addEventListener?s.screenToTest.screen.addEventListener("mousemove",s.secondTestMoveDummy):s.screenToTest.screen.attachEvent&&s.screenToTest.screen.attachEvent("onmousemove",s.secondTestMoveDummy))},s.removeMouseOrTouchCheck2=function(){s.addSecondTestEvents_bl&&(s.addSecondTestEvents_bl=!1,s.screenToTest.screen.removeEventListener?s.screenToTest.screen.removeEventListener("mousemove",s.secondTestMoveDummy):s.screenToTest.screen.detachEvent&&s.screenToTest.screen.detachEvent("onmousemove",s.secondTestMoveDummy))},this.secondTestMoveDummy=function(){s.removeMouseOrTouchCheck2(),s.addMouseOrTouchCheck()},s.onMouseOrTouchEndUpdate=function(){s.globalX=-200},s.onMouseOrTouchUpdate=function(e){var t=FWDEVPUtils.getViewportMouseCoordinates(e);s.globalX!=t.screenX&&s.globalY!=t.screenY&&(s.currentTime=(new Date).getTime()),s.globalX=t.screenX,s.globalY=t.screenY,s.isMobile_bl||FWDEVPUtils.hitTest(s.screenToTest.screen,s.globalX,s.globalY)||(s.removeMouseOrTouchCheck(),s.addMouseOrTouchCheck2())},s.update=function(e){(new Date).getTime()>s.currentTime+s.hideDelay?s.dispatchOnceShow_bl&&(s.dispatchOnceHide_bl=!0,s.dispatchOnceShow_bl=!1,s.dispatchEvent(l.HIDE),clearTimeout(s.hideCompleteId_to),s.hideCompleteId_to=setTimeout(function(){s.dispatchEvent(l.HIDE_COMPLETE)},1e3)):s.dispatchOnceHide_bl&&(clearTimeout(s.hideCompleteId_to),s.dispatchOnceHide_bl=!1,s.dispatchOnceShow_bl=!0,s.dispatchEvent(l.SHOW))},s.reset=function(){clearTimeout(s.hideCompleteId_to),s.currentTime=(new Date).getTime(),s.dispatchEvent(l.SHOW)},s.destroy=function(){s.removeMouseOrTouchCheck(),clearInterval(s.checkIntervalId_int),s.screenToTest=null,e=null,s.init=null,s.start=null,s.stop=null,s.addMouseOrTouchCheck=null,s.removeMouseOrTouchCheck=null,s.onMouseOrTouchUpdate=null,s.update=null,s.reset=null,s.destroy=null,i.destroy(),s=i=null,l.prototype=null},s.init()};l.HIDE="hide",l.SHOW="show",l.HIDE_COMPLETE="hideComplete",l.setPrototype=function(){l.prototype=new FWDEVPEventDispatcher},n.FWDEVPHider=l}(window),function(e){var o=function(i,e,t){var n=this;o.prototype;this.bk_do=null,this.textHolder_do=null,this.warningIconPath_str=e,this.showErrorInfo_bl=t,this.show_to=null,this.isShowed_bl=!1,this.isShowedOnce_bl=!1,this.allowToRemove_bl=!0,this.init=function(){n.setResizableSizeAfterParent(),n.bk_do=new FWDEVPDisplayObject("div"),n.bk_do.setAlpha(.2),n.bk_do.setBkColor("#000000"),n.addChild(n.bk_do),n.textHolder_do=new FWDEVPDisplayObject("div"),FWDEVPUtils.isIEAndLessThen9||(n.textHolder_do.getStyle().font="Arial"),n.textHolder_do.getStyle().wordWrap="break-word",n.textHolder_do.getStyle().padding="10px",n.textHolder_do.getStyle().paddingLeft="42px",n.textHolder_do.getStyle().lineHeight="18px",n.textHolder_do.getStyle().color="#000000",n.textHolder_do.setBkColor("#EEEEEE");var e=new Image;e.src=this.warningIconPath_str,this.img_do=new FWDEVPDisplayObject("img"),this.img_do.setScreen(e),this.img_do.setWidth(28),this.img_do.setHeight(28),n.addChild(n.textHolder_do),n.addChild(n.img_do)},this.showText=function(e){n.isShowedOnce_bl||(n.hasPointerEvent_bl?n.screen.addEventListener("pointerdown",n.closeWindow):(n.screen.addEventListener("mousedown",n.closeWindow),n.screen.addEventListener("touchstart",n.closeWindow)),n.isShowedOnce_bl=!0),n.setVisible(!1),n.textHolder_do.getStyle().paddingBottom="10px",n.textHolder_do.setInnerHTML(e),clearTimeout(n.show_to),n.show_to=setTimeout(n.show,60),setTimeout(function(){n.positionAndResize()},10)},this.show=function(){var e=Math.min(640,i.stageWidth-120);n.isShowed_bl=!0,n.textHolder_do.setWidth(e),setTimeout(function(){n.showErrorInfo_bl&&n.setVisible(!0),n.positionAndResize()},100)},this.positionAndResize=function(){var e=n.textHolder_do.getWidth(),t=n.textHolder_do.getHeight(),o=parseInt((i.stageWidth-e)/2),s=parseInt((i.stageHeight-t)/2);n.bk_do.setWidth(i.stageWidth),n.bk_do.setHeight(i.stageHeight),n.textHolder_do.setX(o),n.textHolder_do.setY(s),n.img_do.setX(o+6),n.img_do.setY(s+parseInt((n.textHolder_do.getHeight()-n.img_do.h)/2))},this.closeWindow=function(){if(n.allowToRemove_bl){n.isShowed_bl=!1,clearTimeout(n.show_to);try{i.main_do.removeChild(n)}catch(e){}}},this.init()};o.setPrototype=function(){o.prototype=new FWDEVPDisplayObject("div","relative")},o.prototype=null,e.FWDEVPInfo=o}(window),function(window){"use strict";var FWDEVPlayer=function(props){var self=this,recoverDecodingErrorDate,recoverSwapAudioCodecDate;function handleMediaError(){if(autoRecoverError){var e=performance.now();!recoverDecodingErrorDate||3e3<e-recoverDecodingErrorDate?(recoverDecodingErrorDate=performance.now(),self.HLSError_str="try to recover media Error ...",self.hlsJS.recoverMediaError()):!recoverSwapAudioCodecDate||3e3<e-recoverSwapAudioCodecDate?(recoverSwapAudioCodecDate=performance.now(),self.HLSError_str="try to swap Audio Codec and recover media Error ...",self.hlsJS.swapAudioCodec(),self.hlsJS.recoverMediaError()):self.HLSError_str="cannot recover, last media error recovery failed ..."}self.HLSError_str&&(console&&console.log(self.HLSError_str),self.info_do.allowToRemove_bl=!1,self.main_do.addChild(self.info_do),self.info_do.showText(self.HLSError_str),self.resizeHandler())}this.props=props,this.isInstantiate_bl=!1,this.displayType=props.displayType||FWDEVPlayer.RESPONSIVE,self.displayType.toLowerCase()!=FWDEVPlayer.RESPONSIVE&&self.displayType.toLowerCase()!=FWDEVPlayer.FULL_SCREEN&&self.displayType.toLowerCase()!=FWDEVPlayer.AFTER_PARENT&&self.displayType.toLowerCase()!=FWDEVPlayer.STICKY&&self.displayType.toLowerCase()!=FWDEVPlayer.LIGHTBOX&&(self.displayType=FWDEVPlayer.RESPONSIVE),props.displayType.toLowerCase()==FWDEVPlayer.BACKGROUND_VIDEO&&(self.displayType=FWDEVPlayer.BACKGROUND_VIDEO),self.displayType=self.displayType.toLowerCase(),"pause"!=FWDEVPlayer.videoStartBehaviour&&"stop"!=FWDEVPlayer.videoStartBehaviour&&"default"!=FWDEVPlayer.videoStartBehaviour&&(FWDEVPlayer.videoStartBehaviour="pause"),this.stickyOnScroll=props.stickyOnScroll||"no",this.stickyOnScroll="yes"==self.stickyOnScroll,self.displayType!=FWDEVPlayer.RESPONSIVE&&(this.stickyOnScroll=!1),self.isMinShowed=!0,self.stickyOnScrollWidth=props.stickyOnScrollWidth||700,self.stickyOnScrollHeight=props.stickyOnScrollHeight||394,this.maxWidth=props.maxWidth||640,this.maxHeight=props.maxHeight||380,self.showPreloader_bl=props.showPreloader,self.showPreloader_bl="no"!=self.showPreloader_bl,this.disableDoubleClickFullscreen_bl=props.disableDoubleClickFullscreen||"no",this.disableDoubleClickFullscreen_bl="yes"==this.disableDoubleClickFullscreen_bl,self.mainFolderPath_str=props.mainFolderPath,self.mainFolderPath_str.lastIndexOf("/")+1!=self.mainFolderPath_str.length&&(self.mainFolderPath_str+="/"),FWDEVPlayer.iFrame||FWDEVPUtils.isMobile||!FWDEVPUtils.isChrome||(FWDEVPlayer.iFrame=document.createElement("iframe"),FWDEVPlayer.iFrame.src=self.mainFolderPath_str+"audio/silent.mp3",FWDEVPlayer.iFrame.style.position="absolute",FWDEVPlayer.iFrame.style.top="-500px",document.documentElement.appendChild(FWDEVPlayer.iFrame)),this.skinPath_str=props.skinPath,self.skinPath_str.lastIndexOf("/")+1!=self.skinPath_str.length&&(self.skinPath_str+="/"),this.warningIconPath_str=self.mainFolderPath_str+this.skinPath_str+"warningIcon.png",this.fillEntireVideoScreen_bl=!1,this.isShowedFirstTime_bl=!0,FWDEVPlayer.instaces_ar.push(this),self.init=function(){if(!self.isInstantiate_bl)if(FWDTweenLite.ticker.useRAF(!0),this.props_obj=props,this.instanceName_str=this.props_obj.instanceName,this.mustHaveHolderDiv_bl=!1,this.instanceName_str)if(window[this.instanceName_str])alert("FWDEVPlayer instance name "+this.instanceName_str+" is already defined and contains a different instance reference, set a different instance name.");else if((window[this.instanceName_str]=this).props_obj)if(this.props_obj.parentId)if(self.displayType!=FWDEVPlayer.RESPONSIVE&&self.displayType!=FWDEVPlayer.AFTER_PARENT||(self.mustHaveHolderDiv_bl=!0),!self.mustHaveHolderDiv_bl||FWDEVPUtils.getChildById(self.props_obj.parentId)){var e,t,o,s,i,n=FWDEVPUtils.getUrlArgs(window.location.search).EVPInstanceName;self.instanceName_str==n&&(FWDEVPlayer.isEmbedded_bl=!0,self.isEmbedded_bl=!0),this.position_str=self.props_obj.verticalPosition,this.position_str||(this.position_str=FWDEVPlayer.POSITION_TOP),"bottom"==this.position_str?this.position_str=FWDEVPlayer.POSITION_BOTTOM:this.position_str=FWDEVPlayer.POSITION_TOP,this.horizontalPosition_str=self.props_obj.horizontalPosition,this.horizontalPosition_str||(this.horizontalPosition_str=FWDEVPlayer.CENTER),"center"==this.horizontalPosition_str?this.horizontalPosition_str=FWDEVPlayer.CENTER:"left"==this.horizontalPosition_str?this.horizontalPosition_str=FWDEVPlayer.LEFT:"right"==this.horizontalPosition_str?this.horizontalPosition_str=FWDEVPlayer.RIGHT:this.horizontalPosition_str=FWDEVPlayer.CENTER,self.isShowed_bl=self.props.showPlayerByDefault,self.isShowed_bl="no"!=self.isShowed_bl,self.preloaderBackgroundColor=self.props_obj.preloaderBackgroundColor||"#000000",self.preloaderFillColor=self.props_obj.preloaderFillColor||"#FFFFFF",this.offsetX=parseInt(props.offsetX)||0,this.offsetY=parseInt(props.offsetY)||0,self.isEmbedded_bl&&(self.displayType=FWDEVPlayer.FULL_SCREEN),this.body=document.getElementsByTagName("body")[0],this.stageContainer=null,self.displayType==FWDEVPlayer.STICKY?(this.stageContainer=document.createElement("div"),this.stageContainer.style.position="fixed",this.stageContainer.style.width="100%",this.stageContainer.style.zIndex="999999",this.stageContainer.style.height="0px",document.documentElement.appendChild(this.stageContainer),this.stageContainer.style.overflow="visible"):self.displayType==FWDEVPlayer.FULL_SCREEN||self.displayType==FWDEVPlayer.BACKGROUND_VIDEO||self.displayType==FWDEVPlayer.LIGHTBOX?FWDEVPUtils.isIEAndLessThen9?self.stageContainer=self.body:self.stageContainer=document.documentElement:this.stageContainer=FWDEVPUtils.getChildById(self.props_obj.parentId),this.listeners={events_ar:[]},this.customContextMenu_do=null,this.info_do=null,this.main_do=null,this.ytb_do=null,this.preloader_do=null,this.controller_do=null,this.videoScreen_do=null,this.flash_do=null,this.flashObject=null,this.videoPoster_do=null,this.largePlayButton_do=null,this.hider=null,this.embedWindow_do=null,this.facebookShare=null,this.lightBox_do=null,this.lightBoxBackgroundOpacity=self.props_obj.lightBoxBackgroundOpacity||1,this.lightBoxBackgroundColor_str=self.props_obj.lightBoxBackgroundColor||"transparent",this.lightBoxWidth=self.props_obj.maxWidth||500,this.lightBoxHeight=self.props_obj.maxHeight||400,this.finalLightBoxWidth,this.finalLightBoxHeight,this.backgroundColor_str=self.props_obj.backgroundColor||"transparent",this.videoBackgroundColor_str="#000000",this.flashObjectMarkup_str=null,this.controllerHeight=parseInt(self.props_obj.controllerHeight)||70,this.lastX=0,this.lastY=0,this.stageWidth=0,this.stageHeight=0,this.firstTapX,this.firstTapY,this.curTime,this.totalTime,this.videoSourcePath_str,this.prevVideoSourcePath_str,this.posterPath_str=self.props_obj.posterPath,this.videoType_str,this.videoStartBehaviour_str,this.prevVideoSource_str,this.prevPosterSource_str,this.finalVideoPath_str,this.resizeHandlerId_to,this.resizeHandler2Id_to,this.hidePreloaderId_to,this.orientationChangeId_to,this.disableClickId_to,this.clickDelayId_to,this.secondTapId_to,this.autoScale_bl=self.props_obj.autoScale,this.autoScale_bl="yes"==self.autoScale_bl,self.showErrorInfo_bl=self.props_obj.showErrorInfo,self.showErrorInfo_bl="no"!=self.showErrorInfo_bl,this.isVideoPlayingWhenOpenWindows_bl=!1,self.useWithoutVideoScreen_bl=self.props_obj.useWithoutVideoScreen,self.useWithoutVideoScreen_bl="yes"==self.useWithoutVideoScreen_bl,this.isSpaceDown_bl=!1,this.isPlaying_bl=!1,this.firstTapPlaying_bl=!1,this.stickOnCurrentInstanceKey_bl=!1,this.isFullScreen_bl=!1,this.isFlashScreenReady_bl=!1,this.orintationChangeComplete_bl=!0,this.disableClick_bl=!1,self.mainBackgroundImagePath_str=self.props_obj.mainBackgroundImagePath,self.mainBackgroundImagePath_str&&self.mainBackgroundImagePath_str.length<3&&(self.mainBackgroundImagePath_str=void 0),this.isAPIReady_bl=!1,this.isInstantiate_bl=!0,this.isAdd_bl=!1,this.isMobile_bl=FWDEVPUtils.isMobile,this.hasPointerEvent_bl=FWDEVPUtils.hasPointerEvent,self.initializeOnlyWhenVisible_bl=self.props_obj.initializeOnlyWhenVisible,self.initializeOnlyWhenVisible_bl="yes"==self.initializeOnlyWhenVisible_bl,self.googleAnalyticsTrackingCode=self.props_obj.googleAnalyticsTrackingCode,!window.ga&&self.googleAnalyticsTrackingCode?(e=window,t=document,o="ga",e.GoogleAnalyticsObject=o,e.ga=e.ga||function(){(e.ga.q=e.ga.q||[]).push(arguments)},e.ga.l=1*new Date,s=t.createElement("script"),i=t.getElementsByTagName("script")[0],s.async=1,s.src="https://www.google-analytics.com/analytics.js",i.parentNode.insertBefore(s,i),ga("create",self.googleAnalyticsTrackingCode,"auto"),ga("send","pageview")):window.ga&&self.googleAnalyticsTrackingCode&&(ga("create",self.googleAnalyticsTrackingCode,"auto"),ga("send","pageview")),self.displayType==FWDEVPlayer.LIGHTBOX?self.setupLightBox():self.displayType==FWDEVPlayer.STICKY?(self.setupPlayer(),this.startResizeHandler()):(self.setupMainDo(),self.initializeOnlyWhenVisible_bl?(this.startResizeHandler(),window.addEventListener("scroll",self.onInitlalizeScrollHandler),setTimeout(self.onInitlalizeScrollHandler,500)):(self.setupPlayer(),this.startResizeHandler()))}else alert("FWDEVPlayer holder div is not found, please make sure that the div exsists and the id is correct! "+self.props_obj.parentId);else alert("Property parentId is not defined in the FWDEVPlayer constructor, self property represents the div id into which the megazoom is added as a child!");else alert("FWDEVPlayer constructor properties object is not defined!");else alert("FWDEVPlayer instance name is requires please make sure that the instanceName parameter exsists and it's value is uinique.")},self.addMinOnScroll=function(){self.displayType==FWDEVPlayer.RESPONSIVE&&self.stickyOnScroll&&window.addEventListener("scroll",self.minimizeOnScrollHandler)},self.removeMinOnScroll=function(){self.stickyOnScroll&&window.removeEventListener("scroll",self.minimizeOnScrollHandler)},self.minimizeOnScrollHandler=function(e){var t=FWDEVPUtils.getScrollOffsets();self.pageXOffset=t.x,self.pageYOffset=t.y,self.stageContainer.getBoundingClientRect().bottom<0?self.setMinimized():self.setNormal()},self.setMinimized=function(){self.isMin||self.isFullscreen_bl||(self.isMin=!0,self.main_do.getStyle().position="fixed",self.main_do.getStyle().zIndex=9999999999999,self.main_do.setAlpha(0),self.startPosisionOnMin())},self.startPosisionOnMin=function(){self.resizeHandler(),self.positionOnMin()},self.setNormal=function(){self.isMin&&(self.isMinShowed=!0,self.isMin=!1,self.main_do.getStyle().position="relative",self.main_do.getStyle().zIndex=0,FWDAnimation.killTweensOf(self.main_do),self.main_do.setAlpha(1),self.main_do.setX(0),self.main_do.setY(0),self.opener_do&&self.opener_do.setX(-1e3),self.startPosisionOnNormal())},self.startPosisionOnNormal=function(){self.opener_do&&self.opener_do.showCloseButton(),self.resizeHandler()},self.positionOnMin=function(e){if(self.isMin||e){var t=5,o=.2;self.isMobile_bl&&(t=0);var s=0;if(self.isMinShowed||(o=0,s=Math.round(self.stageHeight)+t),self.opener_do)var i=self.ws.w-self.opener_do.w-t,n=self.ws.h-self.stageHeight-t+s-self.opener_do.h;self.main_do.setX(self.ws.w-self.stageWidth-t),0==self.main_do.alpha||e?(0==self.main_do.alpha&&(self.main_do.setY(self.ws.h),self.opener_do&&(self.opener_do.setX(i),self.opener_do.setY(self.ws.h))),FWDAnimation.to(self.main_do,.8,{alpha:1,y:self.ws.h-self.stageHeight-t+s,delay:o,ease:Expo.easeInOut}),self.opener_do&&(FWDAnimation.killTweensOf(self.opener_do),FWDAnimation.to(self.opener_do,.8,{x:i,y:n,delay:o,ease:Expo.easeInOut}))):(FWDAnimation.killTweensOf(self.main_do),self.main_do.setAlpha(1),self.main_do.setY(self.ws.h-self.stageHeight-t+s),self.opener_do&&(FWDAnimation.killTweensOf(self.opener_do),self.opener_do.setX(i),self.opener_do.setY(n)))}},self.setupLightBox=function(){FWDEVPLightBox.setPrototype(),self.lightBox_do=new FWDEVPLightBox(self,self.lightBoxBackgroundColor_str,self.backgroundColor_str,self.lightBoxBackgroundOpacity,self.lightBoxWidth,self.lightBoxHeight),self.lightBox_do.addListener(FWDEVPLightBox.SHOW,self.lightBoxShowHandler),self.lightBox_do.addListener(FWDEVPLightBox.CLOSE,self.lightBoxCloseHandler),self.lightBox_do.addListener(FWDEVPLightBox.HIDE_COMPLETE,self.lightBoxHideCompleteHandler),self.lighboxAnimDoneId_to=setTimeout(self.setupPlayer,1200)},self.lightBoxShowHandler=function(){},self.lightBoxCloseHandler=function(){self.stop(),self.stopResizeHandler()},self.lightBoxHideCompleteHandler=function(){self.dispatchEvent(FWDEVPlayer.HIDE_LIGHTBOX_COMPLETE)},self.onInitlalizeScrollHandler=function(){var e=FWDEVPUtils.getScrollOffsets();self.pageXOffset=e.x,self.pageYOffset=e.y,self.main_do.getRect().top>=-self.stageHeight&&self.main_do.getRect().top<self.ws.h&&(window.removeEventListener("scroll",self.onInitlalizeScrollHandler),self.setupPlayer())},this.setupPlayer=function(){self.info_do||(self.setupMainDo(),self.setupInfo(),self.setupData())},self.setupMainDo=function(){self.main_do||(self.main_do=new FWDEVPDisplayObject("div","relative"),self.hasPointerEvent_bl&&(self.main_do.getStyle().touchAction="none"),self.main_do.getStyle().webkitTapHighlightColor="rgba(0, 0, 0, 0)",self.main_do.getStyle().webkitFocusRingColor="rgba(0, 0, 0, 0)",self.main_do.getStyle().width="100%",self.main_do.getStyle().height="100%",self.main_do.setBackfaceVisibility(),self.main_do.setBkColor(self.backgroundColor_str),(!FWDEVPUtils.isMobile||FWDEVPUtils.isMobile&&FWDEVPUtils.hasPointerEvent)&&self.main_do.setSelectable(!1),self.displayType==FWDEVPlayer.STICKY?(self.background_do=new FWDEVPDisplayObject("div"),self.background_do.getStyle().width="100%",self.mainBackgroundImagePath_str&&(self.mainBackground_do=new FWDEVPDisplayObject("div"),self.stageContainer.appendChild(self.mainBackground_do.screen)),self.stageContainer.appendChild(self.background_do.screen),self.stageContainer.appendChild(self.main_do.screen)):self.displayType==FWDEVPlayer.FULL_SCREEN?(self.stageContainer.style.overflow="hidden",self.main_do.getStyle().position="absolute",document.documentElement.appendChild(self.main_do.screen),self.stageContainer.style.zIndex=9999999999998,self.main_do.getStyle().zIndex=9999999999998):self.displayType==FWDEVPlayer.BACKGROUND_VIDEO?(document.documentElement.appendChild(self.main_do.screen),self.main_do.getStyle().zIndex=-9999999999998,self.main_do.getStyle().position="fixed",document.documentElement.insertBefore(self.main_do.screen,document.documentElement.firstChild)):self.displayType==FWDEVPlayer.LIGHTBOX?(self.main_do.getStyle().position="absolute",self.stageContainer.appendChild(self.main_do.screen),self.main_do.setX(-1e4),self.main_do.setY(-1e4),self.main_do.setWidth(0),self.main_do.setHeight(0)):(self.stageContainer.style.overflow="hidden",self.stageContainer.appendChild(self.main_do.screen)),self.isEmbedded_bl&&(self.main_do.getStyle().zIndex=9999999999998))},this.setupDisableClick=function(){self.disableClick_do=new FWDEVPDisplayObject("div"),FWDEVPUtils.isIE&&(self.disableClick_do.setBkColor("#ff0000"),self.disableClick_do.setAlpha(.001)),self.main_do.addChild(self.disableClick_do)},this.disableClick=function(){self.disableClick_bl=!0,clearTimeout(self.disableClickId_to),self.disableClick_do&&(self.disableClick_do.setWidth(self.stageWidth),self.disableClick_do.setHeight(self.stageHeight)),self.disableClickId_to=setTimeout(function(){self.disableClick_do&&(self.disableClick_do.setWidth(0),self.disableClick_do.setHeight(0)),self.disableClick_bl=!1},500)},this.showDisable=function(){self.disableClick_do.w!=self.stageWidth&&(self.disableClick_do.setWidth(self.stageWidth),self.disableClick_do.setHeight(self.stageHeight))},this.hideDisable=function(){self.disableClick_do&&0!=self.disableClick_do.w&&(self.disableClick_do.setWidth(0),self.disableClick_do.setHeight(0))},self.setupInfo=function(){FWDEVPInfo.setPrototype(),self.info_do=new FWDEVPInfo(self,self.warningIconPath_str,self.showErrorInfo_bl)},self.startResizeHandler=function(){window.addEventListener("resize",self.onResizeHandler),self.displayType==FWDEVPlayer.STICKY&&(FWDEVPUtils.isAndroid&&window.addEventListener("orientationchange",self.orientationChange),window.addEventListener("scroll",self.onScrollHandler)),self.displayType==FWDEVPlayer.LIGHTBOX&&window.addEventListener("scroll",self.onScrollHandler),self.onResizeHandler(!0),self.resizeHandlerId_to=setTimeout(function(){self.resizeHandler(!0)},500)},self.onScrollHandler=function(e){if(self.displayType==FWDEVPlayer.STICKY&&self.onResizeHandler(),!self.lightBox_do||self.lightBox_do.isShowed_bl){self.scrollHandler();var t=FWDEVPUtils.getScrollOffsets();self.scrollOffsets=t}},self.scrollHandler=function(){var e=FWDEVPUtils.getScrollOffsets();self.pageXOffset=e.x,self.pageYOffset=e.y,self.displayType==FWDEVPlayer.LIGHTBOX?(self.lightBox_do.setX(e.x),self.lightBox_do.setY(e.y)):(self.isFullScreen_bl||self.displayType==FWDEVPlayer.FULL_SCREEN)&&(self.main_do.setX(e.x),self.main_do.setY(e.y))},self.stopResizeHandler=function(){window.removeEventListener?(window.removeEventListener("resize",self.onResizeHandler),window.removeEventListener("scroll",self.onScrollHandler)):window.detachEvent&&window.detachEvent("onresize",self.onResizeHandler),clearTimeout(self.resizeHandlerId_to)},self.onResizeHandler=function(e){self.resizeHandler(),clearTimeout(self.resizeHandler2Id_to),self.resizeHandler2Id_to=setTimeout(function(){self.resizeHandler()},300)},this.orientationChange=function(){self.orintationChangeComplete_bl=!1,clearTimeout(self.resizeHandlerId_to),clearTimeout(self.resizeHandler2Id_to),clearTimeout(self.orientationChangeId_to),self.orientationChangeId_to=setTimeout(function(){self.orintationChangeComplete_bl=!0,self.resizeHandler(!0)},1e3),self.stageContainer.style.left="-5000px",self.preloader_do&&self.preloader_do.setX(-5e3)},self.resizeHandler=function(e){var t=FWDEVPUtils.getViewportSize(),o=FWDEVPUtils.getScrollOffsets();if(self.ws=t,self.displayType!=FWDEVPlayer.STICKY||self.isFullScreen_bl)if(self.displayType!=FWDEVPlayer.LIGHTBOX||self.isFullScreen_bl)self.isFullScreen_bl||self.displayType==FWDEVPlayer.FULL_SCREEN||self.displayType==FWDEVPlayer.BACKGROUND_VIDEO?(self.main_do.setX(0),self.main_do.setY(0),self.stageWidth=t.w,self.stageHeight=t.h):self.displayType==FWDEVPlayer.AFTER_PARENT?(self.stageWidth=self.stageContainer.offsetWidth,self.stageHeight=self.stageContainer.offsetHeight):(self.stageContainer.style.width="100%",self.stageContainer.offsetWidth>self.maxWidth&&(self.stageContainer.style.width=self.maxWidth+"px"),self.stageWidth=self.stageContainer.offsetWidth,self.autoScale_bl?self.stageHeight=parseInt(self.maxHeight*(self.stageWidth/self.maxWidth)):self.stageHeight=self.maxHeight,self.stageContainer.style.height=self.stageHeight+"px");else{if(!self.lightBox_do.isShowed_bl||!self.main_do)return;self.lightBoxWidth>t.w?(self.finalLightBoxWidth=t.w,self.finalLightBoxHeight=parseInt(self.lightBoxHeight*(t.w/self.lightBoxWidth))):(self.finalLightBoxWidth=self.lightBoxWidth,self.finalLightBoxHeight=self.lightBoxHeight),self.lightBox_do.setWidth(t.w),self.lightBox_do.setHeight(t.h),self.lightBox_do.setX(o.x),self.lightBox_do.setY(o.y),self.lightBox_do.mainLightBox_do.setX(parseInt((t.w-self.finalLightBoxWidth)/2)),self.lightBox_do.mainLightBox_do.setY(parseInt((t.h-self.finalLightBoxHeight)/2)),self.lightBox_do.closeButton_do&&self.lightBox_do.isShowed_bl&&(self.lightBox_do.closeButton_do.setX(t.w-self.lightBox_do.closeButton_do.w-4),self.lightBox_do.closeButton_do.setY(4)),self.main_do.setX(0),self.main_do.setY(0),self.lightBox_do.mainLightBox_do.setWidth(self.finalLightBoxWidth),self.lightBox_do.mainLightBox_do.setHeight(self.finalLightBoxHeight),self.stageWidth=self.finalLightBoxWidth,self.stageHeight=self.finalLightBoxHeight}else self.main_do.getStyle().width="100%",self.main_do.getWidth()>self.maxWidth&&self.main_do.setWidth(self.maxWidth),self.stageWidth=self.main_do.getWidth(),self.autoScale_bl?self.stageHeight=parseInt(self.maxHeight*(self.stageWidth/self.maxWidth)):self.stageHeight=self.maxHeight;if(self.useWithoutVideoScreen_bl&&(self.stageHeight=self.controllerHeight),self.isMin&&!self.isFullScreen_bl&&(self.stageWidth=Math.min(self.stickyOnScrollWidth-10,self.ws.w-10),self.stageHeight=parseInt(self.stickyOnScrollHeight*(self.stageWidth/self.stickyOnScrollWidth)),self.stageHeight=self.stageHeight),self.tempVidStageWidth=self.stageWidth,self.tempVidStageHeight=self.stageHeight,self.main_do.setWidth(self.stageWidth),self.main_do.setHeight(self.stageHeight),self.fillEntireVideoScreen_bl&&self.videoType_str==FWDEVPlayer.VIDEO){if(self.videoScreen_do&&self.videoScreen_do.video_el&&0!=self.videoScreen_do.video_el.videoWidth){var s=self.videoScreen_do.video_el.videoWidth,i=self.videoScreen_do.video_el.videoHeight,n=self.tempVidStageWidth/s,l=self.tempVidStageHeight/i,r=0;l<=n?r=n:n<=l&&(r=l);var a=parseInt(s*r),d=parseInt(i*r),u=parseInt((self.stageWidth-a)/2),h=parseInt((self.stageHeight-d)/2);self.videoScreen_do.setWidth(a),self.videoScreen_do.setHeight(d),self.videoScreen_do.setX(u),self.videoScreen_do.setY(h)}}else self.audioScreen_do&&self.videoType_str==FWDEVPlayer.MP3?(self.audioScreen_do.resizeAndPosition(self.stageWidth,self.stageHeight),self.audioScreen_do.setX(0),self.audioScreen_do.setY(0)):!self.videoScreen_do||self.videoType_str!=FWDEVPlayer.VIDEO&&self.videoType_str!=FWDEVPlayer.HLS_JS||(self.videoScreen_do.resizeAndPosition(self.stageWidth,self.stageHeight),self.videoScreen_do.setX(0),self.videoScreen_do.setY(0));self.popw_do&&self.popw_do.isShowed_bl&&self.popw_do.positionAndResize(),self.ytb_do&&self.videoType_str==FWDEVPlayer.YOUTUBE&&(self.ytb_do.setWidth(self.stageWidth),self.ytb_do.setHeight(self.stageHeight)),self.vimeo_do&&self.videoType_str==FWDEVPlayer.VIMEO&&self.vimeo_do.resizeAndPosition(),self.positionAdsImage(),self.logo_do&&self.logo_do.positionAndResize(),self.controller_do&&self.controller_do.resizeAndPosition(),self.ytb_do&&self.ytb_do.ytb&&self.videoType_str==FWDEVPlayer.YOUTUBE&&self.ytb_do.resizeAndPosition(),self.preloader_do&&self.positionPreloader(),self.resizeDumyHandler(),self.largePlayButton_do&&self.positionLargePlayButton(),self.videoPoster_do&&self.videoPoster_do.allowToShow_bl&&self.videoPoster_do.positionAndResize(),self.embedWindow_do&&self.embedWindow_do.isShowed_bl&&self.embedWindow_do.positionAndResize(),self.passWindow_do&&self.passWindow_do.isShowed_bl&&self.passWindow_do.positionAndResize(),self.shareWindow_do&&self.shareWindow_do.isShowed_bl&&self.shareWindow_do.positionAndResize(),self.adsStart_do&&self.positionAds(),self.subtitle_do&&self.subtitle_do.position(),self.popupAds_do&&self.popupAds_do.position(),self.annotations_do&&self.annotations_do.position(),self.mainBackground_do&&(self.mainBackground_do.setWidth(self.ws.w),self.mainBackground_do.setHeight(self.stageHeight)),self.displayType==FWDEVPlayer.STICKY&&self.setStageContainerFinalHeightAndPosition(e),self.positionOnMin()},this.resizeDumyHandler=function(){self.dumyClick_do&&(self.is360&&self.videoType_str==FWDEVPlayer.YOUTUBE?self.dumyClick_do.setWidth(0):(self.dumyClick_do.setWidth(self.stageWidth),self.isMobile_bl,self.dumyClick_do.setHeight(self.stageHeight)))},this.setStageContainerFinalHeightAndPosition=function(e){self.isMin||(self.allowToResizeAndPosition_bl=!0,clearTimeout(self.showPlaylistWithDelayId_to),self.horizontalPosition_str==FWDEVPlayer.LEFT?(self.main_do.setX(self.offsetX),self.opener_do&&("right"==self.data.openerAlignment_str?self.opener_do.setX(Math.round(self.stageWidth-self.opener_do.w+self.offsetX)):self.opener_do.setX(self.offsetX))):self.horizontalPosition_str==FWDEVPlayer.CENTER?(self.main_do.setX(Math.round((self.ws.w-self.stageWidth)/2)),self.opener_do&&("right"==self.data.openerAlignment_str?self.opener_do.setX(parseInt((self.ws.w-self.stageWidth)/2)+self.stageWidth-self.opener_do.w):self.opener_do.setX(self.main_do.x))):self.horizontalPosition_str==FWDEVPlayer.RIGHT&&(self.main_do.setX(Math.round(self.ws.w-self.stageWidth-self.offsetX)),self.opener_do&&("right"==self.data.openerAlignment_str?self.opener_do.setX(Math.round(self.ws.w-self.opener_do.w-self.offsetX)):self.opener_do.setX(Math.round(self.ws.w-self.stageWidth-self.offsetX)))),e?(self.opener_do&&FWDAnimation.killTweensOf(self.opener_do),self.position_str==FWDEVPlayer.POSITION_TOP?(self.isShowed_bl&&!self.isShowedFirstTime_bl?FWDAnimation.to(self.stageContainer,.8,{css:{top:self.offsetY},ease:Expo.easeInOut}):FWDAnimation.to(self.stageContainer,.8,{css:{top:-self.stageHeight},ease:Expo.easeInOut}),self.isShowedFirstTime_bl?self.opener_do&&FWDAnimation.to(self.opener_do,.8,{y:self.stageHeight-self.opener_do.h,ease:Expo.easeInOut}):self.opener_do&&FWDAnimation.to(self.opener_do,.8,{y:self.stageHeight,ease:Expo.easeInOut})):(self.isShowed_bl&&!self.isShowedFirstTime_bl?FWDAnimation.to(self.stageContainer,.8,{css:{top:self.ws.h-self.stageHeight-self.offsetY},ease:Expo.easeInOut}):FWDAnimation.to(self.stageContainer,.8,{css:{top:self.ws.h},ease:Expo.easeInOut,onComplete:self.moveWheyLeft}),self.isShowedFirstTime_bl?self.opener_do&&FWDAnimation.to(self.opener_do,.8,{y:0,ease:Expo.easeInOut}):self.opener_do&&FWDAnimation.to(self.opener_do,.8,{y:-self.opener_do.h,ease:Expo.easeInOut}))):self.position_str==FWDEVPlayer.POSITION_TOP?(self.isShowed_bl&&!self.isShowedFirstTime_bl?self.stageContainer.style.top=self.offsetY+"px":self.stageContainer.style.top=-self.stageHeight+"px",self.isShowedFirstTime_bl?self.opener_do&&self.opener_do.setY(self.stageHeight-self.opener_do.h):self.opener_do&&self.opener_do.setY(self.stageHeight)):(self.isShowed_bl&&!self.isShowedFirstTime_bl?self.stageContainer.style.top=self.ws.h-self.stageHeight-self.offsetY+"px":self.stageContainer.style.top=self.ws.h+"px",self.isShowedFirstTime_bl?self.opener_do&&self.opener_do.setY(0):self.opener_do&&self.opener_do.setY(-self.opener_do.h)))},this.setupClickScreen=function(){self.dumyClick_do=new FWDEVPDisplayObject("div"),self.displayType!=FWDEVPlayer.BACKGROUND_VIDEO&&(self.hasPointerEvent_bl?(self.dumyClick_do.screen.addEventListener("pointerdown",self.playPauseDownHandler),self.dumyClick_do.screen.addEventListener("pointerup",self.playPauseClickHandler),self.dumyClick_do.screen.addEventListener("pointermove",self.playPauseMoveHandler)):self.isMobile_bl?self.dumyClick_do.screen.addEventListener("click",self.playPauseClickHandler):(self.dumyClick_do.screen.addEventListener("mousedown",self.playPauseDownHandler),self.dumyClick_do.screen.addEventListener("mouseup",self.playPauseClickHandler),self.dumyClick_do.screen.addEventListener("mousemove",self.playPauseMoveHandler))),self.hideClickScreen(),self.main_do.addChild(self.dumyClick_do)},this.playPauseDownHandler=function(e){self.isClickHandlerMoved_bl=!1;var t=FWDEVPUtils.getViewportMouseCoordinates(e);self.firstDommyTapX=t.screenX,self.firstDommyTapY=t.screenY,self.is360&&(self.dumyClick_do.getStyle().cursor="url("+self.data.grabPath_str+"), default")},this.playPauseMoveHandler=function(e){var t,o,s=FWDEVPUtils.getViewportMouseCoordinates(e);e.touches&&1!=e.touches.length||(t=Math.abs(s.screenX-self.firstDommyTapX),o=Math.abs(s.screenY-self.firstDommyTapY),self.isMobile_bl&&(10<t||10<o)?self.isClickHandlerMoved_bl=!0:!self.isMobile_bl&&(2<t||2<o)&&(self.isClickHandlerMoved_bl=!0))},this.playPauseClickHandler=function(e){2!=e.button&&(self.is360&&(self.dumyClick_do.getStyle().cursor="url("+self.data.handPath_str+"), default"),self.isClickHandlerMoved_bl||(self.isAdd_bl?self.data.adsPageToOpenURL_str&&"none"!=self.data.adsPageToOpenURL_str&&!self.skipOnDb_bl&&(self.ClickTracking&&self.executeVastEvent(self.ClickTracking),window.open(self.data.adsPageToOpenURL_str,self.data.adsPageToOpenTarget_str),self.pause()):self.disableClick_bl||(self.firstTapPlaying_bl=self.isPlaying_bl,(FWDEVPlayer.keyboardCurInstance=self).controller_do&&0!=self.controller_do.mainHolder_do.y&&self.isMobile_bl||(self.isMobile_bl||(FWDEVPlayer.videoStartBehaviour==FWDEVPlayer.PAUSE_ALL_VIDEOS?FWDEVPlayer.pauseAllVideos(self):FWDEVPlayer.videoStartBehaviour==FWDEVPlayer.STOP_ALL_VIDEOS&&FWDEVPlayer.stopAllVideos(self)),self.videoType_str==FWDEVPlayer.IMAGE||self.videoType_str==FWDEVPlayer.IFRAME?self.togglePlayPause():self.videoType_str==FWDEVPlayer.YOUTUBE?self.ytb_do.togglePlayPause():self.videoType_str==FWDEVPlayer.MP3?self.audioScreen_do.togglePlayPause():FWDEVPlayer.hasHTML5Video?self.videoScreen_do&&self.videoScreen_do.togglePlayPause():self.isFlashScreenReady_bl))))},this.showClickScreen=function(){self.dumyClick_do.setVisible(!0),self.isAdd_bl&&self.data.adsPageToOpenURL_str&&"none"!=self.data.adsPageToOpenURL_str?self.dumyClick_do.setButtonMode(!0):self.is360?self.dumyClick_do.getStyle().cursor="url("+self.data.handPath_str+"), default":self.dumyClick_do.setButtonMode(!1)},this.hideClickScreen=function(){self.dumyClick_do.setVisible(!1)},this.disableClick=function(){self.disableClick_bl=!0,clearTimeout(self.disableClickId_to),self.disableClickId_to=setTimeout(function(){self.disableClick_bl=!1},500)},this.addDoubleClickSupport=function(){self.hasPointerEvent_bl?self.dumyClick_do.screen.addEventListener("pointerdown",self.onFirstDown):(self.isMobile_bl||(self.dumyClick_do.screen.addEventListener("mousedown",self.onFirstDown),FWDEVPUtils.isIEWebKit&&self.dumyClick_do.screen.addEventListener("dblclick",self.onSecondDown)),self.dumyClick_do.screen.addEventListener("touchstart",self.onFirstDown)),self.setupVisualization()},this.onFirstDown=function(e){if(2!=e.button){self.isFullscreen_bl&&e.preventDefault&&e.preventDefault();var t=FWDEVPUtils.getViewportMouseCoordinates(e);self.firstTapX=t.screenX-self.main_do.getGlobalX(),self.firstTapY=t.screenY-self.main_do.getGlobalY(),self.firstTapPlaying_bl=self.isPlaying_bl,FWDEVPUtils.isIEWebKit||(self.hasPointerEvent_bl?(self.dumyClick_do.screen.removeEventListener("pointerdown",self.onFirstDown),self.dumyClick_do.screen.addEventListener("pointerdown",self.onSecondDown)):(self.isMobile_bl||(self.dumyClick_do.screen.addEventListener("mousedown",self.onSecondDown),self.dumyClick_do.screen.removeEventListener("mousedown",self.onFirstDown)),self.dumyClick_do.screen.addEventListener("touchstart",self.onSecondDown),self.dumyClick_do.screen.removeEventListener("touchstart",self.onFirstDown)),clearTimeout(self.secondTapId_to),self.secondTapId_to=setTimeout(self.doubleTapExpired,500))}},this.doubleTapExpired=function(){clearTimeout(self.secondTapId_to),self.hasPointerEvent_bl?(self.dumyClick_do.screen.removeEventListener("pointerdown",self.onSecondDown),self.dumyClick_do.screen.addEventListener("pointerdown",self.onFirstDown)):(self.dumyClick_do.screen.removeEventListener("touchstart",self.onSecondDown),self.dumyClick_do.screen.addEventListener("touchstart",self.onFirstDown),self.isMobile_bl||(self.dumyClick_do.screen.removeEventListener("mousedown",self.onSecondDown),self.dumyClick_do.screen.addEventListener("mousedown",self.onFirstDown)))},this.onSecondDown=function(e){e.preventDefault&&e.preventDefault();var t,o,s=FWDEVPUtils.getViewportMouseCoordinates(e);FWDEVPUtils.isIEWebKit&&(self.firstTapPlaying_bl=self.isPlaying_bl),e.touches&&1!=e.touches.length||(t=Math.abs(s.screenX-self.main_do.getGlobalX()-self.firstTapX),o=Math.abs(s.screenY-self.main_do.getGlobalY()-self.firstTapY),10<t||10<o||(self.firstTapX<.33*self.tempVidStageWidth?self.isPlaying_bl||(self.skipOnDb_bl=!0,self.rewind(10),self.addVisualization("left"),setTimeout(function(){self.isPlaying_bl||self.play()},200),setTimeout(function(){self.skipOnDb_bl=!1},500)):self.firstTapX>.67*self.tempVidStageWidth?self.isPlaying_bl||(self.skipOnDb_bl=!0,self.rewind(-10),self.addVisualization("right"),setTimeout(function(){self.isPlaying_bl||self.play()},200),setTimeout(function(){self.skipOnDb_bl=!1},500)):(self.switchFullScreenOnDoubleClick(),self.firstTapPlaying_bl?self.play():self.pause())))},this.switchFullScreenOnDoubleClick=function(e){self.disableClick(),self.isFullScreen_bl?self.goNormalScreen():self.goFullScreen()},self.lasPosition,this.setupVisualization=function(){self.mainVz_do=new FWDEVPDisplayObject("div"),self.mainVz_do.getStyle().pointerEvents="none",self.mainVz_do.getStyle().backgroundColor="rgba(0,0,0,0.01)",self.mainVzBackgrond_do=new FWDEVPDisplayObject("div"),self.mainVzBackgrond_do.getStyle().width="100%",self.mainVzBackgrond_do.getStyle().height="100%",self.mainVzBackgrond_do.getStyle().backgroundColor="rgba(255,255,255, .15)",self.mainVz_do.getStyle().borderRadius="100%",self.mainVz_do.addChild(self.mainVzBackgrond_do),self.circle_do=new FWDEVPTransformDisplayObject("div"),self.circle_do.getStyle().backgroundColor="rgba(255,255,255, .15)",self.circle_do.getStyle().borderRadius="100%",self.mainVz_do.addChild(self.circle_do);var e=new Image;e.src=self.mainFolderPath_str+this.skinPath_str+"vis.png",self.vzImg1_do=new FWDEVPTransformDisplayObject("img"),self.vzImg1_do.setScreen(e),self.vzImg1_do.setWidth(17),self.vzImg1_do.setHeight(23),self.mainVz_do.addChild(self.vzImg1_do);var t=new Image;t.src=self.mainFolderPath_str+this.skinPath_str+"vis.png",self.vzImg2_do=new FWDEVPTransformDisplayObject("img"),self.vzImg2_do.setScreen(t),self.vzImg2_do.setWidth(17),self.vzImg2_do.setHeight(23),self.mainVz_do.addChild(self.vzImg2_do);var o=new Image;o.src=self.mainFolderPath_str+this.skinPath_str+"vis.png",self.vzImg3_do=new FWDEVPTransformDisplayObject("img"),self.vzImg3_do.setScreen(o),self.vzImg3_do.setWidth(17),self.vzImg3_do.setHeight(23),self.mainVz_do.addChild(self.vzImg3_do)},this.addVisualization=function(e){clearTimeout(self.vizFinisedId_to),clearTimeout(self.vizFinished2Id_to);var t=Math.round(self.tempVidStageWidth/2),o=Math.round(1.5*self.tempVidStageHeight);FWDAnimation.killTweensOf(self.mainVzBackgrond_do),self.lasPosition!=e&&self.mainVzBackgrond_do.setAlpha(0),FWDAnimation.to(self.mainVzBackgrond_do,.4,{alpha:1}),self.mainVz_do.setVisible(!0),self.mainVz_do.setWidth(t),self.mainVz_do.setHeight(o),self.mainVz_do.setY((self.tempVidStageHeight-o)/2);var s=Math.abs(self.mainVz_do.y);self.controller_do&&self.controller_do.isShowed_bl&&(s-=self.controller_do.stageHeight/2),self.main_do.contains(self.mainVz_do)||(self.controller_do?self.main_do.addChildAt(self.mainVz_do,self.main_do.getChildIndex(self.controller_do)-1):self.main_do.addChild(self.mainVz_do)),"right"==e?(self.mainVz_do.getStyle().borderRadius="100% 0% 0% 100%",self.mainVz_do.setX(t),self.vzImg1_do.setRotation(0),self.vzImg2_do.setRotation(0),self.vzImg3_do.setRotation(0)):(self.mainVz_do.getStyle().borderRadius="0% 100% 100% 0%",self.mainVz_do.setX(0),self.vzImg1_do.setRotation(180),self.vzImg2_do.setRotation(180),self.vzImg3_do.setRotation(180)),self.vzImg1_do.setX(Math.round(t-3*self.vzImg1_do.w)/2),self.vzImg1_do.setY(Math.round(s+(self.tempVidStageHeight-self.vzImg1_do.h)/2)),self.vzImg2_do.setX(self.vzImg1_do.x+self.vzImg1_do.w),self.vzImg2_do.setY(self.vzImg1_do.y),self.vzImg3_do.setX(self.vzImg2_do.x+self.vzImg2_do.w),self.vzImg3_do.setY(self.vzImg2_do.y),FWDAnimation.killTweensOf(self.vzImg1_do),FWDAnimation.killTweensOf(self.vzImg2_do),FWDAnimation.killTweensOf(self.vzImg3_do),self.vzImg1_do.setAlpha(0),self.vzImg2_do.setAlpha(0),self.vzImg3_do.setAlpha(0),"right"==e?(FWDAnimation.to(self.vzImg1_do,.4,{alpha:1}),FWDAnimation.to(self.vzImg1_do,.4,{alpha:0,delay:.3}),FWDAnimation.to(self.vzImg2_do,.4,{alpha:1,delay:.3}),FWDAnimation.to(self.vzImg2_do,.4,{alpha:0,delay:.6}),FWDAnimation.to(self.vzImg3_do,.4,{alpha:1,delay:.6}),FWDAnimation.to(self.vzImg3_do,.4,{alpha:0,delay:.9})):(FWDAnimation.to(self.vzImg3_do,.4,{alpha:1}),FWDAnimation.to(self.vzImg3_do,.4,{alpha:0,delay:.3}),FWDAnimation.to(self.vzImg2_do,.4,{alpha:1,delay:.3}),FWDAnimation.to(self.vzImg2_do,.4,{alpha:0,delay:.6}),FWDAnimation.to(self.vzImg1_do,.4,{alpha:1,delay:.6}),FWDAnimation.to(self.vzImg1_do,.4,{alpha:0,delay:.9})),FWDAnimation.killTweensOf(self.circle_do),self.circle_do.setAlpha(1),self.circle_do.setScale2(1),self.circle_do.setWidth(t),self.circle_do.setHeight(t),self.circle_do.setScale2(0),self.circle_do.setX(self.firstTapX-self.mainVz_do.x-self.circle_do.w/2),self.circle_do.setY(self.firstTapY+s-self.circle_do.w/2),FWDAnimation.to(self.circle_do,.8,{scale:2,ease:Expo.easeInOut}),self.vizFinisedId_to=setTimeout(function(){FWDAnimation.to(self.mainVzBackgrond_do,.4,{alpha:0}),FWDAnimation.to(self.circle_do,.4,{alpha:0}),self.vizFinished2Id_to=setTimeout(function(){self.mainVz_do.setVisible(!1)},400)},800),self.lasPosition=e},this.stopVisualization=function(){self.mainVz_do&&(clearTimeout(self.vizFinisedId_to),clearTimeout(self.vizFinished2Id_to),self.mainVz_do.setVisible(!1))},this.setupVimeoAPI=function(){if(!self.vimeo_do)if("undefined"!=typeof Vimeo&&Vimeo.Player)self.setupVimeoPlayer();else if(FWDEVPlayer.isVimeoAPILoadedOnce_bl)self.keepCheckingVimeoAPI_int=setInterval(function(){"undefined"!=typeof Vimeo&&Vimeo&&Vimeo.Player&&(-1==self.videoSourcePath_str.indexOf("vimeo.")&&clearInterval(self.keepCheckingVimeoAPI_int),clearInterval(self.keepCheckingVimeoAPI_int),self.setupVimeoPlayer())},50);else{var e=document.createElement("script");e.src="https://player.vimeo.com/api/player.js";var t=document.getElementsByTagName("script")[0];t.parentNode.insertBefore(e,t),e.onload=function(){self.keepCheckingVimeoAPI_int=setInterval(function(){"undefined"!=typeof Vimeo&&Vimeo&&Vimeo.Player&&(clearInterval(self.keepCheckingVimeoAPI_int),self.setupVimeoPlayer())},50)},e.onerror=function(){setTimeout(function(){self.main_do.addChild(self.info_do),self.info_do.showText("Error loading Vimeo API"),self.preloader_do.hide(!1),self.preloader_do.stopPreloader()},500)},self.largePlayButton_do&&self.largePlayButton_do.hide(),FWDEVPlayer.isVimeoAPILoadedOnce_bl=!0}},self.isVimeoReady_bl=!1,this.setupVimeoPlayer=function(){self.vimeo_do||(FWDEVPVimeoScreen.setPrototype(),self.vimeo_do=new FWDEVPVimeoScreen(self,self.data.volume),self.vimeo_do.addListener(FWDEVPVimeoScreen.READY,self.vimeoReadyHandler),self.vimeo_do.addListener(FWDEVPVimeoScreen.STOP,self.videoScreenStopHandler),self.vimeo_do.addListener(FWDEVPVimeoScreen.SAFE_TO_SCRUBB,self.videoScreenSafeToScrubbHandler),self.vimeo_do.addListener(FWDEVPVimeoScreen.PLAY,self.videoScreenPlayHandler),self.vimeo_do.addListener(FWDEVPVimeoScreen.PAUSE,self.videoScreenPauseHandler),self.vimeo_do.addListener(FWDEVPVimeoScreen.UPDATE,self.videoScreenUpdateHandler),self.vimeo_do.addListener(FWDEVPVimeoScreen.UPDATE_TIME,self.videoScreenUpdateTimeHandler),self.vimeo_do.addListener(FWDEVPVimeoScreen.LOAD_PROGRESS,self.videoScreenLoadProgressHandler),self.vimeo_do.addListener(FWDEVPVimeoScreen.PLAY_COMPLETE,self.videoScreenPlayCompleteHandler),self.vimeo_do.addListener(FWDEVPVimeoScreen.UPDATE_SUBTITLE,self.videoScreenUpdateSubtitleHandler))},this.vimeoReadyHandler=function(e){self.isVimeoReady_bl=!0,clearInterval(self.hidePreloaderId_to),self.vimeo_do.iFrame_do&&(self.vimeo_do.iFrame_do.screen.style.left="0px"),self.setSource(self.videoSourcePath_str),self.preloader_do&&(self.preloader_do.hide(!1),self.preloader_do.stopPreloader())},this.setupYoutubeAPI=function(){if(!self.ytb_do&&!self.isYoutubeAPiCreated_bl)if(self.isYoutubeAPiCreated_bl=!0,"undefined"!=typeof YT&&YT.Player)self.setupYoutubePlayer();else if(FWDEVPlayer.isYoutubeAPILoadedOnce_bl)self.keepCheckingYoutubeAPI_int=setInterval(function(){"undefined"!=typeof YT&&YT&&YT.Player&&(-1==self.videoSourcePath_str.indexOf("youtube.")&&clearInterval(self.keepCheckingYoutubeAPI_int),clearInterval(self.keepCheckingYoutubeAPI_int),self.setupYoutubePlayer())},50);else{var e=document.createElement("script");e.src="https://www.youtube.com/iframe_api";var t=document.getElementsByTagName("script")[0];t.parentNode.insertBefore(e,t),e.onload=function(){self.checkIfYoutubePlayerIsReadyId_int=setInterval(function(){YT&&YT.Player&&(clearInterval(self.checkIfYoutubePlayerIsReadyId_int),self.setupYoutubePlayer())},50)},e.onerror=function(){setTimeout(function(){self.main_do.addChild(self.info_do),self.info_do.allowToRemove_bl=!1,self.info_do.showText("Error loading Youtube API"),self.preloader_do.hide(!1),self.preloader_do.stopPreloader()},500)},FWDEVPlayer.isYoutubeAPILoadedOnce_bl=!0}},this.setupYoutubePlayer=function(){self.ytb_do||(FWDEVPYoutubeScreen.setPrototype(),self.ytb_do=new FWDEVPYoutubeScreen(self,self.data.volume),self.ytb_do.addListener(FWDEVPYoutubeScreen.READY,self.youtubeReadyHandler),self.ytb_do.addListener(FWDEVPVideoScreen.ERROR,self.videoScreenErrorHandler),self.ytb_do.addListener(FWDEVPYoutubeScreen.SAFE_TO_SCRUBB,self.videoScreenSafeToScrubbHandler),self.ytb_do.addListener(FWDEVPYoutubeScreen.STOP,self.videoScreenStopHandler),self.ytb_do.addListener(FWDEVPYoutubeScreen.PLAY,self.videoScreenPlayHandler),self.ytb_do.addListener(FWDEVPYoutubeScreen.PAUSE,self.videoScreenPauseHandler),self.ytb_do.addListener(FWDEVPYoutubeScreen.UPDATE,self.videoScreenUpdateHandler),self.ytb_do.addListener(FWDEVPYoutubeScreen.UPDATE_TIME,self.videoScreenUpdateTimeHandler),self.ytb_do.addListener(FWDEVPYoutubeScreen.LOAD_PROGRESS,self.videoScreenLoadProgressHandler),self.ytb_do.addListener(FWDEVPYoutubeScreen.PLAY_COMPLETE,self.videoScreenPlayCompleteHandler),self.ytb_do.addListener(FWDEVPYoutubeScreen.CUED,self.youtubeScreenCuedHandler),self.ytb_do.addListener(FWDEVPYoutubeScreen.QUALITY_CHANGE,self.youtubeScreenQualityChangeHandler),self.ytb_do.addListener(FWDEVPVideoScreen.UPDATE_SUBTITLE,self.videoScreenUpdateSubtitleHandler),self.isMobile_bl||self.ytb_do.showDisable(),clearTimeout(self.ytb_do))},this.youtubeReadyHandler=function(e){if(self.isYoutubeReady_bl=!0,self.videoType_str==FWDEVPlayer.YOUTUBE){if(self.ytb_do.hasBeenCreatedOnce_bl){if(-1!=self.videoSourcePath_str.indexOf("."))return;return self.isMobile_bl?(self.setPosterSource(void 0),self.videoPoster_do.hide()):(self.setPosterSource(self.posterPath_str),self.videoPoster_do.show()),void(-1==self.videoSourcePath_str.indexOf(".")&&self.setSource(self.videoSourcePath_str,!0,self.data.videosSource_ar[self.data.startAtVideoSource].videoType))}self.isMobile_bl&&setTimeout(function(){try{self.ytb_do.ytb.a.style.left="0px"}catch(e){}},500),self.setSource(self.videoSourcePath_str,!0,self.data.videosSource_ar[self.data.startAtVideoSource].videoType),self.preloader_do&&(self.preloader_do.hide(!1),self.preloader_do.stopPreloader())}},this.youtubeScreenCuedHandler=function(){self.main_do&&self.main_do.contains(self.info_do)&&self.main_do.removeChild(self.info_do)},this.youtubeScreenQualityChangeHandler=function(e){self.videoType_str==FWDEVPlayer.VIDEO&&(self.curDurration=self.videoScreen_do.curDuration),self.controller_do&&self.controller_do.updateQuality(e.levels,e.qualityLevel)},self.setupContextMenu=function(){FWDEVPContextMenu.setPrototype(),self.customContextMenu_do=new FWDEVPContextMenu(self,self.data)},this.setupOpener=function(){FWDEVPOpener.setPrototype(),self.opener_do=new FWDEVPOpener(self,self.data,self.position_str,self.isShowed_bl),self.opener_do.getStyle().zIndex="99999999994",self.opener_do.setX(-1e3),self.isShowed_bl?self.opener_do.showCloseButton():self.opener_do.showOpenButton(),self.opener_do.addListener(FWDEVPOpener.SHOW,self.openerShowHandler),self.opener_do.addListener(FWDEVPOpener.HIDE,self.openerHideHandler),self.opener_do.addListener(FWDEVPOpener.PLAY,self.controllerOnPlayHandler),self.opener_do.addListener(FWDEVPOpener.PAUSE,self.controllerOnPauseHandler),self.stageContainer.appendChild(self.opener_do.screen),self.stickyOnScroll&&(self.opener_do.getStyle().position="fixed",document.documentElement.appendChild(self.opener_do.screen))},this.openerShowHandler=function(){self.showPlayer()},this.openerHideHandler=function(){self.hidePlayer()},self.setupRSM=function(){self.data.useResumeOnPlay_bl&&window.addEventListener("beforeunload",function(e){Math.random();if(self.isPlaying_bl){document.cookie="fwdevp_video_path="+self.videoSourcePath_str+"; expires=Thu, 18 Dec 2040 00:00:01 GMT; path=/";var t=self.getCurrentTime();5==t.length&&(t="00:"+t),document.cookie="fwdevp_time="+t+"; expires=Thu, 18 Dec 2040 00:00:01 GMT; path=/"}})},self.setupData=function(){FWDEVPData.setPrototype(),self.data=new FWDEVPData(self.props_obj,self.rootElement_el,self),self.mainBackground_do&&(self.mainBackground_do.getStyle().background="url('"+self.mainBackgroundImagePath_str+"')"),self.data.addListener(FWDEVPData.VAST_LOADED,self.vastLoaded),self.data.addListener(FWDEVPData.PRELOADER_LOAD_DONE,self.onPreloaderLoadDone),self.data.addListener(FWDEVPData.LOAD_ERROR,self.dataLoadError),self.data.addListener(FWDEVPData.SKIN_PROGRESS,self.dataSkinProgressHandler),self.data.addListener(FWDEVPData.SKIN_LOAD_COMPLETE,self.dataSkinLoadComplete)},self.vastLoaded=function(){self.updateAds(0)},self.onPreloaderLoadDone=function(){self.setupPreloader(),self.isMobile_bl||self.setupContextMenu(),self.displayType==FWDEVPlayer.BACKGROUND_VIDEO?(self.data.useChromeless_bl=!0,self.isMobile_bl||(self.data.autoPlay_bl=!0),self.data.loop_bl=!0,self.data.fillEntireVideoScreen_bl=self.fillEntireVideoScreen_bl=!0):self.fillEntireVideoScreen_bl=self.data.fillEntireVideoScreen_bl,self.resizeHandler()},self.dataLoadError=function(e,t){self.main_do.addChild(self.info_do),self.info_do.showText(e.text),self.preloader_do&&(self.preloader_do.hide(!1),self.preloader_do.stopPreloader()),self.resizeHandler()},self.dataSkinProgressHandler=function(e){},self.dataSkinLoadComplete=function(){window.removeEventListener("scroll",self.onScrollHandler),self.volume=self.data.volume,self.displayType!=FWDEVPlayer.FULL_SCREEN||FWDEVPUtils.hasFullScreen||(self.data.showFullScreenButton_bl=!1),clearInterval(self.hidePreloaderId_to),self.hidePreloaderId_to=setTimeout(function(){self.preloader_do&&(self.preloader_do.hide(!1),self.preloader_do.stopPreloader())},500),self.useWithoutVideoScreen_bl&&(self.data.showFullScreenButton_bl=!1,self.data.showDownloadVideoButton_bl=!1,self.data.showSubtitleButton_bl=!1,self.data.showEmbedButton_bl=!1,self.data.showYoutubeQualityButton_bl=!1,self.data.showShareButton_bl=!1,self.data.showPlaybackRateButton_bl=!1,self.data.controllerHideDelay=1e7),self.setupNormalVideoPlayer(),self.animate_bl=self.data.animate_bl,(self.data.showOpener_bl&&self.displayType==FWDEVPlayer.STICKY||self.data.stickyOnScrollShowOpener_bl&&self.stickyOnScroll)&&self.setupOpener(),self.data.useVectorIcons_bl?self.checkFinalButtonSizezId_int=setInterval(function(){self.controller_do?0!=self.controller_do.playPauseButton_do.w&&setTimeout(function(){self.isShowedFirstTime_bl=!1,self.resizeHandler(self.animate_bl),clearInterval(self.checkFinalButtonSizezId_int)},100):self.controller_do&&clearInterval(self.checkFinalButtonSizezId_int)},50):setTimeout(function(){self.isShowedFirstTime_bl=!1,self.resizeHandler(self.animate_bl)},50)},this.setupNormalVideoPlayer=function(){self.normalVideoPlayersCreated_bl||(self.normalVideoPlayersCreated_bl=!0,self.isAPIReady_bl=!0,self.setupVideoScreen(),self.setupAudioScreen(),self.setupVideoPoster(),self.showPreloader_bl&&self.main_do.addChild(self.preloader_do),self.setupSubtitle(),self.setupClickScreen(),self.setupPopupAds(),self.disableDoubleClickFullscreen_bl||self.addDoubleClickSupport(),!self.data.useChromeless_bl&&self.data.showController_bl&&self.setupController(),!self.data.useChromeless_bl&&self.data.showLogo_bl&&self.setupLogo(),self.setupHider(),!self.data.useChromeless_bl&&self.data.showController_bl&&self.data.showEmbedButton_bl&&self.setupEmbedWindow(),!self.data.useChromeless_bl&&self.data.showController_bl&&self.setupPasswordWindow(),!self.data.useChromeless_bl&&self.data.showController_bl&&self.data.showShareButton_bl&&self.setupShareWindow(),self.data.showAopwWindow_bl&&self.setupAopw(),!self.data.useChromeless_bl&&self.data.showController_bl&&self.setupAdsStart(),self.data.hasAnnotiations_bl&&self.setupAnnotations(),self.data.useChromeless_bl||self.setupLargePlayPauseButton(),self.addMinOnScroll(),self.setupDisableClick(),self.setupRSM(),self.dispatchEvent(FWDEVPlayer.READY),self.updateAds(0),self.displayType==FWDEVPlayer.BACKGROUND_VIDEO&&self.isMobile_bl&&(self.hasPointerEvent_bl?window.addEventListener("pointerdown",self.playVideoBackgroundOnMobileOnInteraction):window.addEventListener("touchstart",self.playVideoBackgroundOnMobileOnInteraction)),self.data.addKeyboardSupport_bl&&self.addKeyboardSupport(),self.resizeHandler())},this.setupAopw=function(){FWDEVPOPWindow.setPrototype(),self.popw_do=new FWDEVPOPWindow(self.data,self)},this.playVideoBackgroundOnMobileOnInteraction=function(){self.hasPointerEvent_bl?window.removeEventListener("pointerdown",self.playVideoBackgroundOnMobileOnInteraction):window.removeEventListener("touchstart",self.playVideoBackgroundOnMobileOnInteraction),self.play()},this.setupPopupAds=function(){FWDEVPPopupAds.setPrototype(),self.popupAds_do=new FWDEVPPopupAds(self,self.data),self.main_do.addChild(self.popupAds_do)},this.setupPreloader=function(){FWDEVPPreloader.setPrototype(),self.preloader_do=new FWDEVPPreloader(self,"center",10,self.preloaderBackgroundColor,self.preloaderFillColor,3,.8),self.preloader_do.show(!1),self.preloader_do.startPreloader(),self.showPreloader_bl&&(self.displayType==FWDEVPlayer.STICKY?document.documentElement.appendChild(self.preloader_do.screen):self.main_do.addChild(self.preloader_do))},this.positionPreloader=function(){self.displayType==FWDEVPlayer.STICKY?self.main_do.contains(self.preloader_do)?(self.preloader_do.setX(Math.round((self.stageWidth-self.preloader_do.w)/2)),self.preloader_do.setY(Math.round((self.stageHeight-self.preloader_do.h)/2))):(self.preloader_do.setX(Math.round((self.ws.w-self.preloader_do.w)/2)),self.position_str==FWDEVPlayer.POSITION_BOTTOM?self.preloader_do.setY(Math.round(self.ws.h-self.preloader_do.h-10)+FWDEVPUtils.getScrollOffsets().y):self.preloader_do.setY(10)):(self.preloader_do.setX(parseInt((self.stageWidth-self.preloader_do.w)/2)),self.preloader_do.setY(parseInt((self.stageHeight-self.preloader_do.h)/2)))},this.setupVideoPoster=function(){FWDEVPPoster.setPrototype(),self.videoPoster_do=new FWDEVPPoster(self,self.data.posterBackgroundColor_str,self.data.show,self.data.fillEntireScreenWithPoster_bl),self.main_do.addChild(self.videoPoster_do)},this.setupLargePlayPauseButton=function(){self.data.useVectorIcons_bl?(FWDEVPSimpleButton.setPrototype(),self.largePlayButton_do=new FWDEVPSimpleButton(void 0,void 0,void 0,!0,void 0,void 0,void 0,"<div class='table-fwdevp-button'><span class='table-cell-fwdevp-button icon-play'></span></div>",void 0,"EVPLargePlayButtonNormalState","EVPLargePlayButtonSelectedState")):(FWDEVPSimpleButton.setPrototype(),self.largePlayButton_do=new FWDEVPSimpleButton(self.data.largePlayN_img,self.data.largePlayS_str,void 0,!0,self.data.useHEXColorsForSkin_bl,self.data.normalButtonsColor_str,self.data.selectedButtonsColor_str)),self.largePlayButton_do.addListener(FWDEVPSimpleButton.MOUSE_UP,self.largePlayButtonUpHandler),self.largePlayButton_do.setOverflow("visible"),self.largePlayButton_do.hide(!1),self.main_do.addChild(self.largePlayButton_do)},this.largePlayButtonUpHandler=function(){self.disableClick(),self.largePlayButton_do.hide(),self.play()},this.positionLargePlayButton=function(){self.largePlayButton_do.setX(parseInt((self.stageWidth-self.largePlayButton_do.w)/2)),self.largePlayButton_do.setY(parseInt((self.stageHeight-self.largePlayButton_do.h)/2))},this.setupLogo=function(){FWDEVPLogo.setPrototype(),self.logo_do=new FWDEVPLogo(self,self.data.logoPath_str,self.data.logoPosition_str,self.data.logoMargins),self.main_do.addChild(self.logo_do)},this.setupSubtitle=function(){FWDEVPSubtitle.setPrototype(),self.subtitle_do=new FWDEVPSubtitle(self,self.data),self.subtitle_do.addListener(FWDEVPSubtitle.LOAD_COMPLETE,self.subtitleLoadComplete)},this.subtitleLoadComplete=function(){self.controller_do&&self.controller_do.enableSubtitleButton()},this.loadSubtitle=function(e){e&&(self.subtitle_do.loadSubtitle(e),self.main_do.addChildAt(self.subtitle_do,self.main_do.getChildIndex(self.dumyClick_do)-1))},this.setupController=function(){FWDEVPController.setPrototype(),self.controller_do=new FWDEVPController(self.data,self),self.controller_do.addListener(FWDEVPController.REWIND,self.rewindHandler),self.controller_do.addListener(FWDEVPData.LOAD_ERROR,self.thumbnailsPreviewLoadError),self.controller_do.addListener(FWDEVPController.CHANGE_PLAYBACK_RATES,self.changePlaybackRateHandler),self.controller_do.addListener(FWDEVPController.CHANGE_SUBTITLE,self.changeSubtitileHandler),self.controller_do.addListener(FWDEVPController.PLAY,self.controllerOnPlayHandler),self.controller_do.addListener(FWDEVPController.PAUSE,self.controllerOnPauseHandler),self.controller_do.addListener(FWDEVPController.START_TO_SCRUB,self.controllerStartToScrubbHandler),self.controller_do.addListener(FWDEVPController.SCRUB,self.controllerScrubbHandler),self.controller_do.addListener(FWDEVPController.STOP_TO_SCRUB,self.controllerStopToScrubbHandler),self.controller_do.addListener(FWDEVPController.CHANGE_VOLUME,self.controllerChangeVolumeHandler),self.controller_do.addListener(FWDEVPController.DOWNLOAD_VIDEO,self.controllerDownloadVideoHandler),self.controller_do.addListener(FWDEVPController.SHARE,self.controllerShareHandler),self.controller_do.addListener(FWDEVPController.CHANGE_YOUTUBE_QUALITY,self.controllerChangeYoutubeQualityHandler),self.controller_do.addListener(FWDEVPController.FULL_SCREEN,self.controllerFullScreenHandler),self.controller_do.addListener(FWDEVPController.NORMAL_SCREEN,self.controllerNormalScreenHandler),self.controller_do.addListener(FWDEVPController.SHOW_EMBED_WINDOW,self.showEmbedWindowHandler),self.controller_do.addListener(FWDEVPController.SHOW_SUBTITLE,self.showSubtitleHandler),self.controller_do.addListener(FWDEVPController.HIDE_SUBTITLE,self.hideSubtitleHandler),self.main_do.addChild(self.controller_do)},this.rewindHandler=function(){self.rewind(10)},this.rewind=function(e){var t=self.getCurrentTime();5==t.length&&(t="00:"+t),7==t.length&&(t="0"+t),t=FWDEVPUtils.getSecondsFromString(t),t-=e,5==(t=FWDEVPUtils.formatTime(t)).length&&(t="00:"+t),7==t.length&&(t="0"+t),self.scrubbAtTime(t)},self.thumbnailsPreviewLoadError=function(e){console.log(e)},this.changePlaybackRateHandler=function(e){self.setPlaybackRate(e.rate),self.dispatchEvent(FWDEVPlayer.PLAYBACK_RATE_CHANGE,{rate:e.rate})},this.changeSubtitileHandler=function(e){self.data.startAtSubtitle=e.id,self.controller_do.updateSubtitleButtons(self.data.subtitles_ar,self.data.startAtSubtitle),self.data.subtitlePath_str=self.data.subtitles_ar[self.data.subtitles_ar.length-1-self.data.startAtSubtitle].source,self.isAdd_bl||self.loadSubtitle(self.data.subtitlePath_str)},this.controllerDownloadVideoHandler=function(){self.downloadVideo()},this.showSubtitleHandler=function(){self.subtitle_do.isShowed_bl=!0,self.subtitle_do.show()},this.hideSubtitleHandler=function(){self.subtitle_do.isShowed_bl=!1,self.subtitle_do.hide()},this.controllerOnPlayHandler=function(e){self.play()},this.controllerOnPauseHandler=function(e){self.pause()},this.controllerStartToScrubbHandler=function(e){self.startToScrub()},this.controllerScrubbHandler=function(e){self.scrub(e.percent)},this.controllerStopToScrubbHandler=function(e){self.stopToScrub()},this.controllerChangeVolumeHandler=function(e){self.setVolume(e.percent)},this.controllerShareHandler=function(e){self.videoType_str==FWDEVPlayer.YOUTUBE&&self.ytb_do?self.isVideoPlayingWhenOpenWindows_bl=self.ytb_do.isPlaying_bl:self.videoType_str==FWDEVPlayer.VIMEO&&self.vimeo_do?self.isVideoPlayingWhenOpenWindows_bl=self.vimeo_do.isPlaying_bl:FWDEVPlayer.hasHTML5Video&&self.videoScreen_do&&(self.isVideoPlayingWhenOpenWindows_bl=self.videoScreen_do.isPlaying_bl),self.pause(),self.shareWindow_do.show(),self.controller_do&&(self.controller_do.shareButton_do.setSelectedState(),self.controller_do.shareButton_do.isDisabled_bl=!0)},this.controllerChangeYoutubeQualityHandler=function(e){self.videoType_str==FWDEVPlayer.YOUTUBE?self.ytb_do.setQuality(e.quality):(self.data.startAtVideoSource=self.data.videosSource_ar.length-1-e.id,self.setSource(self.data.videosSource_ar[self.data.startAtVideoSource].source,!1,self.data.videosSource_ar[self.data.startAtVideoSource].videoType),self.isQualityChanging_bl=!0,self.play())},this.controllerFullScreenHandler=function(){self.goFullScreen()},this.controllerNormalScreenHandler=function(){self.goNormalScreen()},this.showEmbedWindowHandler=function(){self.videoType_str==FWDEVPlayer.YOUTUBE&&self.ytb_do?self.isVideoPlayingWhenOpenWindows_bl=self.ytb_do.isPlaying_bl:self.videoType_str==FWDEVPlayer.VIMEO&&self.vimeo_do?self.isVideoPlayingWhenOpenWindows_bl=self.vimeo_do.isPlaying_bl:FWDEVPlayer.hasHTML5Video&&self.videoScreen_do&&(self.isVideoPlayingWhenOpenWindows_bl=self.videoScreen_do.isPlaying_bl),self.pause(),self.customContextMenu_do&&self.customContextMenu_do.disable(),self.embedWindow_do.show(),self.controller_do&&(self.controller_do.embedButton_do.setSelectedState(),self.controller_do.embedButton_do.isDisabled_bl=!0)},this.setupAudioScreen=function(){FWDEVPAudioScreen.setPrototype(),self.audioScreen_do=new FWDEVPAudioScreen(self,self.data.volume),self.audioScreen_do.addListener(FWDEVPAudioScreen.ERROR,self.videoScreenErrorHandler),self.audioScreen_do.addListener(FWDEVPAudioScreen.SAFE_TO_SCRUBB,self.videoScreenSafeToScrubbHandler),self.audioScreen_do.addListener(FWDEVPAudioScreen.STOP,self.videoScreenStopHandler),self.audioScreen_do.addListener(FWDEVPAudioScreen.PLAY,self.videoScreenPlayHandler),self.audioScreen_do.addListener(FWDEVPAudioScreen.PAUSE,self.videoScreenPauseHandler),self.audioScreen_do.addListener(FWDEVPAudioScreen.UPDATE,self.videoScreenUpdateHandler),self.audioScreen_do.addListener(FWDEVPAudioScreen.UPDATE_TIME,self.videoScreenUpdateTimeHandler),self.audioScreen_do.addListener(FWDEVPAudioScreen.LOAD_PROGRESS,self.videoScreenLoadProgressHandler),self.audioScreen_do.addListener(FWDEVPVideoScreen.START_TO_BUFFER,self.videoScreenStartToBuferHandler),self.audioScreen_do.addListener(FWDEVPVideoScreen.STOP_TO_BUFFER,self.videoScreenStopToBuferHandler),self.audioScreen_do.addListener(FWDEVPAudioScreen.PLAY_COMPLETE,self.videoScreenPlayCompleteHandler),self.audioScreen_do.addListener(FWDEVPAudioScreen.UPDATE_SUBTITLE,self.videoScreenUpdateSubtitleHandler),self.main_do.addChild(self.audioScreen_do)},this.setupVideoScreen=function(){FWDEVPVideoScreen.setPrototype(),self.videoScreen_do=new FWDEVPVideoScreen(self,self.backgroundColor_str,self.data.volume),self.videoScreen_do.addListener(FWDEVPVideoScreen.ERROR,self.videoScreenErrorHandler),self.videoScreen_do.addListener(FWDEVPVideoScreen.SAFE_TO_SCRUBB,self.videoScreenSafeToScrubbHandler),self.videoScreen_do.addListener(FWDEVPVideoScreen.STOP,self.videoScreenStopHandler),self.videoScreen_do.addListener(FWDEVPVideoScreen.START,self.videoScreenStartHandler),self.videoScreen_do.addListener(FWDEVPVideoScreen.PLAY,self.videoScreenPlayHandler),self.videoScreen_do.addListener(FWDEVPVideoScreen.PAUSE,self.videoScreenPauseHandler),self.videoScreen_do.addListener(FWDEVPVideoScreen.UPDATE,self.videoScreenUpdateHandler),self.videoScreen_do.addListener(FWDEVPVideoScreen.UPDATE_TIME,self.videoScreenUpdateTimeHandler),self.videoScreen_do.addListener(FWDEVPVideoScreen.UPDATE_SUBTITLE,self.videoScreenUpdateSubtitleHandler),self.videoScreen_do.addListener(FWDEVPVideoScreen.LOAD_PROGRESS,self.videoScreenLoadProgressHandler),self.videoScreen_do.addListener(FWDEVPVideoScreen.START_TO_BUFFER,self.videoScreenStartToBuferHandler),self.videoScreen_do.addListener(FWDEVPVideoScreen.STOP_TO_BUFFER,self.videoScreenStopToBuferHandler),self.videoScreen_do.addListener(FWDEVPVideoScreen.PLAY_COMPLETE,self.videoScreenPlayCompleteHandler),self.main_do.addChild(self.videoScreen_do)},this.videoScreenStartHandler=function(){self.callVastEvent("start"),self.executeVastEvent(self.Impression)},this.videoScreenErrorHandler=function(e){var t;self.isPlaying_bl=!1,FWDEVPlayer.hasHTML5Video||self.videoType_str==FWDEVPlayer.YOUTUBE?(t=e.text,window.console&&console.log(e.text),self.main_do&&self.main_do.addChild(self.info_do),self.info_do&&self.info_do.showText(t),self.controller_do&&(self.controller_do.disableMainScrubber(),self.data.showControllerWhenVideoIsStopped_bl||self.controller_do.hide(!self.isMobile_bl,!0),self.hideClickScreen(),self.hider.stop())):(t=e,self.main_do&&self.main_do.addChild(self.info_do),self.info_do&&self.info_do.showText(t)),self.logo_do&&self.logo_do.hide(!1),self.preloader_do.hide(!1),self.preloader_do.stopPreloader(),self.showCursor(),self.dispatchEvent(FWDEVPlayer.ERROR,{error:t})},this.videoScreenSafeToScrubbHandler=function(){if(!self.hasHlsPlayedOnce_bl||self.videoType_str!=FWDEVPlayer.HLS_JS){self.controller_do&&(self.isAdd_bl?(self.controller_do.disableMainScrubber(),self.data.showSkipButton_bl&&(0!=self.data.timeToHoldAds&&self.adsStart_do.show(!0),self.data.adsThumbnailPath_str&&"none"!=self.data.adsThumbnailPath_str&&self.adsStart_do.loadThumbnail(self.data.adsThumbnailPath_str)),self.positionAds()):self.controller_do.enableMainScrubber(),self.controller_do&&(self.isQualityChanging_bl||self.controller_do.disableSubtitleButton(),self.isAdd_bl||self.controller_do.enableAtbButton(),self.controller_do.show(!0)),self.isAdd_bl||(self.customContextMenu_do&&self.customContextMenu_do.enable(),self.loadSubtitle(self.data.subtitlePath_str),self.controller_do.thumbnailsPreview_do&&self.controller_do.thumbnailsPreview_do.load(self.data.thumbnailsPreview)),!self.isAdd_bl&&self.controller_do.ytbQualityButton_do&&self.controller_do.ytbQualityButton_do.enable(),!self.isAdd_bl&&self.controller_do.playbackRateButton_do&&self.controller_do.enablePlaybackRateButton(),!self.isAdd_bl&&self.controller_do&&(self.controller_do.downloadButton_do&&self.controller_do.downloadButton_do.enable(),self.controller_do.rewindButton_do&&self.controller_do.rewindButton_do.enable()),self.hider.start()),self.videoType_str!=FWDEVPlayer.VIMEO&&self.showClickScreen(),self.fillEntireVideoScreen_bl&&(self.fillScreenId_int=setInterval(function(){0!=self.videoScreen_do.video_el.videoWidth&&(self.resizeHandler(),clearInterval(self.fillScreenId_int))},5)),setTimeout(function(){self.totalDuration&&self.controller_do&&self.controller_do.positionAdsLines(self.totalDuration)},500);var e=FWDEVPUtils.getHashUrlArgs(window.location.hash);if("00:00:00"!=self.getStartTimeStamp("t")&&(e.evpi?e.evpi==self.instanceName_str&&self.scrubbAtTime(self.getStartTimeStamp("t")):self.scrubbAtTime(self.getStartTimeStamp("t"))),document.cookie&&FWDEVPUtils.getCookie("fwdevp_video_path")&&FWDEVPUtils.getCookie("fwdevp_time")&&FWDEVPUtils.getCookie("fwdevp_video_path")==self.videoSourcePath_str&&!self.isAdd_bl){FWDEVPUtils.getCookie("fwdevp_time");self.rmsPlayed_bl||self.scrubbAtTime(FWDEVPUtils.getCookie("fwdevp_time"))}self.dispatchEvent(FWDEVPlayer.SAFE_TO_SCRUB)}},this.videoScreenStopHandler=function(e){self.main_do&&self.main_do.contains(self.info_do)&&self.main_do.removeChild(self.info_do),self.videoPoster_do.allowToShow_bl=!0,self.isPlaying_bl=!1,self.controller_do&&(self.controller_do.disableMainScrubber(),self.controller_do.showPlayButton(),self.controller_do.updateMainScrubber(0),self.data.showControllerWhenVideoIsStopped_bl?self.controller_do.show(!self.isMobile_bl):self.controller_do.hide(!self.isMobile_bl,!0),self.hider.stop()),self.ytb_do&&self.videoType_str==FWDEVPlayer.YOUTUBE&&self.ytb_do.stopVideo(),self.logo_do&&self.logo_do.hide(!0),self.hideClickScreen(),self.isMobile_bl&&self.videoType_str==FWDEVPlayer.YOUTUBE&&(self.videoPoster_do.hide(),self.largePlayButton_do&&self.largePlayButton_do.hide()),self.hider.reset(),self.showCursor(),self.dispatchEvent(FWDEVPlayer.STOP)},this.videoScreenPlayHandler=function(){(FWDEVPlayer.keyboardCurInstance=self).videoType_str==FWDEVPlayer.YOUTUBE&&self.ytb_do&&self.ytb_do.isStopped_bl||(self.callVastEvent("resume"),self.isPlaying_bl=!0,self.isMobile_bl?FWDEVPlayer.videoStartBehaviour==FWDEVPlayer.STOP_ALL_VIDEOS&&FWDEVPlayer.stopAllVideos(self):FWDEVPlayer.videoStartBehaviour==FWDEVPlayer.PAUSE_ALL_VIDEOS&&FWDEVPlayer.pauseAllVideos(self),self.logo_do&&self.videoType_str!=FWDEVPlayer.VIMEO&&!self.useWithoutVideoScreen_bl&&self.logo_do.show(!0),self.controller_do&&(self.controller_do.showPauseButton(),self.controller_do.show(!0)),self.popw_do&&self.popw_do.hide(),self.largePlayButton_do&&self.largePlayButton_do.hide(),self.hider.start(),self.showCursor(),self.isAdd_bl&&(self.isQualityChanging_bl=!1),self.playAtTime_bl&&!self.isAdd_bl&&self.scrubbAtTime(self.data.scrubAtTimeAtFirstPlay),self.playAtTime_bl=!1,self.hasHlsPlayedOnce_bl=!0,self.isAdd_bl&&!self.hasStartedToPlay_bl&&self.scrubbAtTime(0),self.isQualityChanging_bl&&!self.isAdd_bl&&(self.scrubbAtTime(self.curDurration),self.curDurration=0,self.isQualityChanging_bl=!1),self.wasAdd_bl&&!self.isAdd_bl&&(self.scrubbAtTime(self.scrubAfterAddDuration),self.wasAdd_bl=!1),self.hasStartedToPlay_bl||!self.data.startAtTime||self.isAdd_bl||self.scrubbAtTime(self.data.startAtTime),self.opener_do&&self.opener_do.showPauseButton(),self.hasStartedToPlay_bl=!0,self.dispatchEvent(FWDEVPlayer.PLAY))},this.videoScreenPauseHandler=function(){if(self.videoType_str!=FWDEVPlayer.YOUTUBE||!self.ytb_do||!self.ytb_do.isStopped_bl){if(self.isPlaying_bl=!1,self.callVastEvent("pause"),self.controller_do&&self.controller_do.showPlayButton(),!self.largePlayButton_do||self.data.showAnnotationsPositionTool_bl||self.useWithoutVideoScreen_bl||self.largePlayButton_do.show(),self.controller_do&&self.controller_do.show(!0),!self.logo_do||self.videoType_str==FWDEVPlayer.VIMEO||self.useWithoutVideoScreen_bl||self.useWithoutVideoScreen_bl||self.logo_do.show(!0),self.hider.stop(),self.hider.reset(),self.showCursor(),self.videoType_str!=FWDEVPlayer.VIMEO&&self.showClickScreen(),self.popw_do){var e=self.shareWindow_do&&self.shareWindow_do.isShowed_bl,t=self.embedWindow_do&&self.embedWindow_do.isShowed_bl;e||t||self.popw_do.show()}self.opener_do&&self.opener_do.showPlayButton(),self.dispatchEvent(FWDEVPlayer.PAUSE)}},this.videoScreenUpdateHandler=function(e){var t;t=FWDEVPlayer.hasHTML5Video||self.videoType_str==FWDEVPlayer.YOUTUBE&&self.videoType_str!=FWDEVPlayer.IMAGE&&self.videoType_str!=FWDEVPlayer.IFRAME?e.percent:e,self.controller_do&&self.controller_do.updateMainScrubber(t),self.dispatchEvent(FWDEVPlayer.UPDATE,{percent:t})},this.videoScreenUpdateSubtitleHandler=function(e){self.subtitle_do.updateSubtitle(e.curTime)},this.videoScreenUpdateTimeHandler=function(e,e2,e3,stopHandler){if(self.prevSeconds!=e.seconds&&(self.totalTimePlayed+=1),self.totalTimeInSeconds=e.totalTimeInSeconds,self.curTimeInSecond=e.seconds,self.prevSeconds=e.seconds,self.totalPercentPlayed=self.totalTimePlayed/e.totalTimeInSeconds,self.controller_do&&!self.controller_do.isMainScrubberScrubbing_bl&&self.controller_do.atb&&self.controller_do.atb.isShowed_bl&&!self.controller_do.atb.scrub){var a=self.totalTimeInSeconds*self.controller_do.atb.pa,b=self.totalTimeInSeconds*self.controller_do.atb.pb;self.prevCurTimeInSeconds!=self.curTimeInSecond&&(self.prevCurTimeInSeconds=self.curTimeInSecond,self.curTimeInSecond<a?self.scrub(self.controller_do.atb.pa):self.curTimeInSecond>b&&self.scrub(self.controller_do.atb.pa))}var time,seconds;if(self.isAdd_bl&&(.25<=self.totalPercentPlayed&&self.callFirstQuartile?(self.callVastEvent("firstQuartile"),self.callFirstQuartile=!1):.5<=self.totalPercentPlayed&&self.callMidpoint?(self.callVastEvent("midpoint"),self.callMidpoint=!1):.75<=self.totalPercentPlayed&&self.callThirdQuartile&&(self.callVastEvent("thirdQuartile"),self.callThirdQuartile=!1)),FWDEVPlayer.hasHTML5Video||self.videoType_str==FWDEVPlayer.YOUTUBE||self.videoType_str==FWDEVPlayer.HLS_JS||self.videoType_str==FWDEVPlayer.VIMEO?(self.curTime=e.curTime,self.totalTime=e.totalTime,time=self.curTime+"/"+self.totalTime,seconds=e.seconds):(self.curTime=e,self.totalTime=e2,time=self.curTime+"/"+self.totalTime,seconds=e3,null!=e&&null!=e2||(time="00:00/00:00")),self.controller_do&&self.controller_do.updateTime(time),!stopHandler){if(self.isAdd_bl||(5<self.totalTime.length?self.totalDuration=FWDEVPUtils.getSecondsFromString(self.totalTime):self.totalDuration=FWDEVPUtils.getSecondsFromString("00:"+self.totalTime)),self.isAdd_bl&&self.data.showSkipButton_bl&&(self.data.timeToHoldAds>seconds?(self.adsStart_do.updateText(self.data.skipToVideoText_str+Math.abs(self.data.timeToHoldAds-seconds)),self.adsSkip_do.hide(!1),self.videoType_str!=FWDEVPlayer.IMAGE&&self.videoType_str!=FWDEVPlayer.IFRAME||self.adsStart_do.show(!0)):(self.adsStart_do.hide(!0),0!=self.data.timeToHoldAds&&self.adsSkip_do.show(!0))),self.currentSecconds=e.seconds,!self.isAdd_bl&&self.popupAds_do&&self.popupAds_do.update(parseInt(e.seconds)),!self.isAdd_bl&&self.annotations_do&&self.annotations_do.update(e.seconds),0==seconds||self.isAdd_bl||(self.curDurration=seconds),self.data.cuePointsSource_ar)for(var i=0;i<self.data.cuePointsSource_ar.length;i++){var cuePoint=self.data.cuePointsSource_ar[i];cuePoint.timeStart==e.seconds&&(self.data.executeCuepointsOnlyOnce_bl&&cuePoint.isPlayed_bl||eval(cuePoint.javascriptCall),cuePoint.isPlayed_bl=!0)}self.isAdd_bl||self.updateAds(seconds),self.isPlaying_bl&&FWDEVPUtils.getSecondsFromString(self.data.stopAtTime)<=e.seconds&&self.stop(),FWDEVPUtils.getSecondsFromString(self.getStartTimeStamp("e"))&&self.curTimeInSecond>=parseInt(FWDEVPUtils.getSecondsFromString(self.getStartTimeStamp("e")))&&self.stop(),self.dispatchEvent(FWDEVPlayer.UPDATE_TIME,{currentTime:self.curTime,totalTime:self.totalTime})}},this.videoScreenLoadProgressHandler=function(e){FWDEVPlayer.hasHTML5Video||self.videoType_str==FWDEVPlayer.YOUTUBE?self.controller_do&&self.controller_do.updatePreloaderBar(e.percent):self.videoType_str==FWDEVPlayer.VIDEO&&self.controller_do&&self.controller_do.updatePreloaderBar(e)},this.videoScreenStartToBuferHandler=function(){self.showPreloader_bl&&(self.preloader_do.show(!1),self.preloader_do.startPreloader())},this.videoScreenStopToBuferHandler=function(){self.preloader_do.hide(!1),self.preloader_do.stopPreloader()},this.videoScreenPlayCompleteHandler=function(e,t){self.adDone_bl=!0,self.callVastEvent("complete"),!self.isAdd_bl&&self.data.redirectURL&&("_self"==self.data.redirectTarget?location.replace(self.data.redirectURL):window.open(self.data.redirectURL,self.data.redirectTarget));var o=self.isAdd_bl;self.isAdd_bl&&(self.data.openNewPageAtTheEndOfTheAds_bl&&"none"!=self.data.adsPageToOpenURL_str&&!t&&("_self"==self.data.adsPageToOpenTarget_str?location.href=self.data.adsPageToOpenURL_str:window.open(self.data.adsPageToOpenURL_str,self.data.adsPageToOpenTarget_str)),self.isAdd_bl=!1,self.setSource(self.data.videosSource_ar[self.data.startAtVideoSource].source,!0),self.wasAdd_bl=!0,t&&self.videoType_str==FWDEVPlayer.VIDEO?self.play():self.isMobile_bl||self.videoType_str==FWDEVPlayer.HLS_JS||self.play(),self.wasAdHLS=!0),o||(self.data.loop_bl?(self.scrub(0),self.play()):self.stop(),self.dispatchEvent(FWDEVPlayer.PLAY_COMPLETE)),self.hider&&self.hider.reset()},this.setupAnnotations=function(){FWDEVPAnnotations.setPrototype(),self.annotations_do=new FWDEVPAnnotations(self,self.data),self.main_do.addChild(self.annotations_do)},this.setupAdsStart=function(){FWDEVPAdsStart.setPrototype(),self.adsStart_do=new FWDEVPAdsStart(self.data.adsButtonsPosition_str,self.data.adsBorderNormalColor_str,"",self.data.adsBackgroundPath_str,self.data.adsTextNormalColor),FWDEVPAdsButton.setPrototype(),self.adsSkip_do=new FWDEVPAdsButton(self.data.skipIconPath_img,self.data.skipIconSPath_str,self.data.skipToVideoButtonText_str,self.data.adsButtonsPosition_str,self.data.adsBorderNormalColor_str,self.data.adsBorderSelectedColor_str,self.data.adsBackgroundPath_str,self.data.adsTextNormalColor,self.data.adsTextSelectedColor,self.data.useHEXColorsForSkin_bl,self.data.normalButtonsColor_str,self.data.selectedButtonsColor_str),self.adsSkip_do.addListener(FWDEVPAdsButton.MOUSE_UP,self.skipAdsMouseUpHandler),self.main_do.addChild(self.adsSkip_do),self.main_do.addChild(self.adsStart_do)},this.skipAdsMouseUpHandler=function(e){e.preventDefault&&e.preventDefault(),self.callVastEvent("skip"),self.videoScreenPlayCompleteHandler(e,!0)},this.positionAds=function(e){var t,o;self.data.showSkipButton_bl&&(t="left"==self.data.adsButtonsPosition_str?0:self.stageWidth,o=self.controller_do&&self.controller_do.isShowed_bl?self.stageHeight-self.adsStart_do.h-self.data.controllerHeight-30:self.stageHeight-self.adsStart_do.h-self.data.controllerHeight,FWDAnimation.killTweensOf(this.adsStart_do),e?FWDAnimation.to(this.adsStart_do,.8,{y:o,ease:Expo.easeInOut}):this.adsStart_do.setY(o),self.adsStart_do.setX(t),t="left"==self.data.adsButtonsPosition_str?0:self.stageWidth,o=self.controller_do&&self.controller_do.isShowed_bl?self.stageHeight-self.adsSkip_do.h-self.data.controllerHeight-30:self.stageHeight-self.adsSkip_do.h-self.data.controllerHeight,FWDAnimation.killTweensOf(this.adsSkip_do),e?FWDAnimation.to(this.adsSkip_do,.8,{y:o,ease:Expo.easeInOut}):this.adsSkip_do.setY(o),self.adsSkip_do.setX(t))},this.setupShareWindow=function(){FWDEVPShareWindow.setPrototype(),self.shareWindow_do=new FWDEVPShareWindow(self.data,self),self.shareWindow_do.addListener(FWDEVPShareWindow.HIDE_COMPLETE,self.shareWindowHideCompleteHandler)},this.shareWindowHideCompleteHandler=function(){self.isVideoPlayingWhenOpenWindows_bl&&self.resume(),self.controller_do&&(self.controller_do.shareButton_do.isDisabled_bl=!1,self.controller_do.shareButton_do.setNormalState(!0))},this.setupPasswordWindow=function(){FWDEVPPassword.setPrototype(),self.passWindow_do=new FWDEVPPassword(self.data,self),self.passWindow_do.addListener(FWDEVPPassword.CORRECT,self.passordCorrect)},this.passordCorrect=function(){self.passWindow_do.hide(),self.hasPassedPassowrd_bl=!0,self.play()},this.setupEmbedWindow=function(){FWDEVPEmbedWindow.setPrototype(),self.embedWindow_do=new FWDEVPEmbedWindow(self.data,self),self.embedWindow_do.addListener(FWDEVPEmbedWindow.ERROR,self.embedWindowErrorHandler),self.embedWindow_do.addListener(FWDEVPEmbedWindow.HIDE_COMPLETE,self.embedWindowHideCompleteHandler)},this.embedWindowErrorHandler=function(e){self.main_do.addChild(self.info_do),self.info_do.showText(e.error)},this.embedWindowHideCompleteHandler=function(){self.isVideoPlayingWhenOpenWindows_bl&&self.resume(),self.controller_do&&(self.controller_do.embedButton_do.isDisabled_bl=!1,self.controller_do.embedButton_do.setNormalState(!0))},this.copyLinkButtonOnMouseOver=function(){self.embedWindow_do.isShowed_bl&&self.embedWindow_do.copyLinkButton_do.setSelectedState()},this.copyLinkButtonOnMouseOut=function(){self.embedWindow_do.isShowed_bl&&self.embedWindow_do.copyLinkButton_do.setNormalState()},this.getLinkCopyPath=function(){if(self.embedWindow_do.isShowed_bl)return self.embedWindow_do.linkToVideo_str},this.embedkButtonOnMouseOver=function(){self.embedWindow_do.isShowed_bl&&self.embedWindow_do.copyEmbedButton_do.setSelectedState()},this.embedButtonOnMouseOut=function(){self.embedWindow_do.isShowed_bl&&self.embedWindow_do.copyEmbedButton_do.setNormalState()},this.getEmbedCopyPath=function(){return self.embedWindow_do.finalEmbedCode_str},this.setInputs=function(){for(var e=document.querySelectorAll("input"),t=0;t<e.length;t++)self.hasPointerEvent_bl?e[t].addEventListener("pointerdown",self.inputFocusInHandler):e[t].addEventListener&&(e[t].addEventListener("mousedown",self.inputFocusInHandler),e[t].addEventListener("touchstart",self.inputFocusInHandler))},this.inputFocusInHandler=function(e){self.curInput=e.target,setTimeout(function(){self.hasPointerEvent_bl?window.addEventListener("pointerdown",self.inputFocusOutHandler):window.addEventListener&&(window.addEventListener("mousedown",self.inputFocusOutHandler),window.addEventListener("touchstart",self.inputFocusOutHandler)),FWDEVPlayer.isSearchedFocused_bl=!0},50)},this.inputFocusOutHandler=function(e){var t=FWDEVPUtils.getViewportMouseCoordinates(e);if(!FWDEVPUtils.hitTest(self.curInput,t.screenX,t.screenY))return self.hasPointerEvent_bl?window.removeEventListener("pointerdown",self.inputFocusOutHandler):window.removeEventListener&&(window.removeEventListener("mousedown",self.inputFocusOutHandler),window.removeEventListener("touchstart",self.inputFocusOutHandler)),void(FWDEVPlayer.isSearchedFocused_bl=!1)},this.addKeyboardSupport=function(){self.setInputs(),document.addEventListener("keydown",this.onKeyDownHandler),document.addEventListener("keyup",this.onKeyUpHandler)},this.onKeyDownHandler=function(e){if(!self.isSpaceDown_bl&&self.hasStartedToPlay_bl&&!FWDEVPlayer.isSearchedFocused_bl){if(self.isSpaceDown_bl=!0,e.preventDefault&&e.preventDefault(),32==e.keyCode){if(self!=FWDEVPlayer.keyboardCurInstance&&("pause"==FWDEVPlayer.videoStartBehaviour||"none"==FWDEVPlayer.videoStartBehaviour))return;if(self.stickOnCurrentInstanceKey_bl=!0,self.videoType_str==FWDEVPlayer.IMAGE||self.videoType_str==FWDEVPlayer.IFRAME)self.isImageAdsPlaying_bl?self.stopUpdateImageInterval():self.startUpdateImageInterval();else if(self.videoType_str==FWDEVPlayer.YOUTUBE){if(!self.ytb_do.isSafeToBeControlled_bl)return;self.ytb_do.togglePlayPause()}else if(self.videoType_str==FWDEVPlayer.VIMEO){if(!self.vimeo_do.isSafeToBeControlled_bl)return;self.vimeo_do.togglePlayPause()}else if(self.videoType_str==FWDEVPlayer.MP3){if(!self.audioScreen_do.isSafeToBeControlled_bl)return;self.audioScreen_do.togglePlayPause()}else if(FWDEVPlayer.hasHTML5Video){if(!self.videoScreen_do.isSafeToBeControlled_bl)return;self.videoScreen_do&&self.videoScreen_do.togglePlayPause()}else self.isFlashScreenReady_bl&&self.flashObject.togglePlayPause();return e.preventDefault&&e.preventDefault(),!1}if(70!=e.keyCode||self.useWithoutVideoScreen_bl)if(77==e.keyCode)0!=self.volume&&(self.lastVolume=self.volume),0!=self.volume?self.volume=0:self.volume=self.lastVolume,self.setVolume(self.volume);else if(38==e.keyCode)self.volume+=.1,1<self.volume&&(self.volume=1),self.setVolume(self.volume);else if(40==e.keyCode)self.volume-=.1,self.volume<0&&(self.volume=0),self.setVolume(self.volume);else if(77==e.keyCode)self.volume<0&&(self.volume=0),self.setVolume(self.volume);else if(39!=e.keyCode||self.isAdd_bl){if(37==e.keyCode&&!self.isAdd_bl){5==(t=self.getCurrentTime()).length&&(t="00:"+t),7==t.length&&(t="0"+t),t=FWDEVPUtils.getSecondsFromString(t),t-=5,5==(t=FWDEVPUtils.formatTime(t)).length&&(t="00:"+t),7==t.length&&(t="0"+t),self.scrubbAtTime(t)}}else{var t;5==(t=self.getCurrentTime()).length&&(t="00:"+t),7==t.length&&(t="0"+t),t=FWDEVPUtils.getSecondsFromString(t),t+=5,5==(t=FWDEVPUtils.formatTime(t)).length&&(t="00:"+t),7==t.length&&(t="0"+t),self.scrubbAtTime(t)}else self.isFullScreen_bl?self.goNormalScreen():self.goFullScreen()}},this.onKeyUpHandler=function(e){self.isSpaceDown_bl=!1},this.setupHider=function(){FWDEVPHider.setPrototype(),self.hider=new FWDEVPHider(self.main_do,self.controller_do,self.data.controllerHideDelay),self.hider.addListener(FWDEVPHider.SHOW,self.hiderShowHandler),self.hider.addListener(FWDEVPHider.HIDE,self.hiderHideHandler),self.hider.addListener(FWDEVPHider.HIDE_COMPLETE,self.hiderHideCompleteHandler)},this.hiderShowHandler=function(){self.controller_do&&self.isPlaying_bl&&self.controller_do.show(!0),self.logo_do&&self.data.hideLogoWithController_bl&&self.isPlaying_bl&&self.videoType_str!=FWDEVPlayer.VIMEO&&!self.useWithoutVideoScreen_bl&&self.logo_do.show(!0),self.showCursor(),self.isAdd_bl&&self.data.showSkipButton_bl&&(self.positionAds(!0),self.adsStart_do.showWithOpacity(),self.adsSkip_do.showWithOpacity()),self.subtitle_do.position(!0),self.popupAds_do&&self.popupAds_do.position(!0)},this.hiderHideHandler=function(){(self.videoType_str!=FWDEVPlayer.VIMEO||self.data.showDefaultControllerForVimeo_bl)&&(self.controller_do&&self.data.showYoutubeQualityButton_bl&&FWDEVPUtils.hitTest(self.controller_do.ytbButtonsHolder_do.screen,self.hider.globalX,self.hider.globalY)?self.hider.reset():self.controller_do&&self.controller_do.atb&&self.controller_do.atb.isShowed_bl&&FWDEVPUtils.hitTest(self.controller_do.atb.mainHolder_do.screen,self.hider.globalX,self.hider.globalY)?self.hider.reset():self.controller_do&&self.data.showSubtitleButton_bl&&FWDEVPUtils.hitTest(self.controller_do.subtitlesButtonsHolder_do.screen,self.hider.globalX,self.hider.globalY)?self.hider.reset():self.controller_do&&self.data.showPlaybackRateButton_bl&&FWDEVPUtils.hitTest(self.controller_do.playbackRatesButtonsHolder_do.screen,self.hider.globalX,self.hider.globalY)?self.hider.reset():self.controller_do&&FWDEVPUtils.hitTest(self.controller_do.screen,self.hider.globalX,self.hider.globalY)?self.hider.reset():(self.controller_do&&self.controller_do.hide(!0),self.isAdd_bl&&self.data.showSkipButton_bl&&(self.positionAds(!0),self.adsStart_do.hideWithOpacity(),self.adsSkip_do.hideWithOpacity()),self.logo_do&&self.data.hideLogoWithController_bl&&self.logo_do.hide(!0),self.isFullScreen_bl&&self.hideCursor(),self.subtitle_do.position(!0),self.popupAds_do&&self.popupAds_do.position(!0)))},this.hiderHideCompleteHandler=function(){self.controller_do&&self.controller_do.positionScrollBarOnTopOfTheController()},this.showPlayer=function(){self.isAPIReady_bl&&(self.isShowed_bl=!0,self.opener_do.showCloseButton(),self.setStageContainerFinalHeightAndPosition(self.animate_bl),self.isMin&&(self.isMinShowed=!0,self.positionOnMin(!0)))},this.hidePlayer=function(){self.isAPIReady_bl&&(self.isShowed_bl=!1,self.opener_do.showOpenButton(),self.setStageContainerFinalHeightAndPosition(self.animate_bl),self.isMin&&(self.isMinShowed=!1,self.positionOnMin(!0)))},this.play=function(){if(self.isAPIReady_bl){if(self.videoType_str==FWDEVPlayer.YOUTUBE&&!self.isYoutubeReady_bl)return self.showPreloader_bl&&(self.preloader_do.show(!1),self.preloader_do.startPreloader()),void(self.largePlayButton_do&&!self.useWithoutVideoScreen_bl&&self.largePlayButton_do.show());if(self.videoType_str==FWDEVPlayer.VIMEO&&!self.isVimeoReady_bl)return self.showPreloader_bl&&(self.preloader_do.show(!1),self.preloader_do.startPreloader()),void(self.largePlayButton_do&&!self.useWithoutVideoScreen_bl&&self.largePlayButton_do.show());if(self.videoType_str==FWDEVPlayer.HLS_JS&&0<=location.protocol.indexOf("file:"))return self.main_do.addChild(self.info_do),void self.info_do.showText("HLS m3u8 videos can't be played local on this browser, please test it online!.");if(self.data.playVideoOnlyWhenLoggedIn_bl&&!self.data.isLoggedIn_bl)return self.main_do.addChild(self.info_do),self.info_do.showText(self.data.loggedInMessage_str),void(self.largePlayButton_do&&!self.useWithoutVideoScreen_bl&&self.largePlayButton_do.show());if(!self.isAdd_bl&&self.data.videosSource_ar[self.data.startAtVideoSource].isPrivate&&!self.hasPassedPassowrd_bl&&self.passWindow_do)return self.largePlayButton_do&&!self.useWithoutVideoScreen_bl&&self.largePlayButton_do.show(),void self.passWindow_do.show();if(self.hasPassedPassowrd_bl=!0,!self.isMobile_bl||self.videoType_str!=FWDEVPlayer.YOUTUBE||!self.ytb_do||self.ytb_do.isSafeToBeControlled_bl){if(self.isMobile_bl?FWDEVPlayer.stopAllVideos(self):FWDEVPlayer.videoStartBehaviour==FWDEVPlayer.PAUSE_ALL_VIDEOS?FWDEVPlayer.pauseAllVideos(self):FWDEVPlayer.videoStartBehaviour==FWDEVPlayer.STOP_ALL_VIDEOS&&FWDEVPlayer.stopAllVideos(self),self.videoType_str==FWDEVPlayer.IMAGE||self.videoType_str==FWDEVPlayer.IFRAME)self.startUpdateImageInterval();else if(self.videoType_str==FWDEVPlayer.YOUTUBE&&self.ytb_do)self.ytb_do.play();else if(self.videoType_str==FWDEVPlayer.VIMEO&&self.vimeo_do)self.vimeo_do.isStopped_bl?self.startVimeoVideoWithDelay=setTimeout(self.vimeo_do.play,1e3):self.vimeo_do.play();else if(self.videoType_str==FWDEVPlayer.MP3)self.audioScreen_do&&(self.audioScreen_do.play(),FWDEVPUtils.isLocal||self.audioScreen_do.setupSpectrum());else if(FWDEVPlayer.hasHTML5Video)if(self.videoType_str!=FWDEVPlayer.HLS_JS||self.isHLSManifestReady_bl)self.videoScreen_do&&self.videoScreen_do.play();else{self.videoScreen_do.initVideo(),self.setupHLS();var e=self.videoSourcePath_str;-1!=e.indexOf("encrypt:")&&(e=atob(e.substr(8))),self.hlsJS.loadSource(e),self.hlsJS.attachMedia(self.videoScreen_do.video_el),self.hlsJS.on(Hls.Events.MANIFEST_PARSED,function(e){self.isHLSManifestReady_bl=!0,self.play()})}else self.isFlashScreenReady_bl&&self.flashObject.playVideo();(FWDEVPlayer.keyboardCurInstance=self).videoPoster_do.allowToShow_bl=!1,self.largePlayButton_do&&self.largePlayButton_do.hide(),self.videoPoster_do.hide()}}},this.pause=function(){self.isAPIReady_bl&&(self.videoType_str==FWDEVPlayer.IMAGE||self.videoType_str==FWDEVPlayer.IFRAME?self.stopUpdateImageInterval():self.videoType_str==FWDEVPlayer.YOUTUBE?self.ytb_do.pause():self.videoType_str==FWDEVPlayer.VIMEO&&self.vimeo_do?self.vimeo_do.pause():self.videoType_str==FWDEVPlayer.MP3?self.audioScreen_do&&self.audioScreen_do.pause():FWDEVPlayer.hasHTML5Video?self.videoScreen_do&&self.videoScreen_do.pause():self.isFlashScreenReady_bl&&self.flashObject.pauseVideo())},this.resume=function(){self.isAPIReady_bl&&(self.videoType_str==FWDEVPlayer.IMAGE||self.videoType_str==FWDEVPlayer.IFRAME?self.startUpdateImageInterval():self.videoType_str==FWDEVPlayer.YOUTUBE&&self.ytb_do?self.ytb_do.resume():self.videoType_str==FWDEVPlayer.VIMEO&&self.vimeo_do?self.vimeo_do.resume():self.videoType_str==FWDEVPlayer.MP3?self.audioScreen_do&&self.audioScreen_do.resume():FWDEVPlayer.hasHTML5Video&&self.videoScreen_do&&self.videoScreen_do.resume())},self.hasHlsPlayedOnce_bl=!1,this.stop=function(e){if(self.isAPIReady_bl){if(window.ga&&Math.round(100*self.totalPercentPlayed)){var t="videoPath:"+self.videoSource_str+", percentPlayed:"+Math.round(100*self.totalPercentPlayed)+", stoppedAtTime:"+self.getCurrentTime()+", fullScreen:"+self.isFullScreen_bl;ga("send",{hitType:"event",eventCategory:"videos",eventAction:"played",eventLabel:t,nonInteraction:!0})}self.hasPassedPassowrd_bl=!1,self.isHLSManifestReady_bl=!1,self.playYoutubeIfLoadedLate_bl=!1,self.isPlaying_bl=!1,self.totalTimePlayed=0,self.hider.reset(),self.destroyHLS(),clearTimeout(self.startVimeoVideoWithDelay),clearTimeout(self.load360ScriptsId_to),self.popw_do&&self.popw_do.hide(),self.controller_do&&self.controller_do.ytbQualityButton_do&&(self.controller_do.ytbQualityButton_do.disable(),self.controller_do.hideQualityButtons(!1),self.controller_do.updateMainScrubber(0),self.controller_do.updatePreloaderBar(0)),self.controller_do&&(self.controller_do.atb&&self.controller_do.atb.hide(!0),self.controller_do.disableAtbButton(),self.controller_do.thumbnailsPreview_do&&self.controller_do.thumbnailsPreview_do.remove()),self.controller_do&&self.controller_do.subtitleButton_do&&self.controller_do.subtitleButton_do.disable(),self.controller_do&&self.controller_do.downloadButton_do&&self.controller_do.downloadButton_do.disable(),self.controller_do&&self.controller_do.rewindButton_do&&self.controller_do.rewindButton_do.disable(),self.controller_do&&(self.controller_do.disablePlaybackRateButton(),self.controller_do.ttm&&self.controller_do.ttm.hide()),self.isAdd_bl?self.setPlaybackRate(1):self.setPlaybackRate(self.data.defaultPlaybackRate_ar[self.data.startAtPlaybackIndex]),self.controller_do&&self.data.showPlaybackRateButton_bl&&self.controller_do.updatePlaybackRateButtons(self.data.updatePlaybackRateButtons,self.data.startAtPlaybackIndex),self.videoType_str==FWDEVPlayer.IMAGE||self.videoType_str==FWDEVPlayer.IFRAME?self.stopUpdateImageInterval():self.videoType_str==FWDEVPlayer.YOUTUBE&&self.ytb_do?self.ytb_do.stop():self.videoType_str==FWDEVPlayer.VIMEO?self.vimeo_do&&self.vimeo_do.stop():self.videoType_str==FWDEVPlayer.MP3?self.audioScreen_do&&self.audioScreen_do.stop():FWDEVPlayer.hasHTML5Video?self.videoScreen_do.stop():self.isFlashScreenReady_bl&&self.flashObject.stopVideo(),self.isMobile_bl?e&&-1!=e.indexOf(".")?(self.data.showControllerWhenVideoIsStopped_bl&&self.controller_do&&self.controller_do.show(!0),self.videoPoster_do&&self.videoPoster_do.show(),!self.largePlayButton_do||self.data.showAnnotationsPositionTool_bl||self.useWithoutVideoScreen_bl||self.largePlayButton_do.show()):e||self.videoType_str!=FWDEVPlayer.VIDEO?self.useYoutube_bl&&(self.ytb_do.ytb||self.ytb_do.setupVideo()):(self.videoPoster_do.show(),self.largePlayButton_do&&!self.useWithoutVideoScreen_bl&&self.largePlayButton_do.show()):(self.data.showControllerWhenVideoIsStopped_bl&&self.controller_do_do&&self.controller_do.show(!0),self.videoPoster_do.show(),self.largePlayButton_do&&!self.useWithoutVideoScreen_bl&&self.largePlayButton_do.show()),clearInterval(self.fillScreenId_int),self.subtitle_do.hide(),self.hasHlsPlayedOnce_bl=!1,self.isSafeToScrub_bl=!1,self.hlsState=void 0,self.popupAds_do&&self.popupAds_do.hideAllPopupButtons(!1),self.adsStart_do&&self.adsStart_do.hide(!0),self.adsSkip_do&&self.adsSkip_do.hide(!0),self.controller_do&&self.controller_do.hideAdsLines(),self.annotations_do&&self.annotations_do.update(1e5),self.customContextMenu_do&&self.customContextMenu_do.disable(),self.stopVisualization(),self.hasStartedToPlay_bl=!1}},this.startToScrub=function(){self.isAPIReady_bl&&(self.videoType_str==FWDEVPlayer.YOUTUBE&&self.ytb_do&&self.ytb_do.isSafeToBeControlled_bl?self.ytb_do.startToScrub():self.videoType_str==FWDEVPlayer.VIMEO&&self.vimeo_do?self.vimeo_do.startToScrub():self.videoType_str==FWDEVPlayer.MP3?self.audioScreen_do&&self.audioScreen_do.startToScrub():FWDEVPlayer.hasHTML5Video?self.videoScreen_do&&self.videoScreen_do.startToScrub():self.isFlashScreenReady_bl&&self.flashObject.startToScrub())},this.stopToScrub=function(){self.isAPIReady_bl&&(self.videoType_str==FWDEVPlayer.YOUTUBE&&self.ytb_do&&self.ytb_do.isSafeToBeControlled_bl?self.ytb_do.stopToScrub():self.videoType_str==FWDEVPlayer.VIMEO&&self.vimeo_do?self.vimeo_do.stopToScrub():self.videoType_str==FWDEVPlayer.MP3?self.audioScreen_do&&self.audioScreen_do.stopToScrub():FWDEVPlayer.hasHTML5Video?self.videoScreen_do&&self.videoScreen_do.stopToScrub():self.isFlashScreenReady_bl&&self.flashObject.stopToScrub())},this.scrub=function(e,t){self.isAPIReady_bl&&(isNaN(e)||(e<0?e=0:1<e&&(e=1),self.videoType_str==FWDEVPlayer.YOUTUBE&&self.ytb_do&&self.ytb_do.isSafeToBeControlled_bl?self.ytb_do.scrub(e):self.videoType_str==FWDEVPlayer.VIMEO&&self.vimeo_do?self.vimeo_do.scrub(e):self.videoType_str==FWDEVPlayer.MP3?self.audioScreen_do&&self.audioScreen_do.scrub(e):FWDEVPlayer.hasHTML5Video?self.videoScreen_do&&self.videoScreen_do.scrub(e):self.isFlashScreenReady_bl&&self.flashObject.scrub(e),self.dispatchEvent(FWDEVPlayer.SCRUB,{percent:e})))},this.scrubbAtTime=function(e){self.isAPIReady_bl&&e&&(-1!=String(e).indexOf(":")&&(e=FWDEVPUtils.getSecondsFromString(e)),self.videoType_str==FWDEVPlayer.YOUTUBE&&self.ytb_do?self.ytb_do.scrubbAtTime(e):self.videoType_str==FWDEVPlayer.VIMEO&&self.vimeo_do?self.vimeo_do.scrubbAtTime(e):self.videoType_str==FWDEVPlayer.MP3?self.audioScreen_do&&self.audioScreen_do.scrubbAtTime(e):FWDEVPlayer.hasHTML5Video&&self.videoScreen_do&&self.videoScreen_do.scrubbAtTime(e))},this.share=function(){self.isAPIReady_bl&&self.shareWindow_do.show()},this.setVolume=function(e){self.isAPIReady_bl&&!self.isMobile_bl&&(self.controller_do&&self.controller_do.updateVolume(e,!0),self.volume=e,self.ytb_do&&self.ytb_do.setVolume(self.volume),self.vimeo_do&&self.vimeo_do.setVolume(self.volume),self.audioScreen_do&&self.audioScreen_do.setVolume(self.volume),FWDEVPlayer.hasHTML5Video&&self.videoScreen_do&&self.videoScreen_do.setVolume(self.volume),self.dispatchEvent(FWDEVPlayer.VOLUME_SET,{volume:self.volume}))},this.setPosterSource=function(e){if(self.isAPIReady_bl&&e){var t=e.split(",");-1!=(e=self.isMobile_bl&&null!=t[1]?t[1]:t[0]).indexOf("encrypt:")&&(e=atob(e.substr(8))),self.posterPath_str=e,-1==self.videoSourcePath_str.indexOf(".")&&self.useYoutube_bl&&self.isMobile_bl?self.videoPoster_do.setPoster("youtubemobile"):(self.videoPoster_do.setPoster(self.posterPath_str),self.prevPosterSource_str!=e&&self.dispatchEvent(FWDEVPlayer.UPDATE_POSTER_SOURCE)),self.prevPosterSource_str=e}},this.updateAds=function(e){if(self.videoType_str!=FWDEVPlayer.YOUTUBE||self.ytb_do)if(!self.data.vastXML||self.data.isVastXMLParsed_bl){if(!self.isAdd_bl){if(self.TrackingEvents=void 0,self.Impression=void 0,self.ClickTracking=void 0,self.callFirstQuartile=!0,self.callMidpoint=!0,self.callThirdQuartile=!0,!this.isAdd_bl){this.controller_do&&(self.controller_do.setupAdsLines(self.data.adsSource_ar),self.totalDuration&&self.controller_do.positionAdsLines(self.totalDuration));for(var t=0;t<self.data.adsSource_ar.length;t++)if(e>=self.data.adsSource_ar[t].timeStart&&e<=self.data.adsSource_ar[t].timeStart+1&&!self.data.adsSource_ar[t].played_bl&&e!=self.prevDuration){self.isAdd_bl=!0,0!=self.data.adsSource_ar[t].timeStart&&(self.wasAdd_bl=!0),self.addSource_str=self.data.adsSource_ar[t].source,self.data.adsSource_ar[t].played_bl=!0,self.data.adsThumbnailPath_str=self.data.adsSource_ar[t].thumbnailSource,self.data.timeToHoldAds=self.data.adsSource_ar[t].timeToHoldAds,self.data.timeToHoldAds?self.data.showSkipButton_bl=!0:self.data.showSkipButton_bl=!1,self.data.adsPageToOpenURL_str=self.data.adsSource_ar[t].link,self.data.adsPageToOpenTarget_str=self.data.adsSource_ar[t].target,self.scrubAfterAddDuration=self.data.adsSource_ar[t].timeStart,self.TrackingEvents=self.data.adsSource_ar[t].TrackingEvents,self.Impression=self.data.adsSource_ar[t].Impression,self.ClickTracking=self.data.adsSource_ar[t].ClickTracking,self.curImageTotalTime=self.data.adsSource_ar[t].addDuration,self.isStopped_bl||(self.lastCurTime=self.curTime),self.lastCurTime||(self.lastCurTime=self.getCurrentTime()),self.setSource(self.addSource_str),self.videoType_str==FWDEVPlayer.IMAGE||self.videoType_str==FWDEVPlayer.IFRAME||self.isMobile_bl||(self.allowToPlay=!1,"00"==self.lastCurTime.substr(self.lastCurTime.length-2)?(self.autoPlay_bl||self.adDone_bl)&&(-1!=self.addSource_str.indexOf("youtube.")&&self.ytb_do&&self.ytb_do.hasBeenCreatedOnce_bl&&(self.allowToPlay=!0),-1==self.addSource_str.indexOf("youtube.")&&(self.allowToPlay=!0)):(-1!=self.addSource_str.indexOf("youtube.")&&self.ytb_do&&self.ytb_do.hasBeenCreatedOnce_bl&&(self.allowToPlay=!0),-1==self.addSource_str.indexOf("youtube.")&&(self.allowToPlay=!0)),self.allowToPlay&&self.play()),self.adDone_bl=!1,this.controller_do&&this.controller_do.line_ar&&(this.controller_do.line_ar[t].setVisible(!1),this.controller_do.line_ar[t].isUsed_bl=!0);break}}self.isLive=self.data.videosSource_ar[self.data.startAtVideoSource].isLive,this.isAdd_bl||self.setSourceExternal_bl||self.setSource(self.data.videosSource_ar[self.data.startAtVideoSource].source,!1,self.data.videosSource_ar[self.data.startAtVideoSource].videoType),this.controller_do&&this.controller_do.positionAdsLines(self.curDuration),self.prevDuration=e}}else self.data.loadVast(self.data.vastXML)},this.updateImageScreen=function(e){if(self.videoType_str==FWDEVPlayer.IFRAME)return self.iFrame_do||(self.iFrame_do=new FWDEVPDisplayObject("iframe"),self.iFrame_do.hasTransform3d_bl=!1,self.iFrame_do.hasTransform2d_bl=!1,self.iFrame_do.setBackfaceVisibility()),self.main_do.addChildAt(self.iFrame_do,self.main_do.getChildIndex(self.dumyClick_do)+1),self.showClickScreen(),self.iFrame_do.screen.src=e,self.positionAdsImage(),void self.startToUpdateAdsButton();this.imageSceeenHolder_do||(this.imageSceeenHolder_do=new FWDEVPDisplayObject("div"),this.imageSceeenHolder_do.setX(0),this.imageSceeenHolder_do.setY(0),this.imageSceeenHolder_do.setBkColor("#000000")),self.main_do.addChildAt(self.imageSceeenHolder_do,self.main_do.getChildIndex(self.dumyClick_do)-1),self.showClickScreen(),self.imageSceeenHolder_do.contains(self.imageScreen_do)&&self.imageSceeenHolder_do.removeChild(this.imageScreen_do),this.imageScreen_do=null,self.imageScreen_do=new FWDEVPDisplayObject("img"),self.imageAdd_img=new Image,self.imageAdd_img.src=e,self.showPreloader_bl&&(self.preloader_do.show(!1),self.preloader_do.startPreloader()),self.largePlayButton_do&&self.largePlayButton_do.hide(),self.imageAdd_img.onload=function(){self.imageScreen_do.setScreen(self.imageAdd_img),self.imageScreen_do.setAlpha(0),FWDAnimation.to(self.imageScreen_do,1,{alpha:1}),self.imageAddOriginalWidth=self.imageAdd_img.width,self.imageAddOriginalHeight=self.imageAdd_img.height,self.preloader_do.hide(!1),self.preloader_do.stopPreloader(),self.imageSceeenHolder_do.addChild(self.imageScreen_do),self.positionAdsImage(),self.startToUpdateAdsButton()},self.imageAdd_img.onerror=function(){self.main_do.addChild(self.info_do),self.info_do.showText("Advertisment image with path "+e+" can't be found"),self.preloader_do.hide(!1),self.preloader_do.stopPreloader()}},this.positionAdsImage=function(){if(self.videoType_str==FWDEVPlayer.IFRAME&&self.iFrame_do&&(self.iFrame_do.setWidth(self.stageWidth),self.iFrame_do.setHeight(self.stageHeight)),self.imageScreen_do&&self.videoType_str==FWDEVPlayer.IMAGE){var e=self.stageWidth/self.imageAddOriginalWidth,t=self.stageHeight/self.imageAddOriginalHeight,o=0;t<=e?o=e:e<=t&&(o=t);var s=parseInt(self.imageAddOriginalWidth*o),i=parseInt(self.imageAddOriginalHeight*o),n=parseInt((self.stageWidth-s)/2),l=parseInt((self.stageHeight-i)/2);self.imageScreen_do.setWidth(s),self.imageScreen_do.setHeight(i),self.imageScreen_do.setX(n),self.imageScreen_do.setY(l),self.imageSceeenHolder_do.setWidth(self.stageWidth),self.imageSceeenHolder_do.setHeight(self.stageHeight)}},this.startToUpdateAdsButton=function(){self.curImageTime=0,self.updateAdsButton(),self.stopUpdateImageInterval(),self.startUpdateImageInterval(),self.setPlayAndPauseButtonState()},this.stopUpdateImageInterval=function(){self.isImageAdsPlaying_bl=!1,clearInterval(self.startUpdateAdsId_int),self.setPlayAndPauseButtonState(),self.largePlayButton_do&&!self.useWithoutVideoScreen_bl&&self.largePlayButton_do.show(),self.isPlaying_bl=!1,self.hider.stop()},this.startUpdateImageInterval=function(){self.isImageAdsPlaying_bl=!0,self.startUpdateAdsId_int=setInterval(self.updateAdsButton,1e3),self.setPlayAndPauseButtonState(),self.largePlayButton_do&&self.largePlayButton_do.hide(),self.isPlaying_bl=!0,self.hider.start()},this.updateAdsButton=function(){self.videoScreenUpdateTimeHandler({curTime:FWDEVPUtils.formatTime(self.curImageTime),totalTime:FWDEVPUtils.formatTime(self.curImageTotalTime),seconds:self.curImageTime}),self.videoScreenUpdateHandler({percent:self.curImageTime/self.curImageTotalTime}),self.curImageTime==self.curImageTotalTime&&self.videoScreenPlayCompleteHandler(),self.curImageTime+=1},this.setPlayAndPauseButtonState=function(){this.isImageAdsPlaying_bl?self.controller_do&&self.controller_do.showPauseButton():self.controller_do&&self.controller_do.showPlayButton()},this.isThreeJsLoaded_bl=!1,this.isThreeJsOrbitLoaded_bl=!1,this.load360ScriptsId_to,this.isHLSJsLoaded_bl=!1,this.destroyHLS=function(){self.hlsJS&&(self.hlsJS.destroy(),self.hlsJS=null)},this.setupHLS=function(){self.hlsJS||(self.isHLSJsLoaded_bl=!0,self.hlsJS=new Hls,self.hlsJS.on(Hls.Events.ERROR,function(e,t){switch(self.HLSError_str,t.details){case Hls.ErrorDetails.MANIFEST_LOAD_ERROR:try{self.HLSError_str='cannot load <a href="'+t.context.url+'">'+url+"</a><br>HTTP response code:"+t.response.code+" <br>"+t.response.text,0===t.response.code&&(self.HLSError_str+='this might be a CORS issue, consider installing <a href="https://chrome.google.com/webstore/detail/allow-control-allow-origi/nlfbmbojpeacfghkpbjhddihlkkiljbi">Allow-Control-Allow-Origin</a> Chrome Extension')}catch(e){self.HLSError_str="cannot load "+self.videoSourcePath_str}break;case Hls.ErrorDetails.MANIFEST_LOAD_TIMEOUT:self.HLSError_str="timeout while loading manifest";break;case Hls.ErrorDetails.MANIFEST_PARSING_ERROR:self.HLSError_str="error while parsing manifest:"+t.reason;break;case Hls.ErrorDetails.LEVEL_LOAD_ERROR:self.HLSError_str="error while loading level playlist";break;case Hls.ErrorDetails.LEVEL_LOAD_TIMEOUT:self.HLSError_str="timeout while loading level playlist";break;case Hls.ErrorDetails.LEVEL_SWITCH_ERROR:self.HLSError_str="error while trying to switch to level "+t.level;break;case Hls.ErrorDetails.FRAG_LOAD_ERROR:self.HLSError_str="error while loading fragment "+t.frag.url;break;case Hls.ErrorDetails.FRAG_LOAD_TIMEOUT:self.HLSError_str="timeout while loading fragment "+t.frag.url;break;case Hls.ErrorDetails.FRAG_LOOP_LOADING_ERROR:self.HLSError_str="Frag Loop Loading Error";break;case Hls.ErrorDetails.FRAG_DECRYPT_ERROR:self.HLSError_str="Decrypting Error:"+t.reason;break;case Hls.ErrorDetails.FRAG_PARSING_ERROR:self.HLSError_str="Parsing Error:"+t.reason;break;case Hls.ErrorDetails.KEY_LOAD_ERROR:self.HLSError_str="error while loading key "+t.frag.decryptdata.uri;break;case Hls.ErrorDetails.KEY_LOAD_TIMEOUT:self.HLSError_str="timeout while loading key "+t.frag.decryptdata.uri;break;case Hls.ErrorDetails.BUFFER_APPEND_ERROR:self.HLSError_str="Buffer Append Error";break;case Hls.ErrorDetails.BUFFER_ADD_CODEC_ERROR:self.HLSError_str="Buffer Add Codec Error for "+t.mimeType+":"+t.err.message;break;case Hls.ErrorDetails.BUFFER_APPENDING_ERROR:self.HLSError_str="Buffer Appending Error"}self.HLSError_str&&(console&&console.log(self.HLSError_str),self.info_do.allowToRemove_bl=!1,self.main_do.addChild(self.info_do),self.info_do.showText(self.HLSError_str),self.resizeHandler())}))},this.setSource=function(e,t,o){if(self.isAPIReady_bl&&(e=e.replace(/&amp;/g,"&"),self.videoSource_str=e,self.videoSourcePath_str=e,self.finalVideoPath_str=e,self.currentSecconds=0,clearInterval(self.tryHLS_int),clearTimeout(self.load360ScriptsId_to),-1!=e.indexOf("encrypt:")&&(e=atob(e.substr(8))),e!=self.prevVideoSource_str||t)){if(self.videoSource_str=e,self.videoSourcePath_str=e,self.finalVideoPath_str=e,self.main_do.contains(self.info_do)&&self.main_do.removeChild(self.info_do),self.stop(),self.controller_do&&self.controller_do.setIsLive(self.isLive),-1!=self.videoSourcePath_str.indexOf("vimeo.com")&&-1==e.indexOf(".mp4")?self.videoType_str=FWDEVPlayer.VIMEO:-1!=self.videoSourcePath_str.indexOf("youtube.")?(self.videoType_str=FWDEVPlayer.YOUTUBE,self.controller_do&&self.controller_do.setX(0)):-1!=self.videoSourcePath_str.indexOf(".jpg")||-1!=self.videoSourcePath_str.indexOf(".jpeg")||-1!=self.videoSourcePath_str.indexOf(".png")?(self.videoType_str=FWDEVPlayer.IMAGE,self.controller_do&&self.controller_do.setX(0)):-1!=self.videoSourcePath_str.toLowerCase().indexOf(".mp3")?(self.videoType_str=FWDEVPlayer.MP3,self.controller_do&&self.controller_do.setX(0)):-1!=self.videoSourcePath_str.toLowerCase().indexOf("http")&&-1==self.videoSourcePath_str.indexOf(".m3u8")&&-1==self.videoSourcePath_str.toLowerCase().indexOf(".mp4")&&-1==self.videoSourcePath_str.toLowerCase().indexOf("google.com")&&-1==self.videoSourcePath_str.toLowerCase().indexOf("lh3.")?(self.videoType_str=FWDEVPlayer.IFRAME,self.controller_do&&self.controller_do.setX(0)):(self.controller_do&&self.controller_do.setX(0),self.isMobile_bl||FWDEVPlayer.hasHTMLHLS||-1==self.videoSourcePath_str.indexOf(".m3u8")?self.videoType_str=FWDEVPlayer.VIDEO:self.videoType_str=FWDEVPlayer.HLS_JS),-1!=self.videoSource_str.indexOf("youtube.")&&!self.isYoutubeReady_bl)return setTimeout(function(){self.showPreloader_bl&&(self.main_do.addChild(self.preloader_do),self.preloader_do.show(!1),self.preloader_do.startPreloader(),self.largePlayButton_do&&self.largePlayButton_do.hide(),-1!=location.protocol.indexOf("file:")&&FWDEVPUtils.isIE&&self.main_do.addChild(self.info_do))},50),-1!=location.protocol.indexOf("file:")&&FWDEVPUtils.isIE?(self.info_do.allowToRemove_bl=!1,self.main_do.addChild(self.info_do),self.info_do.showText("This browser dosen't allow the Youtube API to run local, please test it online or in another browser like Firefox or Chrome."),void self.resizeHandler()):void self.setupYoutubeAPI();if(-1!=e.indexOf("vimeo.")&&!self.vimeo_do&&self.videoType_str==FWDEVPlayer.VIMEO)return-1!=location.protocol.indexOf("file:")?(self.main_do.addChild(self.info_do),self.info_do.showText("This browser dosen't allow playing Vimeo videos local, please test online."),void self.resizeHandler()):(self.showPreloader_bl&&(self.main_do.addChild(self.preloader_do),self.preloader_do.show(!1),self.preloader_do.startPreloader()),self.largePlayButton_do&&self.largePlayButton_do.hide(),void self.setupVimeoAPI());if(self.isGR=!1,self.is360=!1,o&&("360degreevideo"==o.toLowerCase()?(self.isGR=!1,self.is360=!0):"greenscreenvideo"==o.toLowerCase()&&(self.isGR=!0,self.is360=!1)),self.isGR||self.is360?(self.main_do.setBkColor("transparent"),self.videoScreen_do.setBkColor("transparent")):(self.main_do.setBkColor(self.backgroundColor_str),self.videoScreen_do.setBkColor(self.backgroundColor_str)),!(self.isMobile_bl||FWDEVPlayer.hasHTMLHLS||-1==self.videoSourcePath_str.indexOf(".m3u8")||self.isHLSJsLoaded_bl||FWDEVPlayer.isHLSJsLoaded_bl))return-1!=location.protocol.indexOf("file:")?(self.info_do.allowToRemove_bl=!1,self.main_do.addChild(self.info_do),self.info_do.showText("This browser dosen't allow playing HLS / live streaming videos local, please test online."),void self.resizeHandler()):((s=document.createElement("script")).src=self.data.hlsPath_str,s.onerror=function(){self.main_do.addChild(self.info_do),self.info_do.showText("Error loading HLS library <font color='#FF0000'>"+self.data.hlsPath_str+"</font>."),self.preloader_do.hide(!1),self.preloader_do.stopPreloader()},s.onload=function(){self.isHLSJsLoaded_bl=!0,FWDEVPlayer.isHLSJsLoaded_bl=!0,self.setupHLS(),self.setSource(self.videoSourcePath_str,!1,self.data.videosSource_ar[self.data.startAtVideoSource].videoType)},void document.head.appendChild(s));if(self.is360&&!self.isThreeJsOrbigLoaded_bl){if(FWDEVPUtils.isLocal)return self.main_do.addChild(self.info_do),self.info_do.showText("This browser dosen't allow playing 360 videos local, please test online."),self.preloader_do.hide(!1),void self.preloader_do.stopPreloader();if(!FWDEVPUtils.hasWEBGL)return self.main_do.addChild(self.info_do),self.info_do.showText("Playing 360 videos in this browser is not possible because it dosen't support WEBGL."),self.preloader_do.hide(!1),void self.preloader_do.stopPreloader();var s;if(!self.isThreeJsLoaded_bl&&!FWDEVPlayer.hasThreeJsLoaded_bl)return(s=document.createElement("script")).src=self.data.threeJsPath_str,s.onerror=function(){self.main_do.addChild(self.info_do),self.info_do.showText("Error loading 360 degree library <font color='#FF0000'>"+self.data.threeJsPath_str+"</font>."),self.preloader_do.hide(!1),self.preloader_do.stopPreloader()},s.onload=function(){self.isThreeJsOrbigLoaded_bl=!0;var e=document.createElement("script");e.src=self.data.threeJsControlsPath_str,e.onerror=function(){self.main_do.addChild(self.info_do),self.info_do.showText("Error loading three.js from <font color='#FF0000'>"+self.data.threeJsControlsPath_str+"</font>."),self.preloader_do.hide(!1),self.preloader_do.stopPreloader()},e.onload=function(){FWDEVPlayer.hasThreeJsLoaded_bl=!0,self.isThreeJsOrbitLoaded_bl=!0,self.isThreeJsOrbigLoaded_bl&&self.isThreeJsOrbitLoaded_bl&&self.setSource(self.data.videosSource_ar[self.data.startAtVideoSource].source,!1,self.data.videosSource_ar[self.data.startAtVideoSource].videoType),clearTimeout(self.load360ScriptsId_to),self.preloader_do.hide(!1),self.preloader_do.stopPreloader()},document.head.appendChild(e)},document.head.appendChild(s),void(this.load360ScriptsId_to=setTimeout(function(){self.showPreloader_bl&&(self.preloader_do.show(!1),self.preloader_do.startPreloader())},1e3))}if(self.is360?self.dumyClick_do.getStyle().cursor="url("+self.data.handPath_str+"), default":self.dumyClick_do.getStyle().cursor="auto",!(self.prevVideoSource_str=e))return self.main_do.addChild(self.info_do),void self.info_do.showText("Video source is not defined!");if(-1!=e.indexOf("youtube.")){e=e.match(/^.*(youtu\.be\/|v\/|u\/\w\/|embed\/|watch\?v=|\&v=)([^#\&\?]*).*/)[2]}if(self.popupAds_do&&self.data.popupAds_ar&&self.popupAds_do.resetPopups(self.data.popupAds_ar),self.stop(e),self.controller_do&&self.data.subtitles_ar&&1<self.data.subtitles_ar.length&&(self.controller_do.updateSubtitleButtons(self.data.subtitles_ar,self.data.startAtSubtitle),self.data.subtitlePath_str=self.data.subtitles_ar[self.data.subtitles_ar.length-1-self.data.startAtSubtitle].source),self.controller_do&&!self.isQualityChanging_bl&&self.controller_do.disableSubtitleButton(),self.controller_do&&self.controller_do.rewindButton_do&&self.controller_do.rewindButton_do.disable(),"00:00:00"!=self.data.scrubAtTimeAtFirstPlay&&(self.playAtTime_bl=!0),self.controller_do&&self.controller_do.downloadButton_do&&self.controller_do.downloadButton_do.disable(),self.controller_do&&self.controller_do.updateHexColorForScrubber(self.isAdd_bl),self.resizeHandler(),self.getVideoSource()&&self.dispatchEvent(FWDEVPlayer.UPDATE_VIDEO_SOURCE),self.videoType_str==FWDEVPlayer.IMAGE||self.videoType_str==FWDEVPlayer.IFRAME)return self.updateImageScreen(self.videoSourcePath_str),void(self.videoPoster_do&&self.videoPoster_do.setX(-5e3));if(self.main_do.contains(self.imageSceeenHolder_do)&&self.main_do.removeChild(self.imageSceeenHolder_do),self.main_do.contains(self.iFrame_do)&&self.main_do.removeChild(self.iFrame_do),self.videoPoster_do&&self.videoPoster_do.setX(0),self.isAdd_bl?self.setPlaybackRate(1):self.setPlaybackRate(self.data.defaultPlaybackRate_ar[self.data.startAtPlaybackIndex]),self.controller_do&&(self.videoType_str==FWDEVPlayer.VIMEO||self.videoType_str==FWDEVPlayer.HLS_JS||self.videoType_str==FWDEVPlayer.IMAGE||self.videoType_str==FWDEVPlayer.IFRAME?self.controller_do.removePlaybackRateButton():self.controller_do.addPlaybackRateButton()),self.controller_do&&self.data.showPlaybackRateButton_bl&&self.controller_do.updatePlaybackRateButtons(self.data.updatePlaybackRateButtons,self.data.startAtPlaybackIndex),self.videoType_str==FWDEVPlayer.VIMEO)return self.videoScreen_do&&self.videoScreen_do.setX(-5e3),self.audioScreen_do&&self.audioScreen_do.setX(-5e3),self.audioScreen_do.setVisible(!1),self.ytb_do&&self.ytb_do.ytb&&self.ytb_do.showDisable(),self.videoScreen_do.setVisible(!1),self.vimeo_do.setSource(e),self.isMobile_bl?(self.videoPoster_do.hide(),self.largePlayButton_do&&self.largePlayButton_do.hide()):(self.setPosterSource(self.posterPath_str),self.videoPoster_do.show(),!self.largePlayButton_do||self.data.showAnnotationsPositionTool_bl||self.useWithoutVideoScreen_bl||self.largePlayButton_do.show(),self.data.autoPlay_bl&&self.play()),self.getVideoSource()&&self.dispatchEvent(FWDEVPlayer.UPDATE_VIDEO_SOURCE),this.resizeHandler(),self.vimeo_do.iFrame_do&&(self.vimeo_do.iFrame_do.screen.style.left="0px"),void self.vimeo_do.setX(0);if(self.videoType_str==FWDEVPlayer.YOUTUBE&&self.ytb_do&&self.ytb_do.ytb&&self.ytb_do.ytb.cueVideoById)return self.ytb_do&&self.ytb_do.ytb&&self.ytb_do.hideDisable(),self.ytb_do.setX(0),self.videoScreen_do.setVisible(!1),self.vimeo_do&&self.vimeo_do.setX(-5e3),self.videoScreen_do&&self.videoScreen_do.setX(-5e3),self.audioScreen_do&&self.audioScreen_do.setX(-5e3),self.audioScreen_do.setVisible(!1),self.ytb_do.setSource(e),self.isMobile_bl?(self.videoPoster_do.hide(),self.largePlayButton_d&&self.largePlayButton_do.hide()):(self.setPosterSource(self.posterPath_str),self.videoPoster_do.show(),!self.largePlayButton_do||self.data.showAnnotationsPositionTool_bl||self.useWithoutVideoScreen_bl||self.largePlayButton_do.show(),self.data.autoPlay_bl&&self.play(),!self.isMobile_bl&&self.wasAdd_bl&&self.play()),self.controller_do&&(self.controller_do.updatePreloaderBar(0),self.controller_do.addYtbQualityButton()),void(self.getVideoSource()&&self.dispatchEvent(FWDEVPlayer.UPDATE_VIDEO_SOURCE));if(self.wasAdd_bl=!1,-1==e.indexOf("google.")){var i=e.split(",");e=self.isMobile_bl&&null!=i[1]?i[1]:i[0]}if(self.finalVideoPath_str=e,self.videoType_str==FWDEVPlayer.MP3)return self.setPosterSource(self.posterPath_str),self.ytb_do&&self.ytb_do.ytb&&self.ytb_do.showDisable(),self.vimeo_do&&self.vimeo_do.setX(-5e3),self.ytb_do&&self.ytb_do.setX(-5e3),self.videoScreen_do.setVisible(!1),self.videoPoster_do.show(),!self.largePlayButton_do||self.data.showAnnotationsPositionTool_bl||self.useWithoutVideoScreen_bl||self.largePlayButton_do.show(),self.audioScreen_do.setX(0),self.audioScreen_do.setVisible(!0),self.showPreloader_bl&&(self.preloader_do.hide(!1),self.preloader_do.stopPreloader()),self.audioScreen_do.setSource(e),self.data.autoPlay_bl&&self.play(),void(self.controller_do&&self.data.videosSource_ar&&1<self.data.videosSource_ar.length?(self.controller_do.updatePreloaderBar(0),self.controller_do.addYtbQualityButton(),self.controller_do.updateQuality(self.data.videoLabels_ar,self.data.videoLabels_ar[self.data.videoLabels_ar.length-1-self.data.startAtVideoSource])):self.controller_do&&self.controller_do.removeYtbQualityButton());(FWDEVPlayer.hasHTML5Video&&self.videoType_str==FWDEVPlayer.VIDEO||self.videoType_str==FWDEVPlayer.HLS_JS)&&(self.setPosterSource(self.posterPath_str),self.ytb_do&&self.ytb_do.ytb&&self.ytb_do.showDisable(),self.vimeo_do&&self.vimeo_do.setX(-5e3),self.ytb_do&&self.ytb_do.setX(-5e3),self.audioScreen_do&&self.audioScreen_do.setX(-5e3),self.audioScreen_do.setVisible(!1),self.videoPoster_do.show(),!self.largePlayButton_do||self.data.showAnnotationsPositionTool_bl||self.useWithoutVideoScreen_bl||self.largePlayButton_do.show(),self.videoScreen_do.setX(0),self.videoScreen_do.setVisible(!0),self.showPreloader_bl&&(self.preloader_do.hide(!1),self.preloader_do.stopPreloader()),self.videoType_str==FWDEVPlayer.HLS_JS?(self.videoScreen_do.setSource(e),self.videoScreen_do.initVideo(),self.setupHLS(),self.hlsJS.loadSource(self.videoSourcePath_str),self.hlsJS.attachMedia(self.videoScreen_do.video_el),self.hlsJS.on(Hls.Events.MANIFEST_PARSED,function(e){self.isHLSManifestReady_bl=!0,(self.data.autoPlay_bl||self.wasAdHLS)&&self.play(),self.wasAdHLS=!1})):(self.videoScreen_do.setSource(e),self.data.autoPlay_bl&&self.play(),self.flash_do&&(self.flash_do.setWidth(1),self.flash_do.setHeight(1))),self.controller_do&&self.data.videosSource_ar&&1<self.data.videosSource_ar.length?(self.controller_do.updatePreloaderBar(0),self.controller_do.addYtbQualityButton(),self.controller_do.updateQuality(self.data.videoLabels_ar,self.data.videoLabels_ar[self.data.videoLabels_ar.length-1-self.data.startAtVideoSource])):self.controller_do&&self.controller_do.removeYtbQualityButton()),self.prevVideoSourcePath_str=self.videoSourcePath_str}},this.goFullScreen=function(){if(self.isAPIReady_bl&&self.displayType!=FWDEVPlayer.BACKGROUND_VIDEO){document.addEventListener&&(document.addEventListener("fullscreenchange",self.onFullScreenChange),document.addEventListener("mozfullscreenchange",self.onFullScreenChange),document.addEventListener("webkitfullscreenchange",self.onFullScreenChange),document.addEventListener("MSFullscreenChange",self.onFullScreenChange)),document.documentElement.requestFullScreen?self.main_do.screen.documentElement.requestFullScreen():document.documentElement.mozRequestFullScreen?self.main_do.screen.mozRequestFullScreen():document.documentElement.webkitRequestFullScreen?self.main_do.screen.webkitRequestFullScreen():document.documentElement.msRequestFullscreen&&self.main_do.screen.msRequestFullscreen(),self.stopVisualization(),self.callVastEvent("playerExpand"),self.disableClick(),self.customContextMenu_do&&self.customContextMenu_do.updateFullScreenButton(1),self.main_do.getStyle().position="fixed",document.documentElement.style.overflow="hidden",self.main_do.getStyle().zIndex=9999999999998,self.isFullScreen_bl=!0,self.controller_do&&(self.controller_do.showNormalScreenButton(),self.controller_do.setNormalStateToFullScreenButton());var e=FWDEVPUtils.getScrollOffsets();self.lastX=e.x,self.lastY=e.y,window.scrollTo(0,0),self.isMobile_bl&&window.addEventListener("touchmove",self.disableFullScreenOnMobileHandler),self.dispatchEvent(FWDEVPlayer.GO_FULLSCREEN),self.resizeHandler()}},this.disableFullScreenOnMobileHandler=function(e){e.preventDefault&&e.preventDefault()},this.goNormalScreen=function(){self.isAPIReady_bl&&self.displayType!=FWDEVPlayer.BACKGROUND_VIDEO&&(document.cancelFullScreen?document.cancelFullScreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.webkitCancelFullScreen?document.webkitCancelFullScreen():document.msExitFullscreen&&document.msExitFullscreen(),self.addMainDoToTheOriginalParent(),self.isFullScreen_bl=!1,self.resizeHandler())},this.addMainDoToTheOriginalParent=function(){self.isFullScreen_bl&&(document.removeEventListener&&(document.removeEventListener("fullscreenchange",self.onFullScreenChange),document.removeEventListener("mozfullscreenchange",self.onFullScreenChange),document.removeEventListener("webkitfullscreenchange",self.onFullScreenChange),document.removeEventListener("MSFullscreenChange",self.onFullScreenChange)),self.callVastEvent("playerCollapse"),self.controller_do&&self.controller_do.setNormalStateToFullScreenButton(),self.displayType==FWDEVPlayer.RESPONSIVE||self.displayType==FWDEVPlayer.AFTER_PARENT||self.displayType==FWDEVPlayer.LIGHTBOX||self.displayType==FWDEVPlayer.STICKY?(document.documentElement.style.overflow="visible",self.main_do.getStyle().position="relative",self.main_do.getStyle().zIndex=0,self.isMin?(self.main_do.getStyle().position="fixed",self.main_do.getStyle().zIndex=9999999999999):(self.main_do.getStyle().position="relative",self.main_do.getStyle().zIndex=0)):(self.main_do.getStyle().position="absolute",self.main_do.getStyle().zIndex=9999999999998),self.showCursor(),self.controller_do&&self.controller_do.showFullScreenButton(),window.scrollTo(self.lastX,self.lastY),FWDEVPUtils.isIE||setTimeout(function(){window.scrollTo(self.lastX,self.lastY)},150),self.customContextMenu_do&&self.customContextMenu_do.updateFullScreenButton(0),self.isMobile_bl&&window.removeEventListener("touchmove",self.disableFullScreenOnMobileHandler),self.dispatchEvent(FWDEVPlayer.GO_NORMALSCREEN))},this.onFullScreenChange=function(e){document.fullScreen||document.msFullscreenElement||document.mozFullScreen||document.webkitIsFullScreen||document.msieFullScreen||(self.controller_do&&self.controller_do.showNormalScreenButton(),self.addMainDoToTheOriginalParent(),self.isFullScreen_bl=!1)},this.downloadVideo=function(){if(self.isAPIReady_bl){var e,t=self.data.videosSource_ar[self.data.startAtVideoSource].source;if(e=-1!=t.indexOf("/")?t.substr(t.lastIndexOf("/")+1):t,self.data.downloadVideo(t,e),window.ga)ga("send",{hitType:"event",eventCategory:"videos",eventAction:"downloaded",eventLabel:"videoPath:"+t+", videoName:"+e,nonInteraction:!0})}},this.setVideoSource=function(e,t,o){self.isAPIReady_bl&&(self.isAdd_bl=!1,null==o&&(o=!1),self.data.videosSource_ar[self.data.startAtVideoSource].isLive=o,self.data.videosSource_ar[self.data.startAtVideoSource].source=e,self.data.videosSource_ar[self.data.startAtVideoSource].videoType=t,self.setSource(e,!1,t))},this.getVideoSource=function(){if(self.isAPIReady_bl)return self.finalVideoPath_str},this.updateVolume=function(){self.isAPIReady_bl&&self.setVolume()},this.getPosterSource=function(){if(self.isAPIReady_bl)return self.posterPath_str},this.getCurrentTime=function(){return self.curTime?self.curTime:"00:00"},this.getTotalTime=function(){return self.totalTime?self.totalTime:"00:00"},this.setPlaybackRate=function(e){self.isAPIReady_bl&&(self.videoType_str==FWDEVPlayer.VIDEO&&self.videoScreen_do?self.videoScreen_do.setPlaybackRate(e):self.videoType_str==FWDEVPlayer.MP3&&self.audioScreen_do?self.audioScreen_do.setPlaybackRate(e):self.videoType_str==FWDEVPlayer.YOUTUBE&&self.ytb_do&&self.ytb_do.ytb&&self.ytb_do.setPlaybackRate(e))},this.fillEntireVideoScreen=function(e){self.isAPIReady_bl&&(this.fillEntireVideoScreen_bl=e,this.resizeHandler())},this.showLightbox=function(){self.lightBox_do&&self.lightBox_do.show()},this.updateHEXColors=function(e,t){self.isAPIReady_bl&&(self.controller_do.updateHEXColors(e,t),self.largePlayButton_do&&self.largePlayButton_do.updateHEXColors(e,t),self.shareWindow_do&&self.shareWindow_do.updateHEXColors(e,t),self.embedWindow_do&&self.embedWindow_do.updateHEXColors(e,t),self.adsSkip_do&&self.adsSkip_do.updateHEXColors(e,t),self.opener_do&&self.opener_do.updateHEXColors(e,t))},this.hideCursor=function(){document.documentElement.style.cursor="none",document.getElementsByTagName("body")[0].style.cursor="none",self.isAdd_bl||(self.dumyClick_do.getStyle().cursor="none")},this.showCursor=function(){document.documentElement.style.cursor="auto",document.getElementsByTagName("body")[0].style.cursor="auto",self.isAdd_bl?self.dumyClick_do.setButtonMode(!0):self.is360?self.dumyClick_do.getStyle().cursor="url("+self.data.handPath_str+"), default":self.dumyClick_do.getStyle().cursor="auto"},this.callVastEvent=function(e){if(self.TrackingEvents){for(var t,o=0;o<self.TrackingEvents.length;o++)e==self.TrackingEvents[o].event&&(t=self.TrackingEvents[o].URI);t&&self.executeVastEvent(t)}},this.executeVastEvent=function(e){if(e){var t=new XMLHttpRequest;t.onreadystatechange=function(e){},t.onerror=function(e){try{window.console&&console.log(e),window.console&&console.log(e.message)}catch(e){}},t.open("get",e,!0),t.send()}},this.getStartTimeStamp=function(e){var t=window.location.href;-1!=(t=t.substr(t.indexOf(e+"=")+2)).indexOf("&")&&(t=t.substr(0,t.indexOf("&"))),-1!=t.indexOf("s&")&&(t=t.substr(0,t.indexOf("s&")+1));var o=/\d+h/g,s=t.match(o);try{s=t.match(o)[0]}catch(e){}s&&(1==(s=s.substr(0,s.length-1)).length&&parseInt(s)<10&&(s="0"+s),59<parseInt(s)&&(s=59)),s=s||"00";o=/\d+m/g;var i=t.match(o);try{i=t.match(o)[0]}catch(e){}i&&(1==(i=i.substr(0,i.length-1)).length&&parseInt(i)<10&&(i="0"+i),59<parseInt(i)&&(i=59)),i=i||"00";o=/\d+s/g;var n=t.match(o);try{n=t.match(o)[0]}catch(e){}return n&&(1==(n=n.substr(0,n.length-1)).length&&parseInt(n)<10&&(n="0"+n),59<parseInt(n)&&(n=59)),s+":"+i+":"+(n=n||"00")},this.addListener=function(e,t){if(null==e)throw Error("type is required.");if("object"==typeof e)throw Error("type must be of type String.");if("function"!=typeof t)throw Error("listener must be of type Function.");var o={};o.type=e,o.listener=t,(o.target=this).listeners.events_ar.push(o)},this.dispatchEvent=function(e,t){if(null!=this.listeners){if(null==e)throw Error("type is required.");if("object"==typeof e)throw Error("type must be of type String.");for(var o=0,s=this.listeners.events_ar.length;o<s;o++)if(this.listeners.events_ar[o].target===this&&this.listeners.events_ar[o].type===e){if(t)for(var i in t)this.listeners.events_ar[o][i]=t[i];this.listeners.events_ar[o].listener.call(this,this.listeners.events_ar[o])}}},this.removeListener=function(e,t){if(null==e)throw Error("type is required.");if("object"==typeof e)throw Error("type must be of type String.");if("function"!=typeof t)throw Error("listener must be of type Function."+e);for(var o=0,s=this.listeners.events_ar.length;o<s;o++)if(this.listeners.events_ar[o].target===this&&this.listeners.events_ar[o].type===e&&this.listeners.events_ar[o].listener===t){this.listeners.events_ar.splice(o,1);break}},self.cleanMainEvents=function(){window.removeEventListener?window.removeEventListener("resize",self.onResizeHandler):window.detachEvent&&window.detachEvent("onresize",self.onResizeHandler),clearTimeout(self.resizeHandlerId_to),clearTimeout(self.resizeHandler2Id_to),clearTimeout(self.hidePreloaderId_to),clearTimeout(self.orientationChangeId_to)};var args=FWDEVPUtils.getUrlArgs(window.location.search),embedTest=args.EVPInstanceName,tt=FWDEVPlayer.instaces_ar.length,video;if(embedTest)for(var i=0;i<tt;i++)if(video=FWDEVPlayer.instaces_ar[i],video.props.instanceName==embedTest){var ws=FWDEVPUtils.getViewportSize(),dumy_do=new FWDEVPDisplayObject("div");dumy_do.setBkColor(video.props.backgroundColor),dumy_do.setWidth(ws.w),dumy_do.setHeight(ws.h),document.documentElement.style.overflow="hidden",document.getElementsByTagName("body")[0].style.overflow="hidden",FWDEVPUtils.isIEAndLessThen9?document.getElementsByTagName("body")[0].appendChild(dumy_do.screen):document.documentElement.appendChild(dumy_do.screen);break}self.init()},F1,G1,H1,I1;FWDEVPlayer.setPrototype=function(){FWDEVPlayer.prototype=new FWDEVPEventDispatcher},FWDEVPlayer.stopAllVideos=function(e){for(var t,o=FWDEVPlayer.instaces_ar.length,s=0;s<o;s++)(t=FWDEVPlayer.instaces_ar[s])!=e&&t.stop()},FWDEVPlayer.pauseAllVideos=function(e){for(var t,o=FWDEVPlayer.instaces_ar.length,s=0;s<o;s++)(t=FWDEVPlayer.instaces_ar[s])!=e&&t.pause()},FWDEVPlayer.hasHTML5VideoTestIsDone=!1,FWDEVPlayer.hasHTML5VideoTestIsDone||(FWDEVPlayer.hasHTML5Video=(F1=document.createElement("video"),G1=!1,F1.canPlayType&&(G1=Boolean("probably"==F1.canPlayType("video/mp4")||"maybe"==F1.canPlayType("video/mp4")),FWDEVPlayer.canPlayMp4=Boolean("probably"==F1.canPlayType("video/mp4")||"maybe"==F1.canPlayType("video/mp4")),FWDEVPlayer.canPlayOgg=Boolean("probably"==F1.canPlayType("video/ogg")||"maybe"==F1.canPlayType("video/ogg")),FWDEVPlayer.canPlayWebm=Boolean("probably"==F1.canPlayType("video/webm")||"maybe"==F1.canPlayType("video/webm"))),!!self.isMobile_bl||(FWDEVPlayer.hasHTML5VideoTestIsDone=!0,G1))),FWDEVPlayer.hasHTMLHLS=(H1=document.createElement("video"),I1=!1,H1.canPlayType&&(I1=Boolean("probably"===H1.canPlayType("application/vnd.apple.mpegurl")||"maybe"===H1.canPlayType("application/vnd.apple.mpegurl"))),I1),FWDEVPlayer.instaces_ar=[],FWDEVPlayer.curInstance=null,FWDEVPlayer.keyboardCurInstance=null,FWDEVPlayer.areInstancesCreated_bl=null,FWDEVPlayer.isYoutubeAPICreated_bl=!1,FWDEVPlayer.isEmbedded_bl=!1,FWDEVPlayer.CENTER="center",FWDEVPlayer.LEFT="left",FWDEVPlayer.RIGHT="right",FWDEVPlayer.PAUSE_ALL_VIDEOS="pause",FWDEVPlayer.STOP_ALL_VIDEOS="stop",FWDEVPlayer.DO_NOTHING="none",FWDEVPlayer.VIMEO="vimeo",FWDEVPlayer.YOUTUBE="youtube",FWDEVPlayer.VIDEO="video",FWDEVPlayer.MP3="mp3",FWDEVPlayer.STICKY="sticky",FWDEVPlayer.POSITION_TOP="top",FWDEVPlayer.POSITION_BOTTOM="bottom",FWDEVPlayer.SAFE_TO_SCRUB="safeToScrub",FWDEVPlayer.IFRAME="iframe",FWDEVPlayer.SCRUB="scrub",FWDEVPlayer.BACKGROUND_VIDEO="backgroundvideo",FWDEVPlayer.READY="ready",FWDEVPlayer.STOP="stop",FWDEVPlayer.PLAY="play",FWDEVPlayer.PAUSE="pause",FWDEVPlayer.UPDATE="update",FWDEVPlayer.UPDATE_TIME="updateTime",FWDEVPlayer.UPDATE_VIDEO_SOURCE="updateVideoSource",FWDEVPlayer.UPDATE_POSTER_SOURCE="udpatePosterSource",FWDEVPlayer.PLAYBACK_RATE_CHANGE="playbackRateChange",FWDEVPlayer.ERROR="error",FWDEVPlayer.PLAY_COMPLETE="playComplete",FWDEVPlayer.VOLUME_SET="volumeSet",FWDEVPlayer.GO_FULLSCREEN="goFullScreen",FWDEVPlayer.GO_NORMALSCREEN="goNormalScreen",FWDEVPlayer.IMAGE="image",FWDEVPlayer.HIDE_LIGHTBOX_COMPLETE="lightboxHideComplete",FWDEVPlayer.HLS_JS="HLS_JS",FWDEVPlayer.LIGHTBOX="lightbox",FWDEVPlayer.RESPONSIVE="responsive",FWDEVPlayer.FULL_SCREEN="fullscreen",FWDEVPlayer.AFTER_PARENT="afterparent",window.FWDEVPlayer=FWDEVPlayer}(window),function(e){var r=function(o,e,t,s,i,n){var l=this;r.prototype;this.mainLightBox_do=null,this.lightBoxBackground_sdo=null,this.lightBoxGridHolder_do=null,this.closeButton_do=null,this.mainBackgroundColor_str=e,this.holderBackgroundColor_str=t,this.lightBoxBackgroundOpacity=s,this.lightBoxWidth=i,this.lightBoxHeight=n,this.setupButtonWithDelayId_to,this.isMobile_bl=FWDEVPUtils.isMobile,this.hasPointerEvent_bl=FWDEVPUtils.hasPointerEvent,this.closeButtonIsTweening_bl=!0,this.init=function(){l.getStyle().zIndex=9999999,l.setupMainContainers()},this.setupMainContainers=function(){l.isMobile_bl&&l.hasPointerEvent_bl&&(l.getStyle().msTouchAction="none"),l.lightBoxBackground_sdo=new FWDEVPDisplayObject("div"),l.lightBoxBackground_sdo.setResizableSizeAfterParent(),l.lightBoxBackground_sdo.setBkColor(l.mainBackgroundColor_str),l.lightBoxBackground_sdo.screen.addEventListener("click",l.closeButtonOnStartHandler),l.addChild(l.lightBoxBackground_sdo),l.mainLightBox_do=new FWDEVPDisplayObject("div"),l.mainLightBox_do.setBkColor(l.holderBackgroundColor_str),l.mainLightBox_do.setWidth(1),l.mainLightBox_do.setHeight(1),l.addChild(l.mainLightBox_do),document.documentElement.appendChild(l.screen),l.setX(-1e4),l.setY(-1e4),l.setWidth(0),l.setHeight(0)},this.show=function(){if(!l.isShowed_bl){l.isShowed_bl=!0,l.closeButton_do?(l.hideCloseButton(!1),l.showCloseButton(!0),l.closeButton_do.setX(-200)):l.loadClsoeButtonImage();var e=FWDEVPUtils.getViewportSize(),t=FWDEVPUtils.getScrollOffsets();l.setWidth(e.w),l.setHeight(e.h),l.setX(t.x),l.setY(t.y),l.lightBoxBackground_sdo.setAlpha(0),FWDAnimation.to(l.lightBoxBackground_sdo,.8,{alpha:l.lightBoxBackgroundOpacity}),l.setX(t.x),l.setY(t.y),l.mainLightBox_do.setX(parseInt(e.w/2)),l.mainLightBox_do.setY(parseInt(e.h/2)),l.lightBoxWidth>e.w?(l.finalLightBoxWidth=e.w,l.finalLightBoxHeight=parseInt(l.lightBoxHeight*(e.w/l.lightBoxWidth))):(l.finalLightBoxWidth=l.lightBoxWidth,l.finalLightBoxHeight=l.lightBoxHeight),FWDAnimation.to(l.mainLightBox_do,.8,{w:l.finalLightBoxWidth,h:l.finalLightBoxHeight,x:parseInt((e.w-l.finalLightBoxWidth)/2),y:parseInt((e.h-l.finalLightBoxHeight)/2),delay:.4,onComplete:l.showComplete,ease:Expo.easeInOut}),o.stageContainer=l.mainLightBox_do.screen,o.main_do&&(o.main_do.setX(-5e3),o.stageContainer.contains(o.main_do.screen)||o.stageContainer.appendChild(o.main_do.screen)),l.dispatchEvent(r.SHOW)}},this.showComplete=function(){l.closeButton_do.addListener(FWDEVPSimpleButton.MOUSE_UP,l.closeButtonOnStartHandler),l.addKeyboardSupport(),o.startResizeHandler(),l.showComplete_bl=!0},this.addKeyboardSupport=function(){document.addEventListener("keydown",this.onKeyDownHandler)},this.onKeyDownHandler=function(e){27==e.keyCode&&l.closeButtonOnStartHandler()},this.loadClsoeButtonImage=function(){l.closeN_img=new Image,l.closeN_img.onload=l.setupCloseButton,l.closeN_img.src=o.mainFolderPath_str+o.skinPath_str+"embed-close-button.png",l.closeSPath_str=o.mainFolderPath_str+o.skinPath_str+"embed-close-button-over.png"},this.setupCloseButton=function(e){var t=FWDEVPUtils.getViewportSize();FWDEVPSimpleButton.setPrototype(),l.closeButton_do=new FWDEVPSimpleButton(l.closeN_img,l.closeSPath_str,void 0,!0),l.hideCloseButton(!1),l.showCloseButton(!0),l.closeButton_do.setX(t.w-l.closeButton_do.w-4),l.closeButton_do.setY(4),l.addChild(l.closeButton_do)},this.showCloseButtonComplete=function(){l.closeButtonIsTweening_bl=!1},this.hideCloseButton=function(e){FWDAnimation.killTweensOf(l.closeButton_do),e?FWDAnimation.to(l.closeButton_do,.9,{alpha:0}):l.closeButton_do.setAlpha(0)},this.showCloseButton=function(e){FWDAnimation.killTweensOf(l.closeButton_do),e?FWDAnimation.to(l.closeButton_do,.9,{alpha:1,delay:.8}):l.closeButton_do.setAlpha(1)},this.mouseDummyHandler=function(e){if(!e.preventDefault)return!1;e.preventDefault()},this.closeButtonOnStartHandler=function(e){if(l.isShowed_bl&&l.showComplete_bl){l.isShowed_bl=!1;var t=FWDEVPUtils.getViewportSize();l.closeButton_do.removeListener(FWDEVPSimpleButton.MOUSE_UP,l.closeButtonOnStartHandler),FWDAnimation.to(l.closeButton_do,.9,{alpha:0}),FWDAnimation.to(l.mainLightBox_do,.8,{w:0,h:0,x:parseInt(t.w/2),y:parseInt(t.h/2),delay:.4,ease:Expo.easeInOut}),FWDAnimation.to(l.lightBoxBackground_sdo,.8,{alpha:0,delay:.8}),FWDAnimation.to(o.main_do,.8,{x:-o.main_do.w/2,y:-o.main_do.h/2,ease:Expo.easeInOut,delay:.4}),l.lighboxAnimDoneId_to=setTimeout(l.lighboxHideAnimationDone,1600),l.dispatchEvent(r.CLOSE)}},this.lighboxHideAnimationDone=function(){l.setX(-1e4),l.setY(-1e4),l.setWidth(0),l.setHeight(0),l.dispatchEvent(r.HIDE_COMPLETE)},this.init()};r.setPrototype=function(){r.prototype=new FWDEVPDisplayObject("div")},r.CLOSE="ligtBoxClose",r.SHOW="show",r.HIDE_COMPLETE="hideComplete",r.prototype=null,e.FWDEVPLightBox=r}(window),function(n){var l=function(e,t,o,s){var i=this;l.prototype;this.img_img=null,this.logoImage_do=null,this.position_str=o,this.source_str=t,this.logoLink_str=e.data.logoLink_str,this.margins=s,this.isShowed_bl=!0,this.allowToShow_bl=!0,this.init=function(){"none"==i.logoLink_str?i.getStyle().pointerEvents="none":(i.setButtonMode(!0),i.screen.onclick=function(){n.open(i.logoLink_str,"_blank")}),i.logoImage_do=new FWDEVPDisplayObject("img"),i.img_img=new Image,i.img_img.onerror=null,i.img_img.onload=i.loadDone,i.img_img.src=i.source_str+"?"+(new Date).getTime(),i.hide()},this.loadDone=function(){i.setWidth(i.img_img.width),i.setHeight(i.img_img.height),i.logoImage_do.setScreen(i.img_img),i.addChild(i.logoImage_do),i.logoImage_do.setWidth(i.img_img.width),i.logoImage_do.setHeight(i.img_img.height),i.positionAndResize()},this.positionAndResize=function(){"topleft"==i.position_str?(i.finalX=i.margins,i.finalY=i.margins):"topright"==i.position_str?(i.finalX=e.stageWidth-i.w-i.margins,i.finalY=i.margins):"bottomright"==i.position_str?(i.finalX=e.stageWidth-i.w-i.margins,i.finalY=e.stageHeight-i.h-i.margins):"bottomleft"==i.position_str&&(i.finalX=i.margins,i.finalY=e.stageHeight-i.h-i.margins),i.setX(i.finalX),i.setY(i.finalY)},this.show=function(e){i.isShowed_bl||(i.isShowed_bl=!0,i.setVisible(!0),FWDAnimation.killTweensOf(i),e?FWDAnimation.to(i,.8,{alpha:1,ease:Expo.easeInOut}):i.setAlpha(1))},this.hide=function(e,t){(i.isShowed_bl||t)&&(i.isShowed_bl=!1,FWDAnimation.killTweensOf(i),e?FWDAnimation.to(i,.8,{alpha:0,ease:Expo.easeInOut,onComplete:function(){i.setVisible(!1)}}):(i.setAlpha(0),i.setVisible(!1)))},this.init()};l.setPrototype=function(){l.prototype=new FWDEVPDisplayObject("div")},l.prototype=null,n.FWDEVPLogo=l}(window),function(){var n=function(e,t,o,s){var i=this;this.animation_img=t.openerAnimation_img,o==FWDEVPlayer.POSITION_TOP?(this.openN_img=t.openTopN_img,this.openSPath_str=t.openTopSPath_str):(this.openN_img=t.openBottomN_img,this.openSPath_str=t.openBottomSPath_str),this.openerPauseN_img=t.openerPauseN_img,this.openerPlayN_img=t.openerPlayN_img,this.closeN_img=t.closeN_img,i.useHEXColorsForSkin_bl=t.useHEXColorsForSkin_bl,i.normalButtonsColor_str=t.normalButtonsColor_str,i.selectedButtonsColor_str=t.selectedButtonsColor_str,this.openerPauseS_str=t.openerPauseS_str,this.openerPlaySPath_str=t.openerPlayS_str,this.closeSPath_str=t.closeSPath_str,this.animationPath_img=t.animationPath_img,this.totalWidth=i.openN_img.width,this.totalHeight=i.openN_img.height,this.mainHolder_do=null,this.dumy_do=null,this.openN_do=null,this.openS_do=null,this.closeN_do=null,this.closeS_do=null,this.animation_do=null,this.playPauseButton_do=null,this.position_str=o,this.alignment_str=t.openerAlignment_str,this.openerEqulizerOffsetLeft=t.openerEqulizerOffsetLeft,this.openerEqulizerOffsetTop=t.openerEqulizerOffsetTop,this.showFirstTime_bl=!0,this.playerIsShowed_bl=s,this.showOpenerPlayPauseButton_bl=t.showOpenerPlayPauseButton_bl,this.isMobile_bl=FWDEVPUtils.isMobile,this.hasPointerEvent_bl=FWDEVPUtils.hasPointerEvent,this.init=function(){-1!=t.skinPath_str.indexOf("hex_white")?i.selectedButtonsColor_str="#FFFFFF":i.selectedButtonsColor_str=t.selectedButtonsColor_str,i.hasTransform3d_bl=!1,i.hasTransform2d_bl=!1,i.setBackfaceVisibility(),i.getStyle().msTouchAction="none",i.getStyle().webkitTapHighlightColor="rgba(0, 0, 0, 0)",i.setupStuff(),i.showOpenerPlayPauseButton_bl&&i.setupPlayPauseButton(),i.playerIsShowed_bl&&i.showCloseButton(),i.showOpenerPlayPauseButton_bl?i.setWidth(i.totalWidth+i.openerPauseN_img.width+1):i.setWidth(i.totalWidth),i.setHeight(i.totalHeight)},this.setupStuff=function(e){i.mainHolder_do=new FWDEVPDisplayObject("div"),i.mainHolder_do.hasTransform3d_bl=!1,i.mainHolder_do.hasTransform2d_bl=!1,i.mainHolder_do.setBackfaceVisibility(),i.showOpenerPlayPauseButton_bl?i.mainHolder_do.setWidth(i.totalWidth+i.openerPauseN_img.width+1):i.mainHolder_do.setWidth(i.totalWidth),i.mainHolder_do.setHeight(i.totalHeight),i.useHEXColorsForSkin_bl?(i.openN_do=new FWDEVPDisplayObject("div"),i.openN_canvas=FWDEVPUtils.getCanvasWithModifiedColor(i.openN_img,i.normalButtonsColor_str).canvas,i.openN_do.screen.appendChild(i.openN_canvas)):(i.openN_do=new FWDEVPDisplayObject("img"),i.openN_do.setScreen(i.openN_img)),i.openN_do.setWidth(i.openN_img.width),i.openN_do.setHeight(i.openN_img.height),i.openS_img=new Image,i.openS_img.src=i.openSPath_str,i.useHEXColorsForSkin_bl?(i.openS_do=new FWDEVPDisplayObject("div"),i.openS_img.onload=function(){i.openS_canvas=FWDEVPUtils.getCanvasWithModifiedColor(i.openS_img,i.selectedButtonsColor_str).canvas,i.openS_do.setWidth(i.openS_img.width),i.openS_do.setHeight(i.openS_img.height),i.openS_do.screen.appendChild(i.openS_canvas)}):(i.openS_do=new FWDEVPDisplayObject("img"),i.openS_do.setScreen(i.openS_img)),i.openS_do.setWidth(i.openN_do.w),i.openS_do.setHeight(i.openN_do.h),i.openS_do.setAlpha(0),i.useHEXColorsForSkin_bl?(i.closeN_do=new FWDEVPDisplayObject("div"),i.closeN_canvas=FWDEVPUtils.getCanvasWithModifiedColor(i.closeN_img,i.normalButtonsColor_str).canvas,i.closeN_do.screen.appendChild(i.closeN_canvas)):(i.closeN_do=new FWDEVPDisplayObject("img"),i.closeN_do.setScreen(i.closeN_img)),i.closeN_do.setWidth(i.closeN_img.width),i.closeN_do.setHeight(i.closeN_img.height),i.closeN_do.hasTransform3d_bl=!1,i.closeN_do.hasTransform2d_bl=!1,i.closeN_do.setBackfaceVisibility(),i.closeS_img=new Image,i.closeS_img.src=i.closeSPath_str,i.useHEXColorsForSkin_bl?(i.closeS_do=new FWDEVPDisplayObject("div"),i.closeS_img.onload=function(){i.closeS_canvas=FWDEVPUtils.getCanvasWithModifiedColor(i.closeS_img,i.selectedButtonsColor_str).canvas,i.closeS_do.setWidth(i.closeN_img.width),i.closeS_do.setHeight(i.closeN_img.height),i.closeS_do.screen.appendChild(i.closeS_canvas)}):(i.closeS_do=new FWDEVPDisplayObject("img"),i.closeS_do.setScreen(i.closeS_img)),i.closeS_do.setWidth(i.closeN_img.width),i.closeS_do.setHeight(i.closeN_img.height),i.closeS_do.setAlpha(0),i.closeS_do.hasTransform3d_bl=!1,i.closeS_do.hasTransform2d_bl=!1,FWDEVPPreloader2.setPrototype(),i.animation_do=new FWDEVPPreloader2(i.animationPath_img,29,22,31,80,!0),i.animation_do.setY(i.openerEqulizerOffsetTop),i.animation_do.show(!1),i.animation_do.stop(),i.dumy_do=new FWDEVPDisplayObject("div"),i.dumy_do.setWidth(i.totalWidth),i.dumy_do.setHeight(i.totalHeight),i.dumy_do.getStyle().zIndex=2,i.dumy_do.hasTransform3d_bl=!1,i.dumy_do.hasTransform2d_bl=!1,i.dumy_do.setBackfaceVisibility(),i.dumy_do.setButtonMode(!0),(FWDEVPUtils.isIE||FWDEVPUtils.isAndroid)&&(i.dumy_do.setBkColor("#FF0000"),i.dumy_do.setAlpha(.01)),i.hasPointerEvent_bl?(i.mainHolder_do.screen.addEventListener("pointerup",i.onMouseUp),i.mainHolder_do.screen.addEventListener("pointerover",i.onMouseOver),i.mainHolder_do.screen.addEventListener("pointerout",i.onMouseOut)):i.screen.addEventListener&&(i.isMobile_bl||(i.mainHolder_do.screen.addEventListener("mouseover",i.onMouseOver),i.mainHolder_do.screen.addEventListener("mouseout",i.onMouseOut),i.mainHolder_do.screen.addEventListener("mouseup",i.onMouseUp)),i.screen.addEventListener("touchend",i.onMouseUp)),i.mainHolder_do.addChild(i.openN_do),i.mainHolder_do.addChild(i.openS_do),i.mainHolder_do.addChild(i.closeN_do),i.mainHolder_do.addChild(i.closeS_do),i.mainHolder_do.addChild(i.animation_do),i.mainHolder_do.addChild(i.dumy_do),i.addChild(i.mainHolder_do)},this.onMouseOver=function(e,t){e.pointerType&&e.pointerType!=e.MSPOINTER_TYPE_MOUSE&&"mouse"!=e.pointerType||i.setSelectedState()},this.onMouseOut=function(e){e.pointerType&&e.pointerType!=e.MSPOINTER_TYPE_MOUSE&&"mouse"!=e.pointerType||i.setNormalState()},this.onMouseUp=function(e){e.preventDefault&&e.preventDefault(),i.playerIsShowed_bl?(i.playerIsShowed_bl=!1,i.dispatchEvent(n.HIDE)):(i.playerIsShowed_bl=!0,i.dispatchEvent(n.SHOW))},this.setupPlayPauseButton=function(){FWDEVPComplexButton.setPrototype(),i.playPauseButton_do=new FWDEVPComplexButton(i.openerPlayN_img,i.openerPlaySPath_str,i.openerPauseN_img,i.openerPauseS_str,!0,i.useHEXColorsForSkin_bl,i.normalButtonsColor_str,i.selectedButtonsColor_str),i.playPauseButton_do.addListener(FWDEVPComplexButton.MOUSE_UP,i.playButtonMouseUpHandler),i.addChild(i.playPauseButton_do)},this.showPlayButton=function(){i.playPauseButton_do&&i.playPauseButton_do.setButtonState(1),i.animation_do.stop()},this.showPauseButton=function(){i.playPauseButton_do&&i.playPauseButton_do.setButtonState(0),i.animation_do.start(0)},this.playButtonMouseUpHandler=function(){0==i.playPauseButton_do.currentState?i.dispatchEvent(FWDEVPController.PAUSE):i.dispatchEvent(FWDEVPController.PLAY)},this.setNormalState=function(){i.isMobile_bl&&!i.hasPointerEvent_bl||(FWDAnimation.killTweensOf(i.openS_do),FWDAnimation.killTweensOf(i.closeS_do),FWDAnimation.to(i.openS_do,.5,{alpha:0,ease:Expo.easeOut}),FWDAnimation.to(i.closeS_do,.5,{alpha:0,ease:Expo.easeOut}))},this.setSelectedState=function(e){FWDAnimation.killTweensOf(i.openS_do),FWDAnimation.killTweensOf(i.closeS_do),FWDAnimation.to(i.openS_do,.5,{alpha:1,ease:Expo.easeOut}),FWDAnimation.to(i.closeS_do,.5,{alpha:1,ease:Expo.easeOut})},this.showOpenButton=function(){i.playerIsShowed_bl=!1,i.closeN_do.setX(150),i.closeS_do.setX(150),i.playPauseButton_do?"right"==i.alignment_str?(i.playPauseButton_do.setX(0),i.openN_do.setX(i.playPauseButton_do.w+1),i.openS_do.setX(i.playPauseButton_do.w+1),i.dumy_do.setX(i.playPauseButton_do.w+1),i.dumy_do.setWidth(i.totalWidth),i.animation_do.setX(i.playPauseButton_do.w+1+i.openerEqulizerOffsetLeft)):(i.playPauseButton_do.setX(i.openN_do.w+1),i.openN_do.setX(0),i.openS_do.setX(0),i.dumy_do.setX(0),i.dumy_do.setWidth(i.totalWidth),i.animation_do.setX(i.openerEqulizerOffsetLeft)):(i.openN_do.setX(0),i.openS_do.setX(0),i.dumy_do.setX(0),i.dumy_do.setWidth(i.totalWidth),i.animation_do.setX(i.openerEqulizerOffsetLeft)),i.animation_do.setVisible(!0)},this.showCloseButton=function(){i.playerIsShowed_bl=!0,i.openN_do.setX(150),i.openS_do.setX(150),i.dumy_do.setWidth(i.closeN_do.w),"right"==i.alignment_str?i.playPauseButton_do?(i.closeN_do.setX(i.totalWidth+1),i.closeS_do.setX(i.totalWidth+1),i.dumy_do.setX(i.totalWidth+1)):(i.closeN_do.setX(i.totalWidth-i.closeN_do.w),i.closeS_do.setX(i.totalWidth-i.closeN_do.w),i.dumy_do.setX(i.totalWidth-i.closeN_do.w)):(i.closeN_do.setX(0),i.closeS_do.setX(0),i.dumy_do.setX(0)),i.playPauseButton_do&&i.playPauseButton_do.setX(150),i.animation_do.setX(150),i.animation_do.setVisible(!1)},this.hide=function(){i.mainHolder_do.setX(150)},this.show=function(){i.mainHolder_do.setX(0)},i.updateHEXColors=function(e,t){i.normalColor_str=e,i.selectedColor_str=t,i.playPauseButton_do.updateHEXColors(e,t),FWDEVPUtils.changeCanvasHEXColor(i.openN_img,i.openN_canvas,e),FWDEVPUtils.changeCanvasHEXColor(i.closeN_img,i.closeN_canvas,e),FWDEVPUtils.changeCanvasHEXColor(i.openS_img,i.openS_canvas,t),FWDEVPUtils.changeCanvasHEXColor(i.closeS_img,i.closeS_canvas,t)},this.init()};n.setPrototype=function(){n.prototype=new FWDEVPDisplayObject("div")},n.SHOW="show",n.HIDE="hise",n.PLAY="play",n.PAUSE="pause",n.prototype=null,window.FWDEVPOpener=n}(window),function(e){var t=function(e,s){var i=this;t.prototype;this.adHolder_do=null,this.mainHolder_do=null,this.closeButton_do=null,this.buttons_ar=[],this.maxWidth=e.aopwWidth,this.maxHeight=e.aopwHeight+e.popwColseN_img.height+1,this.stageWidth=0,this.stageHeight=0,this.aopwSource=e.aopwSource,this.aopwTitle=e.aopwTitle,this.aopwTitleColor_str=e.aopwTitleColor_str,this.aopwBorderSize=e.aopwBorderSize,this.isShowed_bl=!1,this.isMobile_bl=FWDEVPUtils.isMobile,this.init=function(){i.setBackfaceVisibility(),i.mainBar_do=new FWDEVPDisplayObject("div"),i.bar_do=new FWDEVPDisplayObject("div"),i.bar_do.getStyle().background="url('"+e.popwBarBackgroundPath_str+"')",i.adHolder_do=new FWDEVPDisplayObject("div"),i.adBk_do=new FWDEVPDisplayObject("div"),i.adBk_do.getStyle().background="url('"+e.popwWindowBackgroundPath_str+"')",FWDEVPSimpleButton.setPrototype(),i.closeButton_do=new FWDEVPSimpleButton(e.popwColseN_img,e.popwColseSPath_str,void 0,!0,e.useHEXColorsForSkin_bl,e.normalButtonsColor_str,e.selectedButtonsColor_str),i.closeButton_do.addListener(FWDEVPSimpleButton.MOUSE_UP,i.closeButtonOnMouseUpHandler),i.title_do=new FWDEVPDisplayObject("div"),i.title_do.getStyle().width="100%",i.title_do.getStyle().textAlign="left",i.title_do.getStyle().fontFamily="Arial",i.title_do.getStyle().fontSize="14px",i.title_do.getStyle().fontWeight="100",i.title_do.getStyle().color=i.aopwTitleColor_str,i.title_do.setInnerHTML(i.aopwTitle),i.bar_do.addChild(i.title_do),i.addChild(i.adBk_do),i.mainBar_do.addChild(i.bar_do),i.mainBar_do.addChild(i.closeButton_do),i.mainBar_do.setHeight(i.closeButton_do.h),i.addChild(i.mainBar_do),i.addChild(i.adHolder_do),i.bar_do.setHeight(i.mainBar_do.h)},this.closeButtonOnMouseUpHandler=function(){i.isShowed_bl&&(i.hide(),s.play())},this.positionAndResize=function(){i.stageWidth=Math.min(s.stageWidth,i.maxWidth),i.stageHeight=Math.min(s.stageHeight,i.maxHeight);var e=1,t=s.stageWidth/i.maxWidth,o=s.stageHeight/i.maxHeight;t<o?e=t:o<t&&(e=o),1<e&&(e=1),i.stageWidth=e*i.maxWidth,i.stageHeight=e*i.maxHeight,i.setWidth(i.stageWidth),i.setHeight(i.stageHeight),i.setHeight(i.stageHeight),i.setX(Math.round((s.stageWidth-i.stageWidth)/2)),i.setY(Math.round((s.stageHeight-i.stageHeight)/2)),i.mainBar_do.setWidth(i.stageWidth),i.closeButton_do.setX(i.stageWidth-i.closeButton_do.w),i.bar_do.setWidth(i.stageWidth-i.closeButton_do.w-1),i.adBk_do.setWidth(i.stageWidth),i.adBk_do.setHeight(i.stageHeight-i.mainBar_do.h-1),i.adBk_do.setY(i.mainBar_do.h+1),i.adHolder_do.setWidth(i.stageWidth-2*i.aopwBorderSize),i.adHolder_do.setX(i.aopwBorderSize),i.adHolder_do.setY(i.mainBar_do.h+i.aopwBorderSize+1),i.adHolder_do.setHeight(i.stageHeight-i.mainBar_do.h-2*i.aopwBorderSize-1)},this.show=function(e){i.isShowed_bl||(i.isShowed_bl=!0,s.main_do.addChild(i),i.adHolder_do.setInnerHTML("<iframe width='100%' height='100%' scrolling='no' frameBorder='0' src="+i.aopwSource+"></iframe>"),i.positionAndResize(),i.title_do.setX(8),i.title_do.setY(Math.round((i.bar_do.h-i.title_do.getHeight())/2)))},this.showCompleteHandler=function(){},this.hide=function(){i.isShowed_bl&&(i.isShowed_bl=!1,s.main_do.contains(i)&&s.main_do.removeChild(i))},this.hideCompleteHandler=function(){s.main_do.removeChild(i),i.dispatchEvent(t.HIDE_COMPLETE)},this.updateHEXColors=function(e,t){i.closeButton_do.updateHEXColors(e,t)},this.init()};t.setPrototype=function(){t.prototype=new FWDEVPDisplayObject("div")},t.HIDE_COMPLETE="hideComplete",t.prototype=null,e.FWDEVPOPWindow=t}(window),function(e){var o=function(e,t){var s=this;o.prototype;this.xhr=null,this.passColoseN_img=e.passColoseN_img,this.privateVideoPassword_str=e.privateVideoPassword_str,this.bk_do=null,this.mainHolder_do=null,this.passMainHolder_do=null,this.passMainHolderBk_do=null,this.passMainLabel_do=null,this.passLabel_do=null,this.passInput_do=null,this.closeButton_do=null,this.embedWindowBackground_str=e.embedWindowBackground_str,this.secondaryLabelsColor_str=e.secondaryLabelsColor_str,this.inputColor_str=e.inputColor_str,this.mainLabelsColor_str=e.mainLabelsColor_str,this.passButtonNPath_str=e.passButtonNPath_str,this.passButtonSPath_str=e.passButtonSPath_str,this.inputBackgroundColor_str=e.inputBackgroundColor_str,this.borderColor_str=e.borderColor_str,this.maxTextWidth=0,this.totalWidth=0,this.stageWidth=0,this.stageHeight=0,this.buttonWidth=28,this.buttonHeight=19,this.embedWindowCloseButtonMargins=e.embedWindowCloseButtonMargins,this.finalEmbedPath_str=null,this.isShowed_bl=!1,this.isMobile_bl=FWDEVPUtils.isMobile,this.init=function(){s.setBackfaceVisibility(),s.mainHolder_do=new FWDEVPDisplayObject("div"),s.mainHolder_do.hasTransform3d_bl=!1,s.mainHolder_do.hasTransform2d_bl=!1,s.mainHolder_do.setBackfaceVisibility(),s.bk_do=new FWDEVPDisplayObject("div"),s.bk_do.getStyle().width="100%",s.bk_do.getStyle().height="100%",s.bk_do.setAlpha(.9),s.bk_do.getStyle().background="url('"+s.embedWindowBackground_str+"')",s.passMainHolder_do=new FWDEVPDisplayObject("div"),s.passMainHolderBk_do=new FWDEVPDisplayObject("div"),s.passMainHolderBk_do.getStyle().background="url('"+s.embedWindowBackground_str+"')",s.passMainHolderBk_do.getStyle().borderStyle="solid",s.passMainHolderBk_do.getStyle().borderWidth="1px",s.passMainHolderBk_do.getStyle().borderColor=s.borderColor_str,s.passMainLabel_do=new FWDEVPDisplayObject("div"),s.passMainLabel_do.setBackfaceVisibility(),s.passMainLabel_do.getStyle().fontFamily="Arial",s.passMainLabel_do.getStyle().fontSize="12px",s.passMainLabel_do.getStyle().color=s.mainLabelsColor_str,s.passMainLabel_do.getStyle().whiteSpace="nowrap",s.passMainLabel_do.getStyle().fontSmoothing="antialiased",s.passMainLabel_do.getStyle().webkitFontSmoothing="antialiased",s.passMainLabel_do.getStyle().textRendering="optimizeLegibility",s.passMainLabel_do.getStyle().padding="0px",s.passMainLabel_do.setInnerHTML("PRIVATE VIDEO"),s.passLabel_do=new FWDEVPDisplayObject("div"),s.passLabel_do.setBackfaceVisibility(),s.passLabel_do.getStyle().fontFamily="Arial",s.passLabel_do.getStyle().fontSize="12px",s.passLabel_do.getStyle().color=s.secondaryLabelsColor_str,s.passLabel_do.getStyle().whiteSpace="nowrap",s.passLabel_do.getStyle().fontSmoothing="antialiased",s.passLabel_do.getStyle().webkitFontSmoothing="antialiased",s.passLabel_do.getStyle().textRendering="optimizeLegibility",s.passLabel_do.getStyle().padding="0px",s.passLabel_do.setInnerHTML("Please enter password:"),s.passInput_do=new FWDEVPDisplayObject("input"),s.passInput_do.setBackfaceVisibility(),s.passInput_do.getStyle().fontFamily="Arial",s.passInput_do.getStyle().fontSize="12px",s.passInput_do.getStyle().backgroundColor=s.inputBackgroundColor_str,s.passInput_do.getStyle().color=s.inputColor_str,s.passInput_do.getStyle().outline=0,s.passInput_do.getStyle().whiteSpace="nowrap",s.passInput_do.getStyle().fontSmoothing="antialiased",s.passInput_do.getStyle().webkitFontSmoothing="antialiased",s.passInput_do.getStyle().textRendering="optimizeLegibility",s.passInput_do.getStyle().padding="6px",s.passInput_do.getStyle().paddingTop="4px",s.passInput_do.getStyle().paddingBottom="4px",s.passInput_do.screen.setAttribute("type","password"),FWDEVPSimpleSizeButton.setPrototype(),s.passButton_do=new FWDEVPSimpleSizeButton(s.passButtonNPath_str,s.passButtonSPath_str,s.buttonWidth,s.buttonHeight,e.useHEXColorsForSkin_bl,e.normalButtonsColor_str,e.selectedButtonsColor_str),s.passButton_do.addListener(FWDEVPSimpleSizeButton.CLICK,s.passClickHandler),FWDEVPSimpleButton.setPrototype(),s.closeButton_do=new FWDEVPSimpleButton(s.passColoseN_img,e.embedWindowClosePathS_str,void 0,!0,e.useHEXColorsForSkin_bl,e.normalButtonsColor_str,e.selectedButtonsColor_str),s.closeButton_do.addListener(FWDEVPSimpleButton.MOUSE_UP,s.closeButtonOnMouseUpHandler),s.addChild(s.mainHolder_do),s.mainHolder_do.addChild(s.bk_do),s.passMainHolder_do.addChild(s.passMainHolderBk_do),s.passMainHolder_do.addChild(s.passMainLabel_do),s.passMainHolder_do.addChild(s.passLabel_do),s.passMainHolder_do.addChild(s.passInput_do),s.passMainHolder_do.addChild(s.passButton_do),s.mainHolder_do.addChild(s.passMainHolder_do),s.mainHolder_do.addChild(s.closeButton_do)},this.closeButtonOnMouseUpHandler=function(){s.isShowed_bl&&s.hide()},this.positionAndResize=function(){s.stageWidth=t.stageWidth,s.stageHeight=t.stageHeight,s.maxTextWidth=Math.min(s.stageWidth-150,300),s.totalWidth=s.maxTextWidth+s.buttonWidth,s.positionFinal(),s.closeButton_do.setX(s.stageWidth-s.closeButton_do.w-s.embedWindowCloseButtonMargins),s.closeButton_do.setY(s.embedWindowCloseButtonMargins),s.setWidth(s.stageWidth),s.setHeight(s.stageHeight),s.mainHolder_do.setWidth(s.stageWidth),s.mainHolder_do.setHeight(s.stageHeight)},this.positionFinal=function(){var e,t,o=s.passLabel_do.getHeight();t=s.passMainLabel_do.getHeight(),s.passMainLabel_do.setX(16),s.passLabel_do.setX(16),s.passLabel_do.setY(t+14),s.passInput_do.setX(10),s.passInput_do.setWidth(parseInt(s.totalWidth-40-s.buttonWidth)),s.passInput_do.setY(s.passLabel_do.y+o+5),s.passButton_do.setX(10+s.passInput_do.w+20),s.passButton_do.setY(s.passLabel_do.y+o+5),s.passMainHolderBk_do.setY(s.passLabel_do.y-9),s.passMainHolderBk_do.setWidth(s.totalWidth-2),s.passMainHolderBk_do.setHeight(s.passButton_do.y+s.passButton_do.h-9),s.passMainHolder_do.setWidth(s.totalWidth),s.passMainHolder_do.setHeight(s.passButton_do.y+s.passButton_do.h+14),s.passMainHolder_do.setX(Math.round((s.stageWidth-s.totalWidth)/2)),e=s.passMainHolderBk_do.getHeight(),s.passMainHolder_do.setY(Math.round((s.stageHeight-e)/2)-10)},this.passClickHandler=function(){s.privateVideoPassword_str==FWDEVPUtils.MD5(s.passInput_do.screen.value)?s.dispatchEvent(o.CORRECT):FWDAnimation.isTweening(s.passInput_do.screen)||FWDAnimation.to(s.passInput_do.screen,.1,{css:{backgroundColor:"#FF0000"},yoyo:!0,repeat:3})},this.updateHEXColors=function(e,t){s.passButton_do.updateHEXColors(e,t),s.closeButton_do.updateHEXColors(e,t)},this.showInfo=function(e,t){s.infoText_do.setInnerHTML(e),s.passMainHolder_do.addChild(s.infoText_do),s.infoText_do.setWidth(s.buttonWidth),s.infoText_do.setHeight(s.buttonHeight-4),s.infoText_do.setX(s.passButton_do.x),s.infoText_do.setY(s.passButton_do.y-23),s.infoText_do.setAlpha(0),s.infoText_do.getStyle().color=t?"#FF0000":s.mainLabelsColor_str,FWDAnimation.killTweensOf(s.infoText_do),FWDAnimation.to(s.infoText_do,.16,{alpha:1,yoyo:!0,repeat:7})},this.show=function(e){s.isShowed_bl||(s.isShowed_bl=!0,t.main_do.addChild(s),s.passButton_do.setSelectedState(),s.passInput_do.setInnerHTML(""),(!FWDEVPUtils.isMobile||FWDEVPUtils.isMobile&&FWDEVPUtils.hasPointerEvent)&&t.main_do.setSelectable(!0),s.positionAndResize(),clearTimeout(s.hideCompleteId_to),clearTimeout(s.showCompleteId_to),s.mainHolder_do.setY(-s.stageHeight),s.showCompleteId_to=setTimeout(s.showCompleteHandler,900),setTimeout(function(){FWDAnimation.to(s.mainHolder_do,.8,{y:0,delay:.1,ease:Expo.easeInOut})},100))},this.showCompleteHandler=function(){},this.hide=function(){s.isShowed_bl&&(s.isShowed_bl=!1,t.customContextMenu_do&&t.customContextMenu_do.enable(),s.positionAndResize(),clearTimeout(s.hideCompleteId_to),clearTimeout(s.showCompleteId_to),(!FWDEVPUtils.isMobile||FWDEVPUtils.isMobile&&FWDEVPUtils.hasPointerEvent)&&t.main_do.setSelectable(!1),s.hideCompleteId_to=setTimeout(s.hideCompleteHandler,800),FWDAnimation.killTweensOf(s.mainHolder_do),FWDAnimation.to(s.mainHolder_do,.8,{y:-s.stageHeight,ease:Expo.easeInOut}))},this.hideCompleteHandler=function(){t.main_do.removeChild(s),s.dispatchEvent(o.HIDE_COMPLETE)},this.init()};o.setPrototype=function(){o.prototype=new FWDEVPDisplayObject("div")},o.ERROR="error",o.CORRECT="correct",o.HIDE_COMPLETE="hideComplete",o.prototype=null,e.FWDEVPPassword=o}(window),function(){var p=function(i,e,t,o,s,n,l,r,a,d,u,h,_,c){var f=this;p.prototype;this.closeButton_do,this.image_do,this.imageSource=e,this.link=s,this.target=n,this.start=t,this.end=o,this.google_ad_client=r,this.google_ad_slot=a,this.originalW=this.google_ad_width=d,this.originalH=this.google_ad_height=u,this.finalW=0,this.finalH=0,this.isImage_bl=!Boolean(this.google_ad_client),this.id=l,this.showPopupAdsCloseButton_bl=c,this.popupAddCloseNPath_str=h,this.popupAddCloseSPath_str=_,this.isClosed_bl=!1,this.isLoaded_bl=!1,this.isShowed_bl=!1,this.init=function(){f.setBkColor("rgba(0, 0, 0, 0.6)"),f.setX(-5e3),f.showPopupAdsCloseButton_bl&&(FWDEVPSimpleSizeButton.setPrototype(),f.closeButton_do=new FWDEVPSimpleSizeButton(f.popupAddCloseNPath_str,f.popupAddCloseSPath_str,21,21),f.closeButton_do.addListener(FWDEVPSimpleSizeButton.CLICK,f.closeClickButtonCloseHandler)),f.isImage_bl?(this.image=new Image,this.image.src=this.imageSource,this.image.onload=this.onLoadHandler):(f.isLoaded_bl=!0,f.setWidth(f.originalW),f.setHeight(f.originalH)),f.closeButton_do&&(f.addChild(f.closeButton_do),f.closeButton_do.setX(-300)),f.link&&f.setButtonMode(!0)},this.closeClickButtonCloseHandler=function(){f.hide(),f.isClosed_bl=!0},this.clickHandler=function(){f.link&&(i.parent.pause(),window.open(f.link,f.target))},this.onLoadHandler=function(){f.originalW=f.image.width,f.originalH=f.image.height,f.image_do=new FWDEVPDisplayObject("img"),f.image_do.setScreen(f.image),f.image_do.setWidth(f.originalW),f.image_do.setHeight(f.originalH),f.addChild(f.image_do),f.isLoaded_bl=!0,f.closeButton_do&&(f.addChild(f.closeButton_do),f.closeButton_do.setX(-300)),f.screen.addEventListener?f.image_do.screen.addEventListener("click",f.clickHandler):f.image_do.screen.attachEvent("onclick",f.clickHandler)},this.hide=function(e){if(this.isShowed_bl){this.isShowed_bl=!1;var t=Math.min(1,i.parent.tempVidStageWidth/f.originalW);parseInt(t*f.originalH);finalY=parseInt(i.parent.tempVidStageHeight),i.setY(finalY),f.setX(-5e3),FWDAnimation.killTweensOf(i),e?(i.removeChild(f),i.setWidth(0),i.setHeight(0)):(f.setWidth(0),f.setHeight(0),i.setVisible(!1),f.setVisible(!1))}},this.show=function(){this.isShowed_bl||this.isClosed_bl||!f.isLoaded_bl||(this.isShowed_bl=!0,f.setX(0),setTimeout(function(){if(FWDAnimation.killTweensOf(i),i.setVisible(!0),f.setVisible(!0),!f.isImage_bl&&!f.isGooglAdCreated_bl){f.isGooglAdCreated_bl=!0,window.google_ad_client=f.google_ad_client,window.google_ad_slot=f.google_ad_slot,window.google_ad_width=f.originalW,window.google_ad_height=f.originalH,f.container=new FWDEVPTransformDisplayObject("div"),f.container.setWidth(f.originalW),f.container.setHeight(f.originalH),f.addChild(f.container);var t=document.write;document.write=function(e){f.container.screen.innerHTML=e,document.write=t};var e=document.createElement("script");e.type="text/javascript",-1!=location.href.indexOf("https")?e.src="https://pagead2.googlesyndication.com/pagead/show_ads.js":e.src="http://pagead2.googlesyndication.com/pagead/show_ads.js",document.body.appendChild(e),f.closeButton_do&&(f.addChild(f.closeButton_do),f.closeButton_do.setX(-300))}var o=Math.min(1,i.parent.tempVidStageWidth/f.originalW),s=parseInt(o*f.originalH)-2;i.parent.controller_do.isShowed_bl?finalY=parseInt(i.parent.tempVidStageHeight-i.parent.controller_do.h-f.originalH*o+2+s):finalY=parseInt(i.parent.tempVidStageHeight-f.originalH*o+2+s),i.setY(finalY),f.resizeAndPosition(!0)},100))},this.resizeAndPosition=function(e){if(f.isLoaded_bl&&!f.isClosed_bl&&f.isShowed_bl){var t,o;FWDEVPUtils.isIEAndLessThen9;o=Math.min(1,i.parent.tempVidStageWidth/f.originalW),f.finalW=parseInt(o*f.originalW),f.finalH=parseInt(o*f.originalH),f.finalW==f.prevFinalW&&f.finalH==f.prevFinalH||(f.setWidth(f.finalW),f.setHeight(f.finalH),f.isImage_bl?(f.image_do.setWidth(f.finalW),f.image_do.setHeight(f.finalH)):f.container&&(f.container.setScale2(o),f.container.setX((f.finalW-f.originalW)/2),f.container.setY((f.finalH-f.originalH)/2)),t=i.parent.controller_do?i.parent.controller_do.isShowed_bl?parseInt(i.parent.tempVidStageHeight-i.parent.controller_do.h-f.originalH*o-10):parseInt(i.parent.tempVidStageHeight-f.originalH*o-10):parseInt(i.parent.tempVidStageHeight-f.originalH*o),i.setX(parseInt((i.parent.tempVidStageWidth-f.finalW)/2)),FWDAnimation.killTweensOf(i),e?FWDAnimation.to(i,.8,{y:t,ease:Expo.easeInOut}):i.setY(t),f.closeButton_do&&(f.closeButton_do.setY(2),f.closeButton_do.setX(parseInt(f.finalW-21-2))),f.prevFinalW=f.finalW,f.prevFinallH=f.finalH,i.setWidth(f.finalW),i.setHeight(f.finalH))}},f.init()};p.setPrototype=function(){p.prototype=new FWDEVPDisplayObject("div","absolute","visible")},p.MOUSE_OVER="onMouseOver",p.MOUSE_OUT="onMouseOut",p.CLICK="onClick",p.prototype=null,window.FWDEVPPopupAddButton=p}(window),function(e){var t=function(e,s){var i=this;t.prototype;this.parent=e,this.main_do=null,this.reader=null,this.subtitiles_ar=null,this.totalAds=0,i.popupAds_ar,i.popupAdsButtons_ar,this.hasText_bl=!1,this.isLoaded_bl=!1,this.isMobile_bl=FWDEVPUtils.isMobile,this.hasPointerEvent_bl=FWDEVPUtils.hasPointerEvent,this.showSubtitleByDefault_bl=s.showSubtitleByDefault_bl,this.setSizeOnce_bl=!1,i.init=function(){i.setOverflow("visible"),i.getStyle().cursor="default",i.setVisible(!1)},this.resetPopups=function(e){var t;i.hideAllPopupButtons(!0),i.popupAds_ar=e,i.totalAds=i.popupAds_ar.length,i.popupAdsButtons_ar=[];for(var o=0;o<i.totalAds;o++)FWDEVPPopupAddButton.setPrototype(),t=new FWDEVPPopupAddButton(i,i.popupAds_ar[o].imagePath,i.popupAds_ar[o].timeStart,i.popupAds_ar[o].timeEnd,i.popupAds_ar[o].link,i.popupAds_ar[o].trget,o,i.popupAds_ar[o].google_ad_client,i.popupAds_ar[o].google_ad_slot,i.popupAds_ar[o].google_ad_width,i.popupAds_ar[o].google_ad_height,s.popupAddCloseNPath_str,s.popupAddCloseSPath_str,s.showPopupAdsCloseButton_bl),i.popupAdsButtons_ar[o]=t,i.addChild(t)},this.update=function(e){if(0!=i.totalAds)for(var t,o=0;o<i.totalAds;o++)e>=(t=i.popupAdsButtons_ar[o]).start&&e<=t.end?t.show():t.hide()},this.position=function(e){if(0!=i.totalAds)for(var t=0;t<i.totalAds;t++)i.popupAdsButtons_ar[t].resizeAndPosition(e)},this.hideAllPopupButtons=function(e){if(0!=i.totalAds){for(var t=0;t<i.totalAds;t++)i.popupAdsButtons_ar[t].hide(e);e&&(i.popupAdsButtons_ar=null,i.totalAds=0)}},i.init()};t.setPrototype=function(){t.prototype=new FWDEVPDisplayObject("div")},t.LOAD_ERROR="error",t.LOAD_COMPLETE="complete",t.prototype=null,e.FWDEVPPopupAds=t}(window),function(e){var n=function(s,e,t,o){var i=this;n.prototype;this.img_img=new Image,this.img_do=null,this.imgW=0,this.imgH=0,this.finalW=0,this.finalH=0,this.finalX=0,this.finalY=0,this.curPath_str,this.backgroundColor_str=e,this.fillEntireScreenWithPoster_bl=o,this.isTransparent_bl=!1,this.showPoster_bl=t,this.showOrLoadOnMobile_bl=!1,this.isShowed_bl=!0,this.allowToShow_bl=!0,this.isMobile_bl=FWDEVPUtils.isMobile,this.init=function(){i.img_img=new Image,i.img_do=new FWDEVPDisplayObject("img"),i.hide(),i.setBkColor(i.backgroundColor_str)},this.positionAndResize=function(){if(s.stageWidth&&(i.setWidth(s.stageWidth),i.setHeight(s.stageHeight),i.imgW)){var e,t=s.stageWidth/i.imgW,o=s.stageHeight/i.imgH;e=i.fillEntireScreenWithPoster_bl?o<=t?t:o:t<=o?t:o,i.finalW=Math.round(e*i.imgW),i.finalH=Math.round(e*i.imgH),i.finalX=parseInt((s.stageWidth-i.finalW)/2),i.finalY=parseInt((s.stageHeight-i.finalH)/2),i.img_do.setX(i.finalX),i.img_do.setY(i.finalY),i.img_do.setWidth(i.finalW),i.img_do.setHeight(i.finalH)}},this.setPoster=function(e){return e&&""==FWDEVPUtils.trim(e)||"none"==e?(i.showOrLoadOnMobile_bl=!0,i.isTransparent_bl=!0,void i.show()):"youtubemobile"==e?(i.isTransparent_bl=!1,i.showOrLoadOnMobile_bl=!1,i.img_img.src=null,void(i.imgW=0)):e==i.curPath_str?(i.isTransparent_bl=!1,i.showOrLoadOnMobile_bl=!0,void i.show()):(i.isTransparent_bl=!1,i.showOrLoadOnMobile_bl=!0,i.curPath_str=e,i.allowToShow_bl&&(i.isShowed_bl=!1),void(e&&(i.img_do&&(i.img_do.src=""),i.img_img.onload=i.posterLoadHandler,i.img_img.src=i.curPath_str)))},this.posterLoadHandler=function(e){i.imgW=i.img_img.width,i.imgH=i.img_img.height,i.img_do.setScreen(i.img_img),i.addChild(i.img_do),i.show(),i.positionAndResize()},this.show=function(e){i.allowToShow_bl&&!i.isShowed_bl&&i.showOrLoadOnMobile_bl&&(i.isShowed_bl=!0,i.isTransparent_bl?0!=i.alpha&&i.setAlpha(0):1!=i.alpha&&i.setAlpha(1),i.setVisible(!0),i.isMobile_bl||i.isTransparent_bl||(FWDAnimation.killTweensOf(i),i.setAlpha(0),FWDAnimation.to(i,.6,{alpha:1,delay:.4})),i.positionAndResize())},this.hide=function(){i.isShowed_bl&&(i.isShowed_bl=!1,i.setVisible(!1))},this.init()};n.setPrototype=function(){n.prototype=new FWDEVPDisplayObject("div")},n.prototype=null,e.FWDEVPPoster=n}(window),function(e){var a=function(e,t,o,s,i,n,l){var r=this;a.prototype;r.main_do,r.preloaderPostion=t,r.backgroundColor=s,r.fillColor=i,r.radius=o,r.strokeSize=n,this.animDuration=l||300,this.strtAngle=270,this.countAnimation=0,this.isShowed_bl=!0,this.slideshowAngle={n:0},this.init=function(){r.main_do=new FWDEVPDisplayObject("div"),r.main_do.setOverflow("visible"),r.main_do.setWidth(2*r.radius+r.strokeSize),r.main_do.setHeight(2*r.radius+r.strokeSize),r.addChild(r.main_do),r.setOverflow("visible"),r.setWidth(2*r.radius+r.strokeSize),r.setHeight(2*r.radius+r.strokeSize),this.bkCanvas=new FWDEVPDisplayObject("canvas"),this.bkCanvasContext=this.bkCanvas.screen.getContext("2d"),this.fillCircleCanvas=new FWDEVPDisplayObject("canvas"),this.fillCircleCanvasContext=this.fillCircleCanvas.screen.getContext("2d"),r.main_do.screen.style.transformOrigin="50% 50%",r.main_do.addChild(this.bkCanvas),r.main_do.addChild(this.fillCircleCanvas),r.drawBackground(),r.drawFill(),r.hide()},this.positionAndResize=function(){"bottomleft"==r.preloaderPostion?(r.setX(e.offsetPreloader),r.setY(e.stageHeight-r.h-e.offsetPreloader)):"bottomright"==r.preloaderPostion?(r.setX(e.stageWidth-r.w-e.offsetPreloader),r.setY(e.stageHeight-r.h-e.offsetPreloader)):"topright"==r.preloaderPostion?(r.setX(e.stageWidth-r.w-e.offsetPreloader),r.setY(e.offsetPreloader)):"topleft"==r.preloaderPostion?(r.setX(e.offsetPreloader),r.setY(e.offsetPreloader)):"center"==r.preloaderPostion&&(r.setX(Math.round(e.stageWidth-r.w)/2),r.setY(Math.round(Math.min(e.stageHeight,e.viewportSize.h)-r.h)/2))},this.drawBackground=function(){this.bkCanvas.screen.width=2*this.radius+2*r.strokeSize,this.bkCanvas.screen.height=2*this.radius+2*r.strokeSize,this.bkCanvasContext.lineWidth=this.thicknessSize,this.bkCanvasContext.translate(r.strokeSize/2,r.strokeSize/2),this.bkCanvasContext.shadowColor="#333333",this.bkCanvasContext.shadowBlur=1,this.bkCanvasContext.lineWidth=r.strokeSize,this.bkCanvasContext.strokeStyle=this.backgroundColor,this.bkCanvasContext.beginPath(),this.bkCanvasContext.arc(this.radius,this.radius,this.radius,Math.PI/180*0,Math.PI/180*360,!1),this.bkCanvasContext.stroke(),this.bkCanvasContext.closePath()},this.drawFill=function(){r.fillCircleCanvas.screen.width=2*r.radius+2*r.strokeSize,r.fillCircleCanvas.screen.height=2*r.radius+2*r.strokeSize,r.fillCircleCanvasContext.lineWidth=r.thicknessSize,r.fillCircleCanvasContext.translate(r.strokeSize/2,r.strokeSize/2),r.fillCircleCanvasContext.lineWidth=r.strokeSize,r.fillCircleCanvasContext.strokeStyle=r.fillColor,r.fillCircleCanvasContext.beginPath(),r.fillCircleCanvasContext.arc(r.radius,r.radius,r.radius,Math.PI/180*r.strtAngle,Math.PI/180*(r.strtAngle+r.slideshowAngle.n),!1),r.fillCircleCanvasContext.stroke(),r.fillCircleCanvasContext.closePath()},this.startSlideshow=function(){null!=r&&(FWDAnimation.killTweensOf(r.slideshowAngle),FWDAnimation.to(r.slideshowAngle,r.animDuration,{n:360,onUpdate:r.drawFill,onComplete:r.stopSlideshow}))},this.stopSlideshow=function(){FWDAnimation.killTweensOf(r.slideshowAngle),FWDAnimation.to(r.slideshowAngle,.8,{n:0,onupdate:r.drawFill,onUpdate:r.drawFill,ease:Expo.easiInOut})},this.startPreloader=function(){r.stopPreloader(),r.slideshowAngle={n:0},FWDAnimation.to(r.slideshowAngle,r.animDuration,{n:360,onUpdate:r.drawFill,repeat:100,yoyo:!0,ease:Expo.easInOut}),FWDAnimation.to(r.main_do.screen,r.animDuration,{rotation:360,repeat:100})},this.stopPreloader=function(){FWDAnimation.killTweensOf(r.slideshowAngle),FWDAnimation.killTweensOf(r.main_do.screen),FWDAnimation.to(r.main_do.screen,1e-5,{rotation:0})},this.show=function(){r.isShowed_bl||(r.setVisible(!0),FWDAnimation.killTweensOf(r),FWDAnimation.to(r,1,{alpha:1,delay:.2}),r.stopPreloader(),r.startPreloader(),r.isShowed_bl=!0)},this.hide=function(e){r.isShowed_bl&&(FWDAnimation.killTweensOf(this),e?FWDAnimation.to(this,.2,{alpha:0,onComplete:r.onHideComplete}):(r.setVisible(!1),r.setAlpha(0)),r.isShowed_bl=!1)},this.onHideComplete=function(){r.setVisible(!1),r.stopPreloader(),r.dispatchEvent(a.HIDE_COMPLETE)},this.init()};a.setPrototype=function(){a.prototype=new FWDEVPDisplayObject("div")},a.HIDE_COMPLETE="hideComplete",a.prototype=null,e.FWDEVPPreloader=a}(window),function(e){var l=function(e,t,o,s,i){var n=this;l.prototype;this.imageSource_img=e,this.image_sdo=null,this.segmentWidth=t,this.segmentHeight=o,this.totalSegments=s,this.animDelay=i||300,this.count=0,this.delayTimerId_int,this.isShowed_bl=!1,this.init=function(){n.setWidth(n.segmentWidth),n.setHeight(n.segmentHeight),n.image_sdo=new FWDEVPDisplayObject("img"),n.image_sdo.setScreen(n.imageSource_img),n.addChild(n.image_sdo),n.hide(!1)},this.start=function(){null!=n&&(clearInterval(n.delayTimerId_int),n.delayTimerId_int=setInterval(n.updatePreloader,n.animDelay))},this.stop=function(){clearInterval(n.delayTimerId_int)},this.updatePreloader=function(){if(null!=n){n.count++,n.count>n.totalSegments-1&&(n.count=0);var e=n.count*n.segmentWidth;n.image_sdo.setX(-e)}},this.show=function(){n.isShowed_bl||(n.setVisible(!0),n.start(),FWDAnimation.killTweensOf(n),FWDAnimation.to(n,1,{alpha:1,delay:.2}),n.isShowed_bl=!0)},this.hide=function(e){n.isShowed_bl&&(FWDAnimation.killTweensOf(this),e?FWDAnimation.to(this,1,{alpha:0,onComplete:n.onHideComplete}):(n.setVisible(!1),n.setAlpha(0)),n.isShowed_bl=!1)},this.onHideComplete=function(){n.setVisible(!1),n.stop(),n.dispatchEvent(l.HIDE_COMPLETE)},this.init()};l.setPrototype=function(){l.prototype=new FWDEVPDisplayObject("div")},l.HIDE_COMPLETE="hideComplete",l.prototype=null,e.FWDEVPPreloader2=l}(window),function(e){var l=function(e,t,o,s,i){var n=this;l.prototype;this.buttonRef_do=e,this.bkColor=t,this.text_do=null,this.pointer_do=null,this.fontColor_str=o,this.toolTipLabel_str=s,this.toolTipsButtonsHideDelay=1e3*i,this.pointerWidth=7,this.pointerHeight=4,this.showWithDelayId_to,this.isMobile_bl=FWDEVPUtils.isMobile,this.isShowed_bl=!0,this.init=function(){n.setOverflow("visible"),n.setupMainContainers(),n.setLabel(s),n.hide(),n.setVisible(!1),n.getStyle().backgroundColor=n.bkColor,n.getStyle().zIndex=9999999999999,n.getStyle().pointerEvents="none"},this.setupMainContainers=function(){n.pointerHolder_do=new FWDEVPDisplayObject("div"),n.pointerHolder_do.setOverflow("visible"),n.addChild(n.pointerHolder_do),n.text_do=new FWDEVPDisplayObject("div"),n.text_do.hasTransform3d_bl=!1,n.text_do.hasTransform2d_bl=!1,n.text_do.setBackfaceVisibility(),n.text_do.setDisplay("inline-block"),n.text_do.getStyle().fontFamily="Arial",n.text_do.getStyle().fontSize="12px",n.text_do.getStyle().color=n.fontColor_str,n.text_do.getStyle().whiteSpace="nowrap",n.text_do.getStyle().fontSmoothing="antialiased",n.text_do.getStyle().webkitFontSmoothing="antialiased",n.text_do.getStyle().textRendering="optimizeLegibility",n.text_do.getStyle().padding="6px",n.text_do.getStyle().paddingTop="4px",n.text_do.getStyle().paddingBottom="4px",n.addChild(n.text_do),n.pointer_do=new FWDEVPDisplayObject("div"),n.pointer_do.setBkColor(n.bkColor),n.pointer_do.screen.style="border: 4px solid transparent; border-top-color: "+n.bkColor+";",n.pointerHolder_do.addChild(n.pointer_do)},this.setLabel=function(e){void 0!==e&&(n.text_do.setInnerHTML(e),setTimeout(function(){null!=n&&(n.setWidth(n.text_do.getWidth()),n.setHeight(n.text_do.getHeight()),n.positionPointer())},20))},this.positionPointer=function(e){var t,o;e||(e=0),t=parseInt((n.w-8)/2)+e,o=n.h,n.pointerHolder_do.setX(t),n.pointerHolder_do.setY(o)},this.show=function(){n.isShowed_bl=!0,clearTimeout(n.hideWithDelayId_to),FWDAnimation.killTweensOf(n),clearTimeout(n.showWithDelayId_to),n.showWithDelayId_to=setTimeout(n.showFinal,n.toolTipsButtonsHideDelay)},this.showFinal=function(){n.setVisible(!0),FWDAnimation.to(n,.4,{alpha:1,onComplete:function(){n.setVisible(!0)},ease:Quart.easeOut})},this.hide=function(){n.isShowed_bl&&(clearTimeout(n.hideWithDelayId_to),n.hideWithDelayId_to=setTimeout(function(){clearTimeout(n.showWithDelayId_to),FWDAnimation.killTweensOf(n),n.setVisible(!1),n.isShowed_bl=!1,n.setAlpha(0)},100))},this.init()};l.setPrototype=function(){l.prototype=null,l.prototype=new FWDEVPDisplayObject("div")},l.CLICK="onClick",l.MOUSE_DOWN="onMouseDown",l.prototype=null,e.FWDEVPScrubberToolip=l}(window),function(o){var s=function(e,t){var f=this;s.prototype;this.embedColoseN_img=e.embedColoseN_img,this.bk_do=null,this.mainHolder_do=null,this.closeButton_do=null,this.buttons_ar=[],this.embedWindowBackground_str=e.embedWindowBackground_str,this.embedWindowCloseButtonMargins=e.embedWindowCloseButtonMargins,this.totalWidth=0,this.stageWidth=0,this.stageHeight=0,this.minMarginXSpace=20,this.hSpace=20,this.minHSpace=10,this.vSpace=15,this.isShowed_bl=!1,this.isMobile_bl=FWDEVPUtils.isMobile,f.useVectorIcons_bl=e.useVectorIcons_bl,this.init=function(){f.closeButton_do||(f.setBackfaceVisibility(),f.mainHolder_do=new FWDEVPDisplayObject("div"),f.mainHolder_do.hasTransform3d_bl=!1,f.mainHolder_do.hasTransform2d_bl=!1,f.mainHolder_do.setBackfaceVisibility(),f.bk_do=new FWDEVPDisplayObject("div"),f.bk_do.getStyle().width="100%",f.bk_do.getStyle().height="100%",f.bk_do.setAlpha(.9),f.bk_do.getStyle().background="url('"+f.embedWindowBackground_str+"')",f.useVectorIcons_bl?(FWDEVPSimpleButton.setPrototype(),f.closeButton_do=new FWDEVPSimpleButton(void 0,void 0,void 0,!0,void 0,void 0,void 0,"<div class='table-fwdevp-button'><span class='table-cell-fwdevp-button icon-close'></span></div>",void 0,"EVPCloseButtonNormalState","EVPCloseButtonSelectedState")):(FWDEVPSimpleButton.setPrototype(),f.closeButton_do=new FWDEVPSimpleButton(e.shareClooseN_img,e.embedWindowClosePathS_str,void 0,!0,e.useHEXColorsForSkin_bl,e.normalButtonsColor_str,e.selectedButtonsColor_str)),f.closeButton_do.addListener(FWDEVPSimpleButton.MOUSE_UP,f.closeButtonOnMouseUpHandler),f.addChild(f.mainHolder_do),f.mainHolder_do.addChild(f.bk_do),f.mainHolder_do.addChild(f.closeButton_do),this.setupButtons())},this.closeButtonOnMouseUpHandler=function(){f.isShowed_bl&&f.hide()},this.positionAndResize=function(){f.stageWidth=t.stageWidth,f.stageHeight=t.stageHeight,f.closeButton_do.setX(f.stageWidth-f.closeButton_do.w-f.embedWindowCloseButtonMargins),f.closeButton_do.setY(f.embedWindowCloseButtonMargins),f.setWidth(f.stageWidth),f.setHeight(f.stageHeight),f.mainHolder_do.setWidth(f.stageWidth),f.mainHolder_do.setHeight(f.stageHeight),f.positionButtons()},this.setupButtons=function(){f.useVectorIcons_bl?(FWDEVPSimpleButton.setPrototype(),f.facebookButton_do=new FWDEVPSimpleButton(void 0,void 0,void 0,!0,void 0,void 0,void 0,"<span class='icomoon icon-facebook'></span>",void 0,"EVPSocialMediaButtonsNormalState","EVPSocialMediaButtonsSelectedState")):(FWDEVPSimpleButton.setPrototype(),f.facebookButton_do=new FWDEVPSimpleButton(e.facebookN_img,e.facebookSPath_str,void 0,!0,e.useHEXColorsForSkin_bl,e.normalButtonsColor_str,e.selectedButtonsColor_str)),f.facebookButton_do.addListener(FWDEVPSimpleButton.MOUSE_UP,f.facebookOnMouseUpHandler),this.buttons_ar.push(f.facebookButton_do),f.useVectorIcons_bl?(FWDEVPSimpleButton.setPrototype(),f.googleButton_do=new FWDEVPSimpleButton(void 0,void 0,void 0,!0,void 0,void 0,void 0,"<span class='icomoon icon-google-plus'></span>",void 0,"EVPSocialMediaButtonsNormalState","EVPSocialMediaButtonsSelectedState")):(FWDEVPSimpleButton.setPrototype(),f.googleButton_do=new FWDEVPSimpleButton(e.googleN_img,e.googleSPath_str,void 0,!0,e.useHEXColorsForSkin_bl,e.normalButtonsColor_str,e.selectedButtonsColor_str)),f.googleButton_do.addListener(FWDEVPSimpleButton.MOUSE_UP,f.googleOnMouseUpHandler),this.buttons_ar.push(f.googleButton_do),f.useVectorIcons_bl?(FWDEVPSimpleButton.setPrototype(),f.twitterButton_do=new FWDEVPSimpleButton(void 0,void 0,void 0,!0,void 0,void 0,void 0,"<span class='icomoon icon-twitter'></span>",void 0,"EVPSocialMediaButtonsNormalState","EVPSocialMediaButtonsSelectedState")):(FWDEVPSimpleButton.setPrototype(),f.twitterButton_do=new FWDEVPSimpleButton(e.twitterN_img,e.twitterSPath_str,void 0,!0,e.useHEXColorsForSkin_bl,e.normalButtonsColor_str,e.selectedButtonsColor_str)),f.twitterButton_do.addListener(FWDEVPSimpleButton.MOUSE_UP,f.twitterOnMouseUpHandler),this.buttons_ar.push(f.twitterButton_do),f.useVectorIcons_bl?(FWDEVPSimpleButton.setPrototype(),f.likedinButton_do=new FWDEVPSimpleButton(void 0,void 0,void 0,!0,void 0,void 0,void 0,"<span class='icomoon icon-linkedin'></span>",void 0,"EVPSocialMediaButtonsNormalState","EVPSocialMediaButtonsSelectedState")):(FWDEVPSimpleButton.setPrototype(),f.likedinButton_do=new FWDEVPSimpleButton(e.likedInkN_img,e.likedInSPath_str,void 0,!0,e.useHEXColorsForSkin_bl,e.normalButtonsColor_str,e.selectedButtonsColor_str)),f.likedinButton_do.addListener(FWDEVPSimpleButton.MOUSE_UP,f.likedinOnMouseUpHandler),this.buttons_ar.push(f.likedinButton_do),f.useVectorIcons_bl?(FWDEVPSimpleButton.setPrototype(),f.bufferButton_do=new FWDEVPSimpleButton(void 0,void 0,void 0,!0,void 0,void 0,void 0,"<span class='icomoon icon-comments'></span>",void 0,"EVPSocialMediaButtonsNormalState","EVPSocialMediaButtonsSelectedState")):(FWDEVPSimpleButton.setPrototype(),f.bufferButton_do=new FWDEVPSimpleButton(e.bufferkN_img,e.bufferSPath_str,void 0,!0,e.useHEXColorsForSkin_bl,e.normalButtonsColor_str,e.selectedButtonsColor_str)),f.bufferButton_do.addListener(FWDEVPSimpleButton.MOUSE_UP,f.bufferOnMouseUpHandler),this.buttons_ar.push(f.bufferButton_do),f.useVectorIcons_bl?(FWDEVPSimpleButton.setPrototype(),f.diggButton_do=new FWDEVPSimpleButton(void 0,void 0,void 0,!0,void 0,void 0,void 0,"<span class='icomoon icon-digg'></span>",void 0,"EVPSocialMediaButtonsNormalState","EVPSocialMediaButtonsSelectedState")):(FWDEVPSimpleButton.setPrototype(),f.diggButton_do=new FWDEVPSimpleButton(e.diggN_img,e.diggSPath_str,void 0,!0,e.useHEXColorsForSkin_bl,e.normalButtonsColor_str,e.selectedButtonsColor_str)),f.diggButton_do.addListener(FWDEVPSimpleButton.MOUSE_UP,f.diggOnMouseUpHandler),this.buttons_ar.push(f.diggButton_do),f.useVectorIcons_bl?(FWDEVPSimpleButton.setPrototype(),f.redditButton_do=new FWDEVPSimpleButton(void 0,void 0,void 0,!0,void 0,void 0,void 0,"<span class='icomoon icon-reddit'></span>",void 0,"EVPSocialMediaButtonsNormalState","EVPSocialMediaButtonsSelectedState")):(FWDEVPSimpleButton.setPrototype(),f.redditButton_do=new FWDEVPSimpleButton(e.redditN_img,e.redditSPath_str,void 0,!0,e.useHEXColorsForSkin_bl,e.normalButtonsColor_str,e.selectedButtonsColor_str)),f.redditButton_do.addListener(FWDEVPSimpleButton.MOUSE_UP,f.redditOnMouseUpHandler),this.buttons_ar.push(f.redditButton_do),f.useVectorIcons_bl?(FWDEVPSimpleButton.setPrototype(),f.thumbrlButton_do=new FWDEVPSimpleButton(void 0,void 0,void 0,!0,void 0,void 0,void 0,"<span class='icomoon icon-tumblr'></span>",void 0,"EVPSocialMediaButtonsNormalState","EVPSocialMediaButtonsSelectedState")):(FWDEVPSimpleButton.setPrototype(),f.thumbrlButton_do=new FWDEVPSimpleButton(e.thumbrlN_img,e.thumbrlSPath_str,void 0,!0,e.useHEXColorsForSkin_bl,e.normalButtonsColor_str,e.selectedButtonsColor_str)),f.thumbrlButton_do.addListener(FWDEVPSimpleButton.MOUSE_UP,f.thumbrlOnMouseUpHandler),this.buttons_ar.push(f.thumbrlButton_do),f.mainHolder_do.addChild(f.facebookButton_do),f.mainHolder_do.addChild(f.googleButton_do),f.mainHolder_do.addChild(f.twitterButton_do),f.mainHolder_do.addChild(f.likedinButton_do),f.mainHolder_do.addChild(f.bufferButton_do),f.mainHolder_do.addChild(f.diggButton_do),f.mainHolder_do.addChild(f.redditButton_do),f.mainHolder_do.addChild(f.thumbrlButton_do)},this.facebookOnMouseUpHandler=function(){var e="http://www.facebook.com/share.php?u="+encodeURIComponent(location.href);o.open(e,"","menubar=no,toolbar=no,resizable=yes,scrollbars=yes,height=400,width=600")},this.googleOnMouseUpHandler=function(){var e="https://plus.google.com/share?url="+encodeURIComponent(location.href);o.open(e,"","menubar=no,toolbar=no,resizable=yes,scrollbars=yes,height=400,width=600")},this.twitterOnMouseUpHandler=function(){var e="http://twitter.com/home?status="+encodeURIComponent(location.href);o.open(e,"","menubar=no,toolbar=no,resizable=yes,scrollbars=yes,height=400,width=600")},this.likedinOnMouseUpHandler=function(){var e="https://www.linkedin.com/cws/share?url="+location.href;o.open(e,"","menubar=no,toolbar=no,resizable=yes,scrollbars=yes,height=400,width=600")},this.bufferOnMouseUpHandler=function(){var e="https://buffer.com/add?url="+location.href;o.open(e,"","menubar=no,toolbar=no,resizable=yes,scrollbars=yes,height=400,width=600")},this.diggOnMouseUpHandler=function(){var e="http://digg.com/submit?url="+location.href;o.open(e,"","menubar=no,toolbar=no,resizable=yes,scrollbars=yes,height=400,width=600")},this.redditOnMouseUpHandler=function(){var e="https://www.reddit.com/?submit="+location.href;o.open(e,"","menubar=no,toolbar=no,resizable=yes,scrollbars=yes,height=400,width=600")},this.thumbrlOnMouseUpHandler=function(){var e="http://www.tumblr.com/share/link?url="+location.href;o.open(e,"","menubar=no,toolbar=no,resizable=yes,scrollbars=yes,height=400,width=600")},this.positionButtons=function(){var e,t,o,s=[],i=[],n=[],l=0,r=0,a=0;s[a]=[0],i[a]=f.buttons_ar[0].totalWidth,n[a]=f.buttons_ar[0].totalWidth,f.totalButtons=f.buttons_ar.length;for(var d=1;d<f.totalButtons;d++)e=f.buttons_ar[d],i[a]+e.totalWidth+f.minHSpace>f.stageWidth-f.minMarginXSpace?(s[++a]=[],s[a].push(d),i[a]=e.totalWidth,n[a]=e.totalWidth):(s[a].push(d),i[a]+=e.totalWidth+f.minHSpace,n[a]+=e.totalWidth);l=parseInt((f.stageHeight-((a+1)*(e.totalHeight+f.vSpace)-f.vSpace))/2);for(d=0;d<a+1;d++){var u,h=0;if(1<s[d].length){u=Math.min((f.stageWidth-f.minMarginXSpace-n[d])/(s[d].length-1),f.hSpace);var _=n[d]+u*(s[d].length-1);h=parseInt((f.stageWidth-_)/2)}else h=parseInt((f.stageWidth-i[d])/2);0<d&&(l+=e.h+f.vSpace);for(var c=0;c<s[d].length;c++)e=f.buttons_ar[s[d][c]],o=0==c?h:(t=f.buttons_ar[s[d][c]-1]).finalX+t.totalWidth+u,e.finalX=o,e.finalY=l,r<e.finalY&&(r=e.finalY),f.buttonsBarTotalHeight=r+e.totalHeight+f.startY,e.setX(e.finalX),e.setY(e.finalY)}},this.show=function(e){f.isShowed_bl||(f.isShowed_bl=!0,t.main_do.addChild(f),f.init(),(!FWDEVPUtils.isMobile||FWDEVPUtils.isMobile&&FWDEVPUtils.hasPointerEvent)&&t.main_do.setSelectable(!0),f.useVectorIcons_bl?f.checkButtonsId_to=setInterval(function(){0!=f.closeButton_do.w&&(f.positionAndResize(),clearInterval(f.checkButtonsId_to),clearTimeout(f.hideCompleteId_to),clearTimeout(f.showCompleteId_to),f.mainHolder_do.setY(-f.stageHeight),f.showCompleteId_to=setTimeout(f.showCompleteHandler,900),FWDAnimation.to(f.mainHolder_do,.8,{y:0,delay:.1,ease:Expo.easeInOut}))},50):(f.positionAndResize(),clearTimeout(f.hideCompleteId_to),clearTimeout(f.showCompleteId_to),f.mainHolder_do.setY(-f.stageHeight),f.showCompleteId_to=setTimeout(f.showCompleteHandler,900),setTimeout(function(){FWDAnimation.to(f.mainHolder_do,.8,{y:0,delay:.1,ease:Expo.easeInOut})},100)))},this.showCompleteHandler=function(){},this.hide=function(){f.isShowed_bl&&(f.isShowed_bl=!1,t.customContextMenu_do&&t.customContextMenu_do.enable(),f.positionAndResize(),clearTimeout(f.hideCompleteId_to),clearTimeout(f.showCompleteId_to),(!FWDEVPUtils.isMobile||FWDEVPUtils.isMobile&&FWDEVPUtils.hasPointerEvent)&&t.main_do.setSelectable(!1),f.hideCompleteId_to=setTimeout(f.hideCompleteHandler,800),FWDAnimation.killTweensOf(f.mainHolder_do),FWDAnimation.to(f.mainHolder_do,.8,{y:-f.stageHeight,ease:Expo.easeInOut}))},this.hideCompleteHandler=function(){t.main_do.removeChild(f),f.dispatchEvent(s.HIDE_COMPLETE)},this.updateHEXColors=function(e,t){f.closeButton_do&&(f.closeButton_do.updateHEXColors(e,t),f.facebookButton_do.updateHEXColors(e,t),f.googleButton_do.updateHEXColors(e,t),f.twitterButton_do.updateHEXColors(e,t),f.likedinButton_do.updateHEXColors(e,t),f.bufferButton_do.updateHEXColors(e,t),f.diggButton_do.updateHEXColors(e,t),f.redditButton_do.updateHEXColors(e,t),f.thumbrlButton_do.updateHEXColors(e,t))}};s.setPrototype=function(){s.prototype=new FWDEVPDisplayObject("div")},s.HIDE_COMPLETE="hideComplete",s.prototype=null,o.FWDEVPShareWindow=s}(window),function(e){var _=function(e,t,o,s,i,n,l,r,a,d,u){var h=this;_.prototype;this.iconCSSString=r,this.showHDIcon=a,this.nImg=e,this.sPath_str=t,this.dPath_str=o,h.testButton=Boolean(-1!=String(h.iconCSSString).indexOf("download")),this.n_sdo,this.s_sdo,this.d_sdo,this.toolTipLabel_str,this.nImg&&(this.totalWidth=this.nImg.width,this.totalHeight=this.nImg.height,h.buttonWidth=h.totalWidth,h.buttonHeight=h.totalHeight),this.normalCalssName=d,this.selectedCalssName=u,this.useHEXColorsForSkin_bl=i,this.normalButtonsColor_str=n,this.selectedButtonsColor_str=l,this.isShowed_bl=!0,this.isSetToDisabledState_bl=!1,this.isDisabled_bl=!1,this.isDisabledForGood_bl=!1,this.isSelectedFinal_bl=!1,this.isActive_bl=!1,this.isMobile_bl=FWDEVPUtils.isMobile,this.hasPointerEvent_bl=FWDEVPUtils.hasPointerEvent,this.allowToCreateSecondButton_bl=!h.isMobile_bl||h.hasPointerEvent_bl||s,this.useFontAwesome_bl=Boolean(this.iconCSSString),h.init=function(){h.setupMainContainers(),h.setNormalState()},h.setupMainContainers=function(){if(h.useFontAwesome_bl){if(h.n_do=new FWDEVPTransformDisplayObject("div"),h.n_do.setInnerHTML(h.iconCSSString),h.addChild(h.n_do),h.showHDIcon){var e=new Image;e.src="http://www.webdesign-flash.ro/icons/hd.png",h.hd_do=new FWDEVPDisplayObject("img"),h.hd_do.setScreen(e),h.hd_do.setWidth(7),h.hd_do.setHeight(5),h.setOverflow("visible"),h.addChild(h.hd_do)}h.setFinalSize()}else if(h.useHEXColorsForSkin_bl?(h.n_sdo=new FWDEVPTransformDisplayObject("div"),h.n_sdo.setWidth(h.totalWidth),h.n_sdo.setHeight(h.totalHeight),h.n_sdo_canvas=FWDEVPUtils.getCanvasWithModifiedColor(h.nImg,h.normalButtonsColor_str).canvas,h.n_sdo.screen.appendChild(h.n_sdo_canvas)):(h.n_sdo=new FWDEVPTransformDisplayObject("img"),h.n_sdo.setScreen(h.nImg)),h.addChild(h.n_sdo),h.allowToCreateSecondButton_bl){h.img1=new Image,h.img1.src=h.sPath_str;var t=new Image;h.sImg=t,h.useHEXColorsForSkin_bl?(h.s_sdo=new FWDEVPTransformDisplayObject("div"),h.s_sdo.setWidth(h.totalWidth),h.s_sdo.setHeight(h.totalHeight),h.img1.onload=function(){h.s_sdo_canvas=FWDEVPUtils.getCanvasWithModifiedColor(h.img1,h.selectedButtonsColor_str).canvas,h.s_sdo.screen.appendChild(h.s_sdo_canvas)}):(h.s_sdo=new FWDEVPDisplayObject("img"),h.s_sdo.setScreen(h.img1),h.s_sdo.setWidth(h.totalWidth),h.s_sdo.setHeight(h.totalHeight)),h.s_sdo.setAlpha(0),h.addChild(h.s_sdo),h.dPath_str&&(t.src=h.dPath_str,h.d_sdo=new FWDEVPDisplayObject("img"),h.d_sdo.setScreen(t),h.d_sdo.setWidth(h.totalWidth),h.d_sdo.setHeight(h.totalHeight),h.d_sdo.setX(-100),h.addChild(h.d_sdo)),h.setWidth(h.totalWidth),h.setHeight(h.totalHeight)}h.setButtonMode(!0),h.screen.style.yellowOverlayPointerEvents="none",h.hasPointerEvent_bl?(h.screen.addEventListener("pointerup",h.onMouseUp),h.screen.addEventListener("pointerover",h.onMouseOver),h.screen.addEventListener("pointerout",h.onMouseOut)):h.screen.addEventListener&&(h.isMobile_bl||(h.screen.addEventListener("mouseover",h.onMouseOver),h.screen.addEventListener("mouseout",h.onMouseOut),h.screen.addEventListener("mouseup",h.onMouseUp)),h.screen.addEventListener("touchend",h.onMouseUp))},h.onMouseOver=function(e){if(h.dispatchEvent(_.SHOW_TOOLTIP,{e:e}),!(h.isDisabledForGood_bl||e.pointerType&&e.pointerType!=e.MSPOINTER_TYPE_MOUSE&&"mouse"!=e.pointerType)){if(h.isDisabled_bl||h.isSelectedFinal_bl)return;h.dispatchEvent(_.MOUSE_OVER,{e:e}),h.setSelectedState(!0)}},h.onMouseOut=function(e){if(!(h.isDisabledForGood_bl||e.pointerType&&e.pointerType!=e.MSPOINTER_TYPE_MOUSE&&"mouse"!=e.pointerType)){if(h.isDisabled_bl||h.isSelectedFinal_bl)return;h.dispatchEvent(_.MOUSE_OUT,{e:e}),h.setNormalState(!0)}},h.onMouseUp=function(e){h.isDisabledForGood_bl||(e.preventDefault&&e.preventDefault(),h.isDisabled_bl||2==e.button||h.dispatchEvent(_.MOUSE_UP,{e:e}))},h.checkCount=0,this.setFinalSize=function(){clearInterval(h.checkId_int),6<h.checkCount||(h.lastWidth=h.n_do.screen.firstChild.offsetWidth,h.checkCount+=1,h.checkId_int=setInterval(function(){h.setFinalSize()},100),h.prevWidth!=h.lastWidth&&0!=h.lastWidth&&(h.setWidth(h.n_do.screen.firstChild.offsetWidth),h.setHeight(h.n_do.screen.firstChild.offsetHeight),h.n_do.setWidth(h.w),h.n_do.setHeight(h.h),h.buttonWidth=h.w,h.buttonHeight=h.h,h.totalWidth=h.w,h.totalHeight=h.h,h.hd_do&&(h.hd_do.setX(h.w-h.hd_do.w+2),h.hd_do.setY(-2)),h.prevWidth=h.lastWidth))},h.setSelected=function(){h.isSelectedFinal_bl=!0,h.s_sdo&&(FWDAnimation.killTweensOf(h.s_sdo),FWDAnimation.to(h.s_sdo,.8,{alpha:1,ease:Expo.easeOut}))},h.setUnselected=function(){h.isSelectedFinal_bl=!1,h.s_sdo&&FWDAnimation.to(h.s_sdo,.8,{alpha:0,delay:.1,ease:Expo.easeOut})},this.setNormalState=function(e){h.doNotallowToSetNormal||(h.useFontAwesome_bl?(FWDAnimation.killTweensOf(h.n_do.screen),e?FWDAnimation.to(h.n_do.screen,.8,{className:h.normalCalssName,ease:Expo.easeOut}):h.n_do.screen.className=h.normalCalssName):(FWDAnimation.killTweensOf(h.s_sdo),FWDAnimation.to(h.s_sdo,.5,{alpha:0,ease:Expo.easeOut})))},this.setSelectedState=function(e){h.useFontAwesome_bl?(FWDAnimation.killTweensOf(h.n_do.screen),e?FWDAnimation.to(h.n_do.screen,.8,{className:h.selectedCalssName,ease:Expo.easeOut}):h.n_do.screen.className=h.selectedCalssName):(FWDAnimation.killTweensOf(h.s_sdo),FWDAnimation.to(h.s_sdo,.5,{alpha:1,delay:.1,ease:Expo.easeOut}))},this.setDisabledState=function(){h.isSetToDisabledState_bl||(h.isSetToDisabledState_bl=!0,h.d_sdo&&h.d_sdo.setX(0),h.hd_do&&h.hd_do.setX(h.w-h.hd_do.w))},this.setEnabledState=function(){h.isSetToDisabledState_bl&&(h.isSetToDisabledState_bl=!1,h.d_sdo&&h.d_sdo.setX(-100),h.hd_do&&h.hd_do.setX(-1e5))},this.disable=function(){h.isDisabledForGood_bl||h.isDisabled_bl||(h.isDisabled_bl=!0,h.setButtonMode(!1),FWDAnimation.killTweensOf(h),FWDAnimation.to(h,.6,{alpha:.4}),h.setNormalState(!0))},this.enable=function(){!h.isDisabledForGood_bl&&h.isDisabled_bl&&(h.isDisabled_bl=!1,h.setButtonMode(!0),FWDAnimation.killTweensOf(h),FWDAnimation.to(h,.6,{alpha:1}))},this.disableForGood=function(){h.isDisabledForGood_bl=!0,h.setButtonMode(!1)},this.showDisabledState=function(){h.d_sdo&&0!=h.d_sdo.x&&h.d_sdo.setX(0),h.hd_do&&h.hd_do.setX(h.w-h.hd_do.w+2)},this.hideDisabledState=function(){h.d_sdo&&-100!=h.d_sdo.x&&h.d_sdo.setX(-100),h.hd_do&&h.hd_do.setX(-1e4)},this.show=function(){h.isShowed_bl||(h.isShowed_bl=!0,FWDAnimation.killTweensOf(h),FWDEVPUtils.isIEAndLessThen9?(FWDEVPUtils.isIEAndLessThen9||(h.setAlpha(0),FWDAnimation.to(h,.4,{alpha:1,delay:.4})),h.setVisible(!0)):FWDEVPUtils.isIEWebKit?(FWDAnimation.killTweensOf(h.n_sdo),h.n_sdo.setScale2(0),FWDAnimation.to(h.n_sdo,.8,{scale:1,delay:.4,onStart:function(){h.setVisible(!0)},ease:Elastic.easeOut})):(h.setScale2(0),FWDAnimation.to(h,.8,{scale:1,delay:.4,onStart:function(){h.setVisible(!0)},ease:Elastic.easeOut})))},this.hide=function(e){h.isShowed_bl&&(h.isShowed_bl=!1,FWDAnimation.killTweensOf(h),FWDAnimation.killTweensOf(h.n_sdo),h.setVisible(!1))},h.updateHEXColors=function(e,t){FWDEVPUtils.changeCanvasHEXColor(h.nImg,h.n_sdo_canvas,e),FWDEVPUtils.changeCanvasHEXColor(h.img1,h.s_sdo_canvas,t)},h.init()};_.setPrototype=function(){_.prototype=null,_.prototype=new FWDEVPTransformDisplayObject("div")},_.CLICK="onClick",_.MOUSE_OVER="onMouseOver",_.SHOW_TOOLTIP="showTooltip",_.MOUSE_OUT="onMouseOut",_.MOUSE_UP="onMouseDown",_.prototype=null,e.FWDEVPSimpleButton=_}(window),function(e){var a=function(e,t,o,s,i,n,l){var r=this;a.prototype;this.nImg_img=null,this.sImg_img=null,this.n_do,this.s_do,this.useHEXColorsForSkin_bl=i,this.normalButtonsColor_str=n,this.selectedButtonsColor_str=l,this.nImgPath_str=e,this.sImgPath_str=t,this.buttonWidth=o,this.buttonHeight=s,this.isMobile_bl=FWDEVPUtils.isMobile,this.hasPointerEvent_bl=FWDEVPUtils.hasPointerEvent,this.isDisabled_bl=!1,this.init=function(){r.setupMainContainers(),r.setWidth(r.buttonWidth),r.setHeight(r.buttonHeight),r.setButtonMode(!0)},this.setupMainContainers=function(){r.nImg=new Image,r.nImg.src=r.nImgPath_str,r.useHEXColorsForSkin_bl?(r.n_do=new FWDEVPTransformDisplayObject("div"),r.n_do.setWidth(r.buttonWidth),r.n_do.setHeight(r.buttonHeight),r.nImg.onload=function(){r.n_do_canvas=FWDEVPUtils.getCanvasWithModifiedColor(r.nImg,r.normalButtonsColor_str).canvas,r.n_do.screen.appendChild(r.n_do_canvas)}):(r.n_do=new FWDEVPDisplayObject("img"),r.n_do.setScreen(r.nImg),r.n_do.setWidth(r.buttonWidth),r.n_do.setHeight(r.buttonHeight)),r.addChild(r.n_do),r.sImg=new Image,r.sImg.src=r.sImgPath_str,r.useHEXColorsForSkin_bl?(r.s_do=new FWDEVPTransformDisplayObject("div"),r.s_do.setWidth(r.buttonWidth),r.s_do.setHeight(r.buttonHeight),r.sImg.onload=function(){r.s_do_canvas=FWDEVPUtils.getCanvasWithModifiedColor(r.sImg,r.selectedButtonsColor_str).canvas,r.s_do.screen.appendChild(r.s_do_canvas)}):(r.s_do=new FWDEVPDisplayObject("img"),r.s_do.setScreen(r.sImg),r.s_do.setWidth(r.buttonWidth),r.s_do.setHeight(r.buttonHeight)),r.addChild(r.s_do),r.s_do.setAlpha(0),r.hasPointerEvent_bl?(r.screen.addEventListener("pointerup",r.onMouseUp),r.screen.addEventListener("pointerover",r.setSelectedState),r.screen.addEventListener("pointerout",r.setNormalState)):r.screen.addEventListener&&(r.isMobile_bl||(r.screen.addEventListener("mouseover",r.setSelectedState),r.screen.addEventListener("mouseout",r.setNormalState),r.screen.addEventListener("mouseup",r.onMouseUp)),r.screen.addEventListener("touchend",r.onMouseUp))},this.setNormalState=function(e){FWDAnimation.killTweensOf(r.s_do),FWDAnimation.to(r.s_do,.5,{alpha:0,ease:Expo.easeOut})},this.setSelectedState=function(e){FWDAnimation.killTweensOf(r.s_do),FWDAnimation.to(r.s_do,.5,{alpha:1,ease:Expo.easeOut})},this.onMouseUp=function(e){r.dispatchEvent(a.CLICK)},r.updateHEXColors=function(e,t){FWDEVPUtils.changeCanvasHEXColor(r.nImg,r.n_do_canvas,e),FWDEVPUtils.changeCanvasHEXColor(r.sImg,r.s_do_canvas,t)},this.destroy=function(){FWDAnimation.killTweensOf(r.n_do),r.n_do.destroy(),this.s_do.destroy(),r.screen.onmouseover=null,r.screen.onmouseout=null,r.screen.onclick=null,r.nImg_img=null,r.sImg_img=null,r=null,a.prototype=null},r.init()};a.setPrototype=function(){a.prototype=null,a.prototype=new FWDEVPTransformDisplayObject("div","relative")},a.CLICK="onClick",a.prototype=null,e.FWDEVPSimpleSizeButton=a}(window),function(r){var a=function(l,e){var u=this;a.prototype;this.main_do=null,this.reader=null,this.subtitiles_ar=null,this.hasText_bl=!1,this.isLoaded_bl=!1,this.isMobile_bl=FWDEVPUtils.isMobile,this.hasPointerEvent_bl=FWDEVPUtils.hasPointerEvent,this.showSubtitileByDefault_bl=e.showSubtitileByDefault_bl,u.init=function(){u.setOverflow("visible"),u.getStyle().cursor="default",u.setupTextContainer(),u.setWidth(l.maxWidth),u.getStyle().margin="auto",u.hide()},u.setupTextContainer=function(){this.text_do=new FWDEVPTransformDisplayObject("div"),u.text_do.getStyle().pointerEvents="none",this.text_do.hasTransform3d_bl=!1,this.text_do.setBackfaceVisibility(),this.text_do.getStyle().transformOrigin="50% 0%",this.text_do.setWidth(l.maxWidth),this.text_do.getStyle().textAlign="center",this.text_do.getStyle().fontSmoothing="antialiased",this.text_do.getStyle().webkitFontSmoothing="antialiased",this.text_do.getStyle().textRendering="optimizeLegibility",this.addChild(this.text_do)},u.loadSubtitle=function(e){if(u.text_do.setX(-5e3),-1==location.protocol.indexOf("file:")){u.subtitiles_ar=[],u.stopToLoadSubtitle(),u.sourceURL_str=e,u.xhr=new XMLHttpRequest,u.xhr.onreadystatechange=u.onLoad,u.xhr.onerror=u.onError;try{u.xhr.open("get",u.sourceURL_str+"?rand="+parseInt(99999999*Math.random()),!0),u.xhr.send()}catch(e){e&&e.message&&e.message}}},this.onLoad=function(e){4==u.xhr.readyState&&(404==u.xhr.status?u.dispatchEvent(FWDEVPData.LOAD_ERROR,{text:"Subtitle file path is not found: <font color='#FF0000'>"+u.sourceURL_str+"</font>"}):408==u.xhr.status?u.dispatchEvent(FWDEVPData.LOAD_ERROR,{text:"Loadiong subtitle file file request load timeout!"}):200==u.xhr.status&&(u.subtitle_txt=u.xhr.responseText,u.isShowed_bl&&u.show(),u.parseSubtitle(u.subtitle_txt),u.prevText="none",u.showSubtitileByDefault_bl&&setTimeout(function(){u.show(),u.text_do.setX(0),u.updateSubtitle(l.currentSecconds)},400))),u.dispatchEvent(a.LOAD_COMPLETE)},this.onError=function(e){try{r.console&&console.log(e),r.console&&console.log(e.message)}catch(e){}u.dispatchEvent(a.LOAD_ERROR,{text:"Error loading subtitle file:<font color='#FF0000'>"+u.sourceURL_str+"</font>."})},this.stopToLoadSubtitle=function(){if(null!=u.xhr){try{u.xhr.abort()}catch(e){}u.xhr.onreadystatechange=null,u.xhr.onerror=null,u.xhr=null}this.isLoaded_bl=!1},u.parseSubtitle=function(e){function l(e){return null==e?"":e.replace(/^\s+|\s+$/g,"")}u.isLoaded_bl=!0;var r=(e=l(e=e.replace(/\r\n|\r|\n/g,"\n"))).split("\n\n"),a=0;for(s in r){var d=r[s].split("\n");if(2<=d.length){if(n=d[0],i=l(d[1].split(" --\x3e ")[0]),o=l(d[1].split(" --\x3e ")[1]),t=d[2],2<d.length)for(j=3;j<d.length;j++)t+="<br>"+d[j];u.subtitiles_ar[a]={},u.subtitiles_ar[a].number=n,u.subtitiles_ar[a].start=i,u.subtitiles_ar[a].end=o,u.subtitiles_ar[a].startDuration=FWDEVPUtils.formatTimeWithMiliseconds(i),u.subtitiles_ar[a].endDuration=FWDEVPUtils.formatTimeWithMiliseconds(o),u.subtitiles_ar[a].text="<p class='EVPSubtitle'>"+t+"</p>"}a++}},this.updateSubtitle=function(e){if(u.isLoaded_bl){for(var t,o,s="",i=0;i<u.subtitiles_ar.length;i++)if(t=u.subtitiles_ar[i].startDuration,o=u.subtitiles_ar[i].endDuration,t<e&&e<o){s=u.subtitiles_ar[i].text;break}if(u.prevText!=s)u.text_do.setInnerHTML(s),u.setAlpha(0),setTimeout(function(){u.setAlpha(1),u.position()},300),u.hasText_bl=!0;u.prevText=s}},this.position=function(e){if(u.isLoaded_bl){var t;u.setX(Math.round((l.tempVidStageWidth-u.w)/2));var o=Math.min(2,l.stageWidth/l.maxWidth);u.text_do.setScale2(o);var s=u.text_do.getHeight()*o;t=l.controller_do?l.controller_do.isShowed_bl?parseInt(l.stageHeight-l.controller_do.h-s):parseInt(l.stageHeight-s-10):parseInt(l.stageHeight-s),FWDAnimation.killTweensOf(u.text_do),e?FWDAnimation.to(u.text_do,.8,{y:t,ease:Expo.easeInOut}):u.text_do.setY(t)}},this.show=function(){u.setVisible(!0)},this.hide=function(){u.setVisible(!1)},u.init()};a.getDuration=function(e){var t=0,o=0,s=0;return"0"==(t=(e=e.split(":"))[0])[0]&&"0"!=t[1]&&(t=parseInt(t[1])),"00"==t&&(t=0),"0"==(o=e[1])[0]&&"0"!=o[1]&&(o=parseInt(o[1])),"00"==o&&(o=0),secs=parseInt(e[2].replace(/,.*/gi,"")),"0"==secs[0]&&"0"!=secs[1]&&(secs=parseInt(secs[1])),"00"==secs&&(secs=0),0!=t&&(s+=60*t*60),0!=o&&(s+=60*o),s+=secs},a.setPrototype=function(){a.prototype=null,a.prototype=new FWDEVPTransformDisplayObject("div")},a.LOAD_ERROR="error",a.LOAD_COMPLETE="complete",a.prototype=null,r.FWDEVPSubtitle=a}(window),window.FWDEVPTransformDisplayObject=function(e,t,o,s){this.listeners={events_ar:[]};var i=this;if("div"!=e&&"img"!=e&&"canvas"!=e)throw Error("Type is not valid! "+e);this.type=e,this.children_ar=[],this.style,this.screen,this.numChildren,this.transform,this.position=t||"absolute",this.overflow=o||"hidden",this.display=s||"block",this.visible=!0,this.buttonMode,this.x=0,this.y=0,this.scale=1,this.rotation=0,this.w=0,this.h=0,this.rect,this.alpha=1,this.innerHTML="",this.opacityType="",this.isHtml5_bl=!1,this.hasTransform2d_bl=FWDEVPUtils.hasTransform2d,this.init=function(){this.setScreen()},this.getTransform=function(){for(var e,t=["transform","msTransform","WebkitTransform","MozTransform","OTransform"];e=t.shift();)if(void 0!==this.screen.style[e])return e;return!1},this.getOpacityType=function(){return void 0!==this.screen.style.opacity?"opacity":"filter"},this.setScreen=function(e){"img"==this.type&&e?this.screen=e:this.screen=document.createElement(this.type),this.setMainProperties()},this.setMainProperties=function(){this.transform=this.getTransform(),this.setPosition(this.position),this.setOverflow(this.overflow),this.opacityType=this.getOpacityType(),"opacity"==this.opacityType&&(this.isHtml5_bl=!0),"filter"==i.opacityType&&(i.screen.style.filter="inherit"),this.screen.style.left="0px",this.screen.style.top="0px",this.screen.style.margin="0px",this.screen.style.padding="0px",this.screen.style.maxWidth="none",this.screen.style.maxHeight="none",this.screen.style.border="none",this.screen.style.lineHeight="1",this.screen.style.backfaceVisibility="hidden",this.screen.style.webkitBackfaceVisibility="hidden",this.screen.style.MozBackfaceVisibility="hidden",this.screen.style.MozImageRendering="optimizeSpeed",this.screen.style.WebkitImageRendering="optimizeSpeed","img"==e&&(this.setWidth(this.screen.width),this.setHeight(this.screen.height),this.screen.onmousedown=function(e){return!1})},i.setBackfaceVisibility=function(){i.screen.style.backfaceVisibility="visible",i.screen.style.webkitBackfaceVisibility="visible",i.screen.style.MozBackfaceVisibility="visible"},i.removeBackfaceVisibility=function(){i.screen.style.backfaceVisibility="hidden",i.screen.style.webkitBackfaceVisibility="hidden",i.screen.style.MozBackfaceVisibility="hidden"},this.setSelectable=function(e){if(!e){try{this.screen.style.userSelect="none"}catch(e){}try{this.screen.style.MozUserSelect="none"}catch(e){}try{this.screen.style.webkitUserSelect="none"}catch(e){}try{this.screen.style.khtmlUserSelect="none"}catch(e){}try{this.screen.style.oUserSelect="none"}catch(e){}try{this.screen.style.msUserSelect="none"}catch(e){}try{this.screen.msUserSelect="none"}catch(e){}this.screen.ondragstart=function(e){return!1},this.screen.onselectstart=function(){return!1},this.screen.style.webkitTouchCallout="none"}},this.getScreen=function(){return i.screen},this.setVisible=function(e){this.visible=e,1==this.visible?this.screen.style.visibility="visible":this.screen.style.visibility="hidden"},this.getVisible=function(){return this.visible},this.setResizableSizeAfterParent=function(){this.screen.style.width="100%",this.screen.style.height="100%"},this.getStyle=function(){return this.screen.style},this.setOverflow=function(e){i.overflow=e,i.screen.style.overflow=i.overflow},this.setPosition=function(e){i.position=e,i.screen.style.position=i.position},this.setDisplay=function(e){this.display=e,this.screen.style.display=this.display},this.setButtonMode=function(e){this.buttonMode=e,1==this.buttonMode?this.screen.style.cursor="pointer":this.screen.style.cursor="default"},this.setBkColor=function(e){i.screen.style.backgroundColor=e},this.setInnerHTML=function(e){i.innerHTML=e,i.screen.innerHTML=i.innerHTML},this.getInnerHTML=function(){return i.innerHTML},this.getRect=function(){return i.screen.getBoundingClientRect()},this.setAlpha=function(e){i.alpha=e,"opacity"==i.opacityType?i.screen.style.opacity=i.alpha:"filter"==i.opacityType&&(i.screen.style.filter="alpha(opacity="+100*i.alpha+")",i.screen.style.filter="progid:DXImageTransform.Microsoft.Alpha(Opacity="+Math.round(100*i.alpha)+")")},this.getAlpha=function(){return i.alpha},this.getRect=function(){return this.screen.getBoundingClientRect()},this.getGlobalX=function(){return this.getRect().left},this.getGlobalY=function(){return this.getRect().top},this.setX=function(e){i.x=e,i.hasTransform2d_bl?i.screen.style[i.transform]="translate("+i.x+"px,"+i.y+"px) scale("+i.scale+" , "+i.scale+") rotate("+i.rotation+"deg)":i.screen.style.left=i.x+"px"},this.getX=function(){return i.x},this.setY=function(e){i.y=e,i.hasTransform2d_bl?i.screen.style[i.transform]="translate("+i.x+"px,"+i.y+"px) scale("+i.scale+" , "+i.scale+") rotate("+i.rotation+"deg)":i.screen.style.top=i.y+"px"},this.getY=function(){return i.y},this.setScale2=function(e){i.scale=e,i.hasTransform2d_bl&&(i.screen.style[i.transform]="translate("+i.x+"px,"+i.y+"px) scale("+i.scale+" , "+i.scale+") rotate("+i.rotation+"deg)")},this.getScale=function(){return i.scale},this.setRotation=function(e){i.rotation=e,i.hasTransform2d_bl&&(i.screen.style[i.transform]="translate("+i.x+"px,"+i.y+"px) scale("+i.scale+" , "+i.scale+") rotate("+i.rotation+"deg)")},this.setWidth=function(e){i.w=e,"img"==i.type?i.screen.width=i.w:i.screen.style.width=i.w+"px"},this.getWidth=function(){return"div"==i.type?0!=i.screen.offsetWidth?i.screen.offsetWidth:i.w:"img"==i.type?0!=i.screen.offsetWidth?i.screen.offsetWidth:0!=i.screen.width?i.screen.width:i._w:"canvas"==i.type?0!=i.screen.offsetWidth?i.screen.offsetWidth:i.w:void 0},this.setHeight=function(e){i.h=e,"img"==i.type?i.screen.height=i.h:i.screen.style.height=i.h+"px"},this.getHeight=function(){return"div"==i.type?0!=i.screen.offsetHeight?i.screen.offsetHeight:i.h:"img"==i.type?0!=i.screen.offsetHeight?i.screen.offsetHeight:0!=i.screen.height?i.screen.height:i.h:"canvas"==i.type?0!=i.screen.offsetHeight?i.screen.offsetHeight:i.h:void 0},this.getNumChildren=function(){return i.children_ar.length},this.addChild=function(e){this.contains(e)&&this.children_ar.splice(FWDEVPUtils.indexOfArray(this.children_ar,e),1),this.children_ar.push(e),this.screen.appendChild(e.screen)},this.removeChild=function(e){if(!this.contains(e))throw Error("##removeChild()## Child doesn't exist, it can't be removed!");this.children_ar.splice(FWDEVPUtils.indexOfArray(this.children_ar,e),1),this.screen.removeChild(e.screen)},this.contains=function(e){return-1!=FWDEVPUtils.indexOfArray(this.children_ar,e)},this.addChildAtZero=function(e){0==this.numChildren?(this.children_ar.push(e),this.screen.appendChild(e.screen)):(this.screen.insertBefore(e.screen,this.children_ar[0].screen),this.contains(e)&&this.children_ar.splice(FWDEVPUtils.indexOfArray(this.children_ar,e),1),this.children_ar.unshift(e))},this.getChildAt=function(e){if(e<0||e>this.numChildren-1)throw Error("##getChildAt()## Index out of bounds!");if(0==this.numChildren)throw Errror("##getChildAt## Child dose not exist!");return this.children_ar[e]},this.removeChildAtZero=function(){this.screen.removeChild(this.children_ar[0].screen),this.children_ar.shift()},this.addListener=function(e,t){if(null==e)throw Error("type is required.");if("object"==typeof e)throw Error("type must be of type String.");if("function"!=typeof t)throw Error("listener must be of type Function.");var o={};o.type=e,o.listener=t,(o.target=this).listeners.events_ar.push(o)},this.dispatchEvent=function(e,t){if(null==e)throw Error("type is required.");if("object"==typeof e)throw Error("type must be of type String.");for(var o=0,s=this.listeners.events_ar.length;o<s;o++)if(this.listeners.events_ar[o].target===this&&this.listeners.events_ar[o].type===e){if(t)for(var i in t)this.listeners.events_ar[o][i]=t[i];this.listeners.events_ar[o].listener.call(this,this.listeners.events_ar[o]);break}},this.removeListener=function(e,t){if(null==e)throw Error("type is required.");if("object"==typeof e)throw Error("type must be of type String.");if("function"!=typeof t)throw Error("listener must be of type Function."+e);for(var o=0,s=this.listeners.events_ar.length;o<s;o++)if(this.listeners.events_ar[o].target===this&&this.listeners.events_ar[o].type===e&&this.listeners.events_ar[o].listener===t){this.listeners.events_ar.splice(o,1);break}},this.disposeImage=function(){"img"==this.type&&(this.screen.src=null)},this.destroy=function(){try{this.screen.parentNode.removeChild(this.screen)}catch(e){}this.screen.onselectstart=null,this.screen.ondragstart=null,this.screen.ontouchstart=null,this.screen.ontouchmove=null,this.screen.ontouchend=null,this.screen.onmouseover=null,this.screen.onmouseout=null,this.screen.onmouseup=null,this.screen.onmousedown=null,this.screen.onmousemove=null,this.screen.onclick=null,delete this.screen,delete this.style,delete this.rect,delete this.selectable,delete this.buttonMode,delete this.position,delete this.overflow,delete this.visible,delete this.innerHTML,delete this.numChildren,delete this.x,delete this.y,delete this.w,delete this.h,delete this.opacityType,delete this.isHtml5_bl,delete this.hasTransform2d_bl,this.children_ar=null,this.style=null,this.screen=null,this.numChildren=null,this.transform=null,this.position=null,this.overflow=null,this.display=null,this.visible=null,this.buttonMode=null,this.globalX=null,this.globalY=null,this.x=null,this.y=null,this.w=null,this.h=null,this.rect=null,this.alpha=null,this.innerHTML=null,this.opacityType=null,this.isHtml5_bl=null,this.hasTransform3d_bl=null,this.hasTransform2d_bl=null,i=null},this.init()},function(){for(var n=0,e=["ms","moz","webkit","o"],t=0;t<e.length&&!window.requestAnimationFrame;++t)window.requestAnimationFrame=window[e[t]+"RequestAnimationFrame"],window.cancelAnimationFrame=window[e[t]+"CancelAnimationFrame"]||window[e[t]+"CancelRequestAnimationFrame"];window.requestAnimationFrame||(window.requestAnimationFrame=function(e,t){var o=(new Date).getTime(),s=Math.max(0,16-(o-n)),i=window.setTimeout(function(){e(o+s)},s);return n=o+s,i}),window.cancelAnimationFrame||(window.cancelAnimationFrame=function(e){clearTimeout(e)})}(),function(s){var n=function(o,e,t){var i=this;n.prototype;this.video_el=null,this.sourcePath_str=null,this.backgroundColor_str=e,this.controllerHeight=o.data.controllerHeight,this.stageWidth=0,this.stageHeight=0,this.lastPercentPlayed=0,this.volume=t,this.curDuration=0,this.countNormalMp3Errors=0,this.countShoutCastErrors=0,this.maxShoutCastCountErrors=5,this.maxNormalCountErrors=1,this.disableClickForAWhileId_to,this.greenScreenTolerance=o.data.greenScreenTolerance,this.disableClick_bl=!1,this.allowScrubing_bl=!1,this.hasError_bl=!0,this.isPlaying_bl=!1,this.isStopped_bl=!0,this.hasPlayedOnce_bl=!1,this.isStartEventDispatched_bl=!1,this.isSafeToBeControlled_bl=!1,this.hastStaredToPlayHLS_bl=!1,this.isMobile_bl=FWDEVPUtils.isMobile,this.init=function(){i.setupVideo(),i.setBkColor(i.backgroundColor_str)},this.setupVideo=function(){null==i.video_el&&(i.video_el=document.createElement("video"),i.screen.appendChild(i.video_el),i.video_el.controls=!1,i.video_el.volume=i.volume,o.displayType==FWDEVPlayer.BACKGROUND_VIDEO&&(i.video_el.muted=!0),o.data.playsinline||(i.video_el.WebKitPlaysInline=!0,i.video_el.playsinline=!0,i.video_el.setAttribute("playsinline",""),i.video_el.setAttribute("webkit-playsinline","")),i.video_el.style.position="relative",i.video_el.style.left="0px",i.video_el.style.top="0px",i.video_el.style.width="100%",i.video_el.style.height="100%",i.video_el.style.margin="0px",i.video_el.style.padding="0px",i.video_el.style.maxWidth="none",i.video_el.style.maxHeight="none",i.video_el.style.border="none",i.video_el.style.lineHeight="0",i.video_el.style.msTouchAction="none",o.isAdd_bl?i.setPlaybackRate(1):i.setPlaybackRate(o.data.defaultPlaybackRate_ar[o.data.startAtPlaybackIndex]),i.screen.appendChild(i.video_el)),i.video_el.addEventListener("error",i.errorHandler),i.video_el.addEventListener("canplay",i.safeToBeControlled),i.video_el.addEventListener("canplaythrough",i.safeToBeControlled),i.video_el.addEventListener("progress",i.updateProgress),i.video_el.addEventListener("timeupdate",i.updateVideo),i.video_el.addEventListener("pause",i.pauseHandler),i.video_el.addEventListener("play",i.playHandler),FWDEVPUtils.isIE||i.video_el.addEventListener("waiting",i.startToBuffer),i.video_el.addEventListener("playing",i.stopToBuffer),i.video_el.addEventListener("ended",i.endedHandler)},this.destroyVideo=function(){i.video_el&&(i.video_el.removeEventListener("error",i.errorHandler),i.video_el.removeEventListener("canplay",i.safeToBeControlled),i.video_el.removeEventListener("canplaythrough",i.safeToBeControlled),i.video_el.removeEventListener("progress",i.updateProgress),i.video_el.removeEventListener("timeupdate",i.updateVideo),i.stopToUpdateSubtitles(),i.video_el.removeEventListener("pause",i.pauseHandler),i.video_el.removeEventListener("play",i.playHandler),FWDEVPUtils.isIE||i.video_el.removeEventListener("waiting",i.startToBuffer),i.video_el.removeEventListener("playing",i.stopToBuffer),i.video_el.removeEventListener("ended",i.endedHandler),i.isMobile_bl?(i.screen.removeChild(i.video_el),i.video_el=null):(i.video_el.style.visibility="hidden",i.video_el.src="",i.video_el.load()))},this.startToBuffer=function(e){i.dispatchEvent(n.START_TO_BUFFER)},this.stopToBuffer=function(){i.dispatchEvent(n.STOP_TO_BUFFER)},this.errorHandler=function(e){var t;o.videoType_str==FWDEVPlayer.VIDEO&&(i.hasError_bl=!0,t=0==i.video_el.networkState?"error 'self.video_el.networkState=0'":1==i.video_el.networkState?"error 'self.video_el.networkState=1'":2==i.video_el.networkState?"'self.video_el.networkState=2'":3==i.video_el.networkState?"source not found":e,s.console&&s.console.log(i.video_el.networkState),i.dispatchEvent(n.ERROR,{text:t}))},this.resizeAndPosition=function(e,t){e&&(i.stageWidth=e,i.stageHeight=t),i.setWidth(i.stageWidth),i.setHeight(i.stageHeight),o.is360&&i.renderer&&(i.camera.aspect=i.stageWidth/i.stageHeight,i.camera.updateProjectionMatrix(),i.renderer.setSize(i.stageWidth,i.stageHeight)),i.resizeGR()},this.setSource=function(e){i.stopToUpdateSubtitles(),(o.is360||o.isGR&&i.video_el)&&(i.video_el.style.visibility="hidden"),i.sourcePath_str=e,i.video_el&&i.stop(),i.video_el&&FWDEVPUtils.isIphone&&(i.video_el.src=e)},this.play=function(e,t){if(FWDEVPlayer.curInstance=o,i.isStopped_bl&&o.videoType_str!=FWDEVPlayer.HLS_JS||t)i.initVideo(),i.play(),i.isPlaying_bl=!0,i.hastStaredToPlayHLS_bl=!0,i.startToBuffer(!0);else if(!i.video_el.ended||e)try{i.hasError_bl=!1,i.isStopped_bl=!1,i.isPlaying_bl=!0,i.hasPlayedOnce_bl=!0,i.hastStaredToPlayHLS_bl=!0,i.video_el.play(),i.safeToBeControlled(),FWDEVPUtils.isIE&&i.dispatchEvent(n.PLAY)}catch(e){}o.is360?i.add360Vid():o.isGR&&i.addGreenScreen()},this.initVideo=function(){i.isPlaying_bl=!1,i.hasError_bl=!1,i.allowScrubing_bl=!1,i.isStopped_bl=!1,i.setupVideo(),i.setVolume(),i.video_el.src=i.sourcePath_str},this.pause=function(){if(null!=i&&!i.isStopped_bl&&!i.hasError_bl&&!i.video_el.ended)try{i.video_el.pause(),i.isPlaying_bl=!1,FWDEVPUtils.isIE&&i.dispatchEvent(n.PAUSE)}catch(e){}},this.togglePlayPause=function(){null!=i&&i.isSafeToBeControlled_bl&&(i.isPlaying_bl?i.pause():i.play())},this.pauseHandler=function(){i.allowScrubing_bl||(i.stopGRRender(),i.dispatchEvent(n.PAUSE))},this.playHandler=function(){i.allowScrubing_bl||(i.startToUpdateSubtitles(),i.isStartEventDispatched_bl||(i.dispatchEvent(n.START),i.isStartEventDispatched_bl=!0),o.is360?i.start360Render():o.isGR&&i.startGRRender(),i.dispatchEvent(n.PLAY))},this.endedHandler=function(){i.stopToUpdateSubtitles(),i.dispatchEvent(n.PLAY_COMPLETE)},this.resume=function(){i.isStopped_bl||i.play()},this.stop=function(e){(null!=i&&null!=i.video_el&&!i.isStopped_bl||e)&&(i.isPlaying_bl=!1,i.isStopped_bl=!0,i.hastStaredToPlayHLS_bl=!1,i.hasPlayedOnce_bl=!0,i.isSafeToBeControlled_bl=!1,i.isStartEventDispatched_bl=!1,i.stopToUpdateSubtitles(),i.stop360Render(),i.stopGRRender(),i.contextGR2&&(i.contextGR2.save(),i.contextGR2.globalCompositeOperation="copy",i.contextGR2.fillStyle="rgba(0,0,0,0)",i.contextGR2.fill(),i.contextGR2.restore()),i.contains(i.canvasGR2)&&i.removeChild(i.canvasGR2),i.destroyVideo(),i.dispatchEvent(n.LOAD_PROGRESS,{percent:0}),i.dispatchEvent(n.UPDATE_TIME,{curTime:"00:00",totalTime:"00:00"}),i.dispatchEvent(n.STOP),i.stopToBuffer())},this.safeToBeControlled=function(){(o.videoType_str!=FWDEVPlayer.HLS_JS||i.hastStaredToPlayHLS_bl)&&(i.isSafeToBeControlled_bl||(o.resizeHandler(),i.stopToScrub(),i.hasHours_bl=0<Math.floor(i.video_el.duration/3600),i.isPlaying_bl=!0,i.isSafeToBeControlled_bl=!0,o.is360||o.isGR||(i.video_el.style.visibility="visible"),i.dispatchEvent(n.SAFE_TO_SCRUBB)))},this.updateProgress=function(){if(o.videoType_str!=FWDEVPlayer.HLS_JS||i.hastStaredToPlayHLS_bl){var e=0;0<i.video_el.buffered.length&&(e=i.video_el.buffered.end(i.video_el.buffered.length-1).toFixed(1)/i.video_el.duration.toFixed(1),!isNaN(e)&&e||(e=0)),1==e&&i.video_el.removeEventListener("progress",i.updateProgress),i.dispatchEvent(n.LOAD_PROGRESS,{percent:e})}},this.updateVideo=function(){var e;i.allowScrubing_bl||(e=i.video_el.currentTime/i.video_el.duration,i.dispatchEvent(n.UPDATE,{percent:e}));var t=n.formatTime(i.video_el.duration),o=n.formatTime(i.video_el.currentTime);isNaN(i.video_el.duration)?i.dispatchEvent(n.UPDATE_TIME,{curTime:"00:00",totalTime:"00:00",seconds:0}):i.dispatchEvent(n.UPDATE_TIME,{curTime:o,totalTime:t,seconds:parseInt(i.video_el.currentTime),totalTimeInSeconds:i.video_el.duration}),i.lastPercentPlayed=e,i.curDuration=o},this.startToScrub=function(){i.allowScrubing_bl=!0},this.stopToScrub=function(){i.allowScrubing_bl=!1},this.scrubbAtTime=function(e){i.video_el.currentTime=e;var t=n.formatTime(i.video_el.duration),o=n.formatTime(i.video_el.currentTime);i.dispatchEvent(n.UPDATE_TIME,{curTime:o,totalTime:t})},this.scrub=function(e,t){t&&i.startToScrub();try{i.video_el.currentTime=i.video_el.duration*e;var o=n.formatTime(i.video_el.duration),s=n.formatTime(i.video_el.currentTime);i.dispatchEvent(n.UPDATE_TIME,{curTime:s,totalTime:o})}catch(t){}},this.replay=function(){i.scrub(0),i.play()},this.setPlaybackRate=function(e){i.video_el&&(i.video_el.defaultPlaybackRate=e,i.video_el.playbackRate=e)},this.setVolume=function(e){null!=e&&(i.volume=e),i.video_el&&(i.video_el.volume=i.volume)},this.stopToUpdateSubtitles=function(){clearInterval(i.startToUpdateSubtitleId_int)},this.startToUpdateSubtitles=function(){clearInterval(i.startToUpdateSubtitleId_int),i.startToUpdateSubtitleId_int=setInterval(i.updateSubtitleHandler,10)},this.updateSubtitleHandler=function(){i.dispatchEvent(n.UPDATE_SUBTITLE,{curTime:i.video_el.currentTime})},this.addGreenScreen=function(){i.canvasGR2||(i.canvasGR1=new FWDEVPDisplayObject("canvas"),i.contextGR1=i.canvasGR1.screen.getContext("2d"),i.canvasGR2=new FWDEVPDisplayObject("canvas"),i.contextGR2=i.canvasGR2.screen.getContext("2d")),i.video_el.style.visibility="hidden",i.renderFR()},this.startGRRender=function(){i.isGRRendering_bl=!0,FWDEVPUtils.isLocal||(i.contains(i.canvasGR2)||i.addChild(i.canvasGR2),cancelAnimationFrame(i.requestId),i.requestId=requestAnimationFrame(i.renderFR))},this.stopGRRender=function(){i.isGRRendering_bl=!1,cancelAnimationFrame(i.requestId)},this.renderFR=function(){if(!FWDEVPUtils.isLocal){if(i.isGRRendering_bl&&cancelAnimationFrame(i.requestId),i.contextGR1){0!=i.video_el.videoWidth&&i.prevCurCavasGRWidth!=i.video_el.videoWidth&&(i.canvasGR1.screen.width=i.video_el.videoWidth,i.canvasGR1.screen.height=i.video_el.videoHeight,i.canvasGR2.screen.width=i.video_el.videoWidth,i.canvasGR2.screen.height=i.video_el.videoHeight),i.prevCurCavasGRWidth=i.video_el.videoWidth,i.contextGR1.drawImage(i.video_el,0,0,i.canvasGR1.screen.width,i.canvasGR1.screen.height);for(var e=i.contextGR1.getImageData(0,0,i.canvasGR1.screen.width,i.canvasGR1.screen.height),t=e.data,o=0,s=t.length;o<s;o+=4){Math.abs(t[o]-t[0])+Math.abs(t[o+1]-t[1])+Math.abs(t[o+2]-t[2])<i.greenScreenTolerance&&(t[o+3]=0)}i.contextGR2.putImageData(e,0,0)}i.resizeGR(),i.requestId=requestAnimationFrame(i.renderFR)}},this.resizeGR=function(){o.isGR&&i.canvasGR2&&(i.canvasGR2.setWidth(i.stageWidth),i.canvasGR2.setX(Math.round((o.stageWidth-i.stageWidth)/2)),i.canvasGR2.setY(Math.round((o.stageHeight-i.canvasGR2.getHeight())/2)))},this.add360Vid=function(){i.renderer?i.screen.appendChild(i.renderer.domElement):(i.renderer=new THREE.WebGLRenderer({antialias:!0}),i.renderer.setSize(i.stageWidth,i.stageHeight),i.renderer.domElement.style.position="absolute",i.renderer.domElement.style.left="0px",i.renderer.domElement.style.top="0px",i.renderer.domElement.style.margin="0px",i.renderer.domElement.style.padding="0px",i.renderer.domElement.style.maxWidth="none",i.renderer.domElement.style.maxHeight="none",i.renderer.domElement.style.border="none",i.renderer.domElement.style.lineHeight="1",i.renderer.domElement.style.backgroundColor="transparent",i.renderer.domElement.style.backfaceVisibility="hidden",i.renderer.domElement.style.webkitBackfaceVisibility="hidden",i.renderer.domElement.style.MozBackfaceVisibility="hidden",i.renderer.domElement.style.MozImageRendering="optimizeSpeed",i.renderer.domElement.style.WebkitImageRendering="optimizeSpeed",i.screen.appendChild(i.renderer.domElement),i.scene=new THREE.Scene,i.video_el.setAttribute("crossorigin","anonymous"),i.canvas=document.createElement("canvas"),i.context=i.canvas.getContext("2d"),FWDEVPUtils.isFirefox?i.videoTexture=new THREE.Texture(i.video_el):i.videoTexture=new THREE.Texture(i.canvas),i.videoTexture.minFilter=THREE.LinearFilter,i.videoTexture.magFilter=THREE.LinearFilter,i.videoTexture.format=THREE.RGBFormat,i.cubeGeometry=new THREE.SphereGeometry(500,60,40),i.sphereMat=new THREE.MeshBasicMaterial({map:i.videoTexture}),i.sphereMat.side=THREE.BackSide,i.cube=new THREE.Mesh(i.cubeGeometry,i.sphereMat),i.scene.add(i.cube),i.camera=new THREE.PerspectiveCamera(45,i.stageWidth/i.stageHeight,.1,1e4),i.camera.position.y=0,i.camera.position.z=500,i.camera.position.x=0,i.scene.add(i.camera),i.controls=new THREE.OrbitControls(i.camera,o.dumyClick_do.screen),i.controls.enableDamping=!0,i.controls.enableZoom=!1,i.controls.dampingFactor=.25,i.controls.maxDistance=500,i.controls.minDistance=500,i.controls.rotateLeft(90*Math.PI/180),i.controls.enabled=!0,i.render())},this.start360Render=function(){i.is360Rendering_bl=!0,cancelAnimationFrame(i.requestId),i.requestId=requestAnimationFrame(i.render)},this.stop360Render=function(){if(i.is360Rendering_bl=!1,i.camera){i.camera.position.y=0,i.camera.position.z=500,i.camera.position.x=0,cancelAnimationFrame(i.requestId);try{i.screen.removeChild(i.renderer.domElement)}catch(e){}}},this.render=function(){i.camera&&(i.is360Rendering_bl&&cancelAnimationFrame(i.requestId),i.video_el.readyState===i.video_el.HAVE_ENOUGH_DATA&&(i.videoTexture.needsUpdate=!0),!FWDEVPUtils.isFirefox&&i.context&&(0!=i.video_el.videoWidth&&(i.canvas.width=i.video_el.videoWidth,i.canvas.height=i.video_el.videoHeight),i.context.save(),i.context.scale(-1,1),i.context.drawImage(i.video_el,0,0,-1*i.canvas.width,i.canvas.height),i.context.restore()),i.controls.update(),i.renderer.render(i.scene,i.camera),i.requestId=requestAnimationFrame(i.render))},n.formatTime=function(e){var t=Math.floor(e/3600),o=e%3600,s=Math.floor(o/60),i=o%60,n=Math.ceil(i);return s=10<=s?s:"0"+s,n=10<=n?n:"0"+n,isNaN(n)?"00:00":0<t?"0"+t+":"+s+":"+n:s+":"+n},this.init()};n.setPrototype=function(){n.prototype=new FWDEVPDisplayObject("div")},n.UPDATE_SUBTITLE="updateSubtitle",n.ERROR="error",n.UPDATE="update",n.UPDATE_TIME="updateTime",n.SAFE_TO_SCRUBB="safeToControll",n.LOAD_PROGRESS="loadProgress",n.START="start",n.PLAY="play",n.PAUSE="pause",n.STOP="stop",n.PLAY_COMPLETE="playCompvare",n.START_TO_BUFFER="startToBuffer",n.STOP_TO_BUFFER="stopToBuffer",s.FWDEVPVideoScreen=n}(window),function(e){var i=function(o,e){var s=this;i.prototype;this.iframe_do=null,this.vimeoPlayer=null,this.lastQuality_str="auto",this.volume=e,this.updateVideoId_int,this.updatePreloadId_int,this.controllerHeight=o.data.controllerHeight,this.hasBeenCreatedOnce_bl=!0,this.hasHours_bl=!1,this.allowScrubing_bl=!1,this.hasError_bl=!1,this.isPlaying_bl=!1,this.isStopped_bl=!0,this.isStartEventDispatched_bl=!1,this.isSafeToBeControlled_bl=!1,this.isPausedInEvent_bl=!0,this.isShowed_bl=!0,this.isCued_bl=!1,this.isVideoLoaded_bl=!1,this.isReady_bl=!1,this.isMobile_bl=FWDEVPUtils.isMobile,this.init=function(){s.hasTransform3d_bl=!1,s.hasTransform2d_bl=!1,s.setBackfaceVisibility(),o.main_do.addChildAt(s,1),s.resizeAndPosition(),s.setupVideo(),s.setupDisableClick(),s.setBkColor("#000000")},this.setupDisableClick=function(){s.disableClick_do=new FWDEVPDisplayObject("div"),s.disableClick_do.setBkColor(o.backgroundColor_str),s.disableClick_do.setAlpha(1e-8),s.addChild(s.disableClick_do)},this.showDisable=function(){o.tempVidStageWidth&&s.disableClick_do.w!=s.stageWidth&&(s.disableClick_do.setWidth(o.tempVidStageWidth),FWDEVPUtils.isIphone?s.disableClick_do.setHeight(o.tempVidStageHeight-s.controllerHeight):s.disableClick_do.setHeight(o.tempVidStageHeight))},this.hideDisable=function(){0!=s.disableClick_do.w&&(s.disableClick_do.setWidth(0),s.disableClick_do.setHeight(0))},this.setupVideo=function(){s.vimeoPlayer||(s.iframe_do=new FWDEVPDisplayObject("iframe"),s.iframe_do.hasTransform3d_bl=!1,s.iframe_do.hasTransform2d_bl=!1,s.iframe_do.screen.setAttribute("id",o.instanceName_str+"vimeo"),s.isMobile_bl&&(s.iframe_do.screen.setAttribute("webkitallowfullscreen","1"),s.iframe_do.screen.setAttribute("mozallowfullscreen","1"),s.iframe_do.screen.setAttribute("allowfullscreen","1")),s.iframe_do.screen.setAttribute("src","https://player.vimeo.com/video/76979871?player_id="+o.instanceName_str+"vimeo&autoplay=0"),s.iframe_do.getStyle().width="100%",s.iframe_do.getStyle().height="100%",s.iframe_do.setBackfaceVisibility(),s.addChild(s.iframe_do),s.vimeoPlayer=new Vimeo.Player(s.iframe_do.screen),s.vimeoPlayer.on("play",function(e){s.playHandler()}),s.vimeoPlayer.on("pause",function(e){s.pauseHandler()}),s.vimeoPlayer.on("loadProgress",function(e){s.loadProgressHandler()}),s.vimeoPlayer.on("ended",function(e){s.finishHandler()}),s.vimeoPlayer.on("loaded",function(e){s.loadedHandler()}),s.vimeoPlayer.ready().then(function(){s.readyHandler()}),s.blackOverlay_do=new FWDEVPDisplayObject("div"),s.blackOverlay_do.getStyle().backgroundColor="#000000",s.blackOverlay_do.getStyle().width="100%",s.blackOverlay_do.getStyle().height="100%",s.addChild(s.blackOverlay_do))},this.resizeAndPosition=function(){o.tempVidStageWidth&&(s.setWidth(o.tempVidStageWidth),s.setHeight(o.tempVidStageHeight))},this.setSource=function(e){e&&(s.sourcePath_str=e),s.stopToUpdateSubtitles(),s.stop();var t=s.sourcePath_str.match(/[^\/]+$/i);s.vimeoPlayer.loadVideo(t).then(function(e){(!o.isMobile_bl&&(o.data.autoPlay_bl||o.isThumbClick_bl)||o.isAdd_bl||o.wasAdd_bl)&&o.play(),s.setVolume(o.volume)}).catch(function(e){console&&console.log(e),s.displayErrorId_to=setTimeout(function(){s.dispatchEvent(i.ERROR,{error:e.name})},2e3),console&&console.log(e)})},this.readyHandler=function(){if(clearTimeout(s.intitErrorId_to),s.contains(s.blackOverlay_do)&&(clearTimeout(s.removeChildWithDelayId_to),s.removeChildWithDelayId_to=setTimeout(function(){s.removeChild(s.blackOverlay_do)},1500)),s.resizeAndPosition(),s.isReady_bl){try{s.vimeoPlayer.api("setColor","#FFFFFF")}catch(e){}return o.videoType_str==FWDEVPlayer.VIMEO&&s.setX(0),void(o.data.autoPlay_bl&&o.play())}s.isReady_bl=!0,s.dispatchEvent(i.READY)},this.loadedHandler=function(){s.isVideoLoaded_bl=!0},this.playHandler=function(){clearInterval(s.startToPlayWithDelayId_to),clearTimeout(s.displayErrorId_to),s.isStopped_bl=!1,s.isSafeToBeControlled_bl=!0,s.isPlaying_bl=!0,s.startToUpdateSubtitles(),s.startToUpdate(),s.dispatchEvent(i.SAFE_TO_SCRUBB),s.dispatchEvent(i.PLAY),s.hasHours_bl=0<Math.floor(s.getDuration()/3600)},this.loadProgressHandler=function(e){s.isShowed_bl||s.dispatchEvent(i.LOAD_PROGRESS,{percent:e.percent})},this.pauseHandler=function(){s.isPlaying_bl&&(s.isPlaying_bl=!1,clearInterval(s.startToPlayWithDelayId_to),s.dispatchEvent(i.PAUSE),s.stopToUpdate())},this.finishHandler=function(){o.data.loop_bl&&(s.stop(),setTimeout(s.play,200)),s.dispatchEvent(i.PLAY_COMPLETE)},this.play=function(e){FWDEVPlayer.curInstance=o;s.hasError_bl=!1,o.prevVideoType_str,FWDEVPlayer.VIMEO,s.vimeoPlayer.play(),s.isMobile_bl||(s.isStopped_bl=!1)},this.pause=function(){s.isStopped_bl||s.hasError_bl||(clearInterval(s.startToPlayWithDelayId_to),s.vimeoPlayer.pause(),s.stopToUpdate())},this.togglePlayPause=function(){s.isPlaying_bl?s.pause():s.play()},this.resume=function(){s.isStopped_bl||s.play()},this.startToUpdate=function(){clearInterval(s.updateVideoId_int),s.updateVideoId_int=setInterval(s.updateVideo,500)},this.stopToUpdate=function(){clearInterval(s.updateVideoId_int)},this.updateVideo=function(){var e;if(s.vimeoPlayer){var t=s.formatTime(s.getDuration()),o=s.formatTime(s.getCurrentTime());e=s.getCurrentTime()/s.getDuration(),isNaN(e)&&(e=0),s.dispatchEvent(FWDEVPYoutubeScreen.UPDATE,{percent:e}),s.dispatchEvent(i.UPDATE_TIME,{curTime:o,totalTime:t,seconds:parseInt(s.getCurrentTime()),totalTimeInSeconds:s.getCurrentTime()})}else stopToUpdate()},this.stop=function(e){s.isVideoLoaded_bl=!1,s.isStopped_bl||(clearInterval(s.startToPlayWithDelayId_to),clearTimeout(s.displayErrorId_to),s.stopVideo(),s.stopToUpdateSubtitles(),s.isPlaying_bl=!1,s.isStopped_bl=!0,s.isCued_bl=!1,s.allowScrubing_bl=!1,s.isSafeToBeControlled_bl=!1,s.isPausedInEvent_bl=!0,s.stopToUpdate(),e||(s.stopVideo(),s.dispatchEvent(i.STOP)))},this.destroy=function(){s.iframe_do&&(s.iframe_do.screen.removeAttribute("id",o.instanceName_str+"vimeo"),s.removeChild(s.iframe_do),s.iframe_do.destroy(),s.iframe_do=null),s.vimeoPlayer=null},this.stopVideo=function(){s.vimeoPlayer.unload().then(function(){}).catch(function(e){})},this.startToScrub=function(){s.isSafeToBeControlled_bl&&(s.allowScrubing_bl=!0)},this.stopToScrub=function(){s.isSafeToBeControlled_bl&&(s.allowScrubing_bl=!1)},this.scrubbAtTime=function(e){s.vimeoPlayer.setCurrentTime(e).then(function(e){})},this.scrub=function(e){s.isSafeToBeControlled_bl&&s.vimeoPlayer.setCurrentTime(e*s.getDuration()).then(function(e){})},this.setVolume=function(e){null!=e&&(s.volume=e),s.vimeoPlayer&&s.vimeoPlayer.setVolume(e)},this.getDuration=function(){if(s.isSafeToBeControlled_bl)return s.vimeoPlayer.getDuration().then(function(e){s.duration=Math.round(e)}),s.duration},this.getCurrentTime=function(){if(s.isSafeToBeControlled_bl)return s.vimeoPlayer.getCurrentTime().then(function(e){s.currentTime=Math.round(e)}),s.currentTime},this.formatTime=function(e){var t=Math.floor(e/3600),o=e%3600,s=Math.floor(o/60),i=o%60,n=Math.ceil(i);return s=10<=s?s:"0"+s,n=10<=n?n:"0"+n,isNaN(n)?"00:00":t?10<=t?t+":"+s+":"+n:"0"+t+":"+s+":"+n:s+":"+n},this.stopToUpdateSubtitles=function(){clearInterval(s.startToUpdateSubtitleId_int)},this.startToUpdateSubtitles=function(){clearInterval(s.startToUpdateSubtitleId_int),s.startToUpdateSubtitleId_int=setInterval(s.updateSubtitleHandler,10)},this.updateSubtitleHandler=function(){s.getCurrentTime()&&s.dispatchEvent(i.UPDATE_SUBTITLE,{curTime:s.getCurrentTime()})},this.init()};i.setPrototype=function(){i.prototype=new FWDEVPDisplayObject("div")},i.UPDATE_SUBTITLE="updateSubtitle",i.SAFE_TO_SCRUBB="safeToScrub",i.READY="ready",i.ERROR="initError",i.UPDATE="update",i.UPDATE_TIME="updateTime",i.LOAD_PROGRESS="loadProgress",i.PLAY="play",i.PAUSE="pause",i.STOP="stop",i.PLAY_COMPLETE="playComplete",i.CUED="cued",i.QUALITY_CHANGE="qualityChange",e.FWDEVPVimeoScreen=i}(window),function(e){var _=function(e,t,o,s,i,n,l,r,a,d){var u=this,h=_.prototype;this.iconCSSString1=l,this.iconCSSString2=r,this.nImg=e,this.sPath_str=t,this.dPath_str=o,this.n_sdo,this.s_sdo,this.d_sdo,this.toolTipLabel_str,this.nImg&&(this.totalWidth=this.nImg.width,this.totalHeight=this.nImg.height),this.normalCalssName=a,this.selectedCalssName=d,this.useHEXColorsForSkin_bl=s,this.normalButtonsColor_str=i,this.selectedButtonsColor_str=n,this.isSetToDisabledState_bl=!1,this.isDisabled_bl=!1,this.isSelectedFinal_bl=!1,this.isActive_bl=!1,this.isMobile_bl=FWDEVPUtils.isMobile,this.hasPointerEvent_bl=FWDEVPUtils.hasPointerEvent,this.allowToCreateSecondButton_bl=!0,this.useFontAwesome_bl=Boolean(this.iconCSSString1),u.init=function(){u.setupMainContainers(),u.setNormalState(!1)},u.setupMainContainers=function(){if(u.useFontAwesome_bl)u.n_sdo=new FWDEVPTransformDisplayObject("div"),u.n_sdo.setInnerHTML(u.iconCSSString1),u.addChild(u.n_sdo),u.d_sdo=new FWDEVPTransformDisplayObject("div"),u.d_sdo.setInnerHTML(u.iconCSSString2),u.addChild(u.d_sdo),u.setFinalSize();else if(u.useHEXColorsForSkin_bl?(u.n_sdo=new FWDEVPTransformDisplayObject("div"),u.n_sdo.setWidth(u.totalWidth),u.n_sdo.setHeight(u.totalHeight),u.n_sdo_canvas=FWDEVPUtils.getCanvasWithModifiedColor(u.nImg,u.normalButtonsColor_str).canvas,u.n_sdo.screen.appendChild(u.n_sdo_canvas)):(u.n_sdo=new FWDEVPTransformDisplayObject("img"),u.n_sdo.setScreen(u.nImg)),u.addChild(u.n_sdo),u.allowToCreateSecondButton_bl){u.img1=new Image,u.img1.src=u.sPath_str;var e=new Image;u.sImg=e,u.useHEXColorsForSkin_bl?(u.s_sdo=new FWDEVPTransformDisplayObject("div"),u.s_sdo.setWidth(u.totalWidth),u.s_sdo.setHeight(u.totalHeight),u.img1.onload=function(){u.s_sdo_canvas=FWDEVPUtils.getCanvasWithModifiedColor(u.img1,u.selectedButtonsColor_str).canvas,u.s_sdo.screen.appendChild(u.s_sdo_canvas)}):(u.s_sdo=new FWDEVPDisplayObject("img"),u.s_sdo.setScreen(u.img1),u.s_sdo.setWidth(u.totalWidth),u.s_sdo.setHeight(u.totalHeight)),u.s_sdo.setAlpha(0),u.addChild(u.s_sdo),u.dPath_str&&(e.src=u.dPath_str,u.d_sdo=new FWDEVPDisplayObject("img"),u.d_sdo.setScreen(e),u.d_sdo.setWidth(u.totalWidth),u.d_sdo.setHeight(u.totalHeight),u.d_sdo.setX(-100),u.addChild(u.d_sdo))}u.setWidth(u.totalWidth),u.setHeight(u.totalHeight),u.setButtonMode(!0),u.hasPointerEvent_bl?(u.screen.addEventListener("pointerup",u.onMouseUp),u.screen.addEventListener("pointerover",u.onMouseOver),u.screen.addEventListener("pointerout",u.onMouseOut)):u.screen.addEventListener&&(u.screen.addEventListener("mouseover",u.onMouseOver),u.screen.addEventListener("mouseout",u.onMouseOut),u.screen.addEventListener("mouseup",u.onMouseUp),u.screen.addEventListener("touchend",u.onMouseUp))},this.setFinalSize=function(){u.setWidth(u.n_sdo.getWidth()),u.setHeight(u.n_sdo.getHeight()),0==u.w&&setTimeout(function(){u.setFinalSize()},200)},this.setNormalState=function(e){u.useFontAwesome_bl?(FWDAnimation.killTweensOf(u.n_sdo.screen),FWDAnimation.killTweensOf(u.d_sdo.screen),e?(FWDAnimation.to(u.n_sdo.screen,.8,{className:u.normalCalssName,ease:Expo.easeOut}),FWDAnimation.to(u.d_sdo.screen,.8,{className:u.normalCalssName,ease:Expo.easeOut})):(u.n_sdo.screen.className=u.normalCalssName,u.d_sdo.screen.className=u.normalCalssName)):(FWDAnimation.killTweensOf(u.s_sdo),FWDAnimation.to(u.s_sdo,.5,{alpha:0,ease:Expo.easeOut}))},this.setSelectedState=function(e){u.useFontAwesome_bl?(FWDAnimation.killTweensOf(u.n_sdo.screen),FWDAnimation.killTweensOf(u.d_sdo.screen),e?(FWDAnimation.to(u.n_sdo.screen,.8,{className:u.selectedCalssName,ease:Expo.easeOut}),FWDAnimation.to(u.d_sdo.screen,.8,{className:u.selectedCalssName,ease:Expo.easeOut})):(u.n_sdo.screen.className=u.selectedCalssName,u.d_sdo.screen.className=u.selectedCalssName)):(FWDAnimation.killTweensOf(u.s_sdo),FWDAnimation.to(u.s_sdo,.5,{alpha:1,delay:.1,ease:Expo.easeOut}))},u.onMouseOver=function(e){if(!e.pointerType||e.pointerType==e.MSPOINTER_TYPE_MOUSE){if(u.isDisabled_bl||u.isSelectedFinal_bl)return;u.dispatchEvent(_.MOUSE_OVER,{e:e}),u.setSelectedState(!0)}},u.onMouseOut=function(e){if(!e.pointerType||e.pointerType==e.MSPOINTER_TYPE_MOUSE){if(u.isDisabled_bl||u.isSelectedFinal_bl)return;u.dispatchEvent(_.MOUSE_OUT,{e:e}),u.setNormalState(!0)}},u.onMouseUp=function(e){e.preventDefault&&e.preventDefault(),u.isDisabled_bl||2==e.button||u.isSelectedFinal_bl||u.dispatchEvent(_.MOUSE_UP,{e:e})},u.setSelctedFinal=function(){u.isSelectedFinal_bl=!0,FWDAnimation.killTweensOf(u.s_sdo),FWDAnimation.to(u.s_sdo,.8,{alpha:1,ease:Expo.easeOut}),u.setButtonMode(!1)},u.setUnselctedFinal=function(){u.isSelectedFinal_bl=!1,FWDAnimation.to(u.s_sdo,.8,{alpha:0,delay:.1,ease:Expo.easeOut}),u.setButtonMode(!0)},this.setDisabledState=function(){u.isSetToDisabledState_bl||(u.isSetToDisabledState_bl=!0,u.useFontAwesome_bl?u.n_sdo.setX(-1e4):(u.d_sdo.setX(0),FWDAnimation.killTweensOf(u.d_sdo),FWDAnimation.to(u.d_sdo,.8,{alpha:1,ease:Expo.easeOut})))},this.setEnabledState=function(){u.isSetToDisabledState_bl&&(u.isSetToDisabledState_bl=!1,u.useFontAwesome_bl?u.n_sdo.setX(0):(u.d_sdo.setX(-100),FWDAnimation.killTweensOf(u.d_sdo),FWDAnimation.to(u.d_sdo,.8,{alpha:0,delay:.1,ease:Expo.easeOut})))},this.disable=function(){u.isDisabled_bl=!0,u.setButtonMode(!1)},this.enable=function(){u.isDisabled_bl=!1,u.setButtonMode(!0)},u.updateHEXColors=function(e,t){FWDEVPUtils.changeCanvasHEXColor(u.nImg,u.n_sdo_canvas,e),FWDEVPUtils.changeCanvasHEXColor(u.img1,u.s_sdo_canvas,t)},u.destroy=function(){u.isMobile_bl?u.hasPointerEvent_bl?(u.screen.removeEventListener("pointerdown",u.onMouseUp),u.screen.removeEventListener("pointerover",u.onMouseOver),u.screen.removeEventListener("pointerout",u.onMouseOut)):u.screen.removeEventListener("touchend",u.onMouseUp):u.screen.removeEventListener?(u.screen.removeEventListener("mouseover",u.onMouseOver),u.screen.removeEventListener("mouseout",u.onMouseOut),u.screen.removeEventListener("mousedown",u.onMouseUp)):u.screen.detachEvent&&(u.screen.detachEvent("onmouseover",u.onMouseOver),u.screen.detachEvent("onmouseout",u.onMouseOut),u.screen.detachEvent("onmousedown",u.onMouseUp)),FWDAnimation.killTweensOf(u.s_sdo),u.n_sdo.destroy(),u.s_sdo.destroy(),u.d_sdo&&(FWDAnimation.killTweensOf(u.d_sdo),u.d_sdo.destroy()),u.nImg=null,u.sImg=null,u.dImg=null,u.n_sdo=null,u.s_sdo=null,u.d_sdo=null,sImg=e=null,dImg=null,u.toolTipLabel_str=null,u.init=null,u.setupMainContainers=null,u.onMouseOver=null,u.onMouseOut=null,u.onClick=null,u.onMouseDown=null,u.setSelctedFinal=null,u.setUnselctedFinal=null,u.setInnerHTML(""),h.destroy(),h=u=null,_.prototype=null},u.init()};_.setPrototype=function(){_.prototype=null,_.prototype=new FWDEVPDisplayObject("div")},_.CLICK="onClick",_.MOUSE_OVER="onMouseOver",_.MOUSE_OUT="onMouseOut",_.MOUSE_UP="onMouseDown",_.prototype=null,e.FWDEVPVolumeButton=_}(window),function(e){var s=function(t,e){var l=this;s.prototype;this.main_do=null,this.ytb=null,this.lastQuality_str="auto",this.volume=e,this.updateVideoId_int,this.updatePreloadId_int,this.controllerHeight=t.data.controllerHeight,this.hasHours_bl=!1,this.hasBeenCreatedOnce_bl=!1,this.allowScrubing_bl=!1,this.hasError_bl=!1,this.isPlaying_bl=!1,this.isStopped_bl=!0,this.isStartEventDispatched_bl=!1,this.isSafeToBeControlled_bl=!1,this.isPausedInEvent_bl=!0,this.isShowed_bl=!0,this.isCued_bl=!1,this.playsinline=t.data.playsinline?1:0,this.isQualityArrayDisapatched_bl=!1,this.isMobile_bl=FWDEVPUtils.isMobile,this.init=function(){l.hasTransform3d_bl=!1,l.hasTransform2d_bl=!1,l.setBackfaceVisibility(),t.main_do.addChildAt(l,0),l.resizeAndPosition(),l.setupVideo(),l.setupDisableClick(),l.setWidth(1),l.setHeight(1)},this.setupDisableClick=function(){l.disableClick_do=new FWDEVPDisplayObject("div"),l.disableClick_do.setBkColor(t.backgroundColor_str),l.addChild(l.disableClick_do)},this.showDisable=function(){t.tempVidStageWidth&&l.disableClick_do.w!=l.stageWidth&&(l.disableClick_do.setWidth(t.tempVidStageWidth),FWDEVPUtils.isIphone?l.disableClick_do.setHeight(t.tempVidStageHeight-l.controllerHeight):l.disableClick_do.setHeight(t.tempVidStageHeight))},this.hideDisable=function(){0!=l.disableClick_do.w&&(l.disableClick_do.setWidth(0),l.disableClick_do.setHeight(0))},this.setupVideo=function(){l.ytb||(l.main_do=new FWDEVPDisplayObject("div"),l.main_do.hasTransform3d_bl=!1,l.main_do.hasTransform2d_bl=!1,l.main_do.screen.setAttribute("id",t.instanceName_str+"youtube"),l.main_do.getStyle().width="100%",l.main_do.getStyle().height="100%",l.main_do.setBackfaceVisibility(),l.addChild(l.main_do),l.ytb=new YT.Player(t.instanceName_str+"youtube",{width:"100%",height:"100%",playerVars:{controls:0,disablekb:0,loop:0,autoplay:0,wmode:"opaque",showinfo:0,rel:0,modestbranding:1,iv_load_policy:3,cc_load_policy:0,fs:0,html5:0,playsinline:this.playsinline},events:{onReady:l.playerReadyHandler,onError:l.playerErrorHandler,onStateChange:l.stateChangeHandler,onPlaybackQualityChange:l.qualityChangeHandler}}))},this.playerReadyHandler=function(){!l.ytb||l.ytb.playVideo||l.ytb.cueVideoById?(clearInterval(l.updateReadyId_int),l.resizeAndPosition(),l.dispatchEvent(s.READY),l.hasBeenCreatedOnce_bl=!0):l.updateReadyId_int=setInterval(function(){l.playerReadyHandler()},50)},this.stateChangeHandler=function(e){if(e.data==YT.PlayerState.PLAYING)l.isSafeToBeControlled_bl||(l.isStopped_bl=!1,l.isSafeToBeControlled_bl=!0,l.isPlaying_bl=!0,l.hasHours_bl=0<Math.floor(l.ytb.getDuration()/3600),l.setVolume(t.volume),l.startToUpdate(),l.startToPreload(),l.isMobile_bl||l.ytb.seekTo(1e-6),l.isMobile_bl||l.setQuality(l.lastQuality_str),l.ytb.getAvailableQualityLevels()&&0!=l.ytb.getAvailableQualityLevels().length&&l.dispatchEvent(s.QUALITY_CHANGE,{qualityLevel:l.ytb.getPlaybackQuality(),levels:l.ytb.getAvailableQualityLevels()}),l.setPlaybackRate(),l.dispatchEvent(s.SAFE_TO_SCRUBB)),l.startToUpdateSubtitles(),l.isPausedInEvent_bl&&l.dispatchEvent(s.PLAY),l.isPausedInEvent_bl=!1,l.hasError_bl=!1;else if(e.data==YT.PlayerState.PAUSED){if(!l.isSafeToBeControlled_bl)return;l.isPausedInEvent_bl||l.dispatchEvent(s.PAUSE),l.isPausedInEvent_bl=!0}else e.data==YT.PlayerState.ENDED?l.ytb.getCurrentTime()&&0<l.ytb.getCurrentTime()&&l.isSafeToBeControlled_bl&&(l.stopToUpdateSubtitles(),setTimeout(function(){l.dispatchEvent(s.PLAY_COMPLETE)},100)):e.data==YT.PlayerState.CUED&&(l.isStopped_bl||l.dispatchEvent(s.CUED),l.isCued_bl=!0)},this.qualityChangeHandler=function(e){l.ytb.getAvailableQualityLevels()&&0!=l.ytb.getAvailableQualityLevels().length&&l.dispatchEvent(s.QUALITY_CHANGE,{qualityLevel:l.ytb.getPlaybackQuality()})},this.playerErrorHandler=function(e){if(l.isPausedInEvent_bl=!0,!l.isStopped_bl&&!l.hasError_bl&&l.sourcePath_str){var t="";l.hasError_bl=!0,2==e.data?t="The youtube id is not well formatted, make sure it has exactly 11 characters and that it dosn't contain invalid characters such as exclamation points or asterisks.":5==e.data?t="The requested content cannot be played in an HTML5 player or another error related to the HTML5 player has occurred.":100==e.data?t="The youtube video request was not found, probably the video ID is incorrect.":101!=e.data&&150!=e.data||(t="The owner of the requested video does not allow it to be played in embedded players."),l.dispatchEvent(s.ERROR,{text:t})}},this.resizeAndPosition=function(){t.tempVidStageWidth&&(l.setX(-1),l.setY(-1),l.setWidth(t.tempVidStageWidth+2),l.setHeight(t.tempVidStageHeight+2))},this.setSource=function(e){e&&(l.sourcePath_str=e),l.ytb.cueVideoById(l.sourcePath_str),l.isMobile_bl||(l.isStopped_bl=!1)},this.play=function(e){FWDEVPlayer.curInstance=t,l.isPlaying_bl=!0,l.hasError_bl=!1,l.ytb.playVideo(),l.startToUpdate(),l.isMobile_bl||(l.isStopped_bl=!1)},this.pause=function(){if(!l.isStopped_bl&&!l.hasError_bl){l.isPlaying_bl=!1;try{l.ytb.pauseVideo()}catch(e){}l.stopToUpdate()}},this.togglePlayPause=function(){l.isPlaying_bl?l.pause():l.play()},this.resume=function(){l.isStopped_bl||l.play()},this.startToUpdate=function(){clearInterval(l.updateVideoId_int),l.updateVideoId_int=setInterval(l.updateVideo,500)},this.stopToUpdate=function(){clearInterval(l.updateVideoId_int)},this.updateVideo=function(){var e;if(l.ytb){l.allowScrubing_bl||(e=l.ytb.getCurrentTime()/l.ytb.getDuration(),l.dispatchEvent(s.UPDATE,{percent:e}));var t=l.formatTime(l.ytb.getDuration()),o=l.formatTime(l.ytb.getCurrentTime());l.dispatchEvent(s.UPDATE_TIME,{curTime:o,totalTime:t,seconds:parseInt(l.ytb.getCurrentTime()),totalTimeInSeconds:l.ytb.getDuration()})}else stopToUpdate()},this.startToPreload=function(){clearInterval(l.preloadVideoId_int),l.updatePreloadId_int=setInterval(l.updateProgress,500)},this.stopToPreload=function(){clearInterval(l.updatePreloadId_int)},this.updateProgress=function(){if(l.ytb){var e=l.ytb.getVideoLoadedFraction();l.dispatchEvent(s.LOAD_PROGRESS,{percent:e})}else stopToPreload()},this.stop=function(){l.isStopped_bl||(l.isPlaying_bl=!1,l.isStopped_bl=!0,l.isCued_bl=!1,l.allowScrubing_bl=!1,l.isSafeToBeControlled_bl=!1,l.isQualityArrayDisapatched_bl=!1,l.isPausedInEvent_bl=!0,clearInterval(l.updateReadyId_int),l.stopToUpdateSubtitles(),l.stopToUpdate(),l.stopToPreload(),l.stopVideo(),l.dispatchEvent(s.STOP),l.dispatchEvent(s.LOAD_PROGRESS,{percent:0}),l.dispatchEvent(s.UPDATE_TIME,{curTime:"00:00",totalTime:"00:00"}))},this.destroyYoutube=function(){l.main_do&&(l.main_do.screen.removeAttribute("id",t.instanceName_str+"youtube"),l.main_do.destroy(),l.main_do=null),l.ytb&&l.ytb.destroy(),l.ytb=null},this.stopVideo=function(){l.ytb&&l.ytb.cueVideoById&&l.ytb.cueVideoById(l.sourcePath_str)},this.startToScrub=function(){l.isSafeToBeControlled_bl&&(l.allowScrubing_bl=!0)},this.scrubbAtTime=function(e){l.isSafeToBeControlled_bl&&l.ytb.seekTo(e)},this.stopToScrub=function(){l.isSafeToBeControlled_bl&&(l.allowScrubing_bl=!1)},this.scrub=function(e){l.isSafeToBeControlled_bl&&l.ytb.seekTo(e*l.ytb.getDuration())},this.setPlaybackRate=function(e){l.ytb&&!l.isMobile_bl&&(e&&(l.rate=e),l.ytb&&l.ytb.setPlaybackRate&&l.ytb.setPlaybackRate(l.rate))},this.setVolume=function(e){null!=e&&(l.volume=e),l.ytb&&l.ytb.setVolume(100*e)},this.stopToUpdateSubtitles=function(){clearInterval(l.startToUpdateSubtitleId_int)},this.startToUpdateSubtitles=function(){clearInterval(l.startToUpdateSubtitleId_int),l.startToUpdateSubtitleId_int=setInterval(l.updateSubtitleHandler,10)},this.updateSubtitleHandler=function(){l.dispatchEvent(s.UPDATE_SUBTITLE,{curTime:l.ytb.getCurrentTime()})},this.setQuality=function(e){l.lastQuality_str=e,l.ytb.setPlaybackQuality(e)},this.formatTime=function(e){var t=Math.floor(e/3600),o=e%3600,s=Math.floor(o/60),i=o%60,n=Math.ceil(i);return s=10<=s?s:"0"+s,n=10<=n?n:"0"+n,isNaN(n)?"00:00":l.hasHours_bl?t+":"+s+":"+n:s+":"+n},this.init()};s.setPrototype=function(){s.prototype=new FWDEVPDisplayObject("div")},s.UPDATE_SUBTITLE="updateSubtitle",s.READY="ready",s.ERROR="error",s.UPDATE="update",s.UPDATE_TIME="updateTime",s.SAFE_TO_SCRUBB="safeToControll",s.LOAD_PROGRESS="loadProgress",s.PLAY="play",s.PAUSE="pause",s.STOP="stop",s.PLAY_COMPLETE="playComplete",s.CUED="cued",s.QUALITY_CHANGE="qualityChange",e.FWDEVPYoutubeScreen=s}(window),function(){var l=function(e,t,o,s,i){var n=this;l.prototype;this.text_do=null,this.hd_do=null,this.dumy_do=null,this.label_str=e,this.normalColor_str=t,this.selectedColor_str=o,this.hdPath_str=s,this.id=i,this.totalWidth=0,this.totalHeight=23,this.hdWidth=7,this.hdHeight=5,this.hasHd_bl=n.hdPath_str,this.isMobile_bl=FWDEVPUtils.isMobile,this.isDisabled_bl=!1,this.init=function(){n.setBackfaceVisibility(),n.setupMainContainers(),n.setHeight(n.totalHeight)},this.setupMainContainers=function(){if(n.text_do=new FWDEVPDisplayObject("div"),n.text_do.setBackfaceVisibility(),n.text_do.hasTransform3d_bl=!1,n.text_do.hasTransform2d_bl=!1,n.text_do.getStyle().display="inline-block",n.text_do.getStyle().whiteSpace="nowrap",n.text_do.getStyle().fontFamily="Arial",n.text_do.getStyle().fontSize="12px",n.text_do.getStyle().color=n.normalColor_str,n.text_do.getStyle().fontSmoothing="antialiased",n.text_do.getStyle().webkitFontSmoothing="antialiased",n.text_do.getStyle().textRendering="optimizeLegibility",n.text_do.setInnerHTML(n.label_str),n.addChild(n.text_do),n.hasHd_bl){var e=new Image;e.src=n.hdPath_str,n.hd_do=new FWDEVPDisplayObject("img"),n.hd_do.setScreen(e),n.hd_do.setWidth(n.hdWidth),n.hd_do.setHeight(n.hdHeight),n.addChild(n.hd_do)}n.dumy_do=new FWDEVPDisplayObject("div"),FWDEVPUtils.isIE&&(n.dumy_do.setBkColor("#FF0000"),n.dumy_do.setAlpha(1e-4)),n.dumy_do.setButtonMode(!0),n.dumy_do.setHeight(n.totalHeight),n.addChild(n.dumy_do),n.hasPointerEvent_bl?(n.screen.addEventListener("pointerup",n.onMouseUp),n.screen.addEventListener("pointerover",n.onMouseOver),n.screen.addEventListener("pointerout",n.onMouseOut)):n.screen.addEventListener&&(n.isMobile_bl||(n.screen.addEventListener("mouseover",n.onMouseOver),n.screen.addEventListener("mouseout",n.onMouseOut),n.screen.addEventListener("mouseup",n.onMouseUp)),n.screen.addEventListener("touchend",n.onMouseUp))},this.onMouseOver=function(e){n.isDisabled_bl||(n.setSelectedState(!0),n.dispatchEvent(l.MOUSE_OVER,{e:e,id:n.id}))},this.onMouseOut=function(e){n.isDisabled_bl||(n.setNormalState(!0),n.dispatchEvent(l.MOUSE_OUT,{e:e,id:n.id}))},this.onMouseUp=function(e){n.isDisabled_bl||2==e.button||(e.preventDefault&&e.preventDefault(),n.dispatchEvent(l.CLICK,{e:e,id:n.id}))},this.setFinalSize=function(){if(0==n.text_do.x){var e=n.text_do.getWidth()+34,t=n.text_do.getHeight();n.text_do.setX(18),n.text_do.setY(parseInt((n.totalHeight-t)/2)),n.hd_do&&(n.hd_do.setX(e-12),n.hd_do.setY(n.text_do.y+1)),n.dumy_do.setWidth(e),n.setWidth(e)}},this.updateText=function(e){this.label_str=e,this.text_do.setInnerHTML(n.label_str),n.hd_do&&("highres"==n.label_str||"hd1080"==n.label_str||"hd720"==n.label_str||"hd1440"==n.label_str||"hd2160"==n.label_str?n.hd_do.setVisible(!0):n.hd_do.setVisible(!1))},this.setSelectedState=function(e){this.isSelected_bl=!0,FWDAnimation.killTweensOf(n.text_do),e?FWDAnimation.to(n.text_do.screen,.5,{css:{color:n.selectedColor_str},ease:Expo.easeOut}):n.text_do.getStyle().color=n.selectedColor_str},this.setNormalState=function(e){this.isSelected_bl=!1,FWDAnimation.killTweensOf(n.text_do),e?FWDAnimation.to(n.text_do.screen,.5,{css:{color:n.normalColor_str},ease:Expo.easeOut}):n.text_do.getStyle().color=n.normalColor_str},this.disable=function(){n.isDisabled_bl=!0,FWDAnimation.killTweensOf(n.text_do),n.setSelectedState(!0),n.dumy_do.setButtonMode(!1)},this.enable=function(){n.isDisabled_bl=!1,FWDAnimation.killTweensOf(n.text_do),n.setNormalState(!0),n.dumy_do.setButtonMode(!0)},n.init()};l.setPrototype=function(){l.prototype=new FWDEVPDisplayObject("div")},l.MOUSE_OVER="onMouseOver",l.MOUSE_OUT="onMouseOut",l.CLICK="onClick",l.prototype=null,window.FWDEVPYTBQButton=l}(window),function(d){var e=navigator.platform,t=!1;if("iPad"!=e&&"iPhone"!=e||(t=!0),t){var o=!1;if(-1!=navigator.userAgent.indexOf("6")&&(o=!0),o){var s={},i={},n=d.setTimeout,u=d.setInterval,l=d.clearTimeout,r=d.clearInterval;d.setTimeout=function(){return a(n,s,arguments)},d.setInterval=function(){return a(u,i,arguments)},d.clearTimeout=function(e){var t=s[e];t&&(delete s[e],l(t.id))},d.clearInterval=function(e){var t=i[e];t&&(delete i[e],r(t.id))},d.addEventListener("scroll",function(){var e;for(e in s)h(n,l,s,e);for(e in i)h(u,r,i,e)})}}function a(e,t,o){var s,i=o[0],n=e===u;return o[0]=function(){i&&(i.apply(d,arguments),n||(delete t[s],i=null))},s=e.apply(d,o),t[s]={args:o,created:Date.now(),cb:i,id:s},s}function h(e,t,o,s,i){var n=o[s];if(n){var l=e===u;if(t(n.id),!l){var r=n.args[1],a=Date.now()-n.created;a<0&&(a=0),(r-=a)<0&&(r=0),n.args[1]=r}n.args[0]=function(){n.cb&&(n.cb.apply(d,arguments),l||(delete o[s],n.cb=null))},n.created=Date.now(),n.id=e.apply(d,n.args)}}}(window);