1!function(e){function t(e){return{restrict:"A",scope:!0,transclude:!0,template:function(e,t){return'<ng-form name="formFor.form" class="transclude-target" autocomplete="off" novalidate></ng-form>'},link:function(t,i,n,r,o){t.formFor=t.formFor||{},t.formFor.target=t.$eval(n.formFor),t.formFor.schema=n.schema?e[n.schema].$schema:t.target.$$schema,t.formFor.mode="EDIT",t.formFor.opened={},t.preventDefault=function(e){},t.$watch(function(){return t.$eval(n.formFor)},function(e){t.formFor.target=e},!1),n.mode&&(t.formFor.mode=n.mode,n.$observe("mode",function(e){t.formFor.mode=e})),o(t,function(e,t){i.children(".transclude-target").append(e)})}}}function i(t){var i={inputType:"text",required:!1,selectTheme:"selectize",selectSelectedTemplate:'<div class="row select-text"><div class="col-xs-3" ng-if="$select.selected.ImageUrl"><img class="img-responsive img-circle" ng-src="{{$select.selected.ImageUrl}}" /></div><div ng-class="$select.selected.ImageUrl ? \'col-xs-9 pt10\' : \'col-xs-12 pt10\'">{{$select.selected.Name}}</div></div>',selectOptionTemplate:'<div class="row"><div class="col-xs-3" ng-if="option.ImageUrl"><img class="img-responsive img-circle" ng-src="{{option.ImageUrl}}" /></div><div ng-class="option.ImageUrl ? \'col-xs-9\' : \'col-xs-12\'"><div ng-bind-html="option.Name | highlight: $select.search"></div><small class="text-muted" ng-show="option.Description">{{option.Description}}</small></div></div>'};return{restrict:"A",scope:!0,template:function(n,o){var l=n.closest("[form-for]"),a=n.closest("[sub-form-for]"),s=(a.length?a:l).attr("schema"),c=t[s],d=c&&c.$schema,p=d&&d[o.fieldFor],u=a.attr("sub-form-for")||"";if(p){var m=e.extend({display:o.fieldFor,inputType:"text"},i,p,p.input,o),f=(o.display||o.fieldFor,o.fieldFor),g=o.selectFrom,b='<div class="form-group" ng-click="groupClicked(\'input\')" style="position:relative"><label class="control-label" for="'+u+f+'Input">';return b+=m.required===!0||"true"===m.required?m.display+"*</label>":m.display+"</label>",b+="<div ng-if=\"formFor.mode === 'VIEW'\">",g?b+='<ui-select class="view" ng-model="formFor.target.'+(u?u+".":"")+f+'" name="'+u+f+'Input" theme="'+m.selectTheme+'" ng-disabled="true" ng-required="'+m.required+'"><ui-select-match allow-clear="true" placeholder="'+(m.placeholder||"Select..")+'">'+m.selectSelectedTemplate+'</ui-select-match><ui-select-choices repeat="option._id as option in '+g+' | propSearch: { Name: $select.search }">'+m.selectOptionTemplate+"</ui-select-choices></ui-select>":m.type===Boolean?(b+='<div class="">',b+=r("input",{"class":"check",type:"checkbox",tabindex:m.tabIndex?m.tabIndex:"",name:u+f+"Check",id:u+f+"Check",ngModel:"formFor.target."+(u?u+".":"")+f,ngRequired:m.required,ngDisabled:!0})+'<label class="check-label" for="'+u+f+'Check"></label></div><br class="clearfix" />'):b+='<p class="form-control-static" ng-bind="formFor.target.'+(u?u+".":"")+(m.displayField||f)+(m.displayFilters||"")+'"></p>',b+="</div><div class=\"form-edit\" ng-if=\"formFor.mode === 'EDIT' || formFor.mode === 'CREATE'\">",m.textarea?b+=r("textarea",{"class":"form-control",rows:m.textarea,name:u+f+"Input",ngModel:"formFor.target."+(u?u+".":"")+f,ngRequired:m.required,ngDisabled:e.isDefined(m.editable)&&!m.editable,style:"height:initial;"}):m["enum"]?(b+='<select class="form-control" ng-model="formFor.target.'+(u?u+".":"")+f+'" name="'+u+f+'Input" ng-disabled="'+(e.isDefined(m.editable)&&(!m.editable||0==m.editable)||m.ngDisabled||!1)+'" ng-required="'+m.required+'">',"string"==typeof m["enum"][0]?e.forEach(m["enum"],function(e){b+='<option value="'+e+'">'+e+"</option>"}):e.forEach(m["enum"],function(e){b+='<option value="'+e.value+'">'+e.display+"</option>"}),b+="</select>"):g?(b+='<ui-select class="edit" ng-model="formFor.target.'+(u?u+".":"")+f+'" name="'+u+f+'Input" theme="'+m.selectTheme+'" ng-disabled="'+(e.isDefined(m.editable)&&!m.editable)+'" ng-required="'+m.required+'"><ui-select-match allow-clear="true" placeholder="'+(m.placeholder||"Select..")+'">'+m.selectSelectedTemplate+'</ui-select-match><ui-select-choices repeat="option._id as option in '+g+' | propSearch: { Name: $select.search }">'+m.selectOptionTemplate+"</ui-select-choices></ui-select>",b+="false"!=m.required&&m.required?"":'<a ng-click="formFor.target.'+(u?u+"."
1:"")+f+' = null;" style="position:absolute;right:5px;top:0;padding: 3px 0x;font-size:12px"><i class="material-icons red" style="font-size:12px;">clear</i></a></div></div>'):m.type===moment&&"time"!=m.inputType?b+='<div class="input-group">'+r("input",{"class":"form-control",type:"text",name:u+f+"Input",ngModel:"formFor.target."+(u?u+".":"")+f,ngRequired:m.required,datepickerPopup:"dd/MM/yyyy",isOpen:"formFor.opened."+u+f+"Input",placeholder:"DD/MM/YYYY",ngDisabled:e.isDefined(m.editable)&&!m.editable,showWeeks:"false",showButtonBar:!1})+'<span class="input-group-btn"><button type="button" class="btn btn-default" ng-click="openCalendar($event, \''+u+f+'Input\')"><i class="glyphicon glyphicon-calendar"></i></button></span></div>':"Phone"==m.type?b+='<input class="form-control" type="text" international-phone-number name='+(u?u:"")+f+"Input ng-model=formFor.target."+(u?u+".":"")+f+" ngRequired="+m.required+" ngDisabled="+(e.isDefined(m.editable)&&!m.editable)+"/></div>":m.type==Number?(b+='<input class="form-control" tabindex="'+m.tabIndex+'" type="number" name='+(u?u:"")+f+"Input ng-model=formFor.target."+(u?u+".":"")+f+" ng-required="+m.required+" ng-disabled="+(e.isDefined(m.editable)&&(!m.editable||"false"==m.editable)),e.isDefined(m.min)&&(b+=" min="+m.min),e.isDefined(m.max)&&(b+=" max="+m.max),b+=" /> </div>"):"time"==m.inputType?b+='<div class="input-group" dropdown is-open="formFor.opened.'+u+f+'Input" auto-close="outsideClick">'+r("input",{"class":"form-control",type:"time",name:u+f+"Input",ngModel:"formFor.target."+(u?u+".":"")+f,ngRequired:m.required,placeholder:"HH:MM",ngDisabled:e.isDefined(m.editable)&&!m.editable})+'<ul class="dropdown-menu"><li><timepicker ng-model="formFor.target.'+(u?u+".":"")+f+'" hour-step="1" minute-step="5" show-meridian="false"></timepicker></li></ul><span class="input-group-btn"><button type="button" class="btn btn-default" ng-click="openCalendar($event, \''+u+f+'Input\')"><i class="glyphicon glyphicon-time"></i></button></span></div>':m.type===Boolean?(b+='<div class="">',b+=r("input",{"class":"check",type:"checkbox",name:u+f+"Check",id:u+f+"Check",tabindex:m.tabIndex?m.tabIndex:"",ngModel:"formFor.target."+(u?u+".":"")+f,ngRequired:m.required,ngDisabled:e.isDefined(m.editable)&&(!m.editable||"false"==m.editable)})+'<label class="check-label" for="'+u+f+'Check"></label></div><br class="clearfix" />'):((m.append||m.prepend)&&(b+='<div class="input-group">'),m.prepend&&(b+='<span class="input-group-btn"><button type="button" class="btn btn-default" ng-click="'+m.prepend.click+'"><i class="'+m.prepend.icon+'"></i>'+m.prepend.text+"</button></span>"),b+=r("input",{"class":"form-control",type:m.inputType,name:u+f+"Input",step:m.step,ngModel:"formFor.target."+(u?u+".":"")+f,ngRequired:m.required,ngDisabled:e.isDefined(m.editable)&&(!m.editable||"false"==m.editable),placeholder:m.placeholder}),m.append&&(b+='<span class="input-group-btn"><button type="button" class="btn btn-default" ng-click="'+m.append.click+'"><i class="'+m.append.icon+'"></i>'+m.append.text+"</button></span>"),(m.append||m.prepend)&&(b+="</div>")),b+='<div ng-messages="formFor.form.'+u+f+'Input.$error" class="help-block"><div ng-message="required">'+m.display+' is required.</div><div ng-message="parse">'+m.display+' is incorrectly formatted.</div><div ng-message="email">'+m.display+" is not a valid e-mail.</div></div></div>",b+="</div>"}},link:function(e,t,i){e.openCalendar=function(t,i){e.formFor.opened[i]=!0,t.preventDefault(),t.stopPropagation()},e.groupClicked=function(e){if("input"==e){var i=$(t).find("input");0===i.length&&(i=$(t).find("select")),i.focus()}}}}}function n(){return function(t,i){var n=[];return e.isArray(t)?t.forEach(function(e){for(var t=!1,r=Object.keys(i),o=0;o<r.length;o++){var l=r[o],a=i[l].toLowerCase();if(e[l]&&e[l].toString().toLowerCase().indexOf(a)!==-1){t=!0;break}}t&&n.push(e)}):n=t,n}}function r(t,i){var n="<"+t+" ";return e.forEach(i,function(t,i){e.isDefined(t)&&null!==t&&(n+=o(i)+'="'+t+'"')}),n+="input"===t?" />":" ></"+t+"></div></div>"}function o(e){for(var t="",i=0;i<e.length;i++){var n=e[i];t+=n==n.toUpperCase()?"-"+n.toLowerCase():n}return t}var l=e.module("framework.directives.UI",[]);l.directive("fieldFor",i),l.directive("formFor",t),l.filter("propSearch",n),t.$inject=["Model"],i.$inject=["Model"]}(angular);;;; 2!function(t,i){function e(){function t(t,i,e){return n[t]=[i,e],this}function e(t,e,a){function s(n,a,s){function r(){return this.$$changedValues}function o(){}function h(){var n=this,a=i.copy(this);for(var s in a)"_"!=s[0]&&"$"!=s[0]||delete a[s];var r=e.post(t.API_ENDPOINT+this.$$apiLocation,this);return r.success(function(t){n.Id=t.Id,n.$commit(!0)}),r}function u(){var n=this,a=i.copy(this);for(var s in a)"$"==s[0]&&delete a[s];var r=e.put(t.API_ENDPOINT+this.$$apiLocation+"?_id="+this._id,a);return r.success(function(){n.$commit(!0)}),r}function l(n){var a=this,s=i.extend({_id:this._id},this.$getChanges());
2n||i.forEach(this.$$foreignModels,function(t,i){var e=this[i].$getChanges(),n=0;for(k in e)e.hasOwnProperty(k)&&n++;n>0&&(s[i]=e)},this);var r={params:{id:this.Id}},o=e.patch(t.API_ENDPOINT+this.$$apiLocation,s,r);return o.success(function(){a.$commit(!0)}),o}function $(){var i={params:{_id:this._id}};return e["delete"](t.API_ENDPOINT+this.$$apiLocation,i)}function f(t){i.forEach(this.$$changedValues,function(t,i){var e=i,n=t;this.$$originalValues[e]=n},this),this.$$changedValues={},t||i.forEach(this.$$foreignModels,function(t,i){this[i].$commit()},this)}function d(t){this.$$changedValues={},t||i.forEach(this.$$foreignModels,function(t,i){this[i].$rollback()},this)}this.$$apiLocation=n,this.$$schema=a,this.$$originalValues={},this.$$changedValues={},this.$$foreignModels={},this.$getChanges=r,this.$validate=o,this.$save=h,this.$update=u,this.$patch=l,this.$delete=$,this.$commit=f,this.$rollback=d,i.forEach(a,function(t,e){var n=e,a=t;void 0!==s[n]?a.type===moment?this.$$originalValues[n]=new Date(s[n]):"string"==typeof a.type&&null!==s[n]&&(a.nested||"object"==typeof s[n])?(this.$$originalValues[n]=new c[a.type](s[n]),this.$$foreignModels[n]=a.type):this.$$originalValues[n]=s[n]:this.$$originalValues[n]=a.defaultValue,Object.defineProperty(this,n,{configurable:!1,enumerable:!0,get:a.calculated||function(){return this.$$changedValues.hasOwnProperty(n)?this.$$changedValues[n]:this.$$originalValues[n]},set:function(t){(i.isUndefined(a.editable)||a.editable)&&(this.$$changedValues[n]=t)}})},this)}function r(n,a){function s(t,i){this.skip=(t-1)*i,this.top=i}function r(t){return k=t,O=tracking,this}function o(){return O="raw",this}function c(){return O="tracking",this}function h(t){return b=t,this}function u(t){return P=t,this}function l(){return[].push.apply(E,arguments),this}function $(){return 2===arguments.length?i.isObject(arguments[1])||i.isFunction(arguments[1]):[].push.apply(m,arguments),this}function f(){return[].push.apply(y,arguments),k=null,this}function d(t,i,e){if(1===arguments.length)I.push(t);else if(3===arguments.length){switch(i){case"&&":i="&&";break;case"||":i="or";break;case"=":case"==":case"===":i="eq";break;case"!=":case"!==":case"!===":i="ne";break;case">":i="gt";break;case">=":i="ge";break;case"<":i="lt";break;case"<=":i="le"}I.push(t+" "+i+" "+e)}return this}function p(){var s={};return s.params=v(),apiCall=t.API_ENDPOINT+n,e.get(apiCall,s).then(function(t){if("raw"==O)return t.data;if("tracking"==O){if(i.isArray(t.data)){var e=[];return i.forEach(t.data,function(t){e.push(new k(t))}),e}return new k(t.data)}if(i.isArray(t.data)){var e=[];for(j=0,leng=t.data.length;j<leng;j++)e.push(g(t.data[j],a.$schema));return e}return g(t.data,a.$schema)})}function g(t,i){var e={};for(var n in i)i[n].calculated?Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:i[n].calculated}):e[n]=t[n];return e}function v(){var t={};return m.length&&(t.$expand=m.join(",")),I.length&&(t.$filter=I.join(" && ")),E.length&&(t.$orderBy=E.join(",")),y.length&&(t.$select=y.join(",")),b&&(t.$top=b),P&&(t.$skip=P),t}var m=[],y=[],I=[],b=null,P=null,E=[],k=a;this.include=$,this.select=f,this.filter=d,this.where=d,this.orderBy=l,this.top=h,this.skip=u,this.parseAs=r,this.execute=p,this.trackingEnabled=c,this.raw=o,this.page=s;var O="default"}function o(t,i){function e(e){var e=e||{};this.base=s,this.base(t,i,e)}function n(){return new r(t,o)}function a(i){return new r(t).filter("Id","eq",i)}e.prototype=new s,e.$schema=i,e.query=n,e.getById=a;var o=e;return e}var c={};return c.$associate=function(i,n,a,s){return e.get(t.API_ENDPOINT+"/api/relationships",{params:{type1:i,type2:n,id1:a,id2:s}})},c.$dissociate=function(i,n,a,s){return e["delete"](t.API_ENDPOINT+"/api/relationships",{params:{type1:i,type2:n,id1:a,id2:s}})},i.forEach(n,function(t,i){var e=i,n=t[0],a=t[1];c[e]=o(n,a)}),c}var n={};this.registerSchema=t,this.$get=e,e.$inject=["$config","$http","$q"]}function n(t,i,e,n){}var a=i.module("framework.services.data",[]);a.provider("Model",e),t.$config={API_ENDPOINT:t.endpoint,LOGIN_URL:"/login.html",GOOGLE_API_KEY:"AIzaSyBSjg13rvyaC145WmGcf1FInYT3dUebzOg",GOOGLE_BUCKET_ENDPOINT:t.googlebucketendpoint},a.constant("$config",t.$config),n.$inject=["$config","$http","$q","Models"]}(window,angular);;;; 3!function(n){function r(){return function(n){return n.replace(/\s/g,"")}}function t(){return function(n,r,t){return n?(isNaN(r)&&(r=10),void 0===t&&(t="..."),n.length<=r||n.length-t.length<=r?n:String(n).substring(0,r-t.length)+t):""}}function e(){return function(n){return Math.abs(Number(n))>=1e9?Math.round(10*Math.abs(Number(n)/1e9))/10+"b":Math.abs(Number(n))>=1e6?Math.round(10*Math.abs(Number(n)/1e6))/10+"m":Math.abs(Number(n))>=1e3?Math.round(10*Math.abs(Number(n)/1e3))/10+"k":Math.abs(Number(n))}}function u(){return function(n){var r,t=function(n,r,t){var e=$.is
3Function(n)?n(r,i):n,u=t.numbers&&t.numbers[r]||r;return e.replace(/%d/i,u)},e=(new Date).getTime(),u=new Date(n).getTime(),o=!0,a={prefixAgo:null,prefixFromNow:null,suffixAgo:"ago",suffixFromNow:"",seconds:"less than a minute",minute:"a minute",minutes:"%d minutes",hour:"an hour",hours:"%d hours",day:"a day",days:"%d days",month:"a month",months:"%d months",year:"a year",years:"%d years"},i=e-u,s=Math.abs(i)/1e3,f=s/60,m=f/60,c=m/24,h=c/365,d=void 0===a.wordSeparator?" ":a.wordSeparator,l=a.prefixAgo,b=a.suffixAgo;return o&&i<0&&(l=a.prefixFromNow,b=a.suffixFromNow),r=s<45&&t(a.seconds,Math.round(s),a)||s<90&&t(a.minute,1,a)||f<45&&t(a.minutes,Math.round(f),a)||f<90&&t(a.hour,1,a)||m<24&&t(a.hours,Math.round(m),a)||m<42&&t(a.day,1,a)||c<30&&t(a.days,Math.round(c),a)||c<45&&t(a.month,1,a)||c<365&&t(a.months,Math.round(c/30),a)||h<1.5&&t(a.year,1,a)||t(a.years,Math.round(h),a),$.trim([l,r,b].join(d))}}function o(n){return function(r,t,e){return r?n.currency().convert(r,t,e):null}}function a(n,r){return function(t,e){var u=null;return u=e?n.currency().getById(e):n.currency().getCurrent(),u?t?u.Prepend+r("number")(t,2):u.Prepend+"0.00":t}}function i(n){return function(r){var t=n.timeZone().timeZoneDateTime(r);return t}}function s(){return function(n,r){return moment.utc(n).format(r)}}var f=n.module("framework.filters.utility",[]);f.filter("RemoveSpaces",r),f.filter("Truncate",t),f.filter("AbbrValue",e),f.filter("Countdown",u),f.filter("Convert",o),f.filter("Format",a),f.filter("TZConvert",i),f.filter("companyDate",s),o.$inject=["Localisation"],a.$inject=["Localisation","$filter"],i.$inject=["Localisation"],s.$inject=[]}(angular);;;; 4!function(o,e){function n(){function o(o,n,t,a){function l(o){return i=o,n.open({templateUrl:"/e9_components/services/ImageUpload.modal.html",controller:"ImageUploadModalController",backdrop:"static",resolve:{modalConfig:function(){return o||{}}}}).result}function r(n,a){var l=new FormData;l.append("file",n);var r;return r=i.API?i.API:"api/Image",o.post(t.API_ENDPOINT+r,l,{transformRequest:e.identity,headers:{"Content-Type":void 0},params:a})}function s(e){return o.get(t.API_ENDPOINT+"api/Image",{params:e})}var d={openPicker:l,upload:r,current:s};return d}var n={$get:["$http","$modal","$config","$q",o]};return n;var i}function i(e,n,i,t,a,l){e.mode=t.mode,e.modes=t.modes||{UPLOAD:!0,SEARCH:!0,PREVIOUS:!0},e.upload={choosen:null,src:null,dimensions:null,allowRect:!0,aspectRatio:t.aspectratio,minWidth:t.minWidth,uploadFull:function(){t.manualUpload?n.close({file:e.upload.choosen,src:e.upload.src,params:null}):a.upload(e.upload.choosen,{ownerType:t.type,ownerId:t.id}).success(function(o){n.close(o)}).error(function(){})},uploadCropped:function(){t.manualUpload?n.close({file:e.upload.choosen,src:e.upload.src,params:{cropx:e.upload.dimensions.x,cropy:e.upload.dimensions.y,cropx2:e.upload.dimensions.x2,cropy2:e.upload.dimensions.y2,height:e.upload.dimensions.h,width:e.upload.dimensions.w}}):a.upload(e.upload.choosen,{ownerType:t.type,ownerId:t.id,cropx:e.upload.dimensions.x,cropy:e.upload.dimensions.y,cropx2:e.upload.dimensions.x2,cropy2:e.upload.dimensions.y2,height:e.upload.dimensions.h,width:e.upload.dimensions.w}).success(function(o){n.close(o)}).error(function(){})}},e.$watch("upload.choosen.name + upload.choosen.size",function(n){if(e.upload.src=null,n){var i=new Image,t=new FileReader;i.onload=function(){if(e.upload.minWidth){if(i.width<e.upload.minWidth)return void swal("Warning","Image width should be at least "+e.upload.minWidth+"px wide.","warning");if(e.upload.aspectRatio&&i.width/e.upload.aspectRatio>i.height)return void swal("Warning","Image does not match the required specification.","warning")}t.onload=function(o){e.upload.src=o.target.result,e.$apply()},t.readAsDataURL(e.upload.choosen)},i.src=o.URL.createObjectURL(e.upload.choosen)}else e.upload.src=null},!0)}function t(){return{restrict:"A",scope:{source:"=",result:"=",aspectratio:"=",boxwidth:"=",boxheight:"=",minwidth:"=",initialselection:"="},link:function(o,e,n){function i(e){for(var n in e)e[n]=Math.round(e[n]);o.result=e,o.$parent.upload&&(o.$parent.upload.dimensions=e)}var t=null;
4o.$watch("source",function(a){if(t&&(t.destroy(),t=null),a){n.$set("src",a);var l=new Image;l.onload=function(){var n,a=l.width,r=l.height,s={trueSize:[a,r],boxWidth:o.boxwidth?o.boxwidth:320,onSelect:i};s.aspectRatio=o.aspectratio,o.boxheight&&(s.boxHeight=o.boxheight),o.minwidth&&(o.aspectratio?(s.minSize=[o.minwidth,o.minwidth/o.aspectratio],n=a/o.aspectratio,s.setSelect=[0,Math.round(r/2-n/2),a,Math.round(r/2+n/2)]):s.minSize=[o.minwidth,0]),o.initialselection&&(s.setSelect=o.initialselection),$(e).Jcrop(s,function(){t=this}),o.$apply()},l.src=a}else n.$set("src",null)})}}}function a(o,e){return{scope:{file:"="},link:function(e,n,i,t){e.safeApply=function(o){var n=e.$$phase;"$apply"==n||"$digest"==n?o&&"function"==typeof o&&o():e.$apply()},n.bind("change",function(n){var i=n.target.files[0];i?(e.file=i,o(e.safeApply,0)):(e.file=null,o(e.safeApply,0))})}}}var l=e.module("framework.services.images",[]);l.provider("ImageUpload",n),l.controller("ImageUploadModalController",i),l.directive("filePicker",a),l.directive("imageCropper",t),i.$inject=["$scope","$modalInstance","$timeout","modalConfig","ImageUpload","$config"],a.$inject=["$timeout","$rootScope"]}(window,angular);;;; 5!function(e){"function"==typeof define&&define.amd?define(["jquery"],e):"object"==typeof exports?module.exports=e:e(jQuery)}(function(e){function t(t){var r=t||window.event,l=s.call(arguments,1),c=0,u=0,f=0,h=0,m=0,p=0;if(t=e.event.fix(r),t.type="mousewheel","detail"in r&&(f=-1*r.detail),"wheelDelta"in r&&(f=r.wheelDelta),"wheelDeltaY"in r&&(f=r.wheelDeltaY),"wheelDeltaX"in r&&(u=-1*r.wheelDeltaX),"axis"in r&&r.axis===r.HORIZONTAL_AXIS&&(u=-1*f,f=0),c=0===f?u:f,"deltaY"in r&&(f=-1*r.deltaY,c=f),"deltaX"in r&&(u=r.deltaX,0===f&&(c=-1*u)),0!==f||0!==u){if(1===r.deltaMode){var g=e.data(this,"mousewheel-line-height");c*=g,f*=g,u*=g}else if(2===r.deltaMode){var v=e.data(this,"mousewheel-page-height");c*=v,f*=v,u*=v}if(h=Math.max(Math.abs(f),Math.abs(u)),(!i||i>h)&&(i=h,n(r,h)&&(i/=40)),n(r,h)&&(c/=40,u/=40,f/=40),c=Math[c>=1?"floor":"ceil"](c/i),u=Math[u>=1?"floor":"ceil"](u/i),f=Math[f>=1?"floor":"ceil"](f/i),d.settings.normalizeOffset&&this.getBoundingClientRect){var x=this.getBoundingClientRect();m=t.clientX-x.left,p=t.clientY-x.top}return t.deltaX=u,t.deltaY=f,t.deltaFactor=i,t.offsetX=m,t.offsetY=p,t.deltaMode=0,l.unshift(t,c,u,f),a&&clearTimeout(a),a=setTimeout(o,200),(e.event.dispatch||e.event.handle).apply(this,l)}}function o(){i=null}function n(e,t){return d.settings.adjustOldDeltas&&"mousewheel"===e.type&&t%120===0}var a,i,r=["wheel","mousewheel","DOMMouseScroll","MozMousePixelScroll"],l="onwheel"in document||document.documentMode>=9?["wheel"]:["mousewheel","DomMouseScroll","MozMousePixelScroll"],s=Array.prototype.slice;if(e.event.fixHooks)for(var c=r.length;c;)e.event.fixHooks[r[--c]]=e.event.mouseHooks;var d=e.event.special.mousewheel={version:"3.1.12",setup:function(){if(this.addEventListener)for(var o=l.length;o;)this.addEventListener(l[--o],t,!1);else this.onmousewheel=t;e.data(this,"mousewheel-line-height",d.getLineHeight(this)),e.data(this,"mousewheel-page-height",d.getPageHeight(this))},teardown:function(){if(this.removeEventListener)for(var o=l.length;o;)this.removeEventListener(l[--o],t,!1);else this.onmousewheel=null;e.removeData(this,"mousewheel-line-height"),e.removeData(this,"mousewheel-page-height")},getLineHeight:function(t){var o=e(t),n=o["offsetParent"in e.fn?"offsetParent":"parent"]();return n.length||(n=e("body")),parseInt(n.css("fontSize"),10)||parseInt(o.css("fontSize"),10)||16},getPageHeight:function(t){return e(t).height()},settings:{adjustOldDeltas:!0,normalizeOffset:!0}};e.fn.extend({mousewheel:function(e){return e?this.bind("mousewheel",e):this.trigger("mousewheel")},unmousewheel:function(e){return this.unbind("mousewheel",e)}})}),!function(e){"undefined"!=typeof module&&module.exports?module.exports=e:e(jQuery,window,document)}(function(e){!function(t){var o="function"==typeof define&&define.amd,n="undefined"!=typeof module&&module.exports,a="https:"==document.location.protocol?"https:":"http:",i="cdnjs.cloudflare.com/ajax/libs/jquery-mousewheel/3.1.12/jquery.mousewheel.min.js";o||(n?require("jquery-mousewheel")(e):e.event.special.mousewheel||e("head").append(decodeURI("%3Cscript src="+a+"//"+i+"%3E%3C/script%3E"))),t()}(function(){var t,o="mCustomScrollbar",n="mCS",a=".mCustomScrollbar",i={setTop:0,setLeft:0,axis:"y",scrollbarPosition:"inside",scrollInertia:950,autoDraggerLength:!0,alwaysShowScrollbar:0,snapOffset:0,mouseWheel:{enable:!0,scrollAmount:"auto",axis:"y",deltaFactor:"auto",disableOver
vendor: 4,259 bytes, line 5
5:["select","option","keygen","datalist","textarea"]},scrollButtons:{scrollType:"stepless",scrollAmount:"auto"},keyboard:{enable:!0,scrollType:"stepless",scrollAmount:"auto"},contentTouchScroll:25,advanced:{autoScrollOnFocus:"input,textarea,select,button,datalist,keygen,a[tabindex],area,object,[contenteditable='true']",updateOnContentResize:!0,updateOnImageLoad:!0,autoUpdateTimeout:60},theme:"light",callbacks:{onTotalScrollOffset:0,onTotalScrollBackOffset:0,alwaysTriggerOffsets:!0}},r=0,l={},s=window.attachEvent&&!window.addEventListener?1:0,c=!1,d=["mCSB_dragger_onDrag","mCSB_scrollTools_onDrag","mCS_img_loaded","mCS_disabled","mCS_destroyed","mCS_no_scrollbar","mCS-autoHide","mCS-dir-rtl","mCS_no_scrollbar_y","mCS_no_scrollbar_x","mCS_y_hidden","mCS_x_hidden","mCSB_draggerContainer","mCSB_buttonUp","mCSB_buttonDown","mCSB_buttonLeft","mCSB_buttonRight"],u={init:function(t){var t=e.extend(!0,{},i,t),o=f.call(this);if(t.live){var s=t.liveSelector||this.selector||a,c=e(s);if("off"===t.live)return void m(s);l[s]=setTimeout(function(){c.mCustomScrollbar(t),"once"===t.live&&c.length&&m(s)},500)}else m(s);return t.setWidth=t.set_width?t.set_width:t.setWidth,t.setHeight=t.set_height?t.set_height:t.setHeight,t.axis=t.horizontalScroll?"x":p(t.axis),t.scrollInertia=t.scrollInertia>0&&t.scrollInertia<17?17:t.scrollInertia,"object"!=typeof t.mouseWheel&&1==t.mouseWheel&&(t.mouseWheel={enable:!0,scrollAmount:"auto",axis:"y",preventDefault:!1,deltaFactor:"auto",normalizeDelta:!1,invert:!1}),t.mouseWheel.scrollAmount=t.mouseWheelPixels?t.mouseWheelPixels:t.mouseWheel.scrollAmount,t.mouseWheel.normalizeDelta=t.advanced.normalizeMouseWheelDelta?t.advanced.normalizeMouseWheelDelta:t.mouseWheel.normalizeDelta,t.scrollButtons.scrollType=g(t.scrollButtons.scrollType),h(t),e(o).each(function(){var o=e(this);if(!o.data(n)){o.data(n,{idx:++r,opt:t,scrollRatio:{y:null,x:null},overflowed:null,contentReset:{y:null,x:null},bindEvents:!1,tweenRunning:!1,sequential:{},langDir:o.css("direction"),cbOffsets:null,trigger:null});var a=o.data(n),i=a.opt,l=o.data("mcs-axis"),s=o.data("mcs-scrollbar-position"),c=o.data("mcs-theme");l&&(i.axis=l),s&&(i.scrollbarPosition=s),c&&(i.theme=c,h(i)),v.call(this),e("#mCSB_"+a.idx+"_container img:not(."+d[2]+")").addClass(d[2]),u.update.call(null,o)}})},update:function(t,o){var a=t||f.call(this);return e(a).each(function(){var t=e(this);if(t.data(n)){var a=t.data(n),i=a.opt,r=e("#mCSB_"+a.idx+"_container"),l=[e("#mCSB_"+a.idx+"_dragger_vertical"),e("#mCSB_"+a.idx+"_dragger_horizontal")];if(!r.length)return;a.tweenRunning&&V(t),t.hasClass(d[3])&&t.removeClass(d[3]),t.hasClass(d[4])&&t.removeClass(d[4]),S.call(this),_.call(this),"y"===i.axis||i.advanced.autoExpandHorizontalScroll||r.css("width",x(r.children())),a.overflowed=B.call(this),O.call(this),i.autoDraggerLength&&b.call(this),C.call(this),M.call(this);var s=[Math.abs(r[0].offsetTop),Math.abs(r[0].offsetLeft)];"x"!==i.axis&&(a.overflowed[0]?l[0].height()>l[0].parent().height()?T.call(this):(Q(t,s[0].toString(),{dir:"y",dur:0,overwrite:"none"}),a.contentReset.y=null):(T.call(this),"y"===i.axis?k.call(this):"yx"===i.axis&&a.overflowed[1]&&Q(t,s[1].toString(),{dir:"x",dur:0,overwrite:"none"}))),"y"!==i.axis&&(a.overflowed[1]?l[1].width()>l[1].parent().width()?T.call(this):(Q(t,s[1].toString(),{dir:"x",dur:0,overwrite:"none"}),a.contentReset.x=null):(T.call(this),"x"===i.axis?k.call(this):"yx"===i.axis&&a.overflowed[0]&&Q(t,s[0].toString(),{dir:"y",dur:0,overwrite:"none"}))),o&&a&&(2===o&&i.callbacks.onImageLoad&&"function"==typeof i.callbacks.onImageLoad?i.callbacks.onImageLoad.call(this):3===o&&i.callbacks.onSelectorChange&&"function"==typeof i.callbacks.onSelectorChange?i.callbacks.onSelectorChange.call(this):i.callbacks.onUpdate&&"function"==typeof i.callbacks.onUpdate&&i.callbacks.onUpdate.call(this)),q.call(this)}})},scrollTo:function(t,o){if("undefined"!=typeof t&&null!=t){var a=f.call(this);return e(a).each(function(){var a=e(this);if(a.data(n)){var i=a.data(n),r=i.opt,l={trigger:"external",scrollInertia:r.scrollInertia,scrollEasing:"mcsEaseInOut",moveDragger:!1,timeout:60,callbacks:!0,onStart:!0,onUpdate:!0,onComplete:!0},s=e.extend(!0,{},l,o),c=j.call(this,t),d=s.scrollInertia>0&&s.scrollInertia<17?17:s.scrollInertia;
5c[0]=F.call(this,c[0],"y"),c[1]=F.call(this,c[1],"x"),s.moveDragger&&(c[0]*=i.scrollRatio.y,c[1]*=i.scrollRatio.x),s.dur=d,setTimeout(function(){null!==c[0]&&"undefined"!=typeof c[0]&&"x"!==r.axis&&i.overflowed[0]&&(s.dir="y",s.overwrite="all",Q(a,c[0].toString(),s)),null!==c[1]&&"undefined"!=typeof c[1]&&"y"!==r.axis&&i.overflowed[1]&&(s.dir="x",s.overwrite="none",Q(a,c[1].toString(),s))},s.timeout)}})}},stop:function(){var t=f.call(this);return e(t).each(function(){var t=e(this);t.data(n)&&V(t)})},disable:function(t){var o=f.call(this);return e(o).each(function(){var o=e(this);o.data(n)&&(o.data(n),q.call(this,"remove"),k.call(this),t&&T.call(this),O.call(this,!0),o.addClass(d[3]))})},destroy:function(){var t=f.call(this);return e(t).each(function(){var a=e(this);if(a.data(n)){var i=a.data(n),r=i.opt,l=e("#mCSB_"+i.idx),s=e("#mCSB_"+i.idx+"_container"),c=e(".mCSB_"+i.idx+"_scrollbar");r.live&&m(r.liveSelector||e(t).selector),q.call(this,"remove"),k.call(this),T.call(this),a.removeData(n),K(this,"mcs"),c.remove(),s.find("img."+d[2]).removeClass(d[2]),l.replaceWith(s.contents()),a.removeClass(o+" _"+n+"_"+i.idx+" "+d[6]+" "+d[7]+" "+d[5]+" "+d[3]).addClass(d[4])}})}},f=function(){return"object"!=typeof e(this)||e(this).length<1?a:this},h=function(t){var o=["rounded","rounded-dark","rounded-dots","rounded-dots-dark"],n=["rounded-dots","rounded-dots-dark","3d","3d-dark","3d-thick","3d-thick-dark","inset","inset-dark","inset-2","inset-2-dark","inset-3","inset-3-dark"],a=["minimal","minimal-dark"],i=["minimal","minimal-dark"],r=["minimal","minimal-dark"];t.autoDraggerLength=!(e.inArray(t.theme,o)>-1)&&t.autoDraggerLength,t.autoExpandScrollbar=!(e.inArray(t.theme,n)>-1)&&t.autoExpandScrollbar,t.scrollButtons.enable=!(e.inArray(t.theme,a)>-1)&&t.scrollButtons.enable,t.autoHideScrollbar=e.inArray(t.theme,i)>-1||t.autoHideScrollbar,t.scrollbarPosition=e.inArray(t.theme,r)>-1?"outside":t.scrollbarPosition},m=function(e){l[e]&&(clearTimeout(l[e]),K(l,e))},p=function(e){return"yx"===e||"xy"===e||"auto"===e?"yx":"x"===e||"horizontal"===e?"x":"y"},g=function(e){return"stepped"===e||"pixels"===e||"step"===e||"click"===e?"stepped":"stepless"},v=function(){var t=e(this),a=t.data(n),i=a.opt,r=i.autoExpandScrollbar?" "+d[1]+"_expand":"",l=["<div id='mCSB_"+a.idx+"_scrollbar_vertical' class='mCSB_scrollTools mCSB_"+a.idx+"_scrollbar mCS-"+i.theme+" mCSB_scrollTools_vertical"+r+"'><div class='"+d[12]+"'><div id='mCSB_"+a.idx+"_dragger_vertical' class='mCSB_dragger' style='position:absolute;' oncontextmenu='return false;'><div class='mCSB_dragger_bar' /></div><div class='mCSB_draggerRail' /></div></div>","<div id='mCSB_"+a.idx+"_scrollbar_horizontal' class='mCSB_scrollTools mCSB_"+a.idx+"_scrollbar mCS-"+i.theme+" mCSB_scrollTools_horizontal"+r+"'><div class='"+d[12]+"'><div id='mCSB_"+a.idx+"_dragger_horizontal' class='mCSB_dragger' style='position:absolute;' oncontextmenu='return false;'><div class='mCSB_dragger_bar' /></div><div class='mCSB_draggerRail' /></div></div>"],s="yx"===i.axis?"mCSB_vertical_horizontal":"x"===i.axis?"mCSB_horizontal":"mCSB_vertical",c="yx"===i.axis?l[0]+l[1]:"x"===i.axis?l[1]:l[0],u="yx"===i.axis?"<div id='mCSB_"+a.idx+"_container_wrapper' class='mCSB_container_wrapper' />":"",f=i.autoHideScrollbar?" "+d[6]:"",h="x"!==i.axis&&"rtl"===a.langDir?" "+d[7]:"";i.setWidth&&t.css("width",i.setWidth),i.setHeight&&t.css("height",i.setHeight),i.setLeft="y"!==i.axis&&"rtl"===a.langDir?"989999px":i.setLeft,t.addClass(o+" _"+n+"_"+a.idx+f+h).wrapInner("<div id='mCSB_"+a.idx+"' class='mCustomScrollBox mCS-"+i.theme+" "+s+"'><div id='mCSB_"+a.idx+"_container' class='mCSB_container' style='position:relative; top:"+i.setTop+"; left:"+i.setLeft+";' dir="+a.langDir+" /></div>");var m=e("#mCSB_"+a.idx),p=e("#mCSB_"+a.idx+"_container");"y"===i.axis||i.advanced.autoExpandHorizontalScroll||p.css("width",x(p.children())),"outside"===i.scrollbarPosition?("static"===t.css("position")&&t.css("position","relative"),t.css("overflow","visible"),m.addClass("mCSB_outside").after(c)):(m.addClass("mCSB_inside").append(c),p.wrap(u)),w.call(this);var g=[e("#mCSB_"+a.idx+"_dragger_vertical"),e("#mCSB_"+a.idx+"_dragger_horizontal")];g[0].css("min-height",g[0].height()),g[1].css("min-width",g[1].width())},x=function(t){return Math.max.apply(Math,t.map(function(){return e(this).outerWidth(!0)}).get())},_=function(){var t=e(this),o=t.data(n),a=o.opt,i=e("#mCSB_"+o.idx+"_container");a.advanced.autoExpandHorizontalScroll&&"y"!==a.axis&&i.css({position:"absolute",width:"auto"}).wrap("<div class='mCSB_h_wrapper' style='position:relative; left:0; width:999999px;' />").css({width:Math.ceil(i[0].getBoundingClientRect().right+.4)-Math.floor(i[0].getBoundingClientRect().left),position:"relative"}).unwrap()},w=function(){var t=e(this),o=t.data(n),a=o.opt,i=e(".mCSB_"+o.idx+"_scrollbar:first"),r=te(a.scrollButtons.tabindex)?"tabindex='"+a.scrollButtons.tabindex+"'":"",l=["<a href='#' class='"+d[13]+"' oncontextmenu='return false;' "+r+" />","<a href='#' class='"+d[14]+"' oncontextmenu='return false;' "+r+" />","<a href='#' class='"+d[15]+"' oncontextmenu='return false;' "+r+" />","<a href='#' class='"+d[16]+"' oncontextmenu='return false;' "+r+" />"],s=["x"===a.axis?l[2]:l[0],"x"===a.axis?l[3]:l[1],l[2],l[3]];a.scrollButtons.enable&&i.prepend(s[0]).append(s[1]).next(".mCSB_scrollTools").prepend(s[2]).append(s[3])},S=function(){var t=e(this),o=t.data(n),a=e("#mCSB_"+o.idx),i=t.css("max-height")||"none",r=-1!==i.indexOf("%"),l=t.css("box-sizing");if("none"!==i){var s=r?t.parent().height()*parseInt(i)/100:parseInt(i);
vendor: 10,000 bytes, line 5
5"border-box"===l&&(s-=t.innerHeight()-t.height()+(t.outerHeight()-t.innerHeight())),a.css("max-height",Math.round(s))}},b=function(){var t=e(this),o=t.data(n),a=e("#mCSB_"+o.idx),i=e("#mCSB_"+o.idx+"_container"),r=[e("#mCSB_"+o.idx+"_dragger_vertical"),e("#mCSB_"+o.idx+"_dragger_horizontal")],l=[a.height()/i.outerHeight(!1),a.width()/i.outerWidth(!1)],c=[parseInt(r[0].css("min-height")),Math.round(l[0]*r[0].parent().height()),parseInt(r[1].css("min-width")),Math.round(l[1]*r[1].parent().width())],d=s&&c[1]<c[0]?c[0]:c[1],u=s&&c[3]<c[2]?c[2]:c[3];r[0].css({height:d,"max-height":r[0].parent().height()-10}).find(".mCSB_dragger_bar").css({"line-height":c[0]+"px"}),r[1].css({width:u,"max-width":r[1].parent().width()-10})},C=function(){var t=e(this),o=t.data(n),a=e("#mCSB_"+o.idx),i=e("#mCSB_"+o.idx+"_container"),r=[e("#mCSB_"+o.idx+"_dragger_vertical"),e("#mCSB_"+o.idx+"_dragger_horizontal")],l=[i.outerHeight(!1)-a.height(),i.outerWidth(!1)-a.width()],s=[l[0]/(r[0].parent().height()-r[0].height()),l[1]/(r[1].parent().width()-r[1].width())];o.scrollRatio={y:s[0],x:s[1]}},y=function(e,t,o){var n=o?d[0]+"_expanded":"",a=e.closest(".mCSB_scrollTools");"active"===t?(e.toggleClass(d[0]+" "+n),a.toggleClass(d[1]),e[0]._draggable=e[0]._draggable?0:1):e[0]._draggable||("hide"===t?(e.removeClass(d[0]),a.removeClass(d[1])):(e.addClass(d[0]),a.addClass(d[1])))},B=function(){var t=e(this),o=t.data(n),a=e("#mCSB_"+o.idx),i=e("#mCSB_"+o.idx+"_container"),r=null==o.overflowed?i.height():i.outerHeight(!1),l=null==o.overflowed?i.width():i.outerWidth(!1);return[r>a.height(),l>a.width()]},T=function(){var t=e(this),o=t.data(n),a=o.opt,i=e("#mCSB_"+o.idx),r=e("#mCSB_"+o.idx+"_container"),l=[e("#mCSB_"+o.idx+"_dragger_vertical"),e("#mCSB_"+o.idx+"_dragger_horizontal")];if(V(t),("x"!==a.axis&&!o.overflowed[0]||"y"===a.axis&&o.overflowed[0])&&(l[0].add(r).css("top",0),Q(t,"_resetY")),"y"!==a.axis&&!o.overflowed[1]||"x"===a.axis&&o.overflowed[1]){var s=dx=0;"rtl"===o.langDir&&(s=i.width()-r.outerWidth(!1),dx=Math.abs(s/o.scrollRatio.x)),r.css("left",s),l[1].css("left",dx),Q(t,"_resetX")}},M=function(){function t(){r=setTimeout(function(){e.event.special.mousewheel?(clearTimeout(r),L.call(o[0])):t()},100)}var o=e(this),a=o.data(n),i=a.opt;if(!a.bindEvents){if(D.call(this),i.contentTouchScroll&&R.call(this),E.call(this),i.mouseWheel.enable){var r;t()}P.call(this),H.call(this),i.advanced.autoScrollOnFocus&&z.call(this),i.scrollButtons.enable&&U.call(this),i.keyboard.enable&&X.call(this),a.bindEvents=!0}},k=function(){var t=e(this),o=t.data(n),a=o.opt,i=n+"_"+o.idx,r=".mCSB_"+o.idx+"_scrollbar",l=e("#mCSB_"+o.idx+",#mCSB_"+o.idx+"_container,#mCSB_"+o.idx+"_container_wrapper,"+r+" ."+d[12]+",#mCSB_"+o.idx+"_dragger_vertical,#mCSB_"+o.idx+"_dragger_horizontal,"+r+">a"),s=e("#mCSB_"+o.idx+"_container");a.advanced.releaseDraggableSelectors&&l.add(e(a.advanced.releaseDraggableSelectors)),o.bindEvents&&(e(document).unbind("."+i),l.each(function(){e(this).unbind("."+i)}),clearTimeout(t[0]._focusTimeout),K(t[0],"_focusTimeout"),clearTimeout(o.sequential.step),K(o.sequential,"step"),clearTimeout(s[0].onCompleteTimeout),K(s[0],"onCompleteTimeout"),o.bindEvents=!1)},O=function(t){var o=e(this),a=o.data(n),i=a.opt,r=e("#mCSB_"+a.idx+"_container_wrapper"),l=r.length?r:e("#mCSB_"+a.idx+"_container"),s=[e("#mCSB_"+a.idx+"_scrollbar_vertical"),e("#mCSB_"+a.idx+"_scrollbar_horizontal")],c=[s[0].find(".mCSB_dragger"),s[1].find(".mCSB_dragger")];"x"!==i.axis&&(a.overflowed[0]&&!t?(s[0].add(c[0]).add(s[0].children("a")).css("display","block"),l.removeClass(d[8]+" "+d[10])):(i.alwaysShowScrollbar?(2!==i.alwaysShowScrollbar&&c[0].css("display","none"),l.removeClass(d[10])):(s[0].css("display","none"),l.addClass(d[10])),l.addClass(d[8]))),"y"!==i.axis&&(a.overflowed[1]&&!t?(s[1].add(c[1]).add(s[1].children("a")).css("display","block"),l.removeClass(d[9]+" "+d[11])):(i.alwaysShowScrollbar?(2!==i.alwaysShowScrollbar&&c[1].css("display","none"),l.removeClass(d[11])):(s[1].css("display","none"),l.addClass(d[11])),l.addClass(d[9]))),a.overflowed[0]||a.overflowed[1]?o.removeClass(d[5]):o.addClass(d[5])},I=function(e){var t=e.type;switch(t){case"pointerdown":case"MSPointerDown":case"pointermove":case"MSPointerMove":case"pointerup":case"MSPointerUp":return e.target.ownerDocument!==document?[e.originalEvent.screenY,e.originalEvent.screenX,!1]:[e.originalEvent.pageY,e.originalEvent.pageX,!1];case"touchstart":case"touchmove":case"touchend":var o=e.originalEvent.touches[0]||e.originalEvent.changedTouches[0],n=e.originalEvent.touches.length||e.originalEvent.changedTouches.length;return e.target.ownerDocument!==document?[o.screenY,o.screenX,n>1]:[o.pageY,o.pageX,n>1];default:return[e.pageY,e.pageX,!1]}},D=function(){function t(e){var t=m.find("iframe");if(t.length){var o=e?"auto":"none";t.css("pointer-events",o)}}function o(e,t,o,n){if(m[0].idleTimer=u.scrollInertia<233?250:0,a.attr("id")===h[1])var i="x",r=(a[0].offsetLeft-t+n)*d.scrollRatio.x;else var i="y",r=(a[0].offsetTop-e+o)*d.scrollRatio.y;Q(l,r.toString(),{dir:i,drag:!0})}var a,i,r,l=e(this),d=l.data(n),u=d.opt,f=n+"_"+d.idx,h=["mCSB_"+d.idx+"_dragger_vertical","mCSB_"+d.idx+"_dragger_horizontal"],m=e("#mCSB_"+d.idx+"_container"),p=e("#"+h[0]+",#"+h[1]),g=u.advanced.releaseDraggableSelectors?p.add(e(u.advanced.releaseDraggableSelectors)):p;p.bind("mousedown."+f+" touchstart."+f+" pointerdown."+f+" MSPointerDown."+f,function(o){if(o.stopImmediatePropagation(),o.preventDefault(),$(o)){c=!0,s&&(document.onselectstart=function(){return!1}),t(!1),V(l),a=e(this);var n=a.offset(),d=I(o)[0]-n.top,f=I(o)[1]-n.left,h=a.height()+n.top,m=a.width()+n.left;h>d&&d>0&&m>f&&f>0&&(i=d,r=f),y(a,"active",u.autoExpandScrollbar)}}).bind("touchmove."+f,function(e){e.stopImmediatePropagation(),e.preventDefault();var t=a.offset(),n=I(e)[0]-t.top,l=I(e)[1]-t.left;o(i,r,n,l)}),e(document).bind("mousemove."+f+" pointermove."+f+" MSPointerMove."+f,function(e){if(a){var t=a.offset(),n=I(e)[0]-t.top,l=I(e)[1]-t.left;if(i===n)return;o(i,r,n,l)}}).add(g).bind("mouseup."+f+" touchend."+f+" pointerup."+f+" MSPointerUp."+f,function(e){a&&(y(a,"active",u.autoExpandScrollbar),a=null),c=!1,s&&(document.onselectstart=null),t(!0)})},R=function(){function o(e){if(!ee(e)||c||I(e)[2])return void(t=0);t=1,S=0,b=0,C.removeClass("mCS_touch_action");var o=k.offset();d=I(e)[0]-o.top,u=I(e)[1]-o.left,A=[I(e)[0],I(e)[1]]}function a(e){if(ee(e)&&!c&&!I(e)[2]&&(e.stopImmediatePropagation(),!b||S)){p=G();var t=M.offset(),o=I(e)[0]-t.top,n=I(e)[1]-t.left,a="mcsLinearOut";if(D.push(o),R.push(n),A[2]=Math.abs(I(e)[0]-A[0]),A[3]=Math.abs(I(e)[1]-A[1]),y.overflowed[0])var i=O[0].parent().height()-O[0].height(),r=d-o>0&&o-d>-(i*y.scrollRatio.y)&&(2*A[3]<A[2]||"yx"===B.axis);if(y.overflowed[1])var l=O[1].parent().width()-O[1].width(),f=u-n>0&&n-u>-(l*y.scrollRatio.x)&&(2*A[2]<A[3]||"yx"===B.axis);r||f?(e.preventDefault(),S=1):(b=1,C.addClass("mCS_touch_action")),_="yx"===B.axis?[d-o,u-n]:"x"===B.axis?[null,u-n]:[d-o,null],k[0].idleTimer=250,y.overflowed[0]&&s(_[0],E,a,"y","all",!0),y.overflowed[1]&&s(_[1],E,a,"x",L,!0)}}function i(e){if(!ee(e)||c||I(e)[2])return void(t=0);t=1,e.stopImmediatePropagation(),V(C),m=G();var o=M.offset();f=I(e)[0]-o.top,h=I(e)[1]-o.left,D=[],R=[]}function r(e){if(ee(e)&&!c&&!I(e)[2]){e.stopImmediatePropagation(),S=0,b=0,g=G();var t=M.offset(),o=I(e)[0]-t.top,n=I(e)[1]-t.left;if(!(g-p>30)){x=1e3/(g-m);var a="mcsEaseOut",i=2.5>x,r=i?[D[D.length-2],R[R.length-2]]:[0,0];v=i?[o-r[0],n-r[1]]:[o-f,n-h];var d=[Math.abs(v[0]),Math.abs(v[1])];x=i?[Math.abs(v[0]/4),Math.abs(v[1]/4)]:[x,x];var u=[Math.abs(k[0].offsetTop)-v[0]*l(d[0]/x[0],x[0]),Math.abs(k[0].offsetLeft)-v[1]*l(d[1]/x[1],x[1])];_="yx"===B.axis?[u[0],u[1]]:"x"===B.axis?[null,u[1]]:[u[0],null],w=[4*d[0]+B.scrollInertia,4*d[1]+B.scrollInertia];var C=parseInt(B.contentTouchScroll)||0;_[0]=d[0]>C?_[0]:0,_[1]=d[1]>C?_[1]:0,y.overflowed[0]&&s(_[0],w[0],a,"y",L,!1),y.overflowed[1]&&s(_[1],w[1],a,"x",L,!1)}}}function l(e,t){var o=[1.5*t,2*t,t/1.5,t/2];return e>90?t>4?o[0]:o[3]:e>60?t>3?o[3]:o[2]:e>30?t>8?o[1]:t>6?o[0]:t>4?t:o[2]:t>8?t:o[3]}function s(e,t,o,n,a,i){e&&Q(C,e.toString(),{dur:t,scrollEasing:o,dir:n,overwrite:a,drag:i})}var d,u,f,h,m,p,g,v,x,_,w,S,b,C=e(this),y=C.data(n),B=y.opt,T=n+"_"+y.idx,M=e("#mCSB_"+y.idx),k=e("#mCSB_"+y.idx+"_container"),O=[e("#mCSB_"+y.idx+"_dragger_vertical"),e("#mCSB_"+y.idx+"_dragger_horizontal")],D=[],R=[],E=0,L="yx"===B.axis?"none":"all",A=[],P=k.find("iframe"),z=["touchstart."+T+" pointerdown."+T+" MSPointerDown."+T,"touchmove."+T+" pointermove."+T+" MSPointerMove."+T,"touchend."+T+" pointerup."+T+" MSPointerUp."+T];k.bind(z[0],function(e){o(e)}).bind(z[1],function(e){a(e)}),M.bind(z[0],function(e){i(e)}).bind(z[2],function(e){r(e)}),P.length&&P.each(function(){e(this).load(function(){W(this)&&e(this.contentDocument||this.contentWindow.document).bind(z[0],function(e){o(e),i(e)}).bind(z[1],function(e){a(e)}).bind(z[2],function(e){r(e)})})})},E=function(){function o(){return window.getSelection?window.getSelection().toString():document.selection&&"Control"!=document.selection.type?document.selection.createRange().text:0}function a(e,t,o){d.type=o&&i?"stepped":"stepless",d.scrollAmount=10,Y(r,e,t,"mcsLinearOut",o?60:null)}var i,r=e(this),l=r.data(n),s=l.opt,d=l.sequential,u=n+"_"+l.idx,f=e("#mCSB_"+l.idx+"_container"),h=f.parent();f.bind("mousedown."+u,function(e){t||i||(i=1,c=!0)}).add(document).bind("mousemove."+u,function(e){if(!t&&i&&o()){var n=f.offset(),r=I(e)[0]-n.top+f[0].offsetTop,c=I(e)[1]-n.left+f[0].offsetLeft;r>0&&r<h.height()&&c>0&&c<h.width()?d.step&&a("off",null,"stepped"):("x"!==s.axis&&l.overflowed[0]&&(0>r?a("on",38):r>h.height()&&a("on",40)),"y"!==s.axis&&l.overflowed[1]&&(0>c?a("on",37):c>h.width()&&a("on",39)))}}).bind("mouseup."+u,function(e){t||(i&&(i=0,a("off",null)),c=!1)})},L=function(){function t(t,n){if(V(o),!A(o,t.target)){var r="auto"!==i.mouseWheel.deltaFactor?parseInt(i.mouseWheel.deltaFactor):s&&t.deltaFactor<100?100:t.deltaFactor||100;
5if("x"===i.axis||"x"===i.mouseWheel.axis)var d="x",u=[Math.round(r*a.scrollRatio.x),parseInt(i.mouseWheel.scrollAmount)],f="auto"!==i.mouseWheel.scrollAmount?u[1]:u[0]>=l.width()?.9*l.width():u[0],h=Math.abs(e("#mCSB_"+a.idx+"_container")[0].offsetLeft),m=c[1][0].offsetLeft,p=c[1].parent().width()-c[1].width(),g=t.deltaX||t.deltaY||n;else var d="y",u=[Math.round(r*a.scrollRatio.y),parseInt(i.mouseWheel.scrollAmount)],f="auto"!==i.mouseWheel.scrollAmount?u[1]:u[0]>=l.height()?.9*l.height():u[0],h=Math.abs(e("#mCSB_"+a.idx+"_container")[0].offsetTop),m=c[0][0].offsetTop,p=c[0].parent().height()-c[0].height(),g=t.deltaY||n;"y"===d&&!a.overflowed[0]||"x"===d&&!a.overflowed[1]||((i.mouseWheel.invert||t.webkitDirectionInvertedFromDevice)&&(g=-g),i.mouseWheel.normalizeDelta&&(g=0>g?-1:1),(g>0&&0!==m||0>g&&m!==p||i.mouseWheel.preventDefault)&&(t.stopImmediatePropagation(),t.preventDefault()),Q(o,(h-g*f).toString(),{dir:d}))}}if(e(this).data(n)){var o=e(this),a=o.data(n),i=a.opt,r=n+"_"+a.idx,l=e("#mCSB_"+a.idx),c=[e("#mCSB_"+a.idx+"_dragger_vertical"),e("#mCSB_"+a.idx+"_dragger_horizontal")],d=e("#mCSB_"+a.idx+"_container").find("iframe");d.length&&d.each(function(){e(this).load(function(){W(this)&&e(this.contentDocument||this.contentWindow.document).bind("mousewheel."+r,function(e,o){t(e,o)})})}),l.bind("mousewheel."+r,function(e,o){t(e,o)})}},W=function(e){var t=null;try{var o=e.contentDocument||e.contentWindow.document;t=o.body.innerHTML}catch(n){}return null!==t},A=function(t,o){var a=o.nodeName.toLowerCase(),i=t.data(n).opt.mouseWheel.disableOver,r=["select","textarea"];return e.inArray(a,i)>-1&&!(e.inArray(a,r)>-1&&!e(o).is(":focus"))},P=function(){var t=e(this),o=t.data(n),a=n+"_"+o.idx,i=e("#mCSB_"+o.idx+"_container"),r=i.parent(),l=e(".mCSB_"+o.idx+"_scrollbar ."+d[12]);l.bind("touchstart."+a+" pointerdown."+a+" MSPointerDown."+a,function(e){c=!0}).bind("touchend."+a+" pointerup."+a+" MSPointerUp."+a,function(e){c=!1}).bind("click."+a,function(n){if(e(n.target).hasClass(d[12])||e(n.target).hasClass("mCSB_draggerRail")){V(t);var a=e(this),l=a.find(".mCSB_dragger");if(a.parent(".mCSB_scrollTools_horizontal").length>0){if(!o.overflowed[1])return;var s="x",c=n.pageX>l.offset().left?-1:1,u=Math.abs(i[0].offsetLeft)-.9*c*r.width()}else{if(!o.overflowed[0])return;var s="y",c=n.pageY>l.offset().top?-1:1,u=Math.abs(i[0].offsetTop)-.9*c*r.height()}Q(t,u.toString(),{dir:s,scrollEasing:"mcsEaseInOut"})}})},z=function(){var t=e(this),o=t.data(n),a=o.opt,i=n+"_"+o.idx,r=e("#mCSB_"+o.idx+"_container"),l=r.parent();r.bind("focusin."+i,function(o){var n=e(document.activeElement),i=r.find(".mCustomScrollBox").length,s=0;n.is(a.advanced.autoScrollOnFocus)&&(V(t),clearTimeout(t[0]._focusTimeout),t[0]._focusTimer=i?(s+17)*i:0,t[0]._focusTimeout=setTimeout(function(){var e=[oe(n)[0],oe(n)[1]],o=[r[0].offsetTop,r[0].offsetLeft],i=[o[0]+e[0]>=0&&o[0]+e[0]<l.height()-n.outerHeight(!1),o[1]+e[1]>=0&&o[0]+e[1]<l.width()-n.outerWidth(!1)],c="yx"!==a.axis||i[0]||i[1]?"all":"none";"x"===a.axis||i[0]||Q(t,e[0].toString(),{dir:"y",scrollEasing:"mcsEaseInOut",overwrite:c,dur:s}),"y"===a.axis||i[1]||Q(t,e[1].toString(),{dir:"x",scrollEasing:"mcsEaseInOut",overwrite:c,dur:s})},t[0]._focusTimer))})},H=function(){var t=e(this),o=t.data(n),a=n+"_"+o.idx,i=e("#mCSB_"+o.idx+"_container").parent();i.bind("scroll."+a,function(t){(0!==i.scrollTop()||0!==i.scrollLeft())&&e(".mCSB_"+o.idx+"_scrollbar").css("visibility","hidden")})},U=function(){var t=e(this),o=t.data(n),a=o.opt,i=o.sequential,r=n+"_"+o.idx,l=".mCSB_"+o.idx+"_scrollbar",s=e(l+">a");s.bind("mousedown."+r+" touchstart."+r+" pointerdown."+r+" MSPointerDown."+r+" mouseup."+r+" touchend."+r+" pointerup."+r+" MSPointerUp."+r+" mouseout."+r+" pointerout."+r+" MSPointerOut."+r+" click."+r,function(n){function r(e,o){i.scrollAmount=a.snapAmount||a.scrollButtons.scrollAmount,Y(t,e,o)}if(n.preventDefault(),$(n)){var l=e(this).attr("class");switch(i.type=a.scrollButtons.scrollType,n.type){case"mousedown":case"touchstart":case"pointerdown":case"MSPointerDown":if("stepped"===i.type)return;c=!0,o.tweenRunning=!1,r("on",l);break;case"mouseup":case"touchend":case"pointerup":case"MSPointerUp":case"mouseout":case"pointerout":case"MSPointerOut":if("stepped"===i.t
vendor: 4,870 bytes, lines 5-6
5ype)return;c=!1,i.dir&&r("off",l);break;case"click":if("stepped"!==i.type||o.tweenRunning)return;r("on",l)}}})},X=function(){function t(t){function n(e,t){r.type=i.keyboard.scrollType,r.scrollAmount=i.snapAmount||i.keyboard.scrollAmount,"stepped"===r.type&&a.tweenRunning||Y(o,e,t)}switch(t.type){case"blur":a.tweenRunning&&r.dir&&n("off",null);break;case"keydown":case"keyup":var l=t.keyCode?t.keyCode:t.which,s="on";if("x"!==i.axis&&(38===l||40===l)||"y"!==i.axis&&(37===l||39===l)){if((38===l||40===l)&&!a.overflowed[0]||(37===l||39===l)&&!a.overflowed[1])return;"keyup"===t.type&&(s="off"),e(document.activeElement).is(u)||(t.preventDefault(),t.stopImmediatePropagation(),n(s,l))}else if(33===l||34===l){if((a.overflowed[0]||a.overflowed[1])&&(t.preventDefault(),t.stopImmediatePropagation()),"keyup"===t.type){V(o);var f=34===l?-1:1;if("x"===i.axis||"yx"===i.axis&&a.overflowed[1]&&!a.overflowed[0])var h="x",m=Math.abs(c[0].offsetLeft)-.9*f*d.width();else var h="y",m=Math.abs(c[0].offsetTop)-.9*f*d.height();Q(o,m.toString(),{dir:h,scrollEasing:"mcsEaseInOut"})}}else if((35===l||36===l)&&!e(document.activeElement).is(u)&&((a.overflowed[0]||a.overflowed[1])&&(t.preventDefault(),t.stopImmediatePropagation()),"keyup"===t.type)){if("x"===i.axis||"yx"===i.axis&&a.overflowed[1]&&!a.overflowed[0])var h="x",m=35===l?Math.abs(d.width()-c.outerWidth(!1)):0;else var h="y",m=35===l?Math.abs(d.height()-c.outerHeight(!1)):0;Q(o,m.toString(),{dir:h,scrollEasing:"mcsEaseInOut"})}}}var o=e(this),a=o.data(n),i=a.opt,r=a.sequential,l=n+"_"+a.idx,s=e("#mCSB_"+a.idx),c=e("#mCSB_"+a.idx+"_container"),d=c.parent(),u="input,textarea,select,datalist,keygen,[contenteditable='true']",f=c.find("iframe"),h=["blur."+l+" keydown."+l+" keyup."+l];f.length&&f.each(function(){e(this).load(function(){W(this)&&e(this.contentDocument||this.contentWindow.document).bind(h[0],function(e){t(e)})})}),s.attr("tabindex","0").bind(h[0],function(e){t(e)})},Y=function(t,o,a,i,r){function l(e){var o="stepped"!==f.type,n=r?r:e?o?p/1.5:g:1e3/60,a=e?o?7.5:40:2.5,s=[Math.abs(h[0].offsetTop),Math.abs(h[0].offsetLeft)],d=[c.scrollRatio.y>10?10:c.scrollRatio.y,c.scrollRatio.x>10?10:c.scrollRatio.x],u="x"===f.dir[0]?s[1]+f.dir[1]*d[1]*a:s[0]+f.dir[1]*d[0]*a,m="x"===f.dir[0]?s[1]+f.dir[1]*parseInt(f.scrollAmount):s[0]+f.dir[1]*parseInt(f.scrollAmount),v="auto"!==f.scrollAmount?m:u,x=i?i:e?o?"mcsLinearOut":"mcsEaseInOut":"mcsLinear",_=!!e;return e&&17>n&&(v="x"===f.dir[0]?s[1]:s[0]),Q(t,v.toString(),{dir:f.dir[0],scrollEasing:x,dur:n,onComplete:_}),e?void(f.dir=!1):(clearTimeout(f.step),void(f.step=setTimeout(function(){l()},n)))}function s(){clearTimeout(f.step),K(f,"step"),V(t)}var c=t.data(n),u=c.opt,f=c.sequential,h=e("#mCSB_"+c.idx+"_container"),m="stepped"===f.type,p=u.scrollInertia<26?26:u.scrollInertia,g=u.scrollInertia<1?17:u.scrollInertia;switch(o){case"on":if(f.dir=[a===d[16]||a===d[15]||39===a||37===a?"x":"y",a===d[13]||a===d[15]||38===a||37===a?-1:1],V(t),te(a)&&"stepped"===f.type)return;l(m);break;case"off":s(),(m||c.tweenRunning&&f.dir)&&l(!0)}},j=function(t){var o=e(this).data(n).opt,a=[];return"function"==typeof t&&(t=t()),t instanceof Array?a=t.length>1?[t[0],t[1]]:"x"===o.axis?[null,t[0]]:[t[0],null]:(a[0]=t.y?t.y:t.x||"x"===o.axis?null:t,a[1]=t.x?t.x:t.y||"y"===o.axis?null:t),"function"==typeof a[0]&&(a[0]=a[0]()),"function"==typeof a[1]&&(a[1]=a[1]()),a},F=function(t,o){if(null!=t&&"undefined"!=typeof t){var a=e(this),i=a.data(n),r=i.opt,l=e("#mCSB_"+i.idx+"_container"),s=l.parent(),c=typeof t;o||(o="x"===r.axis?"x":"y");var d="x"===o?l.outerWidth(!1):l.outerHeight(!1),f="x"===o?l[0].offsetLeft:l[0].offsetTop,h="x"===o?"left":"top";switch(c){case"function":return t();case"object":var m=t.jquery?t:e(t);if(!m.length)return;return"x"===o?oe(m)[1]:oe(m)[0];case"string":case"number":if(te(t))return Math.abs(t);if(-1!==t.indexOf("%"))return Math.abs(d*parseInt(t)/100);if(-1!==t.indexOf("-="))return Math.abs(f-parseInt(t.split("-=")[1]));if(-1!==t.indexOf("+=")){var p=f+parseInt(t.split("+=")[1]);return p>=0?0:Math.abs(p)}if(-1!==t.indexOf("px")&&te(t.split("px")[0]))return Math.abs(t.split("px")[0]);if("top"===t||"left"===t)return 0;if("bottom"===t)return Math.abs(s.height()-l.outerHeight(!1));if("right"===t)return Math.abs(s.width()-l.outerWidth(!1));if("first"===t||"last"===t){var m=l.find(":"+t);return"x"===o?oe(m)[1]:oe(m)[0]}return e(t).length?"x"===o?oe(e(t))[1]:oe(e(t))[0]:(l.css(h,t),void u.update.call(null,a[0]))}}},q=function(t){function o(){return clearTimeout(h[0].autoUpdate),0===s.parents("html").length?void(s=null):void(h[0].autoUpdate=setTimeout(function(){ 6return f.advanced.updateOnSelectorChange&&(m=r(),m!==w)?(l(3),void(w=m)):(f.advanced.updateOnContentResize&&(p=[h.outerHeight(!1),h.outerWidth(!1),v.height(),v.width(),_()[0],_()[1]],(p[0]!==S[0]||p[1]!==S[1]||p[2]!==S[2]||p[3]!==S[3]||p[4]!==S[4]||p[5]!==S[5])&&
6(l(p[0]!==S[0]||p[1]!==S[1]),S=p)),f.advanced.updateOnImageLoad&&(g=a(),g!==b&&(h.find("img").each(function(){i(this)}),b=g)),void((f.advanced.updateOnSelectorChange||f.advanced.updateOnContentResize||f.advanced.updateOnImageLoad)&&o()))},f.advanced.autoUpdateTimeout))}function a(){var e=0;return f.advanced.updateOnImageLoad&&(e=h.find("img").length),e}function i(t){function o(e,t){return function(){return t.apply(e,arguments)}}function n(){this.onload=null,e(t).addClass(d[2]),l(2)}if(e(t).hasClass(d[2]))return void l();var a=new Image;a.onload=o(a,n),a.src=t.src}function r(){f.advanced.updateOnSelectorChange===!0&&(f.advanced.updateOnSelectorChange="*");var t=0,o=h.find(f.advanced.updateOnSelectorChange);return f.advanced.updateOnSelectorChange&&o.length>0&&o.each(function(){t+=e(this).height()+e(this).width()}),t}function l(e){clearTimeout(h[0].autoUpdate),u.update.call(null,s[0],e)}var s=e(this),c=s.data(n),f=c.opt,h=e("#mCSB_"+c.idx+"_container");if(t)return clearTimeout(h[0].autoUpdate),void K(h[0],"autoUpdate");var m,p,g,v=h.parent(),x=[e("#mCSB_"+c.idx+"_scrollbar_vertical"),e("#mCSB_"+c.idx+"_scrollbar_horizontal")],_=function(){return[x[0].is(":visible")?x[0].outerHeight(!0):0,x[1].is(":visible")?x[1].outerWidth(!0):0]},w=r(),S=[h.outerHeight(!1),h.outerWidth(!1),v.height(),v.width(),_()[0],_()[1]],b=a();o()},N=function(e,t,o){return Math.round(e/t)*t-o},V=function(t){var o=t.data(n),a=e("#mCSB_"+o.idx+"_container,#mCSB_"+o.idx+"_container_wrapper,#mCSB_"+o.idx+"_dragger_vertical,#mCSB_"+o.idx+"_dragger_horizontal");a.each(function(){J.call(this)})},Q=function(t,o,a){function i(e){return s&&c.callbacks[e]&&"function"==typeof c.callbacks[e]}function r(){return[c.callbacks.alwaysTriggerOffsets||_>=w[0]+b,c.callbacks.alwaysTriggerOffsets||-C>=_]}function l(){var e=[h[0].offsetTop,h[0].offsetLeft],o=[v[0].offsetTop,v[0].offsetLeft],n=[h.outerHeight(!1),h.outerWidth(!1)],i=[f.height(),f.width()];t[0].mcs={content:h,top:e[0],left:e[1],draggerTop:o[0],draggerLeft:o[1],topPct:Math.round(100*Math.abs(e[0])/(Math.abs(n[0])-i[0])),leftPct:Math.round(100*Math.abs(e[1])/(Math.abs(n[1])-i[1])),direction:a.dir}}var s=t.data(n),c=s.opt,d={trigger:"internal",dir:"y",scrollEasing:"mcsEaseOut",drag:!1,dur:c.scrollInertia,overwrite:"all",callbacks:!0,onStart:!0,onUpdate:!0,onComplete:!0},a=e.extend(d,a),u=[a.dur,a.drag?0:a.dur],f=e("#mCSB_"+s.idx),h=e("#mCSB_"+s.idx+"_container"),m=h.parent(),p=c.callbacks.onTotalScrollOffset?j.call(t,c.callbacks.onTotalScrollOffset):[0,0],g=c.callbacks.onTotalScrollBackOffset?j.call(t,c.callbacks.onTotalScrollBackOffset):[0,0];if(s.trigger=a.trigger,(0!==m.scrollTop()||0!==m.scrollLeft())&&(e(".mCSB_"+s.idx+"_scrollbar").css("visibility","visible"),m.scrollTop(0).scrollLeft(0)),"_resetY"!==o||s.contentReset.y||(i("onOverflowYNone")&&c.callbacks.onOverflowYNone.call(t[0]),s.contentReset.y=1),"_resetX"!==o||s.contentReset.x||(i("onOverflowXNone")&&c.callbacks.onOverflowXNone.call(t[0]),s.contentReset.x=1),"_resetY"!==o&&"_resetX"!==o){switch(!s.contentReset.y&&t[0].mcs||!s.overflowed[0]||(i("onOverflowY")&&c.callbacks.onOverflowY.call(t[0]),s.contentReset.x=null),!s.contentReset.x&&t[0].mcs||!s.overflowed[1]||(i("onOverflowX")&&c.callbacks.onOverflowX.call(t[0]),s.contentReset.x=null),c.snapAmount&&(o=N(o,c.snapAmount,c.snapOffset)),a.dir){case"x":var v=e("#mCSB_"+s.idx+"_dragger_horizontal"),x="left",_=h[0].offsetLeft,w=[f.width()-h.outerWidth(!1),v.parent().width()-v.width()],S=[o,0===o?0:o/s.scrollRatio.x],b=p[1],C=g[1],B=b>0?b/s.scrollRatio.x:0,T=C>0?C/s.scrollRatio.x:0;break;case"y":var v=e("#mCSB_"+s.idx+"_dragger_vertical"),x="top",_=h[0].offsetTop,w=[f.height()-h.outerHeight(!1),v.parent().height()-v.height()],S=[o,0===o?0:o/s.scrollRatio.y],b=p[0],C=g[0],B=b>0?b/s.scrollRatio.y:0,T=C>0?C/s.scrollRatio.y:0}S[1]<0||0===S[0]&&0===S[1]?S=[0,0]:S[1]>=w[1]?S=[w[0],w[1]]:S[0]=-S[0],t[0].mcs||(l(),i("onInit")&&c.callbacks.onInit.call(t[0])),clearTimeout(h[0].onCompleteTimeout),(s.tweenRunning||!(0===_&&S[0]>=0||_===w[0]&&S[0]<=w[0]))&&(Z(v[0],x,Math.round(S[1]),u[1],a.scrollEasing),Z(h[0],x,Math.round(S[0]),u[0],a.scrollEasing,a.overwrite,{onStart:function(){a.callbacks&&a.onStart&&!s.tweenRunning&&(i("onScrollStart")&&(l(),c.callbacks.onScrollStart.call(t[0])),s.tweenRunning=!0,y(v),s.cbOffsets=r())},onUpdate:function(){a.callbacks&&a.onUpdate&&i("whileScrolling")&&(l(),c.callbacks.whileScrolling.call(t[0]))},onComplete:function(){if(a.callbacks&&a.onComplete){"yx"===c.axis&&clearTimeout(h[0].onCompleteTimeout);var e=h[0].idleTimer||0;h[0].onCompleteTimeout=setTimeout(function(){i("onScroll")&&(l(),c.callbacks.onScroll.call(t[0])),i("onTotalScroll")&&S[1]>=w[1]-B&&s.cbOffsets[0]&&(l(),c.callbacks.onTotalScroll.call(t[0])),i("onTotalScrollBack")&&S[1]<=T&&s.cbOffsets[1]&&(l(),c.callbacks.onTotalScrollBack.call(t[0])),s.tweenRunning=!1,h[0].idleTimer=0,y(v,"hide")},e)}}}))}},Z=function(e,t,o,n,a,i,r){function l(){S.stop||(x||m.call(),x=G()-v,s(),x>=S.time&&(S.time=x>S.time?x+f-(x-S.time):x+f-1,S.time<x+1&&(S.time=x+1)),S.time<n?S.id=h(l):g.call())}function s(){n>0?(S.currVal=u(S.time,_,b,n,a),w[t]=Math.round(S.currVal)+"px"):w[t]=o+"px",p.call()}function c(){f=1e3/60,S.time=x+f,h=window.requestAnimationFrame?window.requestAnimationFrame:function(e){return s(),setTimeout(e,.01)},S.id=h(l)}function d(){null!=S.id&&(window.requestAnimationFrame?window.cancelAnimationFrame(S.id):clearTimeout(S.id),S.id=null)}function u(e,t,o,n,a){switch(a){case"linear":case"mcsLinear":return o*e/n+t;
6case"mcsLinearOut":return e/=n,e--,o*Math.sqrt(1-e*e)+t;case"easeInOutSmooth":return e/=n/2,1>e?o/2*e*e+t:(e--,-o/2*(e*(e-2)-1)+t);case"easeInOutStrong":return e/=n/2,1>e?o/2*Math.pow(2,10*(e-1))+t:(e--,o/2*(-Math.pow(2,-10*e)+2)+t);case"easeInOut":case"mcsEaseInOut":return e/=n/2,1>e?o/2*e*e*e+t:(e-=2,o/2*(e*e*e+2)+t);case"easeOutSmooth":return e/=n,e--,-o*(e*e*e*e-1)+t;case"easeOutStrong":return o*(-Math.pow(2,-10*e/n)+1)+t;case"easeOut":case"mcsEaseOut":default:var i=(e/=n)*e,r=i*e;return t+o*(.499999999999997*r*i+-2.5*i*i+5.5*r+-6.5*i+4*e)}}e._mTween||(e._mTween={top:{},left:{}});var f,h,r=r||{},m=r.onStart||function(){},p=r.onUpdate||function(){},g=r.onComplete||function(){},v=G(),x=0,_=e.offsetTop,w=e.style,S=e._mTween[t];"left"===t&&(_=e.offsetLeft);var b=o-_;S.stop=0,"none"!==i&&d(),c()},G=function(){return window.performance&&window.performance.now?window.performance.now():window.performance&&window.performance.webkitNow?window.performance.webkitNow():Date.now?Date.now():(new Date).getTime()},J=function(){var e=this;e._mTween||(e._mTween={top:{},left:{}});for(var t=["top","left"],o=0;o<t.length;o++){var n=t[o];e._mTween[n].id&&(window.requestAnimationFrame?window.cancelAnimationFrame(e._mTween[n].id):clearTimeout(e._mTween[n].id),e._mTween[n].id=null,e._mTween[n].stop=1)}},K=function(e,t){try{delete e[t]}catch(o){e[t]=null}},$=function(e){return!(e.which&&1!==e.which)},ee=function(e){var t=e.originalEvent.pointerType;return!(t&&"touch"!==t&&2!==t)},te=function(e){return!isNaN(parseFloat(e))&&isFinite(e)},oe=function(e){var t=e.parents(".mCSB_container");return[e.offset().top-t.offset().top,e.offset().left-t.offset().left]};e.fn[o]=function(t){return u[t]?u[t].apply(this,Array.prototype.slice.call(arguments,1)):"object"!=typeof t&&t?void e.error("Method "+t+" does not exist"):u.init.apply(this,arguments)},e[o]=function(t){return u[t]?u[t].apply(this,Array.prototype.slice.call(arguments,1)):"object"!=typeof t&&t?void e.error("Method "+t+" does not exist"):u.init.apply(this,arguments)},e[o].defaults=i,window[o]=!0,e(window).on("load",function(){e(a)[o](),e.extend(e.expr[":"],{mcsInView:e.expr[":"].mcsInView||function(t){var o,n,a=e(t),i=a.parents(".mCSB_container");if(i.length)return o=i.parent(),n=[i[0].offsetTop,i[0].offsetLeft],n[0]+oe(a)[0]>=0&&n[0]+oe(a)[0]<o.height()-a.outerHeight(!1)&&n[1]+oe(a)[1]>=0&&n[1]+oe(a)[1]<o.width()-a.outerWidth(!1)},mcsOverflow:e.expr[":"].mcsOverflow||function(t){var o=e(t).data(n);if(o)return o.overflowed[0]||o.overflowed[1]}})})})});;;; 7!function(t,i){"use strict";var e=function(){this.VERSION="0.0.1",this.AUTHOR="Tarpit Grover",this.$body=i("body")};e.prototype.setUserOS=function(){var t="";-1!=navigator.appVersion.indexOf("Win")&&(t="windows"),-1!=navigator.appVersion.indexOf("Mac")&&(t="mac"),-1!=navigator.appVersion.indexOf("X11")&&(t="unix"),-1!=navigator.appVersion.indexOf("Linux")&&(t="linux"),this.$body.addClass(t)},e.prototype.setUserAgent=function(){navigator.userAgent.match(/Android|BlackBerry|iPhone|iPad|iPod|Opera Mini|IEMobile/i)?this.$body.addClass("mobile"):(this.$body.addClass("desktop"),navigator.userAgent.match(/MSIE 9.0/)&&this.$body.addClass("ie9"))},e.prototype.initFastClick=function(){i(function(){FastClick.attach(document.body)})},e.prototype.setHeader=function(){},e.prototype.setBackgroundImage=function(){i(".background-image-holder").each(function(){var t=i(this).children("img").attr("src");i(this).css("background",'url("'+t+'")'),i(this).children("img").hide(),i(this).css("background-position","initial")}),setTimeout(function(){i(".background-image-holder").each(function(){i(this).addClass("animated fadeIn")})},200)},e.prototype.sliderSetup=function(){i(".slider-all-controls").flexslider({}),i(".slider-paging-controls").flexslider({animation:"slide",directionNav:!1}),i(".slider-arrow-controls").flexslider({controlNav:!1}),i(".slider-thumb-controls .slides li").each(function(){var t=i(this).find("img").attr("src");i(this).attr("data-thumb",t)}),i(".slider-thumb-controls").flexslider({animation:"slide",controlNav:"thumbnails",directionNav:!0}),i(".logo-carousel").flexslider({minItems:1,maxItems:4,move:1,itemWidth:200,itemMargin:0,animation:"slide",slideshow:!0,slideshowSpeed:3e3,directionNav:!1,controlNav:!1})},e.prototype.navSetup=function(){function e(){t.pageYOffset>50?mr_navFixed||(mr_nav.addClass("fixed"),mr_navFixed=!0):mr_navFixed&&(mr_navFixed=!1,mr_nav.removeClass("fixed"))}i("nav").hasClass("fixed")||i("nav").hasClass("absolute")?i("body").addClass("nav-is-overlay"):(i(".nav-container").css("min-height",i("nav").outerHeight(!0)),i(t).resize(function(){i(".nav-container").css("min-height",i("nav").outerHeight(!0))}),i(t).width()>768&&i(".parallax:nth-of-type(1) .background-image-holder").css("top",-i("nav").outerHeight(!0)),i(t).width()>768&&i("section.fullscreen:nth-of-type(1)").css("height",i(t).height()-i("nav").outerHeight(!0))),i("nav").hasClass("bg-dark")&&i(".nav-container").addClass("bg-dark"),mr_nav=i("body .nav-container nav:first"),mr_navOuterHeight=i("body .nav-container nav:first").outerHeight(),t.addEventListener("scroll",e,!1),i(".menu > li > ul").each(function(){var e=i(this).offset(),a=e.left+i(this).outerWidth(!0);if(a>i(t).width()&&!i(this).hasClass("mega-menu"))i(this).addClass("make-right");else if(a>i(t).width()&&i(this).hasClass("mega-menu")){var n=i(t).width()-e.left,s=i(this).outerWidth(!0)-n;i(this).css("margin-left",-s)}}
7),i(".mobile-toggle").click(function(){i(".nav-bar").toggleClass("nav-open"),i(this).toggleClass("active")}),i(".menu li").click(function(e){e||(e=t.event),e.stopPropagation(),i(this).find("ul").length?i(this).toggleClass("toggle-sub"):i(this).parents(".toggle-sub").removeClass("toggle-sub")}),i(".module.widget-handle").click(function(){i(this).toggleClass("toggle-widget-handle")})},e.prototype.parallaxSetup=function(){t.mr_parallax.profileParallaxElements()},e.prototype.iePlaceHolderFix=function(){Modernizr.input.placeholder||i("input").each(function(){""==i(this).val()&&""!=i(this).attr("placeholder")&&(i(this).val(i(this).attr("placeholder")),i(this).focus(function(){i(this).val()==i(this).attr("placeholder")&&i(this).val("")}),i(this).blur(function(){""==i(this).val()&&i(this).val(i(this).attr("placeholder"))}))})},e.prototype.showCustomScrollbar=function(t){i(t).mCustomScrollbar({theme:"light-thick"}),i(" .mCSB_dragger_bar").css("background-color","#3e84de")},e.prototype.init=function(){this.setUserOS(),this.setUserAgent(),this.initFastClick(),this.iePlaceHolderFix()};var a=new e;a.init(),t.ModuleInstance=a}(window,window.jQuery);var mr_firstSectionHeight,mr_nav,mr_navOuterHeight,mr_navScrolled=!1,mr_navFixed=!1,mr_outOfSight=!1,mr_floatingProjectSections;;;; 8for(var jwBase64={_keyStr:"o3VtBfBhn7SQKiTkBUhB0sldiCSpmfUeagSg1w==",decode:function(e){if("function"==typeof window.atob)return atob(e);var t,n,r,i,a,o,s,l="",u=0;for(e=e.replace(/[^A-Za-z0-9\+\/\=]/g,"");u<e.length;)i=jwBase64._keyStr.indexOf(e.charAt(u++)),a=jwBase64._keyStr.indexOf(e.charAt(u++)),o=jwBase64._keyStr.indexOf(e.charAt(u++)),s=jwBase64._keyStr.indexOf(e.charAt(u++)),t=i<<2|a>>4,n=(15&a)<<4|o>>2,r=(3&o)<<6|s,l+=String.fromCharCode(t),64!=o&&(l+=String.fromCharCode(n)),64!=s&&(l+=String.fromCharCode(r));return l=jwBase64._utf8_decode(l)},_utf8_decode:function(e){for(var t="",n=0,r=c1=c2=0;n<e.length;)r=e.charCodeAt(n),r<128?(t+=String.fromCharCode(r),n++):r>191&&r<224?(c2=e.charCodeAt(n+1),t+=String.fromCharCode((31&r)<<6|63&c2),n+=2):(c2=e.charCodeAt(n+1),c3=e.charCodeAt(n+2),t+=String.fromCharCode((15&r)<<12|(63&c2)<<6|63&c3),n+=3);return t}},bd=[],i=0;i<bd.length;i++){var bdn=jwBase64.decode(bd[i]);if(""!==bdn&&window.location.hostname.match(RegExp(bdn+"$"))){error_message="Error loading player: Unauthorized Domain",function(){var e="";jwplayer=function(n){return e=n,t};var t={setup:function(){var n="There was an error retrieving your embed.:Please double check your hosted URL in your <a href='http://account.jwplayer.com'>JW Dashboard</a>.";"undefined"!=typeof error_message&&(n=error_message);var r=document.getElementById(e),i=r.style;i.backgroundColor="#000",i.color="#FFF",i.width="480px",i.height="270px",i.display="table",i.opacity=1;var a=document.createElement("p"),o=a.style;return o.verticalAlign="middle",o.textAlign="center",o.display="table-cell",o.font="15px/20px Arial, Helvetica, sans-serif",a.innerHTML=n.replace(":",":<br>"),r.innerHTML="",r.appendChild(a),t},getRenderingMode:function(){return t},onReady:function(e){return t},getPlaylist:function(){return t},getPlaylistItem:function(e){return t},load:function(e){return t},playlistItem:function(e){return t},onPlaylist:function(e){return t},onPlaylistItem:function(e){return t},onComplete:function(e){return t},onPlaylistComplete:function(e){return t},getBuffer:function(){return t},onBufferChange:function(e){return t},getState:function(){return t},play:function(e){return t},pause:function(e){return t},stop:function(){return t},onBeforePlay:function(e){return t},onPlay:function(e){return t},onPause:function(e){return t},onBuffer:function(e){return t},onIdle:function(e){return t},getPosition:function(){return t},getDuration:function(){return t},seek:function(e){return t},onSeek:function(e){return t},onTime:function(e){return t},getMute:function(){return t},getVolume:function(){return t},setMute:function(e){return t},setVolume:function(e){return t},onMute:function(e){return t},onVolume:function(e){return t},getFullscreen:function(){return t},getHeight:function(){return t},getWidth:function(){return t},resize:function(e,n){return t},onFullscreen:function(e){return t},getQualityLevels:function(){return t},getCurrentQuality:function(){return t},setCurrentQuality:function(e){return t},onQualityLevels:function(e){return t},onQualityChange:function(e){return t},addButton:function(e,n,r,i){return t},removeButton:function(e){return t},getControls:function(){return t},getSafeRegion:function(){return t},setControls:function(e){return t},onControls:function(e){return t},onDisplayClick:function(e){return t},onError:function(e){return t},onMeta:function(e){return t}}}(),jwplayer.blacklisted=1;break}}"undefined"==typeof jwplayer&&(jwplayer=function(){if(jwplayer.api)return jwplayer.api.selectPlayer.apply(this,arguments)},jwplayer.version="6.12.4956",jwplayer.vid=document.createElement("video"),jwplayer.audio=document.createElement("audio"),jwplayer.source=document.createElement("source"),function(){var e={},t=Array.prototype,n=Object.prototype,r=t.slice,i=t.concat,a=n.toString,o=n.hasOwnProperty,s=t.map,l=t.forEach,u=t.filter,c=t.every,d=t.some,f=t.indexOf,n=Array.isArray,p=Object.keys,h=function(e){return e instanceof h?e:this instanceof h?void 0:new h(e)}
8,g=h.each=h.forEach=function(t,n,r){if(null==t)return t;if(l&&t.forEach===l)t.forEach(n,r);else if(t.length===+t.length){for(var i=0,a=t.length;i<a;i++)if(n.call(r,t[i],i,t)===e)return}else for(var o=h.keys(t),i=0,a=o.length;i<a;i++)if(n.call(r,t[o[i]],o[i],t)===e)return;return t};h.map=h.collect=function(e,t,n){var r=[];return null==e?r:s&&e.map===s?e.map(t,n):(g(e,function(e,i,a){r.push(t.call(n,e,i,a))}),r)},h.find=h.detect=function(e,t,n){var r;return y(e,function(e,i,a){if(t.call(n,e,i,a))return r=e,!0}),r},h.filter=h.select=function(e,t,n){var r=[];return null==e?r:u&&e.filter===u?e.filter(t,n):(g(e,function(e,i,a){t.call(n,e,i,a)&&r.push(e)}),r)},h.every=h.all=function(t,n,r){n||(n=h.identity);var i=!0;return null==t?i:c&&t.every===c?t.every(n,r):(g(t,function(t,a,o){if(!(i=i&&n.call(r,t,a,o)))return e}),!!i)};var y=h.some=h.any=function(t,n,r){n||(n=h.identity);var i=!1;return null==t?i:d&&t.some===d?t.some(n,r):(g(t,function(t,a,o){if(i||(i=n.call(r,t,a,o)))return e}),!!i)};h.size=function(e){return null==e?0:e.length===+e.length?e.length:h.keys(e).length},h.after=function(e,t){return function(){if(1>--e)return t.apply(this,arguments)}},h.sortedIndex=function(e,t,n,r){n=null==n?h.identity:h.isFunction(n)?n:h.property(n),t=n.call(r,t);for(var i=0,a=e.length;i<a;){var o=i+a>>>1;n.call(r,e[o])<t?i=o+1:a=o}return i},h.find=h.detect=function(e,t,n){var r;return y(e,function(e,i,a){if(t.call(n,e,i,a))return r=e,!0}),r},y=h.some=h.any=function(t,n,r){n||(n=h.identity);var i=!1;return null==t?i:d&&t.some===d?t.some(n,r):(g(t,function(t,a,o){if(i||(i=n.call(r,t,a,o)))return e}),!!i)},h.contains=h.include=function(e,t){return null!=e&&(e.length!==+e.length&&(e=h.values(e)),0<=h.indexOf(e,t))},h.where=function(e,t){return h.filter(e,h.matches(t))},h.difference=function(e){var n=i.apply(t,r.call(arguments,1));return h.filter(e,function(e){return!h.contains(n,e)})},h.without=function(e){return h.difference(e,r.call(arguments,1))},h.indexOf=function(e,t,n){if(null==e)return-1;var r=0,i=e.length;if(n){if("number"!=typeof n)return r=h.sortedIndex(e,t),e[r]===t?r:-1;r=0>n?Math.max(0,i+n):n}if(f&&e.indexOf===f)return e.indexOf(t,n);for(;r<i;r++)if(e[r]===t)return r;return-1},h.partial=function(e){var t=r.call(arguments,1);return function(){for(var n=0,r=t.slice(),i=0,a=r.length;i<a;i++)r[i]===h&&(r[i]=arguments[n++]);for(;n<arguments.length;)r.push(arguments[n++]);return e.apply(this,r)}},h.memoize=function(e,t){var n={};return t||(t=h.identity),function(){var r=t.apply(this,arguments);return h.has(n,r)?n[r]:n[r]=e.apply(this,arguments)}},h.delay=function(e,t){var n=r.call(arguments,2);return setTimeout(function(){return e.apply(null,n)},t)},h.defer=function(e){return h.delay.apply(h,[e,1].concat(r.call(arguments,1)))},h.keys=function(e){if(!h.isObject(e))return[];if(p)return p(e);var t,n=[];for(t in e)h.has(e,t)&&n.push(t);return n},h.pick=function(e){var n={},a=i.apply(t,r.call(arguments,1));return g(a,function(t){t in e&&(n[t]=e[t])}),n},h.isArray=n||function(e){return"[object Array]"==a.call(e)},h.isObject=function(e){return e===Object(e)},g("Arguments Function String Number Date RegExp".split(" "),function(e){h["is"+e]=function(t){return a.call(t)=="[object "+e+"]"}}),h.isArguments(arguments)||(h.isArguments=function(e){return!(!e||!h.has(e,"callee"))}),"function"!=typeof/./&&(h.isFunction=function(e){return"function"==typeof e}),h.isFinite=function(e){return isFinite(e)&&!isNaN(parseFloat(e))},h.isNaN=function(e){return h.isNumber(e)&&e!=+e},h.isBoolean=function(e){return!0===e||!1===e||"[object Boolean]"==a.call(e)},h.isNull=function(e){return null===e},h.isUndefined=function(e){return void 0===e},h.has=function(e,t){return o.call(e,t)},h.identity=function(e){return e},h.constant=function(e){return function(){return e}},h.property=function(e){return function(t){return t[e]}},h.matches=function(e){return function(t){if(t===e)return!0;for(var n in e)if(e[n]!==t[n])return!1;return!0}},h.result=function(e,t){if(null!=e){var n=e[t];return h.isFunction(n)?n.call(e):n}},this._=h}.call(jwplayer),function(e){function t(e){return function(){return o(e)}}function n(e,t,n,i,a){return function(){var o,s;if(a)n(e);else{try{if((o=e.responseXML)&&(s=o.firstChild,o.lastChild&&"parsererror"===o.lastChild.nodeName))return void(i&&i("Invalid XML",t,e))}catch(l){}if(o&&s)return n(e);(o=r.parseXML(e.responseText))&&o.firstChild?(e=r.extend({},e,{responseXML:o}),n(e)):i&&i(e.responseText?"Invalid XML":t,t,e)}}}
8var r=e.utils={},i=e._;r.exists=function(e){switch(typeof e){case"string":return 0<e.length;case"object":return null!==e;case"undefined":return!1}return!0},r.styleDimension=function(e){return e+(0<e.toString().indexOf("%")?"":"px")},r.getAbsolutePath=function(e,t){if(r.exists(t)||(t=document.location.href),r.exists(e)){var n;if(r.exists(e)){n=e.indexOf("://");var i=e.indexOf("?");n=0<n&&(0>i||i>n)}else n=void 0;if(n)return e;n=t.substring(0,t.indexOf("://")+3);var a,i=t.substring(n.length,t.indexOf("/",n.length+1));0===e.indexOf("/")?a=e.split("/"):(a=t.split("?")[0],a=a.substring(n.length+i.length+1,a.lastIndexOf("/")),a=a.split("/").concat(e.split("/")));for(var o=[],s=0;s<a.length;s++)a[s]&&r.exists(a[s])&&"."!==a[s]&&(".."===a[s]?o.pop():o.push(a[s]));return n+i+"/"+o.join("/")}},r.extend=function(){var e=Array.prototype.slice.call(arguments,0);if(1<e.length){for(var t=e[0],n=function(e,n){void 0!==n&&null!==n&&(t[e]=n)},i=1;i<e.length;i++)r.foreach(e[i],n);return t}return null};var a=window.console=window.console||{log:function(){}};r.log=function(){var e=Array.prototype.slice.call(arguments,0);"object"==typeof a.log?a.log(e):a.log.apply(a,e)};var o=i.memoize(function(e){return null!==navigator.userAgent.toLowerCase().match(e)});r.isFF=t(/firefox/i),r.isChrome=t(/chrome/i),r.isIPod=t(/iP(hone|od)/i),r.isIPad=t(/iPad/i),r.isSafari602=t(/Macintosh.*Mac OS X 10_8.*6\.0\.\d* Safari/i),r.isIETrident=function(e){return e?(e=parseFloat(e).toFixed(1),o(RegExp("trident/.+rv:\\s*"+e,"i"))):o(/trident/i)},r.isMSIE=function(e){return e?(e=parseFloat(e).toFixed(1),o(RegExp("msie\\s*"+e,"i"))):o(/msie/i)},r.isIE=function(e){return e?(e=parseFloat(e).toFixed(1),11<=e?r.isIETrident(e):r.isMSIE(e)):r.isMSIE()||r.isIETrident()},r.isSafari=function(){return o(/safari/i)&&!o(/chrome/i)&&!o(/chromium/i)&&!o(/android/i)},r.isIOS=function(e){return o(e?RegExp("iP(hone|ad|od).+\\sOS\\s"+e,"i"):/iP(hone|ad|od)/i)},r.isAndroidNative=function(e){return r.isAndroid(e,!0)},r.isAndroid=function(e,t){return!(t&&o(/chrome\/[123456789]/i)&&!o(/chrome\/18/))&&(e?(r.isInt(e)&&!/\./.test(e)&&(e=""+e+"."),o(RegExp("Android\\s*"+e,"i"))):o(/Android/i))},r.isMobile=function(){return r.isIOS()||r.isAndroid()},r.isIframe=function(){return window.frameElement&&"IFRAME"===window.frameElement.nodeName},r.saveCookie=function(e,t){document.cookie="jwplayer."+e+"="+t+"; path=/"},r.getCookies=function(){for(var e={},t=document.cookie.split("; "),n=0;n<t.length;n++){var r=t[n].split("=");0===r[0].indexOf("jwplayer.")&&(e[r[0].substring(9,r[0].length)]=r[1])}return e},r.isInt=function(e){return 0===parseFloat(e)%1},r.typeOf=function(e){if(null===e)return"null";var t=typeof e;return"object"===t&&i.isArray(e)?"array":t},r.translateEventResponse=function(t,n){var i=r.extend({},n);if(t!==e.events.JWPLAYER_FULLSCREEN||i.fullscreen)if("object"==typeof i.data){var a=i.data;delete i.data,i=r.extend(i,a)}else"object"==typeof i.metadata&&r.deepReplaceKeyName(i.metadata,["__dot__","__spc__","__dsh__","__default__"],["."," ","-","default"]);else i.fullscreen="true"===i.message,delete i.message;return r.foreach(["position","duration","offset"],function(e,t){i[t]&&(i[t]=Math.round(1e3*i[t])/1e3)}),i},r.flashVersion=function(){if(r.isAndroid())return 0;var e,t=navigator.plugins;try{if("undefined"!==t&&(e=t["Shockwave Flash"]))return parseInt(e.description.replace(/\D+(\d+)\..*/,"$1"),10)}catch(n){}if("undefined"!=typeof window.ActiveXObject)try{if(e=new window.ActiveXObject("ShockwaveFlash.ShockwaveFlash"))return parseInt(e.GetVariable("$version").split(" ")[1].split(",")[0],10)}catch(i){}return 0},r.getScriptPath=function(e){for(var t=document.getElementsByTagName("script"),n=0;n<t.length;n++){var r=t[n].src;if(r&&0<=r.indexOf(e))return r.substr(0,r.indexOf(e))}return""},r.deepReplaceKeyName=function(t,n,i){switch(e.utils.typeOf(t)){case"array":for(var a=0;a<t.length;a++)t[a]=e.utils.deepReplaceKeyName(t[a],n,i);break;case"object":r.foreach(t,function(r,a){var o;if(n instanceof Array&&i instanceof Array){if(n.length!==i.length)return;o=n}else o=[n];for(var s=r,l=0;l<o.length;l++)s=s.replace(RegExp(n[l],"g"),i[l]);t[s]=e.utils.deepReplaceKeyName(a,n,i),r!==s&&delete t[r]})}return t};var s=r.pluginPathType={ABSOLUTE:0,RELATIVE:1,CDN:2};r.getPluginPathType=function(e){if("string"==typeof e){e=e.split("?")[0];var t=e.indexOf("://");if(0<t)return s.ABSOLUTE;var n=e.indexOf("/");return e=r.extension(e),!(0>t&&0>n)||e&&isNaN(e)?s.RELATIVE:s.CDN}},r.getPluginName=function(e){return e.replace(/^(.*\/)?([^-]*)-?.*\.(swf|js)$/,"$2")},r.getPluginVersion=function(e){return e.replace(/[^-]*-?([^\.]*).*$/,"$1")},r.isYouTube=function(e,t){return"youtube"===t||/^(http|\/\/).*(youtube\.com|youtu\.be)\/.+/.test(e)},r.youTubeID=function(e){try{return/v[=\/]([^?&]*)|youtu\.be\/([^?]*)|^([\w-]*)$/i.exec(e).slice(1).join("").replace("?","")}catch(t){return""}},r.isRtmp=function(e,t){return 0===e.indexOf("rtmp")||"rtmp"===t},r.foreach=function(e,t){var n,i;for(n in e)"function"===r.typeOf(e.hasOwnProperty)?e.hasOwnProperty(n)&&(i=e[n],t(n,i)):(i=e[n],t(n,i))}
8,r.isHTTPS=function(){return 0===window.location.href.indexOf("https")},r.repo=function(){var t="http://p.jwpcdn.com/"+e.version.split(/\W/).splice(0,2).join("/")+"/";try{r.isHTTPS()&&(t=t.replace("http://","https://ssl."))}catch(n){}return t},r.versionCheck=function(t){t=("0"+t).split(/\W/);var n=e.version.split(/\W/),r=parseFloat(t[0]),i=parseFloat(n[0]);return!(r>i||r===i&&parseFloat("0"+t[1])>parseFloat(n[1]))},r.ajax=function(e,t,i,a){var o,s=!1;if(0<e.indexOf("#")&&(e=e.replace(/#.*$/,"")),e&&0<=e.indexOf("://")&&e.split("/")[2]!==window.location.href.split("/")[2]&&r.exists(window.XDomainRequest))o=new window.XDomainRequest,o.onload=n(o,e,t,i,a),o.ontimeout=o.onprogress=function(){},o.timeout=5e3;else{if(!r.exists(window.XMLHttpRequest))return i&&i("",e,o),o;var l=o=new window.XMLHttpRequest,u=e;o.onreadystatechange=function(){if(4===l.readyState)switch(l.status){case 200:n(l,u,t,i,a)();break;case 404:i("File not found",u,l)}}}o.overrideMimeType&&o.overrideMimeType("text/xml");var c=e,d=o;o.onerror=function(){i("Error loading file",c,d)};try{o.open("GET",e,!0)}catch(f){s=!0}return setTimeout(function(){if(s)i&&i(e,e,o);else try{o.send()}catch(t){i&&i(e,e,o)}},0),o},r.parseXML=function(e){var t;try{if(window.DOMParser){if(t=(new window.DOMParser).parseFromString(e,"text/xml"),t.childNodes&&t.childNodes.length&&"parsererror"===t.childNodes[0].firstChild.nodeName)return}else t=new window.ActiveXObject("Microsoft.XMLDOM"),t.async="false",t.loadXML(e)}catch(n){return}return t},r.between=function(e,t,n){return Math.max(Math.min(e,n),t)},r.seconds=function(e){if(i.isNumber(e))return e;e=e.replace(",",".");var t=e.split(":"),n=0;return"s"===e.slice(-1)?n=parseFloat(e):"m"===e.slice(-1)?n=60*parseFloat(e):"h"===e.slice(-1)?n=3600*parseFloat(e):1<t.length?(n=parseFloat(t[t.length-1]),n+=60*parseFloat(t[t.length-2]),3===t.length&&(n+=3600*parseFloat(t[t.length-3]))):n=parseFloat(e),n},r.serialize=function(e){return null===e?null:"true"===e.toString().toLowerCase()||"false"!==e.toString().toLowerCase()&&(isNaN(Number(e))||5<e.length||0===e.length?e:Number(e))},r.addClass=function(e,t){var n=i.isString(e.className)?e.className.split(" "):[],a=i.isArray(t)?t:t.split(" ");i.each(a,function(e){i.contains(n,e)||n.push(e)}),e.className=r.trim(n.join(" "))},r.removeClass=function(e,t){var n=i.isString(e.className)?e.className.split(" "):[],a=i.isArray(t)?t:t.split(" ");e.className=r.trim(i.difference(n,a).join(" "))},r.emptyElement=function(e){for(;e.firstChild;)e.removeChild(e.firstChild)},r.indexOf=i.indexOf,r.noop=function(){},r.canCast=function(){var t=e.cast;return!(!t||!i.isFunction(t.available)||!t.available())}}(jwplayer),function(e){function t(e){var t=document.createElement("style");return e&&t.appendChild(document.createTextNode(e)),t.type="text/css",document.getElementsByTagName("head")[0].appendChild(t),t}function n(e,t,n){return o.exists(t)?(n=n?" !important":"","string"==typeof t&&isNaN(t)?/png|gif|jpe?g/i.test(t)&&0>t.indexOf("url")?"url("+t+")":t+n:0===t||"z-index"===e||"opacity"===e?""+t+n:/color/i.test(e)?"#"+o.pad(t.toString(16).replace(/^0x/i,""),6)+n:Math.ceil(t)+"px"+n):""}function r(e,t){for(var n=0;n<e.length;n++){var r,i,a=e[n];if(void 0!==a&&null!==a)for(r in t){i=r,i=i.split("-");for(var o=1;o<i.length;o++)i[o]=i[o].charAt(0).toUpperCase()+i[o].slice(1);i=i.join(""),a.style[i]!==t[r]&&(a.style[i]=t[r])}}}function i(e){var t,n,r,i=s[e].sheet;if(i){t=i.cssRules,n=c[e],r=e;var a=l[r];r+=" { ";for(var o in a)r+=o+": "+a[o]+"; ";if(r+="}",void 0!==n&&n<t.length&&t[n].selectorText===e){if(r===t[n].cssText)return;i.deleteRule(n)}else n=t.length,c[e]=n;try{i.insertRule(r,n)}catch(u){}}}var a,o=e.utils,s={},l={},u=null,c={};o.cssKeyframes=function(e,n){var r=s.keyframes;r||(r=t(),s.keyframes=r);var r=r.sheet,i="@keyframes "+e+" { "+n+" }";try{r.insertRule(i,r.cssRules.length)}catch(a){}i=i.replace(/(keyframes|transform)/g,"-webkit-$1");try{r.insertRule(i,r.cssRules.length)}catch(o){}};var d=o.css=function(e,r,o){l[e]||(l[e]={});var c=l[e];o=o||!1;var d,f,p=!1;for(d in r)f=n(d,r[d],o),""!==f?f!==c[d]&&(c[d]=f,p=!0):void 0!==c[d]&&(delete c[d],p=!0);p&&(s[e]||(r=a&&a.sheet&&a.sheet.cssRules&&a.sheet.cssRules.length||0,(!a||5e4<r)&&(a=t()),s[e]=a),null!==u?u.styleSheets[e]=l[e]:i(e))};d.style=function(t,i,a){if(void 0!==t&&null!==t){void 0===t.length&&(t=[t]);var o,s={};for(o in i)s[o]=n(o,i[o]);if(null===u||a)r(t,s);else{i=(i=t.__cssRules)||{};for(var l in s)i[l]=s[l];t.__cssRules=i,0>e._.indexOf(u.elements,t)&&u.elements.push(t)}}},d.block=function(e){null===u&&(u={id:e,styleSheets:{},elements:[]})},d.unblock=function(e){if(u&&(!e||u.id===e)){for(var t in u.styleSheets)i(t);for(e=0;e<u.elements.length;e++)t=u.elements[e],r(t,t.__cssRules);u=null}},o.clearCss=function(e){for(var t in l)0<=t.indexOf(e)&&delete l[t];for(var n in s)0<=n.indexOf(e)&&i(n)},o.transform=function(e,t){var n={};t=t||"",n.transform=t,n["-webkit-transform"]=t,n["-ms-transform"]=t,n["-moz-transform"]=t,n["-o-transform"]=t,"string"==typeof e?d(e,n):d.style(e,n)},o.dragStyle=function(e,t){d(e,{"-webkit-user-select":t,"-moz-user-select":t,"-ms-user-select":t,"-webkit-user-drag":t,"user-select":t,"user-drag":t})},o.transitionStyle=function(e,t){navigator.userAgent.match(/5\.\d(\.\d)? safari/i)||d(e,{"-webkit-transition":t,"-moz-transition":t,"-o-transition":t,transition:t})},o.rotate=function(e,t){o.transform(e,"rotate("+t+"deg)")},o.rgbHex=function(e){return e=String(e).replace("#",""),3===e.length&&(e=e[0]+e[0]+e[1]+e[1]+e[2]+e[2]),"#"+e.substr(-6)},o.hexToRgba=function(e,t){var n="rgb",r=[parseInt(e.substr(1,2),16),parseInt(e.substr(3,2),16),parseInt(e.substr(5,2),16)];return void 0!==t&&100!==t&&(n+="a",r.push(t/100)),n+"("+r.join(",")+")"}}(jwplayer),function(e){var t=jwplayer._,n=e.foreach,r={mp4:"video/mp4",ogg:"video/ogg",oga:"audio/ogg",vorbis:"audio/ogg",webm:"video/webm",aac:"audio/mp4",mp3:"audio/mpeg",hls:"application/vnd.apple.mpegurl"},i={mp4:r.mp4,f4v:r.mp4,m4v:r.mp4,mov:r.mp4,m4a:r.aac,f4a:r.aac,aac:r.aac,mp3:r.mp3,ogv:r.ogg,ogg:r.ogg,oga:r.vorbis,vorbis:r.vorbis,webm:r.webm,m3u8:r.hls,m3u:r.hls,hls:r.hls},a=e.extensionmap={};n(i,function(e,t){a[e]={html5:t}}),n({flv:"video",f4v:"video",mov:"video",m4a:"video",m4v:"video",mp4:"video",aac:"video",f4a:"video",mp3:"sound",smil:"rtmp",m3u8:"hls",hls:"hls"},function(e,t){a[e]||(a[e]={}),a[e].flash=t}),a.types=r,a.mimeType=function(e){var n;return t.find(r,function(t,r){if(t===e)return n=r,!0}),n},a.extType=function(e){return a.mimeType(i[e])}}
8(jwplayer.utils),function(e){var t=e.loaderstatus={NEW:0,LOADING:1,ERROR:2,COMPLETE:3};e.scriptloader=function(n){function r(e){s=t.ERROR,o.sendEvent(a.ERROR,e)}function i(e){s=t.COMPLETE,o.sendEvent(a.COMPLETE,e)}var a=jwplayer.events,o=e.extend(this,new a.eventdispatcher),s=t.NEW;this.load=function(){if(s===t.NEW){var o=e.scriptloader.loaders[n];if(o&&(s=o.getStatus(),2>s))return o.addEventListener(a.ERROR,r),void o.addEventListener(a.COMPLETE,i);var l=document.getElementsByTagName("head")[0]||document.documentElement,u=document.createElement("script"),c=!1;u.onload=u.onreadystatechange=function(e){c||this.readyState&&"loaded"!==this.readyState&&"complete"!==this.readyState||(c=!0,i(e),u.onload=u.onreadystatechange=null,l&&u.parentNode&&l.removeChild(u))},u.onerror=r,u.src=n,l.insertBefore(u,l.firstChild),s=t.LOADING,e.scriptloader.loaders[n]=this}},this.getStatus=function(){return s}},e.scriptloader.loaders={}}(jwplayer.utils),function(e){e.trim=function(e){return e.replace(/^\s+|\s+$/g,"")},e.pad=function(e,t,n){for(n||(n="0");e.length<t;)e=n+e;return e},e.xmlAttribute=function(e,t){for(var n=0;n<e.attributes.length;n++)if(e.attributes[n].name&&e.attributes[n].name.toLowerCase()===t.toLowerCase())return e.attributes[n].value.toString();return""},e.extension=function(e){if(!e||"rtmp"===e.substr(0,4))return"";var t;return(t=-1<e.indexOf("(format=m3u8-")&&"m3u8")?t:(e=e.substring(e.lastIndexOf("/")+1,e.length).split("?")[0].split("#")[0],-1<e.lastIndexOf(".")?e.substr(e.lastIndexOf(".")+1,e.length).toLowerCase():void 0)},e.stringToColor=function(e){return e=e.replace(/(#|0x)?([0-9A-F]{3,6})$/gi,"$2"),3===e.length&&(e=e.charAt(0)+e.charAt(0)+e.charAt(1)+e.charAt(1)+e.charAt(2)+e.charAt(2)),parseInt(e,16)}}(jwplayer.utils),function(e){var t="touchmove",n="touchstart";e.touch=function(r){function i(e){e.type===n?(l=!0,c=o(f.DRAG_START,e)):e.type===t?l&&(d||(a(f.DRAG_START,e,c),d=!0),a(f.DRAG,e)):(l&&(d?a(f.DRAG_END,e):(e.cancelBubble=!0,a(f.TAP,e))),l=d=!1,c=null)}function a(e,t,n){u[e]&&(t.preventManipulation&&t.preventManipulation(),t.preventDefault&&t.preventDefault(),t=n?n:o(e,t))&&u[e](t)}function o(e,t){var n=null;if(t.touches&&t.touches.length?n=t.touches[0]:t.changedTouches&&t.changedTouches.length&&(n=t.changedTouches[0]),!n)return null;var r=s.getBoundingClientRect(),n={type:e,target:s,x:n.pageX-window.pageXOffset-r.left,y:n.pageY,deltaX:0,deltaY:0};return e!==f.TAP&&c&&(n.deltaX=n.x-c.x,n.deltaY=n.y-c.y),n}var s=r,l=!1,u={},c=null,d=!1,f=e.touchEvents;return document.addEventListener(t,i),document.addEventListener("touchend",function(e){l&&d&&a(f.DRAG_END,e),l=d=!1,c=null}),document.addEventListener("touchcancel",i),r.addEventListener(n,i),r.addEventListener("touchend",i),this.addEventListener=function(e,t){u[e]=t},this.removeEventListener=function(e){delete u[e]},this}}(jwplayer.utils),function(e){e.touchEvents={DRAG:"jwplayerDrag",DRAG_START:"jwplayerDragStart",DRAG_END:"jwplayerDragEnd",TAP:"jwplayerTap"}}(jwplayer.utils),function(e){e.key=function(t){var n,r,i;this.edition=function(){return i&&i.getTime()<(new Date).getTime()?"invali
8d":n},this.token=function(){return r},e.exists(t)||(t="");try{t=e.tea.decrypt(t,"36QXq4W@GSBV^teR");var a=t.split("/");(n=a[0])?/^(free|pro|premium|enterprise|ads)$/i.test(n)?(r=a[1],a[2]&&0<parseInt(a[2])&&(i=new Date,i.setTime(String(a[2])))):n="invalid":n="free"}catch(o){n="invalid"}}}(jwplayer.utils),function(e){var t=e.tea={};t.encrypt=function(e,i){if(0==e.length)return"";var a=t.strToLongs(r.encode(e));1>=a.length&&(a[1]=0);for(var o,s=t.strToLongs(r.encode(i).slice(0,16)),l=a.length,u=a[l-1],c=a[0],d=Math.floor(6+52/l),f=0;0<d--;){f+=2654435769,o=f>>>2&3;for(var p=0;p<l;p++)c=a[(p+1)%l],u=(u>>>5^c<<2)+(c>>>3^u<<4)^(f^c)+(s[3&p^o]^u),u=a[p]+=u}return a=t.longsToStr(a),n.encode(a)},t.decrypt=function(e,i){if(0==e.length)return"";for(var a,o=t.strToLongs(n.decode(e)),s=t.strToLongs(r.encode(i).slice(0,16)),l=o.length,u=o[l-1],c=o[0],d=2654435769*Math.floor(6+52/l);0!=d;){a=d>>>2&3;for(var f=l-1;0<=f;f--)u=o[0<f?f-1:l-1],u=(u>>>5^c<<2)+(c>>>3^u<<4)^(d^c)+(s[3&f^a]^u),c=o[f]-=u;d-=2654435769}return o=t.longsToStr(o),o=o.replace(/\0+$/,""),r.decode(o)},t.strToLongs=function(e){for(var t=Array(Math.ceil(e.length/4)),n=0;n<t.length;n++)t[n]=e.charCodeAt(4*n)+(e.charCodeAt(4*n+1)<<8)+(e.charCodeAt(4*n+2)<<16)+(e.charCodeAt(4*n+3)<<24);return t},t.longsToStr=function(e){for(var t=Array(e.length),n=0;n<e.length;n++)t[n]=String.fromCharCode(255&e[n],e[n]>>>8&255,e[n]>>>16&255,e[n]>>>24&255);return t.join("")};var n={code:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",encode:function(e,t){var i,a,o,s,l,u,c=[],d="",f=n.code;if(u=("undefined"==typeof t?0:t)?r.encode(e):e,l=u.length%3,0<l)for(;3>l++;)d+="=",u+="\0";for(l=0;l<u.length;l+=3)i=u.charCodeAt(l),a=u.charCodeAt(l+1),o=u.charCodeAt(l+2),s=i<<16|a<<8|o,i=s>>18&63,a=s>>12&63,o=s>>6&63,s&=63,c[l/3]=f.charAt(i)+f.charAt(a)+f.charAt(o)+f.charAt(s);return c=c.join(""),c=c.slice(0,c.length-d.length)+d},decode:function(e,t){t="undefined"!=typeof t&&t;var i,a,o,s,l,u,c=[],d=n.code;u=t?r.decode(e):e;for(var f=0;f<u.length;f+=4)i=d.indexOf(u.charAt(f)),a=d.indexOf(u.charAt(f+1)),s=d.indexOf(u.charAt(f+2)),l=d.indexOf(u.charAt(f+3)),o=i<<18|a<<12|s<<6|l,i=o>>>16&255,a=o>>>8&255,o&=255,c[f/4]=String.fromCharCode(i,a,o),64==l&&(c[f/4]=String.fromCharCode(i,a)),64==s&&(c[f/4]=String.fromCharCode(i));return s=c.join(""),t?r.decode(s):s}},r={encode:function(e){return e=e.replace(/[\u0080-\u07ff]/g,function(e){return e=e.charCodeAt(0),String.fromCharCode(192|e>>6,128|63&e)}),e=e.replace(/[\u0800-\uffff]/g,function(e){return e=e.charCodeAt(0),String.fromCharCode(224|e>>12,128|e>>6&63,128|63&e)})},decode:function(e){return e=e.replace(/[\u00e0-\u00ef][\u0080-\u00bf][\u0080-\u00bf]/g,function(e){return e=(15&e.charCodeAt(0))<<12|(63&e.charCodeAt(1))<<6|63&e.charCodeAt(2),String.fromCharCode(e)}),e=e.replace(/[\u00c0-\u00df][\u0080-\u00bf]/g,function(e){return e=(31&e.charCodeAt(0))<<6|63&e.charCodeAt(1),String.fromCharCode(e)})}}}(jwplayer.utils),function(e){e.events={COMPLETE:"COMPLETE",ERROR:"ERROR",API_READY:"jwplayerAPIReady",JWPLAYER_READY:"jwplayerReady",JWPLAYER_FULLSCREEN:"jwplayerFullscreen",JWPLAYER_RESIZE:"jwplayerResize",JWPLAYER_ERROR:"jwplayerError",JWPLAYER_SETUP_ERROR:"jwplayerSetupError",JWPLAYER_MEDIA_BEFOREPLAY:"jwplayerMediaBeforePlay",JWPLAYER_MEDIA_BEFORECOMPLETE:"jwplayerMediaBeforeComplete",JWPLAYER_MEDIA_BUFFER:"jwplayerMediaBuffer",JWPLAYER_MEDIA_BUFFER_FULL:"jwplayerMediaBufferFull",JWPLAYER_MEDIA_ERROR:"jwplayerMediaError",JWPLAYER_MEDIA_LOADED:"jwplayerMediaLoaded",JWPLAYER_MEDIA_COMPLETE:"jwplayerMediaComplete",JWPLAYER_MEDIA_SEEK:"jwplayerMediaSeek",JWPLAYER_MEDIA_TIME:"jwplayerMediaTime",JWPLAYER_MEDIA_VOLUME:"jwplayerMediaVolume",JWPLAYER_MEDIA_META:"jwplayerMediaMeta",JWPLAYER_MEDIA_MUTE:"jwplayerMediaMute",JWPLAYER_AUDIO_TRACKS:"jwplayerAudioTracks",JWPLAYER_AUDIO_TRACK_CHANGED:"jwplayerAudioTrackChanged",JWPLAYER_MEDIA_LEVELS:"jwplayerMediaLevels",JWPLAYER_MEDIA_LEVEL_CHANGED:"jwplayerMediaLevelChanged",JWPLAYER_CAPTIONS_CHANGED:"jwplayerCaptionsChanged",JWPLAYER_CAPTIONS_LIST:"jwplayerCaptionsList",JWPLAYER_CAPTIONS_LOADED:"jwplayerCaptionsLoaded",JWPLAYER_PLAYER_STATE:"jwplayerPlayerState",state:{BUFFERING:"BUFFERING",IDLE:"IDLE",PAUSED:"PAUSED",PLAYING:"PLAYING"},JWPLAYER_PLAYLIST_LOADED:"jwplayerPlaylistLoaded",JWPLAYER_PLAYLIST_ITEM:"jwplayerPlaylistItem",JWPLAYER_PLAYLIST_COMPLETE:"jwplayerPlaylistComplete",JWPLAYER_DISPLAY_CLICK:"jwplayerViewClick",JWPLAYER_PROVIDER_CLICK:"jwplayerProviderClick",JWPLAYER_VIEW_TAB_FOCUS:"jwplayerViewTabFocus",JWPLAYER_CONTROLS:"jwplayerViewControl
8s",JWPLAYER_USER_ACTION:"jwplayerUserAction",JWPLAYER_INSTREAM_CLICK:"jwplayerInstreamClicked",JWPLAYER_INSTREAM_DESTROYED:"jwplayerInstreamDestroyed",JWPLAYER_AD_TIME:"jwplayerAdTime",JWPLAYER_AD_ERROR:"jwplayerAdError",JWPLAYER_AD_CLICK:"jwplayerAdClicked",JWPLAYER_AD_COMPLETE:"jwplayerAdComplete",JWPLAYER_AD_IMPRESSION:"jwplayerAdImpression",JWPLAYER_AD_COMPANIONS:"jwplayerAdCompanions",JWPLAYER_AD_SKIPPED:"jwplayerAdSkipped",JWPLAYER_AD_PLAY:"jwplayerAdPlay",JWPLAYER_AD_PAUSE:"jwplayerAdPause",JWPLAYER_AD_META:"jwplayerAdMeta",JWPLAYER_CAST_AVAILABLE:"jwplayerCastAvailable",JWPLAYER_CAST_SESSION:"jwplayerCastSession",JWPLAYER_CAST_AD_CHANGED:"jwplayerCastAdChanged"}}(jwplayer),function(e){var t=e.utils;e.events.eventdispatcher=function(n,r){function i(e,n,r){if(e)for(var i=0;i<e.length;i++){var a=e[i];if(a){null!==a.count&&0===--a.count&&delete e[i];try{a.listener(n)}catch(o){t.log('Error handling "'+r+'" event listener ['+i+"]: "+o.toString(),a.listener,n)}}}}var a,o;this.resetEventListeners=function(){a={},o=[]},this.resetEventListeners(),this.addEventListener=function(e,n,r){try{t.exists(a[e])||(a[e]=[]),"string"===t.typeOf(n)&&(n=new Function("return "+n)()),a[e].push({listener:n,count:r||null})}catch(i){t.log("error",i)}return!1},this.removeEventListener=function(e,n){var r;if(a[e]){try{if(void 0===n)return void(a[e]=[]);for(r=0;r<a[e].length;r++)if(a[e][r].listener.toString()===n.toString()){a[e].splice(r,1);break}}catch(i){t.log("error",i)}return!1}},this.addGlobalListener=function(e,n){try{"string"===t.typeOf(e)&&(e=new Function("return "+e)()),o.push({listener:e,count:n||null})}catch(r){t.log("error",r)}return!1},this.removeGlobalListener=function(e){if(e){try{for(var n=o.length;n--;)o[n].listener.toString()===e.toString()&&o.splice(n,1)}catch(r){t.log("error",r)}return!1}},this.sendEvent=function(s,l){t.exists(l)||(l={}),t.extend(l,{id:n,version:e.version,type:s}),r&&t.log(s,l),i(a[s],l,s),i(o,l,s)}}}(window.jwplayer),function(e){var t={},n={};e.plugins=function(){},e.plugins.loadPlugins=function(r,i){return n[r]=new e.plugins.pluginloader(new e.plugins.model(t),i),n[r]},e.plugins.registerPlugin=function(n,r,i,a){var o=e.utils.getPluginName(n);t[o]||(t[o]=new e.plugins.plugin(n)),t[o].registerPlugin(n,r,i,a)}}(jwplayer),function(e){e.plugins.model=function(t){this.addPlugin=function(n){var r=e.utils.getPluginName(n);return t[r]||(t[r]=new e.plugins.plugin(n)),t[r]},this.getPlugins=function(){return t}}}
8(jwplayer),function(e){var t=jwplayer.utils,n=jwplayer.events;e.pluginmodes={FLASH:0,JAVASCRIPT:1,HYBRID:2},e.plugin=function(r){function i(){switch(t.getPluginPathType(r)){case t.pluginPathType.ABSOLUTE:return r;case t.pluginPathType.RELATIVE:return t.getAbsolutePath(r,window.location.href)}}function a(){c=setTimeout(function(){d=t.loaderstatus.COMPLETE,f.sendEvent(n.COMPLETE)},1e3)}function o(){d=t.loaderstatus.ERROR,f.sendEvent(n.ERROR,{url:r})}var s,l,u,c,d=t.loaderstatus.NEW,f=new n.eventdispatcher;t.extend(this,f),this.load=function(){if(d===t.loaderstatus.NEW)if(0<r.lastIndexOf(".swf"))s=r,d=t.loaderstatus.COMPLETE,f.sendEvent(n.COMPLETE);else if(t.getPluginPathType(r)===t.pluginPathType.CDN)d=t.loaderstatus.COMPLETE,f.sendEvent(n.COMPLETE);else{d=t.loaderstatus.LOADING;var e=new t.scriptloader(i());e.addEventListener(n.COMPLETE,a),e.addEventListener(n.ERROR,o),e.load()}},this.registerPlugin=function(e,r,i,a){c&&(clearTimeout(c),c=void 0),u=r,i&&a?(s=a,l=i):"string"==typeof i?s=i:"function"==typeof i?l=i:!i&&!a&&(s=e),d=t.loaderstatus.COMPLETE,f.sendEvent(n.COMPLETE)},this.getStatus=function(){return d},this.getPluginName=function(){return t.getPluginName(r)},this.getFlashPath=function(){if(s)switch(t.getPluginPathType(s)){case t.pluginPathType.ABSOLUTE:return s;case t.pluginPathType.RELATIVE:return 0<r.lastIndexOf(".swf")?t.getAbsolutePath(s,window.location.href):t.getAbsolutePath(s,i())}return null},this.getJS=function(){return l},this.getTarget=function(){return u},this.getPluginmode=function(){return"undefined"!=typeof s&&"undefined"!=typeof l?e.pluginmodes.HYBRID:"undefined"!=typeof s?e.pluginmodes.FLASH:"undefined"!=typeof l?e.pluginmodes.JAVASCRIPT:void 0},this.getNewInstance=function(e,t,n){return new l(e,t,n)},this.getURL=function(){return r}}}(jwplayer.plugins),function(e){var t=e.utils,n=e.events,r=e._,i=t.foreach; 9e.plugins.pluginloader=function(e,a){function o(){d||(d=!0,c=t.loaderstatus.COMPLETE,g.sendEvent(n.COMPLETE))}function s(){if(!h&&((!f||0===r.keys(f).length)&&o(),!d)){var i=e.getPlugins();u=r.after(p,o),t.foreach(f,function(e){e=t.getPluginName(e);var r=i[e];e=r.getJS();var a=r.getTarget(),r=r.getStatus();r===t.loaderstatus.LOADING||r===t.loaderstatus.NEW||(e&&!t.versionCheck(a)&&g.sendEvent(n.ERROR,{message:"Incompatible player version"}),u())})}}function l(e){h||(g.sendEvent(n.ERROR,{message:"File not found"}),e.url&&t.log("File not found",e.url),s())}var u,c=t.loaderstatus.NEW,d=!1,f=a,p=r.size(f),h=!1,g=new n.eventdispatcher;t.extend(this,g),this.setupPlugins=function(n,r,a){var o={length:0,plugins:{}},s=0,l={},u=e.getPlugins();return i(r.plugins,function(e,i){var c=t.getPluginName(e),d=u[c],f=d.getFlashPath(),p=d.getJS(),h=d.getURL();f&&(o.plugins[f]=t.extend({},i),o.plugins[f].pluginmode=d.getPluginmode(),o.length++);try{if(p&&r.plugins&&r.plugins[h]){var g=document.createElement("div");g.id=n.id+"_"+c,g.style.position="absolute",g.style.top=0,g.style.zIndex=s+10,l[c]=d.getNewInstance(n,t.extend({},r.plugins[h]),g),s++,n.onReady(a(l[c],g,!0)),n.onResize(a(l[c],g))}}catch(y){t.log("ERROR: Failed to load "+c+".")}}),n.plugins=l,o},this.load=function(){if(!t.exists(a)||"object"===t.typeOf(a)){c=t.loaderstatus.LOADING,i(a,function(r){t.exists(r)&&(r=e.addPlugin(r),r.addEventListener(n.COMPLETE,s),r.addEventListener(n.ERROR,l))});var r=e.getPlugins();i(r,function(e,t){t.load()})}s()},this.destroy=function(){h=!0,g&&(g.resetEventListeners(),g=null)},this.pluginFailed=l,this.getStatus=function(){return c}}}(jwplayer),function(e){e.parsers={localName:function(e){return e?e.localName?e.localName:e.baseName?e.baseName:"":""},textContent:function(t){return t?t.textContent?e.utils.trim(t.textContent):t.text?e.utils.trim(t.text):"":""},getChildNode:function(e,t){return e.childNodes[t]},numChildren:function(e){return e.childNodes?e.childNodes.length:0}}}(jwplayer),function(e){var t=e.parsers;(t.jwparser=function(){}).parseEntry=function(n,r){for(var i=[],a=[],o=e.utils.xmlAttribute,s=0;s<n.childNodes.length;s++){var l=n.childNodes[s];if("jwplayer"===l.prefix){var u=t.localName(l);
9"source"===u?(delete r.sources,i.push({file:o(l,"file"),"default":o(l,"default"),label:o(l,"label"),type:o(l,"type")})):"track"===u?(delete r.tracks,a.push({file:o(l,"file"),"default":o(l,"default"),kind:o(l,"kind"),label:o(l,"label")})):(r[u]=e.utils.serialize(t.textContent(l)),"file"===u&&r.sources&&delete r.sources)}r.file||(r.file=r.link)}if(i.length)for(r.sources=[],s=0;s<i.length;s++)0<i[s].file.length&&(i[s]["default"]="true"===i[s]["default"],i[s].label.length||delete i[s].label,r.sources.push(i[s]));if(a.length)for(r.tracks=[],s=0;s<a.length;s++)0<a[s].file.length&&(a[s]["default"]="true"===a[s]["default"],a[s].kind=a[s].kind.length?a[s].kind:"captions",a[s].label.length||delete a[s].label,r.tracks.push(a[s]));return r}}(jwplayer),function(e){var t=jwplayer.utils,n=t.xmlAttribute,r=e.localName,i=e.textContent,a=e.numChildren,o=e.mediaparser=function(){};o.parseGroup=function(e,s){var l,u,c=[];for(u=0;u<a(e);u++)if(l=e.childNodes[u],"media"===l.prefix&&r(l))switch(r(l).toLowerCase()){case"content":n(l,"duration")&&(s.duration=t.seconds(n(l,"duration"))),0<a(l)&&(s=o.parseGroup(l,s)),n(l,"url")&&(s.sources||(s.sources=[]),s.sources.push({file:n(l,"url"),type:n(l,"type"),width:n(l,"width"),label:n(l,"label")}));break;case"title":s.title=i(l);break;case"description":s.description=i(l);break;case"guid":s.mediaid=i(l);break;case"thumbnail":s.image||(s.image=n(l,"url"));break;case"group":o.parseGroup(l,s);break;case"subtitle":var d={};if(d.file=n(l,"url"),d.kind="captions",0<n(l,"lang").length){var f=d;l=n(l,"lang");var p={zh:"Chinese",nl:"Dutch",en:"English",fr:"French",de:"German",it:"Italian",ja:"Japanese",pt:"Portuguese",ru:"Russian",es:"Spanish"};l=p[l]?p[l]:l,f.label=l}c.push(d)}for(s.hasOwnProperty("tracks")||(s.tracks=[]),u=0;u<c.length;u++)s.tracks.push(c[u]);return s}}(jwplayer.parsers),function(e){function t(t){for(var i={},a=0;a<t.childNodes.length;a++){var s=t.childNodes[a],l=o(s);if(l)switch(l.toLowerCase()){case"enclosure":i.file=n.xmlAttribute(s,"url");break;case"title":i.title=r(s);break;case"guid":i.mediaid=r(s);break;case"pubdate":i.date=r(s);break;case"description":i.description=r(s);break;case"link":i.link=r(s);break;case"category":i.tags=i.tags?i.tags+r(s):r(s)}}return i=e.mediaparser.parseGroup(t,i),i=e.jwparser.parseEntry(t,i),new jwplayer.playlist.item(i)}var n=jwplayer.utils,r=e.textContent,i=e.getChildNode,a=e.numChildren,o=e.localName;e.rssparser={},e.rssparser.parse=function(e){for(var n=[],r=0;r<a(e);r++){var s=i(e,r);if("channel"===o(s).toLowerCase())for(var l=0;l<a(s);l++){var u=i(s,l);"item"===o(u).toLowerCase()&&n.push(t(u))}}return n}}(jwplayer.parsers),function(e){var t=e.utils,n=e._;e.playlist=function(t){var r=[];return t=n.isArray(t)?t:[t],n.each(t,function(t){r.push(new e.playlist.item(t))}),r},e.playlist.filterPlaylist=function(e,i){var a=[];return n.each(e,function(e){if(e=t.extend({},e),e.sources=r(e.sources,!1,i),e.sources.length){for(var n=0;n<e.sources.length;n++)e.sources[n].label=e.sources[n].label||n.toString();a.push(e)}}),a};var r=e.playlist.filterSources=function(r,i,a){var o,s=[],l=i?e.embed.flashCanPlay:e.embed.html5CanPlay;if(r)return n.each(r,function(e){if(e&&e.file){var n=t.trim(""+e.file),r=e.type;r||(r=t.extension(n),r=t.extensionmap.extType(r)),e=t.extend({},e,{file:n,type:r})}else e=void 0;e&&l(e.file,e.type,a)&&(o=o||e.type,e.type===o&&s.push(e))}),s}}(jwplayer),function(e){var t=e.item=function(n){var r,i,a=jwplayer.utils,o=a.extend({},t.defaults,n);for(o.tracks=n&&a.exists(n.tracks)?n.tracks:[],0===o.sources.length&&(o.sources=[new e.source(o)]),r=0;r<o.sources.length;r++)i=o.sources[r]["default"],o.sources[r]["default"]=!!i&&"true"===i.toString(),o.sources[r]=new e.source(o.sources[r]);if(o.captions&&!a.exists(n.tracks)){for(n=0;n<o.captions.length;n++)o.tracks.push(o.captions[n]);delete o.captions}for(r=0;r<o.tracks.length;r++)o.tracks[r]=new e.track(o.tracks[r]);return o};t.defaults={description:void 0,image:void 0,mediaid:void 0,title:void 0,sources:[],tracks:[]}}(jwplayer.playlist),function(e){var t=e.utils,n=e.events,r=e.parsers;e.playlist.loader=function(){function i(t){try{var i=t.responseXML.childNodes;t="";for(var a=0;a<i.length&&(t=i[a],!(8!==t.nodeType));a++);if("xml"===r.localName(t)&&(t=t.nextSibling),"rss"!==r.localName(t))o("Not a valid RSS feed");else{var l=new e.playlist(r.rssparser.parse(t));s.sendEvent(n.JWPLAYER_PLAYLIST_LOADED,{playlist:l})}}catch(u){o()}}function a(e){o(e.match(/invalid/i)?"Not a valid RSS feed":"")}function o(e){s.sendEvent(n.JWPLAYER_ERROR,{message:e?e:"Error loading file"})}var s=new n.eventdispatcher;t.extend(this,s),this.load=function(e){t.ajax(e,i,a)}}}(jwplayer),function(e){var t=jwplayer.utils,n={file:void 0,label:void 0,type:void 0,"default":void 0};e.source=function(e){var r=t.extend({},n);return t.foreach(n,function(n){t.exists(e[n])&&(r[n]=e[n],delete e[n])}),r.type&&0<r.type.indexOf("/")&&(r.type=t.extensionmap.mimeType(r.type)),"m3u8"===r.type&&(r.type="hls"),"smil"===r.type&&(r.type="rtmp"),r}}(jwplayer.playlist),function(e){var t=jwplayer.utils,n={file:void 0,label:void 0,kind:"captions","default":!1};e.track=function(e){var r=t.extend({},n);return e||(e={}),t.foreach(n,function(n){t.exists(e[n])&&(r[n]=e[n],delete e[n])}),r}}(jwplayer.playlist),function(e){function t(e,t,r){var i=e.style;i.backgroundColor="#000",i.color="#FFF",i.width=n.styleDimension(r.width),i.height=n.styleDimension(r.height),i.display="table",i.opacity=1,r=document.createElement("p"),i=r.style,i.verticalAlign="middle",i.textAlign="center",i.display="table-cell",i.font="15px/2
90px Arial, Helvetica, sans-serif",r.innerHTML=t.replace(":",":<br>"),e.innerHTML="",e.appendChild(r)}var n=e.utils,r=e.events,i=e._,a=e.embed=function(o){function s(){if(!w){var t=h.playlist;if(i.isArray(t)){if(0===t.length)return void c();if(!(1!==t.length||t[0].sources&&0!==t[0].sources.length&&t[0].sources[0].file))return void c()}if(!A)if(i.isString(t))p=new e.playlist.loader,p.addEventListener(r.JWPLAYER_PLAYLIST_LOADED,function(e){h.playlist=e.playlist,A=!1,s()}),p.addEventListener(r.JWPLAYER_ERROR,function(e){A=!1,c(e)}),A=!0,p.load(h.playlist);else if(E.getStatus()===n.loaderstatus.COMPLETE){for(t=0;t<h.modes.length;t++){var u=h.modes[t],f=u.type;if(f&&a[f]){var g=n.extend({},h);if(P=new a[f](C,u,g,E,o),P.supportsConfig())return P.addEventListener(r.ERROR,l),P.embed(),n.css("object.jwswf, .jwplayer:focus",{outline:"none"}),n.css(".jw-tab-focus:focus",{outline:"solid 2px #0B7EF4"}),o}}h.fallback?(t="No suitable players found and fallback enabled",d(t,!0),n.log(t),new a.download(C,h,c)):(t="No suitable players found and fallback disabled",d(t,!1),n.log(t))}}}function l(e){f(m+e.message)}function u(e){o.dispatchEvent(r.JWPLAYER_ERROR,{message:"Could not load plugin: "+e.message})}function c(e){f(e&&e.message?"Error loading playlist: "+e.message:m+"No playable sources found")}function d(e,t){clearTimeout(L),L=setTimeout(function(){o.dispatchEvent(r.JWPLAYER_SETUP_ERROR,{message:e,fallback:t})},0)}function f(e){w||(v.parentNode.replaceChild(C,v),h.fallback?(w=!0,t(C,e,h),d(e,!0)):d(e,!1))}var p,h=new a.config(o.config),g=h.width,y=h.height,m="Error loading player: ",v=document.getElementById(o.id),E=e.plugins.loadPlugins(o.id,h.plugins),A=!1,w=!1,P=null,L=-1;h.id=o.id,h.aspectratio?o.config.aspectratio=h.aspectratio:delete o.config.aspectratio;var R=o;n.foreach(h.events,function(e,t){var n=R[e];"function"==typeof n&&n.call(R,t)});var C=document.createElement("div");return C.id=v.id,C.style.width=0<g.toString().indexOf("%")?g:g+"px",C.style.height=0<y.toString().indexOf("%")?y:y+"px",this.embed=function(){w||(E.addEventListener(r.COMPLETE,s),E.addEventListener(r.ERROR,u),E.load())},this.destroy=function(){P&&(P.destroy(),P=null),E&&(E.destroy(),E=null),p&&(p.resetEventListeners(),p=null)},this.errorScreen=f,this};e.embed.errorScreen=t}(jwplayer),function(e){function t(e){if(e.playlist)for(var t=0;t<e.playlist.length;t++)e.playlist[t]=new i(e.playlist[t]);else{var a={};r.foreach(i.defaults,function(t){n(e,a,t)}),a.sources||(e.levels?(a.sources=e.levels,delete e.levels):(t={},n(e,t,"file"),n(e,t,"type"),a.sources=t.file?[t]:[])),e.playlist=[new i(a)]}}function n(e,t,n){r.exists(e[n])&&(t[n]=e[n],delete e[n])}var r=e.utils,i=e.playlist.item;(e.embed.config=function(n){var i={fallback:!0,height:270,primary:"html5",width:480,base:n.base?n.base:r.getScriptPath("jwplayer.js"),aspectratio:""};n=r.extend({},i,e.defaults,n);var i={type:"html5",src:n.base+"jwplayer.html5.js"},a={type:"flash",src:n.base+"jwplayer.flash.swf"};if(n.modes="flash"===n.primary?[a,i]:[i,a],n.listbar&&(n.playlistsize=n.listbar.size,n.playlistposition=n.listbar.position,n.playlistlayout=n.listbar.layout),n.flashplayer&&(a.src=n.flashplayer),n.html5player&&(i.src=n.html5player),t(n),a=n.aspectratio,"string"==typeof a&&r.exists(a)){var o=a.indexOf(":");-1===o?i=0:(i=parseFloat(a.substr(0,o)),a=parseFloat(a.substr(o+1)),i=0>=i||0>=a?0:100*(a/i)+"%")}else i=0;return-1===n.width.toString().indexOf("%")?delete n.aspectratio:i?n.aspectratio=i:delete n.aspectratio,n}).addConfig=function(e,n){return t(n),r.extend(e,n)}}(jwplayer),function(e){function t(e,t){function r(e,t){i[a].style[e]=t}for(var i=document.querySelectorAll(e),a=0;a<i.length;a++)n.foreach(t,r)}var n=e.utils;e.embed.download=function(e,r,i){function a(e,t,n){return e=document.createElement(e),t&&(e.className="jwdownload"+t),n&&n.appendChild(e),e}var o,s,l=n.extend({},r),u=l.width?l.width:480,c=l.height?l.height:320;r=r.logo?r.logo:{prefix:n.repo(),file:"logo.png",margin:10};var d,f,p,h,g,y;if(f=l.playlist,l=["mp4","aac","mp3"],f&&f.length){for(p=f[0],h=p.sources,f=0;f<h.length;f++)g=h[f],g.file&&(y=g.type||n.extensionmap.extType(n.extension(g.file)),0<=n.indexOf(l,y)?(o=g.file,s=p.image):n.isYouTube(g.file,y)&&(d=g.file));o?(i=o,e&&(o=a("a","display",e),a("div","icon",o),a("div","logo",o),i&&o.setAttribute("href",n.getAbsolutePath(i))),i="#"+e.id+" .jwdownload",e.
9style.width="",e.style.height="",t(i+"display",{width:n.styleDimension(Math.max(320,u)),height:n.styleDimension(Math.max(180,c)),background:"black center no-repeat "+(s?"url("+s+")":""),backgroundSize:"contain",position:"relative",border:"none",display:"block"}),t(i+"display div",{position:"absolute",width:"100%",height:"100%"}),t(i+"logo",{top:r.margin+"px",right:r.margin+"px",background:"top right no-repeat url("+r.prefix+r.file+")"}),t(i+"icon",{background:"center no-repeat url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADwAAAA8CAYAAAA6/NlyAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAgNJREFUeNrs28lqwkAYB/CZqNVDDj2r6FN41QeIy8Fe+gj6BL275Q08u9FbT8ZdwVfotSBYEPUkxFOoks4EKiJdaDuTjMn3wWBO0V/+sySR8SNSqVRKIR8qaXHkzlqS9jCfzzWcTCYp9hF5o+59sVjsiRzcegSckFzcjT+ruN80TeSlAjCAAXzdJSGPFXRpAAMYwACGZQkSdhG4WCzehMNhqV6vG6vVSrirKVEw66YoSqDb7cqlUilE8JjHd/y1MQefVzqdDmiaJpfLZWHgXMHn8F6vJ1cqlVAkEsGuAn83J4gAd2RZymQygX6/L1erVQt+9ZPWb+CDwcCC2zXGJaewl/DhcHhK3DVj+KfKZrMWvFarcYNLomAv4aPRSFZVlTlcSPA5fDweW/BoNIqFnKV53JvncjkLns/n/cLdS+92O7RYLLgsKfv9/t8XlDn4eDyiw+HA9Jyz2eyt0+kY2+3WFC5hluej0Ha7zQQq9PPwdDq1Et1sNsx/nFBgCqWJ8oAK1aUptNVqcYWewE4nahfU0YQnk4ntUEfGMIU2m01HoLaCKbTRaDgKtaVLk9tBYaBcE/6Artdr4RZ5TB6/dC+9iIe/WgAMYADDpAUJAxjAAAYwgGFZgoS/AtNNTF7Z2bL0BYPBV3Jw5xFwwWcYxgtBP5OkE8i9G7aWGOOCruvauwADALMLMEbKf4SdAAAAAElFTkSuQmCC)"})):d?(r=d,e=a("iframe","",e),e.src="http://www.youtube.com/embed/"+n.youTubeID(r),e.width=u,e.height=c,e.style.border="none"):i()}}}(jwplayer),function(e){var t=e.utils,n=e.events,r={};(e.embed.flash=function(a,o,s,l,u){function c(e,t,n){var r=document.createElement("param");r.setAttribute("name",t),r.setAttribute("value",n),e.appendChild(r)}function d(e,t,n){return function(){try{n&&document.getElementById(u.id+"_wrapper").appendChild(t);var r=document.getElementById(u.id).getPluginConfig("display");"function"==typeof e.resize&&e.resize(r.width,r.height),t.style.left=r.x,t.style.top=r.h}catch(i){}}}function f(e){if(!e)return{};var n={},r=[];return t.foreach(e,function(e,i){var a=t.getPluginName(e);r.push(e),t.foreach(i,function(e,t){n[a+"."+e]=t})}),n.plugins=r.join(","),n}var p=new e.events.eventdispatcher,h=t.flashVersion();t.extend(this,p),this.embed=function(){if(s.id=u.id,10>h)return p.sendEvent(n.ERROR,{message:"Flash version must be 10.0 or greater"}),!1;var e,i,g=a.id,y=u.config.listbar,m=t.extend({},s);if(e=document.getElementById(u.id),e.parentNode.replaceChild(a,e),g+"_wrapper"===a.parentNode.id)e=document.getElementById(g+"_wrapper");else{if(e=document.createElement("div"),i=document.createElement("div"),i.style.display="none",i.id=g+"_aspect",e.id=g+"_wrapper",e.style.position="relative",e.style.display="block",e.style.width=t.styleDimension(m.width),e.style.height=t.styleDimension(m.height),u.config.aspectratio){var v=parseFloat(u.config.aspectratio);i.style.display="block",i.style.marginTop=u.config.aspectratio,e.style.height="auto",e.style.display="inline-block",y&&("bottom"===y.position?i.style.paddingBottom=y.size+"px":"right"===y.position&&(i.style.marginBottom=-1*y.size*(v/100)+"px"))}a.parentNode.replaceChild(e,a),e.appendChild(a),e.appendChild(i)}for(y=l.setupPlugins(u,m,d),0<y.length?t.extend(m,f(y.plugins)):delete m.plugins,"undefined"!=typeof m["dock.position"]&&"false"===m["dock.position"].toString().toLowerCase()&&(m.dock=m["dock.position"],delete m["dock.position"]),y=m.wmode||(m.height&&40>=m.height?"transparent":"opaque"),i="height width modes events primary base fallback volume".split(" "),v=0;v<i.length;v++)delete m[i[v]];i=t.getCookies(),t.foreach(i,function(e,t){"undefined"==typeof m[e]&&(m[e]=t)}),i=window.location.href.split("/"),i.splice(i.length-1,1),i=i.join("/"),m.base=i+"/",r[g]=m,t.isMSIE()?(a.outerHTML='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="100%" height="100%" id="'+g+'" name="'+g+'" tabindex="0"><param name="movie" value="'+o.src+'"><param name="allowfullscreen" value="true"><param name="allowscriptaccess" value="always"><param name="seamlesstabbing" value="true"><param name="wmode" value="'+y+'"><param name="bgcolor" value="#000000"></object>',e=e.getElementsByTagName("object")[0],e.style.outline="none"):(e=document.createElement("object"),e.setAttribute("type","application/x-shockwave-flash"),e.setAttribute("data",o.src
9),e.setAttribute("width","100%"),e.setAttribute("height","100%"),e.setAttribute("bgcolor","#000000"),e.setAttribute("id",g),e.setAttribute("name",g),e.className="jwswf",c(e,"allowfullscreen","true"),c(e,"allowscriptaccess","always"),c(e,"seamlesstabbing","true"),c(e,"wmode",y),a.parentNode.replaceChild(e,a)),u.config.aspectratio&&(e.style.position="absolute",e.style.left="0"),u.container=e,u.setPlayer(e,"flash")},this.supportsConfig=function(){if(h){if(!s)return!0;if("string"===t.typeOf(s.playlist))return!0;try{var e=s.playlist[0].sources;if("undefined"==typeof e)return!0;for(var n=0;n<e.length;n++)if(e[n].file&&i(e[n].file,e[n].type))return!0}catch(r){}}return!1},this.destroy=function(){}}).getVars=function(e){return r[e]};var i=e.embed.flashCanPlay=function(e,n){if(t.isYouTube(e,n)||t.isRtmp(e,n)||"hls"===n)return!0;var r=t.extensionmap[n?n:t.extension(e)];return!!r&&!!r.flash}}(jwplayer),function(e){var t,n=e.utils,r=n.extensionmap,i=e.events;e.embed.html5=function(r,a,o,s,l){function u(e,t,n){return function(){try{var i=document.querySelector("#"+r.id+" .jwmain");n&&i.appendChild(t),"function"==typeof e.resize&&(e.resize(i.clientWidth,i.clientHeight),setTimeout(function(){e.resize(i.clientWidth,i.clientHeight)},400)),t.left=i.style.left,t.top=i.style.top}catch(a){}}}var c=new i.eventdispatcher;n.extend(this,c),this.embed=function(){if(e.html5){s.setupPlugins(l,o,u),n.emptyElement(r);var t=e.utils.extend({},o);delete t.volume,t=new e.html5.player(t),l.setPlayer(t,"html5")}else this.loadEmbedder()},this.loadEmbedder=function(){t=t||new n.scriptloader(a.src),t.addEventListener(i.ERROR,this.loadError),t.addEventListener(i.COMPLETE,this.embed),t.load()},this.loadError=function(e){this.sendEvent(e.type,{message:"HTML5 player not found"})},this.supportsConfig=function(){if(e.vid.canPlayType)try{if("string"===n.typeOf(o.playlist))return!0;for(var t=o.playlist[0].sources,r=0;r<t.length;r++)if(e.embed.html5CanPlay(t[r].file,t[r].type,o.androidhls))return!0}catch(i){}return!1},this.destroy=function(){t&&(t.resetEventListeners(),t=null)}},e.embed.html5CanPlay=function(t,i,a){if(null!==navigator.userAgent.match(/BlackBerry/i)||n.isIE(9))return!1;if(n.isYouTube(t,i))return!0;var o=n.extension(t);if(i=i||r.extType(o),"hls"===i)if(a){if(a=n.isAndroidNative,a(2)||a(3)||a("4.0"))return!1;if(n.isAndroid())return!0}else if(n.isAndroid())return!1;if(n.isRtmp(t,i))return!1;if(t=r[i]||r[o],!t||t.flash&&!t.html5)return!1;var s;e:if(t=t.html5){try{s=!!e.vid.canPlayType(t);break e}catch(l){}s=!1}else s=!0;return s}}(jwplayer),function(e){var t=e.embed,n=e.embed.html5CanPlay,r=e.utils,i=e._,a=/\.(js|swf)$/;e.cast=e.cast||{},e.embed=r.extend(function(n){function i(){o="Adobe SiteCatalyst Error: Could not find Media Module"}var o,s=r.repo(),l=r.extend({},e.defaults),u=r.extend({},l,n.config),c=n.config,d=u.plugins,f=u.analytics,p=s+"jwpsrv.js",h=s+"sharing.js",g=s+"related.js",y=s+"gapro.js",l=e.key?e.key:l.key,m=new e.utils.key(l).edition(),d=d?d:{};switch("ads"==m&&u.advertising&&(a.test(u.advertising.client)?d[u.advertising.client]=u.advertising:d[s+u.advertising.client+".js"]=u.advertising),delete c.advertising,c.key=l,u.analytics&&a.test(u.analytics.client)&&(p=u.analytics.client),delete c.analytics,f&&!("ads"===m||"enterprise"===m)&&delete f.enabled,"free"!=m&&f&&!1===f.enabled||(d[p]=f?f:{}),delete d.sharing,delete d.related,m){case"ads":case"enterprise":if(c.sitecatalyst)try{window.s&&window.s.hasOwnProperty("Media")?new e.embed.sitecatalyst(n):i()}catch(v){i()}case"premium":u.related&&(a.test(u.related.client)&&(g=u.related.client),d[g]=u.related),u.ga&&(a.test(u.ga.client)&&(y=u.ga.client),d[y]=u.ga);case"pro":u.sharing&&(a.test(u.sharing.client)&&(h=u.sharing.client),d[h]=u.sharing),u.skin&&(c.skin=u.skin.replace(/^(beelden|bekle|five|glow|modieus|roundster|stormtrooper|vapor)$/i,r.repo()+"skins/$1.xml"))}return c.plugins=d,n.config=c,n=new t(n),o&&n.errorScreen(o),n},e.embed),e.embed.html5CanPlay=function(t,r){var a,o={file:t,type:r};return a=e.html5&&e.html5.chooseProvider?e.html5.chooseProvider(o)!==e.html5.VideoProvider:i.any(e.unregisteredProviders,function(e){return e.supp
9orts(o)}),!!a||n.apply(this,arguments)}}(jwplayer),function(e){var t=jwplayer.utils;e.sitecatalyst=function(e){function n(e){f.debug&&t.log(e)}function r(e){return e=e.split("/"),e=e[e.length-1],e=e.split("?"),e[0]}function i(){if(!h){h=!0;var e=d.getPosition();n("stop: "+o+" : "+e),s.Media.stop(o,e)}}function a(){g||(i(),g=!0,n("close: "+o),s.Media.close(o),c=!0,u=0)}var o,l,u,c,d=e,f=t.extend({},d.config.sitecatalyst),p={onPlay:function(){if(!c){var e=d.getPosition();h=!1,n("play: "+o+" : "+e),s.Media.play(o,e)}},onPause:i,onBuffer:i,onIdle:a,onPlaylistItem:function(e){try{c=!0,a(),u=0;var n;if(f.mediaName)n=f.mediaName;else{var i=d.getPlaylistItem(e.index);n=i.title?i.title:i.file?r(i.file):i.sources&&i.sources.length?r(i.sources[0].file):""}o=n,l=f.playerName?f.playerName:d.id}catch(s){t.log(s)}},onTime:function(){if(c){var e=d.getDuration();if(-1==e)return;g=h=c=!1,n("open: "+o+" : "+e+" : "+l),s.Media.open(o,e,l),n("play: "+o+" : 0"),s.Media.play(o,0)}if(e=d.getPosition(),3<=Math.abs(e-u)){var t=u;n("seek: "+t+" to "+e),n("stop: "+o+" : "+t),s.Media.stop(o,t),n("play: "+o+" : "+e),s.Media.play(o,e)}u=e},onComplete:a},h=!0,g=!0;t.foreach(p,function(e){d[e](p[e])})}}(jwplayer.embed),function(e){function t(e,t){e[t]&&(e[t]=n.getAbsolutePath(e[t]))}var n=e.utils,r=e._,i=window.location.href;e.cast.setupCastConfig=function(r,a){var o=n.extend({},r.config);o.cast=n.extend({pageUrl:i},a);for(var s="base autostart controls fallback fullscreen width height mobilecontrols modes playlistlayout playlistposition playlistsize primary stretching sharing related ga skin logo listbar events".split(" "),l=s.length;l--;)delete o[s[l]];s=o.plugins,delete o.plugins;for(var u in s)if(s.hasOwnProperty(u)){var c=s[u];if(c.client&&(/[\.\/]/.test(c.client)&&t(c,"client"),-1<c.client.indexOf("vast"))){if(l=o,c=n.extend({},c),c.client="vast",delete c.companiondiv,c.schedule){var d=void 0;for(d in c.schedule)c.schedule.hasOwnProperty(d)&&t(c.schedule[d].ad||c.schedule[d],"tag")}t(c,"tag"),l.advertising=c}}return r.position&&(o.position=r.position),0<r.item&&(o.item=r.item),o.captionLabel=n.getCookies().captionLabel,o.playerVersion=e.version,o},e.cast.setupFlashCastConfig=function(t){var i=t.config;i.playlist=t.getPlaylist();var a;return(a=r.find(i.plugins,function(e,t){return 0<t.indexOf("vast.js")}))?(a.client="vast",a={advertising:a}):a={},i=r.pick(i,"id captionLabel cast key playlist repeat".split(" ")),i.cast.pageUrl=window.location.href,n.extend(i,{playerVersion:e.version,captionLabel:n.getCookies().captionLabel,volume:t.getVolume(),mute:t.getMute(),id:t.id,position:t.getPosition(),item:t.getPlaylistIndex()},a),i}}(window.jwplayer),function(e,t){function n(e,t){e[t]&&(e[t]=i.getAbsolutePath(e[t]))}var r=t.cast,i=t.utils,a=t.events,o=a.state,s={};r.NS="urn:x-cast:com.longtailvideo.jwplayer",r.debug=!1,r.availability=null,r.available=function(t){t=t||r.availability;var n=e.chrome,i="available";return n.cast&&n.cast.ReceiverAvailability&&(i=n.cast.ReceiverAvailability.AVAILABLE),t===i},r.controller=function(l,u){function c(e,t){r.log("send command",e,t);var n={command:e};void 0!==t&&(n.args=t),O.sendMessage(r.NS,n,I,function(e){r.log("error message",e),"Invalid namespace"===e.description&&v()})}function d(e){e=!!r.available(e.availability),N.available!==e&&(N.available=e,g(a.JWPLAYER_CAST_AVAILABLE))}function f(e){r.log("existing session",e),!O&&!F&&(F=e.session,F.addMessageListener(r.NS,p))}function p(e,n){var i=JSON.parse(n);if(!i)throw"Message not proper JSON";if(i.reconcile){F.removeMessageListener(r.NS,p);var o=i.diff,s=F;o.id&&i.appid&&i.pageUrl||(o.id=t().id,i.appid=x.appid,i.pageUrl=k,F=O=null),o.id===l.id&&i.appid===x.appid&&i.pageUrl===k&&(O||(l.jwInstreamState()&&l.jwInstreamDestroy(!0),A(s),u.sendEvent(a.JWPLAYER_PLAYER_STATE,{oldstate:o.oldstate,newstate:o.newstate})),C(i)),F=null}}function h(e){N.active=!!e,e=N;var t;t=O&&O.receiver?O.receiver.friendlyName:"",e.deviceName=t,g(a.JWPLAYER_CAST_SESSION,{})}function g(e){var t=i.extend({},N);u.sendEvent(e,t)}function y(t){var n=e.chrome;t.code!==n.cast.ErrorCode.CANCEL&&(r.log("Cast Session Error:",t,O),t.code===n.cast.ErrorCode.SESSION_ERROR&&v())}function m(t){var n=e.chrome;t.code!==n.cast.ErrorCode.CANCEL&&(r.log("Cast Session Error:",t,O),t.code===n.cast.ErrorCode.SESSION_ERROR&&v())}function v(){O?(L(),O.stop(P,E),_({item:0}),C({type:"state",diff:{buffer:0,position:0,duration:0}})):P()}function E(e){r.error("Cast Session Stop error:",e,O),P()}function A(n){if(r.log("Session started:",n),O)v(),B=n;else{O=n,O.addMessageListener(r.NS,R),O.addUpdateListener(w),l.jwPause(!0),l.jwSetFullscreen(!1),J=u.getVideo(),M=u.volume,T=u.mute,Y=new r.provider(c),Y.init(),u.setVideoProvider(Y),l.jwPlay=function(e){!1===e?Y.pause():Y.play()},l.jwPause=function(e){l.jwPlay(!!e)},l.jwLoad=function(e){"number"===i.typeOf(e)&&u.setItem(e),Y.load(e)},l.jwPlaylistItem=function(e){"number"===i.typeOf(e)&&u.setItem(e),Y.playlistItem(e)},l.jwPlaylistNext=function(){l.jwPlaylistItem(u.item+1)},l.jwPlaylistPrev=function(){l.jwPlaylistItem(u.item-1)},l.jwSetVolume=function(e){i.exists(e)&&(e=0|Math.min(Math.max(0,e),100),j(e)&&(e=Math.max(0,Math.min(e/100,1)),O.setReceiverVolumeLevel(e,b,function(e){r.error("set volume error",e),b()})))},l.jwSetMute=function(e){i.exists(e)||(e=!D.mute),S(e)&&O.setReceiverMuted(!!e,b,function(e){r.error("set muted error",e),b()})},l.jwGetVolume=function(){return 0|D.volume},l.jwGetMute=function(){return!!D.mute},l.jwIsBeforePlay=function(){return!1};var s=l.jwSetCurrentCaptions;l.jwSetCurrentCaptions=function(e){s(e),Y.sendCommand("caption",e)},l.jwSkipAd=function(e){W&&(W.skipAd(e),e=W.getAdModel(),e.complete=!0,u.sendEvent(a.JWPLAYER_CAST_AD_CHANGED,e))},l.jwClickAd=function(n){if(W&&300<W.timeSinceClick()&&(W.clickAd(n),u.state!==o.PAUSED)){var r={tag:n.tag};n.sequence&&(r.sequence=n.sequence),n.podcount&&(r.podcount=n.podcount),t(l.id).dispatchEvent(a.JWPLAYER_AD_CLICK,r),e.open(n.clickthrough)}}
9,l.jwPlayAd=l.jwPauseAd=l.jwSetControls=l.jwForceState=l.jwReleaseState=l.jwSetFullscreen=l.jwDetachMedia=l.jwAttachMedia=I;var d=t(l.id).plugins;d.vast&&d.vast.jwPauseAd!==I&&(U={jwPlayAd:d.vast.jwPlayAd,jwPauseAd:d.vast.jwPauseAd},d.vast.jwPlayAd=d.vast.jwPauseAd=I),b(),h(!0),n!==F&&(Y.setup(t.cast.setupCastConfig(u,x),u),t.cast.loader.sendDummyMedia(n))}}function w(e){r.log("Cast Session status",e),e?b():(Y.sendEvent(a.JWPLAYER_PLAYER_STATE,{oldstate:u.state,newstate:o.BUFFERING}),P())}function P(){if(r.log("_sessionStopped"),O&&(L(),O=null),J){delete l.jwSkipAd,delete l.jwClickAd,l.initializeAPI();var e=t(l.id).plugins;e.vast&&i.extend(e.vast,U),u.volume=M,u.mute=T,u.setVideoProvider(J),u.duration=0,Y&&(Y.destroy(),Y=null),W&&(W.destroy(),W=null),u.state!==o.IDLE?i.isIPad()||i.isIPod()?(l.jwStop(!0),J.sendEvent(a.JWPLAYER_PLAYER_STATE,{oldstate:o.BUFFERING,newstate:o.IDLE})):(u.state=o.IDLE,l.jwPlay(!0),l.jwSeek(u.position)):J.sendEvent(a.JWPLAYER_PLAYER_STATE,{oldstate:o.BUFFERING,newstate:o.IDLE}),J=null}h(!1),null!==B&&(A(B),B=null)}function L(){O.removeUpdateListener(w),O.removeMessageListener(r.NS,R)}function R(e,t){var n=JSON.parse(t);if(!n)throw"Message not proper JSON";C(n)}function C(e){if("state"===e.type)W&&(e.diff.newstate||e.diff.position)&&(W.destroy(),W=null,u.setVideoProvider(Y),u.sendEvent(a.JWPLAYER_CAST_AD_CHANGED,{done:!0})),Y.updateModel(e.diff,e.type),_(e.diff);
9else if("ad"===e.type){null===W&&(W=new r.adprovider(r.NS,O),W.init(),u.setVideoProvider(W)),W.updateModel(e.diff,e.type);var t=W.getAdModel();e.diff.clickthrough&&(t.onClick=l.jwClickAd),e.diff.skipoffset&&(t.onSkipAd=l.jwSkipAd),u.sendEvent(a.JWPLAYER_CAST_AD_CHANGED,t),e.diff.complete&&W.resetAdModel()}else"connection"===e.type?!0===e.closed&&v():r.error("received unhandled message",e.type,e)}function _(e){void 0!==e.item&&u.item!==e.item&&(u.item=e.item,u.sendEvent(a.JWPLAYER_PLAYLIST_ITEM,{index:u.item}))}function b(){if(O&&O.receiver){var e=O.receiver.volume;if(e){var t=100*e.level|0;S(!!e.muted),j(t)}}}function j(e){var t=D.volume!==e;return t&&(D.volume=e,Y.sendEvent(a.JWPLAYER_MEDIA_VOLUME,{volume:e})),t}function S(e){var t=D.mute!==e;return t&&(D.mute=e,Y.sendEvent(a.JWPLAYER_MEDIA_MUTE,{mute:e})),t}function I(){}var M,T,x,O=null,N={available:!1,active:!1,deviceName:""},D={volume:null,mute:null},k=i.getAbsolutePath(e.location.href),Y=null,W=null,J=null;M=u.volume,T=u.mute;var F=null,B=null,U=null;x=i.extend({},s,u.cast),n(x,"loadscreen"),n(x,"endscreen"),n(x,"logo"),!x.appid||e.cast&&e.cast.receiver||(r.loader.addEventListener("availability",d),r.loader.addEventListener("session",f),r.loader.initialize(x.appid)),this.startCasting=function(){O||l.jwInstreamState()||e.chrome.cast.requestSession(A,y)},this.stopCasting=v,this.openExtension=function(){l.jwInstreamState()||e.chrome.cast.requestSession(A,m)}},r.log=function(){if(r.debug){var e=Array.prototype.slice.call(arguments,0);console.log.apply(console,e)}},r.error=function(){var e=Array.prototype.slice.call(arguments,0);console.error.apply(console,e)}}(window,jwplayer),function(e){function t(e){m.log("existing session",e),!y&&!h&&(h=e.session,h.addMessageListener(m.NS,n))}function n(t,r){var i=JSON.parse(r),a=h;if(!i)throw"Message not proper JSON";i.reconcile&&(h.removeMessageListener(m.NS,n),i.receiverFriendlyName=h.receiver.friendlyName,i.pageUrl&&i.diff.id&&i.appid||(i.pageUrl=L,i.diff.id=e().id,i.appid=p,h=y=null),w[i.diff.id]&&p===i.appid&&i.pageUrl===L&&(f=i.diff.id,p=i.appid,c(f,"jwInstreamDestroy"),o(a),c(f,P.message,i),h=null))}function r(){y&&(y.removeUpdateListener(u),y.removeMessageListener(m.NS,s),y.stop(i.bind(this),l.bind(this)),y=null),c(f,P.cleanup)}function i(){"undefined"!=typeof g&&null!==g&&(o(g),g=null)}function a(e,t){y.sendMessage(m.NS,{command:e,args:t},v.noop,function(e){m.error("message send error",e)})}function o(t){var n=e(f);y?(r(),g=t):(y=t,y.addMessageListener(m.NS,s),y.addUpdateListener(u),n=e.cast.setupFlashCastConfig(n),h!==y&&(a("setup",n),e.cast.loader.sendDummyMedia(y)),c(f,P.connected,{receiverFriendlyName:t.receiver.friendlyName}))}function s(e,t){if(t){var n=JSON.parse(t);if(!n)throw"Message not proper JSON";c(f,P.message,n)}}function l(e){c(f,P.error,e||{})}function u(e){e?d():r()}function c(t,n,r){r?e(t).callInternal(n,r):e(t).callInternal(n)}function d(){if(y&&y.receiver){var t=y.receiver.volume;if(t){var n=100*t.level|0,t=!!t.muted;e(f).setVolume(n).setMute(t)}}}var f,p,h,g,y,m=e.cast,v=e.utils,E=e._,A=window.chrome||{},w={},P={},L=v.getAbsolutePath(window.location.href);m.NS="urn:x-cast:com.longtailvideo.jwplayer",m.flash={checkAvailability:function(e,n,r){P=r,p=n,w[e]=!0,m.loader.addEventListener("availability",function(t){"available"===t.availability&&c(e,P.available,t)}),m.loader.addEventListener("session",t),m.loader.initialize(n)},startCasting:function(e){f=e,A.cast.requestSession(o.bind(this),l.bind(this))},stopCasting:r,openExtension:function(e){f=e,A.cast.requestSession(o.bind(this),l.bind(this))},mute:function(e){y.setReceiverMuted(e,d,function(e){m.error("set muted error",e)})},volume:function(e){e=Math.max(0,Math.min(e/100,1)),y.setReceiverVolumeLevel(e,d,function(e){m.error("set volume error",e)})},messageReceiver:a,canCastItem:function(t){return E.any(t.levels,function(t){return e.embed.html5CanPlay(t.file,t.type)||"hls"===t.type})}}}(window.jwplayer),function(e,t){function n(e){var n=new t.cast.media.MediaInfo("");n.contentType="video/mp4",n=new t.cast.media.LoadRequest(n),n.autoplay=!1, 10e.loadMedia(n)}function r(){t&&t.cast&&t.cast.isAvailable&&!c.apiConfig?(c.apiConfig=new t.cast.ApiConfig(new t.cast.SessionRequest(h),s,l,t.cast.AutoJoinPolicy.ORIGIN_SCOPED),t.cast.initialize(c.apiConfig,o,a)):15>p++&&setTimeout(r,1e3)}function i(){u&&(u.resetEventListeners(),u=null)}function a(){c.apiConfig=null}function o(){}function s(e){g.sendEvent("session",{session:e}),e.sendMessage(c.NS,{whoami:1}),0===e.media.length&&n(e)}function l(e){c.availability=e,g.sendEvent("availability",{availability:e})}window.chrome=t;var u,c=e.cast,d=e.utils,f=e.events,p=0,h=null,g=d.extend({initialize:function(e){h=e,null!==c.availability?g.sendEvent("availability",{availability:c.availability}
10):t&&t.cast?r():u||(u=new d.scriptloader("https://www.gstatic.com/cv/js/sender/v1/cast_sender.js"),u.addEventListener(f.ERROR,i),u.addEventListener(f.COMPLETE,r),u.load())}},new f.eventdispatcher("cast.loader"));e.cast.loader=g,e.cast.loader.sendDummyMedia=n}(window.jwplayer,window.chrome||{}),function(e,t){var n=[],r=e.utils,i=e.events,a=e._,o=0,s=i.state,l="getBuffer getCaptionsList getControls getCurrentCaptions getCurrentQuality getCurrentAudioTrack getDuration getFullscreen getHeight getLockState getMute getPlaylistIndex getSafeRegion getPosition getQualityLevels getState getVolume getWidth isBeforeComplete isBeforePlay releaseState".split(" "),u="playlistNext stop forceState playlistPrev seek setCurrentCaptions setControls setCurrentQuality setVolume setCurrentAudioTrack".split(" "),c={onBufferChange:i.JWPLAYER_MEDIA_BUFFER,onBufferFull:i.JWPLAYER_MEDIA_BUFFER_FULL,onError:i.JWPLAYER_ERROR,onSetupError:i.JWPLAYER_SETUP_ERROR,onFullscreen:i.JWPLAYER_FULLSCREEN,onMeta:i.JWPLAYER_MEDIA_META,onMute:i.JWPLAYER_MEDIA_MUTE,onPlaylist:i.JWPLAYER_PLAYLIST_LOADED,onPlaylistItem:i.JWPLAYER_PLAYLIST_ITEM,onPlaylistComplete:i.JWPLAYER_PLAYLIST_COMPLETE,onReady:i.API_READY,onResize:i.JWPLAYER_RESIZE,onComplete:i.JWPLAYER_MEDIA_COMPLETE,onSeek:i.JWPLAYER_MEDIA_SEEK,onTime:i.JWPLAYER_MEDIA_TIME,onVolume:i.JWPLAYER_MEDIA_VOLUME,onBeforePlay:i.JWPLAYER_MEDIA_BEFOREPLAY,onBeforeComplete:i.JWPLAYER_MEDIA_BEFORECOMPLETE,onDisplayClick:i.JWPLAYER_DISPLAY_CLICK,onControls:i.JWPLAYER_CONTROLS,onQualityLevels:i.JWPLAYER_MEDIA_LEVELS,onQualityChange:i.JWPLAYER_MEDIA_LEVEL_CHANGED,onCaptionsList:i.JWPLAYER_CAPTIONS_LIST,onCaptionsChange:i.JWPLAYER_CAPTIONS_CHANGED,onAdError:i.JWPLAYER_AD_ERROR,onAdClick:i.JWPLAYER_AD_CLICK,onAdImpression:i.JWPLAYER_AD_IMPRESSION,onAdTime:i.JWPLAYER_AD_TIME,onAdComplete:i.JWPLAYER_AD_COMPLETE,onAdCompanions:i.JWPLAYER_AD_COMPANIONS,onAdSkipped:i.JWPLAYER_AD_SKIPPED,onAdPlay:i.JWPLAYER_AD_PLAY,onAdPause:i.JWPLAYER_AD_PAUSE,onAdMeta:i.JWPLAYER_AD_META,onCast:i.JWPLAYER_CAST_SESSION,onAudioTrackChange:i.JWPLAYER_AUDIO_TRACK_CHANGED,onAudioTracks:i.JWPLAYER_AUDIO_TRACKS},d={onBuffer:s.BUFFERING,onPause:s.PAUSED,onPlay:s.PLAYING,onIdle:s.IDLE};e.api=function(o){function f(e,t){r.foreach(e,function(e,n){E[e]=function(e){return t(n,e)}})}function p(e,t){var n="jw"+t.charAt(0).toUpperCase()+t.slice(1);E[t]=function(){var t=y.apply(this,[n].concat(Array.prototype.slice.call(arguments,0)));return e?E:t}}function h(e,t){try{e.jwAddEventListener(t,'function(dat) { jwplayer("'+E.id+'").dispatchEvent("'+t+'", dat); }')}catch(n){if("flash"===E.renderingMode){var i=document.createElement("a");i.href=m.data,i.protocol!==location.protocol&&r.log("Warning: Your site ["+location.protocol+"] and JWPlayer ["+i.protocol+"] are hosted using different protocols")}r.log("Could not add internal listener")}}function g(e,t){return A[e]||(A[e]=[],m&&P&&h(m,e)),A[e].push(t),E}function y(){if(P){if(m){var e=Array.prototype.slice.call(arguments,0),t=e.shift();if("function"==typeof m[t]){switch(e.length){case 6:return m[t](e[0],e[1],e[2],e[3],e[4],e[5]);case 5:return m[t](e[0],e[1],e[2],e[3],e[4]);case 4:return m[t](e[0],e[1],e[2],e[3]);case 3:return m[t](e[0],e[1],e[2]);case 2:return m[t](e[0],e[1]);case 1:return m[t](e[0])}return m[t]()}}return null}L.push(arguments)}var m,v,E=this,A={},w={},P=!1,L=[],R={},C={};return E.container=o,E.id=o.id,E.setup=function(t){if(e.embed){e.api.destroyPlayer(E.id);var n=new e.api(E.container);return e.api.addPlayer(n),n.config=t,n._embedder=new e.embed(n),n._embedder.embed(),n}return E},E.getContainer=function(){return E.container},E.addButton=function(e,t,n,i){try{C[i]=n,y("jwDockAddButton",e,t,'jwplayer("'+E.id+'").callback("'+i+'")',i)}catch(a){r.log("Could not add dock button"+a.message)}},E.removeButton=function(e){y("jwDockRemoveButton",e)},E.callback=function(e){C[e]&&C[e]()},E.getMeta=function(){return E.getItemMeta()},E.getPlaylist=function(){var e=y("jwGetPlaylist");return"flash"===E.renderingMode&&r.deepReplaceKeyName(e,["__dot__","__spc__","__dsh__","__default__"],["."," ","-","default"]),e},E.getPlaylistItem=function(e){return r.exists(e)||(e=E.getPlaylistIndex()),E.getPlaylist()[e]},E.getRenderingMode=function(){return E.renderingMode},E.setFullscreen=function(e){return r.exists(e)?y("jwSetFullscreen",e):y("jwSetFullscreen",!y("jwGetFullscreen")),E},E.setMute=function(e){return r.exists(e)?y("jwSetMute",e):y("jwSetMute",!y("jwGetMute")),E},E.lock=function(){return E},E.unlock=function(){return E},E.load=function(t){return y("jwInstreamDestroy"),e(E.id).plugins.googima&&y("jwDestroyGoogima"),y("jwLoad",t),E},E.playlistItem=function(e){return y("jwPlaylistItem",parseInt(e,10)),E},E.resize=function(e,t){if("flash"!==E.renderingMode)y("jwResize",e,t);else{var n=document.getElementById(E.id+"_wrapper"),i=document.getElementById(E.id+"_aspect");
10i&&(i.style.display="none"),n&&(n.style.display="block",n.style.width=r.styleDimension(e),n.style.height=r.styleDimension(t))}return E},E.play=function(e){if(e!==t)return y("jwPlay",e),E;e=E.getState();var n=v&&v.getState();return n&&y(n===s.IDLE||n===s.PLAYING||n===s.BUFFERING?"jwInstreamPause":"jwInstreamPlay"),y(e===s.PLAYING||e===s.BUFFERING?"jwPause":"jwPlay"),E},E.pause=function(e){return e===t?(e=E.getState(),y(e===s.PLAYING||e===s.BUFFERING?"jwPause":"jwPlay")):y("jwPause",e),E},E.createInstream=function(){return new e.api.instream(this,m)},E.setInstream=function(e){return v=e},E.loadInstream=function(e,t){return v=E.setInstream(E.createInstream()).init(t),v.loadItem(e),v},E.destroyPlayer=function(){P=!0,y("jwPlayerDestroy")},E.playAd=function(t){var n=e(E.id).plugins;n.vast?n.vast.jwPlayAd(t):y("jwPlayAd",t)},E.pauseAd=function(){var t=e(E.id).plugins;t.vast?t.vast.jwPauseAd():y("jwPauseAd")},f(d,function(e,t){return w[e]||(w[e]=[],g(i.JWPLAYER_PLAYER_STATE,function(t){var n=t.newstate;if(t=t.oldstate,n===e){var r=w[n];if(r)for(var i=0;i<r.length;i++){var a=r[i];"function"==typeof a&&a.call(this,{oldstate:t,newstate:n})}}})),w[e].push(t),E}),f(c,g),r.foreach(l,function(e,t){p(!1,t)}),r.foreach(u,function(e,t){p(!0,t)}),E.remove=function(){this._embedder&&this._embedder.destroy&&this._embedder.destroy(),L=[];var e=1<a.size(a.where(n,{id:E.id}));e||r.clearCss("#"+E.id);var t=document.getElementById(E.id+("flash"===E.renderingMode?"_wrapper":""));if(t){if("html5"===E.renderingMode)E.destroyPlayer();else if(r.isMSIE(8)){var i=document.getElementById(E.id);if(i&&i.parentNode){i.style.display="none";for(var o in i)"function"==typeof i[o]&&(i[o]=null);i.parentNode.removeChild(i)}}e||(e=document.createElement("div"),e.id=E.id,t.parentNode.replaceChild(e,t))}n=a.filter(n,function(e){return e.uniqueId!==E.uniqueId})},E.registerPlugin=function(t,n,r,i){e.plugins.registerPlugin(t,n,r,i)},E.setPlayer=function(e,t){m=e,E.renderingMode=t},E.detachMedia=function(){if("html5"===E.renderingMode)return y("jwDetachMedia")},E.attachMedia=function(e){if("html5"===E.renderingMode)return y("jwAttachMedia",e)},E.getAudioTracks=function(){return y("jwGetAudioTracks")},E.removeEventListener=function(e,t){var n=A[e];if(n)for(var r=n.length;r--;)n[r]===t&&n.splice(r,1)},E.dispatchEvent=function(e,t){var n=A[e];if(n)for(var n=n.slice(0),a=r.translateEventResponse(e,t),o=0;o<n.length;o++){var s=n[o];if("function"==typeof s)try{e===i.JWPLAYER_PLAYLIST_LOADED&&r.deepReplaceKeyName(a.playlist,["__dot__","__spc__","__dsh__","__default__"],["."," ","-","default"]),s.call(this,a)}catch(l){r.log("There was an error calling back an event handler",l)}}},E.dispatchInstreamEvent=function(e){v&&v.dispatchEvent(e,arguments)},E.callInternal=y,E.playerReady=function(e){for(P=!0,m||E.setPlayer(document.getElementById(e.id)),E.container=document.getElementById(E.id),r.foreach(A,function(e){h(m,e)}),g(i.JWPLAYER_PLAYLIST_ITEM,function(){R={}}),g(i.JWPLAYER_MEDIA_META,function(e){r.extend(R,e.metadata)}),g(i.JWPLAYER_VIEW_TAB_FOCUS,function(e){var t=E.getContainer();!0===e.hasFocus?r.addClass(t,"jw-tab-focus"):r.removeClass(t,"jw-tab-focus")}),E.dispatchEvent(i.API_READY);0<L.length;)y.apply(E,L.shift())},E.getItemMeta=function(){return R},E},e.playerReady=function(t){var n=e.api.playerById(t.id);n||(n=e.api.selectPlayer(t.id)),n.playerReady(t)},e.api.selectPlayer=function(t){var i;return r.exists(t)||(t=0),t.nodeType?i=t:"string"==typeof t&&(i=document.getElementById(t)),i?(t=e.api.playerById(i.id))?t:new e.api(i):"number"==typeof t?n[t]:null},e.api.playerById=function(e){for(var t=0;t<n.length;t++)if(n[t].id===e)return n[t];return null},e.api.addPlayer=function(e){for(var t=0;t<n.length;t++)if(n[t]===e)return e;return o++,e.uniqueId=o,n.push(e),e},e.api.destroyPlayer=function(e){e=a.where(n,{id:e}),a.each(e,a.partial(a.result,a,"remove"))}}(window.jwplayer),function(e){var t=e.events,n=e.utils,r=t.state;e.api.instream=function(e,i){function a(t,n){return u[t]||(u[t]=[],i.jwInstreamAddEventListener(t,'function(dat) { jwplayer("'+e.id+'").dispatchInstreamEvent("'+t+'", dat); }')),u[t].push(n),this}function o(e,n){return c[e]||(c[e]=[],a(t.JWPLAYER_PLAYER_STATE,function(t){var n=t.newstate,r=t.oldstate;if(n===e){var i=c[n];if(i)for(var a=0;a<i.length;a++){var o=i[a];"function"==typeof o&&o.call(this,{oldstate:r,newstate:n,type:t.type})}}})),c[e].push(n),this}var s,l,u={},c={},d=this;d.type="instream",d.init=function(){return e.callInternal("jwInitInstream"),d},d.loadItem=function(t,r){s=t,l=r||{},"array"===n.typeOf(t)?e.callInternal("jwLoadArrayInstream",s,l):e.callInternal("jwLoadItemInstream",s,l)},d.removeEvents=function(){u=c={}},d.removeEventListener=function(e,t){var n=u[e];
10if(n)for(var r=n.length;r--;)n[r]===t&&n.splice(r,1)},d.dispatchEvent=function(e,t){var r=u[e];if(r)for(var r=r.slice(0),i=n.translateEventResponse(e,t[1]),a=0;a<r.length;a++){var o=r[a];"function"==typeof o&&o.call(this,i)}},d.onError=function(e){return a(t.JWPLAYER_ERROR,e)},d.onMediaError=function(e){return a(t.JWPLAYER_MEDIA_ERROR,e)},d.onFullscreen=function(e){return a(t.JWPLAYER_FULLSCREEN,e)},d.onMeta=function(e){return a(t.JWPLAYER_MEDIA_META,e)},d.onMute=function(e){return a(t.JWPLAYER_MEDIA_MUTE,e)},d.onComplete=function(e){return a(t.JWPLAYER_MEDIA_COMPLETE,e)},d.onPlaylistComplete=function(e){return a(t.JWPLAYER_PLAYLIST_COMPLETE,e)},d.onPlaylistItem=function(e){return a(t.JWPLAYER_PLAYLIST_ITEM,e)},d.onTime=function(e){return a(t.JWPLAYER_MEDIA_TIME,e)},d.onBuffer=function(e){return o(r.BUFFERING,e)},d.onPause=function(e){return o(r.PAUSED,e)},d.onPlay=function(e){return o(r.PLAYING,e)},d.onIdle=function(e){return o(r.IDLE,e)},d.onClick=function(e){return a(t.JWPLAYER_INSTREAM_CLICK,e)},d.onInstreamDestroyed=function(e){return a(t.JWPLAYER_INSTREAM_DESTROYED,e)},d.onAdSkipped=function(e){return a(t.JWPLAYER_AD_SKIPPED,e)},d.play=function(e){i.jwInstreamPlay(e)},d.pause=function(e){i.jwInstreamPause(e)},d.hide=function(){e.callInternal("jwInstreamHide")},d.destroy=function(){d.removeEvents(),e.callInternal("jwInstreamDestroy")},d.setText=function(e){i.jwInstreamSetText(e?e:"")},d.getState=function(){return i.jwInstreamState()},d.setClick=function(e){i.jwInstreamClick&&i.jwInstreamClick(e)}}}(jwplayer),function(e){var t=e.api,n=t.selectPlayer,r=e._;t.selectPlayer=function(t){var r=n.apply(this,arguments);return r?r:{registerPlugin:function(t,n,r){"jwpsrv"!==t&&e.plugins.registerPlugin(t,n,r)}}},e.unregisteredProviders=[],t.registerProvider=function(t){e&&e.html5&&r.isFunction(e.html5.registerProvider)?e.html5.registerProvider(t):e.unregisteredProviders.push(t)}}(jwplayer)),jwplayer.key="5XPRfiHn4RruFQACzlMQEcmCAKwAs0t4wH2NQA==","https:"===location.protocol?jwplayer.defaults={flashplayer:"https://ssl.p.jwpcdn.com/6/12/jwplayer.flash.swf",html5player:"https://ssl.p.jwpcdn.com/6/12/jwplayer.html5.js",ph:1}:jwplayer.defaults={flashplayer:"http://p.jwpcdn.com/6/12/jwplayer.flash.swf",html5player:"http://p.jwpcdn.com/6/12/jwplayer.html5.js",ph:1};;;;
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.