1"use strict";function _classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function window_scroll_lock(){$(window).scrollTop(win_scroll_pos)}function scrollTo(e){if("string"==typeof e&&(e=$(e)),!e.get(0))return!1;$("html, body").animate({scrollTop:e.offset().top-80},500)}function start__marquee(e){var t=e.outerWidth(),n=e.children().outerWidth(!0),i=0,o=!1;if($("#sel_activity").select2({width:"100%",minimumResultsForSearch:10}),$("#sel_date_sort").select2({width:"100%",minimumResultsForSearch:10}),n>t){i=n-t;setInterval(function(){0==o?e.children().animate({left:-i},1500,function(){o=!o}):e.children().animate({left:0},1500,function(){o=!o})},3e3)}}function open_submenu(){if(!($("[data-submenu-open]").length>0))return!1;var e=function(e){0==$(e.target).closest("[data-submenu]").length&&0==$(e.target).closest("[data-submenu-open]").length&&($("[data-submenu-open]").removeClass("is-active"),$("[data-submenu]").each(function(){(1!=$(this).data("submenu-close")||$(window).width()<768)&&$(this).fadeOut(200)}),$("body").removeClass("modal-open"),$("body").removeClass("device-auth-open"))};$("[data-submenu-open]").on("click",function(){$(this).hasClass("is-active")?($(window).off("scroll",window_scroll_lock),$(this).removeClass("is-active"),$("[data-submenu]").each(function(){(1!=$(this).data("submenu-close")||$(window).width()<768)&&$(this).fadeOut(200)}),$(document).off("click",e),$("body").removeClass("modal-open"),$("body").removeClass("device-auth-open")):("block"==$(this).data("scroll")&&$("body").addClass("modal-open"),1!=$(this).data("submenu-lock")&&($("[data-submenu-open]").removeClass("is-active"),$(this).addClass("is-active")),$("[data-submenu]").each(function(){(1!=$(this).data("submenu-close")||$(window).width()<768)&&$(this).fadeOut(200)}),$(window).width()<668?"device-auth"==$(this).data("submenu-open")||"device-reg"==$(this).data("submenu-open")||"device-recovery"==$(this).data("submenu-open")?($("body").addClass("device-auth-open"),$('[data-submenu="'+$(this).data("submenu-open")+'"]').fadeIn(200)):($("body").removeClass("device-auth-open"),$('[data-submenu="'+$(this).data("submenu-open")+'"]').slideDown(200)):$('[data-submenu="'+$(this).data("submenu-open")+'"]').slideDown(200),$('[data-submenu="'+$(this).data("submenu-open")+'"]').slideDown(200),$(document).off("click",e),$(document).on("click",e))})}function close_submenu(){$("[data-submenu-close]").length>0&&$("[data-submenu-close]").on("click",function(e){$(this).removeClass("is-active"),$("[data-submenu]").each(function(){(1!=$(this).data("submenu-close")||$(window).width()<768)&&$(this).fadeOut(200)}),$("body").removeClass("modal-open"),$("body").removeClass("device-auth-open"),$("[data-submenu-open]").removeClass("is-active")})}function toggle_class(){if(0!=$("[data-toggle-target]").length){var e=function(e){0==$(e.target).closest("[data-toggle-target]").length&&0==$(e.target).closest("[data-toggle-object]").length&&($("[data-toggle-object]").removeClass("is-active"),$("[data-toggle-target]").removeClass("is-active"))};$("[data-toggle-target]").on("click",function(){$(this).toggleClass("is-active");var t=$('[data-toggle-object="'+$(this).data("toggle-target")+'"]');0!=$(t).length&&($(t).hasClass("is-active")?($(t).removeClass("is-active"),$(document).off("click",e)):($(t).addClass("is-active"),$(t).find("input").focus(),$(document).off("click",e),$(document).on("click",e))),0!=$(this).next(".form-search").length&&0==$(this).next(".form-search").find("input").val().length&&$(this).next(".form-search").addClass("is-empty")}),$(".form-search input").on("input",function(){$(this).val().length>0?$(this).parents("form").removeClass("is-empty"):$(this).parents("form").addClass("is-empty")})}}function tabs_panel(){$('[data-tabs="head"]').on("click","a",function(e){0!=$($(this).attr("href")).length&&(e.preventDefault(),$(this).parent().siblings().removeClass("is-active"),$(this).parent().addClass("is-active"),$('[data-tabs-name="'+$(this).parent().data("tabs-name")+'"]').children('[data-tabs="panel"]').removeClass("is-active"),$($(this).attr("href")).addClass("is-active"))})}function show_notice(e,t){var n="";"string"==typeof e?n=e:$.each(e,function(e,t){n+=t+"<br/>"}
1),""!==n&&$.growl({title:"",message:n,duration:5e3,style:t})}function toggle_dropdown(e,t,n){$(e).length>0&&(n&&$(e).each(function(){$(this).hasClass("is-active")&&$(this).children(t).next().slideDown(300)}),$(e).on("click",t,function(){$(this).closest(e).hasClass("is-active")?($(this).closest(e).removeClass("is-active"),n&&$(this).next().slideUp(300)):($(this).closest(e).addClass("is-active"),n&&$(this).next().slideDown(300))}))}function replaceHashLinks(){$("[data-hash]").each(function(){var e=$(this).data("hash"),t=$(this).data("hash-type");"link"==t?$(this).attr("href",Base64.decode(e)):"mailto"==t&&$(this).attr("href","mailto:"+Base64.decode(e))}),$(document).trigger("renderpage.finish")}!function(e,t){"object"==typeof module&&"object"==typeof module.exports?module.exports=e.document?t(e,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return t(e)}:t(e)}("undefined"!=typeof window?window:this,function(e,t){function n(e,t,n){var i,o,r=(n=n||Z).createElement("script");if(r.text=e,t)for(i in he)(o=t[i]||t.getAttribute&&t.getAttribute(i))&&r.setAttribute(i,o);n.head.appendChild(r).parentNode.removeChild(r)}function i(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?oe[re.call(e)]||"object":typeof e}function o(e){var t=!!e&&"length"in e&&e.length,n=i(e);return!ue(e)&&!de(e)&&("array"===n||0===t||"number"==typeof t&&0<t&&t-1 in e)}function r(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()}function s(e,t,n){return ue(t)?fe.grep(e,function(e,i){return!!t.call(e,i,e)!==n}):t.nodeType?fe.grep(e,function(e){return e===t!==n}):"string"!=typeof t?fe.grep(e,function(e){return-1<ie.call(t,e)!==n}):fe.filter(t,e,n)}function a(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}function l(e){return e}function c(e){throw e}function u(e,t,n,i){var o;try{e&&ue(o=e.promise)?o.call(e).done(t).fail(n):e&&ue(o=e.then)?o.call(e,t,n):t.apply(void 0,[e].slice(i))}catch(e){n.apply(void 0,[e])}}function d(){Z.removeEventListener("DOMContentLoaded",d),e.removeEventListener("load",d),fe.ready()}function h(e,t){return t.toUpperCase()}function p(e){return e.replace(Ie,"ms-").replace(Pe,h)}function f(){this.expando=fe.expando+f.uid++}function m(e,t,n){var i,o;if(void 0===n&&1===e.nodeType)if(i="data-"+t.replace(Le,"-$&").toLowerCase(),"string"==typeof(n=e.getAttribute(i))){try{n="true"===(o=n)||"false"!==o&&("null"===o?null:o===+o+""?+o:Ne.test(o)?JSON.parse(o):o)}catch(e){}Re.set(e,t,n)}else n=void 0;return n}function g(e,t,n,i){var o,r,s=20,a=i?function(){return i.cur()}:function(){return fe.css(e,t,"")},l=a(),c=n&&n[3]||(fe.cssNumber[t]?"":"px"),u=e.nodeType&&(fe.cssNumber[t]||"px"!==c&&+l)&&Oe.exec(fe.css(e,t));if(u&&u[3]!==c){for(l/=2,c=c||u[3],u=+l||1;s--;)fe.style(e,t,u+c),(1-r)*(1-(r=a()/l||.5))<=0&&(s=0),u/=r;u*=2,fe.style(e,t,u+c),n=n||[]}return n&&(u=+u||+l||0,o=n[1]?u+(n[1]+1)*n[2]:+n[2],i&&(i.unit=c,i.start=u,i.end=o)),o}function v(e,t){for(var n,i,o,r,s,a,l,c=[],u=0,d=e.length;u<d;u++)(i=e[u]).style&&(n=i.style.display,t?("none"===n&&(c[u]=Ae.get(i,"display")||null,c[u]||(i.style.display="")),""===i.style.display&&ze(i)&&(c[u]=(l=s=r=void 0,s=(o=i).ownerDocument,a=o.nodeName,(l=Ue[a])||(r=s.body.appendChild(s.createElement(a)),l=fe.css(r,"display"),r.parentNode.removeChild(r),"none"===l&&(l="block"),Ue[a]=l)))):"none"!==n&&(c[u]="none",Ae.set(i,"display",n)));for(u=0;u<d;u++)null!=c[u]&&(e[u].style.display=c[u]);return e}function y(e,t){var n;return n=void 0!==e.getElementsByTagName?e.getElementsByTagName(t||"*"):void 0!==e.querySelectorAll?e.querySelectorAll(t||"*"):[],void 0===t||t&&r(e,t)?fe.merge([e],n):n}function b(e,t){for(var n=0,i=e.length;n<i;n++)Ae.set(e[n],"globalEval",!t||Ae.get(t[n],"globalEval"))}function w(e,t,n,o,r){for(var s,a,l,c,u,d,h=t.createDocumentFragment(),p=[],f=0,m=e.length;f<m;f++)if((s=e[f])||0===s)if("object"===i(s))fe.merge(p,s.nodeType?[s]:s);else if(Xe.test(s)){for(a=a||h.appendChild(t.createElement("div")),l=(Ve.exec(s)||["",""])[1].toLowerCase(),c=Ge[l]||Ge._default,a.innerHTML=c[1]+fe.htmlPrefilter(s)+c[2],d=c[0];d--;)a=a.lastChild;fe.merge(p,a.childNodes),(a=h.firstChild).textContent=""}else p.push(t.createTextNode(s));for(h.textContent="",f=0;s=p[f++];
vendor: 4,125 bytes, line 1
1)if(o&&-1<fe.inArray(s,o))r&&r.push(s);else if(u=Fe(s),a=y(h.appendChild(s),"script"),u&&b(a),n)for(d=0;s=a[d++];)Ke.test(s.type||"")&&n.push(s);return h}function k(){return!0}function C(){return!1}function x(e,t){return e===function(){try{return Z.activeElement}catch(e){}}()==("focus"===t)}function _(e,t,n,i,o,r){var s,a;if("object"==typeof t){for(a in"string"!=typeof n&&(i=i||n,n=void 0),t)_(e,a,n,i,t[a],r);return e}if(null==i&&null==o?(o=n,i=n=void 0):null==o&&("string"==typeof n?(o=i,i=void 0):(o=i,i=n,n=void 0)),!1===o)o=C;else if(!o)return e;return 1===r&&(s=o,(o=function(e){return fe().off(e),s.apply(this,arguments)}).guid=s.guid||(s.guid=fe.guid++)),e.each(function(){fe.event.add(this,t,o,i,n)})}function S(e,t,n){n?(Ae.set(e,t,!1),fe.event.add(e,t,{namespace:!1,handler:function(e){var i,o,r=Ae.get(this,t);if(1&e.isTrigger&&this[t]){if(r.length)(fe.event.special[t]||{}).delegateType&&e.stopPropagation();else if(r=ee.call(arguments),Ae.set(this,t,r),i=n(this,t),this[t](),r!==(o=Ae.get(this,t))||i?Ae.set(this,t,!1):o={},r!==o)return e.stopImmediatePropagation(),e.preventDefault(),o.value}else r.length&&(Ae.set(this,t,{value:fe.event.trigger(fe.extend(r[0],fe.Event.prototype),r.slice(1),this)}),e.stopImmediatePropagation())}})):void 0===Ae.get(e,t)&&fe.event.add(e,t,k)}function T(e,t){return r(e,"table")&&r(11!==t.nodeType?t:t.firstChild,"tr")&&fe(e).children("tbody")[0]||e}function E(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function $(e){return"true/"===(e.type||"").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute("type"),e}function I(e,t){var n,i,o,r,s,a,l,c;if(1===t.nodeType){if(Ae.hasData(e)&&(r=Ae.access(e),s=Ae.set(t,r),c=r.events))for(o in delete s.handle,s.events={},c)for(n=0,i=c[o].length;n<i;n++)fe.event.add(t,o,c[o][n]);Re.hasData(e)&&(a=Re.access(e),l=fe.extend({},a),Re.set(t,l))}}function P(e,t,i,o){t=te.apply([],t);var r,s,a,l,c,u,d=0,h=e.length,p=h-1,f=t[0],m=ue(f);if(m||1<h&&"string"==typeof f&&!ce.checkClone&&it.test(f))return e.each(function(n){var r=e.eq(n);m&&(t[0]=f.call(this,n,r.html())),P(r,t,i,o)});if(h&&(s=(r=w(t,e[0].ownerDocument,!1,e,o)).firstChild,1===r.childNodes.length&&(r=s),s||o)){for(l=(a=fe.map(y(r,"script"),E)).length;d<h;d++)c=r,d!==p&&(c=fe.clone(c,!0,!0),l&&fe.merge(a,y(c,"script"))),i.call(e[d],c,d);if(l)for(u=a[a.length-1].ownerDocument,fe.map(a,$),d=0;d<l;d++)c=a[d],Ke.test(c.type||"")&&!Ae.access(c,"globalEval")&&fe.contains(u,c)&&(c.src&&"module"!==(c.type||"").toLowerCase()?fe._evalUrl&&!c.noModule&&fe._evalUrl(c.src,{nonce:c.nonce||c.getAttribute("nonce")}):n(c.textContent.replace(ot,""),c,u))}return e}function D(e,t,n){for(var i,o=t?fe.filter(t,e):e,r=0;null!=(i=o[r]);r++)n||1!==i.nodeType||fe.cleanData(y(i)),i.parentNode&&(n&&Fe(i)&&b(y(i,"script")),i.parentNode.removeChild(i));return e}function A(e,t,n){var i,o,r,s,a=e.style;return(n=n||st(e))&&(""!==(s=n.getPropertyValue(t)||n[t])||Fe(e)||(s=fe.style(e,t)),!ce.pixelBoxStyles()&&rt.test(s)&&at.test(t)&&(i=a.width,o=a.minWidth,r=a.maxWidth,a.minWidth=a.maxWidth=a.width=s,s=n.width,a.width=i,a.minWidth=o,a.maxWidth=r)),void 0!==s?s+"":s}function R(e,t){return{get:function(){if(!e())return(this.get=t).apply(this,arguments);delete this.get}}}function N(e){return fe.cssProps[e]||ut[e]||(e in ct?e:ut[e]=function(e){for(var t=e[0].toUpperCase()+e.slice(1),n=lt.length;n--;)if((e=lt[n]+t)in ct)return e}(e)||e)}function L(e,t,n){var i=Oe.exec(t);return i?Math.max(0,i[2]-(n||0))+(i[3]||"px"):t}function M(e,t,n,i,o,r){var s="width"===t?1:0,a=0,l=0;if(n===(i?"border":"content"))return 0;for(;s<4;s+=2)"margin"===n&&(l+=fe.css(e,n+je[s],!0,o)),i?("content"===n&&(l-=fe.css(e,"padding"+je[s],!0,o)),"margin"!==n&&(l-=fe.css(e,"border"+je[s]+"Width",!0,o))):(l+=fe.css(e,"padding"+je[s],!0,o),"padding"!==n?l+=fe.css(e,"border"+je[s]+"Width",!0,o):a+=fe.css(e,"border"+je[s]+"Width",!0,o));return!i&&0<=r&&(l+=Math.max(0,Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-r-l-a-.5))||0),l}function O(e,t,n){var i=st(e),o=(!ce.boxSizingReliable()||n)&&"border-box"===fe.css(e,"boxSizing",!1,i),r=o,s=A(e,t,i),a="offset"+t[0].toUpperCase()+t.slice(1);
vendor: 4,141 bytes, line 1
1if(rt.test(s)){if(!n)return s;s="auto"}return(!ce.boxSizingReliable()&&o||"auto"===s||!parseFloat(s)&&"inline"===fe.css(e,"display",!1,i))&&e.getClientRects().length&&(o="border-box"===fe.css(e,"boxSizing",!1,i),(r=a in e)&&(s=e[a])),(s=parseFloat(s)||0)+M(e,t,n||(o?"border":"content"),r,i,s)+"px"}function j(e,t,n,i,o){return new j.prototype.init(e,t,n,i,o)}function H(){gt&&(!1===Z.hidden&&e.requestAnimationFrame?e.requestAnimationFrame(H):e.setTimeout(H,fe.fx.interval),fe.fx.tick())}function F(){return e.setTimeout(function(){mt=void 0}),mt=Date.now()}function B(e,t){var n,i=0,o={height:e};for(t=t?1:0;i<4;i+=2-t)o["margin"+(n=je[i])]=o["padding"+n]=e;return t&&(o.opacity=o.width=e),o}function z(e,t,n){for(var i,o=(q.tweeners[t]||[]).concat(q.tweeners["*"]),r=0,s=o.length;r<s;r++)if(i=o[r].call(n,t,e))return i}function q(e,t,n){var i,o,r=0,s=q.prefilters.length,a=fe.Deferred().always(function(){delete l.elem}),l=function(){if(o)return!1;for(var t=mt||F(),n=Math.max(0,c.startTime+c.duration-t),i=1-(n/c.duration||0),r=0,s=c.tweens.length;r<s;r++)c.tweens[r].run(i);return a.notifyWith(e,[c,i,n]),i<1&&s?n:(s||a.notifyWith(e,[c,1,0]),a.resolveWith(e,[c]),!1)},c=a.promise({elem:e,props:fe.extend({},t),opts:fe.extend(!0,{specialEasing:{},easing:fe.easing._default},n),originalProperties:t,originalOptions:n,startTime:mt||F(),duration:n.duration,tweens:[],createTween:function(t,n){var i=fe.Tween(e,c.opts,t,n,c.opts.specialEasing[t]||c.opts.easing);return c.tweens.push(i),i},stop:function(t){var n=0,i=t?c.tweens.length:0;if(o)return this;for(o=!0;n<i;n++)c.tweens[n].run(1);return t?(a.notifyWith(e,[c,1,0]),a.resolveWith(e,[c,t])):a.rejectWith(e,[c,t]),this}}),u=c.props;for((!function(e,t){var n,i,o,r,s;for(n in e)if(o=t[i=p(n)],r=e[n],Array.isArray(r)&&(o=r[1],r=e[n]=r[0]),n!==i&&(e[i]=r,delete e[n]),(s=fe.cssHooks[i])&&"expand"in s)for(n in r=s.expand(r),delete e[i],r)n in e||(e[n]=r[n],t[n]=o);else t[i]=o}(u,c.opts.specialEasing));r<s;r++)if(i=q.prefilters[r].call(c,e,u,c.opts))return ue(i.stop)&&(fe._queueHooks(c.elem,c.opts.queue).stop=i.stop.bind(i)),i;return fe.map(u,z,c),ue(c.opts.start)&&c.opts.start.call(e,c),c.progress(c.opts.progress).done(c.opts.done,c.opts.complete).fail(c.opts.fail).always(c.opts.always),fe.fx.timer(fe.extend(l,{elem:e,anim:c,queue:c.opts.queue})),c}function U(e){return(e.match(Se)||[]).join(" ")}function W(e){return e.getAttribute&&e.getAttribute("class")||""}function V(e){return Array.isArray(e)?e:"string"==typeof e&&e.match(Se)||[]}function K(e,t,n,o){var r;if(Array.isArray(t))fe.each(t,function(t,i){n||Dt.test(e)?o(e,i):K(e+"["+("object"==typeof i&&null!=i?t:"")+"]",i,n,o)});else if(n||"object"!==i(t))o(e,t);else for(r in t)K(e+"["+r+"]",t[r],n,o)}function G(e){return function(t,n){"string"!=typeof t&&(n=t,t="*");var i,o=0,r=t.toLowerCase().match(Se)||[];if(ue(n))for(;i=r[o++];)"+"===i[0]?(i=i.slice(1)||"*",(e[i]=e[i]||[]).unshift(n)):(e[i]=e[i]||[]).push(n)}}function Y(e,t,n,i){function o(a){var l;return r[a]=!0,fe.each(e[a]||[],function(e,a){var c=a(t,n,i);return"string"!=typeof c||s||r[c]?s?!(l=c):void 0:(t.dataTypes.unshift(c),o(c),!1)}),l}var r={},s=e===zt;return o(t.dataTypes[0])||!r["*"]&&o("*")}function Q(e,t){var n,i,o=fe.ajaxSettings.flatOptions||{};for(n in t)void 0!==t[n]&&((o[n]?e:i||(i={}))[n]=t[n]);return i&&fe.extend(!0,e,i),e}var X=[],Z=e.document,J=Object.getPrototypeOf,ee=X.slice,te=X.concat,ne=X.push,ie=X.indexOf,oe={},re=oe.toString,se=oe.hasOwnProperty,ae=se.toString,le=ae.call(Object),ce={},ue=function(e){return"function"==typeof e&&"number"!=typeof e.nodeType},de=function(e){return null!=e&&e===e.window},he={type:!0,src:!0,nonce:!0,noModule:!0},pe="3.4.1",fe=function(e,t){return new fe.fn.init(e,t)},me=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;fe.fn=fe.prototype={jquery:pe,constructor:fe,length:0,toArray:function(){return ee.call(this)},get:function(e){return null==e?ee.call(this):e<0?this[e+this.length]:this[e]},pushStack:function(e){var t=fe.merge(this.constructor(),e);return t.prevObject=this,t},each:function(e){return fe.each(this,e)},map:function(e){return this.pushStack(fe.map(this,function(t,n){return e.call(t,n,t)}
vendor: 4,916 bytes, line 1
1))},slice:function(){return this.pushStack(ee.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(e){var t=this.length,n=+e+(e<0?t:0);return this.pushStack(0<=n&&n<t?[this[n]]:[])},end:function(){return this.prevObject||this.constructor()},push:ne,sort:X.sort,splice:X.splice},fe.extend=fe.fn.extend=function(){var e,t,n,i,o,r,s=arguments[0]||{},a=1,l=arguments.length,c=!1;for("boolean"==typeof s&&(c=s,s=arguments[a]||{},a++),"object"==typeof s||ue(s)||(s={}),a===l&&(s=this,a--);a<l;a++)if(null!=(e=arguments[a]))for(t in e)i=e[t],"__proto__"!==t&&s!==i&&(c&&i&&(fe.isPlainObject(i)||(o=Array.isArray(i)))?(n=s[t],r=o&&!Array.isArray(n)?[]:o||fe.isPlainObject(n)?n:{},o=!1,s[t]=fe.extend(c,r,i)):void 0!==i&&(s[t]=i));return s},fe.extend({expando:"jQuery"+(pe+Math.random()).replace(/\D/g,""),isReady:!0,error:function(e){throw new Error(e)},noop:function(){},isPlainObject:function(e){var t,n;return!(!e||"[object Object]"!==re.call(e)||(t=J(e))&&("function"!=typeof(n=se.call(t,"constructor")&&t.constructor)||ae.call(n)!==le))},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},globalEval:function(e,t){n(e,{nonce:t&&t.nonce})},each:function(e,t){var n,i=0;if(o(e))for(n=e.length;i<n&&!1!==t.call(e[i],i,e[i]);i++);else for(i in e)if(!1===t.call(e[i],i,e[i]))break;return e},trim:function(e){return null==e?"":(e+"").replace(me,"")},makeArray:function(e,t){var n=t||[];return null!=e&&(o(Object(e))?fe.merge(n,"string"==typeof e?[e]:e):ne.call(n,e)),n},inArray:function(e,t,n){return null==t?-1:ie.call(t,e,n)},merge:function(e,t){for(var n=+t.length,i=0,o=e.length;i<n;i++)e[o++]=t[i];return e.length=o,e},grep:function(e,t,n){for(var i=[],o=0,r=e.length,s=!n;o<r;o++)!t(e[o],o)!==s&&i.push(e[o]);return i},map:function(e,t,n){var i,r,s=0,a=[];if(o(e))for(i=e.length;s<i;s++)null!=(r=t(e[s],s,n))&&a.push(r);else for(s in e)null!=(r=t(e[s],s,n))&&a.push(r);return te.apply([],a)},guid:1,support:ce}),"function"==typeof Symbol&&(fe.fn[Symbol.iterator]=X[Symbol.iterator]),fe.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(e,t){oe["[object "+t+"]"]=t.toLowerCase()});var ge=function(e){function t(e,t,n,i){var o,r,s,a,l,u,h,p=t&&t.ownerDocument,f=t?t.nodeType:9;if(n=n||[],"string"!=typeof e||!e||1!==f&&9!==f&&11!==f)return n;if(!i&&((t?t.ownerDocument||t:O)!==I&&$(t),t=t||I,D)){if(11!==f&&(l=me.exec(e)))if(o=l[1]){if(9===f){if(!(s=t.getElementById(o)))return n;if(s.id===o)return n.push(s),n}else if(p&&(s=p.getElementById(o))&&L(t,s)&&s.id===o)return n.push(s),n}else{if(l[2])return Y.apply(n,t.getElementsByTagName(e)),n;if((o=l[3])&&y.getElementsByClassName&&t.getElementsByClassName)return Y.apply(n,t.getElementsByClassName(o)),n}if(y.qsa&&!q[e+" "]&&(!A||!A.test(e))&&(1!==f||"object"!==t.nodeName.toLowerCase())){if(h=e,p=t,1===f&&ae.test(e)){for((a=t.getAttribute("id"))?a=a.replace(be,we):t.setAttribute("id",a=M),r=(u=C(e)).length;r--;)u[r]="#"+a+" "+d(u[r]);h=u.join(","),p=ge.test(e)&&c(t.parentNode)||t}try{return Y.apply(n,p.querySelectorAll(h)),n}catch(t){q(e,!0)}finally{a===M&&t.removeAttribute("id")}}}return _(e.replace(oe,"$1"),t,n,i)}function n(){var e=[];return function t(n,i){return e.push(n+" ")>b.cacheLength&&delete t[e.shift()],t[n+" "]=i}}function i(e){return e[M]=!0,e}function o(e){var t=I.createElement("fieldset");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function r(e,t){for(var n=e.split("|"),i=n.length;i--;)b.attrHandle[n[i]]=t}function s(e,t){var n=t&&e,i=n&&1===e.nodeType&&1===t.nodeType&&e.sourceIndex-t.sourceIndex;if(i)return i;if(n)for(;n=n.nextSibling;)if(n===t)return-1;return e?1:-1}function a(e){return function(t){return"form"in t?t.parentNode&&!1===t.disabled?"label"in t?"label"in t.parentNode?t.parentNode.disabled===e:t.disabled===e:t.isDisabled===e||t.isDisabled!==!e&&Ce(t)===e:t.disabled===e:"label"in t&&t.disabled===e}}function l(e){return i(function(t){return t=+t,i(function(n,i){for(var o,r=e([],n.length,t),s=r.length;s--;)n[o=r[s]]&&(n[o]=!(i[o]=n[o]))})})}function c(e){return e&&void 0!==e.getElementsByTagName&&e}function u(){}function d(e){for(var t=0,n=e.length,i="";t<n;t++)i+=e[t].value;return i}function h(e,t,n){var i=t.dir,o=t.next,r=o||i,s=n&&"parentNode"===r,a=H++;return t.first?function(t,n,o){for(;t=t[i];)if(1===t.nodeType||s)return e(t,n,o);return!1}:function(t,n,l){var c,u,d,h=[j,a];if(l){for(;t=t[i];)if((1===t.nodeType||s)&&e(t,n,l))return!0}else for(;t=t[i];)if(1===t.nodeType||s)if(u=(d=t[M]||(t[M]={}))[t.uniqueID]||(d[t.uniqueID]={}),o&&o===t.nodeName.toLowerCase())t=t[i]||t;else{if((c=u[r])&&c[0]===j&&c[1]===a)return h[2]=c[2];if((u[r]=h)[2]=e(t,n,l))return!0}return!1}}function p(e){return 1<e.length?function(t,n,i){for(var o=e.length;o--;)if(!e[o](t,n,i))return!1;return!0}:e[0]}function f(e,t,n,i,o){for(var r,s=[],a=0,l=e.length,c=null!=t;a<l;
vendor: 9,775 bytes, line 1
1a++)(r=e[a])&&(n&&!n(r,i,o)||(s.push(r),c&&t.push(a)));return s}function m(e,n,o,r,s,a){return r&&!r[M]&&(r=m(r)),s&&!s[M]&&(s=m(s,a)),i(function(i,a,l,c){var u,d,h,p=[],m=[],g=a.length,v=i||function(e,n,i){for(var o=0,r=n.length;o<r;o++)t(e,n[o],i);return i}(n||"*",l.nodeType?[l]:l,[]),y=!e||!i&&n?v:f(v,p,e,l,c),b=o?s||(i?e:g||r)?[]:a:y;if(o&&o(y,b,l,c),r)for(u=f(b,m),r(u,[],l,c),d=u.length;d--;)(h=u[d])&&(b[m[d]]=!(y[m[d]]=h));if(i){if(s||e){if(s){for(u=[],d=b.length;d--;)(h=b[d])&&u.push(y[d]=h);s(null,b=[],u,c)}for(d=b.length;d--;)(h=b[d])&&-1<(u=s?X(i,h):p[d])&&(i[u]=!(a[u]=h))}}else b=f(b===a?b.splice(g,b.length):b),s?s(null,a,b,c):Y.apply(a,b)})}function g(e){for(var t,n,i,o=e.length,r=b.relative[e[0].type],s=r||b.relative[" "],a=r?1:0,l=h(function(e){return e===t},s,!0),c=h(function(e){return-1<X(t,e)},s,!0),u=[function(e,n,i){var o=!r&&(i||n!==S)||((t=n).nodeType?l(e,n,i):c(e,n,i));return t=null,o}];a<o;a++)if(n=b.relative[e[a].type])u=[h(p(u),n)];else{if((n=b.filter[e[a].type].apply(null,e[a].matches))[M]){for(i=++a;i<o&&!b.relative[e[i].type];i++);return m(1<a&&p(u),1<a&&d(e.slice(0,a-1).concat({value:" "===e[a-2].type?"*":""})).replace(oe,"$1"),n,a<i&&g(e.slice(a,i)),i<o&&g(e=e.slice(i)),i<o&&d(e))}u.push(n)}return p(u)}var v,y,b,w,k,C,x,_,S,T,E,$,I,P,D,A,R,N,L,M="sizzle"+1*new Date,O=e.document,j=0,H=0,F=n(),B=n(),z=n(),q=n(),U=function(e,t){return e===t&&(E=!0),0},W={}.hasOwnProperty,V=[],K=V.pop,G=V.push,Y=V.push,Q=V.slice,X=function(e,t){for(var n=0,i=e.length;n<i;n++)if(e[n]===t)return n;return-1},Z="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",J="[\\x20\\t\\r\\n\\f]",ee="(?:\\\\.|[\\w-]|[^\0-\\xa0])+",te="\\["+J+"*("+ee+")(?:"+J+"*([*^$|!~]?=)"+J+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+ee+"))|)"+J+"*\\]",ne=":("+ee+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+te+")*)|.*)\\)|)",ie=new RegExp(J+"+","g"),oe=new RegExp("^"+J+"+|((?:^|[^\\\\])(?:\\\\.)*)"+J+"+$","g"),re=new RegExp("^"+J+"*,"+J+"*"),se=new RegExp("^"+J+"*([>+~]|"+J+")"+J+"*"),ae=new RegExp(J+"|>"),le=new RegExp(ne),ce=new RegExp("^"+ee+"$"),ue={ID:new RegExp("^#("+ee+")"),CLASS:new RegExp("^\\.("+ee+")"),TAG:new RegExp("^("+ee+"|[*])"),ATTR:new RegExp("^"+te),PSEUDO:new RegExp("^"+ne),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+J+"*(even|odd|(([+-]|)(\\d*)n|)"+J+"*(?:([+-]|)"+J+"*(\\d+)|))"+J+"*\\)|)","i"),bool:new RegExp("^(?:"+Z+")$","i"),needsContext:new RegExp("^"+J+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+J+"*((?:-\\d)?\\d*)"+J+"*\\)|)(?=[^-]|$)","i")},de=/HTML$/i,he=/^(?:input|select|textarea|button)$/i,pe=/^h\d$/i,fe=/^[^{]+\{\s*\[native \w/,me=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ge=/[+~]/,ve=new RegExp("\\\\([\\da-f]{1,6}"+J+"?|("+J+")|.)","ig"),ye=function(e,t,n){var i="0x"+t-65536;return i!=i||n?t:i<0?String.fromCharCode(i+65536):String.fromCharCode(i>>10|55296,1023&i|56320)},be=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,we=function(e,t){return t?"\0"===e?"�":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e},ke=function(){$()},Ce=h(function(e){return!0===e.disabled&&"fieldset"===e.nodeName.toLowerCase()},{dir:"parentNode",next:"legend"});try{Y.apply(V=Q.call(O.childNodes),O.childNodes),V[O.childNodes.length].nodeType}catch(v){Y={apply:V.length?function(e,t){G.apply(e,Q.call(t))}:function(e,t){for(var n=e.length,i=0;e[n++]=t[i++];);e.length=n-1}}}for(v in y=t.support={},k=t.isXML=function(e){var t=e.namespaceURI,n=(e.ownerDocument||e).documentElement;return!de.test(t||n&&n.nodeName||"HTML")},$=t.setDocument=function(e){var t,n,i=e?e.ownerDocument||e:O;return i!==I&&9===i.nodeType&&i.documentElement&&(P=(I=i).documentElement,D=!k(I),O!==I&&(n=I.defaultView)&&n.top!==n&&(n.addEventListener?n.addEventListener("unload",ke,!1):n.attachEvent&&n.attachEvent("onunload",ke)),y.attributes=o(function(e){return e.className="i",!e.getAttribute("className")}),y.getElementsByTagName=o(function(e){return e.appendChild(I.createComment("")),!e.getElementsByTagName("*").length}),y.getElementsByClassName=fe.test(I.getElementsByClassName),y.getById=o(function(e){return P.appendChild(e).id=M,!I.getElementsByName||!I.getElementsByName(M).length}),y.getById?(b.filter.ID=function(e){var t=e.replace(ve,ye);return function(e){return e.getAttribute("id")===t}},b.find.ID=function(e,t){if(void 0!==t.getElementById&&D){var n=t.getElementById(e);return n?[n]:[]}}):(b.filter.ID=function(e){var t=e.replace(ve,ye);return function(e){var n=void 0!==e.getAttributeNode&&e.getAttributeNode("id");return n&&n.value===t}},b.find.ID=function(e,t){if(void 0!==t.getElementById&&D){var n,i,o,r=t.getElementById(e);if(r){if((n=r.getAttributeNode("id"))&&n.value===e)return[r];for(o=t.getElementsByName(e),i=0;r=o[i++];)if((n=r.getAttributeNode("id"))&&n.value===e)return[r]}return[]}}),b.find.TAG=y.getElementsByTagName?function(e,t){return void 0!==t.getElementsByTagName?t.getElementsByTagName(e):y.qsa?t.querySelectorAll(e):void 0}:function(e,t){var n,i=[],o=0,r=t.getElementsByTagName(e);if("*"===e){for(;n=r[o++];)1===n.nodeType&&i.push(n);return i}return r},b.find.CLASS=y.getElementsByClassName&&function(e,t){if(void 0!==t.getElementsByClassName&&D)return t.getElementsByClassName(e)},R=[],A=[],(y.qsa=fe.test(I.querySelectorAll))&&(o(function(e){P.appendChild(e).innerHTML="<a id='"+M+"'></a><select id='"+M+"-\r\\' msallowcapture=''><option selected=''></option></select>",e.querySelectorAll("[msallowcapture^='']").length&&A.push("[*^$]="+J+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||A.push("\\["+J+"*(?:value|"+Z+")"),e.querySelectorAll("[id~="+M+"-]").length||A.push("~="),e.querySelectorAll(":checked").length||A.push(":checked"),e.querySelectorAll("a#"+M+"+*").length||A.push(".#.+[+~]")}),o(function(e){e.innerHTML="<a href='' disabled='disabled'></a><select disabled='disabled'><option/></select>";var t=I.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&A.push("name"+J+"*[*^$|!~]?="),2!==e.querySelectorAll(":enabled").length&&A.push(":enabled",":disabled"),P.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&A.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),A.push(",.*:")})),(y.matchesSelector=fe.test(N=P.matches||P.webkitMatchesSelector||P.mozMatchesSelector||P.oMatchesSelector||P.msMatchesSelector))&&o(function(e){y.disconnectedMatch=N.call(e,"*"),N.call(e,"[s!='']:x"),R.push("!=",ne)}),A=A.length&&new RegExp(A.join("|")),R=R.length&&new RegExp(R.join("|")),t=fe.test(P.compareDocumentPosition),L=t||fe.test(P.contains)?function(e,t){var n=9===e.nodeType?e.documentElement:e,i=t&&t.parentNode;return e===i||!(!i||1!==i.nodeType||!(n.contains?n.contains(i):e.compareDocumentPosition&&16&e.compareDocumentPosition(i)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},U=t?function(e,t){if(e===t)return E=!0,0;var n=!e.compareDocumentPosition-!t.compareDocumentPosition;return n||(1&(n=(e.ownerDocument||e)===(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!y.sortDetached&&t.compareDocumentPosition(e)===n?e===I||e.ownerDocument===O&&L(O,e)?-1:t===I||t.ownerDocument===O&&L(O,t)?1:T?X(T,e)-X(T,t):0:4&n?-1:1)}:function(e,t){if(e===t)return E=!0,0;var n,i=0,o=e.parentNode,r=t.parentNode,a=[e],l=[t];if(!o||!r)return e===I?-1:t===I?1:o?-1:r?1:T?X(T,e)-X(T,t):0;if(o===r)return s(e,t);for(n=e;n=n.parentNode;)a.unshift(n);for(n=t;n=n.parentNode;)l.unshift(n);for(;a[i]===l[i];)i++;return i?s(a[i],l[i]):a[i]===O?-1:l[i]===O?1:0}),I},t.matches=function(e,n){return t(e,null,null,n)},t.matchesSelector=function(e,n){if((e.ownerDocument||e)!==I&&$(e),y.matchesSelector&&D&&!q[n+" "]&&(!R||!R.test(n))&&(!A||!A.test(n)))try{var i=N.call(e,n);if(i||y.disconnectedMatch||e.document&&11!==e.document.nodeType)return i}catch(e){q(n,!0)}return 0<t(n,I,null,[e]).length},t.contains=function(e,t){return(e.ownerDocument||e)!==I&&$(e),L(e,t)},t.attr=function(e,t){(e.ownerDocument||e)!==I&&$(e);var n=b.attrHandle[t.toLowerCase()],i=n&&W.call(b.attrHandle,t.toLowerCase())?n(e,t,!D):void 0;return void 0!==i?i:y.attributes||!D?e.getAttribute(t):(i=e.getAttributeNode(t))&&i.specified?i.value:null},t.escape=function(e){return(e+"").replace(be,we)},t.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},t.uniqueSort=function(e){var t,n=[],i=0,o=0;if(E=!y.detectDuplicates,T=!y.sortStable&&e.slice(0),e.sort(U),E){for(;t=e[o++];)t===e[o]&&(i=n.push(o));for(;i--;)e.splice(n[i],1)}return T=null,e},w=t.getText=function(e){var t,n="",i=0,o=e.nodeType;if(o){if(1===o||9===o||11===o){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=w(e)}else if(3===o||4===o)return e.nodeValue}else for(;t=e[i++];)n+=w(t);return n},(b=t.selectors={cacheLength:50,createPseudo:i,match:ue,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(ve,ye),e[3]=(e[3]||e[4]||e[5]||"").replace(ve,ye),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||t.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&t.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return ue.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&le.test(n)&&(t=C(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(ve,ye).toLowerCase();return"*"===e?function(){return!0}
vendor: 24,031 bytes, lines 1-2
1:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=F[e+" "];return t||(t=new RegExp("(^|"+J+")"+e+"("+J+"|$)"))&&F(e,function(e){return t.test("string"==typeof e.className&&e.className||void 0!==e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(e,n,i){return function(o){var r=t.attr(o,e);return null==r?"!="===n:!n||(r+="", 2"="===n?r===i:"!="===n?r!==i:"^="===n?i&&0===r.indexOf(i):"*="===n?i&&-1<r.indexOf(i):"$="===n?i&&r.slice(-i.length)===i:"~="===n?-1<(" "+r.replace(ie," ")+" ").indexOf(i):"|="===n&&(r===i||r.slice(0,i.length+1)===i+"-"))}},CHILD:function(e,t,n,i,o){var r="nth"!==e.slice(0,3),s="last"!==e.slice(-4),a="of-type"===t;return 1===i&&0===o?function(e){return!!e.parentNode}:function(t,n,l){var c,u,d,h,p,f,m=r!==s?"nextSibling":"previousSibling",g=t.parentNode,v=a&&t.nodeName.toLowerCase(),y=!l&&!a,b=!1;if(g){if(r){for(;m;){for(h=t;h=h[m];)if(a?h.nodeName.toLowerCase()===v:1===h.nodeType)return!1;f=m="only"===e&&!f&&"nextSibling"}return!0}if(f=[s?g.firstChild:g.lastChild],s&&y){for(b=(p=(c=(u=(d=(h=g)[M]||(h[M]={}))[h.uniqueID]||(d[h.uniqueID]={}))[e]||[])[0]===j&&c[1])&&c[2],h=p&&g.childNodes[p];h=++p&&h&&h[m]||(b=p=0)||f.pop();)if(1===h.nodeType&&++b&&h===t){u[e]=[j,p,b];break}}else if(y&&(b=p=(c=(u=(d=(h=t)[M]||(h[M]={}))[h.uniqueID]||(d[h.uniqueID]={}))[e]||[])[0]===j&&c[1]),!1===b)for(;(h=++p&&h&&h[m]||(b=p=0)||f.pop())&&((a?h.nodeName.toLowerCase()!==v:1!==h.nodeType)||!++b||(y&&((u=(d=h[M]||(h[M]={}))[h.uniqueID]||(d[h.uniqueID]={}))[e]=[j,b]),h!==t)););return(b-=o)===i||b%i==0&&0<=b/i}}},PSEUDO:function(e,n){var o,r=b.pseudos[e]||b.setFilters[e.toLowerCase()]||t.error("unsupported pseudo: "+e);return r[M]?r(n):1<r.length?(o=[e,e,"",n],b.setFilters.hasOwnProperty(e.toLowerCase())?i(function(e,t){for(var i,o=r(e,n),s=o.length;s--;)e[i=X(e,o[s])]=!(t[i]=o[s])}):function(e){return r(e,0,o)}):r}},pseudos:{not:i(function(e){var t=[],n=[],o=x(e.replace(oe,"$1"));return o[M]?i(function(e,t,n,i){for(var r,s=o(e,null,i,[]),a=e.length;a--;)(r=s[a])&&(e[a]=!(t[a]=r))}):function(e,i,r){return t[0]=e,o(t,null,r,n),t[0]=null,!n.pop()}}),has:i(function(e){return function(n){return 0<t(e,n).length}}),contains:i(function(e){return e=e.replace(ve,ye),function(t){return-1<(t.textContent||w(t)).indexOf(e)}}),lang:i(function(e){return ce.test(e||"")||t.error("unsupported lang: "+e),e=e.replace(ve,ye).toLowerCase(),function(t){var n;do{if(n=D?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return(n=n.toLowerCase())===e||0===n.indexOf(e+"-")}while((t=t.parentNode)&&1===t.nodeType);return!1}}),target:function(t){var n=e.location&&e.location.hash;return n&&n.slice(1)===t.id},root:function(e){return e===P},focus:function(e){return e===I.activeElement&&(!I.hasFocus||I.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:a(!1),disabled:a(!0),checked:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&!!e.checked||"option"===t&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,!0===e.selected},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!b.pseudos.empty(e)},header:function(e){return pe.test(e.nodeName)},input:function(e){return he.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},text:function(e){var t;return"input"===e.nodeName.toLowerCase()&&"text"===e.type&&(null==(t=e.getAttribute("type"))||"text"===t.toLowerCase())},first:l(function(){return[0]}),last:l(function(e,t){return[t-1]}),eq:l(function(e,t,n){return[n<0?n+t:n]}),even:l(function(e,t){for(var n=0;n<t;n+=2)e.push(n);return e}),odd:l(function(e,t){for(var n=1;n<t;n+=2)e.push(n);return e}),lt:l(function(e,t,n){for(var i=n<0?n+t:t<n?t:n;0<=--i;)e.push(i);return e}),gt:l(function(e,t,n){for(var i=n<0?n+t:n;++i<t;)e.push(i);return e})}}).pseudos.nth=b.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})b.pseudos[v]=function(e){return function(t){return"input"===t.nodeName.toLowerCase()&&t.type===e}}(v);for(v in{submit:!0,reset:!0})b.pseudos[v]=function(e){return function(t){var n=t.nodeName.toLowerCase();return("input"===n||"button"===n)&&t.type===e}}(v);return u.prototype=b.filters=b.pseudos,b.setFilters=new u,C=t.tokenize=function(e,n){var i,o,r,s,a,l,c,u=B[e+" "];if(u)return n?0:u.slice(0);for(a=e,l=[],c=b.preFilter;a;){for(s in i&&!(o=re.exec(a))||(o&&(a=a.slice(o[0].length)||a),l.push(r=[])),i=!1,(o=se.exec(a))&&(i=o.shift(),r.push({value:i,type:o[0].replace(oe," ")}),a=a.slice(i.length)),b.filter)!(o=ue[s].exec(a))||c[s]&&!(o=c[s](o))||(i=o.shift(),r.push({value:i,type:s,matches:o}),a=a.slice(i.length));if(!i)break}return n?a.length:a?t.error(e):B(e,l).slice(0)},x=t.compile=function(e,n){var o,r,s,a,l,c,u=[],d=[],h=z[e+" "];if(!h){for(n||(n=C(e)),o=n.length;o--;)(h=g(n[o]))[M]?u.push(h):d.push(h);(h=z(e,(r=d,a=0<(s=u).length,l=0<r.length,c=function(e,n,i,o,c){var u,d,h,p=0,m="0",g=e&&[],v=[],y=S,w=e||l&&b.find.TAG("*",c),k=j+=null==y?1:Math.random()||.1,C=w.length;for(c&&(S=n===I||n||c);m!==C&&null!=(u=w[m]);m++){if(l&&u){for(d=0,n||u.ownerDocument===I||($(u),i=!D);h=r[d++];)if(h(u,n||I,i)){o.push(u);break}c&&(j=k)}a&&((u=!h&&u)&&p--,e&&g.push(u))}if(p+=m,a&&m!==p){for(d=0;h=s[d++];)h(g,v,n,i);if(e){if(0<p)for(;m--;)g[m]||v[m]||(v[m]=K.call(o));v=f(v)}Y.apply(o,v),c&&!e&&0<v.length&&1<p+s.length&&t.uniqueSort(o)}return c&&(j=k,S=y),g},a?i(c):c))).selector=e}return h},_=t.select=function(e,t,n,i){var o,r,s,a,l,u="function"==typeof e&&e,h=!i&&C(e=u.selector||e);if(n=n||[],1===h.length){if(2<(r=h[0]=h[0].slice(0)).length&&"ID"===(s=r[0]).type&&9===t.nodeType&&D&&b.relative[r[1].type]){if(!(t=(b.find.ID(s.matches[0].replace(ve,ye),t)||[])[0]))return n;u&&(t=t.parentNode),e=e.slice(r.shift().value.length)}for(o=ue.needsContext.test(e)?0:r.length;o--&&(s=r[o],!b.relative[a=s.type]);)if((l=b.find[a])&&(i=l(s.matches[0].replace(ve,ye),ge.test(r[0].type)&&c(t.parentNode)||t))){if(r.splice(o,1),!(e=i.length&&d(r)))return Y.apply(n,i),n;break}}return(u||x(e,h))(i,t,!D,n,!t||ge.test(e)&&c(t.parentNode)||t),n},y.sortStable=M.split("").sort(U).join("")===M,y.detectDuplicates=!!E,$(),y.sortDetached=o(function(e){return 1&e.compareDocumentPosition(I.createElement("fieldset"))}),o(function(e){return e.innerHTML="<a href='#'></a>","#"===e.firstChild.getAttribute("href")})||r("type|href|height|width",function(e,t,n){if(!n)return e.getAttribute(t,"type"===t.toLowerCase()?1:2)}),y.attributes&&o(function(e){return e.innerHTML="<input/>",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")})||r("value",function(e,t,n){if(!n&&"input"===e.nodeName.toLowerCase())return e.defaultValue}),o(function(e){return null==e.getAttribute("disabled")})||r(Z,function(e,t,n){var i;if(!n)return!0===e[t]?t.toLowerCase():(i=e.getAttributeNode(t))&&i.specified?i.value:null}),t}(e);fe.find=ge,fe.expr=ge.selectors,fe.expr[":"]=fe.expr.pseudos,fe.uniqueSort=fe.unique=ge.uniqueSort,fe.text=ge.getText,fe.isXMLDoc=ge.isXML,fe.contains=ge.contains,fe.escapeSelector=ge.escape;var ve=function(e,t,n){for(var i=[],o=void 0!==n;(e=e[t])&&9!==e.nodeType;)if(1===e.nodeType){if(o&&fe(e).is(n))break;i.push(e)}return i},ye=function(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n},be=fe.expr.match.needsContext,we=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;fe.filter=function(e,t,n){var i=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===i.nodeType?fe.find.matchesSelector(i,e)?[i]:[]:fe.find.matches(e,fe.grep(t,function(e){return 1===e.nodeType}))},fe.fn.extend({find:function(e){var t,n,i=this.length,o=this;if("string"!=typeof e)return this.pushStack(fe(e).filter(function(){for(t=0;t<i;t++)if(fe.contains(o[t],this))return!0}));for(n=this.pushStack([]),t=0;t<i;t++)fe.find(e,o[t],n);return 1<i?fe.uniqueSort(n):n},filter:function(e){return this.pushStack(s(this,e||[],!1))},not:function(e){return this.pushStack(s(this,e||[],!0))},is:function(e){return!!s(this,"string"==typeof e&&be.test(e)?fe(e):e||[],!1).length}});var ke,Ce=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(fe.fn.init=function(e,t,n){var i,o;if(!e)return this;if(n=n||ke,"string"==typeof e){if(!(i="<"===e[0]&&">"===e[e.length-1]&&3<=e.length?[null,e,null]:Ce.exec(e))||!i[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(i[1]){if(t=t instanceof fe?t[0]:t,fe.merge(this,fe.parseHTML(i[1],t&&t.nodeType?t.ownerDocument||t:Z,!0)),we.test(i[1])&&fe.isPlainObject(t))for(i in t)ue(this[i])?this[i](t[i]):this.attr(i,t[i]);return this}return(o=Z.getElementById(i[2]))&&(this[0]=o,this.length=1),this}return e.nodeType?(this[0]=e,this.length=1,this):ue(e)?void 0!==n.ready?n.ready(e):e(fe):fe.makeArray(e,this)}).prototype=fe.fn,ke=fe(Z);var xe=/^(?:parents|prev(?:Until|All))/,_e={children:!0,contents:!0,next:!0,prev:!0};fe.fn.extend({has:function(e){var t=fe(e,this),n=t.length;return this.filter(function(){for(var e=0;e<n;e++)if(fe.contains(this,t[e]))return!0})},closest:function(e,t){var n,i=0,o=this.length,r=[],s="string"!=typeof e&&fe(e);if(!be.test(e))for(;i<o;i++)for(n=this[i];n&&n!==t;n=n.parentNode)if(n.nodeType<11&&(s?-1<s.index(n):1===n.nodeType&&fe.find.matchesSelector(n,e))){r.push(n);break}return this.pushStack(1<r.length?fe.uniqueSort(r):r)},index:function(e){return e?"string"==typeof e?ie.call(fe(e),this[0]):ie.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(fe.uniqueSort(fe.merge(this.get(),fe(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),fe.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return ve(e,"parentNode")},parentsUntil:function(e,t,n){return ve(e,"parentNode",n)},next:function(e){return a(e,"nextSibling")},prev:function(e){return a(e,"previousSibling")},nextAll:function(e){return ve(e,"nextSibling")},prevAll:function(e){return ve(e,"previousSibling")},nextUntil:function(e,t,n){return ve(e,"nextSibling",n)},prevUntil:function(e,t,n){return ve(e,"previousSibling",n)},siblings:function(e){return ye((e.parentNode||{}).firstChild,e)},children:function(e){return ye(e.firstChild)},contents:function(e){return void 0!==e.contentDocument?e.contentDocument:(r(e,"template")&&(e=e.content||e),fe.merge([],e.childNodes))}},function(e,t){fe.fn[e]=function(n,i){var o=fe.map(this,t,n);return"Until"!==e.slice(-5)&&(i=n),i&&"string"==typeof i&&(o=fe.filter(i,o)),1<this.length&&(_e[e]||fe.uniqueSort(o),xe.test(e)&&o.reverse()),this.pushStack(o)}});var Se=/[^\x20\t\r\n\f]+/g;fe.Callbacks=function(e){var t,n;e="string"==typeof e?(t=e,n={},fe.each(t.match(Se)||[],function(e,t){n[t]=!0}),n):fe.extend({},e);var o,r,s,a,l=[],c=[],u=-1,d=function(){for(a=a||e.once,s=o=!0;c.length;u=-1)for(r=c.shift();++u<l.length;)!1===l[u].apply(r[0],r[1])&&e.stopOnFalse&&(u=l.length,r=!1);e.memory||(r=!1),o=!1,a&&(l=r?[]:"")},h={add:function(){return l&&(r&&!o&&(u=l.length-1,c.push(r)),function t(n){fe.each(n,function(n,o){ue(o)?e.unique&&h.has(o)||l.push(o):o&&o.length&&"string"!==i(o)&&t(o)})}(arguments),r&&!o&&d()),this},remove:function(){return fe.each(arguments,function(e,t){for(var n;-1<(n=fe.inArray(t,l,n));)l.splice(n,1),n<=u&&u--}),this},has:function(e){return e?-1<fe.inArray(e,l):0<l.length},empty:function(){return l&&(l=[]),this},disable:function(){return a=c=[],l=r="",this},disabled:function(){return!l},lock:function(){return a=c=[],r||o||(l=r=""),this},locked:function(){return!!a},fireWith:function(e,t){return a||(t=[e,(t=t||[]).slice?t.slice():t],c.push(t),o||d()),this},fire:function(){return h.fireWith(this,arguments),this},fired:function(){return!!s}};return h},fe.extend({Deferred:function(t){var n=[["notify","progress",fe.Callbacks("memory"),fe.Callbacks("memory"),2],["resolve","done",fe.Callbacks("once memory"),fe.Callbacks("once memory"),0,"resolved"],["reject","fail",fe.Callbacks("once memory"),fe.Callbacks("once memory"),1,"rejected"]],i="pending",o={state:function(){return i},always:function(){return r.done(arguments).fail(arguments),this},catch:function(e){return o.then(null,e)},pipe:function(){var e=arguments;return fe.Deferred(function(t){fe.each(n,function(n,i){var o=ue(e[i[4]])&&e[i[4]];r[i[1]](function(){var e=o&&o.apply(this,arguments);e&&ue(e.promise)?e.promise().progress(t.notify).done(t.resolve).fail(t.reject):t[i[0]+"With"](this,o?[e]:arguments)})}),e=null}).promise()},then:function(t,i,o){function r(t,n,i,o){return function(){var a=this,u=arguments,d=function(){var e,d;if(!(t<s)){if((e=i.apply(a,u))===n.promise())throw new TypeError("Thenable self-resolution");d=e&&("object"==typeof e||"function"==typeof e)&&e.then,ue(d)?o?d.call(e,r(s,n,l,o),r(s,n,c,o)):(s++,d.call(e,r(s,n,l,o),r(s,n,c,o),r(s,n,l,n.notifyWith))):(i!==l&&(a=void 0,u=[e]),(o||n.resolveWith)(a,u))}},h=o?d:function(){try{d()}catch(e){fe.Deferred.exceptionHook&&fe.Deferred.exceptionHook(e,h.stackTrace),s<=t+1&&(i!==c&&(a=void 0,u=[e]),n.rejectWith(a,u))}};t?h():(fe.Deferred.getStackHook&&(h.stackTrace=fe.Deferred.getStackHook()),e.setTimeout(h))}}var s=0;return fe.Deferred(function(e){n[0][3].add(r(0,e,ue(o)?o:l,e.notifyWith)),n[1][3].add(r(0,e,ue(t)?t:l)),n[2][3].add(r(0,e,ue(i)?i:c))}).promise()},promise:function(e){return null!=e?fe.extend(e,o):o}},r={};return fe.each(n,function(e,t){var s=t[2],a=t[5];o[t[1]]=s.add,a&&s.add(function(){i=a},n[3-e][2].disable,n[3-e][3].disable,n[0][2].lock,n[0][3].lock),s.add(t[3].fire),r[t[0]]=function(){return r[t[0]+"With"](this===r?void 0:this,arguments),this},r[t[0]+"With"]=s.fireWith}),o.promise(r),t&&t.call(r,r),r},when:function(e){var t=arguments.length,n=t,i=Array(n),o=ee.call(arguments),r=fe.Deferred(),s=function(e){return function(n){i[e]=this,o[e]=1<arguments.length?ee.call(arguments):n,--t||r.resolveWith(i,o)}};if(t<=1&&(u(e,r.done(s(n)).resolve,r.reject,!t),"pending"===r.state()||ue(o[n]&&o[n].then)))return r.then();for(;n--;)u(o[n],s(n),r.reject);return r.promise()}});var Te=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;fe.Deferred.exceptionHook=function(t,n){e.console&&e.console.warn&&t&&Te.test(t.name)&&e.console.warn("jQuery.Deferred exception: "+t.message,t.stack,n)},fe.readyException=function(t){e.setTimeout(function(){throw t})};var Ee=fe.Deferred();fe.fn.ready=function(e){return Ee.then(e).catch(function(e){fe.readyException(e)}),this},fe.extend({isReady:!1,readyWait:1,ready:function(e){(!0===e?--fe.readyWait:fe.isReady)||(fe.isReady=!0)!==e&&0<--fe.readyWait||Ee.resolveWith(Z,[fe])}}),fe.ready.then=Ee.then,"complete"===Z.readyState||"loading"!==Z.readyState&&!Z.documentElement.doScroll?e.setTimeout(fe.ready):(Z.addEventListener("DOMContentLoaded",d),e.addEventListener("load",d));var $e=function(e,t,n,o,r,s,a){var l=0,c=e.length,u=null==n;if("object"===i(n))for(l in r=!0,n)$e(e,t,l,n[l],!0,s,a);else if(void 0!==o&&(r=!0,ue(o)||(a=!0),u&&(a?(t.call(e,o),t=null):(u=t,t=function(e,t,n){return u.call(fe(e),n)})),t))for(;l<c;l++)t(e[l],n,a?o:o.call(e[l],l,t(e[l],n)));return r?e:u?t.call(e):c?t(e[0],n):s},Ie=/^-ms-/,Pe=/-([a-z])/g,De=function(e){return 1===e.nodeType||9===e.nodeType||!+e.nodeType};f.uid=1,f.prototype={cache:function(e){var t=e[this.expando];return t||(t={},De(e)&&(e.nodeType?e[this.expando]=t:Object.defineProperty(e,this.expando,{value:t,configurable:!0}))),t},set:function(e,t,n){var i,o=this.cache(e);if("string"==typeof t)o[p(t)]=n;else for(i in t)o[p(i)]=t[i];return o},get:function(e,t){return void 0===t?this.cache(e):e[this.expando]&&e[this.expando][p(t)]},access:function(e,t,n){return void 0===t||t&&"string"==typeof t&&void 0===n?this.get(e,t):(this.set(e,t,n),void 0!==n?n:t)},remove:function(e,t){var n,i=e[this.expando];if(void 0!==i){if(void 0!==t){n=(t=Array.isArray(t)?t.map(p):(t=p(t))in i?[t]:t.match(Se)||[]).length;for(;n--;)delete i[t[n]]}(void 0===t||fe.isEmptyObject(i))&&(e.nodeType?e[this.expando]=void 0:delete e[this.expando])}},hasData:function(e){var t=e[this.expando];return void 0!==t&&!fe.isEmptyObject(t)}};var Ae=new f,Re=new f,Ne=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,Le=/[A-Z]/g;fe.extend({hasData:function(e){return Re.hasData(e)||Ae.hasData(e)},data:function(e,t,n){return Re.access(e,t,n)},removeData:function(e,t){Re.remove(e,t)},_data:function(e,t,n){return Ae.access(e,t,n)},_removeData:function(e,t){Ae.remove(e,t)}}),fe.fn.extend({data:function(e,t){var n,i,o,r=this[0],s=r&&r.attributes;if(void 0===e){if(this.length&&(o=Re.get(r),1===r.nodeType&&!Ae.get(r,"hasDataAttrs"))){for(n=s.length;n--;)s[n]&&0===(i=s[n].name).indexOf("data-")&&(i=p(i.slice(5)),m(r,i,o[i]));Ae.set(r,"hasDataAttrs",!0)}return o}return"object"==typeof e?this.each(function(){Re.set(this,e)}):$e(this,function(t){var n;if(r&&void 0===t)return void 0!==(n=Re.get(r,e))?n:void 0!==(n=m(r,e))?n:void 0;this.each(function(){Re.set(this,e,t)})},null,t,1<arguments.length,null,!0)},removeData:function(e){return this.each(function(){Re.remove(this,e)})}}),fe.extend({queue:function(e,t,n){var i;if(e)return t=(t||"fx")+"queue",i=Ae.get(e,t),n&&(!i||Array.isArray(n)?i=Ae.access(e,t,fe.makeArray(n)):i.push(n)),i||[]},dequeue:function(e,t){t=t||"fx";var n=fe.queue(e,t),i=n.length,o=n.shift(),r=fe._queueHooks(e,t);"inprogress"===o&&(o=n.shift(),i--),o&&("fx"===t&&n.unshift("inprogress"),delete r.stop,o.call(e,function(){fe.dequeue(e,t)},r)),!i&&r&&r.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return Ae.get(e,n)||Ae.access(e,n,{empty:fe.Callbacks("once memory").add(function(){Ae.remove(e,[t+"queue",n])})})}}),fe.fn.extend({queue:function(e,t){var n=2;return"string"!=typeof e&&(t=e,e="fx",n--),arguments.length<n?fe.queue(this[0],e):void 0===t?this:this.each(function(){var n=fe.queue(this,e,t);fe._queueHooks(this,e),"fx"===e&&"inprogress"!==n[0]&&fe.dequeue(this,e)})},dequeue:function(e){return this.each(function(){fe.dequeue(this,e)})},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){var n,i=1,o=fe.Deferred(),r=this,s=this.length,a=function(){--i||o.resolveWith(r,[r])};for("string"!=typeof e&&(t=e,e=void 0),e=e||"fx";s--;)(n=Ae.get(r[s],e+"queueHooks"))&&n.empty&&(i++,n.empty.add(a));return a(),o.promise(t)}});var Me=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,Oe=new RegExp("^(?:([+-])=|)("+Me+")([a-z%]*)$","i"),je=["Top","Right","Bottom","Left"],He=Z.documentElement,Fe=function(e){return fe.contains(e.ownerDocument,e)},Be={composed:!0};He.getRootNode&&(Fe=function(e){return fe.contains(e.ownerDocument,e)||e.getRootNode(Be)===e.ownerDocument});var ze=function(e,t){return"none"===(e=t||e).style.display||""===e.style.display&&Fe(e)&&"none"===fe.css(e,"display")},qe=function(e,t,n,i){var o,r,s={};for(r in t)s[r]=e.style[r],e.style[r]=t[r];for(r in o=n.apply(e,i||[]),t)e.style[r]=s[r];return o},Ue={};fe.fn.extend({show:function(){return v(this,!0)},hide:function(){return v(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each(function(){ze(this)?fe(this).show():fe(this).hide()})}});var We=/^(?:checkbox|radio)$/i,Ve=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,Ke=/^$|^module$|\/(?:java|ecma)script/i,Ge={option:[1,"<select multiple='multiple'>","</select>"],thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};Ge.optgroup=Ge.option,Ge.tbody=Ge.tfoot=Ge.colgroup=Ge.caption=Ge.thead,Ge.th=Ge.td;var Ye,Qe,Xe=/<|&#?\w+;/;Ye=Z.createDocumentFragment().appendChild(Z.createElement("div")),(Qe=Z.createElement("input")).setAttribute("type","radio"),Qe.setAttribute("checked","checked"),Qe.setAttribute("name","t"),Ye.appendChild(Qe),ce.checkClone=Ye.cloneNode(!0).cloneNode(!0).lastChild.checked,Ye.innerHTML="<textarea>x</textarea>",ce.noCloneChecked=!!Ye.cloneNode(!0).lastChild.defaultValue;var Ze=/^key/,Je=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,et=/^([^.]*)(?:\.(.+)|)/;fe.event={global:{},add:function(e,t,n,i,o){var r,s,a,l,c,u,d,h,p,f,m,g=Ae.get(e);if(g)for(n.handler&&(n=(r=n).handler,o=r.selector),o&&fe.find.matchesSelector(He,o),n.guid||(n.guid=fe.guid++),(l=g.events)||(l=g.events={}),(s=g.handle)||(s=g.handle=function(t){return void 0!==fe&&fe.event.triggered!==t.type?fe.event.dispatch.apply(e,arguments):void 0}),c=(t=(t||"").match(Se)||[""]).length;c--;)p=m=(a=et.exec(t[c])||[])[1],f=(a[2]||"").split(".").sort(),p&&(d=fe.event.special[p]||{},p=(o?d.delegateType:d.bindType)||p,d=fe.event.special[p]||{},u=fe.extend({type:p,origType:m,data:i,handler:n,guid:n.guid,selector:o,needsContext:o&&fe.expr.match.needsContext.test(o),namespace:f.join(".")},r),(h=l[p])||((h=l[p]=[]).delegateCount=0,d.setup&&!1!==d.setup.call(e,i,f,s)||e.addEventListener&&e.addEventListener(p,s)),d.add&&(d.add.call(e,u),u.handler.guid||(u.handler.guid=n.guid)),o?h.splice(h.delegateCount++,0,u):h.push(u),fe.event.global[p]=!0)},remove:function(e,t,n,i,o){var r,s,a,l,c,u,d,h,p,f,m,g=Ae.hasData(e)&&Ae.get(e);if(g&&(l=g.events)){for(c=(t=(t||"").match(Se)||[""]).length;c--;)if(p=m=(a=et.exec(t[c])||[])[1],f=(a[2]||"").split(".").sort(),p){for(d=fe.event.special[p]||{},h=l[p=(i?d.delegateType:d.bindType)||p]||[],a=a[2]&&new RegExp("(^|\\.)"+f.join("\\.(?:.*\\.|)")+"(\\.|$)"),s=r=h.length;r--;)u=h[r],!o&&m!==u.origType||n&&n.guid!==u.guid||a&&!a.test(u.namespace)||i&&i!==u.selector&&("**"!==i||!u.selector)||(h.splice(r,1),u.selector&&h.delegateCount--,d.remove&&d.remove.call(e,u));s&&!h.length&&(d.teardown&&!1!==d.teardown.call(e,f,g.handle)||fe.removeEvent(e,p,g.handle),delete l[p])}else for(p in l)fe.event.remove(e,p+t[c],n,i,!0);fe.isEmptyObject(l)&&Ae.remove(e,"handle events")}},dispatch:function(e){var t,n,i,o,r,s,a=fe.event.fix(e),l=new Array(arguments.length),c=(Ae.get(this,"events")||{})[a.type]||[],u=fe.event.special[a.type]||{};for(l[0]=a,t=1;t<arguments.length;t++)l[t]=arguments[t];if(a.delegateTarget=this,!u.preDispatch||!1!==u.preDispatch.call(this,a)){for(s=fe.event.handlers.call(this,a,c),t=0;(o=s[t++])&&!a.isPropagationStopped();)for(a.currentTarget=o.elem,n=0;(r=o.handlers[n++])&&!a.isImmediatePropagationStopped();)a.rnamespace&&!1!==r.namespace&&!a.rnamespace.test(r.namespace)||(a.handleObj=r,a.data=r.data,void 0!==(i=((fe.event.special[r.origType]||{}).handle||r.handler).apply(o.elem,l))&&!1===(a.result=i)&&(a.preventDefault(),a.stopPropagation()));return u.postDispatch&&u.postDispatch.call(this,a),a.result}},handlers:function(e,t){var n,i,o,r,s,a=[],l=t.delegateCount,c=e.target;if(l&&c.nodeType&&!("click"===e.type&&1<=e.button))for(;c!==this;c=c.parentNode||this)if(1===c.nodeType&&("click"!==e.type||!0!==c.disabled)){for(r=[],s={},n=0;n<l;n++)void 0===s[o=(i=t[n]).selector+" "]&&(s[o]=i.needsContext?-1<fe(o,this).index(c):fe.find(o,this,null,[c]).length),s[o]&&r.push(i);r.length&&a.push({elem:c,handlers:r})}return c=this,l<t.length&&a.push({elem:c,handlers:t.slice(l)}),a},addProp:function(e,t){Object.defineProperty(fe.Event.prototype,e,{enumerable:!0,configurable:!0,get:ue(t)?function(){if(this.originalEvent)return t(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[e]},set:function(t){Object.defineProperty(this,e,{enumerable:!0,configurable:!0,writable:!0,value:t})}})},fix:function(e){return e[fe.expando]?e:new fe.Event(e)},special:{load:{noBubble:!0},click:{setup:function(e){var t=this||e;return We.test(t.type)&&t.click&&r(t,"input")&&S(t,"click",k),!1},trigger:function(e){var t=this||e;return We.test(t.type)&&t.click&&r(t,"input")&&S(t,"click"),!0},_default:function(e){var t=e.target;return We.test(t.type)&&t.click&&r(t,"input")&&Ae.get(t,"click")||r(t,"a")}},beforeunload:{postDispatch:function(e){void 0!==e.result&&e.originalEvent&&(e.originalEvent.returnValue=e.result)}}}},fe.removeEvent=function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n)},fe.Event=function(e,t){if(!(this instanceof fe.Event))return new fe.Event(e,t);e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||void 0===e.defaultPrevented&&!1===e.returnValue?
vendor: 1,508 bytes, line 2
2k:C,this.target=e.target&&3===e.target.nodeType?e.target.parentNode:e.target,this.currentTarget=e.currentTarget,this.relatedTarget=e.relatedTarget):this.type=e,t&&fe.extend(this,t),this.timeStamp=e&&e.timeStamp||Date.now(),this[fe.expando]=!0},fe.Event.prototype={constructor:fe.Event,isDefaultPrevented:C,isPropagationStopped:C,isImmediatePropagationStopped:C,isSimulated:!1,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=k,e&&!this.isSimulated&&e.preventDefault()},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=k,e&&!this.isSimulated&&e.stopPropagation()},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=k,e&&!this.isSimulated&&e.stopImmediatePropagation(),this.stopPropagation()}},fe.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,char:!0,code:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:function(e){var t=e.button;return null==e.which&&Ze.test(e.type)?null!=e.charCode?e.charCode:e.keyCode:!e.which&&void 0!==t&&Je.test(e.type)?1&t?1:2&t?3:4&t?2:0:e.which}},fe.event.addProp),fe.each({focus:"focusin",blur:"focusout"},function(e,t){fe.event.special[e]={setup:function(){return S(this,e,x),!1},trigger:function(){return S(this,e),!0},delegateType:t}}
vendor: 1,717 bytes, line 2
2),fe.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(e,t){fe.event.special[e]={delegateType:t,bindType:t,handle:function(e){var n,i=e.relatedTarget,o=e.handleObj;return i&&(i===this||fe.contains(this,i))||(e.type=o.origType,n=o.handler.apply(this,arguments),e.type=t),n}}}),fe.fn.extend({on:function(e,t,n,i){return _(this,e,t,n,i)},one:function(e,t,n,i){return _(this,e,t,n,i,1)},off:function(e,t,n){var i,o;if(e&&e.preventDefault&&e.handleObj)return i=e.handleObj,fe(e.delegateTarget).off(i.namespace?i.origType+"."+i.namespace:i.origType,i.selector,i.handler),this;if("object"==typeof e){for(o in e)this.off(o,t,e[o]);return this}return!1!==t&&"function"!=typeof t||(n=t,t=void 0),!1===n&&(n=C),this.each(function(){fe.event.remove(this,e,n,t)})}});var tt=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([a-z][^\/\0>\x20\t\r\n\f]*)[^>]*)\/>/gi,nt=/<script|<style|<link/i,it=/checked\s*(?:[^=]|=\s*.checked.)/i,ot=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;fe.extend({htmlPrefilter:function(e){return e.replace(tt,"<$1></$2>")},clone:function(e,t,n){var i,o,r,s,a,l,c,u=e.cloneNode(!0),d=Fe(e);if(!(ce.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||fe.isXMLDoc(e)))for(s=y(u),i=0,o=(r=y(e)).length;i<o;i++)a=r[i],l=s[i],"input"===(c=l.nodeName.toLowerCase())&&We.test(a.type)?l.checked=a.checked:"input"!==c&&"textarea"!==c||(l.defaultValue=a.defaultValue);if(t)if(n)for(r=r||y(e),s=s||y(u),i=0,o=r.length;i<o;i++)I(r[i],s[i]);else I(e,u);return 0<(s=y(u,"script")).length&&b(s,!d&&y(e,"script")),u},cleanData:function(e){for(var t,n,i,o=fe.event.special,r=0;void 0!==(n=e[r]);r++)if(De(n)){if(t=n[Ae.expando]){if(t.events)for(i in t.events)
vendor: 4,276 bytes, line 2
2o[i]?fe.event.remove(n,i):fe.removeEvent(n,i,t.handle);n[Ae.expando]=void 0}n[Re.expando]&&(n[Re.expando]=void 0)}}}),fe.fn.extend({detach:function(e){return D(this,e,!0)},remove:function(e){return D(this,e)},text:function(e){return $e(this,function(e){return void 0===e?fe.text(this):this.empty().each(function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=e)})},null,e,arguments.length)},append:function(){return P(this,arguments,function(e){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||T(this,e).appendChild(e)})},prepend:function(){return P(this,arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=T(this,e);t.insertBefore(e,t.firstChild)}})},before:function(){return P(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this)})},after:function(){return P(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)})},empty:function(){for(var e,t=0;null!=(e=this[t]);t++)1===e.nodeType&&(fe.cleanData(y(e,!1)),e.textContent="");return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map(function(){return fe.clone(this,e,t)})},html:function(e){return $e(this,function(e){var t=this[0]||{},n=0,i=this.length;if(void 0===e&&1===t.nodeType)return t.innerHTML;if("string"==typeof e&&!nt.test(e)&&!Ge[(Ve.exec(e)||["",""])[1].toLowerCase()]){e=fe.htmlPrefilter(e);try{for(;n<i;n++)1===(t=this[n]||{}).nodeType&&(fe.cleanData(y(t,!1)),t.innerHTML=e);t=0}catch(e){}}t&&this.empty().append(e)},null,e,arguments.length)},replaceWith:function(){var e=[];return P(this,arguments,function(t){var n=this.parentNode;fe.inArray(this,e)<0&&(fe.cleanData(y(this)),n&&n.replaceChild(t,this))},e)}}),fe.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(e,t){fe.fn[e]=function(e){for(var n,i=[],o=fe(e),r=o.length-1,s=0;s<=r;s++)n=s===r?this:this.clone(!0),fe(o[s])[t](n),ne.apply(i,n.get());return this.pushStack(i)}});var rt=new RegExp("^("+Me+")(?!px)[a-z%]+$","i"),st=function(t){var n=t.ownerDocument.defaultView;return n&&n.opener||(n=e),n.getComputedStyle(t)},at=new RegExp(je.join("|"),"i");!function(){function t(){if(c){l.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",c.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",He.appendChild(l).appendChild(c);var t=e.getComputedStyle(c);i="1%"!==t.top,a=12===n(t.marginLeft),c.style.right="60%",s=36===n(t.right),o=36===n(t.width),c.style.position="absolute",r=12===n(c.offsetWidth/3),He.removeChild(l),c=null}}function n(e){return Math.round(parseFloat(e))}var i,o,r,s,a,l=Z.createElement("div"),c=Z.createElement("div");c.style&&(c.style.backgroundClip="content-box",c.cloneNode(!0).style.backgroundClip="",ce.clearCloneStyle="content-box"===c.style.backgroundClip,fe.extend(ce,{boxSizingReliable:function(){return t(),o},pixelBoxStyles:function(){return t(),s},pixelPosition:function(){return t(),i},reliableMarginLeft:function(){return t(),a},scrollboxSize:function(){return t(),r}}))}();var lt=["Webkit","Moz","ms"],ct=Z.createElement("div").style,ut={},dt=/^(none|table(?!-c[ea]).+)/,ht=/^--/,pt={position:"absolute",visibility:"hidden",display:"block"},ft={letterSpacing:"0",fontWeight:"400"};fe.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=A(e,"opacity");return""===n?"1":n}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{},style:function(e,t,n,i){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var o,r,s,a=p(t),l=ht.test(t),c=e.style;if(l||(t=N(a)),s=fe.cssHooks[t]||fe.cssHooks[a],void 0===n)return s&&"get"in s&&void 0!==(o=s.get(e,!1,i))?o:c[t];"string"==(r=typeof n)&&(o=Oe.exec(n))&&o[1]&&(n=g(e,t,o),r="number"),null!=n&&n==n&&("number"!==r||l||(n+=o&&o[3]||(fe.cssNumber[a]?"":"px")),ce.clearCloneStyle||""!==n||0!==t.indexOf("background")||(c[t]="inherit"),s&&"set"in s&&void 0===(n=s.set(e,n,i)
vendor: 3,703 bytes, lines 2-3
2)||(l?c.setProperty(t,n):c[t]=n))}},css:function(e,t,n,i){var o,r,s,a=p(t);return ht.test(t)||(t=N(a)),(s=fe.cssHooks[t]||fe.cssHooks[a])&&"get"in s&&(o=s.get(e,!0,n)),void 0===o&&(o=A(e,t,i)),"normal"===o&&t in ft&&(o=ft[t]),""===n||n?(r=parseFloat(o),!0===n||isFinite(r)?r||0:o):o}}),fe.each(["height","width"],function(e,t){fe.cssHooks[t]={get:function(e,n,i){if(n)return!dt.test(fe.css(e,"display"))||e.getClientRects().length&&e.getBoundingClientRect().width?O(e,t,i):qe(e,pt,function(){return O(e,t,i)})},set:function(e,n,i){var o,r=st(e),s=!ce.scrollboxSize()&&"absolute"===r.position,a=(s||i)&&"border-box"===fe.css(e,"boxSizing",!1,r),l=i?M(e,t,i,a,r):0;return a&&s&&(l-=Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-parseFloat(r[t])-M(e,t,"border",!1,r)-.5)),l&&(o=Oe.exec(n))&&"px"!==(o[3]||"px")&&(e.style[t]=n, 3n=fe.css(e,t)),L(0,n,l)}}}),fe.cssHooks.marginLeft=R(ce.reliableMarginLeft,function(e,t){if(t)return(parseFloat(A(e,"marginLeft"))||e.getBoundingClientRect().left-qe(e,{marginLeft:0},function(){return e.getBoundingClientRect().left}))+"px"}),fe.each({margin:"",padding:"",border:"Width"},function(e,t){fe.cssHooks[e+t]={expand:function(n){for(var i=0,o={},r="string"==typeof n?n.split(" "):[n];i<4;i++)o[e+je[i]+t]=r[i]||r[i-2]||r[0];return o}},"margin"!==e&&(fe.cssHooks[e+t].set=L)}),fe.fn.extend({css:function(e,t){return $e(this,function(e,t,n){var i,o,r={},s=0;if(Array.isArray(t)){for(i=st(e),o=t.length;s<o;s++)r[t[s]]=fe.css(e,t[s],!1,i);return r}return void 0!==n?fe.style(e,t,n):fe.css(e,t)},e,t,1<arguments.length)}}),((fe.Tween=j).prototype={constructor:j,init:function(e,t,n,i,o,r){this.elem=e,this.prop=n,this.easing=o||fe.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=i,this.unit=r||(fe.cssNumber[n]?"":"px")},cur:function(){var e=j.propHooks[this.prop];return e&&e.get?e.get(this):j.propHooks._default.get(this)},run:function(e){var t,n=j.propHooks[this.prop];return this.options.duration?this.pos=t=fe.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):this.pos=t=e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):j.propHooks._default.set(this),this}}).init.prototype=j.prototype,(j.propHooks={_default:{get:function(e){var t;return 1!==e.elem.nodeType||null!=e.elem[e.prop]&&null==e.elem.style[e.prop]?e.elem[e.prop]:(t=fe.css(e.elem,e.prop,""))&&"auto"!==t?t:0},set:function(e){fe.fx.step[e.prop]?fe.fx.step[e.prop](e):1!==e.elem.nodeType||!fe.cssHooks[e.prop]&&null==e.elem.style[N(e.prop)]?e.elem[e.prop]=e.now:fe.style(e.elem,e.prop,e.now+e.unit)}}}).scrollTop=j.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},fe.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},_default:"swing"},fe.fx=j.prototype.init,fe.fx.step={};var mt,gt,vt,yt,bt=/^(?:toggle|show|hide)$/,wt=/queueHooks$/;fe.Animation=fe.extend(q,{tweeners:{"*":[function(e,t){var n=this.createTween(e,t);return g(n.elem,e,Oe.exec(t),n),n}]},tweener:function(e,t){ue(e)?(t=e,e=["*"]):e=e.match(Se);for(var n,i=0,o=e.length;i<o;i++)n=e[i],q.tweeners[n]=q.tweeners[n]||[],q.tweeners[n].unshift(t)},prefilters:[function(e,t,n){var i,o,r,s,a,l,c,u,d="width"in t||"height"in t,h=this,p={},f=e.style,m=e.nodeType&&ze(e),g=Ae.get(e,"fxshow");for(i in n.queue||(null==(s=fe._queueHooks(e,"fx")).unqueued&&(s.unqueued=0,a=s.empty.fire,s.empty.fire=function(){s.unqueued||a()}),s.unqueued++,h.always(function(){h.always(function(){s.unqueued--,fe.queue(e,"fx").length||s.empty.fire()})})),t)if(o=t[i],bt.test(o)){if(delete t[i],r=r||"toggle"===o,o===(m?"hide":"show")){if("show"!==o||
vendor: 12,985 bytes, line 3
3!g||void 0===g[i])continue;m=!0}p[i]=g&&g[i]||fe.style(e,i)}if((l=!fe.isEmptyObject(t))||!fe.isEmptyObject(p))for(i in d&&1===e.nodeType&&(n.overflow=[f.overflow,f.overflowX,f.overflowY],null==(c=g&&g.display)&&(c=Ae.get(e,"display")),"none"===(u=fe.css(e,"display"))&&(c?u=c:(v([e],!0),c=e.style.display||c,u=fe.css(e,"display"),v([e]))),("inline"===u||"inline-block"===u&&null!=c)&&"none"===fe.css(e,"float")&&(l||(h.done(function(){f.display=c}),null==c&&(u=f.display,c="none"===u?"":u)),f.display="inline-block")),n.overflow&&(f.overflow="hidden",h.always(function(){f.overflow=n.overflow[0],f.overflowX=n.overflow[1],f.overflowY=n.overflow[2]})),l=!1,p)l||(g?"hidden"in g&&(m=g.hidden):g=Ae.access(e,"fxshow",{display:c}),r&&(g.hidden=!m),m&&v([e],!0),h.done(function(){for(i in m||v([e]),Ae.remove(e,"fxshow"),p)fe.style(e,i,p[i])})),l=z(m?g[i]:0,i,h),i in g||(g[i]=l.start,m&&(l.end=l.start,l.start=0))}],prefilter:function(e,t){t?q.prefilters.unshift(e):q.prefilters.push(e)}}),fe.speed=function(e,t,n){var i=e&&"object"==typeof e?fe.extend({},e):{complete:n||!n&&t||ue(e)&&e,duration:e,easing:n&&t||t&&!ue(t)&&t};return fe.fx.off?i.duration=0:"number"!=typeof i.duration&&(i.duration in fe.fx.speeds?i.duration=fe.fx.speeds[i.duration]:i.duration=fe.fx.speeds._default),null!=i.queue&&!0!==i.queue||(i.queue="fx"),i.old=i.complete,i.complete=function(){ue(i.old)&&i.old.call(this),i.queue&&fe.dequeue(this,i.queue)},i},fe.fn.extend({fadeTo:function(e,t,n,i){return this.filter(ze).css("opacity",0).show().end().animate({opacity:t},e,n,i)},animate:function(e,t,n,i){var o=fe.isEmptyObject(e),r=fe.speed(t,n,i),s=function(){var t=q(this,fe.extend({},e),r);(o||Ae.get(this,"finish"))&&t.stop(!0)};return s.finish=s,o||!1===r.queue?this.each(s):this.queue(r.queue,s)},stop:function(e,t,n){var i=function(e){var t=e.stop;delete e.stop,t(n)};return"string"!=typeof e&&(n=t,t=e,e=void 0),t&&!1!==e&&this.queue(e||"fx",[]),this.each(function(){var t=!0,o=null!=e&&e+"queueHooks",r=fe.timers,s=Ae.get(this);if(o)s[o]&&s[o].stop&&i(s[o]);else for(o in s)s[o]&&s[o].stop&&wt.test(o)&&i(s[o]);for(o=r.length;o--;)r[o].elem!==this||null!=e&&r[o].queue!==e||(r[o].anim.stop(n),t=!1,r.splice(o,1));!t&&n||fe.dequeue(this,e)})},finish:function(e){return!1!==e&&(e=e||"fx"),this.each(function(){var t,n=Ae.get(this),i=n[e+"queue"],o=n[e+"queueHooks"],r=fe.timers,s=i?i.length:0;for(n.finish=!0,fe.queue(this,e,[]),o&&o.stop&&o.stop.call(this,!0),t=r.length;t--;)r[t].elem===this&&r[t].queue===e&&(r[t].anim.stop(!0),r.splice(t,1));for(t=0;t<s;t++)i[t]&&i[t].finish&&i[t].finish.call(this);delete n.finish})}}),fe.each(["toggle","show","hide"],function(e,t){var n=fe.fn[t];fe.fn[t]=function(e,i,o){return null==e||"boolean"==typeof e?n.apply(this,arguments):this.animate(B(t,!0),e,i,o)}}),fe.each({slideDown:B("show"),slideUp:B("hide"),slideToggle:B("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(e,t){fe.fn[e]=function(e,n,i){return this.animate(t,e,n,i)}}),fe.timers=[],fe.fx.tick=function(){var e,t=0,n=fe.timers;for(mt=Date.now();t<n.length;t++)(e=n[t])()||n[t]!==e||n.splice(t--,1);n.length||fe.fx.stop(),mt=void 0},fe.fx.timer=function(e){fe.timers.push(e),fe.fx.start()},fe.fx.interval=13,fe.fx.start=function(){gt||(gt=!0,H())},fe.fx.stop=function(){gt=null},fe.fx.speeds={slow:600,fast:200,_default:400},fe.fn.delay=function(t,n){return t=fe.fx&&fe.fx.speeds[t]||t,n=n||"fx",this.queue(n,function(n,i){var o=e.setTimeout(n,t);i.stop=function(){e.clearTimeout(o)}})},vt=Z.createElement("input"),yt=Z.createElement("select").appendChild(Z.createElement("option")),vt.type="checkbox",ce.checkOn=""!==vt.value,ce.optSelected=yt.selected,(vt=Z.createElement("input")).value="t",vt.type="radio",ce.radioValue="t"===vt.value;var kt,Ct=fe.expr.attrHandle;fe.fn.extend({attr:function(e,t){return $e(this,fe.attr,e,t,1<arguments.length)},removeAttr:function(e){return this.each(function(){fe.removeAttr(this,e)})}}),fe.extend({attr:function(e,t,n){var i,o,r=e.nodeType;if(3!==r&&8!==r&&2!==r)return void 0===e.getAttribute?fe.prop(e,t,n):(1===r&&fe.isXMLDoc(e)||(o=fe.attrHooks[t.toLowerCase()]||(fe.expr.match.bool.test(t)?kt:void 0)),void 0!==n?null===n?void fe.removeAttr(e,t):o&&"set"in o&&void 0!==(i=o.set(e,n,t))?i:(e.setAttribute(t,n+""),n):o&&"get"in o&&null!==(i=o.get(e,t))?i:null==(i=fe.find.attr(e,t))?void 0:i)},attrHooks:{type:{set:function(e,t){if(!ce.radioValue&&"radio"===t&&r(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}}},removeAttr:function(e,t){var n,i=0,o=t&&t.match(Se);if(o&&1===e.nodeType)for(;n=o[i++];)e.removeAttribute(n)}}),kt={set:function(e,t,n){return!1===t?fe.removeAttr(e,n):e.setAttribute(n,n),n}},fe.each(fe.expr.match.bool.source.match(/\w+/g),function(e,t){var n=Ct[t]||fe.find.attr;Ct[t]=function(e,t,i){var o,r,s=t.toLowerCase();return i||(r=Ct[s],Ct[s]=o,o=null!=n(e,t,i)?s:null,Ct[s]=r),o}});var xt=/^(?:input|select|textarea|button)$/i,_t=/^(?:a|area)$/i;fe.fn.extend({prop:function(e,t){return $e(this,fe.prop,e,t,1<arguments.length)},removeProp:function(e){return this.each(function(){delete this[fe.propFix[e]||e]})}}),fe.extend({prop:function(e,t,n){var i,o,r=e.nodeType;if(3!==r&&8!==r&&2!==r)return 1===r&&fe.isXMLDoc(e)||(t=fe.propFix[t]||t,o=fe.propHooks[t]),void 0!==n?o&&"set"in o&&void 0!==(i=o.set(e,n,t))?i:e[t]=n:o&&"get"in o&&null!==(i=o.get(e,t))?i:e[t]},propHooks:{tabIndex:{get:function(e){var t=fe.find.attr(e,"tabindex");return t?parseInt(t,10):xt.test(e.nodeName)||_t.test(e.nodeName)&&e.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),ce.optSelected||(fe.propHooks.selected={get:function(e){var t=e.parentNode;return t&&t.parentNode&&t.parentNode.selectedIndex,null},set:function(e){var t=e.parentNode;t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex)}}),fe.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){fe.propFix[this.toLowerCase()]=this}),fe.fn.extend({addClass:function(e){var t,n,i,o,r,s,a,l=0;if(ue(e))return this.each(function(t){fe(this).addClass(e.call(this,t,W(this)))});if((t=V(e)).length)for(;n=this[l++];)if(o=W(n),i=1===n.nodeType&&" "+U(o)+" "){for(s=0;r=t[s++];)i.indexOf(" "+r+" ")<0&&(i+=r+" ");o!==(a=U(i))&&n.setAttribute("class",a)}return this},removeClass:function(e){var t,n,i,o,r,s,a,l=0;if(ue(e))return this.each(function(t){fe(this).removeClass(e.call(this,t,W(this)))});if(!arguments.length)return this.attr("class","");if((t=V(e)).length)for(;n=this[l++];)if(o=W(n),i=1===n.nodeType&&" "+U(o)+" "){for(s=0;r=t[s++];)for(;-1<i.indexOf(" "+r+" ");)i=i.replace(" "+r+" "," ");o!==(a=U(i))&&n.setAttribute("class",a)}return this},toggleClass:function(e,t){var n=typeof e,i="string"===n||Array.isArray(e);return"boolean"==typeof t&&i?t?this.addClass(e):this.removeClass(e):ue(e)?this.each(function(n){fe(this).toggleClass(e.call(this,n,W(this),t),t)}):this.each(function(){var t,o,r,s;if(i)for(o=0,r=fe(this),s=V(e);t=s[o++];)r.hasClass(t)?r.removeClass(t):r.addClass(t);else void 0!==e&&"boolean"!==n||((t=W(this))&&Ae.set(this,"__className__",t),this.setAttribute&&this.setAttribute("class",t||!1===e?"":Ae.get(this,"__className__")||""))})},hasClass:function(e){var t,n,i=0;for(t=" "+e+" ";n=this[i++];)if(1===n.nodeType&&-1<(" "+U(W(n))+" ").indexOf(t))return!0;return!1}});var St=/\r/g;fe.fn.extend({val:function(e){var t,n,i,o=this[0];return arguments.length?(i=ue(e),this.each(function(n){var o;1===this.nodeType&&(null==(o=i?e.call(this,n,fe(this).val()):e)?o="":"number"==typeof o?o+="":Array.isArray(o)&&(o=fe.map(o,function(e){return null==e?"":e+""})),(t=fe.valHooks[this.type]||fe.valHooks[this.nodeName.toLowerCase()])&&"set"in t&&void 0!==t.set(this,o,"value")||(this.value=o))})):o?(t=fe.valHooks[o.type]||fe.valHooks[o.nodeName.toLowerCase()])&&"get"in t&&void 0!==(n=t.get(o,"value"))?n:"string"==typeof(n=o.value)?n.replace(St,""):null==n?"":n:void 0}}),fe.extend({valHooks:{option:{get:function(e){var t=fe.find.attr(e,"value");return null!=t?t:U(fe.text(e))}},select:{get:function(e){var t,n,i,o=e.options,s=e.selectedIndex,a="select-one"===e.type,l=a?null:[],c=a?s+1:o.length;for(i=s<0?c:a?s:0;i<c;i++)if(((n=o[i]).selected||i===s)&&!n.disabled&&(!n.parentNode.disabled||!r(n.parentNode,"optgroup"))){if(t=fe(n).val(),a)return t;l.push(t)}return l},set:function(e,t){for(var n,i,o=e.options,r=fe.makeArray(t),s=o.length;s--;)((i=o[s]).selected=-1<fe.inArray(fe.valHooks.option.get(i),r))&&(n=!0);return n||(e.selectedIndex=-1),r}}}}),fe.each(["radio","checkbox"],function(){fe.valHooks[this]={set:function(e,t){if(Array.isArray(t))return e.checked=-1<fe.inArray(fe(e).val(),t)}},ce.checkOn||(fe.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})}),ce.focusin="onfocusin"in e;var Tt=/^(?:focusinfocus|focusoutblur)$/,Et=function(e){e.stopPropagation()};fe.extend(fe.event,{trigger:function(t,n,i,o){var r,s,a,l,c,u,d,h,p=[i||Z],f=se.call(t,"type")?t.type:t,m=se.call(t,"namespace")?t.namespace.split("."):[];if(s=h=a=i=i||Z,3!==i.nodeType&&8!==i.nodeType&&!Tt.test(f+fe.event.triggered)&&(-1<f.indexOf(".")&&(f=(m=f.split(".")).shift(),m.sort()),c=f.indexOf(":")<0&&"on"+f,(t=t[fe.expando]?t:new fe.Event(f,"object"==typeof t&&t)).isTrigger=o?2:3,t.namespace=m.join("."),t.rnamespace=t.namespace?new RegExp("(^|\\.)"+m.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,t.result=void 0,t.target||(t.target=i),n=null==n?[t]:fe.makeArray(n,[t]),d=fe.event.special[f]||{},o||!d.trigger||!1!==d.trigger.apply(i,n))){if(!o&&!d.noBubble&&!de(i)){for(l=d.delegateType||f,Tt.test(l+f)||(s=s.parentNode);s;s=s.parentNode)p.push(s),a=s;a===(i.ownerDocument||Z)&&p.push(a.defaultView||a.parentWindow||e)}for(r=0;(s=p[r++])&&!t.isPropagationStopped();)h=s,t.type=1<r?l:d.bindType||f,(u=(Ae.get(s,"events")||{})[t.type]&&Ae.get(s,"handle"))&&u.apply(s,n),(u=c&&s[c])&&u.apply&&De(s)&&(t.result=u.apply(s,n),!1===t.result&&t.preventDefault());return t.type=f,o||t.isDefaultPrevented()||d._default&&!1!==d._default.apply(p.pop(),n)||!De(i)||c&&ue(i[f])&&!de(i)&&((a=i[c])&&(i[c]=null),fe.event.triggered=f,t.isPropagationStopped()&&h.addEventListener(f,Et),i[f](),t.isPropagationStopped()&&h.removeEventListener(f,Et),fe.event.triggered=void 0,a&&(i[c]=a)),t.result}},simulate:function(e,t,n){var i=fe.extend(new fe.Event,n,{type:e,isSimulated:!0});fe.event.trigger(i,null,t)}}),fe.fn.extend({trigger:function(e,t){return this.each(function(){fe.event.trigger(e,t,this)})},triggerHandler:function(e,t){var n=this[0];if(n)return fe.event.trigger(e,t,n,!0)}}),ce.focusin||fe.each({focus:"focusin",blur:"focusout"},function(e,t){var n=function(e){fe.event.simulate(t,e.target,fe.event.fix(e))};fe.event.special[t]={setup:function(){var i=this.ownerDocument||this,o=Ae.access(i,t);o||i.addEventListener(e,n,!0),Ae.access(i,t,(o||0)+1)},teardown:function(){var i=this.ownerDocument||this,o=Ae.access(i,t)-1;o?Ae.access(i,t,o):(i.removeEventListener(e,n,!0),Ae.remove(i,t))}}});var $t=e.location,It=Date.now(),Pt=/\?/;fe.parseXML=function(t){var n;if(!t||"string"!=typeof t)return null;try{n=(new e.DOMParser).parseFromString(t,"text/xml")}catch(t){n=void 0}return n&&!n.getElementsByTagName("parsererror").length||fe.error("Invalid XML: "+t),n};var Dt=/\[\]$/,At=/\r?\n/g,Rt=/^(?:submit|button|image|reset|file)$/i,Nt=/^(?:input|select|textarea|keygen)/i;fe.param=function(e,t){var n,i=[],o=function(e,t){var n=ue(t)?t():t;i[i.length]=encodeURIComponent(e)+"="+encodeURIComponent(null==n?"":n)};if(null==e)return"";if(Array.isArray(e)||e.jquery&&!fe.isPlainObject(e))fe.each(e,function(){o(this.name,this.value)});else for(n in e)K(n,e[n],t,o);return i.join("&")},fe.fn.extend({serialize:function(){return fe.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var e=fe.prop(this,"elements");return e?fe.makeArray(e):this}).filter(function(){var e=this.type;return this.name&&!fe(this).is(":disabled")&&Nt.test(this.nodeName)&&!Rt.test(e)&&(this.checked||!We.test(e))}).map(function(e,t){var n=fe(this).val();return null==n?null:Array.isArray(n)?fe.map(n,function(e){return{name:t.name,value:e.replace(At,"\r\n")}}):{name:t.name,value:n.replace(At,"\r\n")}}).get()}});var Lt=/%20/g,Mt=/#.*$/,Ot=/([?&])_=[^&]*/,jt=/^(.*?):[ \t]*([^\r\n]*)$/gm,Ht=/^(?:GET|HEAD)$/,Ft=/^\/\//,Bt={},zt={},qt="*/".concat("*"),Ut=Z.createElement("a");Ut.href=$t.href,fe.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:$t.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test($t.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":qt,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":fe.parseXML}
vendor: 3,621 bytes, line 3
3,flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?Q(Q(e,fe.ajaxSettings),t):Q(fe.ajaxSettings,e)},ajaxPrefilter:G(Bt),ajaxTransport:G(zt),ajax:function(t,n){function i(t,n,i,a){var c,h,p,w,k,C=n;u||(u=!0,l&&e.clearTimeout(l),o=void 0,s=a||"",x.readyState=0<t?4:0,c=200<=t&&t<300||304===t,i&&(w=function(e,t,n){for(var i,o,r,s,a=e.contents,l=e.dataTypes;"*"===l[0];)l.shift(),void 0===i&&(i=e.mimeType||t.getResponseHeader("Content-Type"));if(i)for(o in a)if(a[o]&&a[o].test(i)){l.unshift(o);break}if(l[0]in n)r=l[0];else{for(o in n){if(!l[0]||e.converters[o+" "+l[0]]){r=o;break}s||(s=o)}r=r||s}if(r)return r!==l[0]&&l.unshift(r),n[r]}(f,x,i)),w=function(e,t,n,i){var o,r,s,a,l,c={},u=e.dataTypes.slice();if(u[1])for(s in e.converters)c[s.toLowerCase()]=e.converters[s];for(r=u.shift();r;)if(e.responseFields[r]&&(n[e.responseFields[r]]=t),!l&&i&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),l=r,r=u.shift())if("*"===r)r=l;else if("*"!==l&&l!==r){if(!(s=c[l+" "+r]||c["* "+r]))for(o in c)if((a=o.split(" "))[1]===r&&(s=c[l+" "+a[0]]||c["* "+a[0]])){!0===s?s=c[o]:!0!==c[o]&&(r=a[0],u.unshift(a[1]));break}if(!0!==s)if(s&&e.throws)t=s(t);else try{t=s(t)}catch(e){return{state:"parsererror",error:s?e:"No conversion from "+l+" to "+r}}}return{state:"success",data:t}}(f,w,x,c),c?(f.ifModified&&((k=x.getResponseHeader("Last-Modified"))&&(fe.lastModified[r]=k),(k=x.getResponseHeader("etag"))&&(fe.etag[r]=k)),204===t||"HEAD"===f.type?C="nocontent":304===t?C="notmodified":(C=w.state,h=w.data,c=!(p=w.error))):(p=C,!t&&C||(C="error",t<0&&(t=0))),x.status=t,x.statusText=(n||C)+"",c?v.resolveWith(m,[h,C,x]):v.rejectWith(m,[x,C,p]),x.statusCode(b),b=void 0,d&&g.trigger(c?"ajaxSuccess":"ajaxError",[x,f,c?h:p]),y.fireWith(m,[x,C]),d&&(g.trigger("ajaxComplete",[x,f]),--fe.active||fe.event.trigger("ajaxStop")))}"object"==typeof t&&(n=t,t=void 0),n=n||{};var o,r,s,a,l,c,u,d,h,p,f=fe.ajaxSetup({},n),m=f.context||f,g=f.context&&(m.nodeType||m.jquery)?fe(m):fe.event,v=fe.Deferred(),y=fe.Callbacks("once memory"),b=f.statusCode||{},w={},k={},C="canceled",x={readyState:0,getResponseHeader:function(e){var t;if(u){if(!a)for(a={};t=jt.exec(s);)a[t[1].toLowerCase()+" "]=(a[t[1].toLowerCase()+" "]||[]).concat(t[2]);t=a[e.toLowerCase()+" "]}return null==t?null:t.join(", ")},getAllResponseHeaders:function(){return u?s:null},setRequestHeader:function(e,t){return null==u&&(e=k[e.toLowerCase()]=k[e.toLowerCase()]||e,w[e]=t),this},overrideMimeType:function(e){return null==u&&(f.mimeType=e),this},statusCode:function(e){var t;if(e)if(u)x.always(e[x.status]);else for(t in e)b[t]=[b[t],e[t]];return this},abort:function(e){var t=e||C;return o&&o.abort(t),i(0,t),this}};if(v.promise(x),f.url=((t||f.url||$t.href)+"").replace(Ft,$t.protocol+"//"),f.type=n.method||n.type||f.method||f.type,f.dataTypes=(f.dataType||"*").toLowerCase().match(Se)||[""],null==f.crossDomain){c=Z.createElement("a");try{c.href=f.url,c.href=c.href,f.crossDomain=Ut.protocol+"//"+Ut.host!=c.protocol+"//"+c.host}catch(t){f.crossDomain=!0}}if(f.data&&f.processData&&"string"!=typeof f.data&&(f.data=fe.param(f.data,f.traditional)),Y(Bt,f,n,x),u)return x;for(h in(d=fe.event&&f.global)&&0==fe.active++&&fe.event.trigger("ajaxStart"),f.type=f.type.toUpperCase(),f.hasContent=!Ht.test(f.type),r=f.url.replace(Mt,""),f.hasContent?f.data&&f.processData&&0===(f.contentType||"").indexOf("application/x-www-form-urlencoded")&&(f.data=f.data.replace(Lt,"+")):(p=f.url.slice(r.length),f.data&&(f.processData||"string"==typeof f.data)&&(r+=(Pt.test(r)?"&":"?")+f.data,delete f.data),!1===f.cache&&(r=r.replace(Ot,"$1"),p=(Pt.test(r)?"&":"?")+"_="+It+++p
vendor: 4,807 bytes, line 3
3),f.url=r+p),f.ifModified&&(fe.lastModified[r]&&x.setRequestHeader("If-Modified-Since",fe.lastModified[r]),fe.etag[r]&&x.setRequestHeader("If-None-Match",fe.etag[r])),(f.data&&f.hasContent&&!1!==f.contentType||n.contentType)&&x.setRequestHeader("Content-Type",f.contentType),x.setRequestHeader("Accept",f.dataTypes[0]&&f.accepts[f.dataTypes[0]]?f.accepts[f.dataTypes[0]]+("*"!==f.dataTypes[0]?", "+qt+"; q=0.01":""):f.accepts["*"]),f.headers)x.setRequestHeader(h,f.headers[h]);if(f.beforeSend&&(!1===f.beforeSend.call(m,x,f)||u))return x.abort();if(C="abort",y.add(f.complete),x.done(f.success),x.fail(f.error),o=Y(zt,f,n,x)){if(x.readyState=1,d&&g.trigger("ajaxSend",[x,f]),u)return x;f.async&&0<f.timeout&&(l=e.setTimeout(function(){x.abort("timeout")},f.timeout));try{u=!1,o.send(w,i)}catch(t){if(u)throw t;i(-1,t)}}else i(-1,"No Transport");return x},getJSON:function(e,t,n){return fe.get(e,t,n,"json")},getScript:function(e,t){return fe.get(e,void 0,t,"script")}}),fe.each(["get","post"],function(e,t){fe[t]=function(e,n,i,o){return ue(n)&&(o=o||i,i=n,n=void 0),fe.ajax(fe.extend({url:e,type:t,dataType:o,data:n,success:i},fe.isPlainObject(e)&&e))}}),fe._evalUrl=function(e,t){return fe.ajax({url:e,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(e){fe.globalEval(e,t)}})},fe.fn.extend({wrapAll:function(e){var t;return this[0]&&(ue(e)&&(e=e.call(this[0])),t=fe(e,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map(function(){for(var e=this;e.firstElementChild;)e=e.firstElementChild;return e}).append(this)),this},wrapInner:function(e){return ue(e)?this.each(function(t){fe(this).wrapInner(e.call(this,t))}):this.each(function(){var t=fe(this),n=t.contents();n.length?n.wrapAll(e):t.append(e)})},wrap:function(e){var t=ue(e);return this.each(function(n){fe(this).wrapAll(t?e.call(this,n):e)})},unwrap:function(e){return this.parent(e).not("body").each(function(){fe(this).replaceWith(this.childNodes)}),this}}),fe.expr.pseudos.hidden=function(e){return!fe.expr.pseudos.visible(e)},fe.expr.pseudos.visible=function(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)},fe.ajaxSettings.xhr=function(){try{return new e.XMLHttpRequest}catch(e){}};var Wt={0:200,1223:204},Vt=fe.ajaxSettings.xhr();ce.cors=!!Vt&&"withCredentials"in Vt,ce.ajax=Vt=!!Vt,fe.ajaxTransport(function(t){var n,i;if(ce.cors||Vt&&!t.crossDomain)return{send:function(o,r){var s,a=t.xhr();if(a.open(t.type,t.url,t.async,t.username,t.password),t.xhrFields)for(s in t.xhrFields)a[s]=t.xhrFields[s];for(s in t.mimeType&&a.overrideMimeType&&a.overrideMimeType(t.mimeType),t.crossDomain||o["X-Requested-With"]||(o["X-Requested-With"]="XMLHttpRequest"),o)a.setRequestHeader(s,o[s]);n=function(e){return function(){n&&(n=i=a.onload=a.onerror=a.onabort=a.ontimeout=a.onreadystatechange=null,"abort"===e?a.abort():"error"===e?"number"!=typeof a.status?r(0,"error"):r(a.status,a.statusText):r(Wt[a.status]||a.status,a.statusText,"text"!==(a.responseType||"text")||"string"!=typeof a.responseText?{binary:a.response}:{text:a.responseText},a.getAllResponseHeaders()))}},a.onload=n(),i=a.onerror=a.ontimeout=n("error"),void 0!==a.onabort?a.onabort=i:a.onreadystatechange=function(){4===a.readyState&&e.setTimeout(function(){n&&i()})},n=n("abort");try{a.send(t.hasContent&&t.data||null)}catch(o){if(n)throw o}},abort:function(){n&&n()}}}),fe.ajaxPrefilter(function(e){e.crossDomain&&(e.contents.script=!1)}),fe.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(e){return fe.globalEval(e),e}}}),fe.ajaxPrefilter("script",function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET")}),fe.ajaxTransport("script",function(e){var t,n;if(e.crossDomain||e.scriptAttrs)return{send:function(i,o){t=fe("<script>").attr(e.scriptAttrs||{}).prop({charset:e.scriptCharset,src:e.url}).on("load error",n=function(e){t.remove(),n=null,e&&o("error"===e.type?404:200,e.type)}),Z.head.appendChild(t[0])},abort:function(){n&&n()}}});var Kt,Gt=[],Yt=/(=)\?(?=&|$)|\?\?/;fe.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=Gt.pop()||fe.expando+"_"+It++;return this[e]=!0,e}}),fe.ajaxPrefilter("json jsonp",function(t,n,i){var o,r,s,a=!1!==t.jsonp&&(Yt.test(t.url)?"url":"string"==typeof t.data&&0===(t.contentType||"").indexOf("application/x-www-form-urlencoded")&&Yt.test(t.data)&&"data");if(a||"jsonp"===t.dataTypes[0])return o=t.jsonpCallback=ue(t.jsonpCallback)?t.jsonpCallback():t.jsonpCallback,a?t[a]=t[a].replace(Yt,"$1"+o):!1!==t.jsonp&&(t.url+=(Pt.test(t.url)?"&":"?")+t.jsonp+"="+o),t.converters["script json"]=function(){return s||fe.error(o+" was not called"),s[0]}
vendor: 4,803 bytes, line 3
3,t.dataTypes[0]="json",r=e[o],e[o]=function(){s=arguments},i.always(function(){void 0===r?fe(e).removeProp(o):e[o]=r,t[o]&&(t.jsonpCallback=n.jsonpCallback,Gt.push(o)),s&&ue(r)&&r(s[0]),s=r=void 0}),"script"}),ce.createHTMLDocument=((Kt=Z.implementation.createHTMLDocument("").body).innerHTML="<form></form><form></form>",2===Kt.childNodes.length),fe.parseHTML=function(e,t,n){return"string"!=typeof e?[]:("boolean"==typeof t&&(n=t,t=!1),t||(ce.createHTMLDocument?((i=(t=Z.implementation.createHTMLDocument("")).createElement("base")).href=Z.location.href,t.head.appendChild(i)):t=Z),r=!n&&[],(o=we.exec(e))?[t.createElement(o[1])]:(o=w([e],t,r),r&&r.length&&fe(r).remove(),fe.merge([],o.childNodes)));var i,o,r},fe.fn.load=function(e,t,n){var i,o,r,s=this,a=e.indexOf(" ");return-1<a&&(i=U(e.slice(a)),e=e.slice(0,a)),ue(t)?(n=t,t=void 0):t&&"object"==typeof t&&(o="POST"),0<s.length&&fe.ajax({url:e,type:o||"GET",dataType:"html",data:t}).done(function(e){r=arguments,s.html(i?fe("<div>").append(fe.parseHTML(e)).find(i):e)}).always(n&&function(e,t){s.each(function(){n.apply(this,r||[e.responseText,t,e])})}),this},fe.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){fe.fn[t]=function(e){return this.on(t,e)}}),fe.expr.pseudos.animated=function(e){return fe.grep(fe.timers,function(t){return e===t.elem}).length},fe.offset={setOffset:function(e,t,n){var i,o,r,s,a,l,c=fe.css(e,"position"),u=fe(e),d={};"static"===c&&(e.style.position="relative"),a=u.offset(),r=fe.css(e,"top"),l=fe.css(e,"left"),("absolute"===c||"fixed"===c)&&-1<(r+l).indexOf("auto")?(s=(i=u.position()).top,o=i.left):(s=parseFloat(r)||0,o=parseFloat(l)||0),ue(t)&&(t=t.call(e,n,fe.extend({},a))),null!=t.top&&(d.top=t.top-a.top+s),null!=t.left&&(d.left=t.left-a.left+o),"using"in t?t.using.call(e,d):u.css(d)}},fe.fn.extend({offset:function(e){if(arguments.length)return void 0===e?this:this.each(function(t){fe.offset.setOffset(this,e,t)});var t,n,i=this[0];return i?i.getClientRects().length?(t=i.getBoundingClientRect(),n=i.ownerDocument.defaultView,{top:t.top+n.pageYOffset,left:t.left+n.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var e,t,n,i=this[0],o={top:0,left:0};if("fixed"===fe.css(i,"position"))t=i.getBoundingClientRect();else{for(t=this.offset(),n=i.ownerDocument,e=i.offsetParent||n.documentElement;e&&(e===n.body||e===n.documentElement)&&"static"===fe.css(e,"position");)e=e.parentNode;e&&e!==i&&1===e.nodeType&&((o=fe(e).offset()).top+=fe.css(e,"borderTopWidth",!0),o.left+=fe.css(e,"borderLeftWidth",!0))}return{top:t.top-o.top-fe.css(i,"marginTop",!0),left:t.left-o.left-fe.css(i,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var e=this.offsetParent;e&&"static"===fe.css(e,"position");)e=e.offsetParent;return e||He})}}),fe.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(e,t){var n="pageYOffset"===t;fe.fn[e]=function(i){return $e(this,function(e,i,o){var r;if(de(e)?r=e:9===e.nodeType&&(r=e.defaultView),void 0===o)return r?r[t]:e[i];r?r.scrollTo(n?r.pageXOffset:o,n?o:r.pageYOffset):e[i]=o},e,i,arguments.length)}}),fe.each(["top","left"],function(e,t){fe.cssHooks[t]=R(ce.pixelPosition,function(e,n){if(n)return n=A(e,t),rt.test(n)?fe(e).position()[t]+"px":n})}),fe.each({Height:"height",Width:"width"},function(e,t){fe.each({padding:"inner"+e,content:t,"":"outer"+e},function(n,i){fe.fn[i]=function(o,r){var s=arguments.length&&(n||"boolean"!=typeof o),a=n||(!0===o||!0===r?"margin":"border");return $e(this,function(t,n,o){var r;return de(t)?0===i.indexOf("outer")?t["inner"+e]:t.document.documentElement["client"+e]:9===t.nodeType?(r=t.documentElement,Math.max(t.body["scroll"+e],r["scroll"+e],t.body["offset"+e],r["offset"+e],r["client"+e])):void 0===o?fe.css(t,n,a):fe.style(t,n,o,a)},t,s?o:void 0,s)}})}),fe.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(e,t){fe.fn[t]=function(e,n){return 0<arguments.length?this.on(t,null,e,n):this.trigger(t)}}),fe.fn.extend({hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)}}),fe.fn.extend({bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,i){return this.on(t,e,n,i)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)}}),fe.proxy=function(e,t){var n,i,o;if("string"==typeof t&&(n=e[t],t=e,e=n),ue(e))return i=ee.call(arguments,2),(o=function(){return e.apply(t||this,i.concat(ee.call(arguments)))}).guid=e.guid=e.guid||fe.guid++,o},fe.holdReady=function(e){e?fe.readyWait++:fe.ready(!0)},fe.isArray=Array.isArray,fe.parseJSON=JSON.parse,fe.nodeName=r,fe.is
vendor: 5,217 bytes, lines 3-4
3Function=ue,fe.isWindow=de,fe.camelCase=p,fe.type=i,fe.now=Date.now,fe.isNumeric=function(e){var t=fe.type(e);return("number"===t||"string"===t)&&!isNaN(e-parseFloat(e))},"function"==typeof define&&define.amd&&define("jquery",[],function(){return fe});var Qt=e.jQuery,Xt=e.$;return fe.noConflict=function(t){return e.$===fe&&(e.$=Xt),t&&e.jQuery===fe&&(e.jQuery=Qt),fe},t||(e.jQuery=e.$=fe),fe}),function(e){function t(){var e=document.createElement("bootstrap"),t={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};for(var n in t)if(void 0!==e.style[n])return{end:t[n]};return!1}e.fn.emulateTransitionEnd=function(t){var n=!1,i=this;e(this).one("bsTransitionEnd",function(){n=!0});var o=function(){n||e(i).trigger(e.support.transition.end)};return setTimeout(o,t),this},e(function(){e.support.transition=t(),e.support.transition&&(e.event.special.bsTransitionEnd={bindType:e.support.transition.end,delegateType:e.support.transition.end,handle:function(t){if(e(t.target).is(this))return t.handleObj.handler.apply(this,arguments)}})})}(jQuery),function(e){function t(t,i){return this.each(function(){var o=e(this),r=o.data("bs.modal"),s=e.extend({},n.DEFAULTS,o.data(),"object"==typeof t&&t);r||o.data("bs.modal",r=new n(this,s)),"string"==typeof t?r[t](i):s.show&&r.show(i)})}var n=function(t,n){this.options=n,this.$body=e(document.body),this.$element=e(t),this.$dialog=this.$element.find(".modal-dialog"),this.$backdrop=null,this.isShown=null,this.originalBodyPad=null,this.scrollbarWidth=0,this.ignoreBackdropClick=!1,this.options.remote&&this.$element.find(".modal-content").load(this.options.remote,e.proxy(function(){this.$element.trigger("loaded.bs.modal")},this))};n.VERSION="3.3.7",n.TRANSITION_DURATION=300,n.BACKDROP_TRANSITION_DURATION=150,n.DEFAULTS={backdrop:!0,keyboard:!0,show:!0},n.prototype.toggle=function(e){return this.isShown?this.hide():this.show(e)},n.prototype.show=function(t){var i=this,o=e.Event("show.bs.modal",{relatedTarget:t});this.$element.trigger(o),this.isShown||o.isDefaultPrevented()||(this.isShown=!0,this.checkScrollbar(),this.setScrollbar(),this.$body.addClass("modal-open"),this.escape(),this.resize(),this.$element.on("click.dismiss.bs.modal",'[data-dismiss="modal"]',e.proxy(this.hide,this)),this.$dialog.on("mousedown.dismiss.bs.modal",function(){i.$element.one("mouseup.dismiss.bs.modal",function(t){e(t.target).is(i.$element)&&(i.ignoreBackdropClick=!0)})}),this.backdrop(function(){var o=e.support.transition&&i.$element.hasClass("fade");i.$element.parent().length||i.$element.appendTo(i.$body),i.$element.show().scrollTop(0),i.adjustDialog(),o&&i.$element[0].offsetWidth,i.$element.addClass("in"),i.enforceFocus();var r=e.Event("shown.bs.modal",{relatedTarget:t});o?i.$dialog.one("bsTransitionEnd",function(){i.$element.trigger("focus").trigger(r) 4}).emulateTransitionEnd(n.TRANSITION_DURATION):i.$element.trigger("focus").trigger(r)}))},n.prototype.hide=function(t){t&&t.preventDefault(),t=e.Event("hide.bs.modal"),this.$element.trigger(t),this.isShown&&!t.isDefaultPrevented()&&(this.isShown=!1,this.escape(),this.resize(),e(document).off("focusin.bs.modal"),this.$element.removeClass("in").off("click.dismiss.bs.modal").off("mouseup.dismiss.bs.modal"),this.$dialog.off("mousedown.dismiss.bs.modal"),e.support.transition&&this.$element.hasClass("fade")?this.$element.one("bsTransitionEnd",e.proxy(this.hideModal,this)).emulateTransitionEnd(n.TRANSITION_DURATION):this.hideModal())},n.prototype.enforceFocus=function(){e(document).off("focusin.bs.modal").on("focusin.bs.modal",e.proxy(function(e){document===e.target||this.$element[0]===e.target||this.$element.has(e.target).length||this.$element.trigger("focus")},this))},n.prototype.escape=function(){this.isShown&&this.options.keyboard?this.$element.on("keydown.dismiss.bs.modal",e.proxy(function(e){27==e.which&&this.hide()},this)):this.isShown||this.$element.off("keydown.dismiss.bs.modal")},n.prototype.resize=function(){this.isShown?e(window).on("resize.bs.modal",e.proxy(this.handleUpdate,this)):e(window).off("resize.bs.modal")},n.prototype.hideModal=function(){var e=this;this.$element.hide(),this.backdrop(function(){e.$body.removeClass("modal-open"),e.resetAdjustments(),e.resetScrollbar(),e.$element.trigger("hidden.bs.modal")})},n.prototype.removeBackdrop=function(){this.$backdrop&&this.$backdrop.remove(),this.$backdrop=null},n.prototype.backdrop=function(t){var i=this,o=this.$element.hasClass("fade")?"fade":"";if(this.isShown&&this.options.backdrop){var r=e.support.transition&&o;if(this.$backdrop=e(document.createElement("div")).addClass("modal-backdrop "+o).appendTo(this.$body),this.$element.on("click.dismiss.bs.modal",e.proxy(function(e){if(this.ignoreBackdropClick)return void(this.ignoreBackdropClick=!1);e.target===e.currentTarget&&("static"==this.options.backdrop?this.$element[0].focus():this.hide())},this)),r&&this.$backdrop[0].offsetWidth,this.$backdrop.addClass("in"),!t)return;r?this.$backdrop.one("bsTransitionEnd",t).emulateTransitionEnd(n.BACKDROP_TRANSITION_DURATION):t()}else if(!this.isShown&&this.$backdrop){this.$backdrop.removeClass("in");var s=function(){i.removeBackdrop(),t&&t()};
4e.support.transition&&this.$element.hasClass("fade")?this.$backdrop.one("bsTransitionEnd",s).emulateTransitionEnd(n.BACKDROP_TRANSITION_DURATION):s()}else t&&t()},n.prototype.handleUpdate=function(){this.adjustDialog()},n.prototype.adjustDialog=function(){var e=this.$element[0].scrollHeight>document.documentElement.clientHeight;this.$element.css({paddingLeft:!this.bodyIsOverflowing&&e?this.scrollbarWidth:"",paddingRight:this.bodyIsOverflowing&&!e?this.scrollbarWidth:""})},n.prototype.resetAdjustments=function(){this.$element.css({paddingLeft:"",paddingRight:""})},n.prototype.checkScrollbar=function(){var e=window.innerWidth;if(!e){var t=document.documentElement.getBoundingClientRect();e=t.right-Math.abs(t.left)}this.bodyIsOverflowing=document.body.clientWidth<e,this.scrollbarWidth=this.measureScrollbar()},n.prototype.setScrollbar=function(){var e=parseInt(this.$body.css("padding-right")||0,10);this.originalBodyPad=document.body.style.paddingRight||"",this.bodyIsOverflowing&&this.$body.css("padding-right",e+this.scrollbarWidth)},n.prototype.resetScrollbar=function(){this.$body.css("padding-right",this.originalBodyPad)},n.prototype.measureScrollbar=function(){var e=document.createElement("div");e.className="modal-scrollbar-measure",this.$body.append(e);var t=e.offsetWidth-e.clientWidth;return this.$body[0].removeChild(e),t};var i=e.fn.modal;e.fn.modal=t,e.fn.modal.Constructor=n,e.fn.modal.noConflict=function(){return e.fn.modal=i,this},e(document).on("click.bs.modal.data-api",'[data-toggle="modal"]',function(n){var i=e(this),o=i.attr("href"),r=e(i.attr("data-target")||o&&o.replace(/.*(?=#[^\s]+$)/,"")),s=r.data("bs.modal")?"toggle":e.extend({remote:!/#/.test(o)&&o},r.data(),i.data());i.is("a")&&n.preventDefault(),r.one("show.bs.modal",function(e){e.isDefaultPrevented()||r.one("hidden.bs.modal",function(){i.is(":visible")&&i.trigger("focus")})}),t.call(r,s,this)})}(jQuery),function(e){function t(t){return this.each(function(){var i=e(this),o=i.data("bs.tab");o||i.data("bs.tab",o=new n(this)),"string"==typeof t&&o[t]()})}var n=function(t){this.element=e(t)};n.VERSION="3.3.7",n.TRANSITION_DURATION=150,n.prototype.show=function(){var t=this.element,n=t.closest("ul:not(.dropdown-menu)"),i=t.data("target");if(i||(i=t.attr("href"),i=i&&i.replace(/.*(?=#[^\s]*$)/,"")),!t.parent("li").hasClass("active")){var o=n.find(".active:last a"),r=e.Event("hide.bs.tab",{relatedTarget:t[0]}),s=e.Event("show.bs.tab",{relatedTarget:o[0]});if(o.trigger(r),t.trigger(s),!s.isDefaultPrevented()&&!r.isDefaultPrevented()){var a=e(i);this.activate(t.closest("li"),n),this.activate(a,a.parent(),function(){o.trigger({type:"hidden.bs.tab",relatedTarget:t[0]}),t.trigger({type:"shown.bs.tab",relatedTarget:o[0]})})}}},n.prototype.activate=function(t,i,o){function r(){s.removeClass("active").find("> .dropdown-menu > .active").removeClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!1),t.addClass("active").find('[data-toggle="tab"]').attr("aria-expanded",!0),a?(t[0].offsetWidth,t.addClass("in")):t.removeClass("fade"),t.parent(".dropdown-menu").length&&t.closest("li.dropdown").addClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!0),o&&o()}var s=i.find("> .active"),a=o&&e.support.transition&&(s.length&&s.hasClass("fade")||!!i.find("> .fade").length);s.length&&a?s.one("bsTransitionEnd",r).emulateTransitionEnd(n.TRANSITION_DURATION):r(),s.removeClass("in")};var i=e.fn.tab;e.fn.tab=t,e.fn.tab.Constructor=n,e.fn.tab.noConflict=function(){return e.fn.tab=i,this};var o=function(n){n.preventDefault(),t.call(e(this),"show")};e(document).on("click.bs.tab.data-api",'[data-toggle="tab"]',o).on("click.bs.tab.data-api",'[data-toggle="pill"]',o)}(jQuery),function(e){function t(t){var n,i=t.attr("data-target")||(n=t.attr("href"))&&n.replace(/.*(?=#[^\s]+$)/,"");return e(document).find(i)}function n(t){return this.each(function(){var n=e(this),o=n.data("bs.collapse"),r=e.extend({},i.DEFAULTS,n.data(),"object"==typeof t&&t);!o&&r.toggle&&/show|hide/.test(t)&&(r.toggle=!1),o||n.data("bs.collapse",o=new i(this,r)),"string"==typeof t&&o[t]()})}var i=function(t,n){this.$element=e(t),this.options=e.extend({},i.DEFAULTS,n),this.$trigger=e('[data-toggle="collapse"][href="#'+t.id+'"],[data-toggle="collapse"][data-target="#'+t.id+'"]'),this.transitioning=null,this.options.parent?this.$parent=this.getParent():this.addAriaAndCollapsedClass(this.$element,this.$trigger),this.options.toggle&&this.toggle()};i.VERSION="3.4.1",i.TRANSITION_DURATION=350,i.DEFAULTS={toggle:!0},i.prototype.dimension=function(){return this.$element.hasClass("width")?"width":"height"},i.prototype.show=function(){if(!this.transitioning&&!this.$element.hasClass("in")){var t,o=this.$parent&&this.$parent.children(".panel").children(".in, .collapsing");if(!(o&&o.length&&(t=o.data("bs.collapse"))&&t.transitioning)){var r=e.Event("show.bs.collapse");if(this.$element.trigger(r),!r.isDefaultPrevented()){o&&o.length&&(n.call(o,"hide"),t||o.data("bs.collapse",null));var s=this.dimension();this.$element.removeClass("collapse").addClass("collapsing")[s](0).attr("aria-expanded",!0),this.$trigger.removeClass("collapsed").attr("aria-expanded",!0),this.transitioning=1;var a=function(){this.$element.removeClass("collapsing").addClass("collapse in")[s](""),this.transitioning=0,this.$element.trigger("shown.bs.collapse")};if(!e.support.transition)return a.call(this);var l=e.camelCase(["scroll",s].join("-"));this.$element.one("bsTransitionEnd",e.proxy(a,this)).emulateTransitionEnd(i.TRANSITION_DURATION)[s](this.$element[0][l])}}}},i.prototype.hide=function(){if(!this.transitioning&&this.$element.hasClass("in")){var t=e.Event("hide.bs.collapse");if(this.$element.trigger(t),!t.isDefaultPrevented()){var n=this.dimension();this.$element[n](this.$element[n]())[0].offsetHeight,this.$element.addClass("collapsing").removeClass("collapse in").attr("aria-expanded",!1),this.$trigger.addClass("collapsed").attr("aria-expanded",!1),this.transitioning=1;var o=function(){this.transitioning=0,this.$element.removeClass("collapsing").addClass("collapse").trigger("hidden.bs.collapse")};if(!e.support.transition)return o.call(this);this.$element[n](0).one("bsTransitionEnd",e.proxy(o,this)).emulateTransitionEnd(i.TRANSITION_DURATION)}}},i.prototype.toggle=function(){this[this.$element.hasClass("in")?"hide":"show"]()},i.prototype.getParent=function(){return e(document).find(this.options.parent).find('[data-toggle="collapse"][data-parent="'+this.options.parent+'"]').each(e.proxy(function(n,i){var o=e(i);this.addAriaAndCollapsedClass(t(o),o)},this)).end()},i.prototype.addAriaAndCollapsedClass=function(e,t){var n=e.hasClass("in");e.attr("aria-expanded",n),t.toggleClass("collapsed",!n).attr("aria-expanded",n)};var o=e.fn.collapse;e.fn.collapse=n,e.fn.collapse.Constructor=i,e.fn.collapse.noConflict=function(){return e.fn.collapse=o,this},e(document).on("click.bs.collapse.data-api",'[data-toggle="collapse"]',function(i){var o=e(this);o.attr("data-target")||i.preventDefault();var r=t(o),s=r.data("bs.collapse"),a=s?"toggle":o.data();n.call(r,a)})}(jQuery),function(e,t,n,i){function o(t,n){this.settings=null,this.options=e.extend({},o.Defaults,n),this.$element=e(t),this._handlers={},this._plugins={},this._supress={},this._current=null,this._speed=null,this._coordinates=[],this._breakpoint=null,this._width=null,this._items=[],this._clones=[],this._mergers=[],this._widths=[],this._invalidated={},this._pipe=[],this._drag={time:null,target:null,pointer:null,stage:{start:null,current:null},direction:null},this._states={current:{},tags:{initializing:["busy"],animating:["busy"],dragging:["interacting"]}},e.each(["onResize","onThrottledResize"],e.proxy(function(t,n){this._handlers[n]=e.proxy(this[n],this)},this)),e.each(o.Plugins,e.proxy(function(e,t){this._plugins[e.charAt(0).toLowerCase()+e.slice(1)]=new t(this)},this)),e.each(o.Workers,e.proxy(function(t,n){this._pipe.push({filter:n.filter,run:e.proxy(n.run,this)})},this)),this.setup(),this.initialize()}o.Defaults={items:3,loop:!1,center:!1,rewind:!1,checkVisibility:!0,mouseDrag:!0,touchDrag:!0,pullDrag:!0,freeDrag:!1,margin:0,stagePadding:0,merge:!1,mergeFit:!0,autoWidth:!1,startPosition:0,rtl:!1,smartSpeed:250,fluidSpeed:!1,dragEndSpeed:!1,responsive:{},responsiveRefreshRate:200,responsiveBaseElement:t,fallbackEasing:"swing",slideTransition:"",info:!1,nestedItemSelector:!1,itemElement:"div",stageElement:"div",refreshClass:"owl-refresh",loadedClass:"owl-loaded",loadingClass:"owl-loading",rtlClass:"owl-rtl",responsiveClass:"owl-responsive",dragClass:"owl-drag",itemClass:"owl-item",stageClass:"owl-stage",stageOuterClass:"owl-stage-outer",grabClass:"owl-grab"},o.Width={Default:"default",Inner:"inner",Outer:"outer"},o.Type={Event:"event",State:"state"},o.Plugins={},o.Workers=[{filter:["width","settings"],run:function(){this._width=this.$element.width()}},{filter:["width","items","settings"],run:function(e){e.current=this._items&&this._items[this.relative(this._current)]}},{filter:["items","settings"],run:function(){this.$stage.children(".cloned").remove()}},{filter:["width","items","settings"],run:function(e){var t=this.settings.margin||"",n=!this.settings.autoWidth,i=this.settings.rtl,o={width:"auto","margin-left":i?t:"","margin-right":i?"":t};!n&&this.$stage.children().css(o),e.css=o}},{filter:["width","items","settings"],run:function(e){var t=(this.width()/this.settings.items).toFixed(3)-this.settings.margin,n=null,i=this._items.length,o=!this.settings.autoWidth,r=[];for(e.items={merge:!1,width:t};i--;)n=this._mergers[i],n=this.settings.mergeFit&&Math.min(n,this.settings.items)||n,e.items.merge=n>1||e.items.merge,r[i]=o?t*n:this._items[i].width();this._widths=r}},{filter:["items","settings"],run:function(){var t=[],n=this._items,i=this.settings,o=Math.max(2*i.items,4),r=2*Math.ceil(n.length/2),s=i.loop&&n.length?i.rewind?o:Math.max(o,r):0,a="",l="";for(s/=2;s>0;)t.push(this.normalize(t.length/2,!0)),a+=n[t[t.length-1]][0].outerHTML,t.push(this.normalize(n.length-1-(t.length-1)/2,!0)),l=n[t[t.length-1]][0].outerHTML+l,s-=1;this._clones=t,e(a).addClass("cloned").appendTo(this.$stage),e(l).addClass("cloned").prependTo(this.$stage)}},{filter:["width","items","settings"],run:function(){for(var e=this.settings.rtl?1:-1,t=this._clones.length+this._items.length,n=-1,i=0,o=0,r=[];++n<t;)i=r[n-1]||0,o=this._widths[this.relative(n)]+this.settings.margin,r.push(i+o*e);this._coordinates=r}},{filter:["width","items","settings"],run:function(){var e=this.settings.stagePadding,t=this._coordinates,n={width:Math.ceil(Math.abs(t[t.length-1]))+2*e,"padding-left":e||"","padding-right":e||""};this.$stage.css(n)}},{filter:["width","items","settings"],run:function(e){var t=this._coordinates.length,n=!this.settings.autoWidth,i=this.$stage.children();if(n&&e.items.merge)for(;t--;)e.css.width=this._widths[this.relative(t)],i.eq(t).css(e.css);else n&&(e.css.width=e.items.width,i.css(e.css))}},{filter:["items"],run:function(){this._coordinates.length<1&&this.$stage.removeAttr("style")}},{filter:["width","items","settings"],run:function(e){e.current=e.current?this.$stage.children().index(e.current):0,e.current=Math.max(this.minimum(),Math.min(this.maximum(),e.current)),this.reset(e.current)}},{filter:["position"],run:function(){this.animate(this.coordinates(this._current))}},{filter:["width","position","items","settings"],run:function(){var e,t,n,i,o=this.settings.rtl?1:-1,r=2*this.settings.stagePadding,s=this.coordinates(this.current())+r,a=s+this.width()*o,l=[];for(n=0,i=this._coordinates.length;n<i;n++)e=this._coordinates[n-1]||0,t=Math.abs(this._coordinates[n])+r*o,(this.op(e,"<=",s)&&this.op(e,">",a)||this.op(t,"<",s)&&this.op(t,">",a))&&l.push(n);this.$stage.children(".active").removeClass("active"),this.$stage.children(":eq("+l.join("), :eq(")+")").addClass("active"),this.$stage.children(".center").removeClass("center"),this.settings.center&&this.$stage.children().eq(this.current()).addClass("center")}}],o.prototype.initializeStage=function(){this.$stage=this.$element.find("."+this.settings.stageClass),this.$stage.length||(this.$element.addClass(this.options.loadingClass),this.$stage=e("<"+this.settings.stageElement+">",{class:this.settings.stageClass}).wrap(e("<div/>",{class:this.settings.stageOuterClass})),this.$element.append(this.$stage.parent()))},o.prototype.initializeItems=function(){var t=this.$element.find(".owl-item");if(t.length)return this._items=t.get().map(function(t){return e(t)}),this._mergers=this._items.map(function(){return 1}),void this.refresh();this.replace(this.$element.children().not(this.$stage.parent())),this.isVisible()?this.refresh():this.invalidate("width"),this.$element.removeClass(this.options.loadingClass).addClass(this.options.loadedClass)},o.prototype.initialize=function(){if(this.enter("initializing"),this.trigger("initialize"),this.$element.toggleClass(this.settings.rtlClass,this.settings.rtl),this.settings.autoWidth&&!this.is("pre-loading")){var e,t,n;e=this.$element.find("img"),t=this.settings.nestedItemSelector?"."+this.settings.nestedItemSelector:void 0,n=this.$element.children(t).width(),e.length&&n<=0&&this.preloadAutoWidthImages(e)}this.initializeStage(),this.initializeItems(),this.registerEventHandlers(),this.leave("initializing"),this.trigger("initialized")},o.prototype.isVisible=function(){return!this.settings.checkVisibility||this.$element.is(":visible")},o.prototype.setup=function(){var t=this.viewport(),n=this.options.responsive,i=-1,o=null;n?(e.each(n,function(e){e<=t&&e>i&&(i=Number(e))}),o=e.extend({},this.options,n[i]),"function"==typeof o.stagePadding&&(o.stagePadding=o.stagePadding()),delete o.responsive,o.responsiveClass&&this.$element.attr("class",this.$element.attr("class").replace(new RegExp("("+this.options.responsiveClass+"-)\\S+\\s","g"),"$1"+i))):o=e.extend({},this.options),this.trigger("change",{property:{name:"settings",value:o}}),this._breakpoint=i,this.settings=o,this.invalidate("settings"),this.trigger("changed",{property:{name:"settings",value:this.settings}})},o.prototype.optionsLogic=function(){this.settings.autoWidth&&(this.settings.stagePadding=!1,this.settings.merge=!1)},o.prototype.prepare=function(t){var n=this.trigger("prepare",{content:t});return n.data||(n.data=e("<"+this.settings.itemElement+"/>").addClass(this.options.itemClass).append(t)),this.trigger("prepared",{content:n.data}),n.data},o.prototype.update=function(){for(var t=0,n=this._pipe.length,i=e.proxy(function(e){return this[e]},this._invalidated),o={};t<n;)(this._invalidated.all||e.grep(this._pipe[t].filter,i).length>0)&&this._pipe[t].run(o),t++;this._invalidated={},!this.is("valid")&&this.enter("valid")},o.prototype.width=function(e){switch(e=e||o.Width.Default){case o.Width.Inner:case o.Width.Outer:return this._width;default:return this._width-2*this.settings.stagePadding+this.settings.margin}},o.prototype.refresh=function(){this.enter("refreshing"),this.trigger("refresh"),this.setup(),this.optionsLogic(),this.$element.addClass(this.options.refreshClass),this.update(),this.$element.removeClass(this.options.refreshClass),this.leave("refreshing"),this.trigger("refreshed")},o.prototype.onThrottledResize=function(){t.clearTimeout(this.resizeTimer),this.resizeTimer=t.setTimeout(this._handlers.onResize,this.settings.responsiveRefreshRate)},o.prototype.onResize=function(){return!!this._items.length&&(this._width!==this.$element.width()&&(!!this.isVisible()&&(this.enter("resizing"),this.trigger("resize").isDefaultPrevented()?(this.leave("resizing"),!1):(this.invalidate("width"),this.refresh(),this.leave("resizing"),void this.trigger("resized")))))},o.prototype.registerEventHandlers=function(){e.support.transition&&this.$stage.on(e.support.transition.end+".owl.core",e.proxy(this.onTransitionEnd,this)),!1!==this.settings.responsive&&this.on(t,"resize",this._handlers.onThrottledResize),this.settings.mouseDrag&&(this.$element.addClass(this.options.dragClass),this.$stage.on("mousedown.owl.core",e.proxy(this.onDragStart,this)),this.$stage.on("dragstart.owl.core selectstart.owl.core",function(){return!1})),this.settings.touchDrag&&(this.$stage.on("touchstart.owl.core",e.proxy(this.onDragStart,this)),this.$stage.on("touchcancel.owl.core",e.proxy(this.onDragEnd,this)))},o.prototype.onDragStart=function(t){var i=null;3!==t.which&&(e.support.transform?(i=this.$stage.css("transform").replace(/.*\(|\)| /g,"").split(","),i={x:i[16===i.
vendor: 5,967 bytes, line 4
4length?12:4],y:i[16===i.length?13:5]}):(i=this.$stage.position(),i={x:this.settings.rtl?i.left+this.$stage.width()-this.width()+this.settings.margin:i.left,y:i.top}),this.is("animating")&&(e.support.transform?this.animate(i.x):this.$stage.stop(),this.invalidate("position")),this.$element.toggleClass(this.options.grabClass,"mousedown"===t.type),this.speed(0),this._drag.time=(new Date).getTime(),this._drag.target=e(t.target),this._drag.stage.start=i,this._drag.stage.current=i,this._drag.pointer=this.pointer(t),e(n).on("mouseup.owl.core touchend.owl.core",e.proxy(this.onDragEnd,this)),e(n).one("mousemove.owl.core touchmove.owl.core",e.proxy(function(t){var i=this.difference(this._drag.pointer,this.pointer(t));e(n).on("mousemove.owl.core touchmove.owl.core",e.proxy(this.onDragMove,this)),Math.abs(i.x)<Math.abs(i.y)&&this.is("valid")||(t.preventDefault(),this.enter("dragging"),this.trigger("drag"))},this)))},o.prototype.onDragMove=function(e){var t=null,n=null,i=null,o=this.difference(this._drag.pointer,this.pointer(e)),r=this.difference(this._drag.stage.start,o);this.is("dragging")&&(e.preventDefault(),this.settings.loop?(t=this.coordinates(this.minimum()),n=this.coordinates(this.maximum()+1)-t,r.x=((r.x-t)%n+n)%n+t):(t=this.settings.rtl?this.coordinates(this.maximum()):this.coordinates(this.minimum()),n=this.settings.rtl?this.coordinates(this.minimum()):this.coordinates(this.maximum()),i=this.settings.pullDrag?-1*o.x/5:0,r.x=Math.max(Math.min(r.x,t+i),n+i)),this._drag.stage.current=r,this.animate(r.x))},o.prototype.onDragEnd=function(t){var i=this.difference(this._drag.pointer,this.pointer(t)),o=this._drag.stage.current,r=i.x>0^this.settings.rtl?"left":"right";e(n).off(".owl.core"),this.$element.removeClass(this.options.grabClass),(0!==i.x&&this.is("dragging")||!this.is("valid"))&&(this.speed(this.settings.dragEndSpeed||this.settings.smartSpeed),this.current(this.closest(o.x,0!==i.x?r:this._drag.direction)),this.invalidate("position"),this.update(),this._drag.direction=r,(Math.abs(i.x)>3||(new Date).getTime()-this._drag.time>300)&&this._drag.target.one("click.owl.core",function(){return!1})),this.is("dragging")&&(this.leave("dragging"),this.trigger("dragged"))},o.prototype.closest=function(t,n){var i=-1,o=this.width(),r=this.coordinates();return this.settings.freeDrag||e.each(r,e.proxy(function(e,s){return"left"===n&&t>s-30&&t<s+30?i=e:"right"===n&&t>s-o-30&&t<s-o+30?i=e+1:this.op(t,"<",s)&&this.op(t,">",void 0!==r[e+1]?r[e+1]:s-o)&&(i="left"===n?e+1:e),-1===i},this)),this.settings.loop||(this.op(t,">",r[this.minimum()])?i=t=this.minimum():this.op(t,"<",r[this.maximum()])&&(i=t=this.maximum())),i},o.prototype.animate=function(t){var n=this.speed()>0;this.is("animating")&&this.onTransitionEnd(),n&&(this.enter("animating"),this.trigger("translate")),e.support.transform3d&&e.support.transition?this.$stage.css({transform:"translate3d("+t+"px,0px,0px)",transition:this.speed()/1e3+"s"+(this.settings.slideTransition?" "+this.settings.slideTransition:"")}):n?this.$stage.animate({left:t+"px"},this.speed(),this.settings.fallbackEasing,e.proxy(this.onTransitionEnd,this)):this.$stage.css({left:t+"px"})},o.prototype.is=function(e){return this._states.current[e]&&this._states.current[e]>0},o.prototype.current=function(e){if(void 0===e)return this._current;if(0!==this._items.length){if(e=this.normalize(e),this._current!==e){var t=this.trigger("change",{property:{name:"position",value:e}});void 0!==t.data&&(e=this.normalize(t.data)),this._current=e,this.invalidate("position"),this.trigger("changed",{property:{name:"position",value:this._current}})}return this._current}},o.prototype.invalidate=function(t){return"string"===e.type(t)&&(this._invalidated[t]=!0,this.is("valid")&&this.leave("valid")),e.map(this._invalidated,function(e,t){return t})},o.prototype.reset=function(e){void 0!==(e=this.normalize(e))&&(this._speed=0,this._current=e,this.suppress(["translate","translated"]),this.animate(this.coordinates(e)),this.release(["translate","translated"]))},o.prototype.normalize=function(e,t){var n=this._items.length,i=t?0:this._clones.length;return!this.isNumeric(e)||n<1?e=void 0:(e<0||e>=n+i)&&(e=((e-i/2)%n+n)%n+i/2),e},o.prototype.relative=function(e){return e-=this._clones.length/2,this.normalize(e,!0)},o.prototype.maximum=function(e){var t,n,i,o=this.settings,r=this._coordinates.length;if(o.loop)r=this._clones.length/2+this._items.length-1;else if(o.autoWidth||o.merge){if(t=this._items.length)for(n=this._items[--t].width(),i=this.$element.width();t--&&!((n+=this._items[t].width()+this.settings.margin)>i););r=t+1}else r=o.center?this._items.length-1:this._items.length-o.items;return e&&(r-=this._clones.length/2),Math.max(r,0)},o.prototype.minimum=function(e){return e?0:this._clones.length/2},o.prototype.items=function(e){return void 0===e?this._items.slice():(e=this.normalize(e,!0),this._items[e])},o.prototype.mergers=function(e){return void 0===e?this._mergers.slice():(e=this.normalize(e,!0),this._mergers[e])},o.prototype.clones=function(t){var n=this._clones.length/2,i=n+this._items.length,o=function(e){return e%2==0?i+e/2:n-(e+1)/2};return void 0===t?e.map(this._clones,function(e,t){return o(t)}):e.map(this._clones,function(e,n){return e===t?o(n):null})},o.prototype.speed=function(e){return void 0!==e&&(this._speed=e),this._speed},o.prototype.coordinates=function(t){var n,i=1,o=t-1;return void 0===t?e.map(this._coordinates,e.proxy(function(e,t){return this.coordinates(t)},this)):(this.settings.center?(this.settings.rtl&&(i=-1,o=t+1),n=this._coordinates[t],n+=(this.width()-n+(this._coordinates[o]||0))/2*i):n=this._coordinates[o]||0,n=Math.ceil(n))},o.prototype.duration=function(e,t,n){return 0===n?0:Math.min(Math.max(Math.abs(t-e),1),6)*Math.abs(n||this.settings.smartSpeed)},o.prototype.to=function(e,t){var n=this.current(),i=null,o=e-this.relative(n),r=(o>0)-(o<0),s=this._items.length,a=this.minimum(),l=this.maximum();this.settings.loop?(!this.settings.rewind&&Math.abs(o)>
vendor: 25,236 bytes, lines 4-5
4s/2&&(o+=-1*r*s),e=n+o,(i=((e-a)%s+s)%s+a)!==e&&i-o<=l&&i-o>0&&(n=i-o,e=i,this.reset(n))):this.settings.rewind?(l+=1,e=(e%l+l)%l):e=Math.max(a,Math.min(l,e)),this.speed(this.duration(n,e,t)),this.current(e),this.isVisible()&&this.update()},o.prototype.next=function(e){e=e||!1,this.to(this.relative(this.current())+1,e)},o.prototype.prev=function(e){e=e||!1,this.to(this.relative(this.current())-1,e)},o.prototype.onTransitionEnd=function(e){if(void 0!==e&&(e.stopPropagation(),(e.target||e.srcElement||e.originalTarget)!==this.$stage.get(0)))return!1;this.leave("animating"),this.trigger("translated")},o.prototype.viewport=function(){var i;return this.options.responsiveBaseElement!==t?i=e(this.options.responsiveBaseElement).width():t.innerWidth?i=t.innerWidth:n.documentElement&&n.documentElement.clientWidth?i=n.documentElement.clientWidth:console.warn("Can not detect viewport width."),i},o.prototype.replace=function(t){this.$stage.empty(),this._items=[],t&&(t=t instanceof jQuery?t:e(t)),this.settings.nestedItemSelector&&(t=t.find("."+this.settings.nestedItemSelector)),t.filter(function(){return 1===this.nodeType}).each(e.proxy(function(e,t){t=this.prepare(t),this.$stage.append(t),this._items.push(t),this._mergers.push(1*t.find("[data-merge]").addBack("[data-merge]").attr("data-merge")||1)},this)),this.reset(this.isNumeric(this.settings.startPosition)?this.settings.startPosition:0),this.invalidate("items")},o.prototype.add=function(t,n){var i=this.relative(this._current);n=void 0===n?this._items.length:this.normalize(n,!0),t=t instanceof jQuery?t:e(t),this.trigger("add",{content:t,position:n}),t=this.prepare(t),0===this._items.length||n===this._items.length?(0===this._items.length&&this.$stage.append(t),0!==this._items.length&&this._items[n-1].after(t),this._items.push(t),this._mergers.push(1*t.find("[data-merge]").addBack("[data-merge]").attr("data-merge")||1)):(this._items[n].before(t),this._items.splice(n,0,t),this._mergers.splice(n,0,1*t.find("[data-merge]").addBack("[data-merge]").attr("data-merge")||1)),this._items[i]&&this.reset(this._items[i].index()),this.invalidate("items"),this.trigger("added",{content:t,position:n})},o.prototype.remove=function(e){void 0!==(e=this.normalize(e,!0))&&(this.trigger("remove",{content:this._items[e],position:e}),this._items[e].remove(),this._items.splice(e,1),this._mergers.splice(e,1),this.invalidate("items"),this.trigger("removed",{content:null,position:e}))},o.prototype.preloadAutoWidthImages=function(t){t.each(e.proxy(function(t,n){this.enter("pre-loading"),n=e(n),e(new Image).one("load",e.proxy(function(e){n.attr("src",e.target.src),n.css("opacity",1),this.leave("pre-loading"),!this.is("pre-loading")&&!this.is("initializing")&&this.refresh()},this)).attr("src",n.attr("src")||n.attr("data-src")||n.attr("data-src-retina"))},this))},o.prototype.destroy=function(){this.$element.off(".owl.core"),this.$stage.off(".owl.core"),e(n).off(".owl.core"),!1!==this.settings.responsive&&(t.clearTimeout(this.resizeTimer),this.off(t,"resize",this._handlers.onThrottledResize));for(var i in this._plugins)this._plugins[i].destroy();this.$stage.children(".cloned").remove(),this.$stage.unwrap(),this.$stage.children().contents().unwrap(),this.$stage.children().unwrap(),this.$stage.remove(),this.$element.removeClass(this.options.refreshClass).removeClass(this.options.loadingClass).removeClass(this.options.loadedClass).removeClass(this.options.rtlClass).removeClass(this.options.dragClass).removeClass(this.options.grabClass).attr("class",this.$element.attr("class").replace(new RegExp(this.options.responsiveClass+"-\\S+\\s","g"),"")).removeData("owl.carousel")},o.prototype.op=function(e,t,n){var i=this.settings.rtl;switch(t){case"<":return i?e>n:e<n;case">":return i?e<n:e>n;case">=":return i?e<=n:e>=n;case"<=":return i?e>=n:e<=n}},o.prototype.on=function(e,t,n,i){e.addEventListener?e.addEventListener(t,n,i):e.attachEvent&&e.attachEvent("on"+t,n)},o.prototype.off=function(e,t,n,i){e.removeEventListener?e.removeEventListener(t,n,i):e.detachEvent&&e.detachEvent("on"+t,n)},o.prototype.trigger=function(t,n,i,r,s){var a={item:{count:this._items.length,index:this.current()}},l=e.camelCase(e.grep(["on",t,i],function(e){return e}).join("-").toLowerCase()),c=e.Event([t,"owl",i||"carousel"].join(".").toLowerCase(),e.extend({relatedTarget:this},a,n));return this._supress[t]||(e.each(this._plugins,function(e,t){t.onTrigger&&t.onTrigger(c)}),this.register({type:o.Type.Event,name:t}),this.$element.trigger(c),this.settings&&"function"==typeof this.settings[l]&&this.settings[l].call(this,c)),c},o.prototype.enter=function(t){e.each([t].concat(this._states.tags[t]||[]),e.proxy(function(e,t){void 0===this._states.current[t]&&(this._states.current[t]=0),this._states.current[t]++},this))},o.prototype.leave=function(t){e.each([t].concat(this._states.tags[t]||[]),e.proxy(function(e,t){this._states.current[t]--},this))},o.prototype.register=function(t){if(t.type===o.Type.Event){if(e.event.special[t.name]||(e.event.special[t.name]={}),!e.event.special[t.name].owl){var n=e.event.special[t.name]._default;e.event.special[t.name]._default=function(e){return!n||!n.apply||e.namespace&&-1!==e.namespace.indexOf("owl")?e.namespace&&e.namespace.indexOf("owl")>-1:n.apply(this,arguments)},e.event.special[t.name].owl=!0}}else t.type===o.Type.State&&(this._states.tags[t.name]?this._states.tags[t.name]=this._states.tags[t.name].concat(t.tags):this._states.tags[t.name]=t.tags,this._states.tags[t.name]=e.grep(this._states.tags[t.name],e.proxy(function(n,i){return e.inArray(n,this._states.tags[t.name])===i},this)))},o.prototype.suppress=function(t){e.each(t,e.proxy(function(e,t){this._supress[t]=!0},this))},o.prototype.release=function(t){e.each(t,e.proxy(function(e,t){delete this._supress[t]},this))},o.prototype.pointer=function(e){var n={x:null,y:null};return e=e.originalEvent||e||t.event,e=e.touches&&e.touches.length?e.touches[0]:e.changedTouches&&e.changedTouches.length?e.changedTouches[0]:e,e.pageX?(n.x=e.pageX,n.y=e.pageY):(n.x=e.clientX,n.y=e.clientY),n},o.prototype.isNumeric=function(e){return!isNaN(parseFloat(e))},o.prototype.difference=function(e,t){return{x:e.x-t.x,y:e.y-t.y}},e.fn.owlCarousel=function(t){var n=Array.prototype.slice.call(arguments,1);return this.each(function(){var i=e(this),r=i.data("owl.carousel");r||(r=new o(this,"object"==typeof t&&t),i.data("owl.carousel",r),e.each(["next","prev","to","destroy","refresh","replace","add","remove"],function(t,n){r.register({type:o.Type.Event,name:n}),r.$element.on(n+".owl.carousel.core",e.proxy(function(e){e.namespace&&e.relatedTarget!==this&&(this.suppress([n]),r[n].apply(this,[].slice.call(arguments,1)),this.release([n]))},r))})),"string"==typeof t&&"_"!==t.charAt(0)&&r[t].apply(r,n)})},e.fn.owlCarousel.Constructor=o}(window.Zepto||window.jQuery,window,document),function(e,t,n,i){var o=function(t){this._core=t,this._interval=null,this._visible=null,this._handlers={"initialized.owl.carousel":e.proxy(function(e){e.namespace&&this._core.settings.autoRefresh&&this.watch()},this)},this._core.options=e.extend({},o.Defaults,this._core.options),this._core.$element.on(this._handlers)};o.Defaults={autoRefresh:!0,autoRefreshInterval:500},o.prototype.watch=function(){this._interval||(this._visible=this._core.isVisible(), 5this._interval=t.setInterval(e.proxy(this.refresh,this),this._core.settings.autoRefreshInterval))},o.prototype.refresh=function(){this._core.isVisible()!==this._visible&&(this._visible=!this._visible,this._core.$element.toggleClass("owl-hidden",!this._visible),this._visible&&this._core.invalidate("width")&&this._core.refresh())},o.prototype.destroy=function(){var e,n;t.clearInterval(this._interval);for(e in this._handlers)this._core.$element.off(e,this._handlers[e]);for(n in Object.getOwnPropertyNames(this))"function"!=typeof this[n]&&(this[n]=null)},e.fn.owlCarousel.Constructor.Plugins.AutoRefresh=o}(window.Zepto||window.jQuery,window,document),function(e,t,n,i){var o=function(t){this._core=t,this._loaded=[],this._handlers={"initialized.owl.carousel change.owl.carousel resized.owl.carousel":e.proxy(function(t){if(t.namespace&&this._core.settings&&this._core.settings.lazyLoad&&(t.property&&"position"==t.property.name||"initialized"==t.type)){var n=this._core.settings,i=n.center&&Math.ceil(n.items/2)||n.items,o=n.center&&-1*i||0,r=(t.property&&void 0!==t.property.value?t.property.value:this._core.current())+o,s=this._core.clones().length,a=e.proxy(function(e,t){this.load(t)},this);for(n.lazyLoadEager>0&&(i+=n.lazyLoadEager,n.loop&&(r-=n.lazyLoadEager,i++));o++<i;)this.load(s/2+this._core.relative(r)),s&&e.each(this._core.clones(this._core.relative(r)),a),r++}},this)},this._core.options=e.extend({},o.Defaults,this._core.options),this._core.$element.on(this._handlers)};o.Defaults={lazyLoad:!1,lazyLoadEager:0},o.prototype.load=function(n){var i=this._core.$stage.children().eq(n),o=i&&i.find(".owl-lazy");!o||e.inArray(i.get(0),this._loaded)>-1||(o.each(e.proxy(function(n,i){var o,r=e(i),s=t.devicePixelRatio>1&&r.attr("data-src-retina")||r.attr("data-src")||r.attr("data-srcset");this._core.trigger("load",{element:r,url:s},"lazy"),r.is("img")?r.one("load.owl.lazy",e.proxy(function(){r.css("opacity",1),this._core.trigger("loaded",{element:r,url:s},"lazy")},this)).attr("src",s):r.is("source")?r.one("load.owl.lazy",e.proxy(function(){this._core.trigger("loaded",{element:r,url:s},"lazy")},this)).attr("srcset",s):(o=new Image,o.onload=e.proxy(function(){r.css({"background-image":'url("'+s+'")',opacity:"1"}),this._core.trigger("loaded",{element:r,url:s},"lazy")},this),o.src=s)},this)),this._loaded.push(i.get(0)))},o.prototype.destroy=function(){var e,t;for(e in this.handlers)this._core.$element.off(e,this.handlers[e]);for(t in Object.getOwnPropertyNames(this))"function"!=typeof this[t]&&(this[t]=null)},e.fn.owlCarousel.Constructor.Plugins.Lazy=o}(window.Zepto||window.jQuery,window,document),function(e,t,n,i){var o=function(n){this._core=n,this._previousHeight=null,this._handlers={"initialized.owl.carousel refreshed.owl.carousel":e.proxy(function(e){e.namespace&&this._core.settings.autoHeight&&this.update()},this),"changed.owl.carousel":e.proxy(function(e){e.namespace&&this._core.settings.autoHeight&&"position"===e.property.name&&this.update()},this),"loaded.owl.lazy":e.proxy(function(e){e.namespace&&this._core.settings.autoHeight&&e.element.closest("."+this._core.settings.itemClass).index()===this._core.current()&&this.update()},this)},this._core.options=e.extend({},o.Defaults,this._core.options),this._core.$element.on(this._handlers),this._intervalId=null;var i=this;e(t).on("load",function(){i._core.settings.autoHeight&&i.update()}),e(t).resize(function(){i._core.settings.autoHeight&&(null!=i._intervalId&&clearTimeout(i._intervalId),i._intervalId=setTimeout(function(){i.update()},250))})};o.Defaults={autoHeight:!1,autoHeightClass:"owl-height"},o.prototype.update=function(){var t=this._core._current,n=t+this._core.settings.items,i=this._core.settings.lazyLoad,o=this._core.$stage.children().toArray().slice(t,n),r=[],s=0;e.each(o,function(t,n){r.push(e(n).height())}),s=Math.max.apply(null,r),s<=1&&i&&this._previousHeight&&(s=this._previousHeight),this._previousHeight=s,this._core.$stage.parent().height(s).addClass(this._core.settings.autoHeightClass)},o.prototype.destroy=function(){var e,t;for(e in this._handlers)this._core.$element.off(e,this._handlers[e]);for(t in Object.getOwnPropertyNames(this))"function"!=typeof this[t]&&(this[t]=null)},e.fn.owlCarousel.Constructor.Plugins.AutoHeight=o}(window.Zepto||window.jQuery,window,document),function(e,t,n,i){var o=function(t){this._core=t,this._videos={},this._playing=null,this._handlers={"initialized.owl.carousel":e.proxy(function(e){e.namespace&&this._core.register({type:"state",name:"playing",tags:["interacting"]})},this),"resize.owl.carousel":e.proxy(function(e){e.namespace&&this._core.settings.video&&this.isInFullScreen()&&e.preventDefault()},this),"refreshed.owl.carousel":e.proxy(function(e){e.namespace&&this._core.is("resizing")&&this._core.$stage.find(".cloned .owl-video-frame").remove()},this),"changed.owl.carousel":e.proxy(function(e){e.namespace&&"position"===e.property.name&&this._playing&&this.stop()},this),"prepared.owl.carousel":e.proxy(function(t){if(t.namespace){var n=e(t.content).find(".owl-video");n.length&&(n.css("display","none"),this.fetch(n,e(t.content)))}},this)},this._core.options=e.extend({},o.Defaults,this._core.options),this._core.$element.on(this._handlers),this._core.$element.on("click.owl.video",".owl-video-play-icon",e.proxy(function(e){this.play(e)},this))};o.Defaults={video:!1,videoHeight:!1,videoWidth:!1},o.prototype.fetch=function(e,t){var n=function(){return e.attr("data-vimeo-id")?"vimeo":e.attr("data-vzaar-id")?"vzaar":"youtube"}(),i=e.attr("data-vimeo-id")||e.attr("data-youtube-id")||e.attr("data-vzaar-id"),o=e.attr("data-width")||this._core.settings.videoWidth,r=e.attr("data-height")||this._core.settings.videoHeight,s=e.attr("href");if(!s)throw new Error("Missing video URL.");if(i=s.match(/(http:|https:|)\/\/(player.|www.|app.)?(vimeo\.com|youtu(be\.com|\.be|be\.googleapis\.com|be\-nocookie\.com)|vzaar\.com)\/(video\/|videos\/|embed\/|channels\/.+\/|groups\/.+\/|watch\?v=|v\/)?([A-Za-z0-9._%-]*)(\&\S+)?/),i[3].indexOf("youtu")>-1)n="youtube";else if(i[3].indexOf("vimeo")>-1)n="vimeo";else{if(!(i[3].indexOf("vzaar")>-1))throw new Error("Video URL not supported.");n="vzaar"}i=i[6],this._videos[s]={type:n,id:i,width:o,height:r},t.attr("data-video",s),this.thumbnail(e,this._videos[s])},o.prototype.thumbnail=function(t,n){var i,o,r,s=n.width&&n.height?"width:"+n.width+"px;height:"+n.height+"px;":"",a=t.find("img"),l="src",c="",u=this._core.settings,d=function(n){o='<div class="owl-video-play-icon"></div>',i=u.lazyLoad?e("<div/>",{class:"owl-video-tn "+c,srcType:n}):e("<div/>",{class:"owl-video-tn",style:"opacity:1;background-image:url("+n+")"}),t.after(i),t.after(o)};if(t.wrap(e("<div/>",{class:"owl-video-wrapper",style:s})),this._core.settings.lazyLoad&&(l="data-src",c="owl-lazy"),a.length)return d(a.attr(l)),a.remove(),!1;"youtube"===n.type?(r="//img.youtube.com/vi/"+n.id+"/hqdefault.jpg",d(r)):"vimeo"===n.type?e.ajax({type:"GET",url:"//vimeo.com/api/v2/video/"+n.id+".json",jsonp:"callback",dataType:"jsonp",success:function(e){r=e[0].thumbnail_large,d(r)}}):"vzaar"===n.type&&e.ajax({type:"GET",url:"//vzaar.com/api/videos/"+n.id+".json",jsonp:"callback",dataType:"jsonp",success:function(e){r=e.framegrab_url,d(r)}})},o.prototype.stop=function(){this._core.trigger("stop",null,"video"),this._playing.find(".owl-video-frame").remove(),this._playing.removeClass("owl-video-playing"),this._playing=null,this._core.leave("playing"),this._core.trigger("stopped",null,"video")},o.prototype.play=function(t){var n,i=e(t.target),o=i.closest("."+this._core.settings.itemClass),r=this._videos[o.attr("data-video")],s=r.width||"100%",a=r.height||this._core.$stage.height();this._playing||(this._core.enter("playing"),this._core.trigger("play",null,"video"),o=this._core.items(this._core.relative(o.index())),this._core.reset(o.index()),n=e('<iframe frameborder="0" allowfullscreen mozallowfullscreen webkitAllowFullScreen ></iframe>'),n.attr("height",a),n.attr("width",s),"youtube"===r.type?n.attr("src","//www.youtube.com/embed/"+r.id+"?autoplay=1&rel=0&v="+r.id):"vimeo"===r.type?n.attr("src","//player.vimeo.com/video/"+r.id+"?autoplay=1"):"vzaar"===r.type&&n.attr("src","//view.vzaar.com/"+r.id+"/player?autoplay=true"),e(n).wrap('<div class="owl-video-frame" />').insertAfter(o.find(".owl-video")),this._playing=o.addClass("owl-video-playing"))},o.prototype.isInFullScreen=function(){var t=n.fullscreenElement||n.mozFullScreenElement||n.webkitFullscreenElement;return t&&e(t).parent().hasClass("owl-video-frame")},o.prototype.destroy=function(){var e,t;this._core.$element.off("click.owl.video");for(e in this._handlers)this._core.$element.off(e,this._handlers[e]);for(t in Object.getOwnPropertyNames(this))"function"!=typeof this[t]&&(this[t]=null)},e.fn.owlCarousel.Constructor.Plugins.Video=o}(window.Zepto||window.jQuery,window,document),function(e,t,n,i){var o=function(t){this.core=t,this.core.options=e.extend({},o.Defaults,this.core.options),this.swapping=!0,this.previous=void 0,this.next=void 0,this.handlers={"change.owl.carousel":e.proxy(function(e){e.namespace&&"position"==e.property.name&&(this.previous=this.core.current(),this.next=e.property.value)},this),"drag.owl.carousel dragged.owl.carousel translated.owl.carousel":e.proxy(function(e){e.namespace&&(this.swapping="translated"==e.type)},this),"translate.owl.carousel":e.proxy(function(e){e.namespace&&this.swapping&&(this.core.options.animateOut||this.core.options.animateIn)&&this.swap()},this)},this.core.$element.on(this.handlers)};o.Defaults={animateOut:!1,animateIn:!1},o.prototype.swap=function(){if(1===this.core.settings.items&&e.support.animation&&e.support.transition){this.core.speed(0);var t,n=e.proxy(this.clear,this),i=this.core.$stage.children().eq(this.previous),o=this.core.$stage.children().eq(this.next),r=this.core.settings.animateIn,s=this.core.settings.animateOut;this.core.current()!==this.previous&&(s&&(t=this.core.coordinates(this.previous)-this.core.coordinates(this.next),i.one(e.support.animation.end,n).css({left:t+"px"}).addClass("animated owl-animated-out").addClass(s)),r&&o.one(e.support.animation.end,n).addClass("animated owl-animated-in").addClass(r))}},o.prototype.clear=function(t){e(t.target).css({left:""}).removeClass("animated owl-animated-out owl-animated-in").removeClass(this.core.settings.animateIn).removeClass(this.core.settings.animateOut),this.core.onTransitionEnd()},o.prototype.destroy=function(){var e,t;for(e in this.handlers)this.core.$element.off(e,this.handlers[e]);for(t in Object.getOwnPropertyNames(this))"function"!=typeof this[t]&&(this[t]=null)},e.fn.owlCarousel.Constructor.Plugins.Animate=o}(window.Zepto||window.jQuery,window,document),function(e,t,n,i){var o=function(t){this._core=t,this._call=null,this._time=0,this._timeout=0,this._paused=!0,this._handlers={"changed.owl.carousel":e.proxy(function(e){e.namespace&&"settings"===e.property.name?this._core.settings.autoplay?this.play():this.stop():e.namespace&&"position"===e.property.name&&this._paused&&(this._time=0)},this),"initialized.owl.carousel":e.proxy(function(e){e.namespace&&this._core.settings.autoplay&&this.play()},this),"play.owl.autoplay":e.proxy(function(e,t,n){e.namespace&&this.play(t,n)},this),"stop.owl.autoplay":e.proxy(function(e){e.namespace&&this.stop()},this),"mouseover.owl.autoplay":e.proxy(function(){this._core.settings.autoplayHoverPause&&this._core.is("rotating")&&this.pause()},this),"mouseleave.owl.autoplay":e.proxy(function(){this._core.settings.autoplayHoverPause&&this._core.is("rotating")&&this.play()},this),"touchstart.owl.core":e.proxy(function(){this._core.settings.autoplayHoverPause&&this._core.is("rotating")&&this.pause()},this),"touchend.owl.core":e.proxy(function(){this._core.settings.autoplayHoverPause&&this.play()},this)},this._core.$element.on(this._handlers),this._core.options=e.extend({},o.Defaults,this._core.options)};o.Defaults={autoplay:!1,autoplayTimeout:5e3,autoplayHoverPause:!1,autoplaySpeed:!1},o.prototype._next=function(i){this._call=t.setTimeout(e.proxy(this._next,this,i),this._timeout*(Math.round(this.read()/this._timeout)+1)-this.read()),this._core.is("interacting")||n.hidden||this._core.next(i||this._core.settings.autoplaySpeed)},o.prototype.read=function(){return(new Date).getTime()-this._time},o.prototype.play=function(n,i){var o;this._core.is("rotating")||this._core.enter("rotating"),n=n||this._core.settings.autoplayTimeout,o=Math.min(this._time%(this._timeout||n),n),this._paused?(this._time=this.read(),this._paused=!1):t.clearTimeout(this._call),this._time+=this.read()%n-o,this._timeout=n,this._call=t.setTimeout(e.proxy(this._next,this,i),n-o)},o.prototype.stop=function(){this._core.is("rotating")&&(this._time=0,this._paused=!0,t.clearTimeout(this._call),this._core.leave("rotating"))},o.prototype.pause=function(){this._core.is("rotating")&&!this._paused&&(this._time=this.read(),this._paused=!0,t.clearTimeout(this._call))},o.prototype.destroy=function(){var e,t;this.stop();for(e in this._handlers)this._core.$element.off(e,this._handlers[e]);for(t in Object.getOwnPropertyNames(this))"function"!=typeof this[t]&&(this[t]=null)},e.fn.owlCarousel.Constructor.Plugins.autoplay=o}(window.Zepto||window.jQuery,window,document),function(e,t,n,i){var o=function(t){this._core=t,this._initialized=!1,this._pages=[],this._controls={},this._templates=[],this.$element=this._core.$element,this._overrides={next:this._core.next,prev:this._core.prev,to:this._core.to},this._handlers={"prepared.owl.carousel":e.proxy(function(t){t.namespace&&this._core.settings.dotsData&&this._templates.push('<div class="'+this._core.settings.dotClass+'">'+e(t.content).find("[data-dot]").addBack("[data-dot]").attr("data-dot")+"</div>")},this),"added.owl.carousel":e.proxy(function(e){e.namespace&&this._core.settings.dotsData&&this._templates.splice(e.position,0,this._templates.pop())},this),"remove.owl.carousel":e.proxy(function(e){e.namespace&&this._core.settings.dotsData&&this._templates.splice(e.position,1)},this),"changed.owl.carousel":e.proxy(function(e){e.namespace&&"position"==e.property.name&&this.draw()},this),"initialized.owl.carousel":e.proxy(function(e){e.namespace&&!this._initialized&&(this._core.trigger("initialize",null,"navigation"),this.initialize(),this.update(),this.draw(),this._initialized=!0,this._core.trigger("initialized",null,"navigation"))},this),"refreshed.owl.carousel":e.proxy(function(e){e.namespace&&this._initialized&&(this._core.trigger("refresh",null,"navigation"),this.update(),this.draw(),this._core.trigger("refreshed",null,"navigation"))},this)},this._core.options=e.extend({},o.Defaults,this._core.options),this.$element.on(this._handlers)};o.Defaults={nav:!1,navText:['<span aria-label="Previous">‹</span>','<span aria-label="Next">›</span>'],navSpeed:!1,navElement:'button type="button" role="presentation"',navContainer:!1,navContainerClass:"owl-nav",navClass:["owl-prev","owl-next"],slideBy:1,dotClass:"owl-dot",dotsClass:"owl-dots",dots:!0,dotsEach:!1,dotsData:!1,dotsSpeed:!1,dotsContainer:!1},o.prototype.initialize=function(){var t,n=this._core.settings;this._controls.$relative=(n.navContainer?e(n.navContainer):e("<div>").addClass(n.navContainerClass).appendTo(this.$element)).addClass("disabled"),this._controls.$previous=e("<"+n.navElement+">").addClass(n.navClass[0]).html(n.navText[0]).prependTo(this._controls.$relative).on("click",e.proxy(function(e){this.prev(n.navSpeed)},this)),this._controls.$next=e("<"+n.navElement+">").addClass(n.navClass[1]).html(n.navText[1]).appendTo(this._controls.$relative).on("click",e.proxy(function(e){this.next(n.navSpeed)},this)),n.dotsData||(this._templates=[e('<button role="button">').addClass(n.dotClass).append(e("<span>")).prop("outerHTML")]),this._controls.$absolute=(n.dotsContainer?e(n.dotsContainer):e("<div>").addClass(n.dotsClass).appendTo(this.$element)).addClass("disabled"),this._controls.$absolute.on("click","button",e.proxy(function(t){var i=e(t.target).parent().is(this._controls.$absolute)?e(t.target).index():e(t.target).parent().index();t.preventDefault(),this.to(i,n.dotsSpeed)},this));for(t in this._overrides)this._core[t]=e.proxy(this[t],this)},o.prototype.destroy=function(){var e,t,n,i,o;o=this._core.settings;for(e in this._handlers)this.$element.off(e,this._handlers[e]);for(t in this._controls)"$relative"===t&&o.navContainer?this._controls[t].html(""):this._controls[t].remove();for(i in this.overides)this._core[i]=this._overrides[i];for(n in Object.getOwnPropertyNames(this))"function"!=typeof this[n]&&(this[n]=null)},o.prototype.update=function(){var e,t,n,i=this._core.clones().length/2,o=i+this._core.items().length,r=this._core.maximum(!0),s=this._core.settings,a=s.center||s.autoWidth||s.dotsData?1:s.dotsEach||s.items;if("page"!==s.slideBy&&(s.slideBy=Math.min(s.slideBy,s.items)),s.dots||"page"==s.slideBy)for(this._pages=[],e=i,t=0,n=0;e<o;e++){if(t>=a||0===t){if(this._pages.push({start:Math.min(r,e-i),end:e-i+a-1}),Math.min(r,e-i)===r)break;t=0,++n}t+=this._core.mergers(this._core.relative(e))}},o.prototype.draw=function(){var t,n=this._core.settings,i=this._core.items().length<=n.items,o=this._core.relative(this._core.current()),r=n.loop||n.rewind;this._controls.$relative.toggleClass("disabled",!n.nav||i),n.nav&&(this._controls.$previous.toggleClass("disabled",!r&&o<=this._core.minimum(!0)),this._controls.$next.toggleClass("disabled",!r&&o>=this._core.maximum(!0))),this._controls.$absolute.toggleClass("disabled",!n.dots||i),n.dots&&(t=this._pages.length-this._controls.$absolute.children().length,n.dotsData&&0!==t?this._controls.$absolute.html(this._templates.join("")):t>0?this._controls.$absolute.append(new Array(t+1).join(this._templates[0])):t<0&&this._controls.$absolute.children().slice(t).remove(),this._controls.$absolute.find(".active").removeClass("active"),this._controls.$absolute.children().eq(e.inArray(this.current(),this._pages)).addClass("active"))},o.prototype.onTrigger=function(t){var n=this._core.settings;
5t.page={index:e.inArray(this.current(),this._pages),count:this._pages.length,size:n&&(n.center||n.autoWidth||n.dotsData?1:n.dotsEach||n.items)}},o.prototype.current=function(){var t=this._core.relative(this._core.current());return e.grep(this._pages,e.proxy(function(e,n){return e.start<=t&&e.end>=t},this)).pop()},o.prototype.getPosition=function(t){var n,i,o=this._core.settings;return"page"==o.slideBy?(n=e.inArray(this.current(),this._pages),i=this._pages.length,t?++n:--n,n=this._pages[(n%i+i)%i].start):(n=this._core.relative(this._core.current()),i=this._core.items().length,t?n+=o.slideBy:n-=o.slideBy),n},o.prototype.next=function(t){e.proxy(this._overrides.to,this._core)(this.getPosition(!0),t)},o.prototype.prev=function(t){e.proxy(this._overrides.to,this._core)(this.getPosition(!1),t)},o.prototype.to=function(t,n,i){var o;!i&&this._pages.length?(o=this._pages.length,e.proxy(this._overrides.to,this._core)(this._pages[(t%o+o)%o].start,n)):e.proxy(this._overrides.to,this._core)(t,n)},e.fn.owlCarousel.Constructor.Plugins.Navigation=o}(window.Zepto||window.jQuery,window,document),function(e,t,n,i){var o=function(n){this._core=n,this._hashes={},this.$element=this._core.$element,this._handlers={"initialized.owl.carousel":e.proxy(function(n){n.namespace&&"URLHash"===this._core.settings.startPosition&&e(t).trigger("hashchange.owl.navigation")},this),"prepared.owl.carousel":e.proxy(function(t){if(t.namespace){var n=e(t.content).find("[data-hash]").addBack("[data-hash]").attr("data-hash");if(!n)return;this._hashes[n]=t.content}},this),"changed.owl.carousel":e.proxy(function(n){if(n.namespace&&"position"===n.property.name){var i=this._core.items(this._core.relative(this._core.current())),o=e.map(this._hashes,function(e,t){return e===i?t:null}).join();if(!o||t.location.hash.slice(1)===o)return;t.location.hash=o}},this)},this._core.options=e.extend({},o.Defaults,this._core.options),this.$element.on(this._handlers),e(t).on("hashchange.owl.navigation",e.proxy(function(e){var n=t.location.hash.substring(1),i=this._core.$stage.children(),o=this._hashes[n]&&i.index(this._hashes[n]);void 0!==o&&o!==this._core.current()&&this._core.to(this._core.relative(o),!1,!0)},this))};o.Defaults={URLhashListener:!1},o.prototype.destroy=function(){var n,i;e(t).off("hashchange.owl.navigation");for(n in this._handlers)this._core.$element.off(n,this._handlers[n]);for(i in Object.getOwnPropertyNames(this))"function"!=typeof this[i]&&(this[i]=null)},e.fn.owlCarousel.Constructor.Plugins.Hash=o}(window.Zepto||window.jQuery,window,document),function(e,t,n,i){function o(t,n){var o=!1,r=t.charAt(0).toUpperCase()+t.slice(1);return e.each((t+" "+a.join(r+" ")+r).split(" "),function(e,t){if(s[t]!==i)return o=!n||t,!1}),o}function r(e){return o(e,!0)}var s=e("<support>").get(0).style,a="Webkit Moz O ms".split(" "),l={transition:{end:{WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd",transition:"transitionend"}},animation:{end:{WebkitAnimation:"webkitAnimationEnd",MozAnimation:"animationend",OAnimation:"oAnimationEnd",animation:"animationend"}}},c={csstransforms:function(){return!!o("transform")},csstransforms3d:function(){return!!o("perspective")},csstransitions:function(){return!!o("transition")},cssanimations:function(){return!!o("animation")}};c.csstransitions()&&(e.support.transition=new String(r("transition")),e.support.transition.end=l.transition.end[e.support.transition]),c.cssanimations()&&(e.support.animation=new String(r("animation")),e.support.animation.end=l.animation.end[e.support.animation]),c.csstransforms()&&(e.support.transform=new String(r("transform")),e.support.transform3d=c.csstransforms3d())}(window.Zepto||window.jQuery,window,document),function(e){function t(e){var t=document.createElement("input"),n="on"+e,i=n in t;return i||(t.setAttribute(n,"return;"),i="function"==typeof t[n]),t=null,i}function n(e){var t="text"==e||"tel"==e;if(!t){var n=document.createElement("input");n.setAttribute("type",e),t="text"===n.type,n=null}return t}function i(t,n,o){var r=o.aliases[t];return!!r&&(r.alias&&i(r.alias,void 0,o),e.extend(!0,o,r),e.extend(!0,o,n),!0)}function o(t){function n(n){function i(e,t,n,i){this.matches=[],this.isGroup=e||!1,this.isOptional=t||!1,this.isQuantifier=n||!1,this.isAlternator=i||!1,this.quantifier={min:1,max:1}}function o(n,i,o){var r=t.definitions[i],s=0==n.matches.length;if(o=void 0!=o?o:n.matches.length,r&&!h){r.placeholder=e.isFunction(r.placeholder)?r.placeholder.call(this,t):r.placeholder;
5for(var a=r.prevalidator,l=a?a.length:0,c=1;c<r.cardinality;c++){var u=l>=c?a[c-1]:[],d=u.validator,p=u.cardinality;n.matches.splice(o++,0,{fn:d?"string"==typeof d?new RegExp(d):new function(){this.test=d}:new RegExp("."),cardinality:p||1,optionality:n.isOptional,newBlockMarker:s,casing:r.casing,def:r.definitionSymbol||i,placeholder:r.placeholder,mask:i})}n.matches.splice(o++,0,{fn:r.validator?"string"==typeof r.validator?new RegExp(r.validator):new function(){this.test=r.validator}:new RegExp("."),cardinality:r.cardinality,optionality:n.isOptional,newBlockMarker:s,casing:r.casing,def:r.definitionSymbol||i,placeholder:r.placeholder,mask:i})}else n.matches.splice(o++,0,{fn:null,cardinality:0,optionality:n.isOptional,newBlockMarker:s,casing:null,def:i,placeholder:void 0,mask:i}),h=!1}for(var r,s,a,l,c,u,d=/(?:[?*+]|\{[0-9\+\*]+(?:,[0-9\+\*]*)?\})\??|[^.?*+^${[]()|\\]+|./g,h=!1,p=new i,f=[],m=[];r=d.exec(n);)switch(s=r[0],s.charAt(0)){case t.optionalmarker.end:case t.groupmarker.end:if(a=f.pop(),f.length>0){if(l=f[f.length-1],l.matches.push(a),l.isAlternator){c=f.pop();for(var g=0;g<c.matches.length;g++)c.matches[g].isGroup=!1;f.length>0?(l=f[f.length-1],l.matches.push(c)):p.matches.push(c)}}else p.matches.push(a);break;case t.optionalmarker.start:f.push(new i(!1,!0));break;case t.groupmarker.start:f.push(new i(!0));break;case t.quantifiermarker.start:var v=new i(!1,!1,!0);s=s.replace(/[{}]/g,"");var y=s.split(","),b=isNaN(y[0])?y[0]:parseInt(y[0]),w=1==y.length?b:isNaN(y[1])?y[1]:parseInt(y[1]);if("*"!=w&&"+"!=w||(b="*"==w?0:1),v.quantifier={min:b,max:w},f.length>0){var k=f[f.length-1].matches;if(r=k.pop(),!r.isGroup){var C=new i(!0);C.matches.push(r),r=C}k.push(r),k.push(v)}else{if(r=p.matches.pop(),!r.isGroup){var C=new i(!0);C.matches.push(r),r=C}p.matches.push(r),p.matches.push(v)}break;case t.escapeChar:h=!0;break;case t.alternatormarker:f.length>0?(l=f[f.length-1],u=l.matches.pop()):u=p.matches.pop(),u.isAlternator?f.push(u):(c=new i(!1,!1,!1,!0),c.matches.push(u),f.push(c));break;default:if(f.length>0){if(l=f[f.length-1],l.matches.length>0&&(u=l.matches[l.matches.length-1],u.isGroup&&(u.isGroup=!1,o(u,t.groupmarker.start,0),o(u,t.groupmarker.end))),o(l,s),l.isAlternator){c=f.pop();for(var g=0;g<c.matches.length;g++)c.matches[g].isGroup=!1;f.length>0?(l=f[f.length-1],l.matches.push(c)):p.matches.push(c)}}else p.matches.length>0&&(u=p.matches[p.matches.length-1],u.isGroup&&(u.isGroup=!1,o(u,t.groupmarker.start,0),o(u,t.groupmarker.end))),o(p,s)}return p.matches.length>0&&(u=p.matches[p.matches.length-1],u.isGroup&&(u.isGroup=!1,o(u,t.groupmarker.start,0),o(u,t.groupmarker.end)),m.push(p)),m}function i(i,o){if(void 0!=i&&""!=i){if(1==i.length&&0==t.greedy&&0!=t.repeat&&(t.placeholder=""),t.repeat>0||"*"==t.repeat||"+"==t.repeat){var r="*"==t.repeat?0:"+"==t.repeat?1:t.repeat;i=t.groupmarker.start+i+t.groupmarker.end+t.quantifiermarker.start+r+","+t.repeat+t.quantifiermarker.end}return void 0==e.inputmask.masksCache[i]&&(e.inputmask.masksCache[i]={mask:i,maskToken:n(i),validPositions:{},_buffer:void 0,buffer:void 0,tests:{},metadata:o}),e.extend(!0,{},e.inputmask.masksCache[i])}}function o(e){if(e=e.toString(),t.numericInput){e=e.split("").reverse();for(var n=0;n<e.length;n++)e[n]==t.optionalmarker.start?e[n]=t.optionalmarker.end:e[n]==t.optionalmarker.end?e[n]=t.optionalmarker.start:e[n]==t.groupmarker.start?e[n]=t.groupmarker.end:e[n]==t.groupmarker.end&&(e[n]=t.groupmarker.start);e=e.join("")}return e}var r=void 0;if(e.isFunction(t.mask)&&(t.mask=t.mask.call(this,t)),e.isArray(t.mask)){if(t.mask.length>1){t.keepStatic=void 0==t.keepStatic||t.keepStatic;var s="(";return e.each(t.mask,function(t,n){s.length>1&&(s+=")|("),void 0==n.mask||e.isFunction(n.mask)?s+=o(n):s+=o(n.mask)}),s+=")",i(s,t.mask)}t.mask=t.mask.pop()}return t.mask&&(r=void 0==t.mask.mask||e.isFunction(t.mask.mask)?i(o(t.mask),t.mask):i(o(t.mask.mask),t.mask)),r}function r(i,o,r){function s(e,t,n){t=t||0;var i,o,r,s=[],a=0;do{if(!0===e&&u().validPositions[a]){var l=u().validPositions[a];o=l.match,i=l.locator.slice(),s.push(!0===n?l.input:D(a,o))}else r=m(a,i,a-1),o=r.match,i=r.locator.slice(),s.push(D(a,o));a++}while((void 0==te||a-1<te)&&null!=o.fn||null==o.fn&&""!=o.def||t>=a);return s.pop(),s}function u(){return o}function d(e){var t=u();t.buffer=void 0,t.tests={},!0!==e&&(t._buffer=void 0,t.validPositions={},t.p=0)}function h(e){var t=u(),n=-1,i=t.validPositions;void 0==e&&(e=-1);var o=n,r=n;for(var s in i){var a=parseInt(s);
5-1!=e&&null==i[a].match.fn||(a<=e&&(o=a),a>=e&&(r=a))}return n=-1!=o&&e-o>1||r<e?o:r}function p(t,n,i){if(r.insertMode&&void 0!=u().validPositions[t]&&void 0==i){var o,s=e.extend(!0,{},u().validPositions),a=h();for(o=t;o<=a;o++)delete u().validPositions[o];u().validPositions[t]=n;var l,c=!0;for(o=t;o<=a;o++){var d=s[o];if(void 0!=d){var p=u().validPositions;l=!r.keepStatic&&p[o]&&(void 0!=p[o+1]&&y(o+1,p[o].locator.slice(),o).length>1||void 0!=p[o].alternation)?o+1:E(o),c=v(l,d.match.def)?c&&!1!==_(l,d.input,!0,!0):null==d.match.fn}if(!c)break}if(!c)return u().validPositions=e.extend(!0,{},s),!1}else u().validPositions[t]=n;return!0}function f(e,t,n,i){var o,s=e;u().p=e,void 0!=u().validPositions[e]&&u().validPositions[e].input==r.radixPoint&&(t++,s++);for(o=s;o<t;o++)void 0!=u().validPositions[o]&&(!0!==n&&0==r.canClearPosition(u(),o,h(),i,r)||delete u().validPositions[o]);for(d(!0),o=s+1;o<=h();){for(;void 0!=u().validPositions[s];)s++;var a=u().validPositions[s];o<s&&(o=s+1);var l=u().validPositions[o];void 0!=l&&void 0==a?(v(s,l.match.def)&&!1!==_(s,l.input,!0)&&(delete u().validPositions[o],o++),s++):o++}var c=h();e<=c&&void 0!=u().validPositions[c]&&u().validPositions[c].input==r.radixPoint&&delete u().validPositions[c],d(!0)}function m(e,t,n){for(var i,o=y(e,t,n),s=h(),a=u().validPositions[s]||y(0)[0],l=void 0!=a.alternation?a.locator[a.alternation].split(","):[],c=0;c<o.length&&(i=o[c],!(i.match&&(r.greedy&&!0!==i.match.optionalQuantifier||(!1===i.match.optionality||!1===i.match.newBlockMarker)&&!0!==i.match.optionalQuantifier)&&(void 0==a.alternation||void 0!=i.locator[a.alternation]&&x(i.locator[a.alternation].toString().split(","),l))));c++);return i}function g(e){return u().validPositions[e]?u().validPositions[e].match:y(e)[0].match}function v(e,t){for(var n=!1,i=y(e),o=0;o<i.length;o++)if(i[o].match&&i[o].match.def==t){n=!0;break}return n}function y(t,n,i){function o(n,i,r,a){function d(r,a,p){if(s>1e4)return alert("jquery.inputmask: There is probably an error in your mask definition or in the code. Create an issue on github with an example of the mask you are using. "+u().mask),!0;if(s==t&&void 0==r.matches)return l.push({match:r,locator:a.reverse()}),!0;if(void 0!=r.matches){if(r.isGroup&&!0!==p){if(r=d(n.matches[h+1],a))return!0}else if(r.isOptional){var f=r;if(r=o(r,i,a,p)){var m=l[l.length-1].match,g=0==e.inArray(m,f.matches);g&&(c=!0),s=t}}else if(r.isAlternator){var v,y=r,b=[],w=l.slice(),k=a.length,C=i.length>0?i.shift():-1;if(-1==C||"string"==typeof C){var x,_=s,S=i.slice();"string"==typeof C&&(x=C.split(","));for(var T=0;T<y.matches.length;T++){l=[],r=d(y.matches[T],[T].concat(a),p)||r,v=l.slice(),s=_,l=[];for(var E=0;E<S.length;E++)i[E]=S[E];for(var $=0;$<v.length;$++)for(var I=v[$],P=0;P<b.length;P++){var D=b[P];if(I.match.mask==D.match.mask&&("string"!=typeof C||-1!=e.inArray(I.locator[k].toString(),x))){v.splice($,1),D.locator[k]=D.locator[k]+","+I.locator[k],D.alternation=k;break}}b=b.concat(v)}"string"==typeof C&&(b=e.map(b,function(t,n){if(isFinite(n)){var i=t.locator[k].toString().split(",");t.locator[k]=void 0,t.alternation=void 0;for(var o=0;o<i.length;o++)-1!=e.inArray(i[o],x)&&(void 0!=t.locator[k]?(t.locator[k]+=",",t.alternation=k,t.locator[k]+=i[o]):t.locator[k]=parseInt(i[o]));if(void 0!=t.locator[k])return t}})),l=w.concat(b),c=!0}else r=d(y.matches[C],[C].concat(a),p);if(r)return!0}else if(r.isQuantifier&&!0!==p)for(var A=r,R=i.length>0&&!0!==p?i.shift():0;R<(isNaN(A.quantifier.max)?R+1:A.quantifier.max)&&s<=t;R++){var N=n.matches[e.inArray(A,n.matches)-1];if(r=d(N,[R].concat(a),!0)){var m=l[l.length-1].match;m.optionalQuantifier=R>A.quantifier.min-1;var g=0==e.inArray(m,N.matches);if(g){if(R>A.quantifier.min-1){c=!0,s=t;break}return!0}return!0}}else if(r=o(r,i,a,p))return!0}else s++}for(var h=i.length>0?i.shift():0;h<n.matches.length;h++)if(!0!==n.matches[h].isQuantifier){var p=d(n.matches[h],[h].concat(r),a);if(p&&s==t)return p;if(s>t)break}}var r=u().maskToken,s=n?i:0,a=n||[0],l=[],c=!1;if(void 0==n){for(var d,h=t-1;void 0==(d=u().validPositions[h])&&h>-1;)h--;if(void 0!=d&&h>-1)s=h,a=d.locator.slice();else{for(h=t-1;void 0==(d=u().tests[h])&&h>-1;)h--;void 0!=d&&h>-1&&(s=h,a=d[0].locator.slice())}}for(var p=a.shift();p<r.length;p++){if(o(r[p],a,[p])&&s==t||s>t)break}return(0==l.length||c)&&l.push({match:{fn:null,cardinality:0,optionality:!0,casing:null,def:""},locator:[]}),u().tests[t]=e.extend(!0,[],l),u().tests[t]}function b(){return void 0==u()._buffer&&(u()._buffer=s(!1,1)),u()._buffer}function w(){return void 0==u().buffer&&(u().buffer=s(!0,h(),!0)),u(
5).buffer}function k(e,t,n){if(n=n||w().slice(),!0===e)d(),e=0,t=n.length;else for(var i=e;i<t;i++)delete u().validPositions[i],delete u().tests[i];for(var i=e;i<t;i++)n[i]!=r.skipOptionalPartCharacter&&_(i,n[i],!0,!0)}function C(e,t){switch(t.casing){case"upper":e=e.toUpperCase();break;case"lower":e=e.toLowerCase()}return e}function x(t,n){for(var i=r.greedy?n:n.slice(0,1),o=!1,s=0;s<t.length;s++)if(-1!=e.inArray(t[s],i)){o=!0;break}return o} 6function _(t,n,i,o){function s(t,n,i,o){var s=!1;return e.each(y(t),function(a,l){for(var c=l.match,m=n?1:0,g="",v=(w(),c.cardinality);v>m;v--)g+=I(t-(v-1));if(n&&(g+=n),!1!==(s=null!=c.fn?c.fn.test(g,u(),t,i,r):(n==c.def||n==r.skipOptionalPartCharacter)&&""!=c.def&&{c:c.def,pos:t})){var y=void 0!=s.c?s.c:n;y=y==r.skipOptionalPartCharacter&&null===c.fn?c.def:y;var b=t;if(void 0!=s.remove&&f(s.remove,s.remove+1,!0),s.refreshFromBuffer){var x=s.refreshFromBuffer;if(i=!0,k(!0===x?x:x.start,x.end),void 0==s.pos&&void 0==s.c)return s.pos=h(),!1;if((b=void 0!=s.pos?s.pos:t)!=t)return s=e.extend(s,_(b,y,!0)),!1}else if(!0!==s&&void 0!=s.pos&&s.pos!=t&&(b=s.pos,k(t,b),b!=t))return s=e.extend(s,_(b,y,!0)),!1;return(1==s||void 0!=s.pos||void 0!=s.c)&&(a>0&&d(!0),p(b,e.extend({},l,{input:C(y,c)}),o)||(s=!1),!1)}}),s}i=!0===i;for(var a=w(),l=t-1;l>-1&&!u().validPositions[l];l--);for(l++;l<t;l++)void 0==u().validPositions[l]&&((!S(l)||a[l]!=D(l))&&y(l).length>1||a[l]==r.radixPoint||"0"==a[l]&&e.inArray(r.radixPoint,a)<l)&&s(l,a[l],
6!0);var c=t,m=!1,g=e.extend(!0,{},u().validPositions);if(c<T()&&(m=s(c,n,i,o),!i&&!1===m)){var v=u().validPositions[c];if(!v||null!=v.match.fn||v.match.def!=n&&n!=r.skipOptionalPartCharacter){if((r.insertMode||void 0==u().validPositions[E(c)])&&!S(c))for(var b=c+1,$=E(c);b<=$;b++)if(!1!==(m=s(b,n,i,o))){!function(t,n){for(var i=u().validPositions[n],o=i.locator,r=o.length,s=t;s<n;s++)if(!S(s)){var a=y(s),l=a[0],c=-1;e.each(a,function(e,t){for(var n=0;n<r;n++)t.locator[n]&&x(t.locator[n].toString().split(","),o[n].toString().split(","))&&c<n&&(c=n,l=t)}),p(s,e.extend({},l,{input:l.match.def}),!0)}}(c,b),c=b;break}}else m={caret:E(c)}}if(!1===m&&r.keepStatic&&H(a)&&(m=function(t,n,i,o){var s,a,l=e.extend(!0,{},u().validPositions);for(s=h();s>=0;s--)if(u().validPositions[s]&&void 0!=u().validPositions[s].alternation){a=u().validPositions[s].alternation;break}if(void 0!=a)for(var c in u().validPositions)if(parseInt(c)>parseInt(s)&&void 0===u().validPositions[c].alternation){for(var p=u().validPositions[c],f=p.locator[a],m=u().validPositions[s].locator[a].split(","),g=0;g<m.length;g++)if(f<m[g]){for(var v,y,b=c-1;b>=0;b--)if(void 0!=(v=u().validPositions[b])){y=v.locator[a],v.locator[a]=m[g];break}if(f!=v.locator[a]){for(var k=w().slice(),C=c;C<h()+1;C++)delete u().validPositions[C],delete u().tests[C];d(!0),r.keepStatic=!r.keepStatic;for(var C=c;C<k.length;C++)k[C]!=r.skipOptionalPartCharacter&&_(h()+1,k[C],!1,!0);v.locator[a]=y;var x=_(t,n,i,o);if(r.keepStatic=!r.keepStatic,x)return x;d(),u().validPositions=e.extend(!0,{},l)}}break}return!1}(t,n,i,o)),!0===m&&(m={pos:c}),e.isFunction(r.postValidation)&&0!=m&&!i){d(!0);if(!r.postValidation(w(),r))return d(!0),u().validPositions=e.extend(!0,{},g),!1}return m}function S(e){var t=g(e);return null!=t.fn&&t.fn}function T(){var e;-1==(te=ee.prop("maxLength"))&&(te=void 0);var t,n=h(),i=u().validPositions[n],o=void 0!=i?i.locator.slice():void 0;for(t=n+1;void 0==i||null!=i.match.fn||null==i.match.fn&&""!=i.match.def;t++)i=m(t,o,t-1),o=i.locator.slice();return e=t,void 0==te||e<te?e:te}function E(e){var t=T();if(e>=t)return t;for(var n=e;++n<t&&!S(n)&&(!0!==r.nojumps||r.nojumpsThreshold>n););return n}function $(e){var t=e;if(t<=0)return 0;for(;--t>0&&!S(t););return t}function I(e){return void 0==u().validPositions[e]?D(e):u().validPositions[e].input}function P(t,n,i,o,s){if(o&&e.isFunction(r.onBeforeWrite)){var a=r.onBeforeWrite.call(t,o,n,i,r);if(a){if(a.refreshFromBuffer){var l=a.refreshFromBuffer;k(!0===l?l:l.start,l.end,a.buffer),d(!0),n=w()}i=a.caret||i}}t._valueSet(n.join("")),void 0!=i&&M(t,i),!0===s&&(oe=!0,e(t).trigger("input"))}function D(e,t){return t=t||g(e),void 0!=t.placeholder?t.placeholder:null==t.fn?t.def:r.placeholder.charAt(e%r.placeholder.length)}function A(t,n,i,o){function r(){var e=!1,t=b().slice(l,E(l)).join("").indexOf(a);if(-1!=t&&!S(l)){e=!0;for(var n=b().slice(l,l+t),i=0;i<n.length;i++)if(" "!=n[i]){e=!1;break}}return e}var s=void 0!=o?o.slice():t._valueGet().split(""),a="",l=0;d(),u().p=E(-1),n&&t._valueSet("");var c=b().slice(0,E(-1)).join(""),p=s.join("").match(new RegExp(R(c),"g"));p&&p.length>0&&(s.splice(0,p.length*c.length),l=E(l)),e.each(s,function(n,o){var s=e.Event("keypress");s.which=o.charCodeAt(0),a+=o;var c=h(),d=u().validPositions[c],p=m(c+1,d?d.locator.slice():void 0,c);if(!r()||i){var f=i?n:null==p.match.fn&&p.match.optionality&&c+1<u().p?c+1:u().p;W.call(t,s,!0,!1,i,f),l=f+1,a=""}else W.call(t,s,!0,!1,!0,c+1)}),n&&P(t,w(),e(t).is(":focus")?E(h(0)):void 0,e.Event("checkval"))}function R(t){return e.inputmask.escapeRegex.call(this,t)}function N(t){if(t.data("_inputmask")&&!t.hasClass("hasDatepicker")){var n=[],i=u().validPositions;for(var o in i)i[o].match&&null!=i[o].match.fn&&n.push(i[o].input);var s=(ne?n.reverse():n).join(""),a=(ne?w().slice().reverse():w()).join("");return e.isFunction(r.onUnMask)&&(s=r.onUnMask.call(t,a,s,r)||s),s}return t[0]._valueGet()}function L(e){if(ne&&"number"==typeof e&&(!r.greedy||""!=r.placeholder)){e=w().length-e}return e}function M(t,n,i){var o,s=t.jquery&&t.length>0?t[0]:t;if("number"!=typeof n)return s.setSelectionRange?(n=s.selectionStart,i=s.selectionEnd):document.selection&&document.selection.createRange&&(o=document.selection.createRange(),n=0-o.duplicate().moveStart("character",-1e5),i=n+o.text.length),{begin:L(n),end:L(i)};if(n=L(n),i=L(i),i="number"==typeof i?i:n,e(s).is(":visible")){var a=e(s).css("font-size").replace("px","")*i;s.scrollLeft=a>s.scrollWidth?a:0,0==r.insertMode&&n==i&&i++,s.setSelectionRange?(s.selectionStart=n,s.selectionEnd=i):s.createTextRange&&(o=s.createTextRange(),o.collapse(!0),o.moveEnd("character",i),o.moveStart("character",n),o.select())}}function O(t){var n,i,o=w(),r=o.length,s=h(),a={},l=u().validPositions[s],c=void 0!=l?l.locator.slice():void 0;for(n=s+1;n<o.length;n++)i=m(n,c,n-1),c=i.locator.slice(),a[n]=e.extend(!0,{},i);var d=l&&void 0!=l.alternation?l.locator[l.alternation].split(","):[];for(n=r-1;n>s&&(i=a[n].match,(i.optionality||i.optionalQuantifier||l&&void 0!=l.alternation&&void 0!=a[n].locator[l.alternation]&&-1!=e.inArray(a[n].locator[l.alternation].toString(),d))&&o[n]==D(n,i));n--)r--;return t?{l:r,def:a[r]?a[r].match:void 0}:r}function j(e){for(var t=O(),n=e.length-1;n>t&&!S(n);n--);e.splice(t,n+1-t)}function H(t){if(e.isFunction(r.isComplete))return r.isComplete.call(ee,t,r);if("*"!=r.repeat){var n=!1,i=O(!0),o=$(i.l);h();if(void 0==i.def||i.def.newBlockMarker||i.def.optionalQuantifier){n=!0;for(var s=0;s<=o;s++){var a=S(s),l=g(s);if(a&&void 0==u().validPositions[s]&&!0!==l.optionality&&!0!==l.optionalQuantifier||!a&&t[s]!=D(s)){n=!1;break}}}return n}}function F(e,t){return ne?e-t>1||e-t==1&&r.insertMode:t-e>1||t-e==1&&r.insertMode}function B(t){var n=e._data(t).events;e.each(n,function(t,n){e.each(n,function(e,t){if("inputmask"==t.namespace&&"setvalue"!=t.type){var n=t.handler;t.handler=function(e){if(!this.disabled&&(!this.readOnly||"keydown"==e.type&&e.ctrlKey&&67==e.keyCode)){switch(e.type){case"input":if(!0===oe)return oe=!1,e.preventDefault();break;case"keydown":ie=!1;break;case"keypress":if(!0===ie)return e.preventDefault();ie=!0;break;case"compositionstart":break;case"compositionupdate":oe=!0}return n.apply(this,arguments)}e.preventDefault()}}})})}function z(t){function n(){var t=e(this),n=e(this).data("_inputmask");return n?n.opts.autoUnmask?t.inputmask("unmaskedvalue"):o.call(this)!=b().join("")?o.call(this):"":o.call(this)}function i(t){var n=e(this).data("_inputmask");n?(s.call(this,e.isFunction(n.opts.onBeforeMask)?n.opts.onBeforeMask.call(
6de,t,n.opts)||t:t),e(this).triggerHandler("setvalue.inputmask")):s.call(this,t)}var o,s;if(!t._valueGet){if(Object.getOwnPropertyDescriptor)var a=Object.getOwnPropertyDescriptor(t,"value");a&&a.configurable,document.__lookupGetter__&&t.__lookupGetter__("value")?(o=t.__lookupGetter__("value"),s=t.__lookupSetter__("value"),t.__defineGetter__("value",n),t.__defineSetter__("value",i)):(o=function(){return t.value},s=function(e){t.value=e},function(t){if(void 0==e.valHooks[t]||1!=e.valHooks[t].inputmaskpatch){var n=e.valHooks[t]&&e.valHooks[t].get?e.valHooks[t].get:function(e){return e.value},i=e.valHooks[t]&&e.valHooks[t].set?e.valHooks[t].set:function(e,t){return e.value=t,e};e.valHooks[t]={get:function(t){var i=e(t);if(i.data("_inputmask")){if(i.data("_inputmask").opts.autoUnmask)return i.inputmask("unmaskedvalue");var o=n(t),r=i.data("_inputmask"),s=r.maskset,a=s._buffer;return a=a?a.join(""):"",o!=a?o:""}return n(t)},set:function(t,n){var o,r=e(t),s=r.data("_inputmask");return s?(o=i(t,e.isFunction(s.opts.onBeforeMask)?s.opts.onBeforeMask.call(
6de,n,s.opts)||n:n),r.triggerHandler("setvalue.inputmask")):o=i(t,n),o},inputmaskpatch:!0}}}(t.type),function(t){e(t).on("mouseenter.inputmask",function(t){var n=e(this),i=this,o=i._valueGet();""!=o&&o!=w().join("")&&(this._valueSet(e.isFunction(r.onBeforeMask)?r.onBeforeMask.call(de,o,r)||o:o),n.triggerHandler("setvalue.inputmask"))});var n=e._data(t).events,i=n.mouseover;if(i){for(var o=i[i.length-1],s=i.length-1;s>0;s--)i[s]=i[s-1];i[0]=o}}(t)),t._valueGet=function(e){return ne&&!0!==e?o.call(this).split("").reverse().join(""):o.call(this)},t._valueSet=function(e){s.call(this,ne?e.split("").reverse().join(""):e)}}}function q(t,n,i,o){if((r.numericInput||ne)&&(n==e.inputmask.keyCode.BACKSPACE?n=e.inputmask.keyCode.DELETE:n==e.inputmask.keyCode.DELETE&&(n=e.inputmask.keyCode.BACKSPACE),ne)){var s=i.end;i.end=i.begin,i.begin=s}if(n==e.inputmask.keyCode.BACKSPACE&&(i.end-i.begin<1||0==r.insertMode)?i.begin=$(i.begin):n==e.inputmask.keyCode.DELETE&&i.begin==i.end&&(i.end=S(i.end)?i.end+1:E(i.end)+1),f(i.begin,i.end,!1,o),!0!==o){!function(){if(r.keepStatic){d(!0);var n,i=[];for(n=h();n>=0;n--)if(u().validPositions[n]){if(void 0!=u().validPositions[n].alternation)break;i.push(u().validPositions[n].input),delete u().validPositions[n]}if(n>0)for(;i.length>0;){u().p=E(h());var o=e.Event("keypress");o.which=i.pop().charCodeAt(0),W.call(t,o,!0,!1,!1,u().p)}}}();var a=h(i.begin);a<i.begin?(-1==a&&d(),u().p=E(a)):u().p=i.begin}}function U(n){var i=this,o=e(i),s=n.keyCode,l=M(i);s==e.inputmask.keyCode.BACKSPACE||s==e.inputmask.keyCode.DELETE||a&&127==s||n.ctrlKey&&88==s&&!t("cut")?(n.preventDefault(),88==s&&(X=w().join("")),q(i,s,l),P(i,w(),u().p,n,X!=w().join("")),i._valueGet()==b().join("")?o.trigger("cleared"):!0===H(w())&&o.trigger("complete"),r.showTooltip&&o.prop("title",u().mask)):s==e.inputmask.keyCode.END||s==e.inputmask.keyCode.PAGE_DOWN?setTimeout(function(){var e=E(h());r.insertMode||e!=T()||n.shiftKey||e--,M(i,n.shiftKey?l.begin:e,e)},0):s==e.inputmask.keyCode.HOME&&!n.shiftKey||s==e.inputmask.keyCode.PAGE_UP?M(i,0,n.shiftKey?l.begin:0):(r.undoOnEscape&&s==e.inputmask.keyCode.ESCAPE||90==s&&n.ctrlKey)&&!0!==n.altKey?(A(i,!0,!1,X.split("")),o.click()):s!=e.inputmask.keyCode.INSERT||n.shiftKey||n.ctrlKey?0!=r.insertMode||n.shiftKey||(s==e.inputmask.keyCode.RIGHT?setTimeout(function(){var e=M(i);M(i,e.begin)},0):s==e.inputmask.keyCode.LEFT&&setTimeout(function(){var e=M(i);M(i,ne?e.begin+1:e.begin-1)},0)):(r.insertMode=!r.insertMode,M(i,r.insertMode||l.begin!=T()?l.begin:l.begin-1)),r.onKeyDown.call(this,n,w(),M(i).begin,r),re=-1!=e.inArray(s,r.ignorables)}function W(t,n,i,o,s){var a=this,l=e(a),c=t.which||t.charCode||t.keyCode;if(!(!0===n||t.ctrlKey&&t.altKey)&&(t.ctrlKey||t.metaKey||re))return!0;if(c){46==c&&0==t.shiftKey&&","==r.radixPoint&&(c=44);var h,f=n?{begin:s,end:s}:M(a),m=String.fromCharCode(c),g=F(f.begin,f.end);g&&(u().undoPositions=e.extend(!0,{},u().validPositions),q(a,e.inputmask.keyCode.DELETE,f,!0),f.begin=u().p,r.insertMode||(r.insertMode=!r.insertMode,p(f.begin,o),r.insertMode=!r.insertMode),g=!r.multi),u().writeOutBuffer=!0;var v=ne&&!g?f.end:f.begin,b=_(v,m,o);if(!1!==b){if(!0!==b&&(v=void 0!=b.pos?b.pos:v,m=void 0!=b.c?b.c:m),d(!0),void 0!=b.caret)h=b.caret;else{var C=u().validPositions;h=!r.keepStatic&&(void 0!=C[v+1]&&y(v+1,C[v].locator.slice(),v).length>1||void 0!=C[v].alternation)?v+1:E(v)}u().p=h}if(!1!==i){var x=this;if(setTimeout(function(){r.onKeyValidation.call(x,b,r)},0),u().writeOutBuffer&&!1!==b){var S=w();P(a,S,n?void 0:r.numericInput?$(h):h,t,!0!==n),!0!==n&&setTimeout(function(){!0===H(S)&&l.trigger("complete")},0)}else g&&(u().buffer=void 0,u().validPositions=u().undoPositions)}else g&&(u().buffer=void 0,u().validPositions=u().undoPositions);if(r.showTooltip&&l.prop("title",u().mask),n&&e.isFunction(r.onBeforeWrite)){var T=r.onBeforeWrite.call(this,t,w(),h,r);if(T&&T.refreshFromBuffer){var I=T.refreshFromBuffer;k(!0===I?I:I.start,I.end,T.buffer),d(!0),T.caret&&(u().p=T.caret)}}t.preventDefault()}}function V(t){var n=this,i=e(n),o=n._valueGet(!0),s=M(n);if("propertychange"==t.type&&n._valueGet().length<=T())return!0;
6if("paste"==t.type){var a=o.substr(0,s.begin),l=o.substr(s.end,o.length);a==b().slice(0,s.begin).join("")&&(a=""),l==b().slice(s.end).join("")&&(l=""),window.clipboardData&&window.clipboardData.getData?o=a+window.clipboardData.getData("Text")+l:t.originalEvent&&t.originalEvent.clipboardData&&t.originalEvent.clipboardData.getData&&(o=a+t.originalEvent.clipboardData.getData("text/plain")+l)}var c=o;if(e.isFunction(r.onBeforePaste)){if(!1===(c=r.onBeforePaste.call(n,o,r)))return t.preventDefault(),!1;c||(c=o)}return A(n,!0,!1,ne?c.split("").reverse():c.split("")),i.click(),!0===H(w())&&i.trigger("complete"),!1}function K(t){var n=this;A(n,!0,!1),!0===H(w())&&e(n).trigger("complete"),t.preventDefault()}function G(e){var t=this;X=w().join(""),""!=J&&0==e.originalEvent.data.indexOf(J)||(Z=M(t))}function Y(t){var n=this,i=Z||M(n);0==t.originalEvent.data.indexOf(J)&&(d(),i={begin:0,end:0});var o=t.originalEvent.data;M(n,i.begin,i.end);for(var s=0;s<o.length;s++){var a=e.Event("keypress");a.which=o.charCodeAt(s),ie=!1,re=!1,W.call(n,a)}setTimeout(function(){var e=u().p;P(n,w(),r.numericInput?$(e):e)},0),J=t.originalEvent.data}function Q(e){}var X,Z,J,ee,te,ne=!1,ie=!1,oe=!1,re=!1,se=!0;if(void 0!=i)switch(i.action){case"isComplete":return ee=e(i.el),o=ee.data("_inputmask").maskset,r=ee.data("_inputmask").opts,H(i.buffer);case"unmaskedvalue":return ee=i.$input,o=ee.data("_inputmask").maskset,r=ee.data("_inputmask").opts,ne=i.$input.data("_inputmask").isRTL,N(i.$input);case"mask":X=w().join(""),function(t){if(ee=e(t),ee.is(":input")&&n(ee.attr("type"))){if(ee.data("_inputmask",{maskset:o,opts:r,isRTL:!1}),r.showTooltip&&ee.prop("title",u().mask),("rtl"==t.dir||r.rightAlign)&&ee.css("text-align","right"),"rtl"==t.dir||r.numericInput){t.dir="ltr",ee.removeAttr("dir");var i=ee.data("_inputmask");i.isRTL=!0,ee.data("_inputmask",i),ne=!0}ee.off(".inputmask"),ee.closest("form").on("submit",function(e){X!=w().join("")&&ee.change(),ee[0]._valueGet&&ee[0]._valueGet()==b().join("")&&ee[0]._valueSet(""),r.removeMaskOnSubmit&&ee.inputmask("remove")}).on("reset",function(){setTimeout(function(){ee.triggerHandler("setvalue.inputmask")},0)}),ee.on("mouseenter.inputmask",function(){var t=e(this),n=this;!t.is(":focus")&&r.showMaskOnHover&&n._valueGet()!=w().join("")&&P(n,w())}).on("blur.inputmask",function(t){var n=e(this),i=this;if(n.data("_inputmask")){var o=i._valueGet(),s=w().slice();se=!0,X!=s.join("")&&setTimeout(function(){n.change(),X=s.join("")},0),""!=o&&(r.clearMaskOnLostFocus&&(o==b().join("")?s=[]:j(s)),!1===H(s)&&(n.trigger("incomplete"),r.clearIncomplete&&(d(),s=r.clearMaskOnLostFocus?[]:b().slice())),P(i,s,void 0,t))}}).on("focus.inputmask",function(t){var n=(e(this),this),i=n._valueGet();r.showMaskOnFocus&&(!r.showMaskOnHover||r.showMaskOnHover&&""==i)&&n._valueGet()!=w().join("")&&P(n,w(),E(h())),X=w().join("")}).on("mouseleave.inputmask",function(){var t=e(this),n=this;if(r.clearMaskOnLostFocus){var i=w().slice(),o=n._valueGet();t.is(":focus")||o==t.attr("placeholder")||""==o||(o==b().join("")?i=[]:j(i),P(n,i))}}).on("click.inputmask",function(){var t=e(this),n=this;if(t.is(":focus")){var i=M(n);if(i.begin==i.end)if(r.radixFocus&&""!=r.radixPoint&&-1!=e.inArray(r.radixPoint,w())&&(se||w().join("")==b().join("")))M(n,e.inArray(r.radixPoint,w())),se=!1;else{var o=ne?L(i.begin):i.begin,s=E(h(o));o<s?M(n,S(o)?o:E(o)):M(n,s)}}}).on("dblclick.inputmask",function(){var e=this;setTimeout(function(){M(e,0,E(h()))},0)}).on(c+".inputmask dragdrop.inputmask drop.inputmask",V).on("setvalue.inputmask",function(){var e=this;A(e,!0,!1),X=w().join(""),(r.clearMaskOnLostFocus||r.clearIncomplete)&&e._valueGet()==b().join("")&&e._valueSet("")}).on("cut.inputmask",function(t){oe=!0;var n=this,i=e(n),o=M(n);q(n,e.inputmask.keyCode.DELETE,o),P(n,w(),u().p,t,X!=w().join("")),n._valueGet()==b().join("")&&i.trigger("cleared"),r.showTooltip&&i.prop("title",u().mask)}).on("complete.inputmask",r.oncomplete).on("incomplete.inputmask",r.onincomplete).on("cleared.inputmask",r.oncleared),ee.on("keydown.inputmask",U).on("keypress.inputmask",W),l||ee.on("compositionstart.inputmask",G).on("compositionupdate.inputmask",Y).on("compositionend.inputmask",Q),"paste"===c&&ee.on("input.inputmask",K),z(t),A(t,!0,!1,(e.isFunction(r.onBeforeMask)?r.onBeforeMask.call(t,t._valueGet(),r)||t._valueGet():t._valueGet()).split(""));var s=w().slice();X=s.join("");var a;try{a=document.activeElement}catch(e){}!1===H(s)&&r.clearIncomplete&&d(),r.clearMaskOnLostFocus&&(s.join("")==b().join("")?s=[]:j(s)),P(t,s),a===t&&M(t,E(h())),B(t)}}(i.el);break;case"format":ee=e({}),ee.data("_inputmask",{maskset:o,opts:r,isRTL:r.numericInput}),r.numericInput&&(ne=!0);var ae=(e.isFunction(r.onBeforeMask)?r.onBeforeMask.call(ee,i.value,r)||i.value:i.value).split("");return A(ee,!1,!1,ne?ae.reverse():ae),e.isFunction(r.onBeforeWrite)&&r.onBeforeWrite.call(this,void 0,w(),0,r),i.metadata?{value:ne?w().slice().reverse().join(""):w().join(""),metadata:ee.inputmask("getmetadata")}:ne?w().slice().reverse().join(""):w().join("");case"isValid":ee=e({}),ee.data("_inputmask",{maskset:o,opts:r,isRTL:r.numericInput}),r.numericInput&&(ne=!0);var ae=i.value.split("");A(ee,!1,!0,ne?ae.reverse():ae);for(var le=w(),ce=O(),ue=le.length-1;ue>ce&&!S(ue);ue--);return le.splice(ce,ue+1-ce),H(le)&&i.value==le.join("");case"getemptymask":return ee=e(i.el),o=ee.data("_inputmask").maskset,r=ee.data("_inputmask").opts,b();case"remove":var de=i.el;ee=e(de),o=ee.data("_inputmask").maskset,r=ee.data("_inputmask").opts,de._valueSet(N(ee)),ee.off(".inputmask"),ee.removeData("_inputmask");var he;Object.getOwnPropertyDescriptor&&(he=Object.getOwnPropertyDescriptor(de,"value")),he&&he.get?de._valueGet&&Object.defineProperty(de,"value",{get:de._valueGet,set:de._valueSet}):document.__lookupGetter__&&de.__lookupGetter__("value")&&de._valueGet&&(de.__defineGetter__("value",de._valueGet),de.__defineSetter__("value",de._valueSet));try{delete de._valueGet,delete de._valueSet}catch(e){de._valueGet=void 0,de._valueSet=void 0}break;case"getmetadata":if(ee=e(i.el),o=ee.data("_inputmask").maskset,r=ee.data("_inputmask").opts,e.isArray(o.metadata)){for(var pe,fe=h(),me=fe;me>=0;me--)if(u().validPositions[me]&&void 0!=u().validPositions[me].alternation){pe=u().validPositions[me].alternation;break}return void 0!=pe?o.metadata[u().validPositions[fe].locator[pe]]:o.metadata[0]}return o.metadata}}if(void 0===e.fn.inputmask){var s=navigator.userAgent,a=null!==s.match(new RegExp("iphone","i")),l=(s.match(new RegExp("android.*safari.*","i")),s.match(new RegExp("android.*chrome.*","i")),null!==s.match(new RegExp("android.*firefox.*","i"))),c=(/Kindle/i.test(s)||/Silk/i.test(s)||/KFTT/i.test(s)||/KFOT/i.test(s)||/KFJWA/i.test(s)||/KFJWI/i.test(s)||/KFSOWI/i.test(s)||/KFTHWA/i.test(s)||/KFTHWI/i.test(s)||/KFAPWA/i.test(s)||/KFAPWI/i.test(s),t("paste")?"paste":t("input")?"input":"propertychange");e.inputmask={defaults:{placeholder:"_",optionalmarker:{start:"[",end:"]"},quantifiermarker:{start:"{",end:"}"},groupmarker:{start:"(",end:")"},alternatormarker:"|",escapeChar:"\\",mask:null,oncomplete:e.noop,onincomplete:e.noop,oncleared:e.noop,repeat:0,greedy:!0,autoUnmask:!1,removeMaskOnSubmit:!1,clearMaskOnLostFocus:!0,insertMode:!0,clearIncomplete:!1,aliases:{},alias:null,onKeyDown:e.noop,onBeforeMask:void 0,onBeforePaste:void 0,onBeforeWrite:void 0,onUnMask:void 0,showMaskOnFocus:!0,showMaskOnHover:!0,onKeyValidation:e.noop,skipOptionalPartCharacter:" ",showTooltip:!1,numericInput:!1,rightAlign:!1,undoOnEscape:!0,radixPoint:"",radixFocus:!1,nojumps:!1,nojumpsThreshold:0,keepStatic:void 0,definitions:{9:{validator:"[0-9]",cardinality:1,definitionSymbol:"*"},a:{validator:"[A-Za-zÐ-ÑÐÑÃ-ÿµ]",cardinality:1,definitionSymbol:"*"},"*":{validator:"[0-9A-Za-zÐ-ÑÐÑÃ-ÿµ]",cardinality:1}},ignorables:[8,9,13,19,27,33,34,35,36,37,38,39,40,45,46,93,112,113,114,115,116,117,118,119,120,121,122,123],isComplete:void 0,canClearPosition:e.noop,postValidation:void 0},keyCode:{ALT:18,BACKSPACE:8,CAPS_LOCK:20,COMMA:188,COMMAND:91,COMMAND_LEFT:91,COMMAND_RIGHT:93,CONTROL:17,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,INSERT:45,LEFT:37,MENU:93,NUMPAD_ADD:107,NUMPAD_DECIMAL:110,NUMPAD_DIVIDE:111,NUMPAD_ENTER:108,NUMPAD_MULTIPLY:106,NUMPAD_SUBTRACT:109,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SHIFT:16,SPACE:32,TAB:9,UP:38,WINDOWS:91},masksCache:{},escapeRegex:function(e){var t=["/",".","*","+","?","|","(",")","[","]","{","}","\\","$","^"];return e.replace(new RegExp("(\\"+t.join("|\\")+")","gim"),"\\$1")},format:function(t,n,s){var a=e.extend(!0,{},e.inputmask.defaults,n);return i(a.alias,n,a),r({action:"format",value:t,metadata:s},o(a),a)},isValid:function(t,n){var s=e.extend(!0,{},e.inputmask.defaults,n);return i(s.alias,n,s),r({action:"isValid",value:t},o(s),s)}},e.fn.inputmask=function(t,n){function s(t,n,o){var r=e(t);r.data("inputmask-alias")&&i(r.data("inputmask-alias"),{},n);for(var s in n){var a=r.data("inputmask-"+s.toLowerCase());void 0!=a&&("mask"==s&&0==a.indexOf("[")?(n[s]=a.replace(/[\s[\]]/g,"").split("','"),n[s][0]=n[s][0].replace("'",""),n[s][n[s].length-1]=n[s][n[s].length-1].replace("'","")):n[s]="boolean"==typeof a?a:a.toString(),o&&(o[s]=n[s]))}return n}var a,l=e.extend(!0,{},e.inputmask.defaults,n);if("string"==typeof t)switch(t){case"mask":return i(l.alias,n,l),a=o(l),void 0==a?this:this.each(function(){r({action:"mask",el:this},e.extend(!0,{},a),s(this,l))});case"unmaskedvalue":var c=e(this);return c.data("_inputmask")?r({action:"unmaskedvalue",$input:c}):c.val();case"remove":return this.each(function(){e(this).data("_inputmask")&&r({action:"remove",el:this})});case"getemptymask":return this.data("_inputmask")?r({action:"getemptymask",el:this}):"";case"hasMaskedValue":return!!this.data("_inputmask")&&!this.data("_inputmask").opts.autoUnmask;case"isComplete":return!this.data("_inputmask")||r({action:"isComplete",buffer:this[0]._valueGet().split(""),el:this});case"getmetadata":return this.data("_inputmask")?r({action:"getmetadata",el:this}):void 0;default:return i(l.alias,n,l),i(t,n,l)||(l.mask=t),a=o(l),void 0==a?this:this.each(function(){r({action:"mask",el:this},e.extend(!0,{},a),s(this,l))})}else{if("object"==typeof t)return l=e.extend(!0,{},e.inputmask.defaults,t),i(l.alias,t,l),a=o(l),void 0==a?this:this.each(function(){r({action:"mask",el:this},e.extend(!0,{},a),s(this,l))});if(void 0==t)return this.each(function(){var t=e(this).attr("data-inputmask");if(t&&""!=t)try{t=t.replace(new RegExp("'","g"),'"');var o=e.parseJSON("{"+t+"}");e.extend(!0,o,n),l=e.extend(!0,{},e.inputmask.defaults,o),l=s(this,l),i(l.alias,o,l),l.alias=void 0,e(this).inputmask("mask",l)}catch(e){}if(e(this).attr("data-inputmask-mask")||e(this).attr("data-inputmask-alias")){l=e.extend(!0,{},e.inputmask.defaults,{});var r={};l=s(this,l,r),i(l.alias,r,l),l.alias=void 0,e(this).inputmask("mask",l)}})}}}e.fn.inputmask}(jQuery),function(e){"function"==typeof define&&define.amd?define(["jquery"],e):e("object"==typeof exports?require("jquery"):jQuery)}(function(e){var t=function(){if(e&&e.fn&&e.fn.select2&&e.fn.select2.amd)var t=e.fn.select2.amd;var t;return function(){if(!t||!t.requirejs){t?n=t:t={};var e,n,i;!function(t){function o(e,t){return w.call(e,t)}function r(e,t){var n,i,o,r,s,a,l,c,u,d,h,p=t&&t.split("/"),f=y.map,m=f&&f["*"]||{};if(e&&"."===e.charAt(0))if(t){for(e=e.split("/"),s=e.length-1,y.nodeIdCompat&&C.test(e[s])&&(e[s]=e[s].replace(C,"")),e=p.slice(0,p.length-1).concat(e),u=0;u<e.length;u+=1)if("."===(h=e[u]))e.splice(u,1),u-=1;else if(".."===h){if(1===u&&(".."===e[2]||".."===e[0]))break;u>0&&(e.splice(u-1,2),u-=2)}e=e.join("/")}else 0===e.indexOf("./")&&(e=e.substring(2));if((p||m)&&f){for(n=e.split("/"),u=n.length;u>0;u-=1){if(i=n.slice(0,u).join("/"),p)for(d=p.length;d>0;d-=1)if((o=f[p.slice(0,d).join("/")])&&(o=o[i])){r=o,a=u;break}if(r)break;!l&&m&&m[i]&&(l=m[i],c=u)}!r&&l&&(r=l,a=c),r&&(n.splice(0,a,r),e=n.join("/"))}return e}function s(e,n){return function(){var i=k.call(arguments,0);return"string"!=typeof i[0]&&1===i.length&&i.push(null),p.apply(t,i.concat([e,n]))}}function a(e){return function(t){return r(t,e)}}function l(e){return function(t){g[e]=t}}function c(e){if(o(v,e)){var n=v[e];delete v[e],b[e]=!0,h.apply(t,n)}if(!o(g,e)&&!o(b,e))throw new Error("No "+e);return g[e]}function u(e){var t,n=e?e.indexOf("!"):-1;return n>-1&&(t=e.substring(0,n),e=e.substring(n+1,e.length)),[t,e]}
vendor: 7,936 bytes, lines 6-7
6function d(e){return function(){return y&&y.config&&y.config[e]||{}}}var h,p,f,m,g={},v={},y={},b={},w=Object.prototype.hasOwnProperty,k=[].slice,C=/\.js$/;f=function(e,t){var n,i=u(e),o=i[0];return e=i[1],o&&(o=r(o,t),n=c(o)),o?e=n&&n.normalize?n.normalize(e,a(t)):r(e,t):(e=r(e,t),i=u(e),o=i[0],e=i[1],o&&(n=c(o))),{f:o?o+"!"+e:e,n:e,pr:o,p:n}},m={require:function(e){return s(e)},exports:function(e){var t=g[e];return void 0!==t?t:g[e]={}},module:function(e){return{id:e,uri:"",exports:g[e],config:d(e)}}},h=function(e,n,i,r){var a,u,d,h,p,y,w=[],k=typeof i;if(r=r||e,"undefined"===k||"function"===k){for(n=!n.length&&i.length?["require","exports","module"]:n,p=0;p<n.length;p+=1)if(h=f(n[p],r),"require"===(u=h.f))w[p]=m.require(e);else if("exports"===u)w[p]=m.exports(e),y=!0;else if("module"===u)a=w[p]=m.module(e);else if(o(g,u)||o(v,u)||o(b,u))w[p]=c(u);else{if(!h.p)throw new Error(e+" missing "+u);h.p.load(h.n,s(r,!0),l(u),{}),w[p]=g[u]}d=i?i.apply(g[e],w):void 0,e&&(a&&a.exports!==t&&a.exports!==g[e]?g[e]=a.exports:d===t&&y||(g[e]=d))}else e&&(g[e]=i)},e=n=p=function(e,n,i,o,r){if("string"==typeof e)return m[e]?m[e](n):c(f(e,n).f);if(!e.splice){if(y=e,y.deps&&p(y.deps,y.callback),!n)return;n.splice?(e=n,n=i,i=null):e=t}return n=n||function(){},"function"==typeof i&&(i=o,o=r),o?h(t,e,n,i):setTimeout(function(){h(t,e,n,i)},4),p},p.config=function(e){return p(e)},e._defined=g,i=function(e,t,n){if("string"!=typeof e)throw new Error("See almond README: incorrect module build, no module name");t.splice||(n=t,t=[]),o(g,e)||o(v,e)||(v[e]=[e,t,n])},i.amd={jQuery:!0}}(),t.requirejs=e,t.require=n,t.define=i}}(),t.define("almond",function(){}),t.define("jquery",[],function(){var t=e||$;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(e){function t(e){var t=e.prototype,n=[];for(var i in t){"function"==typeof t[i]&&"constructor"!==i&&n.push(i)}return n}var n={};n.Extend=function(e,t){function n(){this.constructor=e}var i={}.hasOwnProperty;for(var o in t)i.call(t,o)&&(e[o]=t[o]);return n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype,e},n.Decorate=function(e,n){function i(){var t=Array.prototype.unshift,i=n.prototype.constructor.length,o=e.prototype.constructor;i>0&&(t.call(arguments,e.prototype.constructor),o=n.prototype.constructor),o.apply(this,arguments)}function o(){this.constructor=i}var r=t(n),s=t(e);n.displayName=e.displayName,i.prototype=new o;for(var a=0;a<s.length;a++){var l=s[a];i.prototype[l]=e.prototype[l]}for(var c=0;c<r.length;c++){var u=r[c];i.prototype[u]=function(e){var t=function(){};e in i.prototype&&(t=i.prototype[e]);var o=n.prototype[e];return function(){return Array.prototype.unshift.call(arguments,t),o.apply(this,arguments)}}(u)}return i};var i=function(){this.listeners={}};return i.prototype.on=function(e,t){this.listeners=this.listeners||{},e in this.listeners?this.listeners[e].push(t):this.listeners[e]=[t]},i.prototype.trigger=function(e){var t=Array.prototype.slice,n=t.call(arguments,1);this.listeners=this.listeners||{},null==n&&(n=[]),0===n.length&&n.push({}),n[0]._type=e,e in this.listeners&&this.invoke(this.listeners[e],t.call(arguments,1)),"*"in this.listeners&&this.invoke(this.listeners["*"],arguments)},i.prototype.invoke=function(e,t){for(var n=0,i=e.length;i>n;n++)e[n].apply(this,t)},n.Observable=i,n.generateChars=function(e){for(var t="",n=0;e>n;n++){t+=Math.floor(36*Math.random()).toString(36)}return t},n.bind=function(e,t){return function(){e.apply(t,arguments)}},n._convertData=function(e){for(var t in e){var n=t.split("-"),i=e;if(1!==n.length){for(var o=0;o<n.length;o++){var r=n[o];r=r.substring(0,1).toLowerCase()+r.substring(1),r in i||(i[r]={}),o==n.length-1&&(i[r]=e[t]),i=i[r]}delete e[t]}}return e},n.hasScroll=function(t,n){var i=e(n),o=n.style.overflowX,r=n.style.overflowY;return(o!==r||"hidden"!==r&&"visible"!==r)&&("scroll"===o||"scroll"===r||(i.innerHeight()<n.scrollHeight||i.innerWidth()<n.scrollWidth))},n.escapeMarkup=function(e){var t={"\\":"\","&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};return"string"!=typeof e?e:String(e).replace(/[&<>"'\/\\]/g,function(e){return t[e]})},n.appendMany=function(t,n){if("1.7"===e.fn.jquery.substr(0,3)){var i=e();e.map(n,function(e){i=i.add(e)}),n=i}t.append(n)},n}),t.define("select2/results",["jquery","./utils"],function(e,t){function n(e,t,i){this.$element=e,this.data=i,this.options=t,n.__super__.constructor.call(this)}return t.Extend(n,t.Observable),n.prototype.render=function(){var t=e('<ul class="select2-results__options" role="tree"></ul>');return this.options.get("multiple")&&t.attr("aria-multiselectable","true"),this.$results=t,t},n.prototype.clear=function(){this.$results.empty()},n.prototype.displayMessage=function(t){var n=this.options.get("escapeMarkup");this.clear(),this.hideLoading();var i=e('<li role="treeitem" aria-live="assertive" class="select2-results__option"></li>'),o=this.options.get("translations").get(t.message);i.append(n(o(t.args))),i[0].className+=" select2-results__message",this.$results.append(i)},n.prototype.hideMessages=function(){this.$results.find(".select2-results__message").remove()},n.prototype.append=function(e){this.hideLoading();var t=[];if(null==e.results||0===e.results.length)return void(0===this.$results.children().length&&this.trigger("results:message",{message:"noResults"}));e.results=this.sort(e.results);for(var n=0;n<e.results.length;n++){var i=e.results[n],o=this.option(i);t.push(o)}this.$results.append(t)},n.prototype.position=function(e,t){t.find(".select2-results").append(e)},n.prototype.sort=function(e){return this.options.get("sorter")(e)},n.prototype.highlightFirstItem=function(){var e=this.$results.find(".select2-results__option[aria-selected]"),t=e.filter("[aria-selected=true]");t.length>0?t.first().trigger("mouseenter"):e.first().trigger("mouseenter"),this.ensureHighlightVisible()},n.prototype.setClasses=function(){var t=this;this.data.current(function(n){var i=e.map(n,function(e){return e.id.toString()});t.$results.find(".select2-results__option[aria-selected]").each(function(){var t=e(this),n=e.data(this,"data"),o=""+n.id;null!=n.element&&n.element.selected||null==n.element&&e.inArray(o,i)>-1?t.attr("aria-selected","true"):t.attr("aria-selected","false")})})},n.prototype.showLoading=function(e){this.hideLoading();var t=this.options.get("translations").get("searching"),n={disabled:!0,loading:!0,text:t(e)},i=this.option(n);i.className+=" loading-results",this.$results.prepend(i)},n.prototype.hideLoading=function(){this.$results.find(".loading-results").remove()},n.prototype.option=function(t){var n=document.createElement("li") 7;n.className="select2-results__option";var 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&&(n.id=t._resultId),t.title&&(n.title=t.title),t.children&&(i.role="group",i["aria-label"]=t.text,delete i["aria-selected"]);for(var o in i){var r=i[o];n.setAttribute(o,r)}if(t.children){var s=e(n),a=document.createElement("strong");a.className="select2-results__group",e(a),this.template(t,a);for(var l=[],c=0;c<t.children.length;c++){var u=t.children[c],d=this.option(u);l.push(d)}var h=e("<ul></ul>",{class:"select2-results__options select2-results__options--nested"});h.append(l),s.append(a),s.append(h)}else this.template(t,n);return e.data(n,"data",t),n},n.prototype.bind=function(t,n){var i=this,o=t.id+"-results";this.$results.attr("id",o),t.on("results:all",function(e){i.clear(),i.append(e.data),t.isOpen()&&(i.setClasses(),i.highlightFirstItem())}),t.on("results:append",function(e){i.append(e.data),t.isOpen()&&i.setClasses()}),t.on("query",function(e){i.hideMessages(),i.showLoading(e)}
vendor: 4,744 bytes, line 7
7),t.on("select",function(){t.isOpen()&&(i.setClasses(),i.highlightFirstItem())}),t.on("unselect",function(){t.isOpen()&&(i.setClasses(),i.highlightFirstItem())}),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 e=i.getHighlightedResults();0!==e.length&&e.trigger("mouseup")}),t.on("results:select",function(){var e=i.getHighlightedResults();if(0!==e.length){var t=e.data("data");"true"==e.attr("aria-selected")?i.trigger("close",{}):i.trigger("select",{data:t})}}),t.on("results:previous",function(){var e=i.getHighlightedResults(),t=i.$results.find("[aria-selected]"),n=t.index(e);if(0!==n){var o=n-1;0===e.length&&(o=0);var r=t.eq(o);r.trigger("mouseenter");var s=i.$results.offset().top,a=r.offset().top,l=i.$results.scrollTop()+(a-s);0===o?i.$results.scrollTop(0):0>a-s&&i.$results.scrollTop(l)}}),t.on("results:next",function(){var e=i.getHighlightedResults(),t=i.$results.find("[aria-selected]"),n=t.index(e),o=n+1;if(!(o>=t.length)){var r=t.eq(o);r.trigger("mouseenter");var s=i.$results.offset().top+i.$results.outerHeight(!1),a=r.offset().top+r.outerHeight(!1),l=i.$results.scrollTop()+a-s;0===o?i.$results.scrollTop(0):a>s&&i.$results.scrollTop(l)}}),t.on("results:focus",function(e){e.element.addClass("select2-results__option--highlighted")}),t.on("results:message",function(e){i.displayMessage(e)}),e.fn.mousewheel&&this.$results.on("mousewheel",function(e){var t=i.$results.scrollTop(),n=i.$results.get(0).scrollHeight-t+e.deltaY,o=e.deltaY>0&&t-e.deltaY<=0,r=e.deltaY<0&&n<=i.$results.height();o?(i.$results.scrollTop(0),e.preventDefault(),e.stopPropagation()):r&&(i.$results.scrollTop(i.$results.get(0).scrollHeight-i.$results.height()),e.preventDefault(),e.stopPropagation())}),this.$results.on("mouseup",".select2-results__option[aria-selected]",function(t){var n=e(this),o=n.data("data");return"true"===n.attr("aria-selected")?void(i.options.get("multiple")?i.trigger("unselect",{originalEvent:t,data:o}):i.trigger("close",{})):void i.trigger("select",{originalEvent:t,data:o})}),this.$results.on("mouseenter",".select2-results__option[aria-selected]",function(t){var n=e(this).data("data");i.getHighlightedResults().removeClass("select2-results__option--highlighted"),i.trigger("results:focus",{data:n,element:e(this)})})},n.prototype.getHighlightedResults=function(){return this.$results.find(".select2-results__option--highlighted")},n.prototype.destroy=function(){this.$results.remove()},n.prototype.ensureHighlightVisible=function(){var e=this.getHighlightedResults();if(0!==e.length){var t=this.$results.find("[aria-selected]"),n=t.index(e),i=this.$results.offset().top,o=e.offset().top,r=this.$results.scrollTop()+(o-i),s=o-i;r-=2*e.outerHeight(!1),2>=n?this.$results.scrollTop(0):(s>this.$results.outerHeight()||0>s)&&this.$results.scrollTop(r)}},n.prototype.template=function(t,n){var i=this.options.get("templateResult"),o=this.options.get("escapeMarkup"),r=i(t,n);null==r?n.style.display="none":"string"==typeof r?n.innerHTML=o(r):e(n).append(r)},n}),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(e,t,n){function i(e,t){this.$element=e,this.options=t,i.__super__.constructor.call(this)}return t.Extend(i,t.Observable),i.prototype.render=function(){var t=e('<span class="select2-selection" role="combobox" 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},i.prototype.bind=function(e,t){var i=this,o=(e.id,e.id+"-results");this.container=e,this.$selection.on("focus",function(e){i.trigger("focus",e)}),this.$selection.on("blur",function(e){i._handleBlur(e)}),this.$selection.on("keydown",function(e){i.trigger("keypress",e),e.which===n.SPACE&&e.preventDefault()}),e.on("results:focus",function(e){i.$selection.attr("aria-activedescendant",e.data._resultId)}),e.on("selection:update",function(e){i.update(e.data)}),e.on("open",function(){i.$selection.attr("aria-expanded","true"),i.$selection.attr("aria-owns",o),i._attachCloseHandler(e)}),e.on("close",function(){i.$selection.attr("aria-expanded","fal
7se"),i.$selection.removeAttr("aria-activedescendant"),i.$selection.removeAttr("aria-owns"),i.$selection.focus(),i._detachCloseHandler(e)}),e.on("enable",function(){i.$selection.attr("tabindex",i._tabindex)}),e.on("disable",function(){i.$selection.attr("tabindex","-1")})},i.prototype._handleBlur=function(t){var n=this;window.setTimeout(function(){document.activeElement==n.$selection[0]||e.contains(n.$selection[0],document.activeElement)||n.trigger("blur",t)},1)},i.prototype._attachCloseHandler=function(t){e(document.body).on("mousedown.select2."+t.id,function(t){var n=e(t.target),i=n.closest(".select2");e(".select2.select2-container--open").each(function(){var t=e(this);this!=i[0]&&t.data("element").select2("close")})})},i.prototype._detachCloseHandler=function(t){e(document.body).off("mousedown.select2."+t.id)},i.prototype.position=function(e,t){t.find(".selection").append(e)},i.prototype.destroy=function(){this._detachCloseHandler(this.container)},i.prototype.update=function(e){throw new Error("The `update` method must be defined in child classes.")},i}),t.define("select2/selection/single",["jquery","./base","../utils","../keys"],function(e,t,n,i){function o(){o.__super__.constructor.apply(this,arguments)}return n.Extend(o,t),o.prototype.render=function(){var e=o.__super__.render.call(this);return e.addClass("select2-selection--single"),e.html('<span class="select2-selection__rendered"></span><span class="select2-selection__arrow" role="presentation"><b role="presentation"></b></span>'),e},o.prototype.bind=function(e,t){var n=this;o.__super__.bind.apply(this,arguments);var i=e.id+"-container";this.$selection.find(".select2-selection__rendered").attr("id",i),this.$selection.attr("aria-labelledby",i),this.$selection.on("mousedown",function(e){1===e.which&&n.trigger("toggle",{originalEvent:e})}),this.$selection.on("focus",function(e){}),this.$selection.on("blur",function(e){}),e.on("focus",function(t){e.isOpen()||n.$selection.focus()}),e.on("selection:update",function(e){n.update(e.data)})},o.prototype.clear=function(){this.$selection.find(".select2-selection__rendered").empty()},o.prototype.display=function(e,t){var n=this.options.get("templateSelection");return this.options.get("escapeMarkup")(n(e,t))},o.prototype.selectionContainer=function(){return e("<span></span>")},o.prototype.update=function(e){if(0===e.length)return void this.clear();var t=e[0],n=this.$selection.find(".select2-selection__rendered"),i=this.display(t,n);n.empty().append(i),n.prop("title",t.title||t.text)},o}),t.define("select2/selection/multiple",["jquery","./base","../utils"],function(e,t,n){function i(e,t){i.__super__.constructor.apply(this,arguments)}return n.Extend(i,t),i.prototype.render=function(){var e=i.__super__.render.call(this);return e.addClass("select2-selection--multiple"),e.html('<ul class="select2-selection__rendered"></ul>'),e},i.prototype.bind=function(t,n){var o=this;i.__super__.bind.apply(this,arguments),this.$selection.on("click",function(e){o.trigger("toggle",{originalEvent:e})}),this.$selection.on("click",".select2-selection__choice__remove",function(t){if(!o.options.get("disabled")){var n=e(this),i=n.parent(),r=i.data("data");o.trigger("unselect",{originalEvent:t,data:r})}})},i.prototype.clear=function(){this.$selection.find(".select2-selection__rendered").empty()},i.prototype.display=function(e,t){var n=this.options.get("templateSelection");return this.options.get("escapeMarkup")(n(e,t))},i.prototype.selectionContainer=function(){return e('<li class="select2-selection__choice"><span class="select2-selection__choice__remove" role="presentation">×</span></li>')},i.prototype.update=function(e){if(this.clear(),0!==e.length){for(var t=[],i=0;i<e.length;i++){var o=e[i],r=this.selectionContainer(),s=this.display(o,r);r.append(s),r.prop("title",o.title||o.text),r.data("data",o),t.push(r)}var a=this.$selection.find(".select2-selection__rendered");n.appendMany(a,t)}},i}),t.define("select2/selection/placeholder",["../utils"],function(e){function t(e,t,n){this.placeholder=this.normalizePlaceholder(n.get("placeholder")),e.call(this,t,n)}return t.prototype.normalizePlaceholder=function(e,t){return"string"==typeof t&&(t={id:"",text:t}),t},t.prototype.createPlaceholder=function(e,t){var n=this.selectionContainer();return n.html(this.display(t)),n.addClass("select2-selection__placeholder").removeClass("select2-selection__choice"),n},t.prototype.update=function(e,t){var n=1==t.length&&t[0].id!=this.placeholder.id;if(t.length>1||n)return e.call(this,t);this.clear();var i=this.createPlaceholder(this.placeholder);this.$selection.find(".select2-selection__rendered").append(i)},t}
vendor: 5,068 bytes, line 7
7),t.define("select2/selection/allowClear",["jquery","../keys"],function(e,t){function n(){}return n.prototype.bind=function(e,t,n){var i=this;e.call(this,t,n),null==this.placeholder&&this.options.get("debug")&&window.console&&console.error&&console.error("Select2: The `allowClear` option should be used in combination with the `placeholder` option."),this.$selection.on("mousedown",".select2-selection__clear",function(e){i._handleClear(e)}),t.on("keypress",function(e){i._handleKeyboardClear(e,t)})},n.prototype._handleClear=function(e,t){if(!this.options.get("disabled")){var n=this.$selection.find(".select2-selection__clear");if(0!==n.length){t.stopPropagation();for(var i=n.data("data"),o=0;o<i.length;o++){var r={data:i[o]};if(this.trigger("unselect",r),r.prevented)return}this.$element.val(this.placeholder.id).trigger("change"),this.trigger("toggle",{})}}},n.prototype._handleKeyboardClear=function(e,n,i){i.isOpen()||(n.which==t.DELETE||n.which==t.BACKSPACE)&&this._handleClear(n)},n.prototype.update=function(t,n){if(t.call(this,n),!(this.$selection.find(".select2-selection__placeholder").length>0||0===n.length)){var i=e('<span class="select2-selection__clear">×</span>');i.data("data",n),this.$selection.find(".select2-selection__rendered").prepend(i)}},n}),t.define("select2/selection/search",["jquery","../utils","../keys"],function(e,t,n){function i(e,t,n){e.call(this,t,n)}return i.prototype.render=function(t){var n=e('<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" aria-autocomplete="list" /></li>');this.$searchContainer=n,this.$search=n.find("input");var i=t.call(this);return this._transferTabIndex(),i},i.prototype.bind=function(e,t,i){var o=this;e.call(this,t,i),t.on("open",function(){o.$search.trigger("focus")}),t.on("close",function(){o.$search.val(""),o.$search.removeAttr("aria-activedescendant"),o.$search.trigger("focus")}),t.on("enable",function(){o.$search.prop("disabled",!1),o._transferTabIndex()}),t.on("disable",function(){o.$search.prop("disabled",!0)}),t.on("focus",function(e){o.$search.trigger("focus")}),t.on("results:focus",function(e){o.$search.attr("aria-activedescendant",e.id)}),this.$selection.on("focusin",".select2-search--inline",function(e){o.trigger("focus",e)}),this.$selection.on("focusout",".select2-search--inline",function(e){o._handleBlur(e)}),this.$selection.on("keydown",".select2-search--inline",function(e){if(e.stopPropagation(),o.trigger("keypress",e),o._keyUpPrevented=e.isDefaultPrevented(),e.which===n.BACKSPACE&&""===o.$search.val()){var t=o.$searchContainer.prev(".select2-selection__choice");if(t.length>0){var i=t.data("data");o.searchRemoveChoice(i),e.preventDefault()}}});var r=document.documentMode,s=r&&11>=r;this.$selection.on("input.searchcheck",".select2-search--inline",function(e){return s?void o.$selection.off("input.search input.searchcheck"):void o.$selection.off("keyup.search")}),this.$selection.on("keyup.search input.search",".select2-search--inline",function(e){if(s&&"input"===e.type)return void o.$selection.off("input.search input.searchcheck");var t=e.which;t!=n.SHIFT&&t!=n.CTRL&&t!=n.ALT&&t!=n.TAB&&o.handleSearch(e)})},i.prototype._transferTabIndex=function(e){this.$search.attr("tabindex",this.$selection.attr("tabindex")),this.$selection.attr("tabindex","-1")},i.prototype.createPlaceholder=function(e,t){this.$search.attr("placeholder",t.text)},i.prototype.update=function(e,t){var n=this.$search[0]==document.activeElement;this.$search.attr("placeholder",""),e.call(this,t),this.$selection.find(".select2-selection__rendered").append(this.$searchContainer),this.resizeSearch(),n&&this.$search.focus()},i.prototype.handleSearch=function(){if(this.resizeSearch(),!this._keyUpPrevented){var e=this.$search.val();this.trigger("query",{term:e})}this._keyUpPrevented=!1},i.prototype.searchRemoveChoice=function(e,t){this.trigger("unselect",{data:t}),this.$search.val(t.text),this.handleSearch()},i.prototype.resizeSearch=function(){this.$search.css("width","25px");var e="";if(""!==this.$search.attr("placeholder"))e=this.$selection.find(".select2-selection__rendered").innerWidth();else{e=.75*(this.$search.val().length+1)+"em"}this.$search.css("width",e)},i}),t.define("select2/selection/eventRelay",["jquery"],function(e){function t(){}return t.prototype.bind=function(t,n,i){var o=this,r=["open","opening","close","closing","select","selecting","unselect","unselecting"],s=["opening","closing","selecting","unselecting"];t.call(this,n,i),n.on("*",function(t,n){if(-1!==e.inArray(t,r)){n=n||{};var i=e.Event("select2:"+t,{params:n});o.$element.trigger(i),-1!==e.inArray(t,s)&&(n.prevented=i.isDefaultPrevented())}})},t}),t.define("select2/translation",["jquery","require"],function(e,t){function n(e){this.dict=e||{}}return n.prototype.all=function(){return this.dict},n.prototype.get=function(e){return this.dict[e]},n.prototype.extend=function(t){this.dict=e.extend({},t.all(),this.dict)},n._cache={}
7,n.loadPath=function(e){if(!(e in n._cache)){var i=t(e);n._cache[e]=i}return new n(n._cache[e])},n}),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","Ɐ":"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","ê¹":"D","DZ":"DZ","Ç":"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","ê»":"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","â¾":"I","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","ê¢":"K","â":"L","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","ê":"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","áº":"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","ê¢":"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","Ä":"
7c","Ä":"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","â":"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(e){function t(e,n){t.__super__.constructor.call(this)}return e.Extend(t,e.Observable),t.prototype.current=function(e){throw new Error("The `current` method must be defined in child classes.")},t.prototype.query=function(e,t){throw new Error("The `query` method must be defined in child classes.")},t.prototype.bind=function(e,t){},t.prototype.destroy=function(){},t.prototype.generateResultId=function(t,n){var i=t.id+"-result-";return i+=e.generateChars(4),i+=null!=n.id?"-"+n.id.toString():"-"+e.generateChars(4)},t}),t.define("select2/data/select",["./base","../utils","jquery"],function(e,t,n){function i(e,t){this.$element=e,this.options=t,i.__super__.constructor.call(this)}return t.Extend(i,e),i.prototype.current=function(e){var t=[],i=this;this.$element.find(":selected").each(function(){var e=n(this),o=i.item(e);t.push(o)}),e(t)}
vendor: 9,821 bytes, lines 7-8
7,i.prototype.select=function(e){var t=this;if(e.selected=!0,n(e.element).is("option"))return e.element.selected=!0,void this.$element.trigger("change");if(this.$element.prop("multiple"))this.current(function(i){var o=[];e=[e],e.push.apply(e,i);for(var r=0;r<e.length;r++){var s=e[r].id;-1===n.inArray(s,o)&&o.push(s)}t.$element.val(o),t.$element.trigger("change")});else{var i=e.id;this.$element.val(i),this.$element.trigger("change")}},i.prototype.unselect=function(e){var t=this;if(this.$element.prop("multiple"))return e.selected=!1,n(e.element).is("option")?(e.element.selected=!1,void this.$element.trigger("change")):void this.current(function(i){for(var o=[],r=0;r<i.length;r++){var s=i[r].id;s!==e.id&&-1===n.inArray(s,o)&&o.push(s)}t.$element.val(o),t.$element.trigger("change")})},i.prototype.bind=function(e,t){var n=this;this.container=e,e.on("select",function(e){n.select(e.data)}),e.on("unselect",function(e){n.unselect(e.data)})},i.prototype.destroy=function(){this.$element.find("*").each(function(){n.removeData(this,"data")})},i.prototype.query=function(e,t){var i=[],o=this;this.$element.children().each(function(){var t=n(this);if(t.is("option")||t.is("optgroup")){var r=o.item(t),s=o.matches(e,r);null!==s&&i.push(s)}}),t({results:i})},i.prototype.addOptions=function(e){t.appendMany(this.$element,e)},i.prototype.option=function(e){var t;e.children?(t=document.createElement("optgroup"),t.label=e.text):(t=document.createElement("option"),void 0!==t.textContent?t.textContent=e.text:t.innerText=e.text),e.id&&(t.value=e.id),e.disabled&&(t.disabled=!0),e.selected&&(t.selected=!0),e.title&&(t.title=e.title);var i=n(t),o=this._normalizeItem(e);return o.element=t,n.data(t,"data",o),i},i.prototype.item=function(e){var t={};if(null!=(t=n.data(e[0],"data")))return t;if(e.is("option"))t={id:e.val(),text:e.text(),disabled:e.prop("disabled"),selected:e.prop("selected"),title:e.prop("title")};else if(e.is("optgroup")){t={text:e.prop("label"),children:[],title:e.prop("title")};for(var i=e.children("option"),o=[],r=0;r<i.length;r++){var s=n(i[r]),a=this.item(s);o.push(a)}t.children=o}return t=this._normalizeItem(t),t.element=e[0],n.data(e[0],"data",t),t},i.prototype._normalizeItem=function(e){n.isPlainObject(e)||(e={id:e,text:e}),e=n.extend({},{text:""},e);var t={selected:!1,disabled:!1};return null!=e.id&&(e.id=e.id.toString()),null!=e.text&&(e.text=e.text.toString()),null==e._resultId&&e.id&&null!=this.container&&(e._resultId=this.generateResultId(this.container,e)),n.extend({},t,e)},i.prototype.matches=function(e,t){return this.options.get("matcher")(e,t)},i}),t.define("select2/data/array",["./select","../utils","jquery"],function(e,t,n){function i(e,t){var n=t.get("data")||[];i.__super__.constructor.call(this,e,t),this.addOptions(this.convertToOptions(n))}return t.Extend(i,e),i.prototype.select=function(e){var t=this.$element.find("option").filter(function(t,n){return n.value==e.id.toString()});0===t.length&&(t=this.option(e),this.addOptions(t)),i.__super__.select.call(this,e)},i.prototype.convertToOptions=function(e){for(var i=this,o=this.$element.find("option"),r=o.map(function(){return i.item(n(this)).id}).get(),s=[],a=0;a<e.length;a++){var l=this._normalizeItem(e[a]);if(n.inArray(l.id,r)>=0){var c=o.filter(function(e){return function(){return n(this).val()==e.id}}(l)),u=this.item(c),d=n.extend(!0,{},l,u),h=this.option(d);c.replaceWith(h)}else{var p=this.option(l);if(l.children){var f=this.convertToOptions(l.children);t.appendMany(p,f)}s.push(p)}}return s},i}),t.define("select2/data/ajax",["./array","../utils","jquery"],function(e,t,n){function i(e,t){this.ajaxOptions=this._applyDefaults(t.get("ajax")),null!=this.ajaxOptions.processResults&&(this.processResults=this.ajaxOptions.processResults),i.__super__.constructor.call(this,e,t)}return t.Extend(i,e),i.prototype._applyDefaults=function(e){var t={data:function(e){return n.extend({},e,{q:e.term})},transport:function(e,t,i){var o=n.ajax(e);return o.then(t),o.fail(i),o}};return n.extend({},t,e,!0)},i.prototype.processResults=function(e){return e},i.prototype.query=function(e,t){function i(){var i=r.transport(r,function(i){var r=o.processResults(i,e);o.options.get("debug")&&window.console&&console.error&&(r&&r.results&&n.isArray(r.results)||console.error("Select2: The AJAX results did not return an array in the `results` key of the response.")),t(r)},function(){i.status&&"0"===i.status||o.trigger("results:message",{message:"errorLoading"})});o._request=i}var o=this;null!=this._request&&(n.isFunction(this._request.abort)&&this._request.abort(),this._request=null);var r=n.extend({type:"GET"},this.ajaxOptions);"function"==typeof r.url&&(r.url=r.url.call(this.$element,e)),"function"==typeof r.data&&(r.data=r.data.call(this.$element,e)),this.ajaxOptions.delay&&null!=e.term?(this._queryTimeout&&window.clearTimeout(this._queryTimeout),this._queryTimeout=window.setTimeout(i,this.ajaxOptions.delay)):i()},i}),t.define("select2/data/tags",["jquery"],function(e){function t(t,n,i){var o=i.get("tags"),r=i.get("createTag");void 0!==r&&(this.createTag=r);var s=i.get("insertTag");if(void 0!==s&&(this.insertTag=s),t.call(this,n,i),e.isArray(o))for(var a=0;a<o.length;a++){var l=o[a],c=this._normalizeItem(l),u=this.option(c);this.$element.append(u)}}return t.prototype.query=function(e,t,n){function i(e,r){for(var s=e.results,a=0;a<s.length;a++){var l=s[a],c=null!=l.children&&!i({results:l.children},!0);if(l.text===t.term||c)return!r&&(e.data=s,void n(e))}if(r)return!0;var u=o.createTag(t);if(null!=u){var d=o.option(u);d.attr("data-select2-tag",!0),o.addOptions([d]),o.insertTag(s,u)}e.results=s,n(e)}var o=this;return this._removeOldTags(),null==t.term||null!=t.page?void e.call(this,t,n):void e.call(this,t,i)},t.prototype.createTag=function(t,n){var i=e.trim(n.term);return""===i?null:{id:i,text:i}},t.prototype.insertTag=function(e,t,n){t.unshift(n)},t.prototype._removeOldTags=function(t){(this._lastTag,this.$element.find("option[data-select2-tag]")).each(function(){this.selected||e(this).remove()})},t}),t.define("select2/data/tokenizer",["jquery"],function(e){function t(e,t,n){var i=n.get("tokenizer");void 0!==i&&(this.tokenizer=i),e.call(this,t,n)}return t.prototype.bind=function(e,t,n){e.call(this,t,n),this.$search=t.dropdown.$search||t.selection.$search||n.find(".select2-search__field")},t.prototype.query=function(t,n,i){function o(t){var n=s._normalizeItem(t);if(!s.$element.find("option").filter(function(){return e(this).val()===n.id}).length){var i=s.option(n);i.attr("data-select2-tag",!0),s._removeOldTags(),s.addOptions([i])}r(n)}function r(e){s.trigger("select",{data:e})}var s=this;n.term=n.term||"";var a=this.tokenizer(n,this.options,o);a.term!==n.term&&(this.$search.length&&(this.$search.val(a.term),this.$search.focus()),n.term=a.term),t.call(this,n,i)},t.prototype.tokenizer=function(t,n,i,o){for(var r=i.get("tokenSeparators")||[],s=n.term,a=0,l=this.createTag||function(e){return{id:e.term,text:e.term}};a<s.length;){var c=s[a];if(-1!==e.inArray(c,r)){var u=s.substr(0,a),d=e.extend({},n,{term:u}),h=l(d);null!=h?(o(h),s=s.substr(a+1)||"",a=0):a++}else a++}return{term:s}},t}),t.define("select2/data/minimumInputLength",[],function(){function e(e,t,n){this.minimumInputLength=n.get("minimumInputLength"),e.call(this,t,n)}return e.prototype.query=function(e,t,n){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 e.call(this,t,n)},e}),t.define("select2/data/maximumInputLength",[],function(){function e(e,t,n){this.maximumInputLength=n.get("maximumInputLength"),e.call(this,t,n)}return e.prototype.query=function(e,t,n){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 e.call(this,t,n)},e}),t.define("select2/data/maximumSelectionLength",[],function(){function e(e,t,n){this.maximumSelectionLength=n.get("maximumSelectionLength"),e.call(this,t,n)}return e.prototype.query=function(e,t,n){var i=this;this.current(function(o){var r=null!=o?o.length:0;return i.maximumSelectionLength>0&&r>=i.maximumSelectionLength?void i.trigger("results:message",{message:"maximumSelected",args:{maximum:i.maximumSelectionLength}}):void e.call(i,t,n)})},e}),t.define("select2/dropdown",["jquery","./utils"],function(e,t){function n(e,t){this.$element=e,this.options=t,n.__super__.constructor.call(this)}return t.Extend(n,t.Observable),n.prototype.render=function(){ 8var t=e('<span class="select2-dropdown"><span class="select2-results"></span></span>');return t.attr("dir",this.options.get("dir")),this.$dropdown=t,t},n.prototype.bind=function(){},n.prototype.position=function(e,t){},n.prototype.destroy=function(){this.$dropdown.remove()},n}),t.define("select2/dropdown/search",["jquery","../utils"],function(e,t){function n(){}return n.prototype.render=function(t){var n=t.call(this),i=e('<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"),n.prepend(i),n},n.prototype.bind=function(t,n,i){var o=this;t.call(this,n,i),this.$search.on("keydown",function(e){o.trigger("keypress",e),o._keyUpPrevented=e.isDefaultPrevented()}),this.$search.on("input",function(t){e(this).off("keyup")}),this.$search.on("keyup input",function(e){o.handleSearch(e)}),n.on("open",function(){o.$search.attr("tabindex",0),o.$search.focus(),window.setTimeout(function(){o.$search.focus()},0)}),n.on("close",function(){o.$search.attr("tabindex",-1),o.$search.val("")}
vendor: 9,733 bytes, line 8
8),n.on("focus",function(){n.isOpen()&&o.$search.focus()}),n.on("results:all",function(e){if(null==e.query.term||""===e.query.term){o.showSearch(e)?o.$searchContainer.removeClass("select2-search--hide"):o.$searchContainer.addClass("select2-search--hide")}})},n.prototype.handleSearch=function(e){if(!this._keyUpPrevented){var t=this.$search.val();this.trigger("query",{term:t})}this._keyUpPrevented=!1},n.prototype.showSearch=function(e,t){return!0},n}),t.define("select2/dropdown/hidePlaceholder",[],function(){function e(e,t,n,i){this.placeholder=this.normalizePlaceholder(n.get("placeholder")),e.call(this,t,n,i)}return e.prototype.append=function(e,t){t.results=this.removePlaceholder(t.results),e.call(this,t)},e.prototype.normalizePlaceholder=function(e,t){return"string"==typeof t&&(t={id:"",text:t}),t},e.prototype.removePlaceholder=function(e,t){for(var n=t.slice(0),i=t.length-1;i>=0;i--){var o=t[i];this.placeholder.id===o.id&&n.splice(i,1)}return n},e}),t.define("select2/dropdown/infiniteScroll",["jquery"],function(e){function t(e,t,n,i){this.lastParams={},e.call(this,t,n,i),this.$loadingMore=this.createLoadingMore(),this.loading=!1}return t.prototype.append=function(e,t){this.$loadingMore.remove(),this.loading=!1,e.call(this,t),this.showLoadingMore(t)&&this.$results.append(this.$loadingMore)},t.prototype.bind=function(t,n,i){var o=this;t.call(this,n,i),n.on("query",function(e){o.lastParams=e,o.loading=!0}),n.on("query:append",function(e){o.lastParams=e,o.loading=!0}),this.$results.on("scroll",function(){var t=e.contains(document.documentElement,o.$loadingMore[0]);if(!o.loading&&t){o.$results.offset().top+o.$results.outerHeight(!1)+50>=o.$loadingMore.offset().top+o.$loadingMore.outerHeight(!1)&&o.loadMore()}})},t.prototype.loadMore=function(){this.loading=!0;var t=e.extend({},{page:1},this.lastParams);t.page++,this.trigger("query:append",t)},t.prototype.showLoadingMore=function(e,t){return t.pagination&&t.pagination.more},t.prototype.createLoadingMore=function(){var t=e('<li class="select2-results__option select2-results__option--load-more"role="treeitem" aria-disabled="true"></li>'),n=this.options.get("translations").get("loadingMore");return t.html(n(this.lastParams)),t},t}),t.define("select2/dropdown/attachBody",["jquery","../utils"],function(e,t){function n(t,n,i){this.$dropdownParent=i.get("dropdownParent")||e(document.body),t.call(this,n,i)}return n.prototype.bind=function(e,t,n){var i=this,o=!1;e.call(this,t,n),t.on("open",function(){i._showDropdown(),i._attachPositioningHandler(t),o||(o=!0,t.on("results:all",function(){i._positionDropdown(),i._resizeDropdown()}),t.on("results:append",function(){i._positionDropdown(),i._resizeDropdown()}))}),t.on("close",function(){i._hideDropdown(),i._detachPositioningHandler(t)}),this.$dropdownContainer.on("mousedown",function(e){e.stopPropagation()})},n.prototype.destroy=function(e){e.call(this),this.$dropdownContainer.remove()},n.prototype.position=function(e,t,n){t.attr("class",n.attr("class")),t.removeClass("select2"),t.addClass("select2-container--open"),t.css({position:"absolute",top:-999999}),this.$container=n},n.prototype.render=function(t){var n=e("<span></span>"),i=t.call(this);return n.append(i),this.$dropdownContainer=n,n},n.prototype._hideDropdown=function(e){this.$dropdownContainer.detach()},n.prototype._attachPositioningHandler=function(n,i){var o=this,r="scroll.select2."+i.id,s="resize.select2."+i.id,a="orientationchange.select2."+i.id,l=this.$container.parents().filter(t.hasScroll);l.each(function(){e(this).data("select2-scroll-position",{x:e(this).scrollLeft(),y:e(this).scrollTop()})}),l.on(r,function(t){var n=e(this).data("select2-scroll-position");e(this).scrollTop(n.y)}),e(window).on(r+" "+s+" "+a,function(e){o._positionDropdown(),o._resizeDropdown()})},n.prototype._detachPositioningHandler=function(n,i){var o="scroll.select2."+i.id,r="resize.select2."+i.id,s="orientationchange.select2."+i.id;this.$container.parents().filter(t.hasScroll).off(o),e(window).off(o+" "+r+" "+s)},n.prototype._positionDropdown=function(){var t=e(window),n=this.$dropdown.hasClass("select2-dropdown--above"),i=this.$dropdown.hasClass("select2-dropdown--below"),o=null,r=this.$container.offset();r.bottom=r.top+this.$container.outerHeight(!1);var s={height:this.$container.outerHeight(!1)};s.top=r.top,s.bottom=r.top+s.height;var a={height:this.$dropdown.outerHeight(!1)},l={top:t.scrollTop(),bottom:t.scrollTop()+t.height()},c=l.top<r.top-a.height,u=l.bottom>r.bottom+a.height,d={left:r.left,top:s.bottom},h=this.$dropdownParent;"static"===h.css("position")&&(h=h.offsetParent());var p=h.offset();d.top-=p.top,d.left-=p.left,n||i||(o="below"),u||!c||n?!c&&u&&n&&(o="below"):o="above",("above"==o||n&&"below"!==o)&&(d.top=s.top-p.top-a.height),null!=o&&(this.$dropdown.removeClass("select2-dropdown--below select2-dropdown--above").addClass("select2-dropdown--"+o),this.$container.removeClass("select2-container--below select2-container--above").addClass("select2-container--"+o)),this.$dropdownContainer.css(d)},n.prototype._resizeDropdown=function(){var e={width:this.$container.outerWidth(!1)+"px"};this.options.get("dropdownAutoWidth")&&(e.minWidth=e.width,e.position="relative",e.width="auto"),this.$dropdown.css(e)},n.prototype._showDropdown=function(e){this.$dropdownContainer.appendTo(this.$dropdownParent),this._positionDropdown(),this._resizeDropdown()},n}),t.define("select2/dropdown/minimumResultsForSearch",[],function(){function e(t){for(var n=0,i=0;i<t.length;i++){var o=t[i];o.children?n+=e(o.children):n++}return n}function t(e,t,n,i){this.minimumResultsForSearch=n.get("minimumResultsForSearch"),this.minimumResultsForSearch<0&&(this.minimumResultsForSearch=1/0),e.call(this,t,n,i)}return t.prototype.showSearch=function(t,n){return!(e(n.data.results)<this.minimumResultsForSearch)&&t.call(this,n)},t}),t.define("select2/dropdown/selectOnClose",[],function(){function e(){}return e.prototype.bind=function(e,t,n){var i=this;e.call(this,t,n),t.on("close",function(e){i._handleSelectOnClose(e)})},e.prototype._handleSelectOnClose=function(e,t){if(t&&null!=t.originalSelect2Event){var n=t.originalSelect2Event;if("select"===n._type||"unselect"===n._type)return}var i=this.getHighlightedResults();if(!(i.length<1)){var o=i.data("data");null!=o.element&&o.element.selected||null==o.element&&o.selected||this.trigger("select",{data:o})}},e}),t.define("select2/dropdown/closeOnSelect",[],function(){function e(){}return e.prototype.bind=function(e,t,n){var i=this;e.call(this,t,n),t.on("select",function(e){i._selectTriggered(e)}),t.on("unselect",function(e){i._selectTriggered(e)})},e.prototype._selectTriggered=function(e,t){var n=t.originalEvent;n&&n.ctrlKey||this.trigger("close",{originalEvent:n,originalSelect2Event:t})},e}),t.define("select2/i18n/en",[],function(){return{errorLoading:function(){return"The results could not be loaded."},inputTooLong:function(e){var t=e.input.length-e.maximum,n="Please delete "+t+" character";return 1!=t&&(n+="s"),n},inputTooShort:function(e){return"Please enter "+(e.minimum-e.input.length)+" or more characters"},loadingMore:function(){return"Loading more resultsâ¦"},maximumSelected:function(e){var t="You can only select "+e.maximum+" item";return 1!=e.maximum&&(t+="s"),t},noResults:function(){return"No results found"},searching:function(){return"Searchingâ¦"}}}),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(e,t,n,i,o,r,s,a,l,c,u,d,h,p,f,m,g,v,y,b,w,k,C,x,_,S,T,E,$){function I(){this.reset()}return I.prototype.apply=function(d){if(d=e.extend(!0,{},this.defaults,d),null==d.dataAdapter){if(null!=d.ajax?d.dataAdapter=f:null!=d.data?d.dataAdapter=p:d.dataAdapter=h,d.minimumInputLength>0&&(d.dataAdapter=c.Decorate(d.dataAdapter,v)),d.maximumInputLength>0&&(d.dataAdapter=c.Decorate(d.dataAdapter,y)),d.maximumSelectionLength>0&&(d.dataAdapter=c.Decorate(d.dataAdapter,b)),d.tags&&(d.dataAdapter=c.Decorate(d.dataAdapter,m)),(null!=d.tokenSeparators||null!=d.tokenizer)&&(d.dataAdapter=c.Decorate(d.dataAdapter,g)),null!=d.query){var $=t(d.amdBase+"compat/query");d.dataAdapter=c.Decorate(d.dataAdapter,$)}if(null!=d.initSelection){var I=t(d.amdBase+"compat/initSelection");d.dataAdapter=c.Decorate(d.dataAdapter,I)}}if(null==d.resultsAdapter&&(d.resultsAdapter=n,null!=d.ajax&&(d.resultsAdapter=c.Decorate(d.resultsAdapter,x)),null!=d.placeholder&&(d.resultsAdapter=c.Decorate(d.resultsAdapter,C)),d.selectOnClose&&(d.resultsAdapter=c.Decorate(d.resultsAdapter,T))),null==d.dropdownAdapter){if(d.multiple)d.dropdownAdapter=w;else{var P=c.Decorate(w,k);d.dropdownAdapter=P}if(0!==d.minimumResultsForSearch&&(d.dropdownAdapter=c.Decorate(d.dropdownAdapter,S)),d.closeOnSelect&&(d.dropdownAdapter=c.Decorate(d.dropdownAdapter,E)),null!=d.dropdownCssClass||null!=d.dropdownCss||null!=d.adaptDropdownCssClass){var D=t(d.amdBase+"compat/dropdownCss");d.dropdownAdapter=c.Decorate(d.dropdownAdapter,D)}d.dropdownAdapter=c.Decorate(d.dropdownAdapter,_)}if(null==d.selectionAdapter){if(d.multiple?d.selectionAdapter=o:d.selectionAdapter=i,null!=d.placeholder&&(d.selectionAdapter=c.Decorate(d.selectionAdapter,r)),d.allowClear&&(d.selectionAdapter=c.Decorate(d.selectionAdapter,s
vendor: 1,045 bytes, line 8
8)),d.multiple&&(d.selectionAdapter=c.Decorate(d.selectionAdapter,a)),null!=d.containerCssClass||null!=d.containerCss||null!=d.adaptContainerCssClass){var A=t(d.amdBase+"compat/containerCss");d.selectionAdapter=c.Decorate(d.selectionAdapter,A)}d.selectionAdapter=c.Decorate(d.selectionAdapter,l)}if("string"==typeof d.language)if(d.language.indexOf("-")>0){var R=d.language.split("-"),N=R[0];d.language=[d.language,N]}else d.language=[d.language];if(e.isArray(d.language)){var L=new u;d.language.push("en");for(var M=d.language,O=0;O<M.length;O++){var j=M[O],H={};try{H=u.loadPath(j)}catch(e){try{j=this.defaults.amdLanguageBase+j,H=u.loadPath(j)}catch(e){d.debug&&window.console&&console.warn&&console.warn('Select2: The language file for "'+j+'" could not be automatically loaded. A fallback will be used instead.');continue}}L.extend(H)}d.translations=L}else{var F=u.loadPath(this.defaults.amdLanguageBase+"en"),B=new u(d.language);B.extend(F),d.translations=B}return d},I.prototype.reset=function(){function t(e){function t(e){return d[e]||e}
vendor: 2,989 bytes, line 8
8return e.replace(/[^\u0000-\u007E]/g,t)}function n(i,o){if(""===e.trim(i.term))return o;if(o.children&&o.children.length>0){for(var r=e.extend(!0,{},o),s=o.children.length-1;s>=0;s--){null==n(i,o.children[s])&&r.children.splice(s,1)}return r.children.length>0?r:n(i,r)}var a=t(o.text).toUpperCase(),l=t(i.term).toUpperCase();return a.indexOf(l)>-1?o:null}this.defaults={amdBase:"./",amdLanguageBase:"./i18n/",closeOnSelect:!0,debug:!1,dropdownAutoWidth:!1,escapeMarkup:c.escapeMarkup,language:$,matcher:n,minimumInputLength:0,maximumInputLength:0,maximumSelectionLength:0,minimumResultsForSearch:0,selectOnClose:!1,sorter:function(e){return e},templateResult:function(e){return e.text},templateSelection:function(e){return e.text},theme:"default",width:"resolve"}},I.prototype.set=function(t,n){var i=e.camelCase(t),o={};o[i]=n;var r=c._convertData(o);e.extend(this.defaults,r)},new I}),t.define("select2/options",["require","jquery","./defaults","./utils"],function(e,t,n,i){function o(t,o){if(this.options=t,null!=o&&this.fromElement(o),this.options=n.apply(this.options),o&&o.is("input")){var r=e(this.get("amdBase")+"compat/inputData");this.options.dataAdapter=i.Decorate(this.options.dataAdapter,r)}}return o.prototype.fromElement=function(e){var n=["select2"];null==this.options.multiple&&(this.options.multiple=e.prop("multiple")),null==this.options.disabled&&(this.options.disabled=e.prop("disabled")),null==this.options.language&&(e.prop("lang")?this.options.language=e.prop("lang").toLowerCase():e.closest("[lang]").prop("lang")&&(this.options.language=e.closest("[lang]").prop("lang"))),null==this.options.dir&&(e.prop("dir")?this.options.dir=e.prop("dir"):e.closest("[dir]").prop("dir")?this.options.dir=e.closest("[dir]").prop("dir"):this.options.dir="ltr"),e.prop("disabled",this.options.disabled),e.prop("multiple",this.options.multiple),e.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.'),e.data("data",e.data("select2Tags")),e.data("tags",!0)),e.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."),e.attr("ajax--url",e.data("ajaxUrl")),e.data("ajax--url",e.data("ajaxUrl")));var o={};o=t.fn.jquery&&"1."==t.fn.jquery.substr(0,2)&&e[0].dataset?t.extend(!0,{},e[0].dataset,e.data()):e.data();var r=t.extend(!0,{},o);r=i._convertData(r);for(var s in r)t.inArray(s,n)>-1||(t.isPlainObject(this.options[s])?t.extend(this.options[s],r[s]):this.options[s]=r[s]);return this},o.prototype.get=function(e){return this.options[e]},o.prototype.set=function(e,t){this.options[e]=t},o}),t.define("select2/core",["jquery","./options","./utils","./keys"],function(e,t,n,i){var o=function(e,n){
vendor: 4,594 bytes, line 8
8null!=e.data("select2")&&e.data("select2").destroy(),this.$element=e,this.id=this._generateId(e),n=n||{},this.options=new t(n,e),o.__super__.constructor.call(this);var i=e.attr("tabindex")||0;e.data("old-tabindex",i),e.attr("tabindex","-1");var r=this.options.get("dataAdapter");this.dataAdapter=new r(e,this.options);var s=this.render();this._placeContainer(s);var a=this.options.get("selectionAdapter");this.selection=new a(e,this.options),this.$selection=this.selection.render(),this.selection.position(this.$selection,s);var l=this.options.get("dropdownAdapter");this.dropdown=new l(e,this.options),this.$dropdown=this.dropdown.render(),this.dropdown.position(this.$dropdown,s);var c=this.options.get("resultsAdapter");this.results=new c(e,this.options,this.dataAdapter),this.$results=this.results.render(),this.results.position(this.$results,this.$dropdown);var u=this;this._bindAdapters(),this._registerDomEvents(),this._registerDataEvents(),this._registerSelectionEvents(),this._registerDropdownEvents(),this._registerResultsEvents(),this._registerEvents(),this.dataAdapter.current(function(e){u.trigger("selection:update",{data:e})}),e.addClass("select2-hidden-accessible"),e.attr("aria-hidden","true"),this._syncAttributes(),e.data("select2",this)};return n.Extend(o,n.Observable),o.prototype._generateId=function(e){var t="";return t=null!=e.attr("id")?e.attr("id"):null!=e.attr("name")?e.attr("name")+"-"+n.generateChars(2):n.generateChars(4),t=t.replace(/(:|\.|\[|\]|,)/g,""),t="select2-"+t},o.prototype._placeContainer=function(e){e.insertAfter(this.$element);var t=this._resolveWidth(this.$element,this.options.get("width"));null!=t&&e.css("width",t)},o.prototype._resolveWidth=function(e,t){var n=/^width:(([-+]?([0-9]*\.)?[0-9]+)(px|em|ex|%|in|cm|mm|pt|pc))/i;if("resolve"==t){var i=this._resolveWidth(e,"style");return null!=i?i:this._resolveWidth(e,"element")}if("element"==t){var o=e.outerWidth(!1);return 0>=o?"auto":o+"px"}if("style"==t){var r=e.attr("style");if("string"!=typeof r)return null;for(var s=r.split(";"),a=0,l=s.length;l>a;a+=1){var c=s[a].replace(/\s/g,""),u=c.match(n);if(null!==u&&u.length>=1)return u[1]}return null}return t},o.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)},o.prototype._registerDomEvents=function(){var t=this;this.$element.on("change.select2",function(){t.dataAdapter.current(function(e){t.trigger("selection:update",{data:e})})}),this.$element.on("focus.select2",function(e){t.trigger("focus",e)}),this._syncA=n.bind(this._syncAttributes,this),this._syncS=n.bind(this._syncSubtree,this),this.$element[0].attachEvent&&this.$element[0].attachEvent("onpropertychange",this._syncA);var i=window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver;null!=i?(this._observer=new i(function(n){e.each(n,t._syncA),e.each(n,t._syncS)}),this._observer.observe(this.$element[0],{attributes:!0,childList:!0,subtree:!1})):this.$element[0].addEventListener&&(this.$element[0].addEventListener("DOMAttrModified",t._syncA,!1),this.$element[0].addEventListener("DOMNodeInserted",t._syncS,!1),this.$element[0].addEventListener("DOMNodeRemoved",t._syncS,!1))},o.prototype._registerDataEvents=function(){var e=this;this.dataAdapter.on("*",function(t,n){e.trigger(t,n)})},o.prototype._registerSelectionEvents=function(){var t=this,n=["toggle","focus"];this.selection.on("toggle",function(){t.toggleDropdown()}),this.selection.on("focus",function(e){t.focus(e)}),this.selection.on("*",function(i,o){-1===e.inArray(i,n)&&t.trigger(i,o)})},o.prototype._registerDropdownEvents=function(){var e=this;this.dropdown.on("*",function(t,n){e.trigger(t,n)})},o.prototype._registerResultsEvents=function(){var e=this;this.results.on("*",function(t,n){e.trigger(t,n)})},o.prototype._registerEvents=function(){var e=this;this.on("open",function(){e.$container.addClass("select2-container--open")}),this.on("close",function(){e.$container.removeClass("select2-container--open")}),this.on("enable",function(){e.$container.removeClass("select2-container--disabled")}),this.on("disable",function(){e.$container.addClass("select2-container--disabled")}),this.on("blur",function(){e.$container.removeClass("select2-container--focus")}),this.on("query",function(t){e.isOpen()||e.trigger("open",{}),this.dataAdapter.query(t,function(n){e.trigger("results:all",{data:n,query:t})})}),this.on("query:append",function(t){this.dataAdapter.query(t,function(n){e.trigger("results:append",{data:n,query:t})})}
vendor: 10,211 bytes, line 8
8),this.on("keypress",function(t){var n=t.which;e.isOpen()?n===i.ESC||n===i.TAB||n===i.UP&&t.altKey?(e.close(),t.preventDefault()):n===i.ENTER?(e.trigger("results:select",{}),t.preventDefault()):n===i.SPACE&&t.ctrlKey?(e.trigger("results:toggle",{}),t.preventDefault()):n===i.UP?(e.trigger("results:previous",{}),t.preventDefault()):n===i.DOWN&&(e.trigger("results:next",{}),t.preventDefault()):(n===i.ENTER||n===i.SPACE||n===i.DOWN&&t.altKey)&&(e.open(),t.preventDefault())})},o.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",{})},o.prototype._syncSubtree=function(e,t){var n=!1,i=this;if(!e||!e.target||"OPTION"===e.target.nodeName||"OPTGROUP"===e.target.nodeName){if(t)if(t.addedNodes&&t.addedNodes.length>0)for(var o=0;o<t.addedNodes.length;o++){var r=t.addedNodes[o];r.selected&&(n=!0)}else t.removedNodes&&t.removedNodes.length>0&&(n=!0);else n=!0;n&&this.dataAdapter.current(function(e){i.trigger("selection:update",{data:e})})}},o.prototype.trigger=function(e,t){var n=o.__super__.trigger,i={open:"opening",close:"closing",select:"selecting",unselect:"unselecting"};if(void 0===t&&(t={}),e in i){var r=i[e],s={prevented:!1,name:e,args:t};if(n.call(this,r,s),s.prevented)return void(t.prevented=!0)}n.call(this,e,t)},o.prototype.toggleDropdown=function(){this.options.get("disabled")||(this.isOpen()?this.close():this.open())},o.prototype.open=function(){this.isOpen()||this.trigger("query",{})},o.prototype.close=function(){this.isOpen()&&this.trigger("close",{})},o.prototype.isOpen=function(){return this.$container.hasClass("select2-container--open")},o.prototype.hasFocus=function(){return this.$container.hasClass("select2-container--focus")},o.prototype.focus=function(e){this.hasFocus()||(this.$container.addClass("select2-container--focus"),this.trigger("focus",{}))},o.prototype.enable=function(e){this.options.get("debug")&&window.console&&console.warn&&console.warn('Select2: The `select2("enable")` method has been deprecated and will be removed in later Select2 versions. Use $element.prop("disabled") instead.'),(null==e||0===e.length)&&(e=[!0]);var t=!e[0];this.$element.prop("disabled",t)},o.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 e=[];return this.dataAdapter.current(function(t){e=t}),e},o.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 n=t[0];e.isArray(n)&&(n=e.map(n,function(e){return e.toString()})),this.$element.val(n).trigger("change")},o.prototype.destroy=function(){this.$container.remove(),this.$element[0].detachEvent&&this.$element[0].detachEvent("onpropertychange",this._syncA),null!=this._observer?(this._observer.disconnect(),this._observer=null):this.$element[0].removeEventListener&&(this.$element[0].removeEventListener("DOMAttrModified",this._syncA,!1),this.$element[0].removeEventListener("DOMNodeInserted",this._syncS,!1),this.$element[0].removeEventListener("DOMNodeRemoved",this._syncS,!1)),this._syncA=null,this._syncS=null,this.$element.off(".select2"),this.$element.attr("tabindex",this.$element.data("old-tabindex")),this.$element.removeClass("select2-hidden-accessible"),this.$element.attr("aria-hidden","false"),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},o.prototype.render=function(){var t=e('<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},o}),t.define("select2/compat/utils",["jquery"],function(e){function t(t,n,i){var o,r,s=[];o=e.trim(t.attr("class")),o&&(o=""+o,e(o.split(/\s+/)).each(function(){0===this.indexOf("select2-")&&s.push(this)})),o=e.trim(n.attr("class")),o&&(o=""+o,e(o.split(/\s+/)).each(function(){0!==this.indexOf("select2-")&&null!=(r=i(this))&&s.push(r)})),t.attr("class",s.join(" "))}return{syncCssClasses:t}}),t.define("select2/compat/containerCss",["jquery","./utils"],function(e,t){function n(e){return null}function i(){}return i.prototype.render=function(i){var o=i.call(this),r=this.options.get("containerCssClass")||"";e.isFunction(r)&&(r=r(this.$element));var s=this.options.get("adaptContainerCssClass");if(s=s||n,-1!==r.indexOf(":all:")){r=r.replace(":all:","");var a=s;s=function(e){var t=a(e);return null!=t?t+" "+e:e}}var l=this.options.get("containerCss")||{};return e.isFunction(l)&&(l=l(this.$element)),t.syncCssClasses(o,this.$element,s),o.css(l),o.addClass(r),o},i}),t.define("select2/compat/dropdownCss",["jquery","./utils"],function(e,t){function n(e){return null}function i(){}return i.prototype.render=function(i){var o=i.call(this),r=this.options.get("dropdownCssClass")||"";e.isFunction(r)&&(r=r(this.$element));var s=this.options.get("adaptDropdownCssClass");if(s=s||n,-1!==r.indexOf(":all:")){r=r.replace(":all:","");var a=s;s=function(e){var t=a(e);return null!=t?t+" "+e:e}}var l=this.options.get("dropdownCss")||{};return e.isFunction(l)&&(l=l(this.$element)),t.syncCssClasses(o,this.$element,s),o.css(l),o.addClass(r),o},i}),t.define("select2/compat/initSelection",["jquery"],function(e){function t(e,t,n){n.get("debug")&&window.console&&console.warn&&console.warn("Select2: The `initSelection` option has been deprecated in favor of a custom data adapter that overrides the `current` method. This method is now called multiple times instead of a single time when the instance is initialized. Support will be removed for the `initSelection` option in future versions of Select2"),this.initSelection=n.get("initSelection"),this._isInitialized=!1,e.call(this,t,n)}return t.prototype.current=function(t,n){var i=this;return this._isInitialized?void t.call(this,n):void this.initSelection.call(null,this.$element,function(t){i._isInitialized=!0,e.isArray(t)||(t=[t]),n(t)})},t}),t.define("select2/compat/inputData",["jquery"],function(e){function t(e,t,n){this._currentData=[],this._valueSeparator=n.get("valueSeparator")||",","hidden"===t.prop("type")&&n.get("debug")&&console&&console.warn&&console.warn("Select2: Using a hidden input with Select2 is no longer supported and may stop working in the future. It is recommended to use a `<select>` element instead."),e.call(this,t,n)}return t.prototype.current=function(t,n){function i(t,n){var o=[];return t.selected||-1!==e.inArray(t.id,n)?(t.selected=!0,o.push(t)):t.selected=!1,t.children&&o.push.apply(o,i(t.children,n)),o}for(var o=[],r=0;r<this._currentData.length;r++){var s=this._currentData[r];o.push.apply(o,i(s,this.$element.val().split(this._valueSeparator)))}n(o)},t.prototype.select=function(t,n){if(this.options.get("multiple")){var i=this.$element.val();i+=this._valueSeparator+n.id,this.$element.val(i),this.$element.trigger("change")}else this.current(function(t){e.map(t,function(e){e.selected=!1})}),this.$element.val(n.id),this.$element.trigger("change")},t.prototype.unselect=function(e,t){var n=this;t.selected=!1,this.current(function(e){for(var i=[],o=0;o<e.length;o++){var r=e[o];t.id!=r.id&&i.push(r.id)}n.$element.val(i.join(n._valueSeparator)),n.$element.trigger("change")})},t.prototype.query=function(e,t,n){for(var i=[],o=0;o<this._currentData.length;o++){var r=this._currentData[o],s=this.matches(t,r);null!==s&&i.push(s)}n({results:i})},t.prototype.addOptions=function(t,n){var i=e.map(n,function(t){return e.data(t[0],"data")});this._currentData.push.apply(this._currentData,i)},t}),t.define("select2/compat/matcher",["jquery"],function(e){function t(t){function n(n,i){var o=e.extend(!0,{},i);if(null==n.term||""===e.trim(n.term))return o;if(i.children){for(var r=i.children.length-1;r>=0;r--){var s=i.children[r];t(n.term,s.text,s)||o.children.splice(r,1)}if(o.children.length>0)return o}return t(n.term,i.text,i)?o:null}return n}return t}),t.define("select2/compat/query",[],function(){function e(e,t,n){n.get("debug")&&window.console&&console.warn&&console.warn("Select2: The `query` option has been deprecated in favor of a custom data adapter that overrides the `query` method. Support will be removed for the `query` option in future versions of Select2."),e.call(this,t,n)}return e.prototype.query=function(e,t,n){t.callback=n,this.options.get("query").call(null,t)},e}),t.define("select2/dropdown/attachContainer",[],function(){function e(e,t,n){e.call(this,t,n)}return e.prototype.position=function(e,t,n){n.find(".dropdown-wrapper").append(t),t.addClass("select2-dropdown--below"),n.addClass("select2-container--below")},e}),t.define("select2/dropdown/stopPropagation",[],function(){function e(){}return e.prototype.bind=function(e,t,n){e.call(this,t,n);var i=["blur","change","click","dblclick","focus","focusin","focusout","input","keydown","keyup","keypress","mousedown","mouseenter","mouseleave","mousemove","mouseover","mouseup","search","touchend","touchstart"];this.$dropdown.on(i.join(" "),function(e){e.stopPropagation()})},e}),t.define("select2/selection/stopPropagation",[],function(){function e(){}return e.prototype.bind=function(e,t,n){e.call(this,t,n);var i=["blur","change","click","dblclick","focus","focusin","focusout","input","keydown","keyup","keypress","mousedown","mouseenter","mouseleave","mousemove","mouseover","mouseup","search","touchend","touchstart"];this.$selection.on(i.join(" "),function(e){e.stopPropagation()})},e}),function(n){"function"==typeof t.define&&t.define.amd?t.define("jquery-mousewheel",["jquery"],n):"object"==typeof exports?module.exports=n:n(e)}(function(e){function t(t){var s=t||window.event,a=l.call(arguments,1
8),c=0,d=0,h=0,p=0,f=0,m=0;if(t=e.event.fix(s),t.type="mousewheel","detail"in s&&(h=-1*s.detail),"wheelDelta"in s&&(h=s.wheelDelta),"wheelDeltaY"in s&&(h=s.wheelDeltaY),"wheelDeltaX"in s&&(d=-1*s.wheelDeltaX),"axis"in s&&s.axis===s.HORIZONTAL_AXIS&&(d=-1*h,h=0),c=0===h?d:h,"deltaY"in s&&(h=-1*s.deltaY,c=h),"deltaX"in s&&(d=s.deltaX,0===h&&(c=-1*d)),0!==h||0!==d){if(1===s.deltaMode){var g=e.data(this,"mousewheel-line-height");c*=g,h*=g,d*=g}else if(2===s.deltaMode){var v=e.data(this,"mousewheel-page-height");c*=v,h*=v,d*=v}if(p=Math.max(Math.abs(h),Math.abs(d)),(!r||r>p)&&(r=p,i(s,p)&&(r/=40)),i(s,p)&&(c/=40,d/=40,h/=40),c=Math[c>=1?"floor":"ceil"](c/r),d=Math[d>=1?"floor":"ceil"](d/r),h=Math[h>=1?"floor":"ceil"](h/r),u.settings.normalizeOffset&&this.getBoundingClientRect){var y=this.getBoundingClientRect();f=t.clientX-y.left,m=t.clientY-y.top}return t.deltaX=d,t.deltaY=h,t.deltaFactor=r,t.offsetX=f,t.offsetY=m,t.deltaMode=0,a.unshift(t,c,d,h),o&&clearTimeout(o),o=setTimeout(n,200),(e.event.dispatch||e.event.handle).apply(this,a)}}function n(){r=null}function i(e,t){return u.settings.adjustOldDeltas&&"mousewheel"===e.type&&t%120==0}var o,r,s=["wheel","mousewheel","DOMMouseScroll","MozMousePixelScroll"],a="onwheel"in document||document.documentMode>=9?["wheel"]:["mousewheel","DomMouseScroll","MozMousePixelScroll"],l=Array.prototype.slice;if(e.event.fixHooks)for(var c=s.length;c;)e.event.fixHooks[s[--c]]=e.event.mouseHooks;var u=e.event.special.mousewheel={version:"3.1.12",setup:function(){if(this.addEventListener)for(var n=a.length;n;)this.addEventListener(a[--n],t,!1);else this.onmousewheel=t;e.data(this,"mousewheel-line-height",u.getLineHeight(this)),e.data(this,"mousewheel-page-height",u.getPageHeight(this))},teardown:function(){if(this.removeEventListener)for(var n=a.length;n;)this.removeEventListener(a[--n],t,!1);else this.onmousewheel=null;e.removeData(this,"mousewheel-line-height"),e.removeData(this,"mousewheel-page-height")},getLineHeight:function(t){var n=e(t),i=n["offsetParent"in e.fn?"offsetParent":"parent"]();return i.length||(i=e("body")),parseInt(i.css("fontSize"),10)||parseInt(n.css("fontSize"),10)||16},getPageHeight:function(t){return e(t).height()},settings:{ 9adjustOldDeltas:!0,normalizeOffset:!0}};e.fn.extend({mousewheel:function(e){return e?this.bind("mousewheel",e):this.trigger("mousewheel")},unmousewheel:function(e){return this.unbind("mousewheel",e)}})}),t.define("jquery.select2",["jquery","jquery-mousewheel","./select2/core","./select2/defaults"],function(e,t,n,i){if(null==e.fn.select2){var o=["open","close","destroy"];e.fn.select2=function(t){if("object"==typeof(t=t||{}))return this.each(function(){var i=e.extend(!0,{},t);new n(e(this),i)}),this;if("string"==typeof t){var i,r=Array.prototype.slice.call(arguments,1);return this.each(function(){var n=e(this).data("select2");null==n&&window.console&&console.error&&console.error("The select2('"+t+"') method was called on an element that is not using Select2."),i=n[t].apply(n,r)}),e.inArray(t,o)>-1?this:i}throw new Error("Invalid arguments for Select2: "+t)}}return null==e.fn.select2.defaults&&(e.fn.select2.defaults=i),n}),{define:t.define,require:t.require}}(),n=t.require("jquery.select2");return e.fn.select2.amd=t,n});var _createClass=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}();(function(){var e,t,n;e=jQuery,t=function(){var e=function(){function e(){_classCallCheck(this,e)}return _createClass(e,null,[{key:"transition",value:function(e){var t,n,i,o;t=e[0],n=this.transitions;for(o in n)if(i=n[o],null!=t.style[o])return i}}]),e}();return e.transitions={webkitTransition:"webkitTransitionEnd",mozTransition:"mozTransitionEnd",oTransition:"oTransitionEnd",transition:"transitionend"},e}(),n=function(){var n=function(){function n(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};_classCallCheck(this,n),this.render=this.render.bind(this),this.bind=this.bind.bind(this),this.unbind=this.unbind.bind(this),this.mouseEnter=this.mouseEnter.bind(this),this.mouseLeave=this.mouseLeave.bind(this),this.click=this.click.bind(this),this.close=this.close.bind(this),this.cycle=this.cycle.bind(this),this.waitAndDismiss=this.waitAndDismiss.bind(this),this.present=this.present.bind(this),this.dismiss=this.dismiss.bind(this),this.remove=this.remove.bind(this),this.animate=this.animate.bind(this),this.$growls=this.$growls.bind(this),this.$growl=this.$growl.bind(this),this.html=this.html.bind(this),this.content=this.content.bind(this),this.container=this.container.bind(this),this.settings=e.extend({},n.settings,t),this.initialize(this.settings.location),this.render()}return _createClass(n,null,[{key:"growl",value:function(){return new n(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{})}}]),_createClass(n,[{key:"initialize",value:function(t){var n;return n="growls-"+t,e("body:not(:has(#"+n+"))").append('<div id="'+n+'" />')}},{key:"render",value:function(){var e;e=this.$growl(),this.$growls(this.settings.location).append(e),this.settings.fixed?this.present():this.cycle()}},{key:"bind",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.$growl();return e.on("click",this.click),this.settings.delayOnHover&&(e.on("mouseenter",this.mouseEnter),e.on("mouseleave",this.mouseLeave)),e.on("contextmenu",this.close).find("."+this.settings.namespace+"-close").on("click",this.close)}},{key:"unbind",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.$growl();return e.off("click",this.click),this.settings.delayOnHover&&(e.off("mouseenter",this.mouseEnter),e.off("mouseleave",this.mouseLeave)),e.off("contextmenu",this.close).find("."+this.settings.namespace+"-close").off("click",this.close)}},{key:"mouseEnter",value:function(e){var t;return t=this.$growl(),t.stop(!0,!0)}},{key:"mouseLeave",value:function(e){return this.waitAndDismiss()}},{key:"click",value:function(e){if(null!=this.settings.url)return e.preventDefault(),e.stopPropagation(),window.open(this.settings.url)}},{key:"close",value:function(e){var t;return e.preventDefault(),e.stopPropagation(),t=this.$growl(),t.stop().queue(this.dismiss).queue(this.remove)}},{key:"cycle",value:function(){var e;return e=this.$growl(),e.queue(this.present).queue(this.waitAndDismiss())}},{key:"waitAndDismiss",value:function(){var e;return e=this.$growl(),e.delay(this.settings.duration).queue(this.dismiss).queue(this.remove)}},{key:"present",value:function(e){var t;return t=this.$growl(),this.bind(t),this.animate(t,this.settings.namespace+"-incoming","out",e)}},{key:"dismiss",value:function(e){var t;return t=this.$growl(),this.unbind(t),this.animate(t,this.settings.namespace+"-outgoing","in",e)}},{key:"remove",value:function(e){return this.$growl().remove(),"function"==typeof e?e():void 0}},{key:"animate",value:function(e,n){var i,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"in",r=arguments[3];i=t.transition(e),e["in"===o?"removeClass":"addClass"](n),e.offset().position,e["in"===o?"addClass":"removeClass"](n),null!=r&&(null!=i?e.one(i,r):r())}},{key:"$growls",value:function(t){var n;return null==this.$_growls&&(this.$_growls=[]),null!=(n=this.$_growls)[t]?n[t]:n[t]=e("#growls-"+t)}},{key:"$growl",value:function(){return null!=this.$_growl?this.$_growl:this.$_growl=e(this.html())}},{key:"html",value:function(){return this.container(this.content())}},{key:"content",value:function(){return"<div class='"+this.settings.namespace+"-close'>"+this.settings.close+"</div>\n<div class='"+this.settings.namespace+"-title'>"+this.settings.title+"</div>\n<div class='"+this.settings.namespace+"-message'>"+this.settings.message+"</div>"}},{key:"container",value:function(e){return"<div class='"+this.settings.namespace+" "+this.settings.namespace+"-"+this.settings.style+" "+this.settings.namespace+"-"+this.settings.size+"'>\n "+e+"\n</div>"}}]),n}();return n.settings={namespace:"growl",duration:5e3,close:"×",location:"default",style:"default",size:"x-large",delayOnHover:!0},n}(),this.Growl=n,e.growl=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return n.growl(e)},e.growl.error=function(){var t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return t={title:"Error!",style:"error"},e.growl(e.extend(t,n))},e.growl.notice=function(){var t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return t={title:"Notice!",style:"notice"},e.growl(e.extend(t,n))},e.growl.warning=function(){var t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return t={title:"Warning!",style:"warning"},e.growl(e.extend(t,n))}}).call(this),function(e){function t(i){if(n[i])return n[i].exports;var o=n[i]={i:i,l:!1,exports:{}};return e[i].call(o.exports,o,o.exports,t),o.l=!0,o.exports}var n={};t.m=e,t.c=n,t.d=function(e,n,i){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:i})}
9,t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=4)}([function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var i=n(12);Object.keys(i).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return i[e]}})});var o=n(13);Object.keys(o).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return o[e]}})});var r=n(14);Object.keys(r).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return r[e]}})});var s=n(2);Object.keys(s).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return s[e]}})});var a=n(15);Object.keys(a).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return a[e]}})});var l=n(16);Object.keys(l).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return l[e]}})});var c=n(17);Object.keys(c).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return c[e]}})});var u=n(18);Object.keys(u).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return u[e]}})});var d=n(19);Object.keys(d).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return d[e]}})})},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var i=n(5);
9Object.keys(i).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return i[e]}})});var o=n(6);Object.keys(o).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return o[e]}})});var r=n(7);Object.keys(r).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return r[e]}})});var s=n(8);Object.keys(s).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return s[e]}})});var a=n(9);Object.keys(a).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return a[e]}})});var l=n(10);Object.keys(l).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return l[e]}})});var c=n(11);Object.keys(c).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return c[e]}})})},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.ScreenView=function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:"";this.init=function(){var t=(0,i.createEl)("video-player__screen-wrapper");return document.getElementById(e).tabIndex=-1,t.innerHTML=document.getElementById(e).outerHTML,t.appendChild((0,i.createEl)("video-player__screen-cover")),t.appendChild((0,i.createEl)("video-player__screen-play","Button","screen-play")),t.appendChild((0,i.createEl)("video-player__screen-title")),t.appendChild((0,i.createEl)("video-player__screen-volume")),t},this.destroy=function(){}};var i=n(0)},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.T_ERROR="T_ERROR",t.T_WARNING="T_WARNING"},function(e,t,n){var i=n(1),o=n(0),r=n(20),s=n(28),a=n(3);window.Videoplayer=function(){function e(e){if(h.currentQuality!==e){var r=(0,o.getPlayerID)(h.pName).currentTime,s=(0,o.getPlayerID)(h.pName).paused;s||(0,o.getPlayerID)(h.pName).pause(),h.currentQuality=e,new Promise(function(e){(0,i.setEvent)((0,o.getPlayerID)(h.pName),function t(){(0,i.setEvent)((0,o.getPlayerID)(h.pName),t,!1,"canplay"),e((0,o.getPlayerID)(h.pName))},!0,"canplay"),(0,o.getPlayerID)(h.pName).src=w.searchItemSrc(n(),t)}).then(function(e){e.currentTime=r,s||e.play()}).catch(function(e){return new Error(e)})}}function t(){return h.currentQuality}function n(){return w.getCurrentTrack().src}function l(e){e=e||"",0!==(0,o.getPlayerID)(h.pName).querySelectorAll("track").length&&[].map.call((0,o.getPlayerID)(h.pName).querySelectorAll("track"),function(e){e.remove()}),""!==e&&u().map(function(t){var n=document.createElement("track");n.setAttribute("kind","subtitles"),n.setAttribute("label",t.label),n.setAttribute("srclang",t.code),n.setAttribute("src",t.src),t.code===e&&n.setAttribute("default",!0),(0,o.getPlayerID)(h.pName).appendChild(n)}),h.currentSubtitles=e}function c(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:"code";if("code"===e)return h.currentSubtitles;if("label"===e){var t="";return u().map(function(e){e.code+""==h.currentSubtitles+""&&(t=e.label)}),""===t?p.off:t}}function u(){return w.getCurrentTrack().subtitles}var d=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},h=Object.assign({pName:"",ratelist:[{code:.25,label:.25},{code:.5,label:.5},{code:.75,label:.75},{code:1,label:"ÐбÑÑнаÑ"},{code:1.25,label:1.25},{code:1.5,label:1.5},{code:2,label:2}],playlist:[],currentQuality:720,currentSubtitles:"",volume:.4,currentTime:0,mimeType:"video/mp4;",genHTMLCode:!0,localeDefault:"ru",theme:"",locale:{ru:s.ru},cover:!0},d),p=h.locale[h.localeDefault];this.setRate=function(e){var t=parseFloat(e);(0,o.getPlayerID)(h.pName).defaultPlaybackRate=t,(0,o.getPlayerID)(h.pName).playbackRate=t};var f=new o.WrapperView(h.pName,h.theme),m=new r.Controls(h.pName,h.genHTMLCode),g=new r.Volume(h.pName),v=new r.Screen(h.pName,{cover:h.cover,action:m.handleAction}),y=new r.Progress(h.pName),b=new r.Menu(h.pName,{rates:{setCurrent:this.setRate,getCurrent:function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:"code";if("code"===e)return(0,o.getPlayerID)(h.pName).playbackRate;if("label"===e){var t="";return h.ratelist.map(function(e){parseFloat(e.code)===(0,o.getPlayerID)(h.pName).playbackRate&&(t=e.label)}),""===t?(0,o.getPlayerID)(h.pName).playbackRate:t}},getList:function(){return h.ratelist}},subtitles:{setCurrent:l,getCurrent:c,getList:u}
9,quality:{setCurrent:e,getCurrent:t,getList:n}},p),w=new r.Playlist(h.pName,h.playlist,{action:m.handleAction,getCurrentQuality:t,setCurrentQuality:e,getCurrentSubtitle:c,setCurrentSubtitle:l,getMenuStatus:b.getMenuStatus,toggleMenu:b.handleToggleMenu,setScreenCover:v.setScreenCover,cover:h.cover},h.genHTMLCode),k=new r.Warning(h.pName,p),C=function(){(0,i.setStatus)((0,o.getPlayerContainer)(h.pName),"playing")},x=function(){(0,i.setStatus)((0,o.getPlayerContainer)(h.pName),"playing",!1)},_=function(){k.push(p.playerError,a.T_ERROR)},S=function(){(0,i.setStatus)((0,o.getPlayerContainer)(h.pName),"loading",!1)},T=function(){(0,i.setStatus)((0,o.getPlayerContainer)(h.pName),"loading")};this.init=function(){h.genHTMLCode&&f.init(),(0,i.setEvent)((0,o.getPlayerID)(h.pName),C,!0,"play"),(0,i.setEvent)((0,o.getPlayerID)(h.pName),x,!0,"pause"),(0,i.setEvent)((0,o.getPlayerID)(h.pName),S,!0,"canplay"),(0,i.setEvent)((0,o.getPlayerID)(h.pName),T,!0,["loadstart","waiting"]),(0,i.setEvent)((0,o.getPlayerID)(h.pName),_,!0,"error"),m.init(),g.init(),v.init(),y.init(),0!==h.playlist.length&&w.init(),b.init(),k.init(),this.setVolume(h.volume),function(e){switch((0,o.getPlayerID)(h.pName).canPlayType(e)){case"probably":return k.push(p.playerProbably,a.T_WARNING);case"":k.push(p.playerNotSupported,a.T_ERROR)}}(h.mimeType)},this.destroy=function(){(0,i.setEvent)((0,o.getPlayerID)(h.pName),C,!1,"play"),(0,i.setEvent)((0,o.getPlayerID)(h.pName),x,!1,"pause"),(0,i.setEvent)((0,o.getPlayerID)(h.pName),S,!1,"canplay"),(0,i.setEvent)((0,o.getPlayerID)(h.pName),T,!1,["loadstart","waiting"]),(0,i.setEvent)((0,o.getPlayerID)(h.pName),_,!1,"error"),m.destroy(),g.destroy(),v.destroy(),y.destroy(),w.destroy(),b.destroy(),k.destroy(),f.destroy()},this.setMuted=function(){g.setMuted()},this.setVolume=function(e){"number"==typeof e&&e<=1?g.setVolume(e):k.push(p.playerFormatUnknown,a.T_ERROR)},this.setAction=function(){m.handleAction()},this.setFullscreen=function(){v.handleSwitchFullscreen()},this.setCurrentTime=function(e){if("string"==typeof e){var t=(0,i.convertStringToSeconds)(e);t?(0,o.getPlayerID)(h.pName).currentTime=t:k.push(p.playerSetCurrentTimeFormatUnknown,a.T_ERROR)}else"number"==typeof e?(0,o.getPlayerID)(h.pName).currentTime=e:k.push(p.playerSetCurrentTimeFormatUnknown,a.T_ERROR)},this.setPlaylist=function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:[];Array.isArray(e)?w.setPlaylist(e):k.push(p.playerPlaylistFormatUnknown,a.T_ERROR)},1<h.playlist.length&&(this.setTrack=function(e){var t=1<arguments.length&&void 0!==arguments[1]&&arguments[1];"number"==typeof e&&"boolean"==typeof t?t?w.setTrackID(e):w.setTrackIndex(e):k.push(p.playerFormatUnknown,a.T_ERROR)},this.next=function(){w.nextTrack()},this.prev=function(){w.prevTrack()})}},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.setStatus=function(e,t){2<arguments.length&&void 0!==arguments[2]&&!arguments[2]?Array.isArray(t)?t.map(function(t){return e.classList.remove("__"+t)}):e.classList.remove("__"+t):Array.isArray(t)?t.map(function(t){return e.classList.add("__"+t)}):e.classList.add("__"+t)}},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.convertScaleToPercent=function(e,t){var n=[],i=t.getBoundingClientRect().width;n[0]=Math.round(t.getBoundingClientRect().left),n[1]=n[0]+i;var o=(e.clientX-n[0])/i*100;return o<0?o=0:100<o&&(o=100),o},t.convertTimeToPercent=function(e,t){return e/t*100},t.convertPercentToTime=function(e,t){return t*(e/100)},t.convertTimeFormat=function(e){var t=function(e){return e<10?"0"+e:e},n=new Date;return n.setTime(1e3*e),(0<n.getUTCHours()?n.getUTCHours()+":":"")+t(n.getUTCMinutes())+":"+t(n.getUTCSeconds())},t.convertStringToSeconds=function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:"0:00:00";if(/^([0-9]{1,2}:[0-9]{2}(:[0-9]{2})?)$/.test(e)){var t=e.split(":"),n=0;return 2<t.length?(n+=3600*parseInt(t[0]),n+=60*parseInt(t[1]),n+=parseInt(t[2])):(n+=60*parseInt(t[0]),n+=parseInt(t[1])),n}return!1}},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.listenScale=function(e,t){var n=!(2<arguments.length&&void 0!==arguments[2])||arguments[2],o=function(){(0,i.setEvent)(e,s,!0,"mousedown"),(0,i.setEvent)(e,a,!0,"mouseup")},r=function(){(0,i.setEvent)(e,s,!1,"mousedown"),(0,i.setEvent)(e,t,!1,"mousemove"),(0,i.setEvent)(e,a,!1,"mouseup")},s=function(n){(0,i.setEvent)(e,t,!0,"mousemove"),t(n)},a=function(n){(0,i.setEvent)(e,t,!1,"mousemove"),t(n)};n?((0,i.setEvent)(e,o,!0,"mouseenter"),(0,i.setEvent)(e,r,!0,"mouseleave")):((0,i.setEvent)(e,o,!1,"mouseenter"),(0,i.setEvent)(e,r,!1,"mouseleave"),(0,i.setEvent)(e,s,!1,"mousedown"),(0,i.setEvent)(e,t,!1,"mousemove"),(0,i.setEvent)(e,a,!1,"mouseup"))};var i=n(1)}
9,function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.setFullscreen=function(e){document.fullscreenElement||document.mozFullScreenElement||document.webkitFullscreenElement?document.cancelFullScreen?document.cancelFullScreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.webkitCancelFullScreen&&document.webkitCancelFullScreen():e.requestFullscreen?e.requestFullscreen():e.mozRequestFullScreen?e.mozRequestFullScreen():e.webkitRequestFullscreen&&e.webkitRequestFullscreen()}},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.setFocus=function(e,t){e[t](),e.focus()}},function(e,t,n){function i(e,t,n,i){Array.isArray(i)?i.map(function(i){n?e.addEventListener(i,t):e.removeEventListener(i,t)}):n?e.addEventListener(i,t):e.removeEventListener(i,t)}Object.defineProperty(t,"__esModule",{value:!0}),t.setEvent=function(e,t){var n=!(2<arguments.length&&void 0!==arguments[2])||arguments[2],o=3<arguments.length&&void 0!==arguments[3]?arguments[3]:"click";e instanceof NodeList||e instanceof HTMLCollection?[].map.call(e,function(e){i(e,t,n,o)}):i(e,t,n,o)}},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.animateByFade=function(e,t){2<arguments.length&&void 0!==arguments[2]&&!arguments[2]?(e.style.display="",setTimeout(function(){e.style.transition="opacity "+t+"ms ease-in",e.style.opacity="1"},0)):(e.style.transition="opacity "+t+"ms ease-in",e.style.opacity="0",setTimeout(function(){e.style.display="none"},t))}},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.ControlsView=function(){function e(){var e,t=(0,i.createEl)("controls__left-cell");return t.appendChild((0,i.createButton)("action")),t.appendChild(function(){var e=(0,i.createEl)("controls__progress-volume-back","Scale","volume");e.appendChild((0,i.createEl)("controls__progress-volume-front","Scale","progress-volume"));var t=(0,i.createEl)("controls__progress-volume-wrapper");t.appendChild(e);var n=(0,i.createEl)("controls__volume-wrapper");return n.appendChild((0,i.createButton)("volume")),n.appendChild(t),n}()),t.appendChild(((e=(0,i.createEl)("controls__time-wrapper")).appendChild((0,i.createEl)("controls__time-current","Time","current")),e.appendChild((0,i.createEl)("controls__time-duration","Time","duration")),e)),t}var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:"";this.init=function(){var n,o=(0,i.createEl)("video-player__controls");o.appendChild(e()),o.appendChild(((n=(0,i.createEl)("controls__right-cell")).appendChild((0,i.createButton)("fullscreen")),n));var r=(0,i.createEl)("video-player__controls-wrapper");r.appendChild(function(){var e=(0,i.createEl)("controls__progress-buffered","Scale","buffered"),n=(0,i.createEl)("controls__progress-timeline","Scale","progress-time"),o=(0,i.createEl)("controls__progress-wrapper","Scale","time");o.appendChild(e),o.appendChild(n);var r=(0,i.createEl)("controls__progress-cell","Progress",t);return r.appendChild(o),r}()),r.appendChild(o),(0,i.getPlayerContainer)(t).appendChild(r)},this.destroy=function(){}};var i=n(0)},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.MenuView=function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:"";this.init=function(){(0,i.getControlsWrapper)(e).appendChild((0,i.createEl)("controls__settings-menu-wrapper")),(0,i.getRightCell)(e).insertBefore((0,i.createButton)("settings"),(0,i.getRightCell)(e).lastChild)},this.destroy=function(){(0,i.getMenuWrapper)(e)&&(0,i.getMenuWrapper)(e).remove(),(0,i.getButton)(e,"settings")&&(0,i.removeButton)(e,"settings")}};var i=n(0)},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.WrapperView=function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:"",t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:"";this.init=function(){var n=(0,o.createEl)("video-player__wrapper","Name",e);""!==t&&n.classList.add(t),n.appendChild(new i.ScreenView(e).init()),document.getElementById(e).parentNode.replaceChild(n,document.getElementById(e))},this.destroy=function(){(0,o.getPlayerContainer)(e).parentNode.append((0,o.getPlayerID)(e)),(0,o.getPlayerContainer)(e).remove()}};var i=n(2),o=n(0)}
9,function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.WarningView=function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:"",t=0;this.init=function(){(0,i.getScreenWrapper)(e).appendChild((0,i.createEl)("screen-warnings__wrapper","Warning",e,"ul"))},this.destroy=function(){},this.addWarningMessage=function(){var n=0<arguments.length&&void 0!==arguments[0]?arguments[0]:"",o=1<arguments.length&&void 0!==arguments[1]?arguments[1]:"",r=(0,i.createEl)("","MessageId",t,"li"),s=(0,i.createEl)("","","","span"),a=(0,i.createEl)("","","","i"),l=(0,i.createEl)("screen-warnings__close");return s.innerHTML=o+": ",a.innerHTML=n,r.appendChild(s),r.appendChild(a),r.appendChild(l),(0,i.getWarningWrapper)(e).appendChild(r),(0,i.getWarningMessageByID)(e,t++)},this.removeWarningMessage=function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:null,n=(0,i.getWarningWrapper)(e).querySelectorAll("li");null!==t?n[t].remove():[].map.call(n,function(e){return e.remove()})}};var i=n(0)},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.PlaylistView=function(){function e(e){var t=document.createElement("li");return t.innerHTML=e,t}var t=this,n=0<arguments.length&&void 0!==arguments[0]?arguments[0]:"";this.addItem=function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},n=(0,i.createEl)("playlist__cover");n.style.backgroundImage="url("+t.cover+")";var o=(0,i.createEl)("playlist__title");o.innerHTML=t.title;var r=(0,i.createEl)("playlist__text");r.innerHTML=t.description;var s=(0,i.createEl)("playlist__subtitles","","","ul");t.subtitles&&t.subtitles.map(function(t){return s.appendChild(e(t.code))});var a=(0,i.createEl)("playlist__src-files","","","ul");t.src.map(function(t){return a.appendChild(e(t.code))});var l=(0,i.createEl)("playlist__bottom");l.appendChild(s),l.appendChild(a);var c=(0,i.createEl)("playlist__description");c.appendChild(o),c.appendChild(r),c.appendChild(l);var u=(0,i.createEl)("playlist__item","PlaylistId",t.id,"li");return u.appendChild(n),u.appendChild(c),u},this.init=function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:[];(0,i.getPlaylistWrapper)(n)&&(0,i.getPlaylistWrapper)(n).remove(),function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:[],o=document.createElement("ul");o.classList.add("controls__playlist-menu-wrapper"),o.dataset.videoplayerPlaylist=n,e.map(function(e){o.appendChild(t.addItem(e))}),(0,i.getScreenWrapper)(n).appendChild(o)}(e),(0,i.getRightCell)(n).insertBefore((0,i.createButton)("playlist"),(0,i.getRightCell)(n).firstChild),(0,i.getLeftCell)(n).insertBefore((0,i.createButton)("prev"),(0,i.getLeftCell)(n).firstChild),(0,i.getLeftCell)(n).insertBefore((0,i.createButton)("next"),(0,i.getButton)(n,"action").nextSibling)},this.destroy=function(){(0,i.getPlaylistWrapper)(n)&&(0,i.getPlaylistWrapper)(n).remove(),(0,i.getButton)(n,"playlist")&&(0,i.removeButton)(n,"playlist"),(0,i.getButton)(n,"prev")&&(0,i.removeButton)(n,"prev"),(0,i.getButton)(n,"next")&&(0,i.removeButton)(n,"next")}};var i=n(0)},function(e,t,n){function i(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:"";return document.querySelector("[data-videoplayer-name="+e+"]")}function o(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:"";return document.querySelector("[data-videoplayer-warning="+e+"]")}function r(){return i(0<arguments.length&&void 0!==arguments[0]?arguments[0]:"").querySelector(".controls__settings-menu-wrapper")}function s(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:"",t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:"";return r(e).querySelector(".controls__settings-"+t)}function a(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:"";return document.querySelector("[data-videoplayer-playlist="+e+"]")}Object.defineProperty(t,"__esModule",{value:!0}),t.getPlayerContainer=i,t.getScreenWrapper=function(){return i(0<arguments.length&&void 0!==arguments[0]?arguments[0]:"").querySelector(".video-player__screen-wrapper")},t.getPlayerID=function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:"";return document.getElementById(e)},t.getPlayerScreenTitle=function(){return i(0<arguments.length&&void 0!==arguments[0]?arguments[0]:"").querySelector(".video-player__screen-title")},t.getPlayerScreenVolume=function(){return i(0<arguments.length&&void 0!==arguments[0]?arguments[0]:"").querySelector(".video-player__screen-volume")},t.getPlayerScreenCover=function(e){return i(e).querySelector(".video-player__screen-cover")},t.getWarningWrapper=o,t.getWarningMessageByIndex=function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:0;return o(e).querySelectorAll("li")[t]},t.getWarningMessageByID=function(e,t){return o(e).querySelector('[data-vi
9deoplayer-message-id="'+t+'"]')},t.getControlsWrapper=function(){return i(0<arguments.length&&void 0!==arguments[0]?arguments[0]:"").querySelector(".video-player__controls-wrapper")},t.getLeftCell=function(){return i(0<arguments.length&&void 0!==arguments[0]?arguments[0]:"").querySelector(".controls__left-cell")},t.getRightCell=function(){return i(0<arguments.length&&void 0!==arguments[0]?arguments[0]:"").querySelector(".controls__right-cell")},t.getButton=function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:"",t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:"";return i(e).querySelector("[data-videoplayer-button="+t+"]")},t.getScale=function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:"",t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:"";return i(e).querySelector("[data-videoplayer-scale="+t+"]")},t.getTime=function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:"",t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:"";return i(e).querySelector("[data-videoplayer-time="+t+"]")},t.getProgressVolumeWrapper=function(){return i(0<arguments.length&&void 0!==arguments[0]?arguments[0]:"").querySelector(".controls__progress-volume-wrapper")},t.getMenuWrapper=r,t.getMenuType=s,t.getMenuItem=function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:"",t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:"",n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:"";return s(e,t).querySelector("[data-videoplayer-menu-target="+n+"]")},t.getMenuItems=function(){return s(0<arguments.length&&void 0!==arguments[0]?arguments[0]:"",1<arguments.length&&void 0!==arguments[1]?arguments[1]:"").querySelectorAll("li")},t.getPlaylistWrapper=a,t.getPlaylistItems=function(){return a(0<arguments.length&&void 0!==arguments[0]?arguments[0]:"").getElementsByClassName("playlist__item")},t.getPlaylistItemCurrent=function(){return a(0<arguments.length&&void 0!==arguments[0]?arguments[0]:"").querySelector(".__current")},t.getPlaylistItemID=function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:"",t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:1;return a(e).querySelector('[data-videoplayer-playlist-id="'+t+'"]')}},function(e,t,n){function i(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:"",t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:"",n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:"",i=3<arguments.length&&void 0!==arguments[3]?arguments[3]:"div",o=document.createElement(i);return""!==e&&o.classList.add(e),""!==n&&(o.dataset["videoplayer"+t]=n),o}Object.defineProperty(t,"__esModule",{value:!0}),t.createEl=i,t.createButton=function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:"";return i("controls__button-"+e,"Button",e)}},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.removeButton=function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:"",t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:"";(0,i.getPlayerContainer)(e).querySelector("[data-videoplayer-button="+t+"]").remove()};var i=n(0)},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var i=n(21);
9Object.keys(i).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return i[e]}})});var o=n(22);Object.keys(o).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return o[e]}})});var r=n(23);Object.keys(r).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return r[e]}})});var s=n(24);Object.keys(s).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return s[e]}})});var a=n(25);Object.keys(a).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return a[e]}})});var l=n(26);Object.keys(l).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return l[e]}})});var c=n(27);Object.keys(c).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return c[e]}})})},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.Playlist=function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:"",t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:[],n=this,r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{},s=!(3<arguments.length&&void 0!==arguments[3])||arguments[3],a=void 0,l=!1,c={},u=0,d=null;s&&(a=new i.PlaylistView(e));var h=function(t){d&&clearTimeout(d),d=setTimeout(function(){(0,o.setStatus)((0,i.getPlayerContainer)(e),"screen-title",!1)},3e3),(0,o.setStatus)((0,i.getPlayerContainer)(e),"screen-title"),(0,i.getPlayerScreenTitle)(e).innerText=t};this.setPlaylist=function(){var n=0<arguments.length&&void 0!==arguments[0]?arguments[0]:[];1<(t=n).length?(s&&a.init(t),(0,o.setEvent)((0,i.getButton)(e,"playlist"),m),(0,o.setEvent)((0,i.getPlayerID)(e),p,!0,"ended"),(0,i.getButton)(e,"prev")&&(0,o.setEvent)((0,i.getButton)(e,"prev"),this.prevTrack),(0,i.getButton)(e,"next")&&(0,o.setEvent)((0, 10i.getButton)(e,"next"),this.nextTrack),this.setTrackIndex(u)):((0,i.getButton)(e,"prev")&&(0,o.setEvent)((0,i.getButton)(e,"prev"),this.prevTrack,!1),(0,i.getButton)(e,"next")&&(0,o.setEvent)((0,i.getButton)(e,"next"),this.nextTrack,!1),s&&a.destroy(),this.setTrackIndex(0))},this.setTrackIndex=function(n){var s=t[n].id;r.setScreenCover(t[n].cover),r.cover&&0===(0,i.getPlayerID)(e).currentTime&&(0,i.getPlayerID)(e).paused&&(0,o.animateByFade)((0,i.getPlayerScreenCover)(e),0,!1),this.setTrackID(s)},this.setTrackID=function(o){!function(o){t.map(function(e,t){e.id===parseInt(o)&&(c=e,u=t)}),c.src.every(function(e){return e.code!==r.getCurrentQuality()})&&r.setCurrentQuality(c.src[0].code),c.subtitles?r.setCurrentSubtitle(n.searchItemSrc(c.subtitles,r.getCurrentSubtitle,"code")):r.setCurrentSubtitle(""),(0,i.getPlayerID)(e).pause(),setTimeout(function(){(0,i.getPlayerID)(e).src=n.searchItemSrc(c.src,r.getCurrentQuality)},0),h(c.title)}(o),1<t.length&&((0,i.getPlaylistItemCurrent)(e)&&(0,i.getPlaylistItemCurrent)(e).classList.remove("__current"),(0,i.getPlaylistItemID)(e,o)&&(0,i.getPlaylistItemID)(e,o).classList.add("__current"))},this.nextTrack=function(){var o=0<arguments.length&&void 0!==arguments[0]&&arguments[0];if(t.length>u+1){var s=(0,i.getPlayerID)(e).paused;n.setTrackIndex(u+1),s&&!o||setTimeout(function(){return r.action()},0)}else n.setTrackIndex(u);r.getMenuStatus()&&r.toggleMenu()},this.prevTrack=function(){var t=0<arguments.length&&void 0!==arguments[0]&&arguments[0];if(0<=u-1){var o=(0,i.getPlayerID)(e).paused;n.setTrackIndex(u-1),o&&!t||setTimeout(function(){return r.action()},0)}else n.setTrackIndex(u);r.getMenuStatus()&&r.toggleMenu()};var p=function(){n.nextTrack(!0),r.getMenuStatus()&&r.toggleMenu()},f=function(e){var t=e.target.closest(".playlist__item").dataset.videoplayerPlaylistId;n.setTrackID(t),m(),setTimeout(function(){return r.action()},0)},m=function(){l?(l=!1,(0,o.setStatus)((0,i.getPlayerContainer)(e),"playlist",!1),setTimeout(function(){(0,i.getPlaylistWrapper)(e).style.display=""},200),(0,o.setEvent)((0,i.getPlaylistItems)(e),f,!1)):(l=!0,(0,i.getPlaylistWrapper)(e).style.display="block",setTimeout(function(){return(0,o.setStatus)((0,i.getPlayerContainer)(e),"playlist")},0),(0,o.setEvent)((0,i.getPlaylistItems)(e),f)),r.getMenuStatus()&&r.toggleMenu()};this.init=function(){this.setPlaylist(t)}
10,this.destroy=function(){(0,i.getButton)(e,"playlist")&&(0,o.setEvent)((0,i.getButton)(e,"playlist"),m,!1),(0,o.setEvent)((0,i.getPlayerID)(e),p,!1,"ended"),s&&a.destroy()},this.getCurrentTrack=function(){return c},this.searchItemSrc=function(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:"src",i="";return e.map(function(e){e.code===t()&&(i=e[n])}),i}};var i=n(0),o=n(1)},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.Controls=function(e){var t=!(1<arguments.length&&void 0!==arguments[1])||arguments[1],n=void 0;t&&(n=new i.ControlsView(e)),this.handleAction=function(){(0,i.getPlayerID)(e).paused?((0,o.setFocus)((0,i.getPlayerID)(e),"play"),(0,o.animateByFade)((0,i.getPlayerScreenCover)(e),0)):(0,o.setFocus)((0,i.getPlayerID)(e),"pause")},this.init=function(){t&&n.init(),(0,o.setEvent)((0,i.getButton)(e,"action"),this.handleAction)},this.destroy=function(){(0,o.setEvent)((0,i.getButton)(e,"action"),this.handleAction,!1),t&&n.destroy()}};var i=n(0),o=n(1)},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};t.Volume=function(e){var t=this;this.setMuted=function(){var t=!(0,o.getPlayerID)(e).muted;(0,o.getPlayerID)(e).muted=t,(0,r.setStatus)((0,o.getPlayerContainer)(e),"volume-muted",t),(0,o.getPlayerID)(e).focus()},this.setVolume=function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};"object"!==(void 0===t?"undefined":i(t))&&((0,o.getPlayerID)(e).volume=t);var n=(0,o.getPlayerID)(e).volume;(0,o.getScale)(e,"progress-volume").style="width: "+100*n+"%",50<100*n?((0,r.setStatus)((0,o.getPlayerContainer)(e),"volume-middle",!1),(0,r.setStatus)((0,o.getPlayerContainer)(e),"volume-zero",!1)):0<100*n&&100*n<=50?((0,r.setStatus)((0,o.getPlayerContainer)(e),"volume-middle"),(0,r.setStatus)((0,o.getPlayerContainer)(e),"volume-zero",!1)):0===n&&((0,r.setStatus)((0,o.getPlayerContainer)(e),"volume-middle",!1),(0,r.setStatus)((0,o.getPlayerContainer)(e),"volume-zero"))};var n=function(n){var i=(0,r.convertScaleToPercent)(n,(0,o.getScale)(e,"volume"));t.setVolume(i/100),(0,o.getPlayerID)(e).focus()};this.init=function(){(0,r.setEvent)((0,o.getButton)(e,"volume"),this.setMuted),(0,r.listenScale)((0,o.getProgressVolumeWrapper)(e),n),(0,r.setEvent)((0,o.getPlayerID)(e),this.setVolume,!0,"volumechange")},this.destroy=function(){(0,r.setEvent)((0,o.getButton)(e,"volume"),this.setMuted,!1),(0,r.listenScale)((0,o.getProgressVolumeWrapper)(e),n,!1),(0,r.setEvent)((0,o.getPlayerID)(e),this.setVolume,!1,"volumechange")}};var o=n(0),r=n(1)},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.Progress=function(e){function t(t){(0,i.getTime)(e,"current").innerText=(0,o.convertTimeFormat)(t)}var n=function(){var n;t(((0,i.getPlayerID)(e).currentTime=0,i.getPlayerID)(e).currentTime),n=(0,i.getPlayerID)(e).duration,(0,i.getTime)(e,"duration").innerText=(0,o.convertTimeFormat)(n)},r=function(){var n;t((0,i.getPlayerID)(e).currentTime),n=(0,o.convertTimeToPercent)((0,i.getPlayerID)(e).currentTime,(0,i.getPlayerID)(e).duration),(0,i.getScale)(e,"progress-time").style="width: "+n+"%"},s=function(t){var n,r;n=(0,o.convertScaleToPercent)(t,(0,i.getScale)(e,"time")),(r=(0,i.getPlayerID)(e)).currentTime=(0,o.convertPercentToTime)(n,r.duration),(0,i.getPlayerID)(e).focus()};this.init=function(){(0,o.setEvent)((0,i.getPlayerID)(e),r,!0,"timeupdate"),(0,o.setEvent)((0,i.getPlayerID)(e),n,!0,"durationchange"),(0,o.listenScale)((0,i.getScale)(e,"time"),s)},this.destroy=function(){(0,o.setEvent)((0,i.getPlayerID)(e),r,!1,"timeupdate"),(0,o.setEvent)((0,i.getPlayerID)(e),n,!1,"durationchange"),(0,o.listenScale)((0,i.getScale)(e,"time"),s,!1)}};var i=n(0),o=n(1)},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.Screen=function(){function e(){(0,o.setEvent)((0,i.getScreenWrapper)(n),f,!1,"mousemove"),(0,o.setEvent)((0,i.getScreenWrapper)(n),m,!1,"wheel")}var t=this,n=0<arguments.length&&void 0!==arguments[0]?arguments[0]:"",r=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},s=[],a=null,l=null,c=!1,u=0,d=function(){(0,o.setEvent)((0,i.getPlayerID)(n),p,!0,"keydown")},h=function(){(0,o.setEvent)((0,i.getPlayerID)(n),p,!1,"keydown")},p=function(e){switch(e.keyCode){case 32:return r.action();case 39:return(0,i.getPlayerID)(n).currentTime+=10;case 37:return(0,i.getPlayerID)(n).currentTime-=10;default:return}},f=function(e){s=[e.clientX,e.clientY],(0,o.setStatus)((0,i.getPlayerContainer)(n),"no-cursor",!1),a&&
10clearTimeout(a),a=setTimeout(function(){s[0]===e.clientX&&s[1]===e.clientY&&((0,o.setStatus)((0,i.getPlayerContainer)(n),"panel-level-1",!1),(0,o.setStatus)((0,i.getPlayerContainer)(n),"panel-level-2",!1),(0,o.setStatus)((0,i.getPlayerContainer)(n),"no-cursor"))},3e3),80<=e.clientY/e.target.clientHeight*100?(0,o.setStatus)((0,i.getPlayerContainer)(n),"panel-level-2"):((0,o.setStatus)((0,i.getPlayerContainer)(n),"panel-level-2",!1),(0,o.setStatus)((0,i.getPlayerContainer)(n),"panel-level-1"))},m=function(e){l&&clearTimeout(l),l=setTimeout(function(){(0,o.setStatus)((0,i.getPlayerContainer)(n),"screen-volume",!1)},3e3),(0,o.setStatus)((0,i.getPlayerContainer)(n),"screen-volume");var t=100*(0,i.getPlayerID)(n).volume;0<e.wheelDelta?t+10<100?t+=10:t=100:0<t-10?t-=10:t=0,(0,i.getPlayerID)(n).volume=t/100,(0,i.getPlayerScreenVolume)(n).innerText="ÐÑомкоÑÑÑ: "+t+"%"},g=function(e){1==++u&&setTimeout(function(){1===u?r.action():t.handleSwitchFullscreen(),u=0},300)},v=function(t){switch(t.type){case"fullscreenchange":case"webkitfullscreenchange":case"mozfullscreenchange":case"msfullscreenchange":!function(t){t?((0,o.setStatus)((0,i.getPlayerContainer)(n),"fullscreen"),c=t,(0,o.setEvent)((0,i.getScreenWrapper)(n),f,!0,"mousemove"),(0,o.setEvent)((0,i.getScreenWrapper)(n),m,!0,"wheel")):((0,o.setStatus)((0,i.getPlayerContainer)(n),"fullscreen",t),c=t,e())}(!c);break;default:c=!1,(0,o.setStatus)((0,i.getPlayerContainer)(n),"fullscreen",c)}};this.handleSwitchFullscreen=function(){(0,o.setFullscreen)((0,i.getPlayerContainer)(n)),(0,i.getPlayerID)(n).focus()},this.setScreenCover=function(e){r.cover&&((0,i.getPlayerScreenCover)(n).style.backgroundImage="url("+e+")")},this.init=function(){(0,o.setEvent)((0,i.getPlayerID)(n),d,!0,"focus"),(0,o.setEvent)((0,i.getPlayerID)(n),h,!0,"blur"),(0,o.setEvent)((0,i.getPlayerID)(n),g),(0,o.setEvent)(document,v,!0,["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","msfullscreenchange"]),(0,o.setEvent)((0,i.getButton)(n,"fullscreen"),this.handleSwitchFullscreen),(0,o.setEvent)((0,i.getButton)(n,"screen-play"),r.action)},this.destroy=function(){(0,o.setEvent)((0,i.getPlayerID)(n),d,!1,"focus"),(0,o.setEvent)((0,i.getPlayerID)(n),h,!0,"blur"),(0,o.setEvent)((0,i.getPlayerID)(n),g,!1),(0,o.setEvent)(document,v,!1,["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","msfullscreenchange"]),(0,o.setEvent)((0,i.getButton)(n,"fullscreen"),this.handleSwitchFullscreen,!1),(0,o.setEvent)((0,i.getButton)(n,"screen-play"),r.action,!1),e(),h()}};var i=n(0),o=n(1)},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.Menu=function(e){function t(t){if(t){var n=(0,i.createEl)("controls__settings-general","","","ul");Object.keys(s).map(function(e){s[e].getList()&&n.appendChild(function(e,t,n){var o=document.createElement("i");o.innerText=n;var r=document.createElement("span");r.innerText=t;var s=(0,i.createEl)("","MenuTarget",e,"li");return s.appendChild(r),s.appendChild(o),s}(e,a[e].label,s[e].getCurrent("label")))}),(0,i.getMenuWrapper)(e).appendChild(n)}else(0,i.getMenuType)(e,"general").remove()}function n(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:"",n=1<arguments.length&&void 0!==arguments[1]?arguments[1]:"";if(2<arguments.length&&void 0!==arguments[2]&&!arguments[2])(0,i.getMenuType)(e,t).remove();else if(0!==n.length){var o=(0,i.createEl)("controls__settings-"+t,"","","ul");if("subtitles"===t){var r=(0,i.createEl)("","SubmenuCode","","li");r.innerText=a.subtitles.codeDefault,""===s[t].getCurrent()&&r.classList.add("__current"),o.appendChild(r)}n.map(function(e){var n=(0,i.createEl)("","SubmenuCode",e.code,"li");n.innerText=e.label,e.code===s[t].getCurrent()&&n.classList.add("__current"),o.appendChild(n)}),(0,i.getMenuWrapper)(e).appendChild(o)}}var r=this,s=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},a=arguments[2],l=new i.MenuView(e),c=!1,u={status:!1,prefix:"",val:""},d=function(e){e.preventDefault()},h=function t(a){u.val=a.target.dataset.videoplayerSubmenuCode,r.setMenuCurrentItem(u.val,u.prefix),s[u.prefix].setCurrent(u.val),u.status=!1,(0,o.setEvent)((0,i.getMenuItems)(e,u.prefix),t,!1),(0,o.setStatus)((0,i.getMenuWrapper)(e),u.prefix,!1),(0,o.setStatus)((0,i.getMenuWrapper)(e),"general"),setTimeout(function(){return n(u.prefix,"",!1)},200)},p=function(t){u.prefix=t.target.closest("li").dataset.videoplayerMenuTarget,u.status||(u.status=!0,(0,o.setStatus)((0,i.getMenuWrapper)(e),"general",!1),n(u.prefix,s[u.prefix].getList()),setTimeout(function(){return(0,o.setStatus)((0,i.getMenuWrapper)(e),u.prefix,!0)},0),(0,o.setEvent)((0,i.getMenuItems)(e,u.prefix),h))};this.init=function(){l.init(),(0,o.setEvent)((0,i.getPlayerContainer)(e),d,!0,"contextmenu"),(0,o.setEvent)((0,i.getButton)(e,"settings"),this.handleToggleMenu)},this.destroy=function(){(0,o.setEvent)((0,i.getPlayerContainer)(e),d,!1,"contextmenu"),(0,o.setEvent)((0,i.getButton)(e,"settings"),this.handleToggleMenu,!1),l.destroy()},this.handleToggleMenu=function(){c?(c=!1,u.status=!1,(0,o.setStatus)((0,i.getPlayerContainer)(e),"settings",!1),(0,o.setStatus)((0,i.getMenuWrapper)(e),["general","rates","subtitles","quality"],!1),setTimeout(function(){t(!1),(0,i.getMenuWrapper)(e).childNodes[0]&&(0,i.getMenuWrapper)(e).childNodes[0].remove()},200),(0,o.setEvent)((0,i.getMenuItems)(e,"general"),p,!1)):(c=!0,(0,o.setStatus)((0,i.getPlayerContainer)(e),"settings"),t(!0),setTimeout(function(){(0,o.setStatus)((0,i.getMenuWrapper)(e),"general")},0),(0,o.setEvent)((0,i.getMenuItems)(e,"general"),p))},this.setMenuCurrentItem=function(t){var n=1<arguments.length&&void 0!==arguments[1]?arguments[1]:"";t=t||"";var o=(0,i.getMenuItem)(e,"general",n).querySelector("i");""!==t?s[n].getList().map(function(e){e.code+""==t+""&&(o.innerHTML=e.label)}):o.innerText=a.off},this.getMenuStatus=function(){return c}};var i=n(0),o=n(1)}
10,function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.Warning=function(e){function t(e){var t=1<arguments.length&&void 0!==arguments[1]&&arguments[1];if(t)var n=setTimeout(function(){s.removeWarningMessage(0)},5e3);(0,r.setEvent)(e.querySelector(".screen-warnings__close"),function i(o){t&&clearTimeout(n),o.target.closest("li").remove(),(0,r.setEvent)(e.querySelector(".screen-warnings__close"),i,!1)})}var n=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},s=new i.WarningView(e);this.init=function(){s.init()},this.destroy=function(){s.destroy()},this.push=function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:"";switch(1<arguments.length&&void 0!==arguments[1]?arguments[1]:""){case o.T_ERROR:t(s.addWarningMessage(e,n.typeError));break;case o.T_WARNING:t(s.addWarningMessage(e,n.typeWarning),!0);break;default:new Error(n.typeIsUnknown)}}};var i=n(0),o=n(3),r=n(1)},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var i=n(29);Object.keys(i).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return i[e]}})})},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.ru={buttonPlay:"ÐоÑпÑоизвеÑÑи",buttonPause:"ÐаÑза",buttonNext:"СледÑÑÑее видео",buttonPrev:"ÐÑедÑдÑÑее видео",buttonVolume:"УÑÐ¾Ð²ÐµÐ½Ñ Ð·Ð²Ñка",buttonVolumeMuted:"ÐвÑк вÑклÑÑен",buttonSettings:"ÐаÑÑÑойки",buttonFullscreen:"Ðа веÑÑ ÑкÑан",currentTime:"ТекÑÑее вÑемÑ",durationTime:"ÐÑодолжиÑелÑноÑÑÑ Ð²Ð¸Ð´ÐµÐ¾",typeWarning:"ÐÑедÑпÑеждение",typeError:"ÐÑибка",typeIsUnknown:"ÐеизвеÑÑнÑй Ñип ÑообÑениÑ",playerProbably:"ÐÑаÑÐ·ÐµÑ ÑаÑÑиÑно поддеÑÐ¶Ð¸Ð²Ð°ÐµÑ ÑказаннÑй mimeType.",playerNotSupported:"ÐÑаÑÐ·ÐµÑ Ð½Ðµ поддеÑÐ¶Ð¸Ð²Ð°ÐµÑ ÑказаннÑй mimeType!",playerPlaylistFormatUnknown:"ÐеÑедаваемÑй плейлиÑÑ Ð´Ð¾Ð»Ð¶ÐµÐ½ бÑÑÑ Ð¼Ð°ÑÑивом!",playerSetCurrentTimeFormatUnknown:"Указан невеÑнÑй ÑоÑÐ¼Ð°Ñ Ð²Ñемени!",playerFormatUnknown:"Указан непÑавилÑнÑй Ñип даннÑÑ
",playerError:"ÐÑоблема Ñ Ð²Ð¾ÑпÑоизведением",rates:{label:"СкоÑоÑÑÑ:",codeDefault:"ÐбÑÑнаÑ"},subtitles:{label:"СÑбÑиÑÑÑ:",codeDefault:"ÐÑкл."},quality:{label:"ÐаÑеÑÑво:"},off:"ÐÑкл."}}]),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(require("jquery")):"function"==typeof define&&define.amd?define(["jquery"],t):t(e.jQuery)}(this,function(e){function t(e){return"string"==typeof e}function n(e){return"number"==typeof e&&!v(e)}function i(e){return void 0===e}function o(e){return"date"===function(e){return g.call(e).slice(8,-1).toLowerCase()}(e)}function r(e,t){for(var n=arguments.length,i=Array(n>2?n-2:0),o=2;o<n;o++)i[o-2]=arguments[o];return function(){for(var n=arguments.length,o=Array(n),r=0;r<n;r++)o[r]=arguments[r];return e.apply(t,i.concat(o))}}function s(e){return'[data-view="'+e+'"]'}function a(e,t){return[31,function(e){return e%4==0&&e%100!=0||e%400==0}(e)?29:28,31,30,31,30,31,31,30,31,30,31][t]}function l(e,t,n){return Math.min(n,a(e,t))}e=e&&e.hasOwnProperty("default")?e.default:e;var c={autoShow:!1,autoHide:!1,autoPick:!1,inline:!1,container:null,trigger:null,language:"",format:"mm/dd/yyyy",date:null,startDate:null,endDate:null,startView:0,weekStart:0,yearFirst:!1,yearSuffix:"",days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],daysShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],daysMin:["Su","Mo","Tu","We","Th","Fr","Sa"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],monthsShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],itemTag:"li",mutedClass:"muted",pickedClass:"picked",disabledClass:"disabled",highlightedClass:"highlighted",template:'<div class="datepicker-container"><div class="datepicker-panel" data-view="years picker"><ul><li data-view="years prev">‹</li><li data-view="years current"></li><li data-view="years next">›</li></ul><ul data-view="years"></ul></div><div class="datepicker-panel" data-view="months picker"><ul><li data-view="year prev">‹</li><li data-view="year current"></li><li data-view="year next">›</li></ul><ul data-view="months"></ul></div><div class="datepicker-panel" data-view="days picker"><ul><li data-view="month prev">‹</li><li data-view="month current"></li><li data-view="month next">›</li></ul><ul data-view="week"></ul><ul data-view="days"></ul></div></div>',offset:10,zIndex:1e3,filter:null,show:null,hide:null,pick:null},u="undefined"!=typeof window?window:{},d="datepicker",h="click.datepicker",p="datepicker-hide",f={},m={DAYS:0,MONTHS:1,YEARS:2},g=Object.prototype.toString,v=Number.isNaN||u.isNaN,y=/(y|m|d)+/g,b=/\d+/g,w={show:function(){this.built||this.build(),this.shown||this.trigger("show.datepicker").isDefaultPrevented()||(this.shown=!0,this.$picker.removeClass(p).on(h,e.proxy(this.click,this)),this.showView(this.options.startView),this.inline||(e(window).on("resize.datepicker",this.onResize=r(this.place,this)),e(document).on(h,this.onGlobalClick=r(this.globalClick,this)),e(document).on("keyup.datepicker",this.onGlobalKeyup=r(this.globalKeyup,this)),this.place()))},hide:function(){this.shown&&(this.trigger("hide.datepicker").isDefaultPrevented()||(this.shown=!1,this.$picker.addClass(p).off(h,this.click),this.inline||(e(window).off("resize.datepicker",this.onResize),e(document).off(h,this.onGlobalClick),e(document).off("keyup.datepicker",this.onGlobalKeyup))))},toggle:function(){this.shown?this.hide():this.show()},update:function(){var e=this.getValue();e!==this.oldValue&&(this.setDate(e,!0),this.oldValue=e)},pick:function(e){var t=this.$element,n=this.date;this.trigger("pick.datepicker",{view:e||"",date:n}).isDefaultPrevented()||(n=this.formatDate(this.date),this.setValue(n),this.isInput&&(t.trigger("input"),t.trigger("change")))},reset:function(){this.setDate(this.initialDate,!0),this.setValue(this.initialValue),this.shown&&this.showView(this.options.startView)},getMonthName:function(t,o){var r=this.options,s=r.monthsShort,a=r.months;return e.isNumeric(t)?t=Number(t):i(o)&&(o=t),!0===o&&(a=s),a[n(t)?t:this.date.getMonth()]},getDayName:function(t,o,r){var s=this.options,a=s.days;return e.isNumeric(t)?t=Number(t):(i(r)&&(r=o),i(o)&&(o=t)),r?a=s.daysMin:o&&(a=s.daysShort),a[n(t)?t:this.date.getDay()]},getDate:function(e){var t=this.date;return e?this.formatDate(t):new Date(t)},setDate:function(n,i){var r=this.options.filter;if(o(n)||t(n)){if(n=this.parseDate(n),e.isFunction(r)&&!1===r.call(this.$element,n))return;this.date=n,this.viewDate=new Date(n),i||this.pick(),this.built&&this.render()}},setStartDate:function(e){(o(e)||t(e))&&(this.startDate=this.parseDate(e),this.built&&this.render())},setEndDate:function(e){(o(e)||t(e))&&(this.endDate=this.parseDate(e),this.built&&this.render())},parseDate:function(n){var i=this.format,r=[];if(o(n))return new Date(n.getFullYear(),n.getMonth(),n.getDate());t(n)&&(r=n.match(b)||[]),n=new Date;var s=i.parts.length,a=n.getFullYear(),l=n.getDate(),c=n.getMonth();return r.length===s&&e.each(r,function(e,t){var n=parseInt(t,10)||1;switch(i.parts[e]){case"dd":case"d":l=n;break;case"mm":case"m":c=n-1;break;case"yy":a=2e3+n;break;case"yyyy":a=n}}),new Date(a,c,l)},formatDate:function(t){var n=this.format,i="";if(o(t)){var r=t.getFullYear(),s={d:t.getDate(),m:t.getMonth()+1,yy:r.toString().substring(2),yyyy:r};s.dd=(s.d<10?"0":"")+s.d,s.mm=(s.m<10?"0":"")+s.m,i=n.source,e.each(n.parts,function(e,t){i=i.replace(t,s[t])})}return i},destroy:function(){this.unbind(),this.unbuild(),this.$element.removeData(d)}},k={click:function(t){var n=e(t.target),i=this.options,o=this.viewDate,r=this.format;if(t.stopPropagation(),t.preventDefault(),!n.hasClass("disabled")){var s=n.data("view"),a=o.getFullYear(),c=o.getMonth(),u=o.getDate();switch(s){case"years prev":case"years next":a="years prev"===s?a-10:a+10,this.viewDate=new Date(a,c,l(a,c,u)),this.renderYears();break;case"year prev":case"year next":a="year prev"===s?a-1:a+1,this.viewDate=new Date(a,c,l(a,c,u)),this.renderMonths();break;case"year current":r.hasYear&&this.showView(m.YEARS);break;case"year picked":r.hasMonth?this.showView(m.MONTHS):(n.addClass(i.pickedClass).siblings().removeClass(i.pickedClass),this.hideView()),this.pick("year");break;case"year":a=parseInt(n.text(),10),this.date=new Date(a,c,l(a,c,u)),r.hasMonth?(this.viewDate=new Date(this.date),this.showView(m.MONTHS)):(n.addClass(i.pickedClass).siblings().removeClass(i.pickedClass),this.hideView()),this.pick("year");break;case"month prev":case"month next":(c="month prev"===s?c-1:c+1)<0?(a-=1,
vendor: 6,308 bytes, line 10
10c+=12):c>11&&(a+=1,c-=12),this.viewDate=new Date(a,c,l(a,c,u)),this.renderDays();break;case"month current":r.hasMonth&&this.showView(m.MONTHS);break;case"month picked":r.hasDay?this.showView(m.DAYS):(n.addClass(i.pickedClass).siblings().removeClass(i.pickedClass),this.hideView()),this.pick("month");break;case"month":c=e.inArray(n.text(),i.monthsShort),this.date=new Date(a,c,l(a,c,u)),r.hasDay?(this.viewDate=new Date(a,c,l(a,c,u)),this.showView(m.DAYS)):(n.addClass(i.pickedClass).siblings().removeClass(i.pickedClass),this.hideView()),this.pick("month");break;case"day prev":case"day next":case"day":"day prev"===s?c-=1:"day next"===s&&(c+=1),u=parseInt(n.text(),10),this.date=new Date(a,c,u),this.viewDate=new Date(a,c,u),this.renderDays(),"day"===s&&this.hideView(),this.pick("day");break;case"day picked":this.hideView(),this.pick("day")}}},globalClick:function(e){for(var t=e.target,n=this.element,i=this.$trigger[0],o=!0;t!==document;){if(t===i||t===n){o=!1;break}t=t.parentNode}o&&this.hide()},keyup:function(){this.update()},globalKeyup:function(e){var t=e.target,n=e.key,i=e.keyCode;this.isInput&&t!==this.element&&this.shown&&("Tab"===n||9===i)&&this.hide()}},C={render:function(){this.renderYears(),this.renderMonths(),this.renderDays()},renderWeek:function(){var t=this,n=[],i=this.options,o=i.weekStart,r=i.daysMin;o=parseInt(o,10)%7,r=r.slice(o).concat(r.slice(0,o)),e.each(r,function(e,i){n.push(t.createItem({text:i}))}),this.$week.html(n.join(""))},renderYears:function(){var e=this.options,t=this.startDate,n=this.endDate,i=e.disabledClass,o=e.filter,r=e.yearSuffix,s=this.viewDate.getFullYear(),a=(new Date).getFullYear(),l=this.date.getFullYear(),c=[],u=!1,d=!1,h=void 0;for(h=-5;h<=6;h+=1){var p=new Date(s+h,1,1),f=!1;t&&(f=p.getFullYear()<t.getFullYear(),-5===h&&(u=f)),!f&&n&&(f=p.getFullYear()>n.getFullYear(),6===h&&(d=f)),!f&&o&&(f=!1===o.call(this.$element,p));var m=s+h===l,g=m?"year picked":"year";c.push(this.createItem({picked:m,disabled:f,muted:-5===h||6===h,text:s+h,view:f?"year disabled":g,highlighted:p.getFullYear()===a}))}this.$yearsPrev.toggleClass(i,u),this.$yearsNext.toggleClass(i,d),this.$yearsCurrent.toggleClass(i,!0).html(s+-5+r+" - "+(s+6)+r),this.$years.html(c.join(""))},renderMonths:function(){var t=this.options,n=this.startDate,i=this.endDate,o=this.viewDate,r=t.disabledClass||"",s=t.monthsShort,a=e.isFunction(t.filter)&&t.filter,l=o.getFullYear(),c=new Date,u=c.getFullYear(),d=c.getMonth(),h=this.date.getFullYear(),p=this.date.getMonth(),f=[],m=!1,g=!1,v=void 0;for(v=0;v<=11;v+=1){var y=new Date(l,v,1),b=!1;n&&(b=(m=y.getFullYear()===n.getFullYear())&&y.getMonth()<n.getMonth()),!b&&i&&(b=(g=y.getFullYear()===i.getFullYear())&&y.getMonth()>i.getMonth()),!b&&a&&(b=!1===a.call(this.$element,y));var w=l===h&&v===p,k=w?"month picked":"month";f.push(this.createItem({disabled:b,picked:w,highlighted:l===u&&y.getMonth()===d,index:v,text:s[v],view:b?"month disabled":k}))}this.$yearPrev.toggleClass(r,m),this.$yearNext.toggleClass(r,g),this.$yearCurrent.toggleClass(r,m&&g).html(l+t.yearSuffix||""),this.$months.html(f.join(""))},renderDays:function(){var e=this.$element,t=this.options,n=this.startDate,i=this.endDate,o=this.viewDate,r=this.date,s=t.disabledClass,l=t.filter,c=t.monthsShort,u=t.weekStart,d=t.yearSuffix,h=o.getFullYear(),p=o.getMonth(),f=new Date,m=f.getFullYear(),g=f.getMonth(),v=f.getDate(),y=r.getFullYear(),b=r.getMonth(),w=r.getDate(),k=void 0,C=void 0,x=void 0,_=[],S=h,T=p,E=!1;0===p?(S-=1,T=11):T-=1,k=a(S,T);var $=new Date(h,p,1);for((x=$.getDay()-parseInt(u,10)%7)<=0&&(x+=7),n&&(E=$.getTime()<=n.getTime()),C=k-(x-1);C<=k;C+=1){var I=new Date(S,T,C),P=!1;n&&(P=I.getTime()<n.getTime()),!P&&l&&(P=!1===l.call(e,I)),_.push(this.createItem({disabled:P,highlighted:S===m&&T===g&&I.getDate()===v,muted:!0,picked:S===y&&T===b&&C===w,text:C,view:"day prev"}))}var D=[],A=h,R=p,N=!1;11===p?(A+=1,R=0):R+=1,k=a(h,p),x=42-(_.length+k);var L=new Date(h,p,k);for(i&&(N=L.getTime()>=i.getTime()),C=1;C<=x;C+=1){var M=new Date(A,R,C),O=A===y&&R===b&&C===w,j=!1;i&&(j=M.getTime()>i.getTime()),!j&&l&&(j=!1===l.call(e,M)),D.push(this.createItem({disabled:j,picked:O,highlighted:A===m&&R===g&&M.getDate()===v,muted:!0,text:C,view:"day next"}))}var H=[];for(C=1;C<=k;C+=1){var F=new Date(h,p,C),B=!1;n&&(B=F.getTime()<n.getTime()),!B&&i&&(B=F.getTime()>i.getTime()),!B&&l&&(B=!1===l.call(e,F));var z=h===y&&p===b&&C===w,q=z?"day picked":"day";H.push(this.createItem({disabled:B,picked:z,highlighted:h===m&&p===g&&F.getDate()===v,text:C,view:B?"day disabled":q}))}this.$monthPrev.toggleClass(s,E),this.$monthNext.toggleClass(s,N),this.$monthCurrent.toggleClass(s,E&&N).html(t.yearFirst?h+d+" "+c[p]:c[p]+" "+h+d),this.$days.html(_.join("")+H.join("")+D.join(""))}},x=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),_="datepicker-top-left",S="datepicker-bottom-left",T=[_,"datepicker-top-right",S,"datepicker-bottom-right"].join(" "),E=function(){function t(n){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),this.$element=e(n),this.element=n,this.options=e.extend({},c,f[i.language],i),this.built=!1,this.shown=!1,this.isInput=!1,this.inline=!1,this.initialValue="",this.initialDate=null,this.startDate=null,this.endDate=null,this.init()}return x(t,[{key:"init",value:function(){var t=this.$element,n=this.options,i=n.startDate,o=n.endDate,r=n.date;this.$trigger=e(n.trigger),this.isInput=t.is("input")||t.is("textarea"),this.inline=n.inline&&(n.container||!this.isInput),this.format=function(t){var n=String(t).toLowerCase(),i=n.match(y);if(!i||0===i.length)throw new Error("Invalid date format.");return t={source:n,parts:i},e.each(i,function(e,n){switch(n){case"dd":case"d":t.hasDay=!0;break;case"mm":case"m":t.hasMonth=!0;break;case"yyyy":case"yy":t.hasYear=!0}}),t}(n.format);var s=this.getValue();this.initialValue=s,this.oldValue=s,r=this.parseDate(r||s),i&&(i=this.parseDate(i),r.getTime()<i.getTime()&&(r=new Date(i)),this.startDate=i),o&&(o=this.parseDate(o),i&&o.getTime()<i.getTime()&&(o=new Date(i)),r.getTime()>
10o.getTime()&&(r=new Date(o)),this.endDate=o),this.date=r,this.viewDate=new Date(r),this.initialDate=new Date(this.date),this.bind(),(n.autoShow||this.inline)&&this.show(),n.autoPick&&this.pick()}},{key:"build",value:function(){if(!this.built){this.built=!0;var t=this.$element,n=this.options,i=e(n.template);this.$picker=i,this.$week=i.find(s("week")),this.$yearsPicker=i.find(s("years picker")),this.$yearsPrev=i.find(s("years prev")),this.$yearsNext=i.find(s("years next")),this.$yearsCurrent=i.find(s("years current")),this.$years=i.find(s("years")),this.$monthsPicker=i.find(s("months picker")),this.$yearPrev=i.find(s("year prev")),this.$yearNext=i.find(s("year next")),this.$yearCurrent=i.find(s("year current")),this.$months=i.find(s("months")),this.$daysPicker=i.find(s("days picker")),this.$monthPrev=i.find(s("month prev")),this.$monthNext=i.find(s("month next")),this.$monthCurrent=i.find(s("month current")),this.$days=i.find(s("days")),this.inline?e(n.container||t).append(i.addClass("datepicker-inline")):(e(document.body).append(i.addClass("datepicker-dropdown")),i.addClass(p)),this.renderWeek()}}},{key:"unbuild",value:function(){this.built&&(this.built=!1,this.$picker.remove())}},{key:"bind",value:function(){var t=this.options,n=this.$element;e.isFunction(t.show)&&n.on("show.datepicker",t.show),e.isFunction(t.hide)&&n.on("hide.datepicker",t.hide),e.isFunction(t.pick)&&n.on("pick.datepicker",t.pick),this.isInput&&n.on("keyup.datepicker",e.proxy(this.keyup,this)),this.inline||(t.trigger?this.$trigger.on(h,e.proxy(this.toggle,this)):this.isInput?n.on("focus.datepicker",e.proxy(this.show,this)):n.on(h,e.proxy(this.show,this)))}},{key:"unbind",value:function(){var t=this.$element,n=this.options;e.isFunction(n.show)&&t.off("show.datepicker",n.show),e.isFunction(n.hide)&&t.off("hide.datepicker",n.hide),e.isFunction(n.pick)&&t.off("pick.datepicker",n.pick),this.isInput&&t.off("keyup.datepicker",this.keyup),this.inline||(n.trigger?this.$trigger.off(h,this.toggle):this.isInput?t.off("focus.datepicker",this.show):t.off(h,this.show))}},{key:"showView",value:function(e){var t=this.$yearsPicker,n=this.$monthsPicker,i=this.$daysPicker,o=this.format;if(o.hasYear||o.hasMonth||o.hasDay)switch(Number(e)){case m.YEARS:n.addClass(p),i.addClass(p),o.hasYear?(this.renderYears(),t.removeClass(p),this.place()):this.showView(m.DAYS);break;case m.MONTHS:t.addClass(p),i.addClass(p),o.hasMonth?(this.renderMonths(),n.removeClass(p),this.place()):this.showView(m.YEARS);break;default:t.addClass(p),n.addClass(p),o.hasDay?(this.renderDays(),i.removeClass(p),this.place()):this.showView(m.MONTHS)}}},{key:"hideView",value:function(){!this.inline&&this.options.autoHide&&this.hide()}},{key:"place",value:function(){if(!this.inline){var t=this.$element,n=this.options,i=this.$picker,o=e(document).outerWidth(),r=e(document).outerHeight(),s=t.outerWidth(),a=t.outerHeight(),l=i.width(),c=i.height(),u=t.offset(),d=u.left,h=u.top,p=parseFloat(n.offset),f=_;v(p)&&(p=10),h>c&&h+a+c>r?(h-=c+p,f=S):h+=a+p,d+l>o&&(d+=s-l,f=f.replace("left","right")),i.removeClass(T).addClass(f).css({top:h,left:d,zIndex:parseInt(n.zIndex,10)})}}},{key:"trigger",value:function(t,n){var i=e.Event(t,n);return this.$element.trigger(i),i}},{key:"createItem",value:function(t){var n=this.options,i=n.itemTag,o={text:"",view:"",muted:!1,picked:!1,disabled:!1,highlighted:!1},r=[];return e.extend(o,t),o.muted&&r.push(n.mutedClass),o.highlighted&&r.push(n.highlightedClass),o.picked&&r.push(n.pickedClass),o.disabled&&r.push(n.disabledClass),"<"+i+' class="'+r.join(" ")+'" data-view="'+o.view+'">'+o.text+"</"+i+">"}},{key:"getValue",value:function(){var e=this.$element;return this.isInput?e.val():e.text()}},{key:"setValue",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=this.$element;this.isInput?t.val(e):t.text(e)}}],[{key:"setDefaults",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e.extend(c,f[t.language],t)}}]),t}();if(e.extend&&e.extend(E.prototype,C,k,w),e.fn){var $=e.fn.datepicker;e.fn.datepicker=function(n){for(var o=arguments.length,r=Array(o>1?o-1:0),s=1;s<o;s++)r[s-1]=arguments[s];var a=void 0;return this.each(function(i,o){var s=e(o),l=s.data(d);if(!l){if(/destroy/.test(n))return;var c=e.extend({},s.data(),e.isPlainObject(n)&&n) 11;l=new E(o,c),s.data(d,l)}if(t(n)){var u=l[n];e.isFunction(u)&&(a=u.apply(l,r))}}),i(a)?this:a},e.fn.datepicker.Constructor=E,e.fn.datepicker.languages=f,e.fn.datepicker.setDefaults=E.setDefaults,e.fn.datepicker.noConflict=function(){return e.fn.datepicker=$,this}}}),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(require("jquery")):"function"==typeof define&&define.amd?define(["jquery"],t):t(e.jQuery)}(this,function(e){e.fn.datepicker.languages["ru-RU"]={format:"dd.mm.YYYY",days:["ÐоÑкÑеÑенÑе","ÐонеделÑник","ÐÑоÑник","СÑеда","ЧеÑвеÑг","ÐÑÑниÑа","СÑббоÑа"],daysShort:["ÐÑ","Ðн","ÐÑ","СÑ","ЧÑ","ÐÑ","Сб"],daysMin:["ÐÑ","Ðн","ÐÑ","СÑ","ЧÑ","ÐÑ","Сб"],months:["ЯнваÑÑ","ФевÑалÑ","ÐаÑÑ","ÐпÑелÑ","Ðай","ÐÑнÑ","ÐÑлÑ","ÐвгÑÑÑ","СенÑÑбÑÑ","ÐкÑÑбÑÑ","ÐоÑбÑÑ","ÐекабÑÑ"],monthsShort:["Янв","Фев","ÐаÑ","ÐпÑ","Ðай","ÐÑн","ÐÑл","Ðвг","Сен","ÐкÑ","ÐоÑ","Ðек"],weekStart:1,startView:0,yearFirst:!1,yearSuffix:""}}),function(){function e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function t(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function n(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&r(e,t)}
11function o(e){return(o=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function r(e,t){return(r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function s(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function a(e,t){return!t||"object"!=typeof t&&"function"!=typeof t?s(e):t}function l(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];t=n}else t=void 0;if(t||(t=Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)?Array.from(e):void 0),!(e=t))throw new TypeError("Invalid attempt to spread non-iterable instance");return e}var c=function(){function t(){e(this,t),this.handlers={}}return n(t,[{key:"addEventListener",value:function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:document,t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:"click";this.handlers[t]={func:2<arguments.length?arguments[2]:void 0,target:e};var n=t.split(".")[0];e.addEventListener(n,this.handlers[t].func)}},{key:"removeEventListener",value:function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:"click",t=e.split(".")[0],n=this.handlers[e];n.target.removeEventListener(t,n.func),delete this.handlers[e]}},{key:"removeAll",value:function(){for(var e in this.handlers)this.removeEventListener(e)}}]),t}(),u=function(){return"".concat(0<arguments.length&&void 0!==arguments[0]?arguments[0]:"id","-").concat(Math.random().toString(36).substr(2,8))},d=function(){function t(){e(this,t),this.events=new c,this.callback=function(){},this.updateInstanceId()}return n(t,[{key:"eventHandler",value:function(e,t){var n=this,i=t.share_url,o=t.windowTitle,r=t.windowWidth,s=t.windowHeight;e.preventDefault(),t=Math.round((window.outerHeight||window.document.documentElement.offsetHeight)/2-s/2);var a=Math.round((window.outerWidth||window.document.documentElement.offsetWidth)/2-r/2);r="width=".concat(r,",height=").concat(s),t="left=".concat(a,",top=").concat(t);var l="".concat(r,",").concat(t,",location=no,toolbar=no,menubar=no"),c=window.open(i,o,l),u=setInterval(function(){c.closed&&(n.callback(e,{share_url:i,windowTitle:o,windowOptions:l},c),clearInterval(u))},10);return c}},{key:"setShareCallback",value:function(e){this.callback=e}},{key:"createEvents",value:function(e){var t=this;l(e).forEach(function(e){var n=t.getPreparedData(e);t.events.addEventListener(e,"click.".concat(t.instanceId),function(e){return t.eventHandler.call(t,e,n)})})}},{key:"getInstance",value:function(){return"function"==typeof this.shareWindow&&this.shareWindow(),"function"==typeof this.getCounter&&this.getCounter(),this}},{key:"updateInstanceId",value:function(){this.instanceId=u()}},{key:"reNewInstance",value:function(){return this.events.removeAll(),this.updateInstanceId(),this.getInstance()}}]),t}(),h=function(t){function r(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:document.location.href,n=1<arguments.length&&void 0!==arguments[1]?arguments[1]:document.title,i=2<arguments.length&&void 0!==arguments[2]?arguments[2]:document.querySelector('link[rel="apple-touch-icon"]');e(this,r);var l=a(this,o(r).call(this));return l.url=encodeURIComponent(t),l.title=encodeURIComponent(n),l.image=i?encodeURIComponent(i.href):"",l.createEvents=l.createEvents.bind(s(l)),l}return i(r,t),n(r,[{key:"getPreparedData",value:function(e){var t=e.dataset.url?encodeURIComponent(e.dataset.url):this.url,n=e.dataset.title?encodeURIComponent(e.dataset.title):this.title;return e=e.dataset.image?encodeURIComponent(e.dataset.image):this.image,t="https://vk.com/share.php?url=".concat(t,"&title=").concat(n,"&image=").concat(e),{callback:this.callback,share_url:t,windowTitle:"Share this",windowWidth:640,windowHeight:480}}},{key:"shareWindow",value:function(){var e=document.querySelectorAll('[data-social="vkontakte"]');return this.createEvents(e)}},{key:"getCounter",value:function(){var e=document.createElement("script"),t=document.querySelectorAll('[data-counter="vkontakte"]'),n="https://vk.com/share.php?act=count&index=1&url=".concat(this.url);window.VK=Object.assign({},{Share:{}},window.VK),0<t.length&&(window.VK.Share.count=function(n,i){l(t).forEach(function(e){e.innerHTML=i}),null!==e.parentNode&&e.parentNode.removeChild(e)},e.src=n,document.body.appendChild(e))}}]),r}(d),p=function(t){function r(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:document.location.href,n=1<arguments.length&&void 0!==arguments[1]?arguments[1]:document.title;e(this,r);var i=a(this,o(r).call(this));return i.url=encodeURIComponent(t),i.title=encodeURIComponent(n),i.createEvents=i.createEvents.bind(s(i)),i}return i(r,t),n(r,[{key:"getPreparedData",value:function(e){var t=e.dataset.url?encodeURIComponent(e.dataset.url):this.url;return e=e.dataset.title?encodeURIComponent(e.dataset.title):this.title,t="https://facebook.com/sharer/sharer.php?u=".concat(t,"&t=").concat(e),{callback:this.callback,share_url:t,windowTitle:"Share this",windowWidth:640,windowHeight:480}}},{key:"shareWindow",value:function(){var e=document.querySelectorAll('[data-social="facebook"]');return this.createEvents(e)}},{key:"getCounter",value:function(){var e=document.createElement("script"),t=("goodshare_"+Math.random()).replace(".",""),n=document.querySelectorAll('[data-counter="facebook"]'),i="https://graph.facebook.com/?id=".concat(this.url,"&callback=").concat(t);
110<n.length&&(window[t]=function(t){l(n).forEach(function(e){e.innerHTML=t.share?t.share.share_count:0}),null!==e.parentNode&&e.parentNode.removeChild(e)},e.src=i,document.body.appendChild(e))}}]),r}(d),f=function(t){function r(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:document.location.href,n=1<arguments.length&&void 0!==arguments[1]?arguments[1]:document.title;e(this,r);var i=a(this,o(r).call(this));return i.url=encodeURIComponent(t),i.title=encodeURIComponent(n),i.createEvents=i.createEvents.bind(s(i)),i}return i(r,t),n(r,[{key:"getPreparedData",value:function(e){var t=e.dataset.url?encodeURIComponent(e.dataset.url):this.url;return e=e.dataset.title?encodeURIComponent(e.dataset.title):this.title,t="https://connect.ok.ru/offer?url=".concat(t,"&title=").concat(e),{callback:this.callback,share_url:t,windowTitle:"Share this",windowWidth:640,windowHeight:480}}},{key:"shareWindow",value:function(){var e=document.querySelectorAll('[data-social="odnoklassniki"]');return this.createEvents(e)}},{key:"getCounter",value:function(){var e=document.createElement("script"),t=document.querySelectorAll('[data-counter="odnoklassniki"]'),n="https://connect.ok.ru/dk?st.cmd=extLike&uid=1&ref=".concat(this.url);window.ODKL={},0<t.length&&(window.ODKL.updateCount=function(n,i){l(t).forEach(function(e){e.innerHTML=i}),null!==e.parentNode&&e.parentNode.removeChild(e)},e.src=n,document.body.appendChild(e))}}]),r}(d),m=function(t){function r(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:document.location.href,n=1<arguments.length&&void 0!==arguments[1]?arguments[1]:document.title,i=2<arguments.length&&void 0!==arguments[2]?arguments[2]:document.querySelector('meta[name="description"]'),l=3<arguments.length&&void 0!==arguments[3]?arguments[3]:document.querySelector('link[rel="apple-touch-icon"]');e(this,r);var c=a(this,o(r).call(this));return c.url=encodeURIComponent(t),c.title=encodeURIComponent(n),c.description=i?encodeURIComponent(i.content):"",c.image=l?encodeURIComponent(l.href):"",c.createEvents=c.createEvents.bind(s(c)),c}return i(r,t),n(r,[{key:"getPreparedData",value:function(e){var t=e.dataset.url?encodeURIComponent(e.dataset.url):this.url,n=e.dataset.title?encodeURIComponent(e.dataset.title):this.title,i=e.dataset.description?encodeURIComponent(e.dataset.description):this.description;return e=e.dataset.image?encodeURIComponent(e.dataset.image):this.image,t="https://connect.mail.ru/share?url=".concat(t,"&title=").concat(n,"&description=").concat(i,"&imageurl=").concat(e),{callback:this.callback,share_url:t,windowTitle:"Share this",windowWidth:640,windowHeight:480}}},{key:"shareWindow",value:function(){var e=document.querySelectorAll('[data-social="moimir"]');return this.createEvents(e)}},{key:"getCounter",value:function(){var e=document.createElement("script"),t=encodeURIComponent(this.url.replace(/^.*?:\/\//,"")),n=("goodshare_"+Math.random()).replace(".",""),i=document.querySelectorAll('[data-counter="moimir"]');0<i.length&&(window[n]=function(t){l(i).forEach(function(e){e.innerHTML=t.share_mm}),null!==e.parentNode&&e.parentNode.removeChild(e)},e.src="https://appsmail.ru/share/count/"+t+"?callback="+n,document.body.appendChild(e))}}]),r}(d),g=function(t){function r(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:document.location.href,n=1<arguments.length&&void 0!==arguments[1]?arguments[1]:document.title,i=2<arguments.length&&void 0!==arguments[2]?arguments[2]:document.querySelector('meta[name="description"]');e(this,r);var l=a(this,o(r).call(this));return l.url=encodeURIComponent(t),l.title=encodeURIComponent(n),l.description=i?encodeURIComponent(i.content):"",l.createEvents=l.createEvents.bind(s(l)),l}return i(r,t),n(r,[{key:"getPreparedData",value:function(e){var t=e.dataset.url?encodeURIComponent(e.dataset.url):this.url,n=e.dataset.title?encodeURIComponent(e.dataset.title):this.title;return e=e.dataset.description?encodeURIComponent(e.dataset.description):this.description,t="https://www.tumblr.com/widgets/share/tool?canonicalUrl=".concat(t,"&title=").concat(n,"&caption=").concat(e,"&posttype=link"),{callback:this.callback,share_url:t,windowTitle:"Share this",windowWidth:640,windowHeight:480}}},{key:"shareWindow",value:function(){var e=document.querySelectorAll('[data-social="tumblr"]');return this.createEvents(e)}},{key:"getCounter",value:function(){var e=document.createElement("script"),t=("goodshare_"+Math.random()).replace(".",""),n=document.querySelectorAll('[data-counter="tumblr"]'),i="https://api.tumblr.com/v2/share/stats?url=".concat(this.url,"&callback=").concat(t);
110<n.length&&(window[t]=function(t){l(n).forEach(function(e){e.innerHTML=t.response.note_count}),null!==e.parentNode&&e.parentNode.removeChild(e)},e.src=i,document.body.appendChild(e))}}]),r}(d),v=function(t){function r(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:document.location.href,n=1<arguments.length&&void 0!==arguments[1]?arguments[1]:document.querySelector('meta[name="description"]'),i=2<arguments.length&&void 0!==arguments[2]?arguments[2]:document.querySelector('link[rel="apple-touch-icon"]');e(this,r);var l=a(this,o(r).call(this));return l.url=encodeURIComponent(t),l.description=n?encodeURIComponent(n.content):"",l.image=i?encodeURIComponent(i.href):"",l.createEvents=l.createEvents.bind(s(l)),l}return i(r,t),n(r,[{key:"getPreparedData",value:function(e){var t=e.dataset.url?encodeURIComponent(e.dataset.url):this.url,n=e.dataset.description?encodeURIComponent(e.dataset.description):this.description;return e=e.dataset.image?encodeURIComponent(e.dataset.image):this.image,t="https://www.pinterest.com/pin/create/button/?url=".concat(t,"&description=").concat(n,"&media=").concat(e),{callback:this.callback,share_url:t,windowTitle:"Share this",windowWidth:640,windowHeight:480}}},{key:"shareWindow",value:function(){var e=document.querySelectorAll('[data-social="pinterest"]');return this.createEvents(e)}},{key:"getCounter",value:function(){var e=document.createElement("script"),t=("goodshare_"+Math.random()).replace(".",""),n=document.querySelectorAll('[data-counter="pinterest"]'),i="https://api.pinterest.com/v1/urls/count.json?url=".concat(this.url,"&callback=").concat(t);0<n.length&&(window[t]=function(t){l(n).forEach(function(e){e.innerHTML=0<t.length?t.count:0}),null!==e.parentNode&&e.parentNode.removeChild(e)},e.src=i,document.body.appendChild(e))}}]),r}(d),y=function(t){function r(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:document.location.href,n=1<arguments.length&&void 0!==arguments[1]?arguments[1]:document.title;e(this,r);var i=a(this,o(r).call(this));return i.url=encodeURIComponent(t),i.title=encodeURIComponent(n),i.createEvents=i.createEvents.bind(s(i)),i}return i(r,t),n(r,[{key:"getPreparedData",value:function(e){var t=e.dataset.url?encodeURIComponent(e.dataset.url):this.url;return e=e.dataset.title?encodeURIComponent(e.dataset.title):this.title,t="https://reddit.com/submit?url=".concat(t,"&title=").concat(e),{callback:this.callback,share_url:t,windowTitle:"Share this",windowWidth:640,windowHeight:480}}},{key:"shareWindow",value:function(){var e=document.querySelectorAll('[data-social="reddit"]');return this.createEvents(e)}}]),r}(d),b=function(t){function r(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:document.location.href,n=1<arguments.length&&void 0!==arguments[1]?arguments[1]:document.title;e(this,r);var i=a(this,o(r).call(this));return i.url=encodeURIComponent(t),i.title=encodeURIComponent(n),i.createEvents=i.createEvents.bind(s(i)),i}return i(r,t),n(r,[{key:"getPreparedData",value:function(e){var t=e.dataset.url?encodeURIComponent(e.dataset.url):this.url;return e=e.dataset.title?encodeURIComponent(e.dataset.title):this.title,t="https://buffer.com/add?url=".concat(t,"&text=").concat(e),{callback:this.callback,share_url:t,windowTitle:"Share this",windowWidth:640,windowHeight:480}}},{key:"shareWindow",value:function(){var e=document.querySelectorAll('[data-social="buffer"]');return this.createEvents(e)}},{key:"getCounter",value:function(){var e=document.createElement("script"),t=("goodshare_"+Math.random()).replace(".",""),n=document.querySelectorAll('[data-counter="buffer"]'),i="https://api.bufferapp.com/1/links/shares.json?url=".concat(this.url,"&callback=").concat(t);0<n.length&&(window[t]=function(t){l(n).forEach(function(e){e.innerHTML=t?t.shares:0}),e.parentNode.removeChild(e)},e.src=i,document.body.appendChild(e))}}]),r}(d),w=function(t){function r(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:document.location.href,n=1<arguments.length&&void 0!==arguments[1]?arguments[1]:document.title;e(this,r);var i=a(this,o(r).call(this));return i.url=encodeURIComponent(t),i.title=encodeURIComponent(n),i.createEvents=i.createEvents.bind(s(i)),i}return i(r,t),n(r,[{key:"getPreparedData",value:function(e){var t=e.dataset.url?encodeURIComponent(e.dataset.url):this.url;return e=e.dataset.title?encodeURIComponent(e.dataset.title):this.title,t="https://twitter.com/share?url=".concat(t,"&text=").concat(e),{callback:this.callback,share_url:t,windowTitle:"Share this",windowWidth:640,windowHeight:480}}},{key:"shareWindow",value:function(){var e=document.querySelectorAll('[data-social="twitter"]');return this.createEvents(e)}}]),r}(d),k=function(t){function r(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:document.location.href,n=1<arguments.length&&void 0!==arguments[1]?arguments[1]:document.title;e(this,r);var i=a(this,o(r).call(this));return i.url=encodeURIComponent(t),i.title=encodeURIComponent(n),i.createEvents=i.createEvents.bind(s(i)),i}return i(r,t),n(r,[{key:"getPreparedData",value:function(e){var t=e.dataset.url?encodeURIComponent(e.dataset.url):this.url;return e=e.dataset.title?encodeURIComponent(e.dataset.title):this.title,t="https://livejournal.com/update.bml?event=".concat(t,"&subject=").concat(e),{callback:this.callback,share_url:t,windowTitle:"Share this",windowWidth:640,windowHeight:480}}},{key:"shareWindow",value:function(){var e=document.querySelectorAll('[data-social="livejournal"]');return this.createEvents(e)}}]),r}(d),C=function(t){function r(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:document.location.href,n=1<arguments.length&&void 0!==arguments[1]?arguments[1]:document.title,i=2<arguments.length&&void 0!==arguments[2]?arguments[2]:document.querySelector('meta[name="description"]');e(this,r);var l=a(this,o(r).call(this));return l.url=encodeURIComponent(t),l.title=encodeURIComponent(n),l.description=i?encodeURIComponent(i.content):"",l.createEvents=l.createEvents.bind(s(l)),l}return i(r,t),n(r,[{key:"getPreparedData",value:function(e){var t=e.dataset.url?encodeURIComponent(e.dataset.url):this.url,n=e.dataset.title?encodeURIComponent(e.dataset.title):this.title;return e=e.dataset.description?encodeURIComponent(e.dataset.description):this.description,t="https://www.linkedin.com/shareArticle?url=".concat(t,"&text=").concat(n,"&summary=").concat(e,"&mini=true"),{callback:this.callback,share_url:t,windowTitle:"Share this",windowWidth:640,windowHeight:480}}},{key:"shareWindow",value:function(){var e=document.querySelectorAll('[data-social="linkedin"]');return this.createEvents(e)}}]),r}(d),x=function(t){function r(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:document.location.href,n=1<arguments.length&&void 0!==arguments[1]?arguments[1]:document.title,i=2<arguments.length&&void 0!==arguments[2]?arguments[2]:document.querySelector('meta[name="description"]');e(this,r);var l=a(this,o(r).call(this));return l.url=encodeURIComponent(t),l.title=encodeURIComponent(n),l.description=i?encodeURIComponent(i.content):"",l.createEvents=l.createEvents.bind(s(l)),l}return i(r,t),n(r,[{key:"getPreparedData",value:function(e){var t=e.dataset.url?encodeURIComponent(e.dataset.url):this.url,n=e.dataset.title?encodeURIComponent(e.dataset.title):this.title;return e=e.dataset.description?encodeURIComponent(e.dataset.description):this.description,t="https://www.evernote.com/clip.action?url=".concat(t,"&title=").concat(n,"&body=").concat(e),{callback:this.callback,share_url:t,windowTitle:"Share this",windowWidth:640,windowHeight:480}}},{key:"shareWindow",value:function(){var e=document.querySelectorAll('[data-social="evernote"]');return this.createEvents(e)}}]),r}(d),_=function(t){function r(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:document.location.href,n=1<arguments.length&&void 0!==arguments[1]?arguments[1]:document.title;e(this,r);var i=a(this,o(r).call(this));return i.url=encodeURIComponent(t),i.title=encodeURIComponent(n),i.createEvents=i.createEvents.bind(s(i)),i}return i(r,t),n(r,[{key:"getPreparedData",value:function(e){var t=e.dataset.url?encodeURIComponent(e.dataset.url):this.url;return e=e.dataset.title?encodeURIComponent(e.dataset.title):this.title,t="https://del.icio.us/save?url=".concat(t,"&title=").concat(e),{callback:this.callback,share_url:t,windowTitle:"Share this",windowWidth:640,windowHeight:480}}},{key:"shareWindow",value:function(){var e=document.querySelectorAll('[data-social="delicious"]');return this.createEvents(e)}}]),r}(d),S=function(t){function r(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:document.location.href,n=1<arguments.length&&void 0!==arguments[1]?arguments[1]:document.title;e(this,r);var i=a(this,o(r).call(this));return i.url=encodeURIComponent(t),i.title=encodeURIComponent(n),i.createEvents=i.createEvents.bind(s(i)),i}return i(r,t),n(r,[{key:"getPreparedData",value:function(e){var t=e.dataset.url?encodeURIComponent(e.dataset.url):this.url;return e=e.dataset.title?encodeURIComponent(e.dataset.title):this.title,t="https://share.flipboard.com/bookmarklet/popout?ext=sharethis&title=".concat(e,"&url=").concat(t,"&v=2"),{callback:this.callback,share_url:t,windowTitle:"Share this",windowWidth:640,windowHeight:480}}},{key:"shareWindow",value:function(){var e=document.querySelectorAll('[data-social="flipboard"]');return this.createEvents(e)}}]),r}(d),T=function(t){function r(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:document.location.href;e(this,r);var n=a(this,o(r).call(this));return n.url=encodeURIComponent(t),n.createEvents=n.createEvents.bind(s(n)),n}return i(r,t),n(r,[{key:"getPreparedData",value:function(e){return e=e.dataset.url?encodeURIComponent(e.dataset.url):this.url,e="https://mix.com/mixit?su=submit&url=".concat(e),{callback:this.callback,share_url:e,windowTitle:"Share this",windowWidth:640,windowHeight:480}}},{key:"shareWindow",value:function(){var e=document.querySelectorAll('[data-social="mix"]');return this.createEvents(e)}}]),r}(d),E=function(t){function r(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:document.location.href;e(this,r);var n=a(this,o(r).call(this));return n.url=encodeURIComponent(t),n.createEvents=n.createEvents.bind(s(n)),n}return i(r,t),n(r,[{key:"getPreparedData",value:function(e){return e=e.dataset.url?encodeURIComponent(e.dataset.url):this.url,e="https://www.meneame.net/submit?url=".concat(e),{callback:this.callback,share_url:e,windowTitle:"Share this",windowWidth:640,windowHeight:480}}},{key:"shareWindow",value:function(){var e=document.querySelectorAll('[data-social="meneame"]');return this.createEvents(e)}}]),r}(d),$=function(t){function r(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:document.location.href,n=1<arguments.length&&void 0!==arguments[1]?arguments[1]:document.title;e(this,r);var i=a(this,o(r).call(this));return i.url=encodeURIComponent(t),i.title=encodeURIComponent(n),i.createEvents=i.createEvents.bind(s(i)),i}return i(r,t),n(r,[{key:"getPreparedData",value:function(e){var t=e.dataset.url?encodeURIComponent(e.dataset.url):this.url;return e=e.dataset.title?encodeURIComponent(e.dataset.title):this.title,t="https://www.blogger.com/blog-this.g?u=".concat(t,"&n=").concat(e),{callback:this.callback,share_url:t,windowTitle:"Share this",windowWidth:640,windowHeight:480}}},{key:"shareWindow",value:function(){var e=document.querySelectorAll('[data-social="blogger"]');return this.createEvents(e)}}]),r}(d),I=function(t){function r(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:document.location.href,n=1<arguments.length&&void 0!==arguments[1]?arguments[1]:document.title;e(this,r);var i=a(this,o(r).call(this));return i.url=encodeURIComponent(t),i.title=encodeURIComponent(n),i.createEvents=i.createEvents.bind(s(i)),i}return i(r,t),n(r,[{key:"getPreparedData",value:function(e){var t=e.dataset.url?encodeURIComponent(e.dataset.url):this.url;return e=e.dataset.title?encodeURIComponent(e.dataset.title):this.title,t="https://getpocket.com/save?url=".concat(t,"&title=").concat(e),{callback:this.callback,share_url:t,windowTitle:"Share this",windowWidth:640,windowHeight:480}}},{key:"shareWindow",value:function(){var e=document.querySelectorAll('[data-social="pocket"]');return this.createEvents(e)}}]),r}(d),P=function(t){function r(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:document.location.href,n=1<arguments.length&&void 0!==arguments[1]?arguments[1]:document.title;e(this,r);var i=a(this,o(r).call(this));return i.url=encodeURIComponent(t),i.title=encodeURIComponent(n),i.createEvents=i.createEvents.bind(s(i)),i}return i(r,t),n(r,[{key:"getPreparedData",value:function(e){var t=e.dataset.url?encodeURIComponent(e.dataset.url):this.url;return e=e.dataset.title?encodeURIComponent(e.dataset.title):this.title,t="https://www.instapaper.com/edit?url=".concat(t,"&title=").concat(e),{callback:this.callback,share_url:t,windowTitle:"Share this",windowWidth:640,windowHeight:480}}},{key:"shareWindow",value:function(){var e=document.querySelectorAll('[data-social="instapaper"]');return this.createEvents(e)}}]),r}(d),D=function(t){function r(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:document.location.href,n=1<arguments.length&&void 0!==arguments[1]?arguments[1]:document.title;e(this,r);var i=a(this,o(r).call(this));return i.url=encodeURIComponent(t),i.title=encodeURIComponent(n),i.createEvents=i.createEvents.bind(s(i)),i}return i(r,t),n(r,[{key:"getPreparedData",value:function(e){var t=e.dataset.url?encodeURIComponent(e.dataset.url):this.url;return e=e.dataset.title?encodeURIComponent(e.dataset.title):this.title,t="https://digg.com/submit?url=".concat(t,"&title=").concat(e),{callback:this.callback,share_url:t,windowTitle:"Share this",windowWidth:640,windowHeight:480}}},{key:"shareWindow",value:function(){var e=document.querySelectorAll('[data-social="digg"]');return this.createEvents(e)}}]),r}(d),A=function(t){function r(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:document.location.href,n=1<arguments.length&&void 0!==arguments[1]?arguments[1]:document.title;e(this,r);var i=a(this,o(r).call(this));return i.url=encodeURIComponent(t),i.title=encodeURIComponent(n),i.createEvents=i.createEvents.bind(s(i)),i}return i(r,t),n(r,[{key:"getPreparedData",value:function(e){var t=e.dataset.url?encodeURIComponent(e.dataset.url):this.url;return e=e.dataset.title?encodeURIComponent(e.dataset.title):this.title,t="http://www.liveinternet.ru/journal_post.php?action=n_add&cnurl=".concat(t,"&cntitle=").concat(e),{callback:this.callback,share_url:t,windowTitle:"Share this",windowWidth:640,windowHeight:480}}},{key:"shareWindow",value:function(){var e=document.querySelectorAll('[data-social="liveinternet"]');return this.createEvents(e)}}]),r}(d),R=function(t){function r(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:document.location.href,n=1<arguments.length&&void 0!==arguments[1]?arguments[1]:document.title,i=2<arguments.length&&void 0!==arguments[2]?arguments[2]:document.querySelector('meta[name="description"]');e(this,r);var l=a(this,o(r).call(this));return l.url=encodeURIComponent(t),l.title=encodeURIComponent(n),l.description=i?encodeURIComponent(i.content):"",l.createEvents=l.createEvents.bind(s(l)),l}return i(r,t),n(r,[{key:"getPreparedData",value:function(e){var t=e.dataset.url?encodeURIComponent(e.dataset.url):this.url,n=e.dataset.title?encodeURIComponent(e.dataset.title):this.title;return e=e.dataset.description?encodeURIComponent(e.dataset.description):this.description,t="https://surfingbird.ru/share?url=".concat(t,"&title=").concat(n,"&description=").concat(e),{callback:this.callback,share_url:t,windowTitle:"Share this",windowWidth:640,windowHeight:480}}},{key:"shareWindow",value:function(){var e=document.querySelectorAll('[data-social="surfingbird"]');return this.createEvents(e)}}]),r}(d),N=function(t){function r(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:document.location.href;e(this,r);var n=a(this,o(r).call(this));return n.url=encodeURIComponent(t),n.createEvents=n.createEvents.bind(s(n)),n}return i(r,t),n(r,[{key:"getPreparedData",value:function(e){return e=e.dataset.url?encodeURIComponent(e.dataset.url):this.url,e="https://www.xing.com/spi/shares/new?url=".concat(e),{callback:this.callback,share_url:e,window
11Title:"Share this",windowWidth:640,windowHeight:480}}},{key:"shareWindow",value:function(){var e=document.querySelectorAll('[data-social="xing"]');return this.createEvents(e)}}]),r}(d),L=function(t){function r(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:document.location.href,n=1<arguments.length&&void 0!==arguments[1]?arguments[1]:document.title,i=2<arguments.length&&void 0!==arguments[2]?arguments[2]:document.querySelector('meta[name="description"]'),l=3<arguments.length&&void 0!==arguments[3]?arguments[3]:document.querySelector('link[rel="apple-touch-icon"]');e(this,r);var c=a(this,o(r).call(this));return c.url=encodeURIComponent(t),c.title=encodeURIComponent(n),c.description=i?encodeURIComponent(i.content):"",c.image=l?encodeURIComponent(l.href):"",c.createEvents=c.createEvents.bind(s(c)),c}return i(r,t),n(r,[{key:"getPreparedData",value:function(e){var t=e.dataset.url?encodeURIComponent(e.dataset.url):this.url,n=e.dataset.title?encodeURIComponent(e.dataset.title):this.title,i=e.dataset.description?encodeURIComponent(e.dataset.description):this.description;return e=e.dataset.image?encodeURIComponent(e.dataset.image):this.image,t="https://wordpress.com/wp-admin/press-this.php?u=".concat(t,"&t=").concat(n,"&s=").concat(i,"&i=").concat(e,"&v=2"),{callback:this.callback,share_url:t,windowTitle:"Share this",windowWidth:640,windowHeight:480}}},{key:"shareWindow",value:function(){var e=document.querySelectorAll('[data-social="wordpress"]');return this.createEvents(e)}}]),r}(d),M=function(t){function r(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:document.location.href,n=1<arguments.length&&void 0!==arguments[1]?arguments[1]:document.title,i=2<arguments.length&&void 0!==arguments[2]?arguments[2]:document.querySelector('meta[name="description"]');e(this,r);var l=a(this,o(r).call(this));return l.url=encodeURIComponent(t),l.title=encodeURIComponent(n),l.description=i?encodeURIComponent(i.content):"",l.createEvents=l.createEvents.bind(s(l)),l}return i(r,t),n(r,[{key:"getPreparedData",value:function(e){var t=e.dataset.url?encodeURIComponent(e.dataset.url):this.url,n=e.dataset.title?encodeURIComponent(e.dataset.title):this.title;return e=e.dataset.description?encodeURIComponent(e.dataset.description):this.description,t="https://cang.baidu.com/do/add?iu=".concat(t,"&it=").concat(n,"&dc=").concat(e,"&fr=ien"),{callback:this.callback,share_url:t,windowTitle:"Share this",windowWidth:640,windowHeight:480}}},{key:"shareWindow",value:function(){var e=document.querySelectorAll('[data-social="baidu"]');return this.createEvents(e)}}]),r}(d),O=function(t){function r(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:document.location.href,n=1<arguments.length&&void 0!==arguments[1]?arguments[1]:document.title;e(this,r);var i=a(this,o(r).call(this));return i.url=encodeURIComponent(t),i.title=encodeURIComponent(n),i.createEvents=i.createEvents.bind(s(i)),i}return i(r,t),n(r,[{key:"getPreparedData",value:function(e){var t=e.dataset.url?encodeURIComponent(e.dataset.url):this.url;return e=e.dataset.title?encodeURIComponent(e.dataset.title):this.title,t="http://share.renren.com/share/buttonshare.do?url=".concat(t,"&title=").concat(e),{callback:this.callback,share_url:t,windowTitle:"Share this",windowWidth:640,windowHeight:480}}},{key:"shareWindow",value:function(){var e=document.querySelectorAll('[data-social="renren"]');return this.createEvents(e)}}]),r}(d),j=function(t){function r(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:document.location.href,n=1<arguments.length&&void 0!==arguments[1]?arguments[1]:document.title;e(this,r);var i=a(this,o(r).call(this));return i.url=encodeURIComponent(t),i.title=encodeURIComponent(n),i.createEvents=i.createEvents.bind(s(i)),i}return i(r,t),n(r,[{key:"getPreparedData",value:function(e){var t=e.dataset.url?encodeURIComponent(e.dataset.url):this.url;return e=e.dataset.title?encodeURIComponent(e.dataset.title):this.title,t="https://service.weibo.com/share/share.php?url=".concat(t,"&title=").concat(e),{ 12callback:this.callback,share_url:t,windowTitle:"Share this",windowWidth:640,windowHeight:480}}},{key:"shareWindow",value:function(){var e=document.querySelectorAll('[data-social="weibo"]');return this.createEvents(e)}}]),r}(d),H=function(t){function r(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:document.location.href;e(this,r);var n=a(this,o(r).call(this));return n.url=encodeURIComponent(t),n.createEvents=n.createEvents.bind(s(n)),n}return i(r,t),n(r,[{key:"getPreparedData",value:function(e){return e=e.dataset.url?encodeURIComponent(e.dataset.url):this.url,e="sms:?&body=".concat(e),{callback:this.callback,share_url:e,windowTitle:"Share this",windowWidth:640,windowHeight:480}}},{key:"shareWindow",value:function(){var e=document.querySelectorAll('[data-social="sms"]');return this.createEvents(e)}}]),r}(d),F=function(t){function r(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:document.location.href;e(this,r);var n=a(this,o(r).call(this));return n.url=encodeURIComponent(t),n.createEvents=n.createEvents.bind(s(n)),n}return i(r,t),n(r,[{key:"getPreparedData",value:function(e){return e=e.dataset.url?encodeURIComponent(e.dataset.url):this.url,e="https://web.skype.com/share?".concat(e),{callback:this.callback,share_url:e,windowTitle:"Share this",windowWidth:640,windowHeight:480}}},{key:"shareWindow",value:function(){var e=document.querySelectorAll('[data-social="skype"]');return this.createEvents(e)}}]),r}(d),B=function(t){function r(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:document.location.href;e(this,r);var n=a(this,o(r).call(this));return n.url=encodeURIComponent(t),n.createEvents=n.createEvents.bind(s(n)),n}return i(r,t),n(r,[{key:"getPreparedData",value:function(e){var t=e.dataset.url?encodeURIComponent(e.dataset.url):this.url;e=e.dataset.rhash?e.dataset.rhash:null;var n="https://t.me/share/url?url=".concat(t);return null!==e&&(n="https://t.me/iv?url=".concat(t,"&rhash=").concat(e)),{callback:this.callback,share_url:n,windowTitle:"Share this",windowWidth:640,windowHeight:480}}},{key:"shareWindow",value:function(){var e=document.querySelectorAll('[data-social="telegram"]');return this.createEvents(e)}}]),r}(d),z=function(t){function r(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:document.location.href;e(this,r);var n=a(this,o(r).call(this));return n.url=encodeURIComponent(t),n.createEvents=n.createEvents.bind(s(n)),n}return i(r,t),n(r,[{key:"getPreparedData",value:function(e){return e=e.dataset.url?encodeURIComponent(e.dataset.url):this.url,e="viber://forward?text=".concat(e),{callback:this.callback,share_url:e,windowTitle:"Share this",windowWidth:640,windowHeight:480}}},{key:"shareWindow",value:function(){var e=document.querySelectorAll('[data-social="viber"]');return this.createEvents(e)}}]),r}(d),q=function(t){function r(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:document.location.href;e(this,r);var n=a(this,o(r).call(this));return n.url=encodeURIComponent(t),n.createEvents=n.createEvents.bind(s(n)),n}return i(r,t),n(r,[{key:"getPreparedData",value:function(e){return e=e.dataset.url?encodeURIComponent(e.dataset.url):this.url,e="https://wa.me/?text=".concat(e),{callback:this.callback,share_url:e,windowTitle:"Share this",windowWidth:640,windowHeight:480}}},{key:"shareWindow",value:function(){var e=document.querySelectorAll('[data-social="whatsapp"]');return this.createEvents(e)}}]),r}(d),U=function(t){function r(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:document.location.href;e(this,r);var n=a(this,o(r).call(this));return n.url=encodeURIComponent(t),n.createEvents=n.createEvents.bind(s(n)),n}return i(r,t),n(r,[{key:"getPreparedData",value:function(e){return e=e.dataset.url?encodeURIComponent(e.dataset.url):this.url,e="https://chart.apis.google.com/chart?cht=qr&chs=196x196&chld=Q%7C0&chl=".concat(e),{callback:this.callback,share_url:e,windowTitle:"Share this",windowWidth:640,windowHeight:480}}},{key:"shareWindow",value:function(){var e=document.querySelectorAll('[data-social="wechat"]');return this.createEvents(e)}}]),r}(d);d=function(t){function r(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:document.location.href;e(this,r);var n=a(this,o(r).call(this));return n.url=encodeURIComponent(t),n.createEvents=n.createEvents.bind(s(n)),n}return i(r,t),n(r,[{key:"getPreparedData",value:function(e){return e=e.dataset.url?encodeURIComponent(e.dataset.url):this.url,e="line://msg/text/".concat(e),{callback:this.callback,share_url:e,windowTitle:"Share this",windowWidth:640,windowHeight:480}}},{key:"shareWindow",value:function(){var e=document.querySelectorAll('[data-social="line"]');return this.createEvents(e)}}]),r}(d);var W=[h,p,f,m,C,g,v,y,b,w,k,x,_,S,I,T,E,$,P,D,A,R,N,L,M,O,j,H,F,B,z,q,U,d];h=function(){function t(){e(this,t),this.providers=W,this.getProviders()}return n(t,[{key:"setShareCallback",value:function(e){this.providers=this.providers.map(function(t){return t.setShareCallback(e)})}},{key:"getProviders",value:function(){return this.providers=this.providers.map(function(e){return(new e).getInstance()})}},{key:"reNewAllInstance",value:function(){this.providers=this.providers.map(function(e){return e.reNewInstance()})}}]),t}(),window._goodshare=new h}();var Base64={_keyStr:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789
12+/=",encode:function(e){var t,n,i,o,r,s,a,l="",c=0;for(e=Base64._utf8_encode(e);c<e.length;)t=e.charCodeAt(c++),n=e.charCodeAt(c++),i=e.charCodeAt(c++),o=t>>2,r=(3&t)<<4|n>>4,s=(15&n)<<2|i>>6,a=63&i,isNaN(n)?s=a=64:isNaN(i)&&(a=64),l=l+this._keyStr.charAt(o)+this._keyStr.charAt(r)+this._keyStr.charAt(s)+this._keyStr.charAt(a);return l},decode:function(e){var t,n,i,o,r,s,a,l="",c=0;for(e=e.replace(/[^A-Za-z0-9\+\/\=]/g,"");c<e.length;)o=this._keyStr.indexOf(e.charAt(c++)),r=this._keyStr.indexOf(e.charAt(c++)),s=this._keyStr.indexOf(e.charAt(c++)),a=this._keyStr.indexOf(e.charAt(c++)),t=o<<2|r>>4,n=(15&r)<<4|s>>2,i=(3&s)<<6|a,l+=String.fromCharCode(t),64!=s&&(l+=String.fromCharCode(n)),64!=a&&(l+=String.fromCharCode(i));return l=Base64._utf8_decode(l)},_utf8_encode:function(e){e=e.replace(/\r\n/g,"\n");for(var t="",n=0;n<e.length;n++){var i=e.charCodeAt(n);i<128?t+=String.fromCharCode(i):i>127&&i<2048?(t+=String.fromCharCode(i>>6|192),t+=String.fromCharCode(63&i|128)):(t+=String.fromCharCode(i>>12|224),t+=String.fromCharCode(i>>6&63|128),t+=String.fromCharCode(63&i|128))}return t},_utf8_decode:function(e){for(var t="",n=0,i=0,o=0;n<e.length;)i=e.charCodeAt(n),i<128?(t+=String.fromCharCode(i),n++):i>191&&i<224?(o=e.charCodeAt(n+1),t+=String.fromCharCode((31&i)<<6|63&o),n+=2):(o=e.charCodeAt(n+1),c3=e.charCodeAt(n+2),t+=String.fromCharCode((15&i)<<12|(63&o)<<6|63&c3),n+=3);return t}};!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(require("jquery")):"function"==typeof define&&define.amd?define(["jquery"],t):(e=e||self,t(e.jQuery))}(this,function(e){function t(e){var t="Comic Sans MS"===e?"Courier New":"Comic Sans MS",n=document.createElement("canvas"),i=n.getContext("2d");i.font="200px '"+t+"'";var o=i.measureText("mmmmmmmmmmwwwww").width;return i.font="200px '"+e+"', '"+t+"'",o!==i.measureText("mmmmmmmmmmwwwww").width}function n(e){return function(t){return e===t}}function i(e,t){return e===t}function o(e){return function(t,n){return t[e]===n[e]}}function r(){return!0}function s(){return!1}function a(e){return function(){return!e.apply(e,arguments)}}function l(e,t){return function(n){return e(n)&&t(n)}}function c(e){return e}function u(e,t){return function(){return e[t].apply(e,arguments)}}function d(e){var t=++Mt+"";return e?e+t:t}function h(e){var t=$(document);return{top:e.top+t.scrollTop(),left:e.left+t.scrollLeft(),width:e.right-e.left,height:e.bottom-e.top}}function p(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[e[n]]=n);return t}function f(e,t){return(t=t||"")+e.split(".").map(function(e){return e.substring(0,1).toUpperCase()+e.substring(1)}).join("")}function m(e,t,n){var i;return function(){var o=this,r=arguments,s=function(){i=null,n||e.apply(o,r)},a=n&&!i;clearTimeout(i),i=setTimeout(s,t),a&&e.apply(o,r)}}function g(e){return/[-a-zA-Z0-9@:%._\+~#=]{2,256}\.[a-z]{2,6}\b([-a-zA-Z0-9@:%_\+.~#?&//=]*)/gi.test(e)}function v(e){return e[0]}function y(e){return e[e.length-1]}function b(e){return e.slice(0,e.length-1)}function w(e){return e.slice(1)}function k(e,t){for(var n=0,i=e.length;n<i;n++){var o=e[n];if(t(o))return o}}function C(e,t){for(var n=0,i=e.length;n<i;n++)if(!t(e[n]))return!1;return!0}function x(e,t){return!!(e&&e.length&&t)&&-1!==e.indexOf(t)}function _(e,t){return t=t||Ot.self,e.reduce(function(e,n){return e+t(n)},0)}function S(e){for(var t=[],n=e.length,i=-1;++i<n;)t[i]=e[i];return t}function T(e){return!e||!e.length}function E(e,t){return e.length?w(e).reduce(function(e,n){var i=y(e);return t(y(i),n)?i[i.length]=n:e[e.length]=[n],e},[[v(e)]]):[]}function I(e){for(var t=[],n=0,i=e.length;n<i;n++)e[n]&&t.push(e[n]);return t}function P(e){for(var t=[],n=0,i=e.length;n<i;n++)x(t,e[n])||t.push(e[n]);return t}function D(e,t){if(e&&e.length&&t){var n=e.indexOf(t);return-1===n?null:e[n+1]}return null}function A(e,t){if(e&&e.length&&t){var n=e.indexOf(t);return-1===n?null:e[n-1]}return null}function R(t){return t&&e(t).hasClass("note-editable")}function N(t){return t&&e(t).hasClass("note-control-sizing")}function L(e){return e=e.toUpperCase(),function(t){return t&&t.nodeName.toUpperCase()===e}}
12function M(e){return e&&3===e.nodeType}function O(e){return e&&1===e.nodeType}function j(e){return e&&/^BR|^IMG|^HR|^IFRAME|^BUTTON|^INPUT|^AUDIO|^VIDEO|^EMBED/.test(e.nodeName.toUpperCase())}function H(e){return!R(e)&&(e&&/^DIV|^P|^LI|^H[1-7]/.test(e.nodeName.toUpperCase()))}function F(e){return e&&/^H[1-7]/.test(e.nodeName.toUpperCase())}function B(e){return H(e)&&!Bt(e)}function z(e){return!(W(e)||q(e)||Ut(e)||H(e)||zt(e)||Wt(e)||qt(e))}function q(e){return e&&/^UL|^OL/.test(e.nodeName.toUpperCase())}function U(e){return e&&/^TD|^TH/.test(e.nodeName.toUpperCase())}function W(e){return U(e)||Wt(e)||R(e)}function V(e){return z(e)&&!!J(e,H)}function K(e){return z(e)&&!J(e,H)}function G(e,t){return e.nextSibling===t||e.previousSibling===t}function Y(e,t){t=t||Ot.ok;var n=[];return e.previousSibling&&t(e.previousSibling)&&n.push(e.previousSibling),n.push(e),e.nextSibling&&t(e.nextSibling)&&n.push(e.nextSibling),n}function Q(e){return M(e)?e.nodeValue.length:e?e.childNodes.length:0}function X(e){var t=Q(e);return 0===t||(!M(e)&&1===t&&e.innerHTML===Gt||!(!jt.all(e.childNodes,M)||""!==e.innerHTML))}function Z(e){j(e)||Q(e)||(e.innerHTML=Gt)}function J(e,t){for(;e;){if(t(e))return e;if(R(e))break;e=e.parentNode}return null}function ee(e,t){for(e=e.parentNode;e&&1===Q(e);){if(t(e))return e;if(R(e))break;e=e.parentNode}return null}function te(e,t){t=t||Ot.fail;var n=[];return J(e,function(e){return R(e)||n.push(e),t(e)}),n}function ne(e,t){var n=te(e);return jt.last(n.filter(t))}function ie(e,t){for(var n=te(e),i=t;i;i=i.parentNode)if(n.indexOf(i)>-1)return i;return null}function oe(e,t){t=t||Ot.fail;for(var n=[];e&&!t(e);)n.push(e),e=e.previousSibling;return n}function re(e,t){t=t||Ot.fail;for(var n=[];e&&!t(e);)n.push(e),e=e.nextSibling;return n}function se(e,t){var n=[];return t=t||Ot.ok,function i(o){e!==o&&t(o)&&n.push(o);for(var r=0,s=o.childNodes.length;r<s;r++)i(o.childNodes[r])}(e),n}function ae(t,n){var i=t.parentNode,o=e("<"+n+">")[0];return i.insertBefore(o,t),o.appendChild(t),o}function le(e,t){var n=t.nextSibling,i=t.parentNode;return n?i.insertBefore(e,n):i.appendChild(e),e}function ce(t,n){return e.each(n,function(e,n){t.appendChild(n)}),t}function ue(e){return 0===e.offset}function de(e){return e.offset===Q(e.node)}function he(e){return ue(e)||de(e)}function pe(e,t){for(;e&&e!==t;){if(0!==ve(e))return!1;e=e.parentNode}return!0}function fe(e,t){if(!t)return!1;for(;e&&e!==t;){if(ve(e)!==Q(e.parentNode)-1)return!1;e=e.parentNode}return!0}function me(e,t){return ue(e)&&pe(e.node,t)}function ge(e,t){return de(e)&&fe(e.node,t)}function ve(e){for(var t=0;e=e.previousSibling;)t+=1;return t}function ye(e){return!!(e&&e.childNodes&&e.childNodes.length)}function be(e,t){var n,i;if(0===e.offset){if(R(e.node))return null;n=e.node.parentNode,i=ve(e.node)}else ye(e.node)?(n=e.node.childNodes[e.offset-1],i=Q(n)):(n=e.node,i=t?0:e.offset-1);return{node:n,offset:i}}function we(e,t){var n,i;if(Q(e.node)===e.offset){if(R(e.node))return null;n=e.node.parentNode,i=ve(e.node)+1}else ye(e.node)?(n=e.node.childNodes[e.offset],i=0):(n=e.node,i=t?Q(e.node):e.offset+1);return{node:n,offset:i}}function ke(e,t){return e.node===t.node&&e.offset===t.offset}function Ce(e){if(M(e.node)||!ye(e.node)||X(e.node))return!0;var t=e.node.childNodes[e.offset-1],n=e.node.childNodes[e.offset];return!(t&&!j(t)||n&&!j(n))}function xe(e,t){for(;e;){if(t(e))return e;e=be(e)}return null}function _e(e,t){for(;e;){if(t(e))return e;e=we(e)}return null}function Se(e){if(!M(e.node))return!1;var t=e.node.nodeValue.charAt(e.offset-1);return t&&" "!==t&&t!==Ht}function Te(e,t,n,i){for(var o=e;o&&(n(o),!ke(o,t));){o=we(o,i&&e.node!==o.node&&t.node!==o.node)}}function Ee(e,t){return te(t,Ot.eq(e)).map(ve).reverse()}function $e(e,t){for(var n=e,i=0,o=t.length;i<o;i++)n=n.childNodes.length<=t[i]?n.childNodes[n.childNodes.length-1]:n.childNodes[t[i]];return n}function Ie(e,t){var n=t&&t.isSkipPaddingBlankHTML,i=t&&t.isNotSplitEdgePoint,o=t&&t.isDiscardEmptySplits;if(o&&(n=!0),he(e)&&(M(e.node)||i)){if(ue(e))return e.node;if(de(e))return e.node.nextSibling}
12if(M(e.node))return e.node.splitText(e.offset);var r=e.node.childNodes[e.offset],s=le(e.node.cloneNode(!1),e.node);return ce(s,re(r)),n||(Z(e.node),Z(s)),o&&(X(e.node)&&Ne(e.node),X(s))?(Ne(s),e.node.nextSibling):s}function Pe(e,t,n){var i=te(t.node,Ot.eq(e));return i.length?1===i.length?Ie(t,n):i.reduce(function(e,i){return e===t.node&&(e=Ie(t,n)),Ie({node:i,offset:e?ve(e):Q(i)},n)}):null}function De(e,t){var n,i,o=t?H:W,r=te(e.node,o),s=jt.last(r)||e.node;o(s)?(n=r[r.length-2],i=s):(n=s,i=n.parentNode);var a=n&&Pe(n,e,{isSkipPaddingBlankHTML:t,isNotSplitEdgePoint:t});return a||i!==e.node||(a=e.node.childNodes[e.offset]),{rightNode:a,container:i}}function Ae(e){return document.createElement(e)}function Re(e){return document.createTextNode(e)}function Ne(e,t){if(e&&e.parentNode){if(e.removeNode)return e.removeNode(t);var n=e.parentNode;if(!t){for(var i=[],o=0,r=e.childNodes.length;o<r;o++)i.push(e.childNodes[o]);for(var o=0,r=i.length;o<r;o++)n.insertBefore(i[o],e)}n.removeChild(e)}}function Le(e,t){for(;e&&!R(e)&&t(e);){var n=e.parentNode;Ne(e),e=n}}function Me(e,t){if(e.nodeName.toUpperCase()===t.toUpperCase())return e;var n=Ae(t);return e.style.cssText&&(n.style.cssText=e.style.cssText),ce(n,jt.from(e.childNodes)),le(n,e),Ne(e),n}function Oe(e,t){var n=Yt(e[0])?e.val():e.html();return t?n.replace(/[\n\r]/g,""):n}function je(e,t){var n=Oe(e);if(t){var i=/<(\/?)(\b(?!!)[^>\s]*)(.*?)(\s*\/?>)/g;n=n.replace(i,function(e,t,n){n=n.toUpperCase();var i=/^DIV|^TD|^TH|^P|^LI|^H[1-7]/.test(n)&&!!t,o=/^BLOCKQUOTE|^TABLE|^TBODY|^TR|^HR|^UL|^OL/.test(n);return e+(i||o?"\n":"")}),n=n.trim()}return n}function He(t){var n=e(t),i=n.offset(),o=n.outerHeight(!0);return{left:i.left,top:i.top+o}}function Fe(e,t){Object.keys(t).forEach(function(n){e.on(n,t[n])})}function Be(e,t){Object.keys(t).forEach(function(n){e.off(n,t[n])})}function ze(e){return e&&!M(e)&&jt.contains(e.classList,"note-styletag")}function qe(e,t){var n,i,o=e.parentElement(),r=document.body.createTextRange(),s=jt.from(o.childNodes);for(n=0;n<s.length;n++)if(!Qt.isText(s[n])){if(r.moveToElementText(s[n]),r.compareEndPoints("StartToStart",e)>=0)break;i=s[n]}if(0!==n&&Qt.isText(s[n-1])){var a=document.body.createTextRange(),l=null;a.moveToElementText(i||o),a.collapse(!i),l=i?i.nextSibling:o.firstChild;var c=e.duplicate();c.setEndPoint("StartToStart",a);for(var u=c.text.replace(/[\r\n]/g,"").length;u>l.nodeValue.length&&l.nextSibling;)u-=l.nodeValue.length,l=l.nextSibling;l.nodeValue;t&&l.nextSibling&&Qt.isText(l.nextSibling)&&u===l.nodeValue.length&&(u-=l.nodeValue.length,l=l.nextSibling),o=l,n=u}return{cont:o,offset:n}}function Ue(e){var t=function(e,n){var i,o;if(Qt.isText(e)){var r=Qt.listPrev(e,Ot.not(Qt.isText)),s=jt.last(r).previousSibling;i=s||e.parentNode,n+=jt.sum(jt.tail(r),Qt.nodeLength),o=!s}else{if(i=e.childNodes[n]||e,Qt.isText(i))return t(i,0);n=0,o=!1}return{node:i,collapseToStart:o,offset:n}},n=document.body.createTextRange(),i=t(e.node,e.offset);return n.moveToElementText(i.node),n.collapse(i.collapseToStart),n.moveStart("character",i.offset),n}function We(t){return e.Deferred(function(n){e.extend(new FileReader,{onload:function(e){var t=e.target.result;n.resolve(t)},onerror:function(e){n.reject(e)}}).readAsDataURL(t)}).promise()}function Ve(t){return e.Deferred(function(n){var i=e("<img>");i.one("load",function(){i.off("error abort"),n.resolve(i)}).one("error abort",function(){i.off("load").detach(),n.reject(i)}).css({display:"none"}).appendTo(document.body).attr("src",t)}).promise()}e=e&&e.hasOwnProperty("default")?e.default:e;var Ke=function(){function t(e,t,n,i){this.markup=e,this.children=t,this.options=n,this.callback=i}return t.prototype.render=function(t){var n=e(this.markup);if(this.options&&this.options.contents&&n.html(this.options.contents),this.options&&this.options.className&&n.addClass(this.options.className),this.options&&this.options.data&&e.each(this.options.data,function(e,t){n.attr("data-"+e,t)}),this.options&&this.options.click&&n.on("click",this.options.click),this.children){var i=n.find(".note-children-container");
12this.children.forEach(function(e){e.render(i.length?i:n)})}return this.callback&&this.callback(n,this.options),this.options&&this.options.callback&&this.options.callback(n),t&&t.append(n),n},t}(),Ge={create:function(e,t){return function(){var n="object"==typeof arguments[1]?arguments[1]:arguments[0],i=Array.isArray(arguments[0])?arguments[0]:[];return n&&n.children&&(i=n.children),new Ke(e,i,n,t)}}},Ye=function(){function e(e,t){if(this.$node=e,this.options=$.extend({},{title:"",target:t.container,trigger:"hover focus",placement:"bottom"},t),this.$tooltip=$(['<div class="note-tooltip in">',' <div class="note-tooltip-arrow"/>',' <div class="note-tooltip-content"/>',"</div>"].join("")),"manual"!==this.options.trigger){var n=this.show.bind(this),i=this.hide.bind(this),o=this.toggle.bind(this);this.options.trigger.split(" ").forEach(function(t){"hover"===t?(e.off("mouseenter mouseleave"),e.on("mouseenter",n).on("mouseleave",i)):"click"===t?e.on("click",o):"focus"===t&&e.on("focus",n).on("blur",i)})}}return e.prototype.show=function(){var e=this.$node,t=e.offset(),n=this.$tooltip,i=this.options.title||e.attr("title")||e.data("title"),o=this.options.placement||e.data("placement");n.addClass(o),n.addClass("in"),n.find(".note-tooltip-content").text(i),n.appendTo(this.options.target);var r=e.outerWidth(),s=e.outerHeight(),a=n.outerWidth(),l=n.outerHeight();"bottom"===o?n.css({top:t.top+s,left:t.left+(r/2-a/2)}):"top"===o?n.css({top:t.top-l,left:t.left+(r/2-a/2)}):"left"===o?n.css({top:t.top+(s/2-l/2),left:t.left-a}):"right"===o&&n.css({top:t.top+(s/2-l/2),left:t.left+r})},e.prototype.hide=function(){this.$tooltip.removeClass("in"),this.$tooltip.remove()},e.prototype.toggle=function(){this.$tooltip.hasClass("in")?this.hide():this.show()},e}(),Qe=function(){function e(e,t){this.$button=e,this.options=$.extend({},{target:t.container},t),this.setEvent()}return e.prototype.setEvent=function(){var e=this;this.$button.on("click",function(t){e.toggle(),t.stopImmediatePropagation()})}
12,e.prototype.clear=function(){var e=$(".note-btn-group.open");e.find(".note-btn.active").removeClass("active"),e.removeClass("open")},e.prototype.show=function(){this.$button.addClass("active"),this.$button.parent().addClass("open");var e=this.$button.next(),t=e.offset(),n=e.outerWidth(),i=$(window).width(),o=parseFloat($(this.options.target).css("margin-right"));t.left+n>i-o?e.css("margin-left",i-o-(t.left+n)):e.css("margin-left","")},e.prototype.hide=function(){this.$button.removeClass("active"),this.$button.parent().removeClass("open")},e.prototype.toggle=function(){var e=this.$button.parent().hasClass("open");this.clear(),e?this.hide():this.show()},e}();$(document).on("click",function(e){$(e.target).closest(".note-btn-group").length||$(".note-btn-group.open").removeClass("open")}),$(document).on("click.note-dropdown-menu",function(e){$(e.target).closest(".note-dropdown-menu").parent().removeClass("open")});var Xe=function(){function e(e,t){this.options=$.extend({},{target:t.container||"body"},t),this.$modal=e,this.$backdrop=$('<div class="note-modal-backdrop" />')}return e.prototype.show=function(){"body"===this.options.target?(this.$backdrop.css("position","fixed"),this.$modal.css("position","fixed")):(this.$backdrop.css("position","absolute"),this.$modal.css("position","absolute")),this.$backdrop.appendTo(this.options.target).show(),this.$modal.appendTo(this.options.target).addClass("open").show(),this.$modal.trigger("note.modal.show"),this.$modal.off("click",".close").on("click",".close",this.hide.bind(this))},e.prototype.hide=function(){this.$modal.removeClass("open").hide(),this.$backdrop.hide(),this.$modal.trigger("note.modal.hide")},e}(),Ze=Ge.create('<div class="note-editor note-frame"/>'),Je=Ge.create('<div class="note-toolbar" role="toolbar"/>'),et=Ge.create('<div class="note-editing-area"/>'),tt=Ge.create('<textarea class="note-codable" role="textbox" aria-multiline="true"/>'),nt=Ge.create('<div class="note-editable" contentEditable="true" role="textbox" aria-multiline="true"/>'),it=Ge.create(['<output class="note-status-output" role="status" aria-live="polite"/>','<div class="note-statusbar" role="resize">',' <div class="note-resizebar" role="seperator" aria-orientation="horizontal" aria-label="resize">',' <div class="note-icon-bar"/>',' <div class="note-icon-bar"/>',' <div class="note-icon-bar"/>'," </div>","</div>"].join("")),ot=Ge.create('<div class="note-editor"/>'),rt=Ge.create(['<div class="note-editable" contentEditable="true" role="textbox" aria-multiline="true"/>','<output class="note-status-output" role="status" aria-live="polite"/>'].join("")),st=Ge.create('<div class="note-btn-group">'),at=Ge.create('<button type="button" class="note-btn" role="button" tabindex="-1">',function(e,t){t&&t.tooltip&&(e.attr({"aria-label":t.tooltip}),e.data("_lite_tooltip",new Ye(e,{title:t.tooltip,container:t.container})).on("click",function(e){$(e.currentTarget).data("_lite_tooltip").hide()})),t.contents&&e.html(t.contents),t&&t.data&&"dropdown"===t.data.toggle&&e.data("_lite_dropdown",new Qe(e,{container:t.container}))}),lt=Ge.create('<div class="note-dropdown-menu" role="list">',function(e,t){var n=Array.isArray(t.items)?t.items.map(function(e){var n="string"==typeof e?e:e.value||"",i=t.template?t.template(e):e,o=$('<a class="note-dropdown-item" href="#" data-value="'+n+'" role="listitem" aria-label="'+n+'"></a>');return o.html(i).data("item",e),o}):t.items;e.html(n).attr({"aria-label":t.title}),e.on("click","> .note-dropdown-item",function(e){var n=$(this),i=n.data("item"),o=n.data("value");i.click?i.click(n):t.itemClick&&t.itemClick(e,i,o)})}),ct=Ge.create('<div class="note-dropdown-menu note-check" role="list">',function(e,t){var n=Array.isArray(t.items)?t.items.map(function(e){var n="string"==typeof e?e:e.value||"",i=t.template?t.template(e):e,o=$('<a class="note-dropdown-item" href="#" data-value="'+n+'" role="listitem" aria-label="'+e+'"></a>');return o.html([_t(t.checkClassName)," ",i]).data("item",e),o}):t.items;e.html(n).attr({"aria-label":t.title}),e.on("click","> .note-dropdown-item",function(e){var n=$(this),i=n.data("item"),o=n.data("value");i.click?i.click(n):t.itemClick&&t.itemClick(e,i,o)})}),ut=function(e,t){return e+" "+_t(t.icons.caret,"span")},dt=function(e,t){return st([at({className:"dropdown-toggle",contents:e.title+" "+_t("note-icon-caret"),tooltip:e.tooltip,data:{toggle:"dropdown"}}),lt({className:e.className,items:e.items,template:e.template,itemClick:e.itemClick})],{callback:t}).render()},ht=function(e,t){return st([at({className:"dropdown-toggle",contents:e.title+" "+_t("note-icon-caret"),tooltip:e.tooltip,data:{toggle:"dropdown"}}),ct({className:e.className,checkClassName:e.checkClassName,items:e.items,template:e.template,itemClick:e.itemClick})],{callback:t}).render()},pt=function(e){return st([at({className:"dropdown-toggle",contents:e.title+" "+_t("note-icon-caret"),tooltip:e.tooltip,data:{toggle:"dropdown"}}),lt([st({className:"note-align",children:e.items[0]}),st({className:"note-list",children:e.items[1]})])]).render()}
12,ft=function(e,t,n){var i,o=$(e.target.parentNode),r=o.next(),s=o.find(".note-dimension-picker-mousecatcher"),a=o.find(".note-dimension-picker-highlighted"),l=o.find(".note-dimension-picker-unhighlighted");if(void 0===e.offsetX){var c=$(e.target).offset();i={x:e.pageX-c.left,y:e.pageY-c.top}}else i={x:e.offsetX,y:e.offsetY};var u={c:Math.ceil(i.x/18)||1,r:Math.ceil(i.y/18)||1};a.css({width:u.c+"em",height:u.r+"em"}),s.data("value",u.c+"x"+u.r),u.c>3&&u.c<t&&l.css({width:u.c+1+"em"}),u.r>3&&u.r<n&&l.css({height:u.r+1+"em"}),r.html(u.c+" x "+u.r)},mt=function(e){return st([at({className:"dropdown-toggle",contents:e.title+" "+_t("note-icon-caret"),tooltip:e.tooltip,data:{toggle:"dropdown"}}),lt({className:"note-table",items:['<div class="note-dimension-picker">',' <div class="note-dimension-picker-mousecatcher" data-event="insertTable" data-value="1x1"/>',' <div class="note-dimension-picker-highlighted"/>',' <div class="note-dimension-picker-unhighlighted"/>',"</div>",'<div class="note-dimension-display">1 x 1</div>'].join("")})],{callback:function(t){t.find(".note-dimension-picker-mousecatcher").css({width:e.col+"em",height:e.row+"em"}).mousedown(e.itemClick).mousemove(function(t){ft(t,e.col,e.row)})}}).render()},gt=Ge.create('<div class="note-color-palette"/>',function(e,t){for(var n=[],i=0,o=t.colors.length;i<o;i++){for(var r=t.eventName,s=t.colors[i],a=t.colorsName[i],l=[],c=0,u=s.length;c<u;c++){var d=s[c],h=a[c];l.push(['<button type="button" class="note-btn note-color-btn"','style="background-color:',d,'" ','data-event="',r,'" ','data-value="',d,'" ','title="',h,'" ','aria-label="',h,'" ','data-toggle="button" tabindex="-1"></button>'].join(""))}n.push('<div class="note-color-row">'+l.join("")+"</div>")}e.html(n.join("")),e.find(".note-color-btn").each(function(){$(this).data("_lite_tooltip",new Ye($(this),{container:t.container}))})}),vt=function(e,t){return st({className:"note-color",children:[at({className:"note-current-color-button",contents:e.title,tooltip:e.lang.color.recent,click:e.currentClick,callback:function(e){var n=e.find(".note-recent-color");"foreColor"!==t&&(n.css("background-color","#FFFF00"),e.attr("data-backColor","#FFFF00"))}}),at({className:"dropdown-toggle",contents:_t("note-icon-caret"),tooltip:e.lang.color.more,data:{toggle:"dropdown"}}),lt({items:["<div>",'<div class="note-btn-group btn-background-color">',' <div class="note-palette-title">'+e.lang.color.background+"</div>"," <div>",'<button type="button" class="note-color-reset note-btn note-btn-block" data-event="backColor" data-value="inherit">',e.lang.color.transparent," </button>"," </div>",' <div class="note-holder" data-event="backColor"/>',' <div class="btn-sm">',' <input type="color" id="html5bcp" class="note-btn btn-default" value="#21104A" style="width:100%;" data-value="cp">',' <button type="button" class="note-color-reset btn" data-event="backColor" data-value="cpbackColor">',e.lang.color.cpSelect," </button>"," </div>","</div>",'<div class="note-btn-group btn-foreground-color">',' <div class="note-palette-title">'+e.lang.color.foreground+"</div>"," <div>",'<button type="button" class="note-color-reset note-btn note-btn-block" data-event="removeFormat" data-value="foreColor">',e.lang.color.resetToDefault," </button>"," </div>",' <div class="note-holder" data-event="foreColor"/>',' <div class="btn-sm">',' <input type="color" id="html5fcp" class="note-btn btn-default" value="#21104A" style="width:100%;" data-value="cp">',' <button type="button" class="note-color-reset btn" data-event="foreColor" data-value="cpforeColor">',e.lang.color.cpSelect," </button>"," </div>","</div>","</div>"].join(""),callback:function(n){n.find(".note-holder").each(function(){var t=$(this);t.append(gt({colors:e.colors,eventName:t.data("event")}).render())}),"fore"===t?(n.find(".btn-background-color").hide(),n.css({"min-width":"210px"})):"back"===t&&(n.find(".btn-foreground-color").hide(),n.css({"min-width":"210px"}))},click:function(n){var i=$(n.target),o=i.data("event"),r=i.data("value"),s=document.getElementById("html5fcp").value,a=document.getElementById("html5bcp").value;if("cp"===r?n.stopPropagation():"cpbackColor"===r?r=a:"cpforeColor"===r&&(r=s),o&&r){var l="backColor"===o?"background-color":"color",c=i.closest(".
12note-color").find(".note-recent-color"),u=i.closest(".note-color").find(".note-current-color-button");c.css(l,r),u.attr("data-"+o,r),"fore"===t?e.itemClick("foreColor",r):"back"===t?e.itemClick("backColor",r):e.itemClick(o,r)}}})]}).render()},yt=Ge.create('<div class="note-modal" aria-hidden="false" tabindex="-1" role="dialog"/>',function(e,t){t.fade&&e.addClass("fade"),e.attr({"aria-label":t.title}),e.html([' <div class="note-modal-content">',t.title?' <div class="note-modal-header"> <button type="button" class="close" aria-label="Close" aria-hidden="true"><i class="note-icon-close"></i></button> <h4 class="note-modal-title">'+t.title+"</h4> </div>":"",' <div class="note-modal-body">'+t.body+"</div>",t.footer?' <div class="note-modal-footer">'+t.footer+"</div>":""," </div>"].join("")),e.data("modal",new Xe(e,t))}),bt=function(e){var t='<div class="note-form-group"><label class="note-form-label">'+e.lang.video.url+' <small class="text-muted">'+e.lang.video.providers+'</small></label><input class="note-video-url note-input" type="text" /></div>',n=['<button type="button" href="#" class="note-btn note-btn-primary note-video-btn disabled" disabled>',e.lang.video.insert,"</button>"].join("");return yt({title:e.lang.video.insert,fade:e.fade,body:t,footer:n}).render()},wt=function(e){var t='<div class="note-form-group note-group-select-from-files"><label class="note-form-label">'+e.lang.image.selectFromFiles+'</label><input class="note-note-image-input note-input" type="file" name="files" accept="image/*" multiple="multiple" />'+e.imageLimitation+'</div><div class="note-form-group" style="overflow:auto;"><label class="note-form-label">'+e.lang.image.url+'</label><input class="note-image-url note-input" type="text" /></div>',n=['<button href="#" type="button" class="note-btn note-btn-primary note-btn-large note-image-btn disabled" disabled>',e.lang.image.insert,"</button>"].join("");return yt({title:e.lang.image.insert,fade:e.fade,body:t,footer:n}).render()},kt=function(e){var t='<div class="note-form-group"><label class="note-form-label">'+e.lang.link.textToDisplay+'</label><input class="note-link-text note-input" type="text" /></div><div class="note-form-group"><label class="note-form-label">'+e.lang.link.url+'</label><input class="note-link-url note-input" type="text" value="http://" /></div>'+(e.disableLinkTarget?"":'<div class="checkbox"><label><input type="checkbox" checked> '+e.lang.link.openInNewWindow+"</label></div>"),n=['<button href="#" type="button" class="note-btn note-btn-primary note-link-btn disabled" disabled>',e.lang.link.insert,"</button>"].join("");return yt({className:"link-dialog",title:e.lang.link.insert,fade:e.fade,body:t,footer:n}).render()},Ct=Ge.create(['<div class="note-popover bottom">',' <div class="note-popover-arrow"/>',' <div class="popover-content note-children-container"/>',"</div>"].join(""),function(e,t){var n=void 0!==t.direction?t.direction:"bottom";e.addClass(n).hide(), 13t.hideArrow&&e.find(".note-popover-arrow").hide()}),xt=Ge.create('<div class="checkbox"></div>',function(e,t){e.html(["<label"+(t.id?' for="'+t.id+'"':"")+">",' <input role="checkbox" type="checkbox"'+(t.id?' id="'+t.id+'"':""),t.checked?" checked":"",' aria-checked="'+(t.checked?"true":"false")+'"/>',t.text?t.text:"","</label>"].join(""))}),_t=function(e,t){return"<"+(t=t||"i")+' class="'+e+'"/>'},St={editor:Ze,toolbar:Je,editingArea:et,codable:tt,editable:nt,statusbar:it,airEditor:ot,airEditable:rt,buttonGroup:st,button:at,dropdown:lt,dropdownCheck:ct,dropdownButton:dt,dropdownButtonContents:ut,dropdownCheckButton:ht,paragraphDropdownButton:pt,tableDropdownButton:mt,colorDropdownButton:vt,palette:gt,dialog:yt,videoDialog:bt,imageDialog:wt,linkDialog:kt,popover:Ct,checkbox:xt,icon:_t,toggleBtn:function(e,t){e.toggleClass("disabled",!t),e.attr("disabled",!t)},toggleBtnActive:function(e,t){e.toggleClass("active",t)},check:function(e,t){e.find(".checked").removeClass("checked"),e.find('[data-value="'+t+'"]').addClass("checked")},onDialogShown:function(e,t){e.one("note.modal.show",t)},onDialogHidden:function(e,t){e.one("note.modal.hide",t)},showDialog:function(e){e.data("modal").show()},hideDialog:function(e){e.data("modal").hide()},getPopoverContent:function(e){return e.find(".note-popover-content")},getDialogBody:function(e){return e.find(".note-modal-body")},createLayout:function(e,t){var n=(t.airMode?St.airEditor([St.editingArea([St.airEditable()])]):St.editor([St.toolbar(),St.editingArea([St.codable(),St.editable()]),St.statusbar()])).render();return n.insertAfter(e),{note:e,editor:n,toolbar:n.find(".note-toolbar"),editingArea:n.find(".note-editing-area"),editable:n.find(".note-editable"),codable:n.find(".note-codable"),statusbar:n.find(".note-statusbar")}},removeLayout:function(e,t){e.html(t.editable.html()),t.editor.remove(),e.off("summernote"),e.show()}};e.summernote=e.summernote||{lang:{}},e.extend(e.summernote.lang,{"en-US":{font:{bold:"Bold",italic:"Italic",underline:"Underline",clear:"Remove Font Style",height:"Line Height",name:"Font Family",strikethrough:"Strikethrough",subscript:"Subscript",superscript:"Superscript",size:"Font Size"},image:{image:"Picture",insert:"Insert Image",resizeFull:"Resize full",resizeHalf:"Resize half",resizeQuarter:"Resize quarter",resizeNone:"Original size",floatLeft:"Float Left",floatRight:"Float Right",floatNone:"Remove float",shapeRounded:"Shape: Rounded",shapeCircle:"Shape: Circle",shapeThumbnail:"Shape: Thumbnail",shapeNone:"Shape: None",dragImageHere:"Drag image or text here",dropImage:"Drop image or Text",selectFromFiles:"Select from files",maximumFileSize:"Maximum file size",maximumFileSizeError:"Maximum file size exceeded.",url:"Image URL",remove:"Remove Image",original:"Original"},video:{video:"Video",videoLink:"Video Link",insert:"Insert Video",url:"Video URL",providers:"(YouTube, Vimeo, Vine, Instagram, DailyMotion or Youku)"},link:{link:"Link",insert:"Insert Link",unlink:"Unlink",edit:"Edit",textToDisplay:"Text to display",url:"To what URL should this link go?",openInNewWindow:"Open in new window"},table:{table:"Table",addRowAbove:"Add row above",addRowBelow:"Add row below",addColLeft:"Add column left",addColRight:"Add column right",delRow:"Delete row",delCol:"Delete column",delTable:"Delete table"},hr:{insert:"Insert Horizontal Rule"},style:{style:"Style",p:"Normal",blockquote:"Quote",pre:"Code",h1:"Header 1",h2:"Header 2",h3:"Header 3",h4:"Header 4",h5:"Header 5",h6:"Header 6"},lists:{unordered:"Unordered list",ordered:"Ordered list"},options:{help:"Help",fullscreen:"Full Screen",codeview:"Code View"},paragraph:{paragraph:"Paragraph",outdent:"Outdent",indent:"Indent",left:"Align left",center:"Align center",right:"Align right",justify:"Justify full"}
13,color:{recent:"Recent Color",more:"More Color",background:"Background Color",foreground:"Foreground Color",transparent:"Transparent",setTransparent:"Set transparent",reset:"Reset",resetToDefault:"Reset to default",cpSelect:"Select"},shortcut:{shortcuts:"Keyboard shortcuts",close:"Close",textFormatting:"Text formatting",action:"Action",paragraphFormatting:"Paragraph formatting",documentStyle:"Document Style",extraKeys:"Extra keys"},help:{insertParagraph:"Insert Paragraph",undo:"Undoes the last command",redo:"Redoes the last command",tab:"Tab",untab:"Untab",bold:"Set a bold style",italic:"Set a italic style",underline:"Set a underline style",strikethrough:"Set a strikethrough style",removeFormat:"Clean a style",justifyLeft:"Set left align",justifyCenter:"Set center align",justifyRight:"Set right align",justifyFull:"Set full align",insertUnorderedList:"Toggle unordered list",insertOrderedList:"Toggle ordered list",outdent:"Outdent on current paragraph",indent:"Indent on current paragraph",formatPara:"Change current block's format as a paragraph(P tag)",formatH1:"Change current block's format as H1",formatH2:"Change current block's format as H2",formatH3:"Change current block's format as H3",formatH4:"Change current block's format as H4",formatH5:"Change current block's format as H5",formatH6:"Change current block's format as H6",insertHorizontalRule:"Insert horizontal rule","linkDialog.show":"Show Link Dialog"},history:{undo:"Undo",redo:"Redo"},specialChar:{specialChar:"SPECIAL CHARACTERS",select:"Select Special characters"}}});var Tt,Et="function"==typeof define&&define.amd,$t=navigator.userAgent,It=/MSIE|Trident/i.test($t);if(It){var Pt=/MSIE (\d+[.]\d+)/.exec($t);Pt&&(Tt=parseFloat(Pt[1])),Pt=/Trident\/.*rv:([0-9]{1,}[.0-9]{0,})/.exec($t),Pt&&(Tt=parseFloat(Pt[1]))}var Dt=/Edge\/\d+/.test($t),At=!!window.CodeMirror,Rt="ontouchstart"in window||navigator.MaxTouchPoints>0||navigator.msMaxTouchPoints>0,Nt=It||Dt?"DOMCharacterDataModified DOMSubtreeModified DOMNodeInserted":"input",Lt={isMac:navigator.appVersion.indexOf("Mac")>-1,isMSIE:It,isEdge:Dt,isFF:!Dt&&/firefox/i.test($t),isPhantom:/PhantomJS/i.test($t),isWebkit:!Dt&&/webkit/i.test($t),isChrome:!Dt&&/chrome/i.test($t),isSafari:!Dt&&/safari/i.test($t),browserVersion:Tt,jqueryVersion:parseFloat(e.fn.jquery),isSupportAmd:Et,isSupportTouch:Rt,hasCodeMirror:At,isFontInstalled:t,isW3CRangeSupport:!!document.createRange,inputEventName:Nt},Mt=0,Ot={eq:n,eq2:i,peq2:o,ok:r,fail:s,self:c,not:a,and:l,invoke:u,uniqueId:d,rect2bnd:h,invertObject:p,namespaceToCamel:f,debounce:m,isValidUrl:g},jt={head:v,last:y,initial:b,tail:w,prev:A,next:D,find:k,contains:x,all:C,sum:_,from:S,isEmpty:T,clusterBy:E,compact:I,unique:P},Ht=String.fromCharCode(160),Ft=L("PRE"),Bt=L("LI"),zt=L("TABLE"),qt=L("DATA"),Ut=L("HR"),Wt=L("BLOCKQUOTE"),Vt=L("A"),Kt=L("BODY"),Gt=Lt.isMSIE&&Lt.browserVersion<11?" ":"<br>",Yt=L("TEXTAREA"),Qt={NBSP_CHAR:Ht,ZERO_WIDTH_NBSP_CHAR:"\ufeff",blank:Gt,emptyPara:"<p>"+Gt+"</p>",makePredByNodeName:L,isEditable:R,isControlSizing:N,isText:M,isElement:O,isVoid:j,isPara:H,isPurePara:B,isHeading:F,isInline:z,isBlock:Ot.not(z),isBodyInline:K,isBody:Kt,isParaInline:V,isPre:Ft,isList:q,isTable:zt,isData:qt,isCell:U,isBlockquote:Wt,isBodyContainer:W,isAnchor:Vt,isDiv:L("DIV"),isLi:Bt,isBR:L("BR"),isSpan:L("SPAN"),isB:L("B"),isU:L("U"),isS:L("S"),isI:L("I"),isImg:L("IMG"),isTextarea:Yt,isEmpty:X,isEmptyAnchor:Ot.and(Vt,X),isClosestSibling:G,withClosestSiblings:Y,nodeLength:Q,isLeftEdgePoint:ue,isRightEdgePoint:de,isEdgePoint:he,isLeftEdgeOf:pe,isRightEdgeOf:fe,isLeftEdgePointOf:me,isRightEdgePointOf:ge,prevPoint:be,nextPoint:we,isSamePoint:ke,isVisiblePoint:Ce,prevPointUntil:xe,nextPointUntil:_e,isCharPoint:Se,walkPoint:Te,ancestor:J,singleChildAncestor:ee,listAncestor:te,lastAncestor:ne,listNext:re,listPrev:oe,listDescendant:se,commonAncestor:ie,wrap:ae,insertAfter:le,appendChildNodes:ce,position:ve,hasChildren:ye,makeOffsetPath:Ee,fromOffsetPath:$e,splitTree:Pe,splitPoint:De,create:Ae,createText:Re,remove:Ne,removeWhile:Le,replace:Me,html:je,value:Oe,posFromPlaceholder:He,attachEvents:Fe,detachEvents:Be,isCustomStyleTag:ze},Xt=function(){function t(t,n){this.ui=e.summernote.ui,this.$note=t,this.memos={},this.modules={},this.layoutInfo={},this.options=n,this.initialize()}return t.prototype.initialize=function(){return this.layoutInfo=this.ui.createLayout(this.$note,this.options),this._initialize(),this.$note.hide(),this},t.prototype.destroy=function(){this._destroy(),this.$note.removeData("summernote"),this.ui.removeLayout(this.$note,this.layoutInfo)},t.prototype.reset=function(){var e=this.isDisabled();
13this.code(Qt.emptyPara),this._destroy(),this._initialize(),e&&this.disable()},t.prototype._initialize=function(){var t=this,n=e.extend({},this.options.buttons);Object.keys(n).forEach(function(e){t.memo("button."+e,n[e])});var i=e.extend({},this.options.modules,e.summernote.plugins||{});Object.keys(i).forEach(function(e){t.module(e,i[e],!0)}),Object.keys(this.modules).forEach(function(e){t.initializeModule(e)})},t.prototype._destroy=function(){var e=this;Object.keys(this.modules).reverse().forEach(function(t){e.removeModule(t)}),Object.keys(this.memos).forEach(function(t){e.removeMemo(t)}),this.triggerEvent("destroy",this)},t.prototype.code=function(e){var t=this.invoke("codeview.isActivated");if(void 0===e)return this.invoke("codeview.sync"),t?this.layoutInfo.codable.val():this.layoutInfo.editable.html();t?this.layoutInfo.codable.val(e):this.layoutInfo.editable.html(e),this.$note.val(e),this.triggerEvent("change",e,this.layoutInfo.editable)},t.prototype.isDisabled=function(){return"false"===this.layoutInfo.editable.attr("contenteditable")},t.prototype.enable=function(){this.layoutInfo.editable.attr("contenteditable",!0),this.invoke("toolbar.activate",!0),this.triggerEvent("disable",!1)},t.prototype.disable=function(){this.invoke("codeview.isActivated")&&this.invoke("codeview.deactivate"),this.layoutInfo.editable.attr("contenteditable",!1),this.invoke("toolbar.deactivate",!0),this.triggerEvent("disable",!0)},t.prototype.triggerEvent=function(){var e=jt.head(arguments),t=jt.tail(jt.from(arguments)),n=this.options.callbacks[Ot.namespaceToCamel(e,"on")];n&&n.apply(this.$note[0],t),this.$note.trigger("summernote."+e,t)},t.prototype.initializeModule=function(e){var t=this.modules[e];t.shouldInitialize=t.shouldInitialize||Ot.ok,t.shouldInitialize()&&(t.initialize&&t.initialize(),t.events&&Qt.attachEvents(this.$note,t.events))},t.prototype.module=function(e,t,n){if(1===arguments.length)return this.modules[e];this.modules[e]=new t(this),n||this.initializeModule(e)},t.prototype.removeModule=function(e){var t=this.modules[e];t.shouldInitialize()&&(t.events&&Qt.detachEvents(this.$note,t.events),t.destroy&&t.destroy()),delete this.modules[e]},t.prototype.memo=function(e,t){if(1===arguments.length)return this.memos[e];this.memos[e]=t},t.prototype.removeMemo=function(e){this.memos[e]&&this.memos[e].destroy&&this.memos[e].destroy(),delete this.memos[e]},t.prototype.createInvokeHandlerAndUpdateState=function(e,t){var n=this;return function(i){n.createInvokeHandler(e,t)(i),n.invoke("buttons.updateCurrentStyle")}},t.prototype.createInvokeHandler=function(t,n){var i=this;return function(o){o.preventDefault();var r=e(o.target);i.invoke(t,n||r.closest("[data-value]").data("value"),r)}},t.prototype.invoke=function(){var e=jt.head(arguments),t=jt.tail(jt.from(arguments)),n=e.split("."),i=n.length>1,o=i&&jt.head(n),r=i?jt.last(n):jt.head(n),s=this.modules[o||"editor"];return!o&&this[r]?this[r].apply(this,t):s&&s[r]&&s.shouldInitialize()?s[r].apply(s,t):void 0},t}();e.fn.extend({summernote:function(){var t=e.type(jt.head(arguments)),n="string"===t,i="object"===t,o=e.extend({},e.summernote.options,i?jt.head(arguments):{});o.langInfo=e.extend(!0,{},e.summernote.lang["en-US"],e.summernote.lang[o.lang]),o.icons=e.extend(!0,{},e.summernote.options.icons,o.icons),o.tooltip="auto"===o.tooltip?!Lt.isSupportTouch:o.tooltip,this.each(function(t,n){var i=e(n);if(!i.data("summernote")){var r=new Xt(i,o);i.data("summernote",r),i.data("summernote").triggerEvent("init",r.layoutInfo)}});var r=this.first();if(r.length){var s=r.data("summernote");if(n)return s.invoke.apply(s,jt.from(arguments));o.focus&&s.invoke("editor.focus")}return this}});var Zt=function(){function t(e,t,n,i){this.sc=e,this.so=t,this.ec=n,this.eo=i,this.isOnEditable=this.makeIsOn(Qt.isEditable),this.isOnList=this.makeIsOn(Qt.isList),this.isOnAnchor=this.makeIsOn(Qt.isAnchor),this.isOnCell=this.makeIsOn(Qt.isCell),this.isOnData=this.makeIsOn(Qt.isData)}return t.prototype.nativeRange=function(){if(Lt.isW3CRangeSupport){var e=document.createRange();return e.setStart(this.sc,this.sc.data&&this.so>this.sc.data.length?0:this.so),e.setEnd(this.ec,this.sc.data?Math.min(this.eo,this.sc.data.length):this.eo),e}var t=Ue({node:this.sc,offset:this.so});return t.setEndPoint("EndToEnd",Ue({node:this.ec,offset:this.eo})),t},t.prototype.getPoints=function(){return{sc:this.sc,so:this.so,ec:this.ec,eo:this.eo}},t.prototype.getStartPoint=function(){return{node:this.sc,offset:this.so}},t.prototype.getEndPoint=function(){return{node:this.ec,offset:this.eo}},t.prototype.select=function(){var e=this.nativeRange();
13if(Lt.isW3CRangeSupport){var t=document.getSelection();t.rangeCount>0&&t.removeAllRanges(),t.addRange(e)}else e.select();return this},t.prototype.scrollIntoView=function(t){var n=e(t).height();return t.scrollTop+n<this.sc.offsetTop&&(t.scrollTop+=Math.abs(t.scrollTop+n-this.sc.offsetTop)),this},t.prototype.normalize=function(){var e=function(e,t){if(Qt.isVisiblePoint(e)&&(!Qt.isEdgePoint(e)||Qt.isRightEdgePoint(e)&&!t||Qt.isLeftEdgePoint(e)&&t||Qt.isRightEdgePoint(e)&&t&&Qt.isVoid(e.node.nextSibling)||Qt.isLeftEdgePoint(e)&&!t&&Qt.isVoid(e.node.previousSibling)||Qt.isBlock(e.node)&&Qt.isEmpty(e.node)))return e;var n=Qt.ancestor(e.node,Qt.isBlock);if((Qt.isLeftEdgePointOf(e,n)||Qt.isVoid(Qt.prevPoint(e).node))&&!t||(Qt.isRightEdgePointOf(e,n)||Qt.isVoid(Qt.nextPoint(e).node))&&t){if(Qt.isVisiblePoint(e))return e;t=!t}return(t?Qt.nextPointUntil(Qt.nextPoint(e),Qt.isVisiblePoint):Qt.prevPointUntil(Qt.prevPoint(e),Qt.isVisiblePoint))||e},n=e(this.getEndPoint(),!1),i=this.isCollapsed()?n:e(this.getStartPoint(),!0);return new t(i.node,i.offset,n.node,n.offset)},t.prototype.nodes=function(e,t){e=e||Ot.ok;var n=t&&t.includeAncestor,i=t&&t.fullyContains,o=this.getStartPoint(),r=this.getEndPoint(),s=[],a=[];return Qt.walkPoint(o,r,function(t){if(!Qt.isEditable(t.node)){var o;i?(Qt.isLeftEdgePoint(t)&&a.push(t.node),Qt.isRightEdgePoint(t)&&jt.contains(a,t.node)&&(o=t.node)):o=n?Qt.ancestor(t.node,e):t.node,o&&e(o)&&s.push(o)}},!0),jt.unique(s)},t.prototype.commonAncestor=function(){return Qt.commonAncestor(this.sc,this.ec)},t.prototype.expand=function(e){var n=Qt.ancestor(this.sc,e),i=Qt.ancestor(this.ec,e);if(!n&&!i)return new t(this.sc,this.so,this.ec,this.eo);var o=this.getPoints();return n&&(o.sc=n,o.so=0),i&&(o.ec=i,o.eo=Qt.nodeLength(i)),new t(o.sc,o.so,o.ec,o.eo)},t.prototype.collapse=function(e){return e?new t(this.sc,this.so,this.sc,this.so):new t(this.ec,this.eo,this.ec,this.eo)},t.prototype.splitText=function(){var e=this.sc===this.ec,n=this.getPoints();return Qt.isText(this.ec)&&!Qt.isEdgePoint(this.getEndPoint())&&this.ec.splitText(this.eo),Qt.isText(this.sc)&&!Qt.isEdgePoint(this.getStartPoint())&&
13(n.sc=this.sc.splitText(this.so),n.so=0,e&&(n.ec=n.sc,n.eo=this.eo-this.so)),new t(n.sc,n.so,n.ec,n.eo)},t.prototype.deleteContents=function(){if(this.isCollapsed())return this;var n=this.splitText(),i=n.nodes(null,{fullyContains:!0}),o=Qt.prevPointUntil(n.getStartPoint(),function(e){return!jt.contains(i,e.node)}),r=[];return e.each(i,function(e,t){var n=t.parentNode;o.node!==n&&1===Qt.nodeLength(n)&&r.push(n),Qt.remove(t,!1)}),e.each(r,function(e,t){Qt.remove(t,!1)}),new t(o.node,o.offset,o.node,o.offset).normalize()},t.prototype.makeIsOn=function(e){return function(){var t=Qt.ancestor(this.sc,e);return!!t&&t===Qt.ancestor(this.ec,e)}},t.prototype.isLeftEdgeOf=function(e){if(!Qt.isLeftEdgePoint(this.getStartPoint()))return!1;var t=Qt.ancestor(this.sc,e);return t&&Qt.isLeftEdgeOf(this.sc,t)},t.prototype.isCollapsed=function(){return this.sc===this.ec&&this.so===this.eo},t.prototype.wrapBodyInlineWithPara=function(){if(Qt.isBodyContainer(this.sc)&&Qt.isEmpty(this.sc))return this.sc.innerHTML=Qt.emptyPara,new t(this.sc.firstChild,0,this.sc.firstChild,0);var e=this.normalize();if(Qt.isParaInline(this.sc)||Qt.isPara(this.sc))return e;var n;if(Qt.isInline(e.sc)){var i=Qt.listAncestor(e.sc,Ot.not(Qt.isInline));n=jt.last(i),Qt.isInline(n)||(n=i[i.length-2]||e.sc.childNodes[e.so])}else n=e.sc.childNodes[e.so>0?e.so-1:0];var o=Qt.listPrev(n,Qt.isParaInline).reverse();if(o=o.concat(Qt.listNext(n.nextSibling,Qt.isParaInline)),o.length){var r=Qt.wrap(jt.head(o),"p");Qt.appendChildNodes(r,jt.tail(o))}return this.normalize()},t.prototype.insertNode=function(e){var t=this.wrapBodyInlineWithPara().deleteContents(),n=Qt.splitPoint(t.getStartPoint(),Qt.isInline(e));return n.rightNode?n.rightNode.parentNode.insertBefore(e,n.rightNode):n.container.appendChild(e),e},t.prototype.pasteHTML=function(t){var n=e("<div></div>").html(t)[0],i=jt.from(n.childNodes),o=this.wrapBodyInlineWithPara().deleteContents();return o.so>0&&(i=i.reverse()),i=i.map(function(e){return o.insertNode(e)}),o.so>0&&(i=i.reverse()),i},t.prototype.toString=function(){var e=this.nativeRange();return Lt.isW3CRangeSupport?e.toString():e.text},t.prototype.getWordRange=function(e){var n=this.getEndPoint();if(!Qt.isCharPoint(n))return this;var i=Qt.prevPointUntil(n,function(e){return!Qt.isCharPoint(e)});return e&&(n=Qt.nextPointUntil(n,function(e){return!Qt.isCharPoint(e)})),new t(i.node,i.offset,n.node,n.offset)},t.prototype.bookmark=function(e){return{s:{path:Qt.makeOffsetPath(e,this.sc),offset:this.so},e:{path:Qt.makeOffsetPath(e,this.ec),offset:this.eo}}},t.prototype.paraBookmark=function(e){return{s:{path:jt.tail(Qt.makeOffsetPath(jt.head(e),this.sc)),offset:this.so},e:{path:jt.tail(Qt.makeOffsetPath(jt.last(e),this.ec)),offset:this.eo}}},t.prototype.getClientRects=function(){return this.nativeRange().getClientRects()},t}(),Jt={create:function(e,t,n,i){if(4===arguments.length)return new Zt(e,t,n,i);if(2===arguments.length)return n=e,i=t,new Zt(e,t,n,i);var o=this.createFromSelection();return o||1!==arguments.length?o:(o=this.createFromNode(arguments[0]),o.collapse(Qt.emptyPara===arguments[0].innerHTML))},createFromSelection:function(){var e,t,n,i;if(Lt.isW3CRangeSupport){var o=document.getSelection();if(!o||0===o.rangeCount)return null;if(Qt.isBody(o.anchorNode))return null;var r=o.getRangeAt(0);e=r.startContainer,t=r.startOffset,n=r.endContainer,i=r.endOffset}else{var s=document.selection.createRange(),a=s.duplicate();a.collapse(!1);var l=s;l.collapse(!0);var c=qe(l,!0),u=qe(a,!1);Qt.isText(c.node)&&Qt.isLeftEdgePoint(c)&&Qt.isTextNode(u.node)&&Qt.isRightEdgePoint(u)&&u.node.nextSibling===c.node&&(c=u),e=c.cont,t=c.offset,n=u.cont,i=u.offset}return new Zt(e,t,n,i)},createFromNode:function(e){var t=e,n=0,i=e,o=Qt.nodeLength(i);return Qt.isVoid(t)&&(n=Qt.listPrev(t).length-1,t=t.parentNode),Qt.isBR(i)?(o=Qt.listPrev(i).length-1,i=i.parentNode):Qt.isVoid(i)&&(o=Qt.listPrev(i).length,i=i.parentNode),this.create(t,n,i,o)},createFromNodeBefore:function(e){return this.createFromNode(e).collapse(!0)},createFromNodeAfter:function(e){return this.createFromNode(e).collapse()},createFromBookmark:function(e,t){var n=Qt.fromOffsetPath(e,t.s.path),i=t.s.offset,o=Qt.fromOffsetPath(e,t.e.path),r=t.e.offset;return new Zt(n,i,o,r)},createFromParaBookmark:function(e,t){var n=e.s.offset,i=e.e.offset,o=Qt.fromOffsetPath(jt.head(t),e.s.path),r=Qt.fromOffsetPath(jt.last(t),e.e.path);
13return new Zt(o,n,r,i)}},en={BACKSPACE:8,TAB:9,ENTER:13,SPACE:32,DELETE:46,LEFT:37,UP:38,RIGHT:39,DOWN:40,NUM0:48,NUM1:49,NUM2:50,NUM3:51,NUM4:52,NUM5:53,NUM6:54,NUM7:55,NUM8:56,B:66,E:69,I:73,J:74,K:75,L:76,R:82,S:83,U:85,V:86,Y:89,Z:90,SLASH:191,LEFTBRACKET:219,BACKSLASH:220,RIGHTBRACKET:221},tn={isEdit:function(e){return jt.contains([en.BACKSPACE,en.TAB,en.ENTER,en.SPACE,en.DELETE],e)},isMove:function(e){return jt.contains([en.LEFT,en.UP,en.RIGHT,en.DOWN],e)},nameFromCode:Ot.invertObject(en),code:en},nn=function(){function e(e){this.stack=[],this.stackOffset=-1,this.$editable=e,this.editable=e[0]}return e.prototype.makeSnapshot=function(){var e=Jt.create(this.editable),t={s:{path:[],offset:0},e:{path:[],offset:0}};return{contents:this.$editable.html(),bookmark:e&&e.isOnEditable()?e.bookmark(this.editable):t}},e.prototype.applySnapshot=function(e){null!==e.contents&&this.$editable.html(e.contents),null!==e.bookmark&&Jt.createFromBookmark(this.editable,e.bookmark).select()},e.prototype.rewind=function(){this.$editable.html()!==this.stack[this.stackOffset].contents&&this.recordUndo(),this.stackOffset=0,this.applySnapshot(this.stack[this.stackOffset])},e.prototype.commit=function(){this.stack=[],this.stackOffset=-1,this.recordUndo()},e.prototype.reset=function(){this.stack=[],this.stackOffset=-1,this.$editable.html(""),this.recordUndo()},e.prototype.undo=function(){this.$editable.html()!==this.stack[this.stackOffset].contents&&this.recordUndo(),this.stackOffset>0&&(this.stackOffset--,this.applySnapshot(this.stack[this.stackOffset]))},e.prototype.redo=function(){this.stack.length-1>this.stackOffset&&(this.stackOffset++,this.applySnapshot(this.stack[this.stackOffset]))},e.prototype.recordUndo=function(){this.stackOffset++,this.stack.length>this.stackOffset&&(this.stack=this.stack.slice(0,this.stackOffset)),this.stack.push(this.makeSnapshot())},e}(),on=function(){function t(){}return t.prototype.jQueryCSS=function(t,n){if(Lt.jqueryVersion<1.9){var i={};return e.each(n,function(e,n){i[n]=t.css(n)}),i}return t.css(n)},t.prototype.fromNode=function(e){var t=["font-family","font-size","text-align","list-style-type","line-height"],n=this.jQueryCSS(e,t)||{};
13return n["font-size"]=parseInt(n["font-size"],10),n},t.prototype.stylePara=function(t,n){e.each(t.nodes(Qt.isPara,{includeAncestor:!0}),function(t,i){e(i).css(n)})},t.prototype.styleNodes=function(t,n){t=t.splitText();var i=n&&n.nodeName||"SPAN",o=!(!n||!n.expandClosestSibling),r=!(!n||!n.onlyPartialContains);if(t.isCollapsed())return[t.insertNode(Qt.create(i))];var s=Qt.makePredByNodeName(i),a=t.nodes(Qt.isText,{fullyContains:!0}).map(function(e){return Qt.singleChildAncestor(e,s)||Qt.wrap(e,i)});if(o){if(r){var l=t.nodes();s=Ot.and(s,function(e){return jt.contains(l,e)})}return a.map(function(t){var n=Qt.withClosestSiblings(t,s),i=jt.head(n),o=jt.tail(n);return e.each(o,function(e,t){Qt.appendChildNodes(i,t.childNodes),Qt.remove(t)}),jt.head(n)})}return a},t.prototype.current=function(t){var n=e(Qt.isElement(t.sc)?t.sc:t.sc.parentNode),i=this.fromNode(n);try{i=e.extend(i,{"font-bold":document.queryCommandState("bold")?"bold":"normal","font-italic":document.queryCommandState("italic")?"italic":"normal","font-underline":document.queryCommandState("underline")?"underline":"normal","font-subscript":document.queryCommandState("subscript")?"subscript":"normal","font-superscript":document.queryCommandState("superscript")?"superscript":"normal","font-strikethrough":document.queryCommandState("strikethrough")?"strikethrough":"normal","font-family":document.queryCommandValue("fontname")||i["font-family"]})}catch(e){}if(t.isOnList()){var o=["circle","disc","disc-leading-zero","square"],r=o.indexOf(i["list-style-type"])>-1;i["list-style"]=r?"unordered":"ordered"}else i["list-style"]="none";var s=Qt.ancestor(t.sc,Qt.isPara);if(s&&s.style["line-height"])i["line-height"]=s.style.lineHeight;else{var a=parseInt(i["line-height"],10)/parseInt(i["font-size"],
1310);i["line-height"]=a.toFixed(1)}return i.anchor=t.isOnAnchor()&&Qt.ancestor(t.sc,Qt.isAnchor),i.ancestors=Qt.listAncestor(t.sc,Qt.isEditable),i.range=t,i},t}(),rn=function(){function t(){}return t.prototype.insertOrderedList=function(e){this.toggleList("OL",e)},t.prototype.insertUnorderedList=function(e){this.toggleList("UL",e)},t.prototype.indent=function(t){var n=this,i=Jt.create(t).wrapBodyInlineWithPara(),o=i.nodes(Qt.isPara,{includeAncestor:!0}),r=jt.clusterBy(o,Ot.peq2("parentNode"));e.each(r,function(t,i){var o=jt.head(i);if(Qt.isLi(o)){var r=n.findList(o.previousSibling);r?i.map(function(e){return r.appendChild(e)}):(n.wrapList(i,o.parentNode.nodeName),i.map(function(e){return e.parentNode}).map(function(e){return n.appendToPrevious(e)}))}else e.each(i,function(t,n){e(n).css("marginLeft",function(e,t){return(parseInt(t,10)||0)+25})})}),i.select()},t.prototype.outdent=function(t){var n=this,i=Jt.create(t).wrapBodyInlineWithPara(),o=i.nodes(Qt.isPara,{includeAncestor:!0}),r=jt.clusterBy(o,Ot.peq2("parentNode"));e.each(r,function(t,i){var o=jt.head(i);Qt.isLi(o)?n.releaseList([i]):e.each(i,function(t,n){e(n).css("marginLeft",function(e,t){return t=parseInt(t,10)||0,t>25?t-25:""})})}),i.select()},t.prototype.toggleList=function(t,n){var i=this,o=Jt.create(n).wrapBodyInlineWithPara(),r=o.nodes(Qt.isPara,{includeAncestor:!0}),s=o.paraBookmark(r),a=jt.clusterBy(r,Ot.peq2("parentNode"));if(jt.find(r,Qt.isPurePara)){var l=[];e.each(a,function(e,n){l=l.concat(i.wrapList(n,t))}),r=l}else{var c=o.nodes(Qt.isList,{includeAncestor:!0}).filter(function(n){return!e.nodeName(n,t)});c.length?e.each(c,function(e,n){Qt.replace(n,t)}):r=this.releaseList(a,!0)}Jt.createFromParaBookmark(s,r).select()},t.prototype.wrapList=function(e,t){var n=jt.head(e),i=jt.last(e),o=Qt.isList(n.previousSibling)&&n.previousSibling,r=Qt.isList(i.nextSibling)&&i.nextSibling,s=o||Qt.insertAfter(Qt.create(t||"UL"),i);return e=e.map(function(e){return Qt.isPurePara(e)?Qt.replace(e,"LI"):e}),Qt.appendChildNodes(s,e),r&&(Qt.appendChildNodes(s,jt.from(r.childNodes)),Qt.remove(r)),e},t.prototype.releaseList=function(t,n){var i=this,o=[];return e.each(t,function(t,r){var s=jt.head(r),a=jt.last(r),l=n?Qt.lastAncestor(s,Qt.isList):s.parentNode,c=l.parentNode;if("LI"===l.parentNode.nodeName)r.map(function(e){var t=i.findNextSiblings(e);c.nextSibling?c.parentNode.insertBefore(e,c.nextSibling):c.parentNode.appendChild(e),t.length&&(i.wrapList(t,l.nodeName),e.a
13ppendChild(t[0].parentNode))}),0===l.children.length&&c.removeChild(l),0===c.childNodes.length&&c.parentNode.removeChild(c);else{var u=l.childNodes.length>1?Qt.splitTree(l,{node:a.parentNode,offset:Qt.position(a)+1},{isSkipPaddingBlankHTML:!0}):null,d=Qt.splitTree(l,{node:s.parentNode,offset:Qt.position(s)},{isSkipPaddingBlankHTML:!0});r=n?Qt.listDescendant(d,Qt.isLi):jt.from(d.childNodes).filter(Qt.isLi),!n&&Qt.isList(l.parentNode)||(r=r.map(function(e){return Qt.replace(e,"P")})),e.each(jt.from(r).reverse(),function(e,t){Qt.insertAfter(t,l)});var h=jt.compact([l,d,u]);e.each(h,function(t,n){var i=[n].concat(Qt.listDescendant(n,Qt.isList));e.each(i.reverse(),function(e,t){Qt.nodeLength(t)||Qt.remove(t,!0)})})}o=o.concat(r)}),o},t.prototype.appendToPrevious=function(e){return e.previousSibling?Qt.appendChildNodes(e.previousSibling,[e]):this.wrapList([e],"LI")},t.prototype.findList=function(e){return e?jt.find(e.children,function(e){return["OL","UL"].indexOf(e.nodeName)>-1}):null},t.prototype.findNextSiblings=function(e){for(var t=[];e.nextSibling;)t.push(e.nextSibling),e=e.nextSibling;return t},t}(),sn=function(){function t(e){this.bullet=new rn,this.options=e.options}return t.prototype.insertTab=function(e,t){var n=Qt.createText(new Array(t+1).join(Qt.NBSP_CHAR));e=e.deleteContents(),e.insertNode(n,!0),e=Jt.create(n,t),e.select()},t.prototype.insertParagraph=function(t,n){n=n||Jt.create(t),n=n.deleteContents(),n=n.wrapBodyInlineWithPara();var i,o=Qt.ancestor(n.sc,Qt.isPara);if(o){if(Qt.isEmpty(o)&&Qt.isLi(o))return void this.bullet.toggleList(o.parentNode.nodeName);var r=null;if(1===this.options.blockquoteBreakingLevel?r=Qt.ancestor(o,Qt.isBlockquote):2===this.options.blockquoteBreakingLevel&&(r=Qt.lastAncestor(o,Qt.isBlockquote)),r){i=e(Qt.emptyPara)[0],Qt.isRightEdgePoint(n.getStartPoint())&&Qt.isBR(n.sc.nextSibling)&&e(n.sc.nextSibling).remove();var s=Qt.splitTree(r,n.getStartPoint(),{isDiscardEmptySplits:!0});s?s.parentNode.insertBefore(i,s):Qt.insertAfter(i,r)}else{i=Qt.splitTree(o,n.getStartPoint());var a=Qt.listDescendant(o,Qt.isEmptyAnchor);a=a.concat(Qt.listDescendant(i,Qt.isEmptyAnchor)),e.each(a,function(e,t){Qt.remove(t)}),(Qt.isHeading(i)||Qt.isPre(i)||Qt.isCustomStyleTag(i))&&Qt.isEmpty(i)&&(i=Qt.replace(i,"p"))}}else{var l=n.sc.childNodes[n.so];i=e(Qt.emptyPara)[0],l?n.sc.insertBefore(i,l):n.sc.appendChild(i)}Jt.create(i,0).normalize().select().scrollIntoView(t)},t}(),an=function(e,t,n,i){function o(){return!e||!e.tagName||"td"!==e.tagName.toLowerCase()&&"th"!==e.tagName.toLowerCase()?void console.error("Impossible to identify start Cell point.",e):(p.colPos=e.cellIndex,e.parentElement&&e.parentElement.tagName&&"tr"===e.parentElement.tagName.toLowerCase()?void(p.rowPos=e.parentElement.rowIndex):void console.error("Impossible to identify start Row point.",e))}function r(e,t,n,i,o,r,s){var a={baseRow:n,baseCell:i,isRowSpan:o,isColSpan:r,isVirtual:s};f[e]||(f[e]=[]),f[e][t]=a}function s(e,t,n,i){return{baseCell:e.baseCell,action:t,virtualTable:{rowIndex:n,cellIndex:i}}}function a(e,t){if(!f[e])return t;if(!f[e][t])return t;for(var n=t;f[e][n];)if(n++,!f[e][n])return n}function l(e,t){var n=a(e.rowIndex,t.cellIndex),i=t.colSpan>1,o=t.rowSpan>1,s=e.rowIndex===p.rowPos&&t.cellIndex===p.colPos;r(e.rowIndex,n,e,t,o,i,!1);var l=t.attributes.rowSpan?parseInt(t.attributes.rowSpan.value,10):0;if(l>1)for(var u=1;u<l;u++){var d=e.rowIndex+u;c(d,n,t,s),r(d,n,e,t,!0,i,!0)}var h=t.attributes.colSpan?parseInt(t.attributes.colSpan.value,10):0;if(h>1)for(var f=1;f<h;f++){var m=a(e.rowIndex,n+f);c(e.rowIndex,m,t,s),r(e.rowIndex,m,e,t,o,!0,!0)}}function c(e,t,n,i){e===p.rowPos&&p.colPos>=n.cellIndex&&n.cellIndex<=t&&!i&&p.colPos++}function u(){for(var e=i.rows,t=0;t<e.length;t++)for(var n=e[t].cells,o=0;o<n.length;o++)l(e[t],n[o])}function d(e){switch(t){case an.where.Column:if(e.isColSpan)return an.resultAction.SubtractSpanCount;break;case an.where.Row:if(!e.isVirtual&&e.isRowSpan)return an.resultAction.AddCell;if(e.isRowSpan)return an.resultAction.SubtractSpanCount}return an.resultAction.RemoveCell}function h(e){switch(t){case an.where.Column:if(e.isColSpan)return an.resultAction.SumSpanCount;if(e.isRowSpan&&e.isVirtual)return an.resultAction.Ignore;break;case an.where.Row:if(e.isRowSpan)return an.resultAction.SumSpanCount;if(e.isColSpan&&e.isVirtual)return an.resultAction.Ignore}return an.resultAction.AddCell}var p={colPos:0,rowPos:0},f=[],m=[];this.getActionList=function(){for(var e=t===an.where.Row?p.rowPos:-1,i=t===an.where.Column?p.colPos:-1,o=0,r=!0;r;){var a=e>=0?e:o,l=i>=0?i:o,c=f[a];if(!c)return r=!1,m;var u=c[l];if(!u)return r=!1,m;var g=an.resultAction.Ignore;switch(n){case an.requestAction.Add:g=h(u);break;case an.requestAction.Delete:g=d(u)}
13m.push(s(u,g,a,l)),o++}return m},function(){o(),u()}()};an.where={Row:0,Column:1},an.requestAction={Add:0,Delete:1},an.resultAction={Ignore:0,SubtractSpanCount:1,RemoveCell:2,AddCell:3,SumSpanCount:4};var ln,cn=function(){function t(){}return t.prototype.tab=function(e,t){var n=Qt.ancestor(e.commonAncestor(),Qt.isCell),i=Qt.ancestor(n,Qt.isTable),o=Qt.listDescendant(i,Qt.isCell),r=jt[t?"prev":"next"](o,n);r&&Jt.create(r,0).select()},t.prototype.addRow=function(t,n){for(var i=Qt.ancestor(t.commonAncestor(),Qt.isCell),o=e(i).closest("tr"),r=this.recoverAttributes(o),s=e("<tr"+r+"></tr>"),a=new an(i,an.where.Row,an.requestAction.Add,e(o).closest("table")[0]),l=a.getActionList(),c=0;c<l.length;c++){var u=l[c],d=this.recoverAttributes(u.baseCell);switch(u.action){case an.resultAction.AddCell:s.append("<td"+d+">"+Qt.blank+"</td>");break;case an.resultAction.SumSpanCount:if("top"===n){if((u.baseCell.parent?u.baseCell.closest("tr").rowIndex:0)<=o[0].rowIndex){var h=e("<div></div>").append(e("<td"+d+">"+Qt.blank+"</td>").removeAttr("rowspan")).html();s.append(h);break}}var p=parseInt(u.baseCell.rowSpan,10);p++,u.baseCell.setAttribute("rowSpan",p)}}if("top"===n)o.before(s);else{if(i.rowSpan>1){var f=o[0].rowIndex+(i.rowSpan-2);return void e(e(o).parent().find("tr")[f]).after(e(s))}o.after(s)}}, 14t.prototype.addCol=function(t,n){var i=Qt.ancestor(t.commonAncestor(),Qt.isCell),o=e(i).closest("tr");e(o).siblings().push(o);for(var r=new an(i,an.where.Column,an.requestAction.Add,e(o).closest("table")[0]),s=r.getActionList(),a=0;a<s.length;a++){var l=s[a],c=this.recoverAttributes(l.baseCell);switch(l.action){case an.resultAction.AddCell:"right"===n?e(l.baseCell).after("<td"+c+">"+Qt.blank+"</td>"):e(l.baseCell).before("<td"+c+">"+Qt.blank+"</td>");break;case an.resultAction.SumSpanCount:if("right"===n){var u=parseInt(l.baseCell.colSpan,10);u++,l.baseCell.setAttribute("colSpan",u)}else e(l.baseCell).before("<td"+c+">"+Qt.blank+"</td>")}}},t.prototype.recoverAttributes=function(e){var t="";if(!e)return t;for(var n=e.attributes||[],i=0;i<n.length;i++)"id"!==n[i].name.toLowerCase()&&n[i].specified&&(t+=" "+n[i].name+"='"+n[i].value+"'");return t},t.prototype.deleteRow=function(t){for(var n=Qt.ancestor(t.commonAncestor(),Qt.isCell),i=e(n).closest("tr"),o=i.children("td, th").index(e(n)),r=i[0].rowIndex,s=new an(n,an.where.Row,an.requestAction.Delete,e(i).closest("table")[0]),a=s.getActionList(),l=0;l<a.length;l++)if(a[l]){var c=a[l].baseCell,u=a[l].virtualTable,d=c.rowSpan&&c.rowSpan>1,h=d?parseInt(c.rowSpan,10):0;switch(a[l].action){case an.resultAction.Ignore:continue;case an.resultAction.AddCell:var p=i.next("tr")[0];if(!p)continue;var f=i[0].cells[o];d&&(h>2?(h--,p.insertBefore(f,p.cells[o]),p.cells[o].setAttribute("rowSpan",h),p.cells[o].innerHTML=""):2===h&&(p.insertBefore(f,p.cells[o]),p.cells[o].removeAttribute("rowSpan"),p.cells[o].innerHTML=""));continue;case an.resultAction.SubtractSpanCount:d&&(h>2?(h--,c.setAttribute("rowSpan",h),u.rowIndex!==r&&c.cellIndex===o&&(c.innerHTML="")):2===h&&(c.removeAttribute("rowSpan"),u.rowIndex!==r&&c.cellIndex===o&&(c.innerHTML="")));continue;case an.resultAction.RemoveCell:continue}}i.remove()},t.prototype.deleteCol=function(t){for(var n=Qt.ancestor(t.commonAncestor(),Qt.isCell),i=e(n).closest("tr"),o=i.children("td, th").index(e(n)),r=new an(n,an.where.Column,an.requestAction.Delete,e(i).closest("table")[0]),s=r.getActionList(),a=0;a<s.length;a++)if(s[a])switch(s[a].action){case an.resultAction.Ignore:continue;case an.resultAction.SubtractSpanCount:var l=s[a].baseCell,c=l.colSpan&&l.colSpan>1;if(c){var u=l.colSpan?parseInt(l.colSpan,10):0;u>2?(u--,l.setAttribute("colSpan",u),l.cellIndex===o&&(l.innerHTML="")):2===u&&(l.removeAttribute("colSpan"),l.cellIndex===o&&(l.innerHTML=""))}continue;case an.resultAction.RemoveCell:Qt.remove(s[a].baseCell,!0);continue}},t.prototype.createTable=function(t,n,i){for(var o,r=[],s=0;s<t;s++)r.push("<td>"+Qt.blank+"</td>");o=r.join("");for(var a,l=[],c=0;c<n;c++)l.push("<tr>"+o+"</tr>");a=l.join("");var u=e("<table>"+a+"</table>");return i&&i.tableClassName&&u.addClass(i.tableClassName),u[0]},t.prototype.deleteTable=function(t){var n=Qt.ancestor(t.commonAncestor(),Qt.isCell);e(n).closest("table").remove()},t}(),un=function(){function t(t){var n=this;
14this.context=t,this.$note=t.layoutInfo.note,this.$editor=t.layoutInfo.editor,this.$editable=t.layoutInfo.editable,this.options=t.options,this.lang=this.options.langInfo,this.editable=this.$editable[0],this.lastRange=null,this.style=new on,this.table=new cn,this.typing=new sn(t),this.bullet=new rn,this.history=new nn(this.$editable),this.context.memo("help.undo",this.lang.help.undo),this.context.memo("help.redo",this.lang.help.redo),this.context.memo("help.tab",this.lang.help.tab),this.context.memo("help.untab",this.lang.help.untab),this.context.memo("help.insertParagraph",this.lang.help.insertParagraph),this.context.memo("help.insertOrderedList",this.lang.help.insertOrderedList),this.context.memo("help.insertUnorderedList",this.lang.help.insertUnorderedList),this.context.memo("help.indent",this.lang.help.indent),this.context.memo("help.outdent",this.lang.help.outdent),this.context.memo("help.formatPara",this.lang.help.formatPara),this.context.memo("help.insertHorizontalRule",this.lang.help.insertHorizontalRule),this.context.memo("help.fontName",this.lang.help.fontName);for(var i=["bold","italic","underline","strikethrough","superscript","subscript","justifyLeft","justifyCenter","justifyRight","justifyFull","formatBlock","removeFormat","backColor"],o=0,r=i.length;o<r;o++)this[i[o]]=function(e){return function(t){n.beforeCommand(),document.execCommand(e,!1,t),n.afterCommand(!0)}}(i[o]),this.context.memo("help."+i[o],this.lang.help[i[o]]);this.fontName=this.wrapCommand(function(e){return n.fontStyling("font-family","'"+e+"'")}),this.fontSize=this.wrapCommand(function(e){return n.fontStyling("font-size",e+"px")});for(var o=1;o<=6;o++)this["formatH"+o]=function(e){return function(){n.formatBlock("H"+e)}}(o),this.context.memo("help.formatH"+o,this.lang.help["formatH"+o]);this.insertParagraph=this.wrapCommand(function(){n.typing.insertParagraph(n.editable)}),this.insertOrderedList=this.wrapCommand(function(){n.bullet.insertOrderedList(n.editable)}),this.insertUnorderedList=this.wrapCommand(function(){n.bullet.insertUnorderedList(n.editable)}),this.indent=this.wrapCommand(function(){n.bullet.indent(n.editable)}),this.outdent=this.wrapCommand(function(){n.bullet.outdent(n.editable)}),this.insertNode=this.wrapCommand(function(t){if(!n.isLimited(e(t).text().length)){n.getLastRange().insertNode(t),Jt.createFromNodeAfter(t).select(),n.setLastRange()}}),this.insertText=this.wrapCommand(function(e){if(!n.isLimited(e.length)){var t=n.getLastRange(),i=t.insertNode(Qt.createText(e));Jt.create(i,Qt.nodeLength(i)).select(),n.setLastRange()}}),this.pasteHTML=this.wrapCommand(function(e){if(!n.isLimited(e.length)){e=n.context.invoke("codeview.purify",e);var t=n.getLastRange().pasteHTML(e);Jt.createFromNodeAfter(jt.last(t)).select(),n.setLastRange()}}),this.formatBlock=this.wrapCommand(function(e,t){var i=n.options.callbacks.onApplyCustomStyle;i?i.call(n,t,n.context,n.onFormatBlock):n.onFormatBlock(e,t)}),this.insertHorizontalRule=this.wrapCommand(function(){var e=n.getLastRange().insertNode(Qt.create("HR"));e.nextSibling&&(Jt.create(e.nextSibling,0).normalize().select(),n.setLastRange())}),this.lineHeight=this.wrapCommand(function(e){n.style.stylePara(n.getLastRange(),{lineHeight:e})}),this.createLink=this.wrapCommand(function(t){var i=t.url,o=t.text,r=t.isNewWindow,s=t.range||n.getLastRange(),a=o.length-s.toString().length;if(!(a>0&&n.isLimited(a))){var l=s.toString()!==o;"string"==typeof i&&(i=i.trim()),i=n.options.onCreateLink?n.options.onCreateLink(i):/^([A-Za-z][A-Za-z0-9+-.]*\:|#|\/)/.test(i)?i:"http://"+i;var c=[];if(l){s=s.deleteContents();var u=s.insertNode(e("<A>"+o+"</A>")[0]);c.push(u)}else c=n.style.styleNodes(s,{nodeName:"A",expandClosestSibling:!0,onlyPartialContains:!0});e.each(c,function(t,n){e(n).attr("href",i),r?e(n).attr("target","_blank"):e(n).removeAttr("target")});var d=Jt.createFromNodeBefore(jt.head(c)),h=d.getStartPoint(),p=Jt.createFromNodeAfter(jt.last(c)),f=p.getEndPoint();Jt.create(h.node,h.offset,f.node,f.offset).select(),n.setLastRange()}}),this.color=this.wrapCommand(function(e){var t=e.foreColor,n=e.backColor;t&&document.execCommand("foreColor",!1,t),n&&document.execCommand("backColor",!1,n)}),this.foreColor=this.wrapCommand(function(e){document.execCommand("styleWithCSS",!1,!0),document.execCommand("foreColor",!1,e)}),this.insertTable=this.wrapCommand(function(e){var t=e.split("x");n.getLastRange().deleteContents().insertNode(n.table.createTable(t[0],t[1],n.options))}),this.removeMedia=this.wrapCommand(function(){var t=e(n.restoreTarget()).parent();t.parent("figure").length?t.parent("figure").remove():t=e(n.restoreTarget()).detach(),n.context.triggerEvent("media.delete",t,n.$editable)}),this.floatMe=this.wrapCommand(function(t){var i=e(n.restoreTarget());i.toggleClass("note-float-left","left"===t),i.toggleClass("note-float-right","right"===t),i.css("float","none"===t?"":t)}),this.resize=this.wrapCommand(function(t){var i=e(n.restoreTarget());t=parseFloat(t),0===t?i.css("width",""):i.css({width:100*t+"%",height:""})})}return t.prototype.initialize=function(){var e=this;
14this.$editable.on("keydown",function(t){if(t.keyCode===tn.code.ENTER&&e.context.triggerEvent("enter",t),e.context.triggerEvent("keydown",t),t.isDefaultPrevented()||(e.options.shortcuts?e.handleKeyMap(t):e.preventDefaultEditableShortCuts(t)),e.isLimited(1,t))return!1}).on("keyup",function(t){e.setLastRange(),e.context.triggerEvent("keyup",t)}).on("focus",function(t){e.setLastRange(),e.context.triggerEvent("focus",t)}).on("blur",function(t){e.context.triggerEvent("blur",t)}).on("mousedown",function(t){e.context.triggerEvent("mousedown",t)}).on("mouseup",function(t){e.setLastRange(),e.context.triggerEvent("mouseup",t)}).on("scroll",function(t){e.context.triggerEvent("scroll",t)}).on("paste",function(t){e.setLastRange(),e.context.triggerEvent("paste",t)}),this.$editable.attr("spellcheck",this.options.spellCheck),this.$editable.html(Qt.html(this.$note)||Qt.emptyPara),this.$editable.on(Lt.inputEventName,Ot.debounce(function(){e.context.triggerEvent("change",e.$editable.html(),e.$editable)},10)),this.$editor.on("focusin",function(t){e.context.triggerEvent("focusin",t)}).on("focusout",function(t){e.context.triggerEvent("focusout",t)}),this.options.airMode||(this.options.width&&this.$editor.outerWidth(this.options.width),this.options.height&&this.$editable.outerHeight(this.options.height),this.options.maxHeight&&this.$editable.css("max-height",this.options.maxHeight),this.options.minHeight&&this.$editable.css("min-height",this.options.minHeight)),this.history.recordUndo(),this.setLastRange()},t.prototype.destroy=function(){this.$editable.off()},t.prototype.handleKeyMap=function(e){var t=this.options.keyMap[Lt.isMac?"mac":"pc"],n=[];e.metaKey&&n.push("CMD"),e.ctrlKey&&!e.altKey&&n.push("CTRL"),e.shiftKey&&n.push("SHIFT");var i=tn.nameFromCode[e.keyCode];i&&n.push(i);var o=t[n.join("+")];o?!1!==this.context.invoke(o)&&e.preventDefault():tn.isEdit(e.keyCode)&&this.afterCommand()},t.prototype.preventDefaultEditableShortCuts=function(e){(e.ctrlKey||e.metaKey)&&jt.contains([66,73,85],e.keyCode)&&e.preventDefault()},t.prototype.isLimited=function(e,t){return e=e||0,(void 0===t||!(tn.isMove(t.keyCode)||t.ctrlKey||t.metaKey||jt.contains([tn.code.BACKSPACE,tn.code.DELETE],t.keyCode)))&&(this.options.maxTextLength>0&&this.$editable.text().length+e>=this.options.maxTextLength)},t.prototype.createRange=function(){return this.focus(),this.setLastRange(),this.getLastRange()},t.prototype.setLastRange=function(){this.lastRange=Jt.create(this.editable)},t.prototype.getLastRange=function(){return this.lastRange||this.setLastRange(),this.lastRange},t.prototype.saveRange=function(e){e&&this.getLastRange().collapse().select()},t.prototype.restoreRange=function(){this.lastRange&&(this.lastRange.select(),this.focus())},t.prototype.saveTarget=function(e){this.$editable.data("target",e)},t.prototype.clearTarget=function(){this.$editable.removeData("target")},t.prototype.restoreTarget=function(){return this.$editable.data("target")},t.prototype.currentStyle=function(){var e=Jt.create();return e&&(e=e.normalize()),e?this.style.current(e):this.style.fromNode(this.$editable)},t.prototype.styleFromNode=function(e){return this.style.fromNode(e)},t.prototype.undo=function(){this.context.triggerEvent("before.command",this.$editable.html()),this.history.undo(),this.context.triggerEvent("change",this.$editable.html(),this.$editable)},t.prototype.commit=function(){this.context.triggerEvent("before.command",this.$editable.html()),this.history.commit(),this.context.triggerEvent("change",this.$editable.html(),this.$editable)},t.prototype.redo=function(){this.context.triggerEvent("before.command",this.$editable.html()),this.history.redo(),this.context.triggerEvent("change",this.$editable.html(),this.$editable)},t.prototype.beforeCommand=function(){this.context.triggerEvent("before.command",this.$editable.html()),this.focus()},t.prototype.afterCommand=function(e){this.normalizeContent(),this.history.recordUndo(),e||this.context.triggerEvent("change",this.$editable.html(),this.$editable)},t.prototype.tab=function(){var e=this.getLastRange();if(e.isCollapsed()&&e.isOnCell())this.table.tab(e);else{if(0===this.options.tabSize)return!1;this.isLimited(this.options.tabSize)||(this.beforeCommand(),this.typing.insertTab(e,this.options.tabSize),this.afterCommand())}},t.prototype.untab=function(){var e=this.getLastRange();if(e.isCollapsed()&&e.isOnCell())this.table.tab(e,!0);else if(0===this.options.tabSize)return!1},t.prototype.wrapCommand=function(e){return function(){this.beforeCommand(),e.apply(this,arguments),this.afterCommand()}},t.prototype.insertImage=function(e,t){var n=this;return Ve(e).then(function(e){n.beforeCommand(),"function"==typeof t?t(e):("string"==typeof t&&e.attr("data-filename",t),e.css("width",Math.min(n.$editable.width(),e.width()))),e.show(),Jt.create(n.editable).insertNode(e[0]),Jt.createFromNodeAfter(e[0]).select(),n.setLastRange(),n.afterCommand()}).fail(function(e){n.context.triggerEvent("image.upload.error",e)})},t.prototype.insertImagesAsDataURL=function(t){var n=this;e.each(t,function(e,t){var i=t.name;n.options.maximumImageFileSize&&n.options.maximumImageFileSize<t.size?n.context.triggerEvent("image.upload.error",n.lang.image.maximumFileSizeError):We(t).then(function(e){return n.insertImage(e,i)}).fail(function(){n.context.triggerEvent("image.upload.error")})})},t.prototype.insertImagesOrCallback=function(e){this.options.callbacks.onImageUpload?this.context.triggerEvent("image.upload",e):this.insertImagesAsDataURL(e)},t.prototype.getSelectedText=function(){var e=this.getLastRange();return e.isOnAnchor()&&(e=Jt.createFromNode(Qt.ancestor(e.sc,Qt.isAnchor))),e.toString()},t.prototype.onFormatBlock=function(t,n){if(document.execCommand("FormatBlock",!1,Lt.isMSIE?"<"+t+">":t),n&&n.length&&(n[0].tagName.toUpperCase()!==t.toUpperCase()&&(n=n.find(t)),n&&n.length)){var i=n[0].className||"";if(i){var o=this.createRange();e([o.sc,o.ec]).closest(t).addClass(i)}}},t.prototype.formatPara=function(){this.formatBlock("P")},t.prototype.fontStyling=function(t,n){var i=this.getLastRange();if(i){var o=this.style.styleNodes(i);if(e(o).css(t,n),i.isCollapsed()){var r=jt.head(o);r&&!Qt.nodeLength(r)&&(r.innerHTML=Qt.ZERO_WIDTH_NBSP_CHAR,Jt.createFromNodeAfter(r.firstChild).select(),this.setLastRange(),this.$editable.data("bogus",r))}}},t.prototype.unlink=function(){var e=this.getLastRange();if(e.isOnAnchor()){var t=Qt.ancestor(e.sc,Qt.isAnchor);e=Jt.createFromNode(t),e.select(),this.setLastRange(),this.beforeCommand(),document.execCommand("unlink"),this.afterCommand()}},t.prototype.getLinkInfo=function(){var t=this.getLastRange().expand(Qt.isAnchor),n=e(jt.head(t.nodes(Qt.isAnchor))),i={range:t,text:t.toString(),url:n.length?n.attr("href"):""};return n.length&&(i.isNewWindow="_blank"===n.attr("target")),i},t.prototype.addRow=function(e){var t=this.getLastRange(this.$editable);t.isCollapsed()&&t.isOnCell()&&(this.beforeCommand(),this.table.addRow(t,e),this.afterCommand())},t.prototype.addCol=function(e){var t=this.getLastRange(this.$editable);t.isCollapsed()&&t.isOnCell()&&(this.beforeCommand(),this.table.addCol(t,e),this.afterCommand())},t.prototype.deleteRow=function(){var e=this.getLastRange(this.$editable);e.isCollapsed()&&e.isOnCell()&&(this.beforeCommand(),this.table.deleteRow(e),this.afterCommand())},t.prototype.deleteCol=function(){var e=this.getLastRange(this.$editable);e.isCollapsed()&&e.isOnCell()&&(this.beforeCommand(),this.table.deleteCol(e),this.afterCommand())},t.prototype.deleteTable=function(){var e=this.getLastRange(this.$editable);e.isCollapsed()&&e.isOnCell()&&(this.beforeCommand(),this.table.deleteTable(e),this.afterCommand())},t.prototype.resizeTo=function(e,t,n){var i;if(n){var o=e.y/e.x,r=t.data("ratio");i={width:r>o?e.x:e.y/r,height:r>o?e.x*r:e.y}}else i={width:e.x,height:e.y};t.css(i)},t.prototype.hasFocus=function(){return this.$editable.is(":focus")}
14,t.prototype.focus=function(){this.hasFocus()||this.$editable.focus()},t.prototype.isEmpty=function(){return Qt.isEmpty(this.$editable[0])||Qt.emptyPara===this.$editable.html()},t.prototype.empty=function(){this.context.invoke("code",Qt.emptyPara)},t.prototype.normalizeContent=function(){this.$editable[0].normalize()},t}(),dn=function(){function e(e){this.context=e,this.$editable=e.layoutInfo.editable}return e.prototype.initialize=function(){this.$editable.on("paste",this.pasteByEvent.bind(this))},e.prototype.pasteByEvent=function(e){var t=e.originalEvent.clipboardData;if(t&&t.items&&t.items.length){var n=t.items.length>1?t.items[1]:jt.head(t.items);"file"===n.kind&&-1!==n.type.indexOf("image/")&&this.context.invoke("editor.insertImagesOrCallback",[n.getAsFile()]),this.context.invoke("editor.afterCommand")}},e}(),hn=function(){function t(t){this.context=t,this.$eventListener=e(document),this.$editor=t.layoutInfo.editor,this.$editable=t.layoutInfo.editable,this.options=t.options,this.lang=this.options.langInfo,this.documentEventHandlers={},this.$dropzone=e(['<div class="note-dropzone">',' <div class="note-dropzone-message"/>',"</div>"].join("")).prependTo(this.$editor)}return t.prototype.initialize=function(){this.options.disableDragAndDrop?(this.documentEventHandlers.onDrop=function(e){e.preventDefault()},this.$eventListener=this.$dropzone,this.$eventListener.on("drop",this.documentEventHandlers.onDrop)):this.attachDragAndDropEvent()},t.prototype.attachDragAndDropEvent=function(){var t=this,n=e(),i=this.$dropzone.find(".note-dropzone-message");this.documentEventHandlers.onDragenter=function(e){var o=t.context.invoke("codeview.isActivated"),r=t.$editor.width()>0&&t.$editor.height()>0;o||n.length||!r||(t.$editor.addClass("dragover"),t.$dropzone.width(t.$editor.width()),t.$dropzone.height(t.$editor.height()),i.text(t.lang.image.dragImageHere)),n=n.add(e.target)},this.documentEventHandlers.onDragleave=function(e){n=n.not(e.target),n.length||t.$editor.removeClass("dragover")},this.documentEventHandlers.onDrop=function(){n=e(),t.$editor.removeClass("dragover")},this.$eventListener.on("dragenter",this.documentEventHandlers.onDragenter).on("dragleave",this.documentEventHandlers.onDragleave).on("drop",this.documentEventHandlers.onDrop),this.$dropzone.on("dragenter",function(){t.$dropzone.addClass("hover"),i.text(t.lang.image.dropImage)}).on("dragleave",function(){t.$dropzone.removeClass("hover"),i.text(t.lang.image.dragImageHere)}),this.$dropzone.on("drop",function(n){var i=n.originalEvent.dataTransfer;n.preventDefault(),i&&i.files&&i.files.length?(t.$editable.focus(),t.context.invoke("editor.insertImagesOrCallback",i.files)):e.each(i.types,function(n,o){var r=i.getData(o);o.toLowerCase().indexOf("text")>-1?t.context.invoke("editor.pasteHTML",r):e(r).each(function(e,n){t.context.invoke("editor.insertNode",n)})})}).on("dragover",!1)},t.prototype.destroy=function(){var e=this;Object.keys(this.documentEventHandlers).forEach(function(t){e.$eventListener.off(t.substr(2).toLowerCase(),e.documentEventHandlers[t])}),this.documentEventHandlers={}},t}();Lt.hasCodeMirror&&(ln=window.CodeMirror);var pn=function(){function e(e){this.context=e,this.$editor=e.layoutInfo.editor,this.$editable=e.layoutInfo.editable,this.$codable=e.layoutInfo.codable,this.options=e.options}return e.prototype.sync=function(){this.isActivated()&&Lt.hasCodeMirror&&this.$codable.data("cmEditor").save()},e.prototype.isActivated=function(){return this.$editor.hasClass("codeview")},e.prototype.toggle=function(){this.isActivated()?this.deactivate():this.activate(),this.context.triggerEvent("codeview.toggled")},e.prototype.purify=function(e){if(this.options.codeviewFilter&&(e=e.replace(this.options.codeviewFilterRegex,""),this.options.codeviewIframeFilter)){var t=this.options.codeviewIframeWhitelistSrc.concat(this.options.codeviewIframeWhitelistSrcBase);e=e.replace(/(<iframe.*?>.*?(?:<\/iframe>)?)/gi,function(e){if(/<.+src(?==?('|"|\s)?)[\s\S]+src(?=('|"|\s)?)[^>]*?>/i.test(e))return"";for(var n=0,i=t;n<i.length;n++){var o=i[n];if(new RegExp('src="(https?:)?//'+o.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")+'/(.+)"').test(e))return e}return""})}return e},e.prototype.activate=function(){var e=this;if(this.$codable.val(Qt.html(this.$editable,this.options.prettifyHtml)),this.$codable.height(this.$editable.height()),this.context.
14invoke("toolbar.updateCodeview",!0),this.$editor.addClass("codeview"),this.$codable.focus(),Lt.hasCodeMirror){var t=ln.fromTextArea(this.$codable[0],this.options.codemirror);if(this.options.codemirror.tern){var n=new ln.TernServer(this.options.codemirror.tern);t.ternServer=n,t.on("cursorActivity",function(e){n.updateArgHints(e)})}t.on("blur",function(n){e.context.triggerEvent("blur.codeview",t.getValue(),n)}),t.on("change",function(n){e.context.triggerEvent("change.codeview",t.getValue(),t)}),t.setSize(null,this.$editable.outerHeight()),this.$codable.data("cmEditor",t)}else this.$codable.on("blur",function(t){e.context.triggerEvent("blur.codeview",e.$codable.val(),t)}),this.$codable.on("input",function(t){e.context.triggerEvent("change.codeview",e.$codable.val(),e.$codable)})},e.prototype.deactivate=function(){if(Lt.hasCodeMirror){var e=this.$codable.data("cmEditor");this.$codable.val(e.getValue()),e.toTextArea()}var t=this.purify(Qt.value(this.$codable,this.options.prettifyHtml)||Qt.emptyPara),n=this.$editable.html()!==t;this.$editable.html(t),this.$editable.height(this.options.height?this.$codable.height():"auto"),this.$editor.removeClass("codeview"),n&&this.context.triggerEvent("change",this.$editable.html(),this.$editable),this.$editable.focus(),this.context.invoke("toolbar.updateCodeview",!1)},e.prototype.destroy=function(){this.isActivated()&&this.deactivate()},e}(),fn=function(){function t(t){this.$document=e(document),this.$statusbar=t.layoutInfo.statusbar,this.$editable=t.layoutInfo.editable,this.options=t.options}return t.prototype.initialize=function(){var e=this;if(this.options.airMode||this.options.disableResizeEditor)return void this.destroy();this.$statusbar.on("mousedown",function(t){t.preventDefault(),t.stopPropagation();var n=e.$editable.offset().top-e.$document.scrollTop(),i=function(t){var i=t.clientY-(n+24);i=e.options.minheight>0?Math.max(i,e.options.minheight):i,i=e.options.maxHeight>0?Math.min(i,e.options.maxHeight):i,e.$editable.height(i)};e.$document.on("mousemove",i).one("mouseup",function(){e.$document.off("mousemove",i)})})},t.prototype.destroy=function(){this.$statusbar.off(),this.$statusbar.addClass("locked")},t}(),mn=function(){function t(t){var n=this;this.context=t,this.$editor=t.layoutInfo.editor,this.$toolbar=t.layoutInfo.toolbar,this.$editable=t.layoutInfo.editable,this.$codable=t.layoutInfo.codable,this.$window=e(window),this.$scrollbar=e("html, body"),this.onResize=function(){n.resizeTo({h:n.$window.height()-n.$toolbar.outerHeight()})}}return t.prototype.resizeTo=function(e){this.$editable.css("height",e.h),this.$codable.css("height",e.h),this.$codable.data("cmeditor")&&this.$codable.data("cmeditor").setsize(null,e.h)},t.prototype.toggle=function(){this.$editor.toggleClass("fullscreen"),this.isFullscreen()?(this.$editable.data("orgHeight",this.$editable.css("height")),this.$editable.data("orgMaxHeight",this.$editable.css("maxHeight")),this.$editable.css("maxHeight",""),this.$window.on("resize",this.onResize).trigger("resize"),this.$scrollbar.css("overflow","hidden")):(this.$window.off("resize",this.onResize),this.resizeTo({h:this.$editable.data("orgHeight")}),this.$editable.css("maxHeight",this.$editable.css("orgMaxHeight")),this.$scrollbar.css("overflow","visible")),this.context.invoke("toolbar.updateFullscreen",this.isFullscreen())},t.prototype.isFullscreen=function(){return this.$editor.hasClass("fullscreen")},t}(),gn=function(){function t(t){var n=this;this.context=t,this.$document=e(document),this.$editingArea=t.layoutInfo.editingArea,this.options=t.options,this.lang=this.options.langInfo,this.events={"summernote.mousedown":function(e,t){n.update(t.target,t)&&t.preventDefault()},"summernote.keyup summernote.scroll summernote.change summernote.dialog.shown":function(){n.update()},"summernote.disable":function(){n.hide()},"summernote.codeview.toggled":function(){n.update()}}}return t.prototype.initialize=function(){var t=this;this.$handle=e(['<div class="note-handle">','<div class="note-control-selection">','<div class="note-control-selection-bg"></div>','<div class="note-control-holder note-control-nw"></div>','<div class="note-control-holder note-control-ne"></div>','<div class="note-control-holder note-control-sw"></div>
14','<div class="',this.options.disableResizeImage?"note-control-holder":"note-control-sizing",' note-control-se"></div>',this.options.disableResizeImage?"":'<div class="note-control-selection-info"></div>',"</div>","</div>"].join("")).prependTo(this.$editingArea),this.$handle.on("mousedown",function(e){if(Qt.isControlSizing(e.target)){e.preventDefault(),e.stopPropagation();var n=t.$handle.find(".note-control-selection").data("target"),i=n.offset(),o=t.$document.scrollTop(),r=function(e){t.context.invoke("editor.resizeTo",{x:e.clientX-i.left,y:e.clientY-(i.top-o)},n,!e.shiftKey),t.update(n[0])};t.$document.on("mousemove",r).one("mouseup",function(e){e.preventDefault(),t.$document.off("mousemove",r),t.context.invoke("editor.afterCommand")}),n.data("ratio")||n.data("ratio",n.height()/n.width())}}),this.$handle.on("wheel",function(e){e.preventDefault(),t.update()})},t.prototype.destroy=function(){this.$handle.remove()},t.prototype.update=function(t,n){if(this.context.isDisabled())return!1;var i=Qt.isImg(t),o=this.$handle.find(".note-control-selection");if(this.context.invoke("imagePopover.update",t,n),i){var r=e(t),s=r.position(),a={left:s.left+parseInt(r.css("marginLeft"),10),top:s.top+parseInt(r.css("marginTop"),10)},l={w:r.outerWidth(!1),h:r.outerHeight(!1)};o.css({display:"block",left:a.left,top:a.top,width:l.w,height:l.h}).data("target",r);var c=new Image;c.src=r.attr("src");var u=l.w+"x"+l.h+" ("+this.lang.image.original+": "+c.width+"x"+c.height+")";o.find(".note-control-selection-info").text(u),this.context.invoke("editor.saveTarget",t)}else this.hide();return i},t.prototype.hide=function(){this.context.invoke("editor.clearTarget"),this.$handle.children().hide()},t}(),vn=/^([A-Za-z][A-Za-z0-9+-.]*\:[\/]{2}|mailto:[A-Z0-9._%+-]+@)?(www\.)?(.+)$/i,yn=function(){function t(e){var t=this;
14this.context=e,this.events={"summernote.keyup":function(e,n){n.isDefaultPrevented()||t.handleKeyup(n)},"summernote.keydown":function(e,n){t.handleKeydown(n)}}}return t.prototype.initialize=function(){this.lastWordRange=null},t.prototype.destroy=function(){this.lastWordRange=null},t.prototype.replace=function(){if(this.lastWordRange){var t=this.lastWordRange.toString(),n=t.match(vn);if(n&&(n[1]||n[2])){var i=n[1]?t:"http://"+t,o=e("<a />").html(t).attr("href",i)[0];this.context.options.linkTargetBlank&&e(o).attr("target","_blank"),this.lastWordRange.insertNode(o),this.lastWordRange=null,this.context.invoke("editor.focus")}}},t.prototype.handleKeydown=function(e){if(jt.contains([tn.code.ENTER,tn.code.SPACE],e.keyCode)){var t=this.context.invoke("editor.createRange").getWordRange();this.lastWordRange=t}},t.prototype.handleKeyup=function(e){jt.contains([tn.code.ENTER,tn.code.SPACE],e.keyCode)&&this.replace()},t}(),bn=function(){function e(e){var t=this;this.$note=e.layoutInfo.note,this.events={"summernote.change":function(){t.$note.val(e.invoke("code"))}}}return e.prototype.shouldInitialize=function(){return Qt.isTextarea(this.$note[0])},e}(),wn=function(){function e(e){var t=this;this.context=e,this.options=e.options.replace||{},this.keys=[tn.code.ENTER,tn.code.SPACE,tn.code.PERIOD,tn.code.COMMA,tn.code.SEMICOLON,tn.code.SLASH],this.previousKeydownCode=null,this.events={"summernote.keyup":function(e,n){
14n.isDefaultPrevented()||t.handleKeyup(n)},"summernote.keydown":function(e,n){t.handleKeydown(n)}}}return e.prototype.shouldInitialize=function(){return!!this.options.match},e.prototype.initialize=function(){this.lastWord=null},e.prototype.destroy=function(){this.lastWord=null},e.prototype.replace=function(){if(this.lastWord){var e=this,t=this.lastWord.toString();this.options.match(t,function(t){if(t){var n="";if("string"==typeof t?n=Qt.createText(t):t instanceof jQuery?n=t[0]:t instanceof Node&&(n=t),!n)return;e.lastWord.insertNode(n),e.lastWord=null,e.context.invoke("editor.focus")}})}},e.prototype.handleKeydown=function(e){if(this.previousKeydownCode&&jt.contains(this.keys,this.previousKeydownCode))return void(this.previousKeydownCode=e.keyCode);if(jt.contains(this.keys,e.keyCode)){var t=this.context.invoke("editor.createRange").getWordRange();this.lastWord=t}this.previousKeydownCode=e.keyCode},e.prototype.handleKeyup=function(e){jt.contains(this.keys,e.keyCode)&&this.replace()},e}(),kn=function(){function t(e){var t=this;this.context=e,this.$editingArea=e.layoutInfo.editingArea,this.options=e.options,this.events={"summernote.init summernote.change":function(){t.update()},"summernote.codeview.toggled":function(){t.update()}}}return t.prototype.shouldInitialize=function(){return!!this.options.placeholder},t.prototype.initialize=function(){var t=this;this.$placeholder=e('<div class="note-placeholder">'),this.$placeholder.on("click",function(){t.context.invoke("focus")}).html(this.options.placeholder).prependTo(this.$editingArea),this.update()},t.prototype.destroy=function(){this.$placeholder.remove()},t.prototype.update=function(){var e=!this.context.invoke("codeview.isActivated")&&this.context.invoke("editor.isEmpty");this.$placeholder.toggle(e)},t}(),Cn=function(){function t(t){this.ui=e.summernote.ui,this.context=t,this.$toolbar=t.layoutInfo.toolbar,this.options=t.options,this.lang=this.options.langInfo,this.invertedKeyMap=Ot.invertObject(this.options.keyMap[Lt.isMac?"mac":"pc"])}return t.prototype.representShortcut=function(e){var t=this.invertedKeyMap[e];return this.options.shortcuts&&t?(Lt.isMac&&(t=t.replace("CMD","â").replace("SHIFT","â§"))," ("+(t=t.replace("BACKSLASH","\\").replace("SLASH","/").replace("LEFTBRACKET","[").replace("RIGHTBRACKET","]"))+")"):""},t.prototype.button=function(e){return!this.options.tooltip&&e.tooltip&&delete e.tooltip,e.container=this.options.container,this.ui.button(e)},t.prototype.initialize=function(){this.addToolbarButtons(),this.addImagePopoverButtons(),this.addLinkPopoverButtons(),this.addTablePopoverButtons(),this.fontInstalledMap={}},t.prototype.destroy=function(){delete this.fontInstalledMap},t.prototype.isFontInstalled=function(e){return this.fontInstalledMap.hasOwnProperty(e)||(this.fontInstalledMap[e]=Lt.isFontInstalled(e)||jt.contains(this.options.fontNamesIgnoreCheck,e)),this.fontInstalledMap[e]},t.prototype.isFontDeservedToAdd=function(e){var t=["sans-serif","serif","monospace","cursive","fantasy"];return""!==(e=e.toLowerCase())&&this.isFontInstalled(e)&&-1===t.indexOf(e)},t.prototype.colorPalette=function(t,n,i,o){var r=this;return this.ui.buttonGroup({className:"note-color "+t,children:[this.button({className:"note-current-color-button",contents:this.ui.icon(this.options.icons.font+" note-recent-color"),tooltip:n,click:function(t){var n=e(t.currentTarget);i&&o?r.context.invoke("editor.color",{backColor:n.attr("data-backColor"),foreColor:n.attr("data-foreColor")}):i?r.context.invoke("editor.color",{backColor:n.attr("data-backColor")}):o&&r.context.invoke("editor.color",{foreColor:n.attr("data-foreColor")})},callback:function(e){var t=e.find(".note-recent-color");i&&(t.css("background-color",r.options.colorButton.backColor),e.attr("data-backColor",r.options.colorButton.backColor)),o?(t.css("color",r.options.colorButton.foreColor),e.attr("data-foreColor",r.options.colorButton.foreColor)):t.css("color","transparent")}}),this.button({className:"dropdown-toggle",contents:this.ui.dropdownButtonContents("",this.options),tooltip:this.lang.color.more,data:{toggle:"dropdown"}}),this.ui.dropdown({ 15items:(i?['<div class="note-palette">',' <div class="note-palette-title">'+this.lang.color.background+"</div>"," <div>",' <button type="button" class="note-color-reset btn btn-light" data-event="backColor" data-value="inherit">',this.lang.color.transparent," </button>"," </div>",' <div class="note-holder" data-event="backColor"/>'," <div>",' <button type="button" class="note-color-select btn" data-event="openPalette" data-value="backColorPicker">',this.lang.color.cpSelect," </button>",' <input type="color" id="backColorPicker" class="note-btn note-color-select-btn" value="'+this.options.colorButton.backColor+'" data-event="backColorPalette">'," </div>",' <div class="note-holder-custom" id="backColorPalette" data-event="backColor"/>',"</div>"].join(""):"")+(o?['<div class="note-palette">',' <div class="note-palette-title">'+this.lang.color.foreground+"</div>"," <div>",' <button type="button" class="note-color-reset btn btn-light" data-event="removeFormat" data-value="foreColor">',this.lang.color.resetToDefault," </button>"," </div>",' <div class="note-holder" data-event="foreColor"/>'," <div>",' <button type="button" class="note-color-select btn" data-event="openPalette" data-value="foreColorPicker">',this.lang.color.cpSelect," </button>",' <input type="color" id="foreColorPicker" class="note-btn note-color-select-btn" value="'+this.options.colorButton.foreColor+'" data-event="foreColorPalette">',' <div class="note-holder-custom" id="foreColorPalette" data-event="foreColor"/>',"</div>"].join(""):""),callback:function(t){t.find(".note-holder").each(function(t,n){var i=e(n);i.append(r.ui.palette({colors:r.options.colors,colorsName:r.options.colorsName,eventName:i.data("event"),container:r.options.container,tooltip:r.options.tooltip}).render())});var n=[["#FFFFFF","#FFFFFF","#FFFFFF","#FFFFFF","#FFFFFF","#FFFFFF","#FFFFFF","#FFFFFF"]];t.find(".note-holder-custom").each(function(t,i){var o=e(i);o.append(r.ui.palette({colors:n,colorsName:n,eventName:o.data("event"),container:r.options.container,tooltip:r.options.tooltip}).render())}),t.find("input[type=color]").each(function(n,i){e(i).change(function(){var n=t.find("#"+e(this).data("event")).find(".note-color-btn").first(),i=this.value.toUpperCase();n.css("background-color",i).attr("aria-label",i).attr("data-value",i).attr("data-original-title",i
15),n.click()})})},click:function(n){n.stopPropagation();var i=e("."+t),o=e(n.target),s=o.data("event"),a=o.attr("data-value");if("openPalette"===s){var l=i.find("#"+a),c=e(i.find("#"+l.data("event")).find(".note-color-row")[0]),u=c.find(".note-color-btn").last().detach(),d=l.val();u.css("background-color",d).attr("aria-label",d).attr("data-value",d).attr("data-original-title",d),c.prepend(u),l.click()}else if(jt.contains(["backColor","foreColor"],s)){var h="backColor"===s?"background-color":"color",p=o.closest(".note-color").find(".note-recent-color"),f=o.closest(".note-color").find(".note-current-color-button");p.css(h,a),f.attr("data-"+s,a),r.context.invoke("editor."+s,a)}}})]}).render()},t.prototype.addToolbarButtons=function(){var t=this;this.context.memo("button.style",function(){return t.ui.buttonGroup([t.button({className:"dropdown-toggle",contents:t.ui.dropdownButtonContents(t.ui.icon(t.options.icons.magic),t.options),tooltip:t.lang.style.style,data:{toggle:"dropdown"}}),t.ui.dropdown({className:"dropdown-style",items:t.options.styleTags,title:t.lang.style.style,template:function(e){"string"==typeof e&&(e={tag:e,title:t.lang.style.hasOwnProperty(e)?t.lang.style[e]:e});var n=e.tag,i=e.title;return"<"+n+(e.style?' style="'+e.style+'" ':"")+(e.className?' class="'+e.className+'"':"")+">"+i+"</"+n+">"},click:t.context.createInvokeHandler("editor.formatBlock")})]).render()});for(var n=this,i=0,o=this.options.styleTags.length;i<o;i++)!function(e,i){var o=n.options.styleTags[e];n.context.memo("button.style."+o,function(){return t.button({className:"note-btn-style-"+o,contents:'<div data-value="'+o+'">'+o.toUpperCase()+"</div>",tooltip:t.lang.style[o],click:t.context.createInvokeHandler("editor.formatBlock")}).render()})}(i);this.context.memo("button.bold",function(){return t.button({className:"note-btn-bold",contents:t.ui.icon(t.options.icons.bold),tooltip:t.lang.font.bold+t.representShortcut("bold"),click:t.context.createInvokeHandlerAndUpdateState("editor.bold")}).render()}),this.context.memo("button.italic",function(){return t.button({className:"note-btn-italic",contents:t.ui.icon(t.options.icons.italic),tooltip:t.lang.font.italic+t.representShortcut("italic"),click:t.context.createInvokeHandlerAndUpdateState("editor.italic")}).render()}),this.context.memo("button.underline",function(){return t.button({className:"note-btn-underline",contents:t.ui.icon(t.options.icons.underline),tooltip:t.lang.font.underline+t.representShortcut("underline"),click:t.context.createInvokeHandlerAndUpdateState("editor.underline")}).render()}),this.context.memo("button.clear",function(){return t.button({contents:t.ui.icon(t.options.icons.eraser),tooltip:t.lang.font.clear+t.representShortcut("removeFormat"),click:t.context.createInvokeHandler("editor.removeFormat")}).render()}),this.context.memo("button.strikethrough",function(){return t.button({className:"note-btn-strikethrough",contents:t.ui.icon(t.options.icons.strikethrough),tooltip:t.lang.font.strikethrough+t.representShortcut("strikethrough"),click:t.context.createInvokeHandlerAndUpdateState("editor.strikethrough")}).render()}),this.context.memo("button.superscript",function(){return t.button({className:"note-btn-superscript",contents:t.ui.icon(t.options.icons.superscript),tooltip:t.lang.font.superscript,click:t.context.createInvokeHandlerAndUpdateState("editor.superscript")}).render()}),this.context.memo("button.subscript",function(){return t.button({className:"note-btn-subscript",contents:t.ui.icon(t.options.icons.subscript),tooltip:t.lang.font.subscript,click:t.context.createInvokeHandlerAndUpdateState("editor.subscript")}).render()}),this.context.memo("button.fontname",function(){var n=t.context.invoke("editor.currentStyle");
vendor: 5,772 bytes, line 15
15return e.each(n["font-family"].split(","),function(e,n){n=n.trim().replace(/['"]+/g,""),t.isFontDeservedToAdd(n)&&-1===t.options.fontNames.indexOf(n)&&t.options.fontNames.push(n)}),t.ui.buttonGroup([t.button({className:"dropdown-toggle",contents:t.ui.dropdownButtonContents('<span class="note-current-fontname"/>',t.options),tooltip:t.lang.font.name,data:{toggle:"dropdown"}}),t.ui.dropdownCheck({className:"dropdown-fontname",checkClassName:t.options.icons.menuCheck,items:t.options.fontNames.filter(t.isFontInstalled.bind(t)),title:t.lang.font.name,template:function(e){return"<span style=\"font-family: '"+e+"'\">"+e+"</span>"},click:t.context.createInvokeHandlerAndUpdateState("editor.fontName")})]).render()}),this.context.memo("button.fontsize",function(){return t.ui.buttonGroup([t.button({className:"dropdown-toggle",contents:t.ui.dropdownButtonContents('<span class="note-current-fontsize"/>',t.options),tooltip:t.lang.font.size,data:{toggle:"dropdown"}}),t.ui.dropdownCheck({className:"dropdown-fontsize",checkClassName:t.options.icons.menuCheck,items:t.options.fontSizes,title:t.lang.font.size,click:t.context.createInvokeHandlerAndUpdateState("editor.fontSize")})]).render()}),this.context.memo("button.color",function(){return t.colorPalette("note-color-all",t.lang.color.recent,!0,!0)}),this.context.memo("button.forecolor",function(){return t.colorPalette("note-color-fore",t.lang.color.foreground,!1,!0)}),this.context.memo("button.backcolor",function(){return t.colorPalette("note-color-back",t.lang.color.background,!0,!1)}),this.context.memo("button.ul",function(){return t.button({contents:t.ui.icon(t.options.icons.unorderedlist),tooltip:t.lang.lists.unordered+t.representShortcut("insertUnorderedList"),click:t.context.createInvokeHandler("editor.insertUnorderedList")}).render()}),this.context.memo("button.ol",function(){return t.button({contents:t.ui.icon(t.options.icons.orderedlist),tooltip:t.lang.lists.ordered+t.representShortcut("insertOrderedList"),click:t.context.createInvokeHandler("editor.insertOrderedList")}).render()});var r=this.button({contents:this.ui.icon(this.options.icons.alignLeft),tooltip:this.lang.paragraph.left+this.representShortcut("justifyLeft"),click:this.context.createInvokeHandler("editor.justifyLeft")}),s=this.button({contents:this.ui.icon(this.options.icons.alignCenter),tooltip:this.lang.paragraph.center+this.representShortcut("justifyCenter"),click:this.context.createInvokeHandler("editor.justifyCenter")}),a=this.button({contents:this.ui.icon(this.options.icons.alignRight),tooltip:this.lang.paragraph.right+this.representShortcut("justifyRight"),click:this.context.createInvokeHandler("editor.justifyRight")}),l=this.button({contents:this.ui.icon(this.options.icons.alignJustify),tooltip:this.lang.paragraph.justify+this.representShortcut("justifyFull"),click:this.context.createInvokeHandler("editor.justifyFull")}),c=this.button({contents:this.ui.icon(this.options.icons.outdent),tooltip:this.lang.paragraph.outdent+this.representShortcut("outdent"),click:this.context.createInvokeHandler("editor.outdent")}),u=this.button({contents:this.ui.icon(this.options.icons.indent),tooltip:this.lang.paragraph.indent+this.representShortcut("indent"),click:this.context.createInvokeHandler("editor.indent")});this.context.memo("button.justifyLeft",Ot.invoke(r,"render")),this.context.memo("button.justifyCenter",Ot.invoke(s,"render")),this.context.memo("button.justifyRight",Ot.invoke(a,"render")),this.context.memo("button.justifyFull",Ot.invoke(l,"render")),this.context.memo("button.outdent",Ot.invoke(c,"render")),this.context.memo("button.indent",Ot.invoke(u,"render")),this.context.memo("button.paragraph",function(){return t.ui.buttonGroup([t.button({className:"dropdown-toggle",contents:t.ui.dropdownButtonContents(t.ui.icon(t.options.icons.alignLeft),t.options),tooltip:t.lang.paragraph.paragraph,data:{toggle:"dropdown"}}),t.ui.dropdown([t.ui.buttonGroup({className:"note-align",children:[r,s,a,l]}),t.ui.buttonGroup({className:"note-list",children:[c,u]})])]).render()}),this.context.memo("button.height",function(){return t.ui.buttonGroup([t.button({className:"dropdown-toggle",contents:t.ui.dropdownButtonContents(t.ui.icon(t.options.icons.textHeight),t.options),tooltip:t.lang.font.height,data:{toggle:"dropdown"}}),t.ui.dropdownCheck({items:t.options.lineHeights,checkClassName:t.options.icons.menuCheck,className:"dropdown-line-height",title:t.lang.font.height,click:t.context.createInvokeHandler("editor.lineHeight")})]).render()}),this.context.memo("button.table",function(){return t.ui.buttonGroup([t.button({className:"dropdown-toggle",contents:t.ui.dropdownButtonContents(t.ui.icon(t.options.icons.table),t.options),tooltip:t.lang.table.table,data:{toggle:"dropdown"}}),t.ui.dropdown({title:t.lang.table.table,className:"note-table",items:['<div class="note-dimension-picker">',' <div class="note-dimension-picker-mousecatcher" data-event="insertTable" data-value="1x1"/>',' <div class="note-dimension-picker-highlighted"/>',' <div class="note-dimension-picker-unhighlighted"/>',"</div>",'<div class="note-dimension-display">1 x 1</div>'].join("")})],{callback:function(e){e.find(".note-dimension-picker-mousecatcher").css({width:t.options.insertTableMaxSize.col+"em",height:t.options.insertTableMaxSize.row+"em"}).mousedown(t.context.createInvokeHandler("editor.insertTable")).on("mousemove",t.tableMoveHandler.bind(t))}}).render()}),this.context.memo("button.link",function(){return t.button({contents:t.ui.icon(t.options.icons.link),tooltip:t.lang.link.link+t.representShortcut("linkDialog.show"),click:t.context.createInvokeHandler("linkDialog.show")}).render()}),this.context.memo("button.picture",function(){return t.button({contents:t.ui.icon(t.options.icons.picture),tooltip:t.lang.
15image.image,click:t.context.createInvokeHandler("imageDialog.show")}).render()}),this.context.memo("button.video",function(){return t.button({contents:t.ui.icon(t.options.icons.video),tooltip:t.lang.video.video,click:t.context.createInvokeHandler("videoDialog.show")}).render()}),this.context.memo("button.hr",function(){return t.button({contents:t.ui.icon(t.options.icons.minus),tooltip:t.lang.hr.insert+t.representShortcut("insertHorizontalRule"),click:t.context.createInvokeHandler("editor.insertHorizontalRule")}).render()}),this.context.memo("button.fullscreen",function(){return t.button({className:"btn-fullscreen",contents:t.ui.icon(t.options.icons.arrowsAlt),tooltip:t.lang.options.fullscreen,click:t.context.createInvokeHandler("fullscreen.toggle")}).render()}),this.context.memo("button.codeview",function(){return t.button({className:"btn-codeview",contents:t.ui.icon(t.options.icons.code),tooltip:t.lang.options.codeview,click:t.context.createInvokeHandler("codeview.toggle")}).render()}),this.context.memo("button.redo",function(){return t.button({contents:t.ui.icon(t.options.icons.redo),tooltip:t.lang.history.redo+t.representShortcut("redo"),click:t.context.createInvokeHandler("editor.redo")}).render()}),this.context.memo("button.undo",function(){return t.button({contents:t.ui.icon(t.options.icons.undo),tooltip:t.lang.history.undo+t.representShortcut("undo"),click:t.context.createInvokeHandler("editor.undo")}).render()}),this.context.memo("button.help",function(){return t.button({contents:t.ui.icon(t.options.icons.question),tooltip:t.lang.options.help,click:t.context.createInvokeHandler("helpDialog.show")}).render()})},t.prototype.addImagePopoverButtons=function(){var e=this;this.context.memo("button.resizeFull",function(){return e.button({contents:'<span class="note-fontsize-10">100%</span>',tooltip:e.lang.image.resizeFull,click:e.context.createInvokeHandler("editor.resize","1")}
15).render()}),this.context.memo("button.resizeHalf",function(){return e.button({contents:'<span class="note-fontsize-10">50%</span>',tooltip:e.lang.image.resizeHalf,click:e.context.createInvokeHandler("editor.resize","0.5")}).render()}),this.context.memo("button.resizeQuarter",function(){return e.button({contents:'<span class="note-fontsize-10">25%</span>',tooltip:e.lang.image.resizeQuarter,click:e.context.createInvokeHandler("editor.resize","0.25")}).render()}),this.context.memo("button.resizeNone",function(){return e.button({contents:e.ui.icon(e.options.icons.rollback),tooltip:e.lang.image.resizeNone,click:e.context.createInvokeHandler("editor.resize","0")}).render()}),this.context.memo("button.floatLeft",function(){return e.button({contents:e.ui.icon(e.options.icons.floatLeft),tooltip:e.lang.image.floatLeft,click:e.context.createInvokeHandler("editor.floatMe","left")}).render()}),this.context.memo("button.floatRight",function(){return e.button({contents:e.ui.icon(e.options.icons.floatRight),tooltip:e.lang.image.floatRight,click:e.context.createInvokeHandler("editor.floatMe","right")}).render()}),this.context.memo("button.floatNone",function(){return e.button({contents:e.ui.icon(e.options.icons.rollback),tooltip:e.lang.image.floatNone,click:e.context.createInvokeHandler("editor.floatMe","none")}).render()}),this.context.memo("button.removeMedia",function(){return e.button({contents:e.ui.icon(e.options.icons.trash),tooltip:e.lang.image.remove,click:e.context.createInvokeHandler("editor.removeMedia")}).render()})},t.prototype.addLinkPopoverButtons=function(){var e=this;this.context.memo("button.linkDialogShow",function(){return e.button({contents:e.ui.icon(e.options.icons.link),tooltip:e.lang.link.edit,click:e.context.createInvokeHandler("linkDialog.show")}).render()}),this.context.memo("button.unlink",function(){return e.button({contents:e.ui.icon(e.options.icons.unlink),tooltip:e.lang.link.unlink,click:e.context.createInvokeHandler("editor.unlink")}).render()})},t.prototype.addTablePopoverButtons=function(){var e=this;this.context.memo("button.addRowUp",function(){return e.button({className:"btn-md",contents:e.ui.icon(e.options.icons.rowAbove),tooltip:e.lang.table.addRowAbove,click:e.context.createInvokeHandler("editor.addRow","top")}).render()}),this.context.memo("button.addRowDown",function(){return e.button({className:"btn-md",contents:e.ui.icon(e.options.icons.rowBelow),tooltip:e.lang.table.addRowBelow,click:e.context.createInvokeHandler("editor.addRow","bottom")}).render()}),this.context.memo("button.addColLeft",function(){return e.button({className:"btn-md",contents:e.ui.icon(e.options.icons.colBefore),tooltip:e.lang.table.addColLeft,click:e.context.createInvokeHandler("editor.addCol","left")}).render()}),this.context.memo("button.addColRight",function(){return e.button({className:"btn-md",contents:e.ui.icon(e.options.icons.colAfter),tooltip:e.lang.table.addColRight,click:e.context.createInvokeHandler("editor.addCol","right")}).render()}),this.context.memo("button.deleteRow",function(){return e.button({className:"btn-md",contents:e.ui.icon(e.options.icons.rowRemove),tooltip:e.lang.table.delRow,click:e.context.createInvokeHandler("editor.deleteRow")}).render()}),this.context.memo("button.deleteCol",function(){return e.button({className:"btn-md",contents:e.ui.icon(e.options.icons.colRemove),tooltip:e.lang.table.delCol,click:e.context.createInvokeHandler("editor.deleteCol")}).render()}),this.context.memo("button.deleteTable",function(){return e.button({className:"btn-md",contents:e.ui.icon(e.options.icons.trash),tooltip:e.lang.table.delTable,click:e.context.createInvokeHandler("editor.deleteTable")}).render()})},t.prototype.build=function(e,t){for(var n=0,i=t.length;n<i;n++){for(var o=t[n],r=Array.isArray(o)?o[0]:o,s=Array.isArray(o)?1===o.length?[o[0]]:o[1]:[o],a=this.ui.buttonGroup({className:"note-"+r}).render(),l=0,c=s.length;l<c;l++){var u=this.context.memo("button."+s[l]);u&&a.append("function"==typeof u?u():u)}a.appendTo(e)}},t.prototype.updateCurrentStyle=function(t){var n=this,i=t||this.$toolbar,o=this.context.
15invoke("editor.currentStyle");if(this.updateBtnStates(i,{".note-btn-bold":function(){return"bold"===o["font-bold"]},".note-btn-italic":function(){return"italic"===o["font-italic"]},".note-btn-underline":function(){return"underline"===o["font-underline"]},".note-btn-subscript":function(){return"subscript"===o["font-subscript"]},".note-btn-superscript":function(){return"superscript"===o["font-superscript"]},".note-btn-strikethrough":function(){return"strikethrough"===o["font-strikethrough"]}}),o["font-family"]){var r=o["font-family"].split(",").map(function(e){return e.replace(/[\'\"]/g,"").replace(/\s+$/,"").replace(/^\s+/,"")}),s=jt.find(r,this.isFontInstalled.bind(this));i.find(".dropdown-fontname a").each(function(t,n){var i=e(n),o=i.data("value")+""==s+"";i.toggleClass("checked",o)}),i.find(".note-current-fontname").text(s).css("font-family",s)}if(o["font-size"]){var a=o["font-size"];i.find(".dropdown-fontsize a").each(function(t,n){var i=e(n),o=i.data("value")+""==a+"";i.toggleClass("checked",o)}),i.find(".note-current-fontsize").text(a)}if(o["line-height"]){var l=o["line-height"];i.find(".dropdown-line-height li a").each(function(t,i){var o=e(i).data("value")+""==l+"";n.className=o?"checked":""})}},t.prototype.updateBtnStates=function(t,n){var i=this;e.each(n,function(e,n){i.ui.toggleBtnActive(t.find(e),n())})},t.prototype.tableMoveHandler=function(t){var n,i=e(t.target.parentNode),o=i.next(),r=i.find(".note-dimension-picker-mousecatcher"),s=i.find(".note-dimension-picker-highlighted"),a=i.find(".note-dimension-picker-unhighlighted");if(void 0===t.offsetX){var l=e(t.target).offset();n={x:t.pageX-l.left,y:t.pageY-l.top}}else n={x:t.offsetX,y:t.offsetY};var c={c:Math.ceil(n.x/18)||1,r:Math.ceil(n.y/18)||1};s.css({width:c.c+"em",height:c.r+"em"}),r.data("value",c.c+"x"+c.r),c.c>3&&c.c<this.options.insertTableMaxSize.col&&a.css({width:c.c+1+"em"}),c.r>3&&c.r<this.options.insertTableMaxSize.row&&a.css({height:c.r+1+"em"}),o.html(c.c+" x "+c.r)},t}(),xn=function(){function t(t){this.context=t,this.$window=e(window),this.$document=e(document),this.ui=e.summernote.ui,this.$note=t.layoutInfo.note,this.$editor=t.layoutInfo.editor,this.$toolbar=t.layoutInfo.toolbar,this.$editable=t.layoutInfo.editable,this.$statusbar=t.layoutInfo.statusbar,this.options=t.options,this.isFollowing=!1,this.followScroll=this.followScroll.bind(this)}return t.prototype.shouldInitialize=function(){return!this.options.airMode},t.prototype.initialize=function(){var e=this;this.options.toolbar=this.options.toolbar||[],this.options.toolbar.length?this.context.invoke("buttons.build",this.$toolbar,this.options.toolbar):this.$toolbar.hide(),this.options.toolbarContainer&&this.$toolbar.appendTo(this.options.toolbarContainer),this.changeContainer(!1),this.$note.on("summernote.keyup summernote.mouseup summernote.change",function(){e.context.invoke("buttons.updateCurrentStyle")}),this.context.invoke("buttons.updateCurrentStyle"),this.options.followingToolbar&&this.$window.on("scroll resize",this.followScroll)},t.prototype.destroy=function(){this.$toolbar.children().remove(),this.options.followingToolbar&&this.$window.off("scroll resize",this.followScroll)},t.prototype.followScroll=function(){if(this.$editor.hasClass("fullscreen"))return!1;var t=this.$editor.outerHeight(),n=this.$editor.width(),i=this.$toolbar.height(),o=this.$statusbar.height(),r=0;this.options.otherStaticBar&&(r=e(this.options.otherStaticBar).outerHeight());var s=this.$document.scrollTop(),a=this.$editor.offset().top,l=a+t,c=a-r,u=l-r-i-o;!this.isFollowing&&s>c&&s<u-i?(this.isFollowing=!0,this.$toolbar.css({position:"fixed",top:r,width:n}),this.$editable.css({marginTop:this.$toolbar.height()+5})):this.isFollowing&&(s<c||s>u)&&(this.isFollowing=!1,this.$toolbar.css({position:"relative",top:0,width:"100%"}),this.$editable.css({marginTop:""}))},t.prototype.changeContainer=function(e){e?this.$toolbar.prependTo(this.$editor):this.options.toolbarContainer&&this.$toolbar.appendTo(this.options.toolbarContainer),this.followScroll()},t.prototype.updateFullscreen=function(e){this.ui.toggleBtnActive(this.$toolbar.find(".btn-fullscreen"),e),this.changeContainer(e)},t.prototype.updateCodeview=function(e){this.ui.toggleBtnActive(this.$toolbar.find(".btn-codeview"),e),e?this.deactivate():this.activate()},t.prototype.activate=function(e){var t=this.$toolbar.find("button");e||(t=t.not(".btn-codeview")),this.ui.toggleBtn(t,!0)},t.prototype.deactivate=function(e){var t=this.$toolbar.find("button");e||(t=t.not(".btn-codeview")),this.ui.toggleBtn(t,!1)},t}(),_n=function(){function t(t){this.context=t,this.ui=e.summernote.ui,this.$body=e(document.body),this.$editor=t.layoutInfo.editor,this.options=t.options,this.lang=this.options.langInfo,t.memo("help.linkDialog.show",this.options.langInfo.help["linkDialog.show"])}return t.prototype.initialize=function(){var t=this.options.dialogsInBody?this.$body:this.$editor,n=['<div class="form-group note-form-group">','<label class="note-form-label">'+this.lang.link.textToDisplay+"</label>",'<input class="note-link-text form-control note-form-control note-input" type="text" />',"</div>",'<div class="form-group note-form-group">','<label class="note-form-label">'+this.lang.link.url+"</label>",'<input class="note-link-url form-control note-form-control note-input" type="text" value="http://" />',"</div>",this.options.disableLinkTarget?"":e("<div/>").append(this.ui.checkbox({className:"sn-checkbox-open-in-new-window",text:this.lang.link.openInNewWindow,checked:!0}).render()).html()].join(""),i='<input type="button" href="#" class="btn btn-primary note-btn note-btn-primary note-link-btn" value="'+this.lang.link.insert+'" disabled>';this.$dialog=this.ui.dialog({className:"link-dialog",title:this.lang.link.insert,fade:this.options.dialogsFade,body:n,footer:i}).render().appendTo(t)},t.prototype.destroy=function(){this.ui.hideDialog(this.$dialog),this.$dialog.remove()},t.prototype.bindEnterKey=function(e,t){e.on("keypress",function(e){e.keyCode===tn.code.ENTER&&(e.preventDefault(),t.trigger("click"))})},t.prototype.toggleLinkBtn=function(e,t,n){this.ui.toggleBtn(e,t.val()&&n.val())},t.prototype.showLinkDialog=function(t){var n=this;return e.Deferred(function(e){var i=n.$dialog.find(".note-link-text"),o=n.$dialog.find(".note-link-url"),r=n.$dialog.find(".note-link-btn"),s=n.$dialog.find(".sn-checkbox-open-in-new-window input[type=checkbox]");n.ui.onDialogShown(n.$dialog,function(){n.context.triggerEvent("dialog.shown"),!t.url&&Ot.isValidUrl(t.text)&&(t.url=t.text),i.on("input paste propertychange",function(){t.text=i.val(),n.toggleLinkBtn(r,i,o)}).val(t.text),o.on("input paste propertychange",function(){t.text||i.val(o.val()),n.toggleLinkBtn(r,i,o)}).val(t.url),Lt.isSupportTouch||o.trigger("focus"),n.toggleLinkBtn(r,i,o),n.bindEnterKey(o,r),n.bindEnterKey(i,r);var a=void 0!==t.isNewWindow?t.isNewWindow:n.context.options.linkTargetBlank;s.prop("checked",a),r.one("click",function(r){r.preventDefault(),e.resolve({range:t.range,url:o.val(),text:i.val(),isNewWindow:s.is(":checked")}),n.ui.hideDialog(n.$dialog)})}),n.ui.onDialogHidden(n.$dialog,function(){i.off(),o.off(),r.off(),"pending"===e.state()&&e.reject()}),n.ui.showDialog(n.$dialog)}).promise()}
15,t.prototype.show=function(){var e=this,t=this.context.invoke("editor.getLinkInfo");this.context.invoke("editor.saveRange"),this.showLinkDialog(t).then(function(t){e.context.invoke("editor.restoreRange"),e.context.invoke("editor.createLink",t)}).fail(function(){e.context.invoke("editor.restoreRange")})},t}(),Sn=function(){function t(t){var n=this;this.context=t,this.ui=e.summernote.ui,this.options=t.options,this.events={"summernote.keyup summernote.mouseup summernote.change summernote.scroll":function(){n.update()},"summernote.disable summernote.dialog.shown":function(){n.hide()}}}return t.prototype.shouldInitialize=function(){return!jt.isEmpty(this.options.popover.link)},t.prototype.initialize=function(){this.$popover=this.ui.popover({className:"note-link-popover",callback:function(e){e.find(".popover-content,.note-popover-content").prepend('<span><a target="_blank"></a> </span>')}}).render().appendTo(this.options.container);var e=this.$popover.find(".popover-content,.note-popover-content");this.context.invoke("buttons.build",e,this.options.popover.link)},t.prototype.destroy=function(){this.$popover.remove()},t.prototype.update=function(){if(!this.context.invoke("editor.hasFocus"))return void this.hide();var t=this.context.invoke("editor.getLastRange");if(t.isCollapsed()&&t.isOnAnchor()){var n=Qt.ancestor(t.sc,Qt.isAnchor),i=e(n).attr("href");this.$popover.find("a").attr("href",i).html(i);var o=Qt.posFromPlaceholder(n);this.$popover.css({display:"block",left:o.left,top:o.top})}else this.hide()},t.prototype.hide=function(){this.$popover.hide()},t}(),Tn=function(){function t(t){this.context=t,this.ui=e.summernote.ui,this.$body=e(document.body),this.$editor=t.layoutInfo.editor,this.options=t.options,this.lang=this.options.langInfo}return t.prototype.initialize=function(){var e=this.options.dialogsInBody?this.$body:this.$editor,t="";if(this.options.maximumImageFileSize){var n=Math.floor(Math.log(this.options.maximumImageFileSize)/Math.log(1024)),i=1*(this.options.maximumImageFileSize/Math.pow(1024,n)).toFixed(2)+" "+" KMGTP"[n]+"B";t="<small>"+this.lang.image.maximumFileSize+" : "+i+"</small>"}var o=['<div class="form-group note-form-group note-group-select-from-files">','<label class="note-form-label">'+this.lang.image.selectFromFiles+"</label>",'<input class="note-image-input form-control-file note-form-control note-input" ',' type="file" name="files" accept="image/*" multiple="multiple" />',t,"</div>",'<div class="form-group note-group-image-url" style="overflow:auto;">','<label class="note-form-label">'+this.lang.image.url+"</label>",'<input class="note-image-url form-control note-form-control note-input ',' col-md-12" type="text" />',"</div>"].join(""),r='<input type="button" href="#" class="btn btn-primary note-btn note-btn-primary note-image-btn" value="'+this.lang.image.insert+'" disabled>';this.$dialog=this.ui.dialog({title:this.lang.image.insert,fade:this.options.dialogsFade,body:o,footer:r}).render().appendTo(e)},t.prototype.destroy=function(){this.ui.hideDialog(this.$dialog),this.$dialog.remove()},t.prototype.bindEnterKey=function(e,t){e.on("keypress",function(e){e.keyCode===tn.code.ENTER&&(e.preventDefault(),t.trigger("click"))})},t.prototype.show=function(){var e=this;this.context.invoke("editor.saveRange"),this.showImageDialog().then(function(t){e.ui.hideDialog(e.$dialog),e.context.invoke("editor.restoreRange"),"string"==typeof t?e.options.callbacks.onImageLinkInsert?e.context.triggerEvent("image.link.insert",t):e.context.
15invoke("editor.insertImage",t):e.context.invoke("editor.insertImagesOrCallback",t)}).fail(function(){e.context.invoke("editor.restoreRange")})},t.prototype.showImageDialog=function(){var t=this;return e.Deferred(function(e){var n=t.$dialog.find(".note-image-input"),i=t.$dialog.find(".note-image-url"),o=t.$dialog.find(".note-image-btn");t.ui.onDialogShown(t.$dialog,function(){t.context.triggerEvent("dialog.shown"),n.replaceWith(n.clone().on("change",function(t){e.resolve(t.target.files||t.target.value)}).val("")),i.on("input paste propertychange",function(){t.ui.toggleBtn(o,i.val())}).val(""),Lt.isSupportTouch||i.trigger("focus"),o.click(function(t){t.preventDefault(),e.resolve(i.val())}),t.bindEnterKey(i,o)}),t.ui.onDialogHidden(t.$dialog,function(){n.off(),i.off(),o.off(),"pending"===e.state()&&e.reject()}),t.ui.showDialog(t.$dialog)})},t}(),En=function(){function t(t){var n=this;this.context=t,this.ui=e.summernote.ui,this.editable=t.layoutInfo.editable[0],this.options=t.options,this.events={"summernote.disable":function(){n.hide()}}}return t.prototype.shouldInitialize=function(){return!jt.isEmpty(this.options.popover.image)},t.prototype.initialize=function(){this.$popover=this.ui.popover({className:"note-image-popover"}).render().appendTo(this.options.container);var e=this.$popover.find(".popover-content,.note-popover-content");this.context.invoke("buttons.build",e,this.options.popover.image)},t.prototype.destroy=function(){this.$popover.remove()},t.prototype.update=function(e,t){if(Qt.isImg(e)){var n=Qt.posFromPlaceholder(e),i=Qt.posFromPlaceholder(this.editable);this.$popover.css({display:"block",left:this.options.popatmouse?t.pageX-20:n.left,top:this.options.popatmouse?t.pageY:Math.min(n.top,i.top)})}else this.hide()},t.prototype.hide=function(){this.$popover.hide()},t}(),$n=function(){function t(t){var n=this;this.context=t,this.ui=e.summernote.ui,this.options=t.options,this.events={"summernote.mousedown":function(e,t){n.update(t.target)},"summernote.keyup summernote.scroll summernote.change":function(){n.update()},"summernote.disable":function(){n.hide()}}}return t.prototype.shouldInitialize=function(){return!jt.isEmpty(this.options.popover.table)},t.prototype.initialize=function(){this.$popover=this.ui.popover({className:"note-table-popover"}).render().appendTo(this.options.container);var e=this.$popover.find(".popover-content,.note-popover-content");this.context.invoke("buttons.build",e,this.options.popover.table),Lt.isFF&&document.execCommand("enableInlineTableEditing",!1,!1)},t.prototype.destroy=function(){this.$popover.remove()},t.prototype.update=function(e){if(this.context.isDisabled())return!1;var t=Qt.isCell(e);if(t){var n=Qt.posFromPlaceholder(e);this.$popover.css({display:"block",left:n.left,top:n.top})}else this.hide();return t},t.prototype.hide=function(){this.$popover.hide()},t}(),In=function(){function t(t){this.context=t,this.ui=e.summernote.ui,this.$body=e(document.body),this.$editor=t.layoutInfo.editor,this.options=t.options,this.lang=this.options.langInfo}return t.prototype.initialize=function(){ 16var e=this.options.dialogsInBody?this.$body:this.$editor,t=['<div class="form-group note-form-group row-fluid">','<label class="note-form-label">'+this.lang.video.url+' <small class="text-muted">'+this.lang.video.providers+"</small></label>",'<input class="note-video-url form-control note-form-control note-input" type="text" />',"</div>"].join(""),n='<input type="button" href="#" class="btn btn-primary note-btn note-btn-primary note-video-btn" value="'+this.lang.video.insert+'" disabled>';this.$dialog=this.ui.dialog({title:this.lang.video.insert,fade:this.options.dialogsFade,body:t,footer:n}).render().appendTo(e)},t.prototype.destroy=function(){this.ui.hideDialog(this.$dialog),this.$dialog.remove()},t.prototype.bindEnterKey=function(e,t){e.on("keypress",function(e){e.keyCode===tn.code.ENTER&&(e.preventDefault(),t.trigger("click"))})},t.prototype.createVideoNode=function(t){var n,i=/\/\/(?:www\.)?(?:youtu\.be\/|youtube\.com\/(?:embed\/|v\/|watch\?v=|watch\?.+&v=))([\w|-]{11})(?:(?:[\?&]t=)(\S+))?$/,o=/^(?:(\d+)h)?(?:(\d+)m)?(?:(\d+)s)?$/,r=t.match(i),s=/(?:www\.|\/\/)instagram\.com\/p\/(.[a-zA-Z0-9_-]*)/,a=t.match(s),l=/\/\/vine\.co\/v\/([a-zA-Z0-9]+)/,c=t.match(l),u=/\/\/(player\.)?vimeo\.com\/([a-z]*\/)*(\d+)[?]?.*/,d=t.match(u),h=/.+dailymotion.com\/(video|hub)\/([^_]+)[^#]*(#video=([^_&]+))?/,p=t.match(h),f=/\/\/v\.youku\.com\/v_show\/id_(\w+)=*\.html/,m=t.match(f),g=/\/\/v\.qq\.com.*?vid=(.+)/,v=t.match(g),y=/\/\/v\.qq\.com\/x?\/?(page|cover).*?\/([^\/]+)\.html\??.*/,b=t.match(y),w=/^.+.(mp4|m4v)$/,k=t.match(w),C=/^.+.(ogg|ogv)$/,x=t.match(C),_=/^.+.(webm)$/,S=t.match(_),T=/(?:www\.|\/\/)facebook\.com\/([^\/]+)\/videos\/([0-9]+)/,E=t.match(T);if(r&&11===r[1].length){var $=r[1],I=0;if(void 0!==r[2]){var P=r[2].match(o);if(P)for(var D=[3600,60,1],A=0,R=D.length;A<R;A++)I+=void 0!==P[A+1]?D[A]*parseInt(P[A+1],10):0}n=e("<iframe>").attr("frameborder",0).attr("src","//www.youtube.com/embed/"+$+(I>0?"?start="+I:"")).attr("width","640").attr("height","360")}else if(a&&a[0].length)n=e("<iframe>").attr("frameborder",0).attr("src","https://instagram.com/p/"+a[1]+"/embed/").attr("width","612").attr("height","710").attr("scrolling","no").attr("allowtransparency","true");else if(c&&c[0].length)n=e("<iframe>").attr("frameborder",0).attr("src",c[0]+"/embed/simple").attr("width","600").attr("height","600").attr("class","vine-embed");else if(d&&d[3].length)n=e("<iframe webkitallowfullscreen mozallowfullscreen allowfullscreen>").attr("frameborder",0).attr("src","//player.vimeo.com/video/"+d[3]).attr("width","640").attr("height","360");else if(p&&p[2].length)n=e("<iframe>").attr("frameborder",0).attr("src","//www.dailymotion.com/embed/video/"+p[2]).attr("width","640").attr("height","360");else if(m&&m[1].length)n=e("<iframe webkitallowfullscreen mozallowfullscreen allowfullscreen>").attr("frameborder",0).attr("height","498").attr("width","510").attr("src","//player.youku.com/embed/"+m[1]);else if(v&&v[1].length||b&&b[2].length){var N=v&&v[1].length?v[1]:b[2];n=e("<iframe webkitallowfullscreen mozallowfullscreen allowfullscreen>").attr("frameborder",0).attr("height","310").attr("width","500").attr("src","http://v.qq.com/iframe/player.html?vid="+N+"&auto=0")}else if(k||x||S)n=e("<video controls>").attr("src",t).attr("width","640").attr("height","360");else{if(!E||!E[0].length)return!1;n=e("<iframe>").attr("frameborder",0).attr("src","https://www.facebook.com/plugins/video.php?href="+encodeURIComponent(E[0])+"&show_text=0&width=560").attr("width","560").attr("height","301").attr("scrolling","no").attr("allowtransparency","true")}return n.addClass("note-video-clip"),n[0]}
16,t.prototype.show=function(){var e=this,t=this.context.invoke("editor.getSelectedText");this.context.invoke("editor.saveRange"),this.showVideoDialog(t).then(function(t){e.ui.hideDialog(e.$dialog),e.context.invoke("editor.restoreRange");var n=e.createVideoNode(t);n&&e.context.invoke("editor.insertNode",n)}).fail(function(){e.context.invoke("editor.restoreRange")})},t.prototype.showVideoDialog=function(t){var n=this;return e.Deferred(function(e){var t=n.$dialog.find(".note-video-url"),i=n.$dialog.find(".note-video-btn");n.ui.onDialogShown(n.$dialog,function(){n.context.triggerEvent("dialog.shown"),t.on("input paste propertychange",function(){n.ui.toggleBtn(i,t.val())}),Lt.isSupportTouch||t.trigger("focus"),i.click(function(n){n.preventDefault(),e.resolve(t.val())}),n.bindEnterKey(t,i)}),n.ui.onDialogHidden(n.$dialog,function(){t.off(),i.off(),"pending"===e.state()&&e.reject()}),n.ui.showDialog(n.$dialog)})},t}(),Pn=function(){function t(t){this.context=t,this.ui=e.summernote.ui,this.$body=e(document.body),this.$editor=t.layoutInfo.editor,this.options=t.options,this.lang=this.options.langInfo}return t.prototype.initialize=function(){var e=this.options.dialogsInBody?this.$body:this.$editor,t=['<p class="text-center">','<a href="http://summernote.org/" target="_blank">Summernote 0.8.12</a> · ','<a href="https://github.com/summernote/summernote" target="_blank">Project</a> · ','<a href="https://github.com/summernote/summernote/issues" target="_blank">Issues</a>',"</p>"].join("");this.$dialog=this.ui.dialog({title:this.lang.options.help,fade:this.options.dialogsFade,body:this.createShortcutList(),footer:t,callback:function(e){e.find(".modal-body,.note-modal-body").css({"max-height":300,overflow:"scroll"})}}).render().appendTo(e)},t.prototype.destroy=function(){this.ui.hideDialog(this.$dialog),this.$dialog.remove()},t.prototype.createShortcutList=function(){var t=this,n=this.options.keyMap[Lt.isMac?"mac":"pc"];return Object.keys(n).map(function(i){var o=n[i],r=e('<div><div class="help-list-item"/></div>');return r.append(e("<label><kbd>"+i+"</kdb></label>").css({width:180,"margin-right":10})).append(e("<span/>").html(t.context.memo("help."+o)||o)),r.html()}).join("")},t.prototype.showHelpDialog=function(){var t=this;return e.Deferred(function(e){t.ui.onDialogShown(t.$dialog,function(){t.context.triggerEvent("dialog.shown"),e.resolve()}),t.ui.showDialog(t.$dialog)}).promise()},t.prototype.show=function(){var e=this;this.context.invoke("editor.saveRange"),this.showHelpDialog().then(function(){e.context.invoke("editor.restoreRange")})},t}(),Dn=function(){function t(t){var n=this;this.context=t,this.ui=e.summernote.ui,this.options=t.options,this.events={"summernote.keyup summernote.mouseup summernote.scroll":function(){n.update()},"summernote.disable summernote.change summernote.dialog.shown":function(){n.hide()},"summernote.focusout":function(e,t){Lt.isFF||t.relatedTarget&&Qt.ancestor(t.relatedTarget,Ot.eq(n.$popover[0]))||n.hide()}}}return t.prototype.shouldInitialize=function(){return this.options.airMode&&!jt.isEmpty(this.options.popover.air)},t.prototype.initialize=function(){this.$popover=this.ui.popover({className:"note-air-popover"}).render().appendTo(this.options.container);var e=this.$popover.find(".popover-content");this.context.invoke("buttons.build",e,this.options.popover.air)},t.prototype.destroy=function(){this.$popover.remove()},t.prototype.update=function(){var e=this.context.invoke("editor.currentStyle");if(e.range&&!e.range.isCollapsed()){var t=jt.last(e.range.getClientRects());if(t){var n=Ot.rect2bnd(t);this.$popover.css({display:"block",left:Math.max(n.left+n.width/2,0)-20,top:n.top+n.height}),this.context.invoke("buttons.updateCurrentStyle",this.$popover)}}else this.hide()},t.prototype.hide=function(){this.$popover.hide()},t}(),An=function(){function t(t){var n=this;this.context=t,this.ui=e.summernote.ui,this.$editable=t.layoutInfo.editable,this.options=t.options,this.hint=this.options.hint||[],this.direction=this.options.hintDirection||"bottom",this.hints=Array.isArray(this.hint)?this.hint:[this.hint],this.events={"summernote.keyup":function(e,t){t.isDefaultPrevented()||n.handleKeyup(t)},"summernote.keydown":function(e,t){n.handleKeydown(t)},"summernote.disable summernote.dialog.shown":function(){n.hide()}}}return t.prototype.shouldInitialize=function(){return this.hints.length>0},t.prototype.initialize=function(){var t=this;this.lastWordRange=null,this.$popover=this.ui.popover({className:"note-hint-popover",hideArrow:!0,direction:""}).render().appendTo(this.options.container),this.$popover.hide(),this.$content=this.$popover.find(".popover-content,.note-popover-content"),this.$content.on("click",".note-hint-item",function(n){t.$content.find(".active").removeClass("active"),e(n.currentTarget).addClass("active"),t.replace()})},t.prototype.destroy=function(){this.$popover.remove()},t.prototype.selectItem=function(e){this.$content.find(".active").removeClass("active"),e.addClass("active"),this.$content[0].scrollTop=e[0].offsetTop-this.$content.innerHe
16ight()/2},t.prototype.moveDown=function(){var e=this.$content.find(".note-hint-item.active"),t=e.next();if(t.length)this.selectItem(t);else{var n=e.parent().next();n.length||(n=this.$content.find(".note-hint-group").first()),this.selectItem(n.find(".note-hint-item").first())}},t.prototype.moveUp=function(){var e=this.$content.find(".note-hint-item.active"),t=e.prev();if(t.length)this.selectItem(t);else{var n=e.parent().prev();n.length||(n=this.$content.find(".note-hint-group").last()),this.selectItem(n.find(".note-hint-item").last())}},t.prototype.replace=function(){var e=this.$content.find(".note-hint-item.active");if(e.length){var t=this.nodeFromItem(e);this.lastWordRange.insertNode(t),Jt.createFromNode(t).collapse().select(),this.lastWordRange=null,this.hide(),this.context.triggerEvent("change",this.$editable.html(),this.$editable[0]),this.context.invoke("editor.focus")}},t.prototype.nodeFromItem=function(e){var t=this.hints[e.data("index")],n=e.data("item"),i=t.content?t.content(n):n;return"string"==typeof i&&(i=Qt.createText(i)),i},t.prototype.createItemTemplates=function(t,n){var i=this.hints[t];return n.map(function(n,o){var r=e('<div class="note-hint-item"/>');return r.append(i.template?i.template(n):n+""),r.data({index:t,item:n}),r})},t.prototype.handleKeydown=function(e){this.$popover.is(":visible")&&(e.keyCode===tn.code.ENTER?(e.preventDefault(),this.replace()):e.keyCode===tn.code.UP?(e.preventDefault(),this.moveUp()):e.keyCode===tn.code.DOWN&&(e.preventDefault(),this.moveDown()))},t.prototype.searchKeyword=function(e,t,n){var i=this.hints[e];if(i&&i.match.test(t)&&i.search){var o=i.match.exec(t);i.search(o[1],n)}else n()},t.prototype.createGroup=function(t,n){var i=this,o=e('<div class="note-hint-group note-hint-group-'+t+'"/>');return this.searchKeyword(t,n,function(e){e=e||[],e.length&&(o.html(i.createItemTemplates(t,e)),i.show())}),o},t.prototype.handleKeyup=function(e){var t=this;if(!jt.contains([tn.code.ENTER,tn.code.UP,tn.code.DOWN],e.keyCode)){var n=this.context.invoke("editor.getLastRange").getWordRange(),i=n.toString();if(this.hints.length&&i){this.$content.empty();var o=Ot.rect2bnd(jt.last(n.getClientRects()));o&&(this.$popover.hide(),this.lastWordRange=n,this.hints.forEach(function(e,n){e.match.test(i)&&t.createGroup(n,i).appendTo(t.$content)}),this.$content.find(".note-hint-item:first").addClass("active"),"top"===this.direction?this.$popover.css({left:o.left,top:o.top-this.$popover.outerHeight()-5}):this.$popover.css({left:o.left,top:o.top+o.height+5}))}else this.hide()}},t.prototype.show=function(){this.$popover.show()},t.prototype.hide=function(){this.$popover.hide()},t}();e.summernote=e.extend(e.summernote,{version:"0.8.12",plugins:{},dom:Qt,range:Jt,options:{langInfo:e.summernote.lang["en-US"],modules:{editor:un,clipboard:dn,dropzone:hn,codeview:pn,statusbar:fn,fullscreen:mn,handle:gn,hintPopover:An,autoLink:yn,autoSync:bn,autoReplace:wn,placeholder:kn,buttons:Cn,toolbar:xn,linkDialog:_n,linkPopover:Sn,imageDialog:Tn,imagePopover:En,tablePopover:$n,videoDialog:In,helpDialog:Pn,airPopover:Dn},buttons:{},lang:"en-US",followingToolbar:!1,otherStaticBar:"",toolbar:[["style",["style"]],["font",["bold","underline","clear"]],["fontname",["fontname"]],["color",["color"]],["para",["ul","ol","paragraph"]],["table",["table"]],["insert",["link","picture","video"]],["view",["fullscreen","codeview","help"]]],popatmouse:!0,popover:{image:[["resize",["resizeFull","resizeHalf","resizeQuarter","resizeNone"]],["float",["floatLeft","floatRight","floatNone"]],["remove",["removeMedia"]]],link:[["link",["linkDialogShow","unlink"]]],table:[["add",["addRowDown","addRowUp","addColLeft","addColRight"]],["delete",["deleteRow","deleteCol","deleteTable"]]],air:[["color",["color"]],["font",["bold","underline","clear"]],["para",["ul","paragraph"]],["table",["table"]],["insert",["link","picture"]]]},airMode:!1,width:null,height:null,linkTargetBlank:!0,focus:!1,tabSize:4,styleWithSpan:!0,shortcuts:!0,textareaAutoSync:!0,hintDirection:"bottom",tooltip:"auto",container:"body",maxTextLength:0,blockquoteBreakingLevel:2,spellCheck:!0,styleTags:["p","blockquote","pre","h1","h2","h3","h4","h5","h6"],fontNames:["Arial","Arial Black","Comic Sans MS","Courier New","Helvetica Neue","Helvetica","Impact","Lucida Grande","Tahoma","Times New Roman","Verdana"],fontNamesIgnoreCheck:[],fontSizes:["8","9","10","11","12","14","18","24","36"],colors:[["#000000","#424242","#636363","#9C9C94","#CEC6CE","#EFEFEF","#F7F7F7","#FFFFFF"],["#FF0000","#FF9C00","#FFFF00","#00FF00","#00FFFF","#0000FF","#9C00FF","#FF00FF"],["#F7C6CE","#FFE7CE","#FFEFC6","#D6EFD6","#CEDEE7","#CEE7F7","#D6D6E7","#E7D6DE"],["#E79C9C","#FFC69C","#FFE79C","#B5D6A5","#A5C6CE","#9CC6EF","#B5A5D6","#D6A5BD"],["#E76363","#F7AD6B","#FFD663","#94BD7B","#73A5AD","#6BADDE","#8C7BC6","#C67BA5"],["#CE0000","#E79439","#EFC631","#6BA54A","#4A7B8C","#3984C6","#634AA5","#A54A7B"],["#9C0000","#B56308","#BD9400","#397B21","#104A5A","#085294","#311873","#731842"],["#630000","#7B3900","#846300","#295218","#083139","#003163","#21104A","#4A1031"]],colorsName:[["Black","Tundora","Dove Gray","Star Dust","Pale Slate","Gallery","Alabaster","White"],["Red","Orange Peel","Yellow","Green","Cyan","Blue","Electric Violet","Magenta"],["Azalea","Karry","Egg White","Zanah","Botticelli","Tropical Blue","Mischka","Twilight"],["Tonys Pink","Peach Orange","Cream Brulee","Sprout","Casper","Perano","Cold Purple","Careys Pink"],["Mandy","Rajah","Dandelion","Olivine","Gulf Stream","Viking","Blue Marguerite","Puce"],["Guardsman Red","Fire Bush","Golden Dream","Chelsea Cucumber","Smalt Blue","Boston Blue","Butterfly Bush","Cadillac"],["Sangria","Mai Tai","Buddha Gold","Forest Green","Eden","Venice Blue","Meteorite","Claret"],["Rosewood","Cinnamon","Olive","Parsley","Tiber","Midnight Blue","Valentino","Loulou"]],colorButton:{foreColor:"#000000",backColor:"#FFFF00"},lineHeights:["1.0","1.2","1.4","1.5","1.6","1.8","2.0","3.0"],tableClassName:"table table-bordered",insertTableMaxSize:{col:10,row:10}
16,dialogsInBody:!1,dialogsFade:!1,maximumImageFileSize:null,callbacks:{onBeforeCommand:null,onBlur:null,onBlurCodeview:null,onChange:null,onChangeCodeview:null,onDialogShown:null,onEnter:null,onFocus:null,onImageLinkInsert:null,onImageUpload:null,onImageUploadError:null,onInit:null,onKeydown:null,onKeyup:null,onMousedown:null,onMouseup:null,onPaste:null,onScroll:null},codemirror:{mode:"text/html",htmlMode:!0,lineNumbers:!0},codeviewFilter:!1,codeviewFilterRegex:/<\/*(?:applet|b(?:ase|gsound|link)|embed|frame(?:set)?|ilayer|l(?:ayer|ink)|meta|object|s(?:cript|tyle)|t(?:itle|extarea)|xml)[^>]*?>/gi,codeviewIframeFilter:!0,codeviewIframeWhitelistSrc:[],codeviewIframeWhitelistSrcBase:["www.youtube.com","www.youtube-nocookie.com","www.facebook.com","vine.co","instagram.com","player.vimeo.com","www.dailymotion.com","player.youku.com","v.qq.com"],keyMap:{pc:{ENTER:"insertParagraph","CTRL+Z":"undo","CTRL+Y":"redo",TAB:"tab","SHIFT+TAB":"untab","CTRL+B":"bold","CTRL+I":"italic","CTRL+U":"underline","CTRL+SHIFT+S":"strikethrough","CTRL+BACKSLASH":"removeFormat","CTRL+SHIFT+L":"justifyLeft","CTRL+SHIFT+E":"justifyCenter","CTRL+SHIFT+R":"justifyRight","CTRL+SHIFT+J":"justifyFull","CTRL+SHIFT+NUM7":"insertUnorderedList","CTRL+SHIFT+NUM8":"insertOrderedList","CTRL+LEFTBRACKET":"outdent","CTRL+RIGHTBRACKET":"indent","CTRL+NUM0":"formatPara","CTRL+NUM1":"formatH1","CTRL+NUM2":"formatH2","CTRL+NUM3":"formatH3","CTRL+NUM4":"formatH4","CTRL+NUM5":"formatH5","CTRL+NUM6":"formatH6","CTRL+ENTER":"insertHorizontalRule","CTRL+K":"linkDialog.show"},mac:{ENTER:"insertParagraph","CMD+Z":"undo","CMD+SHIFT+Z":"redo",TAB:"tab","SHIFT+TAB":"untab","CMD+B":"bold","CMD+I":"italic","CMD+U":"underline","CMD+SHIFT+S":"strikethrough","CMD+BACKSLASH":"removeFormat","CMD+SHIFT+L":"justifyLeft","CMD+SHIFT+E":"justifyCenter","CMD+SHIFT+R":"justifyRight","CMD+SHIFT+J":"justifyFull","CMD+SHIFT+NUM7":"insertUnorderedList","CMD+SHIFT+NUM8":"insertOrderedList","CMD+LEFTBRACKET":"outdent","CMD+RIGHTBRACKET":"indent","CMD+NUM0":"formatPara","CMD+NUM1":"formatH1","CMD+NUM2":"formatH2","CMD+NUM3":"formatH3","CMD+NUM4":"formatH4","CMD+NUM5":"formatH5","CMD+NUM6":"formatH6","CMD+ENTER":"insertHorizontalRule","CMD+K":"linkDialog.show"}},icons:{align:"note-icon-align",alignCenter:"note-icon-align-center",alignJustify:"note-icon-align-justify",alignLeft:"note-icon-align-left",alignRight:"note-icon-align-right",rowBelow:"note-icon-row-below",colBefore:"note-icon-col-before",colAfter:"note-icon-col-after",rowAbove:"note-icon-row-above",rowRemove:"note-icon-row-remove",colRemove:"note-icon-col-remove",indent:"note-icon-align-indent",outdent:"note-icon-align-outdent",arrowsAlt:"note-icon-arrows-alt",bold:"note-icon-bold",caret:"note-icon-caret",circle:"note-icon-circle",close:"note-icon-close",code:"note-icon-code",eraser:"note-icon-eraser",floatLeft:"note-icon-float-left",floatRight:"note-icon-float-right",font:"note-icon-font",frame:"note-icon-frame",italic:"note-icon-italic",link:"note-icon-link",unlink:"note-icon-chain-broken",magic:"note-icon-magic",menuCheck:"note-icon-menu-check",minus:"note-icon-minus",orderedlist:"note-icon-orderedlist",pencil:"note-icon-pencil",picture:"note-icon-picture",question:"note-icon-question",redo:"note-icon-redo",rollback:"note-icon-rollback",square:"note-icon-square",strikethrough:"note-icon-strikethrough",subscript:"note-icon-subscript",superscript:"note-icon-superscript",table:"note-icon-table",textHeight:"note-icon-text-height",trash:"note-icon-trash",underline:"note-icon-underline",undo:"note-icon-undo",unorderedlist:"note-icon-unorderedlist",video:"note-icon-video"}}}),e.summernote=e.extend(e.summernote,{ui:St})}),function(e){e.extend(e.summernote.lang,{"ru-RU":{font:{bold:"ÐолÑжиÑнÑй",italic:"ÐÑÑÑив",underline:"ÐодÑÑÑкнÑÑÑй",clear:"УбÑаÑÑ ÑÑили ÑÑиÑÑа",height:"ÐÑÑоÑа линии",name:"ШÑиÑÑ",strikethrough:"ÐаÑÑÑкнÑÑÑй",subscript:"Ðижний индекÑ",superscript:"ÐеÑÑ
ний индекÑ",size:"Ð Ð°Ð·Ð¼ÐµÑ ÑÑиÑÑа"},image:{image:"ÐаÑÑинка",insert:"ÐÑÑавиÑÑ ÐºÐ°ÑÑинкÑ",resizeFull:"ÐоÑÑÑановиÑÑ ÑазмеÑ",resizeHalf:"УменÑÑиÑÑ Ð´Ð¾ 50%",resizeQuarter:"УменÑÑиÑÑ Ð´Ð¾ 25%",floatLeft:"РаÑположиÑÑ Ñлева",floatRight:"РаÑположиÑÑ ÑпÑава",floatNone:"РаÑположение по-ÑмолÑаниÑ",shapeRounded:"ФоÑма: ÐакÑÑгленнаÑ",shapeCircle:"ФоÑма: ÐÑÑг",shapeThumbnail:"ФоÑма: ÐиниаÑÑÑа",shapeNone:"ФоÑма: ÐеÑ",dragImageHere:"ÐеÑеÑаÑиÑе ÑÑда каÑÑинкÑ",dropImage:"ÐеÑеÑаÑиÑе каÑÑинкÑ",selectFromFiles:"ÐÑбÑаÑÑ Ð¸Ð· Ñайлов",maximumFileSize:"ÐакÑималÑнÑй ÑÐ°Ð·Ð¼ÐµÑ Ñайла",maximumFileSizeError:"ÐÑевÑÑен макÑималÑнÑй ÑÐ°Ð·Ð¼ÐµÑ Ñайла",url:"URL каÑÑинки",remove:"УдалиÑÑ ÐºÐ°ÑÑинкÑ",original:"ÐÑигинал"},video:{video:"Ðидео",videoLink:"СÑÑлка на видео",insert:"ÐÑÑавиÑÑ Ð²Ð¸Ð´ÐµÐ¾",url:"URL видео",providers:"(YouTube, Vimeo, Vine, Instagram, DailyMotion или Youku)"},link:{link:"СÑÑлка",insert:"ÐÑÑавиÑÑ ÑÑÑлкÑ",unlink:"УбÑаÑÑ ÑÑÑлкÑ",edit:"РедакÑиÑоваÑÑ",textToDisplay:"ÐÑобÑажаемÑй ÑекÑÑ",url:"URL Ð´Ð»Ñ Ð¿ÐµÑеÑ
ода",openInNewWindow:"ÐÑкÑÑваÑÑ Ð² новом окне"},table:{table:"ТаблиÑа",addRowAbove:"ÐобавиÑÑ ÑÑÑÐ¾ÐºÑ Ð²ÑÑе",addRowBelow:"ÐобавиÑÑ ÑÑÑÐ¾ÐºÑ Ð½Ð¸Ð¶Ðµ",addColLeft:"ÐобавиÑÑ ÑÑÐ¾Ð»Ð±ÐµÑ Ñлева",addColRight:"ÐобавиÑÑ ÑÑÐ¾Ð»Ð±ÐµÑ ÑпÑава",delRow:"УдалиÑÑ ÑÑÑокÑ",delCol:"УдалиÑÑ ÑÑолбеÑ",delTable:"УдалиÑÑ ÑаблиÑÑ"},hr:{insert:"ÐÑÑавиÑÑ Ð³Ð¾ÑизонÑалÑнÑÑ Ð»Ð¸Ð
16½Ð¸Ñ"},style:{style:"СÑилÑ",p:"ÐоÑмалÑнÑй",blockquote:"ЦиÑаÑа",pre:"Ðод",h1:"Ðаголовок 1",h2:"Ðаголовок 2",h3:"Ðаголовок 3",h4:"Ðаголовок 4",h5:"Ðаголовок 5",h6:"Ðаголовок 6"},lists:{unordered:"ÐаÑкиÑованнÑй ÑпиÑок",ordered:"ÐÑмеÑованнÑй ÑпиÑок"},options:{help:"ÐомоÑÑ",fullscreen:"Ðа веÑÑ ÑкÑан",codeview:"ÐÑÑ
однÑй код"},paragraph:{paragraph:"ÐаÑагÑаÑ",outdent:"УменÑÑиÑÑ Ð¾ÑÑÑÑп",indent:"УвелиÑиÑÑ Ð¾ÑÑÑÑп",left:"ÐÑÑовнÑÑÑ Ð¿Ð¾ Ð»ÐµÐ²Ð¾Ð¼Ñ ÐºÑаÑ",center:"ÐÑÑовнÑÑÑ Ð¿Ð¾ ÑенÑÑÑ",right:"ÐÑÑовнÑÑÑ Ð¿Ð¾ пÑÐ°Ð²Ð¾Ð¼Ñ ÐºÑаÑ",justify:"РаÑÑÑнÑÑÑ Ð¿Ð¾ ÑиÑине"},color:{recent:"ÐоÑледний ÑвеÑ",more:"ÐÑе ÑвеÑа",background:"Ð¦Ð²ÐµÑ Ñона",foreground:"Ð¦Ð²ÐµÑ ÑÑиÑÑа",transparent:"ÐÑозÑаÑнÑй",setTransparent:"СделаÑÑ Ð¿ÑозÑаÑнÑм",reset:"СбÑоÑ",resetToDefault:"ÐоÑÑÑановиÑÑ ÑмолÑаниÑ"},shortcut:{shortcuts:"СоÑеÑÐ°Ð½Ð¸Ñ ÐºÐ»Ð°Ð²Ð¸Ñ",close:"ÐакÑÑÑÑ",textFormatting:"ФоÑмаÑиÑование ÑекÑÑа",action:"ÐейÑÑвие",paragraphFormatting:"ФоÑмаÑиÑование паÑагÑаÑа",documentStyle:"СÑÐ¸Ð»Ñ Ð´Ð¾ÐºÑменÑа",extraKeys:"ÐополниÑелÑнÑе комбинаÑии"},help:{insertParagraph:"ÐовÑй паÑагÑаÑ",undo:"ÐÑмениÑÑ Ð¿Ð¾ÑледнÑÑ ÐºÐ¾Ð¼Ð°Ð½Ð´Ñ",redo:"ÐовÑоÑиÑÑ Ð¿Ð¾ÑледнÑÑ ÐºÐ¾Ð¼Ð°Ð½Ð´Ñ",tab:"Tab",untab:"Untab",bold:'УÑÑановиÑÑ ÑÑÐ¸Ð»Ñ "ÐиÑнÑй"',italic:'УÑÑановиÑÑ ÑÑÐ¸Ð»Ñ "ÐаклоннÑй"',underline:'УÑÑановиÑÑ ÑÑÐ¸Ð»Ñ "ÐодÑеÑкнÑÑÑй"',strikethrough:'УÑÑановиÑÑ ÑÑÐ¸Ð»Ñ "ÐаÑеÑкнÑÑÑй"',removeFormat:"СбоÑÑиÑÑ ÑÑили",justifyLeft:"ÐÑÑовнÑÑÑ Ð¿Ð¾ Ð»ÐµÐ²Ð¾Ð¼Ñ ÐºÑаÑ",justifyCenter:"ÐÑÑовнÑÑÑ Ð¿Ð¾ ÑенÑÑÑ",justifyRight:"ÐÑÑовнÑÑÑ Ð¿Ð¾ пÑÐ°Ð²Ð¾Ð¼Ñ ÐºÑаÑ",justifyFull:"РаÑÑÑнÑÑÑ Ð½Ð° вÑÑ ÑиÑинÑ",insertUnorderedList:"ÐклÑÑиÑÑ/оÑклÑÑиÑÑ Ð¼Ð°ÑкиÑованнÑй ÑпиÑок",insertOrderedList:"ÐклÑÑиÑÑ/оÑклÑÑиÑÑ Ð½ÑмеÑованнÑй ÑпиÑок",outdent:"УбÑаÑÑ Ð¾ÑÑÑÑп в ÑекÑÑем паÑагÑаÑе",indent:"ÐÑÑавиÑÑ Ð¾ÑÑÑÑп в ÑекÑÑем паÑагÑаÑе",formatPara:"ФоÑмаÑиÑоваÑÑ ÑекÑÑий блок как паÑагÑÐ°Ñ (Ñег P)",formatH1:"ФоÑмаÑиÑоваÑÑ ÑекÑÑий блок как H1",formatH2:"ФоÑмаÑиÑоваÑÑ ÑекÑÑий блок как H2",formatH3:"ФоÑмаÑиÑоваÑÑ ÑекÑÑий блок как H3",formatH4:"ФоÑмаÑиÑоваÑÑ ÑекÑÑий блок как H4",formatH5:"ФоÑмаÑиÑоваÑÑ ÑекÑÑий блок как H5",formatH6:"ФоÑмаÑиÑоваÑÑ ÑекÑÑий блок как H6",insertHorizontalRule:"ÐÑÑавиÑÑ Ð³Ð¾ÑизонÑалÑнÑÑ ÑеÑÑÑ","linkDialog.show":'ÐоказаÑÑ Ð´Ð¸Ð°Ð»Ð¾Ð³ "СÑÑлка"'},history:{undo:"ÐÑмениÑÑ",redo:"ÐовÑоÑ"},specialChar:{specialChar:"SPECIAL CHARACTERS",select:"Select Special characters"}}})}(jQuery),function(e){e.extend(e.summernote.lang,{"kk-KK":{font:{bold:"ÐÑан",italic:"ÐÑÑÑив",underline:"ÐÑÑÑ ÑÑзÑлÒан",clear:"ШÑиÑÑ ÑÑилÑдеÑÑн алÑп ÑаÑÑаÑ",height:"СÑзÑÒÑÑÒ£ биÑкÑÑгÑ",name:"ШÑиÑÑ",strikethrough:"СÑзÑлÒан",subscript:"Ð¢Ó©Ð¼ÐµÐ½Ð³Ñ Ð¸Ð½Ð´ÐµÐºÑ",superscript:"ÐоÒаÑÒÑ Ð¸Ð½Ð´ÐµÐºÑ",size:"ШÑиÑÑ Ó©Ð»ÑемÑ"},image:{image:"СÑÑеÑ",insert:"СÑÑÐµÑ ÒоÑ",resizeFull:"ӨлÑемÑн ÒалпÑна келÑÑÑÑ",resizeHalf:"50%-Òа дейÑн кÑÑÑÑейÑÑ",resizeQuarter:"25%-Òа дейÑн кÑÑÑÑейÑÑ",floatLeft:"Сол жаÒÑнан оÑналаÑÑÑÑÑ",floatRight:"ÐÒ£ жаÒÑнан оÑналаÑÑÑÑÑ",floatNone:"ÓÐ´ÐµÐ¿ÐºÑ ÒÐ°Ð»Ð¿Ñ Ð±Ð¾Ð¹ÑнÑа оÑналаÑÑÑÑÑ",shapeRounded:"ФоÑмаÑÑ: ÐөңгелекÑелген",shapeCircle:"ФоÑмаÑÑ: Ðөңгелек",shapeThumbnail:"ФоÑмаÑÑ: ÐиниаÑÑÑа",shapeNone:"ФоÑмаÑÑ: ÐоÒ",dragImageHere:"Ðұл жеÑÐ
16³Ðµ ÑÑÑеÑÑÑ Óкеп ÒойÑÒ£Ñз",dropImage:"СÑÑеÑÑÑ Óкеп ÒойÑÒ£Ñз",selectFromFiles:"Ð¤Ð°Ð¹Ð»Ð´Ñ ÑаңдаÑ",maximumFileSize:"ФайлдÑÒ£ макÑÐ¸Ð¼Ð°Ð»Ð´Ñ Ó©Ð»ÑемÑ",maximumFileSizeError:"ФайлдÑÒ£ макÑÐ¸Ð¼Ð°Ð»Ð´Ñ Ó©Ð»ÑемÑнен аÑÑÑÒ",url:"URL ÑÑÑеÑÑеÑ",remove:"СÑÑеÑÑÑ Ð¶Ð¾Ñ",original:"ТүпнұÑÒа"},video:{video:"Ðейне",videoLink:"Ðейнеге ÑÑлÑеме",insert:"Ðейне ÒоÑ",url:"URL бейне",providers:"(YouTube, Vimeo, Vine, Instagram, DailyMotion немеÑе Youku)"},link:{link:"СÑлÑеме",insert:"СÑлÑеме ÒоÑ",unlink:"СÑлÑÐµÐ¼ÐµÐ½Ñ Ð°Ð»Ñп ÑаÑÑаÑ",edit:"ӨзгеÑÑÑ",textToDisplay:"ÐÓ©ÑÑеÑÑлеÑÑн мÓÑÑн",url:"Ó¨ÑÑге аÑналÒан URL",openInNewWindow:"Ðаңа ÑеÑезеде аÑÑ"},table:{table:"ÐеÑÑе",addRowAbove:"ÐоÒаÑÑдан жол ÒоÑÑ",addRowBelow:"Төменнен жол ÒоÑÑ",addColLeft:"Сол жаÒÑнан баÒан ÒоÑÑ",addColRight:"ÐÒ£ жаÒÑнан баÒан ÒоÑÑ",delRow:"ÐÐ¾Ð»Ð´Ñ Ð¶Ð¾Ñ",delCol:"ÐаÒÐ°Ð½Ð´Ñ Ð¶Ð¾Ñ",delTable:"ÐеÑÑÐµÐ½Ñ Ð¶Ð¾Ñ"},hr:{insert:"Ðөлденең ÑÑзÑÒ ÒоÑ"},style:{style:"СÑилÑ",p:"ÒалÑпÑÑ",blockquote:"ÐÓйекÑөз",pre:"Ðод",h1:"1-аÑаÑ",h2:"2-аÑаÑ",h3:"3-аÑаÑ",h4:"4-аÑаÑ",h5:"5-аÑаÑ",h6:"6-аÑаÑ"},lists:{unordered:"ТаңбаланÒан ÑÑзÑм",ordered:"ÐөмÑÑлеÑген ÑÑзÑм"},options:{help:"Ðөмек",fullscreen:"ТолÑÒ ÑкÑанÒа ÑÑÒаÑÑ",codeview:"ШÑÒÑÑ ÐºÐ¾Ð´Ñ"},paragraph:{paragraph:"ÐаÑагÑаÑ",outdent:"ШегÑнÑÑÑÑ Ð°Ð·Ð°Ð¹ÑÑ",indent:"ШегÑнÑÑÑÑ Ð°ÑÑÑÑÑÑ",left:"Сол жаÒÑнан ÑегÑÑÑеÑ",center:"ÐÑÑаÑÑнан ÑегÑÑÑеÑ",right:"ÐÒ£ жаÒÑнан ÑегÑÑÑеÑ",justify:"ÐÐ½Ñ Ð±Ð¾Ð¹ÑнÑа ÑозÑ"},color:{recent:"СоңÒÑ ÑÒ¯Ñ",more:"ÐаÑÒа ÑÒ¯ÑÑеÑ",background:"ФоннÑÒ£ ÑÒ¯ÑÑ",foreground:"ШÑиÑÑÑÑÒ£ ÑÒ¯ÑÑ",transparent:"ÐÑозÑаÑнÑй",setTransparent:"ÐөлдÑÑ ÒÑлÑ",reset:"ÐаÑÑапÒÑ ÒалпÑна келÑÑÑÑ",resetToDefault:"ÓÐ´ÐµÐ¿ÐºÑ ÒалпÑна келÑÑÑÑ"},shortcut:{shortcuts:"ÐеÑнелеÑдÑÒ£ ÑÑÑкеÑÑмÑ",close:"ÐабÑ",textFormatting:"ÐÓÑÑÐ½Ð´Ñ ÑоÑмаÑÑаÑ",action:"ÓÑекеÑ",paragraphFormatting:"ÐаÑагÑаÑÑÑ ÑоÑмаÑÑаÑ",documentStyle:"ÒÒ±Ð¶Ð°Ñ ÑÑилÑ",extraKeys:"ÒоÑÑмÑа ÒиÑÑÑÑÑÑлаÑ"},help:{insertParagraph:"Ðаңа паÑагÑаÑ",undo:"СоңÒÑ Ð¿ÓÑÐ¼ÐµÐ½Ð´Ñ Ð±Ð¾Ð»Ð´ÑÑмаÑ",redo:"СоңÒÑ Ð¿ÓÑÐ¼ÐµÐ½Ð´Ñ ÒайÑалаÑ",tab:"Tab",untab:"Untab",bold:'"ÐÑан" ÑÑилÑн оÑнаÑÑ',italic:'"ÐөлбеÑ" ÑÑилÑн оÑнаÑÑ',underline:'"ÐÑÑÑ ÑÑзÑлÒан" ÑÑÐ¸Ð»Ð´Ñ Ð¾ÑнаÑÑ',strikethrough:'"СÑзÑлÒан" ÑÑилÑн оÑнаÑÑ',removeFormat:"СÑилÑÐ´Ñ ÒалпÑна келÑÑÑÑ",justifyLeft:"Сол жаÒÑнан ÑегÑÑÑеÑ",justifyCenter:"ÐÑÑаÑÑнан ÑегÑÑÑеÑ",justifyRight:"ÐÒ£ жаÒÑнан ÑегÑÑÑеÑ",justifyFull:"ÐÐ½Ñ Ð±Ð¾Ð¹ÑнÑа ÑозÑ",insertUnorderedList:"ТаңбаланÒан ÑÑзÑÐ¼Ð´Ñ ÒоÑÑ/ажÑÑаÑÑ",insertOrderedList:"ÐөмÑÑленген ÑÑзÑм ÒоÑÑ/ажÑÑаÑÑ",outdent:"ÐÑÑ Ð¿Ð°ÑагÑаÑÑаÒÑ ÑегÑнÑÑÑÑ Ð°Ð»Ñп ÑаÑÑаÑ",indent:"ÐÑÑ Ð¿Ð°ÑагÑаÑÒа ÑегÑнÑÑÑÑ ÒÐ¾Ñ ",formatPara:"ÐÑÑ Ð±Ð»Ð¾ÐºÑÑ (Ñег P) ÑекÑÐ»Ð´Ñ ÑоÑмаÑÑаÑ",formatH1:"ÐÑÑ Ð±Ð»Ð¾ÐºÑÑ H1 ÑекÑÐ»Ð´Ñ ÑоÑмаÑÑаÑ",formatH2:"ÐÑÑ Ð±Ð»Ð¾ÐºÑÑ H2 ÑекÑÐ»Ð´Ñ ÑоÑмаÑÑаÑ",formatH3:"ÐÑÑ Ð±Ð»Ð¾ÐºÑÑ H3 ÑекÑÐ»Ð´Ñ ÑоÑмаÑÑаÑ",formatH4:"ÐÑÑ Ð±Ð»Ð¾ÐºÑÑ H4 ÑекÑÐ»Ð´Ñ ÑоÑмаÑÑаÑ",formatH5:"ÐÑÑ Ð±Ð»Ð¾ÐºÑÑ H5 ÑекÑÐ»Ð´Ñ ÑоÑмаÑÑаÑ",formatH6:"ÐÑÑ Ð±Ð»Ð¾ÐºÑÑ H6 ÑекÑÐ»Ð´Ñ ÑоÑмаÑÑаÑ",insertHorizontalRule:"Ðөлденең ÑÑзÑÒ ÒоÑ","linkDialog.show":'"СÑлÑеме" диалогÑÑ ÐºÓ©ÑÑеÑÑ '},history:{undo:"ÐÐ°Ñ ÑаÑÑÑ",redo:"ÒайÑалаÑ"},specialChar:{specialChar:"SPECIAL CHARACTERS",select:"Select Special characters"}}})}(jQuery);var win_scroll_pos=0;$(function(){0!=$(".marquee").length&&(setTimeout(start__marquee,500,$(".lk-panel__left .account-description__name.marquee")),setTimeout(start__marquee,500,$(".lk-panel__left .account-description__email.marquee")),$(".header-bottom__right").on("click",'[data-submenu-open="device-login-menu"]',function(){console.log("asdas"),setTimeout(start__marquee,500,$(".device-modal__login-menu .account-description__name.marquee")),setTimeout(start__marquee,500,$(".device-modal__login-menu .account-description__email.marquee"))})),toggle_class(),tabs_panel(),close_submenu(),open_submenu(),replaceHashLinks()});
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.