function getUrlParameter(n){for(var i,u=window.location.search.substring(1),r=u.split("&"),t=0;t<r.length;t++)if(i=r[t].split("="),i[0]==n)return i[1]}!function(n){n(["jquery"],function(n){return function(){function a(n,t,r){return u({type:f.error,iconClass:i().iconClasses.error,message:n,optionsOverride:r,title:t})}function r(r,u){return r||(r=i()),t=n("#"+r.containerId),t.length?t:(u&&(t=g(r)),t)}function v(n,t,r){return u({type:f.info,iconClass:i().iconClasses.info,message:n,optionsOverride:r,title:t})}function y(n){o=n}function p(n,t,r){return u({type:f.success,iconClass:i().iconClasses.success,message:n,optionsOverride:r,title:t})}function w(n,t,r){return u({type:f.warning,iconClass:i().iconClasses.warning,message:n,optionsOverride:r,title:t})}function b(n){var u=i();t||r(u);s(n,u)||d(u)}function k(u){var f=i();return t||r(f),u&&0===n(":focus",u).length?void e(u):void(t.children().length&&t.remove())}function d(i){for(var u=t.children(),r=u.length-1;r>=0;r--)s(n(u[r]),i)}function s(t,i){return t&&0===n(":focus",t).length?(t[i.hideMethod]({duration:i.hideDuration,easing:i.hideEasing,complete:function(){e(t)}}),!0):!1}function g(i){return t=n("<div/>").attr("id",i.containerId).addClass(i.positionClass).attr("aria-live","polite").attr("role","alert"),t.appendTo(n(i.target)),t}function nt(){return{tapToDismiss:!0,toastClass:"toast",containerId:"toast-container",debug:!1,showMethod:"fadeIn",showDuration:300,showEasing:"swing",onShown:void 0,hideMethod:"fadeOut",hideDuration:1e3,hideEasing:"swing",onHidden:void 0,extendedTimeOut:1e3,iconClasses:{error:"toast-error",info:"toast-info",success:"toast-success",warning:"toast-warning"},iconClass:"toast-info",positionClass:"toast-top-right",timeOut:5e3,titleClass:"toast-title",messageClass:"toast-message",target:"body",closeHtml:"<button>&times;<\/button>",newestOnTop:!0}}function h(n){o&&o(n)}function u(u){function l(t){if(!n(":focus",o).length||t)return o[f.hideMethod]({duration:f.hideDuration,easing:f.hideEasing,complete:function(){e(o);f.onHidden&&"hidden"!==s.state&&f.onHidden();s.state="hidden";s.endTime=new Date;h(s)}})}function b(){(f.timeOut>0||f.extendedTimeOut>0)&&(y=setTimeout(l,f.extendedTimeOut))}function k(){clearTimeout(y);o.stop(!0,!0)[f.showMethod]({duration:f.showDuration,easing:f.showEasing})}var f=i(),v=u.iconClass||f.iconClass;"undefined"!=typeof u.optionsOverride&&(f=n.extend(f,u.optionsOverride),v=u.optionsOverride.iconClass||v);c++;t=r(f,!0);var y=null,o=n("<div/>"),p=n("<div/>"),w=n("<div/>"),a=n(f.closeHtml),s={toastId:c,state:"visible",startTime:new Date,options:f,map:u};return u.iconClass&&o.addClass(f.toastClass).addClass(v),u.title&&(p.append(u.title).addClass(f.titleClass),o.append(p)),u.message&&(w.append(u.message).addClass(f.messageClass),o.append(w)),f.closeButton&&(a.addClass("toast-close-button").attr("role","button"),o.prepend(a)),o.hide(),f.newestOnTop?t.prepend(o):t.append(o),o[f.showMethod]({duration:f.showDuration,easing:f.showEasing,complete:f.onShown}),f.timeOut>0&&(y=setTimeout(l,f.timeOut)),o.hover(k,b),!f.onclick&&f.tapToDismiss&&o.click(l),f.closeButton&&a&&a.click(function(n){n.stopPropagation?n.stopPropagation():void 0!==n.cancelBubble&&n.cancelBubble!==!0&&(n.cancelBubble=!0);l(!0)}),f.onclick&&o.click(function(){f.onclick();l()}),h(s),f.debug&&console&&console.log(s),o}function i(){return n.extend({},nt(),l.options)}function e(n){t||(t=r());n.is(":visible")||(n.remove(),n=null,0===t.children().length&&t.remove())}var t,o,c=0,f={error:"error",info:"info",success:"success",warning:"warning"},l={clear:b,remove:k,error:a,getContainer:r,info:v,options:{},subscribe:y,success:p,version:"2.0.3",warning:w};return l}()})}("function"==typeof define&&define.amd?define:function(n,t){"undefined"!=typeof module&&module.exports?module.exports=t(require("jquery")):window.toastr=t(window.jQuery)}),function(n,t,i){function l(n){var t={},r=/^jQuery\d+$/;return i.each(n.attributes,function(n,i){i.specified&&!r.test(i.name)&&(t[i.name]=i.value)}),t}function f(n,r){var f=this,u=i(f);if(f.value==u.attr("placeholder")&&u.hasClass("placeholder"))if(u.data("placeholder-password")){if(u=u.hide().next().show().attr("id",u.removeAttr("id").data("placeholder-id")),n===!0)return u[0].value=r;u.focus()}else f.value="",u.removeClass("placeholder"),f==t.activeElement&&f.select()}function s(){var t,r=this,n=i(r),e=n,u=this.id;if(r.value==""){if(r.type=="password"){if(!n.data("placeholder-textinput")){try{t=n.clone().attr({type:"text"})}catch(o){t=i("<input>").attr(i.extend(l(this),{type:"text"}))}t.removeAttr("name").data({"placeholder-password":!0,"placeholder-id":u}).bind("focus.placeholder",f);n.data({"placeholder-textinput":t,"placeholder-id":u}).before(t)}n=n.removeAttr("id").hide().prev().attr("id",u).show()}n.addClass("placeholder");n[0].value=n.attr("placeholder")}else n.removeClass("placeholder")}var u="placeholder"in t.createElement("input"),e="placeholder"in t.createElement("textarea"),h=i.fn,c=i.valHooks,o,r;u&&e?(r=h.placeholder=function(){return this},r.input=r.textarea=!0):(r=h.placeholder=function(){var n=this;return n.filter((u?"textarea":":input")+"[placeholder]").not(".placeholder").bind({"focus.placeholder":f,"blur.placeholder":s}).data("placeholder-enabled",!0).trigger("blur.placeholder"),n},r.input=u,r.textarea=e,o={get:function(n){var t=i(n);return t.data("placeholder-enabled")&&t.hasClass("placeholder")?"":n.value},set:function(n,r){var u=i(n);return u.data("placeholder-enabled")?(r==""?(n.value=r,n!=t.activeElement&&s.call(n)):u.hasClass("placeholder")?f.call(n,!0,r)||(n.value=r):n.value=r,u):n.value=r}},u||(c.input=o),e||(c.textarea=o),i(function(){i(t).delegate("form","submit.placeholder",function(){var n=i(".placeholder",this).each(f);setTimeout(function(){n.each(s)},10)})}),i(n).bind("beforeunload.placeholder",function(){i(".placeholder").each(function(){this.value=""})}))}(this,document,jQuery);jQuery.fn.autoGrow=function(){return this.each(function(){var i=function(n){return jQuery(n).after('<div class="autogrow-textarea-mirror"><\/div>'),jQuery(n).next(".autogrow-textarea-mirror")[0]},t=function(t){n.innerHTML=String(t.value).replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/'/g,"&#39;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/\n/g,"<br />")+".<br/>.";jQuery(t).height()!=jQuery(n).height()&&jQuery(t).height(jQuery(n).height())},r=function(){t(this)},n=i(this);n.style.display="none";n.style.wordWrap="break-word";n.style.padding=jQuery(this).css("padding");n.style.width=jQuery(this).css("width");n.style.fontFamily=jQuery(this).css("font-family");n.style.fontSize=jQuery(this).css("font-size");n.style.lineHeight=jQuery(this).css("line-height");this.style.overflow="hidden";this.style.minHeight=this.rows+"em";this.onkeyup=r;t(this)})},function(){for(var n,u=function(){},t=["assert","clear","count","debug","dir","dirxml","error","exception","group","groupCollapsed","groupEnd","info","log","markTimeline","profile","profileEnd","table","time","timeEnd","timeStamp","trace","warn"],i=t.length,r=window.console=window.console||{};i--;)n=t[i],r[n]||(r[n]=u)}();$(document).ready(function(){$("input, textarea").placeholder();toastr.options={closeButton:!0,debug:!1,positionClass:"toast-top-right",onclick:null,showDuration:"300",hideDuration:"1000",timeOut:"30000",extendedTimeOut:"30000",showEasing:"swing",hideEasing:"linear",showMethod:"fadeIn",hideMethod:"fadeOut"};successMessage.length&&toastr.success(successMessage);errorMessage.length&&toastr.error(errorMessage)});!function(n){var t=function(){"use strict";return{isMsie:function(){return/(msie|trident)/i.test(navigator.userAgent)?navigator.userAgent.match(/(msie |rv:)(\d+(.\d+)?)/i)[2]:!1},isBlankString:function(n){return!n||/^\s*$/.test(n)},escapeRegExChars:function(n){return n.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")},isString:function(n){return"string"==typeof n},isNumber:function(n){return"number"==typeof n},isArray:n.isArray,isFunction:n.isFunction,isObject:n.isPlainObject,isUndefined:function(n){return"undefined"==typeof n},toStr:function(n){return t.isUndefined(n)||null===n?"":n+""},bind:n.proxy,each:function(t,i){function r(n,t){return i(t,n)}n.each(t,r)},map:n.map,filter:n.grep,every:function(t,i){var r=!0;return t?(n.each(t,function(n,u){if(!(r=i.call(null,u,n,t)))return!1}),!!r):r},some:function(t,i){var r=!1;return t?(n.each(t,function(n,u){if((r=i.call(null,u,n,t)))return!1}),!!r):r},mixin:n.extend,getUniqueId:function(){var n=0;return function(){return n++}}(),templatify:function(t){function i(){return String(t)}return n.isFunction(t)?t:i},defer:function(n){setTimeout(n,0)},debounce:function(n,t,i){var r,u;return function(){var f,e,o=this,s=arguments;return f=function(){r=null;i||(u=n.apply(o,s))},e=i&&!r,clearTimeout(r),r=setTimeout(f,t),e&&(u=n.apply(o,s)),u}},throttle:function(n,t){var u,f,i,e,r,o;return r=0,o=function(){r=new Date;i=null;e=n.apply(u,f)},function(){var s=new Date,h=t-(s-r);return u=this,f=arguments,0>=h?(clearTimeout(i),i=null,r=s,e=n.apply(u,f)):i||(i=setTimeout(o,h)),e}},noop:function(){}}}(),l="0.10.5",a=function(){"use strict";function n(n){return n=t.toStr(n),n?n.split(/\s+/):[]}function i(n){return n=t.toStr(n),n?n.split(/\W+/):[]}function r(n){return function(){var i=[].slice.call(arguments,0);return function(r){var u=[];return t.each(i,function(i){u=u.concat(n(t.toStr(r[i])))}),u}}}return{nonword:i,whitespace:n,obj:{nonword:r(i),whitespace:r(n)}}}(),o=function(){"use strict";function i(i){this.maxSize=t.isNumber(i)?i:100;this.reset();this.maxSize<=0&&(this.set=this.get=n.noop)}function r(){this.head=this.tail=null}function u(n,t){this.key=n;this.val=t;this.prev=this.next=null}return t.mixin(i.prototype,{set:function(n,t){var i,r=this.list.tail;this.size>=this.maxSize&&(this.list.remove(r),delete this.hash[r.key]);(i=this.hash[n])?(i.val=t,this.list.moveToFront(i)):(i=new u(n,t),this.list.add(i),this.hash[n]=i,this.size++)},get:function(n){var t=this.hash[n];if(t)return(this.list.moveToFront(t),t.val)},reset:function(){this.size=0;this.hash={};this.list=new r}}),t.mixin(r.prototype,{add:function(n){this.head&&(n.next=this.head,this.head.prev=n);this.head=n;this.tail=this.tail||n},remove:function(n){n.prev?n.prev.next=n.next:this.head=n.next;n.next?n.next.prev=n.prev:this.tail=n.prev},moveToFront:function(n){this.remove(n);this.add(n)}}),i}(),v=function(){"use strict";function i(n){this.prefix=["__",n,"__"].join("");this.ttlKey="__ttl__";this.keyMatcher=new RegExp("^"+t.escapeRegExChars(this.prefix))}function r(){return(new Date).getTime()}function u(n){return JSON.stringify(t.isUndefined(n)?null:n)}function f(n){return JSON.parse(n)}var n,e;try{n=window.localStorage;n.setItem("~~~","!");n.removeItem("~~~")}catch(o){n=null}return e=n&&window.JSON?{_prefix:function(n){return this.prefix+n},_ttlKey:function(n){return this._prefix(n)+this.ttlKey},get:function(t){return this.isExpired(t)&&this.remove(t),f(n.getItem(this._prefix(t)))},set:function(i,f,e){return t.isNumber(e)?n.setItem(this._ttlKey(i),u(r()+e)):n.removeItem(this._ttlKey(i)),n.setItem(this._prefix(i),u(f))},remove:function(t){return n.removeItem(this._ttlKey(t)),n.removeItem(this._prefix(t)),this},clear:function(){for(var r,i=[],u=n.length,t=0;u>t;t++)(r=n.key(t)).match(this.keyMatcher)&&i.push(r.replace(this.keyMatcher,""));for(t=i.length;t--;)this.remove(i[t]);return this},isExpired:function(i){var u=f(n.getItem(this._ttlKey(i)));return t.isNumber(u)&&r()>u?!0:!1}}:{get:t.noop,set:t.noop,remove:t.noop,clear:t.noop,isExpired:t.noop},t.mixin(i.prototype,e),i}(),s=function(){"use strict";function i(t){t=t||{};this.cancelled=!1;this.lastUrl=null;this._send=t.transport?s(t.transport):n.ajax;this._get=t.rateLimiter?t.rateLimiter(this._get):this._get;this._cache=t.cache===!1?new o(0):e}function s(i){return function(r,u){function e(n){t.defer(function(){f.resolve(n)})}function o(n){t.defer(function(){f.reject(n)})}var f=n.Deferred();return i(r,u,e,o),f}}var r=0,u={},f=6,e=new o(10);return i.setMaxPendingRequests=function(n){f=n},i.resetCache=function(){e.reset()},t.mixin(i.prototype,{_get:function(n,t,i){function o(t){i&&i(null,t);e._cache.set(n,t)}function s(){i&&i(!0)}function c(){r--;delete u[n];e.onDeckRequestArgs&&(e._get.apply(e,e.onDeckRequestArgs),e.onDeckRequestArgs=null)}var h,e=this;this.cancelled||n!==this.lastUrl||((h=u[n])?h.done(o).fail(s):f>r?(r++,u[n]=this._send(n,t).done(o).fail(s).always(c)):this.onDeckRequestArgs=[].slice.call(arguments,0))},get:function(n,i,r){var u;return t.isFunction(i)&&(r=i,i={}),this.cancelled=!1,this.lastUrl=n,(u=this._cache.get(n))?t.defer(function(){r&&r(null,u)}):this._get(n,i,r),!!u},cancel:function(){this.cancelled=!0}}),i}(),y=function(){"use strict";function i(t){t=t||{};t.datumTokenizer&&t.queryTokenizer||n.error("datumTokenizer and queryTokenizer are both required");this.datumTokenizer=t.datumTokenizer;this.queryTokenizer=t.queryTokenizer;this.reset()}function r(n){return n=t.filter(n,function(n){return!!n}),n=t.map(n,function(n){return n.toLowerCase()})}function u(){return{ids:[],children:{}}}function f(n){for(var i={},r=[],t=0,u=n.length;u>t;t++)i[n[t]]||(i[n[t]]=!0,r.push(n[t]));return r}function e(n,t){function u(n,t){return n-t}var i=0,r=0,f=[],e,o;for(n=n.sort(u),t=t.sort(u),e=n.length,o=t.length;e>i&&o>r;)n[i]<t[r]?i++:n[i]>t[r]?r++:(f.push(n[i]),i++,r++);return f}return t.mixin(i.prototype,{bootstrap:function(n){this.datums=n.datums;this.trie=n.trie},add:function(n){var i=this;n=t.isArray(n)?n:[n];t.each(n,function(n){var f,e;f=i.datums.push(n)-1;e=r(i.datumTokenizer(n));t.each(e,function(n){for(var r,t=i.trie,e=n.split("");r=e.shift();)t=t.children[r]||(t.children[r]=u()),t.ids.push(f)})})},get:function(n){var u,i,o=this;return u=r(this.queryTokenizer(n)),t.each(u,function(n){var t,r,f,u;if(i&&0===i.length)return!1;for(t=o.trie,r=n.split("");t&&(f=r.shift());)t=t.children[f];return t&&0===r.length?(u=t.ids.slice(0),void(i=i?e(i,u):u)):(i=[],!1)}),i?t.map(f(i),function(n){return o.datums[n]}):[]},reset:function(){this.datums=[];this.trie=u()},serialize:function(){return{datums:this.datums,trie:this.trie}}}),i}(),f=function(){"use strict";function i(n){return n.local||null}function r(i){var r,u;return u={url:null,thumbprint:"",ttl:864e5,filter:null,ajax:{}},(r=i.prefetch||null)&&(r=t.isString(r)?{url:r}:r,r=t.mixin(u,r),r.thumbprint=l+r.thumbprint,r.ajax.type=r.ajax.type||"GET",r.ajax.dataType=r.ajax.dataType||"json",!r.url&&n.error("prefetch requires url to be set")),r}function u(i){function f(n){return function(i){return t.debounce(i,n)}}function e(n){return function(i){return t.throttle(i,n)}}var r,u;return u={url:null,cache:!0,wildcard:"%QUERY",replace:null,rateLimitBy:"debounce",rateLimitWait:300,send:null,filter:null,ajax:{}},(r=i.remote||null)&&(r=t.isString(r)?{url:r}:r,r=t.mixin(u,r),r.rateLimiter=/^throttle$/i.test(r.rateLimitBy)?e(r.rateLimitWait):f(r.rateLimitWait),r.ajax.type=r.ajax.type||"GET",r.ajax.dataType=r.ajax.dataType||"json",delete r.rateLimitBy,delete r.rateLimitWait,!r.url&&n.error("remote requires url to be set")),r}return{local:i,prefetch:r,remote:u}}();!function(i){"use strict";function u(t){t&&(t.local||t.prefetch||t.remote)||n.error("one of local, prefetch, or remote is required");this.limit=t.limit||5;this.sorter=o(t.sorter);this.dupDetector=t.dupDetector||h;this.local=f.local(t);this.prefetch=f.prefetch(t);this.remote=f.remote(t);this.cacheKey=this.prefetch?this.prefetch.cacheKey||this.prefetch.url:null;this.index=new y({datumTokenizer:t.datumTokenizer,queryTokenizer:t.queryTokenizer});this.storage=this.cacheKey?new v(this.cacheKey):null}function o(n){function i(t){return t.sort(n)}function r(n){return n}return t.isFunction(n)?i:r}function h(){return!1}var e,r;return e=i.Bloodhound,r={data:"data",protocol:"protocol",thumbprint:"thumbprint"},i.Bloodhound=u,u.noConflict=function(){return i.Bloodhound=e,u},u.tokenizers=a,t.mixin(u.prototype,{_loadPrefetch:function(t){function f(n){i.clear();i.add(t.filter?t.filter(n):n);i._saveToStorage(i.index.serialize(),t.thumbprint,t.ttl)}var u,r,i=this;return(u=this._readFromStorage(t.thumbprint))?(this.index.bootstrap(u),r=n.Deferred().resolve()):r=n.ajax(t.url,t.ajax).done(f),r},_getFromRemote:function(n,t){function f(n,i){t(n?[]:u.remote.filter?u.remote.filter(i):i)}var i,r,u=this;if(this.transport)return n=n||"",r=encodeURIComponent(n),i=this.remote.replace?this.remote.replace(this.remote.url,n):this.remote.url.replace(this.remote.wildcard,r),this.transport.get(i,this.remote.ajax,f)},_cancelLastRemoteRequest:function(){this.transport&&this.transport.cancel()},_saveToStorage:function(n,t,i){this.storage&&(this.storage.set(r.data,n,i),this.storage.set(r.protocol,location.protocol,i),this.storage.set(r.thumbprint,t,i))},_readFromStorage:function(n){var i,t={};return this.storage&&(t.data=this.storage.get(r.data),t.protocol=this.storage.get(r.protocol),t.thumbprint=this.storage.get(r.thumbprint)),i=t.thumbprint!==n||t.protocol!==location.protocol,t.data&&!i?t.data:null},_initialize:function(){function u(){f.add(t.isFunction(i)?i():i)}var r,f=this,i=this.local;return r=this.prefetch?this._loadPrefetch(this.prefetch):n.Deferred().resolve(),i&&r.done(u),this.transport=this.remote?new s(this.remote):null,this.initPromise=r.promise()},initialize:function(n){return!this.initPromise||n?this._initialize():this.initPromise},add:function(n){this.index.add(n)},get:function(n,i){function e(n){var f=r.slice(0);t.each(n,function(n){var i;return i=t.some(f,function(t){return u.dupDetector(n,t)}),!i&&f.push(n),f.length<u.limit});i&&i(u.sorter(f))}var u=this,r=[],f=!1;r=this.index.get(n);r=this.sorter(r).slice(0,this.limit);r.length<this.limit?f=this._getFromRemote(n,e):this._cancelLastRemoteRequest();f||(r.length>0||!this.transport)&&i&&i(r)},clear:function(){this.index.reset()},clearPrefetchCache:function(){this.storage&&this.storage.clear()},clearRemoteCache:function(){this.transport&&s.resetCache()},ttAdapter:function(){return t.bind(this.get,this)}}),u}(this);var r=function(){return{wrapper:'<span class="twitter-typeahead"><\/span>',dropdown:'<span class="tt-dropdown-menu"><\/span>',dataset:'<div class="tt-dataset-%CLASS%"><\/div>',suggestions:'<span class="tt-suggestions"><\/span>',suggestion:'<div class="tt-suggestion"><\/div>'}}(),i=function(){"use strict";var n={wrapper:{position:"relative",display:"inline-block"},hint:{position:"absolute",top:"0",left:"0",borderColor:"transparent",boxShadow:"none",opacity:"1"},input:{position:"relative",verticalAlign:"top",backgroundColor:"transparent"},inputWithNoHint:{position:"relative",verticalAlign:"top"},dropdown:{position:"absolute",top:"100%",left:"0",zIndex:"100",display:"none"},suggestions:{display:"block"},suggestion:{whiteSpace:"nowrap",cursor:"pointer"},suggestionChild:{whiteSpace:"normal"},ltr:{left:"0",right:"auto"},rtl:{left:"auto",right:" 0"}};return t.isMsie()&&t.mixin(n.input,{backgroundImage:"url(data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7)"}),t.isMsie()&&t.isMsie()<=7&&t.mixin(n.input,{marginTop:"-1px"}),n}(),h=function(){"use strict";function i(t){t&&t.el||n.error("EventBus initialized without el");this.$el=n(t.el)}var r="typeahead:";return t.mixin(i.prototype,{trigger:function(n){var t=[].slice.call(arguments,1);this.$el.trigger(r+n,t)}}),i}(),e=function(){"use strict";function t(t,i,r,u){var f;if(!r)return this;for(i=i.split(n),r=u?s(r,u):r,this._callbacks=this._callbacks||{};f=i.shift();)this._callbacks[f]=this._callbacks[f]||{sync:[],async:[]},this._callbacks[f][t].push(r);return this}function r(n,i,r){return t.call(this,"async",n,i,r)}function u(n,i,r){return t.call(this,"sync",n,i,r)}function f(t){var i;if(!this._callbacks)return this;for(t=t.split(n);i=t.shift();)delete this._callbacks[i];return this}function e(t){var r,u,f,e,o;if(!this._callbacks)return this;for(t=t.split(n),f=[].slice.call(arguments,1);(r=t.shift())&&(u=this._callbacks[r]);)e=i(u.sync,this,[r].concat(f)),o=i(u.async,this,[r].concat(f)),e()&&h(o);return this}function i(n,t,i){function r(){for(var r,u=0,f=n.length;!r&&f>u;u+=1)r=n[u].apply(t,i)===!1;return!r}return r}function o(){return window.setImmediate?function(n){setImmediate(function(){n()})}:function(n){setTimeout(function(){n()},0)}}function s(n,t){return n.bind?n.bind(t):function(){n.apply(t,[].slice.call(arguments,0))}}var n=/\s+/,h=o();return{onSync:u,onAsync:r,off:f,trigger:e}}(),p=function(n){"use strict";function i(n,i,r){for(var u,f=[],e=0,o=n.length;o>e;e++)f.push(t.escapeRegExChars(n[e]));return u=r?"\\b("+f.join("|")+")\\b":"("+f.join("|")+")",i?new RegExp(u):new RegExp(u,"i")}var r={node:null,pattern:null,tagName:"strong",className:null,wordsOnly:!1,caseSensitive:!1};return function(u){function o(t){var i,r,f;return(i=e.exec(t.data))&&(f=n.createElement(u.tagName),u.className&&(f.className=u.className),r=t.splitText(i.index),r.splitText(i[0].length),f.appendChild(r.cloneNode(!0)),t.parentNode.replaceChild(f,r)),!!i}function f(n,t){for(var i,r=0;r<n.childNodes.length;r++)i=n.childNodes[r],i.nodeType===3?r+=t(i)?1:0:f(i,t)}var e;u=t.mixin({},r,u);u.node&&u.pattern&&(u.pattern=t.isArray(u.pattern)?u.pattern:[u.pattern],e=i(u.pattern,u.caseSensitive,u.wordsOnly),f(u.node,o))}}(window.document),c=function(){"use strict";function i(i){var r,e,o,s,h=this;i=i||{};i.input||n.error("input is missing");r=t.bind(this._onBlur,this);e=t.bind(this._onFocus,this);o=t.bind(this._onKeydown,this);s=t.bind(this._onInput,this);this.$hint=n(i.hint);this.$input=n(i.input).on("blur.tt",r).on("focus.tt",e).on("keydown.tt",o);0===this.$hint.length&&(this.setHint=this.getHint=this.clearHint=this.clearHintIfInvalid=t.noop);t.isMsie()?this.$input.on("keydown.tt keypress.tt cut.tt paste.tt",function(n){u[n.which||n.keyCode]||t.defer(t.bind(h._onInput,h,n))}):this.$input.on("input.tt",s);this.query=this.$input.val();this.$overflowHelper=f(this.$input)}function f(t){return n('<pre aria-hidden="true"><\/pre>').css({position:"absolute",visibility:"hidden",whiteSpace:"pre",fontFamily:t.css("font-family"),fontSize:t.css("font-size"),fontStyle:t.css("font-style"),fontVariant:t.css("font-variant"),fontWeight:t.css("font-weight"),wordSpacing:t.css("word-spacing"),letterSpacing:t.css("letter-spacing"),textIndent:t.css("text-indent"),textRendering:t.css("text-rendering"),textTransform:t.css("text-transform")}).insertAfter(t)}function o(n,t){return i.normalizeQuery(n)===i.normalizeQuery(t)}function r(n){return n.altKey||n.ctrlKey||n.metaKey||n.shiftKey}var u;return u={9:"tab",27:"esc",37:"left",39:"right",13:"enter",38:"up",40:"down"},i.normalizeQuery=function(n){return(n||"").replace(/^\s*/g,"").replace(/\s{2,}/g," ")},t.mixin(i.prototype,e,{_onBlur:function(){this.resetInputValue();this.trigger("blurred")},_onFocus:function(){this.trigger("focused")},_onKeydown:function(n){var t=u[n.which||n.keyCode];this._managePreventDefault(t,n);t&&this._shouldTrigger(t,n)&&this.trigger(t+"Keyed",n)},_onInput:function(){this._checkInputValue()},_managePreventDefault:function(n,t){var i,u,f;switch(n){case"tab":u=this.getHint();f=this.getInputValue();i=u&&u!==f&&!r(t);break;case"up":case"down":i=!r(t);break;default:i=!1}i&&t.preventDefault()},_shouldTrigger:function(n,t){var i;switch(n){case"tab":i=!r(t);break;default:i=!0}return i},_checkInputValue:function(){var n,t,i;n=this.getInputValue();t=o(n,this.query);i=t?this.query.length!==n.length:!1;this.query=n;t?i&&this.trigger("whitespaceChanged",this.query):this.trigger("queryChanged",this.query)},focus:function(){this.$input.focus()},blur:function(){this.$input.blur()},getQuery:function(){return this.query},setQuery:function(n){this.query=n},getInputValue:function(){return this.$input.val()},setInputValue:function(n,t){this.$input.val(n);t?this.clearHint():this._checkInputValue()},resetInputValue:function(){this.setInputValue(this.query,!0)},getHint:function(){return this.$hint.val()},setHint:function(n){this.$hint.val(n)},clearHint:function(){this.setHint("")},clearHintIfInvalid:function(){var n,t,i,r;n=this.getInputValue();t=this.getHint();i=n!==t&&0===t.indexOf(n);r=""!==n&&i&&!this.hasOverflow();!r&&this.clearHint()},getLanguageDirection:function(){return(this.$input.css("direction")||"ltr").toLowerCase()},hasOverflow:function(){var n=this.$input.width()-2;return this.$overflowHelper.text(this.getInputValue()),this.$overflowHelper.width()>=n},isCursorAtEnd:function(){var n,i,r;return n=this.$input.val().length,i=this.$input[0].selectionStart,t.isNumber(i)?i===n:document.selection?(r=document.selection.createRange(),r.moveStart("character",-n),n===r.text.length):!0},destroy:function(){this.$hint.off(".tt");this.$input.off(".tt");this.$hint=this.$input=this.$overflowHelper=null}}),i}(),u=function(){"use strict";function u(i){i=i||{};i.templates=i.templates||{};i.source||n.error("missing source");i.name&&!l(i.name)&&n.error("invalid dataset name: "+i.name);this.query=null;this.highlight=!!i.highlight;this.name=i.name||t.getUniqueId();this.source=i.source;this.displayFn=h(i.display||i.displayKey);this.templates=c(i.templates,this.displayFn);this.$el=n(r.dataset.replace("%CLASS%",this.name))}function h(n){function i(t){return t[n]}return n=n||"value",t.isFunction(n)?n:i}function c(n,i){function r(n){return"<p>"+i(n)+"<\/p>"}return{empty:n.empty&&t.templatify(n.empty),header:n.header&&t.templatify(n.header),footer:n.footer&&t.templatify(n.footer),suggestion:n.suggestion||r}}function l(n){return/^[_a-zA-Z0-9-]+$/.test(n)}var f="ttDataset",o="ttValue",s="ttDatum";return u.extractDatasetName=function(t){return n(t).data(f)},u.extractValue=function(t){return n(t).data(o)},u.extractDatum=function(t){return n(t).data(s)},t.mixin(u.prototype,e,{_render:function(u,e){function v(){return h.templates.empty({query:u,isEmpty:!0})}function y(){function a(t){var u;return u=n(r.suggestion).append(h.templates.suggestion(t)).data(f,h.name).data(o,h.displayFn(t)).data(s,t),u.children().each(function(){n(this).css(i.suggestionChild)}),u}var c,l;return c=n(r.suggestions).css(i.suggestions),l=t.map(e,a),c.append.apply(c,l),h.highlight&&p({className:"tt-highlight",node:c[0],pattern:u}),c}function l(){return h.templates.header({query:u,isEmpty:!c})}function a(){return h.templates.footer({query:u,isEmpty:!c})}if(this.$el){var c,h=this;this.$el.empty();c=e&&e.length;!c&&this.templates.empty?this.$el.html(v()).prepend(h.templates.header?l():null).append(h.templates.footer?a():null):c&&this.$el.html(y()).prepend(h.templates.header?l():null).append(h.templates.footer?a():null);this.trigger("rendered")}},getRoot:function(){return this.$el},update:function(n){function i(i){t.canceled||n!==t.query||t._render(n,i)}var t=this;this.query=n;this.canceled=!1;this.source(n,i)},cancel:function(){this.canceled=!0},clear:function(){this.cancel();this.$el.empty();this.trigger("rendered")},isEmpty:function(){return this.$el.is(":empty")},destroy:function(){this.$el=null}}),u}(),w=function(){"use strict";function r(i){var u,e,o,r=this;i=i||{};i.menu||n.error("menu is required");this.isOpen=!1;this.isEmpty=!0;this.datasets=t.map(i.datasets,f);u=t.bind(this._onSuggestionClick,this);e=t.bind(this._onSuggestionMouseEnter,this);o=t.bind(this._onSuggestionMouseLeave,this);this.$menu=n(i.menu).on("click.tt",".tt-suggestion",u).on("mouseenter.tt",".tt-suggestion",e).on("mouseleave.tt",".tt-suggestion",o);t.each(this.datasets,function(n){r.$menu.append(n.getRoot());n.onSync("rendered",r._onRendered,r)})}function f(n){return new u(n)}return t.mixin(r.prototype,e,{_onSuggestionClick:function(t){this.trigger("suggestionClicked",n(t.currentTarget))},_onSuggestionMouseEnter:function(t){this._removeCursor();this._setCursor(n(t.currentTarget),!0)},_onSuggestionMouseLeave:function(){this._removeCursor()},_onRendered:function(){function n(n){return n.isEmpty()}this.isEmpty=t.every(this.datasets,n);this.isEmpty?this._hide():this.isOpen&&this._show();this.trigger("datasetRendered")},_hide:function(){this.$menu.hide()},_show:function(){this.$menu.css("display","block")},_getSuggestions:function(){return this.$menu.find(".tt-suggestion")},_getCursor:function(){return this.$menu.find(".tt-cursor").first()},_setCursor:function(n,t){n.first().addClass("tt-cursor");t||this.trigger("cursorMoved")},_removeCursor:function(){this._getCursor().removeClass("tt-cursor")},_moveCursor:function(n){var i,r,t,u;if(this.isOpen){if(r=this._getCursor(),i=this._getSuggestions(),this._removeCursor(),t=i.index(r)+n,t=(t+1)%(i.length+1)-1,-1===t)return void this.trigger("cursorRemoved");-1>t&&(t=i.length-1);this._setCursor(u=i.eq(t));this._ensureVisible(u)}},_ensureVisible:function(n){var t,i,r,u;t=n.position().top;i=t+n.outerHeight(!0);r=this.$menu.scrollTop();u=this.$menu.height()+parseInt(this.$menu.css("paddingTop"),10)+parseInt(this.$menu.css("paddingBottom"),10);0>t?this.$menu.scrollTop(r+t):i>u&&this.$menu.scrollTop(r+(i-u))},close:function(){this.isOpen&&(this.isOpen=!1,this._removeCursor(),this._hide(),this.trigger("closed"))},open:function(){this.isOpen||(this.isOpen=!0,!this.isEmpty&&this._show(),this.trigger("opened"))},setLanguageDirection:function(n){this.$menu.css("ltr"===n?i.ltr:i.rtl)},moveCursorUp:function(){this._moveCursor(-1)},moveCursorDown:function(){this._moveCursor(1)},getDatumForSuggestion:function(n){var t=null;return n.length&&(t={raw:u.extractDatum(n),value:u.extractValue(n),datasetName:u.extractDatasetName(n)}),t},getDatumForCursor:function(){return this.getDatumForSuggestion(this._getCursor().first())},getDatumForTopSuggestion:function(){return this.getDatumForSuggestion(this._getSuggestions().first())},update:function(n){function i(t){t.update(n)}t.each(this.datasets,i)},empty:function(){function n(n){n.clear()}t.each(this.datasets,n);this.isEmpty=!0},isVisible:function(){return this.isOpen&&!this.isEmpty},destroy:function(){function n(n){n.destroy()}this.$menu.off(".tt");this.$menu=null;t.each(this.datasets,n)}}),r}(),b=function(){"use strict";function f(i){var r,u,f;i=i||{};i.input||n.error("missing input");this.isActivated=!1;this.autoselect=!!i.autoselect;this.minLength=t.isNumber(i.minLength)?i.minLength:1;this.$node=e(i.input,i.withHint);r=this.$node.find(".tt-dropdown-menu");u=this.$node.find(".tt-input");f=this.$node.find(".tt-hint");u.on("blur.tt",function(n){var i,f,e;i=document.activeElement;f=r.is(i);e=r.has(i).length>0;t.isMsie()&&(f||e)&&(n.preventDefault(),n.stopImmediatePropagation(),t.defer(function(){u.focus()}))});r.on("mousedown.tt",function(n){n.preventDefault()});this.eventBus=i.eventBus||new h({el:u});this.dropdown=new w({menu:r,datasets:i.datasets}).onSync("suggestionClicked",this._onSuggestionClicked,this).onSync("cursorMoved",this._onCursorMoved,this).onSync("cursorRemoved",this._onCursorRemoved,this).onSync("opened",this._onOpened,this).onSync("closed",this._onClosed,this).onAsync("datasetRendered",this._onDatasetRendered,this);this.input=new c({input:u,hint:f}).onSync("focused",this._onFocused,this).onSync("blurred",this._onBlurred,this).onSync("enterKeyed",this._onEnterKeyed,this).onSync("tabKeyed",this._onTabKeyed,this).onSync("escKeyed",this._onEscKeyed,this).onSync("upKeyed",this._onUpKeyed,this).onSync("downKeyed",this._onDownKeyed,this).onSync("leftKeyed",this._onLeftKeyed,this).onSync("rightKeyed",this._onRightKeyed,this).onSync("queryChanged",this._onQueryChanged,this).onSync("whitespaceChanged",this._onWhitespaceChanged,this);this._setLanguageDirection()}function e(t,f){var e,h,c,s;e=n(t);h=n(r.wrapper).css(i.wrapper);c=n(r.dropdown).css(i.dropdown);s=e.clone().css(i.hint).css(o(e));s.val("").removeData().addClass("tt-hint").removeAttr("id name placeholder required").prop("readonly",!0).attr({autocomplete:"off",spellcheck:"false",tabindex:-1});e.data(u,{dir:e.attr("dir"),autocomplete:e.attr("autocomplete"),spellcheck:e.attr("spellcheck"),style:e.attr("style")});e.addClass("tt-input").attr({autocomplete:"off",spellcheck:!1}).css(f?i.input:i.inputWithNoHint);try{e.attr("dir")||e.attr("dir","auto")}catch(l){}return e.wrap(h).parent().prepend(f?s:null).append(c)}function o(n){return{backgroundAttachment:n.css("background-attachment"),backgroundClip:n.css("background-clip"),backgroundColor:n.css("background-color"),backgroundImage:n.css("background-image"),backgroundOrigin:n.css("background-origin"),backgroundPosition:n.css("background-position"),backgroundRepeat:n.css("background-repeat"),backgroundSize:n.css("background-size")}}function s(n){var i=n.find(".tt-input");t.each(i.data(u),function(n,r){t.isUndefined(n)?i.removeAttr(r):i.attr(r,n)});i.detach().removeData(u).removeClass("tt-input").insertAfter(n);n.remove()}var u="ttAttrs";return t.mixin(f.prototype,{_onSuggestionClicked:function(n,t){var i;(i=this.dropdown.getDatumForSuggestion(t))&&this._select(i)},_onCursorMoved:function(){var n=this.dropdown.getDatumForCursor();this.input.setInputValue(n.value,!0);this.eventBus.trigger("cursorchanged",n.raw,n.datasetName)},_onCursorRemoved:function(){this.input.resetInputValue();this._updateHint()},_onDatasetRendered:function(){this._updateHint()},_onOpened:function(){this._updateHint();this.eventBus.trigger("opened")},_onClosed:function(){this.input.clearHint();this.eventBus.trigger("closed")},_onFocused:function(){this.isActivated=!0;this.dropdown.open()},_onBlurred:function(){this.isActivated=!1;this.dropdown.empty();this.dropdown.close()},_onEnterKeyed:function(n,t){var i,r;i=this.dropdown.getDatumForCursor();r=this.dropdown.getDatumForTopSuggestion();i?(this._select(i),t.preventDefault()):this.autoselect&&r&&(this._select(r),t.preventDefault())},_onTabKeyed:function(n,t){var i;(i=this.dropdown.getDatumForCursor())?(this._select(i),t.preventDefault()):this._autocomplete(!0)},_onEscKeyed:function(){this.dropdown.close();this.input.resetInputValue()},_onUpKeyed:function(){var n=this.input.getQuery();this.dropdown.isEmpty&&n.length>=this.minLength?this.dropdown.update(n):this.dropdown.moveCursorUp();this.dropdown.open()},_onDownKeyed:function(){var n=this.input.getQuery();this.dropdown.isEmpty&&n.length>=this.minLength?this.dropdown.update(n):this.dropdown.moveCursorDown();this.dropdown.open()},_onLeftKeyed:function(){"rtl"===this.dir&&this._autocomplete()},_onRightKeyed:function(){"ltr"===this.dir&&this._autocomplete()},_onQueryChanged:function(n,t){this.input.clearHintIfInvalid();t.length>=this.minLength?this.dropdown.update(t):this.dropdown.empty();this.dropdown.open();this._setLanguageDirection()},_onWhitespaceChanged:function(){this._updateHint();this.dropdown.open()},_setLanguageDirection:function(){var n;this.dir!==(n=this.input.getLanguageDirection())&&(this.dir=n,this.$node.css("direction",n),this.dropdown.setLanguageDirection(n))},_updateHint:function(){var n,i,u,f,e,r;n=this.dropdown.getDatumForTopSuggestion();n&&this.dropdown.isVisible()&&!this.input.hasOverflow()?(i=this.input.getInputValue(),u=c.normalizeQuery(i),f=t.escapeRegExChars(u),e=new RegExp("^(?:"+f+")(.+$)","i"),r=e.exec(n.value),r?this.input.setHint(i+r[1]):this.input.clearHint()):this.input.clearHint()},_autocomplete:function(n){var i,r,u,t;i=this.input.getHint();r=this.input.getQuery();u=n||this.input.isCursorAtEnd();i&&r!==i&&u&&(t=this.dropdown.getDatumForTopSuggestion(),t&&this.input.setInputValue(t.value),this.eventBus.trigger("autocompleted",t.raw,t.datasetName))},_select:function(n){this.input.setQuery(n.value);this.input.setInputValue(n.value,!0);this._setLanguageDirection();this.eventBus.trigger("selected",n.raw,n.datasetName);this.dropdown.close();t.defer(t.bind(this.dropdown.empty,this.dropdown))},open:function(){this.dropdown.open()},close:function(){this.dropdown.close()},setVal:function(n){n=t.toStr(n);this.isActivated?this.input.setInputValue(n):(this.input.setQuery(n),this.input.setInputValue(n,!0));this._setLanguageDirection()},getVal:function(){return this.input.getQuery()},destroy:function(){this.input.destroy();this.dropdown.destroy();s(this.$node);this.$node=null}}),f}();!function(){"use strict";var u,i,r;u=n.fn.typeahead;i="ttTypeahead";r={initialize:function(r,u){function f(){var o,e,f=n(this);t.each(u,function(n){n.highlight=!!r.highlight});e=new b({input:f,eventBus:o=new h({el:f}),withHint:t.isUndefined(r.hint)?!0:!!r.hint,minLength:r.minLength,autoselect:r.autoselect,datasets:u});f.data(i,e)}return u=t.isArray(u)?u:[].slice.call(arguments,1),r=r||{},this.each(f)},open:function(){function t(){var t,r=n(this);(t=r.data(i))&&t.open()}return this.each(t)},close:function(){function t(){var t,r=n(this);(t=r.data(i))&&t.close()}return this.each(t)},val:function(t){function r(){var r,u=n(this);(r=u.data(i))&&r.setVal(t)}function u(n){var t,r;return(t=n.data(i))&&(r=t.getVal()),r}return arguments.length?this.each(r):u(this.first())},destroy:function(){function t(){var t,r=n(this);(t=r.data(i))&&(t.destroy(),r.removeData(i))}return this.each(t)}};n.fn.typeahead=function(t){var u;return r[t]&&"initialize"!==t?(u=this.filter(function(){return!!n(this).data(i)}),r[t].apply(u,[].slice.call(arguments,1))):r.initialize.apply(this,arguments)};n.fn.typeahead.noConflict=function(){return n.fn.typeahead=u,this}}()}(window.jQuery);!function(n){"function"==typeof define&&define.amd?define(["jquery"],n):n("object"==typeof exports?require("jquery"):jQuery)}(function(n){var t=function(){var t;return n&&n.fn&&n.fn.select2&&n.fn.select2.amd&&(t=n.fn.select2.amd),function(){if(!t||!t.requirejs){t?i=t:t={};var n,i,r;!function(t){function e(n,t){return nt.call(n,t)}function c(n,t){var e,s,o,u,h,y,c,w,i,l,p,r=t&&t.split("/"),a=f.map,v=a&&a["*"]||{};if(n&&"."===n.charAt(0))if(t){for(r=r.slice(0,r.length-1),n=n.split("/"),h=n.length-1,f.nodeIdCompat&&b.test(n[h])&&(n[h]=n[h].replace(b,"")),n=r.concat(n),i=0;i<n.length;i+=1)if(p=n[i],"."===p)n.splice(i,1),i-=1;else if(".."===p){if(1===i&&(".."===n[2]||".."===n[0]))break;i>0&&(n.splice(i-1,2),i-=2)}n=n.join("/")}else 0===n.indexOf("./")&&(n=n.substring(2));if((r||v)&&a){for(e=n.split("/"),i=e.length;i>0;i-=1){if(s=e.slice(0,i).join("/"),r)for(l=r.length;l>0;l-=1)if(o=a[r.slice(0,l).join("/")],o&&(o=o[s])){u=o;y=i;break}if(u)break;!c&&v&&v[s]&&(c=v[s],w=i)}!u&&c&&(u=c,y=w);u&&(e.splice(0,y,u),n=e.join("/"))}return n}function p(n,i){return function(){return o.apply(t,tt.call(arguments,0).concat([n,i]))}}function k(n){return function(t){return c(t,n)}}function d(n){return function(t){u[n]=t}}function l(n){if(e(h,n)){var i=h[n];delete h[n];y[n]=!0;a.apply(t,i)}if(!e(u,n)&&!e(y,n))throw new Error("No "+n);return u[n]}function w(n){var i,t=n?n.indexOf("!"):-1;return t>-1&&(i=n.substring(0,t),n=n.substring(t+1,n.length)),[i,n]}function g(n){return function(){return f&&f.config&&f.config[n]||{}}}var a,o,v,s,u={},h={},f={},y={},nt=Object.prototype.hasOwnProperty,tt=[].slice,b=/\.js$/;v=function(n,t){var r,u=w(n),i=u[0];return n=u[1],i&&(i=c(i,t),r=l(i)),i?n=r&&r.normalize?r.normalize(n,k(t)):c(n,t):(n=c(n,t),u=w(n),i=u[0],n=u[1],i&&(r=l(i))),{f:i?i+"!"+n:n,n:n,pr:i,p:r}};s={require:function(n){return p(n)},exports:function(n){var t=u[n];return"undefined"!=typeof t?t:u[n]={}},module:function(n){return{id:n,uri:"",exports:u[n],config:g(n)}}};a=function(n,i,r,f){var w,o,k,b,c,g,a=[],nt=typeof r;if(f=f||n,"undefined"===nt||"function"===nt){for(i=!i.length&&r.length?["require","exports","module"]:i,c=0;c<i.length;c+=1)if(b=v(i[c],f),o=b.f,"require"===o)a[c]=s.require(n);else if("exports"===o)a[c]=s.exports(n),g=!0;else if("module"===o)w=a[c]=s.module(n);else if(e(u,o)||e(h,o)||e(y,o))a[c]=l(o);else{if(!b.p)throw new Error(n+" missing "+o);b.p.load(b.n,p(f,!0),d(o),{});a[c]=u[o]}k=r?r.apply(u[n],a):void 0;n&&(w&&w.exports!==t&&w.exports!==u[n]?u[n]=w.exports:k===t&&g||(u[n]=k))}else n&&(u[n]=r)};n=i=o=function(n,i,r,u,e){if("string"==typeof n)return s[n]?s[n](i):l(v(n,i).f);if(!n.splice){if(f=n,f.deps&&o(f.deps,f.callback),!i)return;i.splice?(n=i,i=r,r=null):n=t}return i=i||function(){},"function"==typeof r&&(r=u,u=e),u?a(t,n,i,r):setTimeout(function(){a(t,n,i,r)},4),o};o.config=function(n){return o(n)};n._defined=u;r=function(n,t,i){t.splice||(i=t,t=[]);e(u,n)||e(h,n)||(h[n]=[n,t,i])};r.amd={jQuery:!0}}();t.requirejs=n;t.require=i;t.define=r}}(),t.define("almond",function(){}),t.define("jquery",[],function(){var t=n||$;return null==t&&console&&console.error&&console.error("Select2: An instance of jQuery or a jQuery-compatible library was not found. Make sure that you are including jQuery before Select2 on your web page."),t}),t.define("select2/utils",["jquery"],function(n){function r(n){var i=n.prototype,r=[],t,u;for(t in i)u=i[t],"function"==typeof u&&"constructor"!==t&&r.push(t);return r}var t={},i;return t.Extend=function(n,t){function r(){this.constructor=n}var u={}.hasOwnProperty;for(var i in t)u.call(t,i)&&(n[i]=t[i]);return r.prototype=t.prototype,n.prototype=new r,n.__super__=t.prototype,n},t.Decorate=function(n,t){function i(){var r=Array.prototype.unshift,u=t.prototype.constructor.length,i=n.prototype.constructor;u>0&&(r.call(arguments,n.prototype.constructor),i=t.prototype.constructor);i.apply(this,arguments)}function l(){this.constructor=i}var s=r(t),h=r(n),u,e,c,f,o;for(t.displayName=n.displayName,i.prototype=new l,u=0;u<h.length;u++)e=h[u],i.prototype[e]=n.prototype[e];for(c=function(n){var r=function(){},u;return n in i.prototype&&(r=i.prototype[n]),u=t.prototype[n],function(){var n=Array.prototype.unshift;return n.call(arguments,r),u.apply(this,arguments)}},f=0;f<s.length;f++)o=s[f],i.prototype[o]=c(o);return i},i=function(){this.listeners={}},i.prototype.on=function(n,t){this.listeners=this.listeners||{};n in this.listeners?this.listeners[n].push(t):this.listeners[n]=[t]},i.prototype.trigger=function(n){var t=Array.prototype.slice;this.listeners=this.listeners||{};n in this.listeners&&this.invoke(this.listeners[n],t.call(arguments,1));"*"in this.listeners&&this.invoke(this.listeners["*"],arguments)},i.prototype.invoke=function(n,t){for(var i=0,r=n.length;r>i;i++)n[i].apply(this,t)},t.Observable=i,t.generateChars=function(n){for(var r,t="",i=0;n>i;i++)r=Math.floor(36*Math.random()),t+=r.toString(36);return t},t.bind=function(n,t){return function(){n.apply(t,arguments)}},t._convertData=function(n){var f,r,i,u,t;for(f in n)if(r=f.split("-"),i=n,1!==r.length){for(u=0;u<r.length;u++)t=r[u],t=t.substring(0,1).toLowerCase()+t.substring(1),t in i||(i[t]={}),u==r.length-1&&(i[t]=n[f]),i=i[t];delete n[f]}return n},t.hasScroll=function(t,i){var u=n(i),f=i.style.overflowX,r=i.style.overflowY;return f!==r||"hidden"!==r&&"visible"!==r?"scroll"===f||"scroll"===r?!0:u.innerHeight()<i.scrollHeight||u.innerWidth()<i.scrollWidth:!1},t.escapeMarkup=function(n){var t={"\\":"&#92;","&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#47;"};return"string"!=typeof n?n:String(n).replace(/[&<>"'\/\\]/g,function(n){return t[n]})},t}),t.define("select2/results",["jquery","./utils"],function(n,t){function i(n,t,r){this.$element=n;this.data=r;this.options=t;i.__super__.constructor.call(this)}return t.Extend(i,t.Observable),i.prototype.render=function(){var t=n('<ul class="select2-results__options" role="tree"><\/ul>');return this.options.get("multiple")&&t.attr("aria-multiselectable","true"),this.$results=t,t},i.prototype.clear=function(){this.$results.empty()},i.prototype.displayMessage=function(t){var u=this.options.get("escapeMarkup"),i,r;this.clear();this.hideLoading();i=n('<li role="treeitem" class="select2-results__option"><\/li>');r=this.options.get("translations").get(t.message);i.append(u(r(t.args)));this.$results.append(i)},i.prototype.append=function(n){var i,t,r,u;if(this.hideLoading(),i=[],null==n.results||0===n.results.length)return void(0===this.$results.children().length&&this.trigger("results:message",{message:"noResults"}));for(n.results=this.sort(n.results),t=0;t<n.results.length;t++)r=n.results[t],u=this.option(r),i.push(u);this.$results.append(i)},i.prototype.position=function(n,t){var i=t.find(".select2-results");i.append(n)},i.prototype.sort=function(n){var t=this.options.get("sorter");return t(n)},i.prototype.setClasses=function(){var t=this;this.data.current(function(i){var f=n.map(i,function(n){return n.id.toString()}),r=t.$results.find(".select2-results__option[aria-selected]"),u;r.each(function(){var t=n(this),i=n.data(this,"data"),r=""+i.id;n.inArray(r,f)>-1?t.attr("aria-selected","true"):t.attr("aria-selected","false")});u=r.filter("[aria-selected=true]");u.length>0?u.first().trigger("mouseenter"):r.first().trigger("mouseenter")})},i.prototype.showLoading=function(n){this.hideLoading();var i=this.options.get("translations").get("searching"),r={disabled:!0,loading:!0,text:i(n)},t=this.option(r);t.className+=" loading-results";this.$results.prepend(t)},i.prototype.hideLoading=function(){this.$results.find(".loading-results").remove()},i.prototype.option=function(t){var r=document.createElement("li"),i,e,c,o,u,s,f,l,a,h;r.className="select2-results__option";i={role:"treeitem","aria-selected":"false"};t.disabled&&(delete i["aria-selected"],i["aria-disabled"]="true");null==t.id&&delete i["aria-selected"];null!=t._resultId&&(r.id=t._resultId);t.title&&(r.title=t.title);t.children&&(i.role="group",i["aria-label"]=t.text,delete i["aria-selected"]);for(e in i)c=i[e],r.setAttribute(e,c);if(t.children){for(o=n(r),u=document.createElement("strong"),u.className="select2-results__group",n(u),this.template(t,u),s=[],f=0;f<t.children.length;f++)l=t.children[f],a=this.option(l),s.push(a);h=n("<ul><\/ul>",{"class":"select2-results__options select2-results__options--nested"});h.append(s);o.append(u);o.append(h)}else this.template(t,r);return n.data(r,"data",t),r},i.prototype.bind=function(t){var i=this,r=t.id+"-results";this.$results.attr("id",r);t.on("results:all",function(n){i.clear();i.append(n.data);t.isOpen()&&i.setClasses()});t.on("results:append",function(n){i.append(n.data);t.isOpen()&&i.setClasses()});t.on("query",function(n){i.showLoading(n)});t.on("select",function(){t.isOpen()&&i.setClasses()});t.on("unselect",function(){t.isOpen()&&i.setClasses()});t.on("open",function(){i.$results.attr("aria-expanded","true");i.$results.attr("aria-hidden","false");i.setClasses();i.ensureHighlightVisible()});t.on("close",function(){i.$results.attr("aria-expanded","false");i.$results.attr("aria-hidden","true");i.$results.removeAttr("aria-activedescendant")});t.on("results:toggle",function(){var n=i.getHighlightedResults();0!==n.length&&n.trigger("mouseup")});t.on("results:select",function(){var n=i.getHighlightedResults(),t;0!==n.length&&(t=n.data("data"),"true"==n.attr("aria-selected")?i.trigger("close"):i.trigger("select",{data:t}))});t.on("results:previous",function(){var r=i.getHighlightedResults(),u=i.$results.find("[aria-selected]"),f=u.index(r),n,t;if(0!==f){n=f-1;0===r.length&&(n=0);t=u.eq(n);t.trigger("mouseenter");var e=i.$results.offset().top,o=t.offset().top,s=i.$results.scrollTop()+(o-e);0===n?i.$results.scrollTop(0):0>o-e&&i.$results.scrollTop(s)}});t.on("results:next",function(){var e=i.getHighlightedResults(),t=i.$results.find("[aria-selected]"),o=t.index(e),r=o+1,n;if(!(r>=t.length)){n=t.eq(r);n.trigger("mouseenter");var u=i.$results.offset().top+i.$results.outerHeight(!1),f=n.offset().top+n.outerHeight(!1),s=i.$results.scrollTop()+f-u;0===r?i.$results.scrollTop(0):f>u&&i.$results.scrollTop(s)}});t.on("results:focus",function(n){n.element.addClass("select2-results__option--highlighted")});t.on("results:message",function(n){i.displayMessage(n)});n.fn.mousewheel&&this.$results.on("mousewheel",function(n){var t=i.$results.scrollTop(),r=i.$results.get(0).scrollHeight-i.$results.scrollTop()+n.deltaY,u=n.deltaY>0&&t-n.deltaY<=0,f=n.deltaY<0&&r<=i.$results.height();u?(i.$results.scrollTop(0),n.preventDefault(),n.stopPropagation()):f&&(i.$results.scrollTop(i.$results.get(0).scrollHeight-i.$results.height()),n.preventDefault(),n.stopPropagation())});this.$results.on("mouseup",".select2-results__option[aria-selected]",function(t){var r=n(this),u=r.data("data");return"true"===r.attr("aria-selected")?void(i.options.get("multiple")?i.trigger("unselect",{originalEvent:t,data:u}):i.trigger("close")):void i.trigger("select",{originalEvent:t,data:u})});this.$results.on("mouseenter",".select2-results__option[aria-selected]",function(){var t=n(this).data("data");i.getHighlightedResults().removeClass("select2-results__option--highlighted");i.trigger("results:focus",{data:t,element:n(this)})})},i.prototype.getHighlightedResults=function(){return this.$results.find(".select2-results__option--highlighted")},i.prototype.destroy=function(){this.$results.remove()},i.prototype.ensureHighlightVisible=function(){var n=this.getHighlightedResults();if(0!==n.length){var f=this.$results.find("[aria-selected]"),e=f.index(n),t=this.$results.offset().top,i=n.offset().top,r=this.$results.scrollTop()+(i-t),u=i-t;r-=2*n.outerHeight(!1);2>=e?this.$results.scrollTop(0):(u>this.$results.outerHeight()||0>u)&&this.$results.scrollTop(r)}},i.prototype.template=function(t,i){var u=this.options.get("templateResult"),f=this.options.get("escapeMarkup"),r=u(t);null==r?i.style.display="none":"string"==typeof r?i.innerHTML=f(r):n(i).append(r)},i}),t.define("select2/keys",[],function(){return{BACKSPACE:8,TAB:9,ENTER:13,SHIFT:16,CTRL:17,ALT:18,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46}}),t.define("select2/selection/base",["jquery","../utils","../keys"],function(n,t,i){function r(n,t){this.$element=n;this.options=t;r.__super__.constructor.call(this)}return t.Extend(r,t.Observable),r.prototype.render=function(){var t=n('<span class="select2-selection" role="combobox" aria-autocomplete="list" aria-haspopup="true" aria-expanded="false"><\/span>');return this._tabindex=0,null!=this.$element.data("old-tabindex")?this._tabindex=this.$element.data("old-tabindex"):null!=this.$element.attr("tabindex")&&(this._tabindex=this.$element.attr("tabindex")),t.attr("title",this.$element.attr("title")),t.attr("tabindex",this._tabindex),this.$selection=t,t},r.prototype.bind=function(n){var t=this,r=(n.id+"-container",n.id+"-results");this.container=n;this.$selection.on("focus",function(n){t.trigger("focus",n)});this.$selection.on("blur",function(n){t.trigger("blur",n)});this.$selection.on("keydown",function(n){t.trigger("keypress",n);n.which===i.SPACE&&n.preventDefault()});n.on("results:focus",function(n){t.$selection.attr("aria-activedescendant",n.data._resultId)});n.on("selection:update",function(n){t.update(n.data)});n.on("open",function(){t.$selection.attr("aria-expanded","true");t.$selection.attr("aria-owns",r);t._attachCloseHandler(n)});n.on("close",function(){t.$selection.attr("aria-expanded","false");t.$selection.removeAttr("aria-activedescendant");t.$selection.removeAttr("aria-owns");t.$selection.focus();t._detachCloseHandler(n)});n.on("enable",function(){t.$selection.attr("tabindex",t._tabindex)});n.on("disable",function(){t.$selection.attr("tabindex","-1")})},r.prototype._attachCloseHandler=function(t){n(document.body).on("mousedown.select2."+t.id,function(t){var i=n(t.target),r=i.closest(".select2"),u=n(".select2.select2-container--open");u.each(function(){var i=n(this),t;this!=r[0]&&(t=i.data("element"),t.select2("close"))})})},r.prototype._detachCloseHandler=function(t){n(document.body).off("mousedown.select2."+t.id)},r.prototype.position=function(n,t){var i=t.find(".selection");i.append(n)},r.prototype.destroy=function(){this._detachCloseHandler(this.container)},r.prototype.update=function(){throw new Error("The `update` method must be defined in child classes.");},r}),t.define("select2/selection/single",["jquery","./base","../utils","../keys"],function(n,t,i){function r(){r.__super__.constructor.apply(this,arguments)}return i.Extend(r,t),r.prototype.render=function(){var n=r.__super__.render.call(this);return n.addClass("select2-selection--single"),n.html('<span class="select2-selection__rendered"><\/span><span class="select2-selection__arrow" role="presentation"><b role="presentation"><\/b><\/span>'),n},r.prototype.bind=function(n){var i=this,t;r.__super__.bind.apply(this,arguments);t=n.id+"-container";this.$selection.find(".select2-selection__rendered").attr("id",t);this.$selection.attr("aria-labelledby",t);this.$selection.on("mousedown",function(n){1===n.which&&i.trigger("toggle",{originalEvent:n})});this.$selection.on("focus",function(){});this.$selection.on("blur",function(){});n.on("selection:update",function(n){i.update(n.data)})},r.prototype.clear=function(){this.$selection.find(".select2-selection__rendered").empty()},r.prototype.display=function(n){var t=this.options.get("templateSelection"),i=this.options.get("escapeMarkup");return i(t(n))},r.prototype.selectionContainer=function(){return n("<span><\/span>")},r.prototype.update=function(n){if(0===n.length)return void this.clear();var t=n[0],r=this.display(t),i=this.$selection.find(".select2-selection__rendered");i.empty().append(r);i.prop("title",t.title||t.text)},r}),t.define("select2/selection/multiple",["jquery","./base","../utils"],function(n,t,i){function r(){r.__super__.constructor.apply(this,arguments)}return i.Extend(r,t),r.prototype.render=function(){var n=r.__super__.render.call(this);return n.addClass("select2-selection--multiple"),n.html('<ul class="select2-selection__rendered"><\/ul>'),n},r.prototype.bind=function(){var t=this;r.__super__.bind.apply(this,arguments);this.$selection.on("click",function(n){t.trigger("toggle",{originalEvent:n})});this.$selection.on("click",".select2-selection__choice__remove",function(i){var r=n(this),u=r.parent(),f=u.data("data");t.trigger("unselect",{originalEvent:i,data:f})})},r.prototype.clear=function(){this.$selection.find(".select2-selection__rendered").empty()},r.prototype.display=function(n){var t=this.options.get("templateSelection"),i=this.options.get("escapeMarkup");return i(t(n))},r.prototype.selectionContainer=function(){return n('<li class="select2-selection__choice"><span class="select2-selection__choice__remove" role="presentation">&times;<\/span><\/li>')},r.prototype.update=function(t){var i,r;if(this.clear(),0!==t.length){for(i=n(),r=0;r<t.length;r++){var u=t[r],e=this.display(u),f=this.selectionContainer();f.append(e);f.prop("title",u.title||u.text);f.data("data",u);i=i.add(f)}this.$selection.find(".select2-selection__rendered").append(i)}},r}),t.define("select2/selection/placeholder",["../utils"],function(){function n(n,t,i){this.placeholder=this.normalizePlaceholder(i.get("placeholder"));n.call(this,t,i)}return n.prototype.normalizePlaceholder=function(n,t){return"string"==typeof t&&(t={id:"",text:t}),t},n.prototype.createPlaceholder=function(n,t){var i=this.selectionContainer();return i.html(this.display(t)),i.addClass("select2-selection__placeholder").removeClass("select2-selection__choice"),i},n.prototype.update=function(n,t){var r=1==t.length&&t[0].id!=this.placeholder.id,u=t.length>1,i;if(u||r)return n.call(this,t);this.clear();i=this.createPlaceholder(this.placeholder);this.$selection.find(".select2-selection__rendered").append(i)},n}),t.define("select2/selection/allowClear",["jquery"],function(n){function t(){}return t.prototype.bind=function(t,i,r){var u=this;t.call(this,i,r);null==u.placeholder&&u.options.get("debug")&&window.console&&console.error&&console.error("Select2: The `allowClear` option should be used in combination with the `placeholder` option.");this.$selection.on("mousedown",".select2-selection__clear",function(t){var r,i,f;if(!u.options.get("disabled")){for(t.stopPropagation(),r=n(this).data("data"),i=0;i<r.length;i++)if(f={data:r[i]},u.trigger("unselect",f),f.prevented)return;u.$element.val(u.placeholder.id).trigger("change");u.trigger("toggle")}})},t.prototype.update=function(t,i){if(t.call(this,i),!(this.$selection.find(".select2-selection__placeholder").length>0||0===i.length)){var r=n('<span class="select2-selection__clear">&times;<\/span>');r.data("data",i);this.$selection.find(".select2-selection__rendered").prepend(r)}},t}),t.define("select2/selection/search",["jquery","../utils","../keys"],function(n,t,i){function r(n,t,i){n.call(this,t,i)}return r.prototype.render=function(t){var i=n('<li class="select2-search select2-search--inline"><input class="select2-search__field" type="search" tabindex="-1" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false" role="textbox" /><\/li>');return this.$searchContainer=i,this.$search=i.find("input"),t.call(this)},r.prototype.bind=function(n,t,r){var u=this;n.call(this,t,r);t.on("open",function(){u.$search.attr("tabindex",0);u.$search.focus()});t.on("close",function(){u.$search.attr("tabindex",-1);u.$search.val("");u.$search.focus()});t.on("enable",function(){u.$search.prop("disabled",!1)});t.on("disable",function(){u.$search.prop("disabled",!0)});this.$selection.on("focusin",".select2-search--inline",function(n){u.trigger("focus",n)});this.$selection.on("focusout",".select2-search--inline",function(n){u.trigger("blur",n)});this.$selection.on("keydown",".select2-search--inline",function(n){var r,t,f;n.stopPropagation();u.trigger("keypress",n);u._keyUpPrevented=n.isDefaultPrevented();r=n.which;r===i.BACKSPACE&&""===u.$search.val()&&(t=u.$searchContainer.prev(".select2-selection__choice"),t.length>0&&(f=t.data("data"),u.searchRemoveChoice(f)))});this.$selection.on("input",".select2-search--inline",function(){u.$selection.off("keyup.search")});this.$selection.on("keyup.search input",".select2-search--inline",function(n){u.handleSearch(n)})},r.prototype.createPlaceholder=function(n,t){this.$search.attr("placeholder",t.text)},r.prototype.update=function(n,t){this.$search.attr("placeholder","");n.call(this,t);this.$selection.find(".select2-selection__rendered").append(this.$searchContainer);this.resizeSearch()},r.prototype.handleSearch=function(){if(this.resizeSearch(),!this._keyUpPrevented){var n=this.$search.val();this.trigger("query",{term:n})}this._keyUpPrevented=!1},r.prototype.searchRemoveChoice=function(n,t){this.trigger("unselect",{data:t});this.trigger("open");this.$search.val(t.text+" ")},r.prototype.resizeSearch=function(){var n,t;this.$search.css("width","25px");n="";""!==this.$search.attr("placeholder")?n=this.$selection.find(".select2-selection__rendered").innerWidth():(t=this.$search.val().length+1,n=.75*t+"em");this.$search.css("width",n)},r}),t.define("select2/selection/eventRelay",["jquery"],function(n){function t(){}return t.prototype.bind=function(t,i,r){var u=this,f=["open","opening","close","closing","select","selecting","unselect","unselecting"],e=["opening","closing","selecting","unselecting"];t.call(this,i,r);i.on("*",function(t,i){if(-1!==n.inArray(t,f)){i=i||{};var r=n.Event("select2:"+t,{params:i});u.$element.trigger(r);-1!==n.inArray(t,e)&&(i.prevented=r.isDefaultPrevented())}})},t}),t.define("select2/translation",["jquery","require"],function(n,t){function i(n){this.dict=n||{}}return i.prototype.all=function(){return this.dict},i.prototype.get=function(n){return this.dict[n]},i.prototype.extend=function(t){this.dict=n.extend({},t.all(),this.dict)},i._cache={},i.loadPath=function(n){if(!(n in i._cache)){var r=t(n);i._cache[n]=r}return new i(i._cache[n])},i}),t.define("select2/diacritics",[],function(){return{"Ⓐ":"A","Ａ":"A","À":"A","Á":"A","Â":"A","Ầ":"A","Ấ":"A","Ẫ":"A","Ẩ":"A","Ã":"A","Ā":"A","Ă":"A","Ằ":"A","Ắ":"A","Ẵ":"A","Ẳ":"A","Ȧ":"A","Ǡ":"A","Ä":"A","Ǟ":"A","Ả":"A","Å":"A","Ǻ":"A","Ǎ":"A","Ȁ":"A","Ȃ":"A","Ạ":"A","Ậ":"A","Ặ":"A","Ḁ":"A","Ą":"A","Ⱥ":"A","Ɐ":"A","Ꜳ":"AA","Æ":"AE","Ǽ":"AE","Ǣ":"AE","Ꜵ":"AO","Ꜷ":"AU","Ꜹ":"AV","Ꜻ":"AV","Ꜽ":"AY","Ⓑ":"B","Ｂ":"B","Ḃ":"B","Ḅ":"B","Ḇ":"B","Ƀ":"B","Ƃ":"B","Ɓ":"B","Ⓒ":"C","Ｃ":"C","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","Ç":"C","Ḉ":"C","Ƈ":"C","Ȼ":"C","Ꜿ":"C","Ⓓ":"D","Ｄ":"D","Ḋ":"D","Ď":"D","Ḍ":"D","Ḑ":"D","Ḓ":"D","Ḏ":"D","Đ":"D","Ƌ":"D","Ɗ":"D","Ɖ":"D","Ꝺ":"D","Ǳ":"DZ","Ǆ":"DZ","ǲ":"Dz","ǅ":"Dz","Ⓔ":"E","Ｅ":"E","È":"E","É":"E","Ê":"E","Ề":"E","Ế":"E","Ễ":"E","Ể":"E","Ẽ":"E","Ē":"E","Ḕ":"E","Ḗ":"E","Ĕ":"E","Ė":"E","Ë":"E","Ẻ":"E","Ě":"E","Ȅ":"E","Ȇ":"E","Ẹ":"E","Ệ":"E","Ȩ":"E","Ḝ":"E","Ę":"E","Ḙ":"E","Ḛ":"E","Ɛ":"E","Ǝ":"E","Ⓕ":"F","Ｆ":"F","Ḟ":"F","Ƒ":"F","Ꝼ":"F","Ⓖ":"G","Ｇ":"G","Ǵ":"G","Ĝ":"G","Ḡ":"G","Ğ":"G","Ġ":"G","Ǧ":"G","Ģ":"G","Ǥ":"G","Ɠ":"G","Ꞡ":"G","Ᵹ":"G","Ꝿ":"G","Ⓗ":"H","Ｈ":"H","Ĥ":"H","Ḣ":"H","Ḧ":"H","Ȟ":"H","Ḥ":"H","Ḩ":"H","Ḫ":"H","Ħ":"H","Ⱨ":"H","Ⱶ":"H","Ɥ":"H","Ⓘ":"I","Ｉ":"I","Ì":"I","Í":"I","Î":"I","Ĩ":"I","Ī":"I","Ĭ":"I","İ":"I","Ï":"I","Ḯ":"I","Ỉ":"I","Ǐ":"I","Ȉ":"I","Ȋ":"I","Ị":"I","Į":"I","Ḭ":"I","Ɨ":"I","Ⓙ":"J","Ｊ":"J","Ĵ":"J","Ɉ":"J","Ⓚ":"K","Ｋ":"K","Ḱ":"K","Ǩ":"K","Ḳ":"K","Ķ":"K","Ḵ":"K","Ƙ":"K","Ⱪ":"K","Ꝁ":"K","Ꝃ":"K","Ꝅ":"K","Ꞣ":"K","Ⓛ":"L","Ｌ":"L","Ŀ":"L","Ĺ":"L","Ľ":"L","Ḷ":"L","Ḹ":"L","Ļ":"L","Ḽ":"L","Ḻ":"L","Ł":"L","Ƚ":"L","Ɫ":"L","Ⱡ":"L","Ꝉ":"L","Ꝇ":"L","Ꞁ":"L","Ǉ":"LJ","ǈ":"Lj","Ⓜ":"M","Ｍ":"M","Ḿ":"M","Ṁ":"M","Ṃ":"M","Ɱ":"M","Ɯ":"M","Ⓝ":"N","Ｎ":"N","Ǹ":"N","Ń":"N","Ñ":"N","Ṅ":"N","Ň":"N","Ṇ":"N","Ņ":"N","Ṋ":"N","Ṉ":"N","Ƞ":"N","Ɲ":"N","Ꞑ":"N","Ꞥ":"N","Ǌ":"NJ","ǋ":"Nj","Ⓞ":"O","Ｏ":"O","Ò":"O","Ó":"O","Ô":"O","Ồ":"O","Ố":"O","Ỗ":"O","Ổ":"O","Õ":"O","Ṍ":"O","Ȭ":"O","Ṏ":"O","Ō":"O","Ṑ":"O","Ṓ":"O","Ŏ":"O","Ȯ":"O","Ȱ":"O","Ö":"O","Ȫ":"O","Ỏ":"O","Ő":"O","Ǒ":"O","Ȍ":"O","Ȏ":"O","Ơ":"O","Ờ":"O","Ớ":"O","Ỡ":"O","Ở":"O","Ợ":"O","Ọ":"O","Ộ":"O","Ǫ":"O","Ǭ":"O","Ø":"O","Ǿ":"O","Ɔ":"O","Ɵ":"O","Ꝋ":"O","Ꝍ":"O","Ƣ":"OI","Ꝏ":"OO","Ȣ":"OU","Ⓟ":"P","Ｐ":"P","Ṕ":"P","Ṗ":"P","Ƥ":"P","Ᵽ":"P","Ꝑ":"P","Ꝓ":"P","Ꝕ":"P","Ⓠ":"Q","Ｑ":"Q","Ꝗ":"Q","Ꝙ":"Q","Ɋ":"Q","Ⓡ":"R","Ｒ":"R","Ŕ":"R","Ṙ":"R","Ř":"R","Ȑ":"R","Ȓ":"R","Ṛ":"R","Ṝ":"R","Ŗ":"R","Ṟ":"R","Ɍ":"R","Ɽ":"R","Ꝛ":"R","Ꞧ":"R","Ꞃ":"R","Ⓢ":"S","Ｓ":"S","ẞ":"S","Ś":"S","Ṥ":"S","Ŝ":"S","Ṡ":"S","Š":"S","Ṧ":"S","Ṣ":"S","Ṩ":"S","Ș":"S","Ş":"S","Ȿ":"S","Ꞩ":"S","Ꞅ":"S","Ⓣ":"T","Ｔ":"T","Ṫ":"T","Ť":"T","Ṭ":"T","Ț":"T","Ţ":"T","Ṱ":"T","Ṯ":"T","Ŧ":"T","Ƭ":"T","Ʈ":"T","Ⱦ":"T","Ꞇ":"T","Ꜩ":"TZ","Ⓤ":"U","Ｕ":"U","Ù":"U","Ú":"U","Û":"U","Ũ":"U","Ṹ":"U","Ū":"U","Ṻ":"U","Ŭ":"U","Ü":"U","Ǜ":"U","Ǘ":"U","Ǖ":"U","Ǚ":"U","Ủ":"U","Ů":"U","Ű":"U","Ǔ":"U","Ȕ":"U","Ȗ":"U","Ư":"U","Ừ":"U","Ứ":"U","Ữ":"U","Ử":"U","Ự":"U","Ụ":"U","Ṳ":"U","Ų":"U","Ṷ":"U","Ṵ":"U","Ʉ":"U","Ⓥ":"V","Ｖ":"V","Ṽ":"V","Ṿ":"V","Ʋ":"V","Ꝟ":"V","Ʌ":"V","Ꝡ":"VY","Ⓦ":"W","Ｗ":"W","Ẁ":"W","Ẃ":"W","Ŵ":"W","Ẇ":"W","Ẅ":"W","Ẉ":"W","Ⱳ":"W","Ⓧ":"X","Ｘ":"X","Ẋ":"X","Ẍ":"X","Ⓨ":"Y","Ｙ":"Y","Ỳ":"Y","Ý":"Y","Ŷ":"Y","Ỹ":"Y","Ȳ":"Y","Ẏ":"Y","Ÿ":"Y","Ỷ":"Y","Ỵ":"Y","Ƴ":"Y","Ɏ":"Y","Ỿ":"Y","Ⓩ":"Z","Ｚ":"Z","Ź":"Z","Ẑ":"Z","Ż":"Z","Ž":"Z","Ẓ":"Z","Ẕ":"Z","Ƶ":"Z","Ȥ":"Z","Ɀ":"Z","Ⱬ":"Z","Ꝣ":"Z","ⓐ":"a","ａ":"a","ẚ":"a","à":"a","á":"a","â":"a","ầ":"a","ấ":"a","ẫ":"a","ẩ":"a","ã":"a","ā":"a","ă":"a","ằ":"a","ắ":"a","ẵ":"a","ẳ":"a","ȧ":"a","ǡ":"a","ä":"a","ǟ":"a","ả":"a","å":"a","ǻ":"a","ǎ":"a","ȁ":"a","ȃ":"a","ạ":"a","ậ":"a","ặ":"a","ḁ":"a","ą":"a","ⱥ":"a","ɐ":"a","ꜳ":"aa","æ":"ae","ǽ":"ae","ǣ":"ae","ꜵ":"ao","ꜷ":"au","ꜹ":"av","ꜻ":"av","ꜽ":"ay","ⓑ":"b","ｂ":"b","ḃ":"b","ḅ":"b","ḇ":"b","ƀ":"b","ƃ":"b","ɓ":"b","ⓒ":"c","ｃ":"c","ć":"c","ĉ":"c","ċ":"c","č":"c","ç":"c","ḉ":"c","ƈ":"c","ȼ":"c","ꜿ":"c","ↄ":"c","ⓓ":"d","ｄ":"d","ḋ":"d","ď":"d","ḍ":"d","ḑ":"d","ḓ":"d","ḏ":"d","đ":"d","ƌ":"d","ɖ":"d","ɗ":"d","ꝺ":"d","ǳ":"dz","ǆ":"dz","ⓔ":"e","ｅ":"e","è":"e","é":"e","ê":"e","ề":"e","ế":"e","ễ":"e","ể":"e","ẽ":"e","ē":"e","ḕ":"e","ḗ":"e","ĕ":"e","ė":"e","ë":"e","ẻ":"e","ě":"e","ȅ":"e","ȇ":"e","ẹ":"e","ệ":"e","ȩ":"e","ḝ":"e","ę":"e","ḙ":"e","ḛ":"e","ɇ":"e","ɛ":"e","ǝ":"e","ⓕ":"f","ｆ":"f","ḟ":"f","ƒ":"f","ꝼ":"f","ⓖ":"g","ｇ":"g","ǵ":"g","ĝ":"g","ḡ":"g","ğ":"g","ġ":"g","ǧ":"g","ģ":"g","ǥ":"g","ɠ":"g","ꞡ":"g","ᵹ":"g","ꝿ":"g","ⓗ":"h","ｈ":"h","ĥ":"h","ḣ":"h","ḧ":"h","ȟ":"h","ḥ":"h","ḩ":"h","ḫ":"h","ẖ":"h","ħ":"h","ⱨ":"h","ⱶ":"h","ɥ":"h","ƕ":"hv","ⓘ":"i","ｉ":"i","ì":"i","í":"i","î":"i","ĩ":"i","ī":"i","ĭ":"i","ï":"i","ḯ":"i","ỉ":"i","ǐ":"i","ȉ":"i","ȋ":"i","ị":"i","į":"i","ḭ":"i","ɨ":"i","ı":"i","ⓙ":"j","ｊ":"j","ĵ":"j","ǰ":"j","ɉ":"j","ⓚ":"k","ｋ":"k","ḱ":"k","ǩ":"k","ḳ":"k","ķ":"k","ḵ":"k","ƙ":"k","ⱪ":"k","ꝁ":"k","ꝃ":"k","ꝅ":"k","ꞣ":"k","ⓛ":"l","ｌ":"l","ŀ":"l","ĺ":"l","ľ":"l","ḷ":"l","ḹ":"l","ļ":"l","ḽ":"l","ḻ":"l","ſ":"l","ł":"l","ƚ":"l","ɫ":"l","ⱡ":"l","ꝉ":"l","ꞁ":"l","ꝇ":"l","ǉ":"lj","ⓜ":"m","ｍ":"m","ḿ":"m","ṁ":"m","ṃ":"m","ɱ":"m","ɯ":"m","ⓝ":"n","ｎ":"n","ǹ":"n","ń":"n","ñ":"n","ṅ":"n","ň":"n","ṇ":"n","ņ":"n","ṋ":"n","ṉ":"n","ƞ":"n","ɲ":"n","ŉ":"n","ꞑ":"n","ꞥ":"n","ǌ":"nj","ⓞ":"o","ｏ":"o","ò":"o","ó":"o","ô":"o","ồ":"o","ố":"o","ỗ":"o","ổ":"o","õ":"o","ṍ":"o","ȭ":"o","ṏ":"o","ō":"o","ṑ":"o","ṓ":"o","ŏ":"o","ȯ":"o","ȱ":"o","ö":"o","ȫ":"o","ỏ":"o","ő":"o","ǒ":"o","ȍ":"o","ȏ":"o","ơ":"o","ờ":"o","ớ":"o","ỡ":"o","ở":"o","ợ":"o","ọ":"o","ộ":"o","ǫ":"o","ǭ":"o","ø":"o","ǿ":"o","ɔ":"o","ꝋ":"o","ꝍ":"o","ɵ":"o","ƣ":"oi","ȣ":"ou","ꝏ":"oo","ⓟ":"p","ｐ":"p","ṕ":"p","ṗ":"p","ƥ":"p","ᵽ":"p","ꝑ":"p","ꝓ":"p","ꝕ":"p","ⓠ":"q","ｑ":"q","ɋ":"q","ꝗ":"q","ꝙ":"q","ⓡ":"r","ｒ":"r","ŕ":"r","ṙ":"r","ř":"r","ȑ":"r","ȓ":"r","ṛ":"r","ṝ":"r","ŗ":"r","ṟ":"r","ɍ":"r","ɽ":"r","ꝛ":"r","ꞧ":"r","ꞃ":"r","ⓢ":"s","ｓ":"s","ß":"s","ś":"s","ṥ":"s","ŝ":"s","ṡ":"s","š":"s","ṧ":"s","ṣ":"s","ṩ":"s","ș":"s","ş":"s","ȿ":"s","ꞩ":"s","ꞅ":"s","ẛ":"s","ⓣ":"t","ｔ":"t","ṫ":"t","ẗ":"t","ť":"t","ṭ":"t","ț":"t","ţ":"t","ṱ":"t","ṯ":"t","ŧ":"t","ƭ":"t","ʈ":"t","ⱦ":"t","ꞇ":"t","ꜩ":"tz","ⓤ":"u","ｕ":"u","ù":"u","ú":"u","û":"u","ũ":"u","ṹ":"u","ū":"u","ṻ":"u","ŭ":"u","ü":"u","ǜ":"u","ǘ":"u","ǖ":"u","ǚ":"u","ủ":"u","ů":"u","ű":"u","ǔ":"u","ȕ":"u","ȗ":"u","ư":"u","ừ":"u","ứ":"u","ữ":"u","ử":"u","ự":"u","ụ":"u","ṳ":"u","ų":"u","ṷ":"u","ṵ":"u","ʉ":"u","ⓥ":"v","ｖ":"v","ṽ":"v","ṿ":"v","ʋ":"v","ꝟ":"v","ʌ":"v","ꝡ":"vy","ⓦ":"w","ｗ":"w","ẁ":"w","ẃ":"w","ŵ":"w","ẇ":"w","ẅ":"w","ẘ":"w","ẉ":"w","ⱳ":"w","ⓧ":"x","ｘ":"x","ẋ":"x","ẍ":"x","ⓨ":"y","ｙ":"y","ỳ":"y","ý":"y","ŷ":"y","ỹ":"y","ȳ":"y","ẏ":"y","ÿ":"y","ỷ":"y","ẙ":"y","ỵ":"y","ƴ":"y","ɏ":"y","ỿ":"y","ⓩ":"z","ｚ":"z","ź":"z","ẑ":"z","ż":"z","ž":"z","ẓ":"z","ẕ":"z","ƶ":"z","ȥ":"z","ɀ":"z","ⱬ":"z","ꝣ":"z","Ά":"Α","Έ":"Ε","Ή":"Η","Ί":"Ι","Ϊ":"Ι","Ό":"Ο","Ύ":"Υ","Ϋ":"Υ","Ώ":"Ω","ά":"α","έ":"ε","ή":"η","ί":"ι","ϊ":"ι","ΐ":"ι","ό":"ο","ύ":"υ","ϋ":"υ","ΰ":"υ","ω":"ω","ς":"σ"}}),t.define("select2/data/base",["../utils"],function(n){function t(){t.__super__.constructor.call(this)}return n.Extend(t,n.Observable),t.prototype.current=function(){throw new Error("The `current` method must be defined in child classes.");},t.prototype.query=function(){throw new Error("The `query` method must be defined in child classes.");},t.prototype.bind=function(){},t.prototype.destroy=function(){},t.prototype.generateResultId=function(t,i){var r=t.id+"-result-";return r+=n.generateChars(4),r+(null!=i.id?"-"+i.id.toString():"-"+n.generateChars(4))},t}),t.define("select2/data/select",["./base","../utils","jquery"],function(n,t,i){function r(n,t){this.$element=n;this.options=t;r.__super__.constructor.call(this)}return t.Extend(r,n),r.prototype.current=function(n){var t=[],r=this;this.$element.find(":selected").each(function(){var n=i(this),u=r.item(n);t.push(u)});n(t)},r.prototype.select=function(n){var t=this,r;if(i(n.element).is("option"))return n.element.selected=!0,void this.$element.trigger("change");this.$element.prop("multiple")?this.current(function(r){var f=[],u,e;for(n=[n],n.push.apply(n,r),u=0;u<n.length;u++)e=n[u].id,-1===i.inArray(e,f)&&f.push(e);t.$element.val(f);t.$element.trigger("change")}):(r=n.id,this.$element.val(r),this.$element.trigger("change"))},r.prototype.unselect=function(n){var t=this;if(this.$element.prop("multiple"))return i(n.element).is("option")?(n.element.selected=!1,void this.$element.trigger("change")):void this.current(function(r){for(var e,u=[],f=0;f<r.length;f++)e=r[f].id,e!==n.id&&-1===i.inArray(e,u)&&u.push(e);t.$element.val(u);t.$element.trigger("change")})},r.prototype.bind=function(n){var t=this;this.container=n;n.on("select",function(n){t.select(n.data)});n.on("unselect",function(n){t.unselect(n.data)})},r.prototype.destroy=function(){this.$element.find("*").each(function(){i.removeData(this,"data")})},r.prototype.query=function(n,t){var r=[],u=this,f=this.$element.children();f.each(function(){var t=i(this),e,f;(t.is("option")||t.is("optgroup"))&&(e=u.item(t),f=u.matches(n,e),null!==f&&r.push(f))});t({results:r})},r.prototype.addOptions=function(n){this.$element.append(n)},r.prototype.option=function(n){var t,u,r;return n.children?(t=document.createElement("optgroup"),t.label=n.text):(t=document.createElement("option"),void 0!==t.textContent?t.textContent=n.text:t.innerText=n.text),n.id&&(t.value=n.id),n.disabled&&(t.disabled=!0),n.selected&&(t.selected=!0),n.title&&(t.title=n.title),u=i(t),r=this._normalizeItem(n),r.element=t,i.data(t,"data",r),u},r.prototype.item=function(n){var t={},e,o;if(t=i.data(n[0],"data"),null!=t)return t;if(n.is("option"))t={id:n.val(),text:n.text(),disabled:n.prop("disabled"),selected:n.prop("selected"),title:n.prop("title")};else if(n.is("optgroup")){t={text:n.prop("label"),children:[],title:n.prop("title")};for(var u=n.children("option"),f=[],r=0;r<u.length;r++)e=i(u[r]),o=this.item(e),f.push(o);t.children=f}return t=this._normalizeItem(t),t.element=n[0],i.data(n[0],"data",t),t},r.prototype._normalizeItem=function(n){i.isPlainObject(n)||(n={id:n,text:n});n=i.extend({},{text:""},n);return null!=n.id&&(n.id=n.id.toString()),null!=n.text&&(n.text=n.text.toString()),null==n._resultId&&n.id&&null!=this.container&&(n._resultId=this.generateResultId(this.container,n)),i.extend({},{selected:!1,disabled:!1},n)},r.prototype.matches=function(n,t){var i=this.options.get("matcher");return i(n,t)},r}),t.define("select2/data/array",["./select","../utils","jquery"],function(n,t,i){function r(n,t){var i=t.get("data")||[];r.__super__.constructor.call(this,n,t);this.addOptions(this.convertToOptions(i))}return t.Extend(r,n),r.prototype.select=function(n){var t=this.$element.find('option[value="'+n.id+'"]');0===t.length&&(t=this.option(n),this.addOptions(t));r.__super__.select.call(this,n)},r.prototype.convertToOptions=function(n){function c(n){return function(){return i(this).val()==n.id}}for(var t,f,h,l=this,e=this.$element.find("option"),a=e.map(function(){return l.item(i(this)).id}).get(),r=i(),u=0;u<n.length;u++)if(t=this._normalizeItem(n[u]),i.inArray(t.id,a)>=0){var o=e.filter(c(t)),s=this.item(o),v=(i.extend(!0,{},s,t),this.option(s));o.replaceWith(v)}else f=this.option(t),t.children&&(h=this.convertToOptions(t.children),f.append(h)),r=r.add(f);return r},r}),t.define("select2/data/ajax",["./array","../utils","jquery"],function(n,t,i){function r(t,i){this.ajaxOptions=this._applyDefaults(i.get("ajax"));null!=this.ajaxOptions.processResults&&(this.processResults=this.ajaxOptions.processResults);n.__super__.constructor.call(this,t,i)}return t.Extend(r,n),r.prototype._applyDefaults=function(n){var t={data:function(n){return{q:n.term}},transport:function(n,t,r){var u=i.ajax(n);return u.then(t),u.fail(r),u}};return i.extend({},t,n,!0)},r.prototype.processResults=function(n){return n},r.prototype.query=function(n,t){function f(){var f=r.transport(r,function(r){var f=u.processResults(r,n);u.options.get("debug")&&window.console&&console.error&&(f&&f.results&&i.isArray(f.results)||console.error("Select2: The AJAX results did not return an array in the `results` key of the response."));t(f)},function(){});u._request=f}var u=this,r;this._request&&(this._request.abort(),this._request=null);r=i.extend({type:"GET"},this.ajaxOptions);"function"==typeof r.url&&(r.url=r.url(n));"function"==typeof r.data&&(r.data=r.data(n));this.ajaxOptions.delay&&""!==n.term?(this._queryTimeout&&window.clearTimeout(this._queryTimeout),this._queryTimeout=window.setTimeout(f,this.ajaxOptions.delay)):f()},r}),t.define("select2/data/tags",["jquery"],function(n){function t(t,i,r){var f=r.get("tags"),e=r.get("createTag"),u;if(void 0!==e&&(this.createTag=e),t.call(this,i,r),n.isArray(f))for(u=0;u<f.length;u++){var o=f[u],s=this._normalizeItem(o),h=this.option(s);this.$element.append(h)}}return t.prototype.query=function(n,t,i){function u(n,f){for(var s,c,e=n.results,o=0;o<e.length;o++){var h=e[o],l=null!=h.children&&!u({results:h.children},!0),a=h.text===t.term;if(a||l)return f?!1:(n.data=e,void i(n))}if(f)return!0;s=r.createTag(t);null!=s&&(c=r.option(s),c.attr("data-select2-tag",!0),r.addOptions(c),r.insertTag(e,s));n.results=e;i(n)}var r=this;return this._removeOldTags(),null==t.term||null!=t.page?void n.call(this,t,i):void n.call(this,t,u)},t.prototype.createTag=function(t,i){var r=n.trim(i.term);return""===r?null:{id:r,text:r}},t.prototype.insertTag=function(n,t,i){t.unshift(i)},t.prototype._removeOldTags=function(){var t=(this._lastTag,this.$element.find("option[data-select2-tag]"));t.each(function(){this.selected||n(this).remove()})},t}),t.define("select2/data/tokenizer",["jquery"],function(n){function t(n,t,i){var r=i.get("tokenizer");void 0!==r&&(this.tokenizer=r);n.call(this,t,i)}return t.prototype.bind=function(n,t,i){n.call(this,t,i);this.$search=t.dropdown.$search||t.selection.$search||i.find(".select2-search__field")},t.prototype.query=function(n,t,i){function u(n){f.select(n)}var f=this,r;t.term=t.term||"";r=this.tokenizer(t,this.options,u);r.term!==t.term&&(this.$search.length&&(this.$search.val(r.term),this.$search.focus()),t.term=r.term);n.call(this,t,i)},t.prototype.tokenizer=function(t,i,r,u){for(var o,s=r.get("tokenSeparators")||[],f=i.term,e=0,h=this.createTag||function(n){return{id:n.term,text:n.term}};e<f.length;)if(o=f[e],-1!==n.inArray(o,s)){var c=f.substr(0,e),l=n.extend({},i,{term:c}),a=h(l);u(a);f=f.substr(e+1)||"";e=0}else e++;return{term:f}},t}),t.define("select2/data/minimumInputLength",[],function(){function n(n,t,i){this.minimumInputLength=i.get("minimumInputLength");n.call(this,t,i)}return n.prototype.query=function(n,t,i){return t.term=t.term||"",t.term.length<this.minimumInputLength?void this.trigger("results:message",{message:"inputTooShort",args:{minimum:this.minimumInputLength,input:t.term,params:t}}):void n.call(this,t,i)},n}),t.define("select2/data/maximumInputLength",[],function(){function n(n,t,i){this.maximumInputLength=i.get("maximumInputLength");n.call(this,t,i)}return n.prototype.query=function(n,t,i){return t.term=t.term||"",this.maximumInputLength>0&&t.term.length>this.maximumInputLength?void this.trigger("results:message",{message:"inputTooLong",args:{maximum:this.maximumInputLength,input:t.term,params:t}}):void n.call(this,t,i)},n}),t.define("select2/data/maximumSelectionLength",[],function(){function n(n,t,i){this.maximumSelectionLength=i.get("maximumSelectionLength");n.call(this,t,i)}return n.prototype.query=function(n,t,i){var r=this;this.current(function(u){var f=null!=u?u.length:0;return r.maximumSelectionLength>0&&f>=r.maximumSelectionLength?void r.trigger("results:message",{message:"maximumSelected",args:{maximum:r.maximumSelectionLength}}):void n.call(r,t,i)})},n}),t.define("select2/dropdown",["jquery","./utils"],function(n,t){function i(n,t){this.$element=n;this.options=t;i.__super__.constructor.call(this)}return t.Extend(i,t.Observable),i.prototype.render=function(){var t=n('<span class="select2-dropdown"><span class="select2-results"><\/span><\/span>');return t.attr("dir",this.options.get("dir")),this.$dropdown=t,t},i.prototype.position=function(){},i.prototype.destroy=function(){this.$dropdown.remove()},i}),t.define("select2/dropdown/search",["jquery","../utils"],function(n){function t(){}return t.prototype.render=function(t){var r=t.call(this),i=n('<span class="select2-search select2-search--dropdown"><input class="select2-search__field" type="search" tabindex="-1" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false" role="textbox" /><\/span>');return this.$searchContainer=i,this.$search=i.find("input"),r.prepend(i),r},t.prototype.bind=function(t,i,r){var u=this;t.call(this,i,r);this.$search.on("keydown",function(n){u.trigger("keypress",n);u._keyUpPrevented=n.isDefaultPrevented()});this.$search.on("input",function(){n(this).off("keyup")});this.$search.on("keyup input",function(n){u.handleSearch(n)});i.on("open",function(){u.$search.attr("tabindex",0);u.$search.focus();window.setTimeout(function(){u.$search.focus()},0)});i.on("close",function(){u.$search.attr("tabindex",-1);u.$search.val("")});i.on("results:all",function(n){if(null==n.query.term||""===n.query.term){var t=u.showSearch(n);t?u.$searchContainer.removeClass("select2-search--hide"):u.$searchContainer.addClass("select2-search--hide")}})},t.prototype.handleSearch=function(){if(!this._keyUpPrevented){var n=this.$search.val();this.trigger("query",{term:n})}this._keyUpPrevented=!1},t.prototype.showSearch=function(){return!0},t}),t.define("select2/dropdown/hidePlaceholder",[],function(){function n(n,t,i,r){this.placeholder=this.normalizePlaceholder(i.get("placeholder"));n.call(this,t,i,r)}return n.prototype.append=function(n,t){t.results=this.removePlaceholder(t.results);n.call(this,t)},n.prototype.normalizePlaceholder=function(n,t){return"string"==typeof t&&(t={id:"",text:t}),t},n.prototype.removePlaceholder=function(n,t){for(var u,r=t.slice(0),i=t.length-1;i>=0;i--)u=t[i],this.placeholder.id===u.id&&r.splice(i,1);return r},n}),t.define("select2/dropdown/infiniteScroll",["jquery"],function(n){function t(n,t,i,r){this.lastParams={};n.call(this,t,i,r);this.$loadingMore=this.createLoadingMore();this.loading=!1}return t.prototype.append=function(n,t){this.$loadingMore.remove();this.loading=!1;n.call(this,t);this.showLoadingMore(t)&&this.$results.append(this.$loadingMore)},t.prototype.bind=function(t,i,r){var u=this;t.call(this,i,r);i.on("query",function(n){u.lastParams=n;u.loading=!0});i.on("query:append",function(n){u.lastParams=n;u.loading=!0});this.$results.on("scroll",function(){var r=n.contains(document.documentElement,u.$loadingMore[0]),t,i;!u.loading&&r&&(t=u.$results.offset().top+u.$results.outerHeight(!1),i=u.$loadingMore.offset().top+u.$loadingMore.outerHeight(!1),t+50>=i&&u.loadMore())})},t.prototype.loadMore=function(){this.loading=!0;var t=n.extend({},{page:1},this.lastParams);t.page++;this.trigger("query:append",t)},t.prototype.showLoadingMore=function(n,t){return t.pagination&&t.pagination.more},t.prototype.createLoadingMore=function(){var t=n('<li class="option load-more" role="treeitem"><\/li>'),i=this.options.get("translations").get("loadingMore");return t.html(i(this.lastParams)),t},t}),t.define("select2/dropdown/attachBody",["jquery","../utils"],function(n,t){function i(n,t,i){this.$dropdownParent=i.get("dropdownParent")||document.body;n.call(this,t,i)}return i.prototype.bind=function(n,t,i){var r=this,u=!1;n.call(this,t,i);t.on("open",function(){r._showDropdown();r._attachPositioningHandler(t);u||(u=!0,t.on("results:all",function(){r._positionDropdown();r._resizeDropdown()}),t.on("results:append",function(){r._positionDropdown();r._resizeDropdown()}))});t.on("close",function(){r._hideDropdown();r._detachPositioningHandler(t)});this.$dropdownContainer.on("mousedown",function(n){n.stopPropagation()})},i.prototype.position=function(n,t,i){t.attr("class",i.attr("class"));t.removeClass("select2");t.addClass("select2-container--open");t.css({position:"absolute",top:-999999});this.$container=i},i.prototype.render=function(t){var i=n("<span><\/span>"),r=t.call(this);return i.append(r),this.$dropdownContainer=i,i},i.prototype._hideDropdown=function(){this.$dropdownContainer.detach()},i.prototype._attachPositioningHandler=function(i){var r=this,u="scroll.select2."+i.id,e="resize.select2."+i.id,o="orientationchange.select2."+i.id,f=this.$container.parents().filter(t.hasScroll);f.each(function(){n(this).data("select2-scroll-position",{x:n(this).scrollLeft(),y:n(this).scrollTop()})});f.on(u,function(){var t=n(this).data("select2-scroll-position");n(this).scrollTop(t.y)});n(window).on(u+" "+e+" "+o,function(){r._positionDropdown();r._resizeDropdown()})},i.prototype._detachPositioningHandler=function(i){var r="scroll.select2."+i.id,u="resize.select2."+i.id,f="orientationchange.select2."+i.id,e=this.$container.parents().filter(t.hasScroll);e.off(r);n(window).off(r+" "+u+" "+f)},i.prototype._positionDropdown=function(){var f=n(window),u=this.$dropdown.hasClass("select2-dropdown--above"),l=this.$dropdown.hasClass("select2-dropdown--below"),t=null,i=(this.$container.position(),this.$container.offset()),r;i.bottom=i.top+this.$container.outerHeight(!1);r={height:this.$container.outerHeight(!1)};r.top=i.top;r.bottom=i.top+r.height;var e={height:this.$dropdown.outerHeight(!1)},o={top:f.scrollTop(),bottom:f.scrollTop()+f.height()},s=o.top<i.top-e.height,h=o.bottom>i.bottom+e.height,c={left:i.left,top:r.bottom};u||l||(t="below");h||!s||u?!s&&h&&u&&(t="below"):t="above";("above"==t||u&&"below"!==t)&&(c.top=r.top-e.height);null!=t&&(this.$dropdown.removeClass("select2-dropdown--below select2-dropdown--above").addClass("select2-dropdown--"+t),this.$container.removeClass("select2-container--below select2-container--above").addClass("select2-container--"+t));this.$dropdownContainer.css(c)},i.prototype._resizeDropdown=function(){this.$dropdownContainer.width();this.$dropdown.css({width:this.$container.outerWidth(!1)+"px"})},i.prototype._showDropdown=function(){this.$dropdownContainer.appendTo(this.$dropdownParent);this._positionDropdown();this._resizeDropdown()},i}),t.define("select2/dropdown/minimumResultsForSearch",[],function(){function n(t){for(var u,i=0,r=0;r<t.length;r++)u=t[r],u.children?i+=n(u.children):i++;return i}function t(n,t,i,r){this.minimumResultsForSearch=i.get("minimumResultsForSearch");this.minimumResultsForSearch<0&&(this.minimumResultsForSearch=1/0);n.call(this,t,i,r)}return t.prototype.showSearch=function(t,i){return n(i.data.results)<this.minimumResultsForSearch?!1:t.call(this,i)},t}),t.define("select2/dropdown/selectOnClose",[],function(){function n(){}return n.prototype.bind=function(n,t,i){var r=this;n.call(this,t,i);t.on("close",function(){r._handleSelectOnClose()})},n.prototype._handleSelectOnClose=function(){var n=this.getHighlightedResults();n.length<1||n.trigger("mouseup")},n}),t.define("select2/dropdown/closeOnSelect",[],function(){function n(){}return n.prototype.bind=function(n,t,i){var r=this;n.call(this,t,i);t.on("select",function(n){r._selectTriggered(n)});t.on("unselect",function(n){r._selectTriggered(n)})},n.prototype._selectTriggered=function(n,t){var i=t.originalEvent;i&&i.ctrlKey||this.trigger("close")},n}),t.define("select2/i18n/en",[],function(){return{errorLoading:function(){return"The results could not be loaded."},inputTooLong:function(n){var t=n.input.length-n.maximum,i="Please delete "+t+" character";return 1!=t&&(i+="s"),i},inputTooShort:function(n){var t=n.minimum-n.input.length;return"Please enter "+t+" or more characters"},loadingMore:function(){return"Loading more results…"},maximumSelected:function(n){var t="You can only select "+n.maximum+" item";return 1!=n.maximum&&(t+="s"),t},noResults:function(){return"No results found"},searching:function(){return"Searching…"}}}),t.define("select2/defaults",["jquery","require","./results","./selection/single","./selection/multiple","./selection/placeholder","./selection/allowClear","./selection/search","./selection/eventRelay","./utils","./translation","./diacritics","./data/select","./data/array","./data/ajax","./data/tags","./data/tokenizer","./data/minimumInputLength","./data/maximumInputLength","./data/maximumSelectionLength","./dropdown","./dropdown/search","./dropdown/hidePlaceholder","./dropdown/infiniteScroll","./dropdown/attachBody","./dropdown/minimumResultsForSearch","./dropdown/selectOnClose","./dropdown/closeOnSelect","./i18n/en"],function(n,t,i,r,u,f,e,o,s,h,c,l,a,v,y,p,w,b,k,d,g,nt,tt,it,rt,ut,ft,et,ot){function st(){this.reset()}st.prototype.apply=function(l){var at,vt,yt,pt,wt,ct,lt,st,ot,ht;if((l=n.extend({},this.defaults,l),null==l.dataAdapter)&&((l.dataAdapter=null!=l.ajax?y:null!=l.data?v:a,l.minimumInputLength>0&&(l.dataAdapter=h.Decorate(l.dataAdapter,b)),l.maximumInputLength>0&&(l.dataAdapter=h.Decorate(l.dataAdapter,k)),l.maximumSelectionLength>0&&(l.dataAdapter=h.Decorate(l.dataAdapter,d)),l.tags&&(l.dataAdapter=h.Decorate(l.dataAdapter,p)),(null!=l.tokenSeparators||null!=l.tokenizer)&&(l.dataAdapter=h.Decorate(l.dataAdapter,w)),null!=l.query)&&(at=t(l.amdBase+"compat/query"),l.dataAdapter=h.Decorate(l.dataAdapter,at)),null!=l.initSelection&&(vt=t(l.amdBase+"compat/initSelection"),l.dataAdapter=h.Decorate(l.dataAdapter,vt))),(null==l.resultsAdapter&&(l.resultsAdapter=i,null!=l.ajax&&(l.resultsAdapter=h.Decorate(l.resultsAdapter,it)),null!=l.placeholder&&(l.resultsAdapter=h.Decorate(l.resultsAdapter,tt)),l.selectOnClose&&(l.resultsAdapter=h.Decorate(l.resultsAdapter,ft))),null==l.dropdownAdapter)&&(l.multiple?l.dropdownAdapter=g:(yt=h.Decorate(g,nt),l.dropdownAdapter=yt),0!==l.minimumResultsForSearch&&(l.dropdownAdapter=h.Decorate(l.dropdownAdapter,ut)),l.closeOnSelect&&(l.dropdownAdapter=h.Decorate(l.dropdownAdapter,et)),l.dropdownAdapter=h.Decorate(l.dropdownAdapter,rt)),(null==l.selectionAdapter&&(l.selectionAdapter=l.multiple?u:r,null!=l.placeholder&&(l.selectionAdapter=h.Decorate(l.selectionAdapter,f)),l.allowClear&&(l.selectionAdapter=h.Decorate(l.selectionAdapter,e)),l.multiple&&(l.selectionAdapter=h.Decorate(l.selectionAdapter,o)),l.selectionAdapter=h.Decorate(l.selectionAdapter,s)),"string"==typeof l.language)&&(l.language.indexOf("-")>0?(pt=l.language.split("-"),wt=pt[0],l.language=[l.language,wt]):l.language=[l.language]),n.isArray(l.language)){for(ct=new c,l.language.push("en"),lt=l.language,st=0;st<lt.length;st++){ot=lt[st];ht={};try{ht=c.loadPath(ot)}catch(bt){try{ot=this.defaults.amdLanguageBase+ot;ht=c.loadPath(ot)}catch(kt){l.debug&&window.console&&console.warn&&console.warn('Select2: The language file for "'+ot+'" could not be automatically loaded. A fallback will be used instead.');continue}}ct.extend(ht)}l.translations=ct}else l.translations=new c(l.language);return l};st.prototype.reset=function(){function i(n){function t(n){return l[n]||n}return n.replace(/[^\u0000-\u007E]/g,t)}function t(r,u){var f,e,o,s,h,c;if(""===n.trim(r.term))return u;if(u.children&&u.children.length>0){for(f=n.extend(!0,{},u),e=u.children.length-1;e>=0;e--)o=u.children[e],s=t(r,o),null==s&&f.children.splice(e,1);return f.children.length>0?f:t(r,f)}return h=i(u.text).toUpperCase(),c=i(r.term).toUpperCase(),h.indexOf(c)>-1?u:null}this.defaults={amdBase:"./",amdLanguageBase:"./i18n/",closeOnSelect:!0,debug:!1,escapeMarkup:h.escapeMarkup,language:ot,matcher:t,minimumInputLength:0,maximumInputLength:0,maximumSelectionLength:0,minimumResultsForSearch:0,selectOnClose:!1,sorter:function(n){return n},templateResult:function(n){return n.text},templateSelection:function(n){return n.text},theme:"default",width:"resolve"}};st.prototype.set=function(t,i){var f=n.camelCase(t),r={},u;r[f]=i;u=h._convertData(r);n.extend(this.defaults,u)};return new st}),t.define("select2/options",["jquery","./defaults","./utils"],function(n,t,i){function r(n,r){if(this.options=n,null!=r&&this.fromElement(r),this.options=t.apply(this.options),r&&r.is("input")){var u=require(this.get("amdBase")+"compat/inputData");this.options.dataAdapter=i.Decorate(this.options.dataAdapter,u)}}return r.prototype.fromElement=function(t){var e=["select2"],f,u,r;null==this.options.multiple&&(this.options.multiple=t.prop("multiple"));null==this.options.disabled&&(this.options.disabled=t.prop("disabled"));null==this.options.language&&(t.prop("lang")?this.options.language=t.prop("lang").toLowerCase():t.closest("[lang]").prop("lang")&&(this.options.language=t.closest("[lang]").prop("lang")));null==this.options.dir&&(this.options.dir=t.prop("dir")?t.prop("dir"):t.closest("[dir]").prop("dir")?t.closest("[dir]").prop("dir"):"ltr");t.prop("disabled",this.options.disabled);t.prop("multiple",this.options.multiple);t.data("select2Tags")&&(this.options.debug&&window.console&&console.warn&&console.warn('Select2: The `data-select2-tags` attribute has been changed to use the `data-data` and `data-tags="true"` attributes and will be removed in future versions of Select2.'),t.data("data",t.data("select2Tags")),t.data("tags",!0));t.data("ajaxUrl")&&(this.options.debug&&window.console&&console.warn&&console.warn("Select2: The `data-ajax-url` attribute has been changed to `data-ajax--url` and support for the old attribute will be removed in future versions of Select2."),t.attr("ajax--url",t.data("ajaxUrl")),t.data("ajax--url",t.data("ajaxUrl")));f={};f=n.fn.jquery&&"1."==n.fn.jquery.substr(0,2)&&t[0].dataset?n.extend(!0,{},t[0].dataset,t.data()):t.data();u=n.extend(!0,{},f);u=i._convertData(u);for(r in u)n.inArray(r,e)>-1||(n.isPlainObject(this.options[r])?n.extend(this.options[r],u[r]):this.options[r]=u[r]);return this},r.prototype.get=function(n){return this.options[n]},r.prototype.set=function(n,t){this.options[n]=t},r}),t.define("select2/core",["jquery","./options","./utils","./keys"],function(n,t,i,r){var u=function(n,i){var f,e,r,o,s,h,c;null!=n.data("select2")&&n.data("select2").destroy();this.$element=n;this.id=this._generateId(n);i=i||{};this.options=new t(i,n);u.__super__.constructor.call(this);f=n.attr("tabindex")||0;n.data("old-tabindex",f);n.attr("tabindex","-1");e=this.options.get("dataAdapter");this.dataAdapter=new e(n,this.options);r=this.render();this._placeContainer(r);o=this.options.get("selectionAdapter");this.selection=new o(n,this.options);this.$selection=this.selection.render();this.selection.position(this.$selection,r);s=this.options.get("dropdownAdapter");this.dropdown=new s(n,this.options);this.$dropdown=this.dropdown.render();this.dropdown.position(this.$dropdown,r);h=this.options.get("resultsAdapter");this.results=new h(n,this.options,this.dataAdapter);this.$results=this.results.render();this.results.position(this.$results,this.$dropdown);c=this;this._bindAdapters();this._registerDomEvents();this._registerDataEvents();this._registerSelectionEvents();this._registerDropdownEvents();this._registerResultsEvents();this._registerEvents();this.dataAdapter.current(function(n){c.trigger("selection:update",{data:n})});n.hide();this._syncAttributes();n.data("select2",this)};return i.Extend(u,i.Observable),u.prototype._generateId=function(n){var t="";return t=null!=n.attr("id")?n.attr("id"):null!=n.attr("name")?n.attr("name")+"-"+i.generateChars(2):i.generateChars(4),t="select2-"+t},u.prototype._placeContainer=function(n){n.insertAfter(this.$element);var t=this._resolveWidth(this.$element,this.options.get("width"));null!=t&&n.css("width",t)},u.prototype._resolveWidth=function(n,t){var r,u,f,s,i;if("resolve"==t)return r=this._resolveWidth(n,"style"),null!=r?r:this._resolveWidth(n,"element");if("element"==t)return u=n.outerWidth(!1),0>=u?"auto":u+"px";if("style"==t){if(f=n.attr("style"),"string"!=typeof f)return null;for(var o=f.split(";"),e=0,h=o.length;h>e;e+=1)if(s=o[e].replace(/\s/g,""),i=s.match(/^width:(([-+]?([0-9]*\.)?[0-9]+)(px|em|ex|%|in|cm|mm|pt|pc))/i),null!==i&&i.length>=1)return i[1];return null}return t},u.prototype._bindAdapters=function(){this.dataAdapter.bind(this,this.$container);this.selection.bind(this,this.$container);this.dropdown.bind(this,this.$container);this.results.bind(this,this.$container)},u.prototype._registerDomEvents=function(){var t=this,r;this.$element.on("change.select2",function(){t.dataAdapter.current(function(n){t.trigger("selection:update",{data:n})})});this._sync=i.bind(this._syncAttributes,this);this.$element[0].attachEvent&&this.$element[0].attachEvent("onpropertychange",this._sync);r=window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver;null!=r?(this._observer=new r(function(i){n.each(i,t._sync)}),this._observer.observe(this.$element[0],{attributes:!0,subtree:!1})):this.$element[0].addEventListener&&this.$element[0].addEventListener("DOMAttrModified",t._sync,!1)},u.prototype._registerDataEvents=function(){var n=this;this.dataAdapter.on("*",function(t,i){n.trigger(t,i)})},u.prototype._registerSelectionEvents=function(){var t=this,i=["toggle"];this.selection.on("toggle",function(){t.toggleDropdown()});this.selection.on("*",function(r,u){-1===n.inArray(r,i)&&t.trigger(r,u)})},u.prototype._registerDropdownEvents=function(){var n=this;this.dropdown.on("*",function(t,i){n.trigger(t,i)})},u.prototype._registerResultsEvents=function(){var n=this;this.results.on("*",function(t,i){n.trigger(t,i)})},u.prototype._registerEvents=function(){var n=this;this.on("open",function(){n.$container.addClass("select2-container--open")});this.on("close",function(){n.$container.removeClass("select2-container--open")});this.on("enable",function(){n.$container.removeClass("select2-container--disabled")});this.on("disable",function(){n.$container.addClass("select2-container--disabled")});this.on("focus",function(){n.$container.addClass("select2-container--focus")});this.on("blur",function(){n.$container.removeClass("select2-container--focus")});this.on("query",function(t){n.isOpen()||n.trigger("open");this.dataAdapter.query(t,function(i){n.trigger("results:all",{data:i,query:t})})});this.on("query:append",function(t){this.dataAdapter.query(t,function(i){n.trigger("results:append",{data:i,query:t})})});this.on("keypress",function(t){var i=t.which;n.isOpen()?i===r.ENTER?(n.trigger("results:select"),t.preventDefault()):i===r.SPACE&&t.ctrlKey?(n.trigger("results:toggle"),t.preventDefault()):i===r.UP?(n.trigger("results:previous"),t.preventDefault()):i===r.DOWN?(n.trigger("results:next"),t.preventDefault()):(i===r.ESC||i===r.TAB)&&(n.close(),t.preventDefault()):(i===r.ENTER||i===r.SPACE||(i===r.DOWN||i===r.UP)&&t.altKey)&&(n.open(),t.preventDefault())})},u.prototype._syncAttributes=function(){this.options.set("disabled",this.$element.prop("disabled"));this.options.get("disabled")?(this.isOpen()&&this.close(),this.trigger("disable")):this.trigger("enable")},u.prototype.trigger=function(n,t){var r=u.__super__.trigger,f={open:"opening",close:"closing",select:"selecting",unselect:"unselecting"},e,i;if(n in f&&(e=f[n],i={prevented:!1,name:n,args:t},r.call(this,e,i),i.prevented))return void(t.prevented=!0);r.call(this,n,t)},u.prototype.toggleDropdown=function(){this.options.get("disabled")||(this.isOpen()?this.close():this.open())},u.prototype.open=function(){this.isOpen()||(this.trigger("query",{}),this.trigger("open"))},u.prototype.close=function(){this.isOpen()&&this.trigger("close")},u.prototype.isOpen=function(){return this.$container.hasClass("select2-container--open")},u.prototype.enable=function(n){this.options.get("debug")&&window.console&&console.warn&&console.warn('Select2: The `select2("enable")` method has been deprecated and will be removed in later Select2 versions. Use $element.prop("disabled") instead.');(null==n||0===n.length)&&(n=[!0]);var t=!n[0];this.$element.prop("disabled",t)},u.prototype.data=function(){this.options.get("debug")&&arguments.length>0&&window.console&&console.warn&&console.warn('Select2: Data can no longer be set using `select2("data")`. You should consider setting the value instead using `$element.val()`.');var n=[];return this.dataAdapter.current(function(t){n=t}),n},u.prototype.val=function(t){if(this.options.get("debug")&&window.console&&console.warn&&console.warn('Select2: The `select2("val")` method has been deprecated and will be removed in later Select2 versions. Use $element.val() instead.'),null==t||0===t.length)return this.$element.val();var i=t[0];n.isArray(i)&&(i=n.map(i,function(n){return n.toString()}));this.$element.val(i).trigger("change")},u.prototype.destroy=function(){this.$container.remove();this.$element[0].detachEvent&&this.$element[0].detachEvent("onpropertychange",this._sync);null!=this._observer?(this._observer.disconnect(),this._observer=null):this.$element[0].removeEventListener&&this.$element[0].removeEventListener("DOMAttrModified",this._sync,!1);this._sync=null;this.$element.off(".select2");this.$element.attr("tabindex",this.$element.data("old-tabindex"));this.$element.show();this.$element.removeData("select2");this.dataAdapter.destroy();this.selection.destroy();this.dropdown.destroy();this.results.destroy();this.dataAdapter=null;this.selection=null;this.dropdown=null;this.results=null},u.prototype.render=function(){var t=n('<span class="select2 select2-container"><span class="selection"><\/span><span class="dropdown-wrapper" aria-hidden="true"><\/span><\/span>');return t.attr("dir",this.options.get("dir")),this.$container=t,this.$container.addClass("select2-container--"+this.options.get("theme")),t.data("element",this.$element),t},u}),t.define("jquery.select2",["jquery","./select2/core","./select2/defaults"],function(n,t,i){try{require("jquery.mousewheel")}catch(r){}return null==n.fn.select2&&(n.fn.select2=function(i){if(i=i||{},"object"==typeof i)return this.each(function(){var r=n.extend({},i,!0);new t(n(this),r)}),this;if("string"==typeof i){var r=this.data("select2"),u=Array.prototype.slice.call(arguments,1);return r[i](u)}throw new Error("Invalid arguments for Select2: "+i);}),null==n.fn.select2.defaults&&(n.fn.select2.defaults=i),t}),{define:t.define,require:t.require}}(),i=t.require("jquery.select2");return $.fn.select2.amd=t,i}),function(){function c(){return function(){}}function o(n){return function(){return this[n]}}function p(n){return function(){return n}}function n(t,i,r){if("string"==typeof t){if(0===t.indexOf("#")&&(t=t.slice(1)),n.Ca[t])return n.Ca[t];t=n.w(t)}if(!t||!t.nodeName)throw new TypeError("The element or ID supplied is not valid. (videojs)");return t.player||new n.Player(t,i,r)}function ut(t,i,r,u){n.ic.forEach(r,function(n){t(i,n,u)})}function et(t,i){var u,r;u=Array.prototype.slice.call(i);r=c();r=window.console||{log:r,warn:r,error:r};t?u.unshift(t.toUpperCase()+":"):t="log";n.log.history.push(u);u.unshift("VIDEOJS:");r[t].apply?r[t].apply(r,u):r[t](u.join(" "))}function tt(n){n.p("vjs-lock-showing")}function yt(t,i,r,u){return r!==f?((r===e||n.Ed(r))&&(r=0),t.b.style[i]=-1!==(""+r).indexOf("%")||-1!==(""+r).indexOf("px")?r:"auto"===r?"":r+"px",u||t.l("resize"),t):t.b?(r=t.b.style[i],u=r.indexOf("px"),-1!==u?parseInt(r.slice(0,u),10):parseInt(t.b["offset"+n.ba(i)],10)):0}function pt(n){var f,t,c,r,o,s,h,l;f=0;t=e;n.c("touchstart",function(n){1===n.touches.length&&(t=n.touches[0],f=(new Date).getTime(),r=u)});n.c("touchmove",function(n){1<n.touches.length?r=i:t&&(s=n.touches[0].pageX-t.pageX,h=n.touches[0].pageY-t.pageY,l=Math.sqrt(s*s+h*h),22<l&&(r=i))});o=function(){r=i};n.c("touchleave",o);n.c("touchcancel",o);n.c("touchend",function(n){t=e;r===u&&(c=(new Date).getTime()-f,250>c&&(n.preventDefault(),this.l("tap")))})}function wt(t,i){var r,u,f,e;return(r=t.b,u=n.xd(r),e=f=r.offsetWidth,r=t.handle,t.options().vertical)?(e=u.top,u=i.changedTouches?i.changedTouches[0].pageY:i.pageY,r&&(r=r.w().offsetHeight,e+=r/2,f-=r),Math.max(0,Math.min(1,(e-u+f)/f))):(f=u.left,u=i.changedTouches?i.changedTouches[0].pageX:i.pageX,r&&(r=r.w().offsetWidth,f+=r/2,e-=r),Math.max(0,Math.min(1,(u-f)/e)))}function ai(t,i){t.V(i);i.c("click",n.bind(t,function(){tt(this)}))}function bt(n){n.ta=u;n.Ba.n("vjs-lock-showing");n.b.setAttribute("aria-pressed",u);n.Q&&0<n.Q.length&&n.Q[0].w().focus()}function ot(n){n.ta=i;tt(n.Ba);n.b.setAttribute("aria-pressed",i)}function vi(t){var i,r,u={sources:[],tracks:[]},f,o;if(i=n.Aa(t),r=i["data-setup"],r!==e&&n.g.z(i,n.JSON.parse(r||"{}")),n.g.z(u,i),t.hasChildNodes())for(t=t.childNodes,f=0,o=t.length;f<o;f++)i=t[f],r=i.nodeName.toLowerCase(),"source"===r?u.sources.push(n.Aa(i)):"track"===r&&u.tracks.push(n.Aa(i));return u}function dt(t,r,u){t.o&&(t.la=i,t.o.dispose(),t.o=i);"Html5"!==r&&t.I&&(n.h.Bb(t.I),t.I=e);t.eb=r;t.la=i;var f=n.g.z({source:u,parentEl:t.b},t.m[r.toLowerCase()]);u&&(t.nc=u.type,u.src==t.G.src&&0<t.G.currentTime&&(f.startTime=t.G.currentTime),t.G.src=u.src);t.o=new window.videojs[r](t,f);t.o.K(function(){this.d.Ga()})}function gt(n,t){t!==f&&n.vc!==t&&((n.vc=t)?(n.n("vjs-has-started"),n.l("firstplay")):n.p("vjs-has-started"))}function h(t,i,r){if(t.o&&!t.o.la)t.o.K(function(){this[i](r)});else try{t.o[i](r)}catch(u){throw n.log(u),u;}}function s(t,r){if(t.o&&t.o.la)try{return t.o[r]()}catch(u){throw t.o[r]===f?n.log("Video.js: "+r+" method not defined for "+t.eb+" playback technology.",u):"TypeError"==u.name?(n.log("Video.js: "+r+" unavailable on "+t.eb+" playback technology element.",u),t.o.la=i):n.log(u),u;}}function ni(t,i){var r=t.selectSource(i),u;r?r.o===t.eb?t.src(r.source):dt(t,r.o,r.source):(u=setTimeout(n.bind(t,function(){this.error({code:4,message:this.t(this.options().notSupportedMessage)})}),0),t.Ga(),t.c("dispose",function(){clearTimeout(u)}))}function ti(n,t){return t!==f?(n.xc=!!t,n):n.xc}function ii(n){return n.k().o&&n.k().o.featuresPlaybackRate&&n.k().options().playbackRates&&0<n.k().options().playbackRates.length}function ri(n){n.Lb=i;n.cb();n.j("play",n.Rc);n.j("pause",n.cb)}function yi(){var n=st[a],t=n.charAt(0).toUpperCase()+n.slice(1);oi["set"+t]=function(t){return this.b.vjs_setProperty(n,t)}}function ei(n){oi[n]=function(){return this.b.vjs_getProperty(n)}}function pi(t,i,r,u,f){var o=t.Fa=t.Fa||[],e;f=f||{};f.kind=i;f.label=r;f.language=u;i=n.ba(i||"subtitles");e=new window.videojs[i+"Track"](t,f);o.push(e);e.Ab()&&t.K(function(){setTimeout(function(){ht(e.k(),e.id())},0)})}function ht(n,t,r){for(var o=n.Fa,f=0,s=o.length,u,e;f<s;f++)u=o[f],u.id()===t?(u.show(),e=u):r&&u.M()==r&&0<u.mode()&&u.disable();(t=e?e.M():r?r:i)&&n.l(t+"trackchange")}function hi(t){0===t.na&&t.load();0===t.ma&&(t.d.c("timeupdate",n.bind(t,t.update,t.L)),t.d.c("ended",n.bind(t,t.reset,t.L)),("captions"===t.H||"subtitles"===t.H)&&t.d.ka("textTrackDisplay").V(t))}function ci(n){var t=n.split(":"),i,r,u;return n=0,3==t.length?(i=t[0],r=t[1],t=t[2]):(i=0,r=t[0],t=t[1]),t=t.split(/\s+/),t=t.splice(0,1)[0],t=t.split(/\.|,/),u=parseFloat(t[1]),t=t[0],n+=3600*parseFloat(i),n+=60*parseFloat(r),n+=parseFloat(t),u&&(n+=u/1e3),n}function r(n,t){var r=n.split("."),i=li,u;for((r[0]in i)||!i.execScript||i.execScript("var "+r[0]);r.length&&(u=r.shift());)!r.length&&t!==f?i[u]=t:i=i[u]?i[u]:i[u]={}}var f=void 0,u=!0,e=null,i=!1,t,b,d,ct,lt,g,at,ft,v,nt,vt,w,k,kt,it,l,y,ui,fi,rt,li;for(document.createElement("video"),document.createElement("audio"),document.createElement("track"),b=window.videojs=n,n.Vb="4.10",n.Vc="https:"==document.location.protocol?"https://":"http://",n.options={techOrder:["html5","flash"],html5:{},flash:{},width:300,height:150,defaultVolume:0,playbackRates:[],inactivityTimeout:2e3,children:{mediaLoader:{},posterImage:{},textTrackDisplay:{},loadingSpinner:{},bigPlayButton:{},controlBar:{},errorDisplay:{}},language:document.getElementsByTagName("html")[0].getAttribute("lang")||navigator.languages&&navigator.languages[0]||navigator.ze||navigator.language||"en",languages:{},notSupportedMessage:"No compatible source was found for this video."},"GENERATED_CDN_VSN"!==n.Vb&&(b.options.flash.swf=n.Vc+"vjs.zencdn.net/"+n.Vb+"/video-js.swf"),n.hd=function(t,i){return n.options.languages[t]=n.options.languages[t]!==f?n.ga.Va(n.options.languages[t],i):i,n.options.languages},n.Ca={},"function"==typeof define&&define.amd?define([],function(){return b}):"object"==typeof exports&&"object"==typeof module&&(module.exports=b),n.qa=n.CoreObject=c(),n.qa.extend=function(t){var u,i,r;t=t||{};u=t.init||t.i||this.prototype.init||this.prototype.i||c();i=function(){u.apply(this,arguments)};i.prototype=n.g.create(this.prototype);i.prototype.constructor=i;i.extend=n.qa.extend;i.create=n.qa.create;for(r in t)t.hasOwnProperty(r)&&(i.prototype[r]=t[r]);return i},n.qa.create=function(){var t=n.g.create(this.prototype);return this.apply(t,arguments),t},n.c=function(t,r,u){if(n.g.isArray(r))return ut(n.c,t,r,u);var f=n.getData(t);f.C||(f.C={});f.C[r]||(f.C[r]=[]);u.r||(u.r=n.r++);f.C[r].push(u);f.W||(f.disabled=i,f.W=function(i){var r;if(!f.disabled&&(i=n.rc(i),r=f.C[i.type],r))for(var r=r.slice(0),u=0,e=r.length;u<e&&!i.zc();u++)r[u].call(t,i)});1==f.C[r].length&&(t.addEventListener?t.addEventListener(r,f.W,i):t.attachEvent&&t.attachEvent("on"+r,f.W))},n.j=function(t,i,r){var u,f;if(n.uc(t)&&(u=n.getData(t),u.C)){if(n.g.isArray(i))return ut(n.j,t,i,r);if(i){if(f=u.C[i],f){if(r){if(r.r)for(u=0;u<f.length;u++)f[u].r===r.r&&f.splice(u--,1)}else u.C[i]=[];n.kc(t,i)}}else for(f in u.C)i=f,u.C[i]=[],n.kc(t,i)}},n.kc=function(t,r){var u=n.getData(t);0===u.C[r].length&&(delete u.C[r],t.removeEventListener?t.removeEventListener(r,u.W,i):t.detachEvent&&t.detachEvent("on"+r,u.W));n.Ib(u.C)&&(delete u.C,delete u.W,delete u.disabled);n.Ib(u)&&n.Ic(t)},n.rc=function(n){function o(){return u}function s(){return i}var r,t,f;if(!n||!n.Jb){r=n||window.event;n={};for(t in r)"layerX"!==t&&"layerY"!==t&&"keyLocation"!==t&&("returnValue"==t&&r.preventDefault||(n[t]=r[t]));n.target||(n.target=n.srcElement||document);n.relatedTarget=n.fromElement===n.target?n.toElement:n.fromElement;n.preventDefault=function(){r.preventDefault&&r.preventDefault();n.returnValue=i;n.Cd=o;n.defaultPrevented=u};n.Cd=s;n.defaultPrevented=i;n.stopPropagation=function(){r.stopPropagation&&r.stopPropagation();n.cancelBubble=u;n.Jb=o};n.Jb=s;n.stopImmediatePropagation=function(){r.stopImmediatePropagation&&r.stopImmediatePropagation();n.zc=o;n.stopPropagation()};n.zc=s;n.clientX!=e&&(t=document.documentElement,f=document.body,n.pageX=n.clientX+(t&&t.scrollLeft||f&&f.scrollLeft||0)-(t&&t.clientLeft||f&&f.clientLeft||0),n.pageY=n.clientY+(t&&t.scrollTop||f&&f.scrollTop||0)-(t&&t.clientTop||f&&f.clientTop||0));n.which=n.charCode||n.keyCode;n.button!=e&&(n.button=n.button&1?0:n.button&4?1:n.button&2?2:0)}return n},n.l=function(t,r){var f=n.uc(t)?n.getData(t):{},e=t.parentNode||t.ownerDocument;return"string"==typeof r&&(r={type:r,target:t}),r=n.rc(r),f.W&&f.W.call(t,r),e&&!r.Jb()&&r.bubbles!==i?n.l(e,r):e||r.defaultPrevented||(f=n.getData(r.target),!r.target[r.type])||(f.disabled=u,"function"==typeof r.target[r.type]&&r.target[r.type](),f.disabled=i),!r.defaultPrevented},n.R=function(t,i,r){function u(){n.j(t,i,u);r.apply(this,arguments)}if(n.g.isArray(i))return ut(n.R,t,i,r);u.r=r.r=r.r||n.r++;n.c(t,i,u)},d=Object.prototype.hasOwnProperty,n.e=function(t,i){var r;return i=i||{},r=document.createElement(t||"div"),n.g.X(i,function(n,t){-1!==n.indexOf("aria-")||"role"==n?r.setAttribute(n,t):r[n]=t}),r},n.ba=function(n){return n.charAt(0).toUpperCase()+n.slice(1)},n.g={},n.g.create=Object.create||function(n){function t(){}return t.prototype=n,new t},n.g.X=function(n,t,i){for(var r in n)d.call(n,r)&&t.call(i||this,r,n[r])},n.g.z=function(n,t){if(!t)return n;for(var i in t)d.call(t,i)&&(n[i]=t[i]);return n},n.g.qd=function(t,i){var r,u,f;t=n.g.copy(t);for(r in i)d.call(i,r)&&(u=t[r],f=i[r],t[r]=n.g.Ta(u)&&n.g.Ta(f)?n.g.qd(u,f):i[r]);return t},n.g.copy=function(t){return n.g.z({},t)},n.g.Ta=function(n){return!!n&&"object"==typeof n&&"[object Object]"===n.toString()&&n.constructor===Object},n.g.isArray=Array.isArray||function(n){return"[object Array]"===Object.prototype.toString.call(n)},n.Ed=function(n){return n!==n},n.bind=function(t,i,r){function u(){return i.apply(t,arguments)}return i.r||(i.r=n.r++),u.r=r?r+"_"+i.r:i.r,u},n.va={},n.r=1,n.expando="vdata"+(new Date).getTime(),n.getData=function(t){var i=t[n.expando];return i||(i=t[n.expando]=n.r++,n.va[i]={}),n.va[i]},n.uc=function(t){return t=t[n.expando],!(!t||n.Ib(n.va[t]))},n.Ic=function(t){var i=t[n.expando];if(i){delete n.va[i];try{delete t[n.expando]}catch(r){t.removeAttribute?t.removeAttribute(n.expando):t[n.expando]=e}}},n.Ib=function(n){for(var t in n)if(n[t]!==e)return i;return u},n.Sa=function(n,t){return-1!==(" "+n.className+" ").indexOf(" "+t+" ")},n.n=function(t,i){n.Sa(t,i)||(t.className=""===t.className?i:t.className+" "+i)},n.p=function(t,i){var r,u;if(n.Sa(t,i)){for(r=t.className.split(" "),u=r.length-1;0<=u;u--)r[u]===i&&r.splice(u,1);t.className=r.join(" ")}},n.A=n.e("video"),n.O=navigator.userAgent,n.bd=/iPhone/i.test(n.O),n.ad=/iPad/i.test(n.O),n.cd=/iPod/i.test(n.O),n.$c=n.bd||n.ad||n.cd,ct=n,g=n.O.match(/OS (\d+)_/i),lt=g&&g[1]?g[1]:f,ct.oe=lt,n.Yc=/Android/i.test(n.O),at=n,v=n.O.match(/Android (\d+)(?:\.(\d+))?(?:\.(\d+))*/i),v?(nt=v[1]&&parseFloat(v[1]),vt=v[2]&&parseFloat(v[2]),ft=nt&&vt?parseFloat(v[1]+"."+v[2]):nt?nt:e):ft=e,at.Ub=ft,n.dd=n.Yc&&/webkit/i.test(n.O)&&2.3>n.Ub,n.Zc=/Firefox/i.test(n.O),n.pe=/Chrome/i.test(n.O),n.ec=!!("ontouchstart"in window||window.Xc&&document instanceof window.Xc),n.Wc=("backgroundSize"in n.A.style),n.Kc=function(t,r){n.g.X(r,function(n,r){r===e||"undefined"==typeof r||r===i?t.removeAttribute(n):t.setAttribute(n,r===u?"":r)})},n.Aa=function(n){var s,r,f,o,t;if(s={},n&&n.attributes&&0<n.attributes.length)for(r=n.attributes,t=r.length-1;0<=t;t--)f=r[t].name,o=r[t].value,("boolean"==typeof n[f]||-1!==",autoplay,controls,loop,muted,default,".indexOf(","+f+","))&&(o=o!==e?u:i),s[f]=o;return s},n.ve=function(n,t){var i="";return document.defaultView&&document.defaultView.getComputedStyle?i=document.defaultView.getComputedStyle(n,"").getPropertyValue(t):n.currentStyle&&(i=n["client"+t.substr(0,1).toUpperCase()+t.substr(1)]+"px"),i},n.Hb=function(n,t){t.firstChild?t.insertBefore(n,t.firstChild):t.appendChild(n)},n.Oa={},n.w=function(n){return 0===n.indexOf("#")&&(n=n.slice(1)),document.getElementById(n)},n.za=function(n,t){t=t||n;var r=Math.floor(n%60),u=Math.floor(n/60%60),i=Math.floor(n/3600),f=Math.floor(t/60%60),e=Math.floor(t/3600);return(isNaN(n)||Infinity===n)&&(i=u=r="-"),i=0<i||0<e?i+":":"",i+(((i||10<=f)&&10>u?"0"+u:u)+":")+(10>r?"0"+r:r)},n.kd=function(){document.body.focus();document.onselectstart=p(i)},n.ke=function(){document.onselectstart=p(u)},n.trim=function(n){return(n+"").replace(/^\s+|\s+$/g,"")},n.round=function(n,t){return t||(t=0),Math.round(n*Math.pow(10,t))/Math.pow(10,t)},n.zb=function(n,t){return{length:1,start:function(){return n},end:function(){return t}}},n.get=function(t,i,r,f){var h,e,o,s;r=r||c();"undefined"==typeof XMLHttpRequest&&(window.XMLHttpRequest=function(){try{return new window.ActiveXObject("Msxml2.XMLHTTP.6.0")}catch(n){}try{return new window.ActiveXObject("Msxml2.XMLHTTP.3.0")}catch(t){}try{return new window.ActiveXObject("Msxml2.XMLHTTP")}catch(i){}throw Error("This browser does not support XMLHttpRequest.");});e=new XMLHttpRequest;o=n.Xd(t);s=window.location;o.protocol+o.host!==s.protocol+s.host&&window.XDomainRequest&&!("withCredentials"in e)?(e=new window.XDomainRequest,e.onload=function(){i(e.responseText)},e.onerror=r,e.onprogress=c(),e.ontimeout=r):(h="file:"==o.protocol||"file:"==s.protocol,e.onreadystatechange=function(){4===e.readyState&&(200===e.status||h&&0===e.status?i(e.responseText):r(e.responseText))});try{e.open("GET",t,u);f&&(e.withCredentials=u)}catch(l){r(l);return}try{e.send()}catch(a){r(a)}},n.ae=function(t){try{var u=window.localStorage||i;u&&(u.volume=t)}catch(r){22==r.code||1014==r.code?n.log("LocalStorage Full (VideoJS)",r):18==r.code?n.log("LocalStorage not allowed (VideoJS)",r):n.log("LocalStorage Error (VideoJS)",r)}},n.tc=function(t){return t.match(/^https?:\/\//)||(t=n.e("div",{innerHTML:'<a href="'+t+'">x<\/a>'}).firstChild.href),t},n.Xd=function(t){var i,r,e,f,u;for(f="protocol hostname port pathname search hash host".split(" "),r=n.e("a",{href:t}),(e=""===r.host&&"file:"!==r.protocol)&&(i=n.e("div"),i.innerHTML='<a href="'+t+'"><\/a>',r=i.firstChild,i.setAttribute("style","display:none; position:absolute;"),document.body.appendChild(i)),t={},u=0;u<f.length;u++)t[f[u]]=r[f[u]];return e&&document.body.removeChild(i),t},n.log=function(){et(e,arguments)},n.log.history=[],n.log.error=function(){et("error",arguments)},n.log.warn=function(){et("warn",arguments)},n.xd=function(t){var r,i;return(t.getBoundingClientRect&&t.parentNode&&(r=t.getBoundingClientRect()),!r)?{left:0,top:0}:(t=document.documentElement,i=document.body,{left:n.round(r.left+(window.pageXOffset||i.scrollLeft)-(t.clientLeft||i.clientLeft||0)),top:n.round(r.top+(window.pageYOffset||i.scrollTop)-(t.clientTop||i.clientTop||0))})},n.ic={},n.ic.forEach=function(t,i,r){if(n.g.isArray(t)&&i instanceof Function)for(var u=0,f=t.length;u<f;++u)i.call(r||n,t[u],u,t);return t},n.ga={},n.ga.Va=function(t,i){var r,u,f;t=n.g.copy(t);for(r in i)i.hasOwnProperty(r)&&(u=t[r],f=i[r],t[r]=n.g.Ta(u)&&n.g.Ta(f)?n.ga.Va(u,f):i[r]);return t},n.a=n.qa.extend({i:function(t,r,u){if(this.d=t,this.m=n.g.copy(this.m),r=this.options(r),this.L=r.id||r.el&&r.el.id,this.L||(this.L=(t.id&&t.id()||"no_player")+"_component_"+n.r++),this.Kd=r.name||e,this.b=r.el||this.e(),this.P=[],this.Pa={},this.Qa={},this.wc(),this.K(u),r.Jc!==i){var f,o;this.k().reportUserActivity&&(f=n.bind(this.k(),this.k().reportUserActivity),this.c("touchstart",function(){f();clearInterval(o);o=setInterval(f,250)}),t=function(){f();clearInterval(o)},this.c("touchmove",f),this.c("touchend",t),this.c("touchcancel",t))}}}),t=n.a.prototype,t.dispose=function(){if(this.l({type:"dispose",bubbles:i}),this.P)for(var t=this.P.length-1;0<=t;t--)this.P[t].dispose&&this.P[t].dispose();this.Qa=this.Pa=this.P=e;this.j();this.b.parentNode&&this.b.parentNode.removeChild(this.b);n.Ic(this.b);this.b=e},t.d=u,t.k=o("d"),t.options=function(t){return t===f?this.m:this.m=n.ga.Va(this.m,t)},t.e=function(t,i){return n.e(t,i)},t.t=function(n){var i=this.d.language(),t=this.d.languages();return t&&t[i]&&t[i][n]?t[i][n]:n},t.w=o("b"),t.ja=function(){return this.v||this.b},t.id=o("L"),t.name=o("Kd"),t.children=o("P"),t.zd=function(n){return this.Pa[n]},t.ka=function(n){return this.Qa[n]},t.V=function(t,i){var r,u;return"string"==typeof t?(u=t,i=i||{},r=i.componentClass||n.ba(u),i.name=u,r=new window.videojs[r](this.d||this,i)):r=t,this.P.push(r),"function"==typeof r.id&&(this.Pa[r.id()]=r),(u=u||r.name&&r.name())&&(this.Qa[u]=r),"function"==typeof r.el&&r.el()&&this.ja().appendChild(r.el()),r},t.removeChild=function(n){if("string"==typeof n&&(n=this.ka(n)),n&&this.P){for(var t=i,r=this.P.length-1;0<=r;r--)if(this.P[r]===n){t=u;this.P.splice(r,1);break}t&&(this.Pa[n.id]=e,this.Qa[n.name]=e,(t=n.w())&&t.parentNode===this.ja()&&this.ja().removeChild(n.w()))}},t.wc=function(){var u,e,r,t,s,h,o;if(u=this,e=u.options(),r=e.children)if(h=function(n,t){e[n]!==f&&(t=e[n]);t!==i&&(u[n]=u.V(n,t))},n.g.isArray(r))for(o=0;o<r.length;o++)t=r[o],"string"==typeof t?(s=t,t={}):s=t.name,h(s,t);else n.g.X(r,h)},t.T=p(""),t.c=function(t,i,r){var u,f,e;return"string"==typeof t||n.g.isArray(t)?n.c(this.b,t,n.bind(this,i)):(u=n.bind(this,r),e=this,f=function(){e.j(t,i,u)},f.r=u.r,this.c("dispose",f),r=function(){e.j("dispose",f)},r.r=u.r,t.nodeName?(n.c(t,i,u),n.c(t,"dispose",r)):"function"==typeof t.c&&(t.c(i,u),t.c("dispose",r))),this},t.j=function(t,i,r){return!t||"string"==typeof t||n.g.isArray(t)?n.j(this.b,t,i):(r=n.bind(this,r),this.j("dispose",r),t.nodeName?(n.j(t,i,r),n.j(t,"dispose",r)):(t.j(i,r),t.j("dispose",r))),this},t.R=function(t,i,r){var f,e,u;return"string"==typeof t||n.g.isArray(t)?n.R(this.b,t,n.bind(this,i)):(f=n.bind(this,r),e=this,u=function(){e.j(t,i,u);f.apply(this,arguments)},u.r=f.r,this.c(t,i,u)),this},t.l=function(t){return n.l(this.b,t),this},t.K=function(n){return n&&(this.la?n.call(this):(this.ab===f&&(this.ab=[]),this.ab.push(n))),this},t.Ga=function(){var n,t,i;if(this.la=u,n=this.ab,n&&0<n.length){for(t=0,i=n.length;t<i;t++)n[t].call(this);this.ab=[];this.l("ready")}},t.Sa=function(t){return n.Sa(this.b,t)},t.n=function(t){return n.n(this.b,t),this},t.p=function(t){return n.p(this.b,t),this},t.show=function(){return this.b.style.display="block",this},t.Y=function(){return this.b.style.display="none",this},t.disable=function(){this.Y();this.show=c()},t.width=function(n,t){return yt(this,"width",n,t)},t.height=function(n,t){return yt(this,"height",n,t)},t.td=function(n,t){return this.width(n,u).height(t)},n.u=n.a.extend({i:function(t,i){n.a.call(this,t,i);pt(this);this.c("tap",this.s);this.c("click",this.s);this.c("focus",this.Ya);this.c("blur",this.Xa)}}),t=n.u.prototype,t.e=function(t,i){var r;return i=n.g.z({className:this.T(),role:"button","aria-live":"polite",tabIndex:0},i),r=n.a.prototype.e.call(this,t,i),i.innerHTML||(this.v=n.e("div",{className:"vjs-control-content"}),this.xb=n.e("span",{className:"vjs-control-text",innerHTML:this.t(this.ua)||"Need Text"}),this.v.appendChild(this.xb),r.appendChild(this.v)),r},t.T=function(){return"vjs-control "+n.a.prototype.T.call(this)},t.s=c(),t.Ya=function(){n.c(document,"keydown",n.bind(this,this.Z))},t.Z=function(n){(32==n.which||13==n.which)&&(n.preventDefault(),this.s())},t.Xa=function(){n.j(document,"keydown",n.bind(this,this.Z))},n.S=n.a.extend({i:function(t,i){n.a.call(this,t,i);this.jd=this.ka(this.m.barName);this.handle=this.ka(this.m.handleName);this.c("mousedown",this.Za);this.c("touchstart",this.Za);this.c("focus",this.Ya);this.c("blur",this.Xa);this.c("click",this.s);this.c(t,"controlsvisible",this.update);this.c(t,this.Ec,this.update);this.F={};this.F.move=n.bind(this,this.$a);this.F.end=n.bind(this,this.Mb)}}),t=n.S.prototype,t.dispose=function(){n.j(document,"mousemove",this.F.move,i);n.j(document,"mouseup",this.F.end,i);n.j(document,"touchmove",this.F.move,i);n.j(document,"touchend",this.F.end,i);n.j(document,"keyup",n.bind(this,this.Z));n.a.prototype.dispose.call(this)},t.e=function(t,i){return i=i||{},i.className+=" vjs-slider",i=n.g.z({role:"slider","aria-valuenow":0,"aria-valuemin":0,"aria-valuemax":100,tabIndex:0},i),n.a.prototype.e.call(this,t,i)},t.Za=function(t){t.preventDefault();n.kd();this.n("vjs-sliding");n.c(document,"mousemove",this.F.move);n.c(document,"mouseup",this.F.end);n.c(document,"touchmove",this.F.move);n.c(document,"touchend",this.F.end);this.$a(t)},t.$a=c(),t.Mb=function(){n.ke();this.p("vjs-sliding");n.j(document,"mousemove",this.F.move,i);n.j(document,"mouseup",this.F.end,i);n.j(document,"touchmove",this.F.move,i);n.j(document,"touchend",this.F.end,i);this.update()},t.update=function(){var u;if(this.b){var t,i=this.Gb(),r=this.handle,f=this.jd;isNaN(i)&&(i=0);t=i;r&&(t=this.b.offsetWidth,u=r.w().offsetWidth,t=u?u/t:0,i*=1-t,t=i+t/2,r.w().style.left=n.round(100*i,2)+"%");f&&(f.w().style.width=n.round(100*t,2)+"%")}},t.Ya=function(){n.c(document,"keyup",n.bind(this,this.Z))},t.Z=function(n){37==n.which||40==n.which?(n.preventDefault(),this.Nc()):(38==n.which||39==n.which)&&(n.preventDefault(),this.Oc())},t.Xa=function(){n.j(document,"keyup",n.bind(this,this.Z))},t.s=function(n){n.stopImmediatePropagation();n.preventDefault()},n.$=n.a.extend(),n.$.prototype.defaultValue=0,n.$.prototype.e=function(t,i){return i=i||{},i.className+=" vjs-slider-handle",i=n.g.z({innerHTML:'<span class="vjs-control-text">'+this.defaultValue+"<\/span>"},i),n.a.prototype.e.call(this,"div",i)},n.ha=n.a.extend(),n.ha.prototype.e=function(){var t=this.options().lc||"ul";return this.v=n.e(t,{className:"vjs-menu-content"}),t=n.a.prototype.e.call(this,"div",{append:this.v,className:"vjs-menu"}),t.appendChild(this.v),n.c(t,"click",function(n){n.preventDefault();n.stopImmediatePropagation()}),t},n.J=n.u.extend({i:function(t,i){n.u.call(this,t,i);this.selected(i.selected)}}),n.J.prototype.e=function(t,i){return n.u.prototype.e.call(this,"li",n.g.z({className:"vjs-menu-item",innerHTML:this.t(this.m.label)},i))},n.J.prototype.s=function(){this.selected(u)},n.J.prototype.selected=function(n){n?(this.n("vjs-selected"),this.b.setAttribute("aria-selected",u)):(this.p("vjs-selected"),this.b.setAttribute("aria-selected",i))},n.N=n.u.extend({i:function(t,i){n.u.call(this,t,i);this.Ba=this.xa();this.V(this.Ba);this.Q&&0===this.Q.length&&this.Y();this.c("keyup",this.Z);this.b.setAttribute("aria-haspopup",u);this.b.setAttribute("role","button")}}),t=n.N.prototype,t.ta=i,t.xa=function(){var i=new n.ha(this.d),t;if(this.options().title&&i.ja().appendChild(n.e("li",{className:"vjs-menu-title",innerHTML:n.ba(this.options().title),he:-1})),this.Q=this.createItems())for(t=0;t<this.Q.length;t++)ai(i,this.Q[t]);return i},t.wa=c(),t.T=function(){return this.className+" vjs-menu-button "+n.u.prototype.T.call(this)},t.Ya=c(),t.Xa=c(),t.s=function(){this.R("mouseout",n.bind(this,function(){tt(this.Ba);this.b.blur()}));this.ta?ot(this):bt(this)},t.Z=function(n){n.preventDefault();32==n.which||13==n.which?this.ta?ot(this):bt(this):27==n.which&&this.ta&&ot(this)},n.D=function(t){"number"==typeof t?this.code=t:"string"==typeof t?this.message=t:"object"==typeof t&&n.g.z(this,t);this.message||(this.message=n.D.rd[this.code]||"")},n.D.prototype.code=0,n.D.prototype.message="",n.D.prototype.status=e,n.D.Ra="MEDIA_ERR_CUSTOM MEDIA_ERR_ABORTED MEDIA_ERR_NETWORK MEDIA_ERR_DECODE MEDIA_ERR_SRC_NOT_SUPPORTED MEDIA_ERR_ENCRYPTED".split(" "),n.D.rd={1:"You aborted the video playback",2:"A network error caused the video download to fail part-way.",3:"The video playback was aborted due to a corruption problem or because the video used features your browser did not support.",4:"The video could not be loaded, either because the server or network failed or because the format is not supported.",5:"The video is encrypted and we do not have the keys to decrypt it."},w=0;w<n.D.Ra.length;w++)n.D[n.D.Ra[w]]=w,n.D.prototype[n.D.Ra[w]]=w;for(k=["requestFullscreen exitFullscreen fullscreenElement fullscreenEnabled fullscreenchange fullscreenerror".split(" "),"webkitRequestFullscreen webkitExitFullscreen webkitFullscreenElement webkitFullscreenEnabled webkitfullscreenchange webkitfullscreenerror".split(" "),"webkitRequestFullScreen webkitCancelFullScreen webkitCurrentFullScreenElement webkitCancelFullScreen webkitfullscreenchange webkitfullscreenerror".split(" "),"mozRequestFullScreen mozCancelFullScreen mozFullScreenElement mozFullScreenEnabled mozfullscreenchange mozfullscreenerror".split(" "),"msRequestFullscreen msExitFullscreen msFullscreenElement msFullscreenEnabled MSFullscreenChange MSFullscreenError".split(" ")],kt=k[0],l=0;l<k.length;l++)if(k[l][1]in document){it=k[l];break}if(it)for(n.Oa.Fb={},l=0;l<it.length;l++)n.Oa.Fb[kt[l]]=it[l];n.Player=n.a.extend({i:function(t,r,f){this.I=t;t.id=t.id||"vjs_video_"+n.r++;this.ie=t&&n.Aa(t);r=n.g.z(vi(t),r);this.Ua=r.language||n.options.language;this.Id=r.languages||n.options.languages;this.G={};this.Fc=r.poster||"";this.yb=!!r.controls;t.controls=i;r.Jc=i;ti(this,"audio"===this.I.nodeName.toLowerCase());n.a.call(this,this,r,f);this.controls()?this.n("vjs-controls-enabled"):this.n("vjs-controls-disabled");ti(this)&&this.n("vjs-audio");n.Ca[this.L]=this;r.plugins&&n.g.X(r.plugins,function(n,t){this[n](t)},this);var e,o,h,s,c,l;e=n.bind(this,this.reportUserActivity);this.c("mousedown",function(){e();clearInterval(o);o=setInterval(e,250)});this.c("mousemove",function(n){(n.screenX!=c||n.screenY!=l)&&(c=n.screenX,l=n.screenY,e())});this.c("mouseup",function(){e();clearInterval(o)});this.c("keydown",e);this.c("keyup",e);h=setInterval(n.bind(this,function(){if(this.pa){this.pa=i;this.userActive(u);clearTimeout(s);var t=this.options().inactivityTimeout;0<t&&(s=setTimeout(n.bind(this,function(){this.pa||this.userActive(i)}),t))}}),250);this.c("dispose",function(){clearInterval(h);clearTimeout(s)})}});t=n.Player.prototype;t.language=function(n){return n===f?this.Ua:(this.Ua=n,this)};t.languages=o("Id");t.m=n.options;t.dispose=function(){this.l("dispose");this.j("dispose");n.Ca[this.L]=e;this.I&&this.I.player&&(this.I.player=e);this.b&&this.b.player&&(this.b.player=e);this.o&&this.o.dispose();n.a.prototype.dispose.call(this)};t.e=function(){var i=this.b=n.a.prototype.e.call(this,"div"),t=this.I,f,r,o,s,h,e;if(t.removeAttribute("width"),t.removeAttribute("height"),t.hasChildNodes()){for(r=t.childNodes,o=r.length,e=[];o--;)s=r[o],h=s.nodeName.toLowerCase(),"track"===h&&e.push(s);for(r=0;r<e.length;r++)t.removeChild(e[r])}return f=n.Aa(t),n.g.X(f,function(n){"class"==n?i.className=f[n]:i.setAttribute(n,f[n])}),t.id+="_html5_api",t.className="vjs-tech",t.player=i.player=this,this.n("vjs-paused"),this.width(this.m.width,u),this.height(this.m.height,u),t.Bd=t.networkState,t.parentNode&&t.parentNode.insertBefore(i,t),n.Hb(t,i),this.b=i,this.c("loadstart",this.Pd),this.c("waiting",this.Vd),this.c(["canplay","canplaythrough","playing","ended"],this.Ud),this.c("seeking",this.Sd),this.c("seeked",this.Rd),this.c("ended",this.Ld),this.c("play",this.Ob),this.c("firstplay",this.Nd),this.c("pause",this.Nb),this.c("progress",this.Qd),this.c("durationchange",this.Cc),this.c("fullscreenchange",this.Od),i};t.Pd=function(){this.error(e);this.paused()?(gt(this,i),this.R("play",function(){gt(this,u)})):this.l("firstplay")};t.vc=i;t.Ob=function(){this.p("vjs-paused");this.n("vjs-playing")};t.Vd=function(){this.n("vjs-waiting")};t.Ud=function(){this.p("vjs-waiting")};t.Sd=function(){this.n("vjs-seeking")};t.Rd=function(){this.p("vjs-seeking")};t.Nd=function(){this.m.starttime&&this.currentTime(this.m.starttime);this.n("vjs-has-started")};t.Nb=function(){this.p("vjs-playing");this.n("vjs-paused")};t.Qd=function(){1==this.bufferedPercent()&&this.l("loadedalldata")};t.Ld=function(){this.m.loop?(this.currentTime(0),this.play()):this.paused()||this.pause()};t.Cc=function(){var n=s(this,"duration");n&&(0>n&&(n=Infinity),this.duration(n),Infinity===n?this.n("vjs-live"):this.p("vjs-live"))};t.Od=function(){this.isFullscreen()?this.n("vjs-fullscreen"):this.p("vjs-fullscreen")};t.play=function(){return h(this,"play"),this};t.pause=function(){return h(this,"pause"),this};t.paused=function(){return s(this,"paused")===i?i:u};t.currentTime=function(n){return n!==f?(h(this,"setCurrentTime",n),this):this.G.currentTime=s(this,"currentTime")||0};t.duration=function(n){return n!==f?(this.G.duration=parseFloat(n),this):(this.G.duration===f&&this.Cc(),this.G.duration||0)};t.remainingTime=function(){return this.duration()-this.currentTime()};t.buffered=function(){var t=s(this,"buffered");return t&&t.length||(t=n.zb(0,0)),t};t.bufferedPercent=function(){var t=this.duration(),r=this.buffered(),u=0,f,i,n;if(!t)return 0;for(n=0;n<r.length;n++)f=r.start(n),i=r.end(n),i>t&&(i=t),u+=i-f;return u/t};t.volume=function(t){return t!==f?(t=Math.max(0,Math.min(1,parseFloat(t))),this.G.volume=t,h(this,"setVolume",t),n.ae(t),this):(t=parseFloat(s(this,"volume")),isNaN(t)?1:t)};t.muted=function(n){return n!==f?(h(this,"setMuted",n),this):s(this,"muted")||i};t.Ea=function(){return s(this,"supportsFullScreen")||i};t.yc=i;t.isFullscreen=function(n){return n!==f?(this.yc=!!n,this):this.yc};t.isFullScreen=function(t){return n.log.warn('player.isFullScreen() has been deprecated, use player.isFullscreen() with a lowercase "s")'),this.isFullscreen(t)};t.requestFullscreen=function(){var t=n.Oa.Fb;return this.isFullscreen(u),t?(n.c(document,t.fullscreenchange,n.bind(this,function(){this.isFullscreen(document[t.fullscreenElement]);this.isFullscreen()===i&&n.j(document,t.fullscreenchange,arguments.callee);this.l("fullscreenchange")})),this.b[t.requestFullscreen]()):this.o.Ea()?h(this,"enterFullScreen"):(this.qc(),this.l("fullscreenchange")),this};t.requestFullScreen=function(){return n.log.warn('player.requestFullScreen() has been deprecated, use player.requestFullscreen() with a lowercase "s")'),this.requestFullscreen()};t.exitFullscreen=function(){var t=n.Oa.Fb;return this.isFullscreen(i),t?document[t.exitFullscreen]():this.o.Ea()?h(this,"exitFullScreen"):(this.Cb(),this.l("fullscreenchange")),this};t.cancelFullScreen=function(){return n.log.warn("player.cancelFullScreen() has been deprecated, use player.exitFullscreen()"),this.exitFullscreen()};t.qc=function(){this.Dd=u;this.ud=document.documentElement.style.overflow;n.c(document,"keydown",n.bind(this,this.sc));document.documentElement.style.overflow="hidden";n.n(document.body,"vjs-full-window");this.l("enterFullWindow")};t.sc=function(n){27===n.keyCode&&(this.isFullscreen()===u?this.exitFullscreen():this.Cb())};t.Cb=function(){this.Dd=i;n.j(document,"keydown",this.sc);document.documentElement.style.overflow=this.ud;n.p(document.body,"vjs-full-window");this.l("exitFullWindow")};t.selectSource=function(t){for(var u,f,e,s,h,r=0,o=this.m.techOrder;r<o.length;r++)if(u=n.ba(o[r]),f=window.videojs[u],f){if(f.isSupported())for(e=0,s=t;e<s.length;e++)if(h=s[e],f.canPlaySource(h))return{source:h,o:u}}else n.log.error('The "'+u+'" tech is undefined. Skipped browser support check for that tech.');return i};t.src=function(t){return t===f?s(this,"src"):(n.g.isArray(t)?ni(this,t):"string"==typeof t?this.src({src:t}):t instanceof Object&&(t.type&&!window.videojs[this.eb].canPlaySource(t)?ni(this,[t]):(this.G.src=t.src,this.nc=t.type||"",this.K(function(){h(this,"src",t.src);"auto"==this.m.preload&&this.load();this.m.autoplay&&this.play()}))),this)};t.load=function(){return h(this,"load"),this};t.currentSrc=function(){return s(this,"currentSrc")||this.G.src||""};t.pd=function(){return this.nc||""};t.Da=function(n){return n!==f?(h(this,"setPreload",n),this.m.preload=n,this):s(this,"preload")};t.autoplay=function(n){return n!==f?(h(this,"setAutoplay",n),this.m.autoplay=n,this):s(this,"autoplay")};t.loop=function(n){return n!==f?(h(this,"setLoop",n),this.m.loop=n,this):s(this,"loop")};t.poster=function(n){return n===f?this.Fc:(n||(n=""),this.Fc=n,h(this,"setPoster",n),this.l("posterchange"),this)};t.controls=function(n){return n!==f?(n=!!n,this.yb!==n&&((this.yb=n)?(this.p("vjs-controls-disabled"),this.n("vjs-controls-enabled"),this.l("controlsenabled")):(this.p("vjs-controls-enabled"),this.n("vjs-controls-disabled"),this.l("controlsdisabled"))),this):this.yb};n.Player.prototype.Tb;t=n.Player.prototype;t.usingNativeControls=function(n){return n!==f?(n=!!n,this.Tb!==n&&((this.Tb=n)?(this.n("vjs-using-native-controls"),this.l("usingnativecontrols")):(this.p("vjs-using-native-controls"),this.l("usingcustomcontrols"))),this):this.Tb};t.da=e;t.error=function(t){return t===f?this.da:t===e?(this.da=t,this.p("vjs-error"),this):(this.da=t instanceof n.D?t:new n.D(t),this.l("error"),this.n("vjs-error"),n.log.error("(CODE:"+this.da.code+" "+n.D.Ra[this.da.code]+")",this.da.message,this.da),this)};t.ended=function(){return s(this,"ended")};t.seeking=function(){return s(this,"seeking")};t.pa=u;t.reportUserActivity=function(){this.pa=u};t.Sb=u;t.userActive=function(n){return n!==f?(n=!!n,n!==this.Sb&&((this.Sb=n)?(this.pa=u,this.p("vjs-user-inactive"),this.n("vjs-user-active"),this.l("useractive")):(this.pa=i,this.o&&this.o.R("mousemove",function(n){n.stopPropagation();n.preventDefault()}),this.p("vjs-user-active"),this.n("vjs-user-inactive"),this.l("userinactive"))),this):this.Sb};t.playbackRate=function(n){return n!==f?(h(this,"setPlaybackRate",n),this):this.o&&this.o.featuresPlaybackRate?s(this,"playbackRate"):1};t.xc=i;n.Ja=n.a.extend();n.Ja.prototype.m={we:"play",children:{playToggle:{},currentTimeDisplay:{},timeDivider:{},durationDisplay:{},remainingTimeDisplay:{},liveDisplay:{},progressControl:{},fullscreenToggle:{},volumeControl:{},muteToggle:{},playbackRateMenuButton:{}}};n.Ja.prototype.e=function(){return n.e("div",{className:"vjs-control-bar"})};n.Yb=n.a.extend({i:function(t,i){n.a.call(this,t,i)}});n.Yb.prototype.e=function(){var t=n.a.prototype.e.call(this,"div",{className:"vjs-live-controls vjs-control"});return this.v=n.e("div",{className:"vjs-live-display",innerHTML:'<span class="vjs-control-text">'+this.t("Stream Type")+"<\/span>"+this.t("LIVE"),"aria-live":"off"}),t.appendChild(this.v),t};n.ac=n.u.extend({i:function(t,i){n.u.call(this,t,i);this.c(t,"play",this.Ob);this.c(t,"pause",this.Nb)}});t=n.ac.prototype;t.ua="Play";t.T=function(){return"vjs-play-control "+n.u.prototype.T.call(this)};t.s=function(){this.d.paused()?this.d.play():this.d.pause()};t.Ob=function(){this.p("vjs-paused");this.n("vjs-playing");this.b.children[0].children[0].innerHTML=this.t("Pause")};t.Nb=function(){this.p("vjs-playing");this.n("vjs-paused");this.b.children[0].children[0].innerHTML=this.t("Play")};n.hb=n.a.extend({i:function(t,i){n.a.call(this,t,i);this.c(t,"timeupdate",this.fa)}});n.hb.prototype.e=function(){var t=n.a.prototype.e.call(this,"div",{className:"vjs-current-time vjs-time-controls vjs-control"});return this.v=n.e("div",{className:"vjs-current-time-display",innerHTML:'<span class="vjs-control-text">Current Time <\/span>0:00',"aria-live":"off"}),t.appendChild(this.v),t};n.hb.prototype.fa=function(){var t=this.d.bb?this.d.G.currentTime:this.d.currentTime();this.v.innerHTML='<span class="vjs-control-text">'+this.t("Current Time")+"<\/span> "+n.za(t,this.d.duration())};n.ib=n.a.extend({i:function(t,i){n.a.call(this,t,i);this.c(t,"timeupdate",this.fa)}});n.ib.prototype.e=function(){var t=n.a.prototype.e.call(this,"div",{className:"vjs-duration vjs-time-controls vjs-control"});return this.v=n.e("div",{className:"vjs-duration-display",innerHTML:'<span class="vjs-control-text">'+this.t("Duration Time")+"<\/span> 0:00","aria-live":"off"}),t.appendChild(this.v),t};n.ib.prototype.fa=function(){var t=this.d.duration();t&&(this.v.innerHTML='<span class="vjs-control-text">'+this.t("Duration Time")+"<\/span> "+n.za(t))};n.gc=n.a.extend({i:function(t,i){n.a.call(this,t,i)}});n.gc.prototype.e=function(){return n.a.prototype.e.call(this,"div",{className:"vjs-time-divider",innerHTML:"<div><span>/<\/span><\/div>"})};n.pb=n.a.extend({i:function(t,i){n.a.call(this,t,i);this.c(t,"timeupdate",this.fa)}});n.pb.prototype.e=function(){var t=n.a.prototype.e.call(this,"div",{className:"vjs-remaining-time vjs-time-controls vjs-control"});return this.v=n.e("div",{className:"vjs-remaining-time-display",innerHTML:'<span class="vjs-control-text">'+this.t("Remaining Time")+"<\/span> -0:00","aria-live":"off"}),t.appendChild(this.v),t};n.pb.prototype.fa=function(){this.d.duration()&&(this.v.innerHTML='<span class="vjs-control-text">'+this.t("Remaining Time")+"<\/span> -"+n.za(this.d.remainingTime()))};n.Ka=n.u.extend({i:function(t,i){n.u.call(this,t,i)}});n.Ka.prototype.ua="Fullscreen";n.Ka.prototype.T=function(){return"vjs-fullscreen-control "+n.u.prototype.T.call(this)};n.Ka.prototype.s=function(){this.d.isFullscreen()?(this.d.exitFullscreen(),this.xb.innerHTML=this.t("Fullscreen")):(this.d.requestFullscreen(),this.xb.innerHTML=this.t("Non-Fullscreen"))};n.ob=n.a.extend({i:function(t,i){n.a.call(this,t,i)}});n.ob.prototype.m={children:{seekBar:{}}};n.ob.prototype.e=function(){return n.a.prototype.e.call(this,"div",{className:"vjs-progress-control vjs-control"})};n.cc=n.S.extend({i:function(t,i){n.S.call(this,t,i);this.c(t,"timeupdate",this.oa);t.K(n.bind(this,this.oa))}});t=n.cc.prototype;t.m={children:{loadProgressBar:{},playProgressBar:{},seekHandle:{}},barName:"playProgressBar",handleName:"seekHandle"};t.Ec="timeupdate";t.e=function(){return n.S.prototype.e.call(this,"div",{className:"vjs-progress-holder","aria-label":"video progress bar"})};t.oa=function(){var t=this.d.bb?this.d.G.currentTime:this.d.currentTime();this.b.setAttribute("aria-valuenow",n.round(100*this.Gb(),2));this.b.setAttribute("aria-valuetext",n.za(t,this.d.duration()))};t.Gb=function(){return this.d.currentTime()/this.d.duration()};t.Za=function(t){n.S.prototype.Za.call(this,t);this.d.bb=u;this.me=!this.d.paused();this.d.pause()};t.$a=function(n){n=wt(this,n)*this.d.duration();n==this.d.duration()&&(n-=.1);this.d.currentTime(n)};t.Mb=function(t){n.S.prototype.Mb.call(this,t);this.d.bb=i;this.me&&this.d.play()};t.Oc=function(){this.d.currentTime(this.d.currentTime()+5)};t.Nc=function(){this.d.currentTime(this.d.currentTime()-5)};n.lb=n.a.extend({i:function(t,i){n.a.call(this,t,i);this.c(t,"progress",this.update)}});n.lb.prototype.e=function(){return n.a.prototype.e.call(this,"div",{className:"vjs-load-progress",innerHTML:'<span class="vjs-control-text"><span>'+this.t("Loaded")+"<\/span>: 0%<\/span>"})};n.lb.prototype.update=function(){var t,e,o,u,f=this.d.buffered(),r,i;for(t=this.d.duration(),i=this.d,r=i.buffered(),i=i.duration(),r=r.end(r.length-1),r>i&&(r=i),i=this.b.children,this.b.style.width=100*(r/t||0)+"%",t=0;t<f.length;t++)e=f.start(t),o=f.end(t),(u=i[t])||(u=this.b.appendChild(n.e())),u.style.left=100*(e/r||0)+"%",u.style.width=100*((o-e)/r||0)+"%";for(t=i.length;t>f.length;t--)this.b.removeChild(i[t-1])};n.$b=n.a.extend({i:function(t,i){n.a.call(this,t,i)}});n.$b.prototype.e=function(){return n.a.prototype.e.call(this,"div",{className:"vjs-play-progress",innerHTML:'<span class="vjs-control-text"><span>'+this.t("Progress")+"<\/span>: 0%<\/span>"})};n.La=n.$.extend({i:function(t,i){n.$.call(this,t,i);this.c(t,"timeupdate",this.fa)}});n.La.prototype.defaultValue="00:00";n.La.prototype.e=function(){return n.$.prototype.e.call(this,"div",{className:"vjs-seek-handle","aria-live":"off"})};n.La.prototype.fa=function(){var t=this.d.bb?this.d.G.currentTime:this.d.currentTime();this.b.innerHTML='<span class="vjs-control-text">'+n.za(t,this.d.duration())+"<\/span>"};n.rb=n.a.extend({i:function(t,r){n.a.call(this,t,r);t.o&&t.o.featuresVolumeControl===i&&this.n("vjs-hidden");this.c(t,"loadstart",function(){t.o.featuresVolumeControl===i?this.n("vjs-hidden"):this.p("vjs-hidden")})}});n.rb.prototype.m={children:{volumeBar:{}}};n.rb.prototype.e=function(){return n.a.prototype.e.call(this,"div",{className:"vjs-volume-control vjs-control"})};n.qb=n.S.extend({i:function(t,i){n.S.call(this,t,i);this.c(t,"volumechange",this.oa);t.K(n.bind(this,this.oa))}});t=n.qb.prototype;t.oa=function(){this.b.setAttribute("aria-valuenow",n.round(100*this.d.volume(),2));this.b.setAttribute("aria-valuetext",n.round(100*this.d.volume(),2)+"%")};t.m={children:{volumeLevel:{},volumeHandle:{}},barName:"volumeLevel",handleName:"volumeHandle"};t.Ec="volumechange";t.e=function(){return n.S.prototype.e.call(this,"div",{className:"vjs-volume-bar","aria-label":"volume level"})};t.$a=function(n){this.d.muted()&&this.d.muted(i);this.d.volume(wt(this,n))};t.Gb=function(){return this.d.muted()?0:this.d.volume()};t.Oc=function(){this.d.volume(this.d.volume()+.1)};t.Nc=function(){this.d.volume(this.d.volume()-.1)};n.hc=n.a.extend({i:function(t,i){n.a.call(this,t,i)}});n.hc.prototype.e=function(){return n.a.prototype.e.call(this,"div",{className:"vjs-volume-level",innerHTML:'<span class="vjs-control-text"><\/span>'})};n.sb=n.$.extend();n.sb.prototype.defaultValue="00:00";n.sb.prototype.e=function(){return n.$.prototype.e.call(this,"div",{className:"vjs-volume-handle"})};n.ia=n.u.extend({i:function(t,r){n.u.call(this,t,r);this.c(t,"volumechange",this.update);t.o&&t.o.featuresVolumeControl===i&&this.n("vjs-hidden");this.c(t,"loadstart",function(){t.o.featuresVolumeControl===i?this.n("vjs-hidden"):this.p("vjs-hidden")})}});n.ia.prototype.e=function(){return n.u.prototype.e.call(this,"div",{className:"vjs-mute-control vjs-control",innerHTML:'<div><span class="vjs-control-text">'+this.t("Mute")+"<\/span><\/div>"})};n.ia.prototype.s=function(){this.d.muted(this.d.muted()?i:u)};n.ia.prototype.update=function(){var t=this.d.volume(),i=3;for(0===t||this.d.muted()?i=0:.33>t?i=1:.67>t&&(i=2),this.d.muted()?this.b.children[0].children[0].innerHTML!=this.t("Unmute")&&(this.b.children[0].children[0].innerHTML=this.t("Unmute")):this.b.children[0].children[0].innerHTML!=this.t("Mute")&&(this.b.children[0].children[0].innerHTML=this.t("Mute")),t=0;4>t;t++)n.p(this.b,"vjs-vol-"+t);n.n(this.b,"vjs-vol-"+i)};n.sa=n.N.extend({i:function(t,r){n.N.call(this,t,r);this.c(t,"volumechange",this.update);t.o&&t.o.featuresVolumeControl===i&&this.n("vjs-hidden");this.c(t,"loadstart",function(){t.o.featuresVolumeControl===i?this.n("vjs-hidden"):this.p("vjs-hidden")});this.n("vjs-menu-button")}});n.sa.prototype.xa=function(){var t=new n.ha(this.d,{lc:"div"}),i=new n.qb(this.d,this.m.volumeBar);return i.c("focus",function(){t.n("vjs-lock-showing")}),i.c("blur",function(){tt(t)}),t.V(i),t};n.sa.prototype.s=function(){n.ia.prototype.s.call(this);n.N.prototype.s.call(this)};n.sa.prototype.e=function(){return n.u.prototype.e.call(this,"div",{className:"vjs-volume-menu-button vjs-menu-button vjs-control",innerHTML:'<div><span class="vjs-control-text">'+this.t("Mute")+"<\/span><\/div>"})};n.sa.prototype.update=n.ia.prototype.update;n.bc=n.N.extend({i:function(t,i){n.N.call(this,t,i);this.Tc();this.Sc();this.c(t,"loadstart",this.Tc);this.c(t,"ratechange",this.Sc)}});t=n.bc.prototype;t.e=function(){var t=n.a.prototype.e.call(this,"div",{className:"vjs-playback-rate vjs-menu-button vjs-control",innerHTML:'<div class="vjs-control-content"><span class="vjs-control-text">'+this.t("Playback Rate")+"<\/span><\/div>"});return this.Ac=n.e("div",{className:"vjs-playback-rate-value",innerHTML:1}),t.appendChild(this.Ac),t};t.xa=function(){var r=new n.ha(this.k()),i=this.k().options().playbackRates,t;if(i)for(t=i.length-1;0<=t;t--)r.V(new n.nb(this.k(),{rate:i[t]+"x"}));return r};t.oa=function(){this.w().setAttribute("aria-valuenow",this.k().playbackRate())};t.s=function(){for(var r=this.k().playbackRate(),n=this.k().options().playbackRates,i=n[0],t=0;t<n.length;t++)if(n[t]>r){i=n[t];break}this.k().playbackRate(i)};t.Tc=function(){ii(this)?this.p("vjs-hidden"):this.n("vjs-hidden")};t.Sc=function(){ii(this)&&(this.Ac.innerHTML=this.k().playbackRate()+"x")};n.nb=n.J.extend({lc:"button",i:function(t,i){var r=this.label=i.rate,u=this.Hc=parseFloat(r,10);i.label=r;i.selected=1===u;n.J.call(this,t,i);this.c(t,"ratechange",this.update)}});n.nb.prototype.s=function(){n.J.prototype.s.call(this);this.k().playbackRate(this.Hc)};n.nb.prototype.update=function(){this.selected(this.k().playbackRate()==this.Hc)};n.ra=n.u.extend({i:function(t,i){n.u.call(this,t,i);this.update();t.c("posterchange",n.bind(this,this.update))}});n.ra.prototype.dispose=function(){this.k().j("posterchange",this.update);n.u.prototype.dispose.call(this)};n.ra.prototype.e=function(){var t=n.e("div",{className:"vjs-poster",tabIndex:-1});return n.Wc||(this.Db=n.e("img"),t.appendChild(this.Db)),t};n.ra.prototype.update=function(){var n=this.k().poster(),t;this.Db?this.Db.src=n:(t="",n&&(t='url("'+n+'")'),this.b.style.backgroundImage=t);n?this.b.style.display="":this.Y()};n.ra.prototype.s=function(){this.d.play()};n.Zb=n.a.extend({i:function(t,i){n.a.call(this,t,i)}});n.Zb.prototype.e=function(){return n.a.prototype.e.call(this,"div",{className:"vjs-loading-spinner"})};n.fb=n.u.extend();n.fb.prototype.e=function(){return n.u.prototype.e.call(this,"div",{className:"vjs-big-play-button",innerHTML:'<span aria-hidden="true"><\/span>',"aria-label":"play video"})};n.fb.prototype.s=function(){this.d.play()};n.jb=n.a.extend({i:function(t,i){n.a.call(this,t,i);this.update();this.c(t,"error",this.update)}});n.jb.prototype.e=function(){var t=n.a.prototype.e.call(this,"div",{className:"vjs-error-display"});return this.v=n.e("div"),t.appendChild(this.v),t};n.jb.prototype.update=function(){this.k().error()&&(this.v.innerHTML=this.t(this.k().error().message))};n.q=n.a.extend({i:function(t,r,f){r=r||{};r.Jc=i;n.a.call(this,t,r,f);this.featuresProgressEvents||(this.Bc=u,this.Gc=setInterval(n.bind(this,function(){var n=this.k().bufferedPercent();this.ld!=n&&this.k().l("progress");this.ld=n;1===n&&clearInterval(this.Gc)}),500));this.featuresTimeupdateEvents||(t=this.d,this.Lb=u,this.c(t,"play",this.Rc),this.c(t,"pause",this.cb),this.R("timeupdate",function(){this.featuresTimeupdateEvents=u;ri(this)}));var e;e=this.k();t=function(){if(e.controls()&&!e.usingNativeControls()){var n;this.c("mousedown",this.s);this.c("touchstart",function(){n=this.d.userActive()});this.c("touchmove",function(){n&&this.k().reportUserActivity()});this.c("touchend",function(n){n.preventDefault()});pt(this);this.c("tap",this.Td)}};this.K(t);this.c(e,"controlsenabled",t);this.c(e,"controlsdisabled",this.Zd);this.K(function(){this.networkState&&0<this.networkState()&&this.k().l("loadstart")})}});t=n.q.prototype;t.Zd=function(){this.j("tap");this.j("touchstart");this.j("touchmove");this.j("touchleave");this.j("touchcancel");this.j("touchend");this.j("click");this.j("mousedown")};t.s=function(n){0===n.button&&this.k().controls()&&(this.k().paused()?this.k().play():this.k().pause())};t.Td=function(){this.k().userActive(!this.k().userActive())};t.Rc=function(){this.mc&&this.cb();this.mc=setInterval(n.bind(this,function(){this.k().l("timeupdate")}),250)};t.cb=function(){clearInterval(this.mc);this.k().l("timeupdate")};t.dispose=function(){this.Bc&&(this.Bc=i,clearInterval(this.Gc));this.Lb&&ri(this);n.a.prototype.dispose.call(this)};t.Qb=function(){this.Lb&&this.k().l("timeupdate")};t.Lc=c();n.q.prototype.featuresVolumeControl=u;n.q.prototype.featuresFullscreenResize=i;n.q.prototype.featuresPlaybackRate=i;n.q.prototype.featuresProgressEvents=i;n.q.prototype.featuresTimeupdateEvents=i;n.media={};n.h=n.q.extend({i:function(t,r,f){for(this.featuresVolumeControl=n.h.nd(),this.featuresPlaybackRate=n.h.md(),this.movingMediaElementInDOM=!n.$c,this.featuresProgressEvents=this.featuresFullscreenResize=u,n.q.call(this,t,r,f),f=n.h.kb.length-1;0<=f;f--)this.c(n.h.kb[f],this.vd);if(((r=r.source)&&this.b.currentSrc!==r.src||t.I&&3===t.I.Bd)&&(this.b.src=r.src),n.ec&&t.options().nativeControlsForTouch===u){var o,e,s,h;o=this;e=this.k();r=e.controls();o.b.controls=!!r;s=function(){o.b.controls=u};h=function(){o.b.controls=i};e.c("controlsenabled",s);e.c("controlsdisabled",h);r=function(){e.j("controlsenabled",s);e.j("controlsdisabled",h)};o.c("dispose",r);e.c("usingcustomcontrols",r);e.usingNativeControls(u)}t.K(function(){this.I&&this.m.autoplay&&this.paused()&&(delete this.I.poster,this.play())});this.Ga()}});t=n.h.prototype;t.dispose=function(){n.h.Bb(this.b);n.q.prototype.dispose.call(this)};t.e=function(){var r=this.d,t=r.I,u,f,o,s;for(t&&this.movingMediaElementInDOM!==i||(t?(u=t.cloneNode(i),n.h.Bb(t),t=u,r.I=e):(t=n.e("video"),n.Kc(t,n.g.z(r.ie||{},{id:r.id()+"_html5_api","class":"vjs-tech"}))),t.player=r,n.Hb(t,r.w())),u=["autoplay","preload","loop","muted"],f=u.length-1;0<=f;f--)o=u[f],s={},"undefined"!=typeof r.m[o]&&(s[o]=r.m[o]),n.Kc(t,s);return t};t.vd=function(n){"error"==n.type&&this.error()?this.k().error(this.error().code):(n.bubbles=i,this.k().l(n))};t.play=function(){this.b.play()};t.pause=function(){this.b.pause()};t.paused=function(){return this.b.paused};t.currentTime=function(){return this.b.currentTime};t.Qb=function(t){try{this.b.currentTime=t}catch(i){n.log(i,"Video is not ready. (Video.js)")}};t.duration=function(){return this.b.duration||0};t.buffered=function(){return this.b.buffered};t.volume=function(){return this.b.volume};t.fe=function(n){this.b.volume=n};t.muted=function(){return this.b.muted};t.ce=function(n){this.b.muted=n};t.width=function(){return this.b.offsetWidth};t.height=function(){return this.b.offsetHeight};t.Ea=function(){return"function"==typeof this.b.webkitEnterFullScreen&&(/Android/.test(n.O)||!/Chrome|Mac OS X 10.5/.test(n.O))?u:i};t.pc=function(){var n=this.b;"webkitDisplayingFullscreen"in n&&this.R("webkitbeginfullscreen",function(){this.d.isFullscreen(u);this.R("webkitendfullscreen",function(){this.d.isFullscreen(i);this.d.l("fullscreenchange")});this.d.l("fullscreenchange")});n.paused&&n.networkState<=n.ne?(this.b.play(),setTimeout(function(){n.pause();n.webkitEnterFullScreen()},0)):n.webkitEnterFullScreen()};t.wd=function(){this.b.webkitExitFullScreen()};t.src=function(n){if(n===f)return this.b.src;this.b.src=n};t.load=function(){this.b.load()};t.currentSrc=function(){return this.b.currentSrc};t.poster=function(){return this.b.poster};t.Lc=function(n){this.b.poster=n};t.Da=function(){return this.b.Da};t.ee=function(n){this.b.Da=n};t.autoplay=function(){return this.b.autoplay};t.$d=function(n){this.b.autoplay=n};t.controls=function(){return this.b.controls};t.loop=function(){return this.b.loop};t.be=function(n){this.b.loop=n};t.error=function(){return this.b.error};t.seeking=function(){return this.b.seeking};t.ended=function(){return this.b.ended};t.playbackRate=function(){return this.b.playbackRate};t.de=function(n){this.b.playbackRate=n};t.networkState=function(){return this.b.networkState};n.h.isSupported=function(){try{n.A.volume=.5}catch(t){return i}return!!n.A.canPlayType};n.h.vb=function(t){try{return!!n.A.canPlayType(t.type)}catch(i){return""}};n.h.nd=function(){var t=n.A.volume;return n.A.volume=t/2+.1,t!==n.A.volume};n.h.md=function(){var t=n.A.playbackRate;return n.A.playbackRate=t/2+.1,t!==n.A.playbackRate};ui=/^application\/(?:x-|vnd\.apple\.)mpegurl/i;fi=/^video\/mp4/i;n.h.Dc=function(){4<=n.Ub&&(y||(y=n.A.constructor.prototype.canPlayType),n.A.constructor.prototype.canPlayType=function(n){return n&&ui.test(n)?"maybe":y.call(this,n)});n.dd&&(y||(y=n.A.constructor.prototype.canPlayType),n.A.constructor.prototype.canPlayType=function(n){return n&&fi.test(n)?"maybe":y.call(this,n)})};n.h.le=function(){var t=n.A.constructor.prototype.canPlayType;return n.A.constructor.prototype.canPlayType=y,y=e,t};n.h.Dc();n.h.kb="loadstart suspend abort error emptied stalled loadedmetadata loadeddata canplay canplaythrough playing waiting seeking seeked ended durationchange timeupdate progress play pause ratechange volumechange".split(" ");n.h.Bb=function(n){if(n){for(n.player=e,n.parentNode&&n.parentNode.removeChild(n);n.hasChildNodes();)n.removeChild(n.firstChild);if(n.removeAttribute("src"),"function"==typeof n.load)try{n.load()}catch(t){}}};n.f=n.q.extend({i:function(t,r,u){var f;n.q.call(this,t,r,u);f=r.source;u=r.parentEl;var s=this.b=n.e("div",{id:t.id()+"_temp_flash"}),o=t.id()+"_flash_api",e=t.m,e=n.g.z({readyFunction:"videojs.Flash.onReady",eventProxyFunction:"videojs.Flash.onEvent",errorEventProxyFunction:"videojs.Flash.onError",autoplay:e.autoplay,preload:e.Da,loop:e.loop,muted:e.muted},r.flashVars),h=n.g.z({wmode:"opaque",bgcolor:"#000000"},r.params),o=n.g.z({id:o,name:o,"class":"vjs-tech"},r.attributes);f&&(f.type&&n.f.Gd(f.type)?(f=n.f.Pc(f.src),e.rtmpConnection=encodeURIComponent(f.wb),e.rtmpStream=encodeURIComponent(f.Rb)):e.src=encodeURIComponent(n.tc(f.src)));n.Hb(s,u);r.startTime&&this.K(function(){this.load();this.play();this.currentTime(r.startTime)});n.Zc&&this.K(function(){this.c("mousemove",function(){this.k().l({type:"mousemove",bubbles:i})})});t.c("stageclick",t.reportUserActivity);this.b=n.f.oc(r.swf,s,e,h,o)}});n.f.prototype.dispose=function(){n.q.prototype.dispose.call(this)};n.f.prototype.play=function(){this.b.vjs_play()};n.f.prototype.pause=function(){this.b.vjs_pause()};n.f.prototype.src=function(t){if(t===f)return this.currentSrc();if(n.f.Fd(t)?(t=n.f.Pc(t),this.xe(t.wb),this.ye(t.Rb)):(t=n.tc(t),this.b.vjs_src(t)),this.d.autoplay()){var i=this;setTimeout(function(){i.play()},0)}};n.f.prototype.setCurrentTime=function(t){this.Jd=t;this.b.vjs_setProperty("currentTime",t);n.q.prototype.Qb.call(this)};n.f.prototype.currentTime=function(){return this.seeking()?this.Jd||0:this.b.vjs_getProperty("currentTime")};n.f.prototype.currentSrc=function(){var t=this.b.vjs_getProperty("currentSrc"),i,r;return t==e&&(i=this.rtmpConnection(),r=this.rtmpStream(),i&&r&&(t=n.f.ge(i,r))),t};n.f.prototype.load=function(){this.b.vjs_load()};n.f.prototype.poster=function(){this.b.vjs_getProperty("poster")};n.f.prototype.setPoster=c();n.f.prototype.buffered=function(){return n.zb(0,this.b.vjs_getProperty("buffered"))};n.f.prototype.Ea=p(i);n.f.prototype.pc=p(i);for(var oi=n.f.prototype,st="rtmpConnection rtmpStream preload defaultPlaybackRate playbackRate autoplay loop mediaGroup controller controls volume muted defaultMuted".split(" "),si="error networkState readyState seeking initialTime duration startOffsetTime paused played seekable ended videoTracks audioTracks videoWidth videoHeight textTracks".split(" "),a=0;a<st.length;a++)ei(st[a]),yi();for(a=0;a<si.length;a++)ei(si[a]);n.f.isSupported=function(){return 10<=n.f.version()[0]};n.f.vb=function(t){return t.type?(t=t.type.replace(/;.*/,"").toLowerCase(),t in n.f.yd||t in n.f.Qc?"maybe":void 0):""};n.f.yd={"video/flv":"FLV","video/x-flv":"FLV","video/mp4":"MP4","video/m4v":"MP4"};n.f.Qc={"rtmp/mp4":"MP4","rtmp/flv":"FLV"};n.f.onReady=function(t){var i;(i=(t=n.w(t))&&t.parentNode&&t.parentNode.player)&&(t.player=i,n.f.checkReady(i.o))};n.f.checkReady=function(t){t.w()&&(t.w().vjs_getProperty?t.Ga():setTimeout(function(){n.f.checkReady(t)},50))};n.f.onEvent=function(t,i){n.w(t).player.l(i)};n.f.onError=function(t,i){var r=n.w(t).player,u="FLASH: "+i;"srcnotfound"==i?r.error({code:4,message:u}):r.error(u)};n.f.version=function(){var n="0,0,0";try{n=new window.ActiveXObject("ShockwaveFlash.ShockwaveFlash").GetVariable("$version").replace(/\D+/g,",").match(/^,?(.+),?$/)[1]}catch(t){try{navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin&&(n=(navigator.plugins["Shockwave Flash 2.0"]||navigator.plugins["Shockwave Flash"]).description.replace(/\D+/g,",").match(/^,?(.+),?$/)[1])}catch(i){}}return n.split(",")};n.f.oc=function(t,i,r,u,f){t=n.f.Ad(t,r,u,f);t=n.e("div",{innerHTML:t}).childNodes[0];r=i.parentNode;i.parentNode.replaceChild(t,i);var e=r.childNodes[0];return setTimeout(function(){e.style.display="block"},1e3),t};n.f.Ad=function(t,i,r,u){var f="",e="",o="";return i&&n.g.X(i,function(n,t){f+=n+"="+t+"&amp;"}),r=n.g.z({movie:t,flashvars:f,allowScriptAccess:"always",allowNetworking:"all"},r),n.g.X(r,function(n,t){e+='<param name="'+n+'" value="'+t+'" />'}),u=n.g.z({data:t,width:"100%",height:"100%"},u),n.g.X(u,function(n,t){o+=n+'="'+t+'" '}),'<object type="application/x-shockwave-flash"'+o+">"+e+"<\/object>"};n.f.ge=function(n,t){return n+"&"+t};n.f.Pc=function(n){var i={wb:"",Rb:""},t,r;return n?(t=n.indexOf("&"),-1!==t?r=t+1:(t=r=n.lastIndexOf("/")+1,0===t&&(t=r=n.length)),i.wb=n.substring(0,t),i.Rb=n.substring(r,n.length),i):i};n.f.Gd=function(t){return t in n.f.Qc};n.f.fd=/^rtmp[set]?:\/\//i;n.f.Fd=function(t){return n.f.fd.test(t)};n.ed=n.a.extend({i:function(t,i,r){if(n.a.call(this,t,i,r),t.m.sources&&0!==t.m.sources.length)t.src(t.m.sources);else for(i=0,r=t.m.techOrder;i<r.length;i++){var u=n.ba(r[i]),f=window.videojs[u];if(f&&f.isSupported()){dt(t,u);break}}}});n.Player.prototype.textTracks=function(){return this.Fa=this.Fa||[]};n.B=n.a.extend({i:function(t,i){n.a.call(this,t,i);this.L=i.id||"vjs_"+i.kind+"_"+i.language+"_"+n.r++;this.Mc=i.src;this.sd=i["default"]||i.dflt;this.je=i.title;this.Ua=i.srclang;this.Hd=i.label;this.ca=[];this.tb=[];this.ma=this.na=0}});t=n.B.prototype;t.M=o("H");t.src=o("Mc");t.Ab=o("sd");t.title=o("je");t.language=o("Ua");t.label=o("Hd");t.od=o("ca");t.gd=o("tb");t.readyState=o("na");t.mode=o("ma");t.e=function(){return n.a.prototype.e.call(this,"div",{className:"vjs-"+this.H+" vjs-text-track"})};t.show=function(){hi(this);this.ma=2;n.a.prototype.show.call(this)};t.Y=function(){hi(this);this.ma=1;n.a.prototype.Y.call(this)};t.disable=function(){2==this.ma&&this.Y();this.d.j("timeupdate",n.bind(this,this.update,this.L));this.d.j("ended",n.bind(this,this.reset,this.L));this.reset();this.d.ka("textTrackDisplay").removeChild(this);this.ma=0};t.load=function(){0===this.na&&(this.na=1,n.get(this.Mc,n.bind(this,this.Wd),n.bind(this,this.Md)))};t.Md=function(n){this.error=n;this.na=3;this.l("error")};t.Wd=function(t){var i,u;t=t.split("\n");for(var r="",f=1,e=t.length;f<e;f++)if(r=n.trim(t[f])){for(-1==r.indexOf("-->")?(i=r,r=n.trim(t[++f])):i=this.ca.length,i={id:i,index:this.ca.length},u=r.split(/[\t ]+/),i.startTime=ci(u[0]),i.ya=ci(u[2]),u=[];t[++f]&&(r=n.trim(t[f]));)u.push(r);i.text=u.join("<br/>");this.ca.push(i)}this.na=2;this.l("loaded")};t.update=function(){var t;if(0<this.ca.length&&(t=this.d.options().trackTimeOffset||0,t=this.d.currentTime()+t,this.Pb===f||t<this.Pb||this.Wa<=t)){var s=this.ca,h=this.d.duration(),c=0,l=i,a=[],e,o,n,r;for(t>=this.Wa||this.Wa===f?r=this.Eb!==f?this.Eb:0:(l=u,r=this.Kb!==f?this.Kb:s.length-1);;){if(n=s[r],n.ya<=t)c=Math.max(c,n.ya),n.Na&&(n.Na=i);else if(t<n.startTime){if(h=Math.min(h,n.startTime),n.Na&&(n.Na=i),!l)break}else l?(a.splice(0,0,n),o===f&&(o=r),e=r):(a.push(n),e===f&&(e=r),o=r),h=Math.min(h,n.ya),c=Math.max(c,n.startTime),n.Na=u;if(l)if(0===r)break;else r--;else if(r===s.length-1)break;else r++}for(this.tb=a,this.Wa=h,this.Pb=c,this.Eb=e,this.Kb=o,e=this.tb,o="",t=0,s=e.length;t<s;t++)o+='<span class="vjs-tt-cue">'+e[t].text+"<\/span>";this.b.innerHTML=o;this.l("cuechange")}};t.reset=function(){this.Wa=0;this.Pb=this.d.duration();this.Kb=this.Eb=0};n.Wb=n.B.extend();n.Wb.prototype.H="captions";n.dc=n.B.extend();n.dc.prototype.H="subtitles";n.Xb=n.B.extend();n.Xb.prototype.H="chapters";n.fc=n.a.extend({i:function(t,i,r){if(n.a.call(this,t,i,r),t.m.tracks&&0<t.m.tracks.length){i=this.d;t=t.m.tracks;for(var u=0;u<t.length;u++)r=t[u],pi(i,r.kind,r.label,r.language,r)}}});n.fc.prototype.e=function(){return n.a.prototype.e.call(this,"div",{className:"vjs-text-track-display"})};n.aa=n.J.extend({i:function(t,i){var r=this.ea=i.track;i.label=r.label();i.selected=r.Ab();n.J.call(this,t,i);this.c(t,r.M()+"trackchange",this.update)}});n.aa.prototype.s=function(){n.J.prototype.s.call(this);ht(this.d,this.ea.L,this.ea.M())};n.aa.prototype.update=function(){this.selected(2==this.ea.mode())};n.mb=n.aa.extend({i:function(t,r){r.track={M:function(){return r.kind},k:t,label:function(){return r.kind+" off"},Ab:p(i),mode:p(i)};n.aa.call(this,t,r);this.selected(u)}});n.mb.prototype.s=function(){n.aa.prototype.s.call(this);ht(this.d,this.ea.L,this.ea.M())};n.mb.prototype.update=function(){for(var r=this.d.textTracks(),n=0,e=r.length,t,f=u;n<e;n++)t=r[n],t.M()==this.ea.M()&&2==t.mode()&&(f=i);this.selected(f)};n.U=n.N.extend({i:function(t,i){n.N.call(this,t,i);1>=this.Q.length&&this.Y()}});n.U.prototype.wa=function(){var i=[],r,t;for(i.push(new n.mb(this.d,{kind:this.H})),t=0;t<this.d.textTracks().length;t++)r=this.d.textTracks()[t],r.M()===this.H&&i.push(new n.aa(this.d,{track:r}));return i};n.Ha=n.U.extend({i:function(t,i,r){n.U.call(this,t,i,r);this.b.setAttribute("aria-label","Captions Menu")}});n.Ha.prototype.H="captions";n.Ha.prototype.ua="Captions";n.Ha.prototype.className="vjs-captions-button";n.Ma=n.U.extend({i:function(t,i,r){n.U.call(this,t,i,r);this.b.setAttribute("aria-label","Subtitles Menu")}});n.Ma.prototype.H="subtitles";n.Ma.prototype.ua="Subtitles";n.Ma.prototype.className="vjs-subtitles-button";n.Ia=n.U.extend({i:function(t,i,r){n.U.call(this,t,i,r);this.b.setAttribute("aria-label","Chapters Menu")}});t=n.Ia.prototype;t.H="chapters";t.ua="Chapters";t.className="vjs-chapters-button";t.wa=function(){for(var r=[],t,i=0;i<this.d.textTracks().length;i++)t=this.d.textTracks()[i],t.M()===this.H&&r.push(new n.aa(this.d,{track:t}));return r};t.xa=function(){for(var u,t=this.d.textTracks(),r=0,o=t.length,i,e,s=this.Q=[];r<o;r++)if(i=t[r],i.M()==this.H)if(0===i.readyState())i.load(),i.c("loaded",n.bind(this,this.xa));else{e=i;break}if(t=this.Ba,t===f&&(t=new n.ha(this.d),t.ja().appendChild(n.e("li",{className:"vjs-menu-title",innerHTML:n.ba(this.H),he:-1}))),e){for(i=e.ca,r=0,o=i.length;r<o;r++)u=i[r],u=new n.gb(this.d,{track:e,cue:u}),s.push(u),t.V(u);this.V(t)}return 0<this.Q.length&&this.show(),t};n.gb=n.J.extend({i:function(t,i){var f=this.ea=i.track,r=this.cue=i.cue,u=t.currentTime();i.label=r.text;i.selected=r.startTime<=u&&u<r.ya;n.J.call(this,t,i);f.c("cuechange",n.bind(this,this.update))}});n.gb.prototype.s=function(){n.J.prototype.s.call(this);this.d.currentTime(this.cue.startTime);this.update(this.cue.startTime)};n.gb.prototype.update=function(){var n=this.cue,t=this.d.currentTime();this.selected(n.startTime<=t&&t<n.ya)};n.g.z(n.Ja.prototype.m.children,{subtitlesButton:{},captionsButton:{},chaptersButton:{}});"undefined"!=typeof JSON&&"function"==typeof window.JSON.parse?n.JSON=window.JSON:(n.JSON={},rt=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,n.JSON.parse=function(a,c){function d(n,t){var r,u,i=n[t];if(i&&"object"==typeof i)for(r in i)Object.prototype.hasOwnProperty.call(i,r)&&(u=d(i,r),u!==f?i[r]=u:delete i[r]);return c.call(n,t,i)}var e;if(a=String(a),rt.lastIndex=0,rt.test(a)&&(a=a.replace(rt,function(n){return"\\u"+("0000"+n.charCodeAt(0).toString(16)).slice(-4)})),/^[\],:{}\s]*$/.test(a.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,"@").replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,"]").replace(/(?:^|:|,)(?:\s*\[)+/g,"")))return e=eval("("+a+")"),"function"==typeof c?d({"":e},""):e;throw new SyntaxError("JSON.parse(): invalid or malformed JSON data");});n.jc=function(){var r,i,t,o,u;if(r=document.getElementsByTagName("video"),i=document.getElementsByTagName("audio"),u=[],r&&0<r.length)for(t=0,o=r.length;t<o;t++)u.push(r[t]);if(i&&0<i.length)for(t=0,o=i.length;t<o;t++)u.push(i[t]);if(u&&0<u.length)for(t=0,o=u.length;t<o;t++)if((i=u[t])&&i.getAttribute)i.player===f&&(r=i.getAttribute("data-setup"),r!==e&&b(i));else{n.ub();break}else n.Uc||n.ub()};n.ub=function(){setTimeout(n.jc,1)};"complete"===document.readyState?n.Uc=u:n.R(window,"load",function(){n.Uc=u});n.ub();n.Yd=function(t,i){n.Player.prototype[t]=i};li=this;r("videojs",n);r("_V_",n);r("videojs.options",n.options);r("videojs.players",n.Ca);r("videojs.TOUCH_ENABLED",n.ec);r("videojs.cache",n.va);r("videojs.Component",n.a);n.a.prototype.player=n.a.prototype.k;n.a.prototype.options=n.a.prototype.options;n.a.prototype.init=n.a.prototype.i;n.a.prototype.dispose=n.a.prototype.dispose;n.a.prototype.createEl=n.a.prototype.e;n.a.prototype.contentEl=n.a.prototype.ja;n.a.prototype.el=n.a.prototype.w;n.a.prototype.addChild=n.a.prototype.V;n.a.prototype.getChild=n.a.prototype.ka;n.a.prototype.getChildById=n.a.prototype.zd;n.a.prototype.children=n.a.prototype.children;n.a.prototype.initChildren=n.a.prototype.wc;n.a.prototype.removeChild=n.a.prototype.removeChild;n.a.prototype.on=n.a.prototype.c;n.a.prototype.off=n.a.prototype.j;n.a.prototype.one=n.a.prototype.R;n.a.prototype.trigger=n.a.prototype.l;n.a.prototype.triggerReady=n.a.prototype.Ga;n.a.prototype.show=n.a.prototype.show;n.a.prototype.hide=n.a.prototype.Y;n.a.prototype.width=n.a.prototype.width;n.a.prototype.height=n.a.prototype.height;n.a.prototype.dimensions=n.a.prototype.td;n.a.prototype.ready=n.a.prototype.K;n.a.prototype.addClass=n.a.prototype.n;n.a.prototype.removeClass=n.a.prototype.p;n.a.prototype.buildCSSClass=n.a.prototype.T;n.a.prototype.localize=n.a.prototype.t;n.Player.prototype.ended=n.Player.prototype.ended;n.Player.prototype.enterFullWindow=n.Player.prototype.qc;n.Player.prototype.exitFullWindow=n.Player.prototype.Cb;n.Player.prototype.preload=n.Player.prototype.Da;n.Player.prototype.remainingTime=n.Player.prototype.remainingTime;n.Player.prototype.supportsFullScreen=n.Player.prototype.Ea;n.Player.prototype.currentType=n.Player.prototype.pd;n.Player.prototype.requestFullScreen=n.Player.prototype.requestFullScreen;n.Player.prototype.requestFullscreen=n.Player.prototype.requestFullscreen;n.Player.prototype.cancelFullScreen=n.Player.prototype.cancelFullScreen;n.Player.prototype.exitFullscreen=n.Player.prototype.exitFullscreen;n.Player.prototype.isFullScreen=n.Player.prototype.isFullScreen;n.Player.prototype.isFullscreen=n.Player.prototype.isFullscreen;r("videojs.MediaLoader",n.ed);r("videojs.TextTrackDisplay",n.fc);r("videojs.ControlBar",n.Ja);r("videojs.Button",n.u);r("videojs.PlayToggle",n.ac);r("videojs.FullscreenToggle",n.Ka);r("videojs.BigPlayButton",n.fb);r("videojs.LoadingSpinner",n.Zb);r("videojs.CurrentTimeDisplay",n.hb);r("videojs.DurationDisplay",n.ib);r("videojs.TimeDivider",n.gc);r("videojs.RemainingTimeDisplay",n.pb);r("videojs.LiveDisplay",n.Yb);r("videojs.ErrorDisplay",n.jb);r("videojs.Slider",n.S);r("videojs.ProgressControl",n.ob);r("videojs.SeekBar",n.cc);r("videojs.LoadProgressBar",n.lb);r("videojs.PlayProgressBar",n.$b);r("videojs.SeekHandle",n.La);r("videojs.VolumeControl",n.rb);r("videojs.VolumeBar",n.qb);r("videojs.VolumeLevel",n.hc);r("videojs.VolumeMenuButton",n.sa);r("videojs.VolumeHandle",n.sb);r("videojs.MuteToggle",n.ia);r("videojs.PosterImage",n.ra);r("videojs.Menu",n.ha);r("videojs.MenuItem",n.J);r("videojs.MenuButton",n.N);r("videojs.PlaybackRateMenuButton",n.bc);n.N.prototype.createItems=n.N.prototype.wa;n.U.prototype.createItems=n.U.prototype.wa;n.Ia.prototype.createItems=n.Ia.prototype.wa;r("videojs.SubtitlesButton",n.Ma);r("videojs.CaptionsButton",n.Ha);r("videojs.ChaptersButton",n.Ia);r("videojs.MediaTechController",n.q);n.q.prototype.featuresVolumeControl=n.q.prototype.ue;n.q.prototype.featuresFullscreenResize=n.q.prototype.qe;n.q.prototype.featuresPlaybackRate=n.q.prototype.re;n.q.prototype.featuresProgressEvents=n.q.prototype.se;n.q.prototype.featuresTimeupdateEvents=n.q.prototype.te;n.q.prototype.setPoster=n.q.prototype.Lc;r("videojs.Html5",n.h);n.h.Events=n.h.kb;n.h.isSupported=n.h.isSupported;n.h.canPlaySource=n.h.vb;n.h.patchCanPlayType=n.h.Dc;n.h.unpatchCanPlayType=n.h.le;n.h.prototype.setCurrentTime=n.h.prototype.Qb;n.h.prototype.setVolume=n.h.prototype.fe;n.h.prototype.setMuted=n.h.prototype.ce;n.h.prototype.setPreload=n.h.prototype.ee;n.h.prototype.setAutoplay=n.h.prototype.$d;n.h.prototype.setLoop=n.h.prototype.be;n.h.prototype.enterFullScreen=n.h.prototype.pc;n.h.prototype.exitFullScreen=n.h.prototype.wd;n.h.prototype.playbackRate=n.h.prototype.playbackRate;n.h.prototype.setPlaybackRate=n.h.prototype.de;r("videojs.Flash",n.f);n.f.isSupported=n.f.isSupported;n.f.canPlaySource=n.f.vb;n.f.onReady=n.f.onReady;n.f.embed=n.f.oc;n.f.version=n.f.version;r("videojs.TextTrack",n.B);n.B.prototype.label=n.B.prototype.label;n.B.prototype.kind=n.B.prototype.M;n.B.prototype.mode=n.B.prototype.mode;n.B.prototype.cues=n.B.prototype.od;n.B.prototype.activeCues=n.B.prototype.gd;r("videojs.CaptionsTrack",n.Wb);r("videojs.SubtitlesTrack",n.dc);r("videojs.ChaptersTrack",n.Xb);r("videojs.autoSetup",n.jc);r("videojs.plugin",n.Yd);r("videojs.createTimeRange",n.zb);r("videojs.util",n.ga);n.ga.mergeOptions=n.ga.Va;n.addLanguage=n.hd}()