!function(e,t){"use strict";"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(T,e){"use strict";var t=[],x=T.document,i=Object.getPrototypeOf,a=t.slice,g=t.concat,l=t.push,r=t.indexOf,n={},o=n.toString,m=n.hasOwnProperty,s=m.toString,c=s.call(Object),v={},y=function isFunction(e){return"function"==typeof e&&"number"!=typeof e.nodeType},_=function isWindow(e){return null!=e&&e===e.window},u={type:!0,src:!0,nonce:!0,noModule:!0};function DOMEval(e,t,n){var i,r,o=(n=n||x).createElement("script");if(o.text=e,t)for(i in u)(r=t[i]||t.getAttribute&&t.getAttribute(i))&&o.setAttribute(i,r);n.head.appendChild(o).parentNode.removeChild(o)}function toType(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?n[o.call(e)]||"object":typeof e}var d="3.4.1",E=function(e,t){return new E.fn.init(e,t)},h=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;function isArrayLike(e){var t=!!e&&"length"in e&&e.length,n=toType(e);return!y(e)&&!_(e)&&("array"===n||0===t||"number"==typeof t&&0+~]|"+M+")"+M+"*"),$=new RegExp(M+"|>"),Q=new RegExp(q),K=new RegExp("^"+F+"$"),V={ID:new RegExp("^#("+F+")"),CLASS:new RegExp("^\\.("+F+")"),TAG:new RegExp("^("+F+"|[*])"),ATTR:new RegExp("^"+R),PSEUDO:new RegExp("^"+q),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+M+"*(even|odd|(([+-]|)(\\d*)n|)"+M+"*(?:([+-]|)"+M+"*(\\d+)|))"+M+"*\\)|)","i"),bool:new RegExp("^(?:"+H+")$","i"),needsContext:new RegExp("^"+M+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+M+"*((?:-\\d)?\\d*)"+M+"*\\)|)(?=[^-]|$)","i")},X=/HTML$/i,Y=/^(?:input|select|textarea|button)$/i,G=/^h\d$/i,J=/^[^{]+\{\s*\[native \w/,Z=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ee=/[+~]/,te=new RegExp("\\\\([\\da-f]{1,6}"+M+"?|("+M+")|.)","ig"),ne=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)},ie=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,re=function(e,t){return t?"\0"===e?"�":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e},oe=function(){w()},se=addCombinator(function(e){return!0===e.disabled&&"fieldset"===e.nodeName.toLowerCase()},{dir:"parentNode",next:"legend"});try{P.apply(t=L.call(y.childNodes),y.childNodes),t[y.childNodes.length].nodeType}catch(e){P={apply:t.length?function(e,t){j.apply(e,L.call(t))}:function(e,t){for(var n=e.length,i=0;e[n++]=t[i++];);e.length=n-1}}}function Sizzle(t,e,n,i){var r,o,s,a,l,c,u,d=e&&e.ownerDocument,h=e?e.nodeType:9;if(n=n||[],"string"!=typeof t||!t||1!==h&&9!==h&&11!==h)return n;if(!i&&((e?e.ownerDocument||e:y)!==T&&w(e),e=e||T,x)){if(11!==h&&(l=Z.exec(t)))if(r=l[1]){if(9===h){if(!(s=e.getElementById(r)))return n;if(s.id===r)return n.push(s),n}else if(d&&(s=d.getElementById(r))&&v(e,s)&&s.id===r)return n.push(s),n}else{if(l[2])return P.apply(n,e.getElementsByTagName(t)),n;if((r=l[3])&&f.getElementsByClassName&&e.getElementsByClassName)return P.apply(n,e.getElementsByClassName(r)),n}if(f.qsa&&!D[t+" "]&&(!m||!m.test(t))&&(1!==h||"object"!==e.nodeName.toLowerCase())){if(u=t,d=e,1===h&&$.test(t)){for((a=e.getAttribute("id"))?a=a.replace(ie,re):e.setAttribute("id",a=E),o=(c=p(t)).length;o--;)c[o]="#"+a+" "+toSelector(c[o]);u=c.join(","),d=ee.test(t)&&testContext(e.parentNode)||e}try{return P.apply(n,d.querySelectorAll(u)),n}catch(e){D(t,!0)}finally{a===E&&e.removeAttribute("id")}}}return g(t.replace(z,"$1"),e,n,i)}function createCache(){var n=[];return function cache(e,t){return n.push(e+" ")>b.cacheLength&&delete cache[n.shift()],cache[e+" "]=t}}function markFunction(e){return e[E]=!0,e}function assert(e){var t=T.createElement("fieldset");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function addHandle(e,t){for(var n=e.split("|"),i=n.length;i--;)b.attrHandle[n[i]]=t}function siblingCheck(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 createInputPseudo(t){return function(e){return"input"===e.nodeName.toLowerCase()&&e.type===t}}function createButtonPseudo(n){return function(e){var t=e.nodeName.toLowerCase();return("input"===t||"button"===t)&&e.type===n}}function createDisabledPseudo(t){return function(e){return"form"in e?e.parentNode&&!1===e.disabled?"label"in e?"label"in e.parentNode?e.parentNode.disabled===t:e.disabled===t:e.isDisabled===t||e.isDisabled!==!t&&se(e)===t:e.disabled===t:"label"in e&&e.disabled===t}}function createPositionalPseudo(s){return markFunction(function(o){return o=+o,markFunction(function(e,t){for(var n,i=s([],e.length,o),r=i.length;r--;)e[n=i[r]]&&(e[n]=!(t[n]=e[n]))})})}function testContext(e){return e&&void 0!==e.getElementsByTagName&&e}for(e in f=Sizzle.support={},r=Sizzle.isXML=function(e){var t=e.namespaceURI,n=(e.ownerDocument||e).documentElement;return!X.test(t||n&&n.nodeName||"HTML")},w=Sizzle.setDocument=function(e){var t,n,i=e?e.ownerDocument||e:y;return i!==T&&9===i.nodeType&&i.documentElement&&(s=(T=i).documentElement,x=!r(T),y!==T&&(n=T.defaultView)&&n.top!==n&&(n.addEventListener?n.addEventListener("unload",oe,!1):n.attachEvent&&n.attachEvent("onunload",oe)),f.attributes=assert(function(e){return e.className="i",!e.getAttribute("className")}),f.getElementsByTagName=assert(function(e){return e.appendChild(T.createComment("")),!e.getElementsByTagName("*").length}),f.getElementsByClassName=J.test(T.getElementsByClassName),f.getById=assert(function(e){return s.appendChild(e).id=E,!T.getElementsByName||!T.getElementsByName(E).length}),f.getById?(b.filter.ID=function(e){var t=e.replace(te,ne);return function(e){return e.getAttribute("id")===t}},b.find.ID=function(e,t){if(void 0!==t.getElementById&&x){var n=t.getElementById(e);return n?[n]:[]}}):(b.filter.ID=function(e){var n=e.replace(te,ne);return function(e){var t=void 0!==e.getAttributeNode&&e.getAttributeNode("id");return t&&t.value===n}},b.find.ID=function(e,t){if(void 0!==t.getElementById&&x){var n,i,r,o=t.getElementById(e);if(o){if((n=o.getAttributeNode("id"))&&n.value===e)return[o];for(r=t.getElementsByName(e),i=0;o=r[i++];)if((n=o.getAttributeNode("id"))&&n.value===e)return[o]}return[]}}),b.find.TAG=f.getElementsByTagName?function(e,t){return void 0!==t.getElementsByTagName?t.getElementsByTagName(e):f.qsa?t.querySelectorAll(e):void 0}:function(e,t){var n,i=[],r=0,o=t.getElementsByTagName(e);if("*"!==e)return o;for(;n=o[r++];)1===n.nodeType&&i.push(n);return i},b.find.CLASS=f.getElementsByClassName&&function(e,t){if(void 0!==t.getElementsByClassName&&x)return t.getElementsByClassName(e)},a=[],m=[],(f.qsa=J.test(T.querySelectorAll))&&(assert(function(e){s.appendChild(e).innerHTML="",e.querySelectorAll("[msallowcapture^='']").length&&m.push("[*^$]="+M+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||m.push("\\["+M+"*(?:value|"+H+")"),e.querySelectorAll("[id~="+E+"-]").length||m.push("~="),e.querySelectorAll(":checked").length||m.push(":checked"),e.querySelectorAll("a#"+E+"+*").length||m.push(".#.+[+~]")}),assert(function(e){e.innerHTML="";var t=T.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&m.push("name"+M+"*[*^$|!~]?="),2!==e.querySelectorAll(":enabled").length&&m.push(":enabled",":disabled"),s.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&m.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),m.push(",.*:")})),(f.matchesSelector=J.test(u=s.matches||s.webkitMatchesSelector||s.mozMatchesSelector||s.oMatchesSelector||s.msMatchesSelector))&&assert(function(e){f.disconnectedMatch=u.call(e,"*"),u.call(e,"[s!='']:x"),a.push("!=",q)}),m=m.length&&new RegExp(m.join("|")),a=a.length&&new RegExp(a.join("|")),t=J.test(s.compareDocumentPosition),v=t||J.test(s.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},k=t?function(e,t){if(e===t)return c=!0,0;var n=!e.compareDocumentPosition-!t.compareDocumentPosition;return n||(1&(n=(e.ownerDocument||e)===(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!f.sortDetached&&t.compareDocumentPosition(e)===n?e===T||e.ownerDocument===y&&v(y,e)?-1:t===T||t.ownerDocument===y&&v(y,t)?1:l?O(l,e)-O(l,t):0:4&n?-1:1)}:function(e,t){if(e===t)return c=!0,0;var n,i=0,r=e.parentNode,o=t.parentNode,s=[e],a=[t];if(!r||!o)return e===T?-1:t===T?1:r?-1:o?1:l?O(l,e)-O(l,t):0;if(r===o)return siblingCheck(e,t);for(n=e;n=n.parentNode;)s.unshift(n);for(n=t;n=n.parentNode;)a.unshift(n);for(;s[i]===a[i];)i++;return i?siblingCheck(s[i],a[i]):s[i]===y?-1:a[i]===y?1:0}),T},Sizzle.matches=function(e,t){return Sizzle(e,null,null,t)},Sizzle.matchesSelector=function(e,t){if((e.ownerDocument||e)!==T&&w(e),f.matchesSelector&&x&&!D[t+" "]&&(!a||!a.test(t))&&(!m||!m.test(t)))try{var n=u.call(e,t);if(n||f.disconnectedMatch||e.document&&11!==e.document.nodeType)return n}catch(e){D(t,!0)}return 0":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(te,ne),e[3]=(e[3]||e[4]||e[5]||"").replace(te,ne),"~="===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]||Sizzle.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]&&Sizzle.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return V.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&Q.test(n)&&(t=p(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(te,ne).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=h[e+" "];return t||(t=new RegExp("(^|"+M+")"+e+"("+M+"|$)"))&&h(e,function(e){return t.test("string"==typeof e.className&&e.className||void 0!==e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(n,i,r){return function(e){var t=Sizzle.attr(e,n);return null==t?"!="===i:!i||(t+="","="===i?t===r:"!="===i?t!==r:"^="===i?r&&0===t.indexOf(r):"*="===i?r&&-1:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function winnow(e,n,i){return y(n)?E.grep(e,function(e,t){return!!n.call(e,t,e)!==i}):n.nodeType?E.grep(e,function(e){return e===n!==i}):"string"!=typeof n?E.grep(e,function(e){return-1)[^>]*|#([\w-]+))$/;(E.fn.init=function(e,t,n){var i,r;if(!e)return this;if(n=n||S,"string"!=typeof e)return e.nodeType?(this[0]=e,this.length=1,this):y(e)?void 0!==n.ready?n.ready(e):e(E):E.makeArray(e,this);if(!(i="<"===e[0]&&">"===e[e.length-1]&&3<=e.length?[null,e,null]:A.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 E?t[0]:t,E.merge(this,E.parseHTML(i[1],t&&t.nodeType?t.ownerDocument||t:x,!0)),w.test(i[1])&&E.isPlainObject(t))for(i in t)y(this[i])?this[i](t[i]):this.attr(i,t[i]);return this}return(r=x.getElementById(i[2]))&&(this[0]=r,this.length=1),this}).prototype=E.fn,S=E(x);var D=/^(?:parents|prev(?:Until|All))/,k={children:!0,contents:!0,next:!0,prev:!0};function sibling(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}E.fn.extend({has:function(e){var t=E(e,this),n=t.length;return this.filter(function(){for(var e=0;e\x20\t\r\n\f]*)/i,J=/^$|^module$|\/(?:java|ecma)script/i,Z={option:[1,""],thead:[1,"","
"],col:[2,"","
"],tr:[2,"","
"],td:[3,"","
"],_default:[0,"",""]};function getAll(e,t){var n;return n=void 0!==e.getElementsByTagName?e.getElementsByTagName(t||"*"):void 0!==e.querySelectorAll?e.querySelectorAll(t||"*"):[],void 0===t||t&&nodeName(e,t)?E.merge([e],n):n}function setGlobalEval(e,t){for(var n=0,i=e.length;nx",v.noCloneChecked=!!ee.cloneNode(!0).lastChild.defaultValue;var ie=/^key/,re=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,oe=/^([^.]*)(?:\.(.+)|)/;function returnTrue(){return!0}function returnFalse(){return!1}function expectSync(e,t){return e===function safeActiveElement(){try{return x.activeElement}catch(e){}}()==("focus"===t)}function on(e,t,n,i,r,o){var s,a;if("object"==typeof t){for(a in"string"!=typeof n&&(i=i||n,n=void 0),t)on(e,a,n,i,t[a],o);return e}if(null==i&&null==r?(r=n,i=n=void 0):null==r&&("string"==typeof n?(r=i,i=void 0):(r=i,i=n,n=void 0)),!1===r)r=returnFalse;else if(!r)return e;return 1===o&&(s=r,(r=function(e){return E().off(e),s.apply(this,arguments)}).guid=s.guid||(s.guid=E.guid++)),e.each(function(){E.event.add(this,t,r,i,n)})}function leverageNative(e,r,o){o?(M.set(e,r,!1),E.event.add(e,r,{namespace:!1,handler:function(e){var t,n,i=M.get(this,r);if(1&e.isTrigger&&this[r]){if(i.length)(E.event.special[r]||{}).delegateType&&e.stopPropagation();else if(i=a.call(arguments),M.set(this,r,i),t=o(this,r),this[r](),i!==(n=M.get(this,r))||t?M.set(this,r,!1):n={},i!==n)return e.stopImmediatePropagation(),e.preventDefault(),n.value}else i.length&&(M.set(this,r,{value:E.event.trigger(E.extend(i[0],E.Event.prototype),i.slice(1),this)}),e.stopImmediatePropagation())}})):void 0===M.get(e,r)&&E.event.add(e,r,returnTrue)}E.event={global:{},add:function(t,e,n,i,r){var o,s,a,l,c,u,d,h,f,p,g,m=M.get(t);if(m)for(n.handler&&(n=(o=n).handler,r=o.selector),r&&E.find.matchesSelector(B,r),n.guid||(n.guid=E.guid++),(l=m.events)||(l=m.events={}),(s=m.handle)||(s=m.handle=function(e){return void 0!==E&&E.event.triggered!==e.type?E.event.dispatch.apply(t,arguments):void 0}),c=(e=(e||"").match(N)||[""]).length;c--;)f=g=(a=oe.exec(e[c])||[])[1],p=(a[2]||"").split(".").sort(),f&&(d=E.event.special[f]||{},f=(r?d.delegateType:d.bindType)||f,d=E.event.special[f]||{},u=E.extend({type:f,origType:g,data:i,handler:n,guid:n.guid,selector:r,needsContext:r&&E.expr.match.needsContext.test(r),namespace:p.join(".")},o),(h=l[f])||((h=l[f]=[]).delegateCount=0,d.setup&&!1!==d.setup.call(t,i,p,s)||t.addEventListener&&t.addEventListener(f,s)),d.add&&(d.add.call(t,u),u.handler.guid||(u.handler.guid=n.guid)),r?h.splice(h.delegateCount++,0,u):h.push(u),E.event.global[f]=!0)},remove:function(e,t,n,i,r){var o,s,a,l,c,u,d,h,f,p,g,m=M.hasData(e)&&M.get(e);if(m&&(l=m.events)){for(c=(t=(t||"").match(N)||[""]).length;c--;)if(f=g=(a=oe.exec(t[c])||[])[1],p=(a[2]||"").split(".").sort(),f){for(d=E.event.special[f]||{},h=l[f=(i?d.delegateType:d.bindType)||f]||[],a=a[2]&&new RegExp("(^|\\.)"+p.join("\\.(?:.*\\.|)")+"(\\.|$)"),s=o=h.length;o--;)u=h[o],!r&&g!==u.origType||n&&n.guid!==u.guid||a&&!a.test(u.namespace)||i&&i!==u.selector&&("**"!==i||!u.selector)||(h.splice(o,1),u.selector&&h.delegateCount--,d.remove&&d.remove.call(e,u));s&&!h.length&&(d.teardown&&!1!==d.teardown.call(e,p,m.handle)||E.removeEvent(e,f,m.handle),delete l[f])}else for(f in l)E.event.remove(e,f+t[c],n,i,!0);E.isEmptyObject(l)&&M.remove(e,"handle events")}},dispatch:function(e){var t,n,i,r,o,s,a=E.event.fix(e),l=new Array(arguments.length),c=(M.get(this,"events")||{})[a.type]||[],u=E.event.special[a.type]||{};for(l[0]=a,t=1;t\x20\t\r\n\f]*)[^>]*)\/>/gi,ae=/\s*$/g;function manipulationTarget(e,t){return nodeName(e,"table")&&nodeName(11!==t.nodeType?t:t.firstChild,"tr")&&E(e).children("tbody")[0]||e}function disableScript(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function restoreScript(e){return"true/"===(e.type||"").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute("type"),e}function cloneCopyEvent(e,t){var n,i,r,o,s,a,l,c;if(1===t.nodeType){if(M.hasData(e)&&(o=M.access(e),s=M.set(t,o),c=o.events))for(r in delete s.handle,s.events={},c)for(n=0,i=c[r].length;n")},clone:function(e,t,n){var i,r,o,s,a,l,c,u=e.cloneNode(!0),d=$(e);if(!(v.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||E.isXMLDoc(e)))for(s=getAll(u),i=0,r=(o=getAll(e)).length;i").attr(n.scriptAttrs||{}).prop({charset:n.scriptCharset,src:n.url}).on("load error",r=function(e){i.remove(),r=null,e&&t("error"===e.type?404:200,e.type)}),x.head.appendChild(i[0])},abort:function(){r&&r()}}});var Je,Ze=[],et=/(=)\?(?=&|$)|\?\?/;E.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=Ze.pop()||E.expando+"_"+Le++;return this[e]=!0,e}}),E.ajaxPrefilter("json jsonp",function(e,t,n){var i,r,o,s=!1!==e.jsonp&&(et.test(e.url)?"url":"string"==typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&et.test(e.data)&&"data");if(s||"jsonp"===e.dataTypes[0])return i=e.jsonpCallback=y(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,s?e[s]=e[s].replace(et,"$1"+i):!1!==e.jsonp&&(e.url+=(Oe.test(e.url)?"&":"?")+e.jsonp+"="+i),e.converters["script json"]=function(){return o||E.error(i+" was not called"),o[0]},e.dataTypes[0]="json",r=T[i],T[i]=function(){o=arguments},n.always(function(){void 0===r?E(T).removeProp(i):T[i]=r,e[i]&&(e.jsonpCallback=t.jsonpCallback,Ze.push(i)),o&&y(r)&&r(o[0]),o=r=void 0}),"script"}),v.createHTMLDocument=((Je=x.implementation.createHTMLDocument("").body).innerHTML="
",2===Je.childNodes.length),E.parseHTML=function(e,t,n){return"string"!=typeof e?[]:("boolean"==typeof t&&(n=t,t=!1),t||(v.createHTMLDocument?((i=(t=x.implementation.createHTMLDocument("")).createElement("base")).href=x.location.href,t.head.appendChild(i)):t=x),o=!n&&[],(r=w.exec(e))?[t.createElement(r[1])]:(r=buildFragment([e],t,o),o&&o.length&&E(o).remove(),E.merge([],r.childNodes)));var i,r,o},E.fn.load=function(e,t,n){var i,r,o,s=this,a=e.indexOf(" ");return-1").append(E.parseHTML(e)).find(i):e)}).always(n&&function(e,t){s.each(function(){n.apply(this,o||[e.responseText,t,e])})}),this},E.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){E.fn[t]=function(e){return this.on(t,e)}}),E.expr.pseudos.animated=function(t){return E.grep(E.timers,function(e){return t===e.elem}).length},E.offset={setOffset:function(e,t,n){var i,r,o,s,a,l,c=E.css(e,"position"),u=E(e),d={};"static"===c&&(e.style.position="relative"),a=u.offset(),o=E.css(e,"top"),l=E.css(e,"left"),r=("absolute"===c||"fixed"===c)&&-1<(o+l).indexOf("auto")?(s=(i=u.position()).top,i.left):(s=parseFloat(o)||0,parseFloat(l)||0),y(t)&&(t=t.call(e,n,E.extend({},a))),null!=t.top&&(d.top=t.top-a.top+s),null!=t.left&&(d.left=t.left-a.left+r),"using"in t?t.using.call(e,d):u.css(d)}},E.fn.extend({offset:function(t){if(arguments.length)return void 0===t?this:this.each(function(e){E.offset.setOffset(this,t,e)});var e,n,i=this[0];return i?i.getClientRects().length?(e=i.getBoundingClientRect(),n=i.ownerDocument.defaultView,{top:e.top+n.pageYOffset,left:e.left+n.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var e,t,n,i=this[0],r={top:0,left:0};if("fixed"===E.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"===E.css(e,"position");)e=e.parentNode;e&&e!==i&&1===e.nodeType&&((r=E(e).offset()).top+=E.css(e,"borderTopWidth",!0),r.left+=E.css(e,"borderLeftWidth",!0))}return{top:t.top-r.top-E.css(i,"marginTop",!0),left:t.left-r.left-E.css(i,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var e=this.offsetParent;e&&"static"===E.css(e,"position");)e=e.offsetParent;return e||B})}}),E.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(t,r){var o="pageYOffset"===r;E.fn[t]=function(e){return P(this,function(e,t,n){var i;if(_(e)?i=e:9===e.nodeType&&(i=e.defaultView),void 0===n)return i?i[r]:e[t];i?i.scrollTo(o?i.pageXOffset:n,o?n:i.pageYOffset):e[t]=n},t,e,arguments.length)}}),E.each(["top","left"],function(e,n){E.cssHooks[n]=addGetHookIf(v.pixelPosition,function(e,t){if(t)return t=curCSS(e,n),ue.test(t)?E(e).position()[n]+"px":t})}),E.each({Height:"height",Width:"width"},function(s,a){E.each({padding:"inner"+s,content:a,"":"outer"+s},function(i,o){E.fn[o]=function(e,t){var n=arguments.length&&(i||"boolean"!=typeof e),r=i||(!0===e||!0===t?"margin":"border");return P(this,function(e,t,n){var i;return _(e)?0===o.indexOf("outer")?e["inner"+s]:e.document.documentElement["client"+s]:9===e.nodeType?(i=e.documentElement,Math.max(e.body["scroll"+s],i["scroll"+s],e.body["offset"+s],i["offset"+s],i["client"+s])):void 0===n?E.css(e,t,r):E.style(e,t,n,r)},a,n?e:void 0,n)}})}),E.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,n){E.fn[n]=function(e,t){return 0this._items.length-1||e<0))if(this._isSliding)p(this._element).one(q.SLID,function(){return t.to(e)});else{if(n===e)return this.pause(),void this.cycle();var i=ndocument.documentElement.clientHeight;!this._isBodyOverflowing&&e&&(this._element.style.paddingLeft=this._scrollbarWidth+"px"),this._isBodyOverflowing&&!e&&(this._element.style.paddingRight=this._scrollbarWidth+"px")},e._resetAdjustments=function _resetAdjustments(){this._element.style.paddingLeft="",this._element.style.paddingRight=""},e._checkScrollbar=function _checkScrollbar(){var e=document.body.getBoundingClientRect();this._isBodyOverflowing=e.left+e.right
',trigger:"hover focus",title:"",delay:0,html:!1,selector:!1,placement:"top",offset:0,container:!1,fallbackPlacement:"flip",boundary:"scrollParent",sanitize:!0,sanitizeFn:null,whiteList:mt},kt="show",Nt="out",It={HIDE:"hide"+Ct,HIDDEN:"hidden"+Ct,SHOW:"show"+Ct,SHOWN:"shown"+Ct,INSERTED:"inserted"+Ct,CLICK:"click"+Ct,FOCUSIN:"focusin"+Ct,FOCUSOUT:"focusout"+Ct,MOUSEENTER:"mouseenter"+Ct,MOUSELEAVE:"mouseleave"+Ct},jt="fade",Pt="show",Lt=".tooltip-inner",Ot=".arrow",Ht="hover",Mt="focus",Ft="click",Rt="manual",qt=function(){function Tooltip(e,t){if(void 0===d)throw new TypeError("Bootstrap's tooltips require Popper.js (https://popper.js.org/)");this._isEnabled=!0,this._timeout=0,this._hoverState="",this._activeTrigger={},this._popper=null,this.element=e,this.config=this._getConfig(t),this.tip=null,this._setListeners()}var e=Tooltip.prototype;return e.enable=function enable(){this._isEnabled=!0},e.disable=function disable(){this._isEnabled=!1},e.toggleEnabled=function toggleEnabled(){this._isEnabled=!this._isEnabled},e.toggle=function toggle(e){if(this._isEnabled)if(e){var t=this.constructor.DATA_KEY,n=p(e.currentTarget).data(t);n||(n=new this.constructor(e.currentTarget,this._getDelegateConfig()),p(e.currentTarget).data(t,n)),n._activeTrigger.click=!n._activeTrigger.click,n._isWithActiveTrigger()?n._enter(null,n):n._leave(null,n)}else{if(p(this.getTipElement()).hasClass(Pt))return void this._leave(null,this);this._enter(null,this)}},e.dispose=function dispose(){clearTimeout(this._timeout),p.removeData(this.element,this.constructor.DATA_KEY),p(this.element).off(this.constructor.EVENT_KEY),p(this.element).closest(".modal").off("hide.bs.modal"),this.tip&&p(this.tip).remove(),this._isEnabled=null,this._timeout=null,this._hoverState=null,(this._activeTrigger=null)!==this._popper&&this._popper.destroy(),this._popper=null,this.element=null,this.config=null,this.tip=null},e.show=function show(){var t=this;if("none"===p(this.element).css("display"))throw new Error("Please use show on visible elements");var e=p.Event(this.constructor.Event.SHOW);if(this.isWithContent()&&this._isEnabled){p(this.element).trigger(e);var n=g.findShadowRoot(this.element),i=p.contains(null!==n?n:this.element.ownerDocument.documentElement,this.element);if(e.isDefaultPrevented()||!i)return;var r=this.getTipElement(),o=g.getUID(this.constructor.NAME);r.setAttribute("id",o),this.element.setAttribute("aria-describedby",o),this.setContent(),this.config.animation&&p(r).addClass(jt);var s="function"==typeof this.config.placement?this.config.placement.call(this,r,this.element):this.config.placement,a=this._getAttachment(s);this.addAttachmentClass(a);var l=this._getContainer();p(r).data(this.constructor.DATA_KEY,this),p.contains(this.element.ownerDocument.documentElement,this.tip)||p(r).appendTo(l),p(this.element).trigger(this.constructor.Event.INSERTED),this._popper=new d(this.element,r,{placement:a,modifiers:{offset:this._getOffset(),flip:{behavior:this.config.fallbackPlacement},arrow:{element:Ot},preventOverflow:{boundariesElement:this.config.boundary}},onCreate:function onCreate(e){e.originalPlacement!==e.placement&&t._handlePopperPlacementChange(e)},onUpdate:function onUpdate(e){return t._handlePopperPlacementChange(e)}}),p(r).addClass(Pt),"ontouchstart"in document.documentElement&&p(document.body).children().on("mouseover",null,p.noop);var c=function complete(){t.config.animation&&t._fixTransition();var e=t._hoverState;t._hoverState=null,p(t.element).trigger(t.constructor.Event.SHOWN),e===Nt&&t._leave(null,t)};if(p(this.tip).hasClass(jt)){var u=g.getTransitionDurationFromElement(this.tip);p(this.tip).one(g.TRANSITION_END,c).emulateTransitionEnd(u)}else c()}},e.hide=function hide(e){var t=this,n=this.getTipElement(),i=p.Event(this.constructor.Event.HIDE),r=function complete(){t._hoverState!==kt&&n.parentNode&&n.parentNode.removeChild(n),t._cleanTipClass(),t.element.removeAttribute("aria-describedby"),p(t.element).trigger(t.constructor.Event.HIDDEN),null!==t._popper&&t._popper.destroy(),e&&e()};if(p(this.element).trigger(i),!i.isDefaultPrevented()){if(p(n).removeClass(Pt),"ontouchstart"in document.documentElement&&p(document.body).children().off("mouseover",null,p.noop),this._activeTrigger[Ft]=!1,this._activeTrigger[Mt]=!1,this._activeTrigger[Ht]=!1,p(this.tip).hasClass(jt)){var o=g.getTransitionDurationFromElement(n);p(n).one(g.TRANSITION_END,r).emulateTransitionEnd(o)}else r();this._hoverState=""}},e.update=function update(){null!==this._popper&&this._popper.scheduleUpdate()},e.isWithContent=function isWithContent(){return Boolean(this.getTitle())},e.addAttachmentClass=function addAttachmentClass(e){p(this.getTipElement()).addClass(Tt+"-"+e)},e.getTipElement=function getTipElement(){return this.tip=this.tip||p(this.config.template)[0],this.tip},e.setContent=function setContent(){var e=this.getTipElement();this.setElementContent(p(e.querySelectorAll(Lt)),this.getTitle()),p(e).removeClass(jt+" "+Pt)},e.setElementContent=function setElementContent(e,t){"object"!=typeof t||!t.nodeType&&!t.jquery?this.config.html?(this.config.sanitize&&(t=sanitizeHtml(t,this.config.whiteList,this.config.sanitizeFn)),e.html(t)):e.text(t):this.config.html?p(t).parent().is(e)||e.empty().append(t):e.text(p(t).text())},e.getTitle=function getTitle(){var e=this.element.getAttribute("data-original-title");return e||(e="function"==typeof this.config.title?this.config.title.call(this.element):this.config.title),e},e._getOffset=function _getOffset(){var t=this,e={};return"function"==typeof this.config.offset?e.fn=function(e){return e.offsets=_objectSpread({},e.offsets,t.config.offset(e.offsets,t.element)||{}),e}:e.offset=this.config.offset,e},e._getContainer=function _getContainer(){return!1===this.config.container?document.body:g.isElement(this.config.container)?p(this.config.container):p(document).find(this.config.container)},e._getAttachment=function _getAttachment(e){return At[e.toUpperCase()]},e._setListeners=function _setListeners(){var i=this;this.config.trigger.split(" ").forEach(function(e){if("click"===e)p(i.element).on(i.constructor.Event.CLICK,i.config.selector,function(e){return i.toggle(e)});else if(e!==Rt){var t=e===Ht?i.constructor.Event.MOUSEENTER:i.constructor.Event.FOCUSIN,n=e===Ht?i.constructor.Event.MOUSELEAVE:i.constructor.Event.FOCUSOUT;p(i.element).on(t,i.config.selector,function(e){return i._enter(e)}).on(n,i.config.selector,function(e){return i._leave(e)})}}),p(this.element).closest(".modal").on("hide.bs.modal",function(){i.element&&i.hide()}),this.config.selector?this.config=_objectSpread({},this.config,{trigger:"manual",selector:""}):this._fixTitle()},e._fixTitle=function _fixTitle(){var e=typeof this.element.getAttribute("data-original-title");(this.element.getAttribute("title")||"string"!==e)&&(this.element.setAttribute("data-original-title",this.element.getAttribute("title")||""),this.element.setAttribute("title",""))},e._enter=function _enter(e,t){var n=this.constructor.DATA_KEY;(t=t||p(e.currentTarget).data(n))||(t=new this.constructor(e.currentTarget,this._getDelegateConfig()),p(e.currentTarget).data(n,t)),e&&(t._activeTrigger["focusin"===e.type?Mt:Ht]=!0),p(t.getTipElement()).hasClass(Pt)||t._hoverState===kt?t._hoverState=kt:(clearTimeout(t._timeout),t._hoverState=kt,t.config.delay&&t.config.delay.show?t._timeout=setTimeout(function(){t._hoverState===kt&&t.show()},t.config.delay.show):t.show())},e._leave=function _leave(e,t){var n=this.constructor.DATA_KEY;(t=t||p(e.currentTarget).data(n))||(t=new this.constructor(e.currentTarget,this._getDelegateConfig()),p(e.currentTarget).data(n,t)),e&&(t._activeTrigger["focusout"===e.type?Mt:Ht]=!1),t._isWithActiveTrigger()||(clearTimeout(t._timeout),t._hoverState=Nt,t.config.delay&&t.config.delay.hide?t._timeout=setTimeout(function(){t._hoverState===Nt&&t.hide()},t.config.delay.hide):t.hide())},e._isWithActiveTrigger=function _isWithActiveTrigger(){for(var e in this._activeTrigger)if(this._activeTrigger[e])return!0;return!1},e._getConfig=function _getConfig(e){var t=p(this.element).data();return Object.keys(t).forEach(function(e){-1!==Et.indexOf(e)&&delete t[e]}),"number"==typeof(e=_objectSpread({},this.constructor.Default,t,"object"==typeof e&&e?e:{})).delay&&(e.delay={show:e.delay,hide:e.delay}),"number"==typeof e.title&&(e.title=e.title.toString()),"number"==typeof e.content&&(e.content=e.content.toString()),g.typeCheckConfig(_t,e,this.constructor.DefaultType),e.sanitize&&(e.template=sanitizeHtml(e.template,e.whiteList,e.sanitizeFn)),e},e._getDelegateConfig=function _getDelegateConfig(){var e={};if(this.config)for(var t in this.config)this.constructor.Default[t]!==this.config[t]&&(e[t]=this.config[t]);return e},e._cleanTipClass=function _cleanTipClass(){var e=p(this.getTipElement()),t=e.attr("class").match(xt);null!==t&&t.length&&e.removeClass(t.join(""))},e._handlePopperPlacementChange=function _handlePopperPlacementChange(e){var t=e.instance;this.tip=t.popper,this._cleanTipClass(),this.addAttachmentClass(this._getAttachment(e.placement))},e._fixTransition=function _fixTransition(){var e=this.getTipElement(),t=this.config.animation;null===e.getAttribute("x-placement")&&(p(e).removeClass(jt),this.config.animation=!1,this.hide(),this.show(),this.config.animation=t)},Tooltip._jQueryInterface=function _jQueryInterface(n){return this.each(function(){var e=p(this).data(bt),t="object"==typeof n&&n;if((e||!/dispose|hide/.test(n))&&(e||(e=new Tooltip(this,t),p(this).data(bt,e)),"string"==typeof n)){if(void 0===e[n])throw new TypeError('No method named "'+n+'"');e[n]()}})},_createClass(Tooltip,null,[{key:"VERSION",get:function get(){return"4.3.1"}},{key:"Default",get:function get(){return Dt}},{key:"NAME",get:function get(){return _t}},{key:"DATA_KEY",get:function get(){return bt}},{key:"Event",get:function get(){return It}},{key:"EVENT_KEY",get:function get(){return Ct}},{key:"DefaultType",get:function get(){return St}}]),Tooltip}();p.fn[_t]=qt._jQueryInterface,p.fn[_t].Constructor=qt,p.fn[_t].noConflict=function(){return p.fn[_t]=wt,qt._jQueryInterface};var Wt="popover",zt="bs.popover",Ut="."+zt,Bt=p.fn[Wt],$t="bs-popover",Qt=new RegExp("(^|\\s)"+$t+"\\S+","g"),Kt=_objectSpread({},qt.Default,{placement:"right",trigger:"click",content:"",template:''}),Vt=_objectSpread({},qt.DefaultType,{content:"(string|element|function)"}),Xt="fade",Yt="show",Gt=".popover-header",Jt=".popover-body",Zt={HIDE:"hide"+Ut,HIDDEN:"hidden"+Ut,SHOW:"show"+Ut,SHOWN:"shown"+Ut,INSERTED:"inserted"+Ut,CLICK:"click"+Ut,FOCUSIN:"focusin"+Ut,FOCUSOUT:"focusout"+Ut,MOUSEENTER:"mouseenter"+Ut,MOUSELEAVE:"mouseleave"+Ut},en=function(e){function Popover(){return e.apply(this,arguments)||this}!function _inheritsLoose(e,t){e.prototype=Object.create(t.prototype),(e.prototype.constructor=e).__proto__=t}(Popover,e);var t=Popover.prototype;return t.isWithContent=function isWithContent(){return this.getTitle()||this._getContent()},t.addAttachmentClass=function addAttachmentClass(e){p(this.getTipElement()).addClass($t+"-"+e)},t.getTipElement=function getTipElement(){return this.tip=this.tip||p(this.config.template)[0],this.tip},t.setContent=function setContent(){var e=p(this.getTipElement());this.setElementContent(e.find(Gt),this.getTitle());var t=this._getContent();"function"==typeof t&&(t=t.call(this.element)),this.setElementContent(e.find(Jt),t),e.removeClass(Xt+" "+Yt)},t._getContent=function _getContent(){return this.element.getAttribute("data-content")||this.config.content},t._cleanTipClass=function _cleanTipClass(){var e=p(this.getTipElement()),t=e.attr("class").match(Qt);null!==t&&0=this._offsets[r]&&(void 0===this._offsets[r+1]||e ',settings:{autoplay:!1,loop:!1,preload:!0,imageLocation:t+"player-graphics.gif",retinaImageLocation:t+"player-graphics@2x.gif",swfLocation:t+"audiojs.swf",useFlash:(e=document.createElement("audio"),!(e.canPlayType&&e.canPlayType("audio/mpeg;").replace(/no/,""))),hasFlash:function(){if(navigator.plugins&&navigator.plugins.length&&navigator.plugins["Shockwave Flash"])return!0;if(navigator.mimeTypes&&navigator.mimeTypes.length){var e=navigator.mimeTypes["application/x-shockwave-flash"];return e&&e.enabledPlugin}try{new ActiveXObject("ShockwaveFlash.ShockwaveFlash");return!0}catch(e){}return!1}(),createPlayer:{markup:'

00:00/00:00
',playPauseClass:"play-pause",scrubberClass:"scrubber",progressClass:"progress",loaderClass:"loaded",timeClass:"time",durationClass:"duration",playedClass:"played",errorMessageClass:"error-message",playingClass:"playing",loadingClass:"loading",errorClass:"error"},css:' .audiojs audio { position: absolute; left: -1px; } .audiojs { width: 460px; height: 36px; background: #404040; overflow: hidden; font-family: monospace; font-size: 12px; background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0, #444), color-stop(0.5, #555), color-stop(0.51, #444), color-stop(1, #444)); background-image: -moz-linear-gradient(center top, #444 0%, #555 50%, #444 51%, #444 100%); -webkit-box-shadow: 1px 1px 8px rgba(0, 0, 0, 0.3); -moz-box-shadow: 1px 1px 8px rgba(0, 0, 0, 0.3); -o-box-shadow: 1px 1px 8px rgba(0, 0, 0, 0.3); box-shadow: 1px 1px 8px rgba(0, 0, 0, 0.3); } .audiojs .play-pause { width: 25px; height: 40px; padding: 4px 6px; margin: 0px; float: left; overflow: hidden; border-right: 1px solid #000; } .audiojs p { display: none; width: 25px; height: 40px; margin: 0px; cursor: pointer; } .audiojs .play { display: block; } .audiojs .scrubber { position: relative; float: left; width: 280px; background: #5a5a5a; height: 14px; margin: 10px; border-top: 1px solid #3f3f3f; border-left: 0px; border-bottom: 0px; overflow: hidden; } .audiojs .progress { position: absolute; top: 0px; left: 0px; height: 14px; width: 0px; background: #ccc; z-index: 1; background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0, #ccc), color-stop(0.5, #ddd), color-stop(0.51, #ccc), color-stop(1, #ccc)); background-image: -moz-linear-gradient(center top, #ccc 0%, #ddd 50%, #ccc 51%, #ccc 100%); } .audiojs .loaded { position: absolute; top: 0px; left: 0px; height: 14px; width: 0px; background: #000; background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0, #222), color-stop(0.5, #333), color-stop(0.51, #222), color-stop(1, #222)); background-image: -moz-linear-gradient(center top, #222 0%, #333 50%, #222 51%, #222 100%); } .audiojs .time { float: left; height: 36px; line-height: 36px; margin: 0px 0px 0px 6px; padding: 0px 6px 0px 12px; border-left: 1px solid #000; color: #ddd; text-shadow: 1px 1px 0px rgba(0, 0, 0, 0.5); } .audiojs .time em { padding: 0px 2px 0px 0px; color: #f9f9f9; font-style: normal; } .audiojs .time strong { padding: 0px 0px 0px 2px; font-weight: normal; } .audiojs .error-message { float: left; display: none; margin: 0px 10px; height: 36px; width: 400px; overflow: hidden; line-height: 36px; white-space: nowrap; color: #fff; text-overflow: ellipsis; -o-text-overflow: ellipsis; -icab-text-overflow: ellipsis; -khtml-text-overflow: ellipsis; -moz-text-overflow: ellipsis; -webkit-text-overflow: ellipsis; } .audiojs .error-message a { color: #eee; text-decoration: none; padding-bottom: 1px; border-bottom: 1px solid #999; white-space: wrap; } .audiojs .play { background: url("$1") -2px -1px no-repeat; } .audiojs .loading { background: url("$1") -2px -31px no-repeat; } .audiojs .error { background: url("$1") -2px -61px no-repeat; } .audiojs .pause { background: url("$1") -2px -91px no-repeat; } @media only screen and (-webkit-min-device-pixel-ratio: 2), only screen and (min--moz-device-pixel-ratio: 2), only screen and (min-moz-device-pixel-ratio: 2), only screen and (-o-min-device-pixel-ratio: 2/1), only screen and (min-device-pixel-ratio: 2) { .audiojs .play, .audiojs .loading, .audiojs .error, .audiojs .pause { background-image: url("$2"); -webkit-background-size: 30px 120px; -moz-background-size: 30px 120px; -o-background-size: 30px 120px; background-size: 30px 120px; } } .playing .play, .playing .loading, .playing .error { display: none; } .playing .pause { display: block; } .loading .play, .loading .pause, .loading .error { display: none; } .loading .loading { display: block; } .error .time, .error .play, .error .pause, .error .scrubber, .error .loading { display: none; } .error .error { display: block; } .error .play-pause p { cursor: auto; } .error .error-message { display: block; }',trackEnded:function(e){},flashError:function(){var e=this.settings.createPlayer,t=l(e.errorMessageClass,this.wrapper),n='Missing flash player plugin.';this.mp3&&(n+=' Download audio file.'),a[o].helpers.removeClass(this.wrapper,e.loadingClass),a[o].helpers.addClass(this.wrapper,e.errorClass),t.innerHTML=n},loadError:function(e){var t=this.settings.createPlayer,n=l(t.errorMessageClass,this.wrapper);a[o].helpers.removeClass(this.wrapper,t.loadingClass),a[o].helpers.addClass(this.wrapper,t.errorClass),n.innerHTML='Error loading: "'+this.mp3+'"'},init:function(){var e=this.settings.createPlayer;a[o].helpers.addClass(this.wrapper,e.loadingClass)},loadStarted:function(){var e=this.settings.createPlayer,t=l(e.durationClass,this.wrapper),n=Math.floor(this.duration/60),i=Math.floor(this.duration%60);a[o].helpers.removeClass(this.wrapper,e.loadingClass),t.innerHTML=(n<10?"0":"")+n+":"+(i<10?"0":"")+i},loadProgress:function(e){var t=this.settings.createPlayer;l(t.loaderClass,this.wrapper).style.width=Math.round(100*e)+"%"},playPause:function(){this.playing?this.settings.play():this.settings.pause()},play:function(){var e=this.settings.createPlayer;a[o].helpers.removeClass(this.wrapper,e.errorClass),a[o].helpers.addClass(this.wrapper,e.playingClass)},pause:function(){var e=this.settings.createPlayer;a[o].helpers.removeClass(this.wrapper,e.playingClass)},updatePlayhead:function(e){var t=this.settings.createPlayer;l(t.progressClass,this.wrapper).style.width=Math.round(100*e)+"%";var n=l(t.playedClass,this.wrapper),i=this.duration*e,r=Math.floor(i/60),o=Math.floor(i%60);n.innerHTML=(r<10?"0":"")+r+":"+(o<10?"0":"")+o}},create:function(e,t){t=t||{};return e.length?this.createAll(t,e):this.newInstance(e,t)},createAll:function(e,t){var n=t||document.getElementsByTagName("audio"),i=[];e=e||{};for(var r=0,o=n.length;rn.loadedPercent||(n.updatePlayhead.call(n,[e]),n.element.skipTo(e))},n.updatePlayhead=function(e){n.settings.updatePlayhead.apply(n,[e])},n.play=function(){n.settings.preload||(n.settings.preload=!0,n.element.init(n.mp3)),n.playing=!0,n.element.pplay(),n.settings.play.apply(n)},n.pause=function(){n.playing=!1,n.element.ppause(),n.settings.pause.apply(n)},n.setVolume=function(e){n.element.setVolume(e)},n.loadStarted=function(){n.swfReady=!0,n.settings.preload&&n.element.init(n.mp3),n.settings.autoplay&&n.play.apply(n)}},injectFlash:function(e,t){var n=this.flashSource.replace(/\$1/g,t);n=(n=n.replace(/\$2/g,e.settings.swfLocation)).replace(/\$3/g,+new Date+Math.random());var i=e.wrapper.innerHTML,r=document.createElement("div");r.innerHTML=n+i,e.wrapper.innerHTML=r.innerHTML,e.element=this.helpers.getSwf(t)},helpers:{merge:function(e,t){for(attr in t)(e.hasOwnProperty(attr)||t.hasOwnProperty(attr))&&(e[attr]=t[attr])},clone:function(e){if(null==e||"object"!=typeof e)return e;var t=new e.constructor;for(var n in e)t[n]=arguments.callee(e[n]);return t},addClass:function(e,t){new RegExp("(\\s|^)"+t+"(\\s|$)").test(e.className)||(e.className+=" "+t)},removeClass:function(e,t){var n=new RegExp("(\\s|^)"+t+"(\\s|$)");e.className=e.className.replace(n," ")},injectCss:function(e,t){var n="",i=document.getElementsByTagName("style"),r=t.replace(/\$1/g,e.settings.imageLocation);r=r.replace(/\$2/g,e.settings.retinaImageLocation);for(var o=0,s=i.length;othis.loadedPercent||(this.element.currentTime=this.duration*e,this.updatePlayhead())},load:function(e){this.loadStartedCalled=!1,this.source.setAttribute("src",e),this.element.load(),this.mp3=e,a[o].events.trackLoadProgress(this)},loadError:function(){this.settings.loadError.apply(this)},init:function(){this.settings.init.apply(this)},loadStarted:function(){if(!this.element.duration)return!1;this.duration=this.element.duration,this.updatePlayhead(),this.settings.loadStarted.apply(this)},loadProgress:function(){if(null!=this.element.buffered&&this.element.buffered.length){this.loadStartedCalled||(this.loadStartedCalled=this.loadStarted());var e=this.element.buffered.end(this.element.buffered.length-1);this.loadedPercent=e/this.duration,this.settings.loadProgress.apply(this,[this.loadedPercent])}},playPause:function(){this.playing?this.pause():this.play()},play:function(){/(ipod|iphone|ipad)/i.test(navigator.userAgent)&&0==this.element.readyState&&this.init.apply(this),this.settings.preload||(this.settings.preload=!0,this.element.setAttribute("preload","auto"),a[o].events.trackLoadProgress(this)),this.playing=!0,this.element.play(),this.settings.play.apply(this)},pause:function(){this.playing=!1,this.element.pause(),this.settings.pause.apply(this)},setVolume:function(e){this.element.volume=e},trackEnded:function(e){this.skipTo.apply(this,[0]),this.settings.loop||this.pause.apply(this),this.settings.trackEnded.apply(this)}};var l=function(e,t){var n=[];if((t=t||document).getElementsByClassName)n=t.getElementsByClassName(e);else{var i,r,o=t.getElementsByTagName("*"),s=new RegExp("(^|\\s)"+e+"(\\s|$)");for(i=0,r=o.length;ithis.smallScreenWidth:e>=this.largeScreenWidth},showCount:function(e){return!(e<=this.smallScreenWidth)||"inside"},smallScreenWidth:640,largeScreenWidth:1024,resizeTimeout:200,elementClass:"jssocials",sharesClass:"jssocials-shares",shareClass:"jssocials-share",shareButtonClass:"jssocials-share-button",shareLinkClass:"jssocials-share-link",shareLogoClass:"jssocials-share-logo",shareLabelClass:"jssocials-share-label",shareLinkCountClass:"jssocials-share-link-count",shareCountBoxClass:"jssocials-share-count-box",shareCountClass:"jssocials-share-count",shareZeroCountClass:"jssocials-share-no-count",_init:function(e){this._initDefaults(),s.extend(this,e),this._initShares(),this._attachWindowResizeCallback()},_initDefaults:function(){this.url=o.location.href,this.text=s.trim(s("meta[name=description]").attr("content")||s("title").text())},_initShares:function(){this.shares=s.map(this.shares,s.proxy(function(e){"string"==typeof e&&(e={share:e});var t=e.share&&l[e.share];if(!t&&!e.renderer)throw Error("Share '"+e.share+"' is not found");return s.extend({url:this.url,text:this.text},t,e)},this))},_attachWindowResizeCallback:function(){s(o).on("resize",s.proxy(this._windowResizeHandler,this))},_detachWindowResizeCallback:function(){s(o).off("resize",this._windowResizeHandler)},_windowResizeHandler:function(){(s.isFunction(this.showLabel)||s.isFunction(this.showCount))&&(o.clearTimeout(this._resizeTimer),this._resizeTimer=setTimeout(s.proxy(this.refresh,this),this.resizeTimeout))},_render:function(){this._clear(),this._defineOptionsByScreen(),this._$element.addClass(this.elementClass),this._$shares=s("
").addClass(this.sharesClass).appendTo(this._$element),this._renderShares()},_defineOptionsByScreen:function(){this._screenWidth=s(o).width(),this._showLabel=n(this.showLabel,this,this._screenWidth),this._showCount=n(this.showCount,this,this._screenWidth)},_renderShares:function(){s.each(this.shares,s.proxy(function(e,t){this._renderShare(t)},this))},_renderShare:function(e){(s.isFunction(e.renderer)?s(e.renderer()):this._createShare(e)).addClass(this.shareClass).addClass(e.share?"jssocials-share-"+e.share:"").addClass(e.css).appendTo(this._$shares)},_createShare:function(e){var t=s("
"),n=this._createShareLink(e).appendTo(t);if(this._showCount){var i="inside"===this._showCount,r=i?n:s("
").addClass(this.shareCountBoxClass).appendTo(t);r.addClass(i?this.shareLinkCountClass:this.shareCountBoxClass),this._renderShareCount(e,r)}return t},_createShareLink:function(n){var i=this._getShareStrategy(n).call(n,{shareUrl:this._getShareUrl(n)});return i.addClass(this.shareLinkClass).append(this._createShareLogo(n)),this._showLabel&&i.append(this._createShareLabel(n)),s.each(this.on||{},function(e,t){s.isFunction(t)&&i.on(e,s.proxy(t,n))}),i},_getShareStrategy:function(e){var t=c[e.shareIn||this.shareIn];if(!t)throw Error("Share strategy '"+this.shareIn+"' not found");return t},_getShareUrl:function(e){var t=n(e.shareUrl,e);return this._formatShareUrl(t,e)},_createShareLogo:function(e){var t=e.logo,n=i.test(t)?s("").attr("src",e.logo):s("").addClass(t);return n.addClass(this.shareLogoClass),n},_createShareLabel:function(e){return s("").addClass(this.shareLabelClass).text(e.label)},_renderShareCount:function(e,t){var n=s("").addClass(this.shareCountClass);t.addClass(this.shareZeroCountClass).append(n),this._loadCount(e).done(s.proxy(function(e){e&&(t.removeClass(this.shareZeroCountClass),n.text(e))},this))},_loadCount:function(t){var n=s.Deferred(),e=this._getCountUrl(t);if(!e)return n.resolve(0).promise();var i=s.proxy(function(e){n.resolve(this._getCountValue(e,t))},this);return s.getJSON(e).done(i).fail(function(){s.get(e).done(i).fail(function(){n.resolve(0)})}),n.promise()},_getCountUrl:function(e){var t=n(e.countUrl,e);return this._formatShareUrl(t,e)},_getCountValue:function(e,t){var n=(s.isFunction(t.getCount)?t.getCount(e):e)||0;return"string"==typeof n?n:this._formatNumber(n)},_formatNumber:function(n){return s.each(r,function(e,t){if(t<=n)return n=parseFloat((n/t).toFixed(2))+e,!1}),n},_formatShareUrl:function(e,r){return e.replace(t,function(e,t,n){var i=r[n]||"";return i?(t||"")+o.encodeURIComponent(i):""})},_clear:function(){o.clearTimeout(this._resizeTimer),this._$element.empty()},_passOptionToShares:function(n,i){var r=this.shares;s.each(["url","text"],function(e,t){t===n&&s.each(r,function(e,t){t[n]=i})})},_normalizeShare:function(t){return s.isNumeric(t)?this.shares[t]:"string"==typeof t?s.grep(this.shares,function(e){return e.share===t})[0]:t},refresh:function(){this._render()},destroy:function(){this._clear(),this._detachWindowResizeCallback(),this._$element.removeClass(this.elementClass).removeData(a)},option:function(e,t){if(1===arguments.length)return this[e];this[e]=t,this._passOptionToShares(e,t),this.refresh()},shareOption:function(e,t,n){if(e=this._normalizeShare(e),2===arguments.length)return e[t];e[t]=n,this.refresh()}},s.fn.jsSocials=function(i){var r=s.makeArray(arguments).slice(1),o=this;return this.each(function(){var e,t=s(this),n=t.data(a);if(n)if("string"==typeof i){if(void 0!==(e=n[i].apply(n,r))&&e!==n)return o=e,!1}else n._detachWindowResizeCallback(),n._init(i),n._render();else new Socials(t,i)}),o};var c={popup:function(e){return s("").attr("href","#").on("click",function(){return o.open(e.shareUrl,null,"width=600, height=400, location=0, menubar=0, resizeable=0, scrollbars=0, status=0, titlebar=0, toolbar=0"),!1})},blank:function(e){return s("").attr({target:"_blank",href:e.shareUrl})},self:function(e){return s("").attr({target:"_self",href:e.shareUrl})}};o.jsSocials={Socials:Socials,shares:l,shareStrategies:c,setDefaults:function(e){var t;s.isPlainObject(e)?t=Socials.prototype:(t=l[e],e=arguments[1]||{}),s.extend(t,e)}}}(window,jQuery),function(e,t,n,i){t.extend(n.shares,{email:{label:"E-mail",logo:"fa fa-at",shareUrl:"mailto:{to}?subject={text}&body={url}",countUrl:"",shareIn:"self"},twitter:{label:"Tweet",logo:"fa fa-twitter",shareUrl:"https://twitter.com/share?url={url}&text={text}&via={via}&hashtags={hashtags}",countUrl:""},facebook:{label:"Like",logo:"fa fa-facebook",shareUrl:"https://facebook.com/sharer/sharer.php?u={url}",countUrl:"https://graph.facebook.com/?id={url}",getCount:function(e){return e.share&&e.share.share_count||0}},vkontakte:{label:"Like",logo:"fa fa-vk",shareUrl:"https://vk.com/share.php?url={url}&title={title}&description={text}",countUrl:"https://vk.com/share.php?act=count&index=1&url={url}",getCount:function(e){return parseInt(e.slice(15,-2).split(", ")[1])}},googleplus:{label:"+1",logo:"fa fa-google",shareUrl:"https://plus.google.com/share?url={url}",countUrl:""},linkedin:{label:"Share",logo:"fa fa-linkedin",shareUrl:"https://www.linkedin.com/shareArticle?mini=true&url={url}",countUrl:"https://www.linkedin.com/countserv/count/share?format=jsonp&url={url}&callback=?",getCount:function(e){return e.count}},pinterest:{label:"Pin it",logo:"fa fa-pinterest",shareUrl:"https://pinterest.com/pin/create/bookmarklet/?media={media}&url={url}&description={text}",countUrl:"https://api.pinterest.com/v1/urls/count.json?&url={url}&callback=?",getCount:function(e){return e.count}},stumbleupon:{label:"Share",logo:"fa fa-stumbleupon",shareUrl:"http://www.stumbleupon.com/submit?url={url}&title={title}",countUrl:"https://cors-anywhere.herokuapp.com/https://www.stumbleupon.com/services/1.01/badge.getinfo?url={url}",getCount:function(e){return e.result&&e.result.views}},telegram:{label:"Telegram",logo:"fa fa-telegram",shareUrl:"tg://msg?text={url} {text}",countUrl:"",shareIn:"self"},whatsapp:{label:"WhatsApp",logo:"fa fa-whatsapp",shareUrl:"whatsapp://send?text={url} {text}",countUrl:"",shareIn:"self"},line:{label:"LINE",logo:"fa fa-comment",shareUrl:"http://line.me/R/msg/text/?{text} {url}",countUrl:""},viber:{label:"Viber",logo:"fa fa-volume-control-phone",shareUrl:"viber://forward?text={url} {text}",countUrl:"",shareIn:"self"},pocket:{label:"Pocket",logo:"fa fa-get-pocket",shareUrl:"https://getpocket.com/save?url={url}&title={title}",countUrl:""},messenger:{label:"Share",logo:"fa fa-commenting",shareUrl:"fb-messenger://share?link={url}",countUrl:"",shareIn:"self"},rss:{label:"RSS",logo:"fa fa-rss",shareUrl:"/feeds/",countUrl:"",shareIn:"blank"}})}(window,jQuery,window.jsSocials); //# sourceMappingURL=castanet-min.js.map