From cfe5fb9e5f2399c32766df8181ad337da8320898 Mon Sep 17 00:00:00 2001 From: DariusIII Date: Thu, 19 Dec 2019 10:18:32 +0100 Subject: [PATCH] Update tinyMCE to version 5.1.5 --- package.json | 2 +- public/assets/js/all-js.js | 2 +- public/assets/js/plugins/advlist/plugin.js | 2 +- .../assets/js/plugins/advlist/plugin.min.js | 2 +- public/assets/js/plugins/anchor/plugin.js | 2 +- public/assets/js/plugins/anchor/plugin.min.js | 2 +- public/assets/js/plugins/autolink/plugin.js | 2 +- .../assets/js/plugins/autolink/plugin.min.js | 2 +- public/assets/js/plugins/autoresize/plugin.js | 2 +- .../js/plugins/autoresize/plugin.min.js | 2 +- public/assets/js/plugins/autosave/plugin.js | 2 +- .../assets/js/plugins/autosave/plugin.min.js | 2 +- public/assets/js/plugins/bbcode/plugin.js | 2 +- public/assets/js/plugins/bbcode/plugin.min.js | 2 +- public/assets/js/plugins/charmap/plugin.js | 5 +- .../assets/js/plugins/charmap/plugin.min.js | 4 +- public/assets/js/plugins/code/plugin.js | 2 +- public/assets/js/plugins/code/plugin.min.js | 2 +- public/assets/js/plugins/codesample/plugin.js | 2 +- .../js/plugins/codesample/plugin.min.js | 2 +- .../assets/js/plugins/colorpicker/plugin.js | 2 +- .../js/plugins/colorpicker/plugin.min.js | 2 +- .../assets/js/plugins/contextmenu/plugin.js | 2 +- .../js/plugins/contextmenu/plugin.min.js | 2 +- .../js/plugins/directionality/plugin.js | 2 +- .../js/plugins/directionality/plugin.min.js | 2 +- public/assets/js/plugins/emoticons/plugin.js | 2 +- .../assets/js/plugins/emoticons/plugin.min.js | 2 +- public/assets/js/plugins/fullpage/plugin.js | 2 +- .../assets/js/plugins/fullpage/plugin.min.js | 2 +- public/assets/js/plugins/fullscreen/plugin.js | 2 +- .../js/plugins/fullscreen/plugin.min.js | 2 +- public/assets/js/plugins/help/plugin.js | 2 +- public/assets/js/plugins/help/plugin.min.js | 2 +- public/assets/js/plugins/hr/plugin.js | 2 +- public/assets/js/plugins/hr/plugin.min.js | 2 +- public/assets/js/plugins/image/plugin.js | 2 +- public/assets/js/plugins/image/plugin.min.js | 2 +- public/assets/js/plugins/imagetools/plugin.js | 2 +- .../js/plugins/imagetools/plugin.min.js | 2 +- public/assets/js/plugins/importcss/plugin.js | 2 +- .../assets/js/plugins/importcss/plugin.min.js | 2 +- .../js/plugins/insertdatetime/plugin.js | 2 +- .../js/plugins/insertdatetime/plugin.min.js | 2 +- .../assets/js/plugins/legacyoutput/plugin.js | 2 +- .../js/plugins/legacyoutput/plugin.min.js | 2 +- public/assets/js/plugins/link/plugin.js | 2 +- public/assets/js/plugins/link/plugin.min.js | 2 +- public/assets/js/plugins/lists/plugin.js | 2 +- public/assets/js/plugins/lists/plugin.min.js | 2 +- public/assets/js/plugins/media/plugin.js | 2 +- public/assets/js/plugins/media/plugin.min.js | 2 +- .../assets/js/plugins/nonbreaking/plugin.js | 2 +- .../js/plugins/nonbreaking/plugin.min.js | 2 +- .../assets/js/plugins/noneditable/plugin.js | 2 +- .../js/plugins/noneditable/plugin.min.js | 2 +- public/assets/js/plugins/pagebreak/plugin.js | 2 +- .../assets/js/plugins/pagebreak/plugin.min.js | 2 +- public/assets/js/plugins/paste/plugin.js | 31 +- public/assets/js/plugins/paste/plugin.min.js | 4 +- public/assets/js/plugins/preview/plugin.js | 2 +- .../assets/js/plugins/preview/plugin.min.js | 2 +- public/assets/js/plugins/print/plugin.js | 2 +- public/assets/js/plugins/print/plugin.min.js | 2 +- public/assets/js/plugins/quickbars/plugin.js | 2 +- .../assets/js/plugins/quickbars/plugin.min.js | 2 +- public/assets/js/plugins/save/plugin.js | 2 +- public/assets/js/plugins/save/plugin.min.js | 2 +- .../assets/js/plugins/searchreplace/plugin.js | 2 +- .../js/plugins/searchreplace/plugin.min.js | 2 +- .../assets/js/plugins/spellchecker/plugin.js | 2 +- .../js/plugins/spellchecker/plugin.min.js | 2 +- public/assets/js/plugins/tabfocus/plugin.js | 2 +- .../assets/js/plugins/tabfocus/plugin.min.js | 2 +- public/assets/js/plugins/table/plugin.js | 2 +- public/assets/js/plugins/table/plugin.min.js | 2 +- public/assets/js/plugins/template/plugin.js | 2 +- .../assets/js/plugins/template/plugin.min.js | 2 +- public/assets/js/plugins/textcolor/plugin.js | 2 +- .../assets/js/plugins/textcolor/plugin.min.js | 2 +- .../assets/js/plugins/textpattern/plugin.js | 2 +- .../js/plugins/textpattern/plugin.min.js | 2 +- public/assets/js/plugins/toc/plugin.js | 2 +- public/assets/js/plugins/toc/plugin.min.js | 2 +- .../assets/js/plugins/visualblocks/plugin.js | 2 +- .../js/plugins/visualblocks/plugin.min.js | 2 +- .../assets/js/plugins/visualchars/plugin.js | 2 +- .../js/plugins/visualchars/plugin.min.js | 2 +- public/assets/js/plugins/wordcount/plugin.js | 2 +- .../assets/js/plugins/wordcount/plugin.min.js | 2 +- public/assets/js/themes/mobile/theme.js | 302 +++++----- public/assets/js/themes/mobile/theme.min.js | 4 +- public/assets/js/themes/silver/theme.js | 543 +++++++++--------- public/assets/js/themes/silver/theme.min.js | 4 +- 94 files changed, 519 insertions(+), 550 deletions(-) diff --git a/package.json b/package.json index 4503b6457..a9a4af41b 100644 --- a/package.json +++ b/package.json @@ -39,6 +39,6 @@ "normalize.css": "^8.0.1", "pace-js": "^1.0.2", "pnotify": "^4.0.0", - "tinymce": "^5.1.4" + "tinymce": "^5.1.5" } } diff --git a/public/assets/js/all-js.js b/public/assets/js/all-js.js index 01f14131d..7def8e795 100644 --- a/public/assets/js/all-js.js +++ b/public/assets/js/all-js.js @@ -1 +1 @@ -var l,a;!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(e,t){"use strict";var n=[],r=e.document,o=Object.getPrototypeOf,i=n.slice,c=n.concat,a=n.push,s=n.indexOf,l={},u=l.toString,h=l.hasOwnProperty,f=h.toString,d=f.call(Object),m={},v=function(e){return"function"==typeof e&&"number"!=typeof e.nodeType},p=function(e){return null!=e&&e===e.window},g={type:!0,src:!0,nonce:!0,noModule:!0};function b(e,t,n){var o,i,c=(n=n||r).createElement("script");if(c.text=e,t)for(o in g)(i=t[o]||t.getAttribute&&t.getAttribute(o))&&c.setAttribute(o,i);n.head.appendChild(c).parentNode.removeChild(c)}function z(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?l[u.call(e)]||"object":typeof e}var y="3.4.1",C=function(e,t){return new C.fn.init(e,t)},M=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;function w(e){var t=!!e&&"length"in e&&e.length,n=z(e);return!v(e)&&!p(e)&&("array"===n||0===t||"number"==typeof t&&0+~]|"+I+")"+I+"*"),U=new RegExp(I+"|>"),W=new RegExp(B),Y=new RegExp("^"+P+"$"),X={ID:new RegExp("^#("+P+")"),CLASS:new RegExp("^\\.("+P+")"),TAG:new RegExp("^("+P+"|[*])"),ATTR:new RegExp("^"+R),PSEUDO:new RegExp("^"+B),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+I+"*(even|odd|(([+-]|)(\\d*)n|)"+I+"*(?:([+-]|)"+I+"*(\\d+)|))"+I+"*\\)|)","i"),bool:new RegExp("^(?:"+O+")$","i"),needsContext:new RegExp("^"+I+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+I+"*((?:-\\d)?\\d*)"+I+"*\\)|)(?=[^-]|$)","i")},G=/HTML$/i,Q=/^(?:input|select|textarea|button)$/i,Z=/^h\d$/i,K=/^[^{]+\{\s*\[native \w/,J=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ee=/[+~]/,te=new RegExp("\\\\([\\da-f]{1,6}"+I+"?|("+I+")|.)","ig"),ne=function(e,t,n){var r="0x"+t-65536;return r!=r||n?t:r<0?String.fromCharCode(r+65536):String.fromCharCode(r>>10|55296,1023&r|56320)},re=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,oe=function(e,t){return t?"\0"===e?"�":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e},ie=function(){f()},ce=ye(function(e){return!0===e.disabled&&"fieldset"===e.nodeName.toLowerCase()},{dir:"parentNode",next:"legend"});try{E.apply(k=D.call(C.childNodes),C.childNodes),k[C.childNodes.length].nodeType}catch(t){E={apply:k.length?function(e,t){T.apply(e,D.call(t))}:function(e,t){for(var n=e.length,r=0;e[n++]=t[r++];);e.length=n-1}}}function ae(e,t,r,o){var i,a,l,u,h,m,g,b=t&&t.ownerDocument,M=t?t.nodeType:9;if(r=r||[],"string"!=typeof e||!e||1!==M&&9!==M&&11!==M)return r;if(!o&&((t?t.ownerDocument||t:C)!==d&&f(t),t=t||d,v)){if(11!==M&&(h=J.exec(e)))if(i=h[1]){if(9===M){if(!(l=t.getElementById(i)))return r;if(l.id===i)return r.push(l),r}else if(b&&(l=b.getElementById(i))&&z(t,l)&&l.id===i)return r.push(l),r}else{if(h[2])return E.apply(r,t.getElementsByTagName(e)),r;if((i=h[3])&&n.getElementsByClassName&&t.getElementsByClassName)return E.apply(r,t.getElementsByClassName(i)),r}if(n.qsa&&!S[e+" "]&&(!p||!p.test(e))&&(1!==M||"object"!==t.nodeName.toLowerCase())){if(g=e,b=t,1===M&&U.test(e)){for((u=t.getAttribute("id"))?u=u.replace(re,oe):t.setAttribute("id",u=y),a=(m=c(e)).length;a--;)m[a]="#"+u+" "+ze(m[a]);g=m.join(","),b=ee.test(e)&&ge(t.parentNode)||t}try{return E.apply(r,b.querySelectorAll(g)),r}catch(t){S(e,!0)}finally{u===y&&t.removeAttribute("id")}}}return s(e.replace(F,"$1"),t,r,o)}function se(){var e=[];return function t(n,o){return e.push(n+" ")>r.cacheLength&&delete t[e.shift()],t[n+" "]=o}}function le(e){return e[y]=!0,e}function ue(e){var t=d.createElement("fieldset");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function he(e,t){for(var n=e.split("|"),o=n.length;o--;)r.attrHandle[n[o]]=t}function fe(e,t){var n=t&&e,r=n&&1===e.nodeType&&1===t.nodeType&&e.sourceIndex-t.sourceIndex;if(r)return r;if(n)for(;n=n.nextSibling;)if(n===t)return-1;return e?1:-1}function de(e){return function(t){return"input"===t.nodeName.toLowerCase()&&t.type===e}}function me(e){return function(t){var n=t.nodeName.toLowerCase();return("input"===n||"button"===n)&&t.type===e}}function ve(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 pe(e){return le(function(t){return t=+t,le(function(n,r){for(var o,i=e([],n.length,t),c=i.length;c--;)n[o=i[c]]&&(n[o]=!(r[o]=n[o]))})})}function ge(e){return e&&void 0!==e.getElementsByTagName&&e}for(t in n=ae.support={},i=ae.isXML=function(e){var t=e.namespaceURI,n=(e.ownerDocument||e).documentElement;return!G.test(t||n&&n.nodeName||"HTML")},f=ae.setDocument=function(e){var t,o,c=e?e.ownerDocument||e:C;return c!==d&&9===c.nodeType&&c.documentElement&&(m=(d=c).documentElement,v=!i(d),C!==d&&(o=d.defaultView)&&o.top!==o&&(o.addEventListener?o.addEventListener("unload",ie,!1):o.attachEvent&&o.attachEvent("onunload",ie)),n.attributes=ue(function(e){return e.className="i",!e.getAttribute("className")}),n.getElementsByTagName=ue(function(e){return e.appendChild(d.createComment("")),!e.getElementsByTagName("*").length}),n.getElementsByClassName=K.test(d.getElementsByClassName),n.getById=ue(function(e){return m.appendChild(e).id=y,!d.getElementsByName||!d.getElementsByName(y).length}),n.getById?(r.filter.ID=function(e){var t=e.replace(te,ne);return function(e){return e.getAttribute("id")===t}},r.find.ID=function(e,t){if(void 0!==t.getElementById&&v){var n=t.getElementById(e);return n?[n]:[]}}):(r.filter.ID=function(e){var t=e.replace(te,ne);return function(e){var n=void 0!==e.getAttributeNode&&e.getAttributeNode("id");return n&&n.value===t}},r.find.ID=function(e,t){if(void 0!==t.getElementById&&v){var n,r,o,i=t.getElementById(e);if(i){if((n=i.getAttributeNode("id"))&&n.value===e)return[i];for(o=t.getElementsByName(e),r=0;i=o[r++];)if((n=i.getAttributeNode("id"))&&n.value===e)return[i]}return[]}}),r.find.TAG=n.getElementsByTagName?function(e,t){return void 0!==t.getElementsByTagName?t.getElementsByTagName(e):n.qsa?t.querySelectorAll(e):void 0}:function(e,t){var n,r=[],o=0,i=t.getElementsByTagName(e);if("*"===e){for(;n=i[o++];)1===n.nodeType&&r.push(n);return r}return i},r.find.CLASS=n.getElementsByClassName&&function(e,t){if(void 0!==t.getElementsByClassName&&v)return t.getElementsByClassName(e)},g=[],p=[],(n.qsa=K.test(d.querySelectorAll))&&(ue(function(e){m.appendChild(e).innerHTML="",e.querySelectorAll("[msallowcapture^='']").length&&p.push("[*^$]="+I+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||p.push("\\["+I+"*(?:value|"+O+")"),e.querySelectorAll("[id~="+y+"-]").length||p.push("~="),e.querySelectorAll(":checked").length||p.push(":checked"),e.querySelectorAll("a#"+y+"+*").length||p.push(".#.+[+~]")}),ue(function(e){e.innerHTML="";var t=d.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&p.push("name"+I+"*[*^$|!~]?="),2!==e.querySelectorAll(":enabled").length&&p.push(":enabled",":disabled"),m.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&p.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),p.push(",.*:")})),(n.matchesSelector=K.test(b=m.matches||m.webkitMatchesSelector||m.mozMatchesSelector||m.oMatchesSelector||m.msMatchesSelector))&&ue(function(e){n.disconnectedMatch=b.call(e,"*"),b.call(e,"[s!='']:x"),g.push("!=",B)}),p=p.length&&new RegExp(p.join("|")),g=g.length&&new RegExp(g.join("|")),t=K.test(m.compareDocumentPosition),z=t||K.test(m.contains)?function(e,t){var n=9===e.nodeType?e.documentElement:e,r=t&&t.parentNode;return e===r||!(!r||1!==r.nodeType||!(n.contains?n.contains(r):e.compareDocumentPosition&&16&e.compareDocumentPosition(r)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},L=t?function(e,t){if(e===t)return h=!0,0;var r=!e.compareDocumentPosition-!t.compareDocumentPosition;return r||(1&(r=(e.ownerDocument||e)===(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!n.sortDetached&&t.compareDocumentPosition(e)===r?e===d||e.ownerDocument===C&&z(C,e)?-1:t===d||t.ownerDocument===C&&z(C,t)?1:u?N(u,e)-N(u,t):0:4&r?-1:1)}:function(e,t){if(e===t)return h=!0,0;var n,r=0,o=e.parentNode,i=t.parentNode,c=[e],a=[t];if(!o||!i)return e===d?-1:t===d?1:o?-1:i?1:u?N(u,e)-N(u,t):0;if(o===i)return fe(e,t);for(n=e;n=n.parentNode;)c.unshift(n);for(n=t;n=n.parentNode;)a.unshift(n);for(;c[r]===a[r];)r++;return r?fe(c[r],a[r]):c[r]===C?-1:a[r]===C?1:0}),d},ae.matches=function(e,t){return ae(e,null,null,t)},ae.matchesSelector=function(e,t){if((e.ownerDocument||e)!==d&&f(e),n.matchesSelector&&v&&!S[t+" "]&&(!g||!g.test(t))&&(!p||!p.test(t)))try{var r=b.call(e,t);if(r||n.disconnectedMatch||e.document&&11!==e.document.nodeType)return r}catch(e){S(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]||ae.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]&&ae.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return X.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&W.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(te,ne).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=_[e+" "];return t||(t=new RegExp("(^|"+I+")"+e+"("+I+"|$)"))&&_(e,function(e){return t.test("string"==typeof e.className&&e.className||void 0!==e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(e,t,n){return function(r){var o=ae.attr(r,e);return null==o?"!="===t:!t||(o+="","="===t?o===n:"!="===t?o!==n:"^="===t?n&&0===o.indexOf(n):"*="===t?n&&-1:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function k(e,t,n){return v(t)?C.grep(e,function(e,r){return!!t.call(e,r,e)!==n}):t.nodeType?C.grep(e,function(e){return e===t!==n}):"string"!=typeof t?C.grep(e,function(e){return-1)[^>]*|#([\w-]+))$/;(C.fn.init=function(e,t,n){var o,i;if(!e)return this;if(n=n||A,"string"==typeof e){if(!(o="<"===e[0]&&">"===e[e.length-1]&&3<=e.length?[null,e,null]:T.exec(e))||!o[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(o[1]){if(t=t instanceof C?t[0]:t,C.merge(this,C.parseHTML(o[1],t&&t.nodeType?t.ownerDocument||t:r,!0)),V.test(o[1])&&C.isPlainObject(t))for(o in t)v(this[o])?this[o](t[o]):this.attr(o,t[o]);return this}return(i=r.getElementById(o[2]))&&(this[0]=i,this.length=1),this}return e.nodeType?(this[0]=e,this.length=1,this):v(e)?void 0!==n.ready?n.ready(e):e(C):C.makeArray(e,this)}).prototype=C.fn,A=C(r);var E=/^(?:parents|prev(?:Until|All))/,D={children:!0,contents:!0,next:!0,prev:!0};function N(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}C.fn.extend({has:function(e){var t=C(e,this),n=t.length;return this.filter(function(){for(var e=0;e\x20\t\r\n\f]*)/i,me=/^$|^module$|\/(?:java|ecma)script/i,ve={option:[1,""],thead:[1,"","
"],col:[2,"","
"],tr:[2,"","
"],td:[3,"","
"],_default:[0,"",""]};function pe(e,t){var n;return n=void 0!==e.getElementsByTagName?e.getElementsByTagName(t||"*"):void 0!==e.querySelectorAll?e.querySelectorAll(t||"*"):[],void 0===t||t&&L(e,t)?C.merge([e],n):n}function ge(e,t){for(var n=0,r=e.length;nx",m.noCloneChecked=!!be.cloneNode(!0).lastChild.defaultValue;var Me=/^key/,we=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,_e=/^([^.]*)(?:\.(.+)|)/;function xe(){return!0}function He(){return!1}function Se(e,t){return e===function(){try{return r.activeElement}catch(e){}}()==("focus"===t)}function Le(e,t,n,r,o,i){var c,a;if("object"==typeof t){for(a in"string"!=typeof n&&(r=r||n,n=void 0),t)Le(e,a,n,r,t[a],i);return e}if(null==r&&null==o?(o=n,r=n=void 0):null==o&&("string"==typeof n?(o=r,r=void 0):(o=r,r=n,n=void 0)),!1===o)o=He;else if(!o)return e;return 1===i&&(c=o,(o=function(e){return C().off(e),c.apply(this,arguments)}).guid=c.guid||(c.guid=C.guid++)),e.each(function(){C.event.add(this,t,o,r,n)})}function Ve(e,t,n){n?(Q.set(e,t,!1),C.event.add(e,t,{namespace:!1,handler:function(e){var r,o,c=Q.get(this,t);if(1&e.isTrigger&&this[t]){if(c.length)(C.event.special[t]||{}).delegateType&&e.stopPropagation();else if(c=i.call(arguments),Q.set(this,t,c),r=n(this,t),this[t](),c!==(o=Q.get(this,t))||r?Q.set(this,t,!1):o={},c!==o)return e.stopImmediatePropagation(),e.preventDefault(),o.value}else c.length&&(Q.set(this,t,{value:C.event.trigger(C.extend(c[0],C.Event.prototype),c.slice(1),this)}),e.stopImmediatePropagation())}})):void 0===Q.get(e,t)&&C.event.add(e,t,xe)}C.event={global:{},add:function(e,t,n,r,o){var i,c,a,s,l,u,h,f,d,m,v,p=Q.get(e);if(p)for(n.handler&&(n=(i=n).handler,o=i.selector),o&&C.find.matchesSelector(oe,o),n.guid||(n.guid=C.guid++),(s=p.events)||(s=p.events={}),(c=p.handle)||(c=p.handle=function(t){return void 0!==C&&C.event.triggered!==t.type?C.event.dispatch.apply(e,arguments):void 0}),l=(t=(t||"").match(O)||[""]).length;l--;)d=v=(a=_e.exec(t[l])||[])[1],m=(a[2]||"").split(".").sort(),d&&(h=C.event.special[d]||{},d=(o?h.delegateType:h.bindType)||d,h=C.event.special[d]||{},u=C.extend({type:d,origType:v,data:r,handler:n,guid:n.guid,selector:o,needsContext:o&&C.expr.match.needsContext.test(o),namespace:m.join(".")},i),(f=s[d])||((f=s[d]=[]).delegateCount=0,h.setup&&!1!==h.setup.call(e,r,m,c)||e.addEventListener&&e.addEventListener(d,c)),h.add&&(h.add.call(e,u),u.handler.guid||(u.handler.guid=n.guid)),o?f.splice(f.delegateCount++,0,u):f.push(u),C.event.global[d]=!0)},remove:function(e,t,n,r,o){var i,c,a,s,l,u,h,f,d,m,v,p=Q.hasData(e)&&Q.get(e);if(p&&(s=p.events)){for(l=(t=(t||"").match(O)||[""]).length;l--;)if(d=v=(a=_e.exec(t[l])||[])[1],m=(a[2]||"").split(".").sort(),d){for(h=C.event.special[d]||{},f=s[d=(r?h.delegateType:h.bindType)||d]||[],a=a[2]&&new RegExp("(^|\\.)"+m.join("\\.(?:.*\\.|)")+"(\\.|$)"),c=i=f.length;i--;)u=f[i],!o&&v!==u.origType||n&&n.guid!==u.guid||a&&!a.test(u.namespace)||r&&r!==u.selector&&("**"!==r||!u.selector)||(f.splice(i,1),u.selector&&f.delegateCount--,h.remove&&h.remove.call(e,u));c&&!f.length&&(h.teardown&&!1!==h.teardown.call(e,m,p.handle)||C.removeEvent(e,d,p.handle),delete s[d])}else for(d in s)C.event.remove(e,d+t[l],n,r,!0);C.isEmptyObject(s)&&Q.remove(e,"handle events")}},dispatch:function(e){var t,n,r,o,i,c,a=C.event.fix(e),s=new Array(arguments.length),l=(Q.get(this,"events")||{})[a.type]||[],u=C.event.special[a.type]||{};for(s[0]=a,t=1;t\x20\t\r\n\f]*)[^>]*)\/>/gi,Ae=/\s*$/g;function De(e,t){return L(e,"table")&&L(11!==t.nodeType?t:t.firstChild,"tr")&&C(e).children("tbody")[0]||e}function Ne(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function Oe(e){return"true/"===(e.type||"").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute("type"),e}function Ie(e,t){var n,r,o,i,c,a,s,l;if(1===t.nodeType){if(Q.hasData(e)&&(i=Q.access(e),c=Q.set(t,i),l=i.events))for(o in delete c.handle,c.events={},l)for(n=0,r=l[o].length;n")},clone:function(e,t,n){var r,o,i,c,a,s,l,u=e.cloneNode(!0),h=ie(e);if(!(m.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||C.isXMLDoc(e)))for(c=pe(u),r=0,o=(i=pe(e)).length;r").attr(e.scriptAttrs||{}).prop({charset:e.scriptCharset,src:e.url}).on("load error",n=function(e){t.remove(),n=null,e&&i("error"===e.type?404:200,e.type)}),r.head.appendChild(t[0])},abort:function(){n&&n()}}});var Yt,Xt=[],Gt=/(=)\?(?=&|$)|\?\?/;C.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=Xt.pop()||C.expando+"_"+xt++;return this[e]=!0,e}}),C.ajaxPrefilter("json jsonp",function(t,n,r){var o,i,c,a=!1!==t.jsonp&&(Gt.test(t.url)?"url":"string"==typeof t.data&&0===(t.contentType||"").indexOf("application/x-www-form-urlencoded")&&Gt.test(t.data)&&"data");if(a||"jsonp"===t.dataTypes[0])return o=t.jsonpCallback=v(t.jsonpCallback)?t.jsonpCallback():t.jsonpCallback,a?t[a]=t[a].replace(Gt,"$1"+o):!1!==t.jsonp&&(t.url+=(Ht.test(t.url)?"&":"?")+t.jsonp+"="+o),t.converters["script json"]=function(){return c||C.error(o+" was not called"),c[0]},t.dataTypes[0]="json",i=e[o],e[o]=function(){c=arguments},r.always(function(){void 0===i?C(e).removeProp(o):e[o]=i,t[o]&&(t.jsonpCallback=n.jsonpCallback,Xt.push(o)),c&&v(i)&&i(c[0]),c=i=void 0}),"script"}),m.createHTMLDocument=((Yt=r.implementation.createHTMLDocument("").body).innerHTML="
",2===Yt.childNodes.length),C.parseHTML=function(e,t,n){return"string"!=typeof e?[]:("boolean"==typeof t&&(n=t,t=!1),t||(m.createHTMLDocument?((o=(t=r.implementation.createHTMLDocument("")).createElement("base")).href=r.location.href,t.head.appendChild(o)):t=r),c=!n&&[],(i=V.exec(e))?[t.createElement(i[1])]:(i=Ce([e],t,c),c&&c.length&&C(c).remove(),C.merge([],i.childNodes)));var o,i,c},C.fn.load=function(e,t,n){var r,o,i,c=this,a=e.indexOf(" ");return-1").append(C.parseHTML(e)).find(r):e)}).always(n&&function(e,t){c.each(function(){n.apply(this,i||[e.responseText,t,e])})}),this},C.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){C.fn[t]=function(e){return this.on(t,e)}}),C.expr.pseudos.animated=function(e){return C.grep(C.timers,function(t){return e===t.elem}).length},C.offset={setOffset:function(e,t,n){var r,o,i,c,a,s,l=C.css(e,"position"),u=C(e),h={};"static"===l&&(e.style.position="relative"),a=u.offset(),i=C.css(e,"top"),s=C.css(e,"left"),("absolute"===l||"fixed"===l)&&-1<(i+s).indexOf("auto")?(c=(r=u.position()).top,o=r.left):(c=parseFloat(i)||0,o=parseFloat(s)||0),v(t)&&(t=t.call(e,n,C.extend({},a))),null!=t.top&&(h.top=t.top-a.top+c),null!=t.left&&(h.left=t.left-a.left+o),"using"in t?t.using.call(e,h):u.css(h)}},C.fn.extend({offset:function(e){if(arguments.length)return void 0===e?this:this.each(function(t){C.offset.setOffset(this,e,t)});var t,n,r=this[0];return r?r.getClientRects().length?(t=r.getBoundingClientRect(),n=r.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,r=this[0],o={top:0,left:0};if("fixed"===C.css(r,"position"))t=r.getBoundingClientRect();else{for(t=this.offset(),n=r.ownerDocument,e=r.offsetParent||n.documentElement;e&&(e===n.body||e===n.documentElement)&&"static"===C.css(e,"position");)e=e.parentNode;e&&e!==r&&1===e.nodeType&&((o=C(e).offset()).top+=C.css(e,"borderTopWidth",!0),o.left+=C.css(e,"borderLeftWidth",!0))}return{top:t.top-o.top-C.css(r,"marginTop",!0),left:t.left-o.left-C.css(r,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var e=this.offsetParent;e&&"static"===C.css(e,"position");)e=e.offsetParent;return e||oe})}}),C.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(e,t){var n="pageYOffset"===t;C.fn[e]=function(r){return $(this,function(e,r,o){var i;if(p(e)?i=e:9===e.nodeType&&(i=e.defaultView),void 0===o)return i?i[t]:e[r];i?i.scrollTo(n?i.pageXOffset:o,n?o:i.pageYOffset):e[r]=o},e,r,arguments.length)}}),C.each(["top","left"],function(e,t){C.cssHooks[t]=qe(m.pixelPosition,function(e,n){if(n)return n=$e(e,t),Be.test(n)?C(e).position()[t]+"px":n})}),C.each({Height:"height",Width:"width"},function(e,t){C.each({padding:"inner"+e,content:t,"":"outer"+e},function(n,r){C.fn[r]=function(o,i){var c=arguments.length&&(n||"boolean"!=typeof o),a=n||(!0===o||!0===i?"margin":"border");return $(this,function(t,n,o){var i;return p(t)?0===r.indexOf("outer")?t["inner"+e]:t.document.documentElement["client"+e]:9===t.nodeType?(i=t.documentElement,Math.max(t.body["scroll"+e],i["scroll"+e],t.body["offset"+e],i["offset"+e],i["client"+e])):void 0===o?C.css(t,n,a):C.style(t,n,o,a)},t,c?o:void 0,c)}})}),C.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){C.fn[t]=function(e,n){return 0+o[i])return 1;if(+r[i]<+o[i])return-1}return 0}(e.fn.jquery,t)}e.migrateVersion="3.1.0",t.console&&t.console.log&&(e&&n("3.0.0")||t.console.log("JQMIGRATE: jQuery 3.0.0+ REQUIRED"),e.migrateWarnings&&t.console.log("JQMIGRATE: Migrate plugin loaded multiple times"),t.console.log("JQMIGRATE: Migrate is installed"+(e.migrateMute?"":" with logging active")+", version "+e.migrateVersion));var r={};function o(n){var o=t.console;r[n]||(r[n]=!0,e.migrateWarnings.push(n),o&&o.warn&&!e.migrateMute&&(o.warn("JQMIGRATE: "+n),e.migrateTrace&&o.trace&&o.trace()))}function i(e,t,n,r){Object.defineProperty(e,t,{configurable:!0,enumerable:!0,get:function(){return o(r),n},set:function(e){o(r),n=e}})}function c(e,t,n,r){e[t]=function(){return o(r),n.apply(this,arguments)}}e.migrateWarnings=[],void 0===e.migrateTrace&&(e.migrateTrace=!0),e.migrateReset=function(){r={},e.migrateWarnings.length=0},"BackCompat"===t.document.compatMode&&o("jQuery is not compatible with Quirks Mode");var a,s=e.fn.init,l=e.isNumeric,u=e.find,h=/\[(\s*[-\w]+\s*)([~|^$*]?=)\s*([-\w#]*?#[-\w#]*)\s*\]/,f=/\[(\s*[-\w]+\s*)([~|^$*]?=)\s*([-\w#]*?#[-\w#]*)\s*\]/g;for(a in e.fn.init=function(e){var t=Array.prototype.slice.call(arguments);return"string"==typeof e&&"#"===e&&(o("jQuery( '#' ) is not a valid selector"),t[0]=[]),s.apply(this,t)},e.fn.init.prototype=e.fn,e.find=function(e){var n=Array.prototype.slice.call(arguments);if("string"==typeof e&&h.test(e))try{t.document.querySelector(e)}catch(r){e=e.replace(f,function(e,t,n,r){return"["+t+n+'"'+r+'"]'});try{t.document.querySelector(e),o("Attribute selector with '#' must be quoted: "+n[0]),n[0]=e}catch(e){o("Attribute selector with '#' was not fixed: "+n[0])}}return u.apply(this,n)},u)Object.prototype.hasOwnProperty.call(u,a)&&(e.find[a]=u[a]);e.fn.size=function(){return o("jQuery.fn.size() is deprecated and removed; use the .length property"),this.length},e.parseJSON=function(){return o("jQuery.parseJSON is deprecated; use JSON.parse"),JSON.parse.apply(null,arguments)},e.isNumeric=function(t){var n,r,i=l(t),c=(r=(n=t)&&n.toString(),!e.isArray(n)&&0<=r-parseFloat(r)+1);return i!==c&&o("jQuery.isNumeric() should not be called on constructed objects"),c},n("3.3.0")&&c(e,"isWindow",function(e){return null!=e&&e===e.window},"jQuery.isWindow() is deprecated"),c(e,"holdReady",e.holdReady,"jQuery.holdReady is deprecated"),c(e,"unique",e.uniqueSort,"jQuery.unique is deprecated; use jQuery.uniqueSort"),i(e.expr,"filters",e.expr.pseudos,"jQuery.expr.filters is deprecated; use jQuery.expr.pseudos"),i(e.expr,":",e.expr.pseudos,"jQuery.expr[':'] is deprecated; use jQuery.expr.pseudos"),n("3.2.0")&&c(e,"nodeName",e.nodeName,"jQuery.nodeName is deprecated");var d=e.ajax;e.ajax=function(){var e=d.apply(this,arguments);return e.promise&&(c(e,"success",e.done,"jQXHR.success is deprecated and removed"),c(e,"error",e.fail,"jQXHR.error is deprecated and removed"),c(e,"complete",e.always,"jQXHR.complete is deprecated and removed")),e};var m=e.fn.removeAttr,v=e.fn.toggleClass,p=/\S+/g;e.fn.removeAttr=function(t){var n=this;return e.each(t.match(p),function(t,r){e.expr.match.bool.test(r)&&(o("jQuery.fn.removeAttr no longer sets boolean properties: "+r),n.prop(r,!1))}),m.apply(this,arguments)};var g=!(e.fn.toggleClass=function(t){return void 0!==t&&"boolean"!=typeof t?v.apply(this,arguments):(o("jQuery.fn.toggleClass( boolean ) is deprecated"),this.each(function(){var n=this.getAttribute&&this.getAttribute("class")||"";n&&e.data(this,"__className__",n),this.setAttribute&&this.setAttribute("class",n||!1===t?"":e.data(this,"__className__")||"")}))});e.swap&&e.each(["height","width","reliableMarginRight"],function(t,n){var r=e.cssHooks[n]&&e.cssHooks[n].get;r&&(e.cssHooks[n].get=function(){var e;return g=!0,e=r.apply(this,arguments),g=!1,e})}),e.swap=function(e,t,n,r){var i,c,a={};for(c in g||o("jQuery.swap() is undocumented and deprecated"),t)a[c]=e.style[c],e.style[c]=t[c];for(c in i=n.apply(e,r||[]),t)e.style[c]=a[c];return i};var b=e.data;function z(e){return e}e.data=function(t,n,r){var i;if(n&&"object"==typeof n&&2===arguments.length){i=e.hasData(t)&&b.call(this,t);var c={};for(var a in n)a!==e.camelCase(a)?(o("jQuery.data() always sets/gets camelCased names: "+a),i[a]=n[a]):c[a]=n[a];return b.call(this,t,c),n}return n&&"string"==typeof n&&n!==e.camelCase(n)&&(i=e.hasData(t)&&b.call(this,t))&&n in i?(o("jQuery.data() always sets/gets camelCased names: "+n),2=4)throw new Error("Bootstrap's JavaScript requires at least jQuery v1.9.1 but less than v4.0.0")}};l.jQueryDetection(),t.fn.emulateTransitionEnd=s,t.event.special[l.TRANSITION_END]={bindType:a,delegateType:a,handle:function(e){if(t(e.target).is(this))return e.handleObj.handler.apply(this,arguments)}};var u=t.fn.alert,h={CLOSE:"close.bs.alert",CLOSED:"closed.bs.alert",CLICK_DATA_API:"click.bs.alert.data-api"},f="alert",d="fade",m="show",v=function(){function e(e){this._element=e}var n=e.prototype;return n.close=function(e){var t=this._element;e&&(t=this._getRootElement(e)),this._triggerCloseEvent(t).isDefaultPrevented()||this._removeElement(t)},n.dispose=function(){t.removeData(this._element,"bs.alert"),this._element=null},n._getRootElement=function(e){var n=l.getSelectorFromElement(e),r=!1;return n&&(r=document.querySelector(n)),r||(r=t(e).closest("."+f)[0]),r},n._triggerCloseEvent=function(e){var n=t.Event(h.CLOSE);return t(e).trigger(n),n},n._removeElement=function(e){var n=this;if(t(e).removeClass(m),t(e).hasClass(d)){var r=l.getTransitionDurationFromElement(e);t(e).one(l.TRANSITION_END,function(t){return n._destroyElement(e,t)}).emulateTransitionEnd(r)}else this._destroyElement(e)},n._destroyElement=function(e){t(e).detach().trigger(h.CLOSED).remove()},e._jQueryInterface=function(n){return this.each(function(){var r=t(this),o=r.data("bs.alert");o||(o=new e(this),r.data("bs.alert",o)),"close"===n&&o[n](this)})},e._handleDismiss=function(e){return function(t){t&&t.preventDefault(),e.close(this)}},r(e,null,[{key:"VERSION",get:function(){return"4.4.1"}}]),e}();t(document).on(h.CLICK_DATA_API,'[data-dismiss="alert"]',v._handleDismiss(new v)),t.fn.alert=v._jQueryInterface,t.fn.alert.Constructor=v,t.fn.alert.noConflict=function(){return t.fn.alert=u,v._jQueryInterface};var p=t.fn.button,g="active",b="btn",z="focus",y='[data-toggle^="button"]',C='[data-toggle="buttons"]',M='[data-toggle="button"]',w='[data-toggle="buttons"] .btn',_='input:not([type="hidden"])',x=".active",H=".btn",S={CLICK_DATA_API:"click.bs.button.data-api",FOCUS_BLUR_DATA_API:"focus.bs.button.data-api blur.bs.button.data-api",LOAD_DATA_API:"load.bs.button.data-api"},L=function(){function e(e){this._element=e}var n=e.prototype;return n.toggle=function(){var e=!0,n=!0,r=t(this._element).closest(C)[0];if(r){var o=this._element.querySelector(_);if(o){if("radio"===o.type)if(o.checked&&this._element.classList.contains(g))e=!1;else{var i=r.querySelector(x);i&&t(i).removeClass(g)}else"checkbox"===o.type?"LABEL"===this._element.tagName&&o.checked===this._element.classList.contains(g)&&(e=!1):e=!1;e&&(o.checked=!this._element.classList.contains(g),t(o).trigger("change")),o.focus(),n=!1}}this._element.hasAttribute("disabled")||this._element.classList.contains("disabled")||(n&&this._element.setAttribute("aria-pressed",!this._element.classList.contains(g)),e&&t(this._element).toggleClass(g))},n.dispose=function(){t.removeData(this._element,"bs.button"),this._element=null},e._jQueryInterface=function(n){return this.each(function(){var r=t(this).data("bs.button");r||(r=new e(this),t(this).data("bs.button",r)),"toggle"===n&&r[n]()})},r(e,null,[{key:"VERSION",get:function(){return"4.4.1"}}]),e}();t(document).on(S.CLICK_DATA_API,y,function(e){var n=e.target;if(t(n).hasClass(b)||(n=t(n).closest(H)[0]),!n||n.hasAttribute("disabled")||n.classList.contains("disabled"))e.preventDefault();else{var r=n.querySelector(_);if(r&&(r.hasAttribute("disabled")||r.classList.contains("disabled")))return void e.preventDefault();L._jQueryInterface.call(t(n),"toggle")}}).on(S.FOCUS_BLUR_DATA_API,y,function(e){var n=t(e.target).closest(H)[0];t(n).toggleClass(z,/^focus(in)?$/.test(e.type))}),t(window).on(S.LOAD_DATA_API,function(){for(var e=[].slice.call(document.querySelectorAll(w)),t=0,n=e.length;t0,this._pointerEvent=Boolean(window.PointerEvent||window.MSPointerEvent),this._addEventListeners()}var n=e.prototype;return n.next=function(){this._isSliding||this._slide(D)},n.nextWhenVisible=function(){!document.hidden&&t(this._element).is(":visible")&&"hidden"!==t(this._element).css("visibility")&&this.next()},n.prev=function(){this._isSliding||this._slide(N)},n.pause=function(e){e||(this._isPaused=!0),this._element.querySelector(Y.NEXT_PREV)&&(l.triggerTransitionEnd(this._element),this.cycle(!0)),clearInterval(this._interval),this._interval=null},n.cycle=function(e){e||(this._isPaused=!1),this._interval&&(clearInterval(this._interval),this._interval=null),this._config.interval&&!this._isPaused&&(this._interval=setInterval((document.visibilityState?this.nextWhenVisible:this.next).bind(this),this._config.interval))},n.to=function(e){var n=this;this._activeElement=this._element.querySelector(Y.ACTIVE_ITEM);var r=this._getItemIndex(this._activeElement);if(!(e>this._items.length-1||e<0))if(this._isSliding)t(this._element).one(P.SLID,function(){return n.to(e)});else{if(r===e)return this.pause(),void this.cycle();var o=e>r?D:N;this._slide(o,this._items[e])}},n.dispose=function(){t(this._element).off(k),t.removeData(this._element,"bs.carousel"),this._items=null,this._config=null,this._element=null,this._interval=null,this._isPaused=null,this._isSliding=null,this._activeElement=null,this._indicatorsElement=null},n._getConfig=function(e){return e=c({},T,{},e),l.typeCheckConfig(V,e,E),e},n._handleSwipe=function(){var e=Math.abs(this.touchDeltaX);if(!(e<=40)){var t=e/this.touchDeltaX;this.touchDeltaX=0,t>0&&this.prev(),t<0&&this.next()}},n._addEventListeners=function(){var e=this;this._config.keyboard&&t(this._element).on(P.KEYDOWN,function(t){return e._keydown(t)}),"hover"===this._config.pause&&t(this._element).on(P.MOUSEENTER,function(t){return e.pause(t)}).on(P.MOUSELEAVE,function(t){return e.cycle(t)}),this._config.touch&&this._addTouchEventListeners()},n._addTouchEventListeners=function(){var e=this;if(this._touchSupported){var n=function(t){e._pointerEvent&&X[t.originalEvent.pointerType.toUpperCase()]?e.touchStartX=t.originalEvent.clientX:e._pointerEvent||(e.touchStartX=t.originalEvent.touches[0].clientX)},r=function(t){e._pointerEvent&&X[t.originalEvent.pointerType.toUpperCase()]&&(e.touchDeltaX=t.originalEvent.clientX-e.touchStartX),e._handleSwipe(),"hover"===e._config.pause&&(e.pause(),e.touchTimeout&&clearTimeout(e.touchTimeout),e.touchTimeout=setTimeout(function(t){return e.cycle(t)},500+e._config.interval))};t(this._element.querySelectorAll(Y.ITEM_IMG)).on(P.DRAG_START,function(e){return e.preventDefault()}),this._pointerEvent?(t(this._element).on(P.POINTERDOWN,function(e){return n(e)}),t(this._element).on(P.POINTERUP,function(e){return r(e)}),this._element.classList.add(W)):(t(this._element).on(P.TOUCHSTART,function(e){return n(e)}),t(this._element).on(P.TOUCHMOVE,function(t){return function(t){t.originalEvent.touches&&t.originalEvent.touches.length>1?e.touchDeltaX=0:e.touchDeltaX=t.originalEvent.touches[0].clientX-e.touchStartX}(t)}),t(this._element).on(P.TOUCHEND,function(e){return r(e)}))}},n._keydown=function(e){if(!/input|textarea/i.test(e.target.tagName))switch(e.which){case 37:e.preventDefault(),this.prev();break;case 39:e.preventDefault(),this.next()}},n._getItemIndex=function(e){return this._items=e&&e.parentNode?[].slice.call(e.parentNode.querySelectorAll(Y.ITEM)):[],this._items.indexOf(e)},n._getItemByDirection=function(e,t){var n=e===D,r=e===N,o=this._getItemIndex(t),i=this._items.length-1;if((r&&0===o||n&&o===i)&&!this._config.wrap)return t;var c=(o+(e===N?-1:1))%this._items.length;return-1===c?this._items[this._items.length-1]:this._items[c]},n._triggerSlideEvent=function(e,n){var r=this._getItemIndex(e),o=this._getItemIndex(this._element.querySelector(Y.ACTIVE_ITEM)),i=t.Event(P.SLIDE,{relatedTarget:e,direction:n,from:o,to:r});return t(this._element).trigger(i),i},n._setActiveIndicatorElement=function(e){if(this._indicatorsElement){var n=[].slice.call(this._indicatorsElement.querySelectorAll(Y.ACTIVE));t(n).removeClass(B);var r=this._indicatorsElement.children[this._getItemIndex(e)];r&&t(r).addClass(B)}},n._slide=function(e,n){var r,o,i,c=this,a=this._element.querySelector(Y.ACTIVE_ITEM),s=this._getItemIndex(a),u=n||a&&this._getItemByDirection(e,a),h=this._getItemIndex(u),f=Boolean(this._interval);if(e===D?(r=$,o=q,i=O):(r=F,o=U,i=I),u&&t(u).hasClass(B))this._isSliding=!1;else if(!this._triggerSlideEvent(u,i).isDefaultPrevented()&&a&&u){this._isSliding=!0,f&&this.pause(),this._setActiveIndicatorElement(u);var d=t.Event(P.SLID,{relatedTarget:u,direction:i,from:s,to:h});if(t(this._element).hasClass(j)){t(u).addClass(o),l.reflow(u),t(a).addClass(r),t(u).addClass(r);var m=parseInt(u.getAttribute("data-interval"),10);m?(this._config.defaultInterval=this._config.defaultInterval||this._config.interval,this._config.interval=m):this._config.interval=this._config.defaultInterval||this._config.interval;var v=l.getTransitionDurationFromElement(a);t(a).one(l.TRANSITION_END,function(){t(u).removeClass(r+" "+o).addClass(B),t(a).removeClass(B+" "+o+" "+r),c._isSliding=!1,setTimeout(function(){return t(c._element).trigger(d)},0)}).emulateTransitionEnd(v)}else t(a).removeClass(B),t(u).addClass(B),this._isSliding=!1,t(this._element).trigger(d);f&&this.cycle()}},e._jQueryInterface=function(n){return this.each(function(){var r=t(this).data("bs.carousel"),o=c({},T,{},t(this).data());"object"==typeof n&&(o=c({},o,{},n));var i="string"==typeof n?n:o.slide;if(r||(r=new e(this,o),t(this).data("bs.carousel",r)),"number"==typeof n)r.to(n);else if("string"==typeof i){if(void 0===r[i])throw new TypeError('No method named "'+i+'"');r[i]()}else o.interval&&o.ride&&(r.pause(),r.cycle())})},e._dataApiClickHandler=function(n){var r=l.getSelectorFromElement(this);if(r){var o=t(r)[0];if(o&&t(o).hasClass(R)){var i=c({},t(o).data(),{},t(this).data()),a=this.getAttribute("data-slide-to");a&&(i.interval=!1),e._jQueryInterface.call(t(o),i),a&&t(o).data("bs.carousel").to(a),n.preventDefault()}}},r(e,null,[{key:"VERSION",get:function(){return"4.4.1"}},{key:"Default",get:function(){return T}}]),e}();t(document).on(P.CLICK_DATA_API,Y.DATA_SLIDE,G._dataApiClickHandler),t(window).on(P.LOAD_DATA_API,function(){for(var e=[].slice.call(document.querySelectorAll(Y.DATA_RIDE)),n=0,r=e.length;n0&&(this._selector=c,this._triggerArray.push(i))}this._parent=this._config.parent?this._getParent():null,this._config.parent||this._addAriaAndCollapsedClass(this._element,this._triggerArray),this._config.toggle&&this.toggle()}var n=e.prototype;return n.toggle=function(){t(this._element).hasClass(te)?this.hide():this.show()},n.show=function(){var n,r,o=this;if(!this._isTransitioning&&!t(this._element).hasClass(te)&&(this._parent&&0===(n=[].slice.call(this._parent.querySelectorAll(ae.ACTIVES)).filter(function(e){return"string"==typeof o._config.parent?e.getAttribute("data-parent")===o._config.parent:e.classList.contains(ne)})).length&&(n=null),!(n&&(r=t(n).not(this._selector).data("bs.collapse"))&&r._isTransitioning))){var i=t.Event(ee.SHOW);if(t(this._element).trigger(i),!i.isDefaultPrevented()){n&&(e._jQueryInterface.call(t(n).not(this._selector),"hide"),r||t(n).data("bs.collapse",null));var c=this._getDimension();t(this._element).removeClass(ne).addClass(re),this._element.style[c]=0,this._triggerArray.length&&t(this._triggerArray).removeClass(oe).attr("aria-expanded",!0),this.setTransitioning(!0);var a="scroll"+(c[0].toUpperCase()+c.slice(1)),s=l.getTransitionDurationFromElement(this._element);t(this._element).one(l.TRANSITION_END,function(){t(o._element).removeClass(re).addClass(ne).addClass(te),o._element.style[c]="",o.setTransitioning(!1),t(o._element).trigger(ee.SHOWN)}).emulateTransitionEnd(s),this._element.style[c]=this._element[a]+"px"}}},n.hide=function(){var e=this;if(!this._isTransitioning&&t(this._element).hasClass(te)){var n=t.Event(ee.HIDE);if(t(this._element).trigger(n),!n.isDefaultPrevented()){var r=this._getDimension();this._element.style[r]=this._element.getBoundingClientRect()[r]+"px",l.reflow(this._element),t(this._element).addClass(re).removeClass(ne).removeClass(te);var o=this._triggerArray.length;if(o>0)for(var i=0;i=0)return 1;return 0}();var he=le&&window.Promise?function(e){var t=!1;return function(){t||(t=!0,window.Promise.resolve().then(function(){t=!1,e()}))}}:function(e){var t=!1;return function(){t||(t=!0,setTimeout(function(){t=!1,e()},ue))}};function fe(e){return e&&"[object Function]"==={}.toString.call(e)}function de(e,t){if(1!==e.nodeType)return[];var n=e.ownerDocument.defaultView.getComputedStyle(e,null);return t?n[t]:n}function me(e){return"HTML"===e.nodeName?e:e.parentNode||e.host}function ve(e){if(!e)return document.body;switch(e.nodeName){case"HTML":case"BODY":return e.ownerDocument.body;case"#document":return e.body}var t=de(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/(auto|scroll|overlay)/.test(n+o+r)?e:ve(me(e))}function pe(e){return e&&e.referenceNode?e.referenceNode:e}var ge=le&&!(!window.MSInputMethodContext||!document.documentMode),be=le&&/MSIE 10/.test(navigator.userAgent);function ze(e){return 11===e?ge:10===e?be:ge||be}function ye(e){if(!e)return document.documentElement;for(var t=ze(10)?document.body:null,n=e.offsetParent||null;n===t&&e.nextElementSibling;)n=(e=e.nextElementSibling).offsetParent;var r=n&&n.nodeName;return r&&"BODY"!==r&&"HTML"!==r?-1!==["TH","TD","TABLE"].indexOf(n.nodeName)&&"static"===de(n,"position")?ye(n):n:e?e.ownerDocument.documentElement:document.documentElement}function Ce(e){return null!==e.parentNode?Ce(e.parentNode):e}function Me(e,t){if(!(e&&e.nodeType&&t&&t.nodeType))return document.documentElement;var n=e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING,r=n?e:t,o=n?t:e,i=document.createRange();i.setStart(r,0),i.setEnd(o,0);var c,a,s=i.commonAncestorContainer;if(e!==s&&t!==s||r.contains(o))return"BODY"===(a=(c=s).nodeName)||"HTML"!==a&&ye(c.firstElementChild)!==c?ye(s):s;var l=Ce(e);return l.host?Me(l.host,t):Me(e,Ce(t).host)}function we(e){var t="top"===(arguments.length>1&&void 0!==arguments[1]?arguments[1]:"top")?"scrollTop":"scrollLeft",n=e.nodeName;if("BODY"===n||"HTML"===n){var r=e.ownerDocument.documentElement;return(e.ownerDocument.scrollingElement||r)[t]}return e[t]}function _e(e,t){var n="x"===t?"Left":"Top",r="Left"===n?"Right":"Bottom";return parseFloat(e["border"+n+"Width"],10)+parseFloat(e["border"+r+"Width"],10)}function xe(e,t,n,r){return Math.max(t["offset"+e],t["scroll"+e],n["client"+e],n["offset"+e],n["scroll"+e],ze(10)?parseInt(n["offset"+e])+parseInt(r["margin"+("Height"===e?"Top":"Left")])+parseInt(r["margin"+("Height"===e?"Bottom":"Right")]):0)}function He(e){var t=e.body,n=e.documentElement,r=ze(10)&&getComputedStyle(n);return{height:xe("Height",t,n,r),width:xe("Width",t,n,r)}}var Se=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},Le=function(){function e(e,t){for(var n=0;n2&&void 0!==arguments[2]&&arguments[2],r=ze(10),o="HTML"===t.nodeName,i=Te(e),c=Te(t),a=ve(e),s=de(t),l=parseFloat(s.borderTopWidth,10),u=parseFloat(s.borderLeftWidth,10);n&&o&&(c.top=Math.max(c.top,0),c.left=Math.max(c.left,0));var h=Ae({top:i.top-c.top-l,left:i.left-c.left-u,width:i.width,height:i.height});if(h.marginTop=0,h.marginLeft=0,!r&&o){var f=parseFloat(s.marginTop,10),d=parseFloat(s.marginLeft,10);h.top-=l-f,h.bottom-=l-f,h.left-=u-d,h.right-=u-d,h.marginTop=f,h.marginLeft=d}return(r&&!n?t.contains(a):t===a&&"BODY"!==a.nodeName)&&(h=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=we(t,"top"),o=we(t,"left"),i=n?-1:1;return e.top+=r*i,e.bottom+=r*i,e.left+=o*i,e.right+=o*i,e}(h,t)),h}function De(e){if(!e||!e.parentElement||ze())return document.documentElement;for(var t=e.parentElement;t&&"none"===de(t,"transform");)t=t.parentElement;return t||document.documentElement}function Ne(e,t,n,r){var o=arguments.length>4&&void 0!==arguments[4]&&arguments[4],i={top:0,left:0},c=o?De(e):Me(e,pe(t));if("viewport"===r)i=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e.ownerDocument.documentElement,r=Ee(e,n),o=Math.max(n.clientWidth,window.innerWidth||0),i=Math.max(n.clientHeight,window.innerHeight||0),c=t?0:we(n),a=t?0:we(n,"left");return Ae({top:c-r.top+r.marginTop,left:a-r.left+r.marginLeft,width:o,height:i})}(c,o);else{var a=void 0;"scrollParent"===r?"BODY"===(a=ve(me(t))).nodeName&&(a=e.ownerDocument.documentElement):a="window"===r?e.ownerDocument.documentElement:r;var s=Ee(a,c,o);if("HTML"!==a.nodeName||function e(t){var n=t.nodeName;if("BODY"===n||"HTML"===n)return!1;if("fixed"===de(t,"position"))return!0;var r=me(t);return!!r&&e(r)}(c))i=s;else{var l=He(e.ownerDocument),u=l.height,h=l.width;i.top+=s.top-s.marginTop,i.bottom=u+s.top,i.left+=s.left-s.marginLeft,i.right=h+s.left}}var f="number"==typeof(n=n||0);return i.left+=f?n:n.left||0,i.top+=f?n:n.top||0,i.right-=f?n:n.right||0,i.bottom-=f?n:n.bottom||0,i}function Oe(e,t,n,r,o){var i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0;if(-1===e.indexOf("auto"))return e;var c=Ne(n,r,i,o),a={top:{width:c.width,height:t.top-c.top},right:{width:c.right-t.right,height:c.height},bottom:{width:c.width,height:c.bottom-t.bottom},left:{width:t.left-c.left,height:c.height}},s=Object.keys(a).map(function(e){return ke({key:e},a[e],{area:(t=a[e],t.width*t.height)});var t}).sort(function(e,t){return t.area-e.area}),l=s.filter(function(e){var t=e.width,r=e.height;return t>=n.clientWidth&&r>=n.clientHeight}),u=l.length>0?l[0].key:s[0].key,h=e.split("-")[1];return u+(h?"-"+h:"")}function Ie(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return Ee(n,r?De(t):Me(t,pe(n)),r)}function Pe(e){var t=e.ownerDocument.defaultView.getComputedStyle(e),n=parseFloat(t.marginTop||0)+parseFloat(t.marginBottom||0),r=parseFloat(t.marginLeft||0)+parseFloat(t.marginRight||0);return{width:e.offsetWidth+r,height:e.offsetHeight+n}}function Re(e){var t={left:"right",right:"left",bottom:"top",top:"bottom"};return e.replace(/left|right|bottom|top/g,function(e){return t[e]})}function Be(e,t,n){n=n.split("-")[0];var r=Pe(e),o={width:r.width,height:r.height},i=-1!==["right","left"].indexOf(n),c=i?"top":"left",a=i?"left":"top",s=i?"height":"width",l=i?"width":"height";return o[c]=t[c]+t[s]/2-r[s]/2,o[a]=n===a?t[a]-r[l]:t[Re(a)],o}function je(e,t){return Array.prototype.find?e.find(t):e.filter(t)[0]}function Fe(e,t,n){return(void 0===n?e:e.slice(0,function(e,t,n){if(Array.prototype.findIndex)return e.findIndex(function(e){return e[t]===n});var r=je(e,function(e){return e[t]===n});return e.indexOf(r)}(e,"name",n))).forEach(function(e){e.function&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var n=e.function||e.fn;e.enabled&&fe(n)&&(t.offsets.popper=Ae(t.offsets.popper),t.offsets.reference=Ae(t.offsets.reference),t=n(t,e))}),t}function $e(e,t){return e.some(function(e){var n=e.name;return e.enabled&&n===t})}function qe(e){for(var t=[!1,"ms","Webkit","Moz","O"],n=e.charAt(0).toUpperCase()+e.slice(1),r=0;r1&&void 0!==arguments[1]&&arguments[1],n=Je.indexOf(e),r=Je.slice(n+1).concat(Je.slice(0,n));return t?r.reverse():r}var tt={FLIP:"flip",CLOCKWISE:"clockwise",COUNTERCLOCKWISE:"counterclockwise"};function nt(e,t,n,r){var o=[0,0],i=-1!==["right","left"].indexOf(r),c=e.split(/(\+|\-)/).map(function(e){return e.trim()}),a=c.indexOf(je(c,function(e){return-1!==e.search(/,|\s/)}));c[a]&&-1===c[a].indexOf(",")&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead.");var s=/\s*,\s*|\s+/,l=-1!==a?[c.slice(0,a).concat([c[a].split(s)[0]]),[c[a].split(s)[1]].concat(c.slice(a+1))]:[c];return(l=l.map(function(e,r){var o=(1===r?!i:i)?"height":"width",c=!1;return e.reduce(function(e,t){return""===e[e.length-1]&&-1!==["+","-"].indexOf(t)?(e[e.length-1]=t,c=!0,e):c?(e[e.length-1]+=t,c=!1,e):e.concat(t)},[]).map(function(e){return function(e,t,n,r){var o=e.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),i=+o[1],c=o[2];if(!i)return e;if(0===c.indexOf("%")){var a=void 0;switch(c){case"%p":a=n;break;case"%":case"%r":default:a=r}return Ae(a)[t]/100*i}if("vh"===c||"vw"===c)return("vh"===c?Math.max(document.documentElement.clientHeight,window.innerHeight||0):Math.max(document.documentElement.clientWidth,window.innerWidth||0))/100*i;return i}(e,o,t,n)})})).forEach(function(e,t){e.forEach(function(n,r){Xe(n)&&(o[t]+=n*("-"===e[r-1]?-1:1))})}),o}var rt={placement:"bottom",positionFixed:!1,eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:{shift:{order:100,enabled:!0,fn:function(e){var t=e.placement,n=t.split("-")[0],r=t.split("-")[1];if(r){var o=e.offsets,i=o.reference,c=o.popper,a=-1!==["bottom","top"].indexOf(n),s=a?"left":"top",l=a?"width":"height",u={start:Ve({},s,i[s]),end:Ve({},s,i[s]+i[l]-c[l])};e.offsets.popper=ke({},c,u[r])}return e}},offset:{order:200,enabled:!0,fn:function(e,t){var n=t.offset,r=e.placement,o=e.offsets,i=o.popper,c=o.reference,a=r.split("-")[0],s=void 0;return s=Xe(+n)?[+n,0]:nt(n,i,c,a),"left"===a?(i.top+=s[0],i.left-=s[1]):"right"===a?(i.top+=s[0],i.left+=s[1]):"top"===a?(i.left+=s[0],i.top-=s[1]):"bottom"===a&&(i.left+=s[0],i.top+=s[1]),e.popper=i,e},offset:0},preventOverflow:{order:300,enabled:!0,fn:function(e,t){var n=t.boundariesElement||ye(e.instance.popper);e.instance.reference===n&&(n=ye(n));var r=qe("transform"),o=e.instance.popper.style,i=o.top,c=o.left,a=o[r];o.top="",o.left="",o[r]="";var s=Ne(e.instance.popper,e.instance.reference,t.padding,n,e.positionFixed);o.top=i,o.left=c,o[r]=a,t.boundaries=s;var l=t.priority,u=e.offsets.popper,h={primary:function(e){var n=u[e];return u[e]s[e]&&!t.escapeWithReference&&(r=Math.min(u[n],s[e]-("right"===e?u.width:u.height))),Ve({},n,r)}};return l.forEach(function(e){var t=-1!==["left","top"].indexOf(e)?"primary":"secondary";u=ke({},u,h[t](e))}),e.offsets.popper=u,e},priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:function(e){var t=e.offsets,n=t.popper,r=t.reference,o=e.placement.split("-")[0],i=Math.floor,c=-1!==["top","bottom"].indexOf(o),a=c?"right":"bottom",s=c?"left":"top",l=c?"width":"height";return n[a]i(r[a])&&(e.offsets.popper[s]=i(r[a])),e}},arrow:{order:500,enabled:!0,fn:function(e,t){var n;if(!Ze(e.instance.modifiers,"arrow","keepTogether"))return e;var r=t.element;if("string"==typeof r){if(!(r=e.instance.popper.querySelector(r)))return e}else if(!e.instance.popper.contains(r))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),e;var o=e.placement.split("-")[0],i=e.offsets,c=i.popper,a=i.reference,s=-1!==["left","right"].indexOf(o),l=s?"height":"width",u=s?"Top":"Left",h=u.toLowerCase(),f=s?"left":"top",d=s?"bottom":"right",m=Pe(r)[l];a[d]-mc[d]&&(e.offsets.popper[h]+=a[h]+m-c[d]),e.offsets.popper=Ae(e.offsets.popper);var v=a[h]+a[l]/2-m/2,p=de(e.instance.popper),g=parseFloat(p["margin"+u],10),b=parseFloat(p["border"+u+"Width"],10),z=v-e.offsets.popper[h]-g-b;return z=Math.max(Math.min(c[l]-m,z),0),e.arrowElement=r,e.offsets.arrow=(Ve(n={},h,Math.round(z)),Ve(n,f,""),n),e},element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:function(e,t){if($e(e.instance.modifiers,"inner"))return e;if(e.flipped&&e.placement===e.originalPlacement)return e;var n=Ne(e.instance.popper,e.instance.reference,t.padding,t.boundariesElement,e.positionFixed),r=e.placement.split("-")[0],o=Re(r),i=e.placement.split("-")[1]||"",c=[];switch(t.behavior){case tt.FLIP:c=[r,o];break;case tt.CLOCKWISE:c=et(r);break;case tt.COUNTERCLOCKWISE:c=et(r,!0);break;default:c=t.behavior}return c.forEach(function(a,s){if(r!==a||c.length===s+1)return e;r=e.placement.split("-")[0],o=Re(r);var l=e.offsets.popper,u=e.offsets.reference,h=Math.floor,f="left"===r&&h(l.right)>h(u.left)||"right"===r&&h(l.left)h(u.top)||"bottom"===r&&h(l.top)h(n.right),v=h(l.top)h(n.bottom),g="left"===r&&d||"right"===r&&m||"top"===r&&v||"bottom"===r&&p,b=-1!==["top","bottom"].indexOf(r),z=!!t.flipVariations&&(b&&"start"===i&&d||b&&"end"===i&&m||!b&&"start"===i&&v||!b&&"end"===i&&p),y=!!t.flipVariationsByContent&&(b&&"start"===i&&m||b&&"end"===i&&d||!b&&"start"===i&&p||!b&&"end"===i&&v),C=z||y;(f||g||C)&&(e.flipped=!0,(f||g)&&(r=c[s+1]),C&&(i=function(e){return"end"===e?"start":"start"===e?"end":e}(i)),e.placement=r+(i?"-"+i:""),e.offsets.popper=ke({},e.offsets.popper,Be(e.instance.popper,e.offsets.reference,e.placement)),e=Fe(e.instance.modifiers,e,"flip"))}),e},behavior:"flip",padding:5,boundariesElement:"viewport",flipVariations:!1,flipVariationsByContent:!1},inner:{order:700,enabled:!1,fn:function(e){var t=e.placement,n=t.split("-")[0],r=e.offsets,o=r.popper,i=r.reference,c=-1!==["left","right"].indexOf(n),a=-1===["top","left"].indexOf(n);return o[c?"left":"top"]=i[n]-(a?o[c?"width":"height"]:0),e.placement=Re(t),e.offsets.popper=Ae(o),e}},hide:{order:800,enabled:!0,fn:function(e){if(!Ze(e.instance.modifiers,"hide","preventOverflow"))return e;var t=e.offsets.reference,n=je(e.instance.modifiers,function(e){return"preventOverflow"===e.name}).boundaries;if(t.bottomn.right||t.top>n.bottom||t.right2&&void 0!==arguments[2]?arguments[2]:{};Se(this,e),this.scheduleUpdate=function(){return requestAnimationFrame(r.update)},this.update=he(this.update.bind(this)),this.options=ke({},e.Defaults,o),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=t&&t.jquery?t[0]:t,this.popper=n&&n.jquery?n[0]:n,this.options.modifiers={},Object.keys(ke({},e.Defaults.modifiers,o.modifiers)).forEach(function(t){r.options.modifiers[t]=ke({},e.Defaults.modifiers[t]||{},o.modifiers?o.modifiers[t]:{})}),this.modifiers=Object.keys(this.options.modifiers).map(function(e){return ke({name:e},r.options.modifiers[e])}).sort(function(e,t){return e.order-t.order}),this.modifiers.forEach(function(e){e.enabled&&fe(e.onLoad)&&e.onLoad(r.reference,r.popper,r.options,e,r.state)}),this.update();var i=this.options.eventsEnabled;i&&this.enableEventListeners(),this.state.eventsEnabled=i}return Le(e,[{key:"update",value:function(){return function(){if(!this.state.isDestroyed){var e={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};e.offsets.reference=Ie(this.state,this.popper,this.reference,this.options.positionFixed),e.placement=Oe(this.options.placement,e.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),e.originalPlacement=e.placement,e.positionFixed=this.options.positionFixed,e.offsets.popper=Be(this.popper,e.offsets.reference,e.placement),e.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",e=Fe(this.modifiers,e),this.state.isCreated?this.options.onUpdate(e):(this.state.isCreated=!0,this.options.onCreate(e))}}.call(this)}},{key:"destroy",value:function(){return function(){return this.state.isDestroyed=!0,$e(this.modifiers,"applyStyle")&&(this.popper.removeAttribute("x-placement"),this.popper.style.position="",this.popper.style.top="",this.popper.style.left="",this.popper.style.right="",this.popper.style.bottom="",this.popper.style.willChange="",this.popper.style[qe("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}.call(this)}},{key:"enableEventListeners",value:function(){return function(){this.state.eventsEnabled||(this.state=We(this.reference,this.options,this.state,this.scheduleUpdate))}.call(this)}},{key:"disableEventListeners",value:function(){return Ye.call(this)}}]),e}();ot.Utils=("undefined"!=typeof window?window:global).PopperUtils,ot.placements=Ke,ot.Defaults=rt;var it="dropdown",ct=t.fn[it],at=new RegExp("38|40|27"),st={HIDE:"hide.bs.dropdown",HIDDEN:"hidden.bs.dropdown",SHOW:"show.bs.dropdown",SHOWN:"shown.bs.dropdown",CLICK:"click.bs.dropdown",CLICK_DATA_API:"click.bs.dropdown.data-api",KEYDOWN_DATA_API:"keydown.bs.dropdown.data-api",KEYUP_DATA_API:"keyup.bs.dropdown.data-api"},lt="disabled",ut="show",ht="dropup",ft="dropright",dt="dropleft",mt="dropdown-menu-right",vt="position-static",pt='[data-toggle="dropdown"]',gt=".dropdown form",bt=".dropdown-menu",zt=".navbar-nav",yt=".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",Ct="top-start",Mt="top-end",wt="bottom-start",_t="bottom-end",xt="right-start",Ht="left-start",St={offset:0,flip:!0,boundary:"scrollParent",reference:"toggle",display:"dynamic",popperConfig:null},Lt={offset:"(number|string|function)",flip:"boolean",boundary:"(string|element)",reference:"(string|element)",display:"string",popperConfig:"(null|object)"},Vt=function(){function e(e,t){this._element=e,this._popper=null,this._config=this._getConfig(t),this._menu=this._getMenuElement(),this._inNavbar=this._detectNavbar(),this._addEventListeners()}var n=e.prototype;return n.toggle=function(){if(!this._element.disabled&&!t(this._element).hasClass(lt)){var n=t(this._menu).hasClass(ut);e._clearMenus(),n||this.show(!0)}},n.show=function(n){if(void 0===n&&(n=!1),!(this._element.disabled||t(this._element).hasClass(lt)||t(this._menu).hasClass(ut))){var r={relatedTarget:this._element},o=t.Event(st.SHOW,r),i=e._getParentFromElement(this._element);if(t(i).trigger(o),!o.isDefaultPrevented()){if(!this._inNavbar&&n){if(void 0===ot)throw new TypeError("Bootstrap's dropdowns require Popper.js (https://popper.js.org/)");var c=this._element;"parent"===this._config.reference?c=i:l.isElement(this._config.reference)&&(c=this._config.reference,void 0!==this._config.reference.jquery&&(c=this._config.reference[0])),"scrollParent"!==this._config.boundary&&t(i).addClass(vt),this._popper=new ot(c,this._menu,this._getPopperConfig())}"ontouchstart"in document.documentElement&&0===t(i).closest(zt).length&&t(document.body).children().on("mouseover",null,t.noop),this._element.focus(),this._element.setAttribute("aria-expanded",!0),t(this._menu).toggleClass(ut),t(i).toggleClass(ut).trigger(t.Event(st.SHOWN,r))}}},n.hide=function(){if(!this._element.disabled&&!t(this._element).hasClass(lt)&&t(this._menu).hasClass(ut)){var n={relatedTarget:this._element},r=t.Event(st.HIDE,n),o=e._getParentFromElement(this._element);t(o).trigger(r),r.isDefaultPrevented()||(this._popper&&this._popper.destroy(),t(this._menu).toggleClass(ut),t(o).toggleClass(ut).trigger(t.Event(st.HIDDEN,n)))}},n.dispose=function(){t.removeData(this._element,"bs.dropdown"),t(this._element).off(".bs.dropdown"),this._element=null,this._menu=null,null!==this._popper&&(this._popper.destroy(),this._popper=null)},n.update=function(){this._inNavbar=this._detectNavbar(),null!==this._popper&&this._popper.scheduleUpdate()},n._addEventListeners=function(){var e=this;t(this._element).on(st.CLICK,function(t){t.preventDefault(),t.stopPropagation(),e.toggle()})},n._getConfig=function(e){return e=c({},this.constructor.Default,{},t(this._element).data(),{},e),l.typeCheckConfig(it,e,this.constructor.DefaultType),e},n._getMenuElement=function(){if(!this._menu){var t=e._getParentFromElement(this._element);t&&(this._menu=t.querySelector(bt))}return this._menu},n._getPlacement=function(){var e=t(this._element.parentNode),n=wt;return e.hasClass(ht)?(n=Ct,t(this._menu).hasClass(mt)&&(n=Mt)):e.hasClass(ft)?n=xt:e.hasClass(dt)?n=Ht:t(this._menu).hasClass(mt)&&(n=_t),n},n._detectNavbar=function(){return t(this._element).closest(".navbar").length>0},n._getOffset=function(){var e=this,t={};return"function"==typeof this._config.offset?t.fn=function(t){return t.offsets=c({},t.offsets,{},e._config.offset(t.offsets,e._element)||{}),t}:t.offset=this._config.offset,t},n._getPopperConfig=function(){var e={placement:this._getPlacement(),modifiers:{offset:this._getOffset(),flip:{enabled:this._config.flip},preventOverflow:{boundariesElement:this._config.boundary}}};return"static"===this._config.display&&(e.modifiers.applyStyle={enabled:!1}),c({},e,{},this._config.popperConfig)},e._jQueryInterface=function(n){return this.each(function(){var r=t(this).data("bs.dropdown");if(r||(r=new e(this,"object"==typeof n?n:null),t(this).data("bs.dropdown",r)),"string"==typeof n){if(void 0===r[n])throw new TypeError('No method named "'+n+'"');r[n]()}})},e._clearMenus=function(n){if(!n||3!==n.which&&("keyup"!==n.type||9===n.which))for(var r=[].slice.call(document.querySelectorAll(pt)),o=0,i=r.length;o0&&c--,40===n.which&&cdocument.documentElement.clientHeight;!this._isBodyOverflowing&&e&&(this._element.style.paddingLeft=this._scrollbarWidth+"px"),this._isBodyOverflowing&&!e&&(this._element.style.paddingRight=this._scrollbarWidth+"px")},n._resetAdjustments=function(){this._element.style.paddingLeft="",this._element.style.paddingRight=""},n._checkScrollbar=function(){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:qt,popperConfig:null},tn="show",nn="out",rn={HIDE:"hide.bs.tooltip",HIDDEN:"hidden.bs.tooltip",SHOW:"show.bs.tooltip",SHOWN:"shown.bs.tooltip",INSERTED:"inserted.bs.tooltip",CLICK:"click.bs.tooltip",FOCUSIN:"focusin.bs.tooltip",FOCUSOUT:"focusout.bs.tooltip",MOUSEENTER:"mouseenter.bs.tooltip",MOUSELEAVE:"mouseleave.bs.tooltip"},on="fade",cn="show",an=".tooltip-inner",sn=".arrow",ln="hover",un="focus",hn="click",fn="manual",dn=function(){function e(e,t){if(void 0===ot)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 n=e.prototype;return n.enable=function(){this._isEnabled=!0},n.disable=function(){this._isEnabled=!1},n.toggleEnabled=function(){this._isEnabled=!this._isEnabled},n.toggle=function(e){if(this._isEnabled)if(e){var n=this.constructor.DATA_KEY,r=t(e.currentTarget).data(n);r||(r=new this.constructor(e.currentTarget,this._getDelegateConfig()),t(e.currentTarget).data(n,r)),r._activeTrigger.click=!r._activeTrigger.click,r._isWithActiveTrigger()?r._enter(null,r):r._leave(null,r)}else{if(t(this.getTipElement()).hasClass(cn))return void this._leave(null,this);this._enter(null,this)}},n.dispose=function(){clearTimeout(this._timeout),t.removeData(this.element,this.constructor.DATA_KEY),t(this.element).off(this.constructor.EVENT_KEY),t(this.element).closest(".modal").off("hide.bs.modal",this._hideModalHandler),this.tip&&t(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},n.show=function(){var e=this;if("none"===t(this.element).css("display"))throw new Error("Please use show on visible elements");var n=t.Event(this.constructor.Event.SHOW);if(this.isWithContent()&&this._isEnabled){t(this.element).trigger(n);var r=l.findShadowRoot(this.element),o=t.contains(null!==r?r:this.element.ownerDocument.documentElement,this.element);if(n.isDefaultPrevented()||!o)return;var i=this.getTipElement(),c=l.getUID(this.constructor.NAME);i.setAttribute("id",c),this.element.setAttribute("aria-describedby",c),this.setContent(),this.config.animation&&t(i).addClass(on);var a="function"==typeof this.config.placement?this.config.placement.call(this,i,this.element):this.config.placement,s=this._getAttachment(a);this.addAttachmentClass(s);var u=this._getContainer();t(i).data(this.constructor.DATA_KEY,this),t.contains(this.element.ownerDocument.documentElement,this.tip)||t(i).appendTo(u),t(this.element).trigger(this.constructor.Event.INSERTED),this._popper=new ot(this.element,i,this._getPopperConfig(s)),t(i).addClass(cn),"ontouchstart"in document.documentElement&&t(document.body).children().on("mouseover",null,t.noop);var h=function(){e.config.animation&&e._fixTransition();var n=e._hoverState;e._hoverState=null,t(e.element).trigger(e.constructor.Event.SHOWN),n===nn&&e._leave(null,e)};if(t(this.tip).hasClass(on)){var f=l.getTransitionDurationFromElement(this.tip);t(this.tip).one(l.TRANSITION_END,h).emulateTransitionEnd(f)}else h()}},n.hide=function(e){var n=this,r=this.getTipElement(),o=t.Event(this.constructor.Event.HIDE),i=function(){n._hoverState!==tn&&r.parentNode&&r.parentNode.removeChild(r),n._cleanTipClass(),n.element.removeAttribute("aria-describedby"),t(n.element).trigger(n.constructor.Event.HIDDEN),null!==n._popper&&n._popper.destroy(),e&&e()};if(t(this.element).trigger(o),!o.isDefaultPrevented()){if(t(r).removeClass(cn),"ontouchstart"in document.documentElement&&t(document.body).children().off("mouseover",null,t.noop),this._activeTrigger[hn]=!1,this._activeTrigger[un]=!1,this._activeTrigger[ln]=!1,t(this.tip).hasClass(on)){var c=l.getTransitionDurationFromElement(r);t(r).one(l.TRANSITION_END,i).emulateTransitionEnd(c)}else i();this._hoverState=""}},n.update=function(){null!==this._popper&&this._popper.scheduleUpdate()},n.isWithContent=function(){return Boolean(this.getTitle())},n.addAttachmentClass=function(e){t(this.getTipElement()).addClass("bs-tooltip-"+e)},n.getTipElement=function(){return this.tip=this.tip||t(this.config.template)[0],this.tip},n.setContent=function(){var e=this.getTipElement();this.setElementContent(t(e.querySelectorAll(an)),this.getTitle()),t(e).removeClass(on+" "+cn)},n.setElementContent=function(e,n){"object"!=typeof n||!n.nodeType&&!n.jquery?this.config.html?(this.config.sanitize&&(n=Yt(n,this.config.whiteList,this.config.sanitizeFn)),e.html(n)):e.text(n):this.config.html?t(n).parent().is(e)||e.empty().append(n):e.text(t(n).text())},n.getTitle=function(){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},n._getPopperConfig=function(e){var t=this;return c({},{placement:e,modifiers:{offset:this._getOffset(),flip:{behavior:this.config.fallbackPlacement},arrow:{element:sn},preventOverflow:{boundariesElement:this.config.boundary}},onCreate:function(e){e.originalPlacement!==e.placement&&t._handlePopperPlacementChange(e)},onUpdate:function(e){return t._handlePopperPlacementChange(e)}},{},this.config.popperConfig)},n._getOffset=function(){var e=this,t={};return"function"==typeof this.config.offset?t.fn=function(t){return t.offsets=c({},t.offsets,{},e.config.offset(t.offsets,e.element)||{}),t}:t.offset=this.config.offset,t},n._getContainer=function(){return!1===this.config.container?document.body:l.isElement(this.config.container)?t(this.config.container):t(document).find(this.config.container)},n._getAttachment=function(e){return Jt[e.toUpperCase()]},n._setListeners=function(){var e=this;this.config.trigger.split(" ").forEach(function(n){if("click"===n)t(e.element).on(e.constructor.Event.CLICK,e.config.selector,function(t){return e.toggle(t)});else if(n!==fn){var r=n===ln?e.constructor.Event.MOUSEENTER:e.constructor.Event.FOCUSIN,o=n===ln?e.constructor.Event.MOUSELEAVE:e.constructor.Event.FOCUSOUT;t(e.element).on(r,e.config.selector,function(t){return e._enter(t)}).on(o,e.config.selector,function(t){return e._leave(t)})}}),this._hideModalHandler=function(){e.element&&e.hide()},t(this.element).closest(".modal").on("hide.bs.modal",this._hideModalHandler),this.config.selector?this.config=c({},this.config,{trigger:"manual",selector:""}):this._fixTitle()},n._fixTitle=function(){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",""))},n._enter=function(e,n){var r=this.constructor.DATA_KEY;(n=n||t(e.currentTarget).data(r))||(n=new this.constructor(e.currentTarget,this._getDelegateConfig()),t(e.currentTarget).data(r,n)),e&&(n._activeTrigger["focusin"===e.type?un:ln]=!0),t(n.getTipElement()).hasClass(cn)||n._hoverState===tn?n._hoverState=tn:(clearTimeout(n._timeout),n._hoverState=tn,n.config.delay&&n.config.delay.show?n._timeout=setTimeout(function(){n._hoverState===tn&&n.show()},n.config.delay.show):n.show())},n._leave=function(e,n){var r=this.constructor.DATA_KEY;(n=n||t(e.currentTarget).data(r))||(n=new this.constructor(e.currentTarget,this._getDelegateConfig()),t(e.currentTarget).data(r,n)),e&&(n._activeTrigger["focusout"===e.type?un:ln]=!1),n._isWithActiveTrigger()||(clearTimeout(n._timeout),n._hoverState=nn,n.config.delay&&n.config.delay.hide?n._timeout=setTimeout(function(){n._hoverState===nn&&n.hide()},n.config.delay.hide):n.hide())},n._isWithActiveTrigger=function(){for(var e in this._activeTrigger)if(this._activeTrigger[e])return!0;return!1},n._getConfig=function(e){var n=t(this.element).data();return Object.keys(n).forEach(function(e){-1!==Zt.indexOf(e)&&delete n[e]}),"number"==typeof(e=c({},this.constructor.Default,{},n,{},"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()),l.typeCheckConfig(Xt,e,this.constructor.DefaultType),e.sanitize&&(e.template=Yt(e.template,e.whiteList,e.sanitizeFn)),e},n._getDelegateConfig=function(){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},n._cleanTipClass=function(){var e=t(this.getTipElement()),n=e.attr("class").match(Qt);null!==n&&n.length&&e.removeClass(n.join(""))},n._handlePopperPlacementChange=function(e){var t=e.instance;this.tip=t.popper,this._cleanTipClass(),this.addAttachmentClass(this._getAttachment(e.placement))},n._fixTransition=function(){var e=this.getTipElement(),n=this.config.animation;null===e.getAttribute("x-placement")&&(t(e).removeClass(on),this.config.animation=!1,this.hide(),this.show(),this.config.animation=n)},e._jQueryInterface=function(n){return this.each(function(){var r=t(this).data("bs.tooltip"),o="object"==typeof n&&n;if((r||!/dispose|hide/.test(n))&&(r||(r=new e(this,o),t(this).data("bs.tooltip",r)),"string"==typeof n)){if(void 0===r[n])throw new TypeError('No method named "'+n+'"');r[n]()}})},r(e,null,[{key:"VERSION",get:function(){return"4.4.1"}},{key:"Default",get:function(){return en}},{key:"NAME",get:function(){return Xt}},{key:"DATA_KEY",get:function(){return"bs.tooltip"}},{key:"Event",get:function(){return rn}},{key:"EVENT_KEY",get:function(){return".bs.tooltip"}},{key:"DefaultType",get:function(){return Kt}}]),e}();t.fn.tooltip=dn._jQueryInterface,t.fn.tooltip.Constructor=dn,t.fn.tooltip.noConflict=function(){return t.fn.tooltip=Gt,dn._jQueryInterface};var mn="popover",vn=t.fn.popover,pn=new RegExp("(^|\\s)bs-popover\\S+","g"),gn=c({},dn.Default,{placement:"right",trigger:"click",content:"",template:''}),bn=c({},dn.DefaultType,{content:"(string|element|function)"}),zn="fade",yn="show",Cn=".popover-header",Mn=".popover-body",wn={HIDE:"hide.bs.popover",HIDDEN:"hidden.bs.popover",SHOW:"show.bs.popover",SHOWN:"shown.bs.popover",INSERTED:"inserted.bs.popover",CLICK:"click.bs.popover",FOCUSIN:"focusin.bs.popover",FOCUSOUT:"focusout.bs.popover",MOUSEENTER:"mouseenter.bs.popover",MOUSELEAVE:"mouseleave.bs.popover"},_n=function(e){var n,o;function i(){return e.apply(this,arguments)||this}o=e,(n=i).prototype=Object.create(o.prototype),n.prototype.constructor=n,n.__proto__=o;var c=i.prototype;return c.isWithContent=function(){return this.getTitle()||this._getContent()},c.addAttachmentClass=function(e){t(this.getTipElement()).addClass("bs-popover-"+e)},c.getTipElement=function(){return this.tip=this.tip||t(this.config.template)[0],this.tip},c.setContent=function(){var e=t(this.getTipElement());this.setElementContent(e.find(Cn),this.getTitle());var n=this._getContent();"function"==typeof n&&(n=n.call(this.element)),this.setElementContent(e.find(Mn),n),e.removeClass(zn+" "+yn)},c._getContent=function(){return this.element.getAttribute("data-content")||this.config.content},c._cleanTipClass=function(){var e=t(this.getTipElement()),n=e.attr("class").match(pn);null!==n&&n.length>0&&e.removeClass(n.join(""))},i._jQueryInterface=function(e){return this.each(function(){var n=t(this).data("bs.popover"),r="object"==typeof e?e:null;if((n||!/dispose|hide/.test(e))&&(n||(n=new i(this,r),t(this).data("bs.popover",n)),"string"==typeof e)){if(void 0===n[e])throw new TypeError('No method named "'+e+'"');n[e]()}})},r(i,null,[{key:"VERSION",get:function(){return"4.4.1"}},{key:"Default",get:function(){return gn}},{key:"NAME",get:function(){return mn}},{key:"DATA_KEY",get:function(){return"bs.popover"}},{key:"Event",get:function(){return wn}},{key:"EVENT_KEY",get:function(){return".bs.popover"}},{key:"DefaultType",get:function(){return bn}}]),i}(dn);t.fn.popover=_n._jQueryInterface,t.fn.popover.Constructor=_n,t.fn.popover.noConflict=function(){return t.fn.popover=vn,_n._jQueryInterface};var xn="scrollspy",Hn=t.fn[xn],Sn={offset:10,method:"auto",target:""},Ln={offset:"number",method:"string",target:"(string|element)"},Vn={ACTIVATE:"activate.bs.scrollspy",SCROLL:"scroll.bs.scrollspy",LOAD_DATA_API:"load.bs.scrollspy.data-api"},kn="dropdown-item",An="active",Tn={DATA_SPY:'[data-spy="scroll"]',ACTIVE:".active",NAV_LIST_GROUP:".nav, .list-group",NAV_LINKS:".nav-link",NAV_ITEMS:".nav-item",LIST_ITEMS:".list-group-item",DROPDOWN:".dropdown",DROPDOWN_ITEMS:".dropdown-item",DROPDOWN_TOGGLE:".dropdown-toggle"},En="offset",Dn="position",Nn=function(){function e(e,n){var r=this;this._element=e,this._scrollElement="BODY"===e.tagName?window:e,this._config=this._getConfig(n),this._selector=this._config.target+" "+Tn.NAV_LINKS+","+this._config.target+" "+Tn.LIST_ITEMS+","+this._config.target+" "+Tn.DROPDOWN_ITEMS,this._offsets=[],this._targets=[],this._activeTarget=null,this._scrollHeight=0,t(this._scrollElement).on(Vn.SCROLL,function(e){return r._process(e)}),this.refresh(),this._process()}var n=e.prototype;return n.refresh=function(){var e=this,n=this._scrollElement===this._scrollElement.window?En:Dn,r="auto"===this._config.method?n:this._config.method,o=r===Dn?this._getScrollTop():0;this._offsets=[],this._targets=[],this._scrollHeight=this._getScrollHeight(),[].slice.call(document.querySelectorAll(this._selector)).map(function(e){var n,i=l.getSelectorFromElement(e);if(i&&(n=document.querySelector(i)),n){var c=n.getBoundingClientRect();if(c.width||c.height)return[t(n)[r]().top+o,i]}return null}).filter(function(e){return e}).sort(function(e,t){return e[0]-t[0]}).forEach(function(t){e._offsets.push(t[0]),e._targets.push(t[1])})},n.dispose=function(){t.removeData(this._element,"bs.scrollspy"),t(this._scrollElement).off(".bs.scrollspy"),this._element=null,this._scrollElement=null,this._config=null,this._selector=null,this._offsets=null,this._targets=null,this._activeTarget=null,this._scrollHeight=null},n._getConfig=function(e){if("string"!=typeof(e=c({},Sn,{},"object"==typeof e&&e?e:{})).target){var n=t(e.target).attr("id");n||(n=l.getUID(xn),t(e.target).attr("id",n)),e.target="#"+n}return l.typeCheckConfig(xn,e,Ln),e},n._getScrollTop=function(){return this._scrollElement===window?this._scrollElement.pageYOffset:this._scrollElement.scrollTop},n._getScrollHeight=function(){return this._scrollElement.scrollHeight||Math.max(document.body.scrollHeight,document.documentElement.scrollHeight)},n._getOffsetHeight=function(){return this._scrollElement===window?window.innerHeight:this._scrollElement.getBoundingClientRect().height},n._process=function(){var e=this._getScrollTop()+this._config.offset,t=this._getScrollHeight(),n=this._config.offset+t-this._getOffsetHeight();if(this._scrollHeight!==t&&this.refresh(),e>=n){var r=this._targets[this._targets.length-1];this._activeTarget!==r&&this._activate(r)}else{if(this._activeTarget&&e0)return this._activeTarget=null,void this._clear();for(var o=this._offsets.length;o--;){this._activeTarget!==this._targets[o]&&e>=this._offsets[o]&&(void 0===this._offsets[o+1]||e>>0;n--;)t[n]=e[n];return t}function _e(e){return e.classList?we(e.classList):(e.getAttribute("class")||"").split(" ").filter(function(e){return e})}function xe(e){return"".concat(e).replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(//g,">")}function He(e){return Object.keys(e||{}).reduce(function(t,n){return t+"".concat(n,": ").concat(e[n],";")},"")}function Se(e){return e.size!==ze.size||e.x!==ze.x||e.y!==ze.y||e.rotate!==ze.rotate||e.flipX||e.flipY}function Le(e){var t=e.transform,n=e.containerWidth,r=e.iconWidth,o={transform:"translate(".concat(n/2," 256)")},i="translate(".concat(32*t.x,", ").concat(32*t.y,") "),c="scale(".concat(t.size/16*(t.flipX?-1:1),", ").concat(t.size/16*(t.flipY?-1:1),") "),a="rotate(".concat(t.rotate," 0 0)");return{outer:o,inner:{transform:"".concat(i," ").concat(c," ").concat(a)},path:{transform:"translate(".concat(r/2*-1," -256)")}}}var Ve={x:0,y:0,width:"100%",height:"100%"};function ke(e){var t=!(1").concat(c.map(Ze).join(""),"")}var Ke=function(){};function Je(e){return"string"==typeof(e.getAttribute?e.getAttribute(w):null)}var et={replace:function(e){var t=e[0],n=e[1].map(function(e){return Ze(e)}).join("\n");if(t.parentNode&&t.outerHTML)t.outerHTML=n+(q.keepOriginalSource&&"svg"!==t.tagName.toLowerCase()?"\x3c!-- ".concat(t.outerHTML," --\x3e"):"");else if(t.parentNode){var r=document.createElement("span");t.parentNode.replaceChild(r,t),r.outerHTML=n}},nest:function(e){var t=e[0],n=e[1];if(~_e(t).indexOf(q.replacementClass))return et.replace(e);var r=new RegExp("".concat(q.familyPrefix,"-.*"));delete n[0].attributes.style,delete n[0].attributes.id;var o=n[0].attributes.class.split(" ").reduce(function(e,t){return t===q.replacementClass||t.match(r)?e.toSvg.push(t):e.toNode.push(t),e},{toNode:[],toSvg:[]});n[0].attributes.class=o.toSvg.join(" ");var i=n.map(function(e){return Ze(e)}).join("\n");t.setAttribute("class",o.toNode.join(" ")),t.setAttribute(w,""),t.innerHTML=i}};function tt(e){e()}function nt(e,t){var n="function"==typeof t?t:Ke;if(0===e.length)n();else{var r=tt;q.mutateApproach===V&&(r=f.requestAnimationFrame||tt),r(function(){var t=!0===q.autoReplaceSvg?et.replace:et[q.autoReplaceSvg]||et.replace,r=Ie.begin("mutate");e.map(t),r(),n()})}}var rt=!1;function ot(){rt=!1}var it=null;function ct(e){if(m&&q.observeMutations){var t=e.treeCallback,n=e.nodeCallback,r=e.pseudoElementsCallback,o=e.observeMutationsRoot,i=void 0===o?d:o;it=new m(function(e){rt||we(e).forEach(function(e){if("childList"===e.type&&0',preload:!0,css:{},attr:{scrolling:"auto"}},video:{tpl:'',format:"",autoStart:!0},defaultType:"image",animationEffect:"zoom",animationDuration:366,zoomOpacity:"auto",transitionEffect:"fade",transitionDuration:366,slideClass:"",baseClass:"",baseTpl:'',spinnerTpl:'
',errorTpl:'

{{ERROR}}

',btnTpl:{download:'',zoom:'',close:'',arrowLeft:'',arrowRight:'',smallBtn:''},parentEl:"body",hideScrollbar:!0,autoFocus:!0,backFocus:!0,trapFocus:!0,fullScreen:{autoStart:!1},touch:{vertical:!0,momentum:!0},hash:null,media:{},slideShow:{autoStart:!1,speed:3e3},thumbs:{autoStart:!1,hideOnClose:!0,parentEl:".fancybox-container",axis:"y"},wheel:"auto",onInit:n.noop,beforeLoad:n.noop,afterLoad:n.noop,beforeShow:n.noop,afterShow:n.noop,beforeClose:n.noop,afterClose:n.noop,onActivate:n.noop,onDeactivate:n.noop,clickContent:function(e,t){return"image"===e.type&&"zoom"},clickSlide:"close",clickOutside:"close",dblclickContent:!1,dblclickSlide:!1,dblclickOutside:!1,mobile:{preventCaptionOverlap:!1,idleTime:!1,clickContent:function(e,t){return"image"===e.type&&"toggleControls"},clickSlide:function(e,t){return"image"===e.type?"toggleControls":"close"},dblclickContent:function(e,t){return"image"===e.type&&"zoom"},dblclickSlide:function(e,t){return"image"===e.type&&"zoom"}},lang:"en",i18n:{en:{CLOSE:"Close",NEXT:"Next",PREV:"Previous",ERROR:"The requested content cannot be loaded.
Please try again later.",PLAY_START:"Start slideshow",PLAY_STOP:"Pause slideshow",FULL_SCREEN:"Full screen",THUMBS:"Thumbnails",DOWNLOAD:"Download",SHARE:"Share",ZOOM:"Zoom"},de:{CLOSE:"Schließen",NEXT:"Weiter",PREV:"Zurück",ERROR:"Die angeforderten Daten konnten nicht geladen werden.
Bitte versuchen Sie es später nochmal.",PLAY_START:"Diaschau starten",PLAY_STOP:"Diaschau beenden",FULL_SCREEN:"Vollbild",THUMBS:"Vorschaubilder",DOWNLOAD:"Herunterladen",SHARE:"Teilen",ZOOM:"Vergrößern"}}},c=n(e),a=n(t),s=0,l=e.requestAnimationFrame||e.webkitRequestAnimationFrame||e.mozRequestAnimationFrame||e.oRequestAnimationFrame||function(t){return e.setTimeout(t,1e3/60)},u=e.cancelAnimationFrame||e.webkitCancelAnimationFrame||e.mozCancelAnimationFrame||e.oCancelAnimationFrame||function(t){e.clearTimeout(t)},h=function(){var e,n=t.createElement("fakeelement"),r={transition:"transitionend",OTransition:"oTransitionEnd",MozTransition:"transitionend",WebkitTransition:"webkitTransitionEnd"};for(e in r)if(void 0!==n.style[e])return r[e];return"transitionend"}(),f=function(e){return e&&e.length&&e[0].offsetHeight},d=function(e,t){var r=n.extend(!0,{},e,t);return n.each(t,function(e,t){n.isArray(t)&&(r[e]=t)}),r},m=function(e){var r,o;return!(!e||e.ownerDocument!==t)&&(n(".fancybox-container").css("pointer-events","none"),r={x:e.getBoundingClientRect().left+e.offsetWidth/2,y:e.getBoundingClientRect().top+e.offsetHeight/2},o=t.elementFromPoint(r.x,r.y)===e,n(".fancybox-container").css("pointer-events",""),o)},v=function(e,t,r){var o=this;o.opts=d({index:r},n.fancybox.defaults),n.isPlainObject(t)&&(o.opts=d(o.opts,t)),n.fancybox.isMobile&&(o.opts=d(o.opts,o.opts.mobile)),o.id=o.opts.id||++s,o.currIndex=parseInt(o.opts.index,10)||0,o.prevIndex=null,o.prevPos=null,o.currPos=0,o.firstRun=!0,o.group=[],o.slides={},o.addContent(e),o.group.length&&o.init()};n.extend(v.prototype,{init:function(){var r,o,i=this,c=i.group[i.currIndex].opts;c.closeExisting&&n.fancybox.close(!0),n("body").addClass("fancybox-active"),!n.fancybox.getInstance()&&!1!==c.hideScrollbar&&!n.fancybox.isMobile&&t.body.scrollHeight>e.innerHeight&&(n("head").append('"),n("body").addClass("compensate-for-scrollbar")),o="",n.each(c.buttons,function(e,t){o+=c.btnTpl[t]||""}),r=n(i.translate(i,c.baseTpl.replace("{{buttons}}",o).replace("{{arrows}}",c.btnTpl.arrowLeft+c.btnTpl.arrowRight))).attr("id","fancybox-container-"+i.id).addClass(c.baseClass).data("FancyBox",i).appendTo(c.parentEl),i.$refs={container:r},["bg","inner","infobar","toolbar","stage","caption","navigation"].forEach(function(e){i.$refs[e]=r.find(".fancybox-"+e)}),i.trigger("onInit"),i.activate(),i.jumpTo(i.currIndex)},translate:function(e,t){var n=e.opts.i18n[e.opts.lang]||e.opts.i18n.en;return t.replace(/\{\{(\w+)\}\}/g,function(e,t){return void 0===n[t]?e:n[t]})},addContent:function(e){var t,r=this,o=n.makeArray(e);n.each(o,function(e,t){var o,i,c,a,s,l={},u={};n.isPlainObject(t)?(l=t,u=t.opts||t):"object"===n.type(t)&&n(t).length?(u=(o=n(t)).data()||{},(u=n.extend(!0,{},u,u.options)).$orig=o,l.src=r.opts.src||u.src||o.attr("href"),l.type||l.src||(l.type="inline",l.src=t)):l={type:"html",src:t+""},l.opts=n.extend(!0,{},r.opts,u),n.isArray(u.buttons)&&(l.opts.buttons=u.buttons),n.fancybox.isMobile&&l.opts.mobile&&(l.opts=d(l.opts,l.opts.mobile)),i=l.type||l.opts.type,a=l.src||"",!i&&a&&((c=a.match(/\.(mp4|mov|ogv|webm)((\?|#).*)?$/i))?(i="video",l.opts.video.format||(l.opts.video.format="video/"+("ogv"===c[1]?"ogg":c[1]))):a.match(/(^data:image\/[a-z0-9+\/=]*,)|(\.(jp(e|g|eg)|gif|png|bmp|webp|svg|ico)((\?|#).*)?$)/i)?i="image":a.match(/\.(pdf)((\?|#).*)?$/i)?(i="iframe",l=n.extend(!0,l,{contentType:"pdf",opts:{iframe:{preload:!1}}})):"#"===a.charAt(0)&&(i="inline")),i?l.type=i:r.trigger("objectNeedsType",l),l.contentType||(l.contentType=n.inArray(l.type,["html","inline","ajax"])>-1?"html":l.type),l.index=r.group.length,"auto"==l.opts.smallBtn&&(l.opts.smallBtn=n.inArray(l.type,["html","inline","ajax"])>-1),"auto"===l.opts.toolbar&&(l.opts.toolbar=!l.opts.smallBtn),l.$thumb=l.opts.$thumb||null,l.opts.$trigger&&l.index===r.opts.index&&(l.$thumb=l.opts.$trigger.find("img:first"),l.$thumb.length&&(l.opts.$orig=l.opts.$trigger)),l.$thumb&&l.$thumb.length||!l.opts.$orig||(l.$thumb=l.opts.$orig.find("img:first")),l.$thumb&&!l.$thumb.length&&(l.$thumb=null),l.thumb=l.opts.thumb||(l.$thumb?l.$thumb[0].src:null),"function"===n.type(l.opts.caption)&&(l.opts.caption=l.opts.caption.apply(t,[r,l])),"function"===n.type(r.opts.caption)&&(l.opts.caption=r.opts.caption.apply(t,[r,l])),l.opts.caption instanceof n||(l.opts.caption=void 0===l.opts.caption?"":l.opts.caption+""),"ajax"===l.type&&((s=a.split(/\s+/,2)).length>1&&(l.src=s.shift(),l.opts.filter=s.shift())),l.opts.modal&&(l.opts=n.extend(!0,l.opts,{trapFocus:!0,infobar:0,toolbar:0,smallBtn:0,keyboard:0,slideShow:0,fullScreen:0,thumbs:0,touch:0,clickContent:!1,clickSlide:!1,clickOutside:!1,dblclickContent:!1,dblclickSlide:!1,dblclickOutside:!1})),r.group.push(l)}),Object.keys(r.slides).length&&(r.updateControls(),(t=r.Thumbs)&&t.isActive&&(t.create(),t.focus()))},addEvents:function(){var t=this;t.removeEvents(),t.$refs.container.on("click.fb-close","[data-fancybox-close]",function(e){e.stopPropagation(),e.preventDefault(),t.close(e)}).on("touchstart.fb-prev click.fb-prev","[data-fancybox-prev]",function(e){e.stopPropagation(),e.preventDefault(),t.previous()}).on("touchstart.fb-next click.fb-next","[data-fancybox-next]",function(e){e.stopPropagation(),e.preventDefault(),t.next()}).on("click.fb","[data-fancybox-zoom]",function(e){t[t.isScaledDown()?"scaleToActual":"scaleToFit"]()}),c.on("orientationchange.fb resize.fb",function(e){e&&e.originalEvent&&"resize"===e.originalEvent.type?(t.requestId&&u(t.requestId),t.requestId=l(function(){t.update(e)})):(t.current&&"iframe"===t.current.type&&t.$refs.stage.hide(),setTimeout(function(){t.$refs.stage.show(),t.update(e)},n.fancybox.isMobile?600:250))}),a.on("keydown.fb",function(e){var r=(n.fancybox?n.fancybox.getInstance():null).current,o=e.keyCode||e.which;if(9!=o)return!r.opts.keyboard||e.ctrlKey||e.altKey||e.shiftKey||n(e.target).is("input,textarea,video,audio,select")?void 0:8===o||27===o?(e.preventDefault(),void t.close(e)):37===o||38===o?(e.preventDefault(),void t.previous()):39===o||40===o?(e.preventDefault(),void t.next()):void t.trigger("afterKeydown",e,o);r.opts.trapFocus&&t.focus(e)}),t.group[t.currIndex].opts.idleTime&&(t.idleSecondsCounter=0,a.on("mousemove.fb-idle mouseleave.fb-idle mousedown.fb-idle touchstart.fb-idle touchmove.fb-idle scroll.fb-idle keydown.fb-idle",function(e){t.idleSecondsCounter=0,t.isIdle&&t.showControls(),t.isIdle=!1}),t.idleInterval=e.setInterval(function(){++t.idleSecondsCounter>=t.group[t.currIndex].opts.idleTime&&!t.isDragging&&(t.isIdle=!0,t.idleSecondsCounter=0,t.hideControls())},1e3))},removeEvents:function(){var t=this;c.off("orientationchange.fb resize.fb"),a.off("keydown.fb .fb-idle"),this.$refs.container.off(".fb-close .fb-prev .fb-next"),t.idleInterval&&(e.clearInterval(t.idleInterval),t.idleInterval=null)},previous:function(e){return this.jumpTo(this.currPos-1,e)},next:function(e){return this.jumpTo(this.currPos+1,e)},jumpTo:function(e,t){var r,o,i,c,a,s,l,u,h,d=this,m=d.group.length;if(!(d.isDragging||d.isClosing||d.isAnimating&&d.firstRun)){if(e=parseInt(e,10),!(i=d.current?d.current.opts.loop:d.opts.loop)&&(e<0||e>=m))return!1;if(r=d.firstRun=!Object.keys(d.slides).length,a=d.current,d.prevIndex=d.currIndex,d.prevPos=d.currPos,c=d.createSlide(e),m>1&&((i||c.index0)&&d.createSlide(e-1)),d.current=c,d.currIndex=c.index,d.currPos=c.pos,d.trigger("beforeShow",r),d.updateControls(),c.forcedDuration=void 0,n.isNumeric(t)?c.forcedDuration=t:t=c.opts[r?"animationDuration":"transitionDuration"],t=parseInt(t,10),o=d.isMoved(c),c.$slide.addClass("fancybox-slide--current"),r)return c.opts.animationEffect&&t&&d.$refs.container.css("transition-duration",t+"ms"),d.$refs.container.addClass("fancybox-is-open").trigger("focus"),d.loadSlide(c),void d.preload("image");s=n.fancybox.getTranslate(a.$slide),l=n.fancybox.getTranslate(d.$refs.stage),n.each(d.slides,function(e,t){n.fancybox.stop(t.$slide,!0)}),a.pos!==c.pos&&(a.isComplete=!1),a.$slide.removeClass("fancybox-slide--complete fancybox-slide--current"),o?(h=s.left-(a.pos*s.width+a.pos*a.opts.gutter),n.each(d.slides,function(e,r){r.$slide.removeClass("fancybox-animated").removeClass(function(e,t){return(t.match(/(^|\s)fancybox-fx-\S+/g)||[]).join(" ")});var o=r.pos*s.width+r.pos*r.opts.gutter;n.fancybox.setTranslate(r.$slide,{top:0,left:o-l.left+h}),r.pos!==c.pos&&r.$slide.addClass("fancybox-slide--"+(r.pos>c.pos?"next":"previous")),f(r.$slide),n.fancybox.animate(r.$slide,{top:0,left:(r.pos-c.pos)*s.width+(r.pos-c.pos)*r.opts.gutter},t,function(){r.$slide.css({transform:"",opacity:""}).removeClass("fancybox-slide--next fancybox-slide--previous"),r.pos===d.currPos&&d.complete()})})):t&&c.opts.transitionEffect&&(u="fancybox-animated fancybox-fx-"+c.opts.transitionEffect,a.$slide.addClass("fancybox-slide--"+(a.pos>c.pos?"next":"previous")),n.fancybox.animate(a.$slide,u,t,function(){a.$slide.removeClass(u).removeClass("fancybox-slide--next fancybox-slide--previous")},!1)),c.isLoaded?d.revealContent(c):d.loadSlide(c),d.preload("image")}},createSlide:function(e){var t,r,o=this;return r=(r=e%o.group.length)<0?o.group.length+r:r,!o.slides[e]&&o.group[r]&&(t=n('
').appendTo(o.$refs.stage),o.slides[e]=n.extend(!0,{},o.group[r],{pos:e,$slide:t,isLoaded:!1}),o.updateSlide(o.slides[e])),o.slides[e]},scaleToActual:function(e,t,r){var o,i,c,a,s,l=this,u=l.current,h=u.$content,f=n.fancybox.getTranslate(u.$slide).width,d=n.fancybox.getTranslate(u.$slide).height,m=u.width,v=u.height;l.isAnimating||l.isMoved()||!h||"image"!=u.type||!u.isLoaded||u.hasError||(l.isAnimating=!0,n.fancybox.stop(h),e=void 0===e?.5*f:e,t=void 0===t?.5*d:t,(o=n.fancybox.getTranslate(h)).top-=n.fancybox.getTranslate(u.$slide).top,o.left-=n.fancybox.getTranslate(u.$slide).left,a=m/o.width,s=v/o.height,i=.5*f-.5*m,c=.5*d-.5*v,m>f&&((i=o.left*a-(e*a-e))>0&&(i=0),id&&((c=o.top*s-(t*s-t))>0&&(c=0),ct-.5&&(s=t),(l*=o)>r-.5&&(l=r),"image"===e.type?(u.top=Math.floor(.5*(r-l))+parseFloat(a.css("paddingTop")),u.left=Math.floor(.5*(t-s))+parseFloat(a.css("paddingLeft"))):"video"===e.contentType&&(l>s/(i=e.opts.width&&e.opts.height?s/l:e.opts.ratio||16/9)?l=s/i:s>l*i&&(s=l*i)),u.width=s,u.height=l,u)},update:function(e){var t=this;n.each(t.slides,function(n,r){t.updateSlide(r,e)})},updateSlide:function(e,t){var r=this,o=e&&e.$content,i=e.width||e.opts.width,c=e.height||e.opts.height,a=e.$slide;r.adjustCaption(e),o&&(i||c||"video"===e.contentType)&&!e.hasError&&(n.fancybox.stop(o),n.fancybox.setTranslate(o,r.getFitPos(e)),e.pos===r.currPos&&(r.isAnimating=!1,r.updateCursor())),r.adjustLayout(e),a.length&&(a.trigger("refresh"),e.pos===r.currPos&&r.$refs.toolbar.add(r.$refs.navigation.find(".fancybox-button--arrow_right")).toggleClass("compensate-for-scrollbar",a.get(0).scrollHeight>a.get(0).clientHeight)),r.trigger("onUpdate",e,t)},centerSlide:function(e){var t=this,r=t.current,o=r.$slide;!t.isClosing&&r&&(o.siblings().css({transform:"",opacity:""}),o.parent().children().removeClass("fancybox-slide--previous fancybox-slide--next"),n.fancybox.animate(o,{top:0,left:0,opacity:1},void 0===e?0:e,function(){o.css({transform:"",opacity:""}),r.isComplete||t.complete()},!1))},isMoved:function(e){var t,r,o=e||this.current;return!!o&&(r=n.fancybox.getTranslate(this.$refs.stage),t=n.fancybox.getTranslate(o.$slide),!o.$slide.hasClass("fancybox-animated")&&(Math.abs(t.top-r.top)>.5||Math.abs(t.left-r.left)>.5))},updateCursor:function(e,t){var r,o,i=this,c=i.current,a=i.$refs.container;c&&!i.isClosing&&i.Guestures&&(a.removeClass("fancybox-is-zoomable fancybox-can-zoomIn fancybox-can-zoomOut fancybox-can-swipe fancybox-can-pan"),o=!!(r=i.canPan(e,t))||i.isZoomable(),a.toggleClass("fancybox-is-zoomable",o),n("[data-fancybox-zoom]").prop("disabled",!o),r?a.addClass("fancybox-can-pan"):o&&("zoom"===c.opts.clickContent||n.isFunction(c.opts.clickContent)&&"zoom"==c.opts.clickContent(c))?a.addClass("fancybox-can-zoomIn"):c.opts.touch&&(c.opts.touch.vertical||i.group.length>1)&&"video"!==c.contentType&&a.addClass("fancybox-can-swipe"))},isZoomable:function(){var e,t=this,n=t.current;if(n&&!t.isClosing&&"image"===n.type&&!n.hasError){if(!n.isLoaded)return!0;if((e=t.getFitPos(n))&&(n.width>e.width||n.height>e.height))return!0}return!1},isScaledDown:function(e,t){var r=!1,o=this.current,i=o.$content;return void 0!==e&&void 0!==t?r=e1.5||Math.abs(o.height-i.height)>1.5)),i},loadSlide:function(e){var t,r,o,i=this;if(!e.isLoading&&!e.isLoaded){if(e.isLoading=!0,!1===i.trigger("beforeLoad",e))return e.isLoading=!1,!1;switch(t=e.type,(r=e.$slide).off("refresh").trigger("onReset").addClass(e.opts.slideClass),t){case"image":i.setImage(e);break;case"iframe":i.setIframe(e);break;case"html":i.setContent(e,e.src||e.content);break;case"video":i.setContent(e,e.opts.video.tpl.replace(/\{\{src\}\}/gi,e.src).replace("{{format}}",e.opts.videoFormat||e.opts.video.format||"").replace("{{poster}}",e.thumb||""));break;case"inline":n(e.src).length?i.setContent(e,n(e.src)):i.setError(e);break;case"ajax":i.showLoading(e),o=n.ajax(n.extend({},e.opts.ajax.settings,{url:e.src,success:function(t,n){"success"===n&&i.setContent(e,t)},error:function(t,n){t&&"abort"!==n&&i.setError(e)}})),r.one("onReset",function(){o.abort()});break;default:i.setError(e)}return!0}},setImage:function(e){var r,o=this;setTimeout(function(){var t=e.$image;o.isClosing||!e.isLoading||t&&t.length&&t[0].complete||e.hasError||o.showLoading(e)},50),o.checkSrcset(e),e.$content=n('
').addClass("fancybox-is-hidden").appendTo(e.$slide.addClass("fancybox-slide--image")),!1!==e.opts.preload&&e.opts.width&&e.opts.height&&e.thumb&&(e.width=e.opts.width,e.height=e.opts.height,(r=t.createElement("img")).onerror=function(){n(this).remove(),e.$ghost=null},r.onload=function(){o.afterLoad(e)},e.$ghost=n(r).addClass("fancybox-image").appendTo(e.$content).attr("src",e.thumb)),o.setBigImage(e)},checkSrcset:function(t){var n,r,o,i,c=t.opts.srcset||t.opts.image.srcset;if(c){o=e.devicePixelRatio||1,i=e.innerWidth*o,(r=c.split(",").map(function(e){var t={};return e.trim().split(/\s+/).forEach(function(e,n){var r=parseInt(e.substring(0,e.length-1),10);if(0===n)return t.url=e;r&&(t.value=r,t.postfix=e[e.length-1])}),t})).sort(function(e,t){return e.value-t.value});for(var a=0;a=i||"x"===s.postfix&&s.value>=o){n=s;break}}!n&&r.length&&(n=r[r.length-1]),n&&(t.src=n.url,t.width&&t.height&&"w"==n.postfix&&(t.height=t.width/t.height*n.value,t.width=n.value),t.opts.srcset=c)}},setBigImage:function(e){var r=this,o=t.createElement("img"),i=n(o);e.$image=i.one("error",function(){r.setError(e)}).one("load",function(){var t;e.$ghost||(r.resolveImageSlideSize(e,this.naturalWidth,this.naturalHeight),r.afterLoad(e)),r.isClosing||(e.opts.srcset&&((t=e.opts.sizes)&&"auto"!==t||(t=(e.width/e.height>1&&c.width()/c.height()>1?"100":Math.round(e.width/e.height*100))+"vw"),i.attr("sizes",t).attr("srcset",e.opts.srcset)),e.$ghost&&setTimeout(function(){e.$ghost&&!r.isClosing&&e.$ghost.hide()},Math.min(300,Math.max(1e3,e.height/1600))),r.hideLoading(e))}).addClass("fancybox-image").attr("src",e.src).appendTo(e.$content),(o.complete||"complete"==o.readyState)&&i.naturalWidth&&i.naturalHeight?i.trigger("load"):o.error&&i.trigger("error")},resolveImageSlideSize:function(e,t,n){var r=parseInt(e.opts.width,10),o=parseInt(e.opts.height,10);e.width=t,e.height=n,r>0&&(e.width=r,e.height=Math.floor(r*n/t)),o>0&&(e.width=Math.floor(o*t/n),e.height=o)},setIframe:function(e){var t,r=this,o=e.opts.iframe,i=e.$slide;e.$content=n('
').css(o.css).appendTo(i),i.addClass("fancybox-slide--"+e.contentType),e.$iframe=t=n(o.tpl.replace(/\{rnd\}/g,(new Date).getTime())).attr(o.attr).appendTo(e.$content),o.preload?(r.showLoading(e),t.on("load.fb error.fb",function(t){this.isReady=1,e.$slide.trigger("refresh"),r.afterLoad(e)}),i.on("refresh.fb",function(){var n,r=e.$content,c=o.css.width,a=o.css.height;if(1===t[0].isReady){try{n=t.contents().find("body")}catch(e){}n&&n.length&&n.children().length&&(i.css("overflow","visible"),r.css({width:"100%","max-width":"100%",height:"9999px"}),void 0===c&&(c=Math.ceil(Math.max(n[0].clientWidth,n.outerWidth(!0)))),r.css("width",c||"").css("max-width",""),void 0===a&&(a=Math.ceil(Math.max(n[0].clientHeight,n.outerHeight(!0)))),r.css("height",a||""),i.css("overflow","auto")),r.removeClass("fancybox-is-hidden")}})):r.afterLoad(e),t.attr("src",e.src),i.one("onReset",function(){try{n(this).find("iframe").hide().unbind().attr("src","//about:blank")}catch(e){}n(this).off("refresh.fb").empty(),e.isLoaded=!1,e.isRevealed=!1})},setContent:function(e,t){var r=this;r.isClosing||(r.hideLoading(e),e.$content&&n.fancybox.stop(e.$content),e.$slide.empty(),function(e){return e&&e.hasOwnProperty&&e instanceof n}(t)&&t.parent().length?((t.hasClass("fancybox-content")||t.parent().hasClass("fancybox-content"))&&t.parents(".fancybox-slide").trigger("onReset"),e.$placeholder=n("
").hide().insertAfter(t),t.css("display","inline-block")):e.hasError||("string"===n.type(t)&&(t=n("
").append(n.trim(t)).contents()),e.opts.filter&&(t=n("
").html(t).find(e.opts.filter))),e.$slide.one("onReset",function(){n(this).find("video,audio").trigger("pause"),e.$placeholder&&(e.$placeholder.after(t.removeClass("fancybox-content").hide()).remove(),e.$placeholder=null),e.$smallBtn&&(e.$smallBtn.remove(),e.$smallBtn=null),e.hasError||(n(this).empty(),e.isLoaded=!1,e.isRevealed=!1)}),n(t).appendTo(e.$slide),n(t).is("video,audio")&&(n(t).addClass("fancybox-video"),n(t).wrap("
"),e.contentType="video",e.opts.width=e.opts.width||n(t).attr("width"),e.opts.height=e.opts.height||n(t).attr("height")),e.$content=e.$slide.children().filter("div,form,main,video,audio,article,.fancybox-content").first(),e.$content.siblings().hide(),e.$content.length||(e.$content=e.$slide.wrapInner("
").children().first()),e.$content.addClass("fancybox-content"),e.$slide.addClass("fancybox-slide--"+e.contentType),r.afterLoad(e))},setError:function(e){e.hasError=!0,e.$slide.trigger("onReset").removeClass("fancybox-slide--"+e.contentType).addClass("fancybox-slide--error"),e.contentType="html",this.setContent(e,this.translate(e,e.opts.errorTpl)),e.pos===this.currPos&&(this.isAnimating=!1)},showLoading:function(e){var t=this;(e=e||t.current)&&!e.$spinner&&(e.$spinner=n(t.translate(t,t.opts.spinnerTpl)).appendTo(e.$slide).hide().fadeIn("fast"))},hideLoading:function(e){(e=e||this.current)&&e.$spinner&&(e.$spinner.stop().remove(),delete e.$spinner)},afterLoad:function(e){var t=this;t.isClosing||(e.isLoading=!1,e.isLoaded=!0,t.trigger("afterLoad",e),t.hideLoading(e),!e.opts.smallBtn||e.$smallBtn&&e.$smallBtn.length||(e.$smallBtn=n(t.translate(e,e.opts.btnTpl.smallBtn)).appendTo(e.$content)),e.opts.protect&&e.$content&&!e.hasError&&(e.$content.on("contextmenu.fb",function(e){return 2==e.button&&e.preventDefault(),!0}),"image"===e.type&&n('
').appendTo(e.$content)),t.adjustCaption(e),t.adjustLayout(e),e.pos===t.currPos&&t.updateCursor(),t.revealContent(e))},adjustCaption:function(e){var t,n=this,r=e||n.current,o=r.opts.caption,i=r.opts.preventCaptionOverlap,c=n.$refs.caption,a=!1;c.toggleClass("fancybox-caption--separate",i),i&&o&&o.length&&(r.pos!==n.currPos?((t=c.clone().appendTo(c.parent())).children().eq(0).empty().html(o),a=t.outerHeight(!0),t.empty().remove()):n.$caption&&(a=n.$caption.outerHeight(!0)),r.$slide.css("padding-bottom",a||""))},adjustLayout:function(e){var t,n,r,o,i=e||this.current;i.isLoaded&&!0!==i.opts.disableLayoutFix&&(i.$content.css("margin-bottom",""),i.$content.outerHeight()>i.$slide.height()+.5&&(r=i.$slide[0].style["padding-bottom"],o=i.$slide.css("padding-bottom"),parseFloat(o)>0&&(t=i.$slide[0].scrollHeight,i.$slide.css("padding-bottom",0),Math.abs(t-i.$slide[0].scrollHeight)<1&&(n=o),i.$slide.css("padding-bottom",r))),i.$content.css("margin-bottom",n))},revealContent:function(e){var t,r,o,i,c=this,a=e.$slide,s=!1,l=!1,u=c.isMoved(e),h=e.isRevealed;return e.isRevealed=!0,t=e.opts[c.firstRun?"animationEffect":"transitionEffect"],o=e.opts[c.firstRun?"animationDuration":"transitionDuration"],o=parseInt(void 0===e.forcedDuration?o:e.forcedDuration,10),!u&&e.pos===c.currPos&&o||(t=!1),"zoom"===t&&(e.pos===c.currPos&&o&&"image"===e.type&&!e.hasError&&(l=c.getThumbPos(e))?s=c.getFitPos(e):t="fade"),"zoom"===t?(c.isAnimating=!0,s.scaleX=s.width/l.width,s.scaleY=s.height/l.height,"auto"==(i=e.opts.zoomOpacity)&&(i=Math.abs(e.width/e.height-l.width/l.height)>.1),i&&(l.opacity=.1,s.opacity=1),n.fancybox.setTranslate(e.$content.removeClass("fancybox-is-hidden"),l),f(e.$content),void n.fancybox.animate(e.$content,s,o,function(){c.isAnimating=!1,c.complete()})):(c.updateSlide(e),t?(n.fancybox.stop(a),r="fancybox-slide--"+(e.pos>=c.prevPos?"next":"previous")+" fancybox-animated fancybox-fx-"+t,a.addClass(r).removeClass("fancybox-slide--current"),e.$content.removeClass("fancybox-is-hidden"),f(a),"image"!==e.type&&e.$content.hide().show(0),void n.fancybox.animate(a,"fancybox-slide--current",o,function(){a.removeClass(r).css({transform:"",opacity:""}),e.pos===c.currPos&&c.complete()},!0)):(e.$content.removeClass("fancybox-is-hidden"),h||!u||"image"!==e.type||e.hasError||e.$content.hide().fadeIn("fast"),void(e.pos===c.currPos&&c.complete())))},getThumbPos:function(e){var t,r,o,i,c,a=!1,s=e.$thumb;return!(!s||!m(s[0]))&&(t=n.fancybox.getTranslate(s),r=parseFloat(s.css("border-top-width")||0),o=parseFloat(s.css("border-right-width")||0),i=parseFloat(s.css("border-bottom-width")||0),c=parseFloat(s.css("border-left-width")||0),a={top:t.top+r,left:t.left+c,width:t.width-o-c,height:t.height-r-i,scaleX:1,scaleY:1},t.width>0&&t.height>0&&a)},complete:function(){var e,t=this,r=t.current,o={};!t.isMoved()&&r.isLoaded&&(r.isComplete||(r.isComplete=!0,r.$slide.siblings().trigger("onReset"),t.preload("inline"),f(r.$slide),r.$slide.addClass("fancybox-slide--complete"),n.each(t.slides,function(e,r){r.pos>=t.currPos-1&&r.pos<=t.currPos+1?o[r.pos]=r:r&&(n.fancybox.stop(r.$slide),r.$slide.off().remove())}),t.slides=o),t.isAnimating=!1,t.updateCursor(),t.trigger("afterShow"),r.opts.video.autoStart&&r.$slide.find("video,audio").filter(":visible:first").trigger("play").one("ended",function(){Document.exitFullscreen?Document.exitFullscreen():this.webkitExitFullscreen&&this.webkitExitFullscreen(),t.next()}),r.opts.autoFocus&&"html"===r.contentType&&((e=r.$content.find("input[autofocus]:enabled:visible:first")).length?e.trigger("focus"):t.focus(null,!0)),r.$slide.scrollTop(0).scrollLeft(0))},preload:function(e){var t,n,r=this;r.group.length<2||(n=r.slides[r.currPos+1],(t=r.slides[r.currPos-1])&&t.type===e&&r.loadSlide(t),n&&n.type===e&&r.loadSlide(n))},focus:function(e,r){var o,i,c=this,a=["a[href]","area[href]",'input:not([disabled]):not([type="hidden"]):not([aria-hidden])',"select:not([disabled]):not([aria-hidden])","textarea:not([disabled]):not([aria-hidden])","button:not([disabled]):not([aria-hidden])","iframe","object","embed","video","audio","[contenteditable]",'[tabindex]:not([tabindex^="-"])'].join(",");c.isClosing||((o=(o=!e&&c.current&&c.current.isComplete?c.current.$slide.find("*:visible"+(r?":not(.fancybox-close-small)":"")):c.$refs.container.find("*:visible")).filter(a).filter(function(){return"hidden"!==n(this).css("visibility")&&!n(this).hasClass("disabled")})).length?(i=o.index(t.activeElement),e&&e.shiftKey?(i<0||0==i)&&(e.preventDefault(),o.eq(o.length-1).trigger("focus")):(i<0||i==o.length-1)&&(e&&e.preventDefault(),o.eq(0).trigger("focus"))):c.$refs.container.trigger("focus"))},activate:function(){var e=this;n(".fancybox-container").each(function(){var t=n(this).data("FancyBox");t&&t.id!==e.id&&!t.isClosing&&(t.trigger("onDeactivate"),t.removeEvents(),t.isVisible=!1)}),e.isVisible=!0,(e.current||e.isIdle)&&(e.update(),e.updateControls()),e.trigger("onActivate"),e.addEvents()},close:function(e,t){var r,o,i,c,a,s,u,h=this,d=h.current,m=function(){h.cleanUp(e)};return!(h.isClosing||(h.isClosing=!0,!1===h.trigger("beforeClose",e)?(h.isClosing=!1,l(function(){h.update()}),1):(h.removeEvents(),i=d.$content,r=d.opts.animationEffect,o=n.isNumeric(t)?t:r?d.opts.animationDuration:0,d.$slide.removeClass("fancybox-slide--complete fancybox-slide--next fancybox-slide--previous fancybox-animated"),!0!==e?n.fancybox.stop(d.$slide):r=!1,d.$slide.siblings().trigger("onReset").remove(),o&&h.$refs.container.removeClass("fancybox-is-open").addClass("fancybox-is-closing").css("transition-duration",o+"ms"),h.hideLoading(d),h.hideControls(!0),h.updateCursor(),"zoom"!==r||i&&o&&"image"===d.type&&!h.isMoved()&&!d.hasError&&(u=h.getThumbPos(d))||(r="fade"),"zoom"===r?(n.fancybox.stop(i),c=n.fancybox.getTranslate(i),s={top:c.top,left:c.left,scaleX:c.width/u.width,scaleY:c.height/u.height,width:u.width,height:u.height},a=d.opts.zoomOpacity,"auto"==a&&(a=Math.abs(d.width/d.height-u.width/u.height)>.1),a&&(u.opacity=0),n.fancybox.setTranslate(i,s),f(i),n.fancybox.animate(i,u,o,m),0):(r&&o?n.fancybox.animate(d.$slide.addClass("fancybox-slide--previous").removeClass("fancybox-slide--current"),"fancybox-animated fancybox-fx-"+r,o,m):!0===e?setTimeout(m,o):m(),0))))},cleanUp:function(t){var r,o,i,c=this,a=c.current.opts.$orig;c.current.$slide.trigger("onReset"),c.$refs.container.empty().remove(),c.trigger("afterClose",t),c.current.opts.backFocus&&(a&&a.length&&a.is(":visible")||(a=c.$trigger),a&&a.length&&(o=e.scrollX,i=e.scrollY,a.trigger("focus"),n("html, body").scrollTop(i).scrollLeft(o))),c.current=null,(r=n.fancybox.getInstance())?r.activate():(n("body").removeClass("fancybox-active compensate-for-scrollbar"),n("#fancybox-style-noscroll").remove())},trigger:function(e,t){var r,o=Array.prototype.slice.call(arguments,1),i=this,c=t&&t.opts?t:i.current;if(c?o.unshift(c):c=i,o.unshift(i),n.isFunction(c.opts[e])&&(r=c.opts[e].apply(c,o)),!1===r)return r;"afterClose"!==e&&i.$refs?i.$refs.container.trigger(e+".fb",o):a.trigger(e+".fb",o)},updateControls:function(){var e=this,r=e.current,o=r.index,i=e.$refs.container,c=e.$refs.caption,a=r.opts.caption;r.$slide.trigger("refresh"),a&&a.length?(e.$caption=c,c.children().eq(0).html(a)):e.$caption=null,e.hasHiddenControls||e.isIdle||e.showControls(),i.find("[data-fancybox-count]").html(e.group.length),i.find("[data-fancybox-index]").html(o+1),i.find("[data-fancybox-prev]").prop("disabled",!r.opts.loop&&o<=0),i.find("[data-fancybox-next]").prop("disabled",!r.opts.loop&&o>=e.group.length-1),"image"===r.type?i.find("[data-fancybox-zoom]").show().end().find("[data-fancybox-download]").attr("href",r.opts.image.src||r.src).show():r.opts.toolbar&&i.find("[data-fancybox-download],[data-fancybox-zoom]").hide(),n(t.activeElement).is(":hidden,[disabled]")&&e.$refs.container.trigger("focus")},hideControls:function(e){var t=["infobar","toolbar","nav"];!e&&this.current.opts.preventCaptionOverlap||t.push("caption"),this.$refs.container.removeClass(t.map(function(e){return"fancybox-show-"+e}).join(" ")),this.hasHiddenControls=!0},showControls:function(){var e=this,t=e.current?e.current.opts:e.opts,n=e.$refs.container;e.hasHiddenControls=!1,e.idleSecondsCounter=0,n.toggleClass("fancybox-show-toolbar",!(!t.toolbar||!t.buttons)).toggleClass("fancybox-show-infobar",!!(t.infobar&&e.group.length>1)).toggleClass("fancybox-show-caption",!!e.$caption).toggleClass("fancybox-show-nav",!!(t.arrows&&e.group.length>1)).toggleClass("fancybox-is-modal",!!t.modal)},toggleControls:function(){this.hasHiddenControls?this.showControls():this.hideControls()}}),n.fancybox={version:"3.5.7",defaults:i,getInstance:function(e){var t=n('.fancybox-container:not(".fancybox-is-closing"):last').data("FancyBox"),r=Array.prototype.slice.call(arguments,1);return t instanceof v&&("string"===n.type(e)?t[e].apply(t,r):"function"===n.type(e)&&e.apply(t,r),t)},open:function(e,t,n){return new v(e,t,n)},close:function(e){var t=this.getInstance();t&&(t.close(),!0===e&&this.close(e))},destroy:function(){this.close(!0),a.add("body").off("click.fb-start","**")},isMobile:/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent),use3d:function(){var n=t.createElement("div");return e.getComputedStyle&&e.getComputedStyle(n)&&e.getComputedStyle(n).getPropertyValue("transform")&&!(t.documentMode&&t.documentMode<11)}(),getTranslate:function(e){var t;return!(!e||!e.length)&&{top:(t=e[0].getBoundingClientRect()).top||0,left:t.left||0,width:t.width,height:t.height,opacity:parseFloat(e.css("opacity"))}},setTranslate:function(e,t){var n="",r={};if(e&&t)return void 0===t.left&&void 0===t.top||(n=(void 0===t.left?e.position().left:t.left)+"px, "+(void 0===t.top?e.position().top:t.top)+"px",n=this.use3d?"translate3d("+n+", 0px)":"translate("+n+")"),void 0!==t.scaleX&&void 0!==t.scaleY?n+=" scale("+t.scaleX+", "+t.scaleY+")":void 0!==t.scaleX&&(n+=" scaleX("+t.scaleX+")"),n.length&&(r.transform=n),void 0!==t.opacity&&(r.opacity=t.opacity),void 0!==t.width&&(r.width=t.width),void 0!==t.height&&(r.height=t.height),e.css(r)},animate:function(e,t,r,o,i){var c,a=this;n.isFunction(r)&&(o=r,r=null),a.stop(e),c=a.getTranslate(e),e.on(h,function(s){(!s||!s.originalEvent||e.is(s.originalEvent.target)&&"z-index"!=s.originalEvent.propertyName)&&(a.stop(e),n.isNumeric(r)&&e.css("transition-duration",""),n.isPlainObject(t)?void 0!==t.scaleX&&void 0!==t.scaleY&&a.setTranslate(e,{top:t.top,left:t.left,width:c.width*t.scaleX,height:c.height*t.scaleY,scaleX:1,scaleY:1}):!0!==i&&e.removeClass(t),n.isFunction(o)&&o(s))}),n.isNumeric(r)&&e.css("transition-duration",r+"ms"),n.isPlainObject(t)?(void 0!==t.scaleX&&void 0!==t.scaleY&&(delete t.width,delete t.height,e.parent().hasClass("fancybox-slide--image")&&e.parent().addClass("fancybox-is-scaling")),n.fancybox.setTranslate(e,t)):e.addClass(t),e.data("timer",setTimeout(function(){e.trigger(h)},r+33))},stop:function(e,t){e&&e.length&&(clearTimeout(e.data("timer")),t&&e.trigger(h),e.off(h).css("transition-duration",""),e.parent().removeClass("fancybox-is-scaling"))}},n.fn.fancybox=function(e){var t;return(t=(e=e||{}).selector||!1)?n("body").off("click.fb-start",t).on("click.fb-start",t,{options:e},o):this.off("click.fb-start").on("click.fb-start",{items:this,options:e},o),this},a.on("click.fb-start","[data-fancybox]",o),a.on("click.fb-start","[data-fancybox-trigger]",function(e){n('[data-fancybox="'+n(this).attr("data-fancybox-trigger")+'"]').eq(n(this).attr("data-fancybox-index")||0).trigger("click.fb-start",{$trigger:n(this)})}),function(){var e=null;a.on("mousedown mouseup focus blur",".fancybox-button",function(t){switch(t.type){case"mousedown":e=n(this);break;case"mouseup":e=null;break;case"focusin":n(".fancybox-button").removeClass("fancybox-focus"),n(this).is(e)||n(this).is("[disabled]")||n(this).addClass("fancybox-focus");break;case"focusout":n(".fancybox-button").removeClass("fancybox-focus")}})}()}}(window,document,jQuery),function(e){"use strict";var t={youtube:{matcher:/(youtube\.com|youtu\.be|youtube\-nocookie\.com)\/(watch\?(.*&)?v=|v\/|u\/|embed\/?)?(videoseries\?list=(.*)|[\w-]{11}|\?listType=(.*)&list=(.*))(.*)/i,params:{autoplay:1,autohide:1,fs:1,rel:0,hd:1,wmode:"transparent",enablejsapi:1,html5:1},paramPlace:8,type:"iframe",url:"https://www.youtube-nocookie.com/embed/$4",thumb:"https://img.youtube.com/vi/$4/hqdefault.jpg"},vimeo:{matcher:/^.+vimeo.com\/(.*\/)?([\d]+)(.*)?/,params:{autoplay:1,hd:1,show_title:1,show_byline:1,show_portrait:0,fullscreen:1},paramPlace:3,type:"iframe",url:"//player.vimeo.com/video/$2"},instagram:{matcher:/(instagr\.am|instagram\.com)\/p\/([a-zA-Z0-9_\-]+)\/?/i,type:"image",url:"//$1/p/$2/media/?size=l"},gmap_place:{matcher:/(maps\.)?google\.([a-z]{2,3}(\.[a-z]{2})?)\/(((maps\/(place\/(.*)\/)?\@(.*),(\d+.?\d+?)z))|(\?ll=))(.*)?/i,type:"iframe",url:function(e){return"//maps.google."+e[2]+"/?ll="+(e[9]?e[9]+"&z="+Math.floor(e[10])+(e[12]?e[12].replace(/^\//,"&"):""):e[12]+"").replace(/\?/,"&")+"&output="+(e[12]&&e[12].indexOf("layer=c")>0?"svembed":"embed")}},gmap_search:{matcher:/(maps\.)?google\.([a-z]{2,3}(\.[a-z]{2})?)\/(maps\/search\/)(.*)/i,type:"iframe",url:function(e){return"//maps.google."+e[2]+"/maps?q="+e[5].replace("query=","q=").replace("api=1","")+"&output=embed"}}},n=function(t,n,r){if(t)return r=r||"","object"===e.type(r)&&(r=e.param(r,!0)),e.each(n,function(e,n){t=t.replace("$"+e,n||"")}),r.length&&(t+=(t.indexOf("?")>0?"&":"?")+r),t};e(document).on("objectNeedsType.fb",function(r,o,i){var c,a,s,l,u,h,f,d=i.src||"",m=!1;c=e.extend(!0,{},t,i.opts.media),e.each(c,function(t,r){if(s=d.match(r.matcher)){if(m=r.type,f=t,h={},r.paramPlace&&s[r.paramPlace]){"?"==(u=s[r.paramPlace])[0]&&(u=u.substring(1)),u=u.split("&");for(var o=0;o1&&("youtube"===n.contentSource||"vimeo"===n.contentSource)&&r.load(n.contentSource)}})}(jQuery),function(e,t,n){"use strict";var r=e.requestAnimationFrame||e.webkitRequestAnimationFrame||e.mozRequestAnimationFrame||e.oRequestAnimationFrame||function(t){return e.setTimeout(t,1e3/60)},o=e.cancelAnimationFrame||e.webkitCancelAnimationFrame||e.mozCancelAnimationFrame||e.oCancelAnimationFrame||function(t){e.clearTimeout(t)},i=function(t){var n=[];for(var r in t=(t=t.originalEvent||t||e.e).touches&&t.touches.length?t.touches:t.changedTouches&&t.changedTouches.length?t.changedTouches:[t])t[r].pageX?n.push({x:t[r].pageX,y:t[r].pageY}):t[r].clientX&&n.push({x:t[r].clientX,y:t[r].clientY});return n},c=function(e,t,n){return t&&e?"x"===n?e.x-t.x:"y"===n?e.y-t.y:Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2)):0},a=function(e){if(e.is('a,area,button,[role="button"],input,label,select,summary,textarea,video,audio,iframe')||n.isFunction(e.get(0).onclick)||e.data("selectable"))return!0;for(var t=0,r=e[0].attributes,o=r.length;tt.clientHeight,i=("scroll"===r||"auto"===r)&&t.scrollWidth>t.clientWidth;return o||i},l=function(e){for(var t=!1;!(t=s(e.get(0)))&&((e=e.parent()).length&&!e.hasClass("fancybox-stage")&&!e.is("body")););return t},u=function(e){var t=this;t.instance=e,t.$bg=e.$refs.bg,t.$stage=e.$refs.stage,t.$container=e.$refs.container,t.destroy(),t.$container.on("touchstart.fb.touch mousedown.fb.touch",n.proxy(t,"ontouchstart"))};u.prototype.destroy=function(){var e=this;e.$container.off(".fb.touch"),n(t).off(".fb.touch"),e.requestId&&(o(e.requestId),e.requestId=null),e.tapped&&(clearTimeout(e.tapped),e.tapped=null)},u.prototype.ontouchstart=function(r){var o=this,s=n(r.target),u=o.instance,h=u.current,f=h.$slide,d=h.$content,m="touchstart"==r.type;if(m&&o.$container.off("mousedown.fb.touch"),(!r.originalEvent||2!=r.originalEvent.button)&&f.length&&s.length&&!a(s)&&!a(s.parent())&&(s.is("img")||!(r.originalEvent.clientX>s[0].clientWidth+s.offset().left))){if(!h||u.isAnimating||h.$slide.hasClass("fancybox-animated"))return r.stopPropagation(),void r.preventDefault();o.realPoints=o.startPoints=i(r),o.startPoints.length&&(h.touch&&r.stopPropagation(),o.startEvent=r,o.canTap=!0,o.$target=s,o.$content=d,o.opts=h.opts.touch,o.isPanning=!1,o.isSwiping=!1,o.isZooming=!1,o.isScrolling=!1,o.canPan=u.canPan(),o.startTime=(new Date).getTime(),o.distanceX=o.distanceY=o.distance=0,o.canvasWidth=Math.round(f[0].clientWidth),o.canvasHeight=Math.round(f[0].clientHeight),o.contentLastPos=null,o.contentStartPos=n.fancybox.getTranslate(o.$content)||{top:0,left:0},o.sliderStartPos=n.fancybox.getTranslate(f),o.stagePos=n.fancybox.getTranslate(u.$refs.stage),o.sliderStartPos.top-=o.stagePos.top,o.sliderStartPos.left-=o.stagePos.left,o.contentStartPos.top-=o.stagePos.top,o.contentStartPos.left-=o.stagePos.left,n(t).off(".fb.touch").on(m?"touchend.fb.touch touchcancel.fb.touch":"mouseup.fb.touch mouseleave.fb.touch",n.proxy(o,"ontouchend")).on(m?"touchmove.fb.touch":"mousemove.fb.touch",n.proxy(o,"ontouchmove")),n.fancybox.isMobile&&t.addEventListener("scroll",o.onscroll,!0),((o.opts||o.canPan)&&(s.is(o.$stage)||o.$stage.find(s).length)||(s.is(".fancybox-image")&&r.preventDefault(),n.fancybox.isMobile&&s.parents(".fancybox-caption").length))&&(o.isScrollable=l(s)||l(s.parent()),n.fancybox.isMobile&&o.isScrollable||r.preventDefault(),(1===o.startPoints.length||h.hasError)&&(o.canPan?(n.fancybox.stop(o.$content),o.isPanning=!0):o.isSwiping=!0,o.$container.addClass("fancybox-is-grabbing")),2===o.startPoints.length&&"image"===h.type&&(h.isLoaded||h.$ghost)&&(o.canTap=!1,o.isSwiping=!1,o.isPanning=!1,o.isZooming=!0,n.fancybox.stop(o.$content),o.centerPointStartX=.5*(o.startPoints[0].x+o.startPoints[1].x)-n(e).scrollLeft(),o.centerPointStartY=.5*(o.startPoints[0].y+o.startPoints[1].y)-n(e).scrollTop(),o.percentageOfImageAtPinchPointX=(o.centerPointStartX-o.contentStartPos.left)/o.contentStartPos.width,o.percentageOfImageAtPinchPointY=(o.centerPointStartY-o.contentStartPos.top)/o.contentStartPos.height,o.startDistanceBetweenFingers=c(o.startPoints[0],o.startPoints[1]))))}},u.prototype.onscroll=function(e){this.isScrolling=!0,t.removeEventListener("scroll",this.onscroll,!0)},u.prototype.ontouchmove=function(e){var t=this;return void 0!==e.originalEvent.buttons&&0===e.originalEvent.buttons?void t.ontouchend(e):t.isScrolling?void(t.canTap=!1):(t.newPoints=i(e),void((t.opts||t.canPan)&&t.newPoints.length&&t.newPoints.length&&(t.isSwiping&&!0===t.isSwiping||e.preventDefault(),t.distanceX=c(t.newPoints[0],t.startPoints[0],"x"),t.distanceY=c(t.newPoints[0],t.startPoints[0],"y"),t.distance=c(t.newPoints[0],t.startPoints[0]),t.distance>0&&(t.isSwiping?t.onSwipe(e):t.isPanning?t.onPan():t.isZooming&&t.onZoom()))))},u.prototype.onSwipe=function(t){var i,c=this,a=c.instance,s=c.isSwiping,l=c.sliderStartPos.left||0;if(!0!==s)"x"==s&&(c.distanceX>0&&(c.instance.group.length<2||0===c.instance.current.index&&!c.instance.current.opts.loop)?l+=Math.pow(c.distanceX,.8):c.distanceX<0&&(c.instance.group.length<2||c.instance.current.index===c.instance.group.length-1&&!c.instance.current.opts.loop)?l-=Math.pow(-c.distanceX,.8):l+=c.distanceX),c.sliderLastPos={top:"x"==s?0:c.sliderStartPos.top+c.distanceY,left:l},c.requestId&&(o(c.requestId),c.requestId=null),c.requestId=r(function(){c.sliderLastPos&&(n.each(c.instance.slides,function(e,t){var r=t.pos-c.instance.currPos;n.fancybox.setTranslate(t.$slide,{top:c.sliderLastPos.top,left:c.sliderLastPos.left+r*c.canvasWidth+r*t.opts.gutter})}),c.$container.addClass("fancybox-is-sliding"))});else if(Math.abs(c.distance)>10){if(c.canTap=!1,a.group.length<2&&c.opts.vertical?c.isSwiping="y":a.isDragging||!1===c.opts.vertical||"auto"===c.opts.vertical&&n(e).width()>800?c.isSwiping="x":(i=Math.abs(180*Math.atan2(c.distanceY,c.distanceX)/Math.PI),c.isSwiping=i>45&&i<135?"y":"x"),"y"===c.isSwiping&&n.fancybox.isMobile&&c.isScrollable)return void(c.isScrolling=!0);a.isDragging=c.isSwiping,c.startPoints=c.newPoints,n.each(a.slides,function(e,t){var r,o;n.fancybox.stop(t.$slide),r=n.fancybox.getTranslate(t.$slide),o=n.fancybox.getTranslate(a.$refs.stage),t.$slide.css({transform:"",opacity:"","transition-duration":""}).removeClass("fancybox-animated").removeClass(function(e,t){return(t.match(/(^|\s)fancybox-fx-\S+/g)||[]).join(" ")}),t.pos===a.current.pos&&(c.sliderStartPos.top=r.top-o.top,c.sliderStartPos.left=r.left-o.left),n.fancybox.setTranslate(t.$slide,{top:r.top-o.top,left:r.left-o.left})}),a.SlideShow&&a.SlideShow.isActive&&a.SlideShow.stop()}},u.prototype.onPan=function(){var e=this;c(e.newPoints[0],e.realPoints[0])<(n.fancybox.isMobile?10:5)?e.startPoints=e.newPoints:(e.canTap=!1,e.contentLastPos=e.limitMovement(),e.requestId&&o(e.requestId),e.requestId=r(function(){n.fancybox.setTranslate(e.$content,e.contentLastPos)}))},u.prototype.limitMovement=function(){var e,t,n,r,o,i,c=this,a=c.canvasWidth,s=c.canvasHeight,l=c.distanceX,u=c.distanceY,h=c.contentStartPos,f=h.left,d=h.top,m=h.width,v=h.height;return o=m>a?f+l:f,i=d+u,e=Math.max(0,.5*a-.5*m),t=Math.max(0,.5*s-.5*v),n=Math.min(a-m,.5*a-.5*m),r=Math.min(s-v,.5*s-.5*v),l>0&&o>e&&(o=e-1+Math.pow(-e+f+l,.8)||0),l<0&&o0&&i>t&&(i=t-1+Math.pow(-t+d+u,.8)||0),u<0&&io?e=(e=e>0?0:e)i?t=(t=t>0?0:t)1&&(r.dMs>130&&c>10||c>50);r.sliderLastPos=null,"y"==e&&!t&&Math.abs(r.distanceY)>50?(n.fancybox.animate(r.instance.current.$slide,{top:r.sliderStartPos.top+r.distanceY+150*r.velocityY,opacity:0},200),o=r.instance.close(!0,250)):a&&r.distanceX>0?o=r.instance.previous(300):a&&r.distanceX<0&&(o=r.instance.next(300)),!1!==o||"x"!=e&&"y"!=e||r.instance.centerSlide(200),r.$container.removeClass("fancybox-is-sliding")},u.prototype.endPanning=function(){var e,t,r,o=this;o.contentLastPos&&(!1===o.opts.momentum||o.dMs>350?(e=o.contentLastPos.left,t=o.contentLastPos.top):(e=o.contentLastPos.left+500*o.velocityX,t=o.contentLastPos.top+500*o.velocityY),(r=o.limitPosition(e,t,o.contentStartPos.width,o.contentStartPos.height)).width=o.contentStartPos.width,r.height=o.contentStartPos.height,n.fancybox.animate(o.$content,r,366))},u.prototype.endZooming=function(){var e,t,r,o,i=this,c=i.instance.current,a=i.newWidth,s=i.newHeight;i.contentLastPos&&(e=i.contentLastPos.left,o={top:t=i.contentLastPos.top,left:e,width:a,height:s,scaleX:1,scaleY:1},n.fancybox.setTranslate(i.$content,o),ac.width||s>c.height?i.instance.scaleToActual(i.centerPointStartX,i.centerPointStartY,150):(r=i.limitPosition(e,t,a,s),n.fancybox.animate(i.$content,r,150)))},u.prototype.onTap=function(t){var r,o=this,c=n(t.target),a=o.instance,s=a.current,l=t&&i(t)||o.startPoints,u=l[0]?l[0].x-n(e).scrollLeft()-o.stagePos.left:0,h=l[0]?l[0].y-n(e).scrollTop()-o.stagePos.top:0,f=function(e){var r=s.opts[e];if(n.isFunction(r)&&(r=r.apply(a,[s,t])),r)switch(r){case"close":a.close(o.startEvent);break;case"toggleControls":a.toggleControls();break;case"next":a.next();break;case"nextOrClose":a.group.length>1?a.next():a.close(o.startEvent);break;case"zoom":"image"==s.type&&(s.isLoaded||s.$ghost)&&(a.canPan()?a.scaleToFit():a.isScaledDown()?a.scaleToActual(u,h):a.group.length<2&&a.close(o.startEvent))}};if((!t.originalEvent||2!=t.originalEvent.button)&&(c.is("img")||!(u>c[0].clientWidth+c.offset().left))){if(c.is(".fancybox-bg,.fancybox-inner,.fancybox-outer,.fancybox-container"))r="Outside";else if(c.is(".fancybox-slide"))r="Slide";else{if(!a.current.$content||!a.current.$content.find(c).addBack().filter(c).length)return;r="Content"}if(o.tapped){if(clearTimeout(o.tapped),o.tapped=null,Math.abs(u-o.tapX)>50||Math.abs(h-o.tapY)>50)return this;f("dblclick"+r)}else o.tapX=u,o.tapY=h,s.opts["dblclick"+r]&&s.opts["dblclick"+r]!==s.opts["click"+r]?o.tapped=setTimeout(function(){o.tapped=null,a.isAnimating||f("click"+r)},500):f("click"+r);return this}},n(t).on("onActivate.fb",function(e,t){t&&!t.Guestures&&(t.Guestures=new u(t))}).on("beforeClose.fb",function(e,t){t&&t.Guestures&&t.Guestures.destroy()})}(window,document,jQuery),function(e,t){"use strict";t.extend(!0,t.fancybox.defaults,{btnTpl:{slideShow:''},slideShow:{autoStart:!1,speed:3e3,progress:!0}});var n=function(e){this.instance=e,this.init()};t.extend(n.prototype,{timer:null,isActive:!1,$button:null,init:function(){var e=this,n=e.instance,r=n.group[n.currIndex].opts.slideShow;e.$button=n.$refs.toolbar.find("[data-fancybox-play]").on("click",function(){e.toggle()}),n.group.length<2||!r?e.$button.hide():r.progress&&(e.$progress=t('
').appendTo(n.$refs.inner))},set:function(e){var n=this,r=n.instance,o=r.current;o&&(!0===e||o.opts.loop||r.currIndex'},fullScreen:{autoStart:!1}}),t(e).on(n.fullscreenchange,function(){var e=r.isFullscreen(),n=t.fancybox.getInstance();n&&(n.current&&"image"===n.current.type&&n.isAnimating&&(n.isAnimating=!1,n.update(!0,!0,0),n.isComplete||n.complete()),n.trigger("onFullscreenChange",e),n.$refs.container.toggleClass("fancybox-is-fullscreen",e),n.$refs.toolbar.find("[data-fancybox-fullscreen]").toggleClass("fancybox-button--fsenter",!e).toggleClass("fancybox-button--fsexit",e))})}t(e).on({"onInit.fb":function(e,t){n?t&&t.group[t.currIndex].opts.fullScreen?(t.$refs.container.on("click.fb-fullscreen","[data-fancybox-fullscreen]",function(e){e.stopPropagation(),e.preventDefault(),r.toggle()}),t.opts.fullScreen&&!0===t.opts.fullScreen.autoStart&&r.request(),t.FullScreen=r):t&&t.$refs.toolbar.find("[data-fancybox-fullscreen]").hide():t.$refs.toolbar.find("[data-fancybox-fullscreen]").remove()},"afterKeydown.fb":function(e,t,n,r,o){t&&t.FullScreen&&70===o&&(r.preventDefault(),t.FullScreen.toggle())},"beforeClose.fb":function(e,t){t&&t.FullScreen&&t.$refs.container.hasClass("fancybox-is-fullscreen")&&r.exit()}})}(document,jQuery),function(e,t){"use strict";var n="fancybox-thumbs";t.fancybox.defaults=t.extend(!0,{btnTpl:{thumbs:''},thumbs:{autoStart:!1,hideOnClose:!0,parentEl:".fancybox-container",axis:"y"}},t.fancybox.defaults);var r=function(e){this.init(e)};t.extend(r.prototype,{$button:null,$grid:null,$list:null,isVisible:!1,isActive:!1,init:function(e){var t=this,n=e.group,r=0;t.instance=e,t.opts=n[e.currIndex].opts.thumbs,e.Thumbs=t,t.$button=e.$refs.toolbar.find("[data-fancybox-thumbs]");for(var o=0,i=n.length;o1));o++);r>1&&t.opts?(t.$button.removeAttr("style").on("click",function(){t.toggle()}),t.isActive=!0):t.$button.hide()},create:function(){var e,r=this,o=r.instance,i=r.opts.parentEl,c=[];r.$grid||(r.$grid=t('
').appendTo(o.$refs.container.find(i).addBack().filter(i)),r.$grid.on("click","a",function(){o.jumpTo(t(this).attr("data-index"))})),r.$list||(r.$list=t('
').appendTo(r.$grid)),t.each(o.group,function(t,n){(e=n.thumb)||"image"!==n.type||(e=n.src),c.push('")}),r.$list[0].innerHTML=c.join(""),"x"===r.opts.axis&&r.$list.width(parseInt(r.$grid.css("padding-right"),10)+o.group.length*r.$list.children().eq(0).outerWidth(!0))},focus:function(e){var t,n,r=this,o=r.$list,i=r.$grid;r.instance.current&&(n=(t=o.children().removeClass("fancybox-thumbs-active").filter('[data-index="'+r.instance.current.index+'"]').addClass("fancybox-thumbs-active")).position(),"y"===r.opts.axis&&(n.top<0||n.top>o.height()-t.outerHeight())?o.stop().animate({scrollTop:o.scrollTop()+n.top},e):"x"===r.opts.axis&&(n.lefti.scrollLeft()+(i.width()-t.outerWidth()))&&o.parent().stop().animate({scrollLeft:n.left},e))},update:function(){var e=this;e.instance.$refs.container.toggleClass("fancybox-show-thumbs",this.isVisible),e.isVisible?(e.$grid||e.create(),e.instance.trigger("onThumbsShow"),e.focus(0)):e.$grid&&e.instance.trigger("onThumbsHide"),e.instance.update()},hide:function(){this.isVisible=!1,this.update()},show:function(){this.isVisible=!0,this.update()},toggle:function(){this.isVisible=!this.isVisible,this.update()}}),t(e).on({"onInit.fb":function(e,t){var n;t&&!t.Thumbs&&((n=new r(t)).isActive&&!0===n.opts.autoStart&&n.show())},"beforeShow.fb":function(e,t,n,r){var o=t&&t.Thumbs;o&&o.isVisible&&o.focus(r?0:250)},"afterKeydown.fb":function(e,t,n,r,o){var i=t&&t.Thumbs;i&&i.isActive&&71===o&&(r.preventDefault(),i.toggle())},"beforeClose.fb":function(e,t){var n=t&&t.Thumbs;n&&n.isVisible&&!1!==n.opts.hideOnClose&&n.$grid.hide()}})}(document,jQuery),function(e,t){"use strict";t.extend(!0,t.fancybox.defaults,{btnTpl:{share:''},share:{url:function(e,t){return!e.currentHash&&"inline"!==t.type&&"html"!==t.type&&(t.origSrc||t.src)||window.location},tpl:''}}),t(e).on("click","[data-fancybox-share]",function(){var e,n,r=t.fancybox.getInstance(),o=r.current||null;o&&("function"===t.type(o.opts.share.url)&&(e=o.opts.share.url.apply(o,[r,o])),n=o.opts.share.tpl.replace(/\{\{media\}\}/g,"image"===o.type?encodeURIComponent(o.src):"").replace(/\{\{url\}\}/g,encodeURIComponent(e)).replace(/\{\{url_raw\}\}/g,function(e){var t={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/","`":"`","=":"="};return String(e).replace(/[&<>"'`=\/]/g,function(e){return t[e]})}(e)).replace(/\{\{descr\}\}/g,r.$caption?encodeURIComponent(r.$caption.text()):""),t.fancybox.open({src:r.translate(r,n),type:"html",opts:{touch:!1,animationEffect:!1,afterLoad:function(e,t){r.$refs.container.one("beforeClose.fb",function(){e.close(null,0)}),t.$content.find(".fancybox-share__button").click(function(){return window.open(this.href,"Share","width=550, height=450"),!1})},mobile:{autoFocus:!1}}}))})}(document,jQuery),function(e,t,n){"use strict";function r(){var t=e.location.hash.substr(1),n=t.split("-"),r=n.length>1&&/^\+?\d+$/.test(n[n.length-1])&&parseInt(n.pop(-1),10)||1;return{hash:t,index:r<1?1:r,gallery:n.join("-")}}function o(e){""!==e.gallery&&n("[data-fancybox='"+n.escapeSelector(e.gallery)+"']").eq(e.index-1).focus().trigger("click.fb-start")}function i(e){var t,n;return!!e&&(""!==(n=(t=e.current?e.current.opts:e.opts).hash||(t.$orig?t.$orig.data("fancybox")||t.$orig.data("fancybox-trigger"):""))&&n)}n.escapeSelector||(n.escapeSelector=function(e){return(e+"").replace(/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g,function(e,t){return t?"\0"===e?"�":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e})}),n(function(){!1!==n.fancybox.defaults.hash&&(n(t).on({"onInit.fb":function(e,t){var n,o;!1!==t.group[t.currIndex].opts.hash&&(n=r(),(o=i(t))&&n.gallery&&o==n.gallery&&(t.currIndex=n.index-1))},"beforeShow.fb":function(n,r,o,c){var a;o&&!1!==o.opts.hash&&(a=i(r))&&(r.currentHash=a+(r.group.length>1?"-"+(o.index+1):""),e.location.hash!=="#"+r.currentHash&&(c&&!r.origHash&&(r.origHash=e.location.hash),r.hashTimer&&clearTimeout(r.hashTimer),r.hashTimer=setTimeout(function(){"replaceState"in e.history?(e.history[c?"pushState":"replaceState"]({},t.title,e.location.pathname+e.location.search+"#"+r.currentHash),c&&(r.hasCreatedHistory=!0)):e.location.hash=r.currentHash,r.hashTimer=null},300)))},"beforeClose.fb":function(n,r,o){o&&!1!==o.opts.hash&&(clearTimeout(r.hashTimer),r.currentHash&&r.hasCreatedHistory?e.history.back():r.currentHash&&("replaceState"in e.history?e.history.replaceState({},t.title,e.location.pathname+e.location.search+(r.origHash||"")):e.location.hash=r.origHash),r.currentHash=null)}}),n(e).on("hashchange.fb",function(){var e=r(),t=null;n.each(n(".fancybox-container").get().reverse(),function(e,r){var o=n(r).data("FancyBox");if(o&&o.currentHash)return t=o,!1}),t?t.currentHash===e.gallery+"-"+e.index||1===e.index&&t.currentHash==e.gallery||(t.currentHash=null,t.close()):""!==e.gallery&&o(e)}),setTimeout(function(){n.fancybox.getInstance()||o(r())},50))})}(window,document,jQuery),function(e,t){"use strict";var n=(new Date).getTime();t(e).on({"onInit.fb":function(e,t,r){t.$refs.stage.on("mousewheel DOMMouseScroll wheel MozMousePixelScroll",function(e){var r=t.current,o=(new Date).getTime();t.group.length<2||!1===r.opts.wheel||"auto"===r.opts.wheel&&"image"!==r.type||(e.preventDefault(),e.stopPropagation(),r.$slide.hasClass("fancybox-animated")||(e=e.originalEvent||e,o-n<250||(n=o,t[(-e.deltaY||-e.deltaX||e.wheelDelta||-e.detail)<0?"next":"previous"]())))})}})}(document,jQuery),function(e){"function"==typeof define&&define.amd?define(["jquery"],function(t){return e(t,window,document)}):"object"==typeof exports?module.exports=function(t,n){return t||(t=window),n||(n="undefined"!=typeof window?require("jquery"):require("jquery")(t)),e(n,t,t.document)}:e(jQuery,window,document)}(function(e,t,n,r){function o(t){var n,r,i={};e.each(t,function(e){(n=e.match(/^([^A-Z]+?)([A-Z])/))&&-1!=="a aa ai ao as b fn i m o s ".indexOf(n[1]+" ")&&(r=e.replace(n[0],n[2].toLowerCase()),i[r]=e,"o"===n[1]&&o(t[e]))}),t._hungarianMap=i}function i(t,n,c){var a;t._hungarianMap||o(t),e.each(n,function(o){(a=t._hungarianMap[o])===r||!c&&n[a]!==r||("o"===a.charAt(0)?(n[a]||(n[a]={}),e.extend(!0,n[a],n[o]),i(t[a],n[a],c)):n[a]=n[o])})}function c(e){var t=We.defaults.oLanguage,n=t.sDecimal;if(n&&Be(n),e){var r=e.sZeroRecords;!e.sEmptyTable&&r&&"No data available in table"===t.sEmptyTable&&Ae(e,e,"sZeroRecords","sEmptyTable"),!e.sLoadingRecords&&r&&"Loading..."===t.sLoadingRecords&&Ae(e,e,"sZeroRecords","sLoadingRecords"),e.sInfoThousands&&(e.sThousands=e.sInfoThousands),(e=e.sDecimal)&&n!==e&&Be(e)}}function a(e){if(lt(e,"ordering","bSort"),lt(e,"orderMulti","bSortMulti"),lt(e,"orderClasses","bSortClasses"),lt(e,"orderCellsTop","bSortCellsTop"),lt(e,"order","aaSorting"),lt(e,"orderFixed","aaSortingFixed"),lt(e,"paging","bPaginate"),lt(e,"pagingType","sPaginationType"),lt(e,"pageLength","iDisplayLength"),lt(e,"searching","bFilter"),"boolean"==typeof e.sScrollX&&(e.sScrollX=e.sScrollX?"100%":""),"boolean"==typeof e.scrollX&&(e.scrollX=e.scrollX?"100%":""),e=e.aoSearchCols)for(var t=0,n=e.length;t").css({position:"fixed",top:0,left:-1*e(t).scrollLeft(),height:1,width:1,overflow:"hidden"}).append(e("
").css({position:"absolute",top:1,left:1,width:100,overflow:"scroll"}).append(e("
").css({width:"100%",height:10}))).appendTo("body"),i=o.children(),c=i.children();r.barWidth=i[0].offsetWidth-i[0].clientWidth,r.bScrollOversize=100===c[0].offsetWidth&&100!==i[0].clientWidth,r.bScrollbarLeft=1!==Math.round(c.offset().left),r.bBounding=!!o[0].getBoundingClientRect().width,o.remove()}e.extend(n.oBrowser,We.__browser),n.oScroll.iBarWidth=We.__browser.barWidth}function u(e,t,n,o,i,c){var a,s=!1;for(n!==r&&(a=n,s=!0);o!==i;)e.hasOwnProperty(o)&&(a=s?t(a,e[o],o,e):e[o],s=!0,o+=c);return a}function h(t,r){var o=We.defaults.column,i=t.aoColumns.length;o=e.extend({},We.models.oColumn,o,{nTh:r||n.createElement("th"),sTitle:o.sTitle?o.sTitle:r?r.innerHTML:"",aDataSort:o.aDataSort?o.aDataSort:[i],mData:o.mData?o.mData:i,idx:i});t.aoColumns.push(o),(o=t.aoPreSearchCols)[i]=e.extend({},We.models.oSearch,o[i]),f(t,i,e(r).data())}function f(t,n,o){n=t.aoColumns[n];var c=t.oClasses,a=e(n.nTh);if(!n.sWidthOrig){n.sWidthOrig=a.attr("width")||null;var l=(a.attr("style")||"").match(/width:\s*(\d+[pxem%]+)/);l&&(n.sWidthOrig=l[1])}o!==r&&null!==o&&(s(o),i(We.defaults.column,o),o.mDataProp!==r&&!o.mData&&(o.mData=o.mDataProp),o.sType&&(n._sManualType=o.sType),o.className&&!o.sClass&&(o.sClass=o.className),o.sClass&&a.addClass(o.sClass),e.extend(n,o),Ae(n,o,"sWidth","sWidthOrig"),o.iDataSort!==r&&(n.aDataSort=[o.iDataSort]),Ae(n,o,"aDataSort"));var u=n.mData,h=x(u),f=n.mRender?x(n.mRender):null;o=function(e){return"string"==typeof e&&-1!==e.indexOf("@")};n._bAttrSrc=e.isPlainObject(u)&&(o(u.sort)||o(u.type)||o(u.filter)),n._setter=null,n.fnGetData=function(e,t,n){var o=h(e,t,r,n);return f&&t?f(o,t,e,n):o},n.fnSetData=function(e,t,n){return H(u)(e,t,n)},"number"!=typeof u&&(t._rowReadObject=!0),t.oFeatures.bSort||(n.bSortable=!1,a.addClass(c.sSortableNone)),t=-1!==e.inArray("asc",n.asSorting),o=-1!==e.inArray("desc",n.asSorting),n.bSortable&&(t||o)?t&&!o?(n.sSortingClass=c.sSortableAsc,n.sSortingClassJUI=c.sSortJUIAscAllowed):!t&&o?(n.sSortingClass=c.sSortableDesc,n.sSortingClassJUI=c.sSortJUIDescAllowed):(n.sSortingClass=c.sSortable,n.sSortingClassJUI=c.sSortJUI):(n.sSortingClass=c.sSortableNone,n.sSortingClassJUI="")}function d(e){if(!1!==e.oFeatures.bAutoWidth){var t=e.aoColumns;ve(e);for(var n=0,r=t.length;nm[a])i(d.length+m[a],f);else if("string"==typeof m[a])for(l=0,u=d.length;lt&&e[i]--;-1!=o&&n===r&&e.splice(o,1)}function k(e,t,n,o){var i,c=e.aoData[t],a=function(n,r){for(;n.childNodes.length;)n.removeChild(n.firstChild);n.innerHTML=M(e,t,r,"display")};if("dom"!==n&&(n&&"auto"!==n||"dom"!==c.src)){var s=c.anCells;if(s)if(o!==r)a(s[o],o);else for(n=0,i=s.length;n").appendTo(a)),n=0,r=h.length;ntr").attr("role","row"),e(a).find(">tr>th, >tr>td").addClass(u.sHeaderTH),e(s).find(">tr>th, >tr>td").addClass(u.sFooterTH),null!==s)for(n=0,r=(t=t.aoFooter[0]).length;n=t.fnRecordsDisplay()?0:s,t.iInitDisplayStart=-1);s=t._iDisplayStart;var h=t.fnDisplayEnd();if(t.bDeferLoading)t.bDeferLoading=!1,t.iDraw++,he(t,!1);else if(l){if(!t.bDestroying&&!F(t))return}else t.iDraw++;if(0!==u.length)for(a=l?t.aoData.length:h,l=l?0:s;l",{class:c?i[0]:""}).append(e("",{valign:"top",colSpan:p(t),class:t.oClasses.sRowEmpty}).html(o))[0];Ne(t,"aoHeaderCallback","header",[e(t.nTHead).children("tr")[0],S(t),s,h,u]),Ne(t,"aoFooterCallback","footer",[e(t.nTFoot).children("tr")[0],S(t),s,h,u]),(i=e(t.nTBody)).children().detach(),i.append(e(n)),Ne(t,"aoDrawCallback","draw",[t]),t.bSorted=!1,t.bFiltered=!1,t.bDrawing=!1}}function I(e,t){var n=e.oFeatures,r=n.bFilter;n.bSort&&Ce(e),r?Y(e,e.oPreviousSearch):e.aiDisplay=e.aiDisplayMaster.slice(),!0!==t&&(e._iDisplayStart=0),e._drawHold=t,O(e),e._drawHold=!1}function P(t){var n=t.oClasses,r=e(t.nTable),o=(r=e("
").insertBefore(r),t.oFeatures),i=e("
",{id:t.sTableId+"_wrapper",class:n.sWrapper+(t.nTFoot?"":" "+n.sNoFooter)});t.nHolding=r[0],t.nTableWrapper=i[0],t.nTableReinsertBefore=t.nTable.nextSibling;for(var c,a,s,l,u,h,f=t.sDom.split(""),d=0;d")[0],"'"==(l=f[d+1])||'"'==l){for(u="",h=2;f[d+h]!=l;)u+=f[d+h],h++;"H"==u?u=n.sJUIHeader:"F"==u&&(u=n.sJUIFooter),-1!=u.indexOf(".")?(l=u.split("."),s.id=l[0].substr(1,l[0].length-1),s.className=l[1]):"#"==u.charAt(0)?s.id=u.substr(1,u.length-1):s.className=u,d+=h}i.append(s),i=e(s)}else if(">"==a)i=i.parent();else if("l"==a&&o.bPaginate&&o.bLengthChange)c=ae(t);else if("f"==a&&o.bFilter)c=W(t);else if("r"==a&&o.bProcessing)c=ue(t);else if("t"==a)c=fe(t);else if("i"==a&&o.bInfo)c=te(t);else if("p"==a&&o.bPaginate)c=se(t);else if(0!==We.ext.feature.length)for(h=0,l=(s=We.ext.feature).length;h',l=(l=i.sSearch).match(/_INPUT_/)?l.replace("_INPUT_",s):l+s,u=(r=e("
",{id:a.f?null:o+"_filter",class:r.sFilter}).append(e("
").addClass(n.sLength);return t.aanFeatures.l||(l[0].id=r+"_length"),l.children().append(t.oLanguage.sLengthMenu.replace("_MENU_",c[0].outerHTML)),e("select",l).val(t._iDisplayLength).on("change.DT",function(){ce(t,e(this).val()),O(t)}),e(t.nTable).on("length.dt.DT",function(n,r,o){t===r&&e("select",l).val(o)}),l[0]}function se(t){var n=t.sPaginationType,r=We.ext.pager[n],o="function"==typeof r,i=function(e){O(e)},c=(n=e("
").addClass(t.oClasses.sPaging+n)[0],t.aanFeatures);return o||r.fnInit(t,n,i),c.p||(n.id=t.sTableId+"_paginate",t.aoDrawCallback.push({fn:function(e){if(o){var t,n=e._iDisplayStart,a=e._iDisplayLength,s=e.fnRecordsDisplay(),l=(n=(l=-1===a)?0:Math.ceil(n/a),a=l?1:Math.ceil(s/a),s=r(n,a),0);for(t=c.p.length;li&&(r=0):"first"==t?r=0:"previous"==t?0>(r=0<=o?r-o:0)&&(r=0):"next"==t?r+o",{id:t.aanFeatures.r?null:t.sTableId+"_processing",class:t.oClasses.sProcessing}).html(t.oLanguage.sProcessing).insertBefore(t.nTable)[0]}function he(t,n){t.oFeatures.bProcessing&&e(t.aanFeatures.r).css("display",n?"block":"none"),Ne(t,null,"processing",[t,n])}function fe(t){(h=e(t.nTable)).attr("role","grid");var n=t.oScroll;if(""===n.sX&&""===n.sY)return t.nTable;var r=n.sX,o=n.sY,i=t.oClasses,c=h.children("caption"),a=c.length?c[0]._captionSide:null,s=e(h[0].cloneNode(!1)),l=e(h[0].cloneNode(!1)),u=h.children("tfoot");u.length||(u=null),s=e("
",{class:i.sScrollWrapper}).append(e("
",{class:i.sScrollHead}).css({overflow:"hidden",position:"relative",border:0,width:r?r?ze(r):null:"100%"}).append(e("
",{class:i.sScrollHeadInner}).css({"box-sizing":"content-box",width:n.sXInner||"100%"}).append(s.removeAttr("id").css("margin-left",0).append("top"===a?c:null).append(h.children("thead"))))).append(e("
",{class:i.sScrollBody}).css({position:"relative",overflow:"auto",width:r?ze(r):null}).append(h)),u&&s.append(e("
",{class:i.sScrollFoot}).css({overflow:"hidden",border:0,width:r?r?ze(r):null:"100%"}).append(e("
",{class:i.sScrollFootInner}).append(l.removeAttr("id").css("margin-left",0).append("bottom"===a?c:null).append(h.children("tfoot")))));var h,f=(h=s.children())[0],d=(i=h[1],u?h[2]:null);return r&&e(i).on("scroll.DT",function(){var e=this.scrollLeft;f.scrollLeft=e,u&&(d.scrollLeft=e)}),e(i).css(o&&n.bCollapse?"max-height":"height",o),t.nScrollHead=f,t.nScrollBody=i,t.nScrollFoot=d,t.aoDrawCallback.push({fn:de,sName:"scrolling"}),s[0]}function de(t){var n,o,i,c,a,s=(h=t.oScroll).sX,l=h.sXInner,u=h.sY,h=h.iBarWidth,f=e(t.nScrollHead),v=f[0].style,p=(b=f.children("div"))[0].style,g=b.children("table"),b=t.nScrollBody,z=e(b),y=b.style,C=e(t.nScrollFoot).children("div"),M=C.children("table"),w=e(t.nTHead),_=e(t.nTable),x=_[0],H=x.style,S=t.nTFoot?e(t.nTFoot):null,L=t.oBrowser,V=L.bScrollOversize,k=ot(t.aoColumns,"nTh"),A=[],T=[],E=[],D=[],N=function(e){(e=e.style).paddingTop="0",e.paddingBottom="0",e.borderTopWidth="0",e.borderBottomWidth="0",e.height=0};o=b.scrollHeight>b.clientHeight,t.scrollBarVis!==o&&t.scrollBarVis!==r?(t.scrollBarVis=o,d(t)):(t.scrollBarVis=o,_.children("thead, tfoot").remove(),S&&(i=S.clone().prependTo(_),n=S.find("tr"),i=i.find("tr")),c=w.clone().prependTo(_),w=w.find("tr"),o=c.find("tr"),c.find("th, td").removeAttr("tabindex"),s||(y.width="100%",f[0].style.width="100%"),e.each(B(t,c),function(e,n){a=m(t,e),n.style.width=t.aoColumns[a].sWidth}),S&&me(function(e){e.style.width=""},i),f=_.outerWidth(),""===s?(H.width="100%",V&&(_.find("tbody").height()>b.offsetHeight||"scroll"==z.css("overflow-y"))&&(H.width=ze(_.outerWidth()-h)),f=_.outerWidth()):""!==l&&(H.width=ze(l),f=_.outerWidth()),me(N,o),me(function(t){E.push(t.innerHTML),A.push(ze(e(t).css("width")))},o),me(function(t,n){-1!==e.inArray(t,k)&&(t.style.width=A[n])},w),e(o).height(0),S&&(me(N,i),me(function(t){D.push(t.innerHTML),T.push(ze(e(t).css("width")))},i),me(function(e,t){e.style.width=T[t]},n),e(i).height(0)),me(function(e,t){e.innerHTML='
'+E[t]+"
",e.childNodes[0].style.height="0",e.childNodes[0].style.overflow="hidden",e.style.width=A[t]},o),S&&me(function(e,t){e.innerHTML='
'+D[t]+"
",e.childNodes[0].style.height="0",e.childNodes[0].style.overflow="hidden",e.style.width=T[t]},i),_.outerWidth()b.offsetHeight||"scroll"==z.css("overflow-y")?f+h:f,V&&(b.scrollHeight>b.offsetHeight||"scroll"==z.css("overflow-y"))&&(H.width=ze(n-h)),(""===s||""!==l)&&ke(t,1,"Possible column misalignment",6)):n="100%",y.width=ze(n),v.width=ze(n),S&&(t.nScrollFoot.style.width=ze(n)),!u&&V&&(y.height=ze(x.offsetHeight+h)),s=_.outerWidth(),g[0].style.width=ze(s),p.width=ze(s),l=_.height()>b.clientHeight||"scroll"==z.css("overflow-y"),p[u="padding"+(L.bScrollbarLeft?"Left":"Right")]=l?h+"px":"0px",S&&(M[0].style.width=ze(s),C[0].style.width=ze(s),C[0].style[u]=l?h+"px":"0px"),_.children("colgroup").insertBefore(_.children("thead")),z.scroll(),!t.bSorted&&!t.bFiltered||t._drawHold||(b.scrollTop=0))}function me(e,t,n){for(var r,o,i=0,c=0,a=t.length;c").appendTo(u.find("tbody"));for(u.find("thead, tfoot").remove(),u.append(e(n.nTHead).clone()).append(e(n.nTFoot).clone()),u.find("tfoot th, tfoot td").css("width",""),f=B(n,u.find("thead")[0]),r=0;r").css({width:o.sWidthOrig,margin:0,padding:0,border:0,height:1}));if(n.aoData.length)for(r=0;r").css(s||a?{position:"absolute",top:0,left:0,height:1,right:0,overflow:"hidden"}:{}).append(u).appendTo(b),s&&l?u.width(l):s?(u.css("width","auto"),u.removeAttr("width"),u.width()").css("width",ze(t)).appendTo(r||n.body),i=o[0].offsetWidth;return o.remove(),i}function ge(t,n){var r=be(t,n);if(0>r)return null;var o=t.aoData[r];return o.nTr?o.anCells[n]:e("").html(M(t,r,n,"display"))[0]}function be(e,t){for(var n,r=-1,o=-1,i=0,c=e.aoData.length;ir&&(r=n.length,o=i);return o}function ze(e){return null===e?"0px":"number"==typeof e?0>e?"0px":e+"px":e.match(/\d$/)?e+"px":e}function ye(t){var n,o,i,c,a,s,l=[],u=t.aoColumns;n=t.aaSortingFixed,o=e.isPlainObject(n);var h=[];for(i=function(t){t.length&&!e.isArray(t[0])?h.push(t):e.merge(h,t)},e.isArray(n)&&i(n),o&&n.pre&&i(n.pre),i(t.aaSorting),o&&n.post&&i(n.post),t=0;tr?1:0))return"asc"===s.dir?n:-n;return(n=i[e])<(r=i[t])?-1:n>r?1:0}):l.sort(function(e,t){var n,r,s,l,u=o.length,h=a[e]._aSortData,f=a[t]._aSortData;for(s=0;sr?1:0})}e.bSorted=!0}function Me(e){for(var t,n,r=e.aoColumns,o=ye(e),i=(e=e.oLanguage.oAria,0),c=r.length;i/g,"");var s=n.nTh;s.removeAttribute("aria-sort"),n.bSortable&&(0a?a+1:3));for(a=0,n=c.length;aa?a+1:3))}t.aLastSort=c}function He(e,t){var n,r=e.aoColumns[t],o=We.ext.order[r.sSortDataType];o&&(n=o.call(e.oInstance,e,t,v(e,t)));for(var i,c=We.ext.type.order[r.sType+"-pre"],a=0,s=e.aoData.length;a=a.length?[0,n[1]]:n)})),n.search!==r&&e.extend(t.oPreviousSearch,ee(n.search)),n.columns)for(i=0,c=n.columns.length;i=n&&(t=n-r),t-=t%r,(-1===r||0>t)&&(t=0),e._iDisplayStart=t}function Ie(t,n){var r=t.renderer,o=We.ext.renderer[n];return e.isPlainObject(r)&&r[n]?o[r[n]]||o._:"string"==typeof r&&o[r]||o._}function Pe(e){return e.oFeatures.bServerSide?"ssp":e.ajax||e.sAjaxSource?"ajax":"dom"}function Re(e,t){var n=[],r=(n=Lt.numbers_length,Math.floor(n/2));return t<=n?n=ct(0,t):e<=r?((n=ct(0,n-2)).push("ellipsis"),n.push(t-1)):(e>=t-1-r?n=ct(t-(n-2),t):((n=ct(e-r+2,e+r-1)).push("ellipsis"),n.push(t-1)),n.splice(0,0,"ellipsis"),n.splice(0,0,0)),n.DT_el="span",n}function Be(t){e.each({num:function(e){return Vt(e,t)},"num-fmt":function(e){return Vt(e,t,Ke)},"html-num":function(e){return Vt(e,t,Ge)},"html-num-fmt":function(e){return Vt(e,t,Ge,Ke)}},function(e,n){Fe.type.order[e+t+"-pre"]=n,e.match(/^html\-/)&&(Fe.type.search[e+t]=Fe.type.search.html)})}function je(e){return function(){var t=[Ve(this[We.ext.iApiIndex])].concat(Array.prototype.slice.call(arguments));return We.ext.internal[e].apply(this,t)}}var Fe,$e,qe,Ue,We=function(t){this.$=function(e,t){return this.api(!0).$(e,t)},this._=function(e,t){return this.api(!0).rows(e,t).data()},this.api=function(e){return new $e(e?Ve(this[Fe.iApiIndex]):this)},this.fnAddData=function(t,n){var o=this.api(!0),i=e.isArray(t)&&(e.isArray(t[0])||e.isPlainObject(t[0]))?o.rows.add(t):o.row.add(t);return(n===r||n)&&o.draw(),i.flatten().toArray()},this.fnAdjustColumnSizing=function(e){var t=this.api(!0).columns.adjust(),n=t.settings()[0],o=n.oScroll;e===r||e?t.draw(!1):(""!==o.sX||""!==o.sY)&&de(n)},this.fnClearTable=function(e){var t=this.api(!0).clear();(e===r||e)&&t.draw()},this.fnClose=function(e){this.api(!0).row(e).child.hide()},this.fnDeleteRow=function(e,t,n){var o=this.api(!0),i=(e=o.rows(e)).settings()[0],c=i.aoData[e[0][0]];return e.remove(),t&&t.call(this,i,c),(n===r||n)&&o.draw(),c},this.fnDestroy=function(e){this.api(!0).destroy(e)},this.fnDraw=function(e){this.api(!0).draw(e)},this.fnFilter=function(e,t,n,o,i,c){i=this.api(!0),null===t||t===r?i.search(e,n,o,c):i.column(t).search(e,n,o,c),i.draw()},this.fnGetData=function(e,t){var n=this.api(!0);if(e!==r){var o=e.nodeName?e.nodeName.toLowerCase():"";return t!==r||"td"==o||"th"==o?n.cell(e,t).data():n.row(e).data()||null}return n.data().toArray()},this.fnGetNodes=function(e){var t=this.api(!0);return e!==r?t.row(e).node():t.rows().nodes().flatten().toArray()},this.fnGetPosition=function(e){var t=this.api(!0),n=e.nodeName.toUpperCase();return"TR"==n?t.row(e).index():"TD"==n||"TH"==n?[(e=t.cell(e).index()).row,e.columnVisible,e.column]:null},this.fnIsOpen=function(e){return this.api(!0).row(e).child.isShown()},this.fnOpen=function(e,t,n){return this.api(!0).row(e).child(t,n).show().child()[0]},this.fnPageChange=function(e,t){var n=this.api(!0).page(e);(t===r||t)&&n.draw(!1)},this.fnSetColumnVis=function(e,t,n){e=this.api(!0).column(e).visible(t),(n===r||n)&&e.columns.adjust().draw()},this.fnSettings=function(){return Ve(this[Fe.iApiIndex])},this.fnSort=function(e){this.api(!0).order(e).draw()},this.fnSortListener=function(e,t,n){this.api(!0).order.listener(e,t,n)},this.fnUpdate=function(e,t,n,o,i){var c=this.api(!0);return n===r||null===n?c.row(t).data(e):c.cell(t,n).data(e),(i===r||i)&&c.columns.adjust(),(o===r||o)&&c.draw(),0},this.fnVersionCheck=Fe.fnVersionCheck;var n=this,o=t===r,u=this.length;for(var d in o&&(t={}),this.oApi=this.internal=Fe.internal,We.ext.internal)d&&(this[d]=je(d));return this.each(function(){var d,m={},v=1").appendTo(M)),S.nTHead=n[0],0===(n=M.children("tbody")).length&&(n=e("").appendTo(M)),S.nTBody=n[0],0===(n=M.children("tfoot")).length&&t.length>0&&(""!==S.oScroll.sX||""!==S.oScroll.sY)&&(n=e("").appendTo(M)),0===n.length||0===n.children().length?M.addClass(L.sNoFooter):n.length>0&&(S.nTFoot=n[0],R(S.aoFooter,S.nTFoot)),v.aaData)for(p=0;p/g,Qe=/^\d{2,4}[\.\/\-]\d{1,2}[\.\/\-]\d{1,2}([T ]{1}\d{1,2}[:\.]\d{2}([\.:]\d{2})?)?$/,Ze=RegExp("(\\/|\\.|\\*|\\+|\\?|\\||\\(|\\)|\\[|\\]|\\{|\\}|\\\\|\\$|\\^|\\-)","g"),Ke=/[',$£€¥%\u2009\u202F\u20BD\u20a9\u20BArfkɃΞ]/gi,Je=function(e){return!e||!0===e||"-"===e},et=function(e){var t=parseInt(e,10);return!isNaN(t)&&isFinite(e)?t:null},tt=function(e,t){return Ye[t]||(Ye[t]=RegExp(ft(t),"g")),"string"==typeof e&&"."!==t?e.replace(/\./g,"").replace(Ye[t],"."):e},nt=function(e,t,n){var r="string"==typeof e;return!!Je(e)||(t&&r&&(e=tt(e,t)),n&&r&&(e=e.replace(Ke,"")),!isNaN(parseFloat(e))&&isFinite(e))},rt=function(e,t,n){return!!Je(e)||((Je(e)||"string"==typeof e)&&!!nt(e.replace(Ge,""),t,n)||null)},ot=function(e,t,n){var o=[],i=0,c=e.length;if(n!==r)for(;ie.length))for(var n=(t=e.slice().sort())[0],r=1,o=t.length;r")[0],mt=dt.textContent!==r,vt=/<.*?>/g,pt=We.util.throttle,gt=[],bt=Array.prototype;$e=function(t,n){if(!(this instanceof $e))return new $e(t,n);var r=[],o=function(t){(t=function(t){var n,r,o=We.settings,i=e.map(o,function(e){return e.nTable});return t?t.nTable&&t.oApi?[t]:t.nodeName&&"table"===t.nodeName.toLowerCase()?-1!==(n=e.inArray(t,i))?[o[n]]:null:t&&"function"==typeof t.settings?t.settings().toArray():("string"==typeof t?r=e(t):t instanceof e&&(r=t),r?r.map(function(){return-1!==(n=e.inArray(this,i))?o[n]:null}).toArray():void 0):[]}(t))&&(r=r.concat(t))};if(e.isArray(t))for(var i=0,c=t.length;ie?new $e(t[e],this[e]):null},filter:function(e){var t=[];if(bt.filter)t=bt.filter.call(this,e,this);else for(var n=0,r=this.length;n").addClass(n),e("td",r).addClass(n).html(t)[0].colSpan=p(i),c.push(r[0]))};a(t,n),o._details&&o._details.detach(),o._details=e(c),o._detailsShow&&o._details.insertAfter(o.nTr)}return this}),qe(["row().child.show()","row().child().show()"],function(){return xt(this,!0),this}),qe(["row().child.hide()","row().child().hide()"],function(){return xt(this,!1),this}),qe(["row().child.remove()","row().child().remove()"],function(){return _t(this),this}),qe("row().child.isShown()",function(){var e=this.context;return e.length&&this.length&&e[0].aoData[this[0]]._detailsShow||!1});var Ht=/^([^:]+):(name|visIdx|visible)$/,St=function(e,t,n,r,o){n=[],r=0;for(var i=o.length;r=0?n:c.length+n];if("function"==typeof t){var o=wt(r,i);return e.map(c,function(e,n){return t(n,St(r,n,0,0,o),s[n])?n:null})}var l="string"==typeof t?t.match(Ht):"";if(l)switch(l[2]){case"visIdx":case"visible":if((n=parseInt(l[1],10))<0){var u=e.map(c,function(e,t){return e.bVisible?t:null});return[u[u.length+n]]}return[m(r,n)];case"name":return e.map(a,function(e,t){return e===l[1]?t:null});default:return[]}return t.nodeName&&t._DT_CellIndex?[t._DT_CellIndex.column]:(n=e(s).filter(t).map(function(){return e.inArray(this,s)}).toArray()).length||!t.nodeName?n:(n=e(t).closest("*[data-dt-column]")).length?[n.data("dt-column")]:[]},r,i)},1);return o.selector.cols=t,o.selector.opts=n,o}),Ue("columns().header()","column().header()",function(){return this.iterator("column",function(e,t){return e.aoColumns[t].nTh},1)}),Ue("columns().footer()","column().footer()",function(){return this.iterator("column",function(e,t){return e.aoColumns[t].nTf},1)}),Ue("columns().data()","column().data()",function(){return this.iterator("column-rows",St,1)}),Ue("columns().dataSrc()","column().dataSrc()",function(){return this.iterator("column",function(e,t){return e.aoColumns[t].mData},1)}),Ue("columns().cache()","column().cache()",function(e){return this.iterator("column-rows",function(t,n,r,o,i){return it(t.aoData,i,"search"===e?"_aFilterData":"_aSortData",n)},1)}),Ue("columns().nodes()","column().nodes()",function(){return this.iterator("column-rows",function(e,t,n,r,o){return it(e.aoData,o,"anCells",t)},1)}),Ue("columns().visible()","column().visible()",function(t,n){var o=this.iterator("column",function(n,o){if(t===r)return n.aoColumns[o].bVisible;var i,c,a,s=n.aoColumns,l=s[o],u=n.aoData;if(t!==r&&l.bVisible!==t){if(t){var h=e.inArray(!0,ot(s,"bVisible"),o+1);for(i=0,c=u.length;in;return!0},We.isDataTable=We.fnIsDataTable=function(t){var n=e(t).get(0),r=!1;return t instanceof We.Api||(e.each(We.settings,function(t,o){var i=o.nScrollHead?e("table",o.nScrollHead)[0]:null,c=o.nScrollFoot?e("table",o.nScrollFoot)[0]:null;o.nTable!==n&&i!==n&&c!==n||(r=!0)}),r)},We.tables=We.fnTables=function(t){var n=!1;e.isPlainObject(t)&&(n=t.api,t=t.visible);var r=e.map(We.settings,function(n){if(!t||t&&e(n.nTable).is(":visible"))return n.nTable});return n?new $e(r):r},We.camelToHungarian=i,qe("$()",function(t,n){var r=this.rows(n).nodes();r=e(r);return e([].concat(r.filter(t).toArray(),r.find(t).toArray()))}),e.each(["on","one","off"],function(t,n){qe(n+"()",function(){var t=Array.prototype.slice.call(arguments);t[0]=e.map(t[0].split(/\s/),function(e){return e.match(/\.dt\b/)?e:e+".dt"}).join(" ");var r=e(this.tables().nodes());return r[n].apply(r,t),this})}),qe("clear()",function(){return this.iterator("table",function(e){L(e)})}),qe("settings()",function(){return new $e(this.context,this.context)}),qe("init()",function(){var e=this.context;return e.length?e[0].oInit:null}),qe("data()",function(){return this.iterator("table",function(e){return ot(e.aoData,"_aData")}).flatten()}),qe("destroy()",function(n){return n=n||!1,this.iterator("table",function(r){var o,i=r.nTableWrapper.parentNode,c=r.oClasses,a=r.nTable,s=r.nTBody,l=r.nTHead,u=r.nTFoot,h=e(a),f=(s=e(s),e(r.nTableWrapper)),d=e.map(r.aoData,function(e){return e.nTr});r.bDestroying=!0,Ne(r,"aoDestroyCallback","destroy",[r]),n||new $e(r).columns().visible(!0),f.off(".DT").find(":not(tbody *)").off(".DT"),e(t).off(".DT-"+r.sInstance),a!=l.parentNode&&(h.children("thead").detach(),h.append(l)),u&&a!=u.parentNode&&(h.children("tfoot").detach(),h.append(u)),r.aaSorting=[],r.aaSortingFixed=[],xe(r),e(d).removeClass(r.asStripeClasses.join(" ")),e("th, td",l).removeClass(c.sSortable+" "+c.sSortableAsc+" "+c.sSortableDesc+" "+c.sSortableNone),s.children().detach(),s.append(d),h[l=n?"remove":"detach"](),f[l](),!n&&i&&(i.insertBefore(a,r.nTableReinsertBefore),h.css("width",r.sDestroyWidth).removeClass(c.sTable),(o=r.asDestroyStripes.length)&&s.children().each(function(t){e(this).addClass(r.asDestroyStripes[t%o])})),-1!==(i=e.inArray(r,We.settings))&&We.settings.splice(i,1)})}),e.each(["column","row","cell"],function(e,t){qe(t+"s().every()",function(e){var n=this.selector.opts,o=this;return this.iterator(t,function(i,c,a,s,l){e.call(o[t](c,"cell"===t?a:n,"cell"===t?n:r),c,a,s,l)})})}),qe("i18n()",function(t,n,o){var i=this.context[0];return(t=x(t)(i.oLanguage))===r&&(t=n),o!==r&&e.isPlainObject(t)&&(t=t[o]!==r?t[o]:t._),t.replace("%d",o)}),We.version="1.10.18",We.settings=[],We.models={},We.models.oSearch={bCaseInsensitive:!0,sSearch:"",bRegex:!1,bSmart:!0},We.models.oRow={nTr:null,anCells:null,_aData:[],_aSortData:null,_aFilterData:null,_sFilterRow:null,_sRowStripe:"",src:null,idx:-1},We.models.oColumn={idx:null,aDataSort:null,asSorting:null,bSearchable:null,bSortable:null,bVisible:null,_sManualType:null,_bAttrSrc:!1,fnCreatedCell:null,fnGetData:null,fnSetData:null,mData:null,mRender:null,nTh:null,nTf:null,sClass:null,sContentPadding:null,sDefaultContent:null,sName:null,sSortDataType:"std",sSortingClass:null,sSortingClassJUI:null,sTitle:null,sType:null,sWidth:null,sWidthOrig:null},We.defaults={aaData:null,aaSorting:[[0,"asc"]],aaSortingFixed:[],ajax:null,aLengthMenu:[10,25,50,100],aoColumns:null,aoColumnDefs:null,aoSearchCols:[],asStripeClasses:null,bAutoWidth:!0,bDeferRender:!1,bDestroy:!1,bFilter:!0,bInfo:!0,bLengthChange:!0,bPaginate:!0,bProcessing:!1,bRetrieve:!1,bScrollCollapse:!1,bServerSide:!1,bSort:!0,bSortMulti:!0,bSortCellsTop:!1,bSortClasses:!0,bStateSave:!1,fnCreatedRow:null,fnDrawCallback:null,fnFooterCallback:null,fnFormatNumber:function(e){return e.toString().replace(/\B(?=(\d{3})+(?!\d))/g,this.oLanguage.sThousands)},fnHeaderCallback:null,fnInfoCallback:null,fnInitComplete:null,fnPreDrawCallback:null,fnRowCallback:null,fnServerData:null,fnServerParams:null,fnStateLoadCallback:function(e){try{return JSON.parse((-1===e.iStateDuration?sessionStorage:localStorage).getItem("DataTables_"+e.sInstance+"_"+location.pathname))}catch(e){}},fnStateLoadParams:null,fnStateLoaded:null,fnStateSaveCallback:function(e,t){try{(-1===e.iStateDuration?sessionStorage:localStorage).setItem("DataTables_"+e.sInstance+"_"+location.pathname,JSON.stringify(t))}catch(e){}},fnStateSaveParams:null,iStateDuration:7200,iDeferLoading:null,iDisplayLength:10,iDisplayStart:0,iTabIndex:0,oClasses:{},oLanguage:{oAria:{sSortAscending:": activate to sort column ascending",sSortDescending:": activate to sort column descending"},oPaginate:{sFirst:"First",sLast:"Last",sNext:"Next",sPrevious:"Previous"},sEmptyTable:"No data available in table",sInfo:"Showing _START_ to _END_ of _TOTAL_ entries",sInfoEmpty:"Showing 0 to 0 of 0 entries",sInfoFiltered:"(filtered from _MAX_ total entries)",sInfoPostFix:"",sDecimal:"",sThousands:",",sLengthMenu:"Show _MENU_ entries",sLoadingRecords:"Loading...",sProcessing:"Processing...",sSearch:"Search:",sSearchPlaceholder:"",sUrl:"",sZeroRecords:"No matching records found"},oSearch:e.extend({},We.models.oSearch),sAjaxDataProp:"data",sAjaxSource:null,sDom:"lfrtip",searchDelay:null,sPaginationType:"simple_numbers",sScrollX:"",sScrollXInner:"",sScrollY:"",sServerMethod:"GET",renderer:null,rowId:"DT_RowId"},o(We.defaults),We.defaults.column={aDataSort:null,iDataSort:-1,asSorting:["asc","desc"],bSearchable:!0,bSortable:!0,bVisible:!0,fnCreatedCell:null,mData:null,mRender:null,sCellType:"td",sClass:"",sContentPadding:"",sDefaultContent:null,sName:"",sSortDataType:"std",sTitle:null,sType:null,sWidth:null},o(We.defaults.column),We.models.oSettings={oFeatures:{bAutoWidth:null,bDeferRender:null,bFilter:null,bInfo:null,bLengthChange:null,bPaginate:null,bProcessing:null,bServerSide:null,bSort:null,bSortMulti:null,bSortClasses:null,bStateSave:null},oScroll:{bCollapse:null,iBarWidth:0,sX:null,sXInner:null,sY:null},oLanguage:{fnInfoCallback:null},oBrowser:{bScrollOversize:!1,bScrollbarLeft:!1,bBounding:!1,barWidth:0},ajax:null,aanFeatures:[],aoData:[],aiDisplay:[],aiDisplayMaster:[],aIds:{},aoColumns:[],aoHeader:[],aoFooter:[],oPreviousSearch:{},aoPreSearchCols:[],aaSorting:null,aaSortingFixed:[],asStripeClasses:null,asDestroyStripes:[],sDestroyWidth:0,aoRowCallback:[],aoHeaderCallback:[],aoFooterCallback:[],aoDrawCallback:[],aoRowCreatedCallback:[],aoPreDrawCallback:[],aoInitComplete:[],aoStateSaveParams:[],aoStateLoadParams:[],aoStateLoaded:[],sTableId:"",nTable:null,nTHead:null,nTFoot:null,nTBody:null,nTableWrapper:null,bDeferLoading:!1,bInitialised:!1,aoOpenRows:[],sDom:null,searchDelay:null,sPaginationType:"two_button",iStateDuration:0,aoStateSave:[],aoStateLoad:[],oSavedState:null,oLoadedState:null,sAjaxSource:null,sAjaxDataProp:null,bAjaxDataGet:!0,jqXHR:null,json:r,oAjaxData:r,fnServerData:null,aoServerParams:[],sServerMethod:null,fnFormatNumber:null,aLengthMenu:null,iDraw:0,bDrawing:!1,iDrawError:-1,_iDisplayLength:10,_iDisplayStart:0,_iRecordsTotal:0,_iRecordsDisplay:0,oClasses:{},bFiltered:!1,bSorted:!1,bSortCellsTop:null,oInit:null,aoDestroyCallback:[],fnRecordsTotal:function(){return"ssp"==Pe(this)?1*this._iRecordsTotal:this.aiDisplayMaster.length},fnRecordsDisplay:function(){return"ssp"==Pe(this)?1*this._iRecordsDisplay:this.aiDisplay.length},fnDisplayEnd:function(){var e=this._iDisplayLength,t=this._iDisplayStart,n=t+e,r=this.aiDisplay.length,o=this.oFeatures,i=o.bPaginate;return o.bServerSide?!1===i||-1===e?t+r:Math.min(t+e,this._iRecordsDisplay):!i||n>r||-1===e?r:n},oInstance:null,sInstance:null,iTabIndex:0,nScrollHead:null,nScrollFoot:null,aLastSort:[],oPlugins:{},rowIdFn:null,rowId:null},We.ext=Fe={buttons:{},classes:{},builder:"-source-",errMode:"alert",feature:[],search:[],selector:{cell:[],column:[],row:[]},internal:{},legacy:{ajax:null},pager:{},renderer:{pageButton:{},header:{}},order:{},type:{detect:[],search:{},order:{}},_unique:0,fnVersionCheck:We.fnVersionCheck,iApiIndex:0,oJUIClasses:{},sVersion:We.version},e.extend(Fe,{afnFiltering:Fe.search,aTypes:Fe.type.detect,ofnSearch:Fe.type.search,oSort:Fe.type.order,afnSortData:Fe.order,aoFeatures:Fe.feature,oApi:Fe.internal,oStdClasses:Fe.classes,oPagination:Fe.pager}),e.extend(We.ext.classes,{sTable:"dataTable",sNoFooter:"no-footer",sPageButton:"paginate_button",sPageButtonActive:"current",sPageButtonDisabled:"disabled",sStripeOdd:"odd",sStripeEven:"even",sRowEmpty:"dataTables_empty",sWrapper:"dataTables_wrapper",sFilter:"dataTables_filter",sInfo:"dataTables_info",sPaging:"dataTables_paginate paging_",sLength:"dataTables_length",sProcessing:"dataTables_processing",sSortAsc:"sorting_asc",sSortDesc:"sorting_desc",sSortable:"sorting",sSortableAsc:"sorting_asc_disabled",sSortableDesc:"sorting_desc_disabled",sSortableNone:"sorting_disabled",sSortColumn:"sorting_",sFilterInput:"",sLengthSelect:"",sScrollWrapper:"dataTables_scroll",sScrollHead:"dataTables_scrollHead",sScrollHeadInner:"dataTables_scrollHeadInner",sScrollBody:"dataTables_scrollBody",sScrollFoot:"dataTables_scrollFoot",sScrollFootInner:"dataTables_scrollFootInner",sHeaderTH:"",sFooterTH:"",sSortJUIAsc:"",sSortJUIDesc:"",sSortJUI:"",sSortJUIAscAllowed:"",sSortJUIDescAllowed:"",sSortJUIWrapper:"",sSortIcon:"",sJUIHeader:"",sJUIFooter:""});var Lt=We.ext.pager;e.extend(Lt,{simple:function(){return["previous","next"]},full:function(){return["first","previous","next","last"]},numbers:function(e,t){return[Re(e,t)]},simple_numbers:function(e,t){return["previous",Re(e,t),"next"]},full_numbers:function(e,t){return["first","previous",Re(e,t),"next","last"]},first_last_numbers:function(e,t){return["first",Re(e,t),"last"]},_numbers:Re,numbers_length:7}),e.extend(!0,We.ext.renderer,{pageButton:{_:function(t,o,i,c,a,s){var l,u,h,f=t.oClasses,d=t.oLanguage.oPaginate,m=t.oLanguage.oAria.paginate||{},v=0,p=function(n,r){var o,c,h,g,b=function(e){le(t,e.data.action,!0)};for(o=0,c=r.length;o").appendTo(n),p(h,g);else{switch(l=null,u="",g){case"ellipsis":n.append('');break;case"first":l=d.sFirst,u=g+(a>0?"":" "+f.sPageButtonDisabled);break;case"previous":l=d.sPrevious,u=g+(a>0?"":" "+f.sPageButtonDisabled);break;case"next":l=d.sNext,u=g+(a",{class:f.sPageButton+" "+u,"aria-controls":t.sTableId,"aria-label":m[g],"data-dt-idx":v,tabindex:t.iTabIndex,id:0===i&&"string"==typeof g?t.sTableId+"_"+g:null}).html(l).appendTo(n),{action:g},b),v++)}};try{h=e(o).find(n.activeElement).data("dt-idx")}catch(e){}p(e(o).empty(),c),h!==r&&e(o).find("[data-dt-idx="+h+"]").focus()}}}),e.extend(We.ext.type.detect,[function(e,t){var n=t.oLanguage.sDecimal;return nt(e,n)?"num"+n:null},function(e){if(e&&!(e instanceof Date)&&!Qe.test(e))return null;var t=Date.parse(e);return null!==t&&!isNaN(t)||Je(e)?"date":null},function(e,t){var n=t.oLanguage.sDecimal;return nt(e,n,!0)?"num-fmt"+n:null},function(e,t){var n=t.oLanguage.sDecimal;return rt(e,n)?"html-num"+n:null},function(e,t){var n=t.oLanguage.sDecimal;return rt(e,n,!0)?"html-num-fmt"+n:null},function(e){return Je(e)||"string"==typeof e&&-1!==e.indexOf("<")?"html":null}]),e.extend(We.ext.type.search,{html:function(e){return Je(e)?e:"string"==typeof e?e.replace(Xe," ").replace(Ge,""):""},string:function(e){return Je(e)?e:"string"==typeof e?e.replace(Xe," "):e}});var Vt=function(e,t,n,r){return 0===e||e&&"-"!==e?(t&&(e=tt(e,t)),e.replace&&(n&&(e=e.replace(n,"")),r&&(e=e.replace(r,""))),1*e):-1/0};e.extend(Fe.type.order,{"date-pre":function(e){return e=Date.parse(e),isNaN(e)?-1/0:e},"html-pre":function(e){return Je(e)?"":e.replace?e.replace(/<.*?>/g,"").toLowerCase():e+""},"string-pre":function(e){return Je(e)?"":"string"==typeof e?e.toLowerCase():e.toString?e.toString():""},"string-asc":function(e,t){return et?1:0},"string-desc":function(e,t){return et?-1:0}}),Be(""),e.extend(!0,We.ext.renderer,{header:{_:function(t,n,r,o){e(t.nTable).on("order.dt.DT",function(e,i,c,a){t===i&&(e=r.idx,n.removeClass(r.sSortingClass+" "+o.sSortAsc+" "+o.sSortDesc).addClass("asc"==a[e]?o.sSortAsc:"desc"==a[e]?o.sSortDesc:r.sSortingClass))})},jqueryui:function(t,n,r,o){e("
").addClass(o.sSortJUIWrapper).append(n.contents()).append(e("").addClass(o.sSortIcon+" "+r.sSortingClassJUI)).appendTo(n),e(t.nTable).on("order.dt.DT",function(e,i,c,a){t===i&&(e=r.idx,n.removeClass(o.sSortAsc+" "+o.sSortDesc).addClass("asc"==a[e]?o.sSortAsc:"desc"==a[e]?o.sSortDesc:r.sSortingClass),n.find("span."+o.sSortIcon).removeClass(o.sSortJUIAsc+" "+o.sSortJUIDesc+" "+o.sSortJUI+" "+o.sSortJUIAscAllowed+" "+o.sSortJUIDescAllowed).addClass("asc"==a[e]?o.sSortJUIAsc:"desc"==a[e]?o.sSortJUIDesc:r.sSortingClassJUI))})}}});var kt=function(e){return"string"==typeof e?e.replace(//g,">").replace(/"/g,"""):e};return We.render={number:function(e,t,n,r,o){return{display:function(i){if("number"!=typeof i&&"string"!=typeof i)return i;var c=0>i?"-":"",a=parseFloat(i);return isNaN(a)?kt(i):(a=a.toFixed(n),i=Math.abs(a),a=parseInt(i,10),i=n?t+(i-a).toFixed(n).substring(2):"",c+(r||"")+a.toString().replace(/\B(?=(\d{3})+(?!\d))/g,e)+i+(o||""))}}},text:function(){return{display:kt}}},e.extend(We.ext.internal,{_fnExternApiFunc:je,_fnBuildAjax:j,_fnAjaxUpdate:F,_fnAjaxParameters:$,_fnAjaxUpdateDraw:q,_fnAjaxDataSrc:U,_fnAddColumn:h,_fnColumnOptions:f,_fnAdjustColumnSizing:d,_fnVisibleToColumnIndex:m,_fnColumnIndexToVisible:v,_fnVisbleColumns:p,_fnGetColumns:g,_fnColumnTypes:b,_fnApplyColumnDefs:z,_fnHungarianMap:o,_fnCamelToHungarian:i,_fnLanguageCompat:c,_fnBrowserDetect:l,_fnAddData:y,_fnAddTr:C,_fnNodeToDataIndex:function(e,t){return t._DT_RowIndex!==r?t._DT_RowIndex:null},_fnNodeToColumnIndex:function(t,n,r){return e.inArray(r,t.aoData[n].anCells)},_fnGetCellData:M,_fnSetCellData:w,_fnSplitObjNotation:_,_fnGetObjectDataFn:x,_fnSetObjectDataFn:H,_fnGetDataMaster:S,_fnClearTable:L,_fnDeleteIndex:V,_fnInvalidate:k,_fnGetRowElements:A,_fnCreateTr:T,_fnBuildHead:D,_fnDrawHead:N,_fnDraw:O,_fnReDraw:I,_fnAddOptionsHtml:P,_fnDetectHeader:R,_fnGetUniqueThs:B,_fnFeatureHtmlFilter:W,_fnFilterComplete:Y,_fnFilterCustom:X,_fnFilterColumn:G,_fnFilter:Q,_fnFilterCreateSearch:Z,_fnEscapeRegex:ft,_fnFilterData:K,_fnFeatureHtmlInfo:te,_fnUpdateInfo:ne,_fnInfoMacros:re,_fnInitialise:oe,_fnInitComplete:ie,_fnLengthChange:ce,_fnFeatureHtmlLength:ae,_fnFeatureHtmlPaginate:se,_fnPageChange:le,_fnFeatureHtmlProcessing:ue,_fnProcessingDisplay:he,_fnFeatureHtmlTable:fe,_fnScrollDraw:de,_fnApplyToChildren:me,_fnCalculateColumnWidths:ve,_fnThrottle:pt,_fnConvertToWidth:pe,_fnGetWidestNode:ge,_fnGetMaxLenString:be,_fnStringToCss:ze,_fnSortFlatten:ye,_fnSort:Ce,_fnSortAria:Me,_fnSortListener:we,_fnSortAttachListener:_e,_fnSortingClasses:xe,_fnSortData:He,_fnSaveState:Se,_fnLoadState:Le,_fnSettingsFromNode:Ve,_fnLog:ke,_fnMap:Ae,_fnBindAction:Ee,_fnCallbackReg:De,_fnCallbackFire:Ne,_fnLengthOverflow:Oe,_fnRenderer:Ie,_fnDataSource:Pe,_fnRowAttributes:E,_fnExtend:Te,_fnCalculateEnd:function(){}}),e.fn.dataTable=We,We.$=e,e.fn.dataTableSettings=We.settings,e.fn.dataTableExt=We.ext,e.fn.DataTable=function(t){return e(this).dataTable(t).api()},e.each(We,function(t,n){e.fn.DataTable[t]=n}),e.fn.dataTable}),function(e){"function"==typeof define&&define.amd?define(["jquery"],e):e("object"==typeof exports?require("jquery"):jQuery)}(function(e,t){function n(){return new Date(Date.UTC.apply(Date,arguments))}function r(){var e=new Date;return n(e.getFullYear(),e.getMonth(),e.getDate())}function o(e,t){return e.getUTCFullYear()===t.getUTCFullYear()&&e.getUTCMonth()===t.getUTCMonth()&&e.getUTCDate()===t.getUTCDate()}function i(n,r){return function(){return r!==t&&e.fn.datepicker.deprecated(r),this[n].apply(this,arguments)}}function c(t){var n={};if(m[t]||(t=t.split("-")[0],m[t])){var r=m[t];return e.each(d,function(e,t){t in r&&(n[t]=r[t])}),n}}var a=function(){var t={get:function(e){return this.slice(e)[0]},contains:function(e){for(var t=e&&e.valueOf(),n=0,r=this.length;n]/g)||[]).length<=0||e(n).length>0)}catch(e){return!1}},_process_options:function(t){this._o=e.extend({},this._o,t);var o=this.o=e.extend({},this._o),i=o.language;m[i]||(i=i.split("-")[0],m[i]||(i=f.language)),o.language=i,o.startView=this._resolveViewName(o.startView),o.minViewMode=this._resolveViewName(o.minViewMode),o.maxViewMode=this._resolveViewName(o.maxViewMode),o.startView=Math.max(this.o.minViewMode,Math.min(this.o.maxViewMode,o.startView)),!0!==o.multidate&&(o.multidate=Number(o.multidate)||!1,!1!==o.multidate&&(o.multidate=Math.max(0,o.multidate))),o.multidateSeparator=String(o.multidateSeparator),o.weekStart%=7,o.weekEnd=(o.weekStart+6)%7;var c=v.parseFormat(o.format);o.startDate!==-1/0&&(o.startDate?o.startDate instanceof Date?o.startDate=this._local_to_utc(this._zero_time(o.startDate)):o.startDate=v.parseDate(o.startDate,c,o.language,o.assumeNearbyYear):o.startDate=-1/0),o.endDate!==1/0&&(o.endDate?o.endDate instanceof Date?o.endDate=this._local_to_utc(this._zero_time(o.endDate)):o.endDate=v.parseDate(o.endDate,c,o.language,o.assumeNearbyYear):o.endDate=1/0),o.daysOfWeekDisabled=this._resolveDaysOfWeek(o.daysOfWeekDisabled||[]),o.daysOfWeekHighlighted=this._resolveDaysOfWeek(o.daysOfWeekHighlighted||[]),o.datesDisabled=o.datesDisabled||[],e.isArray(o.datesDisabled)||(o.datesDisabled=o.datesDisabled.split(",")),o.datesDisabled=e.map(o.datesDisabled,function(e){return v.parseDate(e,c,o.language,o.assumeNearbyYear)});var a=String(o.orientation).toLowerCase().split(/\s+/g),s=o.orientation.toLowerCase();if(a=e.grep(a,function(e){return/^auto|left|right|top|bottom$/.test(e)}),o.orientation={x:"auto",y:"auto"},s&&"auto"!==s)if(1===a.length)switch(a[0]){case"top":case"bottom":o.orientation.y=a[0];break;case"left":case"right":o.orientation.x=a[0]}else s=e.grep(a,function(e){return/^left|right$/.test(e)}),o.orientation.x=s[0]||"auto",s=e.grep(a,function(e){return/^top|bottom$/.test(e)}),o.orientation.y=s[0]||"auto";if(o.defaultViewDate instanceof Date||"string"==typeof o.defaultViewDate)o.defaultViewDate=v.parseDate(o.defaultViewDate,c,o.language,o.assumeNearbyYear);else if(o.defaultViewDate){var l=o.defaultViewDate.year||(new Date).getFullYear(),u=o.defaultViewDate.month||0,h=o.defaultViewDate.day||1;o.defaultViewDate=n(l,u,h)}else o.defaultViewDate=r()},_applyEvents:function(e){for(var n,r,o,i=0;io?(this.picker.addClass("datepicker-orient-right"),f+=h-t):this.o.rtl?this.picker.addClass("datepicker-orient-right"):this.picker.addClass("datepicker-orient-left");var m=this.o.orientation.y;if("auto"===m&&(m=-i+d-n<0?"bottom":"top"),this.picker.addClass("datepicker-orient-"+m),"top"===m?d-=n+parseInt(this.picker.css("padding-top")):d+=u,this.o.rtl){var v=o-(f+h);this.picker.css({top:d,right:v,zIndex:s})}else this.picker.css({top:d,left:f,zIndex:s});return this},_allow_update:!0,update:function(){if(!this._allow_update)return this;var t=this.dates.copy(),n=[],r=!1;return arguments.length?(e.each(arguments,e.proxy(function(e,t){t instanceof Date&&(t=this._local_to_utc(t)),n.push(t)},this)),r=!0):(n=(n=this.isInput?this.element.val():this.element.data("date")||this.inputField.val())&&this.o.multidate?n.split(this.o.multidateSeparator):[n],delete this.element.data().date),n=e.map(n,e.proxy(function(e){return v.parseDate(e,this.o.format,this.o.language,this.o.assumeNearbyYear)},this)),n=e.grep(n,e.proxy(function(e){return!this.dateWithinRange(e)||!e},this),!0),this.dates.replace(n),this.o.updateViewDate&&(this.dates.length?this.viewDate=new Date(this.dates.get(-1)):this.viewDatethis.o.endDate?this.viewDate=new Date(this.o.endDate):this.viewDate=this.o.defaultViewDate),r?(this.setValue(),this.element.change()):this.dates.length&&String(t)!==String(this.dates)&&r&&(this._trigger("changeDate"),this.element.change()),!this.dates.length&&t.length&&(this._trigger("clearDate"),this.element.change()),this.fill(),this},fillDow:function(){if(this.o.showWeekDays){var t=this.o.weekStart,n="";for(this.o.calendarWeeks&&(n+=' ');t";n+="",this.picker.find(".datepicker-days thead").append(n)}},fillMonths:function(){for(var e=this._utc_to_local(this.viewDate),t="",n=0;n<12;n++)t+=''+m[this.o.language].monthsShort[n]+"";this.picker.find(".datepicker-months td").html(t)},setRange:function(t){t&&t.length?this.range=e.map(t,function(e){return e.valueOf()}):delete this.range,this.fill()},getClassNames:function(t){var n=[],i=this.viewDate.getUTCFullYear(),c=this.viewDate.getUTCMonth(),a=r();return t.getUTCFullYear()i||t.getUTCFullYear()===i&&t.getUTCMonth()>c)&&n.push("new"),this.focusDate&&t.valueOf()===this.focusDate.valueOf()&&n.push("focused"),this.o.todayHighlight&&o(t,a)&&n.push("today"),-1!==this.dates.contains(t)&&n.push("active"),this.dateWithinRange(t)||n.push("disabled"),this.dateIsDisabled(t)&&n.push("disabled","disabled-date"),-1!==e.inArray(t.getUTCDay(),this.o.daysOfWeekHighlighted)&&n.push("highlighted"),this.range&&(t>this.range[0]&&ta)&&l.push("disabled"),z===g&&l.push("focused"),s!==e.noop&&((h=s(new Date(z,0,1)))===t?h={}:"boolean"==typeof h?h={enabled:h}:"string"==typeof h&&(h={classes:h}),!1===h.enabled&&l.push("disabled"),h.classes&&(l=l.concat(h.classes.split(/\s+/))),h.tooltip&&(u=h.tooltip)),f+='"+z+"";m.find(".datepicker-switch").text(v+"-"+p),m.find("td").html(f)},fill:function(){var o,i,c=new Date(this.viewDate),a=c.getUTCFullYear(),s=c.getUTCMonth(),l=this.o.startDate!==-1/0?this.o.startDate.getUTCFullYear():-1/0,u=this.o.startDate!==-1/0?this.o.startDate.getUTCMonth():-1/0,h=this.o.endDate!==1/0?this.o.endDate.getUTCFullYear():1/0,f=this.o.endDate!==1/0?this.o.endDate.getUTCMonth():1/0,d=m[this.o.language].today||m.en.today||"",p=m[this.o.language].clear||m.en.clear||"",g=m[this.o.language].titleFormat||m.en.titleFormat,b=r(),z=(!0===this.o.todayBtn||"linked"===this.o.todayBtn)&&b>=this.o.startDate&&b<=this.o.endDate&&!this.weekOfDateIsDisabled(b);if(!isNaN(a)&&!isNaN(s)){this.picker.find(".datepicker-days .datepicker-switch").text(v.formatDate(c,g,this.o.language)),this.picker.find("tfoot .today").text(d).css("display",z?"table-cell":"none"),this.picker.find("tfoot .clear").text(p).css("display",!0===this.o.clearBtn?"table-cell":"none"),this.picker.find("thead .datepicker-title").text(this.o.title).css("display","string"==typeof this.o.title&&""!==this.o.title?"table-cell":"none"),this.updateNavArrows(),this.fillMonths();var y=n(a,s,0),C=y.getUTCDate();y.setUTCDate(C-(y.getUTCDay()-this.o.weekStart+7)%7);var M=new Date(y);y.getUTCFullYear()<100&&M.setUTCFullYear(y.getUTCFullYear()),M.setUTCDate(M.getUTCDate()+42),M=M.valueOf();for(var w,_,x=[];y.valueOf()"),this.o.calendarWeeks)){var H=new Date(+y+(this.o.weekStart-w-7)%7*864e5),S=new Date(Number(H)+(11-H.getUTCDay())%7*864e5),L=new Date(Number(L=n(S.getUTCFullYear(),0,1))+(11-L.getUTCDay())%7*864e5),V=(S-L)/864e5/7+1;x.push(''+V+"")}(_=this.getClassNames(y)).push("day");var k=y.getUTCDate();this.o.beforeShowDay!==e.noop&&((i=this.o.beforeShowDay(this._utc_to_local(y)))===t?i={}:"boolean"==typeof i?i={enabled:i}:"string"==typeof i&&(i={classes:i}),!1===i.enabled&&_.push("disabled"),i.classes&&(_=_.concat(i.classes.split(/\s+/))),i.tooltip&&(o=i.tooltip),i.content&&(k=i.content)),_=e.isFunction(e.uniqueSort)?e.uniqueSort(_):e.unique(_),x.push(''+k+""),o=null,w===this.o.weekEnd&&x.push(""),y.setUTCDate(y.getUTCDate()+1)}this.picker.find(".datepicker-days tbody").html(x.join(""));var A=m[this.o.language].monthsTitle||m.en.monthsTitle||"Months",T=this.picker.find(".datepicker-months").find(".datepicker-switch").text(this.o.maxViewMode<2?A:a).end().find("tbody span").removeClass("active");if(e.each(this.dates,function(e,t){t.getUTCFullYear()===a&&T.eq(t.getUTCMonth()).addClass("active")}),(ah)&&T.addClass("disabled"),a===l&&T.slice(0,u).addClass("disabled"),a===h&&T.slice(f+1).addClass("disabled"),this.o.beforeShowMonth!==e.noop){var E=this;e.each(T,function(n,r){var o=new Date(a,n,1),i=E.o.beforeShowMonth(o);i===t?i={}:"boolean"==typeof i?i={enabled:i}:"string"==typeof i&&(i={classes:i}),!1!==i.enabled||e(r).hasClass("disabled")||e(r).addClass("disabled"),i.classes&&e(r).addClass(i.classes),i.tooltip&&e(r).prop("title",i.tooltip)})}this._fill_yearsView(".datepicker-years","year",10,a,l,h,this.o.beforeShowYear),this._fill_yearsView(".datepicker-decades","decade",100,a,l,h,this.o.beforeShowDecade),this._fill_yearsView(".datepicker-centuries","century",1e3,a,l,h,this.o.beforeShowCentury)}},updateNavArrows:function(){if(this._allow_update){var e,t,n=new Date(this.viewDate),r=n.getUTCFullYear(),o=n.getUTCMonth(),i=this.o.startDate!==-1/0?this.o.startDate.getUTCFullYear():-1/0,c=this.o.startDate!==-1/0?this.o.startDate.getUTCMonth():-1/0,a=this.o.endDate!==1/0?this.o.endDate.getUTCFullYear():1/0,s=this.o.endDate!==1/0?this.o.endDate.getUTCMonth():1/0,l=1;switch(this.viewMode){case 4:l*=10;case 3:l*=10;case 2:l*=10;case 1:e=Math.floor(r/l)*l<=i,t=Math.floor(r/l)*l+l>a;break;case 0:e=r<=i&&o<=c,t=r>=a&&o>=s}this.picker.find(".prev").toggleClass("disabled",e),this.picker.find(".next").toggleClass("disabled",t)}},click:function(t){var o,i,c;t.preventDefault(),t.stopPropagation(),(o=e(t.target)).hasClass("datepicker-switch")&&this.viewMode!==this.o.maxViewMode&&this.setViewMode(this.viewMode+1),o.hasClass("today")&&!o.hasClass("day")&&(this.setViewMode(0),this._setDate(r(),"linked"===this.o.todayBtn?null:"view")),o.hasClass("clear")&&this.clearDates(),o.hasClass("disabled")||(o.hasClass("month")||o.hasClass("year")||o.hasClass("decade")||o.hasClass("century"))&&(this.viewDate.setUTCDate(1),1,1===this.viewMode?(c=o.parent().find("span").index(o),i=this.viewDate.getUTCFullYear(),this.viewDate.setUTCMonth(c)):(c=0,i=Number(o.text()),this.viewDate.setUTCFullYear(i)),this._trigger(v.viewModes[this.viewMode-1].e,this.viewDate),this.viewMode===this.o.minViewMode?this._setDate(n(i,c,1)):(this.setViewMode(this.viewMode-1),this.fill())),this.picker.is(":visible")&&this._focused_from&&this._focused_from.focus(),delete this._focused_from},dayCellClick:function(t){var n=e(t.currentTarget).data("date"),r=new Date(n);this.o.updateViewDate&&(r.getUTCFullYear()!==this.viewDate.getUTCFullYear()&&this._trigger("changeYear",this.viewDate),r.getUTCMonth()!==this.viewDate.getUTCMonth()&&this._trigger("changeMonth",this.viewDate)),this._setDate(r)},navArrowsClick:function(t){var n=e(t.currentTarget).hasClass("prev")?-1:1;0!==this.viewMode&&(n*=12*v.viewModes[this.viewMode].navStep),this.viewDate=this.moveMonth(this.viewDate,n),this._trigger(v.viewModes[this.viewMode].e,this.viewDate),this.fill()},_toggle_multidate:function(e){var t=this.dates.contains(e);if(e||this.dates.clear(),-1!==t?(!0===this.o.multidate||this.o.multidate>1||this.o.toggleActive)&&this.dates.remove(t):!1===this.o.multidate?(this.dates.clear(),this.dates.push(e)):this.dates.push(e),"number"==typeof this.o.multidate)for(;this.dates.length>this.o.multidate;)this.dates.remove(0)},_setDate:function(e,t){t&&"date"!==t||this._toggle_multidate(e&&new Date(e)),(!t&&this.o.updateViewDate||"view"===t)&&(this.viewDate=e&&new Date(e)),this.fill(),this.setValue(),t&&"view"===t||this._trigger("changeDate"),this.inputField.trigger("change"),!this.o.autoclose||t&&"date"!==t||this.hide()},moveDay:function(e,t){var n=new Date(e);return n.setUTCDate(e.getUTCDate()+t),n},moveWeek:function(e,t){return this.moveDay(e,7*t)},moveMonth:function(e,t){if(!function(e){return e&&!isNaN(e.getTime())}(e))return this.o.defaultViewDate;if(!t)return e;var n,r,o=new Date(e.valueOf()),i=o.getUTCDate(),c=o.getUTCMonth(),a=Math.abs(t);if(t=t>0?1:-1,1===a)r=-1===t?function(){return o.getUTCMonth()===c}:function(){return o.getUTCMonth()!==n},n=c+t,o.setUTCMonth(n),n=(n+12)%12;else{for(var s=0;s0},dateWithinRange:function(e){return e>=this.o.startDate&&e<=this.o.endDate},keydown:function(e){if(this.picker.is(":visible")){var t,n,r=!1,o=this.focusDate||this.viewDate;switch(e.keyCode){case 27:this.focusDate?(this.focusDate=null,this.viewDate=this.dates.get(-1)||this.viewDate,this.fill()):this.hide(),e.preventDefault(),e.stopPropagation();break;case 37:case 38:case 39:case 40:if(!this.o.keyboardNavigation||7===this.o.daysOfWeekDisabled.length)break;t=37===e.keyCode||38===e.keyCode?-1:1,0===this.viewMode?e.ctrlKey?(n=this.moveAvailableDate(o,t,"moveYear"))&&this._trigger("changeYear",this.viewDate):e.shiftKey?(n=this.moveAvailableDate(o,t,"moveMonth"))&&this._trigger("changeMonth",this.viewDate):37===e.keyCode||39===e.keyCode?n=this.moveAvailableDate(o,t,"moveDay"):this.weekOfDateIsDisabled(o)||(n=this.moveAvailableDate(o,t,"moveWeek")):1===this.viewMode?(38!==e.keyCode&&40!==e.keyCode||(t*=4),n=this.moveAvailableDate(o,t,"moveMonth")):2===this.viewMode&&(38!==e.keyCode&&40!==e.keyCode||(t*=4),n=this.moveAvailableDate(o,t,"moveYear")),n&&(this.focusDate=this.viewDate=n,this.setValue(),this.fill(),e.preventDefault());break;case 13:if(!this.o.forceParse)break;o=this.focusDate||this.dates.get(-1)||this.viewDate,this.o.keyboardNavigation&&(this._toggle_multidate(o),r=!0),this.focusDate=null,this.viewDate=this.dates.get(-1)||this.viewDate,this.setValue(),this.fill(),this.picker.is(":visible")&&(e.preventDefault(),e.stopPropagation(),this.o.autoclose&&this.hide());break;case 9:this.focusDate=null,this.viewDate=this.dates.get(-1)||this.viewDate,this.fill(),this.hide()}r&&(this.dates.length?this._trigger("changeDate"):this._trigger("clearDate"),this.inputField.trigger("change"))}else 40!==e.keyCode&&27!==e.keyCode||(this.show(),e.stopPropagation())},setViewMode:function(e){this.viewMode=e,this.picker.children("div").hide().filter(".datepicker-"+v.viewModes[this.viewMode].clsName).show(),this.updateNavArrows(),this._trigger("changeViewMode",new Date(this.viewDate))}};var l=function(t,n){e.data(t,"datepicker",this),this.element=e(t),this.inputs=e.map(n.inputs,function(e){return e.jquery?e[0]:e}),delete n.inputs,this.keepEmptyValues=n.keepEmptyValues,delete n.keepEmptyValues,h.call(e(this.inputs),n).on("changeDate",e.proxy(this.dateUpdated,this)),this.pickers=e.map(this.inputs,function(t){return e.data(t,"datepicker")}),this.updateDates()};l.prototype={updateDates:function(){this.dates=e.map(this.pickers,function(e){return e.getUTCDate()}),this.updateRanges()},updateRanges:function(){var t=e.map(this.dates,function(e){return e.valueOf()});e.each(this.pickers,function(e,n){n.setRange(t)})},clearDates:function(){e.each(this.pickers,function(e,t){t.clearDates()})},dateUpdated:function(n){if(!this.updating){this.updating=!0;var r=e.data(n.target,"datepicker");if(r!==t){var o=r.getUTCDate(),i=this.keepEmptyValues,c=e.inArray(n.target,this.inputs),a=c-1,s=c+1,l=this.inputs.length;if(-1!==c){if(e.each(this.pickers,function(e,t){t.getUTCDate()||t!==r&&i||t.setUTCDate(o)}),o=0&&othis.dates[s])for(;sthis.dates[s];)this.pickers[s++].setUTCDate(o);this.updateDates(),delete this.updating}}}},destroy:function(){e.map(this.pickers,function(e){e.destroy()}),e(this.inputs).off("changeDate",this.dateUpdated),delete this.element.data().datepicker},remove:i("destroy","Method `remove` is deprecated and will be removed in version 2.0. Use `destroy` instead")};var u=e.fn.datepicker,h=function(n){var r,o=Array.apply(null,arguments);if(o.shift(),this.each(function(){var t=e(this),i=t.data("datepicker"),a="object"==typeof n&&n;if(!i){var u=function(t,n){function r(e,t){return t.toLowerCase()}var o=e(t).data(),i={},c=new RegExp("^"+n.toLowerCase()+"([A-Z])");for(var a in n=new RegExp("^"+n.toLowerCase()),o)n.test(a)&&(i[a.replace(c,r)]=o[a]);return i}(this,"date"),h=c(e.extend({},f,u,a).language),d=e.extend({},f,h,u,a);t.hasClass("input-daterange")||d.inputs?(e.extend(d,{inputs:d.inputs||t.find("input").toArray()}),i=new l(this,d)):i=new s(this,d),t.data("datepicker",i)}"string"==typeof n&&"function"==typeof i[n]&&(r=i[n].apply(i,o))}),r===t||r instanceof s||r instanceof l)return this;if(this.length>1)throw new Error("Using only allowed for the collection of a single element ("+n+" function)");return r};e.fn.datepicker=h;var f=e.fn.datepicker.defaults={assumeNearbyYear:!1,autoclose:!1,beforeShowDay:e.noop,beforeShowMonth:e.noop,beforeShowYear:e.noop,beforeShowDecade:e.noop,beforeShowCentury:e.noop,calendarWeeks:!1,clearBtn:!1,toggleActive:!1,daysOfWeekDisabled:[],daysOfWeekHighlighted:[],datesDisabled:[],endDate:1/0,forceParse:!0,format:"mm/dd/yyyy",keepEmptyValues:!1,keyboardNavigation:!0,language:"en",minViewMode:0,maxViewMode:4,multidate:!1,multidateSeparator:",",orientation:"auto",rtl:!1,startDate:-1/0,startView:0,todayBtn:!1,todayHighlight:!1,updateViewDate:!0,weekStart:0,disableTouchKeyboard:!1,enableOnReadonly:!0,showOnFocus:!0,zIndexOffset:10,container:"body",immediateUpdates:!1,title:"",templates:{leftArrow:"«",rightArrow:"»"},showWeekDays:!0},d=e.fn.datepicker.locale_opts=["format","rtl","weekStart"];e.fn.datepicker.Constructor=s;var m=e.fn.datepicker.dates={en:{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"],today:"Today",clear:"Clear",titleFormat:"MM yyyy"}},v={viewModes:[{names:["days","month"],clsName:"days",e:"changeMonth"},{names:["months","year"],clsName:"months",e:"changeYear",navStep:1},{names:["years","decade"],clsName:"years",e:"changeDecade",navStep:10},{names:["decades","century"],clsName:"decades",e:"changeCentury",navStep:100},{names:["centuries","millennium"],clsName:"centuries",e:"changeMillennium",navStep:1e3}],validParts:/dd?|DD?|mm?|MM?|yy(?:yy)?/g,nonpunctuation:/[^ -\/:-@\u5e74\u6708\u65e5\[-`{-~\t\n\r]+/g,parseFormat:function(e){if("function"==typeof e.toValue&&"function"==typeof e.toDisplay)return e;var t=e.replace(this.validParts,"\0").split("\0"),n=e.match(this.validParts);if(!t||!t.length||!n||0===n.length)throw new Error("Invalid date format.");return{separators:t,parts:n}},parseDate:function(n,o,i,c){function a(){var e=this.slice(0,l[f].length),t=l[f].slice(0,e.length);return e.toLowerCase()===t.toLowerCase()}if(!n)return t;if(n instanceof Date)return n;if("string"==typeof o&&(o=v.parseFormat(o)),o.toValue)return o.toValue(n,o,i);var l,u,h,f,d,p={d:"moveDay",m:"moveMonth",w:"moveWeek",y:"moveYear"},g={yesterday:"-1d",today:"+0d",tomorrow:"+1d"};if(n in g&&(n=g[n]),/^[\-+]\d+[dmwy]([\s,]+[\-+]\d+[dmwy])*$/i.test(n)){for(l=n.match(/([\-+]\d+)([dmwy])/gi),n=new Date,f=0;f(new Date).getFullYear()+t&&(e-=100),e}(t,c):t)},m:function(e,t){if(isNaN(e))return e;for(t-=1;t<0;)t+=12;for(t%=12,e.setUTCMonth(t);e.getUTCMonth()!==t;)e.setUTCDate(e.getUTCDate()-1);return e},d:function(e,t){return e.setUTCDate(t)}};M.yy=M.yyyy,M.M=M.MM=M.mm=M.m,M.dd=M.d,n=r();var w=o.parts.slice();if(l.length!==w.length&&(w=e(w).filter(function(t,n){return-1!==e.inArray(n,C)}).toArray()),l.length===w.length){var _,x,H;for(f=0,_=w.length;f<_;f++){if(b=parseInt(l[f],10),u=w[f],isNaN(b))switch(u){case"MM":z=e(m[i].months).filter(a),b=e.inArray(z[0],m[i].months)+1;break;case"M":z=e(m[i].monthsShort).filter(a),b=e.inArray(z[0],m[i].monthsShort)+1}y[u]=b}for(f=0;f'+f.templates.leftArrow+''+f.templates.rightArrow+"",contTemplate:'',footTemplate:''};v.template='
'+v.headTemplate+""+v.footTemplate+'
'+v.headTemplate+v.contTemplate+v.footTemplate+'
'+v.headTemplate+v.contTemplate+v.footTemplate+'
'+v.headTemplate+v.contTemplate+v.footTemplate+'
'+v.headTemplate+v.contTemplate+v.footTemplate+"
",e.fn.datepicker.DPGlobal=v,e.fn.datepicker.noConflict=function(){return e.fn.datepicker=u,this},e.fn.datepicker.version="1.9.0",e.fn.datepicker.deprecated=function(e){var t=window.console;t&&t.warn&&t.warn("DEPRECATED: "+e)},e(document).on("focus.datepicker.data-api click.datepicker.data-api",'[data-provide="datepicker"]',function(t){var n=e(this);n.data("datepicker")||(t.preventDefault(),h.call(n,"show"))}),e(function(){h.call(e('[data-provide="datepicker-inline"]'))})}),function(e,t){if("function"==typeof define&&define.amd)define(["module","exports"],t);else if("undefined"!=typeof exports)t(module,exports);else{var n={exports:{}};t(n,n.exports),e.autosize=n.exports}}(this,function(e,t){"use strict";var n,r,o="function"==typeof Map?new Map:(n=[],r=[],{has:function(e){return-1").addClass("progressbar-back-text").prependTo(r),this.$front_text=i=e("").addClass("progressbar-front-text").prependTo(n),u?(m=r.css("height"),o.css({height:m,"line-height":m}),i.css({height:m,"line-height":m}),e(window).resize(function(){m=r.css("height"),o.css({height:m,"line-height":m}),i.css({height:m,"line-height":m})})):(m=r.css("width"),i.css({width:m}),e(window).resize(function(){m=r.css("width"),i.css({width:m})}));setTimeout(function(){var e,t,d,m,p;u?n.css("height",v+"%"):n.css("width",v+"%");var g=setInterval(function(){u?(d=n.height(),m=r.height()):(d=n.width(),m=r.width()),e=Math.round(100*d/m),t=Math.round(s+d/m*(l-s)),e>=v&&(e=v,t=a,f(n),clearInterval(g)),"none"!==c.display_text&&(p=c.use_percentage?c.percent_format(e):c.amount_format(t,l,s),"fill"===c.display_text?n.text(p):"center"===c.display_text&&(o.text(p),i.text(p))),n.attr("aria-valuenow",t),h(e,n)},c.refresh_speed)},c.transition_delay)}};var n=e.fn.progressbar;e.fn.progressbar=function(n){return this.each(function(){var r=e(this),o=r.data("bs.progressbar"),i="object"==typeof n&&n;o&&i&&e.extend(o.options,i),o||r.data("bs.progressbar",o=new t(this,i)),o.transition()})},e.fn.progressbar.Constructor=t,e.fn.progressbar.noConflict=function(){return e.fn.progressbar=n,this}}(window.jQuery);var _extends=Object.assign||function(e){for(var t=1;te.addpos2&&(e.addpos2=t.offsetHeight);break;case"left":case"right":t.offsetWidth+(parseFloat(t.style.marginLeft,10)||0)+(parseFloat(t.style.marginRight,10)||0)>e.addpos2&&(e.addpos2=t.offsetWidth)}}else if(e.dir1){var h=void 0,f=void 0;switch(e.dir1){case"down":case"up":f=["left","right"],h=e.context.scrollWidth/2-t.offsetWidth/2;break;case"left":case"right":f=["top","bottom"],h=n/2-t.offsetHeight/2}t.style[f[0]]=h+"px",t.style[f[1]]="auto",e.animation||t.style[f[0]]}if(e.dir1)switch("number"==typeof e.nextpos1&&(t.style[i]=e.nextpos1+"px",e.animation||t.style[i]),e.dir1){case"down":case"up":e.nextpos1+=t.offsetHeight+(void 0===e.spacing1?25:e.spacing1);break;case"left":case"right":e.nextpos1+=t.offsetWidth+(void 0===e.spacing1?25:e.spacing1)}else{var d=o/2-t.offsetWidth/2,m=n/2-t.offsetHeight/2;t.style.left=d+"px",t.style.top=m+"px",e.animation||t.style.left}return this}},queuePosition:function(e){return o&&clearTimeout(o),e||(e=10),o=setTimeout(function(){r.positionAll()},e),this},cancelRemove:function(){return this.cancelClose()},cancelClose:function(){var e=this.get(),t=e._timer,n=e._animTimer,r=e._state,o=e.animation;return t&&clearTimeout(t),n&&clearTimeout(n),"closing"===r&&this.set({_state:"open",_animating:!1,_animatingClass:"fade"===o?"ui-pnotify-in ui-pnotify-fade-in":"ui-pnotify-in"}),this},queueRemove:function(){return this.queueClose()},queueClose:function(){var e=this;return this.cancelClose(),this.set({_timer:setTimeout(function(){return e.close(!0)},isNaN(this.get().delay)?0:this.get().delay)}),this},addModuleClass:function(){for(var e=this.get()._moduleClasses,t=arguments.length,n=Array(t),r=0;r .ui-pnotify{position:fixed;z-index:100040}body > .ui-pnotify.ui-pnotify-modal{z-index:100042}.ui-pnotify{position:absolute;height:auto;z-index:1;display:none}.ui-pnotify.ui-pnotify-modal{z-index:3}.ui-pnotify.ui-pnotify-in{display:block}.ui-pnotify.ui-pnotify-initial-hidden{display:block;visibility:hidden}.ui-pnotify.ui-pnotify-move{transition:left .5s ease, top .5s ease, right .5s ease, bottom .5s ease}.ui-pnotify.ui-pnotify-fade-slow{transition:opacity .4s linear;opacity:0}.ui-pnotify.ui-pnotify-fade-slow.ui-pnotify.ui-pnotify-move{transition:opacity .4s linear, left .5s ease, top .5s ease, right .5s ease, bottom .5s ease}.ui-pnotify.ui-pnotify-fade-normal{transition:opacity .25s linear;opacity:0}.ui-pnotify.ui-pnotify-fade-normal.ui-pnotify.ui-pnotify-move{transition:opacity .25s linear, left .5s ease, top .5s ease, right .5s ease, bottom .5s ease}.ui-pnotify.ui-pnotify-fade-fast{transition:opacity .1s linear;opacity:0}.ui-pnotify.ui-pnotify-fade-fast.ui-pnotify.ui-pnotify-move{transition:opacity .1s linear, left .5s ease, top .5s ease, right .5s ease, bottom .5s ease}.ui-pnotify.ui-pnotify-fade-in{opacity:1}.ui-pnotify .ui-pnotify-shadow{-webkit-box-shadow:0px 6px 28px 0px rgba(0,0,0,0.1);-moz-box-shadow:0px 6px 28px 0px rgba(0,0,0,0.1);box-shadow:0px 6px 28px 0px rgba(0,0,0,0.1)}.ui-pnotify-container{background-position:0 0;padding:.8em;height:100%;margin:0}.ui-pnotify-container:after{content:" ";visibility:hidden;display:block;height:0;clear:both}.ui-pnotify-container.ui-pnotify-sharp{-webkit-border-radius:0;-moz-border-radius:0;border-radius:0}.ui-pnotify-title{display:block;white-space:pre-line;margin-bottom:.4em;margin-top:0}.ui-pnotify.ui-pnotify-with-icon .ui-pnotify-title,.ui-pnotify.ui-pnotify-with-icon .ui-pnotify-text{margin-left:24px}[dir=rtl] .ui-pnotify.ui-pnotify-with-icon .ui-pnotify-title,[dir=rtl] .ui-pnotify.ui-pnotify-with-icon .ui-pnotify-text{margin-right:24px;margin-left:0}.ui-pnotify-title-bs4{font-size:1.2rem}.ui-pnotify-text{display:block;white-space:pre-line}.ui-pnotify-icon,.ui-pnotify-icon span{display:block;float:left}[dir=rtl] .ui-pnotify-icon,[dir=rtl] .ui-pnotify-icon span{float:right}.ui-pnotify-icon-bs3 > span{position:relative;top:2px}.ui-pnotify-icon-bs4 > span{position:relative;top:4px}.ui-pnotify-modal-overlay{background-color:rgba(0, 0, 0, .4);top:0;left:0;position:absolute;height:100%;width:100%;z-index:2}body > .ui-pnotify-modal-overlay{position:fixed;z-index:100041}',z(document.head,e)}(),this._fragment=function(e,t){for(var n,r,o,i,h,f,m,v,g,V=[],k=y(),A=[],T=y(),E=t._modulesPrependContainer,D=function(e){return e.module.key},N=0;Ny[k]?(x[V]=!0,H(S)):(_[k]=!0,m--):(l(L,a),m--)}for(;m--;)z[(L=e[m]).key]||l(L,a);for(;v;)H(b[v-1]);return b}function H(e,t){e.d(1),t[e.key]=null}function S(e){e.parentNode.removeChild(e)}function L(e,t,n,r){e.removeEventListener(t,n,r)}function V(){return document.createComment("")}function k(e,t){e.data=""+t}function A(e,t){for(;e.nextSibling&&e.nextSibling!==t;)e.parentNode.removeChild(e.nextSibling)}function T(e,t){for(var n in t)e[n]=t[n];return e}function E(e){e._lock=!0,D(e._beforecreate),D(e._oncreate),D(e._aftercreate),e._lock=!1}function D(e){for(;e&&e.length;)e.shift()()}function N(){}return T(g.prototype,{destroy:function(e){this.destroy=N,this.fire("destroy"),this.set=N,this._fragment.d(!1!==e),this._fragment=null,this._state={}},get:function(){return this._state},fire:function(e,t){var n=e in this._handlers&&this._handlers[e].slice();if(n)for(var r=0;r [ui-pnotify].ui-pnotify.ui-pnotify-mobile-able{position:fixed}[ui-pnotify].ui-pnotify.ui-pnotify-mobile-able.ui-pnotify-mobile-top,[ui-pnotify].ui-pnotify.ui-pnotify-mobile-able.ui-pnotify-mobile-bottom{width:100% !important}[ui-pnotify].ui-pnotify.ui-pnotify-mobile-able.ui-pnotify-mobile-left,[ui-pnotify].ui-pnotify.ui-pnotify-mobile-able.ui-pnotify-mobile-right{height:100% !important}[ui-pnotify].ui-pnotify.ui-pnotify-mobile-able .ui-pnotify-shadow{-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none}[ui-pnotify].ui-pnotify.ui-pnotify-mobile-able.ui-pnotify-mobile-top .ui-pnotify-shadow{border-bottom-width:5px}[ui-pnotify].ui-pnotify.ui-pnotify-mobile-able.ui-pnotify-mobile-bottom .ui-pnotify-shadow{border-top-width:5px}[ui-pnotify].ui-pnotify.ui-pnotify-mobile-able.ui-pnotify-mobile-left .ui-pnotify-shadow{border-right-width:5px}[ui-pnotify].ui-pnotify.ui-pnotify-mobile-able.ui-pnotify-mobile-right .ui-pnotify-shadow{border-left-width:5px}[ui-pnotify].ui-pnotify.ui-pnotify-mobile-able .ui-pnotify-container{-webkit-border-radius:0;-moz-border-radius:0;border-radius:0}[ui-pnotify].ui-pnotify.ui-pnotify-mobile-able.ui-pnotify-mobile-top .ui-pnotify-container,[ui-pnotify].ui-pnotify.ui-pnotify-mobile-able.ui-pnotify-mobile-bottom .ui-pnotify-container{width:auto !important}[ui-pnotify].ui-pnotify.ui-pnotify-mobile-able.ui-pnotify-mobile-left .ui-pnotify-container,[ui-pnotify].ui-pnotify.ui-pnotify-mobile-able.ui-pnotify-mobile-right .ui-pnotify-container{height:100% !important}}",function(e,t){e.appendChild(t)}(document.head,e)}(),this._fragment=(this._state,{c:o,m:o,p:o,d:o}),this.root._oncreate.push(function(){(function(){this.set({_doMobileStylingBound:this.doMobileStyling.bind(this)})}).call(n),n.fire("update",{changed:function(e,t){for(var n in t)e[n]=1;return e}({},n._state),current:n._state})}),t.target&&(this._fragment.c(),this._mount(t.target,t.anchor),c(this))}function o(){}function i(e,t){for(var n in t)e[n]=t[n];return e}function c(e){e._lock=!0,s(e._beforecreate),s(e._oncreate),s(e._aftercreate),e._lock=!1}function a(){return Object.create(null)}function s(e){for(;e&&e.length;)e.shift()()}return i(r.prototype,{destroy:function(e){this.destroy=o,this.fire("destroy"),this.set=o,this._fragment.d(!1!==e),this._fragment=null,this._state={}},get:function(){return this._state},fire:function(e,t){var n=e in this._handlers&&this._handlers[e].slice();if(n)for(var r=0;rn){for(var i="top"===o.push,c=[],a=0,s=i?0:e.notices.length-1;i?s=e.length&&t(n)}}(i))})})}(e,Ut.nu)},Yt=function(e){return{is:function(t){return e===t},isValue:u,isError:l,getOr:r(e),getOrThunk:r(e),getOrDie:r(e),or:function(t){return Yt(e)},orThunk:function(t){return Yt(e)},fold:function(t,n){return n(e)},map:function(t){return Yt(t(e))},mapError:function(t){return Yt(e)},each:function(t){t(e)},bind:function(t){return t(e)},exists:function(t){return t(e)},forall:function(t){return t(e)},toOption:function(){return A.some(e)}}},Xt=function(e){return{is:l,isValue:l,isError:u,getOr:o,getOrThunk:function(e){return e()},getOrDie:function(){return(t=String(e),function(){throw new Error(t)})();var t},or:function(e){return e},orThunk:function(e){return e()},fold:function(t,n){return t(e)},map:function(t){return Xt(e)},mapError:function(t){return Xt(t(e))},each:t,bind:function(t){return Xt(e)},exists:l,forall:u,toOption:A.none}},Gt={value:Yt,error:Xt,fromOption:function(e,t){return e.fold(function(){return Xt(t)},Yt)}},Qt=window.Promise?window.Promise:(Pt=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)},Rt=Kt.immediateFn||"function"==typeof e.setImmediate&&e.setImmediate||function(t){e.setTimeout(t,1)},Kt.prototype.catch=function(e){return this.then(null,e)},Kt.prototype.then=function(e,t){var n=this;return new Kt(function(r,o){Jt.call(n,new rn(e,t,r,o))})},Kt.all=function(){var e=Array.prototype.slice.call(1===arguments.length&&Pt(arguments[0])?arguments[0]:arguments);return new Kt(function(t,n){if(0===e.length)return t([]);var r=e.length;function o(i,c){try{if(c&&("object"==typeof c||"function"==typeof c)){var a=c.then;if("function"==typeof a)return void a.call(c,function(e){o(i,e)},n)}e[i]=c,0==--r&&t(e)}catch(e){n(e)}}for(var i=0;i\"\u0060\u007E-\uD7FF\uE000-\uFFEF]|[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Xn=/[<>&\u007E-\uD7FF\uE000-\uFFEF]|[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Gn=/[<>&\"\']/g,Qn=/&#([a-z0-9]+);?|&([a-z0-9]+);/gi,Zn={128:"€",130:"‚",131:"ƒ",132:"„",133:"…",134:"†",135:"‡",136:"ˆ",137:"‰",138:"Š",139:"‹",140:"Œ",142:"Ž",145:"‘",146:"’",147:"“",148:"”",149:"•",150:"–",151:"—",152:"˜",153:"™",154:"š",155:"›",156:"œ",158:"ž",159:"Ÿ"};function Kn(e,t){var n,r,o,i={};if(e){for(e=e.split(","),t=t||10,n=0;n":">","&":"&","`":"`"},Dn={"<":"<",">":">","&":"&",""":'"',"'":"'"},Tn=Kn("50,nbsp,51,iexcl,52,cent,53,pound,54,curren,55,yen,56,brvbar,57,sect,58,uml,59,copy,5a,ordf,5b,laquo,5c,not,5d,shy,5e,reg,5f,macr,5g,deg,5h,plusmn,5i,sup2,5j,sup3,5k,acute,5l,micro,5m,para,5n,middot,5o,cedil,5p,sup1,5q,ordm,5r,raquo,5s,frac14,5t,frac12,5u,frac34,5v,iquest,60,Agrave,61,Aacute,62,Acirc,63,Atilde,64,Auml,65,Aring,66,AElig,67,Ccedil,68,Egrave,69,Eacute,6a,Ecirc,6b,Euml,6c,Igrave,6d,Iacute,6e,Icirc,6f,Iuml,6g,ETH,6h,Ntilde,6i,Ograve,6j,Oacute,6k,Ocirc,6l,Otilde,6m,Ouml,6n,times,6o,Oslash,6p,Ugrave,6q,Uacute,6r,Ucirc,6s,Uuml,6t,Yacute,6u,THORN,6v,szlig,70,agrave,71,aacute,72,acirc,73,atilde,74,auml,75,aring,76,aelig,77,ccedil,78,egrave,79,eacute,7a,ecirc,7b,euml,7c,igrave,7d,iacute,7e,icirc,7f,iuml,7g,eth,7h,ntilde,7i,ograve,7j,oacute,7k,ocirc,7l,otilde,7m,ouml,7n,divide,7o,oslash,7p,ugrave,7q,uacute,7r,ucirc,7s,uuml,7t,yacute,7u,thorn,7v,yuml,ci,fnof,sh,Alpha,si,Beta,sj,Gamma,sk,Delta,sl,Epsilon,sm,Zeta,sn,Eta,so,Theta,sp,Iota,sq,Kappa,sr,Lambda,ss,Mu,st,Nu,su,Xi,sv,Omicron,t0,Pi,t1,Rho,t3,Sigma,t4,Tau,t5,Upsilon,t6,Phi,t7,Chi,t8,Psi,t9,Omega,th,alpha,ti,beta,tj,gamma,tk,delta,tl,epsilon,tm,zeta,tn,eta,to,theta,tp,iota,tq,kappa,tr,lambda,ts,mu,tt,nu,tu,xi,tv,omicron,u0,pi,u1,rho,u2,sigmaf,u3,sigma,u4,tau,u5,upsilon,u6,phi,u7,chi,u8,psi,u9,omega,uh,thetasym,ui,upsih,um,piv,812,bull,816,hellip,81i,prime,81j,Prime,81u,oline,824,frasl,88o,weierp,88h,image,88s,real,892,trade,89l,alefsym,8cg,larr,8ch,uarr,8ci,rarr,8cj,darr,8ck,harr,8dl,crarr,8eg,lArr,8eh,uArr,8ei,rArr,8ej,dArr,8ek,hArr,8g0,forall,8g2,part,8g3,exist,8g5,empty,8g7,nabla,8g8,isin,8g9,notin,8gb,ni,8gf,prod,8gh,sum,8gi,minus,8gn,lowast,8gq,radic,8gt,prop,8gu,infin,8h0,ang,8h7,and,8h8,or,8h9,cap,8ha,cup,8hb,int,8hk,there4,8hs,sim,8i5,cong,8i8,asymp,8j0,ne,8j1,equiv,8j4,le,8j5,ge,8k2,sub,8k3,sup,8k4,nsub,8k6,sube,8k7,supe,8kl,oplus,8kn,otimes,8l5,perp,8m5,sdot,8o8,lceil,8o9,rceil,8oa,lfloor,8ob,rfloor,8p9,lang,8pa,rang,9ea,loz,9j0,spades,9j3,clubs,9j5,hearts,9j6,diams,ai,OElig,aj,oelig,b0,Scaron,b1,scaron,bo,Yuml,m6,circ,ms,tilde,802,ensp,803,emsp,809,thinsp,80c,zwnj,80d,zwj,80e,lrm,80f,rlm,80j,ndash,80k,mdash,80o,lsquo,80p,rsquo,80q,sbquo,80s,ldquo,80t,rdquo,80u,bdquo,810,dagger,811,Dagger,81g,permil,81p,lsaquo,81q,rsaquo,85c,euro",32);var nr={encodeRaw:Jn,encodeAllRaw:function(e){return(""+e).replace(Gn,function(e){return En[e]||e})},encodeNumeric:er,encodeNamed:tr,getEncodeFunc:function(e,t){var n=Kn(t)||Tn,r=Wn(e.replace(/\+/g,","));return r.named&&r.numeric?function(e,t){return e.replace(t?Yn:Xn,function(e){return void 0!==En[e]?En[e]:void 0!==n[e]?n[e]:1>10),56320+(1023&t))):Zn[t]||String.fromCharCode(t):Dn[e]||Tn[e]||function(e){var t;return(t=gt.fromTag("div").dom()).innerHTML=e,t.textContent||t.innerText||e}(e)})}},rr={},or={},ir=Sn.makeMap,cr=Sn.each,ar=Sn.extend,sr=Sn.explode,lr=Sn.inArray,ur=function(e,t){return(e=Sn.trim(e))?e.split(t||" "):[]},hr=function(e){function t(e,t,n){function o(e,t){var n,r,o={};for(n=0,r=e.length;n
').css(l).appendTo(t)[0];return c.set(A.some({caret:h,element:o,before:r})),c.get().each(function(e){r&&mi(e.caret).addClass("mce-visual-caret-before")}),s(),(u=o.ownerDocument.createRange()).setStart(i,0),u.setEnd(i,0),u},hide:a,getCss:function(){return".mce-visual-caret {position: absolute;background-color: black;background-color: currentcolor;}.mce-visual-caret-hidden {display: none;}*[data-mce-caret] {position: absolute;left: -1000px;right: auto;top: 0;margin: 0;padding: 0;}"},reposition:function(){c.get().each(function(e){var n=Ja(t,e.element,e.before);mi(e.caret).css(U({},n))})},destroy:function(){return dn.clearInterval(o)}}}function ts(){return Es.isIE()||Es.isEdge()||Es.isFirefox()}function ns(e){return Ds(e)||Xe.isTable(e)&&ts()}function rs(e){return 0=o.data.length-1)return 1===e&&(r=l(o))?js(r):n;if(oa(o)&&c<=1)return-1===e&&(r=s(o))?Fs(r):n;if(c===o.data.length)return(r=l(o))?js(r):n;if(0===c)return(r=s(o))?Fs(r):n}return n}function ds(e,t){return A.from(ls(e?0:-1,t)).filter(Ns)}function ms(e,t,n){var r=fs(e,t,n);return-1===e?Ta.fromRangeStart(r):Ta.fromRangeEnd(r)}function vs(e){return A.from(e.getNode()).map(gt.fromDom)}function ps(e,t){for(;t=e(t);)if(t.isVisible())return t;return t}function gs(e,t){var n=ss(e,t);return!(n||!Xe.isBr(e.getNode()))||n}(Wc=Ta=Ta||{}).fromRangeStart=function(e){return Wc(e.startContainer,e.startOffset)},Wc.fromRangeEnd=function(e){return Wc(e.endContainer,e.endOffset)},Wc.after=function(e){return Wc(e.parentNode,Sa(e)+1)},Wc.before=function(e){return Wc(e.parentNode,Sa(e))},Wc.isAbove=function(e,t){return Bc(L(t.getClientRects()),V(e.getClientRects()),Dc).getOr(!1)},Wc.isBelow=function(e,t){return Bc(V(t.getClientRects()),L(e.getClientRects()),Nc).getOr(!1)},Wc.isAtStart=function(e){return!!e&&e.isAtStart()},Wc.isAtEnd=function(e){return!!e&&e.isAtEnd()},Wc.isTextPosition=function(e){return!!e&&Xe.isText(e.container())},Wc.isElementPosition=function(e){return!1===Wc.isTextPosition(e)};var bs,zs,ys=Ta,Cs=Xe.isText,Ms=Xe.isBogus,ws=Ui.nodeIndex,_s=function(e){var t=e.parentNode;return Ms(t)?_s(t):t},xs=function(e){return e?_n.reduce(e.childNodes,function(e,t){return Ms(t)&&"BR"!==t.nodeName?e=e.concat(xs(t)):e.push(t),e},[]):[]},Hs=Xe.isContentEditableFalse,Ss={getBookmark:function(e,t,n){return 2===t?qa(ta,n,e):3===t?function(e){var t=e.getRng();return{start:Na(e.dom.getRoot(),ys.fromRangeStart(t)),end:Na(e.dom.getRoot(),ys.fromRangeEnd(t))}}(e):t?function(e){return{rng:e.getRng()}}(e):Wa(e,!1)},getUndoBookmark:i(qa,o,!0),getPersistentBookmark:Wa},Ls="_mce_caret",Vs=Xe.isElement,ks=Xe.isText,As=function(e){(Vs(e)&&_c(e)&&(xc(e)?e.removeAttribute("data-mce-caret"):Ga(e)),ks(e))&&Qa(e,ta(function(e){try{return e.nodeValue}catch(e){return""}}(e)))},Ts={removeAndReposition:function(e,t){return ys.isTextPosition(t)?function(e,t){return ks(e)&&t.container()===e?function(e,t){var n=Za(e.data.substr(0,t.offset())),r=Za(e.data.substr(t.offset())),o=n.text+r.text;return 0a.length-1)return!!Js(l,i,r)||Ks(i,r);i=a[s[o]]}3===i.nodeType&&(c=Math.min(s[0],i.nodeValue.length)),1===i.nodeType&&(c=Math.min(s[0],i.childNodes.length)),t?r.setStart(i,c):r.setEnd(i,c)}return!0}function tl(e){return Xe.isText(e)&&0=t.nodeValue.length&&e.splice(0,1),t=e[e.length-1],0===d&&0n.length-1?t=n.length-1:t<0&&(t=0),n[t]||e}(f,d)),u===f)return n(m([u]));for(r=e.findCommonAncestor(u,f),c=u;c;c=c.parentNode){if(c===f)return g(u,r,!0);if(c===r)break}for(c=f;c;c=c.parentNode){if(c===u)return g(f,r);if(c===r)break}o=p(u,r)||u,i=p(f,r)||f,g(u,o,!0),(s=v(o===u?o:o.nextSibling,"nextSibling",i===f?i.nextSibling:i)).length&&n(m(s)),g(f,i)}};function Il(e){return Fl.get(e)}function Pl(e,t,n,r){var o=t.uid,i=void 0===o?function(e){var t=(new Date).getTime();return"mce-annotation_"+Math.floor(1e9*Math.random())+ ++Zc+String(t)}():o,c=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o=e.startOffset&&" "===e.startContainer.nodeValue[e.startOffset]}(t));t.setStart(n.startContainer,n.startOffset),t.setEnd(n.endContainer,n.endOffset),e.selection.setRng(t)}(o,e),o.selection.getRng().collapsed){var t=Pl(o.getDoc(),a,i,c.decorate);Cc(t," "),o.selection.getRng().insertNode(t.dom()),o.selection.select(t.dom())}else{var n=Ss.getPersistentBookmark(o.selection,!1),r=o.selection.getRng();Rl(o,r,i,c.decorate,a),o.selection.moveToBookmark(n)}})})},annotationChanged:function(e,t){r.addListener(e,t)},remove:function(e){gc(t,A.some(e)).each(function(e){z(e.elements,Mi)})},getAll:function(e){return ae(function(e,t){var n=sc(gt.fromDom(e.getBody()),"["+Xc()+'="'+t+'"]'),r={};return z(n,function(e){var t=me(e,Gc()),n=r.hasOwnProperty(t)?r[t]:[];r[t]=n.concat([e])}),r}(t,e),function(e){return F(e,function(e){return e.dom()})})}}}function jl(e,t,n){var r=n?"lastChild":"firstChild",o=n?"prev":"next";if(e[r])return e[r];if(e!==t){var i=e[o];if(i)return i;for(var c=e.parent;c&&c!==t;c=c.parent)if(i=c[o])return i}}var Fl=function(e,t){var n=function(t){return e(t)?A.from(t.dom().nodeValue):A.none()};return{get:function(r){if(!e(r))throw new Error("Can only get "+t+" value of a "+t+" node");return n(r).getOr("")},getOption:n,set:function(n,r){if(!e(n))throw new Error("Can only set raw "+t+" value of a "+t+" node");n.dom().nodeValue=r}}}(Mt,"text"),$l=/^[ \t\r\n]*$/,ql={"#text":3,"#comment":8,"#cdata":4,"#pi":7,"#doctype":10,"#document-fragment":11},Ul=(Wl.create=function(e,t){var n=new Wl(e,ql[e]||1);if(t)for(var r in t)n.attr(r,t[r]);return n},Wl.prototype.replace=function(e){return e.parent&&e.remove(),this.insert(e,this),this.remove(),this},Wl.prototype.attr=function(e,t){var n;if("string"!=typeof e){for(var r in e)this.attr(r,e[r]);return this}if(n=this.attributes){if(void 0===t)return n.map[e];if(null===t){if(e in n.map){delete n.map[e];for(var o=n.length;o--;)if(n[o].name===e)return n.splice(o,1),this}return this}if(e in n.map){for(o=n.length;o--;)if(n[o].name===e){n[o].value=t;break}}else n.push({name:e,value:t});return n.map[e]=t,this}},Wl.prototype.clone=function(){var e,t=new Wl(this.name,this.type);if(e=this.attributes){var n=[];n.map={};for(var r=0,o=e.length;r]+(?:(?:"[^"]*")|(?:\'[^\']*\')|[^>]*))*|\/|\s+)>/g).lastIndex=r=n;o=i.exec(t);){if(r=i.lastIndex,"/"===o[1])a--;else if(!o[1]){if(o[2]in c)continue;a++}if(0===a)break}return r}function Xl(e,t){var n=e.exec(t);if(n){var r=n[1],o=n[2];return"string"==typeof r&&"data-mce-bogus"===r.toLowerCase()?o:null}return null}function Gl(e,t){function n(){}void 0===t&&(t=dr()),!1!==(e=e||{}).fix_self_closing&&(e.fix_self_closing=!0);var r=e.comment?e.comment:n,o=e.cdata?e.cdata:n,i=e.text?e.text:n,c=e.start?e.start:n,a=e.end?e.end:n,s=e.pi?e.pi:n,l=e.doctype?e.doctype:n;return{parse:function(n){function u(e){var t,n;for(t=F.length;t--&&F[t].name!==e;);if(0<=t){for(n=F.length-1;t<=n;n--)(e=F[n]).valid&&a(e.name);F.length=t}}function h(t,n,r,o,i){var c,a;if(r=(n=n.toLowerCase())in M?n:q(r||o||i||""),_&&!z&&!1===function(e){return 0===e.indexOf("data-")||0===e.indexOf("aria-")}(n)){if(!(c=V[n])&&k){for(a=k.length;a--&&!(c=k[a]).pattern.test(n););-1===a&&(c=null)}if(!c)return;if(c.validValues&&!(r in c.validValues))return}if(U[n]&&!e.allow_script_urls){var s=r.replace(/[\s\u0000-\u001F]+/g,"");try{s=decodeURIComponent(s)}catch(e){s=unescape(s)}if(W.test(s))return;if(function(e,t){return!e.allow_html_data_urls&&(/^data:image\//i.test(t)?!1===e.allow_svg_data_urls&&/^data:image\/svg\+xml/i.test(t):/^data:/i.test(t))}(e,s))return}z&&(n in U||0===n.indexOf("on"))||(v.map[n]=r,v.push({name:n,value:r}))}var f,d,m,v,p,g,b,z,y,C,M,w,_,x,H,S,L,V,k,A,T,E,D,N,O,I,P,R,B,j=0,F=[],$=0,q=nr.decode,U=Sn.makeMap("src,href,data,background,formaction,poster,xlink:href"),W=/((java|vb)script|mhtml):/i;for(O=new RegExp("<(?:(?:!--([\\w\\W]*?)--!?>)|(?:!\\[CDATA\\[([\\w\\W]*?)\\]\\]>)|(?:!DOCTYPE([\\w\\W]*?)>)|(?:\\?([^\\s\\/<>]+) ?([\\w\\W]*?)[?/]>)|(?:\\/([A-Za-z][A-Za-z0-9\\-_\\:\\.]*)>)|(?:([A-Za-z][A-Za-z0-9\\-_\\:\\.]*)((?:\\s+[^\"'>]+(?:(?:\"[^\"]*\")|(?:'[^']*')|[^>]*))*|\\/|\\s+)>))","g"),I=/([\w:\-]+)(?:\s*=\s*(?:(?:\"((?:[^\"])*)\")|(?:\'((?:[^\'])*)\')|([^>\s]+)))?/g,C=t.getShortEndedElements(),N=e.self_closing_elements||t.getSelfClosingElements(),M=t.getBoolAttrs(),_=e.validate,y=e.remove_internals,B=e.fix_self_closing,P=t.getSpecialElements(),D=n+">";f=O.exec(D);){if(jn.length){i(q(n.substr(f.index))),j=f.index+f[0].length;continue}":"===(d=d.toLowerCase()).charAt(0)&&(d=d.substr(1)),w=d in C,B&&N[d]&&0"===d.charAt(0)&&(d=" "+d),e.allow_conditional_comments||"[if"!==d.substr(0,3).toLowerCase()||(d=" "+d),r(d)):(d=f[2])?o(d.replace(//g,"")):(d=f[3])?l(d):(d=f[4])&&s(d,f[5]);j=f.index+f[0].length}for(j]*data-mce-bogus="all"[^>]*>/g,l=e.schema;for(a=function(e,t){var n=new RegExp(["\\s?("+e.join("|")+')="[^"]+"'].join("|"),"gi");return t.replace(n,"")}(e.getTempAttrs(),a),c=l.getShortEndedElements();i=s.exec(a);)r=s.lastIndex,o=i[0].length,n=c[i[1]]?r:Lu.findEndTag(l,a,r),a=a.substring(0,r-o)+a.substring(n),s.lastIndex=r-o;return ta(a)}function Zl(e,t,n){var r=e.getParam(t,n);if(-1===r.indexOf("="))return r;var o=e.getParam(t,"","hash");return o.hasOwnProperty(e.id)?o[e.id]:n}function Kl(e){var t,n,r,o,i,c=[];return t=(e=e||{}).indent,n=ch(e.indent_before||""),r=ch(e.indent_after||""),o=nr.getEncodeFunc(e.entity_encoding||"raw",e.entities),i="html"===e.element_format,{start:function(e,a,s){var l,u,h,f;if(t&&n[e]&&0":" />",s&&t&&r[e]&&0"),t&&r[e]&&0")},comment:function(e){c.push("\x3c!--",e,"--\x3e")},pi:function(e,n){n?c.push(""):c.push(""),t&&c.push("\n")},doctype:function(e){c.push("",t?"\n":"")},reset:function(){c.length=0},getContent:function(){return c.join("").replace(/\n$/,"")}}}function Jl(e,t){void 0===t&&(t=dr());var n=Kl(e);return(e=e||{}).validate=!("validate"in e)||e.validate,{serialize:function(r){var o,i;i=e.validate,o={3:function(e){n.text(e.value,e.raw)},8:function(e){n.comment(e.value)},7:function(e){n.pi(e.name,e.value)},10:function(e){n.doctype(e.value)},4:function(e){n.cdata(e.value)},11:function(e){if(e=e.firstChild)for(;c(e),e=e.next;);}},n.reset();var c=function(e){var r,a,s,l,u,h,f,d,m,v=o[e.type];if(v)v(e);else{if(r=e.name,a=e.shortEnded,s=e.attributes,i&&s&&1',"TABLE"===t.nodeName?n=""+i+"":/^(UL|OL)$/.test(t.nodeName)&&(n="
  • "+i+"
  • "),n=(o=Iu(e))&&e.schema.isValidChild(t.nodeName.toLowerCase(),o.toLowerCase())?(n=i,e.dom.createHTML(o,e.settings.forced_root_block_attrs,n)):n||'
    ',gu(e,n),e.fire("SetContent",r)):("raw"!==r.format&&(n=Jl({validate:e.validate},e.schema).serialize(e.parser.parse(n,{isRootContent:!0,insert:!0}))),r.content=$n(gt.fromDom(t))?n:Sn.trim(n),gu(e,r.content),r.no_events||e.fire("SetContent",r)),r.content}(e,r,t,n)})}function zu(e){return A.from(e).each(function(e){return e.destroy()})}function yu(e){return function(){for(var t=new Array(arguments.length),n=0;n")},Tu=function(e){return e.getParam("document_base_url","")},Eu=function(e){return Zl(e,"body_id","tinymce")},Du=function(e){return Zl(e,"body_class","")},Nu=function(e){return e.getParam("content_security_policy","")},Ou=function(e){return e.getParam("br_in_pre",!0)},Iu=function(e){if(e.getParam("force_p_newlines",!1))return"p";var t=e.getParam("forced_root_block","p");return!1===t?"":!0===t?"p":t},Pu=function(e){return e.getParam("forced_root_block_attrs",{})},Ru=function(e){return e.getParam("keep_styles",!0)},Bu=function(e){return e.getParam("end_container_on_empty_block",!1)},ju=function(e){return Sn.explode(e.getParam("font_size_style_values","xx-small,x-small,small,medium,large,x-large,xx-large"))},Fu=function(e){return Sn.explode(e.getParam("font_size_classes",""))},$u=function(e){return e.getParam("icons","","string")},qu=function(e){return e.getParam("icons_url","","string")},Uu=function(e){return e.getParam("images_dataimg_filter",r(!0),"function")},Wu=function(e){return e.getParam("automatic_uploads",!0,"boolean")},Yu=function(e){return e.getParam("images_reuse_filename",!1,"boolean")},Xu=function(e){return e.getParam("images_replace_blob_uris",!0,"boolean")},Gu=function(e){return e.getParam("images_upload_url","","string")},Qu=function(e){return e.getParam("images_upload_base_path","","string")},Zu=function(e){return e.getParam("images_upload_credentials",!1,"boolean")},Ku=function(e){return e.getParam("images_upload_handler",null,"function")},Ju=function(e){return e.getParam("content_css_cors",!1,"boolean")},eh=function(e){return e.getParam("referrer_policy","","string")},th=function(e){return e.getParam("language","en","string")},nh=function(e){return e.getParam("language_url","","string")},rh=function(e){return e.getParam("indent_use_margin",!1)},oh=function(e){return e.getParam("indentation","40px","string")},ih=function(e){var t=e.settings.content_css;return T(t)?F(t.split(","),ee):D(t)?t:!1===t||e.inline?[]:["default"]},ch=Sn.makeMap,ah=function(e,t){t(e),e.firstChild&&ah(e.firstChild,t),e.next&&ah(e.next,t)},sh=function(t){if(!D(t))throw new Error("cases must be an array");if(0===t.length)throw new Error("there must be at least one case");var n=[],r={};return z(t,function(o,i){var c=wt(o);if(1!==c.length)throw new Error("one and only one name per case");var a=c[0],s=o[a];if(void 0!==r[a])throw new Error("duplicate key detected:"+a);if("cata"===a)throw new Error("cannot have a case named cata (sorry)");if(!D(s))throw new Error("case arguments must be an array");n.push(a),r[a]=function(){var r=arguments.length;if(r!==s.length)throw new Error("Wrong number of arguments to case "+a+". Expected "+s.length+" ("+s+"), got "+r);for(var o=new Array(r),c=0;ce}(e,t)}}function Zf(e){return function(t){return function(e,t){return t.line===e}(e,t)}}function Kf(e,t){return Math.abs(e.left-t)}function Jf(e,t){return Math.abs(e.right-t)}function ed(e,t){return e>=t.left&&e<=t.right}function td(e,t){return _n.reduce(e,function(e,n){var r,o;return r=Math.min(Kf(e,t),Jf(e,t)),o=Math.min(Kf(n,t),Jf(n,t)),ed(t,n)?n:ed(t,e)?e:o===r&&Gd(n.node)?n:o=e.top&&n<=e.bottom}),t))&&td(function(e,t){function n(e,n){var o;return o=y(Of([n]),function(n){return!e(n,t)}),r=r.concat(o),0===o.length}var r=[];return r.push(t),nd(If.Up,e,i(n,Dc),t.node),nd(If.Down,e,i(n,Nc),t.node),r}(e,r),t))&&ns(r.node)?function(e,t){return{node:e.node,before:Kf(e,t)o&&(c=t.pageX+n-o),t.pageY+r>i&&(a=t.pageY+r-i),e.style.width=n-c+"px",e.style.height=r-a+"px"}(e.ghost,i,e.width,e.height,e.maxX,e.maxY),n(r.clientX,r.clientY)}}}(s,t),i=function(e,t){return function(n){if(e.dragging&&function(e,t,n){return t!==n&&!e.dom.isChildOf(t,n)&&!Jd(t)}(t,function(e){var n=t.selection.getSel().getRangeAt(0).startContainer;return 3===n.nodeType?n.parentNode:n}(),e.element)){var r=function(t){var n=e.element.cloneNode(!0);return n.removeAttribute("data-mce-selected"),n}(),o=t.fire("drop",{targetClone:r,clientX:n.clientX,clientY:n.clientY});o.isDefaultPrevented()||(r=o.targetClone,t.undoManager.transact(function(){id(e.element),t.insertContent(t.dom.getOuterHTML(r)),t._selectionOverrides.hideFakeCaret()}))}tm(e)}}(s,t),c=function(e,t){return function(){e.dragging&&t.fire("dragend"),tm(e)}}(s,t),t.on("mousedown",r),t.on("mousemove",o),t.on("mouseup",i),n.bind(a,"mousemove",o),n.bind(a,"mouseup",c),t.on("remove",function(){n.unbind(a,"mousemove",o),n.unbind(a,"mouseup",c)})}function ad(e,t,n,r,o){return t._selectionOverrides.showCaret(e,n,r,o)}function sd(e,t){return e.fire("BeforeObjectSelected",{target:t}).isDefaultPrevented()?null:function(e){var t=e.ownerDocument.createRange();return t.selectNode(e),t}(t)}function ld(e,t,n){var r=fs(1,e.getBody(),t),o=ys.fromRangeStart(r),i=o.getNode();if(om(i))return ad(1,e,i,!o.isAtEnd(),!1);var c=o.getNode(!0);if(om(c))return ad(1,e,c,!1,!1);var a=e.dom.getParent(o.getNode(),function(e){return om(e)||rm(e)});return om(a)?ad(1,e,a,!1,n):null}function ud(e,t,n){return t&&t.collapsed&&ld(e,t,n)||t}function hd(e,t){for(var n=e.getBody();t&&t!==n;){if(cm(t)||am(t))return t;t=t.parentNode}return null}function fd(e){function t(t){t&&e.selection.setRng(t)}function n(){return e.selection.getRng()}function r(t,n,r,o){return void 0===o&&(o=!0),e.fire("ShowCaret",{target:n,direction:t,before:r}).isDefaultPrevented()?null:(o&&e.selection.scrollIntoView(n,-1===t),a.show(r,n))}function o(e){return _c(e)||oa(e)||ia(e)}var i,c=e.getBody(),a=es(e.getBody(),function(t){return e.dom.isBlock(t)},function(){return Mh(e)}),s="sel-"+e.dom.uniqueId(),l=function(e){return o(e.startContainer)||o(e.endContainer)},u=function(t,n){var o,a,u,h,d,m,v,p,g,b,y=e.$,C=e.dom;if(!t)return null;if(t.collapsed){if(!l(t))if(!1===n){if(ns((p=ms(-1,c,t)).getNode(!0)))return r(-1,p.getNode(!0),!1,!1);if(ns(p.getNode()))return r(-1,p.getNode(),!p.isAtEnd(),!1)}else{if(ns((p=ms(1,c,t)).getNode()))return r(1,p.getNode(),!p.isAtEnd(),!1);if(ns(p.getNode(!0)))return r(1,p.getNode(!0),!1,!1)}return null}if(h=t.startContainer,d=t.startOffset,m=t.endOffset,3===h.nodeType&&0===d&&am(h.parentNode)&&(h=h.parentNode,d=C.nodeIndex(h),h=h.parentNode),1!==h.nodeType)return null;if(m===d+1&&h===t.endContainer&&(o=h.childNodes[d]),!am(o))return null;if(g=b=o.cloneNode(!0),(v=e.fire("ObjectSelected",{target:o,targetClone:g})).isDefaultPrevented())return null;a=vc(gt.fromDom(e.getBody()),"#"+s).fold(function(){return y([])},function(e){return y([e.dom()])}),g=v.targetClone,0===a.length&&(a=y('
    ').attr("id",s)).appendTo(e.getBody()),t=e.dom.createRng(),g===b&&Mn.ie?(a.empty().append('

     

    ').append(g),t.setStartAfter(a[0].firstChild.firstChild),t.setEndAfter(g)):(a.empty().append(" ").append(g).append(" "),t.setStart(a[0].firstChild,1),t.setEnd(a[0].lastChild,0)),a.css({top:C.getPos(o,e.getBody()).y}),a[0].focus(),(u=e.selection.getSel()).removeAllRanges(),u.addRange(t);var M=gt.fromDom(o);return z(sc(gt.fromDom(e.getBody()),"*[data-mce-selected]"),function(e){Ce(M,e)||ve(e,"data-mce-selected")}),e.dom.getAttrib(o,"data-mce-selected")||o.setAttribute("data-mce-selected","1"),i=o,f(),t},h=function(){i&&(i.removeAttribute("data-mce-selected"),vc(gt.fromDom(e.getBody()),"#"+s).each(ki),i=null),vc(gt.fromDom(e.getBody()),"#"+s).each(ki),i=null},f=function(){a.hide()};return Mn.ceFalse&&function(){var o,d;e.on("mouseup",function(r){var o=n();o.collapsed&&Uh(e,r.clientX,r.clientY)&&t(ld(e,o,!1))}),e.on("click",function(t){var n;(n=hd(e,t.target))&&(am(n)&&(t.preventDefault(),e.focus()),cm(n)&&e.dom.isChildOf(n,e.selection.getNode())&&h())}),e.on("blur NewBlock",function(){h()}),e.on("ResizeWindow FullscreenStateChanged",function(){return a.reposition()}),d=!1,(o=e).on("touchstart",function(){d=!1}),o.on("touchmove",function(){d=!0}),o.on("touchend",function(e){if(!d){var t=hd(o,e.target);am(t)&&(e.preventDefault(),u(sd(o,t)))}},!0),e.on("mousedown",function(n){var o,i=n.target;if((i===c||"HTML"===i.nodeName||e.dom.isChildOf(i,c))&&!1!==Uh(e,n.clientX,n.clientY))if(o=hd(e,i))am(o)?(n.preventDefault(),u(sd(e,o))):(h(),cm(o)&&n.shiftKey||Zd(n.clientX,n.clientY,e.selection.getRng())||(f(),e.selection.placeCaretAt(n.clientX,n.clientY)));else if(!1===ns(i)){h(),f();var a=rd(c,n.clientX,n.clientY);if(a&&!function(t,n){var r=e.dom.getParent(t,e.dom.isBlock),o=e.dom.getParent(n,e.dom.isBlock);return!(!r||!e.dom.isChildOf(r,o)||!1!==am(hd(e,r)))||r&&!function(t,n){return e.dom.getParent(t,e.dom.isBlock)===e.dom.getParent(n,e.dom.isBlock)}(r,o)&&function(e){var t=Us(e);if(!e.firstChild)return!1;var n=ys.before(e.firstChild),r=t.next(n);return r&&!Yf(r)&&!Xf(r)}(r)}(n.target,a.node)){n.preventDefault();var s=r(1,a.node,a.before,!1);e.getBody().focus(),t(s)}}}),e.on("keypress",function(t){Rf.modifierPressed(t)||(t.keyCode,am(e.selection.getNode())&&t.preventDefault())}),e.on("GetSelectionRange",function(e){var t=e.range;if(i){if(!i.parentNode)return void(i=null);(t=t.cloneRange()).selectNode(i),e.range=t}}),e.on("SetSelectionRange",function(t){t.range=function(t){var n=e.schema.getShortEndedElements(),r=e.dom.createRng(),o=t.startContainer,i=t.startOffset,c=t.endContainer,a=t.endOffset;return Ht(n,o.nodeName.toLowerCase())?0===i?r.setStartBefore(o):r.setStartAfter(o):r.setStart(o,i),Ht(n,c.nodeName.toLowerCase())?0===a?r.setEndBefore(c):r.setEndAfter(c):r.setEnd(c,a),r}(t.range);var n=u(t.range,t.forward);n&&(t.range=n)}),e.on("AfterSetSelectionRange",function(t){var n=t.range;l(n)||"mcepastebin"===n.startContainer.parentNode.id||f(),function(t){return e.dom.hasClass(t,"mce-offscreen-selection")}(n.startContainer.parentNode)||h()}),e.on("copy",function(t){var n=t.clipboardData;if(!t.isDefaultPrevented()&&t.clipboardData&&!Mn.ie){var r=function(){var t=e.dom.get(s);return t?t.getElementsByTagName("*")[0]:t}();r&&(t.preventDefault(),n.clearData(),n.setData("text/html",r.outerHTML),n.setData("text/plain",r.outerText))}}),nm(e),im(e)}(),{showCaret:r,showBlockCaretContainer:function(r){r.hasAttribute("data-mce-caret")&&(Lc(r),t(n()),e.selection.scrollIntoView(r[0]))},hideFakeCaret:f,destroy:function(){a.destroy(),i=null}}}function dd(e){return Xe.isElement(e)?e.outerHTML:Xe.isText(e)?nr.encodeRaw(e.data,!1):Xe.isComment(e)?"\x3c!--"+e.data+"--\x3e":""}function md(e){return"fragmented"===e.type?e.fragments.join(""):e.content}function vd(t){var n=gt.fromTag("body",lm.get().getOrThunk(function(){var t=e.document.implementation.createHTMLDocument("undo");return lm.set(A.some(t)),t}));return Cc(n,md(t)),z(sc(n,"*[data-mce-bogus]"),Mi),n.dom().innerHTML}function pd(e){return 0===e.get()}function gd(e,t,n){pd(n)&&(e.typing=t)}function bd(e,t){e.typing&&(gd(e,!1,t),e.add())}function zd(e){var t,n=Ge(A.none()),r=Ge(0),o=Ge(0),i={data:[],typing:!1,beforeChange:function(){!function(e,t,n){pd(r)&&n.set(A.some(Ss.getUndoBookmark(e.selection)))}(e,0,n)},add:function(t,c){return function(e,t,n,r,o,i,c){var a=e.settings,s=um(e);if(i=i||{},i=Sn.extend(i,s),!1===pd(r)||e.removed)return null;var l=t.data[n.get()];if(e.fire("BeforeAddUndo",{level:i,lastLevel:l,originalEvent:c}).isDefaultPrevented())return null;if(l&&fm(l,i))return null;if(t.data[n.get()]&&o.get().each(function(e){t.data[n.get()].beforeBookmark=e}),a.custom_undo_redo_levels&&t.data.length>a.custom_undo_redo_levels){for(var u=0;u=e.data.length,i=0===t;e.replaceData(t,n,function(e,t,n){return M(e,function(r,o){return-1!==" \f\n\r\t\v".indexOf(o)||" "===o?r.previousCharIsSpace||""===r.str&&t||r.str.length===e.length-1&&n?{previousCharIsSpace:!1,str:r.str+" "}:{previousCharIsSpace:!0,str:r.str+" "}:{previousCharIsSpace:!1,str:r.str+o}},{previousCharIsSpace:!1,str:""}).str}(r,i,o))}}function Sd(e,t){var n=e.data.slice(t);return Hd(e,t,n.length-n.replace(/^\s+/g,"").length)}function Ld(e,t){return Vc(t)&&!1===function(e,t){return Xe.isText(t)&&/^[ \t\r\n]*$/.test(t.data)&&!1===function(e,t){var n=gt.fromDom(e);return function(e,t,n){return mc(e,"pre,code",n).isSome()}(gt.fromDom(t),0,i(Ce,n))}(e,t)}(e,t)||function(e){return Xe.isElement(e)&&"A"===e.nodeName&&e.hasAttribute("name")}(t)||zm(t)}function Vd(e,t){return function(e,t){var n=e.container(),r=e.offset();return!1===ys.isTextPosition(e)&&n===t.parentNode&&r>ys.before(t).offset()}(t,e)?ys(t.container(),t.offset()-1):t}function kd(e){return Vc(e.previousSibling)?A.some(function(e){return Xe.isText(e)?ys(e,e.data.length):ys.after(e)}(e.previousSibling)):e.previousSibling?_l.lastPositionIn(e.previousSibling):A.none()}function Ad(e){return Vc(e.nextSibling)?A.some(function(e){return Xe.isText(e)?ys(e,0):ys.before(e)}(e.nextSibling)):e.nextSibling?_l.firstPositionIn(e.nextSibling):A.none()}function Td(e,t,n){return function(e,t,n){return e?function(e,t){return Ad(t).orThunk(function(){return kd(t)}).orThunk(function(){return function(e,t){return _l.nextPosition(e,ys.after(t)).fold(function(){return _l.prevPosition(e,ys.before(t))},A.some)}(e,t)})}(t,n):function(e,t){return kd(t).orThunk(function(){return Ad(t)}).orThunk(function(){return function(e,t){var n=ys.before(t.previousSibling?t.previousSibling:t.parentNode);return _l.prevPosition(e,n).fold(function(){return _l.nextPosition(e,ys.after(t))},A.some)}(e,t)})}(t,n)}(e,t,n).map(i(Vd,n))}function Ed(e,t,n){n.fold(function(){e.focus()},function(n){e.selection.setRng(n.toRange(),t)})}function Dd(e,t){return t&&e.schema.getBlockElements().hasOwnProperty(oe(t))}function Nd(e){if(Mm(e)){var t=gt.fromHtml('
    ');return Ci(e),Vi(e,t),A.some(ys.before(t.dom()))}return A.none()}function Od(e,t,n){var r=xe(e).filter(Mt),o=He(e).filter(Mt);return ki(e),function(e,t,r,o){return e.isSome()&&t.isSome()&&r.isSome()?A.some(function(e,t,r){var o=e.dom(),i=t.dom(),c=o.data.length;return function(e,t,n){var r=te(e.data).length;e.appendData(t.data),ki(gt.fromDom(t)),n&&Sd(e,r)}(o,i,n),r.container()===i?ys(o,c):r}(e.getOrDie(),t.getOrDie(),r.getOrDie())):A.none()}(r,o,t).orThunk(function(){return n&&(r.each(function(e){return function(e,t){var n=e.data.slice(0,t),r=n.length-te(n).length;return Hd(e,t-r,r)}(e.dom(),e.dom().length)}),o.each(function(e){return Sd(e.dom(),0)})),t})}function Id(e){return 0")}(t=(n=x(function(e){return y(F(q(e.childNodes),dd),function(e){return 0'))},vm=function(e){Te(e).each(function(t){xe(t).each(function(n){On(e)&&kn(t)&&On(n)&&ki(t)})})},pm=Vl.isEq,gm=function(e,t,n,r,o){var i,c,a,s,l=e.formatter.get(n),u=e.dom;if(l&&t)for(c=0;c=r.nodeValue.length&&(r=new vi(r,e.getBody()).next()||r),Xe.isText(r)&&!n&&0===o&&(r=new vi(r,e.getBody()).prev()||r),r}function Tm(e,t,n,r){var o=e.create(n,r);return t.parentNode.insertBefore(o,t),o.appendChild(t),o}function Em(e,t,n,r,o){var i=gt.fromDom(t),c=gt.fromDom(e.create(r,o));return yi(c,n?Le(i):Se(i)),n?(gi(i,c),zi(c,i)):(bi(i,c),Vi(c,i)),c.dom()}function Dm(e,t,n,r){return!(t=Vl.getNonWhiteSpaceSibling(t,n,r))||"BR"===t.nodeName||e.isBlock(t)}function Nm(e,t,n,r,o){var i,c,a,s=e.dom;if(!function(e,t,n){return!!Wm(t,n.inline)||!!Wm(t,n.block)||(n.selector?Xe.isElement(t)&&e.is(t,n.selector):void 0)}(s,r,t)&&!function(e,n){return t.links&&"A"===e.tagName}(r))return!1;if("all"!==t.remove)for(Um(t.styles,function(e,i){e=Vl.normalizeStyleValue(s,Vl.replaceVars(e,n),i),"number"==typeof i&&(i=e,o=0),!t.remove_similar&&o&&!Wm(Vl.getStyle(s,o,i),e)||s.setStyle(r,i,""),a=1}),a&&""===s.getAttrib(r,"style")&&(r.removeAttribute("style"),r.removeAttribute("data-mce-style")),Um(t.attributes,function(e,i){var c;if(e=Vl.replaceVars(e,n),"number"==typeof i&&(i=e,o=0),t.remove_similar||!o||Wm(s.getAttrib(o,i),e)){if("class"===i&&(e=s.getAttrib(r,i))&&(c="",Um(e.split(/\s+/),function(e){/mce\-\w+/.test(e)&&(c+=(c?" ":"")+e)}),c))return void s.setAttrib(r,i,c);"class"===i&&r.removeAttribute("className"),qm.test(i)&&r.removeAttribute("data-mce-"+i),r.removeAttribute(i)}}),Um(t.classes,function(e){e=Vl.replaceVars(e,n),o&&!s.hasClass(o,e)||s.removeClass(r,e)}),c=s.getAttribs(r),i=0;i
    ").append(t.childNodes)}(e.previousSibling,e)}))},Hm["pre"]||(Hm.pre=[]),Hm.pre.push(Wd);var $m=Sn.each,qm=/^(src|href|style)$/,Um=Sn.each,Wm=Vl.isEq,Ym=Nm,Xm=function(e,t,n,r,o){function i(r){var i=function(e,t,n,r,o){var i;return Um(Vl.getParents(e.dom,t.parentNode).reverse(),function(t){var c;i||"_start"===t.id||"_end"===t.id||(c=bm.matchNode(e,t,n,r,o))&&!1!==c.split&&(i=t)}),i}(e,r,t,n,o);return function(e,t,n,r,o,i,c,a){var s,l,u,h,f,d,m=e.dom;if(n){for(d=n.parentNode,s=r.parentNode;s&&s!==d;s=s.parentNode){for(l=m.clone(s,!1),f=0;f)\s*/g,"$1"),Sn.map(e.split(/(?:>|\s+(?![^\[\]]+\]))/),function(e){var t=Sn.map(e.split(/(?:~\+|~|\+)/),hv),n=t.pop();return t.length&&(n.siblings=t),n}).reverse()):[]}(t.selector)).length?(i[0].name||(i[0].name=n),n=t.selector,uv(i,e)):uv([n],e),o=Cv.select(n,r)[0]||r.firstChild,yv(t.styles,function(e,t){(e=l(e))&&Cv.setStyle(o,t,e)}),yv(t.attributes,function(e,t){(e=l(e))&&Cv.setAttrib(o,t,e)}),yv(t.classes,function(e){e=l(e),Cv.hasClass(o,e)||Cv.addClass(o,e)}),e.fire("PreviewFormats"),Cv.setStyles(r,{position:"absolute",left:-65535}),e.getBody().appendChild(r),c=Cv.getStyle(e.getBody(),"fontSize",!0),c=/px$/.test(c)?parseInt(c,10):0,yv(a.split(" "),function(t){var n=Cv.getStyle(o,t,!0);if(!("background-color"===t&&/transparent|rgba\s*\([^)]+,\s*0\)/.test(n)&&(n=Cv.getStyle(e.getBody(),t,!0),"#ffffff"===Cv.toHex(n).toLowerCase())||"color"===t&&"#000000"===Cv.toHex(n).toLowerCase())){if("font-size"===t&&/em|%$/.test(n)){if(0===c)return;n=parseFloat(n)/(/%$/.test(n)?100:1)*c+"px"}"border"===t&&n&&(s+="padding:0 2px;"),s+=t+":"+n+";"}}),e.fire("AfterPreviewFormats"),Cv.remove(r),s)},wv=function(e,t,n,r,o){var i=t.get(n);!bm.match(e,n,r,o)||"toggle"in i[0]&&!i[0].toggle?cv.applyFormat(e,n,r,o):Xm(e,n,r,o)},_v=function(e){e.addShortcut("meta+b","","Bold"),e.addShortcut("meta+i","","Italic"),e.addShortcut("meta+u","","Underline");for(var t=1;t<=6;t++)e.addShortcut("access+"+t,"",["FormatBlock",!1,"h"+t]);e.addShortcut("access+7","",["FormatBlock",!1,"p"]),e.addShortcut("access+8","",["FormatBlock",!1,"div"]),e.addShortcut("access+9","",["FormatBlock",!1,"address"])},xv=function(e,t,n){e.addAttributeFilter("data-mce-tabindex",function(e,t){for(var n,r=e.length;r--;)(n=e[r]).attr("tabindex",n.attr("data-mce-tabindex")),n.attr(t,null)}),e.addAttributeFilter("src,href,style",function(e,r){for(var o,i,c=e.length,a="data-mce-"+r,s=t.url_converter,l=t.url_converter_scope;c--;)void 0!==(i=(o=e[c]).attr(a))?(o.attr(r,0)/g,"\n").replace(/^[\r\n]*|[\r\n]*$/g,"").replace(/^\s*(()?|\s*\/\/\s*\]\]>(-->)?|\/\/\s*(-->)?|\]\]>|\/\*\s*-->\s*\*\/|\s*-->\s*)\s*$/g,"")};c--;)o=(r=e[c]).firstChild?r.firstChild.value:"","script"===n?((i=r.attr("type"))&&r.attr("type","mce-no/type"===i?null:i.replace(/^mce\-/,"")),"xhtml"===t.element_format&&0")):"xhtml"===t.element_format&&0_(c)?(g=x(p*m),p=x(g/m)):(p=x(g/m),g=x(p*m))),y.setStyles(V(o),{width:p,height:g}),C=0<(C=a.startPos.x+t)?C:0,M=0<(M=a.startPos.y+c)?M:0,y.setStyles(i,{left:C,top:M,display:"block"}),i.innerHTML=p+" × "+g,a[2]<0&&o.clientWidth<=p&&y.setStyle(o,"left",u+(f-p)),a[3]<0&&o.clientHeight<=g&&y.setStyle(o,"top",h+(d-g)),(t=H.scrollWidth-b)+(c=H.scrollHeight-z)!=0&&y.setStyles(i,{left:C-t,top:M-c}),v||(Lh(n,r,f,d),v=!0)}function T(e){function r(e,t){if(e)do{if(e===t)return!0}while(e=e.parentNode)}var o;v||n.removed||(C(y.select("img[data-mce-selected],hr[data-mce-selected]"),function(e){e.removeAttribute("data-mce-selected")}),o="mousedown"===e.type?e.target:t.getNode(),r(o=y.$(o).closest("table,img,figure.image,hr")[0],H)&&(P(),r(t.getStart(!0),o)&&r(t.getEnd(!0),o))?N(o):O())}function E(e){return Iv(function(e,t){for(;t&&t!==e;){if(Pv(t)||Iv(t))return t;t=t.parentNode}return null}(n.getBody(),e))}c={nw:[0,0,-1,-1],ne:[1,0,1,-1],se:[1,1,1,1],sw:[0,1,-1,1]};var D=function(){function e(e,t){t&&(r.style[e]||!n.schema.isValid(r.nodeName.toLowerCase(),e)?y.setStyle(V(r),e,t):y.setAttrib(V(r),e,t))}v=!1,e("width",p),e("height",g),y.unbind(M,"mousemove",A),y.unbind(M,"mouseup",D),w!==M&&(y.unbind(w,"mousemove",A),y.unbind(w,"mouseup",D)),y.remove(o),y.remove(i),N(r),Vh(n,r,p,g),y.setAttrib(r,"style",y.getAttrib(r,"style")),n.nodeChanged()},N=function(e){var t,v,_,x,S;O(),I(),t=y.getPos(e,H),u=t.x,h=t.y,S=e.getBoundingClientRect(),v=S.width||S.right-S.left,_=S.height||S.bottom-S.top,r!==e&&(r=e,p=g=0),x=n.fire("ObjectSelected",{target:e}),k(e)&&!x.isDefaultPrevented()?C(c,function(e,t){var n;(n=y.get("mceResizeHandle"+t))&&y.remove(n),n=y.add(H,"div",{id:"mceResizeHandle"+t,"data-mce-bogus":"all",class:"mce-resizehandle",unselectable:!0,style:"cursor:"+t+"-resize; margin:0; padding:0"}),11===Mn.ie&&(n.contentEditable=!1),y.bind(n,"mousedown",function(t){t.stopImmediatePropagation(),t.preventDefault(),function(t){s=t.screenX,l=t.screenY,f=V(r).clientWidth,d=V(r).clientHeight,m=d/f,(a=e).startPos={x:v*e[0]+u,y:_*e[1]+h},b=H.scrollWidth,z=H.scrollHeight,o=r.cloneNode(!0),y.addClass(o,"mce-clonedresizable"),y.setAttrib(o,"data-mce-bogus","all"),o.contentEditable=!1,o.unSelectabe=!0,y.setStyles(o,{left:u,top:h,margin:0}),o.removeAttribute("data-mce-selected"),H.appendChild(o),y.bind(M,"mousemove",A),y.bind(M,"mouseup",D),w!==M&&(y.bind(w,"mousemove",A),y.bind(w,"mouseup",D)),i=y.add(H,"div",{class:"mce-resize-helper","data-mce-bogus":"all"},f+" × "+d)}(t)}),e.elm=n,y.setStyles(n,{left:v*e[0]+u-n.offsetWidth/2,top:_*e[1]+h-n.offsetHeight/2})}):O(),r.setAttribute("data-mce-selected","1")},O=function(){var e,t;for(e in I(),r&&r.removeAttribute("data-mce-selected"),c)(t=y.get("mceResizeHandle"+e))&&(y.unbind(t),y.remove(t))},I=function(){for(var e in c){var t=c[e];t.elm&&(y.unbind(t.elm),delete t.elm)}},P=function(){try{n.getDoc().execCommand("enableObjectResizing",!1,!1)}catch(e){}};return n.on("init",function(){P(),(Mn.browser.isIE()||Mn.browser.isEdge())&&(n.on("mousedown click",function(e){var t=e.target,r=t.nodeName;v||!/^(TABLE|IMG|HR)$/.test(r)||E(t)||(2!==e.button&&n.selection.select(t,"TABLE"===r),"mousedown"===e.type&&n.nodeChanged())}),n.dom.bind(H,"mscontrolselect",function(e){function t(e){dn.setEditorTimeout(n,function(){n.selection.select(e)})}if(E(e.target))return e.preventDefault(),void t(e.target);/^(TABLE|IMG|HR)$/.test(e.target.nodeName)&&(e.preventDefault(),"IMG"===e.target.tagName&&t(e.target))}));var e=dn.throttle(function(e){n.composing||T(e)});n.on("nodechange ResizeEditor ResizeWindow drop FullscreenStateChanged",e),n.on("keyup compositionend",function(t){r&&"TABLE"===r.nodeName&&e(t)}),n.on("hide blur",O),n.on("contextmenu longpress",L,!0)}),n.on("remove",I),{isResizable:k,showResizeRect:N,hideResizeRect:O,updateResizeRect:T,destroy:function(){r=o=null}}}(Dv=Dv||{}).isBookmarkNode=Sl;var Ov=Dv,Iv=Xe.isContentEditableFalse,Pv=Xe.isContentEditableTrue;function Rv(e){return"textarea"===oe(e)}function Bv(e,t){var n=function(e){var t=e.dom().ownerDocument,n=t.body,r=t.defaultView,o=t.documentElement;if(n===e.dom())return Ti(n.offsetLeft,n.offsetTop);var i=wi(r.pageYOffset,o.scrollTop),c=wi(r.pageXOffset,o.scrollLeft),a=wi(o.clientTop,n.clientTop),s=wi(o.clientLeft,n.clientLeft);return Ei(e).translate(c-s,i-a)}(e),r=function(e){return gp.get(e)}(e);return{element:e,bottom:n.top()+r,pos:n,cleanup:t}}function jv(e){return Bv(gt.fromDom(e),t)}function Fv(e,t,n,r){Cp(e,function(o,i){return yp(e,t,n,r)},n)}function $v(e,t,n,r){var o=gt.fromDom(e.getDoc());n(o,_i(o).top(),t,r)}function qv(e,t,n,r){var o=e.pos;if(n)xi(o.left(),o.top(),r);else{var i=o.top()-t+(e.bottom-o.top());xi(o.left(),i,r)}}function Uv(e,t,n,r,o){r.pos.top()n+t&&qv(r,n,!0===o,e)}function Wv(e,t,n,r){var o=e.dom().defaultView.innerHeight;Uv(e,t,o,n,r)}function Yv(t,n,r,o,i){var c=n.dom().defaultView.innerHeight;Uv(n,r,c,o,i);var a=function(t){var n=_i(gt.fromDom(e.document)),r=function(e,t){var n=t.owner(e);return bp(t,n)}(t,zp),o=Ei(t),i=C(r,function(e,t){var n=Ei(t);return{left:e.left+n.left(),top:e.top+n.top()}},{left:0,top:0});return Ti(i.left+o.left()+n.left(),i.top+o.top()+n.top())}(o.element),s=Ni(e.window);a.top()s.bottom()&&Hi(o.element,!0===i)}function Xv(e){return Xe.isContentEditableTrue(e)||Xe.isContentEditableFalse(e)}function Gv(t,n){var r=(n||e.document).createDocumentFragment();return z(t,function(e){r.appendChild(e.dom())}),gt.fromDom(r)}function Qv(e,t){var n=parseInt(me(e,t),10);return isNaN(n)?1:n}function Zv(e){return M(e,function(e,t){return t.cells().length>e?t.cells().length:e},0)}function Kv(e,t){for(var n=e.rows(),r=0;ro.childNodes.length-1&&(s=!1),Xe.isDocument(o)&&(o=h,i=0),o===h){if(s&&(c=o.childNodes[0'+ea+"");return gi(n.element,r),Bv(r,function(){return ki(r)})}(gt.fromDom(n.startContainer),n.startOffset);t(i,c,a,r),a.cleanup()},Cp=function(e,t,n){var r=n.startContainer,o=n.startOffset,i=n.endContainer,c=n.endOffset;t(gt.fromDom(r),gt.fromDom(i));var a=e.dom.createRng();a.setStart(r,o),a.setEnd(i,c),e.selection.setRng(n)},Mp=function(e,t,n){!function(e,t,n){return e.fire("ScrollIntoView",{elm:t,alignToTop:n}).isDefaultPrevented()}(e,t,n)&&(e.inline?function(e,t,n){return $v(e,jv(t),i(Wv),n)}:function(e,t,n){return $v(e,jv(t),i(Yv,e),n)})(e,t,n)},wp=function(e,t,n){(e.inline?function(e,t,n){return Fv(e,i(Wv),t,n)}:function(e,t,n){return Fv(e,i(Yv,e),t,n)})(e,t,n)},_p=function(e,t,n){var r,o,i=n;if(i.caretPositionFromPoint)(o=i.caretPositionFromPoint(e,t))&&((r=n.createRange()).setStart(o.offsetNode,o.offset),r.collapse(!0));else if(n.caretRangeFromPoint)r=n.caretRangeFromPoint(e,t);else if(i.body.createTextRange){r=i.body.createTextRange();try{r.moveToPoint(e,t),r.collapse(!0)}catch(o){r=function(e,t,n){var r,o,i;if(r=n.elementFromPoint(e,t),o=n.body.createTextRange(),r&&"HTML"!==r.tagName||(r=n.body),o.moveToElementText(r),0<(i=(i=Sn.toArray(o.getClientRects())).sort(function(e,n){return(e=Math.abs(Math.max(e.top-t,e.bottom-t)))-Math.abs(Math.max(n.top-t,n.bottom-t))})).length){t=(i[0].bottom+i[0].top)/2;try{return o.moveToPoint(e,t),o.collapse(!0),o}catch(e){}}return null}(e,t,n)}return function(e,t){var n=e&&e.parentElement?e.parentElement():null;return Xe.isContentEditableFalse(function(e,t,n){for(;e&&e!==t;){if(n(e))return e;e=e.parentNode}return null}(n,t,Xv))?null:e}(r,n.body)}return r},xp=function(e,t){return F(t,function(t){var n=e.fire("GetSelectionRange",{range:t});return n.range!==t?n.range:t})},Hp=be("element","width","rows"),Sp=be("element","cells"),Lp=be("x","y"),Vp=function(e){var t=Hp(zc(e),0,[]);return z(sc(e,"tr"),function(e,n){z(sc(e,"td,th"),function(r,o){!function(e,t,n,r,o){for(var i=Qv(o,"rowspan"),c=Qv(o,"colspan"),a=e.rows(),s=n;sn.clientHeight){t=n;break}n=n.parentNode}return t},scrollIntoView:function(e,t){return Mp(r,e,t)},placeCaretAt:function(e,t){return m(_p(e,t,r.getDoc()))},getBoundingClientRect:function(){var e=d();return e.collapsed?ys.fromRangeStart(e).getClientRects()[0]:e.getBoundingClientRect()},destroy:function(){t=s=l=null,a.destroy()}};return c=Ov(v),a=Nv(v,r),v.bookmarkManager=c,v.controlSelection=a,v}function qp(e){return yg(e)&&e.data[0]===ea}function Up(e){return yg(e)&&e.data[e.data.length-1]===ea}function Wp(e){return e.ownerDocument.createTextNode(ea)}function Yp(e,t){return e?function(e){if(yg(e.previousSibling))return Up(e.previousSibling)||e.previousSibling.appendData(ea),e.previousSibling;if(yg(e))return qp(e)||e.insertData(0,ea),e;var t=Wp(e);return e.parentNode.insertBefore(t,e),t}(t):function(e){if(yg(e.nextSibling))return qp(e.nextSibling)||e.nextSibling.insertData(0,ea),e.nextSibling;if(yg(e))return Up(e)||e.appendData(ea),e;var t=Wp(e);return e.nextSibling?e.parentNode.insertBefore(t,e.nextSibling):e.parentNode.appendChild(t),t}(t)}function Xp(e,t){return Xe.isText(e.container())?Yp(t,e.container()):Yp(t,e.getNode())}function Gp(e,t){var n=t.get();return n&&e.container()===n&&wc(n)}function Qp(e,t){if(!t)return t;var n=t.container(),r=t.offset();return e?wc(n)?Xe.isText(n.nextSibling)?ys(n.nextSibling,0):ys.after(n):Hc(t)?ys(n,r+1):t:wc(n)?Xe.isText(n.previousSibling)?ys(n.previousSibling,n.previousSibling.data.length):ys.before(n):Sc(t)?ys(n,r-1):t}function Zp(e,t){return as(t,e)||e}function Kp(e,t,n){var r=xg.normalizeForwards(n),o=Zp(t,r.container());return xg.findRootInline(e,o,r).fold(function(){return _l.nextPosition(o,r).bind(i(xg.findRootInline,e,o)).map(function(e){return Sg.before(e)})},A.none)}function Jp(e,t){return null===Xa(e,t)}function eg(e,t,n){return xg.findRootInline(e,t,n).filter(i(Jp,t))}function tg(e,t,n){var r=xg.normalizeBackwards(n);return eg(e,t,r).bind(function(e){return _l.prevPosition(e,r).isNone()?A.some(Sg.start(e)):A.none()})}function ng(e,t,n){var r=xg.normalizeForwards(n);return eg(e,t,r).bind(function(e){return _l.nextPosition(e,r).isNone()?A.some(Sg.end(e)):A.none()})}function rg(e,t,n){var r=xg.normalizeBackwards(n),o=Zp(t,r.container());return xg.findRootInline(e,o,r).fold(function(){return _l.prevPosition(o,r).bind(i(xg.findRootInline,e,o)).map(function(e){return Sg.after(e)})},A.none)}function og(e){return!1===xg.isRtl(Lg(e))}function ig(e,t,n){return Hg([Kp,tg,ng,rg],[e,t,n]).filter(og)}function cg(e){return e.fold(r("before"),r("start"),r("end"),r("after"))}function ag(e){return e.fold(Sg.before,Sg.before,Sg.after,Sg.after)}function sg(e,t,n,r,o,i){return Bc(xg.findRootInline(t,n,r),xg.findRootInline(t,n,o),function(t,r){return t!==r&&xg.hasSameParentBlock(n,t,r)?Sg.after(e?t:r):i}).getOr(i)}function lg(e,t){return e.fold(r(!0),function(e){return!function(e,t){return cg(e)===cg(t)&&Lg(e)===Lg(t)}(e,t)})}function ug(e,t){return e?t.fold(n(A.some,Sg.start),A.none,n(A.some,Sg.after),A.none):t.fold(A.none,n(A.some,Sg.before),A.none,n(A.some,Sg.end))}function hg(e,t,n,r){var o=xg.normalizePosition(e,r),c=ig(t,n,o);return ig(t,n,o).bind(i(ug,e)).orThunk(function(){return function(e,t,n,r,o){var c=xg.normalizePosition(e,o);return _l.fromPosition(e,n,c).map(i(xg.normalizePosition,e)).fold(function(){return r.map(ag)},function(o){return ig(t,n,o).map(i(sg,e,t,n,c,o)).filter(i(lg,r))}).filter(og)}(e,t,n,c,r)})}function fg(e,t,n){var r=e?1:-1;return t.setRng(ys(n.container(),n.offset()+r).toRange()),t.getSel().modify("move",e?"forward":"backward","word"),!0}function dg(e,t){var n=e.dom.createRng();n.setStart(t.container(),t.offset()),n.setEnd(t.container(),t.offset()),e.selection.setRng(n)}function mg(e){return!1!==e.settings.inline_boundaries}function vg(e,t){e?t.setAttribute("data-mce-selected","inline-boundary"):t.removeAttribute("data-mce-selected")}function pg(e,t,n){return wg(t,n).map(function(t){return dg(e,t),n})}function gg(e,t,n){return function(){return!!mg(t)&&Eg(e,t)}}var bg,zg,yg=Xe.isText,Cg=i(Yp,!0),Mg=i(Yp,!1),wg=function(e,t){return t.fold(function(t){Ts.remove(e.get());var n=Cg(t);return e.set(n),A.some(ys(n,n.length-1))},function(t){return _l.firstPositionIn(t).map(function(t){if(Gp(t,e))return ys(e.get(),1);Ts.remove(e.get());var n=Xp(t,!0);return e.set(n),ys(n,1)})},function(t){return _l.lastPositionIn(t).map(function(t){if(Gp(t,e))return ys(e.get(),e.get().length-1);Ts.remove(e.get());var n=Xp(t,!1);return e.set(n),ys(n,n.length-1)})},function(t){Ts.remove(e.get());var n=Mg(t);return e.set(n),A.some(ys(n,1))})},_g=/[\u0591-\u07FF\uFB1D-\uFDFF\uFE70-\uFEFC]/,xg={isInlineTarget:function(e,t){return ze(gt.fromDom(t),function(e){return e.getParam("inline_boundaries_selector","a[href],code,.mce-annotation","string")}(e))},findRootInline:function(e,t,n){var r=function(e,t,n){return y(Ui.DOM.getParents(n.container(),"*",t),e)}(e,t,n);return A.from(r[r.length-1])},isRtl:function(e){return"rtl"===Ui.DOM.getStyle(e,"direction",!0)||function(e){return _g.test(e)}(e.textContent)},isAtZwsp:function(e){return Hc(e)||Sc(e)},normalizePosition:Qp,normalizeForwards:i(Qp,!0),normalizeBackwards:i(Qp,!1),hasSameParentBlock:function(e,t,n){var r=as(t,e),o=as(n,e);return r&&r===o}},Hg=function(e,t){for(var n=0;n'),t}(e),1===t?e.$(r).after(o):e.$(r).before(o),e.selection.select(o,!0),e.selection.collapse())}}function jg(e,t){return function(){var n=function(e,t){var n,r=Us(e.getBody()),o=i(ps,r.next),c=i(ps,r.prev),a=t?bs.Forwards:bs.Backwards,s=t?o:c,l=e.selection.getRng();return(n=function(e,t,n,r){var o=e===bs.Forwards,i=o?Yf:Xf;if(!r.collapsed){var c=hy(r);if(uy(c))return ad(e,t,c,e===bs.Backwards,!0)}var a=Mc(r.startContainer),s=ms(e,t.getBody(),r);if(i(s))return sd(t,s.getNode(!o));var l=xg.normalizePosition(o,n(s));if(!l)return a?r:null;if(i(l))return ad(e,t,l.getNode(!o),o,!0);var u=n(l);return u&&i(u)&&gs(l,u)?ad(e,t,u.getNode(!o),o,!0):a?ud(t,l.toRange(),!0):null}(a,e,s,l))?n:(n=Bg(e,a,l))||null}(e,t);return!!n&&(e.selection.setRng(n),!0)}}function Fg(e,t){return function(){var n=function(e,t){var n,r=t?1:-1,o=t?Xd:Yd,i=e.selection.getRng();return(n=function(e,t,n,r){var o,i,c,a,s,l,u,h;if(h=hy(r),o=ms(e,t.getBody(),r),i=y(n(t.getBody(),Qf(1),o),Zf(1)),a=_n.last(o.getClientRects()),(Yf(o)||Uf(o))&&(h=o.getNode()),(Xf(o)||Wf(o))&&(h=o.getNode(!0)),!a)return null;if((c=td(i,s=a.left))&&uy(c.node))return l=Math.abs(s-c.left),u=Math.abs(s-c.right),ad(e,t,c.node,lt}),my=i(Wg,cy),vy=i(Wg,ay),py=function(e){for(var t=[],n=1;na.childNodes.length-1,a=a.childNodes[Math.min(s,a.childNodes.length-1)]||a,s=g&&Xe.isText(a)?a.nodeValue.length:0),(c=oz(b,a))&&((p&&!u||!p&&u)&&(a=function(e,t,n,r,o){var i,c,a,s,l,u,h=p||"P",f=e.dom,d=oz(f,r);if(!(c=f.getParent(r,f.isBlock))||!nz(f,c)){if(u=(c=c||d)===e.getBody()||c&&/^(TD|TH|CAPTION)$/.test(c.nodeName)?c.nodeName.toLowerCase():c.parentNode.nodeName.toLowerCase(),!c.hasChildNodes())return iz(e,i=f.create(h)),c.appendChild(i),n.setStart(i,0),n.setEnd(i,0),i;for(s=r;s.parentNode!==c;)s=s.parentNode;for(;s&&!f.isBlock(s);)s=(a=s).previousSibling;if(a&&e.schema.isValidChild(u,h.toLowerCase())){for(iz(e,i=f.create(h)),a.parentNode.insertBefore(i,a),s=a;s&&!f.isBlock(s);)l=s.nextSibling,i.appendChild(s),s=l;n.setStart(r,o),n.setEnd(r,o)}}return r}(e,0,M,a,s)),l=b.getParent(a,b.isBlock),d=l?b.getParent(l.parentNode,b.isBlock):null,m=l?l.nodeName.toUpperCase():"","LI"!==(v=d?d.nodeName.toUpperCase():"")||w||(d=(l=d).parentNode,m=v),/^(LI|DT|DD)$/.test(m)&&b.isEmpty(l)?function(e,t,n,r,o){var i=e.dom,c=e.selection.getRng();if(n!==e.getBody()){!function(e){return Zb(e)&&Zb(e.parentNode)}(n)||(o="LI");var a=o?t(o):i.create("BR");if(Jb(n,r,!0)&&Jb(n,r,!1))Qb(n,"LI")?i.insertAfter(a,Kb(n)):i.replace(a,n);else if(Jb(n,r,!0))Qb(n,"LI")?(i.insertAfter(a,Kb(n)),a.appendChild(i.doc.createTextNode(" ")),a.appendChild(n)):n.parentNode.insertBefore(a,n);else if(Jb(n,r,!1))i.insertAfter(a,Kb(n));else{n=Kb(n);var s=c.cloneRange();s.setStartAfter(r),s.setEndAfter(n);var l=s.extractContents();"LI"===o&&function(e,t){return e.firstChild&&"LI"===e.firstChild.nodeName}(l)?(a=l.firstChild,i.insertAfter(l,n)):(i.insertAfter(l,n),i.insertAfter(a,n))}i.remove(r),Wy(e,a)}}(e,n,d,l,p):p&&l===e.getBody()||(p=p||"P",Mc(l)?(h=Lc(l),b.isEmpty(l)&&ez(l),Wy(e,h)):r()?o():r(!0)?(h=l.parentNode.insertBefore(n(),l),Wy(e,tz(l,"HR")?h:l)):((i=function(e){var t=e.cloneRange();return t.setStart(e.startContainer,rz(!0,e.startContainer,e.startOffset)),t.setEnd(e.endContainer,rz(!1,e.endContainer,e.endOffset)),t}(M).cloneRange()).setEndAfter(l),function(e){z(uc(gt.fromDom(e),Mt),function(e){var t=e.dom();t.nodeValue=ta(t.nodeValue)})}(f=i.extractContents()),function(e){for(;Xe.isText(e)&&(e.nodeValue=e.nodeValue.replace(/^[\r\n]+/,"")),e=e.firstChild;);}(f),h=f.firstChild,b.insertAfter(f,l),function(e,t,n){var r,o=h,i=[];if(o){for(;o=o.firstChild;){if(e.isBlock(o))return;Xe.isElement(o)&&!t[o.nodeName.toLowerCase()]&&i.push(o)}for(r=i.length;r--;)!(o=i[r]).hasChildNodes()||o.firstChild===o.lastChild&&""===o.firstChild.nodeValue?e.remove(o):(c=e,(a=o)&&"A"===a.nodeName&&c.isEmpty(a)&&e.remove(o));var c,a}}(b,C),function(e,t){var n;t.normalize(),(n=t.lastChild)&&!/^(left|right)$/gi.test(e.getStyle(n,"float",!0))||e.add(t,"br")}(b,l),b.isEmpty(l)&&ez(l),h.normalize(),b.isEmpty(h)?(b.remove(h),o()):Wy(e,h)),b.setAttrib(h,"id",""),e.fire("NewBlock",{newBlock:h})))},Ky=function(e,t){return!!function(e){return Xe.isBr(e.getNode())}(ys.after(t))||_l.nextPosition(e,ys.after(t)).map(function(e){return Xe.isBr(e.getNode())}).getOr(!1)},Jy=function(e,t){var n=function(e){var t=i(xg.isInlineTarget,e),n=ys.fromRangeStart(e.selection.getRng());return Vg(t,e.getBody(),n).filter(hz)}(e);n.isSome()?n.each(i(fz,e)):function(e,t){var n,r,o=e.selection,i=e.dom,c=o.getRng();Rp(i,c).each(function(e){c.setStart(e.startContainer,e.startOffset),c.setEnd(e.endContainer,e.endOffset)});var a=c.startOffset,s=c.startContainer;if(1===s.nodeType&&s.hasChildNodes()){var l=a>s.childNodes.length-1;s=s.childNodes[Math.min(a,s.childNodes.length-1)]||s,a=l&&3===s.nodeType?s.nodeValue.length:0}var u=i.getParent(s,i.isBlock),h=u?i.getParent(u.parentNode,i.isBlock):null,f=h?h.nodeName.toUpperCase():"",d=!(!t||!t.ctrlKey);"LI"!==f||d||(u=h),s&&3===s.nodeType&&a>=s.nodeValue.length&&!function(e,t,n){for(var r,o=new vi(s,u),i=e.getNonEmptyElements();r=o.next();)if(i[r.nodeName.toLowerCase()]||0",Tu(e)!==e.documentBaseUrl&&(r+=''),r+='',t=Eu(e),n=Du(e),Nu(e)&&(r+=''),r+'
    '}(t),uC.add(n.iframeContainer,o),i}(t,n);n.editorContainer&&(uC.get(n.editorContainer).style.display=t.orgDisplay,t.hidden=uC.isHidden(n.editorContainer)),t.getElement().style.display="none",uC.setAttrib(t.id,"aria-hidden","true"),r||lC(t)},fC=Ui.DOM,dC=function(e,t,n){var r=rf.get(n),o=rf.urls[n]||e.documentBaseUrl.replace(/\/$/,"");if(n=Sn.trim(n),r&&-1===Sn.inArray(t,n)){if(Sn.each(rf.dependencies(n),function(n){dC(e,t,n)}),e.plugins[n])return;try{var i=new r(e,o,e.$);(e.plugins[n]=i).init&&(i.init(e,o),t.push(n))}catch(t){tf.pluginInitError(e,n,t)}}},mC=function(e){e.fire("ScriptsLoaded"),function(e){var t=Sn.trim(e.settings.icons),n=e.ui.registry.getAll().icons;ce(U(U({},{"accessibility-check":'',"action-next":'',"action-prev":'',"align-center":'',"align-justify":'',"align-left":'',"align-none":'',"align-right":'',"arrow-left":'',"arrow-right":'',bold:'',bookmark:'',"border-width":'',brightness:'',browse:'',cancel:'',"change-case":'',"character-count":'',"checklist-rtl":'',checklist:'',checkmark:'',"chevron-down":'',"chevron-left":'',"chevron-right":'',"chevron-up":'',close:'',"code-sample":'',"color-levels":'',"color-picker":'',"color-swatch-remove-color":'',"color-swatch":'',"comment-add":'',comment:'',contrast:'',copy:'',crop:'',cut:'',"document-properties":'',drag:'',duplicate:'',"edit-block":'',"edit-image":'',"embed-page":'',embed:'',emoji:'',fill:'',"flip-horizontally":'',"flip-vertically":'',"format-painter":'',fullscreen:'',gallery:'',gamma:'',help:'',"highlight-bg-color":'',home:'',"horizontal-rule":'',"image-options":'',image:'',indent:'',info:'',"insert-character":'',"insert-time":'',invert:'',italic:'',line:'',link:'',"list-bull-circle":'',"list-bull-default":'',"list-bull-square":'',"list-num-default-rtl":'',"list-num-default":'',"list-num-lower-alpha-rtl":'',"list-num-lower-alpha":'',"list-num-lower-greek-rtl":'',"list-num-lower-greek":'',"list-num-lower-roman-rtl":'',"list-num-lower-roman":'',"list-num-upper-alpha-rtl":'',"list-num-upper-alpha":'',"list-num-upper-roman-rtl":'',"list-num-upper-roman":'',lock:'',ltr:'',"more-drawer":'',"new-document":'',"new-tab":'',"non-breaking":'',notice:'',"ordered-list-rtl":'',"ordered-list":'',orientation:'',outdent:'',"page-break":'',"paste-text":'',paste:'',"permanent-pen":'',plus:'',preferences:'',preview:'',print:'',quote:'',redo:'',reload:'',"remove-formatting":'',remove:'',"resize-handle":'',resize:'',"restore-draft":'',"rotate-left":'',"rotate-right":'',rtl:'',save:'',search:'',"select-all":'',selected:'',settings:'',sharpen:'',sourcecode:'',"spell-check":'',"strike-through":'',subscript:'',superscript:'',"table-cell-properties":'',"table-cell-select-all":'',"table-cell-select-inner":'',"table-delete-column":'',"table-delete-row":'',"table-delete-table":'',"table-insert-column-after":'',"table-insert-column-before":'',"table-insert-row-above":'',"table-insert-row-after":'',"table-left-header":'',"table-merge-cells":'',"table-row-properties":'',"table-split-cells":'',"table-top-header":'',table:'',template:'',"temporary-placeholder":'',"text-color":'',toc:'',translate:'',underline:'',undo:'',unlink:'',unlock:'',"unordered-list":'',unselected:'',upload:'',user:'',visualblocks:'',visualchars:'',warning:'',"zoom-in":'',"zoom-out":''}),nf.get(t).icons),function(t,r){Ht(n,r)||e.ui.registry.addIcon(r,t)})}(e),function(e){var t=e.settings.theme;if(T(t)){e.settings.theme=jz(t);var n=of.get(t);e.theme=new n(e,of.urls[t]),e.theme.init&&e.theme.init(e,of.urls[t]||e.documentBaseUrl.replace(/\/$/,""),e.$)}else e.theme={}}(e),function(e){var t=[];Sn.each(e.settings.plugins.split(/[ ,]/),function(n){dC(e,t,jz(n))})}(e);var t=function(e){var t=e.getElement();return e.orgDisplay=t.style.display,T(e.settings.theme)?function(e){return e.theme.renderUI()}(e):I(e.settings.theme)?function(e){var t=e.getElement(),n=(0,e.settings.theme)(e,t);return n.editorContainer.nodeType&&(n.editorContainer.id=n.editorContainer.id||e.id+"_parent"),n.iframeContainer&&n.iframeContainer.nodeType&&(n.iframeContainer.id=n.iframeContainer.id||e.id+"_iframecontainer"),n.height=n.iframeHeight?n.iframeHeight:t.offsetHeight,n}(e):function(e){var t=e.getElement();return e.inline?Fz(null):function(e){var t=fC.create("div");return fC.insertAfter(t,e),Fz(t)}(t)}(e)}(e);return e.editorContainer=t.editorContainer?t.editorContainer:null,function(e){e.contentCSS=e.contentCSS.concat(function(e){var t=ih(e),n=e.editorManager.baseURL+"/skins/content",r="content"+e.editorManager.suffix+".css",o=!0===e.inline;return F(t,function(t){return function(e){return/^[a-z0-9\-]+$/i.test(e)}(t)&&!o?n+"/"+t+"/"+r:e.documentBaseURI.toAbsolute(t)})}(e))}(e),e.inline?lC(e):hC(e,t)},vC=Ui.DOM,pC="data-mce-contenteditable",gC=["design","readonly"],bC=function(e,t){var n=t.firstChild,r=t.lastChild;return n&&"meta"===n.name&&(n=n.next),r&&"mce_marker"===r.attr("id")&&(r=r.prev),function(e,t){var n=e.getNonEmptyElements();return t&&(t.isEmpty(n)||function(e,t){return e.getBlockElements()[t.name]&&function(e){return e.firstChild&&e.firstChild===e.lastChild}(t)&&function(e){return"br"===e.name||" "===e.value}(t.firstChild)}(e,t))}(e,r)&&(r=r.prev),!(!n||n!==r||"ul"!==n.name&&"ol"!==n.name)},zC=function(e,t,n,r){function o(e){var r=ys.fromRangeStart(n),o=Us(t.getRoot()),i=1===e?o.prev(r):o.next(r);return!i||Kz(t,i.getNode())!==c}var i=function(e,t,n){var r=t.serialize(n);return function(e){var t=e.firstChild,n=e.lastChild;return t&&"META"===t.nodeName&&t.parentNode.removeChild(t),n&&"mce_marker"===n.id&&n.parentNode.removeChild(n),e}(e.createFragment(r))}(t,e,r),c=Kz(t,n.startContainer),a=Zz(function(e){return Sn.grep(e.childNodes,function(e){return"LI"===e.nodeName})}(i.firstChild)),s=t.getRoot();return o(1)?function(e,t,n){var r=e.parentNode;return Sn.each(t,function(t){r.insertBefore(t,e)}),function(e,t){var n=ys.before(e),r=Us(t).next(n);return r?r.toRange():null}(e,n)}(c,a,s):o(2)?function(e,n,r,o){return t.insertAfter(n.reverse(),e),Jz(n[0],r)}(c,a,s):function(e,t,n,r){var o=function(e,t){var n=t.cloneRange(),r=t.cloneRange();return n.setStartBefore(e),r.setEndAfter(e),[n.cloneContents(),r.cloneContents()]}(e,r),i=e.parentNode;return i.insertBefore(o[0],e),Sn.each(t,function(t){i.insertBefore(t,e)}),i.insertBefore(o[1],e),i.removeChild(e),Jz(t[t.length-1],n)}(c,a,s,n)},yC=function(e,t){return!!Kz(e,t)},CC=Xe.matchNodeNames(["td","th"]),MC=function(e,t){var n=function(e){var t;return"string"!=typeof e?(t=Sn.extend({paste:e.paste,data:{paste:e.paste}},e),{content:e.content,details:t}):{content:e,details:{}}}(t);!function(e,t,n){var r,o,i,c,a,s,l,u,h,f,d,m=e.selection,v=e.dom;if(/^ | $/.test(t)&&(t=function(e,t){var n,r;function o(e){return n[e]&&3===n[e].nodeType}return n=e.startContainer,r=e.startOffset,3===n.nodeType&&(0|)$/," "):o("nextSibling")||(t=t.replace(/( | )(
    |)$/," "))),t}(m.getRng(),t)),r=e.parser,d=n.merge,o=Jl({validate:e.settings.validate},e.schema),f='​',s={content:t,format:"html",selection:!0,paste:n.paste},(s=e.fire("BeforeSetContent",s)).isDefaultPrevented())e.fire("SetContent",{content:s.content,format:"html",selection:!0,paste:n.paste});else{-1===(t=s.content).indexOf("{$caret}")&&(t+="{$caret}"),t=t.replace(/\{\$caret\}/,f);var p=(u=m.getRng()).startContainer||(u.parentElement?u.parentElement():null),g=e.getBody();p===g&&m.isCollapsed()&&v.isBlock(g.firstChild)&&function(e,t){return t&&!e.schema.getShortEndedElements()[t.nodeName]}(e,g.firstChild)&&v.isEmpty(g.firstChild)&&((u=v.createRng()).setStart(g.firstChild,0),u.setEnd(g.firstChild,0),m.setRng(u)),m.isCollapsed()||(e.selection.setRng(rv(e.selection.getRng())),e.getDoc().execCommand("Delete",!1,null),t=function(e,t){var n,r;return n=e.startContainer,r=e.startOffset,3===n.nodeType&&e.collapsed&&(" "===n.data[r]?(n.deleteData(r,1),/[\u00a0| ]$/.test(t)||(t+=" ")):" "===n.data[r-1]&&(n.deleteData(r-1,1),/[\u00a0| ]$/.test(t)||(t=" "+t))),t}(e.selection.getRng(),t));var b={context:(i=m.getNode()).nodeName.toLowerCase(),data:n.data,insert:!0};if(a=r.parse(t,b),!0===n.paste&&bC(e.schema,a)&&yC(v,i))return u=zC(o,v,e.selection.getRng(),a),e.selection.setRng(u),void e.fire("SetContent",s);if(function(e){for(var t=a;t=t.walk();)1===t.type&&t.attr("data-mce-fragment","1")}(),"mce_marker"===(h=a.lastChild).attr("id"))for(h=(l=h).prev;h;h=h.walk(!0))if(3===h.type||!v.isBlock(h.name)){e.schema.isValidChild(h.parent.name,"span")&&h.parent.insert(l,h,"br"===h.name);break}if(e._selectionOverrides.showBlockCaretContainer(i),b.invalid){for(ey(e,f),i=m.getNode(),c=e.getBody(),9===i.nodeType?i=h=c:h=i;h!==c;)h=(i=h).parentNode;t=i===c?c.innerHTML:v.getOuterHTML(i),t=o.serialize(r.parse(t.replace(//i,function(){return o.serialize(a)}))),i===c?v.setHTML(c,t):v.setOuterHTML(i,t)}else!function(e,t,n){if("all"===n.getAttribute("data-mce-bogus"))n.parentNode.insertBefore(e.dom.createFragment(t),n);else{var r=n.firstChild,o=n.lastChild;!r||r===o&&"BR"===r.nodeName?e.dom.setHTML(n,t):ey(e,t)}}(e,t=o.serialize(a),i);!function(e,t){var n=e.schema.getTextInlineElements(),r=e.dom;if(t){var o=e.getBody(),i=new Vm(r);Sn.each(r.select("*[data-mce-fragment]"),function(e){for(var t=e.parentNode;t&&t!==o;t=t.parentNode)n[e.nodeName.toLowerCase()]&&i.compare(t,e)&&r.remove(e,!0)})}}(e,d),function(e,t){var n,r,o,i,c,a=e.dom,s=e.selection;if(t){if(e.selection.scrollIntoView(t),n=function(t){for(var n=e.getBody();t&&t!==n;t=t.parentNode)if("false"===e.dom.getContentEditable(t))return t;return null}(t))return a.remove(t),s.select(n);var l=a.createRng();(i=t.previousSibling)&&3===i.nodeType?(l.setStart(i,i.nodeValue.length),Mn.ie||(c=t.nextSibling)&&3===c.nodeType&&(i.appendData(c.data),c.parentNode.removeChild(c))):(l.setStartBefore(t),l.setEndBefore(t)),r=a.getParent(t,a.isBlock),a.remove(t),r&&a.isEmpty(r)&&(e.$(r).empty(),l.setStart(r,0),l.setEnd(r,0),CC(r)||r.getAttribute("data-mce-fragment")||!(o=function(t){var n=ys.fromRangeStart(t);if(n=Us(e.getBody()).next(n))return n.toRange()}(l))?a.add(r,a.create("br",{"data-mce-bogus":"1"})):(l=o,a.remove(r))),s.setRng(l)}}(e,v.get("mce_marker")),function(e){Sn.each(e.getElementsByTagName("*"),function(e){e.removeAttribute("data-mce-fragment")})}(e.getBody()),function(e,t){A.from(e.getParent(t,"td,th")).map(gt.fromDom).each(vm)}(e.dom,e.selection.getStart()),e.fire("SetContent",s),e.addVisual()}}(e,n.content,n.details)},wC={getFontSize:ny("font-size"),getFontFamily:n(function(e){return e.replace(/[\'\"\\]/g,"").replace(/,\s+/g,",")},ny("font-family")),toPt:function(e,t){return/[0-9.]+px$/.test(e)?function(e,t){var n=Math.pow(10,t);return Math.round(e*n)/n}(72*parseInt(e,10)/96,t||0)+"pt":e}},_C=Sn.each,xC=Sn.map,HC=Sn.inArray,SC=(LC.prototype.execCommand=function(e,t,n,r){var o,i,c=!1,a=this;if(!a.editor.removed){if(/^(mceAddUndoLevel|mceEndUndoLevel|mceBeginUndoLevel|mceRepaint)$/.test(e)||r&&r.skip_focus?function(e){lu(e).each(function(t){e.selection.setRng(t)})}(a.editor):a.editor.focus(),(r=a.editor.fire("BeforeExecCommand",{command:e,ui:t,value:n})).isDefaultPrevented())return!1;if(i=e.toLowerCase(),o=a.commands.exec[i])return o(i,t,n),a.editor.fire("ExecCommand",{command:e,ui:t,value:n}),!0;if(_C(this.editor.plugins,function(r){if(r.execCommand&&r.execCommand(e,t,n))return a.editor.fire("ExecCommand",{command:e,ui:t,value:n}),!(c=!0)}),c)return c;if(a.editor.theme&&a.editor.theme.execCommand&&a.editor.theme.execCommand(e,t,n))return a.editor.fire("ExecCommand",{command:e,ui:t,value:n}),!0;try{c=a.editor.getDoc().execCommand(e,t,n)}catch(e){}return!!c&&(a.editor.fire("ExecCommand",{command:e,ui:t,value:n}),!0)}},LC.prototype.queryCommandState=function(e){var t;if(!this.editor.quirks.isHidden()&&!this.editor.removed){if(e=e.toLowerCase(),t=this.commands.state[e])return t(e);try{return this.editor.getDoc().queryCommandState(e)}catch(e){}return!1}},LC.prototype.queryCommandValue=function(e){var t;if(!this.editor.quirks.isHidden()&&!this.editor.removed){if(e=e.toLowerCase(),t=this.commands.value[e])return t(e);try{return this.editor.getDoc().queryCommandValue(e)}catch(e){}}},LC.prototype.addCommands=function(e,t){var n=this;t=t||"exec",_C(e,function(e,r){_C(r.toLowerCase().split(","),function(r){n.commands[t][r]=e})})},LC.prototype.addCommand=function(e,t,n){var r=this;e=e.toLowerCase(),this.commands.exec[e]=function(e,o,i,c){return t.call(n||r.editor,o,i,c)}},LC.prototype.queryCommandSupported=function(e){if(e=e.toLowerCase(),this.commands.exec[e])return!0;try{return this.editor.getDoc().queryCommandSupported(e)}catch(e){}return!1},LC.prototype.addQueryStateHandler=function(e,t,n){var r=this;e=e.toLowerCase(),this.commands.state[e]=function(){return t.call(n||r.editor)}},LC.prototype.addQueryValueHandler=function(e,t,n){var r=this;e=e.toLowerCase(),this.commands.value[e]=function(){return t.call(n||r.editor)}},LC.prototype.hasCustomCommand=function(e){return e=e.toLowerCase(),!!this.commands.exec[e]},LC.prototype.execNativeCommand=function(e,t,n){return void 0===t&&(t=!1),void 0===n&&(n=null),this.editor.getDoc().execCommand(e,t,n)},LC.prototype.isFormatMatch=function(e){return this.editor.formatter.match(e)},LC.prototype.toggleFormat=function(e,t){this.editor.formatter.toggle(e,t?{value:t}:void 0),this.editor.nodeChanged()},LC.prototype.storeSelection=function(e){this.selectionBookmark=this.editor.selection.getBookmark(e)},LC.prototype.restoreSelection=function(){this.editor.selection.moveToBookmark(this.selectionBookmark)},LC.prototype.setupCommands=function(e){var t=this;function n(t){return function(){var n=e.selection.isCollapsed()?[e.dom.getParent(e.selection.getNode(),e.dom.isBlock)]:e.selection.getSelectedBlocks(),r=xC(n,function(n){return!!e.formatter.matchNode(n,t)});return-1!==HC(r,!0)}}this.addCommands({"mceResetDesignMode,mceBeginUndoLevel":function(){},"mceEndUndoLevel,mceAddUndoLevel":function(){e.undoManager.add()},"Cut,Copy,Paste":function(n){var r,o=e.getDoc();try{t.execNativeCommand(n)}catch(e){r=!0}if("paste"!==n||o.queryCommandEnabled(n)||(r=!0),r||!o.queryCommandSupported(n)){var i=e.translate("Your browser doesn't support direct access to the clipboard. Please use the Ctrl+X/C/V keyboard shortcuts instead.");Mn.mac&&(i=i.replace(/Ctrl\+/g,"⌘+")),e.notificationManager.open({text:i,type:"error"})}},unlink:function(){if(e.selection.isCollapsed()){var t=e.dom.getParent(e.selection.getStart(),"a");t&&e.dom.remove(t,!0)}else e.formatter.remove("link")},"JustifyLeft,JustifyCenter,JustifyRight,JustifyFull,JustifyNone":function(n){var r=n.substring(7);"full"===r&&(r="justify"),_C("left,center,right,justify".split(","),function(t){r!==t&&e.formatter.remove("align"+t)}),"none"!==r&&t.toggleFormat("align"+r)},"InsertUnorderedList,InsertOrderedList":function(n){var r,o;t.execNativeCommand(n),(r=e.dom.getParent(e.selection.getNode(),"ol,ul"))&&(o=r.parentNode,/^(H[1-6]|P|ADDRESS|PRE)$/.test(o.nodeName)&&(t.storeSelection(),e.dom.split(o,r),t.restoreSelection()))},"Bold,Italic,Underline,Strikethrough,Superscript,Subscript":function(e){t.toggleFormat(e)},"ForeColor,HiliteColor":function(e,n,r){t.toggleFormat(e,r)},FontName:function(t,n,r){!function(e,t){var n=iy(e,t);e.formatter.toggle("fontname",{value:function(e){var t=n.split(/\s*,\s*/);return F(t,function(e){return-1===e.indexOf(" ")||J(e,'"')||J(e,"'")?e:"'"+e+"'"}).join(",")}()}),e.nodeChanged()}(e,r)},FontSize:function(t,n,r){!function(e,t){e.formatter.toggle("fontsize",{value:iy(e,t)}),e.nodeChanged()}(e,r)},RemoveFormat:function(t){e.formatter.remove(t)},mceBlockQuote:function(){t.toggleFormat("blockquote")},FormatBlock:function(e,n,r){return t.toggleFormat(r||"p")},mceCleanup:function(){var t=e.selection.getBookmark();e.setContent(e.getContent()),e.selection.moveToBookmark(t)},mceRemoveNode:function(n,r,o){var i=o||e.selection.getNode();i!==e.getBody()&&(t.storeSelection(),e.dom.remove(i,!0),t.restoreSelection())},mceSelectNodeDepth:function(t,n,r){var o=0;e.dom.getParent(e.selection.getNode(),function(t){if(1===t.nodeType&&o++===r)return e.selection.select(t),!1},e.getBody())},mceSelectNode:function(t,n,r){e.selection.select(r)},mceInsertContent:function(t,n,r){MC(e,r)},mceInsertRawHTML:function(t,n,r){e.selection.setContent("tiny_mce_marker");var o=e.getContent();e.setContent(o.replace(/tiny_mce_marker/g,function(){return r}))},mceInsertNewLine:function(t,n,r){rC(e,r)},mceToggleFormat:function(e,n,r){t.toggleFormat(r)},mceSetContent:function(t,n,r){e.setContent(r)},"Indent,Outdent":function(t){qb(e,t)},mceRepaint:function(){},InsertHorizontalRule:function(){e.execCommand("mceInsertContent",!1,"
    ")},mceToggleVisualAid:function(){e.hasVisual=!e.hasVisual,e.addVisual()},mceReplaceContent:function(t,n,r){e.execCommand("mceInsertContent",!1,r.replace(/\{\$selection\}/g,e.selection.getContent({format:"text"})))},mceInsertLink:function(t,n,r){var o;"string"==typeof r&&(r={href:r}),o=e.dom.getParent(e.selection.getNode(),"a"),r.href=r.href.replace(/ /g,"%20"),o&&r.href||e.formatter.remove("link"),r.href&&e.formatter.apply("link",r,o)},selectAll:function(){var t=e.dom.getParent(e.selection.getStart(),Xe.isContentEditableTrue);if(t){var n=e.dom.createRng();n.selectNodeContents(t),e.selection.setRng(n)}},delete:function(){var t;Uy(t=e)||Vy(t,!1)||Ay(t,!1)||Ty(t,!1)||wy(t,!1)||Py(t)||_y(t)||Ey(t,!1)||(ty(t,"Delete"),zy(t))},forwardDelete:function(){var t;Vy(t=e,!0)||Ay(t,!0)||Ty(t,!0)||wy(t,!0)||Py(t)||_y(t)||Ey(t,!0)||ty(t,"ForwardDelete")},mceNewDocument:function(){e.setContent("")},InsertLineBreak:function(t,n,r){return Jy(e,r),!0}}),t.addCommands({JustifyLeft:n("alignleft"),JustifyCenter:n("aligncenter"),JustifyRight:n("alignright"),JustifyFull:n("alignjustify"),"Bold,Italic,Underline,Strikethrough,Superscript,Subscript":function(e){return t.isFormatMatch(e)},mceBlockQuote:function(){return t.isFormatMatch("blockquote")},Outdent:function(){return Fb(e)},"InsertUnorderedList,InsertOrderedList":function(t){var n=e.dom.getParent(e.selection.getNode(),"ul,ol");return n&&("insertunorderedlist"===t&&"UL"===n.tagName||"insertorderedlist"===t&&"OL"===n.tagName)}},"state"),t.addCommands({Undo:function(){e.undoManager.undo()},Redo:function(){e.undoManager.redo()}}),t.addQueryValueHandler("FontName",function(){return oy(t=e).fold(function(){return ry(t).map(function(e){return wC.getFontFamily(t.getBody(),e)}).getOr("")},function(e){return wC.getFontFamily(t.getBody(),e)});var t},this),t.addQueryValueHandler("FontSize",function(){return oy(t=e).fold(function(){return ry(t).map(function(e){return wC.getFontSize(t.getBody(),e)}).getOr("")},function(e){return wC.getFontSize(t.getBody(),e)});var t},this)},LC);function LC(e){this.commands={state:{},exec:{},value:{}},this.editor=e,this.setupCommands(e)}var VC=Sn.makeMap("focus blur focusin focusout click dblclick mousedown mouseup mousemove mouseover beforepaste paste cut copy selectionchange mouseout mouseenter mouseleave wheel keydown keypress keyup input beforeinput contextmenu dragstart dragend dragover draggesture dragdrop drop drag submit compositionstart compositionend compositionupdate touchstart touchmove touchend touchcancel"," "),kC=(AC.isNative=function(e){return!!VC[e.toLowerCase()]},AC.prototype.fire=function(e,t){var n,r,o,i;if(e=e.toLowerCase(),(t=t||{}).type=e,t.target||(t.target=this.scope),t.preventDefault||(t.preventDefault=function(){t.isDefaultPrevented=u},t.stopPropagation=function(){t.isPropagationStopped=u},t.stopImmediatePropagation=function(){t.isImmediatePropagationStopped=u},t.isDefaultPrevented=l,t.isPropagationStopped=l,t.isImmediatePropagationStopped=l),this.settings.beforeFire&&this.settings.beforeFire(t),n=this.bindings[e])for(r=0,o=n.length;r"),this.parseShortcut))[o.length-1]=Sn.extend(o[o.length-1],{func:n,scope:r||this.editor}),Sn.extend(o[0],{desc:this.editor.translate(t),subpatterns:o.slice(1)})},UC.prototype.hasModifier=function(e){return e.altKey||e.ctrlKey||e.metaKey},UC.prototype.isFunctionKey=function(e){return"keydown"===e.type&&112<=e.keyCode&&e.keyCode<=123},UC.prototype.matchShortcut=function(e,t){return!!t&&t.ctrl===e.ctrlKey&&t.meta===e.metaKey&&t.alt===e.altKey&&t.shift===e.shiftKey&&!!(e.keyCode===t.keyCode||e.charCode&&e.charCode===t.charCode)&&(e.preventDefault(),!0)},UC.prototype.executeShortcutAction=function(e){return e.func?e.func.call(e.scope):null},UC);function UC(e){this.shortcuts={},this.pendingPatterns=[],this.editor=e;var t=this;e.on("keyup keypress keydown",function(e){!t.hasModifier(e)&&!t.isFunctionKey(e)||e.isDefaultPrevented()||(BC(t.shortcuts,function(n){if(t.matchShortcut(e,n))return t.pendingPatterns=n.subpatterns.slice(0),"keydown"===e.type&&t.executeShortcutAction(n),!0}),t.matchShortcut(e,t.pendingPatterns[0])&&(1===t.pendingPatterns.length&&"keydown"===e.type&&t.executeShortcutAction(t.pendingPatterns[0]),t.pendingPatterns.shift()))})}var WC=Sn.each,YC=Sn.trim,XC="source protocol authority userInfo user password host port relative path directory file query anchor".split(" "),GC={ftp:21,http:80,https:443,mailto:25},QC=(ZC.parseDataUri=function(e){var t,n=decodeURIComponent(e).split(","),r=/data:([^;]+)/.exec(n[0]);return r&&(t=r[1]),{type:t,data:n[1]}},ZC.getDocumentBaseUrl=function(e){var t;return t=0!==e.protocol.indexOf("http")&&"file:"!==e.protocol?e.href:e.protocol+"//"+e.host+e.pathname,/^[^:]+:\/\/\/?[^\/]+\//.test(t)&&(t=t.replace(/[\?#].*$/,"").replace(/[\/\\][^\/]+$/,""),/[\/\\]$/.test(t)||(t+="/")),t},ZC.prototype.setPath=function(e){var t=/^(.*?)\/?(\w+)?$/.exec(e);this.path=t[0],this.directory=t[1],this.file=t[2],this.source="",this.getURI()},ZC.prototype.toRelative=function(e){var t;if("./"===e)return e;var n=new ZC(e,{base_uri:this});if("mce_host"!==n.host&&this.host!==n.host&&n.host||this.port!==n.port||this.protocol!==n.protocol&&""!==n.protocol)return n.getURI();var r=this.getURI(),o=n.getURI();return r===o||"/"===r.charAt(r.length-1)&&r.substr(0,r.length-1)===o?r:(t=this.toRelPath(this.path,n.path),n.query&&(t+="?"+n.query),n.anchor&&(t+="#"+n.anchor),t)},ZC.prototype.toAbsolute=function(e,t){var n=new ZC(e,{base_uri:this});return n.getURI(t&&this.isSameOrigin(n))},ZC.prototype.isSameOrigin=function(e){if(this.host==e.host&&this.protocol==e.protocol){if(this.port==e.port)return!0;var t=GC[this.protocol];if(t&&(this.port||t)==(e.port||t))return!0}return!1},ZC.prototype.toRelPath=function(e,t){var n,r,o,i=0,c="",a=e.substring(0,e.lastIndexOf("/")).split("/");if(n=t.split("/"),a.length>=n.length)for(r=0,o=a.length;r=n.length||a[r]!==n[r]){i=r+1;break}if(a.length=a.length||a[r]!==n[r]){i=r+1;break}if(1===i)return t;for(r=0,o=a.length-(i-1);r]*>( | |\\s| |
    |)<\\/"+n+">[\r\n]*|
    [\r\n]*)$");return t.replace(r,"")}(e,e.serializer.serialize(n,t))}return"text"===t.format||$n(gt.fromDom(n))?t.content=r:t.content=Sn.trim(r),t.no_events||e.fire("GetContent",t),t.content}(t,n,e)});var t,n},iM.prototype.insertContent=function(e,t){t&&(e=eM({content:e},t)),this.execCommand("mceInsertContent",!1,e)},iM.prototype.resetContent=function(e){void 0===e?bu(this,this.startContent,{format:"raw"}):bu(this,e),this.undoManager.reset(),this.setDirty(!1),this.nodeChanged()},iM.prototype.isDirty=function(){return!this.isNotDirty},iM.prototype.setDirty=function(e){var t=!this.isNotDirty;this.isNotDirty=!e,e&&e!==t&&this.fire("dirty")},iM.prototype.getContainer=function(){return this.container||(this.container=JC.get(this.editorContainer||this.id+"_parent")),this.container},iM.prototype.getContentAreaContainer=function(){return this.contentAreaContainer},iM.prototype.getElement=function(){return this.targetElm||(this.targetElm=JC.get(this.id)),this.targetElm},iM.prototype.getWin=function(){var e;return this.contentWindow||(e=this.iframeElement)&&(this.contentWindow=e.contentWindow),this.contentWindow},iM.prototype.getDoc=function(){var e;return this.contentDocument||(e=this.getWin())&&(this.contentDocument=e.document),this.contentDocument},iM.prototype.getBody=function(){var e=this.getDoc();return this.bodyElement||(e?e.body:null)},iM.prototype.convertURL=function(e,t,n){var r=this.settings;return r.urlconverter_callback?this.execCallback("urlconverter_callback",e,n,!0,t):!r.convert_urls||n&&"LINK"===n.nodeName||0===e.indexOf("file:")||0===e.length?e:r.relative_urls?this.documentBaseURI.toRelative(e):e=this.documentBaseURI.toAbsolute(e,r.remove_script_host)},iM.prototype.addVisual=function(e){var t,n=this,r=n.settings,o=n.dom;e=e||n.getBody(),void 0===n.hasVisual&&(n.hasVisual=r.visual),tM(o.select("table,a",e),function(e){var i;switch(e.nodeName){case"TABLE":return t=r.visual_table_class||"mce-item-table",void((i=o.getAttrib(e,"border"))&&"0"!==i||!n.hasVisual?o.removeClass(e,t):o.addClass(e,t));case"A":return void(o.getAttrib(e,"href")||(i=o.getAttrib(e,"name")||e.id,t=r.visual_anchor_class||"mce-item-anchor",i&&n.hasVisual?o.addClass(e,t):o.removeClass(e,t)))}}),n.fire("VisualAid",{element:e,hasVisual:n.hasVisual})},iM.prototype.remove=function(){!function(e){if(!e.removed){var t=e._selectionOverrides,n=e.editorUpload,r=e.getBody(),o=e.getElement();r&&e.save({is_removing:!0}),e.removed=!0,e.unbindAllNativeEvents(),e.hasHiddenInput&&o&&kh.remove(o.nextSibling),xh(e),e.editorManager.remove(e),!e.inline&&r&&function(e){kh.setStyle(e.id,"display",e.orgDisplay)}(e),Hh(e),kh.remove(e.getContainer()),zu(t),zu(n),e.destroy()}}(this)},iM.prototype.destroy=function(e){!function(e,t){var n=e.selection,r=e.dom;e.destroyed||(t||e.removed?(t||(e.editorManager.off("beforeunload",e._beforeUnload),e.theme&&e.theme.destroy&&e.theme.destroy(),zu(n),zu(r)),function(e){var t=e.formElement;t&&(t._mceOldSubmit&&(t.submit=t._mceOldSubmit,t._mceOldSubmit=null),kh.unbind(t,"submit reset",e.formEventDelegate))}(e),function(e){e.contentAreaContainer=e.formElement=e.container=e.editorContainer=null,e.bodyElement=e.contentDocument=e.contentWindow=null,e.iframeElement=e.targetElm=null,e.selection&&(e.selection=e.selection.win=e.selection.dom=e.selection.dom.doc=null)}(e),e.destroyed=!0):e.remove())}(this,e)},iM.prototype.uploadImages=function(e){return this.editorUpload.uploadImages(e)},iM.prototype._scanForImages=function(){return this.editorUpload.scanForImages()},iM.prototype.addButton=function(){throw new Error("editor.addButton has been removed in tinymce 5x, use editor.ui.registry.addButton or editor.ui.registry.addToggleButton or editor.ui.registry.addSplitButton instead")},iM.prototype.addSidebar=function(){throw new Error("editor.addSidebar has been removed in tinymce 5x, use editor.ui.registry.addSidebar instead")},iM.prototype.addMenuItem=function(){throw new Error("editor.addMenuItem has been removed in tinymce 5x, use editor.ui.registry.addMenuItem instead")},iM.prototype.addContextToolbar=function(){throw new Error("editor.addContextToolbar has been removed in tinymce 5x, use editor.ui.registry.addContextToolbar instead")},iM);function iM(n,r,o){var i=this;this.plugins={},this.contentCSS=[],this.contentStyles=[],this.loadedCSS={},this.isNotDirty=!1,this.editorManager=o,this.documentBaseUrl=o.documentBaseURL,eM(this,RC),this.settings=function(e,t,n,r,o){var i=function(e,t,n,r){var o={id:e,theme:"silver",toolbar_drawer:"floating",plugins:"",document_base_url:t,add_form_submit_trigger:!0,submit_patch:!0,add_unload_trigger:!0,convert_urls:!0,relative_urls:!0,remove_script_host:!0,object_resizing:!0,doctype:"",visual:!0,font_size_legacy_values:"xx-small,small,medium,large,x-large,xx-large,300%",forced_root_block:"p",hidden_input:!0,inline_styles:!0,convert_fonts_to_spans:!0,indent:!0,indent_before:"p,h1,h2,h3,h4,h5,h6,blockquote,div,title,style,pre,script,td,th,ul,ol,li,dl,dt,dd,area,table,thead,tfoot,tbody,tr,section,summary,article,hgroup,aside,figure,figcaption,option,optgroup,datalist",indent_after:"p,h1,h2,h3,h4,h5,h6,blockquote,div,title,style,pre,script,td,th,ul,ol,li,dl,dt,dd,area,table,thead,tfoot,tbody,tr,section,summary,article,hgroup,aside,figure,figcaption,option,optgroup,datalist",entity_encoding:"named",url_converter:r.convertURL,url_converter_scope:r};return U(U({},o),n?Bh:{})}(t,n,Oh,e);return wu(Ih||Ph,Ih,i,r,o)}(this,n,this.documentBaseUrl,o.defaultSettings,r),this.settings.suffix&&(o.suffix=this.settings.suffix),this.suffix=o.suffix,this.settings.base_url&&o._setBaseUrl(this.settings.base_url),this.baseUri=o.baseURI,this.settings.referrer_policy&&(Gi.ScriptLoader._setReferrerPolicy(this.settings.referrer_policy),Ui.DOM.styleSheetLoader._setReferrerPolicy(this.settings.referrer_policy)),lc.languageLoad=this.settings.language_load,lc.baseURL=o.baseURL,this.id=n,this.setDirty(!1),this.documentBaseURI=new QC(this.settings.document_base_url,{base_uri:this.baseUri}),this.baseURI=this.baseUri,this.inline=!!this.settings.inline,this.shortcuts=new qC(this),this.editorCommands=new SC(this),this.settings.cache_suffix&&(Mn.cacheSuffix=this.settings.cache_suffix.replace(/^[\?\&]+/,"")),this.ui={registry:KC()};var c=function(n){var r,o=Ge("design"),i=Ge({design:{activate:t,deactivate:t,editorReadOnly:!1},readonly:{activate:t,deactivate:t,editorReadOnly:!0}});return(r=n).serializer?Gz(r):r.on("PreInit",function(){Gz(r)}),function(e){e.on("ShowCaret",function(t){Xz(e)&&t.preventDefault()}),e.on("ObjectSelected",function(t){Xz(e)&&t.preventDefault()})}(n),{isReadOnly:function(){return Xz(n)},set:function(e){return function(e,t,n,r){if(r!==n.get()){if(!Ht(t,r))throw new Error("Editor mode '"+r+"' is invalid");e.initialized?Qz(e,n,t,r):e.on("init",function(){return Qz(e,n,t,r)})}}(n,i.get(),o,e)},get:function(){return o.get()},register:function(t,n){i.set(function(t,n,r){var o;if(g(gC,n))throw new Error("Cannot override default mode "+n);return U(U({},t),((o={})[n]=U(U({},r),{deactivate:function(){try{r.deactivate()}catch(t){e.console.error("problem while deactivating editor mode "+n+":",t)}}}),o))}(i.get(),t,n))}}}(this);this.mode=c,this.setMode=c.set,o.fire("SetupEditor",{editor:this}),this.execCallback("setup",this),this.$=mi.overrideDefaults(function(){return{context:i.inline?i.getBody():i.getDoc(),element:i.getBody()}})}function cM(e){var t=e.type;dM(yM.get(),function(n){switch(t){case"scroll":n.fire("ScrollWindow",e);break;case"resize":n.fire("ResizeWindow",e)}})}function aM(e){e!==pM&&(e?mi(window).on("resize scroll",cM):mi(window).off("resize scroll",cM),pM=e)}function sM(e){var t=bM;delete gM[e.id];for(var n=0;n=n.x&&o.x+o.w<=n.w+n.x&&o.y>=n.y&&o.y+o.h<=n.h+n.y)return r[i];return null},intersect:function(e,t){var n,r,o,i;return n=AM(e.x,t.x),r=AM(e.y,t.y),o=kM(e.x+e.w,t.x+t.w),i=kM(e.y+e.h,t.y+t.h),o-n<0||i-r<0?null:EM(n,r,o-n,i-r)},clamp:function(e,t,n){var r,o,i,c,a,s,l,u,h,f;return a=e.x,s=e.y,l=e.x+e.w,u=e.y+e.h,h=t.x+t.w,f=t.y+t.h,r=AM(0,t.x-a),o=AM(0,t.y-s),i=AM(0,l-h),c=AM(0,u-f),a+=r,s+=o,n&&(l+=r,u+=o,a-=i,s-=c),EM(a,s,(l-=i)-a,(u-=c)-s)},create:EM,fromClientRect:function(e){return EM(e.left,e.top,e.width,e.height)}},NM=Sn.each,OM=Sn.extend;wM.extend=HM=function(e){function t(){var e,t,n;if(!SM&&(this.init&&this.init.apply(this,arguments),t=this.Mixins))for(e=t.length;e--;)(n=t[e]).init&&n.init.apply(this,arguments)}function n(){return this}function r(e,t){return function(){var n,r=this._super;return this._super=a[e],n=t.apply(this,arguments),this._super=r,n}}var o,i,c,a=this.prototype;for(i in SM=!0,o=new this,SM=!1,e.Mixins&&(NM(e.Mixins,function(t){for(var n in t)"init"!==n&&(e[n]=t[n])}),a.Mixins&&(e.Mixins=a.Mixins.concat(e.Mixins))),e.Methods&&NM(e.Methods.split(","),function(t){e[t]=n}),e.Properties&&NM(e.Properties.split(","),function(t){var n="_"+t;e[t]=function(e){return void 0!==e?(this[n]=e,this):this[n]}}),e.Statics&&NM(e.Statics,function(e,n){t[n]=e}),e.Defaults&&a.Defaults&&(e.Defaults=OM({},a.Defaults,e.Defaults)),e)"function"==typeof(c=e[i])&&a[i]?o[i]=r(i,c):o[i]=c;return t.prototype=o,(t.constructor=t).extend=HM,t};var IM,PM,RM,BM,jM=Math.min,FM=Math.max,$M=Math.round,qM={serialize:function(e){var t=JSON.stringify(e);return T(t)?t.replace(/[\u0080-\uFFFF]/g,function(e){var t=e.charCodeAt(0).toString(16);return"\\u"+"0000".substring(t.length)+t}):t},parse:function(e){try{return JSON.parse(e)}catch(e){}}},UM={callbacks:{},count:0,send:function(e){var t=this,n=Ui.DOM,r=void 0!==e.count?e.count:t.count,o="tinymce_jsonp_"+r;t.callbacks[r]=function(i){n.remove(o),delete t.callbacks[r],e.callback(i)},n.add(n.doc.body,"script",{id:o,src:e.url,type:"text/javascript"}),t.count++}},WM=U(U({},IC),{send:function(t){var n,r=0,o=function(){!t.async||4===n.readyState||1e4n?t+n:n}function a(e,t){return Math.round((/%/.test(e)?("x"===t?H.width():o())/100:1)*parseInt(e,10))}function s(e,t){return e.get("photo")||e.get("photoRegex").test(t)}function l(e,t){return e.get("retinaUrl")&&n.devicePixelRatio>1?t.replace(e.get("photoRegex"),e.get("retinaSuffix")):t}function u(e){"contains"in b[0]&&!b[0].contains(e.target)&&e.target!==g[0]&&(e.stopPropagation(),b.focus())}function h(e){h.str!==e&&(b.add(g).removeClass(h.str).addClass(e),h.str=e)}function f(n){e(t).trigger(n),ce.triggerHandler(n)}function d(n){var o;if(!W){if(o=e(n).data(Z),function(t){F=0,t&&!1!==t&&"nofollow"!==t?(x=e("."+J).filter(function(){return new i(this,e.data(this,Z)).get("rel")===t}),-1===(F=x.index(I.el))&&(x=x.add(I.el),F=x.length-1)):x=e(I.el)}((I=new i(n,o)).get("rel")),!q){q=U=!0,h(I.get("className")),b.css({visibility:"hidden",display:"block",opacity:""}),S=r(ae,"LoadedContent","width:0; height:0; overflow:hidden; visibility:hidden"),y.css({width:"",height:""}).append(S),P=C.height()+_.height()+y.outerHeight(!0)-y.height(),R=M.width()+w.width()+y.outerWidth(!0)-y.width(),B=S.outerHeight(!0),j=S.outerWidth(!0);var c=a(I.get("initialWidth"),"x"),s=a(I.get("initialHeight"),"y"),l=I.get("maxWidth"),d=I.get("maxHeight");I.w=Math.max((!1!==l?Math.min(c,a(l,"x")):c)-j-R,0),I.h=Math.max((!1!==d?Math.min(s,a(d,"y")):s)-B-P,0),S.css({width:"",height:I.h}),X.position(),f(ee),I.get("onOpen"),O.add(k).hide(),b.focus(),I.get("trapFocus")&&t.addEventListener&&(t.addEventListener("focus",u,!0),ce.one(oe,function(){t.removeEventListener("focus",u,!0)})),I.get("returnFocus")&&ce.one(oe,function(){e(I.el).focus()})}var m=parseFloat(I.get("opacity"));g.css({opacity:m==m?m:"",cursor:I.get("overlayClose")?"pointer":"",visibility:"visible"}).show(),I.get("closeButton")?N.html(I.get("close")).appendTo(y):N.appendTo("
    "),p()}}function m(){b||(G=!1,H=e(n),b=r(ae).attr({id:Z,class:!1===e.support.opacity?K+"IE":"",role:"dialog",tabindex:"-1"}).hide(),g=r(ae,"Overlay").hide(),V=e([r(ae,"LoadingOverlay")[0],r(ae,"LoadingGraphic")[0]]),z=r(ae,"Wrapper"),y=r(ae,"Content").append(k=r(ae,"Title"),A=r(ae,"Current"),D=e('File upload error '+n+"
    ").prependTo("#alerts")}void 0!==$.fn.wysiwyg&&(console.log("init_wysiwyg"),$(".editor-wrapper").each(function(){var t=$(this).attr("id");$(this).wysiwyg({toolbarSelector:'[data-target="#'+t+'"]',fileUploadError:e})}),window.prettyPrint,prettyPrint())}function init_cropper(){if(void 0!==$.fn.cropper){console.log("init_cropper");var e=$("#image"),t=$("#download"),n=$("#dataX"),r=$("#dataY"),o=$("#dataHeight"),i=$("#dataWidth"),c=$("#dataRotate"),a=$("#dataScaleX"),s=$("#dataScaleY"),l={aspectRatio:16/9,preview:".img-preview",crop:function(e){n.val(Math.round(e.x)),r.val(Math.round(e.y)),o.val(Math.round(e.height)),i.val(Math.round(e.width)),c.val(e.rotate),a.val(e.scaleX),s.val(e.scaleY)}};$('[data-toggle="tooltip"]').tooltip(),e.on({"build.cropper":function(e){console.log(e.type)},"built.cropper":function(e){console.log(e.type)},"cropstart.cropper":function(e){console.log(e.type,e.action)},"cropmove.cropper":function(e){console.log(e.type,e.action)},"cropend.cropper":function(e){console.log(e.type,e.action)},"crop.cropper":function(e){console.log(e.type,e.x,e.y,e.width,e.height,e.rotate,e.scaleX,e.scaleY)},"zoom.cropper":function(e){console.log(e.type,e.ratio)}}).cropper(l),$.isFunction(document.createElement("canvas").getContext)||$('button[data-method="getCroppedCanvas"]').prop("disabled",!0),void 0===document.createElement("cropper").style.transition&&($('button[data-method="rotate"]').prop("disabled",!0),$('button[data-method="scale"]').prop("disabled",!0)),void 0===t[0].download&&t.addClass("disabled"),$(".docs-toggles").on("change","input",function(){var t,n,r=$(this),o=r.attr("name"),i=r.prop("type");e.data("cropper")&&("checkbox"===i?(l[o]=r.prop("checked"),t=e.cropper("getCropBoxData"),n=e.cropper("getCanvasData"),l.built=function(){e.cropper("setCropBoxData",t),e.cropper("setCanvasData",n)}):"radio"===i&&(l[o]=r.val()),e.cropper("destroy").cropper(l))}),$(".docs-buttons").on("click","[data-method]",function(){var n,r,o=$(this),i=o.data();if(!o.prop("disabled")&&!o.hasClass("disabled")&&e.data("cropper")&&i.method){if(void 0!==(i=$.extend({},i)).target&&(n=$(i.target),void 0===i.option))try{i.option=JSON.parse(n.val())}catch(e){console.log(e.message)}switch(r=e.cropper(i.method,i.option,i.secondOption),i.method){case"scaleX":case"scaleY":$(this).data("option",-i.option);break;case"getCroppedCanvas":r&&($("#getCroppedCanvasModal").modal().find(".modal-body").html(r),t.hasClass("disabled")||t.attr("href",r.toDataURL()))}if($.isPlainObject(r)&&n)try{n.val(JSON.stringify(r))}catch(e){console.log(e.message)}}}),$(document.body).on("keydown",function(t){if(e.data("cropper")&&!(this.scrollTop>300))switch(t.which){case 37:t.preventDefault(),e.cropper("move",-1,0);break;case 38:t.preventDefault(),e.cropper("move",0,-1);break;case 39:t.preventDefault(),e.cropper("move",1,0);break;case 40:t.preventDefault(),e.cropper("move",0,1)}});var u,h=$("#inputImage"),f=window.URL||window.webkitURL;f?h.change(function(){var t,n=this.files;e.data("cropper")&&n&&n.length&&(t=n[0],/^image\/\w+$/.test(t.type)?(u=f.createObjectURL(t),e.one("built.cropper",function(){f.revokeObjectURL(u)}).cropper("reset").cropper("replace",u),h.val("")):window.alert("Please choose an image file."))}):h.prop("disabled",!0).parent().addClass("disabled")}}function init_knob(){if(void 0!==$.fn.knob){console.log("init_knob"),$(".knob").knob({change:function(e){},release:function(e){console.log("release : "+e)},cancel:function(){console.log("cancel : ",this)},draw:function(){if("tron"==this.$.data("skin")){this.cursorExt=.3;var e,t=this.arc(this.cv);return this.g.lineWidth=this.lineWidth,this.o.displayPrevious&&(e=this.arc(this.v),this.g.beginPath(),this.g.strokeStyle=this.pColor,this.g.arc(this.xy,this.xy,this.radius-this.lineWidth,e.s,e.e,e.d),this.g.stroke()),this.g.beginPath(),this.g.strokeStyle=this.o.fgColor,this.g.arc(this.xy,this.xy,this.radius-this.lineWidth,t.s,t.e,t.d),this.g.stroke(),this.g.lineWidth=2,this.g.beginPath(),this.g.strokeStyle=this.o.fgColor,this.g.arc(this.xy,this.xy,this.radius-this.lineWidth+1+2*this.lineWidth/3,0,2*Math.PI,!1),this.g.stroke(),!1}}});var e,t=0,n=0,r=0,o=$("div.idir"),i=$("div.ival");$("input.infinite").knob({min:0,max:20,stopper:!1,change:function(){e>this.cv?t?(r--,o.show().html("-").fadeOut(),i.html(r),t=0):(t=1,n=0):e
    ";document.getElementById("custom_notifications")?($("#custom_notifications ul.notifications").append("
  • "),$("#custom_notifications #notif-group").append(n),e++,CustomTabs(t)):alert("doesnt exists")},CustomTabs=function(e){$(".tabbed_notifications > div").hide(),$(".tabbed_notifications > div:first-of-type").show(),$("#custom_notifications").removeClass("dsp_none"),$(".notifications a").click(function(e){e.preventDefault();var t=$(this),n="#"+t.parents(".notifications").data("tabbed_notifications"),r=t.closest("li").siblings().children("a"),o=t.attr("href");r.removeClass("active"),t.addClass("active"),$(n).children("div").hide(),$(o).show()})},CustomTabs();var t=idname="";$(document).on("click",".notification_close",function(e){idname=$(this).parent().parent().attr("id"),t=idname.substr(-2),$("#ntf"+t).remove(),$("#ntlink"+t).parent().remove(),$(".notifications a").first().addClass("active"),$("#notif-group div").first().css("display","block")})}}function init_EasyPieChart(){if(void 0!==$.fn.easyPieChart){console.log("init_EasyPieChart"),$(".chart").easyPieChart({easing:"easeOutElastic",delay:3e3,barColor:"#26B99A",trackColor:"#fff",scaleColor:!1,lineWidth:20,trackWidth:16,lineCap:"butt",onStep:function(e,t,n){$(this.el).find(".percent").text(Math.round(n))}});var e=window.chart=$(".chart").data("easyPieChart");$(".js_update").on("click",function(){e.update(200*Math.random()-100)});var t=$.fn.popover.Constructor.prototype.leave;$.fn.popover.Constructor.prototype.leave=function(e){var n,r,o=e instanceof this.constructor?e:$(e.currentTarget)[this.type](this.getDelegateOptions()).data("bs."+this.type);t.call(this,e),e.currentTarget&&(n=$(e.currentTarget).siblings(".popover"),r=o.timeout,n.one("mouseenter",function(){clearTimeout(r),n.one("mouseleave",function(){$.fn.popover.Constructor.prototype.leave.call(o,o)})}))},$("body").popover({selector:"[data-popover]",trigger:"click hover",delay:{show:50,hide:400}})}}function init_charts(){if(console.log("run_charts typeof ["+typeof Chart+"]"),"undefined"!=typeof Chart){if(console.log("init_charts"),Chart.defaults.global.legend={enabled:!1},$("#canvas_line").length&&new Chart(document.getElementById("canvas_line"),{type:"line",data:{labels:["January","February","March","April","May","June","July"],datasets:[{label:"My First dataset",backgroundColor:"rgba(38, 185, 154, 0.31)",borderColor:"rgba(38, 185, 154, 0.7)",pointBorderColor:"rgba(38, 185, 154, 0.7)",pointBackgroundColor:"rgba(38, 185, 154, 0.7)",pointHoverBackgroundColor:"#fff",pointHoverBorderColor:"rgba(220,220,220,1)",pointBorderWidth:1,data:[31,74,6,39,20,85,7]},{label:"My Second dataset",backgroundColor:"rgba(3, 88, 106, 0.3)",borderColor:"rgba(3, 88, 106, 0.70)",pointBorderColor:"rgba(3, 88, 106, 0.70)",pointBackgroundColor:"rgba(3, 88, 106, 0.70)",pointHoverBackgroundColor:"#fff",pointHoverBorderColor:"rgba(151,187,205,1)",pointBorderWidth:1,data:[82,23,66,9,99,4,2]}]}}),$("#canvas_line1").length&&new Chart(document.getElementById("canvas_line1"),{type:"line",data:{labels:["January","February","March","April","May","June","July"],datasets:[{label:"My First dataset",backgroundColor:"rgba(38, 185, 154, 0.31)",borderColor:"rgba(38, 185, 154, 0.7)",pointBorderColor:"rgba(38, 185, 154, 0.7)",pointBackgroundColor:"rgba(38, 185, 154, 0.7)",pointHoverBackgroundColor:"#fff",pointHoverBorderColor:"rgba(220,220,220,1)",pointBorderWidth:1,data:[31,74,6,39,20,85,7]},{label:"My Second dataset",backgroundColor:"rgba(3, 88, 106, 0.3)",borderColor:"rgba(3, 88, 106, 0.70)",pointBorderColor:"rgba(3, 88, 106, 0.70)",pointBackgroundColor:"rgba(3, 88, 106, 0.70)",pointHoverBackgroundColor:"#fff",pointHoverBorderColor:"rgba(151,187,205,1)",pointBorderWidth:1,data:[82,23,66,9,99,4,2]}]}}),$("#canvas_line2").length&&new Chart(document.getElementById("canvas_line2"),{type:"line",data:{labels:["January","February","March","April","May","June","July"],datasets:[{label:"My First dataset",backgroundColor:"rgba(38, 185, 154, 0.31)",borderColor:"rgba(38, 185, 154, 0.7)",pointBorderColor:"rgba(38, 185, 154, 0.7)",pointBackgroundColor:"rgba(38, 185, 154, 0.7)",pointHoverBackgroundColor:"#fff",pointHoverBorderColor:"rgba(220,220,220,1)",pointBorderWidth:1,data:[31,74,6,39,20,85,7]},{label:"My Second dataset",backgroundColor:"rgba(3, 88, 106, 0.3)",borderColor:"rgba(3, 88, 106, 0.70)",pointBorderColor:"rgba(3, 88, 106, 0.70)",pointBackgroundColor:"rgba(3, 88, 106, 0.70)",pointHoverBackgroundColor:"#fff",pointHoverBorderColor:"rgba(151,187,205,1)",pointBorderWidth:1,data:[82,23,66,9,99,4,2]}]}}),$("#canvas_line3").length&&new Chart(document.getElementById("canvas_line3"),{type:"line",data:{labels:["January","February","March","April","May","June","July"],datasets:[{label:"My First dataset",backgroundColor:"rgba(38, 185, 154, 0.31)",borderColor:"rgba(38, 185, 154, 0.7)",pointBorderColor:"rgba(38, 185, 154, 0.7)",pointBackgroundColor:"rgba(38, 185, 154, 0.7)",pointHoverBackgroundColor:"#fff",pointHoverBorderColor:"rgba(220,220,220,1)",pointBorderWidth:1,data:[31,74,6,39,20,85,7]},{label:"My Second dataset",backgroundColor:"rgba(3, 88, 106, 0.3)",borderColor:"rgba(3, 88, 106, 0.70)",pointBorderColor:"rgba(3, 88, 106, 0.70)",pointBackgroundColor:"rgba(3, 88, 106, 0.70)",pointHoverBackgroundColor:"#fff",pointHoverBorderColor:"rgba(151,187,205,1)",pointBorderWidth:1,data:[82,23,66,9,99,4,2]}]}}),$("#canvas_line4").length&&new Chart(document.getElementById("canvas_line4"),{type:"line",data:{labels:["January","February","March","April","May","June","July"],datasets:[{label:"My First dataset",backgroundColor:"rgba(38, 185, 154, 0.31)",borderColor:"rgba(38, 185, 154, 0.7)",pointBorderColor:"rgba(38, 185, 154, 0.7)",pointBackgroundColor:"rgba(38, 185, 154, 0.7)",pointHoverBackgroundColor:"#fff",pointHoverBorderColor:"rgba(220,220,220,1)",pointBorderWidth:1,data:[31,74,6,39,20,85,7]},{label:"My Second dataset",backgroundColor:"rgba(3, 88, 106, 0.3)",borderColor:"rgba(3, 88, 106, 0.70)",pointBorderColor:"rgba(3, 88, 106, 0.70)",pointBackgroundColor:"rgba(3, 88, 106, 0.70)",pointHoverBackgroundColor:"#fff",pointHoverBorderColor:"rgba(151,187,205,1)",pointBorderWidth:1,data:[82,23,66,9,99,4,2]}]}}),$("#lineChart").length){var e=document.getElementById("lineChart");new Chart(e,{type:"line",data:{labels:["January","February","March","April","May","June","July"],datasets:[{label:"My First dataset",backgroundColor:"rgba(38, 185, 154, 0.31)",borderColor:"rgba(38, 185, 154, 0.7)",pointBorderColor:"rgba(38, 185, 154, 0.7)",pointBackgroundColor:"rgba(38, 185, 154, 0.7)",pointHoverBackgroundColor:"#fff",pointHoverBorderColor:"rgba(220,220,220,1)",pointBorderWidth:1,data:[31,74,6,39,20,85,7]},{label:"My Second dataset",backgroundColor:"rgba(3, 88, 106, 0.3)",borderColor:"rgba(3, 88, 106, 0.70)",pointBorderColor:"rgba(3, 88, 106, 0.70)",pointBackgroundColor:"rgba(3, 88, 106, 0.70)",pointHoverBackgroundColor:"#fff",pointHoverBorderColor:"rgba(151,187,205,1)",pointBorderWidth:1,data:[82,23,66,9,99,4,2]}]}})}if($("#mybarChart").length){e=document.getElementById("mybarChart");new Chart(e,{type:"bar",data:{labels:["January","February","March","April","May","June","July"],datasets:[{label:"# of Votes",backgroundColor:"#26B99A",data:[51,30,40,28,92,50,45]},{label:"# of Votes",backgroundColor:"#03586A",data:[41,56,25,48,72,34,12]}]},options:{scales:{yAxes:[{ticks:{beginAtZero:!0}}]}}})}if($("#canvasDoughnut").length){e=document.getElementById("canvasDoughnut");var t={labels:["Dark Grey","Purple Color","Gray Color","Green Color","Blue Color"],datasets:[{data:[120,50,140,180,100],backgroundColor:["#455C73","#9B59B6","#BDC3C7","#26B99A","#3498DB"],hoverBackgroundColor:["#34495E","#B370CF","#CFD4D8","#36CAAB","#49A9EA"]}]};new Chart(e,{type:"doughnut",tooltipFillColor:"rgba(51, 51, 51, 0.55)",data:t})}if($("#canvasRadar").length){e=document.getElementById("canvasRadar"),t={labels:["Eating","Drinking","Sleeping","Designing","Coding","Cycling","Running"],datasets:[{label:"My First dataset",backgroundColor:"rgba(3, 88, 106, 0.2)",borderColor:"rgba(3, 88, 106, 0.80)",pointBorderColor:"rgba(3, 88, 106, 0.80)",pointBackgroundColor:"rgba(3, 88, 106, 0.80)",pointHoverBackgroundColor:"#fff",pointHoverBorderColor:"rgba(220,220,220,1)",data:[65,59,90,81,56,55,40]},{label:"My Second dataset",backgroundColor:"rgba(38, 185, 154, 0.2)",borderColor:"rgba(38, 185, 154, 0.85)",pointColor:"rgba(38, 185, 154, 0.85)",pointStrokeColor:"#fff",pointHighlightFill:"#fff",pointHighlightStroke:"rgba(151,187,205,1)",data:[28,48,40,19,96,27,100]}]};new Chart(e,{type:"radar",data:t})}if($("#pieChart").length){e=document.getElementById("pieChart"),t={datasets:[{data:[120,50,140,180,100],backgroundColor:["#455C73","#9B59B6","#BDC3C7","#26B99A","#3498DB"],label:"My dataset"}],labels:["Dark Gray","Purple","Gray","Green","Blue"]};new Chart(e,{data:t,type:"pie",otpions:{legend:!1}})}if($("#polarArea").length){e=document.getElementById("polarArea"),t={datasets:[{data:[120,50,140,180,100],backgroundColor:["#455C73","#9B59B6","#BDC3C7","#26B99A","#3498DB"],label:"My dataset"}],labels:["Dark Gray","Purple","Gray","Green","Blue"]};new Chart(e,{data:t,type:"polarArea",options:{scale:{ticks:{beginAtZero:!0}}}})}}}function init_compose(){void 0!==$.fn.slideToggle&&(console.log("init_compose"),$("#compose, .compose-close").click(function(){$(".compose").slideToggle()}))}function init_calendar(){if(void 0!==$.fn.fullCalendar){console.log("init_calendar");var e,t=new Date,n=t.getDate(),r=t.getMonth(),o=t.getFullYear(),i=$("#calendar").fullCalendar({header:{left:"prev,next today",center:"title",right:"month,agendaWeek,agendaDay,listMonth"},selectable:!0,selectHelper:!0,select:function(t,n,r){$("#fc_create").click(),e=t,ended=n,$(".antosubmit").on("click",function(){var t=$("#title").val();return n&&(ended=n),$("#event_type").val(),t&&i.fullCalendar("renderEvent",{title:t,start:e,end:n,allDay:r},!0),$("#title").val(""),i.fullCalendar("unselect"),$(".antoclose").click(),!1})},eventClick:function(e,t,n){$("#fc_edit").click(),$("#title2").val(e.title),$("#event_type").val(),$(".antosubmit2").on("click",function(){e.title=$("#title2").val(),i.fullCalendar("updateEvent",e),$(".antoclose2").click()}),i.fullCalendar("unselect")},editable:!0,events:[{title:"All Day Event",start:new Date(o,r,1)},{title:"Long Event",start:new Date(o,r,n-5),end:new Date(o,r,n-2)},{title:"Meeting",start:new Date(o,r,n,10,30),allDay:!1},{title:"Lunch",start:new Date(o,r,n+14,12,0),end:new Date(o,r,n,14,0),allDay:!1},{title:"Birthday Party",start:new Date(o,r,n+1,19,0),end:new Date(o,r,n+1,22,30),allDay:!1},{title:"Click for Google",start:new Date(o,r,28),end:new Date(o,r,29),url:"http://google.com/"}]})}}function init_DataTables(){if(console.log("run_datatables"),void 0!==$.fn.DataTable){console.log("init_DataTables");TableManageButtons=function(){"use strict";return{init:function(){$("#datatable-buttons").length&&$("#datatable-buttons").DataTable({dom:"Bfrtip",buttons:[{extend:"copy",className:"btn-sm"},{extend:"csv",className:"btn-sm"},{extend:"excel",className:"btn-sm"},{extend:"pdfHtml5",className:"btn-sm"},{extend:"print",className:"btn-sm"}],responsive:!0})}}}(),$("#datatable").dataTable(),$("#datatable-keytable").DataTable({keys:!0}),$("#datatable-responsive").DataTable(),$("#datatable-scroller").DataTable({ajax:"js/datatables/json/scroller-demo.json",deferRender:!0,scrollY:380,scrollCollapse:!0,scroller:!0}),$("#datatable-fixed-header").DataTable({fixedHeader:!0});var e=$("#datatable-checkbox");e.dataTable({order:[[1,"asc"]],columnDefs:[{orderable:!1,targets:[0]}]}),e.on("draw.dt",function(){$("checkbox input").iCheck({checkboxClass:"icheckbox_flat-green"})}),TableManageButtons.init()}}function init_morris_charts(){"undefined"!=typeof Morris&&(console.log("init_morris_charts"),$("#graph_bar").length&&Morris.Bar({element:"graph_bar",data:[{device:"iPhone 4",geekbench:380},{device:"iPhone 4S",geekbench:655},{device:"iPhone 3GS",geekbench:275},{device:"iPhone 5",geekbench:1571},{device:"iPhone 5S",geekbench:655},{device:"iPhone 6",geekbench:2154},{device:"iPhone 6 Plus",geekbench:1144},{device:"iPhone 6S",geekbench:2371},{device:"iPhone 6S Plus",geekbench:1471},{device:"Other",geekbench:1371}],xkey:"device",ykeys:["geekbench"],labels:["Geekbench"],barRatio:.4,barColors:["#26B99A","#34495E","#ACADAC","#3498DB"],xLabelAngle:35,hideHover:"auto",resize:!0}),$("#graph_bar_group").length&&Morris.Bar({element:"graph_bar_group",data:[{period:"2016-10-01",licensed:807,sorned:660},{period:"2016-09-30",licensed:1251,sorned:729},{period:"2016-09-29",licensed:1769,sorned:1018},{period:"2016-09-20",licensed:2246,sorned:1461},{period:"2016-09-19",licensed:2657,sorned:1967},{period:"2016-09-18",licensed:3148,sorned:2627},{period:"2016-09-17",licensed:3471,sorned:3740},{period:"2016-09-16",licensed:2871,sorned:2216},{period:"2016-09-15",licensed:2401,sorned:1656},{period:"2016-09-10",licensed:2115,sorned:1022}],xkey:"period",barColors:["#26B99A","#34495E","#ACADAC","#3498DB"],ykeys:["licensed","sorned"],labels:["Licensed","SORN"],hideHover:"auto",xLabelAngle:60,resize:!0}),$("#graphx").length&&Morris.Bar({element:"graphx",data:[{x:"2015 Q1",y:2,z:3,a:4},{x:"2015 Q2",y:3,z:5,a:6},{x:"2015 Q3",y:4,z:3,a:2},{x:"2015 Q4",y:2,z:4,a:5}],xkey:"x",ykeys:["y","z","a"],barColors:["#26B99A","#34495E","#ACADAC","#3498DB"],hideHover:"auto",labels:["Y","Z","A"],resize:!0}).on("click",function(e,t){console.log(e,t)}),$("#graph_area").length&&Morris.Area({element:"graph_area",data:[{period:"2014 Q1",iphone:2666,ipad:null,itouch:2647},{period:"2014 Q2",iphone:2778,ipad:2294,itouch:2441},{period:"2014 Q3",iphone:4912,ipad:1969,itouch:2501},{period:"2014 Q4",iphone:3767,ipad:3597,itouch:5689},{period:"2015 Q1",iphone:6810,ipad:1914,itouch:2293},{period:"2015 Q2",iphone:5670,ipad:4293,itouch:1881},{period:"2015 Q3",iphone:4820,ipad:3795,itouch:1588},{period:"2015 Q4",iphone:15073,ipad:5967,itouch:5175},{period:"2016 Q1",iphone:10687,ipad:4460,itouch:2028},{period:"2016 Q2",iphone:8432,ipad:5713,itouch:1791}],xkey:"period",ykeys:["iphone","ipad","itouch"],lineColors:["#26B99A","#34495E","#ACADAC","#3498DB"],labels:["iPhone","iPad","iPod Touch"],pointSize:2,hideHover:"auto",resize:!0}),$("#graph_donut").length&&Morris.Donut({element:"graph_donut",data:[{label:"Jam",value:25},{label:"Frosted",value:40},{label:"Custard",value:25},{label:"Sugar",value:10}],colors:["#26B99A","#34495E","#ACADAC","#3498DB"],formatter:function(e){return e+"%"},resize:!0}),$("#graph_line").length&&(Morris.Line({element:"graph_line",xkey:"year",ykeys:["value"],labels:["Value"],hideHover:"auto",lineColors:["#26B99A","#34495E","#ACADAC","#3498DB"],data:[{year:"2012",value:20},{year:"2013",value:10},{year:"2014",value:5},{year:"2015",value:5},{year:"2016",value:20}],resize:!0}),$MENU_TOGGLE.on("click",function(){$(window).resize()})))}function init_echarts(){if("undefined"!=typeof echarts){console.log("init_echarts");var e={color:["#26B99A","#34495E","#BDC3C7","#3498DB","#9B59B6","#8abb6f","#759c6a","#bfd3b7"],title:{itemGap:8,textStyle:{fontWeight:"normal",color:"#408829"}},dataRange:{color:["#1f610a","#97b58d"]},toolbox:{color:["#408829","#408829","#408829","#408829"]},tooltip:{backgroundColor:"rgba(0,0,0,0.5)",axisPointer:{type:"line",lineStyle:{color:"#408829",type:"dashed"},crossStyle:{color:"#408829"},shadowStyle:{color:"rgba(200,200,200,0.3)"}}},dataZoom:{dataBackgroundColor:"#eee",fillerColor:"rgba(64,136,41,0.2)",handleColor:"#408829"},grid:{borderWidth:0},categoryAxis:{axisLine:{lineStyle:{color:"#408829"}},splitLine:{lineStyle:{color:["#eee"]}}},valueAxis:{axisLine:{lineStyle:{color:"#408829"}},splitArea:{show:!0,areaStyle:{color:["rgba(250,250,250,0.1)","rgba(200,200,200,0.1)"]}},splitLine:{lineStyle:{color:["#eee"]}}},timeline:{lineStyle:{color:"#408829"},controlStyle:{normal:{color:"#408829"},emphasis:{color:"#408829"}}},k:{itemStyle:{normal:{color:"#68a54a",color0:"#a9cba2",lineStyle:{width:1,color:"#408829",color0:"#86b379"}}}},map:{itemStyle:{normal:{areaStyle:{color:"#ddd"},label:{textStyle:{color:"#c12e34"}}},emphasis:{areaStyle:{color:"#99d2dd"},label:{textStyle:{color:"#c12e34"}}}}},force:{itemStyle:{normal:{linkStyle:{strokeColor:"#408829"}}}},chord:{padding:4,itemStyle:{normal:{lineStyle:{width:1,color:"rgba(128, 128, 128, 0.5)"},chordStyle:{lineStyle:{width:1,color:"rgba(128, 128, 128, 0.5)"}}},emphasis:{lineStyle:{width:1,color:"rgba(128, 128, 128, 0.5)"},chordStyle:{lineStyle:{width:1,color:"rgba(128, 128, 128, 0.5)"}}}}},gauge:{startAngle:225,endAngle:-45,axisLine:{show:!0,lineStyle:{color:[[.2,"#86b379"],[.8,"#68a54a"],[1,"#408829"]],width:8}},axisTick:{splitNumber:10,length:12,lineStyle:{color:"auto"}},axisLabel:{textStyle:{color:"auto"}},splitLine:{length:18,lineStyle:{color:"auto"}},pointer:{length:"90%",color:"auto"},title:{textStyle:{color:"#333"}},detail:{textStyle:{color:"auto"}}},textStyle:{fontFamily:"Arial, Verdana, sans-serif"}};if($("#mainb").length)echarts.init(document.getElementById("mainb"),e).setOption({title:{text:"Graph title",subtext:"Graph Sub-text"},tooltip:{trigger:"axis"},legend:{data:["sales","purchases"]},toolbox:{show:!1},calculable:!1,xAxis:[{type:"category",data:["1?","2?","3?","4?","5?","6?","7?","8?","9?","10?","11?","12?"]}],yAxis:[{type:"value"}],series:[{name:"sales",type:"bar",data:[2,4.9,7,23.2,25.6,76.7,135.6,162.2,32.6,20,6.4,3.3],markPoint:{data:[{type:"max",name:"???"},{type:"min",name:"???"}]},markLine:{data:[{type:"average",name:"???"}]}},{name:"purchases",type:"bar",data:[2.6,5.9,9,26.4,28.7,70.7,175.6,182.2,48.7,18.8,6,2.3],markPoint:{data:[{name:"sales",value:182.2,xAxis:7,yAxis:183},{name:"purchases",value:2.3,xAxis:11,yAxis:3}]},markLine:{data:[{type:"average",name:"???"}]}}]});if($("#echart_sonar").length)echarts.init(document.getElementById("echart_sonar"),e).setOption({title:{text:"Budget vs spending",subtext:"Subtitle"},tooltip:{trigger:"item"},legend:{orient:"vertical",x:"right",y:"bottom",data:["Allocated Budget","Actual Spending"]},toolbox:{show:!0,feature:{restore:{show:!0,title:"Restore"},saveAsImage:{show:!0,title:"Save Image"}}},polar:[{indicator:[{text:"Sales",max:6e3},{text:"Administration",max:16e3},{text:"Information Techology",max:3e4},{text:"Customer Support",max:38e3},{text:"Development",max:52e3},{text:"Marketing",max:25e3}]}],calculable:!0,series:[{name:"Budget vs spending",type:"radar",data:[{value:[4300,1e4,28e3,35e3,5e4,19e3],name:"Allocated Budget"},{value:[5e3,14e3,28e3,31e3,42e3,21e3],name:"Actual Spending"}]}]});if($("#echart_pyramid").length)echarts.init(document.getElementById("echart_pyramid"),e).setOption({title:{text:"Echart Pyramid Graph",subtext:"Subtitle"},tooltip:{trigger:"item",formatter:"{a}
    {b} : {c}%"},toolbox:{show:!0,feature:{restore:{show:!0,title:"Restore"},saveAsImage:{show:!0,title:"Save Image"}}},legend:{data:["Something #1","Something #2","Something #3","Something #4","Something #5"],orient:"vertical",x:"left",y:"bottom"},calculable:!0,series:[{name:"漏斗图",type:"funnel",width:"40%",data:[{value:60,name:"Something #1"},{value:40,name:"Something #2"},{value:20,name:"Something #3"},{value:80,name:"Something #4"},{value:100,name:"Something #5"}]}]});if($("#echart_gauge").length)echarts.init(document.getElementById("echart_gauge"),e).setOption({tooltip:{formatter:"{a}
    {b} : {c}%"},toolbox:{show:!0,feature:{restore:{show:!0,title:"Restore"},saveAsImage:{show:!0,title:"Save Image"}}},series:[{name:"Performance",type:"gauge",center:["50%","50%"],startAngle:140,endAngle:-140,min:0,max:100,precision:0,splitNumber:10,axisLine:{show:!0,lineStyle:{color:[[.2,"lightgreen"],[.4,"orange"],[.8,"skyblue"],[1,"#ff4500"]],width:30}},axisTick:{show:!0,splitNumber:5,length:8,lineStyle:{color:"#eee",width:1,type:"solid"}},axisLabel:{show:!0,formatter:function(e){switch(e+""){case"10":return"a";case"30":return"b";case"60":return"c";case"90":return"d";default:return""}},textStyle:{color:"#333"}},splitLine:{show:!0,length:30,lineStyle:{color:"#eee",width:2,type:"solid"}},pointer:{length:"80%",width:8,color:"auto"},title:{show:!0,offsetCenter:["-65%",-10],textStyle:{color:"#333",fontSize:15}},detail:{show:!0,backgroundColor:"rgba(0,0,0,0)",borderWidth:0,borderColor:"#ccc",width:100,height:40,offsetCenter:["-60%",10],formatter:"{value}%",textStyle:{color:"auto",fontSize:30}},data:[{value:50,name:"Performance"}]}]});if($("#echart_line").length)echarts.init(document.getElementById("echart_line"),e).setOption({title:{text:"Line Graph",subtext:"Subtitle"},tooltip:{trigger:"axis"},legend:{x:220,y:40,data:["Intent","Pre-order","Deal"]},toolbox:{show:!0,feature:{magicType:{show:!0,title:{line:"Line",bar:"Bar",stack:"Stack",tiled:"Tiled"},type:["line","bar","stack","tiled"]},restore:{show:!0,title:"Restore"},saveAsImage:{show:!0,title:"Save Image"}}},calculable:!0,xAxis:[{type:"category",boundaryGap:!1,data:["Mon","Tue","Wed","Thu","Fri","Sat","Sun"]}],yAxis:[{type:"value"}],series:[{name:"Deal",type:"line",smooth:!0,itemStyle:{normal:{areaStyle:{type:"default"}}},data:[10,12,21,54,260,830,710]},{name:"Pre-order",type:"line",smooth:!0,itemStyle:{normal:{areaStyle:{type:"default"}}},data:[30,182,434,791,390,30,10]},{name:"Intent",type:"line",smooth:!0,itemStyle:{normal:{areaStyle:{type:"default"}}},data:[1320,1132,601,234,120,90,20]}]});if($("#echart_scatter").length)echarts.init(document.getElementById("echart_scatter"),e).setOption({title:{text:"Scatter Graph",subtext:"Heinz 2003"},tooltip:{trigger:"axis",showDelay:0,axisPointer:{type:"cross",lineStyle:{type:"dashed",width:1}}},legend:{data:["Data2","Data1"]},toolbox:{show:!0,feature:{saveAsImage:{show:!0,title:"Save Image"}}},xAxis:[{type:"value",scale:!0,axisLabel:{formatter:"{value} cm"}}],yAxis:[{type:"value",scale:!0,axisLabel:{formatter:"{value} kg"}}],series:[{name:"Data1",type:"scatter",tooltip:{trigger:"item",formatter:function(e){return e.value.length>1?e.seriesName+" :
    "+e.value[0]+"cm "+e.value[1]+"kg ":e.seriesName+" :
    "+e.name+" : "+e.value+"kg "}},data:[[161.2,51.6],[167.5,59],[159.5,49.2],[157,63],[155.8,53.6],[170,59],[159.1,47.6],[166,69.8],[176.2,66.8],[160.2,75.2],[172.5,55.2],[170.9,54.2],[172.9,62.5],[153.4,42],[160,50],[147.2,49.8],[168.2,49.2],[175,73.2],[157,47.8],[167.6,68.8],[159.5,50.6],[175,82.5],[166.8,57.2],[176.5,87.8],[170.2,72.8],[174,54.5],[173,59.8],[179.9,67.3],[170.5,67.8],[160,47],[154.4,46.2],[162,55],[176.5,83],[160,54.4],[152,45.8],[162.1,53.6],[170,73.2],[160.2,52.1],[161.3,67.9],[166.4,56.6],[168.9,62.3],[163.8,58.5],[167.6,54.5],[160,50.2],[161.3,60.3],[167.6,58.3],[165.1,56.2],[160,50.2],[170,72.9],[157.5,59.8],[167.6,61],[160.7,69.1],[163.2,55.9],[152.4,46.5],[157.5,54.3],[168.3,54.8],[180.3,60.7],[165.5,60],[165,62],[164.5,60.3],[156,52.7],[160,74.3],[163,62],[165.7,73.1],[161,80],[162,54.7],[166,53.2],[174,75.7],[172.7,61.1],[167.6,55.7],[151.1,48.7],[164.5,52.3],[163.5,50],[152,59.3],[169,62.5],[164,55.7],[161.2,54.8],[155,45.9],[170,70.6],[176.2,67.2],[170,69.4],[162.5,58.2],[170.3,64.8],[164.1,71.6],[169.5,52.8],[163.2,59.8],[154.5,49],[159.8,50],[173.2,69.2],[170,55.9],[161.4,63.4],[169,58.2],[166.2,58.6],[159.4,45.7],[162.5,52.2],[159,48.6],[162.8,57.8],[159,55.6],[179.8,66.8],[162.9,59.4],[161,53.6],[151.1,73.2],[168.2,53.4],[168.9,69],[173.2,58.4],[171.8,56.2],[178,70.6],[164.3,59.8],[163,72],[168.5,65.2],[166.8,56.6],[172.7,105.2],[163.5,51.8],[169.4,63.4],[167.8,59],[159.5,47.6],[167.6,63],[161.2,55.2],[160,45],[163.2,54],[162.2,50.2],[161.3,60.2],[149.5,44.8],[157.5,58.8],[163.2,56.4],[172.7,62],[155,49.2],[156.5,67.2],[164,53.8],[160.9,54.4],[162.8,58],[167,59.8],[160,54.8],[160,43.2],[168.9,60.5],[158.2,46.4],[156,64.4],[160,48.8],[167.1,62.2],[158,55.5],[167.6,57.8],[156,54.6],[162.1,59.2],[173.4,52.7],[159.8,53.2],[170.5,64.5],[159.2,51.8],[157.5,56],[161.3,63.6],[162.6,63.2],[160,59.5],[168.9,56.8],[165.1,64.1],[162.6,50],[165.1,72.3],[166.4,55],[160,55.9],[152.4,60.4],[170.2,69.1],[162.6,84.5],[170.2,55.9],[158.8,55.5],[172.7,69.5],[167.6,76.4],[162.6,61.4],[167.6,65.9],[156.2,58.6],[175.2,66.8],[172.1,56.6],[162.6,58.6],[160,55.9],[165.1,59.1],[182.9,81.8],[166.4,70.7],[165.1,56.8],[177.8,60],[165.1,58.2],[175.3,72.7],[154.9,54.1],[158.8,49.1],[172.7,75.9],[168.9,55],[161.3,57.3],[167.6,55],[165.1,65.5],[175.3,65.5],[157.5,48.6],[163.8,58.6],[167.6,63.6],[165.1,55.2],[165.1,62.7],[168.9,56.6],[162.6,53.9],[164.5,63.2],[176.5,73.6],[168.9,62],[175.3,63.6],[159.4,53.2],[160,53.4],[170.2,55],[162.6,70.5],[167.6,54.5],[162.6,54.5],[160.7,55.9],[160,59],[157.5,63.6],[162.6,54.5],[152.4,47.3],[170.2,67.7],[165.1,80.9],[172.7,70.5],[165.1,60.9],[170.2,63.6],[170.2,54.5],[170.2,59.1],[161.3,70.5],[167.6,52.7],[167.6,62.7],[165.1,86.3],[162.6,66.4],[152.4,67.3],[168.9,63],[170.2,73.6],[175.2,62.3],[175.2,57.7],[160,55.4],[165.1,104.1],[174,55.5],[170.2,77.3],[160,80.5],[167.6,64.5],[167.6,72.3],[167.6,61.4],[154.9,58.2],[162.6,81.8],[175.3,63.6],[171.4,53.4],[157.5,54.5],[165.1,53.6],[160,60],[174,73.6],[162.6,61.4],[174,55.5],[162.6,63.6],[161.3,60.9],[156.2,60],[149.9,46.8],[169.5,57.3],[160,64.1],[175.3,63.6],[169.5,67.3],[160,75.5],[172.7,68.2],[162.6,61.4],[157.5,76.8],[176.5,71.8],[164.4,55.5],[160.7,48.6],[174,66.4],[163.8,67.3]],markPoint:{data:[{type:"max",name:"Max"},{type:"min",name:"Min"}]},markLine:{data:[{type:"average",name:"Mean"}]}},{name:"Data2",type:"scatter",tooltip:{trigger:"item",formatter:function(e){return e.value.length>1?e.seriesName+" :
    "+e.value[0]+"cm "+e.value[1]+"kg ":e.seriesName+" :
    "+e.name+" : "+e.value+"kg "}},data:[[174,65.6],[175.3,71.8],[193.5,80.7],[186.5,72.6],[187.2,78.8],[181.5,74.8],[184,86.4],[184.5,78.4],[175,62],[184,81.6],[180,76.6],[177.8,83.6],[192,90],[176,74.6],[174,71],[184,79.6],[192.7,93.8],[171.5,70],[173,72.4],[176,85.9],[176,78.8],[180.5,77.8],[172.7,66.2],[176,86.4],[173.5,81.8],[178,89.6],[180.3,82.8],[180.3,76.4],[164.5,63.2],[173,60.9],[183.5,74.8],[175.5,70],[188,72.4],[189.2,84.1],[172.8,69.1],[170,59.5],[182,67.2],[170,61.3],[177.8,68.6],[184.2,80.1],[186.7,87.8],[171.4,84.7],[172.7,73.4],[175.3,72.1],[180.3,82.6],[182.9,88.7],[188,84.1],[177.2,94.1],[172.1,74.9],[167,59.1],[169.5,75.6],[174,86.2],[172.7,75.3],[182.2,87.1],[164.1,55.2],[163,57],[171.5,61.4],[184.2,76.8],[174,86.8],[174,72.2],[177,71.6],[186,84.8],[167,68.2],[171.8,66.1],[182,72],[167,64.6],[177.8,74.8],[164.5,70],[192,101.6],[175.5,63.2],[171.2,79.1],[181.6,78.9],[167.4,67.7],[181.1,66],[177,68.2],[174.5,63.9],[177.5,72],[170.5,56.8],[182.4,74.5],[197.1,90.9],[180.1,93],[175.5,80.9],[180.6,72.7],[184.4,68],[175.5,70.9],[180.6,72.5],[177,72.5],[177.1,83.4],[181.6,75.5],[176.5,73],[175,70.2],[174,73.4],[165.1,70.5],[177,68.9],[192,102.3],[176.5,68.4],[169.4,65.9],[182.1,75.7],[179.8,84.5],[175.3,87.7],[184.9,86.4],[177.3,73.2],[167.4,53.9],[178.1,72],[168.9,55.5],[157.2,58.4],[180.3,83.2],[170.2,72.7],[177.8,64.1],[172.7,72.3],[165.1,65],[186.7,86.4],[165.1,65],[174,88.6],[175.3,84.1],[185.4,66.8],[177.8,75.5],[180.3,93.2],[180.3,82.7],[177.8,58],[177.8,79.5],[177.8,78.6],[177.8,71.8],[177.8,116.4],[163.8,72.2],[188,83.6],[198.1,85.5],[175.3,90.9],[166.4,85.9],[190.5,89.1],[166.4,75],[177.8,77.7],[179.7,86.4],[172.7,90.9],[190.5,73.6],[185.4,76.4],[168.9,69.1],[167.6,84.5],[175.3,64.5],[170.2,69.1],[190.5,108.6],[177.8,86.4],[190.5,80.9],[177.8,87.7],[184.2,94.5],[176.5,80.2],[177.8,72],[180.3,71.4],[171.4,72.7],[172.7,84.1],[172.7,76.8],[177.8,63.6],[177.8,80.9],[182.9,80.9],[170.2,85.5],[167.6,68.6],[175.3,67.7],[165.1,66.4],[185.4,102.3],[181.6,70.5],[172.7,95.9],[190.5,84.1],[179.1,87.3],[175.3,71.8],[170.2,65.9],[193,95.9],[171.4,91.4],[177.8,81.8],[177.8,96.8],[167.6,69.1],[167.6,82.7],[180.3,75.5],[182.9,79.5],[176.5,73.6],[186.7,91.8],[188,84.1],[188,85.9],[177.8,81.8],[174,82.5],[177.8,80.5],[171.4,70],[185.4,81.8],[185.4,84.1],[188,90.5],[188,91.4],[182.9,89.1],[176.5,85],[175.3,69.1],[175.3,73.6],[188,80.5],[188,82.7],[175.3,86.4],[170.5,67.7],[179.1,92.7],[177.8,93.6],[175.3,70.9],[182.9,75],[170.8,93.2],[188,93.2],[180.3,77.7],[177.8,61.4],[185.4,94.1],[168.9,75],[185.4,83.6],[180.3,85.5],[174,73.9],[167.6,66.8],[182.9,87.3],[160,72.3],[180.3,88.6],[167.6,75.5],[186.7,101.4],[175.3,91.1],[175.3,67.3],[175.9,77.7],[175.3,81.8],[179.1,75.5],[181.6,84.5],[177.8,76.6],[182.9,85],[177.8,102.5],[184.2,77.3],[179.1,71.8],[176.5,87.9],[188,94.3],[174,70.9],[167.6,64.5],[170.2,77.3],[167.6,72.3],[188,87.3],[174,80],[176.5,82.3],[180.3,73.6],[167.6,74.1],[188,85.9],[180.3,73.2],[167.6,76.3],[183,65.9],[183,90.9],[179.1,89.1],[170.2,62.3],[177.8,82.7],[179.1,79.1],[190.5,98.2],[177.8,84.1],[180.3,83.2],[180.3,83.2]],markPoint:{data:[{type:"max",name:"Max"},{type:"min",name:"Min"}]},markLine:{data:[{type:"average",name:"Mean"}]}}]});if($("#echart_bar_horizontal").length)echarts.init(document.getElementById("echart_bar_horizontal"),e).setOption({title:{text:"Bar Graph",subtext:"Graph subtitle"},tooltip:{trigger:"axis"},legend:{x:100,data:["2015","2016"]},toolbox:{show:!0,feature:{saveAsImage:{show:!0,title:"Save Image"}}},calculable:!0,xAxis:[{type:"value",boundaryGap:[0,.01]}],yAxis:[{type:"category",data:["Jan","Feb","Mar","Apr","May","Jun"]}],series:[{name:"2015",type:"bar",data:[18203,23489,29034,104970,131744,630230]},{name:"2016",type:"bar",data:[19325,23438,31e3,121594,134141,681807]}]});if($("#echart_pie2").length)echarts.init(document.getElementById("echart_pie2"),e).setOption({tooltip:{trigger:"item",formatter:"{a}
    {b} : {c} ({d}%)"},legend:{x:"center",y:"bottom",data:["rose1","rose2","rose3","rose4","rose5","rose6"]},toolbox:{show:!0,feature:{magicType:{show:!0,type:["pie","funnel"]},restore:{show:!0,title:"Restore"},saveAsImage:{show:!0,title:"Save Image"}}},calculable:!0,series:[{name:"Area Mode",type:"pie",radius:[25,90],center:["50%",170],roseType:"area",x:"50%",max:40,sort:"ascending",data:[{value:10,name:"rose1"},{value:5,name:"rose2"},{value:15,name:"rose3"},{value:25,name:"rose4"},{value:20,name:"rose5"},{value:35,name:"rose6"}]}]});if($("#echart_donut").length)echarts.init(document.getElementById("echart_donut"),e).setOption({tooltip:{trigger:"item",formatter:"{a}
    {b} : {c} ({d}%)"},calculable:!0,legend:{x:"center",y:"bottom",data:["Direct Access","E-mail Marketing","Union Ad","Video Ads","Search Engine"]},toolbox:{show:!0,feature:{magicType:{show:!0,type:["pie","funnel"],option:{funnel:{x:"25%",width:"50%",funnelAlign:"center",max:1548}}},restore:{show:!0,title:"Restore"},saveAsImage:{show:!0,title:"Save Image"}}},series:[{name:"Access to the resource",type:"pie",radius:["35%","55%"],itemStyle:{normal:{label:{show:!0},labelLine:{show:!0}},emphasis:{label:{show:!0,position:"center",textStyle:{fontSize:"14",fontWeight:"normal"}}}},data:[{value:335,name:"Direct Access"},{value:310,name:"E-mail Marketing"},{value:234,name:"Union Ad"},{value:135,name:"Video Ads"},{value:1548,name:"Search Engine"}]}]});if($("#echart_pie").length){echarts.init(document.getElementById("echart_pie"),e).setOption({tooltip:{trigger:"item",formatter:"{a}
    {b} : {c} ({d}%)"},legend:{x:"center",y:"bottom",data:["Direct Access","E-mail Marketing","Union Ad","Video Ads","Search Engine"]},toolbox:{show:!0,feature:{magicType:{show:!0,type:["pie","funnel"],option:{funnel:{x:"25%",width:"50%",funnelAlign:"left",max:1548}}},restore:{show:!0,title:"Restore"},saveAsImage:{show:!0,title:"Save Image"}}},calculable:!0,series:[{name:"访问来源",type:"pie",radius:"55%",center:["50%","48%"],data:[{value:335,name:"Direct Access"},{value:310,name:"E-mail Marketing"},{value:234,name:"Union Ad"},{value:135,name:"Video Ads"},{value:1548,name:"Search Engine"}]}]});var t={normal:{label:{show:!1},labelLine:{show:!1}}},n={normal:{color:"rgba(0,0,0,0)",label:{show:!1},labelLine:{show:!1}},emphasis:{color:"rgba(0,0,0,0)"}}}if($("#echart_mini_pie").length)echarts.init(document.getElementById("echart_mini_pie"),e).setOption({title:{text:"Chart #2",subtext:"From ExcelHome",sublink:"http://e.weibo.com/1341556070/AhQXtjbqh",x:"center",y:"center",itemGap:20,textStyle:{color:"rgba(30,144,255,0.8)",fontFamily:"微软雅黑",fontSize:35,fontWeight:"bolder"}},tooltip:{show:!0,formatter:"{a}
    {b} : {c} ({d}%)"},legend:{orient:"vertical",x:170,y:45,itemGap:12,data:["68%Something #1","29%Something #2","3%Something #3"]},toolbox:{show:!0,feature:{mark:{show:!0},dataView:{show:!0,title:"Text View",lang:["Text View","Close","Refresh"],readOnly:!1},restore:{show:!0,title:"Restore"},saveAsImage:{show:!0,title:"Save Image"}}},series:[{name:"1",type:"pie",clockWise:!1,radius:[105,130],itemStyle:t,data:[{value:68,name:"68%Something #1"},{value:32,name:"invisible",itemStyle:n}]},{name:"2",type:"pie",clockWise:!1,radius:[80,105],itemStyle:t,data:[{value:29,name:"29%Something #2"},{value:71,name:"invisible",itemStyle:n}]},{name:"3",type:"pie",clockWise:!1,radius:[25,80],itemStyle:t,data:[{value:3,name:"3%Something #3"},{value:97,name:"invisible",itemStyle:n}]}]});if($("#echart_world_map").length)echarts.init(document.getElementById("echart_world_map"),e).setOption({title:{text:"World Population (2010)",subtext:"from United Nations, Total population, both sexes combined, as of 1 July (thousands)",x:"center",y:"top"},tooltip:{trigger:"item",formatter:function(e){var t=(e.value+"").split(".");return t=t[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+"."+t[1],e.seriesName+"
    "+e.name+" : "+t}},toolbox:{show:!0,orient:"vertical",x:"right",y:"center",feature:{mark:{show:!0},dataView:{show:!0,title:"Text View",lang:["Text View","Close","Refresh"],readOnly:!1},restore:{show:!0,title:"Restore"},saveAsImage:{show:!0,title:"Save Image"}}},dataRange:{min:0,max:1e6,text:["High","Low"],realtime:!1,calculable:!0,color:["#087E65","#26B99A","#CBEAE3"]},series:[{name:"World Population (2010)",type:"map",mapType:"world",roam:!1,mapLocation:{y:60},itemStyle:{emphasis:{label:{show:!0}}},data:[{name:"Afghanistan",value:28397.812},{name:"Angola",value:19549.124},{name:"Albania",value:3150.143},{name:"United Arab Emirates",value:8441.537},{name:"Argentina",value:40374.224},{name:"Armenia",value:2963.496},{name:"French Southern and Antarctic Lands",value:268.065},{name:"Australia",value:22404.488},{name:"Austria",value:8401.924},{name:"Azerbaijan",value:9094.718},{name:"Burundi",value:9232.753},{name:"Belgium",value:10941.288},{name:"Benin",value:9509.798},{name:"Burkina Faso",value:15540.284},{name:"Bangladesh",value:151125.475},{name:"Bulgaria",value:7389.175},{name:"The Bahamas",value:66402.316},{name:"Bosnia and Herzegovina",value:3845.929},{name:"Belarus",value:9491.07},{name:"Belize",value:308.595},{name:"Bermuda",value:64.951},{name:"Bolivia",value:716.939},{name:"Brazil",value:195210.154},{name:"Brunei",value:27.223},{name:"Bhutan",value:716.939},{name:"Botswana",value:1969.341},{name:"Central African Republic",value:4349.921},{name:"Canada",value:34126.24},{name:"Switzerland",value:7830.534},{name:"Chile",value:17150.76},{name:"China",value:1359821.465},{name:"Ivory Coast",value:60508.978},{name:"Cameroon",value:20624.343},{name:"Democratic Republic of the Congo",value:62191.161},{name:"Republic of the Congo",value:3573.024},{name:"Colombia",value:46444.798},{name:"Costa Rica",value:4669.685},{name:"Cuba",value:11281.768},{name:"Northern Cyprus",value:1.468},{name:"Cyprus",value:1103.685},{name:"Czech Republic",value:10553.701},{name:"Germany",value:83017.404},{name:"Djibouti",value:834.036},{name:"Denmark",value:5550.959},{name:"Dominican Republic",value:10016.797},{name:"Algeria",value:37062.82},{name:"Ecuador",value:15001.072},{name:"Egypt",value:78075.705},{name:"Eritrea",value:5741.159},{name:"Spain",value:46182.038},{name:"Estonia",value:1298.533},{name:"Ethiopia",value:87095.281},{name:"Finland",value:5367.693},{name:"Fiji",value:860.559},{name:"Falkland Islands",value:49.581},{name:"France",value:63230.866},{name:"Gabon",value:1556.222},{name:"United Kingdom",value:62066.35},{name:"Georgia",value:4388.674},{name:"Ghana",value:24262.901},{name:"Guinea",value:10876.033},{name:"Gambia",value:1680.64},{name:"Guinea Bissau",value:10876.033},{name:"Equatorial Guinea",value:696.167},{name:"Greece",value:11109.999},{name:"Greenland",value:56.546},{name:"Guatemala",value:14341.576},{name:"French Guiana",value:231.169},{name:"Guyana",value:786.126},{name:"Honduras",value:7621.204},{name:"Croatia",value:4338.027},{name:"Haiti",value:9896.4},{name:"Hungary",value:10014.633},{name:"Indonesia",value:240676.485},{name:"India",value:1205624.648},{name:"Ireland",value:4467.561},{name:"Iran",value:240676.485},{name:"Iraq",value:30962.38},{name:"Iceland",value:318.042},{name:"Israel",value:7420.368},{name:"Italy",value:60508.978},{name:"Jamaica",value:2741.485},{name:"Jordan",value:6454.554},{name:"Japan",value:127352.833},{name:"Kazakhstan",value:15921.127},{name:"Kenya",value:40909.194},{name:"Kyrgyzstan",value:5334.223},{name:"Cambodia",value:14364.931},{name:"South Korea",value:51452.352},{name:"Kosovo",value:97.743},{name:"Kuwait",value:2991.58},{name:"Laos",value:6395.713},{name:"Lebanon",value:4341.092},{name:"Liberia",value:3957.99},{name:"Libya",value:6040.612},{name:"Sri Lanka",value:20758.779},{name:"Lesotho",value:2008.921},{name:"Lithuania",value:3068.457},{name:"Luxembourg",value:507.885},{name:"Latvia",value:2090.519},{name:"Morocco",value:31642.36},{name:"Moldova",value:103.619},{name:"Madagascar",value:21079.532},{name:"Mexico",value:117886.404},{name:"Macedonia",value:507.885},{name:"Mali",value:13985.961},{name:"Myanmar",value:51931.231},{name:"Montenegro",value:620.078},{name:"Mongolia",value:2712.738},{name:"Mozambique",value:23967.265},{name:"Mauritania",value:3609.42},{name:"Malawi",value:15013.694},{name:"Malaysia",value:28275.835},{name:"Namibia",value:2178.967},{name:"New Caledonia",value:246.379},{name:"Niger",value:15893.746},{name:"Nigeria",value:159707.78},{name:"Nicaragua",value:5822.209},{name:"Netherlands",value:16615.243},{name:"Norway",value:4891.251},{name:"Nepal",value:26846.016},{name:"New Zealand",value:4368.136},{name:"Oman",value:2802.768},{name:"Pakistan",value:173149.306},{name:"Panama",value:3678.128},{name:"Peru",value:29262.83},{name:"Philippines",value:93444.322},{name:"Papua New Guinea",value:6858.945},{name:"Poland",value:38198.754},{name:"Puerto Rico",value:3709.671},{name:"North Korea",value:1.468},{name:"Portugal",value:10589.792},{name:"Paraguay",value:6459.721},{name:"Qatar",value:1749.713},{name:"Romania",value:21861.476},{name:"Russia",value:21861.476},{name:"Rwanda",value:10836.732},{name:"Western Sahara",value:514.648},{name:"Saudi Arabia",value:27258.387},{name:"Sudan",value:35652.002},{name:"South Sudan",value:9940.929},{name:"Senegal",value:12950.564},{name:"Solomon Islands",value:526.447},{name:"Sierra Leone",value:5751.976},{name:"El Salvador",value:6218.195},{name:"Somaliland",value:9636.173},{name:"Somalia",value:9636.173},{name:"Republic of Serbia",value:3573.024},{name:"Suriname",value:524.96},{name:"Slovakia",value:5433.437},{name:"Slovenia",value:2054.232},{name:"Sweden",value:9382.297},{name:"Swaziland",value:1193.148},{name:"Syria",value:7830.534},{name:"Chad",value:11720.781},{name:"Togo",value:6306.014},{name:"Thailand",value:66402.316},{name:"Tajikistan",value:7627.326},{name:"Turkmenistan",value:5041.995},{name:"East Timor",value:10016.797},{name:"Trinidad and Tobago",value:1328.095},{name:"Tunisia",value:10631.83},{name:"Turkey",value:72137.546},{name:"United Republic of Tanzania",value:44973.33},{name:"Uganda",value:33987.213},{name:"Ukraine",value:46050.22},{name:"Uruguay",value:3371.982},{name:"United States of America",value:312247.116},{name:"Uzbekistan",value:27769.27},{name:"Venezuela",value:236.299},{name:"Vietnam",value:89047.397},{name:"Vanuatu",value:236.299},{name:"West Bank",value:13.565},{name:"Yemen",value:22763.008},{name:"South Africa",value:51452.352},{name:"Zambia",value:13216.985},{name:"Zimbabwe",value:13076.978}]}]})}}jQuery(function(e){e("#regexGroupSelect").change(function(){document.location="?group="+e("#regexGroupSelect option:selected").attr("value")}),e(".confirm_action").click(function(){return confirm("Are you sure?")})}),tinyMCE.init({selector:"textarea#body",theme:"silver",plugins:["advlist autolink link image lists charmap print preview hr anchor pagebreak spellchecker","searchreplace wordcount visualblocks visualchars code fullscreen insertdatetime media nonbreaking","save table contextmenu directionality emoticons template paste textcolor code"],theme_advanced_toolbar_location:"top",theme_advanced_toolbar_align:"left",toolbar:"insertfile undo redo | styleselect | fontselect |sizeselect | fontsizeselect | bold italic | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | link image | print preview media fullpage | forecolor backcolor emoticons | code",fontsize_formats:"8pt 9pt 10pt 11pt 12pt 13pt 14pt 15pt 16pt 17pt 18pt 24pt 36pt",mode:"exact",relative_urls:!1,remove_script_host:!1,convert_urls:!0}),tinyMCE.init({selector:"textarea#metadescription",theme:"silver",plugins:["advlist autolink link image lists charmap print preview hr anchor pagebreak spellchecker","searchreplace wordcount visualblocks visualchars code fullscreen insertdatetime media nonbreaking","save table contextmenu directionality emoticons template paste textcolor code"],theme_advanced_toolbar_location:"top",theme_advanced_toolbar_align:"left",toolbar:"insertfile undo redo | styleselect | fontselect |sizeselect | fontsizeselect | bold italic | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | link image | print preview media fullpage | forecolor backcolor emoticons | code",fontsize_formats:"8pt 9pt 10pt 11pt 12pt 13pt 14pt 15pt 16pt 17pt 18pt 24pt 36pt",mode:"exact",relative_urls:!1,remove_script_host:!1,convert_urls:!0}),tinyMCE.init({selector:"textarea#metakeywords",theme:"silver",plugins:["advlist autolink link image lists charmap print preview hr anchor pagebreak spellchecker","searchreplace wordcount visualblocks visualchars code fullscreen insertdatetime media nonbreaking","save table contextmenu directionality emoticons template paste textcolor code"],theme_advanced_toolbar_location:"top",theme_advanced_toolbar_align:"left",toolbar:"insertfile undo redo | styleselect | fontselect |sizeselect | fontsizeselect | bold italic | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | link image | print preview media fullpage | forecolor backcolor emoticons | code",fontsize_formats:"8pt 9pt 10pt 11pt 12pt 13pt 14pt 15pt 16pt 17pt 18pt 24pt 36pt",mode:"exact",relative_urls:!1,remove_script_host:!1,convert_urls:!0}),function(e,t){jQuery.fn[t]=function(e){return e?this.bind("resize",(n=e,function(){var e=this,t=arguments;i?clearTimeout(i):o&&n.apply(e,t),i=setTimeout(function(){o||n.apply(e,t),i=null},r||100)})):this.trigger(t);var n,r,o,i}}(jQuery,"smartresize"),$(document).ready(function(){var e,t=function(){$RIGHT_COL.css("min-height",$(window).height());var e=$BODY.outerHeight(),t=$BODY.hasClass("footer_fixed")?-10:$FOOTER.height(),n=$LEFT_COL.eq(1).height()+$SIDEBAR_FOOTER.height(),r=e1){for(var n=0,r=0;r:first-child"),"+"==$expand.text()?$expand.text("-"):$expand.text("+")})}),"undefined"!=typeof NProgress&&($(document).ready(function(){NProgress.start()}),$(window).load(function(){NProgress.done()}));var originalLeave=$.fn.popover.Constructor.prototype.leave;function isValidEmailAddress(e){return new RegExp(/^(("[\w-\s]+")|([\w-]+(?:\.[\w-]+)*)|("[\w-\s]+")([\w-]+(?:\.[\w-]+)*))(@((?:[\w-]+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$)|(@\[?((25[0-5]\.|2[0-4][0-9]\.|1[0-9]{2}\.|[0-9]{1,2}\.))((25[0-5]|2[0-4][0-9]|1[0-9]{2}|[0-9]{1,2})\.){2}(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[0-9]{1,2})\]?$)/i).test(e)}function mymovie_del(e,t){return $.ajax({url:base_url+"/ajax_mymovies?rand="+$.now(),data:{del:e},dataType:"html",success:function(e){$(t).hide(),$(t).prev("a").show()},error:function(e,t,n){}}),!1}function mymovie_add(e,t){return $(t).hide(),$(t).next("a").show(),$.ajax({url:base_url+"/ajax_mymovies?rand="+$.now(),data:{add:e},dataType:"html",success:function(e){},error:function(e,t,n){}}),!1}function getNzbGetQueue(){$.ajax({url:"queuedata?type=nzbget&id="+$.now(),cache:!1,success:function(e){$(".nzbget_queue").html(e),setTimeout("getNzbGetQueue()",2500)},error:function(){$(".nzbget_queue").html('Could not contact your queue. Refresh')},timeout:5e3})}function getHistory(){$.ajax({url:"queuedata?type=history&id="+$.now(),cache:!1,success:function(e){$(".sab_history").html(e),setTimeout("getHistory()",1e4)},error:function(){},timeout:5e3})}$.fn.popover.Constructor.prototype.leave=function(e){var t,n,r=e instanceof this.constructor?e:$(e.currentTarget)[this.type](this.getDelegateOptions()).data("bs."+this.type);originalLeave.call(this,e),e.currentTarget&&(t=$(e.currentTarget).siblings(".popover"),n=r.timeout,t.one("mouseenter",function(){clearTimeout(n),t.one("mouseleave",function(){$.fn.popover.Constructor.prototype.leave.call(r,r)})}))},$("body").popover({selector:"[data-popover]",trigger:"click hover",delay:{show:50,hide:400}}),$(document).ready(function(){init_sparklines(),init_flot_chart(),init_wysiwyg(),init_InputMask(),init_JQVmap(),init_cropper(),init_knob(),init_IonRangeSlider(),init_ColorPicker(),init_TagsInput(),init_parsley(),init_daterangepicker(),init_daterangepicker_right(),init_daterangepicker_single_call(),init_daterangepicker_reservation(),init_SmartWizard(),init_EasyPieChart(),init_charts(),init_echarts(),init_morris_charts(),init_skycons(),init_select2(),init_validator(),init_DataTables(),init_chart_doughnut(),init_gauge(),init_PNotify(),init_starrr(),init_calendar(),init_compose(),init_CustomNotification(),init_autosize(),init_autocomplete()}),jQuery(function(e){const t=window.location.origin;e(".cartadd").click(function(n){if(e(this).hasClass("icon_cart_clicked"))return!1;let r=e(".guid").attr("id").substring(4);return e.ajaxSetup({headers:{"X-CSRF-TOKEN":e('meta[name="csrf-token"]').attr("content")}}),e.post(t+"/cart/add?id="+r,function(t){e(n.target).addClass("icon_cart_clicked").attr("title","Added to Cart"),PNotify.defaults.icons="fontawesome5",PNotify.success({title:"Release added to your Download Basket!",type:"success",icon:"fa fa-info fa-3x",Animate:{animate:!0,in_class:"bounceInLeft",out_class:"bounceOutRight"},desktop:{desktop:!0,fallback:!0}})}),!1}),e(".sabsend").click(function(n){if(e(this).hasClass("icon_sab_clicked"))return!1;let r=e(".guid").attr("id").substring(4),o=t+"/sendtoqueue/"+r;return e.post(o,function(t){e(n.target).addClass("icon_sab_clicked").attr("title","Added to Queue"),PNotify.defaults.icons="fontawesome5",PNotify.success({title:"Release added to your download queue!",type:"success",icon:"fa fa-info fa-3x",Animate:{animate:!0,in_class:"bounceInLeft",out_class:"bounceOutRight"},desktop:{desktop:!0,fallback:!0}})}),!1}),e(".getsend").click(function(n){if(e(this).hasClass("icon_nzbget_clicked"))return!1;let r=e(".guid").attr("id").substring(4),o=t+"/sendtoqueue/"+r;return e.post(o,function(t){e(n.target).addClass("icon_nzbget_clicked").attr("title","Added to Queue"),PNotify.defaults.icons="fontawesome5",PNotify.success({title:"Release added to your download queue!",type:"success",icon:"fa fa-info fa-3x",Animate:{animate:!0,in_class:"bounceInLeft",out_class:"bounceOutRight"},desktop:{desktop:!0,fallback:!0}})}),!1}),e(".sendtocouch").click(function(n){if(e(this).hasClass("icon_cp_clicked"))return!1;let r=e(this).attr("id").substring(4),o=t+"sendtocouch/"+r;return e.post(o,function(t){e(n.target).addClass("icon_cp_clicked").attr("title","Added to CouchPotato"),PNotify.defaults.icons="fontawesome5",PNotify.success({title:"Movie added to CoucPotato wanted list!",type:"success",icon:"fa fa-info fa-3x",Animate:{animate:!0,in_class:"bounceInLeft",out_class:"bounceOutRight"},desktop:{desktop:!0,fallback:!0}})}),!1}),e(".vortexsend").click(function(n){if(e(this).hasClass("icon_nzbvortex_clicked"))return!1;let r=e(".guid").attr("id").substring(4);return r&&r.length>0&&e.ajax({url:t+"nzbvortex?addQueue="+r+"&isAjax",cache:!1}).done(function(t){let o="Added "+r+" to queue.";e(n.target).addClass("icon_nzbvortex_clicked").attr("title",o),PNotify.defaults.icons="fontawesome5",PNotify.success({title:"Release added to your download queue!",type:"success",icon:"fa fa-info fa-3x",Animate:{animate:!0,in_class:"bounceInLeft",out_class:"bounceOutRight"},desktop:{desktop:!0,fallback:!0}})}).fail(function(e){alert(e.responseText)}),!1});let n=new Array;n[0]="Waiting",n[1]="Downloading",n[2]="Downloaded",n[3]="Saving",n[4]="Saved",n[5]="Skipped";let r,o,i=e("table.data tr").children("td.icons").children("div.icon").css("opacity");e("table.data tr").hover(function(){e(this).children("td.icons").children("div.icon").css("opacity",1)},function(){e(this).children("td.icons").children("div.icon").css("opacity",i)}),e(".forumpostsubmit").click(function(t){if(""==e.trim(e("#addMessage").val())||""==e.trim(e("#addSubject").val()))return alert("Please enter a subject and message."),!1}),e(".forumreplysubmit").click(function(t){if(""==e.trim(e("#addMessage").val()))return alert("Please enter a message."),!1}),e(".check").click(function(t){e(t.target).is("input")||e(this).children(".nzb_check").attr("checked",!e(this).children(".nzb_check").attr("checked"))}),e(".descmore").click(function(t){return e(this).prev(".descinitial").hide(),e(this).next(".descfull").show(),e(this).hide(),!1}),e(".nzb_check_all").change(function(){e(this).attr("checked")?e("table.data tr td input:checkbox").attr("checked",e(this).attr("checked")):e("table.data tr td input:checkbox").removeAttr("checked")}),e(".nzb_check_all_season").change(function(){let t=e(this).attr("name");e("table.data tr td input:checkbox").each(function(n,r){e(r).attr("name")==t&&e(r).attr("checked",!e(r).attr("checked"))})}),e(".icon_cart").click(function(n){if(e(this).hasClass("icon_cart_clicked"))return!1;let r=e(this).attr("id").substring(4);return e.ajaxSetup({headers:{"X-CSRF-TOKEN":e('meta[name="csrf-token"]').attr("content")}}),e.post(t+"/cart/add?id="+r,function(t){e(n.target).addClass("icon_cart_clicked").attr("title"," Release added to Cart"),PNotify.defaults.icons="fontawesome5",PNotify.success({title:"Release added to your download basket!",type:"success",icon:"fa fa-info fa-3x",Animate:{animate:!0,in_class:"bounceInLeft",out_class:"bounceOutRight"},desktop:{desktop:!0,fallback:!0}})}),!1}),e(".icon_nzbvortex").click(function(n){if(e(this).hasClass("icon_nzbvortex_clicked"))return!1;let r=e(this).parent().parent().attr("id").substring(4);return r&&r.length>0&&e.ajax({url:t+"/nzbvortex?addQueue="+r+"&isAjax",cache:!1}).done(function(t){let o="Added "+r+" to queue.";e(n.target).addClass("icon_nzbvortex_clicked").attr("title",o),PNotify.defaults.icons="fontawesome5",PNotify.success({title:"ADDED TO NZBVORTEX!",type:"success",icon:"fa fa-info fa-3x",Animate:{animate:!0,in_class:"bounceInLeft",out_class:"bounceOutRight"},desktop:{desktop:!0,fallback:!0}})}).fail(function(e){alert(e.responseText)}),!1}),e(document).on("click","a.vortex-resume",function(n){return n.preventDefault(),e("#vortex-overlay-"+e(this).attr("href")).show(),e.get(t+"nzbvortex?resume="+e(this).attr("href")+"&isAjax"),e(this).removeAttr("href"),!1}),e(document).on("click","a.vortex-pause",function(n){return n.preventDefault(),e("#vortex-overlay-"+e(this).attr("href")).show(),e.get(t+"nzbvortex?pause="+e(this).attr("href")+"&isAjax"),e(this).removeAttr("href"),!1}),e(document).on("click","a.vortex-moveup",function(n){return n.preventDefault(),e("#vortex-overlay-"+e(this).attr("href")).show(),e.get(t+"nzbvortex?moveup="+e(this).attr("href")+"&isAjax"),e(this).removeAttr("href"),!1}),e(document).on("click","a.vortex-movedown",function(n){return n.preventDefault(),e("#vortex-overlay-"+e(this).attr("href")).show(),e.get(t+"nzbvortex?movedown="+e(this).attr("href")+"&isAjax"),e(this).removeAttr("href"),!1}),e(document).on("click","a.vortex-movetop",function(n){return n.preventDefault(),e("#vortex-overlay-"+e(this).attr("href")).show(),e.get(t+"nzbvortex?movetop="+e(this).attr("href")+"&isAjax"),e(this).removeAttr("href"),!1}),e(document).on("click","a.vortex-movebottom",function(n){return n.preventDefault(),e("#vortex-overlay-"+e(this).attr("href")).show(),e.get(t+"nzbvortex?movebottom="+e(this).attr("href")+"&isAjax"),e(this).removeAttr("href"),!1}),e(document).on("click","a.vortex-trash",function(n){return n.preventDefault(),e("#vortex-overlay-"+e(this).attr("href")).show(),e.get(t+"nzbvortex?delete="+e(this).attr("href")+"&isAjax"),e(this).removeAttr("href"),!1}),e(document).on("click","a.vortex-filelist",function(r){r.preventDefault();let o=e(this).attr("href");return e("#vortex-overlay-"+o).show(),e.colorbox({}),e.ajax({url:t+"/nzbvortex?filelist="+o+"&isAjax",cache:!1}).done(function(t){e("#cboxLoadingGraphic").hide();let r=e.parseJSON(t);console.log(r),e.each(r.files,function(t,r){e("#cboxContent").append(""+r.fileName+" ("+n[r.state]+")
    ")})}).fail(function(e){alert("Unable to retrieve filelist: "+e.responseText)}),e(this).removeAttr("href"),!1}),e(".icon_sab").click(function(n){if(e(this).hasClass("icon_sab_clicked"))return!1;let r=e(this).attr("id").substring(4),o=t+"/sendtoqueue/"+r;return e.post(o,function(t){e(n.target).addClass("icon_sab_clicked").attr("title","Release added to Queue"),PNotify.defaults.icons="fontawesome5",PNotify.success({title:"Release added to your download queue!",type:"success",icon:"fa fa-info fa-3x",Animate:{animate:!0,in_class:"bounceInLeft",out_class:"bounceOutRight"},desktop:{desktop:!0,fallback:!0}})}),!1}),e(".icon_nzbget").click(function(n){if(e(this).hasClass("icon_nzbget_clicked"))return!1;let r=e(this).attr("id").substring(4),o=t+"/sendtoqueue/"+r;return e.post(o,function(t){e(n.target).addClass("icon_nzbget_clicked").attr("title","Added to Queue"),PNotify.defaults.icons="fontawesome5",PNotify.success({title:"Release added to your download queue!",type:"success",icon:"fa fa-info fa-3x",Animate:{animate:!0,in_class:"bounceInLeft",out_class:"bounceOutRight"},desktop:{desktop:!0,fallback:!0}})}),!1}),e("table.data a.modal_nfo").colorbox({href:function(){return e(this).attr("href")+"&modal"},title:function(){return e(this).parent().parent().children("a.title").text()},innerWidth:"800px",innerHeight:"90%",initialWidth:"800px",initialHeight:"90%",speed:0,opacity:.7}),e("table.data a.modal_prev").colorbox({scrolling:!1,maxWidth:"800px",maxHeight:"450px"}),e("table.data a.modal_imdb").colorbox({href:function(){return t+"movie/"+e(this).attr("name").substring(4)+"&modal"},title:function(){return e(this).parent().parent().children("a.title").text()},innerWidth:"800px",innerHeight:"450px",initialWidth:"800px",initialHeight:"450px",speed:0,opacity:.7}).click(function(){e("#colorbox").removeClass().addClass("cboxMovie")}),e("a.modal_imdbtrailer").colorbox({href:function(){return t+"movietrailer/"+e(this).attr("name").substring(4)+"&modal"},title:function(){return e(this).parent().parent().children("a.title").text()},innerWidth:"800px",innerHeight:"450px",initialWidth:"800px",initialHeight:"450px",speed:0,opacity:.7}).click(function(){e("#colorbox").removeClass().addClass("cboxMovie")}),e("table.data a.modal_music").colorbox({href:function(){return t+"musicmodal/"+e(this).attr("name").substring(4)+"&modal"},title:function(){return e(this).parent().parent().children("a.title").text()},innerWidth:"800px",innerHeight:"450px",initialWidth:"800px",initialHeight:"450px",speed:0,opacity:.7}).click(function(){e("#colorbox").removeClass().addClass("cboxMusic")}),e("table.data a.modal_console").colorbox({href:function(){return t+"consolemodal/"+e(this).attr("name").substring(4)+"&modal"},title:function(){return e(this).parent().parent().children("a.title").text()},innerWidth:"800px",innerHeight:"450px",initialWidth:"800px",initialHeight:"450px",speed:0,opacity:.7}).click(function(){e("#colorbox").removeClass().addClass("cboxConsole")}),e("table.data a.modal_book").colorbox({href:function(){return t+"bookmodal/"+e(this).attr("name").substring(4)+"&modal"},title:function(){return e(this).parent().parent().children("a.title").text()},innerWidth:"800px",innerHeight:"450px",initialWidth:"800px",initialHeight:"450px",speed:0,opacity:.7}).click(function(){e("#colorbox").removeClass().addClass("cboxBook")}),e("#nzb_multi_operations_form").submit(function(){return!1}),e("button.nzb_multi_operations_download").on("click",function(){let n="";e("table.data INPUT[type='checkbox']:checked").each(function(t,r){"on"!=e(r).val()&&(n+=e(r).val()+",")}),(n=n.substring(0,n.length-1))&&(window.location=t+"/getnzb?zip=1&id="+n)}),e("input.nzb_multi_operations_download_cart").on("click",function(){let n="";e("table.data INPUT[type='checkbox']:checked").each(function(t,r){"on"!=e(r).val()&&(n+=e(r).val()+",")}),(n=n.substring(0,n.length-1))&&(window.location=t+"/getnzb?zip=1&id="+n)}),e("button.nzb_multi_operations_cart").on("click",function(){let n=new Array;e.ajaxSetup({headers:{"X-CSRF-TOKEN":e('meta[name="csrf-token"]').attr("content")}}),e("table.data INPUT[type='checkbox']:checked").each(function(t,r){let o=e(r).val(),i=e(r).parent().children("div.icons").children(".icon_cart");o&&!i.hasClass("icon_cart_clicked")&&(i.addClass("icon_cart_clicked").attr("title","Added to Cart"),n.push(o),PNotify.defaults.icons="fontawesome5",PNotify.success({title:"Release added to your Download Basket!",type:"success",icon:"fa fa-info fa-3x",Animate:{animate:!0,in_class:"bounceInLeft",out_class:"bounceOutRight"},desktop:{desktop:!0,fallback:!0}})),e(this).attr("checked",!1)});let r=n.toString();e.post(t+"/cart/add?id="+r)}),e("button.nzb_multi_operations_sab").on("click",function(){e("table.data INPUT[type='checkbox']:checked").each(function(n,r){let o=e(r).parent().parent().children("td.icons").children(".icon_sab"),i=e(r).val();if(i&&!o.hasClass("icon_sab_clicked")){let n=t+"/sendtoqueue/"+i;e.post(n,function(e){o.addClass("icon_sab_clicked").attr("title","Added to Queue"),PNotify.defaults.icons="fontawesome5",PNotify.success({title:"Release added to your download queue!",type:"success",icon:"fa fa-info fa-3x",Animate:{animate:!0,in_class:"bounceInLeft",out_class:"bounceOutRight"},desktop:{desktop:!0,fallback:!0}})})}e(this).attr("checked",!1)})}),e("input.nzb_multi_operations_nzbget").on("click",function(){e("table.data INPUT[type='checkbox']:checked").each(function(n,r){let o=e(r).parent().parent().children("td.icons").children(".icon_nzbget"),i=e(r).val();if(i&&!o.hasClass("icon_nzbget_clicked")){let n=t+"/sendtoqueue/"+i;e.post(n,function(e){o.addClass("icon_nzbget_clicked").attr("title","Added to Queue"),PNotify.defaults.icons="fontawesome5",PNotify.success({title:"Release added to your download queue!",type:"success",icon:"fa fa-info fa-3x",Animate:{animate:!0,in_class:"bounceInLeft",out_class:"bounceOutRight"},desktop:{desktop:!0,fallback:!0}})})}e(this).attr("checked",!1)})}),e("input.nzb_multi_operations_edit").click(function(){let n="";e("table.data INPUT[type='checkbox']:checked").each(function(t,r){"on"!=e(r).val()&&(n+="&id[]="+e(r).val())}),n&&e("input.nzb_multi_operations_edit").colorbox({href:function(){return t+"ajax_release-admin?action=edit"+n+"&from="+encodeURIComponent(window.location)},title:"Edit Release",innerWidth:"400px",innerHeight:"250px",initialWidth:"400px",initialHeight:"250px",speed:0,opacity:.7})}),e("input.nzb_multi_operations_delete").click(function(){let n="";if(e("table.data INPUT[type='checkbox']:checked").each(function(t,r){"on"!=e(r).val()&&(n+="&id[]="+e(r).val())}),n){PNotify.defaults.icons="fontawesome5";const r=PNotify.alert({title:"Confirmation Needed",text:"Are you sure you want to delete the selected releases?",icon:"glyphicon glyphicon-question-sign",hide:!1,modules:{Confirm:{confirm:!0}},Buttons:{closer:!1,sticker:!1},History:{history:!1}});r.on("pnotify.confirm",function(){e.post(t+"ajax_release-admin?action=dodelete"+n,function(e){location.reload(!0)})}),r.on("pnotify.cancel",function(){alert("Cancelled")})}}),e("input.nzb_multi_operations_rebuild").click(function(){let n="";e("table.data INPUT[type='checkbox']:checked").each(function(t,r){"on"!=e(r).val()&&(n+="&id[]="+e(r).val())}),n&&confirm("Are you sure you want to rebuild the selected releases?")&&e.post(t+"ajax_release-admin?action=dorebuild"+n,function(e){location.reload(!0)})}),e("input.nzb_multi_operations_cartdelete").click(function(){let n=new Array;if(e("table.data INPUT[type='checkbox']:checked").each(function(t,r){"on"!=e(r).val()&&n.push(e(r).val())}),e.ajaxSetup({headers:{"X-CSRF-TOKEN":e('meta[name="csrf-token"]').attr("content")}}),n){PNotify.defaults.icons="fontawesome5";const r=PNotify.alert({title:"Confirmation Needed",text:"Are you sure you want to delete the selected releases from your cart?",hide:!1,modules:{Confirm:{confirm:!0}},Buttons:{closer:!1,sticker:!1},History:{history:!1}});r.on("pnotify.confirm",function(){e.post(t+"/cart/delete/"+n)}),r.on("pnotify.cancel",function(){alert("Cancelled")})}}),e("input.nzb_multi_operations_cartsab").click(function(){new Array;e("table.data INPUT[type='checkbox']:checked").each(function(n,r){let o=e(r).val(),i=t+"/sendtoqueue/"+o;e.post(i,function(){PNotify.defaults.icons="fontawesome5",PNotify.success({title:"Releases sent to queue!",type:"success",icon:"fa fa-info fa-3x",Animate:{animate:!0,in_class:"bounceInLeft",out_class:"bounceOutRight"},desktop:{desktop:!0,fallback:!0}})})})}),e("#headsearch").focus(function(){"Search..."==this.value?this.value="":this.select()}).blur(function(){""==this.value&&(this.value="Search...")}),e("#headsearch_form").submit(function(){return e("#headsearch_go").trigger("click"),!1}),e("#headsearch_go").click(function(){if(e("#headsearch").val()&&"Search..."!=e("#headsearch").val()){let n=e("#headsearch").val(),r=-1!=e("#headcat").val()?"&t="+e("#headcat").val():"";document.location=t+"/search?id="+n+r}}),e("#search_search_button").click(function(){return e("#search").val()&&(document.location=t+"/search?id="+e("#search").val()+(-1!=e("#search_cat").val()?"&t="+e("#search_cat").val():"")),!1}),e("#search").focus(function(){this.select()}),e("#searchraw_search_button").click(function(){return e("#search").val()&&(document.location=t+"/searchraw/"+e("#search").val()),!1}),e("#searchraw_download_selected").click(function(){return e("#dl input:checked").length&&e("#dl").trigger("submit"),!1}),e("#username").length&&e("#username").focus(),e("#search").length&&e("#search").focus(),e("#viewfilelist_download_selected").click(function(){return e("#fileform input:checked").length&&e("#fileform").trigger("submit"),!1}),e(".confirm_action").click(function(){return confirm("Are you sure?")}),e(".audioprev").click(function(){let t=document.getElementById(e(this).next("audio").attr("ID"));return null!=t&&("Listen"==e(this).text()?(t.play(),e(this).text("Stop")):(t.pause(),t.currentTime=0,e(this).text("Listen"))),t.addEventListener("ended",function(){e(this).prev().text("Listen")}),!1}),e(".mmenu").click(function(){return document.location=e(this).children("a").attr("href"),!1}),e(".mmenu_new").click(function(){return window.open(e(this).children("a").attr("href")),!1}),e(".checkbox_operations .select_all").click(function(){return e("table.data INPUT[type='checkbox']").attr("checked",!0).trigger("change"),!1}),e(".checkbox_operations .select_none").click(function(){return e("table.data INPUT[type='checkbox']").attr("checked",!1).trigger("change"),!1}),e(".checkbox_operations .select_invert").click(function(){return e("table.data INPUT[type='checkbox']").each(function(){e(this).attr("checked",!e(this).attr("checked")).trigger("change")}),!1}),e(".checkbox_operations .select_range").click(function(){return r&&o&&r1&&""!=o[1])t+=o[1],n+=o[1].length;else{if(" "==e[n])t+="+";else{let r=e.charCodeAt(n).toString(16);t+="%"+(r.length<2?"0":"")+r.toUpperCase()}n++}}return t},URLDecode:function(e){let t,n=e,r=/(%[^%]{2})/;for(;null!=(m=r.exec(n))&&m.length>1&&""!=m[1];)b=parseInt(m[1].substr(1),16),t=String.fromCharCode(b),n=n.replace(m[1],t);return n}}),$(function(){let e=$("input.flat-all"),t=$("input.flat");$("input").iCheck({checkboxClass:"icheckbox_flat-green",radioClass:"iradio_flat-green"}),e.on("ifChecked ifUnchecked",function(e){"ifChecked"===e.type?t.iCheck("check"):t.iCheck("uncheck")}),t.on("ifChanged",function(n){t.filter(":checked").length===t.length?e.prop("checked","checked"):e.prop("checked",!1),e.iCheck("update")})}),tinyMCE.init({selector:"textarea#addMessage",theme:"silver",plugins:["advlist autolink link image lists charmap print preview hr anchor pagebreak spellchecker","searchreplace wordcount visualblocks visualchars code fullscreen insertdatetime media nonbreaking","save table directionality emoticons template paste code"],theme_advanced_toolbar_location:"top",theme_advanced_toolbar_align:"left",toolbar:"insertfile undo redo | styleselect | fontselect |sizeselect | fontsizeselect | bold italic | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | link image | print preview media fullpage | forecolor backcolor emoticons | code",fontsize_formats:"8pt 9pt 10pt 11pt 12pt 13pt 14pt 15pt 16pt 17pt 18pt 24pt 36pt",mode:"exact",relative_urls:!1,remove_script_host:!1,convert_urls:!0}); +var l,a;!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(e,t){"use strict";var n=[],r=e.document,o=Object.getPrototypeOf,i=n.slice,c=n.concat,a=n.push,s=n.indexOf,l={},u=l.toString,h=l.hasOwnProperty,f=h.toString,d=f.call(Object),m={},v=function(e){return"function"==typeof e&&"number"!=typeof e.nodeType},p=function(e){return null!=e&&e===e.window},g={type:!0,src:!0,nonce:!0,noModule:!0};function b(e,t,n){var o,i,c=(n=n||r).createElement("script");if(c.text=e,t)for(o in g)(i=t[o]||t.getAttribute&&t.getAttribute(o))&&c.setAttribute(o,i);n.head.appendChild(c).parentNode.removeChild(c)}function z(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?l[u.call(e)]||"object":typeof e}var y="3.4.1",C=function(e,t){return new C.fn.init(e,t)},M=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;function w(e){var t=!!e&&"length"in e&&e.length,n=z(e);return!v(e)&&!p(e)&&("array"===n||0===t||"number"==typeof t&&0+~]|"+I+")"+I+"*"),U=new RegExp(I+"|>"),W=new RegExp(B),Y=new RegExp("^"+P+"$"),X={ID:new RegExp("^#("+P+")"),CLASS:new RegExp("^\\.("+P+")"),TAG:new RegExp("^("+P+"|[*])"),ATTR:new RegExp("^"+R),PSEUDO:new RegExp("^"+B),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+I+"*(even|odd|(([+-]|)(\\d*)n|)"+I+"*(?:([+-]|)"+I+"*(\\d+)|))"+I+"*\\)|)","i"),bool:new RegExp("^(?:"+O+")$","i"),needsContext:new RegExp("^"+I+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+I+"*((?:-\\d)?\\d*)"+I+"*\\)|)(?=[^-]|$)","i")},G=/HTML$/i,Q=/^(?:input|select|textarea|button)$/i,Z=/^h\d$/i,K=/^[^{]+\{\s*\[native \w/,J=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ee=/[+~]/,te=new RegExp("\\\\([\\da-f]{1,6}"+I+"?|("+I+")|.)","ig"),ne=function(e,t,n){var r="0x"+t-65536;return r!=r||n?t:r<0?String.fromCharCode(r+65536):String.fromCharCode(r>>10|55296,1023&r|56320)},re=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,oe=function(e,t){return t?"\0"===e?"�":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e},ie=function(){f()},ce=ye(function(e){return!0===e.disabled&&"fieldset"===e.nodeName.toLowerCase()},{dir:"parentNode",next:"legend"});try{E.apply(k=D.call(C.childNodes),C.childNodes),k[C.childNodes.length].nodeType}catch(t){E={apply:k.length?function(e,t){T.apply(e,D.call(t))}:function(e,t){for(var n=e.length,r=0;e[n++]=t[r++];);e.length=n-1}}}function ae(e,t,r,o){var i,a,l,u,h,m,g,b=t&&t.ownerDocument,M=t?t.nodeType:9;if(r=r||[],"string"!=typeof e||!e||1!==M&&9!==M&&11!==M)return r;if(!o&&((t?t.ownerDocument||t:C)!==d&&f(t),t=t||d,v)){if(11!==M&&(h=J.exec(e)))if(i=h[1]){if(9===M){if(!(l=t.getElementById(i)))return r;if(l.id===i)return r.push(l),r}else if(b&&(l=b.getElementById(i))&&z(t,l)&&l.id===i)return r.push(l),r}else{if(h[2])return E.apply(r,t.getElementsByTagName(e)),r;if((i=h[3])&&n.getElementsByClassName&&t.getElementsByClassName)return E.apply(r,t.getElementsByClassName(i)),r}if(n.qsa&&!S[e+" "]&&(!p||!p.test(e))&&(1!==M||"object"!==t.nodeName.toLowerCase())){if(g=e,b=t,1===M&&U.test(e)){for((u=t.getAttribute("id"))?u=u.replace(re,oe):t.setAttribute("id",u=y),a=(m=c(e)).length;a--;)m[a]="#"+u+" "+ze(m[a]);g=m.join(","),b=ee.test(e)&&ge(t.parentNode)||t}try{return E.apply(r,b.querySelectorAll(g)),r}catch(t){S(e,!0)}finally{u===y&&t.removeAttribute("id")}}}return s(e.replace(F,"$1"),t,r,o)}function se(){var e=[];return function t(n,o){return e.push(n+" ")>r.cacheLength&&delete t[e.shift()],t[n+" "]=o}}function le(e){return e[y]=!0,e}function ue(e){var t=d.createElement("fieldset");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function he(e,t){for(var n=e.split("|"),o=n.length;o--;)r.attrHandle[n[o]]=t}function fe(e,t){var n=t&&e,r=n&&1===e.nodeType&&1===t.nodeType&&e.sourceIndex-t.sourceIndex;if(r)return r;if(n)for(;n=n.nextSibling;)if(n===t)return-1;return e?1:-1}function de(e){return function(t){return"input"===t.nodeName.toLowerCase()&&t.type===e}}function me(e){return function(t){var n=t.nodeName.toLowerCase();return("input"===n||"button"===n)&&t.type===e}}function ve(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 pe(e){return le(function(t){return t=+t,le(function(n,r){for(var o,i=e([],n.length,t),c=i.length;c--;)n[o=i[c]]&&(n[o]=!(r[o]=n[o]))})})}function ge(e){return e&&void 0!==e.getElementsByTagName&&e}for(t in n=ae.support={},i=ae.isXML=function(e){var t=e.namespaceURI,n=(e.ownerDocument||e).documentElement;return!G.test(t||n&&n.nodeName||"HTML")},f=ae.setDocument=function(e){var t,o,c=e?e.ownerDocument||e:C;return c!==d&&9===c.nodeType&&c.documentElement&&(m=(d=c).documentElement,v=!i(d),C!==d&&(o=d.defaultView)&&o.top!==o&&(o.addEventListener?o.addEventListener("unload",ie,!1):o.attachEvent&&o.attachEvent("onunload",ie)),n.attributes=ue(function(e){return e.className="i",!e.getAttribute("className")}),n.getElementsByTagName=ue(function(e){return e.appendChild(d.createComment("")),!e.getElementsByTagName("*").length}),n.getElementsByClassName=K.test(d.getElementsByClassName),n.getById=ue(function(e){return m.appendChild(e).id=y,!d.getElementsByName||!d.getElementsByName(y).length}),n.getById?(r.filter.ID=function(e){var t=e.replace(te,ne);return function(e){return e.getAttribute("id")===t}},r.find.ID=function(e,t){if(void 0!==t.getElementById&&v){var n=t.getElementById(e);return n?[n]:[]}}):(r.filter.ID=function(e){var t=e.replace(te,ne);return function(e){var n=void 0!==e.getAttributeNode&&e.getAttributeNode("id");return n&&n.value===t}},r.find.ID=function(e,t){if(void 0!==t.getElementById&&v){var n,r,o,i=t.getElementById(e);if(i){if((n=i.getAttributeNode("id"))&&n.value===e)return[i];for(o=t.getElementsByName(e),r=0;i=o[r++];)if((n=i.getAttributeNode("id"))&&n.value===e)return[i]}return[]}}),r.find.TAG=n.getElementsByTagName?function(e,t){return void 0!==t.getElementsByTagName?t.getElementsByTagName(e):n.qsa?t.querySelectorAll(e):void 0}:function(e,t){var n,r=[],o=0,i=t.getElementsByTagName(e);if("*"===e){for(;n=i[o++];)1===n.nodeType&&r.push(n);return r}return i},r.find.CLASS=n.getElementsByClassName&&function(e,t){if(void 0!==t.getElementsByClassName&&v)return t.getElementsByClassName(e)},g=[],p=[],(n.qsa=K.test(d.querySelectorAll))&&(ue(function(e){m.appendChild(e).innerHTML="",e.querySelectorAll("[msallowcapture^='']").length&&p.push("[*^$]="+I+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||p.push("\\["+I+"*(?:value|"+O+")"),e.querySelectorAll("[id~="+y+"-]").length||p.push("~="),e.querySelectorAll(":checked").length||p.push(":checked"),e.querySelectorAll("a#"+y+"+*").length||p.push(".#.+[+~]")}),ue(function(e){e.innerHTML="";var t=d.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&p.push("name"+I+"*[*^$|!~]?="),2!==e.querySelectorAll(":enabled").length&&p.push(":enabled",":disabled"),m.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&p.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),p.push(",.*:")})),(n.matchesSelector=K.test(b=m.matches||m.webkitMatchesSelector||m.mozMatchesSelector||m.oMatchesSelector||m.msMatchesSelector))&&ue(function(e){n.disconnectedMatch=b.call(e,"*"),b.call(e,"[s!='']:x"),g.push("!=",B)}),p=p.length&&new RegExp(p.join("|")),g=g.length&&new RegExp(g.join("|")),t=K.test(m.compareDocumentPosition),z=t||K.test(m.contains)?function(e,t){var n=9===e.nodeType?e.documentElement:e,r=t&&t.parentNode;return e===r||!(!r||1!==r.nodeType||!(n.contains?n.contains(r):e.compareDocumentPosition&&16&e.compareDocumentPosition(r)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},L=t?function(e,t){if(e===t)return h=!0,0;var r=!e.compareDocumentPosition-!t.compareDocumentPosition;return r||(1&(r=(e.ownerDocument||e)===(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!n.sortDetached&&t.compareDocumentPosition(e)===r?e===d||e.ownerDocument===C&&z(C,e)?-1:t===d||t.ownerDocument===C&&z(C,t)?1:u?N(u,e)-N(u,t):0:4&r?-1:1)}:function(e,t){if(e===t)return h=!0,0;var n,r=0,o=e.parentNode,i=t.parentNode,c=[e],a=[t];if(!o||!i)return e===d?-1:t===d?1:o?-1:i?1:u?N(u,e)-N(u,t):0;if(o===i)return fe(e,t);for(n=e;n=n.parentNode;)c.unshift(n);for(n=t;n=n.parentNode;)a.unshift(n);for(;c[r]===a[r];)r++;return r?fe(c[r],a[r]):c[r]===C?-1:a[r]===C?1:0}),d},ae.matches=function(e,t){return ae(e,null,null,t)},ae.matchesSelector=function(e,t){if((e.ownerDocument||e)!==d&&f(e),n.matchesSelector&&v&&!S[t+" "]&&(!g||!g.test(t))&&(!p||!p.test(t)))try{var r=b.call(e,t);if(r||n.disconnectedMatch||e.document&&11!==e.document.nodeType)return r}catch(e){S(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]||ae.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]&&ae.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return X.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&W.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(te,ne).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=_[e+" "];return t||(t=new RegExp("(^|"+I+")"+e+"("+I+"|$)"))&&_(e,function(e){return t.test("string"==typeof e.className&&e.className||void 0!==e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(e,t,n){return function(r){var o=ae.attr(r,e);return null==o?"!="===t:!t||(o+="","="===t?o===n:"!="===t?o!==n:"^="===t?n&&0===o.indexOf(n):"*="===t?n&&-1:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function k(e,t,n){return v(t)?C.grep(e,function(e,r){return!!t.call(e,r,e)!==n}):t.nodeType?C.grep(e,function(e){return e===t!==n}):"string"!=typeof t?C.grep(e,function(e){return-1)[^>]*|#([\w-]+))$/;(C.fn.init=function(e,t,n){var o,i;if(!e)return this;if(n=n||A,"string"==typeof e){if(!(o="<"===e[0]&&">"===e[e.length-1]&&3<=e.length?[null,e,null]:T.exec(e))||!o[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(o[1]){if(t=t instanceof C?t[0]:t,C.merge(this,C.parseHTML(o[1],t&&t.nodeType?t.ownerDocument||t:r,!0)),V.test(o[1])&&C.isPlainObject(t))for(o in t)v(this[o])?this[o](t[o]):this.attr(o,t[o]);return this}return(i=r.getElementById(o[2]))&&(this[0]=i,this.length=1),this}return e.nodeType?(this[0]=e,this.length=1,this):v(e)?void 0!==n.ready?n.ready(e):e(C):C.makeArray(e,this)}).prototype=C.fn,A=C(r);var E=/^(?:parents|prev(?:Until|All))/,D={children:!0,contents:!0,next:!0,prev:!0};function N(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}C.fn.extend({has:function(e){var t=C(e,this),n=t.length;return this.filter(function(){for(var e=0;e\x20\t\r\n\f]*)/i,me=/^$|^module$|\/(?:java|ecma)script/i,ve={option:[1,""],thead:[1,"","
    "],col:[2,"","
    "],tr:[2,"","
    "],td:[3,"","
    "],_default:[0,"",""]};function pe(e,t){var n;return n=void 0!==e.getElementsByTagName?e.getElementsByTagName(t||"*"):void 0!==e.querySelectorAll?e.querySelectorAll(t||"*"):[],void 0===t||t&&L(e,t)?C.merge([e],n):n}function ge(e,t){for(var n=0,r=e.length;nx",m.noCloneChecked=!!be.cloneNode(!0).lastChild.defaultValue;var Me=/^key/,we=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,_e=/^([^.]*)(?:\.(.+)|)/;function xe(){return!0}function He(){return!1}function Se(e,t){return e===function(){try{return r.activeElement}catch(e){}}()==("focus"===t)}function Le(e,t,n,r,o,i){var c,a;if("object"==typeof t){for(a in"string"!=typeof n&&(r=r||n,n=void 0),t)Le(e,a,n,r,t[a],i);return e}if(null==r&&null==o?(o=n,r=n=void 0):null==o&&("string"==typeof n?(o=r,r=void 0):(o=r,r=n,n=void 0)),!1===o)o=He;else if(!o)return e;return 1===i&&(c=o,(o=function(e){return C().off(e),c.apply(this,arguments)}).guid=c.guid||(c.guid=C.guid++)),e.each(function(){C.event.add(this,t,o,r,n)})}function Ve(e,t,n){n?(Q.set(e,t,!1),C.event.add(e,t,{namespace:!1,handler:function(e){var r,o,c=Q.get(this,t);if(1&e.isTrigger&&this[t]){if(c.length)(C.event.special[t]||{}).delegateType&&e.stopPropagation();else if(c=i.call(arguments),Q.set(this,t,c),r=n(this,t),this[t](),c!==(o=Q.get(this,t))||r?Q.set(this,t,!1):o={},c!==o)return e.stopImmediatePropagation(),e.preventDefault(),o.value}else c.length&&(Q.set(this,t,{value:C.event.trigger(C.extend(c[0],C.Event.prototype),c.slice(1),this)}),e.stopImmediatePropagation())}})):void 0===Q.get(e,t)&&C.event.add(e,t,xe)}C.event={global:{},add:function(e,t,n,r,o){var i,c,a,s,l,u,h,f,d,m,v,p=Q.get(e);if(p)for(n.handler&&(n=(i=n).handler,o=i.selector),o&&C.find.matchesSelector(oe,o),n.guid||(n.guid=C.guid++),(s=p.events)||(s=p.events={}),(c=p.handle)||(c=p.handle=function(t){return void 0!==C&&C.event.triggered!==t.type?C.event.dispatch.apply(e,arguments):void 0}),l=(t=(t||"").match(O)||[""]).length;l--;)d=v=(a=_e.exec(t[l])||[])[1],m=(a[2]||"").split(".").sort(),d&&(h=C.event.special[d]||{},d=(o?h.delegateType:h.bindType)||d,h=C.event.special[d]||{},u=C.extend({type:d,origType:v,data:r,handler:n,guid:n.guid,selector:o,needsContext:o&&C.expr.match.needsContext.test(o),namespace:m.join(".")},i),(f=s[d])||((f=s[d]=[]).delegateCount=0,h.setup&&!1!==h.setup.call(e,r,m,c)||e.addEventListener&&e.addEventListener(d,c)),h.add&&(h.add.call(e,u),u.handler.guid||(u.handler.guid=n.guid)),o?f.splice(f.delegateCount++,0,u):f.push(u),C.event.global[d]=!0)},remove:function(e,t,n,r,o){var i,c,a,s,l,u,h,f,d,m,v,p=Q.hasData(e)&&Q.get(e);if(p&&(s=p.events)){for(l=(t=(t||"").match(O)||[""]).length;l--;)if(d=v=(a=_e.exec(t[l])||[])[1],m=(a[2]||"").split(".").sort(),d){for(h=C.event.special[d]||{},f=s[d=(r?h.delegateType:h.bindType)||d]||[],a=a[2]&&new RegExp("(^|\\.)"+m.join("\\.(?:.*\\.|)")+"(\\.|$)"),c=i=f.length;i--;)u=f[i],!o&&v!==u.origType||n&&n.guid!==u.guid||a&&!a.test(u.namespace)||r&&r!==u.selector&&("**"!==r||!u.selector)||(f.splice(i,1),u.selector&&f.delegateCount--,h.remove&&h.remove.call(e,u));c&&!f.length&&(h.teardown&&!1!==h.teardown.call(e,m,p.handle)||C.removeEvent(e,d,p.handle),delete s[d])}else for(d in s)C.event.remove(e,d+t[l],n,r,!0);C.isEmptyObject(s)&&Q.remove(e,"handle events")}},dispatch:function(e){var t,n,r,o,i,c,a=C.event.fix(e),s=new Array(arguments.length),l=(Q.get(this,"events")||{})[a.type]||[],u=C.event.special[a.type]||{};for(s[0]=a,t=1;t\x20\t\r\n\f]*)[^>]*)\/>/gi,Ae=/\s*$/g;function De(e,t){return L(e,"table")&&L(11!==t.nodeType?t:t.firstChild,"tr")&&C(e).children("tbody")[0]||e}function Ne(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function Oe(e){return"true/"===(e.type||"").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute("type"),e}function Ie(e,t){var n,r,o,i,c,a,s,l;if(1===t.nodeType){if(Q.hasData(e)&&(i=Q.access(e),c=Q.set(t,i),l=i.events))for(o in delete c.handle,c.events={},l)for(n=0,r=l[o].length;n")},clone:function(e,t,n){var r,o,i,c,a,s,l,u=e.cloneNode(!0),h=ie(e);if(!(m.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||C.isXMLDoc(e)))for(c=pe(u),r=0,o=(i=pe(e)).length;r").attr(e.scriptAttrs||{}).prop({charset:e.scriptCharset,src:e.url}).on("load error",n=function(e){t.remove(),n=null,e&&i("error"===e.type?404:200,e.type)}),r.head.appendChild(t[0])},abort:function(){n&&n()}}});var Yt,Xt=[],Gt=/(=)\?(?=&|$)|\?\?/;C.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=Xt.pop()||C.expando+"_"+xt++;return this[e]=!0,e}}),C.ajaxPrefilter("json jsonp",function(t,n,r){var o,i,c,a=!1!==t.jsonp&&(Gt.test(t.url)?"url":"string"==typeof t.data&&0===(t.contentType||"").indexOf("application/x-www-form-urlencoded")&&Gt.test(t.data)&&"data");if(a||"jsonp"===t.dataTypes[0])return o=t.jsonpCallback=v(t.jsonpCallback)?t.jsonpCallback():t.jsonpCallback,a?t[a]=t[a].replace(Gt,"$1"+o):!1!==t.jsonp&&(t.url+=(Ht.test(t.url)?"&":"?")+t.jsonp+"="+o),t.converters["script json"]=function(){return c||C.error(o+" was not called"),c[0]},t.dataTypes[0]="json",i=e[o],e[o]=function(){c=arguments},r.always(function(){void 0===i?C(e).removeProp(o):e[o]=i,t[o]&&(t.jsonpCallback=n.jsonpCallback,Xt.push(o)),c&&v(i)&&i(c[0]),c=i=void 0}),"script"}),m.createHTMLDocument=((Yt=r.implementation.createHTMLDocument("").body).innerHTML="
    ",2===Yt.childNodes.length),C.parseHTML=function(e,t,n){return"string"!=typeof e?[]:("boolean"==typeof t&&(n=t,t=!1),t||(m.createHTMLDocument?((o=(t=r.implementation.createHTMLDocument("")).createElement("base")).href=r.location.href,t.head.appendChild(o)):t=r),c=!n&&[],(i=V.exec(e))?[t.createElement(i[1])]:(i=Ce([e],t,c),c&&c.length&&C(c).remove(),C.merge([],i.childNodes)));var o,i,c},C.fn.load=function(e,t,n){var r,o,i,c=this,a=e.indexOf(" ");return-1").append(C.parseHTML(e)).find(r):e)}).always(n&&function(e,t){c.each(function(){n.apply(this,i||[e.responseText,t,e])})}),this},C.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){C.fn[t]=function(e){return this.on(t,e)}}),C.expr.pseudos.animated=function(e){return C.grep(C.timers,function(t){return e===t.elem}).length},C.offset={setOffset:function(e,t,n){var r,o,i,c,a,s,l=C.css(e,"position"),u=C(e),h={};"static"===l&&(e.style.position="relative"),a=u.offset(),i=C.css(e,"top"),s=C.css(e,"left"),("absolute"===l||"fixed"===l)&&-1<(i+s).indexOf("auto")?(c=(r=u.position()).top,o=r.left):(c=parseFloat(i)||0,o=parseFloat(s)||0),v(t)&&(t=t.call(e,n,C.extend({},a))),null!=t.top&&(h.top=t.top-a.top+c),null!=t.left&&(h.left=t.left-a.left+o),"using"in t?t.using.call(e,h):u.css(h)}},C.fn.extend({offset:function(e){if(arguments.length)return void 0===e?this:this.each(function(t){C.offset.setOffset(this,e,t)});var t,n,r=this[0];return r?r.getClientRects().length?(t=r.getBoundingClientRect(),n=r.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,r=this[0],o={top:0,left:0};if("fixed"===C.css(r,"position"))t=r.getBoundingClientRect();else{for(t=this.offset(),n=r.ownerDocument,e=r.offsetParent||n.documentElement;e&&(e===n.body||e===n.documentElement)&&"static"===C.css(e,"position");)e=e.parentNode;e&&e!==r&&1===e.nodeType&&((o=C(e).offset()).top+=C.css(e,"borderTopWidth",!0),o.left+=C.css(e,"borderLeftWidth",!0))}return{top:t.top-o.top-C.css(r,"marginTop",!0),left:t.left-o.left-C.css(r,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var e=this.offsetParent;e&&"static"===C.css(e,"position");)e=e.offsetParent;return e||oe})}}),C.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(e,t){var n="pageYOffset"===t;C.fn[e]=function(r){return $(this,function(e,r,o){var i;if(p(e)?i=e:9===e.nodeType&&(i=e.defaultView),void 0===o)return i?i[t]:e[r];i?i.scrollTo(n?i.pageXOffset:o,n?o:i.pageYOffset):e[r]=o},e,r,arguments.length)}}),C.each(["top","left"],function(e,t){C.cssHooks[t]=qe(m.pixelPosition,function(e,n){if(n)return n=$e(e,t),Be.test(n)?C(e).position()[t]+"px":n})}),C.each({Height:"height",Width:"width"},function(e,t){C.each({padding:"inner"+e,content:t,"":"outer"+e},function(n,r){C.fn[r]=function(o,i){var c=arguments.length&&(n||"boolean"!=typeof o),a=n||(!0===o||!0===i?"margin":"border");return $(this,function(t,n,o){var i;return p(t)?0===r.indexOf("outer")?t["inner"+e]:t.document.documentElement["client"+e]:9===t.nodeType?(i=t.documentElement,Math.max(t.body["scroll"+e],i["scroll"+e],t.body["offset"+e],i["offset"+e],i["client"+e])):void 0===o?C.css(t,n,a):C.style(t,n,o,a)},t,c?o:void 0,c)}})}),C.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){C.fn[t]=function(e,n){return 0+o[i])return 1;if(+r[i]<+o[i])return-1}return 0}(e.fn.jquery,t)}e.migrateVersion="3.1.0",t.console&&t.console.log&&(e&&n("3.0.0")||t.console.log("JQMIGRATE: jQuery 3.0.0+ REQUIRED"),e.migrateWarnings&&t.console.log("JQMIGRATE: Migrate plugin loaded multiple times"),t.console.log("JQMIGRATE: Migrate is installed"+(e.migrateMute?"":" with logging active")+", version "+e.migrateVersion));var r={};function o(n){var o=t.console;r[n]||(r[n]=!0,e.migrateWarnings.push(n),o&&o.warn&&!e.migrateMute&&(o.warn("JQMIGRATE: "+n),e.migrateTrace&&o.trace&&o.trace()))}function i(e,t,n,r){Object.defineProperty(e,t,{configurable:!0,enumerable:!0,get:function(){return o(r),n},set:function(e){o(r),n=e}})}function c(e,t,n,r){e[t]=function(){return o(r),n.apply(this,arguments)}}e.migrateWarnings=[],void 0===e.migrateTrace&&(e.migrateTrace=!0),e.migrateReset=function(){r={},e.migrateWarnings.length=0},"BackCompat"===t.document.compatMode&&o("jQuery is not compatible with Quirks Mode");var a,s=e.fn.init,l=e.isNumeric,u=e.find,h=/\[(\s*[-\w]+\s*)([~|^$*]?=)\s*([-\w#]*?#[-\w#]*)\s*\]/,f=/\[(\s*[-\w]+\s*)([~|^$*]?=)\s*([-\w#]*?#[-\w#]*)\s*\]/g;for(a in e.fn.init=function(e){var t=Array.prototype.slice.call(arguments);return"string"==typeof e&&"#"===e&&(o("jQuery( '#' ) is not a valid selector"),t[0]=[]),s.apply(this,t)},e.fn.init.prototype=e.fn,e.find=function(e){var n=Array.prototype.slice.call(arguments);if("string"==typeof e&&h.test(e))try{t.document.querySelector(e)}catch(r){e=e.replace(f,function(e,t,n,r){return"["+t+n+'"'+r+'"]'});try{t.document.querySelector(e),o("Attribute selector with '#' must be quoted: "+n[0]),n[0]=e}catch(e){o("Attribute selector with '#' was not fixed: "+n[0])}}return u.apply(this,n)},u)Object.prototype.hasOwnProperty.call(u,a)&&(e.find[a]=u[a]);e.fn.size=function(){return o("jQuery.fn.size() is deprecated and removed; use the .length property"),this.length},e.parseJSON=function(){return o("jQuery.parseJSON is deprecated; use JSON.parse"),JSON.parse.apply(null,arguments)},e.isNumeric=function(t){var n,r,i=l(t),c=(r=(n=t)&&n.toString(),!e.isArray(n)&&0<=r-parseFloat(r)+1);return i!==c&&o("jQuery.isNumeric() should not be called on constructed objects"),c},n("3.3.0")&&c(e,"isWindow",function(e){return null!=e&&e===e.window},"jQuery.isWindow() is deprecated"),c(e,"holdReady",e.holdReady,"jQuery.holdReady is deprecated"),c(e,"unique",e.uniqueSort,"jQuery.unique is deprecated; use jQuery.uniqueSort"),i(e.expr,"filters",e.expr.pseudos,"jQuery.expr.filters is deprecated; use jQuery.expr.pseudos"),i(e.expr,":",e.expr.pseudos,"jQuery.expr[':'] is deprecated; use jQuery.expr.pseudos"),n("3.2.0")&&c(e,"nodeName",e.nodeName,"jQuery.nodeName is deprecated");var d=e.ajax;e.ajax=function(){var e=d.apply(this,arguments);return e.promise&&(c(e,"success",e.done,"jQXHR.success is deprecated and removed"),c(e,"error",e.fail,"jQXHR.error is deprecated and removed"),c(e,"complete",e.always,"jQXHR.complete is deprecated and removed")),e};var m=e.fn.removeAttr,v=e.fn.toggleClass,p=/\S+/g;e.fn.removeAttr=function(t){var n=this;return e.each(t.match(p),function(t,r){e.expr.match.bool.test(r)&&(o("jQuery.fn.removeAttr no longer sets boolean properties: "+r),n.prop(r,!1))}),m.apply(this,arguments)};var g=!(e.fn.toggleClass=function(t){return void 0!==t&&"boolean"!=typeof t?v.apply(this,arguments):(o("jQuery.fn.toggleClass( boolean ) is deprecated"),this.each(function(){var n=this.getAttribute&&this.getAttribute("class")||"";n&&e.data(this,"__className__",n),this.setAttribute&&this.setAttribute("class",n||!1===t?"":e.data(this,"__className__")||"")}))});e.swap&&e.each(["height","width","reliableMarginRight"],function(t,n){var r=e.cssHooks[n]&&e.cssHooks[n].get;r&&(e.cssHooks[n].get=function(){var e;return g=!0,e=r.apply(this,arguments),g=!1,e})}),e.swap=function(e,t,n,r){var i,c,a={};for(c in g||o("jQuery.swap() is undocumented and deprecated"),t)a[c]=e.style[c],e.style[c]=t[c];for(c in i=n.apply(e,r||[]),t)e.style[c]=a[c];return i};var b=e.data;function z(e){return e}e.data=function(t,n,r){var i;if(n&&"object"==typeof n&&2===arguments.length){i=e.hasData(t)&&b.call(this,t);var c={};for(var a in n)a!==e.camelCase(a)?(o("jQuery.data() always sets/gets camelCased names: "+a),i[a]=n[a]):c[a]=n[a];return b.call(this,t,c),n}return n&&"string"==typeof n&&n!==e.camelCase(n)&&(i=e.hasData(t)&&b.call(this,t))&&n in i?(o("jQuery.data() always sets/gets camelCased names: "+n),2=4)throw new Error("Bootstrap's JavaScript requires at least jQuery v1.9.1 but less than v4.0.0")}};l.jQueryDetection(),t.fn.emulateTransitionEnd=s,t.event.special[l.TRANSITION_END]={bindType:a,delegateType:a,handle:function(e){if(t(e.target).is(this))return e.handleObj.handler.apply(this,arguments)}};var u=t.fn.alert,h={CLOSE:"close.bs.alert",CLOSED:"closed.bs.alert",CLICK_DATA_API:"click.bs.alert.data-api"},f="alert",d="fade",m="show",v=function(){function e(e){this._element=e}var n=e.prototype;return n.close=function(e){var t=this._element;e&&(t=this._getRootElement(e)),this._triggerCloseEvent(t).isDefaultPrevented()||this._removeElement(t)},n.dispose=function(){t.removeData(this._element,"bs.alert"),this._element=null},n._getRootElement=function(e){var n=l.getSelectorFromElement(e),r=!1;return n&&(r=document.querySelector(n)),r||(r=t(e).closest("."+f)[0]),r},n._triggerCloseEvent=function(e){var n=t.Event(h.CLOSE);return t(e).trigger(n),n},n._removeElement=function(e){var n=this;if(t(e).removeClass(m),t(e).hasClass(d)){var r=l.getTransitionDurationFromElement(e);t(e).one(l.TRANSITION_END,function(t){return n._destroyElement(e,t)}).emulateTransitionEnd(r)}else this._destroyElement(e)},n._destroyElement=function(e){t(e).detach().trigger(h.CLOSED).remove()},e._jQueryInterface=function(n){return this.each(function(){var r=t(this),o=r.data("bs.alert");o||(o=new e(this),r.data("bs.alert",o)),"close"===n&&o[n](this)})},e._handleDismiss=function(e){return function(t){t&&t.preventDefault(),e.close(this)}},r(e,null,[{key:"VERSION",get:function(){return"4.4.1"}}]),e}();t(document).on(h.CLICK_DATA_API,'[data-dismiss="alert"]',v._handleDismiss(new v)),t.fn.alert=v._jQueryInterface,t.fn.alert.Constructor=v,t.fn.alert.noConflict=function(){return t.fn.alert=u,v._jQueryInterface};var p=t.fn.button,g="active",b="btn",z="focus",y='[data-toggle^="button"]',C='[data-toggle="buttons"]',M='[data-toggle="button"]',w='[data-toggle="buttons"] .btn',_='input:not([type="hidden"])',x=".active",H=".btn",S={CLICK_DATA_API:"click.bs.button.data-api",FOCUS_BLUR_DATA_API:"focus.bs.button.data-api blur.bs.button.data-api",LOAD_DATA_API:"load.bs.button.data-api"},L=function(){function e(e){this._element=e}var n=e.prototype;return n.toggle=function(){var e=!0,n=!0,r=t(this._element).closest(C)[0];if(r){var o=this._element.querySelector(_);if(o){if("radio"===o.type)if(o.checked&&this._element.classList.contains(g))e=!1;else{var i=r.querySelector(x);i&&t(i).removeClass(g)}else"checkbox"===o.type?"LABEL"===this._element.tagName&&o.checked===this._element.classList.contains(g)&&(e=!1):e=!1;e&&(o.checked=!this._element.classList.contains(g),t(o).trigger("change")),o.focus(),n=!1}}this._element.hasAttribute("disabled")||this._element.classList.contains("disabled")||(n&&this._element.setAttribute("aria-pressed",!this._element.classList.contains(g)),e&&t(this._element).toggleClass(g))},n.dispose=function(){t.removeData(this._element,"bs.button"),this._element=null},e._jQueryInterface=function(n){return this.each(function(){var r=t(this).data("bs.button");r||(r=new e(this),t(this).data("bs.button",r)),"toggle"===n&&r[n]()})},r(e,null,[{key:"VERSION",get:function(){return"4.4.1"}}]),e}();t(document).on(S.CLICK_DATA_API,y,function(e){var n=e.target;if(t(n).hasClass(b)||(n=t(n).closest(H)[0]),!n||n.hasAttribute("disabled")||n.classList.contains("disabled"))e.preventDefault();else{var r=n.querySelector(_);if(r&&(r.hasAttribute("disabled")||r.classList.contains("disabled")))return void e.preventDefault();L._jQueryInterface.call(t(n),"toggle")}}).on(S.FOCUS_BLUR_DATA_API,y,function(e){var n=t(e.target).closest(H)[0];t(n).toggleClass(z,/^focus(in)?$/.test(e.type))}),t(window).on(S.LOAD_DATA_API,function(){for(var e=[].slice.call(document.querySelectorAll(w)),t=0,n=e.length;t0,this._pointerEvent=Boolean(window.PointerEvent||window.MSPointerEvent),this._addEventListeners()}var n=e.prototype;return n.next=function(){this._isSliding||this._slide(D)},n.nextWhenVisible=function(){!document.hidden&&t(this._element).is(":visible")&&"hidden"!==t(this._element).css("visibility")&&this.next()},n.prev=function(){this._isSliding||this._slide(N)},n.pause=function(e){e||(this._isPaused=!0),this._element.querySelector(Y.NEXT_PREV)&&(l.triggerTransitionEnd(this._element),this.cycle(!0)),clearInterval(this._interval),this._interval=null},n.cycle=function(e){e||(this._isPaused=!1),this._interval&&(clearInterval(this._interval),this._interval=null),this._config.interval&&!this._isPaused&&(this._interval=setInterval((document.visibilityState?this.nextWhenVisible:this.next).bind(this),this._config.interval))},n.to=function(e){var n=this;this._activeElement=this._element.querySelector(Y.ACTIVE_ITEM);var r=this._getItemIndex(this._activeElement);if(!(e>this._items.length-1||e<0))if(this._isSliding)t(this._element).one(P.SLID,function(){return n.to(e)});else{if(r===e)return this.pause(),void this.cycle();var o=e>r?D:N;this._slide(o,this._items[e])}},n.dispose=function(){t(this._element).off(k),t.removeData(this._element,"bs.carousel"),this._items=null,this._config=null,this._element=null,this._interval=null,this._isPaused=null,this._isSliding=null,this._activeElement=null,this._indicatorsElement=null},n._getConfig=function(e){return e=c({},T,{},e),l.typeCheckConfig(V,e,E),e},n._handleSwipe=function(){var e=Math.abs(this.touchDeltaX);if(!(e<=40)){var t=e/this.touchDeltaX;this.touchDeltaX=0,t>0&&this.prev(),t<0&&this.next()}},n._addEventListeners=function(){var e=this;this._config.keyboard&&t(this._element).on(P.KEYDOWN,function(t){return e._keydown(t)}),"hover"===this._config.pause&&t(this._element).on(P.MOUSEENTER,function(t){return e.pause(t)}).on(P.MOUSELEAVE,function(t){return e.cycle(t)}),this._config.touch&&this._addTouchEventListeners()},n._addTouchEventListeners=function(){var e=this;if(this._touchSupported){var n=function(t){e._pointerEvent&&X[t.originalEvent.pointerType.toUpperCase()]?e.touchStartX=t.originalEvent.clientX:e._pointerEvent||(e.touchStartX=t.originalEvent.touches[0].clientX)},r=function(t){e._pointerEvent&&X[t.originalEvent.pointerType.toUpperCase()]&&(e.touchDeltaX=t.originalEvent.clientX-e.touchStartX),e._handleSwipe(),"hover"===e._config.pause&&(e.pause(),e.touchTimeout&&clearTimeout(e.touchTimeout),e.touchTimeout=setTimeout(function(t){return e.cycle(t)},500+e._config.interval))};t(this._element.querySelectorAll(Y.ITEM_IMG)).on(P.DRAG_START,function(e){return e.preventDefault()}),this._pointerEvent?(t(this._element).on(P.POINTERDOWN,function(e){return n(e)}),t(this._element).on(P.POINTERUP,function(e){return r(e)}),this._element.classList.add(W)):(t(this._element).on(P.TOUCHSTART,function(e){return n(e)}),t(this._element).on(P.TOUCHMOVE,function(t){return function(t){t.originalEvent.touches&&t.originalEvent.touches.length>1?e.touchDeltaX=0:e.touchDeltaX=t.originalEvent.touches[0].clientX-e.touchStartX}(t)}),t(this._element).on(P.TOUCHEND,function(e){return r(e)}))}},n._keydown=function(e){if(!/input|textarea/i.test(e.target.tagName))switch(e.which){case 37:e.preventDefault(),this.prev();break;case 39:e.preventDefault(),this.next()}},n._getItemIndex=function(e){return this._items=e&&e.parentNode?[].slice.call(e.parentNode.querySelectorAll(Y.ITEM)):[],this._items.indexOf(e)},n._getItemByDirection=function(e,t){var n=e===D,r=e===N,o=this._getItemIndex(t),i=this._items.length-1;if((r&&0===o||n&&o===i)&&!this._config.wrap)return t;var c=(o+(e===N?-1:1))%this._items.length;return-1===c?this._items[this._items.length-1]:this._items[c]},n._triggerSlideEvent=function(e,n){var r=this._getItemIndex(e),o=this._getItemIndex(this._element.querySelector(Y.ACTIVE_ITEM)),i=t.Event(P.SLIDE,{relatedTarget:e,direction:n,from:o,to:r});return t(this._element).trigger(i),i},n._setActiveIndicatorElement=function(e){if(this._indicatorsElement){var n=[].slice.call(this._indicatorsElement.querySelectorAll(Y.ACTIVE));t(n).removeClass(B);var r=this._indicatorsElement.children[this._getItemIndex(e)];r&&t(r).addClass(B)}},n._slide=function(e,n){var r,o,i,c=this,a=this._element.querySelector(Y.ACTIVE_ITEM),s=this._getItemIndex(a),u=n||a&&this._getItemByDirection(e,a),h=this._getItemIndex(u),f=Boolean(this._interval);if(e===D?(r=$,o=q,i=O):(r=F,o=U,i=I),u&&t(u).hasClass(B))this._isSliding=!1;else if(!this._triggerSlideEvent(u,i).isDefaultPrevented()&&a&&u){this._isSliding=!0,f&&this.pause(),this._setActiveIndicatorElement(u);var d=t.Event(P.SLID,{relatedTarget:u,direction:i,from:s,to:h});if(t(this._element).hasClass(j)){t(u).addClass(o),l.reflow(u),t(a).addClass(r),t(u).addClass(r);var m=parseInt(u.getAttribute("data-interval"),10);m?(this._config.defaultInterval=this._config.defaultInterval||this._config.interval,this._config.interval=m):this._config.interval=this._config.defaultInterval||this._config.interval;var v=l.getTransitionDurationFromElement(a);t(a).one(l.TRANSITION_END,function(){t(u).removeClass(r+" "+o).addClass(B),t(a).removeClass(B+" "+o+" "+r),c._isSliding=!1,setTimeout(function(){return t(c._element).trigger(d)},0)}).emulateTransitionEnd(v)}else t(a).removeClass(B),t(u).addClass(B),this._isSliding=!1,t(this._element).trigger(d);f&&this.cycle()}},e._jQueryInterface=function(n){return this.each(function(){var r=t(this).data("bs.carousel"),o=c({},T,{},t(this).data());"object"==typeof n&&(o=c({},o,{},n));var i="string"==typeof n?n:o.slide;if(r||(r=new e(this,o),t(this).data("bs.carousel",r)),"number"==typeof n)r.to(n);else if("string"==typeof i){if(void 0===r[i])throw new TypeError('No method named "'+i+'"');r[i]()}else o.interval&&o.ride&&(r.pause(),r.cycle())})},e._dataApiClickHandler=function(n){var r=l.getSelectorFromElement(this);if(r){var o=t(r)[0];if(o&&t(o).hasClass(R)){var i=c({},t(o).data(),{},t(this).data()),a=this.getAttribute("data-slide-to");a&&(i.interval=!1),e._jQueryInterface.call(t(o),i),a&&t(o).data("bs.carousel").to(a),n.preventDefault()}}},r(e,null,[{key:"VERSION",get:function(){return"4.4.1"}},{key:"Default",get:function(){return T}}]),e}();t(document).on(P.CLICK_DATA_API,Y.DATA_SLIDE,G._dataApiClickHandler),t(window).on(P.LOAD_DATA_API,function(){for(var e=[].slice.call(document.querySelectorAll(Y.DATA_RIDE)),n=0,r=e.length;n0&&(this._selector=c,this._triggerArray.push(i))}this._parent=this._config.parent?this._getParent():null,this._config.parent||this._addAriaAndCollapsedClass(this._element,this._triggerArray),this._config.toggle&&this.toggle()}var n=e.prototype;return n.toggle=function(){t(this._element).hasClass(te)?this.hide():this.show()},n.show=function(){var n,r,o=this;if(!this._isTransitioning&&!t(this._element).hasClass(te)&&(this._parent&&0===(n=[].slice.call(this._parent.querySelectorAll(ae.ACTIVES)).filter(function(e){return"string"==typeof o._config.parent?e.getAttribute("data-parent")===o._config.parent:e.classList.contains(ne)})).length&&(n=null),!(n&&(r=t(n).not(this._selector).data("bs.collapse"))&&r._isTransitioning))){var i=t.Event(ee.SHOW);if(t(this._element).trigger(i),!i.isDefaultPrevented()){n&&(e._jQueryInterface.call(t(n).not(this._selector),"hide"),r||t(n).data("bs.collapse",null));var c=this._getDimension();t(this._element).removeClass(ne).addClass(re),this._element.style[c]=0,this._triggerArray.length&&t(this._triggerArray).removeClass(oe).attr("aria-expanded",!0),this.setTransitioning(!0);var a="scroll"+(c[0].toUpperCase()+c.slice(1)),s=l.getTransitionDurationFromElement(this._element);t(this._element).one(l.TRANSITION_END,function(){t(o._element).removeClass(re).addClass(ne).addClass(te),o._element.style[c]="",o.setTransitioning(!1),t(o._element).trigger(ee.SHOWN)}).emulateTransitionEnd(s),this._element.style[c]=this._element[a]+"px"}}},n.hide=function(){var e=this;if(!this._isTransitioning&&t(this._element).hasClass(te)){var n=t.Event(ee.HIDE);if(t(this._element).trigger(n),!n.isDefaultPrevented()){var r=this._getDimension();this._element.style[r]=this._element.getBoundingClientRect()[r]+"px",l.reflow(this._element),t(this._element).addClass(re).removeClass(ne).removeClass(te);var o=this._triggerArray.length;if(o>0)for(var i=0;i=0)return 1;return 0}();var he=le&&window.Promise?function(e){var t=!1;return function(){t||(t=!0,window.Promise.resolve().then(function(){t=!1,e()}))}}:function(e){var t=!1;return function(){t||(t=!0,setTimeout(function(){t=!1,e()},ue))}};function fe(e){return e&&"[object Function]"==={}.toString.call(e)}function de(e,t){if(1!==e.nodeType)return[];var n=e.ownerDocument.defaultView.getComputedStyle(e,null);return t?n[t]:n}function me(e){return"HTML"===e.nodeName?e:e.parentNode||e.host}function ve(e){if(!e)return document.body;switch(e.nodeName){case"HTML":case"BODY":return e.ownerDocument.body;case"#document":return e.body}var t=de(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/(auto|scroll|overlay)/.test(n+o+r)?e:ve(me(e))}function pe(e){return e&&e.referenceNode?e.referenceNode:e}var ge=le&&!(!window.MSInputMethodContext||!document.documentMode),be=le&&/MSIE 10/.test(navigator.userAgent);function ze(e){return 11===e?ge:10===e?be:ge||be}function ye(e){if(!e)return document.documentElement;for(var t=ze(10)?document.body:null,n=e.offsetParent||null;n===t&&e.nextElementSibling;)n=(e=e.nextElementSibling).offsetParent;var r=n&&n.nodeName;return r&&"BODY"!==r&&"HTML"!==r?-1!==["TH","TD","TABLE"].indexOf(n.nodeName)&&"static"===de(n,"position")?ye(n):n:e?e.ownerDocument.documentElement:document.documentElement}function Ce(e){return null!==e.parentNode?Ce(e.parentNode):e}function Me(e,t){if(!(e&&e.nodeType&&t&&t.nodeType))return document.documentElement;var n=e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING,r=n?e:t,o=n?t:e,i=document.createRange();i.setStart(r,0),i.setEnd(o,0);var c,a,s=i.commonAncestorContainer;if(e!==s&&t!==s||r.contains(o))return"BODY"===(a=(c=s).nodeName)||"HTML"!==a&&ye(c.firstElementChild)!==c?ye(s):s;var l=Ce(e);return l.host?Me(l.host,t):Me(e,Ce(t).host)}function we(e){var t="top"===(arguments.length>1&&void 0!==arguments[1]?arguments[1]:"top")?"scrollTop":"scrollLeft",n=e.nodeName;if("BODY"===n||"HTML"===n){var r=e.ownerDocument.documentElement;return(e.ownerDocument.scrollingElement||r)[t]}return e[t]}function _e(e,t){var n="x"===t?"Left":"Top",r="Left"===n?"Right":"Bottom";return parseFloat(e["border"+n+"Width"],10)+parseFloat(e["border"+r+"Width"],10)}function xe(e,t,n,r){return Math.max(t["offset"+e],t["scroll"+e],n["client"+e],n["offset"+e],n["scroll"+e],ze(10)?parseInt(n["offset"+e])+parseInt(r["margin"+("Height"===e?"Top":"Left")])+parseInt(r["margin"+("Height"===e?"Bottom":"Right")]):0)}function He(e){var t=e.body,n=e.documentElement,r=ze(10)&&getComputedStyle(n);return{height:xe("Height",t,n,r),width:xe("Width",t,n,r)}}var Se=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},Le=function(){function e(e,t){for(var n=0;n2&&void 0!==arguments[2]&&arguments[2],r=ze(10),o="HTML"===t.nodeName,i=Te(e),c=Te(t),a=ve(e),s=de(t),l=parseFloat(s.borderTopWidth,10),u=parseFloat(s.borderLeftWidth,10);n&&o&&(c.top=Math.max(c.top,0),c.left=Math.max(c.left,0));var h=Ae({top:i.top-c.top-l,left:i.left-c.left-u,width:i.width,height:i.height});if(h.marginTop=0,h.marginLeft=0,!r&&o){var f=parseFloat(s.marginTop,10),d=parseFloat(s.marginLeft,10);h.top-=l-f,h.bottom-=l-f,h.left-=u-d,h.right-=u-d,h.marginTop=f,h.marginLeft=d}return(r&&!n?t.contains(a):t===a&&"BODY"!==a.nodeName)&&(h=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=we(t,"top"),o=we(t,"left"),i=n?-1:1;return e.top+=r*i,e.bottom+=r*i,e.left+=o*i,e.right+=o*i,e}(h,t)),h}function De(e){if(!e||!e.parentElement||ze())return document.documentElement;for(var t=e.parentElement;t&&"none"===de(t,"transform");)t=t.parentElement;return t||document.documentElement}function Ne(e,t,n,r){var o=arguments.length>4&&void 0!==arguments[4]&&arguments[4],i={top:0,left:0},c=o?De(e):Me(e,pe(t));if("viewport"===r)i=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e.ownerDocument.documentElement,r=Ee(e,n),o=Math.max(n.clientWidth,window.innerWidth||0),i=Math.max(n.clientHeight,window.innerHeight||0),c=t?0:we(n),a=t?0:we(n,"left");return Ae({top:c-r.top+r.marginTop,left:a-r.left+r.marginLeft,width:o,height:i})}(c,o);else{var a=void 0;"scrollParent"===r?"BODY"===(a=ve(me(t))).nodeName&&(a=e.ownerDocument.documentElement):a="window"===r?e.ownerDocument.documentElement:r;var s=Ee(a,c,o);if("HTML"!==a.nodeName||function e(t){var n=t.nodeName;if("BODY"===n||"HTML"===n)return!1;if("fixed"===de(t,"position"))return!0;var r=me(t);return!!r&&e(r)}(c))i=s;else{var l=He(e.ownerDocument),u=l.height,h=l.width;i.top+=s.top-s.marginTop,i.bottom=u+s.top,i.left+=s.left-s.marginLeft,i.right=h+s.left}}var f="number"==typeof(n=n||0);return i.left+=f?n:n.left||0,i.top+=f?n:n.top||0,i.right-=f?n:n.right||0,i.bottom-=f?n:n.bottom||0,i}function Oe(e,t,n,r,o){var i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0;if(-1===e.indexOf("auto"))return e;var c=Ne(n,r,i,o),a={top:{width:c.width,height:t.top-c.top},right:{width:c.right-t.right,height:c.height},bottom:{width:c.width,height:c.bottom-t.bottom},left:{width:t.left-c.left,height:c.height}},s=Object.keys(a).map(function(e){return ke({key:e},a[e],{area:(t=a[e],t.width*t.height)});var t}).sort(function(e,t){return t.area-e.area}),l=s.filter(function(e){var t=e.width,r=e.height;return t>=n.clientWidth&&r>=n.clientHeight}),u=l.length>0?l[0].key:s[0].key,h=e.split("-")[1];return u+(h?"-"+h:"")}function Ie(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return Ee(n,r?De(t):Me(t,pe(n)),r)}function Pe(e){var t=e.ownerDocument.defaultView.getComputedStyle(e),n=parseFloat(t.marginTop||0)+parseFloat(t.marginBottom||0),r=parseFloat(t.marginLeft||0)+parseFloat(t.marginRight||0);return{width:e.offsetWidth+r,height:e.offsetHeight+n}}function Re(e){var t={left:"right",right:"left",bottom:"top",top:"bottom"};return e.replace(/left|right|bottom|top/g,function(e){return t[e]})}function Be(e,t,n){n=n.split("-")[0];var r=Pe(e),o={width:r.width,height:r.height},i=-1!==["right","left"].indexOf(n),c=i?"top":"left",a=i?"left":"top",s=i?"height":"width",l=i?"width":"height";return o[c]=t[c]+t[s]/2-r[s]/2,o[a]=n===a?t[a]-r[l]:t[Re(a)],o}function je(e,t){return Array.prototype.find?e.find(t):e.filter(t)[0]}function Fe(e,t,n){return(void 0===n?e:e.slice(0,function(e,t,n){if(Array.prototype.findIndex)return e.findIndex(function(e){return e[t]===n});var r=je(e,function(e){return e[t]===n});return e.indexOf(r)}(e,"name",n))).forEach(function(e){e.function&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var n=e.function||e.fn;e.enabled&&fe(n)&&(t.offsets.popper=Ae(t.offsets.popper),t.offsets.reference=Ae(t.offsets.reference),t=n(t,e))}),t}function $e(e,t){return e.some(function(e){var n=e.name;return e.enabled&&n===t})}function qe(e){for(var t=[!1,"ms","Webkit","Moz","O"],n=e.charAt(0).toUpperCase()+e.slice(1),r=0;r1&&void 0!==arguments[1]&&arguments[1],n=Je.indexOf(e),r=Je.slice(n+1).concat(Je.slice(0,n));return t?r.reverse():r}var tt={FLIP:"flip",CLOCKWISE:"clockwise",COUNTERCLOCKWISE:"counterclockwise"};function nt(e,t,n,r){var o=[0,0],i=-1!==["right","left"].indexOf(r),c=e.split(/(\+|\-)/).map(function(e){return e.trim()}),a=c.indexOf(je(c,function(e){return-1!==e.search(/,|\s/)}));c[a]&&-1===c[a].indexOf(",")&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead.");var s=/\s*,\s*|\s+/,l=-1!==a?[c.slice(0,a).concat([c[a].split(s)[0]]),[c[a].split(s)[1]].concat(c.slice(a+1))]:[c];return(l=l.map(function(e,r){var o=(1===r?!i:i)?"height":"width",c=!1;return e.reduce(function(e,t){return""===e[e.length-1]&&-1!==["+","-"].indexOf(t)?(e[e.length-1]=t,c=!0,e):c?(e[e.length-1]+=t,c=!1,e):e.concat(t)},[]).map(function(e){return function(e,t,n,r){var o=e.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),i=+o[1],c=o[2];if(!i)return e;if(0===c.indexOf("%")){var a=void 0;switch(c){case"%p":a=n;break;case"%":case"%r":default:a=r}return Ae(a)[t]/100*i}if("vh"===c||"vw"===c)return("vh"===c?Math.max(document.documentElement.clientHeight,window.innerHeight||0):Math.max(document.documentElement.clientWidth,window.innerWidth||0))/100*i;return i}(e,o,t,n)})})).forEach(function(e,t){e.forEach(function(n,r){Xe(n)&&(o[t]+=n*("-"===e[r-1]?-1:1))})}),o}var rt={placement:"bottom",positionFixed:!1,eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:{shift:{order:100,enabled:!0,fn:function(e){var t=e.placement,n=t.split("-")[0],r=t.split("-")[1];if(r){var o=e.offsets,i=o.reference,c=o.popper,a=-1!==["bottom","top"].indexOf(n),s=a?"left":"top",l=a?"width":"height",u={start:Ve({},s,i[s]),end:Ve({},s,i[s]+i[l]-c[l])};e.offsets.popper=ke({},c,u[r])}return e}},offset:{order:200,enabled:!0,fn:function(e,t){var n=t.offset,r=e.placement,o=e.offsets,i=o.popper,c=o.reference,a=r.split("-")[0],s=void 0;return s=Xe(+n)?[+n,0]:nt(n,i,c,a),"left"===a?(i.top+=s[0],i.left-=s[1]):"right"===a?(i.top+=s[0],i.left+=s[1]):"top"===a?(i.left+=s[0],i.top-=s[1]):"bottom"===a&&(i.left+=s[0],i.top+=s[1]),e.popper=i,e},offset:0},preventOverflow:{order:300,enabled:!0,fn:function(e,t){var n=t.boundariesElement||ye(e.instance.popper);e.instance.reference===n&&(n=ye(n));var r=qe("transform"),o=e.instance.popper.style,i=o.top,c=o.left,a=o[r];o.top="",o.left="",o[r]="";var s=Ne(e.instance.popper,e.instance.reference,t.padding,n,e.positionFixed);o.top=i,o.left=c,o[r]=a,t.boundaries=s;var l=t.priority,u=e.offsets.popper,h={primary:function(e){var n=u[e];return u[e]s[e]&&!t.escapeWithReference&&(r=Math.min(u[n],s[e]-("right"===e?u.width:u.height))),Ve({},n,r)}};return l.forEach(function(e){var t=-1!==["left","top"].indexOf(e)?"primary":"secondary";u=ke({},u,h[t](e))}),e.offsets.popper=u,e},priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:function(e){var t=e.offsets,n=t.popper,r=t.reference,o=e.placement.split("-")[0],i=Math.floor,c=-1!==["top","bottom"].indexOf(o),a=c?"right":"bottom",s=c?"left":"top",l=c?"width":"height";return n[a]i(r[a])&&(e.offsets.popper[s]=i(r[a])),e}},arrow:{order:500,enabled:!0,fn:function(e,t){var n;if(!Ze(e.instance.modifiers,"arrow","keepTogether"))return e;var r=t.element;if("string"==typeof r){if(!(r=e.instance.popper.querySelector(r)))return e}else if(!e.instance.popper.contains(r))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),e;var o=e.placement.split("-")[0],i=e.offsets,c=i.popper,a=i.reference,s=-1!==["left","right"].indexOf(o),l=s?"height":"width",u=s?"Top":"Left",h=u.toLowerCase(),f=s?"left":"top",d=s?"bottom":"right",m=Pe(r)[l];a[d]-mc[d]&&(e.offsets.popper[h]+=a[h]+m-c[d]),e.offsets.popper=Ae(e.offsets.popper);var v=a[h]+a[l]/2-m/2,p=de(e.instance.popper),g=parseFloat(p["margin"+u],10),b=parseFloat(p["border"+u+"Width"],10),z=v-e.offsets.popper[h]-g-b;return z=Math.max(Math.min(c[l]-m,z),0),e.arrowElement=r,e.offsets.arrow=(Ve(n={},h,Math.round(z)),Ve(n,f,""),n),e},element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:function(e,t){if($e(e.instance.modifiers,"inner"))return e;if(e.flipped&&e.placement===e.originalPlacement)return e;var n=Ne(e.instance.popper,e.instance.reference,t.padding,t.boundariesElement,e.positionFixed),r=e.placement.split("-")[0],o=Re(r),i=e.placement.split("-")[1]||"",c=[];switch(t.behavior){case tt.FLIP:c=[r,o];break;case tt.CLOCKWISE:c=et(r);break;case tt.COUNTERCLOCKWISE:c=et(r,!0);break;default:c=t.behavior}return c.forEach(function(a,s){if(r!==a||c.length===s+1)return e;r=e.placement.split("-")[0],o=Re(r);var l=e.offsets.popper,u=e.offsets.reference,h=Math.floor,f="left"===r&&h(l.right)>h(u.left)||"right"===r&&h(l.left)h(u.top)||"bottom"===r&&h(l.top)h(n.right),v=h(l.top)h(n.bottom),g="left"===r&&d||"right"===r&&m||"top"===r&&v||"bottom"===r&&p,b=-1!==["top","bottom"].indexOf(r),z=!!t.flipVariations&&(b&&"start"===i&&d||b&&"end"===i&&m||!b&&"start"===i&&v||!b&&"end"===i&&p),y=!!t.flipVariationsByContent&&(b&&"start"===i&&m||b&&"end"===i&&d||!b&&"start"===i&&p||!b&&"end"===i&&v),C=z||y;(f||g||C)&&(e.flipped=!0,(f||g)&&(r=c[s+1]),C&&(i=function(e){return"end"===e?"start":"start"===e?"end":e}(i)),e.placement=r+(i?"-"+i:""),e.offsets.popper=ke({},e.offsets.popper,Be(e.instance.popper,e.offsets.reference,e.placement)),e=Fe(e.instance.modifiers,e,"flip"))}),e},behavior:"flip",padding:5,boundariesElement:"viewport",flipVariations:!1,flipVariationsByContent:!1},inner:{order:700,enabled:!1,fn:function(e){var t=e.placement,n=t.split("-")[0],r=e.offsets,o=r.popper,i=r.reference,c=-1!==["left","right"].indexOf(n),a=-1===["top","left"].indexOf(n);return o[c?"left":"top"]=i[n]-(a?o[c?"width":"height"]:0),e.placement=Re(t),e.offsets.popper=Ae(o),e}},hide:{order:800,enabled:!0,fn:function(e){if(!Ze(e.instance.modifiers,"hide","preventOverflow"))return e;var t=e.offsets.reference,n=je(e.instance.modifiers,function(e){return"preventOverflow"===e.name}).boundaries;if(t.bottomn.right||t.top>n.bottom||t.right2&&void 0!==arguments[2]?arguments[2]:{};Se(this,e),this.scheduleUpdate=function(){return requestAnimationFrame(r.update)},this.update=he(this.update.bind(this)),this.options=ke({},e.Defaults,o),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=t&&t.jquery?t[0]:t,this.popper=n&&n.jquery?n[0]:n,this.options.modifiers={},Object.keys(ke({},e.Defaults.modifiers,o.modifiers)).forEach(function(t){r.options.modifiers[t]=ke({},e.Defaults.modifiers[t]||{},o.modifiers?o.modifiers[t]:{})}),this.modifiers=Object.keys(this.options.modifiers).map(function(e){return ke({name:e},r.options.modifiers[e])}).sort(function(e,t){return e.order-t.order}),this.modifiers.forEach(function(e){e.enabled&&fe(e.onLoad)&&e.onLoad(r.reference,r.popper,r.options,e,r.state)}),this.update();var i=this.options.eventsEnabled;i&&this.enableEventListeners(),this.state.eventsEnabled=i}return Le(e,[{key:"update",value:function(){return function(){if(!this.state.isDestroyed){var e={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};e.offsets.reference=Ie(this.state,this.popper,this.reference,this.options.positionFixed),e.placement=Oe(this.options.placement,e.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),e.originalPlacement=e.placement,e.positionFixed=this.options.positionFixed,e.offsets.popper=Be(this.popper,e.offsets.reference,e.placement),e.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",e=Fe(this.modifiers,e),this.state.isCreated?this.options.onUpdate(e):(this.state.isCreated=!0,this.options.onCreate(e))}}.call(this)}},{key:"destroy",value:function(){return function(){return this.state.isDestroyed=!0,$e(this.modifiers,"applyStyle")&&(this.popper.removeAttribute("x-placement"),this.popper.style.position="",this.popper.style.top="",this.popper.style.left="",this.popper.style.right="",this.popper.style.bottom="",this.popper.style.willChange="",this.popper.style[qe("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}.call(this)}},{key:"enableEventListeners",value:function(){return function(){this.state.eventsEnabled||(this.state=We(this.reference,this.options,this.state,this.scheduleUpdate))}.call(this)}},{key:"disableEventListeners",value:function(){return Ye.call(this)}}]),e}();ot.Utils=("undefined"!=typeof window?window:global).PopperUtils,ot.placements=Ke,ot.Defaults=rt;var it="dropdown",ct=t.fn[it],at=new RegExp("38|40|27"),st={HIDE:"hide.bs.dropdown",HIDDEN:"hidden.bs.dropdown",SHOW:"show.bs.dropdown",SHOWN:"shown.bs.dropdown",CLICK:"click.bs.dropdown",CLICK_DATA_API:"click.bs.dropdown.data-api",KEYDOWN_DATA_API:"keydown.bs.dropdown.data-api",KEYUP_DATA_API:"keyup.bs.dropdown.data-api"},lt="disabled",ut="show",ht="dropup",ft="dropright",dt="dropleft",mt="dropdown-menu-right",vt="position-static",pt='[data-toggle="dropdown"]',gt=".dropdown form",bt=".dropdown-menu",zt=".navbar-nav",yt=".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",Ct="top-start",Mt="top-end",wt="bottom-start",_t="bottom-end",xt="right-start",Ht="left-start",St={offset:0,flip:!0,boundary:"scrollParent",reference:"toggle",display:"dynamic",popperConfig:null},Lt={offset:"(number|string|function)",flip:"boolean",boundary:"(string|element)",reference:"(string|element)",display:"string",popperConfig:"(null|object)"},Vt=function(){function e(e,t){this._element=e,this._popper=null,this._config=this._getConfig(t),this._menu=this._getMenuElement(),this._inNavbar=this._detectNavbar(),this._addEventListeners()}var n=e.prototype;return n.toggle=function(){if(!this._element.disabled&&!t(this._element).hasClass(lt)){var n=t(this._menu).hasClass(ut);e._clearMenus(),n||this.show(!0)}},n.show=function(n){if(void 0===n&&(n=!1),!(this._element.disabled||t(this._element).hasClass(lt)||t(this._menu).hasClass(ut))){var r={relatedTarget:this._element},o=t.Event(st.SHOW,r),i=e._getParentFromElement(this._element);if(t(i).trigger(o),!o.isDefaultPrevented()){if(!this._inNavbar&&n){if(void 0===ot)throw new TypeError("Bootstrap's dropdowns require Popper.js (https://popper.js.org/)");var c=this._element;"parent"===this._config.reference?c=i:l.isElement(this._config.reference)&&(c=this._config.reference,void 0!==this._config.reference.jquery&&(c=this._config.reference[0])),"scrollParent"!==this._config.boundary&&t(i).addClass(vt),this._popper=new ot(c,this._menu,this._getPopperConfig())}"ontouchstart"in document.documentElement&&0===t(i).closest(zt).length&&t(document.body).children().on("mouseover",null,t.noop),this._element.focus(),this._element.setAttribute("aria-expanded",!0),t(this._menu).toggleClass(ut),t(i).toggleClass(ut).trigger(t.Event(st.SHOWN,r))}}},n.hide=function(){if(!this._element.disabled&&!t(this._element).hasClass(lt)&&t(this._menu).hasClass(ut)){var n={relatedTarget:this._element},r=t.Event(st.HIDE,n),o=e._getParentFromElement(this._element);t(o).trigger(r),r.isDefaultPrevented()||(this._popper&&this._popper.destroy(),t(this._menu).toggleClass(ut),t(o).toggleClass(ut).trigger(t.Event(st.HIDDEN,n)))}},n.dispose=function(){t.removeData(this._element,"bs.dropdown"),t(this._element).off(".bs.dropdown"),this._element=null,this._menu=null,null!==this._popper&&(this._popper.destroy(),this._popper=null)},n.update=function(){this._inNavbar=this._detectNavbar(),null!==this._popper&&this._popper.scheduleUpdate()},n._addEventListeners=function(){var e=this;t(this._element).on(st.CLICK,function(t){t.preventDefault(),t.stopPropagation(),e.toggle()})},n._getConfig=function(e){return e=c({},this.constructor.Default,{},t(this._element).data(),{},e),l.typeCheckConfig(it,e,this.constructor.DefaultType),e},n._getMenuElement=function(){if(!this._menu){var t=e._getParentFromElement(this._element);t&&(this._menu=t.querySelector(bt))}return this._menu},n._getPlacement=function(){var e=t(this._element.parentNode),n=wt;return e.hasClass(ht)?(n=Ct,t(this._menu).hasClass(mt)&&(n=Mt)):e.hasClass(ft)?n=xt:e.hasClass(dt)?n=Ht:t(this._menu).hasClass(mt)&&(n=_t),n},n._detectNavbar=function(){return t(this._element).closest(".navbar").length>0},n._getOffset=function(){var e=this,t={};return"function"==typeof this._config.offset?t.fn=function(t){return t.offsets=c({},t.offsets,{},e._config.offset(t.offsets,e._element)||{}),t}:t.offset=this._config.offset,t},n._getPopperConfig=function(){var e={placement:this._getPlacement(),modifiers:{offset:this._getOffset(),flip:{enabled:this._config.flip},preventOverflow:{boundariesElement:this._config.boundary}}};return"static"===this._config.display&&(e.modifiers.applyStyle={enabled:!1}),c({},e,{},this._config.popperConfig)},e._jQueryInterface=function(n){return this.each(function(){var r=t(this).data("bs.dropdown");if(r||(r=new e(this,"object"==typeof n?n:null),t(this).data("bs.dropdown",r)),"string"==typeof n){if(void 0===r[n])throw new TypeError('No method named "'+n+'"');r[n]()}})},e._clearMenus=function(n){if(!n||3!==n.which&&("keyup"!==n.type||9===n.which))for(var r=[].slice.call(document.querySelectorAll(pt)),o=0,i=r.length;o0&&c--,40===n.which&&cdocument.documentElement.clientHeight;!this._isBodyOverflowing&&e&&(this._element.style.paddingLeft=this._scrollbarWidth+"px"),this._isBodyOverflowing&&!e&&(this._element.style.paddingRight=this._scrollbarWidth+"px")},n._resetAdjustments=function(){this._element.style.paddingLeft="",this._element.style.paddingRight=""},n._checkScrollbar=function(){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:qt,popperConfig:null},tn="show",nn="out",rn={HIDE:"hide.bs.tooltip",HIDDEN:"hidden.bs.tooltip",SHOW:"show.bs.tooltip",SHOWN:"shown.bs.tooltip",INSERTED:"inserted.bs.tooltip",CLICK:"click.bs.tooltip",FOCUSIN:"focusin.bs.tooltip",FOCUSOUT:"focusout.bs.tooltip",MOUSEENTER:"mouseenter.bs.tooltip",MOUSELEAVE:"mouseleave.bs.tooltip"},on="fade",cn="show",an=".tooltip-inner",sn=".arrow",ln="hover",un="focus",hn="click",fn="manual",dn=function(){function e(e,t){if(void 0===ot)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 n=e.prototype;return n.enable=function(){this._isEnabled=!0},n.disable=function(){this._isEnabled=!1},n.toggleEnabled=function(){this._isEnabled=!this._isEnabled},n.toggle=function(e){if(this._isEnabled)if(e){var n=this.constructor.DATA_KEY,r=t(e.currentTarget).data(n);r||(r=new this.constructor(e.currentTarget,this._getDelegateConfig()),t(e.currentTarget).data(n,r)),r._activeTrigger.click=!r._activeTrigger.click,r._isWithActiveTrigger()?r._enter(null,r):r._leave(null,r)}else{if(t(this.getTipElement()).hasClass(cn))return void this._leave(null,this);this._enter(null,this)}},n.dispose=function(){clearTimeout(this._timeout),t.removeData(this.element,this.constructor.DATA_KEY),t(this.element).off(this.constructor.EVENT_KEY),t(this.element).closest(".modal").off("hide.bs.modal",this._hideModalHandler),this.tip&&t(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},n.show=function(){var e=this;if("none"===t(this.element).css("display"))throw new Error("Please use show on visible elements");var n=t.Event(this.constructor.Event.SHOW);if(this.isWithContent()&&this._isEnabled){t(this.element).trigger(n);var r=l.findShadowRoot(this.element),o=t.contains(null!==r?r:this.element.ownerDocument.documentElement,this.element);if(n.isDefaultPrevented()||!o)return;var i=this.getTipElement(),c=l.getUID(this.constructor.NAME);i.setAttribute("id",c),this.element.setAttribute("aria-describedby",c),this.setContent(),this.config.animation&&t(i).addClass(on);var a="function"==typeof this.config.placement?this.config.placement.call(this,i,this.element):this.config.placement,s=this._getAttachment(a);this.addAttachmentClass(s);var u=this._getContainer();t(i).data(this.constructor.DATA_KEY,this),t.contains(this.element.ownerDocument.documentElement,this.tip)||t(i).appendTo(u),t(this.element).trigger(this.constructor.Event.INSERTED),this._popper=new ot(this.element,i,this._getPopperConfig(s)),t(i).addClass(cn),"ontouchstart"in document.documentElement&&t(document.body).children().on("mouseover",null,t.noop);var h=function(){e.config.animation&&e._fixTransition();var n=e._hoverState;e._hoverState=null,t(e.element).trigger(e.constructor.Event.SHOWN),n===nn&&e._leave(null,e)};if(t(this.tip).hasClass(on)){var f=l.getTransitionDurationFromElement(this.tip);t(this.tip).one(l.TRANSITION_END,h).emulateTransitionEnd(f)}else h()}},n.hide=function(e){var n=this,r=this.getTipElement(),o=t.Event(this.constructor.Event.HIDE),i=function(){n._hoverState!==tn&&r.parentNode&&r.parentNode.removeChild(r),n._cleanTipClass(),n.element.removeAttribute("aria-describedby"),t(n.element).trigger(n.constructor.Event.HIDDEN),null!==n._popper&&n._popper.destroy(),e&&e()};if(t(this.element).trigger(o),!o.isDefaultPrevented()){if(t(r).removeClass(cn),"ontouchstart"in document.documentElement&&t(document.body).children().off("mouseover",null,t.noop),this._activeTrigger[hn]=!1,this._activeTrigger[un]=!1,this._activeTrigger[ln]=!1,t(this.tip).hasClass(on)){var c=l.getTransitionDurationFromElement(r);t(r).one(l.TRANSITION_END,i).emulateTransitionEnd(c)}else i();this._hoverState=""}},n.update=function(){null!==this._popper&&this._popper.scheduleUpdate()},n.isWithContent=function(){return Boolean(this.getTitle())},n.addAttachmentClass=function(e){t(this.getTipElement()).addClass("bs-tooltip-"+e)},n.getTipElement=function(){return this.tip=this.tip||t(this.config.template)[0],this.tip},n.setContent=function(){var e=this.getTipElement();this.setElementContent(t(e.querySelectorAll(an)),this.getTitle()),t(e).removeClass(on+" "+cn)},n.setElementContent=function(e,n){"object"!=typeof n||!n.nodeType&&!n.jquery?this.config.html?(this.config.sanitize&&(n=Yt(n,this.config.whiteList,this.config.sanitizeFn)),e.html(n)):e.text(n):this.config.html?t(n).parent().is(e)||e.empty().append(n):e.text(t(n).text())},n.getTitle=function(){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},n._getPopperConfig=function(e){var t=this;return c({},{placement:e,modifiers:{offset:this._getOffset(),flip:{behavior:this.config.fallbackPlacement},arrow:{element:sn},preventOverflow:{boundariesElement:this.config.boundary}},onCreate:function(e){e.originalPlacement!==e.placement&&t._handlePopperPlacementChange(e)},onUpdate:function(e){return t._handlePopperPlacementChange(e)}},{},this.config.popperConfig)},n._getOffset=function(){var e=this,t={};return"function"==typeof this.config.offset?t.fn=function(t){return t.offsets=c({},t.offsets,{},e.config.offset(t.offsets,e.element)||{}),t}:t.offset=this.config.offset,t},n._getContainer=function(){return!1===this.config.container?document.body:l.isElement(this.config.container)?t(this.config.container):t(document).find(this.config.container)},n._getAttachment=function(e){return Jt[e.toUpperCase()]},n._setListeners=function(){var e=this;this.config.trigger.split(" ").forEach(function(n){if("click"===n)t(e.element).on(e.constructor.Event.CLICK,e.config.selector,function(t){return e.toggle(t)});else if(n!==fn){var r=n===ln?e.constructor.Event.MOUSEENTER:e.constructor.Event.FOCUSIN,o=n===ln?e.constructor.Event.MOUSELEAVE:e.constructor.Event.FOCUSOUT;t(e.element).on(r,e.config.selector,function(t){return e._enter(t)}).on(o,e.config.selector,function(t){return e._leave(t)})}}),this._hideModalHandler=function(){e.element&&e.hide()},t(this.element).closest(".modal").on("hide.bs.modal",this._hideModalHandler),this.config.selector?this.config=c({},this.config,{trigger:"manual",selector:""}):this._fixTitle()},n._fixTitle=function(){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",""))},n._enter=function(e,n){var r=this.constructor.DATA_KEY;(n=n||t(e.currentTarget).data(r))||(n=new this.constructor(e.currentTarget,this._getDelegateConfig()),t(e.currentTarget).data(r,n)),e&&(n._activeTrigger["focusin"===e.type?un:ln]=!0),t(n.getTipElement()).hasClass(cn)||n._hoverState===tn?n._hoverState=tn:(clearTimeout(n._timeout),n._hoverState=tn,n.config.delay&&n.config.delay.show?n._timeout=setTimeout(function(){n._hoverState===tn&&n.show()},n.config.delay.show):n.show())},n._leave=function(e,n){var r=this.constructor.DATA_KEY;(n=n||t(e.currentTarget).data(r))||(n=new this.constructor(e.currentTarget,this._getDelegateConfig()),t(e.currentTarget).data(r,n)),e&&(n._activeTrigger["focusout"===e.type?un:ln]=!1),n._isWithActiveTrigger()||(clearTimeout(n._timeout),n._hoverState=nn,n.config.delay&&n.config.delay.hide?n._timeout=setTimeout(function(){n._hoverState===nn&&n.hide()},n.config.delay.hide):n.hide())},n._isWithActiveTrigger=function(){for(var e in this._activeTrigger)if(this._activeTrigger[e])return!0;return!1},n._getConfig=function(e){var n=t(this.element).data();return Object.keys(n).forEach(function(e){-1!==Zt.indexOf(e)&&delete n[e]}),"number"==typeof(e=c({},this.constructor.Default,{},n,{},"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()),l.typeCheckConfig(Xt,e,this.constructor.DefaultType),e.sanitize&&(e.template=Yt(e.template,e.whiteList,e.sanitizeFn)),e},n._getDelegateConfig=function(){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},n._cleanTipClass=function(){var e=t(this.getTipElement()),n=e.attr("class").match(Qt);null!==n&&n.length&&e.removeClass(n.join(""))},n._handlePopperPlacementChange=function(e){var t=e.instance;this.tip=t.popper,this._cleanTipClass(),this.addAttachmentClass(this._getAttachment(e.placement))},n._fixTransition=function(){var e=this.getTipElement(),n=this.config.animation;null===e.getAttribute("x-placement")&&(t(e).removeClass(on),this.config.animation=!1,this.hide(),this.show(),this.config.animation=n)},e._jQueryInterface=function(n){return this.each(function(){var r=t(this).data("bs.tooltip"),o="object"==typeof n&&n;if((r||!/dispose|hide/.test(n))&&(r||(r=new e(this,o),t(this).data("bs.tooltip",r)),"string"==typeof n)){if(void 0===r[n])throw new TypeError('No method named "'+n+'"');r[n]()}})},r(e,null,[{key:"VERSION",get:function(){return"4.4.1"}},{key:"Default",get:function(){return en}},{key:"NAME",get:function(){return Xt}},{key:"DATA_KEY",get:function(){return"bs.tooltip"}},{key:"Event",get:function(){return rn}},{key:"EVENT_KEY",get:function(){return".bs.tooltip"}},{key:"DefaultType",get:function(){return Kt}}]),e}();t.fn.tooltip=dn._jQueryInterface,t.fn.tooltip.Constructor=dn,t.fn.tooltip.noConflict=function(){return t.fn.tooltip=Gt,dn._jQueryInterface};var mn="popover",vn=t.fn.popover,pn=new RegExp("(^|\\s)bs-popover\\S+","g"),gn=c({},dn.Default,{placement:"right",trigger:"click",content:"",template:''}),bn=c({},dn.DefaultType,{content:"(string|element|function)"}),zn="fade",yn="show",Cn=".popover-header",Mn=".popover-body",wn={HIDE:"hide.bs.popover",HIDDEN:"hidden.bs.popover",SHOW:"show.bs.popover",SHOWN:"shown.bs.popover",INSERTED:"inserted.bs.popover",CLICK:"click.bs.popover",FOCUSIN:"focusin.bs.popover",FOCUSOUT:"focusout.bs.popover",MOUSEENTER:"mouseenter.bs.popover",MOUSELEAVE:"mouseleave.bs.popover"},_n=function(e){var n,o;function i(){return e.apply(this,arguments)||this}o=e,(n=i).prototype=Object.create(o.prototype),n.prototype.constructor=n,n.__proto__=o;var c=i.prototype;return c.isWithContent=function(){return this.getTitle()||this._getContent()},c.addAttachmentClass=function(e){t(this.getTipElement()).addClass("bs-popover-"+e)},c.getTipElement=function(){return this.tip=this.tip||t(this.config.template)[0],this.tip},c.setContent=function(){var e=t(this.getTipElement());this.setElementContent(e.find(Cn),this.getTitle());var n=this._getContent();"function"==typeof n&&(n=n.call(this.element)),this.setElementContent(e.find(Mn),n),e.removeClass(zn+" "+yn)},c._getContent=function(){return this.element.getAttribute("data-content")||this.config.content},c._cleanTipClass=function(){var e=t(this.getTipElement()),n=e.attr("class").match(pn);null!==n&&n.length>0&&e.removeClass(n.join(""))},i._jQueryInterface=function(e){return this.each(function(){var n=t(this).data("bs.popover"),r="object"==typeof e?e:null;if((n||!/dispose|hide/.test(e))&&(n||(n=new i(this,r),t(this).data("bs.popover",n)),"string"==typeof e)){if(void 0===n[e])throw new TypeError('No method named "'+e+'"');n[e]()}})},r(i,null,[{key:"VERSION",get:function(){return"4.4.1"}},{key:"Default",get:function(){return gn}},{key:"NAME",get:function(){return mn}},{key:"DATA_KEY",get:function(){return"bs.popover"}},{key:"Event",get:function(){return wn}},{key:"EVENT_KEY",get:function(){return".bs.popover"}},{key:"DefaultType",get:function(){return bn}}]),i}(dn);t.fn.popover=_n._jQueryInterface,t.fn.popover.Constructor=_n,t.fn.popover.noConflict=function(){return t.fn.popover=vn,_n._jQueryInterface};var xn="scrollspy",Hn=t.fn[xn],Sn={offset:10,method:"auto",target:""},Ln={offset:"number",method:"string",target:"(string|element)"},Vn={ACTIVATE:"activate.bs.scrollspy",SCROLL:"scroll.bs.scrollspy",LOAD_DATA_API:"load.bs.scrollspy.data-api"},kn="dropdown-item",An="active",Tn={DATA_SPY:'[data-spy="scroll"]',ACTIVE:".active",NAV_LIST_GROUP:".nav, .list-group",NAV_LINKS:".nav-link",NAV_ITEMS:".nav-item",LIST_ITEMS:".list-group-item",DROPDOWN:".dropdown",DROPDOWN_ITEMS:".dropdown-item",DROPDOWN_TOGGLE:".dropdown-toggle"},En="offset",Dn="position",Nn=function(){function e(e,n){var r=this;this._element=e,this._scrollElement="BODY"===e.tagName?window:e,this._config=this._getConfig(n),this._selector=this._config.target+" "+Tn.NAV_LINKS+","+this._config.target+" "+Tn.LIST_ITEMS+","+this._config.target+" "+Tn.DROPDOWN_ITEMS,this._offsets=[],this._targets=[],this._activeTarget=null,this._scrollHeight=0,t(this._scrollElement).on(Vn.SCROLL,function(e){return r._process(e)}),this.refresh(),this._process()}var n=e.prototype;return n.refresh=function(){var e=this,n=this._scrollElement===this._scrollElement.window?En:Dn,r="auto"===this._config.method?n:this._config.method,o=r===Dn?this._getScrollTop():0;this._offsets=[],this._targets=[],this._scrollHeight=this._getScrollHeight(),[].slice.call(document.querySelectorAll(this._selector)).map(function(e){var n,i=l.getSelectorFromElement(e);if(i&&(n=document.querySelector(i)),n){var c=n.getBoundingClientRect();if(c.width||c.height)return[t(n)[r]().top+o,i]}return null}).filter(function(e){return e}).sort(function(e,t){return e[0]-t[0]}).forEach(function(t){e._offsets.push(t[0]),e._targets.push(t[1])})},n.dispose=function(){t.removeData(this._element,"bs.scrollspy"),t(this._scrollElement).off(".bs.scrollspy"),this._element=null,this._scrollElement=null,this._config=null,this._selector=null,this._offsets=null,this._targets=null,this._activeTarget=null,this._scrollHeight=null},n._getConfig=function(e){if("string"!=typeof(e=c({},Sn,{},"object"==typeof e&&e?e:{})).target){var n=t(e.target).attr("id");n||(n=l.getUID(xn),t(e.target).attr("id",n)),e.target="#"+n}return l.typeCheckConfig(xn,e,Ln),e},n._getScrollTop=function(){return this._scrollElement===window?this._scrollElement.pageYOffset:this._scrollElement.scrollTop},n._getScrollHeight=function(){return this._scrollElement.scrollHeight||Math.max(document.body.scrollHeight,document.documentElement.scrollHeight)},n._getOffsetHeight=function(){return this._scrollElement===window?window.innerHeight:this._scrollElement.getBoundingClientRect().height},n._process=function(){var e=this._getScrollTop()+this._config.offset,t=this._getScrollHeight(),n=this._config.offset+t-this._getOffsetHeight();if(this._scrollHeight!==t&&this.refresh(),e>=n){var r=this._targets[this._targets.length-1];this._activeTarget!==r&&this._activate(r)}else{if(this._activeTarget&&e0)return this._activeTarget=null,void this._clear();for(var o=this._offsets.length;o--;){this._activeTarget!==this._targets[o]&&e>=this._offsets[o]&&(void 0===this._offsets[o+1]||e>>0;n--;)t[n]=e[n];return t}function _e(e){return e.classList?we(e.classList):(e.getAttribute("class")||"").split(" ").filter(function(e){return e})}function xe(e){return"".concat(e).replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(//g,">")}function He(e){return Object.keys(e||{}).reduce(function(t,n){return t+"".concat(n,": ").concat(e[n],";")},"")}function Se(e){return e.size!==ze.size||e.x!==ze.x||e.y!==ze.y||e.rotate!==ze.rotate||e.flipX||e.flipY}function Le(e){var t=e.transform,n=e.containerWidth,r=e.iconWidth,o={transform:"translate(".concat(n/2," 256)")},i="translate(".concat(32*t.x,", ").concat(32*t.y,") "),c="scale(".concat(t.size/16*(t.flipX?-1:1),", ").concat(t.size/16*(t.flipY?-1:1),") "),a="rotate(".concat(t.rotate," 0 0)");return{outer:o,inner:{transform:"".concat(i," ").concat(c," ").concat(a)},path:{transform:"translate(".concat(r/2*-1," -256)")}}}var Ve={x:0,y:0,width:"100%",height:"100%"};function ke(e){var t=!(1").concat(c.map(Ze).join(""),"")}var Ke=function(){};function Je(e){return"string"==typeof(e.getAttribute?e.getAttribute(w):null)}var et={replace:function(e){var t=e[0],n=e[1].map(function(e){return Ze(e)}).join("\n");if(t.parentNode&&t.outerHTML)t.outerHTML=n+(q.keepOriginalSource&&"svg"!==t.tagName.toLowerCase()?"\x3c!-- ".concat(t.outerHTML," --\x3e"):"");else if(t.parentNode){var r=document.createElement("span");t.parentNode.replaceChild(r,t),r.outerHTML=n}},nest:function(e){var t=e[0],n=e[1];if(~_e(t).indexOf(q.replacementClass))return et.replace(e);var r=new RegExp("".concat(q.familyPrefix,"-.*"));delete n[0].attributes.style,delete n[0].attributes.id;var o=n[0].attributes.class.split(" ").reduce(function(e,t){return t===q.replacementClass||t.match(r)?e.toSvg.push(t):e.toNode.push(t),e},{toNode:[],toSvg:[]});n[0].attributes.class=o.toSvg.join(" ");var i=n.map(function(e){return Ze(e)}).join("\n");t.setAttribute("class",o.toNode.join(" ")),t.setAttribute(w,""),t.innerHTML=i}};function tt(e){e()}function nt(e,t){var n="function"==typeof t?t:Ke;if(0===e.length)n();else{var r=tt;q.mutateApproach===V&&(r=f.requestAnimationFrame||tt),r(function(){var t=!0===q.autoReplaceSvg?et.replace:et[q.autoReplaceSvg]||et.replace,r=Ie.begin("mutate");e.map(t),r(),n()})}}var rt=!1;function ot(){rt=!1}var it=null;function ct(e){if(m&&q.observeMutations){var t=e.treeCallback,n=e.nodeCallback,r=e.pseudoElementsCallback,o=e.observeMutationsRoot,i=void 0===o?d:o;it=new m(function(e){rt||we(e).forEach(function(e){if("childList"===e.type&&0',preload:!0,css:{},attr:{scrolling:"auto"}},video:{tpl:'',format:"",autoStart:!0},defaultType:"image",animationEffect:"zoom",animationDuration:366,zoomOpacity:"auto",transitionEffect:"fade",transitionDuration:366,slideClass:"",baseClass:"",baseTpl:'',spinnerTpl:'
    ',errorTpl:'

    {{ERROR}}

    ',btnTpl:{download:'',zoom:'',close:'',arrowLeft:'',arrowRight:'',smallBtn:''},parentEl:"body",hideScrollbar:!0,autoFocus:!0,backFocus:!0,trapFocus:!0,fullScreen:{autoStart:!1},touch:{vertical:!0,momentum:!0},hash:null,media:{},slideShow:{autoStart:!1,speed:3e3},thumbs:{autoStart:!1,hideOnClose:!0,parentEl:".fancybox-container",axis:"y"},wheel:"auto",onInit:n.noop,beforeLoad:n.noop,afterLoad:n.noop,beforeShow:n.noop,afterShow:n.noop,beforeClose:n.noop,afterClose:n.noop,onActivate:n.noop,onDeactivate:n.noop,clickContent:function(e,t){return"image"===e.type&&"zoom"},clickSlide:"close",clickOutside:"close",dblclickContent:!1,dblclickSlide:!1,dblclickOutside:!1,mobile:{preventCaptionOverlap:!1,idleTime:!1,clickContent:function(e,t){return"image"===e.type&&"toggleControls"},clickSlide:function(e,t){return"image"===e.type?"toggleControls":"close"},dblclickContent:function(e,t){return"image"===e.type&&"zoom"},dblclickSlide:function(e,t){return"image"===e.type&&"zoom"}},lang:"en",i18n:{en:{CLOSE:"Close",NEXT:"Next",PREV:"Previous",ERROR:"The requested content cannot be loaded.
    Please try again later.",PLAY_START:"Start slideshow",PLAY_STOP:"Pause slideshow",FULL_SCREEN:"Full screen",THUMBS:"Thumbnails",DOWNLOAD:"Download",SHARE:"Share",ZOOM:"Zoom"},de:{CLOSE:"Schließen",NEXT:"Weiter",PREV:"Zurück",ERROR:"Die angeforderten Daten konnten nicht geladen werden.
    Bitte versuchen Sie es später nochmal.",PLAY_START:"Diaschau starten",PLAY_STOP:"Diaschau beenden",FULL_SCREEN:"Vollbild",THUMBS:"Vorschaubilder",DOWNLOAD:"Herunterladen",SHARE:"Teilen",ZOOM:"Vergrößern"}}},c=n(e),a=n(t),s=0,l=e.requestAnimationFrame||e.webkitRequestAnimationFrame||e.mozRequestAnimationFrame||e.oRequestAnimationFrame||function(t){return e.setTimeout(t,1e3/60)},u=e.cancelAnimationFrame||e.webkitCancelAnimationFrame||e.mozCancelAnimationFrame||e.oCancelAnimationFrame||function(t){e.clearTimeout(t)},h=function(){var e,n=t.createElement("fakeelement"),r={transition:"transitionend",OTransition:"oTransitionEnd",MozTransition:"transitionend",WebkitTransition:"webkitTransitionEnd"};for(e in r)if(void 0!==n.style[e])return r[e];return"transitionend"}(),f=function(e){return e&&e.length&&e[0].offsetHeight},d=function(e,t){var r=n.extend(!0,{},e,t);return n.each(t,function(e,t){n.isArray(t)&&(r[e]=t)}),r},m=function(e){var r,o;return!(!e||e.ownerDocument!==t)&&(n(".fancybox-container").css("pointer-events","none"),r={x:e.getBoundingClientRect().left+e.offsetWidth/2,y:e.getBoundingClientRect().top+e.offsetHeight/2},o=t.elementFromPoint(r.x,r.y)===e,n(".fancybox-container").css("pointer-events",""),o)},v=function(e,t,r){var o=this;o.opts=d({index:r},n.fancybox.defaults),n.isPlainObject(t)&&(o.opts=d(o.opts,t)),n.fancybox.isMobile&&(o.opts=d(o.opts,o.opts.mobile)),o.id=o.opts.id||++s,o.currIndex=parseInt(o.opts.index,10)||0,o.prevIndex=null,o.prevPos=null,o.currPos=0,o.firstRun=!0,o.group=[],o.slides={},o.addContent(e),o.group.length&&o.init()};n.extend(v.prototype,{init:function(){var r,o,i=this,c=i.group[i.currIndex].opts;c.closeExisting&&n.fancybox.close(!0),n("body").addClass("fancybox-active"),!n.fancybox.getInstance()&&!1!==c.hideScrollbar&&!n.fancybox.isMobile&&t.body.scrollHeight>e.innerHeight&&(n("head").append('"),n("body").addClass("compensate-for-scrollbar")),o="",n.each(c.buttons,function(e,t){o+=c.btnTpl[t]||""}),r=n(i.translate(i,c.baseTpl.replace("{{buttons}}",o).replace("{{arrows}}",c.btnTpl.arrowLeft+c.btnTpl.arrowRight))).attr("id","fancybox-container-"+i.id).addClass(c.baseClass).data("FancyBox",i).appendTo(c.parentEl),i.$refs={container:r},["bg","inner","infobar","toolbar","stage","caption","navigation"].forEach(function(e){i.$refs[e]=r.find(".fancybox-"+e)}),i.trigger("onInit"),i.activate(),i.jumpTo(i.currIndex)},translate:function(e,t){var n=e.opts.i18n[e.opts.lang]||e.opts.i18n.en;return t.replace(/\{\{(\w+)\}\}/g,function(e,t){return void 0===n[t]?e:n[t]})},addContent:function(e){var t,r=this,o=n.makeArray(e);n.each(o,function(e,t){var o,i,c,a,s,l={},u={};n.isPlainObject(t)?(l=t,u=t.opts||t):"object"===n.type(t)&&n(t).length?(u=(o=n(t)).data()||{},(u=n.extend(!0,{},u,u.options)).$orig=o,l.src=r.opts.src||u.src||o.attr("href"),l.type||l.src||(l.type="inline",l.src=t)):l={type:"html",src:t+""},l.opts=n.extend(!0,{},r.opts,u),n.isArray(u.buttons)&&(l.opts.buttons=u.buttons),n.fancybox.isMobile&&l.opts.mobile&&(l.opts=d(l.opts,l.opts.mobile)),i=l.type||l.opts.type,a=l.src||"",!i&&a&&((c=a.match(/\.(mp4|mov|ogv|webm)((\?|#).*)?$/i))?(i="video",l.opts.video.format||(l.opts.video.format="video/"+("ogv"===c[1]?"ogg":c[1]))):a.match(/(^data:image\/[a-z0-9+\/=]*,)|(\.(jp(e|g|eg)|gif|png|bmp|webp|svg|ico)((\?|#).*)?$)/i)?i="image":a.match(/\.(pdf)((\?|#).*)?$/i)?(i="iframe",l=n.extend(!0,l,{contentType:"pdf",opts:{iframe:{preload:!1}}})):"#"===a.charAt(0)&&(i="inline")),i?l.type=i:r.trigger("objectNeedsType",l),l.contentType||(l.contentType=n.inArray(l.type,["html","inline","ajax"])>-1?"html":l.type),l.index=r.group.length,"auto"==l.opts.smallBtn&&(l.opts.smallBtn=n.inArray(l.type,["html","inline","ajax"])>-1),"auto"===l.opts.toolbar&&(l.opts.toolbar=!l.opts.smallBtn),l.$thumb=l.opts.$thumb||null,l.opts.$trigger&&l.index===r.opts.index&&(l.$thumb=l.opts.$trigger.find("img:first"),l.$thumb.length&&(l.opts.$orig=l.opts.$trigger)),l.$thumb&&l.$thumb.length||!l.opts.$orig||(l.$thumb=l.opts.$orig.find("img:first")),l.$thumb&&!l.$thumb.length&&(l.$thumb=null),l.thumb=l.opts.thumb||(l.$thumb?l.$thumb[0].src:null),"function"===n.type(l.opts.caption)&&(l.opts.caption=l.opts.caption.apply(t,[r,l])),"function"===n.type(r.opts.caption)&&(l.opts.caption=r.opts.caption.apply(t,[r,l])),l.opts.caption instanceof n||(l.opts.caption=void 0===l.opts.caption?"":l.opts.caption+""),"ajax"===l.type&&((s=a.split(/\s+/,2)).length>1&&(l.src=s.shift(),l.opts.filter=s.shift())),l.opts.modal&&(l.opts=n.extend(!0,l.opts,{trapFocus:!0,infobar:0,toolbar:0,smallBtn:0,keyboard:0,slideShow:0,fullScreen:0,thumbs:0,touch:0,clickContent:!1,clickSlide:!1,clickOutside:!1,dblclickContent:!1,dblclickSlide:!1,dblclickOutside:!1})),r.group.push(l)}),Object.keys(r.slides).length&&(r.updateControls(),(t=r.Thumbs)&&t.isActive&&(t.create(),t.focus()))},addEvents:function(){var t=this;t.removeEvents(),t.$refs.container.on("click.fb-close","[data-fancybox-close]",function(e){e.stopPropagation(),e.preventDefault(),t.close(e)}).on("touchstart.fb-prev click.fb-prev","[data-fancybox-prev]",function(e){e.stopPropagation(),e.preventDefault(),t.previous()}).on("touchstart.fb-next click.fb-next","[data-fancybox-next]",function(e){e.stopPropagation(),e.preventDefault(),t.next()}).on("click.fb","[data-fancybox-zoom]",function(e){t[t.isScaledDown()?"scaleToActual":"scaleToFit"]()}),c.on("orientationchange.fb resize.fb",function(e){e&&e.originalEvent&&"resize"===e.originalEvent.type?(t.requestId&&u(t.requestId),t.requestId=l(function(){t.update(e)})):(t.current&&"iframe"===t.current.type&&t.$refs.stage.hide(),setTimeout(function(){t.$refs.stage.show(),t.update(e)},n.fancybox.isMobile?600:250))}),a.on("keydown.fb",function(e){var r=(n.fancybox?n.fancybox.getInstance():null).current,o=e.keyCode||e.which;if(9!=o)return!r.opts.keyboard||e.ctrlKey||e.altKey||e.shiftKey||n(e.target).is("input,textarea,video,audio,select")?void 0:8===o||27===o?(e.preventDefault(),void t.close(e)):37===o||38===o?(e.preventDefault(),void t.previous()):39===o||40===o?(e.preventDefault(),void t.next()):void t.trigger("afterKeydown",e,o);r.opts.trapFocus&&t.focus(e)}),t.group[t.currIndex].opts.idleTime&&(t.idleSecondsCounter=0,a.on("mousemove.fb-idle mouseleave.fb-idle mousedown.fb-idle touchstart.fb-idle touchmove.fb-idle scroll.fb-idle keydown.fb-idle",function(e){t.idleSecondsCounter=0,t.isIdle&&t.showControls(),t.isIdle=!1}),t.idleInterval=e.setInterval(function(){++t.idleSecondsCounter>=t.group[t.currIndex].opts.idleTime&&!t.isDragging&&(t.isIdle=!0,t.idleSecondsCounter=0,t.hideControls())},1e3))},removeEvents:function(){var t=this;c.off("orientationchange.fb resize.fb"),a.off("keydown.fb .fb-idle"),this.$refs.container.off(".fb-close .fb-prev .fb-next"),t.idleInterval&&(e.clearInterval(t.idleInterval),t.idleInterval=null)},previous:function(e){return this.jumpTo(this.currPos-1,e)},next:function(e){return this.jumpTo(this.currPos+1,e)},jumpTo:function(e,t){var r,o,i,c,a,s,l,u,h,d=this,m=d.group.length;if(!(d.isDragging||d.isClosing||d.isAnimating&&d.firstRun)){if(e=parseInt(e,10),!(i=d.current?d.current.opts.loop:d.opts.loop)&&(e<0||e>=m))return!1;if(r=d.firstRun=!Object.keys(d.slides).length,a=d.current,d.prevIndex=d.currIndex,d.prevPos=d.currPos,c=d.createSlide(e),m>1&&((i||c.index0)&&d.createSlide(e-1)),d.current=c,d.currIndex=c.index,d.currPos=c.pos,d.trigger("beforeShow",r),d.updateControls(),c.forcedDuration=void 0,n.isNumeric(t)?c.forcedDuration=t:t=c.opts[r?"animationDuration":"transitionDuration"],t=parseInt(t,10),o=d.isMoved(c),c.$slide.addClass("fancybox-slide--current"),r)return c.opts.animationEffect&&t&&d.$refs.container.css("transition-duration",t+"ms"),d.$refs.container.addClass("fancybox-is-open").trigger("focus"),d.loadSlide(c),void d.preload("image");s=n.fancybox.getTranslate(a.$slide),l=n.fancybox.getTranslate(d.$refs.stage),n.each(d.slides,function(e,t){n.fancybox.stop(t.$slide,!0)}),a.pos!==c.pos&&(a.isComplete=!1),a.$slide.removeClass("fancybox-slide--complete fancybox-slide--current"),o?(h=s.left-(a.pos*s.width+a.pos*a.opts.gutter),n.each(d.slides,function(e,r){r.$slide.removeClass("fancybox-animated").removeClass(function(e,t){return(t.match(/(^|\s)fancybox-fx-\S+/g)||[]).join(" ")});var o=r.pos*s.width+r.pos*r.opts.gutter;n.fancybox.setTranslate(r.$slide,{top:0,left:o-l.left+h}),r.pos!==c.pos&&r.$slide.addClass("fancybox-slide--"+(r.pos>c.pos?"next":"previous")),f(r.$slide),n.fancybox.animate(r.$slide,{top:0,left:(r.pos-c.pos)*s.width+(r.pos-c.pos)*r.opts.gutter},t,function(){r.$slide.css({transform:"",opacity:""}).removeClass("fancybox-slide--next fancybox-slide--previous"),r.pos===d.currPos&&d.complete()})})):t&&c.opts.transitionEffect&&(u="fancybox-animated fancybox-fx-"+c.opts.transitionEffect,a.$slide.addClass("fancybox-slide--"+(a.pos>c.pos?"next":"previous")),n.fancybox.animate(a.$slide,u,t,function(){a.$slide.removeClass(u).removeClass("fancybox-slide--next fancybox-slide--previous")},!1)),c.isLoaded?d.revealContent(c):d.loadSlide(c),d.preload("image")}},createSlide:function(e){var t,r,o=this;return r=(r=e%o.group.length)<0?o.group.length+r:r,!o.slides[e]&&o.group[r]&&(t=n('
    ').appendTo(o.$refs.stage),o.slides[e]=n.extend(!0,{},o.group[r],{pos:e,$slide:t,isLoaded:!1}),o.updateSlide(o.slides[e])),o.slides[e]},scaleToActual:function(e,t,r){var o,i,c,a,s,l=this,u=l.current,h=u.$content,f=n.fancybox.getTranslate(u.$slide).width,d=n.fancybox.getTranslate(u.$slide).height,m=u.width,v=u.height;l.isAnimating||l.isMoved()||!h||"image"!=u.type||!u.isLoaded||u.hasError||(l.isAnimating=!0,n.fancybox.stop(h),e=void 0===e?.5*f:e,t=void 0===t?.5*d:t,(o=n.fancybox.getTranslate(h)).top-=n.fancybox.getTranslate(u.$slide).top,o.left-=n.fancybox.getTranslate(u.$slide).left,a=m/o.width,s=v/o.height,i=.5*f-.5*m,c=.5*d-.5*v,m>f&&((i=o.left*a-(e*a-e))>0&&(i=0),id&&((c=o.top*s-(t*s-t))>0&&(c=0),ct-.5&&(s=t),(l*=o)>r-.5&&(l=r),"image"===e.type?(u.top=Math.floor(.5*(r-l))+parseFloat(a.css("paddingTop")),u.left=Math.floor(.5*(t-s))+parseFloat(a.css("paddingLeft"))):"video"===e.contentType&&(l>s/(i=e.opts.width&&e.opts.height?s/l:e.opts.ratio||16/9)?l=s/i:s>l*i&&(s=l*i)),u.width=s,u.height=l,u)},update:function(e){var t=this;n.each(t.slides,function(n,r){t.updateSlide(r,e)})},updateSlide:function(e,t){var r=this,o=e&&e.$content,i=e.width||e.opts.width,c=e.height||e.opts.height,a=e.$slide;r.adjustCaption(e),o&&(i||c||"video"===e.contentType)&&!e.hasError&&(n.fancybox.stop(o),n.fancybox.setTranslate(o,r.getFitPos(e)),e.pos===r.currPos&&(r.isAnimating=!1,r.updateCursor())),r.adjustLayout(e),a.length&&(a.trigger("refresh"),e.pos===r.currPos&&r.$refs.toolbar.add(r.$refs.navigation.find(".fancybox-button--arrow_right")).toggleClass("compensate-for-scrollbar",a.get(0).scrollHeight>a.get(0).clientHeight)),r.trigger("onUpdate",e,t)},centerSlide:function(e){var t=this,r=t.current,o=r.$slide;!t.isClosing&&r&&(o.siblings().css({transform:"",opacity:""}),o.parent().children().removeClass("fancybox-slide--previous fancybox-slide--next"),n.fancybox.animate(o,{top:0,left:0,opacity:1},void 0===e?0:e,function(){o.css({transform:"",opacity:""}),r.isComplete||t.complete()},!1))},isMoved:function(e){var t,r,o=e||this.current;return!!o&&(r=n.fancybox.getTranslate(this.$refs.stage),t=n.fancybox.getTranslate(o.$slide),!o.$slide.hasClass("fancybox-animated")&&(Math.abs(t.top-r.top)>.5||Math.abs(t.left-r.left)>.5))},updateCursor:function(e,t){var r,o,i=this,c=i.current,a=i.$refs.container;c&&!i.isClosing&&i.Guestures&&(a.removeClass("fancybox-is-zoomable fancybox-can-zoomIn fancybox-can-zoomOut fancybox-can-swipe fancybox-can-pan"),o=!!(r=i.canPan(e,t))||i.isZoomable(),a.toggleClass("fancybox-is-zoomable",o),n("[data-fancybox-zoom]").prop("disabled",!o),r?a.addClass("fancybox-can-pan"):o&&("zoom"===c.opts.clickContent||n.isFunction(c.opts.clickContent)&&"zoom"==c.opts.clickContent(c))?a.addClass("fancybox-can-zoomIn"):c.opts.touch&&(c.opts.touch.vertical||i.group.length>1)&&"video"!==c.contentType&&a.addClass("fancybox-can-swipe"))},isZoomable:function(){var e,t=this,n=t.current;if(n&&!t.isClosing&&"image"===n.type&&!n.hasError){if(!n.isLoaded)return!0;if((e=t.getFitPos(n))&&(n.width>e.width||n.height>e.height))return!0}return!1},isScaledDown:function(e,t){var r=!1,o=this.current,i=o.$content;return void 0!==e&&void 0!==t?r=e1.5||Math.abs(o.height-i.height)>1.5)),i},loadSlide:function(e){var t,r,o,i=this;if(!e.isLoading&&!e.isLoaded){if(e.isLoading=!0,!1===i.trigger("beforeLoad",e))return e.isLoading=!1,!1;switch(t=e.type,(r=e.$slide).off("refresh").trigger("onReset").addClass(e.opts.slideClass),t){case"image":i.setImage(e);break;case"iframe":i.setIframe(e);break;case"html":i.setContent(e,e.src||e.content);break;case"video":i.setContent(e,e.opts.video.tpl.replace(/\{\{src\}\}/gi,e.src).replace("{{format}}",e.opts.videoFormat||e.opts.video.format||"").replace("{{poster}}",e.thumb||""));break;case"inline":n(e.src).length?i.setContent(e,n(e.src)):i.setError(e);break;case"ajax":i.showLoading(e),o=n.ajax(n.extend({},e.opts.ajax.settings,{url:e.src,success:function(t,n){"success"===n&&i.setContent(e,t)},error:function(t,n){t&&"abort"!==n&&i.setError(e)}})),r.one("onReset",function(){o.abort()});break;default:i.setError(e)}return!0}},setImage:function(e){var r,o=this;setTimeout(function(){var t=e.$image;o.isClosing||!e.isLoading||t&&t.length&&t[0].complete||e.hasError||o.showLoading(e)},50),o.checkSrcset(e),e.$content=n('
    ').addClass("fancybox-is-hidden").appendTo(e.$slide.addClass("fancybox-slide--image")),!1!==e.opts.preload&&e.opts.width&&e.opts.height&&e.thumb&&(e.width=e.opts.width,e.height=e.opts.height,(r=t.createElement("img")).onerror=function(){n(this).remove(),e.$ghost=null},r.onload=function(){o.afterLoad(e)},e.$ghost=n(r).addClass("fancybox-image").appendTo(e.$content).attr("src",e.thumb)),o.setBigImage(e)},checkSrcset:function(t){var n,r,o,i,c=t.opts.srcset||t.opts.image.srcset;if(c){o=e.devicePixelRatio||1,i=e.innerWidth*o,(r=c.split(",").map(function(e){var t={};return e.trim().split(/\s+/).forEach(function(e,n){var r=parseInt(e.substring(0,e.length-1),10);if(0===n)return t.url=e;r&&(t.value=r,t.postfix=e[e.length-1])}),t})).sort(function(e,t){return e.value-t.value});for(var a=0;a=i||"x"===s.postfix&&s.value>=o){n=s;break}}!n&&r.length&&(n=r[r.length-1]),n&&(t.src=n.url,t.width&&t.height&&"w"==n.postfix&&(t.height=t.width/t.height*n.value,t.width=n.value),t.opts.srcset=c)}},setBigImage:function(e){var r=this,o=t.createElement("img"),i=n(o);e.$image=i.one("error",function(){r.setError(e)}).one("load",function(){var t;e.$ghost||(r.resolveImageSlideSize(e,this.naturalWidth,this.naturalHeight),r.afterLoad(e)),r.isClosing||(e.opts.srcset&&((t=e.opts.sizes)&&"auto"!==t||(t=(e.width/e.height>1&&c.width()/c.height()>1?"100":Math.round(e.width/e.height*100))+"vw"),i.attr("sizes",t).attr("srcset",e.opts.srcset)),e.$ghost&&setTimeout(function(){e.$ghost&&!r.isClosing&&e.$ghost.hide()},Math.min(300,Math.max(1e3,e.height/1600))),r.hideLoading(e))}).addClass("fancybox-image").attr("src",e.src).appendTo(e.$content),(o.complete||"complete"==o.readyState)&&i.naturalWidth&&i.naturalHeight?i.trigger("load"):o.error&&i.trigger("error")},resolveImageSlideSize:function(e,t,n){var r=parseInt(e.opts.width,10),o=parseInt(e.opts.height,10);e.width=t,e.height=n,r>0&&(e.width=r,e.height=Math.floor(r*n/t)),o>0&&(e.width=Math.floor(o*t/n),e.height=o)},setIframe:function(e){var t,r=this,o=e.opts.iframe,i=e.$slide;e.$content=n('
    ').css(o.css).appendTo(i),i.addClass("fancybox-slide--"+e.contentType),e.$iframe=t=n(o.tpl.replace(/\{rnd\}/g,(new Date).getTime())).attr(o.attr).appendTo(e.$content),o.preload?(r.showLoading(e),t.on("load.fb error.fb",function(t){this.isReady=1,e.$slide.trigger("refresh"),r.afterLoad(e)}),i.on("refresh.fb",function(){var n,r=e.$content,c=o.css.width,a=o.css.height;if(1===t[0].isReady){try{n=t.contents().find("body")}catch(e){}n&&n.length&&n.children().length&&(i.css("overflow","visible"),r.css({width:"100%","max-width":"100%",height:"9999px"}),void 0===c&&(c=Math.ceil(Math.max(n[0].clientWidth,n.outerWidth(!0)))),r.css("width",c||"").css("max-width",""),void 0===a&&(a=Math.ceil(Math.max(n[0].clientHeight,n.outerHeight(!0)))),r.css("height",a||""),i.css("overflow","auto")),r.removeClass("fancybox-is-hidden")}})):r.afterLoad(e),t.attr("src",e.src),i.one("onReset",function(){try{n(this).find("iframe").hide().unbind().attr("src","//about:blank")}catch(e){}n(this).off("refresh.fb").empty(),e.isLoaded=!1,e.isRevealed=!1})},setContent:function(e,t){var r=this;r.isClosing||(r.hideLoading(e),e.$content&&n.fancybox.stop(e.$content),e.$slide.empty(),function(e){return e&&e.hasOwnProperty&&e instanceof n}(t)&&t.parent().length?((t.hasClass("fancybox-content")||t.parent().hasClass("fancybox-content"))&&t.parents(".fancybox-slide").trigger("onReset"),e.$placeholder=n("
    ").hide().insertAfter(t),t.css("display","inline-block")):e.hasError||("string"===n.type(t)&&(t=n("
    ").append(n.trim(t)).contents()),e.opts.filter&&(t=n("
    ").html(t).find(e.opts.filter))),e.$slide.one("onReset",function(){n(this).find("video,audio").trigger("pause"),e.$placeholder&&(e.$placeholder.after(t.removeClass("fancybox-content").hide()).remove(),e.$placeholder=null),e.$smallBtn&&(e.$smallBtn.remove(),e.$smallBtn=null),e.hasError||(n(this).empty(),e.isLoaded=!1,e.isRevealed=!1)}),n(t).appendTo(e.$slide),n(t).is("video,audio")&&(n(t).addClass("fancybox-video"),n(t).wrap("
    "),e.contentType="video",e.opts.width=e.opts.width||n(t).attr("width"),e.opts.height=e.opts.height||n(t).attr("height")),e.$content=e.$slide.children().filter("div,form,main,video,audio,article,.fancybox-content").first(),e.$content.siblings().hide(),e.$content.length||(e.$content=e.$slide.wrapInner("
    ").children().first()),e.$content.addClass("fancybox-content"),e.$slide.addClass("fancybox-slide--"+e.contentType),r.afterLoad(e))},setError:function(e){e.hasError=!0,e.$slide.trigger("onReset").removeClass("fancybox-slide--"+e.contentType).addClass("fancybox-slide--error"),e.contentType="html",this.setContent(e,this.translate(e,e.opts.errorTpl)),e.pos===this.currPos&&(this.isAnimating=!1)},showLoading:function(e){var t=this;(e=e||t.current)&&!e.$spinner&&(e.$spinner=n(t.translate(t,t.opts.spinnerTpl)).appendTo(e.$slide).hide().fadeIn("fast"))},hideLoading:function(e){(e=e||this.current)&&e.$spinner&&(e.$spinner.stop().remove(),delete e.$spinner)},afterLoad:function(e){var t=this;t.isClosing||(e.isLoading=!1,e.isLoaded=!0,t.trigger("afterLoad",e),t.hideLoading(e),!e.opts.smallBtn||e.$smallBtn&&e.$smallBtn.length||(e.$smallBtn=n(t.translate(e,e.opts.btnTpl.smallBtn)).appendTo(e.$content)),e.opts.protect&&e.$content&&!e.hasError&&(e.$content.on("contextmenu.fb",function(e){return 2==e.button&&e.preventDefault(),!0}),"image"===e.type&&n('
    ').appendTo(e.$content)),t.adjustCaption(e),t.adjustLayout(e),e.pos===t.currPos&&t.updateCursor(),t.revealContent(e))},adjustCaption:function(e){var t,n=this,r=e||n.current,o=r.opts.caption,i=r.opts.preventCaptionOverlap,c=n.$refs.caption,a=!1;c.toggleClass("fancybox-caption--separate",i),i&&o&&o.length&&(r.pos!==n.currPos?((t=c.clone().appendTo(c.parent())).children().eq(0).empty().html(o),a=t.outerHeight(!0),t.empty().remove()):n.$caption&&(a=n.$caption.outerHeight(!0)),r.$slide.css("padding-bottom",a||""))},adjustLayout:function(e){var t,n,r,o,i=e||this.current;i.isLoaded&&!0!==i.opts.disableLayoutFix&&(i.$content.css("margin-bottom",""),i.$content.outerHeight()>i.$slide.height()+.5&&(r=i.$slide[0].style["padding-bottom"],o=i.$slide.css("padding-bottom"),parseFloat(o)>0&&(t=i.$slide[0].scrollHeight,i.$slide.css("padding-bottom",0),Math.abs(t-i.$slide[0].scrollHeight)<1&&(n=o),i.$slide.css("padding-bottom",r))),i.$content.css("margin-bottom",n))},revealContent:function(e){var t,r,o,i,c=this,a=e.$slide,s=!1,l=!1,u=c.isMoved(e),h=e.isRevealed;return e.isRevealed=!0,t=e.opts[c.firstRun?"animationEffect":"transitionEffect"],o=e.opts[c.firstRun?"animationDuration":"transitionDuration"],o=parseInt(void 0===e.forcedDuration?o:e.forcedDuration,10),!u&&e.pos===c.currPos&&o||(t=!1),"zoom"===t&&(e.pos===c.currPos&&o&&"image"===e.type&&!e.hasError&&(l=c.getThumbPos(e))?s=c.getFitPos(e):t="fade"),"zoom"===t?(c.isAnimating=!0,s.scaleX=s.width/l.width,s.scaleY=s.height/l.height,"auto"==(i=e.opts.zoomOpacity)&&(i=Math.abs(e.width/e.height-l.width/l.height)>.1),i&&(l.opacity=.1,s.opacity=1),n.fancybox.setTranslate(e.$content.removeClass("fancybox-is-hidden"),l),f(e.$content),void n.fancybox.animate(e.$content,s,o,function(){c.isAnimating=!1,c.complete()})):(c.updateSlide(e),t?(n.fancybox.stop(a),r="fancybox-slide--"+(e.pos>=c.prevPos?"next":"previous")+" fancybox-animated fancybox-fx-"+t,a.addClass(r).removeClass("fancybox-slide--current"),e.$content.removeClass("fancybox-is-hidden"),f(a),"image"!==e.type&&e.$content.hide().show(0),void n.fancybox.animate(a,"fancybox-slide--current",o,function(){a.removeClass(r).css({transform:"",opacity:""}),e.pos===c.currPos&&c.complete()},!0)):(e.$content.removeClass("fancybox-is-hidden"),h||!u||"image"!==e.type||e.hasError||e.$content.hide().fadeIn("fast"),void(e.pos===c.currPos&&c.complete())))},getThumbPos:function(e){var t,r,o,i,c,a=!1,s=e.$thumb;return!(!s||!m(s[0]))&&(t=n.fancybox.getTranslate(s),r=parseFloat(s.css("border-top-width")||0),o=parseFloat(s.css("border-right-width")||0),i=parseFloat(s.css("border-bottom-width")||0),c=parseFloat(s.css("border-left-width")||0),a={top:t.top+r,left:t.left+c,width:t.width-o-c,height:t.height-r-i,scaleX:1,scaleY:1},t.width>0&&t.height>0&&a)},complete:function(){var e,t=this,r=t.current,o={};!t.isMoved()&&r.isLoaded&&(r.isComplete||(r.isComplete=!0,r.$slide.siblings().trigger("onReset"),t.preload("inline"),f(r.$slide),r.$slide.addClass("fancybox-slide--complete"),n.each(t.slides,function(e,r){r.pos>=t.currPos-1&&r.pos<=t.currPos+1?o[r.pos]=r:r&&(n.fancybox.stop(r.$slide),r.$slide.off().remove())}),t.slides=o),t.isAnimating=!1,t.updateCursor(),t.trigger("afterShow"),r.opts.video.autoStart&&r.$slide.find("video,audio").filter(":visible:first").trigger("play").one("ended",function(){Document.exitFullscreen?Document.exitFullscreen():this.webkitExitFullscreen&&this.webkitExitFullscreen(),t.next()}),r.opts.autoFocus&&"html"===r.contentType&&((e=r.$content.find("input[autofocus]:enabled:visible:first")).length?e.trigger("focus"):t.focus(null,!0)),r.$slide.scrollTop(0).scrollLeft(0))},preload:function(e){var t,n,r=this;r.group.length<2||(n=r.slides[r.currPos+1],(t=r.slides[r.currPos-1])&&t.type===e&&r.loadSlide(t),n&&n.type===e&&r.loadSlide(n))},focus:function(e,r){var o,i,c=this,a=["a[href]","area[href]",'input:not([disabled]):not([type="hidden"]):not([aria-hidden])',"select:not([disabled]):not([aria-hidden])","textarea:not([disabled]):not([aria-hidden])","button:not([disabled]):not([aria-hidden])","iframe","object","embed","video","audio","[contenteditable]",'[tabindex]:not([tabindex^="-"])'].join(",");c.isClosing||((o=(o=!e&&c.current&&c.current.isComplete?c.current.$slide.find("*:visible"+(r?":not(.fancybox-close-small)":"")):c.$refs.container.find("*:visible")).filter(a).filter(function(){return"hidden"!==n(this).css("visibility")&&!n(this).hasClass("disabled")})).length?(i=o.index(t.activeElement),e&&e.shiftKey?(i<0||0==i)&&(e.preventDefault(),o.eq(o.length-1).trigger("focus")):(i<0||i==o.length-1)&&(e&&e.preventDefault(),o.eq(0).trigger("focus"))):c.$refs.container.trigger("focus"))},activate:function(){var e=this;n(".fancybox-container").each(function(){var t=n(this).data("FancyBox");t&&t.id!==e.id&&!t.isClosing&&(t.trigger("onDeactivate"),t.removeEvents(),t.isVisible=!1)}),e.isVisible=!0,(e.current||e.isIdle)&&(e.update(),e.updateControls()),e.trigger("onActivate"),e.addEvents()},close:function(e,t){var r,o,i,c,a,s,u,h=this,d=h.current,m=function(){h.cleanUp(e)};return!(h.isClosing||(h.isClosing=!0,!1===h.trigger("beforeClose",e)?(h.isClosing=!1,l(function(){h.update()}),1):(h.removeEvents(),i=d.$content,r=d.opts.animationEffect,o=n.isNumeric(t)?t:r?d.opts.animationDuration:0,d.$slide.removeClass("fancybox-slide--complete fancybox-slide--next fancybox-slide--previous fancybox-animated"),!0!==e?n.fancybox.stop(d.$slide):r=!1,d.$slide.siblings().trigger("onReset").remove(),o&&h.$refs.container.removeClass("fancybox-is-open").addClass("fancybox-is-closing").css("transition-duration",o+"ms"),h.hideLoading(d),h.hideControls(!0),h.updateCursor(),"zoom"!==r||i&&o&&"image"===d.type&&!h.isMoved()&&!d.hasError&&(u=h.getThumbPos(d))||(r="fade"),"zoom"===r?(n.fancybox.stop(i),c=n.fancybox.getTranslate(i),s={top:c.top,left:c.left,scaleX:c.width/u.width,scaleY:c.height/u.height,width:u.width,height:u.height},a=d.opts.zoomOpacity,"auto"==a&&(a=Math.abs(d.width/d.height-u.width/u.height)>.1),a&&(u.opacity=0),n.fancybox.setTranslate(i,s),f(i),n.fancybox.animate(i,u,o,m),0):(r&&o?n.fancybox.animate(d.$slide.addClass("fancybox-slide--previous").removeClass("fancybox-slide--current"),"fancybox-animated fancybox-fx-"+r,o,m):!0===e?setTimeout(m,o):m(),0))))},cleanUp:function(t){var r,o,i,c=this,a=c.current.opts.$orig;c.current.$slide.trigger("onReset"),c.$refs.container.empty().remove(),c.trigger("afterClose",t),c.current.opts.backFocus&&(a&&a.length&&a.is(":visible")||(a=c.$trigger),a&&a.length&&(o=e.scrollX,i=e.scrollY,a.trigger("focus"),n("html, body").scrollTop(i).scrollLeft(o))),c.current=null,(r=n.fancybox.getInstance())?r.activate():(n("body").removeClass("fancybox-active compensate-for-scrollbar"),n("#fancybox-style-noscroll").remove())},trigger:function(e,t){var r,o=Array.prototype.slice.call(arguments,1),i=this,c=t&&t.opts?t:i.current;if(c?o.unshift(c):c=i,o.unshift(i),n.isFunction(c.opts[e])&&(r=c.opts[e].apply(c,o)),!1===r)return r;"afterClose"!==e&&i.$refs?i.$refs.container.trigger(e+".fb",o):a.trigger(e+".fb",o)},updateControls:function(){var e=this,r=e.current,o=r.index,i=e.$refs.container,c=e.$refs.caption,a=r.opts.caption;r.$slide.trigger("refresh"),a&&a.length?(e.$caption=c,c.children().eq(0).html(a)):e.$caption=null,e.hasHiddenControls||e.isIdle||e.showControls(),i.find("[data-fancybox-count]").html(e.group.length),i.find("[data-fancybox-index]").html(o+1),i.find("[data-fancybox-prev]").prop("disabled",!r.opts.loop&&o<=0),i.find("[data-fancybox-next]").prop("disabled",!r.opts.loop&&o>=e.group.length-1),"image"===r.type?i.find("[data-fancybox-zoom]").show().end().find("[data-fancybox-download]").attr("href",r.opts.image.src||r.src).show():r.opts.toolbar&&i.find("[data-fancybox-download],[data-fancybox-zoom]").hide(),n(t.activeElement).is(":hidden,[disabled]")&&e.$refs.container.trigger("focus")},hideControls:function(e){var t=["infobar","toolbar","nav"];!e&&this.current.opts.preventCaptionOverlap||t.push("caption"),this.$refs.container.removeClass(t.map(function(e){return"fancybox-show-"+e}).join(" ")),this.hasHiddenControls=!0},showControls:function(){var e=this,t=e.current?e.current.opts:e.opts,n=e.$refs.container;e.hasHiddenControls=!1,e.idleSecondsCounter=0,n.toggleClass("fancybox-show-toolbar",!(!t.toolbar||!t.buttons)).toggleClass("fancybox-show-infobar",!!(t.infobar&&e.group.length>1)).toggleClass("fancybox-show-caption",!!e.$caption).toggleClass("fancybox-show-nav",!!(t.arrows&&e.group.length>1)).toggleClass("fancybox-is-modal",!!t.modal)},toggleControls:function(){this.hasHiddenControls?this.showControls():this.hideControls()}}),n.fancybox={version:"3.5.7",defaults:i,getInstance:function(e){var t=n('.fancybox-container:not(".fancybox-is-closing"):last').data("FancyBox"),r=Array.prototype.slice.call(arguments,1);return t instanceof v&&("string"===n.type(e)?t[e].apply(t,r):"function"===n.type(e)&&e.apply(t,r),t)},open:function(e,t,n){return new v(e,t,n)},close:function(e){var t=this.getInstance();t&&(t.close(),!0===e&&this.close(e))},destroy:function(){this.close(!0),a.add("body").off("click.fb-start","**")},isMobile:/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent),use3d:function(){var n=t.createElement("div");return e.getComputedStyle&&e.getComputedStyle(n)&&e.getComputedStyle(n).getPropertyValue("transform")&&!(t.documentMode&&t.documentMode<11)}(),getTranslate:function(e){var t;return!(!e||!e.length)&&{top:(t=e[0].getBoundingClientRect()).top||0,left:t.left||0,width:t.width,height:t.height,opacity:parseFloat(e.css("opacity"))}},setTranslate:function(e,t){var n="",r={};if(e&&t)return void 0===t.left&&void 0===t.top||(n=(void 0===t.left?e.position().left:t.left)+"px, "+(void 0===t.top?e.position().top:t.top)+"px",n=this.use3d?"translate3d("+n+", 0px)":"translate("+n+")"),void 0!==t.scaleX&&void 0!==t.scaleY?n+=" scale("+t.scaleX+", "+t.scaleY+")":void 0!==t.scaleX&&(n+=" scaleX("+t.scaleX+")"),n.length&&(r.transform=n),void 0!==t.opacity&&(r.opacity=t.opacity),void 0!==t.width&&(r.width=t.width),void 0!==t.height&&(r.height=t.height),e.css(r)},animate:function(e,t,r,o,i){var c,a=this;n.isFunction(r)&&(o=r,r=null),a.stop(e),c=a.getTranslate(e),e.on(h,function(s){(!s||!s.originalEvent||e.is(s.originalEvent.target)&&"z-index"!=s.originalEvent.propertyName)&&(a.stop(e),n.isNumeric(r)&&e.css("transition-duration",""),n.isPlainObject(t)?void 0!==t.scaleX&&void 0!==t.scaleY&&a.setTranslate(e,{top:t.top,left:t.left,width:c.width*t.scaleX,height:c.height*t.scaleY,scaleX:1,scaleY:1}):!0!==i&&e.removeClass(t),n.isFunction(o)&&o(s))}),n.isNumeric(r)&&e.css("transition-duration",r+"ms"),n.isPlainObject(t)?(void 0!==t.scaleX&&void 0!==t.scaleY&&(delete t.width,delete t.height,e.parent().hasClass("fancybox-slide--image")&&e.parent().addClass("fancybox-is-scaling")),n.fancybox.setTranslate(e,t)):e.addClass(t),e.data("timer",setTimeout(function(){e.trigger(h)},r+33))},stop:function(e,t){e&&e.length&&(clearTimeout(e.data("timer")),t&&e.trigger(h),e.off(h).css("transition-duration",""),e.parent().removeClass("fancybox-is-scaling"))}},n.fn.fancybox=function(e){var t;return(t=(e=e||{}).selector||!1)?n("body").off("click.fb-start",t).on("click.fb-start",t,{options:e},o):this.off("click.fb-start").on("click.fb-start",{items:this,options:e},o),this},a.on("click.fb-start","[data-fancybox]",o),a.on("click.fb-start","[data-fancybox-trigger]",function(e){n('[data-fancybox="'+n(this).attr("data-fancybox-trigger")+'"]').eq(n(this).attr("data-fancybox-index")||0).trigger("click.fb-start",{$trigger:n(this)})}),function(){var e=null;a.on("mousedown mouseup focus blur",".fancybox-button",function(t){switch(t.type){case"mousedown":e=n(this);break;case"mouseup":e=null;break;case"focusin":n(".fancybox-button").removeClass("fancybox-focus"),n(this).is(e)||n(this).is("[disabled]")||n(this).addClass("fancybox-focus");break;case"focusout":n(".fancybox-button").removeClass("fancybox-focus")}})}()}}(window,document,jQuery),function(e){"use strict";var t={youtube:{matcher:/(youtube\.com|youtu\.be|youtube\-nocookie\.com)\/(watch\?(.*&)?v=|v\/|u\/|embed\/?)?(videoseries\?list=(.*)|[\w-]{11}|\?listType=(.*)&list=(.*))(.*)/i,params:{autoplay:1,autohide:1,fs:1,rel:0,hd:1,wmode:"transparent",enablejsapi:1,html5:1},paramPlace:8,type:"iframe",url:"https://www.youtube-nocookie.com/embed/$4",thumb:"https://img.youtube.com/vi/$4/hqdefault.jpg"},vimeo:{matcher:/^.+vimeo.com\/(.*\/)?([\d]+)(.*)?/,params:{autoplay:1,hd:1,show_title:1,show_byline:1,show_portrait:0,fullscreen:1},paramPlace:3,type:"iframe",url:"//player.vimeo.com/video/$2"},instagram:{matcher:/(instagr\.am|instagram\.com)\/p\/([a-zA-Z0-9_\-]+)\/?/i,type:"image",url:"//$1/p/$2/media/?size=l"},gmap_place:{matcher:/(maps\.)?google\.([a-z]{2,3}(\.[a-z]{2})?)\/(((maps\/(place\/(.*)\/)?\@(.*),(\d+.?\d+?)z))|(\?ll=))(.*)?/i,type:"iframe",url:function(e){return"//maps.google."+e[2]+"/?ll="+(e[9]?e[9]+"&z="+Math.floor(e[10])+(e[12]?e[12].replace(/^\//,"&"):""):e[12]+"").replace(/\?/,"&")+"&output="+(e[12]&&e[12].indexOf("layer=c")>0?"svembed":"embed")}},gmap_search:{matcher:/(maps\.)?google\.([a-z]{2,3}(\.[a-z]{2})?)\/(maps\/search\/)(.*)/i,type:"iframe",url:function(e){return"//maps.google."+e[2]+"/maps?q="+e[5].replace("query=","q=").replace("api=1","")+"&output=embed"}}},n=function(t,n,r){if(t)return r=r||"","object"===e.type(r)&&(r=e.param(r,!0)),e.each(n,function(e,n){t=t.replace("$"+e,n||"")}),r.length&&(t+=(t.indexOf("?")>0?"&":"?")+r),t};e(document).on("objectNeedsType.fb",function(r,o,i){var c,a,s,l,u,h,f,d=i.src||"",m=!1;c=e.extend(!0,{},t,i.opts.media),e.each(c,function(t,r){if(s=d.match(r.matcher)){if(m=r.type,f=t,h={},r.paramPlace&&s[r.paramPlace]){"?"==(u=s[r.paramPlace])[0]&&(u=u.substring(1)),u=u.split("&");for(var o=0;o1&&("youtube"===n.contentSource||"vimeo"===n.contentSource)&&r.load(n.contentSource)}})}(jQuery),function(e,t,n){"use strict";var r=e.requestAnimationFrame||e.webkitRequestAnimationFrame||e.mozRequestAnimationFrame||e.oRequestAnimationFrame||function(t){return e.setTimeout(t,1e3/60)},o=e.cancelAnimationFrame||e.webkitCancelAnimationFrame||e.mozCancelAnimationFrame||e.oCancelAnimationFrame||function(t){e.clearTimeout(t)},i=function(t){var n=[];for(var r in t=(t=t.originalEvent||t||e.e).touches&&t.touches.length?t.touches:t.changedTouches&&t.changedTouches.length?t.changedTouches:[t])t[r].pageX?n.push({x:t[r].pageX,y:t[r].pageY}):t[r].clientX&&n.push({x:t[r].clientX,y:t[r].clientY});return n},c=function(e,t,n){return t&&e?"x"===n?e.x-t.x:"y"===n?e.y-t.y:Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2)):0},a=function(e){if(e.is('a,area,button,[role="button"],input,label,select,summary,textarea,video,audio,iframe')||n.isFunction(e.get(0).onclick)||e.data("selectable"))return!0;for(var t=0,r=e[0].attributes,o=r.length;tt.clientHeight,i=("scroll"===r||"auto"===r)&&t.scrollWidth>t.clientWidth;return o||i},l=function(e){for(var t=!1;!(t=s(e.get(0)))&&((e=e.parent()).length&&!e.hasClass("fancybox-stage")&&!e.is("body")););return t},u=function(e){var t=this;t.instance=e,t.$bg=e.$refs.bg,t.$stage=e.$refs.stage,t.$container=e.$refs.container,t.destroy(),t.$container.on("touchstart.fb.touch mousedown.fb.touch",n.proxy(t,"ontouchstart"))};u.prototype.destroy=function(){var e=this;e.$container.off(".fb.touch"),n(t).off(".fb.touch"),e.requestId&&(o(e.requestId),e.requestId=null),e.tapped&&(clearTimeout(e.tapped),e.tapped=null)},u.prototype.ontouchstart=function(r){var o=this,s=n(r.target),u=o.instance,h=u.current,f=h.$slide,d=h.$content,m="touchstart"==r.type;if(m&&o.$container.off("mousedown.fb.touch"),(!r.originalEvent||2!=r.originalEvent.button)&&f.length&&s.length&&!a(s)&&!a(s.parent())&&(s.is("img")||!(r.originalEvent.clientX>s[0].clientWidth+s.offset().left))){if(!h||u.isAnimating||h.$slide.hasClass("fancybox-animated"))return r.stopPropagation(),void r.preventDefault();o.realPoints=o.startPoints=i(r),o.startPoints.length&&(h.touch&&r.stopPropagation(),o.startEvent=r,o.canTap=!0,o.$target=s,o.$content=d,o.opts=h.opts.touch,o.isPanning=!1,o.isSwiping=!1,o.isZooming=!1,o.isScrolling=!1,o.canPan=u.canPan(),o.startTime=(new Date).getTime(),o.distanceX=o.distanceY=o.distance=0,o.canvasWidth=Math.round(f[0].clientWidth),o.canvasHeight=Math.round(f[0].clientHeight),o.contentLastPos=null,o.contentStartPos=n.fancybox.getTranslate(o.$content)||{top:0,left:0},o.sliderStartPos=n.fancybox.getTranslate(f),o.stagePos=n.fancybox.getTranslate(u.$refs.stage),o.sliderStartPos.top-=o.stagePos.top,o.sliderStartPos.left-=o.stagePos.left,o.contentStartPos.top-=o.stagePos.top,o.contentStartPos.left-=o.stagePos.left,n(t).off(".fb.touch").on(m?"touchend.fb.touch touchcancel.fb.touch":"mouseup.fb.touch mouseleave.fb.touch",n.proxy(o,"ontouchend")).on(m?"touchmove.fb.touch":"mousemove.fb.touch",n.proxy(o,"ontouchmove")),n.fancybox.isMobile&&t.addEventListener("scroll",o.onscroll,!0),((o.opts||o.canPan)&&(s.is(o.$stage)||o.$stage.find(s).length)||(s.is(".fancybox-image")&&r.preventDefault(),n.fancybox.isMobile&&s.parents(".fancybox-caption").length))&&(o.isScrollable=l(s)||l(s.parent()),n.fancybox.isMobile&&o.isScrollable||r.preventDefault(),(1===o.startPoints.length||h.hasError)&&(o.canPan?(n.fancybox.stop(o.$content),o.isPanning=!0):o.isSwiping=!0,o.$container.addClass("fancybox-is-grabbing")),2===o.startPoints.length&&"image"===h.type&&(h.isLoaded||h.$ghost)&&(o.canTap=!1,o.isSwiping=!1,o.isPanning=!1,o.isZooming=!0,n.fancybox.stop(o.$content),o.centerPointStartX=.5*(o.startPoints[0].x+o.startPoints[1].x)-n(e).scrollLeft(),o.centerPointStartY=.5*(o.startPoints[0].y+o.startPoints[1].y)-n(e).scrollTop(),o.percentageOfImageAtPinchPointX=(o.centerPointStartX-o.contentStartPos.left)/o.contentStartPos.width,o.percentageOfImageAtPinchPointY=(o.centerPointStartY-o.contentStartPos.top)/o.contentStartPos.height,o.startDistanceBetweenFingers=c(o.startPoints[0],o.startPoints[1]))))}},u.prototype.onscroll=function(e){this.isScrolling=!0,t.removeEventListener("scroll",this.onscroll,!0)},u.prototype.ontouchmove=function(e){var t=this;return void 0!==e.originalEvent.buttons&&0===e.originalEvent.buttons?void t.ontouchend(e):t.isScrolling?void(t.canTap=!1):(t.newPoints=i(e),void((t.opts||t.canPan)&&t.newPoints.length&&t.newPoints.length&&(t.isSwiping&&!0===t.isSwiping||e.preventDefault(),t.distanceX=c(t.newPoints[0],t.startPoints[0],"x"),t.distanceY=c(t.newPoints[0],t.startPoints[0],"y"),t.distance=c(t.newPoints[0],t.startPoints[0]),t.distance>0&&(t.isSwiping?t.onSwipe(e):t.isPanning?t.onPan():t.isZooming&&t.onZoom()))))},u.prototype.onSwipe=function(t){var i,c=this,a=c.instance,s=c.isSwiping,l=c.sliderStartPos.left||0;if(!0!==s)"x"==s&&(c.distanceX>0&&(c.instance.group.length<2||0===c.instance.current.index&&!c.instance.current.opts.loop)?l+=Math.pow(c.distanceX,.8):c.distanceX<0&&(c.instance.group.length<2||c.instance.current.index===c.instance.group.length-1&&!c.instance.current.opts.loop)?l-=Math.pow(-c.distanceX,.8):l+=c.distanceX),c.sliderLastPos={top:"x"==s?0:c.sliderStartPos.top+c.distanceY,left:l},c.requestId&&(o(c.requestId),c.requestId=null),c.requestId=r(function(){c.sliderLastPos&&(n.each(c.instance.slides,function(e,t){var r=t.pos-c.instance.currPos;n.fancybox.setTranslate(t.$slide,{top:c.sliderLastPos.top,left:c.sliderLastPos.left+r*c.canvasWidth+r*t.opts.gutter})}),c.$container.addClass("fancybox-is-sliding"))});else if(Math.abs(c.distance)>10){if(c.canTap=!1,a.group.length<2&&c.opts.vertical?c.isSwiping="y":a.isDragging||!1===c.opts.vertical||"auto"===c.opts.vertical&&n(e).width()>800?c.isSwiping="x":(i=Math.abs(180*Math.atan2(c.distanceY,c.distanceX)/Math.PI),c.isSwiping=i>45&&i<135?"y":"x"),"y"===c.isSwiping&&n.fancybox.isMobile&&c.isScrollable)return void(c.isScrolling=!0);a.isDragging=c.isSwiping,c.startPoints=c.newPoints,n.each(a.slides,function(e,t){var r,o;n.fancybox.stop(t.$slide),r=n.fancybox.getTranslate(t.$slide),o=n.fancybox.getTranslate(a.$refs.stage),t.$slide.css({transform:"",opacity:"","transition-duration":""}).removeClass("fancybox-animated").removeClass(function(e,t){return(t.match(/(^|\s)fancybox-fx-\S+/g)||[]).join(" ")}),t.pos===a.current.pos&&(c.sliderStartPos.top=r.top-o.top,c.sliderStartPos.left=r.left-o.left),n.fancybox.setTranslate(t.$slide,{top:r.top-o.top,left:r.left-o.left})}),a.SlideShow&&a.SlideShow.isActive&&a.SlideShow.stop()}},u.prototype.onPan=function(){var e=this;c(e.newPoints[0],e.realPoints[0])<(n.fancybox.isMobile?10:5)?e.startPoints=e.newPoints:(e.canTap=!1,e.contentLastPos=e.limitMovement(),e.requestId&&o(e.requestId),e.requestId=r(function(){n.fancybox.setTranslate(e.$content,e.contentLastPos)}))},u.prototype.limitMovement=function(){var e,t,n,r,o,i,c=this,a=c.canvasWidth,s=c.canvasHeight,l=c.distanceX,u=c.distanceY,h=c.contentStartPos,f=h.left,d=h.top,m=h.width,v=h.height;return o=m>a?f+l:f,i=d+u,e=Math.max(0,.5*a-.5*m),t=Math.max(0,.5*s-.5*v),n=Math.min(a-m,.5*a-.5*m),r=Math.min(s-v,.5*s-.5*v),l>0&&o>e&&(o=e-1+Math.pow(-e+f+l,.8)||0),l<0&&o0&&i>t&&(i=t-1+Math.pow(-t+d+u,.8)||0),u<0&&io?e=(e=e>0?0:e)i?t=(t=t>0?0:t)1&&(r.dMs>130&&c>10||c>50);r.sliderLastPos=null,"y"==e&&!t&&Math.abs(r.distanceY)>50?(n.fancybox.animate(r.instance.current.$slide,{top:r.sliderStartPos.top+r.distanceY+150*r.velocityY,opacity:0},200),o=r.instance.close(!0,250)):a&&r.distanceX>0?o=r.instance.previous(300):a&&r.distanceX<0&&(o=r.instance.next(300)),!1!==o||"x"!=e&&"y"!=e||r.instance.centerSlide(200),r.$container.removeClass("fancybox-is-sliding")},u.prototype.endPanning=function(){var e,t,r,o=this;o.contentLastPos&&(!1===o.opts.momentum||o.dMs>350?(e=o.contentLastPos.left,t=o.contentLastPos.top):(e=o.contentLastPos.left+500*o.velocityX,t=o.contentLastPos.top+500*o.velocityY),(r=o.limitPosition(e,t,o.contentStartPos.width,o.contentStartPos.height)).width=o.contentStartPos.width,r.height=o.contentStartPos.height,n.fancybox.animate(o.$content,r,366))},u.prototype.endZooming=function(){var e,t,r,o,i=this,c=i.instance.current,a=i.newWidth,s=i.newHeight;i.contentLastPos&&(e=i.contentLastPos.left,o={top:t=i.contentLastPos.top,left:e,width:a,height:s,scaleX:1,scaleY:1},n.fancybox.setTranslate(i.$content,o),ac.width||s>c.height?i.instance.scaleToActual(i.centerPointStartX,i.centerPointStartY,150):(r=i.limitPosition(e,t,a,s),n.fancybox.animate(i.$content,r,150)))},u.prototype.onTap=function(t){var r,o=this,c=n(t.target),a=o.instance,s=a.current,l=t&&i(t)||o.startPoints,u=l[0]?l[0].x-n(e).scrollLeft()-o.stagePos.left:0,h=l[0]?l[0].y-n(e).scrollTop()-o.stagePos.top:0,f=function(e){var r=s.opts[e];if(n.isFunction(r)&&(r=r.apply(a,[s,t])),r)switch(r){case"close":a.close(o.startEvent);break;case"toggleControls":a.toggleControls();break;case"next":a.next();break;case"nextOrClose":a.group.length>1?a.next():a.close(o.startEvent);break;case"zoom":"image"==s.type&&(s.isLoaded||s.$ghost)&&(a.canPan()?a.scaleToFit():a.isScaledDown()?a.scaleToActual(u,h):a.group.length<2&&a.close(o.startEvent))}};if((!t.originalEvent||2!=t.originalEvent.button)&&(c.is("img")||!(u>c[0].clientWidth+c.offset().left))){if(c.is(".fancybox-bg,.fancybox-inner,.fancybox-outer,.fancybox-container"))r="Outside";else if(c.is(".fancybox-slide"))r="Slide";else{if(!a.current.$content||!a.current.$content.find(c).addBack().filter(c).length)return;r="Content"}if(o.tapped){if(clearTimeout(o.tapped),o.tapped=null,Math.abs(u-o.tapX)>50||Math.abs(h-o.tapY)>50)return this;f("dblclick"+r)}else o.tapX=u,o.tapY=h,s.opts["dblclick"+r]&&s.opts["dblclick"+r]!==s.opts["click"+r]?o.tapped=setTimeout(function(){o.tapped=null,a.isAnimating||f("click"+r)},500):f("click"+r);return this}},n(t).on("onActivate.fb",function(e,t){t&&!t.Guestures&&(t.Guestures=new u(t))}).on("beforeClose.fb",function(e,t){t&&t.Guestures&&t.Guestures.destroy()})}(window,document,jQuery),function(e,t){"use strict";t.extend(!0,t.fancybox.defaults,{btnTpl:{slideShow:''},slideShow:{autoStart:!1,speed:3e3,progress:!0}});var n=function(e){this.instance=e,this.init()};t.extend(n.prototype,{timer:null,isActive:!1,$button:null,init:function(){var e=this,n=e.instance,r=n.group[n.currIndex].opts.slideShow;e.$button=n.$refs.toolbar.find("[data-fancybox-play]").on("click",function(){e.toggle()}),n.group.length<2||!r?e.$button.hide():r.progress&&(e.$progress=t('
    ').appendTo(n.$refs.inner))},set:function(e){var n=this,r=n.instance,o=r.current;o&&(!0===e||o.opts.loop||r.currIndex'},fullScreen:{autoStart:!1}}),t(e).on(n.fullscreenchange,function(){var e=r.isFullscreen(),n=t.fancybox.getInstance();n&&(n.current&&"image"===n.current.type&&n.isAnimating&&(n.isAnimating=!1,n.update(!0,!0,0),n.isComplete||n.complete()),n.trigger("onFullscreenChange",e),n.$refs.container.toggleClass("fancybox-is-fullscreen",e),n.$refs.toolbar.find("[data-fancybox-fullscreen]").toggleClass("fancybox-button--fsenter",!e).toggleClass("fancybox-button--fsexit",e))})}t(e).on({"onInit.fb":function(e,t){n?t&&t.group[t.currIndex].opts.fullScreen?(t.$refs.container.on("click.fb-fullscreen","[data-fancybox-fullscreen]",function(e){e.stopPropagation(),e.preventDefault(),r.toggle()}),t.opts.fullScreen&&!0===t.opts.fullScreen.autoStart&&r.request(),t.FullScreen=r):t&&t.$refs.toolbar.find("[data-fancybox-fullscreen]").hide():t.$refs.toolbar.find("[data-fancybox-fullscreen]").remove()},"afterKeydown.fb":function(e,t,n,r,o){t&&t.FullScreen&&70===o&&(r.preventDefault(),t.FullScreen.toggle())},"beforeClose.fb":function(e,t){t&&t.FullScreen&&t.$refs.container.hasClass("fancybox-is-fullscreen")&&r.exit()}})}(document,jQuery),function(e,t){"use strict";var n="fancybox-thumbs";t.fancybox.defaults=t.extend(!0,{btnTpl:{thumbs:''},thumbs:{autoStart:!1,hideOnClose:!0,parentEl:".fancybox-container",axis:"y"}},t.fancybox.defaults);var r=function(e){this.init(e)};t.extend(r.prototype,{$button:null,$grid:null,$list:null,isVisible:!1,isActive:!1,init:function(e){var t=this,n=e.group,r=0;t.instance=e,t.opts=n[e.currIndex].opts.thumbs,e.Thumbs=t,t.$button=e.$refs.toolbar.find("[data-fancybox-thumbs]");for(var o=0,i=n.length;o1));o++);r>1&&t.opts?(t.$button.removeAttr("style").on("click",function(){t.toggle()}),t.isActive=!0):t.$button.hide()},create:function(){var e,r=this,o=r.instance,i=r.opts.parentEl,c=[];r.$grid||(r.$grid=t('
    ').appendTo(o.$refs.container.find(i).addBack().filter(i)),r.$grid.on("click","a",function(){o.jumpTo(t(this).attr("data-index"))})),r.$list||(r.$list=t('
    ').appendTo(r.$grid)),t.each(o.group,function(t,n){(e=n.thumb)||"image"!==n.type||(e=n.src),c.push('")}),r.$list[0].innerHTML=c.join(""),"x"===r.opts.axis&&r.$list.width(parseInt(r.$grid.css("padding-right"),10)+o.group.length*r.$list.children().eq(0).outerWidth(!0))},focus:function(e){var t,n,r=this,o=r.$list,i=r.$grid;r.instance.current&&(n=(t=o.children().removeClass("fancybox-thumbs-active").filter('[data-index="'+r.instance.current.index+'"]').addClass("fancybox-thumbs-active")).position(),"y"===r.opts.axis&&(n.top<0||n.top>o.height()-t.outerHeight())?o.stop().animate({scrollTop:o.scrollTop()+n.top},e):"x"===r.opts.axis&&(n.lefti.scrollLeft()+(i.width()-t.outerWidth()))&&o.parent().stop().animate({scrollLeft:n.left},e))},update:function(){var e=this;e.instance.$refs.container.toggleClass("fancybox-show-thumbs",this.isVisible),e.isVisible?(e.$grid||e.create(),e.instance.trigger("onThumbsShow"),e.focus(0)):e.$grid&&e.instance.trigger("onThumbsHide"),e.instance.update()},hide:function(){this.isVisible=!1,this.update()},show:function(){this.isVisible=!0,this.update()},toggle:function(){this.isVisible=!this.isVisible,this.update()}}),t(e).on({"onInit.fb":function(e,t){var n;t&&!t.Thumbs&&((n=new r(t)).isActive&&!0===n.opts.autoStart&&n.show())},"beforeShow.fb":function(e,t,n,r){var o=t&&t.Thumbs;o&&o.isVisible&&o.focus(r?0:250)},"afterKeydown.fb":function(e,t,n,r,o){var i=t&&t.Thumbs;i&&i.isActive&&71===o&&(r.preventDefault(),i.toggle())},"beforeClose.fb":function(e,t){var n=t&&t.Thumbs;n&&n.isVisible&&!1!==n.opts.hideOnClose&&n.$grid.hide()}})}(document,jQuery),function(e,t){"use strict";t.extend(!0,t.fancybox.defaults,{btnTpl:{share:''},share:{url:function(e,t){return!e.currentHash&&"inline"!==t.type&&"html"!==t.type&&(t.origSrc||t.src)||window.location},tpl:''}}),t(e).on("click","[data-fancybox-share]",function(){var e,n,r=t.fancybox.getInstance(),o=r.current||null;o&&("function"===t.type(o.opts.share.url)&&(e=o.opts.share.url.apply(o,[r,o])),n=o.opts.share.tpl.replace(/\{\{media\}\}/g,"image"===o.type?encodeURIComponent(o.src):"").replace(/\{\{url\}\}/g,encodeURIComponent(e)).replace(/\{\{url_raw\}\}/g,function(e){var t={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/","`":"`","=":"="};return String(e).replace(/[&<>"'`=\/]/g,function(e){return t[e]})}(e)).replace(/\{\{descr\}\}/g,r.$caption?encodeURIComponent(r.$caption.text()):""),t.fancybox.open({src:r.translate(r,n),type:"html",opts:{touch:!1,animationEffect:!1,afterLoad:function(e,t){r.$refs.container.one("beforeClose.fb",function(){e.close(null,0)}),t.$content.find(".fancybox-share__button").click(function(){return window.open(this.href,"Share","width=550, height=450"),!1})},mobile:{autoFocus:!1}}}))})}(document,jQuery),function(e,t,n){"use strict";function r(){var t=e.location.hash.substr(1),n=t.split("-"),r=n.length>1&&/^\+?\d+$/.test(n[n.length-1])&&parseInt(n.pop(-1),10)||1;return{hash:t,index:r<1?1:r,gallery:n.join("-")}}function o(e){""!==e.gallery&&n("[data-fancybox='"+n.escapeSelector(e.gallery)+"']").eq(e.index-1).focus().trigger("click.fb-start")}function i(e){var t,n;return!!e&&(""!==(n=(t=e.current?e.current.opts:e.opts).hash||(t.$orig?t.$orig.data("fancybox")||t.$orig.data("fancybox-trigger"):""))&&n)}n.escapeSelector||(n.escapeSelector=function(e){return(e+"").replace(/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g,function(e,t){return t?"\0"===e?"�":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e})}),n(function(){!1!==n.fancybox.defaults.hash&&(n(t).on({"onInit.fb":function(e,t){var n,o;!1!==t.group[t.currIndex].opts.hash&&(n=r(),(o=i(t))&&n.gallery&&o==n.gallery&&(t.currIndex=n.index-1))},"beforeShow.fb":function(n,r,o,c){var a;o&&!1!==o.opts.hash&&(a=i(r))&&(r.currentHash=a+(r.group.length>1?"-"+(o.index+1):""),e.location.hash!=="#"+r.currentHash&&(c&&!r.origHash&&(r.origHash=e.location.hash),r.hashTimer&&clearTimeout(r.hashTimer),r.hashTimer=setTimeout(function(){"replaceState"in e.history?(e.history[c?"pushState":"replaceState"]({},t.title,e.location.pathname+e.location.search+"#"+r.currentHash),c&&(r.hasCreatedHistory=!0)):e.location.hash=r.currentHash,r.hashTimer=null},300)))},"beforeClose.fb":function(n,r,o){o&&!1!==o.opts.hash&&(clearTimeout(r.hashTimer),r.currentHash&&r.hasCreatedHistory?e.history.back():r.currentHash&&("replaceState"in e.history?e.history.replaceState({},t.title,e.location.pathname+e.location.search+(r.origHash||"")):e.location.hash=r.origHash),r.currentHash=null)}}),n(e).on("hashchange.fb",function(){var e=r(),t=null;n.each(n(".fancybox-container").get().reverse(),function(e,r){var o=n(r).data("FancyBox");if(o&&o.currentHash)return t=o,!1}),t?t.currentHash===e.gallery+"-"+e.index||1===e.index&&t.currentHash==e.gallery||(t.currentHash=null,t.close()):""!==e.gallery&&o(e)}),setTimeout(function(){n.fancybox.getInstance()||o(r())},50))})}(window,document,jQuery),function(e,t){"use strict";var n=(new Date).getTime();t(e).on({"onInit.fb":function(e,t,r){t.$refs.stage.on("mousewheel DOMMouseScroll wheel MozMousePixelScroll",function(e){var r=t.current,o=(new Date).getTime();t.group.length<2||!1===r.opts.wheel||"auto"===r.opts.wheel&&"image"!==r.type||(e.preventDefault(),e.stopPropagation(),r.$slide.hasClass("fancybox-animated")||(e=e.originalEvent||e,o-n<250||(n=o,t[(-e.deltaY||-e.deltaX||e.wheelDelta||-e.detail)<0?"next":"previous"]())))})}})}(document,jQuery),function(e){"function"==typeof define&&define.amd?define(["jquery"],function(t){return e(t,window,document)}):"object"==typeof exports?module.exports=function(t,n){return t||(t=window),n||(n="undefined"!=typeof window?require("jquery"):require("jquery")(t)),e(n,t,t.document)}:e(jQuery,window,document)}(function(e,t,n,r){function o(t){var n,r,i={};e.each(t,function(e){(n=e.match(/^([^A-Z]+?)([A-Z])/))&&-1!=="a aa ai ao as b fn i m o s ".indexOf(n[1]+" ")&&(r=e.replace(n[0],n[2].toLowerCase()),i[r]=e,"o"===n[1]&&o(t[e]))}),t._hungarianMap=i}function i(t,n,c){var a;t._hungarianMap||o(t),e.each(n,function(o){(a=t._hungarianMap[o])===r||!c&&n[a]!==r||("o"===a.charAt(0)?(n[a]||(n[a]={}),e.extend(!0,n[a],n[o]),i(t[a],n[a],c)):n[a]=n[o])})}function c(e){var t=We.defaults.oLanguage,n=t.sDecimal;if(n&&Be(n),e){var r=e.sZeroRecords;!e.sEmptyTable&&r&&"No data available in table"===t.sEmptyTable&&Ae(e,e,"sZeroRecords","sEmptyTable"),!e.sLoadingRecords&&r&&"Loading..."===t.sLoadingRecords&&Ae(e,e,"sZeroRecords","sLoadingRecords"),e.sInfoThousands&&(e.sThousands=e.sInfoThousands),(e=e.sDecimal)&&n!==e&&Be(e)}}function a(e){if(lt(e,"ordering","bSort"),lt(e,"orderMulti","bSortMulti"),lt(e,"orderClasses","bSortClasses"),lt(e,"orderCellsTop","bSortCellsTop"),lt(e,"order","aaSorting"),lt(e,"orderFixed","aaSortingFixed"),lt(e,"paging","bPaginate"),lt(e,"pagingType","sPaginationType"),lt(e,"pageLength","iDisplayLength"),lt(e,"searching","bFilter"),"boolean"==typeof e.sScrollX&&(e.sScrollX=e.sScrollX?"100%":""),"boolean"==typeof e.scrollX&&(e.scrollX=e.scrollX?"100%":""),e=e.aoSearchCols)for(var t=0,n=e.length;t").css({position:"fixed",top:0,left:-1*e(t).scrollLeft(),height:1,width:1,overflow:"hidden"}).append(e("
    ").css({position:"absolute",top:1,left:1,width:100,overflow:"scroll"}).append(e("
    ").css({width:"100%",height:10}))).appendTo("body"),i=o.children(),c=i.children();r.barWidth=i[0].offsetWidth-i[0].clientWidth,r.bScrollOversize=100===c[0].offsetWidth&&100!==i[0].clientWidth,r.bScrollbarLeft=1!==Math.round(c.offset().left),r.bBounding=!!o[0].getBoundingClientRect().width,o.remove()}e.extend(n.oBrowser,We.__browser),n.oScroll.iBarWidth=We.__browser.barWidth}function u(e,t,n,o,i,c){var a,s=!1;for(n!==r&&(a=n,s=!0);o!==i;)e.hasOwnProperty(o)&&(a=s?t(a,e[o],o,e):e[o],s=!0,o+=c);return a}function h(t,r){var o=We.defaults.column,i=t.aoColumns.length;o=e.extend({},We.models.oColumn,o,{nTh:r||n.createElement("th"),sTitle:o.sTitle?o.sTitle:r?r.innerHTML:"",aDataSort:o.aDataSort?o.aDataSort:[i],mData:o.mData?o.mData:i,idx:i});t.aoColumns.push(o),(o=t.aoPreSearchCols)[i]=e.extend({},We.models.oSearch,o[i]),f(t,i,e(r).data())}function f(t,n,o){n=t.aoColumns[n];var c=t.oClasses,a=e(n.nTh);if(!n.sWidthOrig){n.sWidthOrig=a.attr("width")||null;var l=(a.attr("style")||"").match(/width:\s*(\d+[pxem%]+)/);l&&(n.sWidthOrig=l[1])}o!==r&&null!==o&&(s(o),i(We.defaults.column,o),o.mDataProp!==r&&!o.mData&&(o.mData=o.mDataProp),o.sType&&(n._sManualType=o.sType),o.className&&!o.sClass&&(o.sClass=o.className),o.sClass&&a.addClass(o.sClass),e.extend(n,o),Ae(n,o,"sWidth","sWidthOrig"),o.iDataSort!==r&&(n.aDataSort=[o.iDataSort]),Ae(n,o,"aDataSort"));var u=n.mData,h=x(u),f=n.mRender?x(n.mRender):null;o=function(e){return"string"==typeof e&&-1!==e.indexOf("@")};n._bAttrSrc=e.isPlainObject(u)&&(o(u.sort)||o(u.type)||o(u.filter)),n._setter=null,n.fnGetData=function(e,t,n){var o=h(e,t,r,n);return f&&t?f(o,t,e,n):o},n.fnSetData=function(e,t,n){return H(u)(e,t,n)},"number"!=typeof u&&(t._rowReadObject=!0),t.oFeatures.bSort||(n.bSortable=!1,a.addClass(c.sSortableNone)),t=-1!==e.inArray("asc",n.asSorting),o=-1!==e.inArray("desc",n.asSorting),n.bSortable&&(t||o)?t&&!o?(n.sSortingClass=c.sSortableAsc,n.sSortingClassJUI=c.sSortJUIAscAllowed):!t&&o?(n.sSortingClass=c.sSortableDesc,n.sSortingClassJUI=c.sSortJUIDescAllowed):(n.sSortingClass=c.sSortable,n.sSortingClassJUI=c.sSortJUI):(n.sSortingClass=c.sSortableNone,n.sSortingClassJUI="")}function d(e){if(!1!==e.oFeatures.bAutoWidth){var t=e.aoColumns;ve(e);for(var n=0,r=t.length;nm[a])i(d.length+m[a],f);else if("string"==typeof m[a])for(l=0,u=d.length;lt&&e[i]--;-1!=o&&n===r&&e.splice(o,1)}function k(e,t,n,o){var i,c=e.aoData[t],a=function(n,r){for(;n.childNodes.length;)n.removeChild(n.firstChild);n.innerHTML=M(e,t,r,"display")};if("dom"!==n&&(n&&"auto"!==n||"dom"!==c.src)){var s=c.anCells;if(s)if(o!==r)a(s[o],o);else for(n=0,i=s.length;n").appendTo(a)),n=0,r=h.length;ntr").attr("role","row"),e(a).find(">tr>th, >tr>td").addClass(u.sHeaderTH),e(s).find(">tr>th, >tr>td").addClass(u.sFooterTH),null!==s)for(n=0,r=(t=t.aoFooter[0]).length;n=t.fnRecordsDisplay()?0:s,t.iInitDisplayStart=-1);s=t._iDisplayStart;var h=t.fnDisplayEnd();if(t.bDeferLoading)t.bDeferLoading=!1,t.iDraw++,he(t,!1);else if(l){if(!t.bDestroying&&!F(t))return}else t.iDraw++;if(0!==u.length)for(a=l?t.aoData.length:h,l=l?0:s;l",{class:c?i[0]:""}).append(e("",{valign:"top",colSpan:p(t),class:t.oClasses.sRowEmpty}).html(o))[0];Ne(t,"aoHeaderCallback","header",[e(t.nTHead).children("tr")[0],S(t),s,h,u]),Ne(t,"aoFooterCallback","footer",[e(t.nTFoot).children("tr")[0],S(t),s,h,u]),(i=e(t.nTBody)).children().detach(),i.append(e(n)),Ne(t,"aoDrawCallback","draw",[t]),t.bSorted=!1,t.bFiltered=!1,t.bDrawing=!1}}function I(e,t){var n=e.oFeatures,r=n.bFilter;n.bSort&&Ce(e),r?Y(e,e.oPreviousSearch):e.aiDisplay=e.aiDisplayMaster.slice(),!0!==t&&(e._iDisplayStart=0),e._drawHold=t,O(e),e._drawHold=!1}function P(t){var n=t.oClasses,r=e(t.nTable),o=(r=e("
    ").insertBefore(r),t.oFeatures),i=e("
    ",{id:t.sTableId+"_wrapper",class:n.sWrapper+(t.nTFoot?"":" "+n.sNoFooter)});t.nHolding=r[0],t.nTableWrapper=i[0],t.nTableReinsertBefore=t.nTable.nextSibling;for(var c,a,s,l,u,h,f=t.sDom.split(""),d=0;d")[0],"'"==(l=f[d+1])||'"'==l){for(u="",h=2;f[d+h]!=l;)u+=f[d+h],h++;"H"==u?u=n.sJUIHeader:"F"==u&&(u=n.sJUIFooter),-1!=u.indexOf(".")?(l=u.split("."),s.id=l[0].substr(1,l[0].length-1),s.className=l[1]):"#"==u.charAt(0)?s.id=u.substr(1,u.length-1):s.className=u,d+=h}i.append(s),i=e(s)}else if(">"==a)i=i.parent();else if("l"==a&&o.bPaginate&&o.bLengthChange)c=ae(t);else if("f"==a&&o.bFilter)c=W(t);else if("r"==a&&o.bProcessing)c=ue(t);else if("t"==a)c=fe(t);else if("i"==a&&o.bInfo)c=te(t);else if("p"==a&&o.bPaginate)c=se(t);else if(0!==We.ext.feature.length)for(h=0,l=(s=We.ext.feature).length;h',l=(l=i.sSearch).match(/_INPUT_/)?l.replace("_INPUT_",s):l+s,u=(r=e("
    ",{id:a.f?null:o+"_filter",class:r.sFilter}).append(e("
    ").addClass(n.sLength);return t.aanFeatures.l||(l[0].id=r+"_length"),l.children().append(t.oLanguage.sLengthMenu.replace("_MENU_",c[0].outerHTML)),e("select",l).val(t._iDisplayLength).on("change.DT",function(){ce(t,e(this).val()),O(t)}),e(t.nTable).on("length.dt.DT",function(n,r,o){t===r&&e("select",l).val(o)}),l[0]}function se(t){var n=t.sPaginationType,r=We.ext.pager[n],o="function"==typeof r,i=function(e){O(e)},c=(n=e("
    ").addClass(t.oClasses.sPaging+n)[0],t.aanFeatures);return o||r.fnInit(t,n,i),c.p||(n.id=t.sTableId+"_paginate",t.aoDrawCallback.push({fn:function(e){if(o){var t,n=e._iDisplayStart,a=e._iDisplayLength,s=e.fnRecordsDisplay(),l=(n=(l=-1===a)?0:Math.ceil(n/a),a=l?1:Math.ceil(s/a),s=r(n,a),0);for(t=c.p.length;li&&(r=0):"first"==t?r=0:"previous"==t?0>(r=0<=o?r-o:0)&&(r=0):"next"==t?r+o",{id:t.aanFeatures.r?null:t.sTableId+"_processing",class:t.oClasses.sProcessing}).html(t.oLanguage.sProcessing).insertBefore(t.nTable)[0]}function he(t,n){t.oFeatures.bProcessing&&e(t.aanFeatures.r).css("display",n?"block":"none"),Ne(t,null,"processing",[t,n])}function fe(t){(h=e(t.nTable)).attr("role","grid");var n=t.oScroll;if(""===n.sX&&""===n.sY)return t.nTable;var r=n.sX,o=n.sY,i=t.oClasses,c=h.children("caption"),a=c.length?c[0]._captionSide:null,s=e(h[0].cloneNode(!1)),l=e(h[0].cloneNode(!1)),u=h.children("tfoot");u.length||(u=null),s=e("
    ",{class:i.sScrollWrapper}).append(e("
    ",{class:i.sScrollHead}).css({overflow:"hidden",position:"relative",border:0,width:r?r?ze(r):null:"100%"}).append(e("
    ",{class:i.sScrollHeadInner}).css({"box-sizing":"content-box",width:n.sXInner||"100%"}).append(s.removeAttr("id").css("margin-left",0).append("top"===a?c:null).append(h.children("thead"))))).append(e("
    ",{class:i.sScrollBody}).css({position:"relative",overflow:"auto",width:r?ze(r):null}).append(h)),u&&s.append(e("
    ",{class:i.sScrollFoot}).css({overflow:"hidden",border:0,width:r?r?ze(r):null:"100%"}).append(e("
    ",{class:i.sScrollFootInner}).append(l.removeAttr("id").css("margin-left",0).append("bottom"===a?c:null).append(h.children("tfoot")))));var h,f=(h=s.children())[0],d=(i=h[1],u?h[2]:null);return r&&e(i).on("scroll.DT",function(){var e=this.scrollLeft;f.scrollLeft=e,u&&(d.scrollLeft=e)}),e(i).css(o&&n.bCollapse?"max-height":"height",o),t.nScrollHead=f,t.nScrollBody=i,t.nScrollFoot=d,t.aoDrawCallback.push({fn:de,sName:"scrolling"}),s[0]}function de(t){var n,o,i,c,a,s=(h=t.oScroll).sX,l=h.sXInner,u=h.sY,h=h.iBarWidth,f=e(t.nScrollHead),v=f[0].style,p=(b=f.children("div"))[0].style,g=b.children("table"),b=t.nScrollBody,z=e(b),y=b.style,C=e(t.nScrollFoot).children("div"),M=C.children("table"),w=e(t.nTHead),_=e(t.nTable),x=_[0],H=x.style,S=t.nTFoot?e(t.nTFoot):null,L=t.oBrowser,V=L.bScrollOversize,k=ot(t.aoColumns,"nTh"),A=[],T=[],E=[],D=[],N=function(e){(e=e.style).paddingTop="0",e.paddingBottom="0",e.borderTopWidth="0",e.borderBottomWidth="0",e.height=0};o=b.scrollHeight>b.clientHeight,t.scrollBarVis!==o&&t.scrollBarVis!==r?(t.scrollBarVis=o,d(t)):(t.scrollBarVis=o,_.children("thead, tfoot").remove(),S&&(i=S.clone().prependTo(_),n=S.find("tr"),i=i.find("tr")),c=w.clone().prependTo(_),w=w.find("tr"),o=c.find("tr"),c.find("th, td").removeAttr("tabindex"),s||(y.width="100%",f[0].style.width="100%"),e.each(B(t,c),function(e,n){a=m(t,e),n.style.width=t.aoColumns[a].sWidth}),S&&me(function(e){e.style.width=""},i),f=_.outerWidth(),""===s?(H.width="100%",V&&(_.find("tbody").height()>b.offsetHeight||"scroll"==z.css("overflow-y"))&&(H.width=ze(_.outerWidth()-h)),f=_.outerWidth()):""!==l&&(H.width=ze(l),f=_.outerWidth()),me(N,o),me(function(t){E.push(t.innerHTML),A.push(ze(e(t).css("width")))},o),me(function(t,n){-1!==e.inArray(t,k)&&(t.style.width=A[n])},w),e(o).height(0),S&&(me(N,i),me(function(t){D.push(t.innerHTML),T.push(ze(e(t).css("width")))},i),me(function(e,t){e.style.width=T[t]},n),e(i).height(0)),me(function(e,t){e.innerHTML='
    '+E[t]+"
    ",e.childNodes[0].style.height="0",e.childNodes[0].style.overflow="hidden",e.style.width=A[t]},o),S&&me(function(e,t){e.innerHTML='
    '+D[t]+"
    ",e.childNodes[0].style.height="0",e.childNodes[0].style.overflow="hidden",e.style.width=T[t]},i),_.outerWidth()b.offsetHeight||"scroll"==z.css("overflow-y")?f+h:f,V&&(b.scrollHeight>b.offsetHeight||"scroll"==z.css("overflow-y"))&&(H.width=ze(n-h)),(""===s||""!==l)&&ke(t,1,"Possible column misalignment",6)):n="100%",y.width=ze(n),v.width=ze(n),S&&(t.nScrollFoot.style.width=ze(n)),!u&&V&&(y.height=ze(x.offsetHeight+h)),s=_.outerWidth(),g[0].style.width=ze(s),p.width=ze(s),l=_.height()>b.clientHeight||"scroll"==z.css("overflow-y"),p[u="padding"+(L.bScrollbarLeft?"Left":"Right")]=l?h+"px":"0px",S&&(M[0].style.width=ze(s),C[0].style.width=ze(s),C[0].style[u]=l?h+"px":"0px"),_.children("colgroup").insertBefore(_.children("thead")),z.scroll(),!t.bSorted&&!t.bFiltered||t._drawHold||(b.scrollTop=0))}function me(e,t,n){for(var r,o,i=0,c=0,a=t.length;c").appendTo(u.find("tbody"));for(u.find("thead, tfoot").remove(),u.append(e(n.nTHead).clone()).append(e(n.nTFoot).clone()),u.find("tfoot th, tfoot td").css("width",""),f=B(n,u.find("thead")[0]),r=0;r").css({width:o.sWidthOrig,margin:0,padding:0,border:0,height:1}));if(n.aoData.length)for(r=0;r").css(s||a?{position:"absolute",top:0,left:0,height:1,right:0,overflow:"hidden"}:{}).append(u).appendTo(b),s&&l?u.width(l):s?(u.css("width","auto"),u.removeAttr("width"),u.width()").css("width",ze(t)).appendTo(r||n.body),i=o[0].offsetWidth;return o.remove(),i}function ge(t,n){var r=be(t,n);if(0>r)return null;var o=t.aoData[r];return o.nTr?o.anCells[n]:e("").html(M(t,r,n,"display"))[0]}function be(e,t){for(var n,r=-1,o=-1,i=0,c=e.aoData.length;ir&&(r=n.length,o=i);return o}function ze(e){return null===e?"0px":"number"==typeof e?0>e?"0px":e+"px":e.match(/\d$/)?e+"px":e}function ye(t){var n,o,i,c,a,s,l=[],u=t.aoColumns;n=t.aaSortingFixed,o=e.isPlainObject(n);var h=[];for(i=function(t){t.length&&!e.isArray(t[0])?h.push(t):e.merge(h,t)},e.isArray(n)&&i(n),o&&n.pre&&i(n.pre),i(t.aaSorting),o&&n.post&&i(n.post),t=0;tr?1:0))return"asc"===s.dir?n:-n;return(n=i[e])<(r=i[t])?-1:n>r?1:0}):l.sort(function(e,t){var n,r,s,l,u=o.length,h=a[e]._aSortData,f=a[t]._aSortData;for(s=0;sr?1:0})}e.bSorted=!0}function Me(e){for(var t,n,r=e.aoColumns,o=ye(e),i=(e=e.oLanguage.oAria,0),c=r.length;i/g,"");var s=n.nTh;s.removeAttribute("aria-sort"),n.bSortable&&(0a?a+1:3));for(a=0,n=c.length;aa?a+1:3))}t.aLastSort=c}function He(e,t){var n,r=e.aoColumns[t],o=We.ext.order[r.sSortDataType];o&&(n=o.call(e.oInstance,e,t,v(e,t)));for(var i,c=We.ext.type.order[r.sType+"-pre"],a=0,s=e.aoData.length;a=a.length?[0,n[1]]:n)})),n.search!==r&&e.extend(t.oPreviousSearch,ee(n.search)),n.columns)for(i=0,c=n.columns.length;i=n&&(t=n-r),t-=t%r,(-1===r||0>t)&&(t=0),e._iDisplayStart=t}function Ie(t,n){var r=t.renderer,o=We.ext.renderer[n];return e.isPlainObject(r)&&r[n]?o[r[n]]||o._:"string"==typeof r&&o[r]||o._}function Pe(e){return e.oFeatures.bServerSide?"ssp":e.ajax||e.sAjaxSource?"ajax":"dom"}function Re(e,t){var n=[],r=(n=Lt.numbers_length,Math.floor(n/2));return t<=n?n=ct(0,t):e<=r?((n=ct(0,n-2)).push("ellipsis"),n.push(t-1)):(e>=t-1-r?n=ct(t-(n-2),t):((n=ct(e-r+2,e+r-1)).push("ellipsis"),n.push(t-1)),n.splice(0,0,"ellipsis"),n.splice(0,0,0)),n.DT_el="span",n}function Be(t){e.each({num:function(e){return Vt(e,t)},"num-fmt":function(e){return Vt(e,t,Ke)},"html-num":function(e){return Vt(e,t,Ge)},"html-num-fmt":function(e){return Vt(e,t,Ge,Ke)}},function(e,n){Fe.type.order[e+t+"-pre"]=n,e.match(/^html\-/)&&(Fe.type.search[e+t]=Fe.type.search.html)})}function je(e){return function(){var t=[Ve(this[We.ext.iApiIndex])].concat(Array.prototype.slice.call(arguments));return We.ext.internal[e].apply(this,t)}}var Fe,$e,qe,Ue,We=function(t){this.$=function(e,t){return this.api(!0).$(e,t)},this._=function(e,t){return this.api(!0).rows(e,t).data()},this.api=function(e){return new $e(e?Ve(this[Fe.iApiIndex]):this)},this.fnAddData=function(t,n){var o=this.api(!0),i=e.isArray(t)&&(e.isArray(t[0])||e.isPlainObject(t[0]))?o.rows.add(t):o.row.add(t);return(n===r||n)&&o.draw(),i.flatten().toArray()},this.fnAdjustColumnSizing=function(e){var t=this.api(!0).columns.adjust(),n=t.settings()[0],o=n.oScroll;e===r||e?t.draw(!1):(""!==o.sX||""!==o.sY)&&de(n)},this.fnClearTable=function(e){var t=this.api(!0).clear();(e===r||e)&&t.draw()},this.fnClose=function(e){this.api(!0).row(e).child.hide()},this.fnDeleteRow=function(e,t,n){var o=this.api(!0),i=(e=o.rows(e)).settings()[0],c=i.aoData[e[0][0]];return e.remove(),t&&t.call(this,i,c),(n===r||n)&&o.draw(),c},this.fnDestroy=function(e){this.api(!0).destroy(e)},this.fnDraw=function(e){this.api(!0).draw(e)},this.fnFilter=function(e,t,n,o,i,c){i=this.api(!0),null===t||t===r?i.search(e,n,o,c):i.column(t).search(e,n,o,c),i.draw()},this.fnGetData=function(e,t){var n=this.api(!0);if(e!==r){var o=e.nodeName?e.nodeName.toLowerCase():"";return t!==r||"td"==o||"th"==o?n.cell(e,t).data():n.row(e).data()||null}return n.data().toArray()},this.fnGetNodes=function(e){var t=this.api(!0);return e!==r?t.row(e).node():t.rows().nodes().flatten().toArray()},this.fnGetPosition=function(e){var t=this.api(!0),n=e.nodeName.toUpperCase();return"TR"==n?t.row(e).index():"TD"==n||"TH"==n?[(e=t.cell(e).index()).row,e.columnVisible,e.column]:null},this.fnIsOpen=function(e){return this.api(!0).row(e).child.isShown()},this.fnOpen=function(e,t,n){return this.api(!0).row(e).child(t,n).show().child()[0]},this.fnPageChange=function(e,t){var n=this.api(!0).page(e);(t===r||t)&&n.draw(!1)},this.fnSetColumnVis=function(e,t,n){e=this.api(!0).column(e).visible(t),(n===r||n)&&e.columns.adjust().draw()},this.fnSettings=function(){return Ve(this[Fe.iApiIndex])},this.fnSort=function(e){this.api(!0).order(e).draw()},this.fnSortListener=function(e,t,n){this.api(!0).order.listener(e,t,n)},this.fnUpdate=function(e,t,n,o,i){var c=this.api(!0);return n===r||null===n?c.row(t).data(e):c.cell(t,n).data(e),(i===r||i)&&c.columns.adjust(),(o===r||o)&&c.draw(),0},this.fnVersionCheck=Fe.fnVersionCheck;var n=this,o=t===r,u=this.length;for(var d in o&&(t={}),this.oApi=this.internal=Fe.internal,We.ext.internal)d&&(this[d]=je(d));return this.each(function(){var d,m={},v=1").appendTo(M)),S.nTHead=n[0],0===(n=M.children("tbody")).length&&(n=e("").appendTo(M)),S.nTBody=n[0],0===(n=M.children("tfoot")).length&&t.length>0&&(""!==S.oScroll.sX||""!==S.oScroll.sY)&&(n=e("").appendTo(M)),0===n.length||0===n.children().length?M.addClass(L.sNoFooter):n.length>0&&(S.nTFoot=n[0],R(S.aoFooter,S.nTFoot)),v.aaData)for(p=0;p/g,Qe=/^\d{2,4}[\.\/\-]\d{1,2}[\.\/\-]\d{1,2}([T ]{1}\d{1,2}[:\.]\d{2}([\.:]\d{2})?)?$/,Ze=RegExp("(\\/|\\.|\\*|\\+|\\?|\\||\\(|\\)|\\[|\\]|\\{|\\}|\\\\|\\$|\\^|\\-)","g"),Ke=/[',$£€¥%\u2009\u202F\u20BD\u20a9\u20BArfkɃΞ]/gi,Je=function(e){return!e||!0===e||"-"===e},et=function(e){var t=parseInt(e,10);return!isNaN(t)&&isFinite(e)?t:null},tt=function(e,t){return Ye[t]||(Ye[t]=RegExp(ft(t),"g")),"string"==typeof e&&"."!==t?e.replace(/\./g,"").replace(Ye[t],"."):e},nt=function(e,t,n){var r="string"==typeof e;return!!Je(e)||(t&&r&&(e=tt(e,t)),n&&r&&(e=e.replace(Ke,"")),!isNaN(parseFloat(e))&&isFinite(e))},rt=function(e,t,n){return!!Je(e)||((Je(e)||"string"==typeof e)&&!!nt(e.replace(Ge,""),t,n)||null)},ot=function(e,t,n){var o=[],i=0,c=e.length;if(n!==r)for(;ie.length))for(var n=(t=e.slice().sort())[0],r=1,o=t.length;r")[0],mt=dt.textContent!==r,vt=/<.*?>/g,pt=We.util.throttle,gt=[],bt=Array.prototype;$e=function(t,n){if(!(this instanceof $e))return new $e(t,n);var r=[],o=function(t){(t=function(t){var n,r,o=We.settings,i=e.map(o,function(e){return e.nTable});return t?t.nTable&&t.oApi?[t]:t.nodeName&&"table"===t.nodeName.toLowerCase()?-1!==(n=e.inArray(t,i))?[o[n]]:null:t&&"function"==typeof t.settings?t.settings().toArray():("string"==typeof t?r=e(t):t instanceof e&&(r=t),r?r.map(function(){return-1!==(n=e.inArray(this,i))?o[n]:null}).toArray():void 0):[]}(t))&&(r=r.concat(t))};if(e.isArray(t))for(var i=0,c=t.length;ie?new $e(t[e],this[e]):null},filter:function(e){var t=[];if(bt.filter)t=bt.filter.call(this,e,this);else for(var n=0,r=this.length;n").addClass(n),e("td",r).addClass(n).html(t)[0].colSpan=p(i),c.push(r[0]))};a(t,n),o._details&&o._details.detach(),o._details=e(c),o._detailsShow&&o._details.insertAfter(o.nTr)}return this}),qe(["row().child.show()","row().child().show()"],function(){return xt(this,!0),this}),qe(["row().child.hide()","row().child().hide()"],function(){return xt(this,!1),this}),qe(["row().child.remove()","row().child().remove()"],function(){return _t(this),this}),qe("row().child.isShown()",function(){var e=this.context;return e.length&&this.length&&e[0].aoData[this[0]]._detailsShow||!1});var Ht=/^([^:]+):(name|visIdx|visible)$/,St=function(e,t,n,r,o){n=[],r=0;for(var i=o.length;r=0?n:c.length+n];if("function"==typeof t){var o=wt(r,i);return e.map(c,function(e,n){return t(n,St(r,n,0,0,o),s[n])?n:null})}var l="string"==typeof t?t.match(Ht):"";if(l)switch(l[2]){case"visIdx":case"visible":if((n=parseInt(l[1],10))<0){var u=e.map(c,function(e,t){return e.bVisible?t:null});return[u[u.length+n]]}return[m(r,n)];case"name":return e.map(a,function(e,t){return e===l[1]?t:null});default:return[]}return t.nodeName&&t._DT_CellIndex?[t._DT_CellIndex.column]:(n=e(s).filter(t).map(function(){return e.inArray(this,s)}).toArray()).length||!t.nodeName?n:(n=e(t).closest("*[data-dt-column]")).length?[n.data("dt-column")]:[]},r,i)},1);return o.selector.cols=t,o.selector.opts=n,o}),Ue("columns().header()","column().header()",function(){return this.iterator("column",function(e,t){return e.aoColumns[t].nTh},1)}),Ue("columns().footer()","column().footer()",function(){return this.iterator("column",function(e,t){return e.aoColumns[t].nTf},1)}),Ue("columns().data()","column().data()",function(){return this.iterator("column-rows",St,1)}),Ue("columns().dataSrc()","column().dataSrc()",function(){return this.iterator("column",function(e,t){return e.aoColumns[t].mData},1)}),Ue("columns().cache()","column().cache()",function(e){return this.iterator("column-rows",function(t,n,r,o,i){return it(t.aoData,i,"search"===e?"_aFilterData":"_aSortData",n)},1)}),Ue("columns().nodes()","column().nodes()",function(){return this.iterator("column-rows",function(e,t,n,r,o){return it(e.aoData,o,"anCells",t)},1)}),Ue("columns().visible()","column().visible()",function(t,n){var o=this.iterator("column",function(n,o){if(t===r)return n.aoColumns[o].bVisible;var i,c,a,s=n.aoColumns,l=s[o],u=n.aoData;if(t!==r&&l.bVisible!==t){if(t){var h=e.inArray(!0,ot(s,"bVisible"),o+1);for(i=0,c=u.length;in;return!0},We.isDataTable=We.fnIsDataTable=function(t){var n=e(t).get(0),r=!1;return t instanceof We.Api||(e.each(We.settings,function(t,o){var i=o.nScrollHead?e("table",o.nScrollHead)[0]:null,c=o.nScrollFoot?e("table",o.nScrollFoot)[0]:null;o.nTable!==n&&i!==n&&c!==n||(r=!0)}),r)},We.tables=We.fnTables=function(t){var n=!1;e.isPlainObject(t)&&(n=t.api,t=t.visible);var r=e.map(We.settings,function(n){if(!t||t&&e(n.nTable).is(":visible"))return n.nTable});return n?new $e(r):r},We.camelToHungarian=i,qe("$()",function(t,n){var r=this.rows(n).nodes();r=e(r);return e([].concat(r.filter(t).toArray(),r.find(t).toArray()))}),e.each(["on","one","off"],function(t,n){qe(n+"()",function(){var t=Array.prototype.slice.call(arguments);t[0]=e.map(t[0].split(/\s/),function(e){return e.match(/\.dt\b/)?e:e+".dt"}).join(" ");var r=e(this.tables().nodes());return r[n].apply(r,t),this})}),qe("clear()",function(){return this.iterator("table",function(e){L(e)})}),qe("settings()",function(){return new $e(this.context,this.context)}),qe("init()",function(){var e=this.context;return e.length?e[0].oInit:null}),qe("data()",function(){return this.iterator("table",function(e){return ot(e.aoData,"_aData")}).flatten()}),qe("destroy()",function(n){return n=n||!1,this.iterator("table",function(r){var o,i=r.nTableWrapper.parentNode,c=r.oClasses,a=r.nTable,s=r.nTBody,l=r.nTHead,u=r.nTFoot,h=e(a),f=(s=e(s),e(r.nTableWrapper)),d=e.map(r.aoData,function(e){return e.nTr});r.bDestroying=!0,Ne(r,"aoDestroyCallback","destroy",[r]),n||new $e(r).columns().visible(!0),f.off(".DT").find(":not(tbody *)").off(".DT"),e(t).off(".DT-"+r.sInstance),a!=l.parentNode&&(h.children("thead").detach(),h.append(l)),u&&a!=u.parentNode&&(h.children("tfoot").detach(),h.append(u)),r.aaSorting=[],r.aaSortingFixed=[],xe(r),e(d).removeClass(r.asStripeClasses.join(" ")),e("th, td",l).removeClass(c.sSortable+" "+c.sSortableAsc+" "+c.sSortableDesc+" "+c.sSortableNone),s.children().detach(),s.append(d),h[l=n?"remove":"detach"](),f[l](),!n&&i&&(i.insertBefore(a,r.nTableReinsertBefore),h.css("width",r.sDestroyWidth).removeClass(c.sTable),(o=r.asDestroyStripes.length)&&s.children().each(function(t){e(this).addClass(r.asDestroyStripes[t%o])})),-1!==(i=e.inArray(r,We.settings))&&We.settings.splice(i,1)})}),e.each(["column","row","cell"],function(e,t){qe(t+"s().every()",function(e){var n=this.selector.opts,o=this;return this.iterator(t,function(i,c,a,s,l){e.call(o[t](c,"cell"===t?a:n,"cell"===t?n:r),c,a,s,l)})})}),qe("i18n()",function(t,n,o){var i=this.context[0];return(t=x(t)(i.oLanguage))===r&&(t=n),o!==r&&e.isPlainObject(t)&&(t=t[o]!==r?t[o]:t._),t.replace("%d",o)}),We.version="1.10.18",We.settings=[],We.models={},We.models.oSearch={bCaseInsensitive:!0,sSearch:"",bRegex:!1,bSmart:!0},We.models.oRow={nTr:null,anCells:null,_aData:[],_aSortData:null,_aFilterData:null,_sFilterRow:null,_sRowStripe:"",src:null,idx:-1},We.models.oColumn={idx:null,aDataSort:null,asSorting:null,bSearchable:null,bSortable:null,bVisible:null,_sManualType:null,_bAttrSrc:!1,fnCreatedCell:null,fnGetData:null,fnSetData:null,mData:null,mRender:null,nTh:null,nTf:null,sClass:null,sContentPadding:null,sDefaultContent:null,sName:null,sSortDataType:"std",sSortingClass:null,sSortingClassJUI:null,sTitle:null,sType:null,sWidth:null,sWidthOrig:null},We.defaults={aaData:null,aaSorting:[[0,"asc"]],aaSortingFixed:[],ajax:null,aLengthMenu:[10,25,50,100],aoColumns:null,aoColumnDefs:null,aoSearchCols:[],asStripeClasses:null,bAutoWidth:!0,bDeferRender:!1,bDestroy:!1,bFilter:!0,bInfo:!0,bLengthChange:!0,bPaginate:!0,bProcessing:!1,bRetrieve:!1,bScrollCollapse:!1,bServerSide:!1,bSort:!0,bSortMulti:!0,bSortCellsTop:!1,bSortClasses:!0,bStateSave:!1,fnCreatedRow:null,fnDrawCallback:null,fnFooterCallback:null,fnFormatNumber:function(e){return e.toString().replace(/\B(?=(\d{3})+(?!\d))/g,this.oLanguage.sThousands)},fnHeaderCallback:null,fnInfoCallback:null,fnInitComplete:null,fnPreDrawCallback:null,fnRowCallback:null,fnServerData:null,fnServerParams:null,fnStateLoadCallback:function(e){try{return JSON.parse((-1===e.iStateDuration?sessionStorage:localStorage).getItem("DataTables_"+e.sInstance+"_"+location.pathname))}catch(e){}},fnStateLoadParams:null,fnStateLoaded:null,fnStateSaveCallback:function(e,t){try{(-1===e.iStateDuration?sessionStorage:localStorage).setItem("DataTables_"+e.sInstance+"_"+location.pathname,JSON.stringify(t))}catch(e){}},fnStateSaveParams:null,iStateDuration:7200,iDeferLoading:null,iDisplayLength:10,iDisplayStart:0,iTabIndex:0,oClasses:{},oLanguage:{oAria:{sSortAscending:": activate to sort column ascending",sSortDescending:": activate to sort column descending"},oPaginate:{sFirst:"First",sLast:"Last",sNext:"Next",sPrevious:"Previous"},sEmptyTable:"No data available in table",sInfo:"Showing _START_ to _END_ of _TOTAL_ entries",sInfoEmpty:"Showing 0 to 0 of 0 entries",sInfoFiltered:"(filtered from _MAX_ total entries)",sInfoPostFix:"",sDecimal:"",sThousands:",",sLengthMenu:"Show _MENU_ entries",sLoadingRecords:"Loading...",sProcessing:"Processing...",sSearch:"Search:",sSearchPlaceholder:"",sUrl:"",sZeroRecords:"No matching records found"},oSearch:e.extend({},We.models.oSearch),sAjaxDataProp:"data",sAjaxSource:null,sDom:"lfrtip",searchDelay:null,sPaginationType:"simple_numbers",sScrollX:"",sScrollXInner:"",sScrollY:"",sServerMethod:"GET",renderer:null,rowId:"DT_RowId"},o(We.defaults),We.defaults.column={aDataSort:null,iDataSort:-1,asSorting:["asc","desc"],bSearchable:!0,bSortable:!0,bVisible:!0,fnCreatedCell:null,mData:null,mRender:null,sCellType:"td",sClass:"",sContentPadding:"",sDefaultContent:null,sName:"",sSortDataType:"std",sTitle:null,sType:null,sWidth:null},o(We.defaults.column),We.models.oSettings={oFeatures:{bAutoWidth:null,bDeferRender:null,bFilter:null,bInfo:null,bLengthChange:null,bPaginate:null,bProcessing:null,bServerSide:null,bSort:null,bSortMulti:null,bSortClasses:null,bStateSave:null},oScroll:{bCollapse:null,iBarWidth:0,sX:null,sXInner:null,sY:null},oLanguage:{fnInfoCallback:null},oBrowser:{bScrollOversize:!1,bScrollbarLeft:!1,bBounding:!1,barWidth:0},ajax:null,aanFeatures:[],aoData:[],aiDisplay:[],aiDisplayMaster:[],aIds:{},aoColumns:[],aoHeader:[],aoFooter:[],oPreviousSearch:{},aoPreSearchCols:[],aaSorting:null,aaSortingFixed:[],asStripeClasses:null,asDestroyStripes:[],sDestroyWidth:0,aoRowCallback:[],aoHeaderCallback:[],aoFooterCallback:[],aoDrawCallback:[],aoRowCreatedCallback:[],aoPreDrawCallback:[],aoInitComplete:[],aoStateSaveParams:[],aoStateLoadParams:[],aoStateLoaded:[],sTableId:"",nTable:null,nTHead:null,nTFoot:null,nTBody:null,nTableWrapper:null,bDeferLoading:!1,bInitialised:!1,aoOpenRows:[],sDom:null,searchDelay:null,sPaginationType:"two_button",iStateDuration:0,aoStateSave:[],aoStateLoad:[],oSavedState:null,oLoadedState:null,sAjaxSource:null,sAjaxDataProp:null,bAjaxDataGet:!0,jqXHR:null,json:r,oAjaxData:r,fnServerData:null,aoServerParams:[],sServerMethod:null,fnFormatNumber:null,aLengthMenu:null,iDraw:0,bDrawing:!1,iDrawError:-1,_iDisplayLength:10,_iDisplayStart:0,_iRecordsTotal:0,_iRecordsDisplay:0,oClasses:{},bFiltered:!1,bSorted:!1,bSortCellsTop:null,oInit:null,aoDestroyCallback:[],fnRecordsTotal:function(){return"ssp"==Pe(this)?1*this._iRecordsTotal:this.aiDisplayMaster.length},fnRecordsDisplay:function(){return"ssp"==Pe(this)?1*this._iRecordsDisplay:this.aiDisplay.length},fnDisplayEnd:function(){var e=this._iDisplayLength,t=this._iDisplayStart,n=t+e,r=this.aiDisplay.length,o=this.oFeatures,i=o.bPaginate;return o.bServerSide?!1===i||-1===e?t+r:Math.min(t+e,this._iRecordsDisplay):!i||n>r||-1===e?r:n},oInstance:null,sInstance:null,iTabIndex:0,nScrollHead:null,nScrollFoot:null,aLastSort:[],oPlugins:{},rowIdFn:null,rowId:null},We.ext=Fe={buttons:{},classes:{},builder:"-source-",errMode:"alert",feature:[],search:[],selector:{cell:[],column:[],row:[]},internal:{},legacy:{ajax:null},pager:{},renderer:{pageButton:{},header:{}},order:{},type:{detect:[],search:{},order:{}},_unique:0,fnVersionCheck:We.fnVersionCheck,iApiIndex:0,oJUIClasses:{},sVersion:We.version},e.extend(Fe,{afnFiltering:Fe.search,aTypes:Fe.type.detect,ofnSearch:Fe.type.search,oSort:Fe.type.order,afnSortData:Fe.order,aoFeatures:Fe.feature,oApi:Fe.internal,oStdClasses:Fe.classes,oPagination:Fe.pager}),e.extend(We.ext.classes,{sTable:"dataTable",sNoFooter:"no-footer",sPageButton:"paginate_button",sPageButtonActive:"current",sPageButtonDisabled:"disabled",sStripeOdd:"odd",sStripeEven:"even",sRowEmpty:"dataTables_empty",sWrapper:"dataTables_wrapper",sFilter:"dataTables_filter",sInfo:"dataTables_info",sPaging:"dataTables_paginate paging_",sLength:"dataTables_length",sProcessing:"dataTables_processing",sSortAsc:"sorting_asc",sSortDesc:"sorting_desc",sSortable:"sorting",sSortableAsc:"sorting_asc_disabled",sSortableDesc:"sorting_desc_disabled",sSortableNone:"sorting_disabled",sSortColumn:"sorting_",sFilterInput:"",sLengthSelect:"",sScrollWrapper:"dataTables_scroll",sScrollHead:"dataTables_scrollHead",sScrollHeadInner:"dataTables_scrollHeadInner",sScrollBody:"dataTables_scrollBody",sScrollFoot:"dataTables_scrollFoot",sScrollFootInner:"dataTables_scrollFootInner",sHeaderTH:"",sFooterTH:"",sSortJUIAsc:"",sSortJUIDesc:"",sSortJUI:"",sSortJUIAscAllowed:"",sSortJUIDescAllowed:"",sSortJUIWrapper:"",sSortIcon:"",sJUIHeader:"",sJUIFooter:""});var Lt=We.ext.pager;e.extend(Lt,{simple:function(){return["previous","next"]},full:function(){return["first","previous","next","last"]},numbers:function(e,t){return[Re(e,t)]},simple_numbers:function(e,t){return["previous",Re(e,t),"next"]},full_numbers:function(e,t){return["first","previous",Re(e,t),"next","last"]},first_last_numbers:function(e,t){return["first",Re(e,t),"last"]},_numbers:Re,numbers_length:7}),e.extend(!0,We.ext.renderer,{pageButton:{_:function(t,o,i,c,a,s){var l,u,h,f=t.oClasses,d=t.oLanguage.oPaginate,m=t.oLanguage.oAria.paginate||{},v=0,p=function(n,r){var o,c,h,g,b=function(e){le(t,e.data.action,!0)};for(o=0,c=r.length;o").appendTo(n),p(h,g);else{switch(l=null,u="",g){case"ellipsis":n.append('');break;case"first":l=d.sFirst,u=g+(a>0?"":" "+f.sPageButtonDisabled);break;case"previous":l=d.sPrevious,u=g+(a>0?"":" "+f.sPageButtonDisabled);break;case"next":l=d.sNext,u=g+(a",{class:f.sPageButton+" "+u,"aria-controls":t.sTableId,"aria-label":m[g],"data-dt-idx":v,tabindex:t.iTabIndex,id:0===i&&"string"==typeof g?t.sTableId+"_"+g:null}).html(l).appendTo(n),{action:g},b),v++)}};try{h=e(o).find(n.activeElement).data("dt-idx")}catch(e){}p(e(o).empty(),c),h!==r&&e(o).find("[data-dt-idx="+h+"]").focus()}}}),e.extend(We.ext.type.detect,[function(e,t){var n=t.oLanguage.sDecimal;return nt(e,n)?"num"+n:null},function(e){if(e&&!(e instanceof Date)&&!Qe.test(e))return null;var t=Date.parse(e);return null!==t&&!isNaN(t)||Je(e)?"date":null},function(e,t){var n=t.oLanguage.sDecimal;return nt(e,n,!0)?"num-fmt"+n:null},function(e,t){var n=t.oLanguage.sDecimal;return rt(e,n)?"html-num"+n:null},function(e,t){var n=t.oLanguage.sDecimal;return rt(e,n,!0)?"html-num-fmt"+n:null},function(e){return Je(e)||"string"==typeof e&&-1!==e.indexOf("<")?"html":null}]),e.extend(We.ext.type.search,{html:function(e){return Je(e)?e:"string"==typeof e?e.replace(Xe," ").replace(Ge,""):""},string:function(e){return Je(e)?e:"string"==typeof e?e.replace(Xe," "):e}});var Vt=function(e,t,n,r){return 0===e||e&&"-"!==e?(t&&(e=tt(e,t)),e.replace&&(n&&(e=e.replace(n,"")),r&&(e=e.replace(r,""))),1*e):-1/0};e.extend(Fe.type.order,{"date-pre":function(e){return e=Date.parse(e),isNaN(e)?-1/0:e},"html-pre":function(e){return Je(e)?"":e.replace?e.replace(/<.*?>/g,"").toLowerCase():e+""},"string-pre":function(e){return Je(e)?"":"string"==typeof e?e.toLowerCase():e.toString?e.toString():""},"string-asc":function(e,t){return et?1:0},"string-desc":function(e,t){return et?-1:0}}),Be(""),e.extend(!0,We.ext.renderer,{header:{_:function(t,n,r,o){e(t.nTable).on("order.dt.DT",function(e,i,c,a){t===i&&(e=r.idx,n.removeClass(r.sSortingClass+" "+o.sSortAsc+" "+o.sSortDesc).addClass("asc"==a[e]?o.sSortAsc:"desc"==a[e]?o.sSortDesc:r.sSortingClass))})},jqueryui:function(t,n,r,o){e("
    ").addClass(o.sSortJUIWrapper).append(n.contents()).append(e("").addClass(o.sSortIcon+" "+r.sSortingClassJUI)).appendTo(n),e(t.nTable).on("order.dt.DT",function(e,i,c,a){t===i&&(e=r.idx,n.removeClass(o.sSortAsc+" "+o.sSortDesc).addClass("asc"==a[e]?o.sSortAsc:"desc"==a[e]?o.sSortDesc:r.sSortingClass),n.find("span."+o.sSortIcon).removeClass(o.sSortJUIAsc+" "+o.sSortJUIDesc+" "+o.sSortJUI+" "+o.sSortJUIAscAllowed+" "+o.sSortJUIDescAllowed).addClass("asc"==a[e]?o.sSortJUIAsc:"desc"==a[e]?o.sSortJUIDesc:r.sSortingClassJUI))})}}});var kt=function(e){return"string"==typeof e?e.replace(//g,">").replace(/"/g,"""):e};return We.render={number:function(e,t,n,r,o){return{display:function(i){if("number"!=typeof i&&"string"!=typeof i)return i;var c=0>i?"-":"",a=parseFloat(i);return isNaN(a)?kt(i):(a=a.toFixed(n),i=Math.abs(a),a=parseInt(i,10),i=n?t+(i-a).toFixed(n).substring(2):"",c+(r||"")+a.toString().replace(/\B(?=(\d{3})+(?!\d))/g,e)+i+(o||""))}}},text:function(){return{display:kt}}},e.extend(We.ext.internal,{_fnExternApiFunc:je,_fnBuildAjax:j,_fnAjaxUpdate:F,_fnAjaxParameters:$,_fnAjaxUpdateDraw:q,_fnAjaxDataSrc:U,_fnAddColumn:h,_fnColumnOptions:f,_fnAdjustColumnSizing:d,_fnVisibleToColumnIndex:m,_fnColumnIndexToVisible:v,_fnVisbleColumns:p,_fnGetColumns:g,_fnColumnTypes:b,_fnApplyColumnDefs:z,_fnHungarianMap:o,_fnCamelToHungarian:i,_fnLanguageCompat:c,_fnBrowserDetect:l,_fnAddData:y,_fnAddTr:C,_fnNodeToDataIndex:function(e,t){return t._DT_RowIndex!==r?t._DT_RowIndex:null},_fnNodeToColumnIndex:function(t,n,r){return e.inArray(r,t.aoData[n].anCells)},_fnGetCellData:M,_fnSetCellData:w,_fnSplitObjNotation:_,_fnGetObjectDataFn:x,_fnSetObjectDataFn:H,_fnGetDataMaster:S,_fnClearTable:L,_fnDeleteIndex:V,_fnInvalidate:k,_fnGetRowElements:A,_fnCreateTr:T,_fnBuildHead:D,_fnDrawHead:N,_fnDraw:O,_fnReDraw:I,_fnAddOptionsHtml:P,_fnDetectHeader:R,_fnGetUniqueThs:B,_fnFeatureHtmlFilter:W,_fnFilterComplete:Y,_fnFilterCustom:X,_fnFilterColumn:G,_fnFilter:Q,_fnFilterCreateSearch:Z,_fnEscapeRegex:ft,_fnFilterData:K,_fnFeatureHtmlInfo:te,_fnUpdateInfo:ne,_fnInfoMacros:re,_fnInitialise:oe,_fnInitComplete:ie,_fnLengthChange:ce,_fnFeatureHtmlLength:ae,_fnFeatureHtmlPaginate:se,_fnPageChange:le,_fnFeatureHtmlProcessing:ue,_fnProcessingDisplay:he,_fnFeatureHtmlTable:fe,_fnScrollDraw:de,_fnApplyToChildren:me,_fnCalculateColumnWidths:ve,_fnThrottle:pt,_fnConvertToWidth:pe,_fnGetWidestNode:ge,_fnGetMaxLenString:be,_fnStringToCss:ze,_fnSortFlatten:ye,_fnSort:Ce,_fnSortAria:Me,_fnSortListener:we,_fnSortAttachListener:_e,_fnSortingClasses:xe,_fnSortData:He,_fnSaveState:Se,_fnLoadState:Le,_fnSettingsFromNode:Ve,_fnLog:ke,_fnMap:Ae,_fnBindAction:Ee,_fnCallbackReg:De,_fnCallbackFire:Ne,_fnLengthOverflow:Oe,_fnRenderer:Ie,_fnDataSource:Pe,_fnRowAttributes:E,_fnExtend:Te,_fnCalculateEnd:function(){}}),e.fn.dataTable=We,We.$=e,e.fn.dataTableSettings=We.settings,e.fn.dataTableExt=We.ext,e.fn.DataTable=function(t){return e(this).dataTable(t).api()},e.each(We,function(t,n){e.fn.DataTable[t]=n}),e.fn.dataTable}),function(e){"function"==typeof define&&define.amd?define(["jquery"],e):e("object"==typeof exports?require("jquery"):jQuery)}(function(e,t){function n(){return new Date(Date.UTC.apply(Date,arguments))}function r(){var e=new Date;return n(e.getFullYear(),e.getMonth(),e.getDate())}function o(e,t){return e.getUTCFullYear()===t.getUTCFullYear()&&e.getUTCMonth()===t.getUTCMonth()&&e.getUTCDate()===t.getUTCDate()}function i(n,r){return function(){return r!==t&&e.fn.datepicker.deprecated(r),this[n].apply(this,arguments)}}function c(t){var n={};if(m[t]||(t=t.split("-")[0],m[t])){var r=m[t];return e.each(d,function(e,t){t in r&&(n[t]=r[t])}),n}}var a=function(){var t={get:function(e){return this.slice(e)[0]},contains:function(e){for(var t=e&&e.valueOf(),n=0,r=this.length;n]/g)||[]).length<=0||e(n).length>0)}catch(e){return!1}},_process_options:function(t){this._o=e.extend({},this._o,t);var o=this.o=e.extend({},this._o),i=o.language;m[i]||(i=i.split("-")[0],m[i]||(i=f.language)),o.language=i,o.startView=this._resolveViewName(o.startView),o.minViewMode=this._resolveViewName(o.minViewMode),o.maxViewMode=this._resolveViewName(o.maxViewMode),o.startView=Math.max(this.o.minViewMode,Math.min(this.o.maxViewMode,o.startView)),!0!==o.multidate&&(o.multidate=Number(o.multidate)||!1,!1!==o.multidate&&(o.multidate=Math.max(0,o.multidate))),o.multidateSeparator=String(o.multidateSeparator),o.weekStart%=7,o.weekEnd=(o.weekStart+6)%7;var c=v.parseFormat(o.format);o.startDate!==-1/0&&(o.startDate?o.startDate instanceof Date?o.startDate=this._local_to_utc(this._zero_time(o.startDate)):o.startDate=v.parseDate(o.startDate,c,o.language,o.assumeNearbyYear):o.startDate=-1/0),o.endDate!==1/0&&(o.endDate?o.endDate instanceof Date?o.endDate=this._local_to_utc(this._zero_time(o.endDate)):o.endDate=v.parseDate(o.endDate,c,o.language,o.assumeNearbyYear):o.endDate=1/0),o.daysOfWeekDisabled=this._resolveDaysOfWeek(o.daysOfWeekDisabled||[]),o.daysOfWeekHighlighted=this._resolveDaysOfWeek(o.daysOfWeekHighlighted||[]),o.datesDisabled=o.datesDisabled||[],e.isArray(o.datesDisabled)||(o.datesDisabled=o.datesDisabled.split(",")),o.datesDisabled=e.map(o.datesDisabled,function(e){return v.parseDate(e,c,o.language,o.assumeNearbyYear)});var a=String(o.orientation).toLowerCase().split(/\s+/g),s=o.orientation.toLowerCase();if(a=e.grep(a,function(e){return/^auto|left|right|top|bottom$/.test(e)}),o.orientation={x:"auto",y:"auto"},s&&"auto"!==s)if(1===a.length)switch(a[0]){case"top":case"bottom":o.orientation.y=a[0];break;case"left":case"right":o.orientation.x=a[0]}else s=e.grep(a,function(e){return/^left|right$/.test(e)}),o.orientation.x=s[0]||"auto",s=e.grep(a,function(e){return/^top|bottom$/.test(e)}),o.orientation.y=s[0]||"auto";if(o.defaultViewDate instanceof Date||"string"==typeof o.defaultViewDate)o.defaultViewDate=v.parseDate(o.defaultViewDate,c,o.language,o.assumeNearbyYear);else if(o.defaultViewDate){var l=o.defaultViewDate.year||(new Date).getFullYear(),u=o.defaultViewDate.month||0,h=o.defaultViewDate.day||1;o.defaultViewDate=n(l,u,h)}else o.defaultViewDate=r()},_applyEvents:function(e){for(var n,r,o,i=0;io?(this.picker.addClass("datepicker-orient-right"),f+=h-t):this.o.rtl?this.picker.addClass("datepicker-orient-right"):this.picker.addClass("datepicker-orient-left");var m=this.o.orientation.y;if("auto"===m&&(m=-i+d-n<0?"bottom":"top"),this.picker.addClass("datepicker-orient-"+m),"top"===m?d-=n+parseInt(this.picker.css("padding-top")):d+=u,this.o.rtl){var v=o-(f+h);this.picker.css({top:d,right:v,zIndex:s})}else this.picker.css({top:d,left:f,zIndex:s});return this},_allow_update:!0,update:function(){if(!this._allow_update)return this;var t=this.dates.copy(),n=[],r=!1;return arguments.length?(e.each(arguments,e.proxy(function(e,t){t instanceof Date&&(t=this._local_to_utc(t)),n.push(t)},this)),r=!0):(n=(n=this.isInput?this.element.val():this.element.data("date")||this.inputField.val())&&this.o.multidate?n.split(this.o.multidateSeparator):[n],delete this.element.data().date),n=e.map(n,e.proxy(function(e){return v.parseDate(e,this.o.format,this.o.language,this.o.assumeNearbyYear)},this)),n=e.grep(n,e.proxy(function(e){return!this.dateWithinRange(e)||!e},this),!0),this.dates.replace(n),this.o.updateViewDate&&(this.dates.length?this.viewDate=new Date(this.dates.get(-1)):this.viewDatethis.o.endDate?this.viewDate=new Date(this.o.endDate):this.viewDate=this.o.defaultViewDate),r?(this.setValue(),this.element.change()):this.dates.length&&String(t)!==String(this.dates)&&r&&(this._trigger("changeDate"),this.element.change()),!this.dates.length&&t.length&&(this._trigger("clearDate"),this.element.change()),this.fill(),this},fillDow:function(){if(this.o.showWeekDays){var t=this.o.weekStart,n="";for(this.o.calendarWeeks&&(n+=' ');t";n+="",this.picker.find(".datepicker-days thead").append(n)}},fillMonths:function(){for(var e=this._utc_to_local(this.viewDate),t="",n=0;n<12;n++)t+=''+m[this.o.language].monthsShort[n]+"";this.picker.find(".datepicker-months td").html(t)},setRange:function(t){t&&t.length?this.range=e.map(t,function(e){return e.valueOf()}):delete this.range,this.fill()},getClassNames:function(t){var n=[],i=this.viewDate.getUTCFullYear(),c=this.viewDate.getUTCMonth(),a=r();return t.getUTCFullYear()i||t.getUTCFullYear()===i&&t.getUTCMonth()>c)&&n.push("new"),this.focusDate&&t.valueOf()===this.focusDate.valueOf()&&n.push("focused"),this.o.todayHighlight&&o(t,a)&&n.push("today"),-1!==this.dates.contains(t)&&n.push("active"),this.dateWithinRange(t)||n.push("disabled"),this.dateIsDisabled(t)&&n.push("disabled","disabled-date"),-1!==e.inArray(t.getUTCDay(),this.o.daysOfWeekHighlighted)&&n.push("highlighted"),this.range&&(t>this.range[0]&&ta)&&l.push("disabled"),z===g&&l.push("focused"),s!==e.noop&&((h=s(new Date(z,0,1)))===t?h={}:"boolean"==typeof h?h={enabled:h}:"string"==typeof h&&(h={classes:h}),!1===h.enabled&&l.push("disabled"),h.classes&&(l=l.concat(h.classes.split(/\s+/))),h.tooltip&&(u=h.tooltip)),f+='"+z+"";m.find(".datepicker-switch").text(v+"-"+p),m.find("td").html(f)},fill:function(){var o,i,c=new Date(this.viewDate),a=c.getUTCFullYear(),s=c.getUTCMonth(),l=this.o.startDate!==-1/0?this.o.startDate.getUTCFullYear():-1/0,u=this.o.startDate!==-1/0?this.o.startDate.getUTCMonth():-1/0,h=this.o.endDate!==1/0?this.o.endDate.getUTCFullYear():1/0,f=this.o.endDate!==1/0?this.o.endDate.getUTCMonth():1/0,d=m[this.o.language].today||m.en.today||"",p=m[this.o.language].clear||m.en.clear||"",g=m[this.o.language].titleFormat||m.en.titleFormat,b=r(),z=(!0===this.o.todayBtn||"linked"===this.o.todayBtn)&&b>=this.o.startDate&&b<=this.o.endDate&&!this.weekOfDateIsDisabled(b);if(!isNaN(a)&&!isNaN(s)){this.picker.find(".datepicker-days .datepicker-switch").text(v.formatDate(c,g,this.o.language)),this.picker.find("tfoot .today").text(d).css("display",z?"table-cell":"none"),this.picker.find("tfoot .clear").text(p).css("display",!0===this.o.clearBtn?"table-cell":"none"),this.picker.find("thead .datepicker-title").text(this.o.title).css("display","string"==typeof this.o.title&&""!==this.o.title?"table-cell":"none"),this.updateNavArrows(),this.fillMonths();var y=n(a,s,0),C=y.getUTCDate();y.setUTCDate(C-(y.getUTCDay()-this.o.weekStart+7)%7);var M=new Date(y);y.getUTCFullYear()<100&&M.setUTCFullYear(y.getUTCFullYear()),M.setUTCDate(M.getUTCDate()+42),M=M.valueOf();for(var w,_,x=[];y.valueOf()"),this.o.calendarWeeks)){var H=new Date(+y+(this.o.weekStart-w-7)%7*864e5),S=new Date(Number(H)+(11-H.getUTCDay())%7*864e5),L=new Date(Number(L=n(S.getUTCFullYear(),0,1))+(11-L.getUTCDay())%7*864e5),V=(S-L)/864e5/7+1;x.push(''+V+"")}(_=this.getClassNames(y)).push("day");var k=y.getUTCDate();this.o.beforeShowDay!==e.noop&&((i=this.o.beforeShowDay(this._utc_to_local(y)))===t?i={}:"boolean"==typeof i?i={enabled:i}:"string"==typeof i&&(i={classes:i}),!1===i.enabled&&_.push("disabled"),i.classes&&(_=_.concat(i.classes.split(/\s+/))),i.tooltip&&(o=i.tooltip),i.content&&(k=i.content)),_=e.isFunction(e.uniqueSort)?e.uniqueSort(_):e.unique(_),x.push(''+k+""),o=null,w===this.o.weekEnd&&x.push(""),y.setUTCDate(y.getUTCDate()+1)}this.picker.find(".datepicker-days tbody").html(x.join(""));var A=m[this.o.language].monthsTitle||m.en.monthsTitle||"Months",T=this.picker.find(".datepicker-months").find(".datepicker-switch").text(this.o.maxViewMode<2?A:a).end().find("tbody span").removeClass("active");if(e.each(this.dates,function(e,t){t.getUTCFullYear()===a&&T.eq(t.getUTCMonth()).addClass("active")}),(ah)&&T.addClass("disabled"),a===l&&T.slice(0,u).addClass("disabled"),a===h&&T.slice(f+1).addClass("disabled"),this.o.beforeShowMonth!==e.noop){var E=this;e.each(T,function(n,r){var o=new Date(a,n,1),i=E.o.beforeShowMonth(o);i===t?i={}:"boolean"==typeof i?i={enabled:i}:"string"==typeof i&&(i={classes:i}),!1!==i.enabled||e(r).hasClass("disabled")||e(r).addClass("disabled"),i.classes&&e(r).addClass(i.classes),i.tooltip&&e(r).prop("title",i.tooltip)})}this._fill_yearsView(".datepicker-years","year",10,a,l,h,this.o.beforeShowYear),this._fill_yearsView(".datepicker-decades","decade",100,a,l,h,this.o.beforeShowDecade),this._fill_yearsView(".datepicker-centuries","century",1e3,a,l,h,this.o.beforeShowCentury)}},updateNavArrows:function(){if(this._allow_update){var e,t,n=new Date(this.viewDate),r=n.getUTCFullYear(),o=n.getUTCMonth(),i=this.o.startDate!==-1/0?this.o.startDate.getUTCFullYear():-1/0,c=this.o.startDate!==-1/0?this.o.startDate.getUTCMonth():-1/0,a=this.o.endDate!==1/0?this.o.endDate.getUTCFullYear():1/0,s=this.o.endDate!==1/0?this.o.endDate.getUTCMonth():1/0,l=1;switch(this.viewMode){case 4:l*=10;case 3:l*=10;case 2:l*=10;case 1:e=Math.floor(r/l)*l<=i,t=Math.floor(r/l)*l+l>a;break;case 0:e=r<=i&&o<=c,t=r>=a&&o>=s}this.picker.find(".prev").toggleClass("disabled",e),this.picker.find(".next").toggleClass("disabled",t)}},click:function(t){var o,i,c;t.preventDefault(),t.stopPropagation(),(o=e(t.target)).hasClass("datepicker-switch")&&this.viewMode!==this.o.maxViewMode&&this.setViewMode(this.viewMode+1),o.hasClass("today")&&!o.hasClass("day")&&(this.setViewMode(0),this._setDate(r(),"linked"===this.o.todayBtn?null:"view")),o.hasClass("clear")&&this.clearDates(),o.hasClass("disabled")||(o.hasClass("month")||o.hasClass("year")||o.hasClass("decade")||o.hasClass("century"))&&(this.viewDate.setUTCDate(1),1,1===this.viewMode?(c=o.parent().find("span").index(o),i=this.viewDate.getUTCFullYear(),this.viewDate.setUTCMonth(c)):(c=0,i=Number(o.text()),this.viewDate.setUTCFullYear(i)),this._trigger(v.viewModes[this.viewMode-1].e,this.viewDate),this.viewMode===this.o.minViewMode?this._setDate(n(i,c,1)):(this.setViewMode(this.viewMode-1),this.fill())),this.picker.is(":visible")&&this._focused_from&&this._focused_from.focus(),delete this._focused_from},dayCellClick:function(t){var n=e(t.currentTarget).data("date"),r=new Date(n);this.o.updateViewDate&&(r.getUTCFullYear()!==this.viewDate.getUTCFullYear()&&this._trigger("changeYear",this.viewDate),r.getUTCMonth()!==this.viewDate.getUTCMonth()&&this._trigger("changeMonth",this.viewDate)),this._setDate(r)},navArrowsClick:function(t){var n=e(t.currentTarget).hasClass("prev")?-1:1;0!==this.viewMode&&(n*=12*v.viewModes[this.viewMode].navStep),this.viewDate=this.moveMonth(this.viewDate,n),this._trigger(v.viewModes[this.viewMode].e,this.viewDate),this.fill()},_toggle_multidate:function(e){var t=this.dates.contains(e);if(e||this.dates.clear(),-1!==t?(!0===this.o.multidate||this.o.multidate>1||this.o.toggleActive)&&this.dates.remove(t):!1===this.o.multidate?(this.dates.clear(),this.dates.push(e)):this.dates.push(e),"number"==typeof this.o.multidate)for(;this.dates.length>this.o.multidate;)this.dates.remove(0)},_setDate:function(e,t){t&&"date"!==t||this._toggle_multidate(e&&new Date(e)),(!t&&this.o.updateViewDate||"view"===t)&&(this.viewDate=e&&new Date(e)),this.fill(),this.setValue(),t&&"view"===t||this._trigger("changeDate"),this.inputField.trigger("change"),!this.o.autoclose||t&&"date"!==t||this.hide()},moveDay:function(e,t){var n=new Date(e);return n.setUTCDate(e.getUTCDate()+t),n},moveWeek:function(e,t){return this.moveDay(e,7*t)},moveMonth:function(e,t){if(!function(e){return e&&!isNaN(e.getTime())}(e))return this.o.defaultViewDate;if(!t)return e;var n,r,o=new Date(e.valueOf()),i=o.getUTCDate(),c=o.getUTCMonth(),a=Math.abs(t);if(t=t>0?1:-1,1===a)r=-1===t?function(){return o.getUTCMonth()===c}:function(){return o.getUTCMonth()!==n},n=c+t,o.setUTCMonth(n),n=(n+12)%12;else{for(var s=0;s0},dateWithinRange:function(e){return e>=this.o.startDate&&e<=this.o.endDate},keydown:function(e){if(this.picker.is(":visible")){var t,n,r=!1,o=this.focusDate||this.viewDate;switch(e.keyCode){case 27:this.focusDate?(this.focusDate=null,this.viewDate=this.dates.get(-1)||this.viewDate,this.fill()):this.hide(),e.preventDefault(),e.stopPropagation();break;case 37:case 38:case 39:case 40:if(!this.o.keyboardNavigation||7===this.o.daysOfWeekDisabled.length)break;t=37===e.keyCode||38===e.keyCode?-1:1,0===this.viewMode?e.ctrlKey?(n=this.moveAvailableDate(o,t,"moveYear"))&&this._trigger("changeYear",this.viewDate):e.shiftKey?(n=this.moveAvailableDate(o,t,"moveMonth"))&&this._trigger("changeMonth",this.viewDate):37===e.keyCode||39===e.keyCode?n=this.moveAvailableDate(o,t,"moveDay"):this.weekOfDateIsDisabled(o)||(n=this.moveAvailableDate(o,t,"moveWeek")):1===this.viewMode?(38!==e.keyCode&&40!==e.keyCode||(t*=4),n=this.moveAvailableDate(o,t,"moveMonth")):2===this.viewMode&&(38!==e.keyCode&&40!==e.keyCode||(t*=4),n=this.moveAvailableDate(o,t,"moveYear")),n&&(this.focusDate=this.viewDate=n,this.setValue(),this.fill(),e.preventDefault());break;case 13:if(!this.o.forceParse)break;o=this.focusDate||this.dates.get(-1)||this.viewDate,this.o.keyboardNavigation&&(this._toggle_multidate(o),r=!0),this.focusDate=null,this.viewDate=this.dates.get(-1)||this.viewDate,this.setValue(),this.fill(),this.picker.is(":visible")&&(e.preventDefault(),e.stopPropagation(),this.o.autoclose&&this.hide());break;case 9:this.focusDate=null,this.viewDate=this.dates.get(-1)||this.viewDate,this.fill(),this.hide()}r&&(this.dates.length?this._trigger("changeDate"):this._trigger("clearDate"),this.inputField.trigger("change"))}else 40!==e.keyCode&&27!==e.keyCode||(this.show(),e.stopPropagation())},setViewMode:function(e){this.viewMode=e,this.picker.children("div").hide().filter(".datepicker-"+v.viewModes[this.viewMode].clsName).show(),this.updateNavArrows(),this._trigger("changeViewMode",new Date(this.viewDate))}};var l=function(t,n){e.data(t,"datepicker",this),this.element=e(t),this.inputs=e.map(n.inputs,function(e){return e.jquery?e[0]:e}),delete n.inputs,this.keepEmptyValues=n.keepEmptyValues,delete n.keepEmptyValues,h.call(e(this.inputs),n).on("changeDate",e.proxy(this.dateUpdated,this)),this.pickers=e.map(this.inputs,function(t){return e.data(t,"datepicker")}),this.updateDates()};l.prototype={updateDates:function(){this.dates=e.map(this.pickers,function(e){return e.getUTCDate()}),this.updateRanges()},updateRanges:function(){var t=e.map(this.dates,function(e){return e.valueOf()});e.each(this.pickers,function(e,n){n.setRange(t)})},clearDates:function(){e.each(this.pickers,function(e,t){t.clearDates()})},dateUpdated:function(n){if(!this.updating){this.updating=!0;var r=e.data(n.target,"datepicker");if(r!==t){var o=r.getUTCDate(),i=this.keepEmptyValues,c=e.inArray(n.target,this.inputs),a=c-1,s=c+1,l=this.inputs.length;if(-1!==c){if(e.each(this.pickers,function(e,t){t.getUTCDate()||t!==r&&i||t.setUTCDate(o)}),o=0&&othis.dates[s])for(;sthis.dates[s];)this.pickers[s++].setUTCDate(o);this.updateDates(),delete this.updating}}}},destroy:function(){e.map(this.pickers,function(e){e.destroy()}),e(this.inputs).off("changeDate",this.dateUpdated),delete this.element.data().datepicker},remove:i("destroy","Method `remove` is deprecated and will be removed in version 2.0. Use `destroy` instead")};var u=e.fn.datepicker,h=function(n){var r,o=Array.apply(null,arguments);if(o.shift(),this.each(function(){var t=e(this),i=t.data("datepicker"),a="object"==typeof n&&n;if(!i){var u=function(t,n){function r(e,t){return t.toLowerCase()}var o=e(t).data(),i={},c=new RegExp("^"+n.toLowerCase()+"([A-Z])");for(var a in n=new RegExp("^"+n.toLowerCase()),o)n.test(a)&&(i[a.replace(c,r)]=o[a]);return i}(this,"date"),h=c(e.extend({},f,u,a).language),d=e.extend({},f,h,u,a);t.hasClass("input-daterange")||d.inputs?(e.extend(d,{inputs:d.inputs||t.find("input").toArray()}),i=new l(this,d)):i=new s(this,d),t.data("datepicker",i)}"string"==typeof n&&"function"==typeof i[n]&&(r=i[n].apply(i,o))}),r===t||r instanceof s||r instanceof l)return this;if(this.length>1)throw new Error("Using only allowed for the collection of a single element ("+n+" function)");return r};e.fn.datepicker=h;var f=e.fn.datepicker.defaults={assumeNearbyYear:!1,autoclose:!1,beforeShowDay:e.noop,beforeShowMonth:e.noop,beforeShowYear:e.noop,beforeShowDecade:e.noop,beforeShowCentury:e.noop,calendarWeeks:!1,clearBtn:!1,toggleActive:!1,daysOfWeekDisabled:[],daysOfWeekHighlighted:[],datesDisabled:[],endDate:1/0,forceParse:!0,format:"mm/dd/yyyy",keepEmptyValues:!1,keyboardNavigation:!0,language:"en",minViewMode:0,maxViewMode:4,multidate:!1,multidateSeparator:",",orientation:"auto",rtl:!1,startDate:-1/0,startView:0,todayBtn:!1,todayHighlight:!1,updateViewDate:!0,weekStart:0,disableTouchKeyboard:!1,enableOnReadonly:!0,showOnFocus:!0,zIndexOffset:10,container:"body",immediateUpdates:!1,title:"",templates:{leftArrow:"«",rightArrow:"»"},showWeekDays:!0},d=e.fn.datepicker.locale_opts=["format","rtl","weekStart"];e.fn.datepicker.Constructor=s;var m=e.fn.datepicker.dates={en:{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"],today:"Today",clear:"Clear",titleFormat:"MM yyyy"}},v={viewModes:[{names:["days","month"],clsName:"days",e:"changeMonth"},{names:["months","year"],clsName:"months",e:"changeYear",navStep:1},{names:["years","decade"],clsName:"years",e:"changeDecade",navStep:10},{names:["decades","century"],clsName:"decades",e:"changeCentury",navStep:100},{names:["centuries","millennium"],clsName:"centuries",e:"changeMillennium",navStep:1e3}],validParts:/dd?|DD?|mm?|MM?|yy(?:yy)?/g,nonpunctuation:/[^ -\/:-@\u5e74\u6708\u65e5\[-`{-~\t\n\r]+/g,parseFormat:function(e){if("function"==typeof e.toValue&&"function"==typeof e.toDisplay)return e;var t=e.replace(this.validParts,"\0").split("\0"),n=e.match(this.validParts);if(!t||!t.length||!n||0===n.length)throw new Error("Invalid date format.");return{separators:t,parts:n}},parseDate:function(n,o,i,c){function a(){var e=this.slice(0,l[f].length),t=l[f].slice(0,e.length);return e.toLowerCase()===t.toLowerCase()}if(!n)return t;if(n instanceof Date)return n;if("string"==typeof o&&(o=v.parseFormat(o)),o.toValue)return o.toValue(n,o,i);var l,u,h,f,d,p={d:"moveDay",m:"moveMonth",w:"moveWeek",y:"moveYear"},g={yesterday:"-1d",today:"+0d",tomorrow:"+1d"};if(n in g&&(n=g[n]),/^[\-+]\d+[dmwy]([\s,]+[\-+]\d+[dmwy])*$/i.test(n)){for(l=n.match(/([\-+]\d+)([dmwy])/gi),n=new Date,f=0;f(new Date).getFullYear()+t&&(e-=100),e}(t,c):t)},m:function(e,t){if(isNaN(e))return e;for(t-=1;t<0;)t+=12;for(t%=12,e.setUTCMonth(t);e.getUTCMonth()!==t;)e.setUTCDate(e.getUTCDate()-1);return e},d:function(e,t){return e.setUTCDate(t)}};M.yy=M.yyyy,M.M=M.MM=M.mm=M.m,M.dd=M.d,n=r();var w=o.parts.slice();if(l.length!==w.length&&(w=e(w).filter(function(t,n){return-1!==e.inArray(n,C)}).toArray()),l.length===w.length){var _,x,H;for(f=0,_=w.length;f<_;f++){if(b=parseInt(l[f],10),u=w[f],isNaN(b))switch(u){case"MM":z=e(m[i].months).filter(a),b=e.inArray(z[0],m[i].months)+1;break;case"M":z=e(m[i].monthsShort).filter(a),b=e.inArray(z[0],m[i].monthsShort)+1}y[u]=b}for(f=0;f'+f.templates.leftArrow+''+f.templates.rightArrow+"",contTemplate:'',footTemplate:''};v.template='
    '+v.headTemplate+""+v.footTemplate+'
    '+v.headTemplate+v.contTemplate+v.footTemplate+'
    '+v.headTemplate+v.contTemplate+v.footTemplate+'
    '+v.headTemplate+v.contTemplate+v.footTemplate+'
    '+v.headTemplate+v.contTemplate+v.footTemplate+"
    ",e.fn.datepicker.DPGlobal=v,e.fn.datepicker.noConflict=function(){return e.fn.datepicker=u,this},e.fn.datepicker.version="1.9.0",e.fn.datepicker.deprecated=function(e){var t=window.console;t&&t.warn&&t.warn("DEPRECATED: "+e)},e(document).on("focus.datepicker.data-api click.datepicker.data-api",'[data-provide="datepicker"]',function(t){var n=e(this);n.data("datepicker")||(t.preventDefault(),h.call(n,"show"))}),e(function(){h.call(e('[data-provide="datepicker-inline"]'))})}),function(e,t){if("function"==typeof define&&define.amd)define(["module","exports"],t);else if("undefined"!=typeof exports)t(module,exports);else{var n={exports:{}};t(n,n.exports),e.autosize=n.exports}}(this,function(e,t){"use strict";var n,r,o="function"==typeof Map?new Map:(n=[],r=[],{has:function(e){return-1").addClass("progressbar-back-text").prependTo(r),this.$front_text=i=e("").addClass("progressbar-front-text").prependTo(n),u?(m=r.css("height"),o.css({height:m,"line-height":m}),i.css({height:m,"line-height":m}),e(window).resize(function(){m=r.css("height"),o.css({height:m,"line-height":m}),i.css({height:m,"line-height":m})})):(m=r.css("width"),i.css({width:m}),e(window).resize(function(){m=r.css("width"),i.css({width:m})}));setTimeout(function(){var e,t,d,m,p;u?n.css("height",v+"%"):n.css("width",v+"%");var g=setInterval(function(){u?(d=n.height(),m=r.height()):(d=n.width(),m=r.width()),e=Math.round(100*d/m),t=Math.round(s+d/m*(l-s)),e>=v&&(e=v,t=a,f(n),clearInterval(g)),"none"!==c.display_text&&(p=c.use_percentage?c.percent_format(e):c.amount_format(t,l,s),"fill"===c.display_text?n.text(p):"center"===c.display_text&&(o.text(p),i.text(p))),n.attr("aria-valuenow",t),h(e,n)},c.refresh_speed)},c.transition_delay)}};var n=e.fn.progressbar;e.fn.progressbar=function(n){return this.each(function(){var r=e(this),o=r.data("bs.progressbar"),i="object"==typeof n&&n;o&&i&&e.extend(o.options,i),o||r.data("bs.progressbar",o=new t(this,i)),o.transition()})},e.fn.progressbar.Constructor=t,e.fn.progressbar.noConflict=function(){return e.fn.progressbar=n,this}}(window.jQuery);var _extends=Object.assign||function(e){for(var t=1;te.addpos2&&(e.addpos2=t.offsetHeight);break;case"left":case"right":t.offsetWidth+(parseFloat(t.style.marginLeft,10)||0)+(parseFloat(t.style.marginRight,10)||0)>e.addpos2&&(e.addpos2=t.offsetWidth)}}else if(e.dir1){var h=void 0,f=void 0;switch(e.dir1){case"down":case"up":f=["left","right"],h=e.context.scrollWidth/2-t.offsetWidth/2;break;case"left":case"right":f=["top","bottom"],h=n/2-t.offsetHeight/2}t.style[f[0]]=h+"px",t.style[f[1]]="auto",e.animation||t.style[f[0]]}if(e.dir1)switch("number"==typeof e.nextpos1&&(t.style[i]=e.nextpos1+"px",e.animation||t.style[i]),e.dir1){case"down":case"up":e.nextpos1+=t.offsetHeight+(void 0===e.spacing1?25:e.spacing1);break;case"left":case"right":e.nextpos1+=t.offsetWidth+(void 0===e.spacing1?25:e.spacing1)}else{var d=o/2-t.offsetWidth/2,m=n/2-t.offsetHeight/2;t.style.left=d+"px",t.style.top=m+"px",e.animation||t.style.left}return this}},queuePosition:function(e){return o&&clearTimeout(o),e||(e=10),o=setTimeout(function(){r.positionAll()},e),this},cancelRemove:function(){return this.cancelClose()},cancelClose:function(){var e=this.get(),t=e._timer,n=e._animTimer,r=e._state,o=e.animation;return t&&clearTimeout(t),n&&clearTimeout(n),"closing"===r&&this.set({_state:"open",_animating:!1,_animatingClass:"fade"===o?"ui-pnotify-in ui-pnotify-fade-in":"ui-pnotify-in"}),this},queueRemove:function(){return this.queueClose()},queueClose:function(){var e=this;return this.cancelClose(),this.set({_timer:setTimeout(function(){return e.close(!0)},isNaN(this.get().delay)?0:this.get().delay)}),this},addModuleClass:function(){for(var e=this.get()._moduleClasses,t=arguments.length,n=Array(t),r=0;r .ui-pnotify{position:fixed;z-index:100040}body > .ui-pnotify.ui-pnotify-modal{z-index:100042}.ui-pnotify{position:absolute;height:auto;z-index:1;display:none}.ui-pnotify.ui-pnotify-modal{z-index:3}.ui-pnotify.ui-pnotify-in{display:block}.ui-pnotify.ui-pnotify-initial-hidden{display:block;visibility:hidden}.ui-pnotify.ui-pnotify-move{transition:left .5s ease, top .5s ease, right .5s ease, bottom .5s ease}.ui-pnotify.ui-pnotify-fade-slow{transition:opacity .4s linear;opacity:0}.ui-pnotify.ui-pnotify-fade-slow.ui-pnotify.ui-pnotify-move{transition:opacity .4s linear, left .5s ease, top .5s ease, right .5s ease, bottom .5s ease}.ui-pnotify.ui-pnotify-fade-normal{transition:opacity .25s linear;opacity:0}.ui-pnotify.ui-pnotify-fade-normal.ui-pnotify.ui-pnotify-move{transition:opacity .25s linear, left .5s ease, top .5s ease, right .5s ease, bottom .5s ease}.ui-pnotify.ui-pnotify-fade-fast{transition:opacity .1s linear;opacity:0}.ui-pnotify.ui-pnotify-fade-fast.ui-pnotify.ui-pnotify-move{transition:opacity .1s linear, left .5s ease, top .5s ease, right .5s ease, bottom .5s ease}.ui-pnotify.ui-pnotify-fade-in{opacity:1}.ui-pnotify .ui-pnotify-shadow{-webkit-box-shadow:0px 6px 28px 0px rgba(0,0,0,0.1);-moz-box-shadow:0px 6px 28px 0px rgba(0,0,0,0.1);box-shadow:0px 6px 28px 0px rgba(0,0,0,0.1)}.ui-pnotify-container{background-position:0 0;padding:.8em;height:100%;margin:0}.ui-pnotify-container:after{content:" ";visibility:hidden;display:block;height:0;clear:both}.ui-pnotify-container.ui-pnotify-sharp{-webkit-border-radius:0;-moz-border-radius:0;border-radius:0}.ui-pnotify-title{display:block;white-space:pre-line;margin-bottom:.4em;margin-top:0}.ui-pnotify.ui-pnotify-with-icon .ui-pnotify-title,.ui-pnotify.ui-pnotify-with-icon .ui-pnotify-text{margin-left:24px}[dir=rtl] .ui-pnotify.ui-pnotify-with-icon .ui-pnotify-title,[dir=rtl] .ui-pnotify.ui-pnotify-with-icon .ui-pnotify-text{margin-right:24px;margin-left:0}.ui-pnotify-title-bs4{font-size:1.2rem}.ui-pnotify-text{display:block;white-space:pre-line}.ui-pnotify-icon,.ui-pnotify-icon span{display:block;float:left}[dir=rtl] .ui-pnotify-icon,[dir=rtl] .ui-pnotify-icon span{float:right}.ui-pnotify-icon-bs3 > span{position:relative;top:2px}.ui-pnotify-icon-bs4 > span{position:relative;top:4px}.ui-pnotify-modal-overlay{background-color:rgba(0, 0, 0, .4);top:0;left:0;position:absolute;height:100%;width:100%;z-index:2}body > .ui-pnotify-modal-overlay{position:fixed;z-index:100041}',z(document.head,e)}(),this._fragment=function(e,t){for(var n,r,o,i,h,f,m,v,g,V=[],k=y(),A=[],T=y(),E=t._modulesPrependContainer,D=function(e){return e.module.key},N=0;Ny[k]?(x[V]=!0,H(S)):(_[k]=!0,m--):(l(L,a),m--)}for(;m--;)z[(L=e[m]).key]||l(L,a);for(;v;)H(b[v-1]);return b}function H(e,t){e.d(1),t[e.key]=null}function S(e){e.parentNode.removeChild(e)}function L(e,t,n,r){e.removeEventListener(t,n,r)}function V(){return document.createComment("")}function k(e,t){e.data=""+t}function A(e,t){for(;e.nextSibling&&e.nextSibling!==t;)e.parentNode.removeChild(e.nextSibling)}function T(e,t){for(var n in t)e[n]=t[n];return e}function E(e){e._lock=!0,D(e._beforecreate),D(e._oncreate),D(e._aftercreate),e._lock=!1}function D(e){for(;e&&e.length;)e.shift()()}function N(){}return T(g.prototype,{destroy:function(e){this.destroy=N,this.fire("destroy"),this.set=N,this._fragment.d(!1!==e),this._fragment=null,this._state={}},get:function(){return this._state},fire:function(e,t){var n=e in this._handlers&&this._handlers[e].slice();if(n)for(var r=0;r [ui-pnotify].ui-pnotify.ui-pnotify-mobile-able{position:fixed}[ui-pnotify].ui-pnotify.ui-pnotify-mobile-able.ui-pnotify-mobile-top,[ui-pnotify].ui-pnotify.ui-pnotify-mobile-able.ui-pnotify-mobile-bottom{width:100% !important}[ui-pnotify].ui-pnotify.ui-pnotify-mobile-able.ui-pnotify-mobile-left,[ui-pnotify].ui-pnotify.ui-pnotify-mobile-able.ui-pnotify-mobile-right{height:100% !important}[ui-pnotify].ui-pnotify.ui-pnotify-mobile-able .ui-pnotify-shadow{-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none}[ui-pnotify].ui-pnotify.ui-pnotify-mobile-able.ui-pnotify-mobile-top .ui-pnotify-shadow{border-bottom-width:5px}[ui-pnotify].ui-pnotify.ui-pnotify-mobile-able.ui-pnotify-mobile-bottom .ui-pnotify-shadow{border-top-width:5px}[ui-pnotify].ui-pnotify.ui-pnotify-mobile-able.ui-pnotify-mobile-left .ui-pnotify-shadow{border-right-width:5px}[ui-pnotify].ui-pnotify.ui-pnotify-mobile-able.ui-pnotify-mobile-right .ui-pnotify-shadow{border-left-width:5px}[ui-pnotify].ui-pnotify.ui-pnotify-mobile-able .ui-pnotify-container{-webkit-border-radius:0;-moz-border-radius:0;border-radius:0}[ui-pnotify].ui-pnotify.ui-pnotify-mobile-able.ui-pnotify-mobile-top .ui-pnotify-container,[ui-pnotify].ui-pnotify.ui-pnotify-mobile-able.ui-pnotify-mobile-bottom .ui-pnotify-container{width:auto !important}[ui-pnotify].ui-pnotify.ui-pnotify-mobile-able.ui-pnotify-mobile-left .ui-pnotify-container,[ui-pnotify].ui-pnotify.ui-pnotify-mobile-able.ui-pnotify-mobile-right .ui-pnotify-container{height:100% !important}}",function(e,t){e.appendChild(t)}(document.head,e)}(),this._fragment=(this._state,{c:o,m:o,p:o,d:o}),this.root._oncreate.push(function(){(function(){this.set({_doMobileStylingBound:this.doMobileStyling.bind(this)})}).call(n),n.fire("update",{changed:function(e,t){for(var n in t)e[n]=1;return e}({},n._state),current:n._state})}),t.target&&(this._fragment.c(),this._mount(t.target,t.anchor),c(this))}function o(){}function i(e,t){for(var n in t)e[n]=t[n];return e}function c(e){e._lock=!0,s(e._beforecreate),s(e._oncreate),s(e._aftercreate),e._lock=!1}function a(){return Object.create(null)}function s(e){for(;e&&e.length;)e.shift()()}return i(r.prototype,{destroy:function(e){this.destroy=o,this.fire("destroy"),this.set=o,this._fragment.d(!1!==e),this._fragment=null,this._state={}},get:function(){return this._state},fire:function(e,t){var n=e in this._handlers&&this._handlers[e].slice();if(n)for(var r=0;rn){for(var i="top"===o.push,c=[],a=0,s=i?0:e.notices.length-1;i?s=e.length&&t(n)}}(i))})})}(e,Ut.nu)},Yt=function(e){return{is:function(t){return e===t},isValue:u,isError:l,getOr:r(e),getOrThunk:r(e),getOrDie:r(e),or:function(t){return Yt(e)},orThunk:function(t){return Yt(e)},fold:function(t,n){return n(e)},map:function(t){return Yt(t(e))},mapError:function(t){return Yt(e)},each:function(t){t(e)},bind:function(t){return t(e)},exists:function(t){return t(e)},forall:function(t){return t(e)},toOption:function(){return A.some(e)}}},Xt=function(e){return{is:l,isValue:l,isError:u,getOr:o,getOrThunk:function(e){return e()},getOrDie:function(){return(t=String(e),function(){throw new Error(t)})();var t},or:function(e){return e},orThunk:function(e){return e()},fold:function(t,n){return t(e)},map:function(t){return Xt(e)},mapError:function(t){return Xt(t(e))},each:t,bind:function(t){return Xt(e)},exists:l,forall:u,toOption:A.none}},Gt={value:Yt,error:Xt,fromOption:function(e,t){return e.fold(function(){return Xt(t)},Yt)}},Qt=window.Promise?window.Promise:(Pt=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)},Rt=Kt.immediateFn||"function"==typeof e.setImmediate&&e.setImmediate||function(t){e.setTimeout(t,1)},Kt.prototype.catch=function(e){return this.then(null,e)},Kt.prototype.then=function(e,t){var n=this;return new Kt(function(r,o){Jt.call(n,new rn(e,t,r,o))})},Kt.all=function(){var e=Array.prototype.slice.call(1===arguments.length&&Pt(arguments[0])?arguments[0]:arguments);return new Kt(function(t,n){if(0===e.length)return t([]);var r=e.length;function o(i,c){try{if(c&&("object"==typeof c||"function"==typeof c)){var a=c.then;if("function"==typeof a)return void a.call(c,function(e){o(i,e)},n)}e[i]=c,0==--r&&t(e)}catch(e){n(e)}}for(var i=0;i\"\u0060\u007E-\uD7FF\uE000-\uFFEF]|[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Xn=/[<>&\u007E-\uD7FF\uE000-\uFFEF]|[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Gn=/[<>&\"\']/g,Qn=/&#([a-z0-9]+);?|&([a-z0-9]+);/gi,Zn={128:"€",130:"‚",131:"ƒ",132:"„",133:"…",134:"†",135:"‡",136:"ˆ",137:"‰",138:"Š",139:"‹",140:"Œ",142:"Ž",145:"‘",146:"’",147:"“",148:"”",149:"•",150:"–",151:"—",152:"˜",153:"™",154:"š",155:"›",156:"œ",158:"ž",159:"Ÿ"};function Kn(e,t){var n,r,o,i={};if(e){for(e=e.split(","),t=t||10,n=0;n":">","&":"&","`":"`"},Dn={"<":"<",">":">","&":"&",""":'"',"'":"'"},Tn=Kn("50,nbsp,51,iexcl,52,cent,53,pound,54,curren,55,yen,56,brvbar,57,sect,58,uml,59,copy,5a,ordf,5b,laquo,5c,not,5d,shy,5e,reg,5f,macr,5g,deg,5h,plusmn,5i,sup2,5j,sup3,5k,acute,5l,micro,5m,para,5n,middot,5o,cedil,5p,sup1,5q,ordm,5r,raquo,5s,frac14,5t,frac12,5u,frac34,5v,iquest,60,Agrave,61,Aacute,62,Acirc,63,Atilde,64,Auml,65,Aring,66,AElig,67,Ccedil,68,Egrave,69,Eacute,6a,Ecirc,6b,Euml,6c,Igrave,6d,Iacute,6e,Icirc,6f,Iuml,6g,ETH,6h,Ntilde,6i,Ograve,6j,Oacute,6k,Ocirc,6l,Otilde,6m,Ouml,6n,times,6o,Oslash,6p,Ugrave,6q,Uacute,6r,Ucirc,6s,Uuml,6t,Yacute,6u,THORN,6v,szlig,70,agrave,71,aacute,72,acirc,73,atilde,74,auml,75,aring,76,aelig,77,ccedil,78,egrave,79,eacute,7a,ecirc,7b,euml,7c,igrave,7d,iacute,7e,icirc,7f,iuml,7g,eth,7h,ntilde,7i,ograve,7j,oacute,7k,ocirc,7l,otilde,7m,ouml,7n,divide,7o,oslash,7p,ugrave,7q,uacute,7r,ucirc,7s,uuml,7t,yacute,7u,thorn,7v,yuml,ci,fnof,sh,Alpha,si,Beta,sj,Gamma,sk,Delta,sl,Epsilon,sm,Zeta,sn,Eta,so,Theta,sp,Iota,sq,Kappa,sr,Lambda,ss,Mu,st,Nu,su,Xi,sv,Omicron,t0,Pi,t1,Rho,t3,Sigma,t4,Tau,t5,Upsilon,t6,Phi,t7,Chi,t8,Psi,t9,Omega,th,alpha,ti,beta,tj,gamma,tk,delta,tl,epsilon,tm,zeta,tn,eta,to,theta,tp,iota,tq,kappa,tr,lambda,ts,mu,tt,nu,tu,xi,tv,omicron,u0,pi,u1,rho,u2,sigmaf,u3,sigma,u4,tau,u5,upsilon,u6,phi,u7,chi,u8,psi,u9,omega,uh,thetasym,ui,upsih,um,piv,812,bull,816,hellip,81i,prime,81j,Prime,81u,oline,824,frasl,88o,weierp,88h,image,88s,real,892,trade,89l,alefsym,8cg,larr,8ch,uarr,8ci,rarr,8cj,darr,8ck,harr,8dl,crarr,8eg,lArr,8eh,uArr,8ei,rArr,8ej,dArr,8ek,hArr,8g0,forall,8g2,part,8g3,exist,8g5,empty,8g7,nabla,8g8,isin,8g9,notin,8gb,ni,8gf,prod,8gh,sum,8gi,minus,8gn,lowast,8gq,radic,8gt,prop,8gu,infin,8h0,ang,8h7,and,8h8,or,8h9,cap,8ha,cup,8hb,int,8hk,there4,8hs,sim,8i5,cong,8i8,asymp,8j0,ne,8j1,equiv,8j4,le,8j5,ge,8k2,sub,8k3,sup,8k4,nsub,8k6,sube,8k7,supe,8kl,oplus,8kn,otimes,8l5,perp,8m5,sdot,8o8,lceil,8o9,rceil,8oa,lfloor,8ob,rfloor,8p9,lang,8pa,rang,9ea,loz,9j0,spades,9j3,clubs,9j5,hearts,9j6,diams,ai,OElig,aj,oelig,b0,Scaron,b1,scaron,bo,Yuml,m6,circ,ms,tilde,802,ensp,803,emsp,809,thinsp,80c,zwnj,80d,zwj,80e,lrm,80f,rlm,80j,ndash,80k,mdash,80o,lsquo,80p,rsquo,80q,sbquo,80s,ldquo,80t,rdquo,80u,bdquo,810,dagger,811,Dagger,81g,permil,81p,lsaquo,81q,rsaquo,85c,euro",32);var nr={encodeRaw:Jn,encodeAllRaw:function(e){return(""+e).replace(Gn,function(e){return En[e]||e})},encodeNumeric:er,encodeNamed:tr,getEncodeFunc:function(e,t){var n=Kn(t)||Tn,r=Wn(e.replace(/\+/g,","));return r.named&&r.numeric?function(e,t){return e.replace(t?Yn:Xn,function(e){return void 0!==En[e]?En[e]:void 0!==n[e]?n[e]:1>10),56320+(1023&t))):Zn[t]||String.fromCharCode(t):Dn[e]||Tn[e]||function(e){var t;return(t=gt.fromTag("div").dom()).innerHTML=e,t.textContent||t.innerText||e}(e)})}},rr={},or={},ir=Sn.makeMap,cr=Sn.each,ar=Sn.extend,sr=Sn.explode,lr=Sn.inArray,ur=function(e,t){return(e=Sn.trim(e))?e.split(t||" "):[]},hr=function(e){function t(e,t,n){function o(e,t){var n,r,o={};for(n=0,r=e.length;n
    ').css(l).appendTo(t)[0];return c.set(A.some({caret:h,element:o,before:r})),c.get().each(function(e){r&&mi(e.caret).addClass("mce-visual-caret-before")}),s(),(u=o.ownerDocument.createRange()).setStart(i,0),u.setEnd(i,0),u},hide:a,getCss:function(){return".mce-visual-caret {position: absolute;background-color: black;background-color: currentcolor;}.mce-visual-caret-hidden {display: none;}*[data-mce-caret] {position: absolute;left: -1000px;right: auto;top: 0;margin: 0;padding: 0;}"},reposition:function(){c.get().each(function(e){var n=Ja(t,e.element,e.before);mi(e.caret).css(U({},n))})},destroy:function(){return dn.clearInterval(o)}}}function ts(){return Es.isIE()||Es.isEdge()||Es.isFirefox()}function ns(e){return Ds(e)||Xe.isTable(e)&&ts()}function rs(e){return 0=o.data.length-1)return 1===e&&(r=l(o))?js(r):n;if(oa(o)&&c<=1)return-1===e&&(r=s(o))?Fs(r):n;if(c===o.data.length)return(r=l(o))?js(r):n;if(0===c)return(r=s(o))?Fs(r):n}return n}function ds(e,t){return A.from(ls(e?0:-1,t)).filter(Ns)}function ms(e,t,n){var r=fs(e,t,n);return-1===e?Ta.fromRangeStart(r):Ta.fromRangeEnd(r)}function vs(e){return A.from(e.getNode()).map(gt.fromDom)}function ps(e,t){for(;t=e(t);)if(t.isVisible())return t;return t}function gs(e,t){var n=ss(e,t);return!(n||!Xe.isBr(e.getNode()))||n}(Wc=Ta=Ta||{}).fromRangeStart=function(e){return Wc(e.startContainer,e.startOffset)},Wc.fromRangeEnd=function(e){return Wc(e.endContainer,e.endOffset)},Wc.after=function(e){return Wc(e.parentNode,Sa(e)+1)},Wc.before=function(e){return Wc(e.parentNode,Sa(e))},Wc.isAbove=function(e,t){return Bc(L(t.getClientRects()),V(e.getClientRects()),Dc).getOr(!1)},Wc.isBelow=function(e,t){return Bc(V(t.getClientRects()),L(e.getClientRects()),Nc).getOr(!1)},Wc.isAtStart=function(e){return!!e&&e.isAtStart()},Wc.isAtEnd=function(e){return!!e&&e.isAtEnd()},Wc.isTextPosition=function(e){return!!e&&Xe.isText(e.container())},Wc.isElementPosition=function(e){return!1===Wc.isTextPosition(e)};var bs,zs,ys=Ta,Cs=Xe.isText,Ms=Xe.isBogus,ws=Ui.nodeIndex,_s=function(e){var t=e.parentNode;return Ms(t)?_s(t):t},xs=function(e){return e?_n.reduce(e.childNodes,function(e,t){return Ms(t)&&"BR"!==t.nodeName?e=e.concat(xs(t)):e.push(t),e},[]):[]},Hs=Xe.isContentEditableFalse,Ss={getBookmark:function(e,t,n){return 2===t?qa(ta,n,e):3===t?function(e){var t=e.getRng();return{start:Na(e.dom.getRoot(),ys.fromRangeStart(t)),end:Na(e.dom.getRoot(),ys.fromRangeEnd(t))}}(e):t?function(e){return{rng:e.getRng()}}(e):Wa(e,!1)},getUndoBookmark:i(qa,o,!0),getPersistentBookmark:Wa},Ls="_mce_caret",Vs=Xe.isElement,ks=Xe.isText,As=function(e){(Vs(e)&&_c(e)&&(xc(e)?e.removeAttribute("data-mce-caret"):Ga(e)),ks(e))&&Qa(e,ta(function(e){try{return e.nodeValue}catch(e){return""}}(e)))},Ts={removeAndReposition:function(e,t){return ys.isTextPosition(t)?function(e,t){return ks(e)&&t.container()===e?function(e,t){var n=Za(e.data.substr(0,t.offset())),r=Za(e.data.substr(t.offset())),o=n.text+r.text;return 0a.length-1)return!!Js(l,i,r)||Ks(i,r);i=a[s[o]]}3===i.nodeType&&(c=Math.min(s[0],i.nodeValue.length)),1===i.nodeType&&(c=Math.min(s[0],i.childNodes.length)),t?r.setStart(i,c):r.setEnd(i,c)}return!0}function tl(e){return Xe.isText(e)&&0=t.nodeValue.length&&e.splice(0,1),t=e[e.length-1],0===d&&0n.length-1?t=n.length-1:t<0&&(t=0),n[t]||e}(f,d)),u===f)return n(m([u]));for(r=e.findCommonAncestor(u,f),c=u;c;c=c.parentNode){if(c===f)return g(u,r,!0);if(c===r)break}for(c=f;c;c=c.parentNode){if(c===u)return g(f,r);if(c===r)break}o=p(u,r)||u,i=p(f,r)||f,g(u,o,!0),(s=v(o===u?o:o.nextSibling,"nextSibling",i===f?i.nextSibling:i)).length&&n(m(s)),g(f,i)}};function Il(e){return Fl.get(e)}function Pl(e,t,n,r){var o=t.uid,i=void 0===o?function(e){var t=(new Date).getTime();return"mce-annotation_"+Math.floor(1e9*Math.random())+ ++Zc+String(t)}():o,c=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o=e.startOffset&&" "===e.startContainer.nodeValue[e.startOffset]}(t));t.setStart(n.startContainer,n.startOffset),t.setEnd(n.endContainer,n.endOffset),e.selection.setRng(t)}(o,e),o.selection.getRng().collapsed){var t=Pl(o.getDoc(),a,i,c.decorate);Cc(t," "),o.selection.getRng().insertNode(t.dom()),o.selection.select(t.dom())}else{var n=Ss.getPersistentBookmark(o.selection,!1),r=o.selection.getRng();Rl(o,r,i,c.decorate,a),o.selection.moveToBookmark(n)}})})},annotationChanged:function(e,t){r.addListener(e,t)},remove:function(e){gc(t,A.some(e)).each(function(e){z(e.elements,Mi)})},getAll:function(e){return ae(function(e,t){var n=sc(gt.fromDom(e.getBody()),"["+Xc()+'="'+t+'"]'),r={};return z(n,function(e){var t=me(e,Gc()),n=r.hasOwnProperty(t)?r[t]:[];r[t]=n.concat([e])}),r}(t,e),function(e){return F(e,function(e){return e.dom()})})}}}function jl(e,t,n){var r=n?"lastChild":"firstChild",o=n?"prev":"next";if(e[r])return e[r];if(e!==t){var i=e[o];if(i)return i;for(var c=e.parent;c&&c!==t;c=c.parent)if(i=c[o])return i}}var Fl=function(e,t){var n=function(t){return e(t)?A.from(t.dom().nodeValue):A.none()};return{get:function(r){if(!e(r))throw new Error("Can only get "+t+" value of a "+t+" node");return n(r).getOr("")},getOption:n,set:function(n,r){if(!e(n))throw new Error("Can only set raw "+t+" value of a "+t+" node");n.dom().nodeValue=r}}}(Mt,"text"),$l=/^[ \t\r\n]*$/,ql={"#text":3,"#comment":8,"#cdata":4,"#pi":7,"#doctype":10,"#document-fragment":11},Ul=(Wl.create=function(e,t){var n=new Wl(e,ql[e]||1);if(t)for(var r in t)n.attr(r,t[r]);return n},Wl.prototype.replace=function(e){return e.parent&&e.remove(),this.insert(e,this),this.remove(),this},Wl.prototype.attr=function(e,t){var n;if("string"!=typeof e){for(var r in e)this.attr(r,e[r]);return this}if(n=this.attributes){if(void 0===t)return n.map[e];if(null===t){if(e in n.map){delete n.map[e];for(var o=n.length;o--;)if(n[o].name===e)return n.splice(o,1),this}return this}if(e in n.map){for(o=n.length;o--;)if(n[o].name===e){n[o].value=t;break}}else n.push({name:e,value:t});return n.map[e]=t,this}},Wl.prototype.clone=function(){var e,t=new Wl(this.name,this.type);if(e=this.attributes){var n=[];n.map={};for(var r=0,o=e.length;r]+(?:(?:"[^"]*")|(?:\'[^\']*\')|[^>]*))*|\/|\s+)>/g).lastIndex=r=n;o=i.exec(t);){if(r=i.lastIndex,"/"===o[1])a--;else if(!o[1]){if(o[2]in c)continue;a++}if(0===a)break}return r}function Xl(e,t){var n=e.exec(t);if(n){var r=n[1],o=n[2];return"string"==typeof r&&"data-mce-bogus"===r.toLowerCase()?o:null}return null}function Gl(e,t){function n(){}void 0===t&&(t=dr()),!1!==(e=e||{}).fix_self_closing&&(e.fix_self_closing=!0);var r=e.comment?e.comment:n,o=e.cdata?e.cdata:n,i=e.text?e.text:n,c=e.start?e.start:n,a=e.end?e.end:n,s=e.pi?e.pi:n,l=e.doctype?e.doctype:n;return{parse:function(n){function u(e){var t,n;for(t=F.length;t--&&F[t].name!==e;);if(0<=t){for(n=F.length-1;t<=n;n--)(e=F[n]).valid&&a(e.name);F.length=t}}function h(t,n,r,o,i){var c,a;if(r=(n=n.toLowerCase())in M?n:q(r||o||i||""),_&&!z&&!1===function(e){return 0===e.indexOf("data-")||0===e.indexOf("aria-")}(n)){if(!(c=V[n])&&k){for(a=k.length;a--&&!(c=k[a]).pattern.test(n););-1===a&&(c=null)}if(!c)return;if(c.validValues&&!(r in c.validValues))return}if(U[n]&&!e.allow_script_urls){var s=r.replace(/[\s\u0000-\u001F]+/g,"");try{s=decodeURIComponent(s)}catch(e){s=unescape(s)}if(W.test(s))return;if(function(e,t){return!e.allow_html_data_urls&&(/^data:image\//i.test(t)?!1===e.allow_svg_data_urls&&/^data:image\/svg\+xml/i.test(t):/^data:/i.test(t))}(e,s))return}z&&(n in U||0===n.indexOf("on"))||(v.map[n]=r,v.push({name:n,value:r}))}var f,d,m,v,p,g,b,z,y,C,M,w,_,x,H,S,L,V,k,A,T,E,D,N,O,I,P,R,B,j=0,F=[],$=0,q=nr.decode,U=Sn.makeMap("src,href,data,background,formaction,poster,xlink:href"),W=/((java|vb)script|mhtml):/i;for(O=new RegExp("<(?:(?:!--([\\w\\W]*?)--!?>)|(?:!\\[CDATA\\[([\\w\\W]*?)\\]\\]>)|(?:!DOCTYPE([\\w\\W]*?)>)|(?:\\?([^\\s\\/<>]+) ?([\\w\\W]*?)[?/]>)|(?:\\/([A-Za-z][A-Za-z0-9\\-_\\:\\.]*)>)|(?:([A-Za-z][A-Za-z0-9\\-_\\:\\.]*)((?:\\s+[^\"'>]+(?:(?:\"[^\"]*\")|(?:'[^']*')|[^>]*))*|\\/|\\s+)>))","g"),I=/([\w:\-]+)(?:\s*=\s*(?:(?:\"((?:[^\"])*)\")|(?:\'((?:[^\'])*)\')|([^>\s]+)))?/g,C=t.getShortEndedElements(),N=e.self_closing_elements||t.getSelfClosingElements(),M=t.getBoolAttrs(),_=e.validate,y=e.remove_internals,B=e.fix_self_closing,P=t.getSpecialElements(),D=n+">";f=O.exec(D);){if(jn.length){i(q(n.substr(f.index))),j=f.index+f[0].length;continue}":"===(d=d.toLowerCase()).charAt(0)&&(d=d.substr(1)),w=d in C,B&&N[d]&&0"===d.charAt(0)&&(d=" "+d),e.allow_conditional_comments||"[if"!==d.substr(0,3).toLowerCase()||(d=" "+d),r(d)):(d=f[2])?o(d.replace(//g,"")):(d=f[3])?l(d):(d=f[4])&&s(d,f[5]);j=f.index+f[0].length}for(j]*data-mce-bogus="all"[^>]*>/g,l=e.schema;for(a=function(e,t){var n=new RegExp(["\\s?("+e.join("|")+')="[^"]+"'].join("|"),"gi");return t.replace(n,"")}(e.getTempAttrs(),a),c=l.getShortEndedElements();i=s.exec(a);)r=s.lastIndex,o=i[0].length,n=c[i[1]]?r:Lu.findEndTag(l,a,r),a=a.substring(0,r-o)+a.substring(n),s.lastIndex=r-o;return ta(a)}function Zl(e,t,n){var r=e.getParam(t,n);if(-1===r.indexOf("="))return r;var o=e.getParam(t,"","hash");return o.hasOwnProperty(e.id)?o[e.id]:n}function Kl(e){var t,n,r,o,i,c=[];return t=(e=e||{}).indent,n=ch(e.indent_before||""),r=ch(e.indent_after||""),o=nr.getEncodeFunc(e.entity_encoding||"raw",e.entities),i="html"===e.element_format,{start:function(e,a,s){var l,u,h,f;if(t&&n[e]&&0":" />",s&&t&&r[e]&&0"),t&&r[e]&&0")},comment:function(e){c.push("\x3c!--",e,"--\x3e")},pi:function(e,n){n?c.push(""):c.push(""),t&&c.push("\n")},doctype:function(e){c.push("",t?"\n":"")},reset:function(){c.length=0},getContent:function(){return c.join("").replace(/\n$/,"")}}}function Jl(e,t){void 0===t&&(t=dr());var n=Kl(e);return(e=e||{}).validate=!("validate"in e)||e.validate,{serialize:function(r){var o,i;i=e.validate,o={3:function(e){n.text(e.value,e.raw)},8:function(e){n.comment(e.value)},7:function(e){n.pi(e.name,e.value)},10:function(e){n.doctype(e.value)},4:function(e){n.cdata(e.value)},11:function(e){if(e=e.firstChild)for(;c(e),e=e.next;);}},n.reset();var c=function(e){var r,a,s,l,u,h,f,d,m,v=o[e.type];if(v)v(e);else{if(r=e.name,a=e.shortEnded,s=e.attributes,i&&s&&1',"TABLE"===t.nodeName?n=""+i+"":/^(UL|OL)$/.test(t.nodeName)&&(n="
  • "+i+"
  • "),n=(o=Iu(e))&&e.schema.isValidChild(t.nodeName.toLowerCase(),o.toLowerCase())?(n=i,e.dom.createHTML(o,e.settings.forced_root_block_attrs,n)):n||'
    ',gu(e,n),e.fire("SetContent",r)):("raw"!==r.format&&(n=Jl({validate:e.validate},e.schema).serialize(e.parser.parse(n,{isRootContent:!0,insert:!0}))),r.content=$n(gt.fromDom(t))?n:Sn.trim(n),gu(e,r.content),r.no_events||e.fire("SetContent",r)),r.content}(e,r,t,n)})}function zu(e){return A.from(e).each(function(e){return e.destroy()})}function yu(e){return function(){for(var t=new Array(arguments.length),n=0;n")},Tu=function(e){return e.getParam("document_base_url","")},Eu=function(e){return Zl(e,"body_id","tinymce")},Du=function(e){return Zl(e,"body_class","")},Nu=function(e){return e.getParam("content_security_policy","")},Ou=function(e){return e.getParam("br_in_pre",!0)},Iu=function(e){if(e.getParam("force_p_newlines",!1))return"p";var t=e.getParam("forced_root_block","p");return!1===t?"":!0===t?"p":t},Pu=function(e){return e.getParam("forced_root_block_attrs",{})},Ru=function(e){return e.getParam("keep_styles",!0)},Bu=function(e){return e.getParam("end_container_on_empty_block",!1)},ju=function(e){return Sn.explode(e.getParam("font_size_style_values","xx-small,x-small,small,medium,large,x-large,xx-large"))},Fu=function(e){return Sn.explode(e.getParam("font_size_classes",""))},$u=function(e){return e.getParam("icons","","string")},qu=function(e){return e.getParam("icons_url","","string")},Uu=function(e){return e.getParam("images_dataimg_filter",r(!0),"function")},Wu=function(e){return e.getParam("automatic_uploads",!0,"boolean")},Yu=function(e){return e.getParam("images_reuse_filename",!1,"boolean")},Xu=function(e){return e.getParam("images_replace_blob_uris",!0,"boolean")},Gu=function(e){return e.getParam("images_upload_url","","string")},Qu=function(e){return e.getParam("images_upload_base_path","","string")},Zu=function(e){return e.getParam("images_upload_credentials",!1,"boolean")},Ku=function(e){return e.getParam("images_upload_handler",null,"function")},Ju=function(e){return e.getParam("content_css_cors",!1,"boolean")},eh=function(e){return e.getParam("referrer_policy","","string")},th=function(e){return e.getParam("language","en","string")},nh=function(e){return e.getParam("language_url","","string")},rh=function(e){return e.getParam("indent_use_margin",!1)},oh=function(e){return e.getParam("indentation","40px","string")},ih=function(e){var t=e.settings.content_css;return T(t)?F(t.split(","),ee):D(t)?t:!1===t||e.inline?[]:["default"]},ch=Sn.makeMap,ah=function(e,t){t(e),e.firstChild&&ah(e.firstChild,t),e.next&&ah(e.next,t)},sh=function(t){if(!D(t))throw new Error("cases must be an array");if(0===t.length)throw new Error("there must be at least one case");var n=[],r={};return z(t,function(o,i){var c=wt(o);if(1!==c.length)throw new Error("one and only one name per case");var a=c[0],s=o[a];if(void 0!==r[a])throw new Error("duplicate key detected:"+a);if("cata"===a)throw new Error("cannot have a case named cata (sorry)");if(!D(s))throw new Error("case arguments must be an array");n.push(a),r[a]=function(){var r=arguments.length;if(r!==s.length)throw new Error("Wrong number of arguments to case "+a+". Expected "+s.length+" ("+s+"), got "+r);for(var o=new Array(r),c=0;ce}(e,t)}}function Zf(e){return function(t){return function(e,t){return t.line===e}(e,t)}}function Kf(e,t){return Math.abs(e.left-t)}function Jf(e,t){return Math.abs(e.right-t)}function ed(e,t){return e>=t.left&&e<=t.right}function td(e,t){return _n.reduce(e,function(e,n){var r,o;return r=Math.min(Kf(e,t),Jf(e,t)),o=Math.min(Kf(n,t),Jf(n,t)),ed(t,n)?n:ed(t,e)?e:o===r&&Gd(n.node)?n:o=e.top&&n<=e.bottom}),t))&&td(function(e,t){function n(e,n){var o;return o=y(Of([n]),function(n){return!e(n,t)}),r=r.concat(o),0===o.length}var r=[];return r.push(t),nd(If.Up,e,i(n,Dc),t.node),nd(If.Down,e,i(n,Nc),t.node),r}(e,r),t))&&ns(r.node)?function(e,t){return{node:e.node,before:Kf(e,t)o&&(c=t.pageX+n-o),t.pageY+r>i&&(a=t.pageY+r-i),e.style.width=n-c+"px",e.style.height=r-a+"px"}(e.ghost,i,e.width,e.height,e.maxX,e.maxY),n(r.clientX,r.clientY)}}}(s,t),i=function(e,t){return function(n){if(e.dragging&&function(e,t,n){return t!==n&&!e.dom.isChildOf(t,n)&&!Jd(t)}(t,function(e){var n=t.selection.getSel().getRangeAt(0).startContainer;return 3===n.nodeType?n.parentNode:n}(),e.element)){var r=function(t){var n=e.element.cloneNode(!0);return n.removeAttribute("data-mce-selected"),n}(),o=t.fire("drop",{targetClone:r,clientX:n.clientX,clientY:n.clientY});o.isDefaultPrevented()||(r=o.targetClone,t.undoManager.transact(function(){id(e.element),t.insertContent(t.dom.getOuterHTML(r)),t._selectionOverrides.hideFakeCaret()}))}tm(e)}}(s,t),c=function(e,t){return function(){e.dragging&&t.fire("dragend"),tm(e)}}(s,t),t.on("mousedown",r),t.on("mousemove",o),t.on("mouseup",i),n.bind(a,"mousemove",o),n.bind(a,"mouseup",c),t.on("remove",function(){n.unbind(a,"mousemove",o),n.unbind(a,"mouseup",c)})}function ad(e,t,n,r,o){return t._selectionOverrides.showCaret(e,n,r,o)}function sd(e,t){return e.fire("BeforeObjectSelected",{target:t}).isDefaultPrevented()?null:function(e){var t=e.ownerDocument.createRange();return t.selectNode(e),t}(t)}function ld(e,t,n){var r=fs(1,e.getBody(),t),o=ys.fromRangeStart(r),i=o.getNode();if(om(i))return ad(1,e,i,!o.isAtEnd(),!1);var c=o.getNode(!0);if(om(c))return ad(1,e,c,!1,!1);var a=e.dom.getParent(o.getNode(),function(e){return om(e)||rm(e)});return om(a)?ad(1,e,a,!1,n):null}function ud(e,t,n){return t&&t.collapsed&&ld(e,t,n)||t}function hd(e,t){for(var n=e.getBody();t&&t!==n;){if(cm(t)||am(t))return t;t=t.parentNode}return null}function fd(e){function t(t){t&&e.selection.setRng(t)}function n(){return e.selection.getRng()}function r(t,n,r,o){return void 0===o&&(o=!0),e.fire("ShowCaret",{target:n,direction:t,before:r}).isDefaultPrevented()?null:(o&&e.selection.scrollIntoView(n,-1===t),a.show(r,n))}function o(e){return _c(e)||oa(e)||ia(e)}var i,c=e.getBody(),a=es(e.getBody(),function(t){return e.dom.isBlock(t)},function(){return Mh(e)}),s="sel-"+e.dom.uniqueId(),l=function(e){return o(e.startContainer)||o(e.endContainer)},u=function(t,n){var o,a,u,h,d,m,v,p,g,b,y=e.$,C=e.dom;if(!t)return null;if(t.collapsed){if(!l(t))if(!1===n){if(ns((p=ms(-1,c,t)).getNode(!0)))return r(-1,p.getNode(!0),!1,!1);if(ns(p.getNode()))return r(-1,p.getNode(),!p.isAtEnd(),!1)}else{if(ns((p=ms(1,c,t)).getNode()))return r(1,p.getNode(),!p.isAtEnd(),!1);if(ns(p.getNode(!0)))return r(1,p.getNode(!0),!1,!1)}return null}if(h=t.startContainer,d=t.startOffset,m=t.endOffset,3===h.nodeType&&0===d&&am(h.parentNode)&&(h=h.parentNode,d=C.nodeIndex(h),h=h.parentNode),1!==h.nodeType)return null;if(m===d+1&&h===t.endContainer&&(o=h.childNodes[d]),!am(o))return null;if(g=b=o.cloneNode(!0),(v=e.fire("ObjectSelected",{target:o,targetClone:g})).isDefaultPrevented())return null;a=vc(gt.fromDom(e.getBody()),"#"+s).fold(function(){return y([])},function(e){return y([e.dom()])}),g=v.targetClone,0===a.length&&(a=y('
    ').attr("id",s)).appendTo(e.getBody()),t=e.dom.createRng(),g===b&&Mn.ie?(a.empty().append('

     

    ').append(g),t.setStartAfter(a[0].firstChild.firstChild),t.setEndAfter(g)):(a.empty().append(" ").append(g).append(" "),t.setStart(a[0].firstChild,1),t.setEnd(a[0].lastChild,0)),a.css({top:C.getPos(o,e.getBody()).y}),a[0].focus(),(u=e.selection.getSel()).removeAllRanges(),u.addRange(t);var M=gt.fromDom(o);return z(sc(gt.fromDom(e.getBody()),"*[data-mce-selected]"),function(e){Ce(M,e)||ve(e,"data-mce-selected")}),e.dom.getAttrib(o,"data-mce-selected")||o.setAttribute("data-mce-selected","1"),i=o,f(),t},h=function(){i&&(i.removeAttribute("data-mce-selected"),vc(gt.fromDom(e.getBody()),"#"+s).each(ki),i=null),vc(gt.fromDom(e.getBody()),"#"+s).each(ki),i=null},f=function(){a.hide()};return Mn.ceFalse&&function(){var o,d;e.on("mouseup",function(r){var o=n();o.collapsed&&Uh(e,r.clientX,r.clientY)&&t(ld(e,o,!1))}),e.on("click",function(t){var n;(n=hd(e,t.target))&&(am(n)&&(t.preventDefault(),e.focus()),cm(n)&&e.dom.isChildOf(n,e.selection.getNode())&&h())}),e.on("blur NewBlock",function(){h()}),e.on("ResizeWindow FullscreenStateChanged",function(){return a.reposition()}),d=!1,(o=e).on("touchstart",function(){d=!1}),o.on("touchmove",function(){d=!0}),o.on("touchend",function(e){if(!d){var t=hd(o,e.target);am(t)&&(e.preventDefault(),u(sd(o,t)))}},!0),e.on("mousedown",function(n){var o,i=n.target;if((i===c||"HTML"===i.nodeName||e.dom.isChildOf(i,c))&&!1!==Uh(e,n.clientX,n.clientY))if(o=hd(e,i))am(o)?(n.preventDefault(),u(sd(e,o))):(h(),cm(o)&&n.shiftKey||Zd(n.clientX,n.clientY,e.selection.getRng())||(f(),e.selection.placeCaretAt(n.clientX,n.clientY)));else if(!1===ns(i)){h(),f();var a=rd(c,n.clientX,n.clientY);if(a&&!function(t,n){var r=e.dom.getParent(t,e.dom.isBlock),o=e.dom.getParent(n,e.dom.isBlock);return!(!r||!e.dom.isChildOf(r,o)||!1!==am(hd(e,r)))||r&&!function(t,n){return e.dom.getParent(t,e.dom.isBlock)===e.dom.getParent(n,e.dom.isBlock)}(r,o)&&function(e){var t=Us(e);if(!e.firstChild)return!1;var n=ys.before(e.firstChild),r=t.next(n);return r&&!Yf(r)&&!Xf(r)}(r)}(n.target,a.node)){n.preventDefault();var s=r(1,a.node,a.before,!1);e.getBody().focus(),t(s)}}}),e.on("keypress",function(t){Rf.modifierPressed(t)||(t.keyCode,am(e.selection.getNode())&&t.preventDefault())}),e.on("GetSelectionRange",function(e){var t=e.range;if(i){if(!i.parentNode)return void(i=null);(t=t.cloneRange()).selectNode(i),e.range=t}}),e.on("SetSelectionRange",function(t){t.range=function(t){var n=e.schema.getShortEndedElements(),r=e.dom.createRng(),o=t.startContainer,i=t.startOffset,c=t.endContainer,a=t.endOffset;return Ht(n,o.nodeName.toLowerCase())?0===i?r.setStartBefore(o):r.setStartAfter(o):r.setStart(o,i),Ht(n,c.nodeName.toLowerCase())?0===a?r.setEndBefore(c):r.setEndAfter(c):r.setEnd(c,a),r}(t.range);var n=u(t.range,t.forward);n&&(t.range=n)}),e.on("AfterSetSelectionRange",function(t){var n=t.range;l(n)||"mcepastebin"===n.startContainer.parentNode.id||f(),function(t){return e.dom.hasClass(t,"mce-offscreen-selection")}(n.startContainer.parentNode)||h()}),e.on("copy",function(t){var n=t.clipboardData;if(!t.isDefaultPrevented()&&t.clipboardData&&!Mn.ie){var r=function(){var t=e.dom.get(s);return t?t.getElementsByTagName("*")[0]:t}();r&&(t.preventDefault(),n.clearData(),n.setData("text/html",r.outerHTML),n.setData("text/plain",r.outerText))}}),nm(e),im(e)}(),{showCaret:r,showBlockCaretContainer:function(r){r.hasAttribute("data-mce-caret")&&(Lc(r),t(n()),e.selection.scrollIntoView(r))},hideFakeCaret:f,destroy:function(){a.destroy(),i=null}}}function dd(e){return Xe.isElement(e)?e.outerHTML:Xe.isText(e)?nr.encodeRaw(e.data,!1):Xe.isComment(e)?"\x3c!--"+e.data+"--\x3e":""}function md(e){return"fragmented"===e.type?e.fragments.join(""):e.content}function vd(t){var n=gt.fromTag("body",lm.get().getOrThunk(function(){var t=e.document.implementation.createHTMLDocument("undo");return lm.set(A.some(t)),t}));return Cc(n,md(t)),z(sc(n,"*[data-mce-bogus]"),Mi),n.dom().innerHTML}function pd(e){return 0===e.get()}function gd(e,t,n){pd(n)&&(e.typing=t)}function bd(e,t){e.typing&&(gd(e,!1,t),e.add())}function zd(e){var t,n=Ge(A.none()),r=Ge(0),o=Ge(0),i={data:[],typing:!1,beforeChange:function(){!function(e,t,n){pd(r)&&n.set(A.some(Ss.getUndoBookmark(e.selection)))}(e,0,n)},add:function(t,c){return function(e,t,n,r,o,i,c){var a=e.settings,s=um(e);if(i=i||{},i=Sn.extend(i,s),!1===pd(r)||e.removed)return null;var l=t.data[n.get()];if(e.fire("BeforeAddUndo",{level:i,lastLevel:l,originalEvent:c}).isDefaultPrevented())return null;if(l&&fm(l,i))return null;if(t.data[n.get()]&&o.get().each(function(e){t.data[n.get()].beforeBookmark=e}),a.custom_undo_redo_levels&&t.data.length>a.custom_undo_redo_levels){for(var u=0;u=e.data.length,i=0===t;e.replaceData(t,n,function(e,t,n){return M(e,function(r,o){return-1!==" \f\n\r\t\v".indexOf(o)||" "===o?r.previousCharIsSpace||""===r.str&&t||r.str.length===e.length-1&&n?{previousCharIsSpace:!1,str:r.str+" "}:{previousCharIsSpace:!0,str:r.str+" "}:{previousCharIsSpace:!1,str:r.str+o}},{previousCharIsSpace:!1,str:""}).str}(r,i,o))}}function Sd(e,t){var n=e.data.slice(t);return Hd(e,t,n.length-n.replace(/^\s+/g,"").length)}function Ld(e,t){return Vc(t)&&!1===function(e,t){return Xe.isText(t)&&/^[ \t\r\n]*$/.test(t.data)&&!1===function(e,t){var n=gt.fromDom(e);return function(e,t,n){return mc(e,"pre,code",n).isSome()}(gt.fromDom(t),0,i(Ce,n))}(e,t)}(e,t)||function(e){return Xe.isElement(e)&&"A"===e.nodeName&&e.hasAttribute("name")}(t)||zm(t)}function Vd(e,t){return function(e,t){var n=e.container(),r=e.offset();return!1===ys.isTextPosition(e)&&n===t.parentNode&&r>ys.before(t).offset()}(t,e)?ys(t.container(),t.offset()-1):t}function kd(e){return Vc(e.previousSibling)?A.some(function(e){return Xe.isText(e)?ys(e,e.data.length):ys.after(e)}(e.previousSibling)):e.previousSibling?_l.lastPositionIn(e.previousSibling):A.none()}function Ad(e){return Vc(e.nextSibling)?A.some(function(e){return Xe.isText(e)?ys(e,0):ys.before(e)}(e.nextSibling)):e.nextSibling?_l.firstPositionIn(e.nextSibling):A.none()}function Td(e,t,n){return function(e,t,n){return e?function(e,t){return Ad(t).orThunk(function(){return kd(t)}).orThunk(function(){return function(e,t){return _l.nextPosition(e,ys.after(t)).fold(function(){return _l.prevPosition(e,ys.before(t))},A.some)}(e,t)})}(t,n):function(e,t){return kd(t).orThunk(function(){return Ad(t)}).orThunk(function(){return function(e,t){var n=ys.before(t.previousSibling?t.previousSibling:t.parentNode);return _l.prevPosition(e,n).fold(function(){return _l.nextPosition(e,ys.after(t))},A.some)}(e,t)})}(t,n)}(e,t,n).map(i(Vd,n))}function Ed(e,t,n){n.fold(function(){e.focus()},function(n){e.selection.setRng(n.toRange(),t)})}function Dd(e,t){return t&&e.schema.getBlockElements().hasOwnProperty(oe(t))}function Nd(e){if(Mm(e)){var t=gt.fromHtml('
    ');return Ci(e),Vi(e,t),A.some(ys.before(t.dom()))}return A.none()}function Od(e,t,n){var r=xe(e).filter(Mt),o=He(e).filter(Mt);return ki(e),function(e,t,r,o){return e.isSome()&&t.isSome()&&r.isSome()?A.some(function(e,t,r){var o=e.dom(),i=t.dom(),c=o.data.length;return function(e,t,n){var r=te(e.data).length;e.appendData(t.data),ki(gt.fromDom(t)),n&&Sd(e,r)}(o,i,n),r.container()===i?ys(o,c):r}(e.getOrDie(),t.getOrDie(),r.getOrDie())):A.none()}(r,o,t).orThunk(function(){return n&&(r.each(function(e){return function(e,t){var n=e.data.slice(0,t),r=n.length-te(n).length;return Hd(e,t-r,r)}(e.dom(),e.dom().length)}),o.each(function(e){return Sd(e.dom(),0)})),t})}function Id(e){return 0")}(t=(n=x(function(e){return y(F(q(e.childNodes),dd),function(e){return 0'))},vm=function(e){Te(e).each(function(t){xe(t).each(function(n){On(e)&&kn(t)&&On(n)&&ki(t)})})},pm=Vl.isEq,gm=function(e,t,n,r,o){var i,c,a,s,l=e.formatter.get(n),u=e.dom;if(l&&t)for(c=0;c=r.nodeValue.length&&(r=new vi(r,e.getBody()).next()||r),Xe.isText(r)&&!n&&0===o&&(r=new vi(r,e.getBody()).prev()||r),r}function Tm(e,t,n,r){var o=e.create(n,r);return t.parentNode.insertBefore(o,t),o.appendChild(t),o}function Em(e,t,n,r,o){var i=gt.fromDom(t),c=gt.fromDom(e.create(r,o));return yi(c,n?Le(i):Se(i)),n?(gi(i,c),zi(c,i)):(bi(i,c),Vi(c,i)),c.dom()}function Dm(e,t,n,r){return!(t=Vl.getNonWhiteSpaceSibling(t,n,r))||"BR"===t.nodeName||e.isBlock(t)}function Nm(e,t,n,r,o){var i,c,a,s=e.dom;if(!function(e,t,n){return!!Wm(t,n.inline)||!!Wm(t,n.block)||(n.selector?Xe.isElement(t)&&e.is(t,n.selector):void 0)}(s,r,t)&&!function(e,n){return t.links&&"A"===e.tagName}(r))return!1;if("all"!==t.remove)for(Um(t.styles,function(e,i){e=Vl.normalizeStyleValue(s,Vl.replaceVars(e,n),i),"number"==typeof i&&(i=e,o=0),!t.remove_similar&&o&&!Wm(Vl.getStyle(s,o,i),e)||s.setStyle(r,i,""),a=1}),a&&""===s.getAttrib(r,"style")&&(r.removeAttribute("style"),r.removeAttribute("data-mce-style")),Um(t.attributes,function(e,i){var c;if(e=Vl.replaceVars(e,n),"number"==typeof i&&(i=e,o=0),t.remove_similar||!o||Wm(s.getAttrib(o,i),e)){if("class"===i&&(e=s.getAttrib(r,i))&&(c="",Um(e.split(/\s+/),function(e){/mce\-\w+/.test(e)&&(c+=(c?" ":"")+e)}),c))return void s.setAttrib(r,i,c);"class"===i&&r.removeAttribute("className"),qm.test(i)&&r.removeAttribute("data-mce-"+i),r.removeAttribute(i)}}),Um(t.classes,function(e){e=Vl.replaceVars(e,n),o&&!s.hasClass(o,e)||s.removeClass(r,e)}),c=s.getAttribs(r),i=0;i
    ").append(t.childNodes)}(e.previousSibling,e)}))},Hm["pre"]||(Hm.pre=[]),Hm.pre.push(Wd);var $m=Sn.each,qm=/^(src|href|style)$/,Um=Sn.each,Wm=Vl.isEq,Ym=Nm,Xm=function(e,t,n,r,o){function i(r){var i=function(e,t,n,r,o){var i;return Um(Vl.getParents(e.dom,t.parentNode).reverse(),function(t){var c;i||"_start"===t.id||"_end"===t.id||(c=bm.matchNode(e,t,n,r,o))&&!1!==c.split&&(i=t)}),i}(e,r,t,n,o);return function(e,t,n,r,o,i,c,a){var s,l,u,h,f,d,m=e.dom;if(n){for(d=n.parentNode,s=r.parentNode;s&&s!==d;s=s.parentNode){for(l=m.clone(s,!1),f=0;f)\s*/g,"$1"),Sn.map(e.split(/(?:>|\s+(?![^\[\]]+\]))/),function(e){var t=Sn.map(e.split(/(?:~\+|~|\+)/),hv),n=t.pop();return t.length&&(n.siblings=t),n}).reverse()):[]}(t.selector)).length?(i[0].name||(i[0].name=n),n=t.selector,uv(i,e)):uv([n],e),o=Cv.select(n,r)[0]||r.firstChild,yv(t.styles,function(e,t){(e=l(e))&&Cv.setStyle(o,t,e)}),yv(t.attributes,function(e,t){(e=l(e))&&Cv.setAttrib(o,t,e)}),yv(t.classes,function(e){e=l(e),Cv.hasClass(o,e)||Cv.addClass(o,e)}),e.fire("PreviewFormats"),Cv.setStyles(r,{position:"absolute",left:-65535}),e.getBody().appendChild(r),c=Cv.getStyle(e.getBody(),"fontSize",!0),c=/px$/.test(c)?parseInt(c,10):0,yv(a.split(" "),function(t){var n=Cv.getStyle(o,t,!0);if(!("background-color"===t&&/transparent|rgba\s*\([^)]+,\s*0\)/.test(n)&&(n=Cv.getStyle(e.getBody(),t,!0),"#ffffff"===Cv.toHex(n).toLowerCase())||"color"===t&&"#000000"===Cv.toHex(n).toLowerCase())){if("font-size"===t&&/em|%$/.test(n)){if(0===c)return;n=parseFloat(n)/(/%$/.test(n)?100:1)*c+"px"}"border"===t&&n&&(s+="padding:0 2px;"),s+=t+":"+n+";"}}),e.fire("AfterPreviewFormats"),Cv.remove(r),s)},wv=function(e,t,n,r,o){var i=t.get(n);!bm.match(e,n,r,o)||"toggle"in i[0]&&!i[0].toggle?cv.applyFormat(e,n,r,o):Xm(e,n,r,o)},_v=function(e){e.addShortcut("meta+b","","Bold"),e.addShortcut("meta+i","","Italic"),e.addShortcut("meta+u","","Underline");for(var t=1;t<=6;t++)e.addShortcut("access+"+t,"",["FormatBlock",!1,"h"+t]);e.addShortcut("access+7","",["FormatBlock",!1,"p"]),e.addShortcut("access+8","",["FormatBlock",!1,"div"]),e.addShortcut("access+9","",["FormatBlock",!1,"address"])},xv=function(e,t,n){e.addAttributeFilter("data-mce-tabindex",function(e,t){for(var n,r=e.length;r--;)(n=e[r]).attr("tabindex",n.attr("data-mce-tabindex")),n.attr(t,null)}),e.addAttributeFilter("src,href,style",function(e,r){for(var o,i,c=e.length,a="data-mce-"+r,s=t.url_converter,l=t.url_converter_scope;c--;)void 0!==(i=(o=e[c]).attr(a))?(o.attr(r,0)/g,"\n").replace(/^[\r\n]*|[\r\n]*$/g,"").replace(/^\s*(()?|\s*\/\/\s*\]\]>(-->)?|\/\/\s*(-->)?|\]\]>|\/\*\s*-->\s*\*\/|\s*-->\s*)\s*$/g,"")};c--;)o=(r=e[c]).firstChild?r.firstChild.value:"","script"===n?((i=r.attr("type"))&&r.attr("type","mce-no/type"===i?null:i.replace(/^mce\-/,"")),"xhtml"===t.element_format&&0")):"xhtml"===t.element_format&&0_(c)?(g=x(p*m),p=x(g/m)):(p=x(g/m),g=x(p*m))),y.setStyles(V(o),{width:p,height:g}),C=0<(C=a.startPos.x+t)?C:0,M=0<(M=a.startPos.y+c)?M:0,y.setStyles(i,{left:C,top:M,display:"block"}),i.innerHTML=p+" × "+g,a[2]<0&&o.clientWidth<=p&&y.setStyle(o,"left",u+(f-p)),a[3]<0&&o.clientHeight<=g&&y.setStyle(o,"top",h+(d-g)),(t=H.scrollWidth-b)+(c=H.scrollHeight-z)!=0&&y.setStyles(i,{left:C-t,top:M-c}),v||(Lh(n,r,f,d),v=!0)}function T(e){function r(e,t){if(e)do{if(e===t)return!0}while(e=e.parentNode)}var o;v||n.removed||(C(y.select("img[data-mce-selected],hr[data-mce-selected]"),function(e){e.removeAttribute("data-mce-selected")}),o="mousedown"===e.type?e.target:t.getNode(),r(o=y.$(o).closest("table,img,figure.image,hr")[0],H)&&(P(),r(t.getStart(!0),o)&&r(t.getEnd(!0),o))?N(o):O())}function E(e){return Iv(function(e,t){for(;t&&t!==e;){if(Pv(t)||Iv(t))return t;t=t.parentNode}return null}(n.getBody(),e))}c={nw:[0,0,-1,-1],ne:[1,0,1,-1],se:[1,1,1,1],sw:[0,1,-1,1]};var D=function(){function e(e,t){t&&(r.style[e]||!n.schema.isValid(r.nodeName.toLowerCase(),e)?y.setStyle(V(r),e,t):y.setAttrib(V(r),e,t))}v=!1,e("width",p),e("height",g),y.unbind(M,"mousemove",A),y.unbind(M,"mouseup",D),w!==M&&(y.unbind(w,"mousemove",A),y.unbind(w,"mouseup",D)),y.remove(o),y.remove(i),N(r),Vh(n,r,p,g),y.setAttrib(r,"style",y.getAttrib(r,"style")),n.nodeChanged()},N=function(e){var t,v,_,x,S;O(),I(),t=y.getPos(e,H),u=t.x,h=t.y,S=e.getBoundingClientRect(),v=S.width||S.right-S.left,_=S.height||S.bottom-S.top,r!==e&&(r=e,p=g=0),x=n.fire("ObjectSelected",{target:e}),k(e)&&!x.isDefaultPrevented()?C(c,function(e,t){var n;(n=y.get("mceResizeHandle"+t))&&y.remove(n),n=y.add(H,"div",{id:"mceResizeHandle"+t,"data-mce-bogus":"all",class:"mce-resizehandle",unselectable:!0,style:"cursor:"+t+"-resize; margin:0; padding:0"}),11===Mn.ie&&(n.contentEditable=!1),y.bind(n,"mousedown",function(t){t.stopImmediatePropagation(),t.preventDefault(),function(t){s=t.screenX,l=t.screenY,f=V(r).clientWidth,d=V(r).clientHeight,m=d/f,(a=e).startPos={x:v*e[0]+u,y:_*e[1]+h},b=H.scrollWidth,z=H.scrollHeight,o=r.cloneNode(!0),y.addClass(o,"mce-clonedresizable"),y.setAttrib(o,"data-mce-bogus","all"),o.contentEditable=!1,o.unSelectabe=!0,y.setStyles(o,{left:u,top:h,margin:0}),o.removeAttribute("data-mce-selected"),H.appendChild(o),y.bind(M,"mousemove",A),y.bind(M,"mouseup",D),w!==M&&(y.bind(w,"mousemove",A),y.bind(w,"mouseup",D)),i=y.add(H,"div",{class:"mce-resize-helper","data-mce-bogus":"all"},f+" × "+d)}(t)}),e.elm=n,y.setStyles(n,{left:v*e[0]+u-n.offsetWidth/2,top:_*e[1]+h-n.offsetHeight/2})}):O(),r.setAttribute("data-mce-selected","1")},O=function(){var e,t;for(e in I(),r&&r.removeAttribute("data-mce-selected"),c)(t=y.get("mceResizeHandle"+e))&&(y.unbind(t),y.remove(t))},I=function(){for(var e in c){var t=c[e];t.elm&&(y.unbind(t.elm),delete t.elm)}},P=function(){try{n.getDoc().execCommand("enableObjectResizing",!1,!1)}catch(e){}};return n.on("init",function(){P(),(Mn.browser.isIE()||Mn.browser.isEdge())&&(n.on("mousedown click",function(e){var t=e.target,r=t.nodeName;v||!/^(TABLE|IMG|HR)$/.test(r)||E(t)||(2!==e.button&&n.selection.select(t,"TABLE"===r),"mousedown"===e.type&&n.nodeChanged())}),n.dom.bind(H,"mscontrolselect",function(e){function t(e){dn.setEditorTimeout(n,function(){n.selection.select(e)})}if(E(e.target))return e.preventDefault(),void t(e.target);/^(TABLE|IMG|HR)$/.test(e.target.nodeName)&&(e.preventDefault(),"IMG"===e.target.tagName&&t(e.target))}));var e=dn.throttle(function(e){n.composing||T(e)});n.on("nodechange ResizeEditor ResizeWindow drop FullscreenStateChanged",e),n.on("keyup compositionend",function(t){r&&"TABLE"===r.nodeName&&e(t)}),n.on("hide blur",O),n.on("contextmenu longpress",L,!0)}),n.on("remove",I),{isResizable:k,showResizeRect:N,hideResizeRect:O,updateResizeRect:T,destroy:function(){r=o=null}}}(Dv=Dv||{}).isBookmarkNode=Sl;var Ov=Dv,Iv=Xe.isContentEditableFalse,Pv=Xe.isContentEditableTrue;function Rv(e){return"textarea"===oe(e)}function Bv(e,t){var n=function(e){var t=e.dom().ownerDocument,n=t.body,r=t.defaultView,o=t.documentElement;if(n===e.dom())return Ti(n.offsetLeft,n.offsetTop);var i=wi(r.pageYOffset,o.scrollTop),c=wi(r.pageXOffset,o.scrollLeft),a=wi(o.clientTop,n.clientTop),s=wi(o.clientLeft,n.clientLeft);return Ei(e).translate(c-s,i-a)}(e),r=function(e){return gp.get(e)}(e);return{element:e,bottom:n.top()+r,pos:n,cleanup:t}}function jv(e){return Bv(gt.fromDom(e),t)}function Fv(e,t,n,r){Cp(e,function(o,i){return yp(e,t,n,r)},n)}function $v(e,t,n,r){var o=gt.fromDom(e.getDoc());n(o,_i(o).top(),t,r)}function qv(e,t,n,r){var o=e.pos;if(n)xi(o.left(),o.top(),r);else{var i=o.top()-t+(e.bottom-o.top());xi(o.left(),i,r)}}function Uv(e,t,n,r,o){r.pos.top()n+t&&qv(r,n,!0===o,e)}function Wv(e,t,n,r){var o=e.dom().defaultView.innerHeight;Uv(e,t,o,n,r)}function Yv(t,n,r,o,i){var c=n.dom().defaultView.innerHeight;Uv(n,r,c,o,i);var a=function(t){var n=_i(gt.fromDom(e.document)),r=function(e,t){var n=t.owner(e);return bp(t,n)}(t,zp),o=Ei(t),i=C(r,function(e,t){var n=Ei(t);return{left:e.left+n.left(),top:e.top+n.top()}},{left:0,top:0});return Ti(i.left+o.left()+n.left(),i.top+o.top()+n.top())}(o.element),s=Ni(e.window);a.top()s.bottom()&&Hi(o.element,!0===i)}function Xv(e){return Xe.isContentEditableTrue(e)||Xe.isContentEditableFalse(e)}function Gv(t,n){var r=(n||e.document).createDocumentFragment();return z(t,function(e){r.appendChild(e.dom())}),gt.fromDom(r)}function Qv(e,t){var n=parseInt(me(e,t),10);return isNaN(n)?1:n}function Zv(e){return M(e,function(e,t){return t.cells().length>e?t.cells().length:e},0)}function Kv(e,t){for(var n=e.rows(),r=0;ro.childNodes.length-1&&(s=!1),Xe.isDocument(o)&&(o=h,i=0),o===h){if(s&&(c=o.childNodes[0'+ea+"");return gi(n.element,r),Bv(r,function(){return ki(r)})}(gt.fromDom(n.startContainer),n.startOffset);t(i,c,a,r),a.cleanup()},Cp=function(e,t,n){var r=n.startContainer,o=n.startOffset,i=n.endContainer,c=n.endOffset;t(gt.fromDom(r),gt.fromDom(i));var a=e.dom.createRng();a.setStart(r,o),a.setEnd(i,c),e.selection.setRng(n)},Mp=function(e,t,n){!function(e,t,n){return e.fire("ScrollIntoView",{elm:t,alignToTop:n}).isDefaultPrevented()}(e,t,n)&&(e.inline?function(e,t,n){return $v(e,jv(t),i(Wv),n)}:function(e,t,n){return $v(e,jv(t),i(Yv,e),n)})(e,t,n)},wp=function(e,t,n){(e.inline?function(e,t,n){return Fv(e,i(Wv),t,n)}:function(e,t,n){return Fv(e,i(Yv,e),t,n)})(e,t,n)},_p=function(e,t,n){var r,o,i=n;if(i.caretPositionFromPoint)(o=i.caretPositionFromPoint(e,t))&&((r=n.createRange()).setStart(o.offsetNode,o.offset),r.collapse(!0));else if(n.caretRangeFromPoint)r=n.caretRangeFromPoint(e,t);else if(i.body.createTextRange){r=i.body.createTextRange();try{r.moveToPoint(e,t),r.collapse(!0)}catch(o){r=function(e,t,n){var r,o,i;if(r=n.elementFromPoint(e,t),o=n.body.createTextRange(),r&&"HTML"!==r.tagName||(r=n.body),o.moveToElementText(r),0<(i=(i=Sn.toArray(o.getClientRects())).sort(function(e,n){return(e=Math.abs(Math.max(e.top-t,e.bottom-t)))-Math.abs(Math.max(n.top-t,n.bottom-t))})).length){t=(i[0].bottom+i[0].top)/2;try{return o.moveToPoint(e,t),o.collapse(!0),o}catch(e){}}return null}(e,t,n)}return function(e,t){var n=e&&e.parentElement?e.parentElement():null;return Xe.isContentEditableFalse(function(e,t,n){for(;e&&e!==t;){if(n(e))return e;e=e.parentNode}return null}(n,t,Xv))?null:e}(r,n.body)}return r},xp=function(e,t){return F(t,function(t){var n=e.fire("GetSelectionRange",{range:t});return n.range!==t?n.range:t})},Hp=be("element","width","rows"),Sp=be("element","cells"),Lp=be("x","y"),Vp=function(e){var t=Hp(zc(e),0,[]);return z(sc(e,"tr"),function(e,n){z(sc(e,"td,th"),function(r,o){!function(e,t,n,r,o){for(var i=Qv(o,"rowspan"),c=Qv(o,"colspan"),a=e.rows(),s=n;sn.clientHeight){t=n;break}n=n.parentNode}return t},scrollIntoView:function(e,t){return Mp(r,e,t)},placeCaretAt:function(e,t){return m(_p(e,t,r.getDoc()))},getBoundingClientRect:function(){var e=d();return e.collapsed?ys.fromRangeStart(e).getClientRects()[0]:e.getBoundingClientRect()},destroy:function(){t=s=l=null,a.destroy()}};return c=Ov(v),a=Nv(v,r),v.bookmarkManager=c,v.controlSelection=a,v}function qp(e){return yg(e)&&e.data[0]===ea}function Up(e){return yg(e)&&e.data[e.data.length-1]===ea}function Wp(e){return e.ownerDocument.createTextNode(ea)}function Yp(e,t){return e?function(e){if(yg(e.previousSibling))return Up(e.previousSibling)||e.previousSibling.appendData(ea),e.previousSibling;if(yg(e))return qp(e)||e.insertData(0,ea),e;var t=Wp(e);return e.parentNode.insertBefore(t,e),t}(t):function(e){if(yg(e.nextSibling))return qp(e.nextSibling)||e.nextSibling.insertData(0,ea),e.nextSibling;if(yg(e))return Up(e)||e.appendData(ea),e;var t=Wp(e);return e.nextSibling?e.parentNode.insertBefore(t,e.nextSibling):e.parentNode.appendChild(t),t}(t)}function Xp(e,t){return Xe.isText(e.container())?Yp(t,e.container()):Yp(t,e.getNode())}function Gp(e,t){var n=t.get();return n&&e.container()===n&&wc(n)}function Qp(e,t){if(!t)return t;var n=t.container(),r=t.offset();return e?wc(n)?Xe.isText(n.nextSibling)?ys(n.nextSibling,0):ys.after(n):Hc(t)?ys(n,r+1):t:wc(n)?Xe.isText(n.previousSibling)?ys(n.previousSibling,n.previousSibling.data.length):ys.before(n):Sc(t)?ys(n,r-1):t}function Zp(e,t){return as(t,e)||e}function Kp(e,t,n){var r=xg.normalizeForwards(n),o=Zp(t,r.container());return xg.findRootInline(e,o,r).fold(function(){return _l.nextPosition(o,r).bind(i(xg.findRootInline,e,o)).map(function(e){return Sg.before(e)})},A.none)}function Jp(e,t){return null===Xa(e,t)}function eg(e,t,n){return xg.findRootInline(e,t,n).filter(i(Jp,t))}function tg(e,t,n){var r=xg.normalizeBackwards(n);return eg(e,t,r).bind(function(e){return _l.prevPosition(e,r).isNone()?A.some(Sg.start(e)):A.none()})}function ng(e,t,n){var r=xg.normalizeForwards(n);return eg(e,t,r).bind(function(e){return _l.nextPosition(e,r).isNone()?A.some(Sg.end(e)):A.none()})}function rg(e,t,n){var r=xg.normalizeBackwards(n),o=Zp(t,r.container());return xg.findRootInline(e,o,r).fold(function(){return _l.prevPosition(o,r).bind(i(xg.findRootInline,e,o)).map(function(e){return Sg.after(e)})},A.none)}function og(e){return!1===xg.isRtl(Lg(e))}function ig(e,t,n){return Hg([Kp,tg,ng,rg],[e,t,n]).filter(og)}function cg(e){return e.fold(r("before"),r("start"),r("end"),r("after"))}function ag(e){return e.fold(Sg.before,Sg.before,Sg.after,Sg.after)}function sg(e,t,n,r,o,i){return Bc(xg.findRootInline(t,n,r),xg.findRootInline(t,n,o),function(t,r){return t!==r&&xg.hasSameParentBlock(n,t,r)?Sg.after(e?t:r):i}).getOr(i)}function lg(e,t){return e.fold(r(!0),function(e){return!function(e,t){return cg(e)===cg(t)&&Lg(e)===Lg(t)}(e,t)})}function ug(e,t){return e?t.fold(n(A.some,Sg.start),A.none,n(A.some,Sg.after),A.none):t.fold(A.none,n(A.some,Sg.before),A.none,n(A.some,Sg.end))}function hg(e,t,n,r){var o=xg.normalizePosition(e,r),c=ig(t,n,o);return ig(t,n,o).bind(i(ug,e)).orThunk(function(){return function(e,t,n,r,o){var c=xg.normalizePosition(e,o);return _l.fromPosition(e,n,c).map(i(xg.normalizePosition,e)).fold(function(){return r.map(ag)},function(o){return ig(t,n,o).map(i(sg,e,t,n,c,o)).filter(i(lg,r))}).filter(og)}(e,t,n,c,r)})}function fg(e,t,n){var r=e?1:-1;return t.setRng(ys(n.container(),n.offset()+r).toRange()),t.getSel().modify("move",e?"forward":"backward","word"),!0}function dg(e,t){var n=e.dom.createRng();n.setStart(t.container(),t.offset()),n.setEnd(t.container(),t.offset()),e.selection.setRng(n)}function mg(e){return!1!==e.settings.inline_boundaries}function vg(e,t){e?t.setAttribute("data-mce-selected","inline-boundary"):t.removeAttribute("data-mce-selected")}function pg(e,t,n){return wg(t,n).map(function(t){return dg(e,t),n})}function gg(e,t,n){return function(){return!!mg(t)&&Eg(e,t)}}var bg,zg,yg=Xe.isText,Cg=i(Yp,!0),Mg=i(Yp,!1),wg=function(e,t){return t.fold(function(t){Ts.remove(e.get());var n=Cg(t);return e.set(n),A.some(ys(n,n.length-1))},function(t){return _l.firstPositionIn(t).map(function(t){if(Gp(t,e))return ys(e.get(),1);Ts.remove(e.get());var n=Xp(t,!0);return e.set(n),ys(n,1)})},function(t){return _l.lastPositionIn(t).map(function(t){if(Gp(t,e))return ys(e.get(),e.get().length-1);Ts.remove(e.get());var n=Xp(t,!1);return e.set(n),ys(n,n.length-1)})},function(t){Ts.remove(e.get());var n=Mg(t);return e.set(n),A.some(ys(n,1))})},_g=/[\u0591-\u07FF\uFB1D-\uFDFF\uFE70-\uFEFC]/,xg={isInlineTarget:function(e,t){return ze(gt.fromDom(t),function(e){return e.getParam("inline_boundaries_selector","a[href],code,.mce-annotation","string")}(e))},findRootInline:function(e,t,n){var r=function(e,t,n){return y(Ui.DOM.getParents(n.container(),"*",t),e)}(e,t,n);return A.from(r[r.length-1])},isRtl:function(e){return"rtl"===Ui.DOM.getStyle(e,"direction",!0)||function(e){return _g.test(e)}(e.textContent)},isAtZwsp:function(e){return Hc(e)||Sc(e)},normalizePosition:Qp,normalizeForwards:i(Qp,!0),normalizeBackwards:i(Qp,!1),hasSameParentBlock:function(e,t,n){var r=as(t,e),o=as(n,e);return r&&r===o}},Hg=function(e,t){for(var n=0;n'),t}(e),1===t?e.$(r).after(o):e.$(r).before(o),e.selection.select(o,!0),e.selection.collapse())}}function jg(e,t){return function(){var n=function(e,t){var n,r=Us(e.getBody()),o=i(ps,r.next),c=i(ps,r.prev),a=t?bs.Forwards:bs.Backwards,s=t?o:c,l=e.selection.getRng();return(n=function(e,t,n,r){var o=e===bs.Forwards,i=o?Yf:Xf;if(!r.collapsed){var c=hy(r);if(uy(c))return ad(e,t,c,e===bs.Backwards,!0)}var a=Mc(r.startContainer),s=ms(e,t.getBody(),r);if(i(s))return sd(t,s.getNode(!o));var l=xg.normalizePosition(o,n(s));if(!l)return a?r:null;if(i(l))return ad(e,t,l.getNode(!o),o,!0);var u=n(l);return u&&i(u)&&gs(l,u)?ad(e,t,u.getNode(!o),o,!0):a?ud(t,l.toRange(),!0):null}(a,e,s,l))?n:(n=Bg(e,a,l))||null}(e,t);return!!n&&(e.selection.setRng(n),!0)}}function Fg(e,t){return function(){var n=function(e,t){var n,r=t?1:-1,o=t?Xd:Yd,i=e.selection.getRng();return(n=function(e,t,n,r){var o,i,c,a,s,l,u,h;if(h=hy(r),o=ms(e,t.getBody(),r),i=y(n(t.getBody(),Qf(1),o),Zf(1)),a=_n.last(o.getClientRects()),(Yf(o)||Uf(o))&&(h=o.getNode()),(Xf(o)||Wf(o))&&(h=o.getNode(!0)),!a)return null;if((c=td(i,s=a.left))&&uy(c.node))return l=Math.abs(s-c.left),u=Math.abs(s-c.right),ad(e,t,c.node,lt}),my=i(Wg,cy),vy=i(Wg,ay),py=function(e){for(var t=[],n=1;na.childNodes.length-1,a=a.childNodes[Math.min(s,a.childNodes.length-1)]||a,s=g&&Xe.isText(a)?a.nodeValue.length:0),(c=oz(b,a))&&((p&&!u||!p&&u)&&(a=function(e,t,n,r,o){var i,c,a,s,l,u,h=p||"P",f=e.dom,d=oz(f,r);if(!(c=f.getParent(r,f.isBlock))||!nz(f,c)){if(u=(c=c||d)===e.getBody()||c&&/^(TD|TH|CAPTION)$/.test(c.nodeName)?c.nodeName.toLowerCase():c.parentNode.nodeName.toLowerCase(),!c.hasChildNodes())return iz(e,i=f.create(h)),c.appendChild(i),n.setStart(i,0),n.setEnd(i,0),i;for(s=r;s.parentNode!==c;)s=s.parentNode;for(;s&&!f.isBlock(s);)s=(a=s).previousSibling;if(a&&e.schema.isValidChild(u,h.toLowerCase())){for(iz(e,i=f.create(h)),a.parentNode.insertBefore(i,a),s=a;s&&!f.isBlock(s);)l=s.nextSibling,i.appendChild(s),s=l;n.setStart(r,o),n.setEnd(r,o)}}return r}(e,0,M,a,s)),l=b.getParent(a,b.isBlock),d=l?b.getParent(l.parentNode,b.isBlock):null,m=l?l.nodeName.toUpperCase():"","LI"!==(v=d?d.nodeName.toUpperCase():"")||w||(d=(l=d).parentNode,m=v),/^(LI|DT|DD)$/.test(m)&&b.isEmpty(l)?function(e,t,n,r,o){var i=e.dom,c=e.selection.getRng();if(n!==e.getBody()){!function(e){return Zb(e)&&Zb(e.parentNode)}(n)||(o="LI");var a=o?t(o):i.create("BR");if(Jb(n,r,!0)&&Jb(n,r,!1))Qb(n,"LI")?i.insertAfter(a,Kb(n)):i.replace(a,n);else if(Jb(n,r,!0))Qb(n,"LI")?(i.insertAfter(a,Kb(n)),a.appendChild(i.doc.createTextNode(" ")),a.appendChild(n)):n.parentNode.insertBefore(a,n);else if(Jb(n,r,!1))i.insertAfter(a,Kb(n));else{n=Kb(n);var s=c.cloneRange();s.setStartAfter(r),s.setEndAfter(n);var l=s.extractContents();"LI"===o&&function(e,t){return e.firstChild&&"LI"===e.firstChild.nodeName}(l)?(a=l.firstChild,i.insertAfter(l,n)):(i.insertAfter(l,n),i.insertAfter(a,n))}i.remove(r),Wy(e,a)}}(e,n,d,l,p):p&&l===e.getBody()||(p=p||"P",Mc(l)?(h=Lc(l),b.isEmpty(l)&&ez(l),Wy(e,h)):r()?o():r(!0)?(h=l.parentNode.insertBefore(n(),l),Wy(e,tz(l,"HR")?h:l)):((i=function(e){var t=e.cloneRange();return t.setStart(e.startContainer,rz(!0,e.startContainer,e.startOffset)),t.setEnd(e.endContainer,rz(!1,e.endContainer,e.endOffset)),t}(M).cloneRange()).setEndAfter(l),function(e){z(uc(gt.fromDom(e),Mt),function(e){var t=e.dom();t.nodeValue=ta(t.nodeValue)})}(f=i.extractContents()),function(e){for(;Xe.isText(e)&&(e.nodeValue=e.nodeValue.replace(/^[\r\n]+/,"")),e=e.firstChild;);}(f),h=f.firstChild,b.insertAfter(f,l),function(e,t,n){var r,o=h,i=[];if(o){for(;o=o.firstChild;){if(e.isBlock(o))return;Xe.isElement(o)&&!t[o.nodeName.toLowerCase()]&&i.push(o)}for(r=i.length;r--;)!(o=i[r]).hasChildNodes()||o.firstChild===o.lastChild&&""===o.firstChild.nodeValue?e.remove(o):(c=e,(a=o)&&"A"===a.nodeName&&c.isEmpty(a)&&e.remove(o));var c,a}}(b,C),function(e,t){var n;t.normalize(),(n=t.lastChild)&&!/^(left|right)$/gi.test(e.getStyle(n,"float",!0))||e.add(t,"br")}(b,l),b.isEmpty(l)&&ez(l),h.normalize(),b.isEmpty(h)?(b.remove(h),o()):Wy(e,h)),b.setAttrib(h,"id",""),e.fire("NewBlock",{newBlock:h})))},Ky=function(e,t){return!!function(e){return Xe.isBr(e.getNode())}(ys.after(t))||_l.nextPosition(e,ys.after(t)).map(function(e){return Xe.isBr(e.getNode())}).getOr(!1)},Jy=function(e,t){var n=function(e){var t=i(xg.isInlineTarget,e),n=ys.fromRangeStart(e.selection.getRng());return Vg(t,e.getBody(),n).filter(hz)}(e);n.isSome()?n.each(i(fz,e)):function(e,t){var n,r,o=e.selection,i=e.dom,c=o.getRng();Rp(i,c).each(function(e){c.setStart(e.startContainer,e.startOffset),c.setEnd(e.endContainer,e.endOffset)});var a=c.startOffset,s=c.startContainer;if(1===s.nodeType&&s.hasChildNodes()){var l=a>s.childNodes.length-1;s=s.childNodes[Math.min(a,s.childNodes.length-1)]||s,a=l&&3===s.nodeType?s.nodeValue.length:0}var u=i.getParent(s,i.isBlock),h=u?i.getParent(u.parentNode,i.isBlock):null,f=h?h.nodeName.toUpperCase():"",d=!(!t||!t.ctrlKey);"LI"!==f||d||(u=h),s&&3===s.nodeType&&a>=s.nodeValue.length&&!function(e,t,n){for(var r,o=new vi(s,u),i=e.getNonEmptyElements();r=o.next();)if(i[r.nodeName.toLowerCase()]||0",Tu(e)!==e.documentBaseUrl&&(r+=''),r+='',t=Eu(e),n=Du(e),Nu(e)&&(r+=''),r+'
    '}(t),uC.add(n.iframeContainer,o),i}(t,n);n.editorContainer&&(uC.get(n.editorContainer).style.display=t.orgDisplay,t.hidden=uC.isHidden(n.editorContainer)),t.getElement().style.display="none",uC.setAttrib(t.id,"aria-hidden","true"),r||lC(t)},fC=Ui.DOM,dC=function(e,t,n){var r=rf.get(n),o=rf.urls[n]||e.documentBaseUrl.replace(/\/$/,"");if(n=Sn.trim(n),r&&-1===Sn.inArray(t,n)){if(Sn.each(rf.dependencies(n),function(n){dC(e,t,n)}),e.plugins[n])return;try{var i=new r(e,o,e.$);(e.plugins[n]=i).init&&(i.init(e,o),t.push(n))}catch(t){tf.pluginInitError(e,n,t)}}},mC=function(e){e.fire("ScriptsLoaded"),function(e){var t=Sn.trim(e.settings.icons),n=e.ui.registry.getAll().icons;ce(U(U({},{"accessibility-check":'',"action-next":'',"action-prev":'',"align-center":'',"align-justify":'',"align-left":'',"align-none":'',"align-right":'',"arrow-left":'',"arrow-right":'',bold:'',bookmark:'',"border-width":'',brightness:'',browse:'',cancel:'',"change-case":'',"character-count":'',"checklist-rtl":'',checklist:'',checkmark:'',"chevron-down":'',"chevron-left":'',"chevron-right":'',"chevron-up":'',close:'',"code-sample":'',"color-levels":'',"color-picker":'',"color-swatch-remove-color":'',"color-swatch":'',"comment-add":'',comment:'',contrast:'',copy:'',crop:'',cut:'',"document-properties":'',drag:'',duplicate:'',"edit-block":'',"edit-image":'',"embed-page":'',embed:'',emoji:'',fill:'',"flip-horizontally":'',"flip-vertically":'',"format-painter":'',fullscreen:'',gallery:'',gamma:'',help:'',"highlight-bg-color":'',home:'',"horizontal-rule":'',"image-options":'',image:'',indent:'',info:'',"insert-character":'',"insert-time":'',invert:'',italic:'',line:'',link:'',"list-bull-circle":'',"list-bull-default":'',"list-bull-square":'',"list-num-default-rtl":'',"list-num-default":'',"list-num-lower-alpha-rtl":'',"list-num-lower-alpha":'',"list-num-lower-greek-rtl":'',"list-num-lower-greek":'',"list-num-lower-roman-rtl":'',"list-num-lower-roman":'',"list-num-upper-alpha-rtl":'',"list-num-upper-alpha":'',"list-num-upper-roman-rtl":'',"list-num-upper-roman":'',lock:'',ltr:'',"more-drawer":'',"new-document":'',"new-tab":'',"non-breaking":'',notice:'',"ordered-list-rtl":'',"ordered-list":'',orientation:'',outdent:'',"page-break":'',"paste-text":'',paste:'',"permanent-pen":'',plus:'',preferences:'',preview:'',print:'',quote:'',redo:'',reload:'',"remove-formatting":'',remove:'',"resize-handle":'',resize:'',"restore-draft":'',"rotate-left":'',"rotate-right":'',rtl:'',save:'',search:'',"select-all":'',selected:'',settings:'',sharpen:'',sourcecode:'',"spell-check":'',"strike-through":'',subscript:'',superscript:'',"table-cell-properties":'',"table-cell-select-all":'',"table-cell-select-inner":'',"table-delete-column":'',"table-delete-row":'',"table-delete-table":'',"table-insert-column-after":'',"table-insert-column-before":'',"table-insert-row-above":'',"table-insert-row-after":'',"table-left-header":'',"table-merge-cells":'',"table-row-properties":'',"table-split-cells":'',"table-top-header":'',table:'',template:'',"temporary-placeholder":'',"text-color":'',toc:'',translate:'',underline:'',undo:'',unlink:'',unlock:'',"unordered-list":'',unselected:'',upload:'',user:'',visualblocks:'',visualchars:'',warning:'',"zoom-in":'',"zoom-out":''}),nf.get(t).icons),function(t,r){Ht(n,r)||e.ui.registry.addIcon(r,t)})}(e),function(e){var t=e.settings.theme;if(T(t)){e.settings.theme=jz(t);var n=of.get(t);e.theme=new n(e,of.urls[t]),e.theme.init&&e.theme.init(e,of.urls[t]||e.documentBaseUrl.replace(/\/$/,""),e.$)}else e.theme={}}(e),function(e){var t=[];Sn.each(e.settings.plugins.split(/[ ,]/),function(n){dC(e,t,jz(n))})}(e);var t=function(e){var t=e.getElement();return e.orgDisplay=t.style.display,T(e.settings.theme)?function(e){return e.theme.renderUI()}(e):I(e.settings.theme)?function(e){var t=e.getElement(),n=(0,e.settings.theme)(e,t);return n.editorContainer.nodeType&&(n.editorContainer.id=n.editorContainer.id||e.id+"_parent"),n.iframeContainer&&n.iframeContainer.nodeType&&(n.iframeContainer.id=n.iframeContainer.id||e.id+"_iframecontainer"),n.height=n.iframeHeight?n.iframeHeight:t.offsetHeight,n}(e):function(e){var t=e.getElement();return e.inline?Fz(null):function(e){var t=fC.create("div");return fC.insertAfter(t,e),Fz(t)}(t)}(e)}(e);return e.editorContainer=t.editorContainer?t.editorContainer:null,function(e){e.contentCSS=e.contentCSS.concat(function(e){var t=ih(e),n=e.editorManager.baseURL+"/skins/content",r="content"+e.editorManager.suffix+".css",o=!0===e.inline;return F(t,function(t){return function(e){return/^[a-z0-9\-]+$/i.test(e)}(t)&&!o?n+"/"+t+"/"+r:e.documentBaseURI.toAbsolute(t)})}(e))}(e),e.inline?lC(e):hC(e,t)},vC=Ui.DOM,pC="data-mce-contenteditable",gC=["design","readonly"],bC=function(e,t){var n=t.firstChild,r=t.lastChild;return n&&"meta"===n.name&&(n=n.next),r&&"mce_marker"===r.attr("id")&&(r=r.prev),function(e,t){var n=e.getNonEmptyElements();return t&&(t.isEmpty(n)||function(e,t){return e.getBlockElements()[t.name]&&function(e){return e.firstChild&&e.firstChild===e.lastChild}(t)&&function(e){return"br"===e.name||" "===e.value}(t.firstChild)}(e,t))}(e,r)&&(r=r.prev),!(!n||n!==r||"ul"!==n.name&&"ol"!==n.name)},zC=function(e,t,n,r){function o(e){var r=ys.fromRangeStart(n),o=Us(t.getRoot()),i=1===e?o.prev(r):o.next(r);return!i||Kz(t,i.getNode())!==c}var i=function(e,t,n){var r=t.serialize(n);return function(e){var t=e.firstChild,n=e.lastChild;return t&&"META"===t.nodeName&&t.parentNode.removeChild(t),n&&"mce_marker"===n.id&&n.parentNode.removeChild(n),e}(e.createFragment(r))}(t,e,r),c=Kz(t,n.startContainer),a=Zz(function(e){return Sn.grep(e.childNodes,function(e){return"LI"===e.nodeName})}(i.firstChild)),s=t.getRoot();return o(1)?function(e,t,n){var r=e.parentNode;return Sn.each(t,function(t){r.insertBefore(t,e)}),function(e,t){var n=ys.before(e),r=Us(t).next(n);return r?r.toRange():null}(e,n)}(c,a,s):o(2)?function(e,n,r,o){return t.insertAfter(n.reverse(),e),Jz(n[0],r)}(c,a,s):function(e,t,n,r){var o=function(e,t){var n=t.cloneRange(),r=t.cloneRange();return n.setStartBefore(e),r.setEndAfter(e),[n.cloneContents(),r.cloneContents()]}(e,r),i=e.parentNode;return i.insertBefore(o[0],e),Sn.each(t,function(t){i.insertBefore(t,e)}),i.insertBefore(o[1],e),i.removeChild(e),Jz(t[t.length-1],n)}(c,a,s,n)},yC=function(e,t){return!!Kz(e,t)},CC=Xe.matchNodeNames(["td","th"]),MC=function(e,t){var n=function(e){var t;return"string"!=typeof e?(t=Sn.extend({paste:e.paste,data:{paste:e.paste}},e),{content:e.content,details:t}):{content:e,details:{}}}(t);!function(e,t,n){var r,o,i,c,a,s,l,u,h,f,d,m=e.selection,v=e.dom;if(/^ | $/.test(t)&&(t=function(e,t){var n,r;function o(e){return n[e]&&3===n[e].nodeType}return n=e.startContainer,r=e.startOffset,3===n.nodeType&&(0|)$/," "):o("nextSibling")||(t=t.replace(/( | )(
    |)$/," "))),t}(m.getRng(),t)),r=e.parser,d=n.merge,o=Jl({validate:e.settings.validate},e.schema),f='​',s={content:t,format:"html",selection:!0,paste:n.paste},(s=e.fire("BeforeSetContent",s)).isDefaultPrevented())e.fire("SetContent",{content:s.content,format:"html",selection:!0,paste:n.paste});else{-1===(t=s.content).indexOf("{$caret}")&&(t+="{$caret}"),t=t.replace(/\{\$caret\}/,f);var p=(u=m.getRng()).startContainer||(u.parentElement?u.parentElement():null),g=e.getBody();p===g&&m.isCollapsed()&&v.isBlock(g.firstChild)&&function(e,t){return t&&!e.schema.getShortEndedElements()[t.nodeName]}(e,g.firstChild)&&v.isEmpty(g.firstChild)&&((u=v.createRng()).setStart(g.firstChild,0),u.setEnd(g.firstChild,0),m.setRng(u)),m.isCollapsed()||(e.selection.setRng(rv(e.selection.getRng())),e.getDoc().execCommand("Delete",!1,null),t=function(e,t){var n,r;return n=e.startContainer,r=e.startOffset,3===n.nodeType&&e.collapsed&&(" "===n.data[r]?(n.deleteData(r,1),/[\u00a0| ]$/.test(t)||(t+=" ")):" "===n.data[r-1]&&(n.deleteData(r-1,1),/[\u00a0| ]$/.test(t)||(t=" "+t))),t}(e.selection.getRng(),t));var b={context:(i=m.getNode()).nodeName.toLowerCase(),data:n.data,insert:!0};if(a=r.parse(t,b),!0===n.paste&&bC(e.schema,a)&&yC(v,i))return u=zC(o,v,e.selection.getRng(),a),e.selection.setRng(u),void e.fire("SetContent",s);if(function(e){for(var t=a;t=t.walk();)1===t.type&&t.attr("data-mce-fragment","1")}(),"mce_marker"===(h=a.lastChild).attr("id"))for(h=(l=h).prev;h;h=h.walk(!0))if(3===h.type||!v.isBlock(h.name)){e.schema.isValidChild(h.parent.name,"span")&&h.parent.insert(l,h,"br"===h.name);break}if(e._selectionOverrides.showBlockCaretContainer(i),b.invalid){for(ey(e,f),i=m.getNode(),c=e.getBody(),9===i.nodeType?i=h=c:h=i;h!==c;)h=(i=h).parentNode;t=i===c?c.innerHTML:v.getOuterHTML(i),t=o.serialize(r.parse(t.replace(//i,function(){return o.serialize(a)}))),i===c?v.setHTML(c,t):v.setOuterHTML(i,t)}else!function(e,t,n){if("all"===n.getAttribute("data-mce-bogus"))n.parentNode.insertBefore(e.dom.createFragment(t),n);else{var r=n.firstChild,o=n.lastChild;!r||r===o&&"BR"===r.nodeName?e.dom.setHTML(n,t):ey(e,t)}}(e,t=o.serialize(a),i);!function(e,t){var n=e.schema.getTextInlineElements(),r=e.dom;if(t){var o=e.getBody(),i=new Vm(r);Sn.each(r.select("*[data-mce-fragment]"),function(e){for(var t=e.parentNode;t&&t!==o;t=t.parentNode)n[e.nodeName.toLowerCase()]&&i.compare(t,e)&&r.remove(e,!0)})}}(e,d),function(e,t){var n,r,o,i,c,a=e.dom,s=e.selection;if(t){if(e.selection.scrollIntoView(t),n=function(t){for(var n=e.getBody();t&&t!==n;t=t.parentNode)if("false"===e.dom.getContentEditable(t))return t;return null}(t))return a.remove(t),s.select(n);var l=a.createRng();(i=t.previousSibling)&&3===i.nodeType?(l.setStart(i,i.nodeValue.length),Mn.ie||(c=t.nextSibling)&&3===c.nodeType&&(i.appendData(c.data),c.parentNode.removeChild(c))):(l.setStartBefore(t),l.setEndBefore(t)),r=a.getParent(t,a.isBlock),a.remove(t),r&&a.isEmpty(r)&&(e.$(r).empty(),l.setStart(r,0),l.setEnd(r,0),CC(r)||r.getAttribute("data-mce-fragment")||!(o=function(t){var n=ys.fromRangeStart(t);if(n=Us(e.getBody()).next(n))return n.toRange()}(l))?a.add(r,a.create("br",{"data-mce-bogus":"1"})):(l=o,a.remove(r))),s.setRng(l)}}(e,v.get("mce_marker")),function(e){Sn.each(e.getElementsByTagName("*"),function(e){e.removeAttribute("data-mce-fragment")})}(e.getBody()),function(e,t){A.from(e.getParent(t,"td,th")).map(gt.fromDom).each(vm)}(e.dom,e.selection.getStart()),e.fire("SetContent",s),e.addVisual()}}(e,n.content,n.details)},wC={getFontSize:ny("font-size"),getFontFamily:n(function(e){return e.replace(/[\'\"\\]/g,"").replace(/,\s+/g,",")},ny("font-family")),toPt:function(e,t){return/[0-9.]+px$/.test(e)?function(e,t){var n=Math.pow(10,t);return Math.round(e*n)/n}(72*parseInt(e,10)/96,t||0)+"pt":e}},_C=Sn.each,xC=Sn.map,HC=Sn.inArray,SC=(LC.prototype.execCommand=function(e,t,n,r){var o,i,c=!1,a=this;if(!a.editor.removed){if(/^(mceAddUndoLevel|mceEndUndoLevel|mceBeginUndoLevel|mceRepaint)$/.test(e)||r&&r.skip_focus?function(e){lu(e).each(function(t){e.selection.setRng(t)})}(a.editor):a.editor.focus(),(r=a.editor.fire("BeforeExecCommand",{command:e,ui:t,value:n})).isDefaultPrevented())return!1;if(i=e.toLowerCase(),o=a.commands.exec[i])return o(i,t,n),a.editor.fire("ExecCommand",{command:e,ui:t,value:n}),!0;if(_C(this.editor.plugins,function(r){if(r.execCommand&&r.execCommand(e,t,n))return a.editor.fire("ExecCommand",{command:e,ui:t,value:n}),!(c=!0)}),c)return c;if(a.editor.theme&&a.editor.theme.execCommand&&a.editor.theme.execCommand(e,t,n))return a.editor.fire("ExecCommand",{command:e,ui:t,value:n}),!0;try{c=a.editor.getDoc().execCommand(e,t,n)}catch(e){}return!!c&&(a.editor.fire("ExecCommand",{command:e,ui:t,value:n}),!0)}},LC.prototype.queryCommandState=function(e){var t;if(!this.editor.quirks.isHidden()&&!this.editor.removed){if(e=e.toLowerCase(),t=this.commands.state[e])return t(e);try{return this.editor.getDoc().queryCommandState(e)}catch(e){}return!1}},LC.prototype.queryCommandValue=function(e){var t;if(!this.editor.quirks.isHidden()&&!this.editor.removed){if(e=e.toLowerCase(),t=this.commands.value[e])return t(e);try{return this.editor.getDoc().queryCommandValue(e)}catch(e){}}},LC.prototype.addCommands=function(e,t){var n=this;t=t||"exec",_C(e,function(e,r){_C(r.toLowerCase().split(","),function(r){n.commands[t][r]=e})})},LC.prototype.addCommand=function(e,t,n){var r=this;e=e.toLowerCase(),this.commands.exec[e]=function(e,o,i,c){return t.call(n||r.editor,o,i,c)}},LC.prototype.queryCommandSupported=function(e){if(e=e.toLowerCase(),this.commands.exec[e])return!0;try{return this.editor.getDoc().queryCommandSupported(e)}catch(e){}return!1},LC.prototype.addQueryStateHandler=function(e,t,n){var r=this;e=e.toLowerCase(),this.commands.state[e]=function(){return t.call(n||r.editor)}},LC.prototype.addQueryValueHandler=function(e,t,n){var r=this;e=e.toLowerCase(),this.commands.value[e]=function(){return t.call(n||r.editor)}},LC.prototype.hasCustomCommand=function(e){return e=e.toLowerCase(),!!this.commands.exec[e]},LC.prototype.execNativeCommand=function(e,t,n){return void 0===t&&(t=!1),void 0===n&&(n=null),this.editor.getDoc().execCommand(e,t,n)},LC.prototype.isFormatMatch=function(e){return this.editor.formatter.match(e)},LC.prototype.toggleFormat=function(e,t){this.editor.formatter.toggle(e,t?{value:t}:void 0),this.editor.nodeChanged()},LC.prototype.storeSelection=function(e){this.selectionBookmark=this.editor.selection.getBookmark(e)},LC.prototype.restoreSelection=function(){this.editor.selection.moveToBookmark(this.selectionBookmark)},LC.prototype.setupCommands=function(e){var t=this;function n(t){return function(){var n=e.selection.isCollapsed()?[e.dom.getParent(e.selection.getNode(),e.dom.isBlock)]:e.selection.getSelectedBlocks(),r=xC(n,function(n){return!!e.formatter.matchNode(n,t)});return-1!==HC(r,!0)}}this.addCommands({"mceResetDesignMode,mceBeginUndoLevel":function(){},"mceEndUndoLevel,mceAddUndoLevel":function(){e.undoManager.add()},"Cut,Copy,Paste":function(n){var r,o=e.getDoc();try{t.execNativeCommand(n)}catch(e){r=!0}if("paste"!==n||o.queryCommandEnabled(n)||(r=!0),r||!o.queryCommandSupported(n)){var i=e.translate("Your browser doesn't support direct access to the clipboard. Please use the Ctrl+X/C/V keyboard shortcuts instead.");Mn.mac&&(i=i.replace(/Ctrl\+/g,"⌘+")),e.notificationManager.open({text:i,type:"error"})}},unlink:function(){if(e.selection.isCollapsed()){var t=e.dom.getParent(e.selection.getStart(),"a");t&&e.dom.remove(t,!0)}else e.formatter.remove("link")},"JustifyLeft,JustifyCenter,JustifyRight,JustifyFull,JustifyNone":function(n){var r=n.substring(7);"full"===r&&(r="justify"),_C("left,center,right,justify".split(","),function(t){r!==t&&e.formatter.remove("align"+t)}),"none"!==r&&t.toggleFormat("align"+r)},"InsertUnorderedList,InsertOrderedList":function(n){var r,o;t.execNativeCommand(n),(r=e.dom.getParent(e.selection.getNode(),"ol,ul"))&&(o=r.parentNode,/^(H[1-6]|P|ADDRESS|PRE)$/.test(o.nodeName)&&(t.storeSelection(),e.dom.split(o,r),t.restoreSelection()))},"Bold,Italic,Underline,Strikethrough,Superscript,Subscript":function(e){t.toggleFormat(e)},"ForeColor,HiliteColor":function(e,n,r){t.toggleFormat(e,r)},FontName:function(t,n,r){!function(e,t){var n=iy(e,t);e.formatter.toggle("fontname",{value:function(e){var t=n.split(/\s*,\s*/);return F(t,function(e){return-1===e.indexOf(" ")||J(e,'"')||J(e,"'")?e:"'"+e+"'"}).join(",")}()}),e.nodeChanged()}(e,r)},FontSize:function(t,n,r){!function(e,t){e.formatter.toggle("fontsize",{value:iy(e,t)}),e.nodeChanged()}(e,r)},RemoveFormat:function(t){e.formatter.remove(t)},mceBlockQuote:function(){t.toggleFormat("blockquote")},FormatBlock:function(e,n,r){return t.toggleFormat(r||"p")},mceCleanup:function(){var t=e.selection.getBookmark();e.setContent(e.getContent()),e.selection.moveToBookmark(t)},mceRemoveNode:function(n,r,o){var i=o||e.selection.getNode();i!==e.getBody()&&(t.storeSelection(),e.dom.remove(i,!0),t.restoreSelection())},mceSelectNodeDepth:function(t,n,r){var o=0;e.dom.getParent(e.selection.getNode(),function(t){if(1===t.nodeType&&o++===r)return e.selection.select(t),!1},e.getBody())},mceSelectNode:function(t,n,r){e.selection.select(r)},mceInsertContent:function(t,n,r){MC(e,r)},mceInsertRawHTML:function(t,n,r){e.selection.setContent("tiny_mce_marker");var o=e.getContent();e.setContent(o.replace(/tiny_mce_marker/g,function(){return r}))},mceInsertNewLine:function(t,n,r){rC(e,r)},mceToggleFormat:function(e,n,r){t.toggleFormat(r)},mceSetContent:function(t,n,r){e.setContent(r)},"Indent,Outdent":function(t){qb(e,t)},mceRepaint:function(){},InsertHorizontalRule:function(){e.execCommand("mceInsertContent",!1,"
    ")},mceToggleVisualAid:function(){e.hasVisual=!e.hasVisual,e.addVisual()},mceReplaceContent:function(t,n,r){e.execCommand("mceInsertContent",!1,r.replace(/\{\$selection\}/g,e.selection.getContent({format:"text"})))},mceInsertLink:function(t,n,r){var o;"string"==typeof r&&(r={href:r}),o=e.dom.getParent(e.selection.getNode(),"a"),r.href=r.href.replace(/ /g,"%20"),o&&r.href||e.formatter.remove("link"),r.href&&e.formatter.apply("link",r,o)},selectAll:function(){var t=e.dom.getParent(e.selection.getStart(),Xe.isContentEditableTrue);if(t){var n=e.dom.createRng();n.selectNodeContents(t),e.selection.setRng(n)}},delete:function(){var t;Uy(t=e)||Vy(t,!1)||Ay(t,!1)||Ty(t,!1)||wy(t,!1)||Py(t)||_y(t)||Ey(t,!1)||(ty(t,"Delete"),zy(t))},forwardDelete:function(){var t;Vy(t=e,!0)||Ay(t,!0)||Ty(t,!0)||wy(t,!0)||Py(t)||_y(t)||Ey(t,!0)||ty(t,"ForwardDelete")},mceNewDocument:function(){e.setContent("")},InsertLineBreak:function(t,n,r){return Jy(e,r),!0}}),t.addCommands({JustifyLeft:n("alignleft"),JustifyCenter:n("aligncenter"),JustifyRight:n("alignright"),JustifyFull:n("alignjustify"),"Bold,Italic,Underline,Strikethrough,Superscript,Subscript":function(e){return t.isFormatMatch(e)},mceBlockQuote:function(){return t.isFormatMatch("blockquote")},Outdent:function(){return Fb(e)},"InsertUnorderedList,InsertOrderedList":function(t){var n=e.dom.getParent(e.selection.getNode(),"ul,ol");return n&&("insertunorderedlist"===t&&"UL"===n.tagName||"insertorderedlist"===t&&"OL"===n.tagName)}},"state"),t.addCommands({Undo:function(){e.undoManager.undo()},Redo:function(){e.undoManager.redo()}}),t.addQueryValueHandler("FontName",function(){return oy(t=e).fold(function(){return ry(t).map(function(e){return wC.getFontFamily(t.getBody(),e)}).getOr("")},function(e){return wC.getFontFamily(t.getBody(),e)});var t},this),t.addQueryValueHandler("FontSize",function(){return oy(t=e).fold(function(){return ry(t).map(function(e){return wC.getFontSize(t.getBody(),e)}).getOr("")},function(e){return wC.getFontSize(t.getBody(),e)});var t},this)},LC);function LC(e){this.commands={state:{},exec:{},value:{}},this.editor=e,this.setupCommands(e)}var VC=Sn.makeMap("focus blur focusin focusout click dblclick mousedown mouseup mousemove mouseover beforepaste paste cut copy selectionchange mouseout mouseenter mouseleave wheel keydown keypress keyup input beforeinput contextmenu dragstart dragend dragover draggesture dragdrop drop drag submit compositionstart compositionend compositionupdate touchstart touchmove touchend touchcancel"," "),kC=(AC.isNative=function(e){return!!VC[e.toLowerCase()]},AC.prototype.fire=function(e,t){var n,r,o,i;if(e=e.toLowerCase(),(t=t||{}).type=e,t.target||(t.target=this.scope),t.preventDefault||(t.preventDefault=function(){t.isDefaultPrevented=u},t.stopPropagation=function(){t.isPropagationStopped=u},t.stopImmediatePropagation=function(){t.isImmediatePropagationStopped=u},t.isDefaultPrevented=l,t.isPropagationStopped=l,t.isImmediatePropagationStopped=l),this.settings.beforeFire&&this.settings.beforeFire(t),n=this.bindings[e])for(r=0,o=n.length;r"),this.parseShortcut))[o.length-1]=Sn.extend(o[o.length-1],{func:n,scope:r||this.editor}),Sn.extend(o[0],{desc:this.editor.translate(t),subpatterns:o.slice(1)})},UC.prototype.hasModifier=function(e){return e.altKey||e.ctrlKey||e.metaKey},UC.prototype.isFunctionKey=function(e){return"keydown"===e.type&&112<=e.keyCode&&e.keyCode<=123},UC.prototype.matchShortcut=function(e,t){return!!t&&t.ctrl===e.ctrlKey&&t.meta===e.metaKey&&t.alt===e.altKey&&t.shift===e.shiftKey&&!!(e.keyCode===t.keyCode||e.charCode&&e.charCode===t.charCode)&&(e.preventDefault(),!0)},UC.prototype.executeShortcutAction=function(e){return e.func?e.func.call(e.scope):null},UC);function UC(e){this.shortcuts={},this.pendingPatterns=[],this.editor=e;var t=this;e.on("keyup keypress keydown",function(e){!t.hasModifier(e)&&!t.isFunctionKey(e)||e.isDefaultPrevented()||(BC(t.shortcuts,function(n){if(t.matchShortcut(e,n))return t.pendingPatterns=n.subpatterns.slice(0),"keydown"===e.type&&t.executeShortcutAction(n),!0}),t.matchShortcut(e,t.pendingPatterns[0])&&(1===t.pendingPatterns.length&&"keydown"===e.type&&t.executeShortcutAction(t.pendingPatterns[0]),t.pendingPatterns.shift()))})}var WC=Sn.each,YC=Sn.trim,XC="source protocol authority userInfo user password host port relative path directory file query anchor".split(" "),GC={ftp:21,http:80,https:443,mailto:25},QC=(ZC.parseDataUri=function(e){var t,n=decodeURIComponent(e).split(","),r=/data:([^;]+)/.exec(n[0]);return r&&(t=r[1]),{type:t,data:n[1]}},ZC.getDocumentBaseUrl=function(e){var t;return t=0!==e.protocol.indexOf("http")&&"file:"!==e.protocol?e.href:e.protocol+"//"+e.host+e.pathname,/^[^:]+:\/\/\/?[^\/]+\//.test(t)&&(t=t.replace(/[\?#].*$/,"").replace(/[\/\\][^\/]+$/,""),/[\/\\]$/.test(t)||(t+="/")),t},ZC.prototype.setPath=function(e){var t=/^(.*?)\/?(\w+)?$/.exec(e);this.path=t[0],this.directory=t[1],this.file=t[2],this.source="",this.getURI()},ZC.prototype.toRelative=function(e){var t;if("./"===e)return e;var n=new ZC(e,{base_uri:this});if("mce_host"!==n.host&&this.host!==n.host&&n.host||this.port!==n.port||this.protocol!==n.protocol&&""!==n.protocol)return n.getURI();var r=this.getURI(),o=n.getURI();return r===o||"/"===r.charAt(r.length-1)&&r.substr(0,r.length-1)===o?r:(t=this.toRelPath(this.path,n.path),n.query&&(t+="?"+n.query),n.anchor&&(t+="#"+n.anchor),t)},ZC.prototype.toAbsolute=function(e,t){var n=new ZC(e,{base_uri:this});return n.getURI(t&&this.isSameOrigin(n))},ZC.prototype.isSameOrigin=function(e){if(this.host==e.host&&this.protocol==e.protocol){if(this.port==e.port)return!0;var t=GC[this.protocol];if(t&&(this.port||t)==(e.port||t))return!0}return!1},ZC.prototype.toRelPath=function(e,t){var n,r,o,i=0,c="",a=e.substring(0,e.lastIndexOf("/")).split("/");if(n=t.split("/"),a.length>=n.length)for(r=0,o=a.length;r=n.length||a[r]!==n[r]){i=r+1;break}if(a.length=a.length||a[r]!==n[r]){i=r+1;break}if(1===i)return t;for(r=0,o=a.length-(i-1);r]*>( | |\\s| |
    |)<\\/"+n+">[\r\n]*|
    [\r\n]*)$");return t.replace(r,"")}(e,e.serializer.serialize(n,t))}return"text"===t.format||$n(gt.fromDom(n))?t.content=r:t.content=Sn.trim(r),t.no_events||e.fire("GetContent",t),t.content}(t,n,e)});var t,n},iM.prototype.insertContent=function(e,t){t&&(e=eM({content:e},t)),this.execCommand("mceInsertContent",!1,e)},iM.prototype.resetContent=function(e){void 0===e?bu(this,this.startContent,{format:"raw"}):bu(this,e),this.undoManager.reset(),this.setDirty(!1),this.nodeChanged()},iM.prototype.isDirty=function(){return!this.isNotDirty},iM.prototype.setDirty=function(e){var t=!this.isNotDirty;this.isNotDirty=!e,e&&e!==t&&this.fire("dirty")},iM.prototype.getContainer=function(){return this.container||(this.container=JC.get(this.editorContainer||this.id+"_parent")),this.container},iM.prototype.getContentAreaContainer=function(){return this.contentAreaContainer},iM.prototype.getElement=function(){return this.targetElm||(this.targetElm=JC.get(this.id)),this.targetElm},iM.prototype.getWin=function(){var e;return this.contentWindow||(e=this.iframeElement)&&(this.contentWindow=e.contentWindow),this.contentWindow},iM.prototype.getDoc=function(){var e;return this.contentDocument||(e=this.getWin())&&(this.contentDocument=e.document),this.contentDocument},iM.prototype.getBody=function(){var e=this.getDoc();return this.bodyElement||(e?e.body:null)},iM.prototype.convertURL=function(e,t,n){var r=this.settings;return r.urlconverter_callback?this.execCallback("urlconverter_callback",e,n,!0,t):!r.convert_urls||n&&"LINK"===n.nodeName||0===e.indexOf("file:")||0===e.length?e:r.relative_urls?this.documentBaseURI.toRelative(e):e=this.documentBaseURI.toAbsolute(e,r.remove_script_host)},iM.prototype.addVisual=function(e){var t,n=this,r=n.settings,o=n.dom;e=e||n.getBody(),void 0===n.hasVisual&&(n.hasVisual=r.visual),tM(o.select("table,a",e),function(e){var i;switch(e.nodeName){case"TABLE":return t=r.visual_table_class||"mce-item-table",void((i=o.getAttrib(e,"border"))&&"0"!==i||!n.hasVisual?o.removeClass(e,t):o.addClass(e,t));case"A":return void(o.getAttrib(e,"href")||(i=o.getAttrib(e,"name")||e.id,t=r.visual_anchor_class||"mce-item-anchor",i&&n.hasVisual?o.addClass(e,t):o.removeClass(e,t)))}}),n.fire("VisualAid",{element:e,hasVisual:n.hasVisual})},iM.prototype.remove=function(){!function(e){if(!e.removed){var t=e._selectionOverrides,n=e.editorUpload,r=e.getBody(),o=e.getElement();r&&e.save({is_removing:!0}),e.removed=!0,e.unbindAllNativeEvents(),e.hasHiddenInput&&o&&kh.remove(o.nextSibling),xh(e),e.editorManager.remove(e),!e.inline&&r&&function(e){kh.setStyle(e.id,"display",e.orgDisplay)}(e),Hh(e),kh.remove(e.getContainer()),zu(t),zu(n),e.destroy()}}(this)},iM.prototype.destroy=function(e){!function(e,t){var n=e.selection,r=e.dom;e.destroyed||(t||e.removed?(t||(e.editorManager.off("beforeunload",e._beforeUnload),e.theme&&e.theme.destroy&&e.theme.destroy(),zu(n),zu(r)),function(e){var t=e.formElement;t&&(t._mceOldSubmit&&(t.submit=t._mceOldSubmit,t._mceOldSubmit=null),kh.unbind(t,"submit reset",e.formEventDelegate))}(e),function(e){e.contentAreaContainer=e.formElement=e.container=e.editorContainer=null,e.bodyElement=e.contentDocument=e.contentWindow=null,e.iframeElement=e.targetElm=null,e.selection&&(e.selection=e.selection.win=e.selection.dom=e.selection.dom.doc=null)}(e),e.destroyed=!0):e.remove())}(this,e)},iM.prototype.uploadImages=function(e){return this.editorUpload.uploadImages(e)},iM.prototype._scanForImages=function(){return this.editorUpload.scanForImages()},iM.prototype.addButton=function(){throw new Error("editor.addButton has been removed in tinymce 5x, use editor.ui.registry.addButton or editor.ui.registry.addToggleButton or editor.ui.registry.addSplitButton instead")},iM.prototype.addSidebar=function(){throw new Error("editor.addSidebar has been removed in tinymce 5x, use editor.ui.registry.addSidebar instead")},iM.prototype.addMenuItem=function(){throw new Error("editor.addMenuItem has been removed in tinymce 5x, use editor.ui.registry.addMenuItem instead")},iM.prototype.addContextToolbar=function(){throw new Error("editor.addContextToolbar has been removed in tinymce 5x, use editor.ui.registry.addContextToolbar instead")},iM);function iM(n,r,o){var i=this;this.plugins={},this.contentCSS=[],this.contentStyles=[],this.loadedCSS={},this.isNotDirty=!1,this.editorManager=o,this.documentBaseUrl=o.documentBaseURL,eM(this,RC),this.settings=function(e,t,n,r,o){var i=function(e,t,n,r){var o={id:e,theme:"silver",toolbar_drawer:"floating",plugins:"",document_base_url:t,add_form_submit_trigger:!0,submit_patch:!0,add_unload_trigger:!0,convert_urls:!0,relative_urls:!0,remove_script_host:!0,object_resizing:!0,doctype:"",visual:!0,font_size_legacy_values:"xx-small,small,medium,large,x-large,xx-large,300%",forced_root_block:"p",hidden_input:!0,inline_styles:!0,convert_fonts_to_spans:!0,indent:!0,indent_before:"p,h1,h2,h3,h4,h5,h6,blockquote,div,title,style,pre,script,td,th,ul,ol,li,dl,dt,dd,area,table,thead,tfoot,tbody,tr,section,summary,article,hgroup,aside,figure,figcaption,option,optgroup,datalist",indent_after:"p,h1,h2,h3,h4,h5,h6,blockquote,div,title,style,pre,script,td,th,ul,ol,li,dl,dt,dd,area,table,thead,tfoot,tbody,tr,section,summary,article,hgroup,aside,figure,figcaption,option,optgroup,datalist",entity_encoding:"named",url_converter:r.convertURL,url_converter_scope:r};return U(U({},o),n?Bh:{})}(t,n,Oh,e);return wu(Ih||Ph,Ih,i,r,o)}(this,n,this.documentBaseUrl,o.defaultSettings,r),this.settings.suffix&&(o.suffix=this.settings.suffix),this.suffix=o.suffix,this.settings.base_url&&o._setBaseUrl(this.settings.base_url),this.baseUri=o.baseURI,this.settings.referrer_policy&&(Gi.ScriptLoader._setReferrerPolicy(this.settings.referrer_policy),Ui.DOM.styleSheetLoader._setReferrerPolicy(this.settings.referrer_policy)),lc.languageLoad=this.settings.language_load,lc.baseURL=o.baseURL,this.id=n,this.setDirty(!1),this.documentBaseURI=new QC(this.settings.document_base_url,{base_uri:this.baseUri}),this.baseURI=this.baseUri,this.inline=!!this.settings.inline,this.shortcuts=new qC(this),this.editorCommands=new SC(this),this.settings.cache_suffix&&(Mn.cacheSuffix=this.settings.cache_suffix.replace(/^[\?\&]+/,"")),this.ui={registry:KC()};var c=function(n){var r,o=Ge("design"),i=Ge({design:{activate:t,deactivate:t,editorReadOnly:!1},readonly:{activate:t,deactivate:t,editorReadOnly:!0}});return(r=n).serializer?Gz(r):r.on("PreInit",function(){Gz(r)}),function(e){e.on("ShowCaret",function(t){Xz(e)&&t.preventDefault()}),e.on("ObjectSelected",function(t){Xz(e)&&t.preventDefault()})}(n),{isReadOnly:function(){return Xz(n)},set:function(e){return function(e,t,n,r){if(r!==n.get()){if(!Ht(t,r))throw new Error("Editor mode '"+r+"' is invalid");e.initialized?Qz(e,n,t,r):e.on("init",function(){return Qz(e,n,t,r)})}}(n,i.get(),o,e)},get:function(){return o.get()},register:function(t,n){i.set(function(t,n,r){var o;if(g(gC,n))throw new Error("Cannot override default mode "+n);return U(U({},t),((o={})[n]=U(U({},r),{deactivate:function(){try{r.deactivate()}catch(t){e.console.error("problem while deactivating editor mode "+n+":",t)}}}),o))}(i.get(),t,n))}}}(this);this.mode=c,this.setMode=c.set,o.fire("SetupEditor",{editor:this}),this.execCallback("setup",this),this.$=mi.overrideDefaults(function(){return{context:i.inline?i.getBody():i.getDoc(),element:i.getBody()}})}function cM(e){var t=e.type;dM(yM.get(),function(n){switch(t){case"scroll":n.fire("ScrollWindow",e);break;case"resize":n.fire("ResizeWindow",e)}})}function aM(e){e!==pM&&(e?mi(window).on("resize scroll",cM):mi(window).off("resize scroll",cM),pM=e)}function sM(e){var t=bM;delete gM[e.id];for(var n=0;n=n.x&&o.x+o.w<=n.w+n.x&&o.y>=n.y&&o.y+o.h<=n.h+n.y)return r[i];return null},intersect:function(e,t){var n,r,o,i;return n=AM(e.x,t.x),r=AM(e.y,t.y),o=kM(e.x+e.w,t.x+t.w),i=kM(e.y+e.h,t.y+t.h),o-n<0||i-r<0?null:EM(n,r,o-n,i-r)},clamp:function(e,t,n){var r,o,i,c,a,s,l,u,h,f;return a=e.x,s=e.y,l=e.x+e.w,u=e.y+e.h,h=t.x+t.w,f=t.y+t.h,r=AM(0,t.x-a),o=AM(0,t.y-s),i=AM(0,l-h),c=AM(0,u-f),a+=r,s+=o,n&&(l+=r,u+=o,a-=i,s-=c),EM(a,s,(l-=i)-a,(u-=c)-s)},create:EM,fromClientRect:function(e){return EM(e.left,e.top,e.width,e.height)}},NM=Sn.each,OM=Sn.extend;wM.extend=HM=function(e){function t(){var e,t,n;if(!SM&&(this.init&&this.init.apply(this,arguments),t=this.Mixins))for(e=t.length;e--;)(n=t[e]).init&&n.init.apply(this,arguments)}function n(){return this}function r(e,t){return function(){var n,r=this._super;return this._super=a[e],n=t.apply(this,arguments),this._super=r,n}}var o,i,c,a=this.prototype;for(i in SM=!0,o=new this,SM=!1,e.Mixins&&(NM(e.Mixins,function(t){for(var n in t)"init"!==n&&(e[n]=t[n])}),a.Mixins&&(e.Mixins=a.Mixins.concat(e.Mixins))),e.Methods&&NM(e.Methods.split(","),function(t){e[t]=n}),e.Properties&&NM(e.Properties.split(","),function(t){var n="_"+t;e[t]=function(e){return void 0!==e?(this[n]=e,this):this[n]}}),e.Statics&&NM(e.Statics,function(e,n){t[n]=e}),e.Defaults&&a.Defaults&&(e.Defaults=OM({},a.Defaults,e.Defaults)),e)"function"==typeof(c=e[i])&&a[i]?o[i]=r(i,c):o[i]=c;return t.prototype=o,(t.constructor=t).extend=HM,t};var IM,PM,RM,BM,jM=Math.min,FM=Math.max,$M=Math.round,qM={serialize:function(e){var t=JSON.stringify(e);return T(t)?t.replace(/[\u0080-\uFFFF]/g,function(e){var t=e.charCodeAt(0).toString(16);return"\\u"+"0000".substring(t.length)+t}):t},parse:function(e){try{return JSON.parse(e)}catch(e){}}},UM={callbacks:{},count:0,send:function(e){var t=this,n=Ui.DOM,r=void 0!==e.count?e.count:t.count,o="tinymce_jsonp_"+r;t.callbacks[r]=function(i){n.remove(o),delete t.callbacks[r],e.callback(i)},n.add(n.doc.body,"script",{id:o,src:e.url,type:"text/javascript"}),t.count++}},WM=U(U({},IC),{send:function(t){var n,r=0,o=function(){!t.async||4===n.readyState||1e4n?t+n:n}function a(e,t){return Math.round((/%/.test(e)?("x"===t?H.width():o())/100:1)*parseInt(e,10))}function s(e,t){return e.get("photo")||e.get("photoRegex").test(t)}function l(e,t){return e.get("retinaUrl")&&n.devicePixelRatio>1?t.replace(e.get("photoRegex"),e.get("retinaSuffix")):t}function u(e){"contains"in b[0]&&!b[0].contains(e.target)&&e.target!==g[0]&&(e.stopPropagation(),b.focus())}function h(e){h.str!==e&&(b.add(g).removeClass(h.str).addClass(e),h.str=e)}function f(n){e(t).trigger(n),ce.triggerHandler(n)}function d(n){var o;if(!W){if(o=e(n).data(Z),function(t){F=0,t&&!1!==t&&"nofollow"!==t?(x=e("."+J).filter(function(){return new i(this,e.data(this,Z)).get("rel")===t}),-1===(F=x.index(I.el))&&(x=x.add(I.el),F=x.length-1)):x=e(I.el)}((I=new i(n,o)).get("rel")),!q){q=U=!0,h(I.get("className")),b.css({visibility:"hidden",display:"block",opacity:""}),S=r(ae,"LoadedContent","width:0; height:0; overflow:hidden; visibility:hidden"),y.css({width:"",height:""}).append(S),P=C.height()+_.height()+y.outerHeight(!0)-y.height(),R=M.width()+w.width()+y.outerWidth(!0)-y.width(),B=S.outerHeight(!0),j=S.outerWidth(!0);var c=a(I.get("initialWidth"),"x"),s=a(I.get("initialHeight"),"y"),l=I.get("maxWidth"),d=I.get("maxHeight");I.w=Math.max((!1!==l?Math.min(c,a(l,"x")):c)-j-R,0),I.h=Math.max((!1!==d?Math.min(s,a(d,"y")):s)-B-P,0),S.css({width:"",height:I.h}),X.position(),f(ee),I.get("onOpen"),O.add(k).hide(),b.focus(),I.get("trapFocus")&&t.addEventListener&&(t.addEventListener("focus",u,!0),ce.one(oe,function(){t.removeEventListener("focus",u,!0)})),I.get("returnFocus")&&ce.one(oe,function(){e(I.el).focus()})}var m=parseFloat(I.get("opacity"));g.css({opacity:m==m?m:"",cursor:I.get("overlayClose")?"pointer":"",visibility:"visible"}).show(),I.get("closeButton")?N.html(I.get("close")).appendTo(y):N.appendTo("
    "),p()}}function m(){b||(G=!1,H=e(n),b=r(ae).attr({id:Z,class:!1===e.support.opacity?K+"IE":"",role:"dialog",tabindex:"-1"}).hide(),g=r(ae,"Overlay").hide(),V=e([r(ae,"LoadingOverlay")[0],r(ae,"LoadingGraphic")[0]]),z=r(ae,"Wrapper"),y=r(ae,"Content").append(k=r(ae,"Title"),A=r(ae,"Current"),D=e('File upload error '+n+"
    ").prependTo("#alerts")}void 0!==$.fn.wysiwyg&&(console.log("init_wysiwyg"),$(".editor-wrapper").each(function(){var t=$(this).attr("id");$(this).wysiwyg({toolbarSelector:'[data-target="#'+t+'"]',fileUploadError:e})}),window.prettyPrint,prettyPrint())}function init_cropper(){if(void 0!==$.fn.cropper){console.log("init_cropper");var e=$("#image"),t=$("#download"),n=$("#dataX"),r=$("#dataY"),o=$("#dataHeight"),i=$("#dataWidth"),c=$("#dataRotate"),a=$("#dataScaleX"),s=$("#dataScaleY"),l={aspectRatio:16/9,preview:".img-preview",crop:function(e){n.val(Math.round(e.x)),r.val(Math.round(e.y)),o.val(Math.round(e.height)),i.val(Math.round(e.width)),c.val(e.rotate),a.val(e.scaleX),s.val(e.scaleY)}};$('[data-toggle="tooltip"]').tooltip(),e.on({"build.cropper":function(e){console.log(e.type)},"built.cropper":function(e){console.log(e.type)},"cropstart.cropper":function(e){console.log(e.type,e.action)},"cropmove.cropper":function(e){console.log(e.type,e.action)},"cropend.cropper":function(e){console.log(e.type,e.action)},"crop.cropper":function(e){console.log(e.type,e.x,e.y,e.width,e.height,e.rotate,e.scaleX,e.scaleY)},"zoom.cropper":function(e){console.log(e.type,e.ratio)}}).cropper(l),$.isFunction(document.createElement("canvas").getContext)||$('button[data-method="getCroppedCanvas"]').prop("disabled",!0),void 0===document.createElement("cropper").style.transition&&($('button[data-method="rotate"]').prop("disabled",!0),$('button[data-method="scale"]').prop("disabled",!0)),void 0===t[0].download&&t.addClass("disabled"),$(".docs-toggles").on("change","input",function(){var t,n,r=$(this),o=r.attr("name"),i=r.prop("type");e.data("cropper")&&("checkbox"===i?(l[o]=r.prop("checked"),t=e.cropper("getCropBoxData"),n=e.cropper("getCanvasData"),l.built=function(){e.cropper("setCropBoxData",t),e.cropper("setCanvasData",n)}):"radio"===i&&(l[o]=r.val()),e.cropper("destroy").cropper(l))}),$(".docs-buttons").on("click","[data-method]",function(){var n,r,o=$(this),i=o.data();if(!o.prop("disabled")&&!o.hasClass("disabled")&&e.data("cropper")&&i.method){if(void 0!==(i=$.extend({},i)).target&&(n=$(i.target),void 0===i.option))try{i.option=JSON.parse(n.val())}catch(e){console.log(e.message)}switch(r=e.cropper(i.method,i.option,i.secondOption),i.method){case"scaleX":case"scaleY":$(this).data("option",-i.option);break;case"getCroppedCanvas":r&&($("#getCroppedCanvasModal").modal().find(".modal-body").html(r),t.hasClass("disabled")||t.attr("href",r.toDataURL()))}if($.isPlainObject(r)&&n)try{n.val(JSON.stringify(r))}catch(e){console.log(e.message)}}}),$(document.body).on("keydown",function(t){if(e.data("cropper")&&!(this.scrollTop>300))switch(t.which){case 37:t.preventDefault(),e.cropper("move",-1,0);break;case 38:t.preventDefault(),e.cropper("move",0,-1);break;case 39:t.preventDefault(),e.cropper("move",1,0);break;case 40:t.preventDefault(),e.cropper("move",0,1)}});var u,h=$("#inputImage"),f=window.URL||window.webkitURL;f?h.change(function(){var t,n=this.files;e.data("cropper")&&n&&n.length&&(t=n[0],/^image\/\w+$/.test(t.type)?(u=f.createObjectURL(t),e.one("built.cropper",function(){f.revokeObjectURL(u)}).cropper("reset").cropper("replace",u),h.val("")):window.alert("Please choose an image file."))}):h.prop("disabled",!0).parent().addClass("disabled")}}function init_knob(){if(void 0!==$.fn.knob){console.log("init_knob"),$(".knob").knob({change:function(e){},release:function(e){console.log("release : "+e)},cancel:function(){console.log("cancel : ",this)},draw:function(){if("tron"==this.$.data("skin")){this.cursorExt=.3;var e,t=this.arc(this.cv);return this.g.lineWidth=this.lineWidth,this.o.displayPrevious&&(e=this.arc(this.v),this.g.beginPath(),this.g.strokeStyle=this.pColor,this.g.arc(this.xy,this.xy,this.radius-this.lineWidth,e.s,e.e,e.d),this.g.stroke()),this.g.beginPath(),this.g.strokeStyle=this.o.fgColor,this.g.arc(this.xy,this.xy,this.radius-this.lineWidth,t.s,t.e,t.d),this.g.stroke(),this.g.lineWidth=2,this.g.beginPath(),this.g.strokeStyle=this.o.fgColor,this.g.arc(this.xy,this.xy,this.radius-this.lineWidth+1+2*this.lineWidth/3,0,2*Math.PI,!1),this.g.stroke(),!1}}});var e,t=0,n=0,r=0,o=$("div.idir"),i=$("div.ival");$("input.infinite").knob({min:0,max:20,stopper:!1,change:function(){e>this.cv?t?(r--,o.show().html("-").fadeOut(),i.html(r),t=0):(t=1,n=0):e
    ";document.getElementById("custom_notifications")?($("#custom_notifications ul.notifications").append("
  • "),$("#custom_notifications #notif-group").append(n),e++,CustomTabs(t)):alert("doesnt exists")},CustomTabs=function(e){$(".tabbed_notifications > div").hide(),$(".tabbed_notifications > div:first-of-type").show(),$("#custom_notifications").removeClass("dsp_none"),$(".notifications a").click(function(e){e.preventDefault();var t=$(this),n="#"+t.parents(".notifications").data("tabbed_notifications"),r=t.closest("li").siblings().children("a"),o=t.attr("href");r.removeClass("active"),t.addClass("active"),$(n).children("div").hide(),$(o).show()})},CustomTabs();var t=idname="";$(document).on("click",".notification_close",function(e){idname=$(this).parent().parent().attr("id"),t=idname.substr(-2),$("#ntf"+t).remove(),$("#ntlink"+t).parent().remove(),$(".notifications a").first().addClass("active"),$("#notif-group div").first().css("display","block")})}}function init_EasyPieChart(){if(void 0!==$.fn.easyPieChart){console.log("init_EasyPieChart"),$(".chart").easyPieChart({easing:"easeOutElastic",delay:3e3,barColor:"#26B99A",trackColor:"#fff",scaleColor:!1,lineWidth:20,trackWidth:16,lineCap:"butt",onStep:function(e,t,n){$(this.el).find(".percent").text(Math.round(n))}});var e=window.chart=$(".chart").data("easyPieChart");$(".js_update").on("click",function(){e.update(200*Math.random()-100)});var t=$.fn.popover.Constructor.prototype.leave;$.fn.popover.Constructor.prototype.leave=function(e){var n,r,o=e instanceof this.constructor?e:$(e.currentTarget)[this.type](this.getDelegateOptions()).data("bs."+this.type);t.call(this,e),e.currentTarget&&(n=$(e.currentTarget).siblings(".popover"),r=o.timeout,n.one("mouseenter",function(){clearTimeout(r),n.one("mouseleave",function(){$.fn.popover.Constructor.prototype.leave.call(o,o)})}))},$("body").popover({selector:"[data-popover]",trigger:"click hover",delay:{show:50,hide:400}})}}function init_charts(){if(console.log("run_charts typeof ["+typeof Chart+"]"),"undefined"!=typeof Chart){if(console.log("init_charts"),Chart.defaults.global.legend={enabled:!1},$("#canvas_line").length&&new Chart(document.getElementById("canvas_line"),{type:"line",data:{labels:["January","February","March","April","May","June","July"],datasets:[{label:"My First dataset",backgroundColor:"rgba(38, 185, 154, 0.31)",borderColor:"rgba(38, 185, 154, 0.7)",pointBorderColor:"rgba(38, 185, 154, 0.7)",pointBackgroundColor:"rgba(38, 185, 154, 0.7)",pointHoverBackgroundColor:"#fff",pointHoverBorderColor:"rgba(220,220,220,1)",pointBorderWidth:1,data:[31,74,6,39,20,85,7]},{label:"My Second dataset",backgroundColor:"rgba(3, 88, 106, 0.3)",borderColor:"rgba(3, 88, 106, 0.70)",pointBorderColor:"rgba(3, 88, 106, 0.70)",pointBackgroundColor:"rgba(3, 88, 106, 0.70)",pointHoverBackgroundColor:"#fff",pointHoverBorderColor:"rgba(151,187,205,1)",pointBorderWidth:1,data:[82,23,66,9,99,4,2]}]}}),$("#canvas_line1").length&&new Chart(document.getElementById("canvas_line1"),{type:"line",data:{labels:["January","February","March","April","May","June","July"],datasets:[{label:"My First dataset",backgroundColor:"rgba(38, 185, 154, 0.31)",borderColor:"rgba(38, 185, 154, 0.7)",pointBorderColor:"rgba(38, 185, 154, 0.7)",pointBackgroundColor:"rgba(38, 185, 154, 0.7)",pointHoverBackgroundColor:"#fff",pointHoverBorderColor:"rgba(220,220,220,1)",pointBorderWidth:1,data:[31,74,6,39,20,85,7]},{label:"My Second dataset",backgroundColor:"rgba(3, 88, 106, 0.3)",borderColor:"rgba(3, 88, 106, 0.70)",pointBorderColor:"rgba(3, 88, 106, 0.70)",pointBackgroundColor:"rgba(3, 88, 106, 0.70)",pointHoverBackgroundColor:"#fff",pointHoverBorderColor:"rgba(151,187,205,1)",pointBorderWidth:1,data:[82,23,66,9,99,4,2]}]}}),$("#canvas_line2").length&&new Chart(document.getElementById("canvas_line2"),{type:"line",data:{labels:["January","February","March","April","May","June","July"],datasets:[{label:"My First dataset",backgroundColor:"rgba(38, 185, 154, 0.31)",borderColor:"rgba(38, 185, 154, 0.7)",pointBorderColor:"rgba(38, 185, 154, 0.7)",pointBackgroundColor:"rgba(38, 185, 154, 0.7)",pointHoverBackgroundColor:"#fff",pointHoverBorderColor:"rgba(220,220,220,1)",pointBorderWidth:1,data:[31,74,6,39,20,85,7]},{label:"My Second dataset",backgroundColor:"rgba(3, 88, 106, 0.3)",borderColor:"rgba(3, 88, 106, 0.70)",pointBorderColor:"rgba(3, 88, 106, 0.70)",pointBackgroundColor:"rgba(3, 88, 106, 0.70)",pointHoverBackgroundColor:"#fff",pointHoverBorderColor:"rgba(151,187,205,1)",pointBorderWidth:1,data:[82,23,66,9,99,4,2]}]}}),$("#canvas_line3").length&&new Chart(document.getElementById("canvas_line3"),{type:"line",data:{labels:["January","February","March","April","May","June","July"],datasets:[{label:"My First dataset",backgroundColor:"rgba(38, 185, 154, 0.31)",borderColor:"rgba(38, 185, 154, 0.7)",pointBorderColor:"rgba(38, 185, 154, 0.7)",pointBackgroundColor:"rgba(38, 185, 154, 0.7)",pointHoverBackgroundColor:"#fff",pointHoverBorderColor:"rgba(220,220,220,1)",pointBorderWidth:1,data:[31,74,6,39,20,85,7]},{label:"My Second dataset",backgroundColor:"rgba(3, 88, 106, 0.3)",borderColor:"rgba(3, 88, 106, 0.70)",pointBorderColor:"rgba(3, 88, 106, 0.70)",pointBackgroundColor:"rgba(3, 88, 106, 0.70)",pointHoverBackgroundColor:"#fff",pointHoverBorderColor:"rgba(151,187,205,1)",pointBorderWidth:1,data:[82,23,66,9,99,4,2]}]}}),$("#canvas_line4").length&&new Chart(document.getElementById("canvas_line4"),{type:"line",data:{labels:["January","February","March","April","May","June","July"],datasets:[{label:"My First dataset",backgroundColor:"rgba(38, 185, 154, 0.31)",borderColor:"rgba(38, 185, 154, 0.7)",pointBorderColor:"rgba(38, 185, 154, 0.7)",pointBackgroundColor:"rgba(38, 185, 154, 0.7)",pointHoverBackgroundColor:"#fff",pointHoverBorderColor:"rgba(220,220,220,1)",pointBorderWidth:1,data:[31,74,6,39,20,85,7]},{label:"My Second dataset",backgroundColor:"rgba(3, 88, 106, 0.3)",borderColor:"rgba(3, 88, 106, 0.70)",pointBorderColor:"rgba(3, 88, 106, 0.70)",pointBackgroundColor:"rgba(3, 88, 106, 0.70)",pointHoverBackgroundColor:"#fff",pointHoverBorderColor:"rgba(151,187,205,1)",pointBorderWidth:1,data:[82,23,66,9,99,4,2]}]}}),$("#lineChart").length){var e=document.getElementById("lineChart");new Chart(e,{type:"line",data:{labels:["January","February","March","April","May","June","July"],datasets:[{label:"My First dataset",backgroundColor:"rgba(38, 185, 154, 0.31)",borderColor:"rgba(38, 185, 154, 0.7)",pointBorderColor:"rgba(38, 185, 154, 0.7)",pointBackgroundColor:"rgba(38, 185, 154, 0.7)",pointHoverBackgroundColor:"#fff",pointHoverBorderColor:"rgba(220,220,220,1)",pointBorderWidth:1,data:[31,74,6,39,20,85,7]},{label:"My Second dataset",backgroundColor:"rgba(3, 88, 106, 0.3)",borderColor:"rgba(3, 88, 106, 0.70)",pointBorderColor:"rgba(3, 88, 106, 0.70)",pointBackgroundColor:"rgba(3, 88, 106, 0.70)",pointHoverBackgroundColor:"#fff",pointHoverBorderColor:"rgba(151,187,205,1)",pointBorderWidth:1,data:[82,23,66,9,99,4,2]}]}})}if($("#mybarChart").length){e=document.getElementById("mybarChart");new Chart(e,{type:"bar",data:{labels:["January","February","March","April","May","June","July"],datasets:[{label:"# of Votes",backgroundColor:"#26B99A",data:[51,30,40,28,92,50,45]},{label:"# of Votes",backgroundColor:"#03586A",data:[41,56,25,48,72,34,12]}]},options:{scales:{yAxes:[{ticks:{beginAtZero:!0}}]}}})}if($("#canvasDoughnut").length){e=document.getElementById("canvasDoughnut");var t={labels:["Dark Grey","Purple Color","Gray Color","Green Color","Blue Color"],datasets:[{data:[120,50,140,180,100],backgroundColor:["#455C73","#9B59B6","#BDC3C7","#26B99A","#3498DB"],hoverBackgroundColor:["#34495E","#B370CF","#CFD4D8","#36CAAB","#49A9EA"]}]};new Chart(e,{type:"doughnut",tooltipFillColor:"rgba(51, 51, 51, 0.55)",data:t})}if($("#canvasRadar").length){e=document.getElementById("canvasRadar"),t={labels:["Eating","Drinking","Sleeping","Designing","Coding","Cycling","Running"],datasets:[{label:"My First dataset",backgroundColor:"rgba(3, 88, 106, 0.2)",borderColor:"rgba(3, 88, 106, 0.80)",pointBorderColor:"rgba(3, 88, 106, 0.80)",pointBackgroundColor:"rgba(3, 88, 106, 0.80)",pointHoverBackgroundColor:"#fff",pointHoverBorderColor:"rgba(220,220,220,1)",data:[65,59,90,81,56,55,40]},{label:"My Second dataset",backgroundColor:"rgba(38, 185, 154, 0.2)",borderColor:"rgba(38, 185, 154, 0.85)",pointColor:"rgba(38, 185, 154, 0.85)",pointStrokeColor:"#fff",pointHighlightFill:"#fff",pointHighlightStroke:"rgba(151,187,205,1)",data:[28,48,40,19,96,27,100]}]};new Chart(e,{type:"radar",data:t})}if($("#pieChart").length){e=document.getElementById("pieChart"),t={datasets:[{data:[120,50,140,180,100],backgroundColor:["#455C73","#9B59B6","#BDC3C7","#26B99A","#3498DB"],label:"My dataset"}],labels:["Dark Gray","Purple","Gray","Green","Blue"]};new Chart(e,{data:t,type:"pie",otpions:{legend:!1}})}if($("#polarArea").length){e=document.getElementById("polarArea"),t={datasets:[{data:[120,50,140,180,100],backgroundColor:["#455C73","#9B59B6","#BDC3C7","#26B99A","#3498DB"],label:"My dataset"}],labels:["Dark Gray","Purple","Gray","Green","Blue"]};new Chart(e,{data:t,type:"polarArea",options:{scale:{ticks:{beginAtZero:!0}}}})}}}function init_compose(){void 0!==$.fn.slideToggle&&(console.log("init_compose"),$("#compose, .compose-close").click(function(){$(".compose").slideToggle()}))}function init_calendar(){if(void 0!==$.fn.fullCalendar){console.log("init_calendar");var e,t=new Date,n=t.getDate(),r=t.getMonth(),o=t.getFullYear(),i=$("#calendar").fullCalendar({header:{left:"prev,next today",center:"title",right:"month,agendaWeek,agendaDay,listMonth"},selectable:!0,selectHelper:!0,select:function(t,n,r){$("#fc_create").click(),e=t,ended=n,$(".antosubmit").on("click",function(){var t=$("#title").val();return n&&(ended=n),$("#event_type").val(),t&&i.fullCalendar("renderEvent",{title:t,start:e,end:n,allDay:r},!0),$("#title").val(""),i.fullCalendar("unselect"),$(".antoclose").click(),!1})},eventClick:function(e,t,n){$("#fc_edit").click(),$("#title2").val(e.title),$("#event_type").val(),$(".antosubmit2").on("click",function(){e.title=$("#title2").val(),i.fullCalendar("updateEvent",e),$(".antoclose2").click()}),i.fullCalendar("unselect")},editable:!0,events:[{title:"All Day Event",start:new Date(o,r,1)},{title:"Long Event",start:new Date(o,r,n-5),end:new Date(o,r,n-2)},{title:"Meeting",start:new Date(o,r,n,10,30),allDay:!1},{title:"Lunch",start:new Date(o,r,n+14,12,0),end:new Date(o,r,n,14,0),allDay:!1},{title:"Birthday Party",start:new Date(o,r,n+1,19,0),end:new Date(o,r,n+1,22,30),allDay:!1},{title:"Click for Google",start:new Date(o,r,28),end:new Date(o,r,29),url:"http://google.com/"}]})}}function init_DataTables(){if(console.log("run_datatables"),void 0!==$.fn.DataTable){console.log("init_DataTables");TableManageButtons=function(){"use strict";return{init:function(){$("#datatable-buttons").length&&$("#datatable-buttons").DataTable({dom:"Bfrtip",buttons:[{extend:"copy",className:"btn-sm"},{extend:"csv",className:"btn-sm"},{extend:"excel",className:"btn-sm"},{extend:"pdfHtml5",className:"btn-sm"},{extend:"print",className:"btn-sm"}],responsive:!0})}}}(),$("#datatable").dataTable(),$("#datatable-keytable").DataTable({keys:!0}),$("#datatable-responsive").DataTable(),$("#datatable-scroller").DataTable({ajax:"js/datatables/json/scroller-demo.json",deferRender:!0,scrollY:380,scrollCollapse:!0,scroller:!0}),$("#datatable-fixed-header").DataTable({fixedHeader:!0});var e=$("#datatable-checkbox");e.dataTable({order:[[1,"asc"]],columnDefs:[{orderable:!1,targets:[0]}]}),e.on("draw.dt",function(){$("checkbox input").iCheck({checkboxClass:"icheckbox_flat-green"})}),TableManageButtons.init()}}function init_morris_charts(){"undefined"!=typeof Morris&&(console.log("init_morris_charts"),$("#graph_bar").length&&Morris.Bar({element:"graph_bar",data:[{device:"iPhone 4",geekbench:380},{device:"iPhone 4S",geekbench:655},{device:"iPhone 3GS",geekbench:275},{device:"iPhone 5",geekbench:1571},{device:"iPhone 5S",geekbench:655},{device:"iPhone 6",geekbench:2154},{device:"iPhone 6 Plus",geekbench:1144},{device:"iPhone 6S",geekbench:2371},{device:"iPhone 6S Plus",geekbench:1471},{device:"Other",geekbench:1371}],xkey:"device",ykeys:["geekbench"],labels:["Geekbench"],barRatio:.4,barColors:["#26B99A","#34495E","#ACADAC","#3498DB"],xLabelAngle:35,hideHover:"auto",resize:!0}),$("#graph_bar_group").length&&Morris.Bar({element:"graph_bar_group",data:[{period:"2016-10-01",licensed:807,sorned:660},{period:"2016-09-30",licensed:1251,sorned:729},{period:"2016-09-29",licensed:1769,sorned:1018},{period:"2016-09-20",licensed:2246,sorned:1461},{period:"2016-09-19",licensed:2657,sorned:1967},{period:"2016-09-18",licensed:3148,sorned:2627},{period:"2016-09-17",licensed:3471,sorned:3740},{period:"2016-09-16",licensed:2871,sorned:2216},{period:"2016-09-15",licensed:2401,sorned:1656},{period:"2016-09-10",licensed:2115,sorned:1022}],xkey:"period",barColors:["#26B99A","#34495E","#ACADAC","#3498DB"],ykeys:["licensed","sorned"],labels:["Licensed","SORN"],hideHover:"auto",xLabelAngle:60,resize:!0}),$("#graphx").length&&Morris.Bar({element:"graphx",data:[{x:"2015 Q1",y:2,z:3,a:4},{x:"2015 Q2",y:3,z:5,a:6},{x:"2015 Q3",y:4,z:3,a:2},{x:"2015 Q4",y:2,z:4,a:5}],xkey:"x",ykeys:["y","z","a"],barColors:["#26B99A","#34495E","#ACADAC","#3498DB"],hideHover:"auto",labels:["Y","Z","A"],resize:!0}).on("click",function(e,t){console.log(e,t)}),$("#graph_area").length&&Morris.Area({element:"graph_area",data:[{period:"2014 Q1",iphone:2666,ipad:null,itouch:2647},{period:"2014 Q2",iphone:2778,ipad:2294,itouch:2441},{period:"2014 Q3",iphone:4912,ipad:1969,itouch:2501},{period:"2014 Q4",iphone:3767,ipad:3597,itouch:5689},{period:"2015 Q1",iphone:6810,ipad:1914,itouch:2293},{period:"2015 Q2",iphone:5670,ipad:4293,itouch:1881},{period:"2015 Q3",iphone:4820,ipad:3795,itouch:1588},{period:"2015 Q4",iphone:15073,ipad:5967,itouch:5175},{period:"2016 Q1",iphone:10687,ipad:4460,itouch:2028},{period:"2016 Q2",iphone:8432,ipad:5713,itouch:1791}],xkey:"period",ykeys:["iphone","ipad","itouch"],lineColors:["#26B99A","#34495E","#ACADAC","#3498DB"],labels:["iPhone","iPad","iPod Touch"],pointSize:2,hideHover:"auto",resize:!0}),$("#graph_donut").length&&Morris.Donut({element:"graph_donut",data:[{label:"Jam",value:25},{label:"Frosted",value:40},{label:"Custard",value:25},{label:"Sugar",value:10}],colors:["#26B99A","#34495E","#ACADAC","#3498DB"],formatter:function(e){return e+"%"},resize:!0}),$("#graph_line").length&&(Morris.Line({element:"graph_line",xkey:"year",ykeys:["value"],labels:["Value"],hideHover:"auto",lineColors:["#26B99A","#34495E","#ACADAC","#3498DB"],data:[{year:"2012",value:20},{year:"2013",value:10},{year:"2014",value:5},{year:"2015",value:5},{year:"2016",value:20}],resize:!0}),$MENU_TOGGLE.on("click",function(){$(window).resize()})))}function init_echarts(){if("undefined"!=typeof echarts){console.log("init_echarts");var e={color:["#26B99A","#34495E","#BDC3C7","#3498DB","#9B59B6","#8abb6f","#759c6a","#bfd3b7"],title:{itemGap:8,textStyle:{fontWeight:"normal",color:"#408829"}},dataRange:{color:["#1f610a","#97b58d"]},toolbox:{color:["#408829","#408829","#408829","#408829"]},tooltip:{backgroundColor:"rgba(0,0,0,0.5)",axisPointer:{type:"line",lineStyle:{color:"#408829",type:"dashed"},crossStyle:{color:"#408829"},shadowStyle:{color:"rgba(200,200,200,0.3)"}}},dataZoom:{dataBackgroundColor:"#eee",fillerColor:"rgba(64,136,41,0.2)",handleColor:"#408829"},grid:{borderWidth:0},categoryAxis:{axisLine:{lineStyle:{color:"#408829"}},splitLine:{lineStyle:{color:["#eee"]}}},valueAxis:{axisLine:{lineStyle:{color:"#408829"}},splitArea:{show:!0,areaStyle:{color:["rgba(250,250,250,0.1)","rgba(200,200,200,0.1)"]}},splitLine:{lineStyle:{color:["#eee"]}}},timeline:{lineStyle:{color:"#408829"},controlStyle:{normal:{color:"#408829"},emphasis:{color:"#408829"}}},k:{itemStyle:{normal:{color:"#68a54a",color0:"#a9cba2",lineStyle:{width:1,color:"#408829",color0:"#86b379"}}}},map:{itemStyle:{normal:{areaStyle:{color:"#ddd"},label:{textStyle:{color:"#c12e34"}}},emphasis:{areaStyle:{color:"#99d2dd"},label:{textStyle:{color:"#c12e34"}}}}},force:{itemStyle:{normal:{linkStyle:{strokeColor:"#408829"}}}},chord:{padding:4,itemStyle:{normal:{lineStyle:{width:1,color:"rgba(128, 128, 128, 0.5)"},chordStyle:{lineStyle:{width:1,color:"rgba(128, 128, 128, 0.5)"}}},emphasis:{lineStyle:{width:1,color:"rgba(128, 128, 128, 0.5)"},chordStyle:{lineStyle:{width:1,color:"rgba(128, 128, 128, 0.5)"}}}}},gauge:{startAngle:225,endAngle:-45,axisLine:{show:!0,lineStyle:{color:[[.2,"#86b379"],[.8,"#68a54a"],[1,"#408829"]],width:8}},axisTick:{splitNumber:10,length:12,lineStyle:{color:"auto"}},axisLabel:{textStyle:{color:"auto"}},splitLine:{length:18,lineStyle:{color:"auto"}},pointer:{length:"90%",color:"auto"},title:{textStyle:{color:"#333"}},detail:{textStyle:{color:"auto"}}},textStyle:{fontFamily:"Arial, Verdana, sans-serif"}};if($("#mainb").length)echarts.init(document.getElementById("mainb"),e).setOption({title:{text:"Graph title",subtext:"Graph Sub-text"},tooltip:{trigger:"axis"},legend:{data:["sales","purchases"]},toolbox:{show:!1},calculable:!1,xAxis:[{type:"category",data:["1?","2?","3?","4?","5?","6?","7?","8?","9?","10?","11?","12?"]}],yAxis:[{type:"value"}],series:[{name:"sales",type:"bar",data:[2,4.9,7,23.2,25.6,76.7,135.6,162.2,32.6,20,6.4,3.3],markPoint:{data:[{type:"max",name:"???"},{type:"min",name:"???"}]},markLine:{data:[{type:"average",name:"???"}]}},{name:"purchases",type:"bar",data:[2.6,5.9,9,26.4,28.7,70.7,175.6,182.2,48.7,18.8,6,2.3],markPoint:{data:[{name:"sales",value:182.2,xAxis:7,yAxis:183},{name:"purchases",value:2.3,xAxis:11,yAxis:3}]},markLine:{data:[{type:"average",name:"???"}]}}]});if($("#echart_sonar").length)echarts.init(document.getElementById("echart_sonar"),e).setOption({title:{text:"Budget vs spending",subtext:"Subtitle"},tooltip:{trigger:"item"},legend:{orient:"vertical",x:"right",y:"bottom",data:["Allocated Budget","Actual Spending"]},toolbox:{show:!0,feature:{restore:{show:!0,title:"Restore"},saveAsImage:{show:!0,title:"Save Image"}}},polar:[{indicator:[{text:"Sales",max:6e3},{text:"Administration",max:16e3},{text:"Information Techology",max:3e4},{text:"Customer Support",max:38e3},{text:"Development",max:52e3},{text:"Marketing",max:25e3}]}],calculable:!0,series:[{name:"Budget vs spending",type:"radar",data:[{value:[4300,1e4,28e3,35e3,5e4,19e3],name:"Allocated Budget"},{value:[5e3,14e3,28e3,31e3,42e3,21e3],name:"Actual Spending"}]}]});if($("#echart_pyramid").length)echarts.init(document.getElementById("echart_pyramid"),e).setOption({title:{text:"Echart Pyramid Graph",subtext:"Subtitle"},tooltip:{trigger:"item",formatter:"{a}
    {b} : {c}%"},toolbox:{show:!0,feature:{restore:{show:!0,title:"Restore"},saveAsImage:{show:!0,title:"Save Image"}}},legend:{data:["Something #1","Something #2","Something #3","Something #4","Something #5"],orient:"vertical",x:"left",y:"bottom"},calculable:!0,series:[{name:"漏斗图",type:"funnel",width:"40%",data:[{value:60,name:"Something #1"},{value:40,name:"Something #2"},{value:20,name:"Something #3"},{value:80,name:"Something #4"},{value:100,name:"Something #5"}]}]});if($("#echart_gauge").length)echarts.init(document.getElementById("echart_gauge"),e).setOption({tooltip:{formatter:"{a}
    {b} : {c}%"},toolbox:{show:!0,feature:{restore:{show:!0,title:"Restore"},saveAsImage:{show:!0,title:"Save Image"}}},series:[{name:"Performance",type:"gauge",center:["50%","50%"],startAngle:140,endAngle:-140,min:0,max:100,precision:0,splitNumber:10,axisLine:{show:!0,lineStyle:{color:[[.2,"lightgreen"],[.4,"orange"],[.8,"skyblue"],[1,"#ff4500"]],width:30}},axisTick:{show:!0,splitNumber:5,length:8,lineStyle:{color:"#eee",width:1,type:"solid"}},axisLabel:{show:!0,formatter:function(e){switch(e+""){case"10":return"a";case"30":return"b";case"60":return"c";case"90":return"d";default:return""}},textStyle:{color:"#333"}},splitLine:{show:!0,length:30,lineStyle:{color:"#eee",width:2,type:"solid"}},pointer:{length:"80%",width:8,color:"auto"},title:{show:!0,offsetCenter:["-65%",-10],textStyle:{color:"#333",fontSize:15}},detail:{show:!0,backgroundColor:"rgba(0,0,0,0)",borderWidth:0,borderColor:"#ccc",width:100,height:40,offsetCenter:["-60%",10],formatter:"{value}%",textStyle:{color:"auto",fontSize:30}},data:[{value:50,name:"Performance"}]}]});if($("#echart_line").length)echarts.init(document.getElementById("echart_line"),e).setOption({title:{text:"Line Graph",subtext:"Subtitle"},tooltip:{trigger:"axis"},legend:{x:220,y:40,data:["Intent","Pre-order","Deal"]},toolbox:{show:!0,feature:{magicType:{show:!0,title:{line:"Line",bar:"Bar",stack:"Stack",tiled:"Tiled"},type:["line","bar","stack","tiled"]},restore:{show:!0,title:"Restore"},saveAsImage:{show:!0,title:"Save Image"}}},calculable:!0,xAxis:[{type:"category",boundaryGap:!1,data:["Mon","Tue","Wed","Thu","Fri","Sat","Sun"]}],yAxis:[{type:"value"}],series:[{name:"Deal",type:"line",smooth:!0,itemStyle:{normal:{areaStyle:{type:"default"}}},data:[10,12,21,54,260,830,710]},{name:"Pre-order",type:"line",smooth:!0,itemStyle:{normal:{areaStyle:{type:"default"}}},data:[30,182,434,791,390,30,10]},{name:"Intent",type:"line",smooth:!0,itemStyle:{normal:{areaStyle:{type:"default"}}},data:[1320,1132,601,234,120,90,20]}]});if($("#echart_scatter").length)echarts.init(document.getElementById("echart_scatter"),e).setOption({title:{text:"Scatter Graph",subtext:"Heinz 2003"},tooltip:{trigger:"axis",showDelay:0,axisPointer:{type:"cross",lineStyle:{type:"dashed",width:1}}},legend:{data:["Data2","Data1"]},toolbox:{show:!0,feature:{saveAsImage:{show:!0,title:"Save Image"}}},xAxis:[{type:"value",scale:!0,axisLabel:{formatter:"{value} cm"}}],yAxis:[{type:"value",scale:!0,axisLabel:{formatter:"{value} kg"}}],series:[{name:"Data1",type:"scatter",tooltip:{trigger:"item",formatter:function(e){return e.value.length>1?e.seriesName+" :
    "+e.value[0]+"cm "+e.value[1]+"kg ":e.seriesName+" :
    "+e.name+" : "+e.value+"kg "}},data:[[161.2,51.6],[167.5,59],[159.5,49.2],[157,63],[155.8,53.6],[170,59],[159.1,47.6],[166,69.8],[176.2,66.8],[160.2,75.2],[172.5,55.2],[170.9,54.2],[172.9,62.5],[153.4,42],[160,50],[147.2,49.8],[168.2,49.2],[175,73.2],[157,47.8],[167.6,68.8],[159.5,50.6],[175,82.5],[166.8,57.2],[176.5,87.8],[170.2,72.8],[174,54.5],[173,59.8],[179.9,67.3],[170.5,67.8],[160,47],[154.4,46.2],[162,55],[176.5,83],[160,54.4],[152,45.8],[162.1,53.6],[170,73.2],[160.2,52.1],[161.3,67.9],[166.4,56.6],[168.9,62.3],[163.8,58.5],[167.6,54.5],[160,50.2],[161.3,60.3],[167.6,58.3],[165.1,56.2],[160,50.2],[170,72.9],[157.5,59.8],[167.6,61],[160.7,69.1],[163.2,55.9],[152.4,46.5],[157.5,54.3],[168.3,54.8],[180.3,60.7],[165.5,60],[165,62],[164.5,60.3],[156,52.7],[160,74.3],[163,62],[165.7,73.1],[161,80],[162,54.7],[166,53.2],[174,75.7],[172.7,61.1],[167.6,55.7],[151.1,48.7],[164.5,52.3],[163.5,50],[152,59.3],[169,62.5],[164,55.7],[161.2,54.8],[155,45.9],[170,70.6],[176.2,67.2],[170,69.4],[162.5,58.2],[170.3,64.8],[164.1,71.6],[169.5,52.8],[163.2,59.8],[154.5,49],[159.8,50],[173.2,69.2],[170,55.9],[161.4,63.4],[169,58.2],[166.2,58.6],[159.4,45.7],[162.5,52.2],[159,48.6],[162.8,57.8],[159,55.6],[179.8,66.8],[162.9,59.4],[161,53.6],[151.1,73.2],[168.2,53.4],[168.9,69],[173.2,58.4],[171.8,56.2],[178,70.6],[164.3,59.8],[163,72],[168.5,65.2],[166.8,56.6],[172.7,105.2],[163.5,51.8],[169.4,63.4],[167.8,59],[159.5,47.6],[167.6,63],[161.2,55.2],[160,45],[163.2,54],[162.2,50.2],[161.3,60.2],[149.5,44.8],[157.5,58.8],[163.2,56.4],[172.7,62],[155,49.2],[156.5,67.2],[164,53.8],[160.9,54.4],[162.8,58],[167,59.8],[160,54.8],[160,43.2],[168.9,60.5],[158.2,46.4],[156,64.4],[160,48.8],[167.1,62.2],[158,55.5],[167.6,57.8],[156,54.6],[162.1,59.2],[173.4,52.7],[159.8,53.2],[170.5,64.5],[159.2,51.8],[157.5,56],[161.3,63.6],[162.6,63.2],[160,59.5],[168.9,56.8],[165.1,64.1],[162.6,50],[165.1,72.3],[166.4,55],[160,55.9],[152.4,60.4],[170.2,69.1],[162.6,84.5],[170.2,55.9],[158.8,55.5],[172.7,69.5],[167.6,76.4],[162.6,61.4],[167.6,65.9],[156.2,58.6],[175.2,66.8],[172.1,56.6],[162.6,58.6],[160,55.9],[165.1,59.1],[182.9,81.8],[166.4,70.7],[165.1,56.8],[177.8,60],[165.1,58.2],[175.3,72.7],[154.9,54.1],[158.8,49.1],[172.7,75.9],[168.9,55],[161.3,57.3],[167.6,55],[165.1,65.5],[175.3,65.5],[157.5,48.6],[163.8,58.6],[167.6,63.6],[165.1,55.2],[165.1,62.7],[168.9,56.6],[162.6,53.9],[164.5,63.2],[176.5,73.6],[168.9,62],[175.3,63.6],[159.4,53.2],[160,53.4],[170.2,55],[162.6,70.5],[167.6,54.5],[162.6,54.5],[160.7,55.9],[160,59],[157.5,63.6],[162.6,54.5],[152.4,47.3],[170.2,67.7],[165.1,80.9],[172.7,70.5],[165.1,60.9],[170.2,63.6],[170.2,54.5],[170.2,59.1],[161.3,70.5],[167.6,52.7],[167.6,62.7],[165.1,86.3],[162.6,66.4],[152.4,67.3],[168.9,63],[170.2,73.6],[175.2,62.3],[175.2,57.7],[160,55.4],[165.1,104.1],[174,55.5],[170.2,77.3],[160,80.5],[167.6,64.5],[167.6,72.3],[167.6,61.4],[154.9,58.2],[162.6,81.8],[175.3,63.6],[171.4,53.4],[157.5,54.5],[165.1,53.6],[160,60],[174,73.6],[162.6,61.4],[174,55.5],[162.6,63.6],[161.3,60.9],[156.2,60],[149.9,46.8],[169.5,57.3],[160,64.1],[175.3,63.6],[169.5,67.3],[160,75.5],[172.7,68.2],[162.6,61.4],[157.5,76.8],[176.5,71.8],[164.4,55.5],[160.7,48.6],[174,66.4],[163.8,67.3]],markPoint:{data:[{type:"max",name:"Max"},{type:"min",name:"Min"}]},markLine:{data:[{type:"average",name:"Mean"}]}},{name:"Data2",type:"scatter",tooltip:{trigger:"item",formatter:function(e){return e.value.length>1?e.seriesName+" :
    "+e.value[0]+"cm "+e.value[1]+"kg ":e.seriesName+" :
    "+e.name+" : "+e.value+"kg "}},data:[[174,65.6],[175.3,71.8],[193.5,80.7],[186.5,72.6],[187.2,78.8],[181.5,74.8],[184,86.4],[184.5,78.4],[175,62],[184,81.6],[180,76.6],[177.8,83.6],[192,90],[176,74.6],[174,71],[184,79.6],[192.7,93.8],[171.5,70],[173,72.4],[176,85.9],[176,78.8],[180.5,77.8],[172.7,66.2],[176,86.4],[173.5,81.8],[178,89.6],[180.3,82.8],[180.3,76.4],[164.5,63.2],[173,60.9],[183.5,74.8],[175.5,70],[188,72.4],[189.2,84.1],[172.8,69.1],[170,59.5],[182,67.2],[170,61.3],[177.8,68.6],[184.2,80.1],[186.7,87.8],[171.4,84.7],[172.7,73.4],[175.3,72.1],[180.3,82.6],[182.9,88.7],[188,84.1],[177.2,94.1],[172.1,74.9],[167,59.1],[169.5,75.6],[174,86.2],[172.7,75.3],[182.2,87.1],[164.1,55.2],[163,57],[171.5,61.4],[184.2,76.8],[174,86.8],[174,72.2],[177,71.6],[186,84.8],[167,68.2],[171.8,66.1],[182,72],[167,64.6],[177.8,74.8],[164.5,70],[192,101.6],[175.5,63.2],[171.2,79.1],[181.6,78.9],[167.4,67.7],[181.1,66],[177,68.2],[174.5,63.9],[177.5,72],[170.5,56.8],[182.4,74.5],[197.1,90.9],[180.1,93],[175.5,80.9],[180.6,72.7],[184.4,68],[175.5,70.9],[180.6,72.5],[177,72.5],[177.1,83.4],[181.6,75.5],[176.5,73],[175,70.2],[174,73.4],[165.1,70.5],[177,68.9],[192,102.3],[176.5,68.4],[169.4,65.9],[182.1,75.7],[179.8,84.5],[175.3,87.7],[184.9,86.4],[177.3,73.2],[167.4,53.9],[178.1,72],[168.9,55.5],[157.2,58.4],[180.3,83.2],[170.2,72.7],[177.8,64.1],[172.7,72.3],[165.1,65],[186.7,86.4],[165.1,65],[174,88.6],[175.3,84.1],[185.4,66.8],[177.8,75.5],[180.3,93.2],[180.3,82.7],[177.8,58],[177.8,79.5],[177.8,78.6],[177.8,71.8],[177.8,116.4],[163.8,72.2],[188,83.6],[198.1,85.5],[175.3,90.9],[166.4,85.9],[190.5,89.1],[166.4,75],[177.8,77.7],[179.7,86.4],[172.7,90.9],[190.5,73.6],[185.4,76.4],[168.9,69.1],[167.6,84.5],[175.3,64.5],[170.2,69.1],[190.5,108.6],[177.8,86.4],[190.5,80.9],[177.8,87.7],[184.2,94.5],[176.5,80.2],[177.8,72],[180.3,71.4],[171.4,72.7],[172.7,84.1],[172.7,76.8],[177.8,63.6],[177.8,80.9],[182.9,80.9],[170.2,85.5],[167.6,68.6],[175.3,67.7],[165.1,66.4],[185.4,102.3],[181.6,70.5],[172.7,95.9],[190.5,84.1],[179.1,87.3],[175.3,71.8],[170.2,65.9],[193,95.9],[171.4,91.4],[177.8,81.8],[177.8,96.8],[167.6,69.1],[167.6,82.7],[180.3,75.5],[182.9,79.5],[176.5,73.6],[186.7,91.8],[188,84.1],[188,85.9],[177.8,81.8],[174,82.5],[177.8,80.5],[171.4,70],[185.4,81.8],[185.4,84.1],[188,90.5],[188,91.4],[182.9,89.1],[176.5,85],[175.3,69.1],[175.3,73.6],[188,80.5],[188,82.7],[175.3,86.4],[170.5,67.7],[179.1,92.7],[177.8,93.6],[175.3,70.9],[182.9,75],[170.8,93.2],[188,93.2],[180.3,77.7],[177.8,61.4],[185.4,94.1],[168.9,75],[185.4,83.6],[180.3,85.5],[174,73.9],[167.6,66.8],[182.9,87.3],[160,72.3],[180.3,88.6],[167.6,75.5],[186.7,101.4],[175.3,91.1],[175.3,67.3],[175.9,77.7],[175.3,81.8],[179.1,75.5],[181.6,84.5],[177.8,76.6],[182.9,85],[177.8,102.5],[184.2,77.3],[179.1,71.8],[176.5,87.9],[188,94.3],[174,70.9],[167.6,64.5],[170.2,77.3],[167.6,72.3],[188,87.3],[174,80],[176.5,82.3],[180.3,73.6],[167.6,74.1],[188,85.9],[180.3,73.2],[167.6,76.3],[183,65.9],[183,90.9],[179.1,89.1],[170.2,62.3],[177.8,82.7],[179.1,79.1],[190.5,98.2],[177.8,84.1],[180.3,83.2],[180.3,83.2]],markPoint:{data:[{type:"max",name:"Max"},{type:"min",name:"Min"}]},markLine:{data:[{type:"average",name:"Mean"}]}}]});if($("#echart_bar_horizontal").length)echarts.init(document.getElementById("echart_bar_horizontal"),e).setOption({title:{text:"Bar Graph",subtext:"Graph subtitle"},tooltip:{trigger:"axis"},legend:{x:100,data:["2015","2016"]},toolbox:{show:!0,feature:{saveAsImage:{show:!0,title:"Save Image"}}},calculable:!0,xAxis:[{type:"value",boundaryGap:[0,.01]}],yAxis:[{type:"category",data:["Jan","Feb","Mar","Apr","May","Jun"]}],series:[{name:"2015",type:"bar",data:[18203,23489,29034,104970,131744,630230]},{name:"2016",type:"bar",data:[19325,23438,31e3,121594,134141,681807]}]});if($("#echart_pie2").length)echarts.init(document.getElementById("echart_pie2"),e).setOption({tooltip:{trigger:"item",formatter:"{a}
    {b} : {c} ({d}%)"},legend:{x:"center",y:"bottom",data:["rose1","rose2","rose3","rose4","rose5","rose6"]},toolbox:{show:!0,feature:{magicType:{show:!0,type:["pie","funnel"]},restore:{show:!0,title:"Restore"},saveAsImage:{show:!0,title:"Save Image"}}},calculable:!0,series:[{name:"Area Mode",type:"pie",radius:[25,90],center:["50%",170],roseType:"area",x:"50%",max:40,sort:"ascending",data:[{value:10,name:"rose1"},{value:5,name:"rose2"},{value:15,name:"rose3"},{value:25,name:"rose4"},{value:20,name:"rose5"},{value:35,name:"rose6"}]}]});if($("#echart_donut").length)echarts.init(document.getElementById("echart_donut"),e).setOption({tooltip:{trigger:"item",formatter:"{a}
    {b} : {c} ({d}%)"},calculable:!0,legend:{x:"center",y:"bottom",data:["Direct Access","E-mail Marketing","Union Ad","Video Ads","Search Engine"]},toolbox:{show:!0,feature:{magicType:{show:!0,type:["pie","funnel"],option:{funnel:{x:"25%",width:"50%",funnelAlign:"center",max:1548}}},restore:{show:!0,title:"Restore"},saveAsImage:{show:!0,title:"Save Image"}}},series:[{name:"Access to the resource",type:"pie",radius:["35%","55%"],itemStyle:{normal:{label:{show:!0},labelLine:{show:!0}},emphasis:{label:{show:!0,position:"center",textStyle:{fontSize:"14",fontWeight:"normal"}}}},data:[{value:335,name:"Direct Access"},{value:310,name:"E-mail Marketing"},{value:234,name:"Union Ad"},{value:135,name:"Video Ads"},{value:1548,name:"Search Engine"}]}]});if($("#echart_pie").length){echarts.init(document.getElementById("echart_pie"),e).setOption({tooltip:{trigger:"item",formatter:"{a}
    {b} : {c} ({d}%)"},legend:{x:"center",y:"bottom",data:["Direct Access","E-mail Marketing","Union Ad","Video Ads","Search Engine"]},toolbox:{show:!0,feature:{magicType:{show:!0,type:["pie","funnel"],option:{funnel:{x:"25%",width:"50%",funnelAlign:"left",max:1548}}},restore:{show:!0,title:"Restore"},saveAsImage:{show:!0,title:"Save Image"}}},calculable:!0,series:[{name:"访问来源",type:"pie",radius:"55%",center:["50%","48%"],data:[{value:335,name:"Direct Access"},{value:310,name:"E-mail Marketing"},{value:234,name:"Union Ad"},{value:135,name:"Video Ads"},{value:1548,name:"Search Engine"}]}]});var t={normal:{label:{show:!1},labelLine:{show:!1}}},n={normal:{color:"rgba(0,0,0,0)",label:{show:!1},labelLine:{show:!1}},emphasis:{color:"rgba(0,0,0,0)"}}}if($("#echart_mini_pie").length)echarts.init(document.getElementById("echart_mini_pie"),e).setOption({title:{text:"Chart #2",subtext:"From ExcelHome",sublink:"http://e.weibo.com/1341556070/AhQXtjbqh",x:"center",y:"center",itemGap:20,textStyle:{color:"rgba(30,144,255,0.8)",fontFamily:"微软雅黑",fontSize:35,fontWeight:"bolder"}},tooltip:{show:!0,formatter:"{a}
    {b} : {c} ({d}%)"},legend:{orient:"vertical",x:170,y:45,itemGap:12,data:["68%Something #1","29%Something #2","3%Something #3"]},toolbox:{show:!0,feature:{mark:{show:!0},dataView:{show:!0,title:"Text View",lang:["Text View","Close","Refresh"],readOnly:!1},restore:{show:!0,title:"Restore"},saveAsImage:{show:!0,title:"Save Image"}}},series:[{name:"1",type:"pie",clockWise:!1,radius:[105,130],itemStyle:t,data:[{value:68,name:"68%Something #1"},{value:32,name:"invisible",itemStyle:n}]},{name:"2",type:"pie",clockWise:!1,radius:[80,105],itemStyle:t,data:[{value:29,name:"29%Something #2"},{value:71,name:"invisible",itemStyle:n}]},{name:"3",type:"pie",clockWise:!1,radius:[25,80],itemStyle:t,data:[{value:3,name:"3%Something #3"},{value:97,name:"invisible",itemStyle:n}]}]});if($("#echart_world_map").length)echarts.init(document.getElementById("echart_world_map"),e).setOption({title:{text:"World Population (2010)",subtext:"from United Nations, Total population, both sexes combined, as of 1 July (thousands)",x:"center",y:"top"},tooltip:{trigger:"item",formatter:function(e){var t=(e.value+"").split(".");return t=t[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+"."+t[1],e.seriesName+"
    "+e.name+" : "+t}},toolbox:{show:!0,orient:"vertical",x:"right",y:"center",feature:{mark:{show:!0},dataView:{show:!0,title:"Text View",lang:["Text View","Close","Refresh"],readOnly:!1},restore:{show:!0,title:"Restore"},saveAsImage:{show:!0,title:"Save Image"}}},dataRange:{min:0,max:1e6,text:["High","Low"],realtime:!1,calculable:!0,color:["#087E65","#26B99A","#CBEAE3"]},series:[{name:"World Population (2010)",type:"map",mapType:"world",roam:!1,mapLocation:{y:60},itemStyle:{emphasis:{label:{show:!0}}},data:[{name:"Afghanistan",value:28397.812},{name:"Angola",value:19549.124},{name:"Albania",value:3150.143},{name:"United Arab Emirates",value:8441.537},{name:"Argentina",value:40374.224},{name:"Armenia",value:2963.496},{name:"French Southern and Antarctic Lands",value:268.065},{name:"Australia",value:22404.488},{name:"Austria",value:8401.924},{name:"Azerbaijan",value:9094.718},{name:"Burundi",value:9232.753},{name:"Belgium",value:10941.288},{name:"Benin",value:9509.798},{name:"Burkina Faso",value:15540.284},{name:"Bangladesh",value:151125.475},{name:"Bulgaria",value:7389.175},{name:"The Bahamas",value:66402.316},{name:"Bosnia and Herzegovina",value:3845.929},{name:"Belarus",value:9491.07},{name:"Belize",value:308.595},{name:"Bermuda",value:64.951},{name:"Bolivia",value:716.939},{name:"Brazil",value:195210.154},{name:"Brunei",value:27.223},{name:"Bhutan",value:716.939},{name:"Botswana",value:1969.341},{name:"Central African Republic",value:4349.921},{name:"Canada",value:34126.24},{name:"Switzerland",value:7830.534},{name:"Chile",value:17150.76},{name:"China",value:1359821.465},{name:"Ivory Coast",value:60508.978},{name:"Cameroon",value:20624.343},{name:"Democratic Republic of the Congo",value:62191.161},{name:"Republic of the Congo",value:3573.024},{name:"Colombia",value:46444.798},{name:"Costa Rica",value:4669.685},{name:"Cuba",value:11281.768},{name:"Northern Cyprus",value:1.468},{name:"Cyprus",value:1103.685},{name:"Czech Republic",value:10553.701},{name:"Germany",value:83017.404},{name:"Djibouti",value:834.036},{name:"Denmark",value:5550.959},{name:"Dominican Republic",value:10016.797},{name:"Algeria",value:37062.82},{name:"Ecuador",value:15001.072},{name:"Egypt",value:78075.705},{name:"Eritrea",value:5741.159},{name:"Spain",value:46182.038},{name:"Estonia",value:1298.533},{name:"Ethiopia",value:87095.281},{name:"Finland",value:5367.693},{name:"Fiji",value:860.559},{name:"Falkland Islands",value:49.581},{name:"France",value:63230.866},{name:"Gabon",value:1556.222},{name:"United Kingdom",value:62066.35},{name:"Georgia",value:4388.674},{name:"Ghana",value:24262.901},{name:"Guinea",value:10876.033},{name:"Gambia",value:1680.64},{name:"Guinea Bissau",value:10876.033},{name:"Equatorial Guinea",value:696.167},{name:"Greece",value:11109.999},{name:"Greenland",value:56.546},{name:"Guatemala",value:14341.576},{name:"French Guiana",value:231.169},{name:"Guyana",value:786.126},{name:"Honduras",value:7621.204},{name:"Croatia",value:4338.027},{name:"Haiti",value:9896.4},{name:"Hungary",value:10014.633},{name:"Indonesia",value:240676.485},{name:"India",value:1205624.648},{name:"Ireland",value:4467.561},{name:"Iran",value:240676.485},{name:"Iraq",value:30962.38},{name:"Iceland",value:318.042},{name:"Israel",value:7420.368},{name:"Italy",value:60508.978},{name:"Jamaica",value:2741.485},{name:"Jordan",value:6454.554},{name:"Japan",value:127352.833},{name:"Kazakhstan",value:15921.127},{name:"Kenya",value:40909.194},{name:"Kyrgyzstan",value:5334.223},{name:"Cambodia",value:14364.931},{name:"South Korea",value:51452.352},{name:"Kosovo",value:97.743},{name:"Kuwait",value:2991.58},{name:"Laos",value:6395.713},{name:"Lebanon",value:4341.092},{name:"Liberia",value:3957.99},{name:"Libya",value:6040.612},{name:"Sri Lanka",value:20758.779},{name:"Lesotho",value:2008.921},{name:"Lithuania",value:3068.457},{name:"Luxembourg",value:507.885},{name:"Latvia",value:2090.519},{name:"Morocco",value:31642.36},{name:"Moldova",value:103.619},{name:"Madagascar",value:21079.532},{name:"Mexico",value:117886.404},{name:"Macedonia",value:507.885},{name:"Mali",value:13985.961},{name:"Myanmar",value:51931.231},{name:"Montenegro",value:620.078},{name:"Mongolia",value:2712.738},{name:"Mozambique",value:23967.265},{name:"Mauritania",value:3609.42},{name:"Malawi",value:15013.694},{name:"Malaysia",value:28275.835},{name:"Namibia",value:2178.967},{name:"New Caledonia",value:246.379},{name:"Niger",value:15893.746},{name:"Nigeria",value:159707.78},{name:"Nicaragua",value:5822.209},{name:"Netherlands",value:16615.243},{name:"Norway",value:4891.251},{name:"Nepal",value:26846.016},{name:"New Zealand",value:4368.136},{name:"Oman",value:2802.768},{name:"Pakistan",value:173149.306},{name:"Panama",value:3678.128},{name:"Peru",value:29262.83},{name:"Philippines",value:93444.322},{name:"Papua New Guinea",value:6858.945},{name:"Poland",value:38198.754},{name:"Puerto Rico",value:3709.671},{name:"North Korea",value:1.468},{name:"Portugal",value:10589.792},{name:"Paraguay",value:6459.721},{name:"Qatar",value:1749.713},{name:"Romania",value:21861.476},{name:"Russia",value:21861.476},{name:"Rwanda",value:10836.732},{name:"Western Sahara",value:514.648},{name:"Saudi Arabia",value:27258.387},{name:"Sudan",value:35652.002},{name:"South Sudan",value:9940.929},{name:"Senegal",value:12950.564},{name:"Solomon Islands",value:526.447},{name:"Sierra Leone",value:5751.976},{name:"El Salvador",value:6218.195},{name:"Somaliland",value:9636.173},{name:"Somalia",value:9636.173},{name:"Republic of Serbia",value:3573.024},{name:"Suriname",value:524.96},{name:"Slovakia",value:5433.437},{name:"Slovenia",value:2054.232},{name:"Sweden",value:9382.297},{name:"Swaziland",value:1193.148},{name:"Syria",value:7830.534},{name:"Chad",value:11720.781},{name:"Togo",value:6306.014},{name:"Thailand",value:66402.316},{name:"Tajikistan",value:7627.326},{name:"Turkmenistan",value:5041.995},{name:"East Timor",value:10016.797},{name:"Trinidad and Tobago",value:1328.095},{name:"Tunisia",value:10631.83},{name:"Turkey",value:72137.546},{name:"United Republic of Tanzania",value:44973.33},{name:"Uganda",value:33987.213},{name:"Ukraine",value:46050.22},{name:"Uruguay",value:3371.982},{name:"United States of America",value:312247.116},{name:"Uzbekistan",value:27769.27},{name:"Venezuela",value:236.299},{name:"Vietnam",value:89047.397},{name:"Vanuatu",value:236.299},{name:"West Bank",value:13.565},{name:"Yemen",value:22763.008},{name:"South Africa",value:51452.352},{name:"Zambia",value:13216.985},{name:"Zimbabwe",value:13076.978}]}]})}}jQuery(function(e){e("#regexGroupSelect").change(function(){document.location="?group="+e("#regexGroupSelect option:selected").attr("value")}),e(".confirm_action").click(function(){return confirm("Are you sure?")})}),tinyMCE.init({selector:"textarea#body",theme:"silver",plugins:["advlist autolink link image lists charmap print preview hr anchor pagebreak spellchecker","searchreplace wordcount visualblocks visualchars code fullscreen insertdatetime media nonbreaking","save table contextmenu directionality emoticons template paste textcolor code"],theme_advanced_toolbar_location:"top",theme_advanced_toolbar_align:"left",toolbar:"insertfile undo redo | styleselect | fontselect |sizeselect | fontsizeselect | bold italic | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | link image | print preview media fullpage | forecolor backcolor emoticons | code",fontsize_formats:"8pt 9pt 10pt 11pt 12pt 13pt 14pt 15pt 16pt 17pt 18pt 24pt 36pt",mode:"exact",relative_urls:!1,remove_script_host:!1,convert_urls:!0}),tinyMCE.init({selector:"textarea#metadescription",theme:"silver",plugins:["advlist autolink link image lists charmap print preview hr anchor pagebreak spellchecker","searchreplace wordcount visualblocks visualchars code fullscreen insertdatetime media nonbreaking","save table contextmenu directionality emoticons template paste textcolor code"],theme_advanced_toolbar_location:"top",theme_advanced_toolbar_align:"left",toolbar:"insertfile undo redo | styleselect | fontselect |sizeselect | fontsizeselect | bold italic | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | link image | print preview media fullpage | forecolor backcolor emoticons | code",fontsize_formats:"8pt 9pt 10pt 11pt 12pt 13pt 14pt 15pt 16pt 17pt 18pt 24pt 36pt",mode:"exact",relative_urls:!1,remove_script_host:!1,convert_urls:!0}),tinyMCE.init({selector:"textarea#metakeywords",theme:"silver",plugins:["advlist autolink link image lists charmap print preview hr anchor pagebreak spellchecker","searchreplace wordcount visualblocks visualchars code fullscreen insertdatetime media nonbreaking","save table contextmenu directionality emoticons template paste textcolor code"],theme_advanced_toolbar_location:"top",theme_advanced_toolbar_align:"left",toolbar:"insertfile undo redo | styleselect | fontselect |sizeselect | fontsizeselect | bold italic | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | link image | print preview media fullpage | forecolor backcolor emoticons | code",fontsize_formats:"8pt 9pt 10pt 11pt 12pt 13pt 14pt 15pt 16pt 17pt 18pt 24pt 36pt",mode:"exact",relative_urls:!1,remove_script_host:!1,convert_urls:!0}),function(e,t){jQuery.fn[t]=function(e){return e?this.bind("resize",(n=e,function(){var e=this,t=arguments;i?clearTimeout(i):o&&n.apply(e,t),i=setTimeout(function(){o||n.apply(e,t),i=null},r||100)})):this.trigger(t);var n,r,o,i}}(jQuery,"smartresize"),$(document).ready(function(){var e,t=function(){$RIGHT_COL.css("min-height",$(window).height());var e=$BODY.outerHeight(),t=$BODY.hasClass("footer_fixed")?-10:$FOOTER.height(),n=$LEFT_COL.eq(1).height()+$SIDEBAR_FOOTER.height(),r=e1){for(var n=0,r=0;r:first-child"),"+"==$expand.text()?$expand.text("-"):$expand.text("+")})}),"undefined"!=typeof NProgress&&($(document).ready(function(){NProgress.start()}),$(window).load(function(){NProgress.done()}));var originalLeave=$.fn.popover.Constructor.prototype.leave;function isValidEmailAddress(e){return new RegExp(/^(("[\w-\s]+")|([\w-]+(?:\.[\w-]+)*)|("[\w-\s]+")([\w-]+(?:\.[\w-]+)*))(@((?:[\w-]+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$)|(@\[?((25[0-5]\.|2[0-4][0-9]\.|1[0-9]{2}\.|[0-9]{1,2}\.))((25[0-5]|2[0-4][0-9]|1[0-9]{2}|[0-9]{1,2})\.){2}(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[0-9]{1,2})\]?$)/i).test(e)}function mymovie_del(e,t){return $.ajax({url:base_url+"/ajax_mymovies?rand="+$.now(),data:{del:e},dataType:"html",success:function(e){$(t).hide(),$(t).prev("a").show()},error:function(e,t,n){}}),!1}function mymovie_add(e,t){return $(t).hide(),$(t).next("a").show(),$.ajax({url:base_url+"/ajax_mymovies?rand="+$.now(),data:{add:e},dataType:"html",success:function(e){},error:function(e,t,n){}}),!1}function getNzbGetQueue(){$.ajax({url:"queuedata?type=nzbget&id="+$.now(),cache:!1,success:function(e){$(".nzbget_queue").html(e),setTimeout("getNzbGetQueue()",2500)},error:function(){$(".nzbget_queue").html('Could not contact your queue. Refresh')},timeout:5e3})}function getHistory(){$.ajax({url:"queuedata?type=history&id="+$.now(),cache:!1,success:function(e){$(".sab_history").html(e),setTimeout("getHistory()",1e4)},error:function(){},timeout:5e3})}$.fn.popover.Constructor.prototype.leave=function(e){var t,n,r=e instanceof this.constructor?e:$(e.currentTarget)[this.type](this.getDelegateOptions()).data("bs."+this.type);originalLeave.call(this,e),e.currentTarget&&(t=$(e.currentTarget).siblings(".popover"),n=r.timeout,t.one("mouseenter",function(){clearTimeout(n),t.one("mouseleave",function(){$.fn.popover.Constructor.prototype.leave.call(r,r)})}))},$("body").popover({selector:"[data-popover]",trigger:"click hover",delay:{show:50,hide:400}}),$(document).ready(function(){init_sparklines(),init_flot_chart(),init_wysiwyg(),init_InputMask(),init_JQVmap(),init_cropper(),init_knob(),init_IonRangeSlider(),init_ColorPicker(),init_TagsInput(),init_parsley(),init_daterangepicker(),init_daterangepicker_right(),init_daterangepicker_single_call(),init_daterangepicker_reservation(),init_SmartWizard(),init_EasyPieChart(),init_charts(),init_echarts(),init_morris_charts(),init_skycons(),init_select2(),init_validator(),init_DataTables(),init_chart_doughnut(),init_gauge(),init_PNotify(),init_starrr(),init_calendar(),init_compose(),init_CustomNotification(),init_autosize(),init_autocomplete()}),jQuery(function(e){const t=window.location.origin;e(".cartadd").click(function(n){if(e(this).hasClass("icon_cart_clicked"))return!1;let r=e(".guid").attr("id").substring(4);return e.ajaxSetup({headers:{"X-CSRF-TOKEN":e('meta[name="csrf-token"]').attr("content")}}),e.post(t+"/cart/add?id="+r,function(t){e(n.target).addClass("icon_cart_clicked").attr("title","Added to Cart"),PNotify.defaults.icons="fontawesome5",PNotify.success({title:"Release added to your Download Basket!",type:"success",icon:"fa fa-info fa-3x",Animate:{animate:!0,in_class:"bounceInLeft",out_class:"bounceOutRight"},desktop:{desktop:!0,fallback:!0}})}),!1}),e(".sabsend").click(function(n){if(e(this).hasClass("icon_sab_clicked"))return!1;let r=e(".guid").attr("id").substring(4),o=t+"/sendtoqueue/"+r;return e.post(o,function(t){e(n.target).addClass("icon_sab_clicked").attr("title","Added to Queue"),PNotify.defaults.icons="fontawesome5",PNotify.success({title:"Release added to your download queue!",type:"success",icon:"fa fa-info fa-3x",Animate:{animate:!0,in_class:"bounceInLeft",out_class:"bounceOutRight"},desktop:{desktop:!0,fallback:!0}})}),!1}),e(".getsend").click(function(n){if(e(this).hasClass("icon_nzbget_clicked"))return!1;let r=e(".guid").attr("id").substring(4),o=t+"/sendtoqueue/"+r;return e.post(o,function(t){e(n.target).addClass("icon_nzbget_clicked").attr("title","Added to Queue"),PNotify.defaults.icons="fontawesome5",PNotify.success({title:"Release added to your download queue!",type:"success",icon:"fa fa-info fa-3x",Animate:{animate:!0,in_class:"bounceInLeft",out_class:"bounceOutRight"},desktop:{desktop:!0,fallback:!0}})}),!1}),e(".sendtocouch").click(function(n){if(e(this).hasClass("icon_cp_clicked"))return!1;let r=e(this).attr("id").substring(4),o=t+"sendtocouch/"+r;return e.post(o,function(t){e(n.target).addClass("icon_cp_clicked").attr("title","Added to CouchPotato"),PNotify.defaults.icons="fontawesome5",PNotify.success({title:"Movie added to CoucPotato wanted list!",type:"success",icon:"fa fa-info fa-3x",Animate:{animate:!0,in_class:"bounceInLeft",out_class:"bounceOutRight"},desktop:{desktop:!0,fallback:!0}})}),!1}),e(".vortexsend").click(function(n){if(e(this).hasClass("icon_nzbvortex_clicked"))return!1;let r=e(".guid").attr("id").substring(4);return r&&r.length>0&&e.ajax({url:t+"nzbvortex?addQueue="+r+"&isAjax",cache:!1}).done(function(t){let o="Added "+r+" to queue.";e(n.target).addClass("icon_nzbvortex_clicked").attr("title",o),PNotify.defaults.icons="fontawesome5",PNotify.success({title:"Release added to your download queue!",type:"success",icon:"fa fa-info fa-3x",Animate:{animate:!0,in_class:"bounceInLeft",out_class:"bounceOutRight"},desktop:{desktop:!0,fallback:!0}})}).fail(function(e){alert(e.responseText)}),!1});let n=new Array;n[0]="Waiting",n[1]="Downloading",n[2]="Downloaded",n[3]="Saving",n[4]="Saved",n[5]="Skipped";let r,o,i=e("table.data tr").children("td.icons").children("div.icon").css("opacity");e("table.data tr").hover(function(){e(this).children("td.icons").children("div.icon").css("opacity",1)},function(){e(this).children("td.icons").children("div.icon").css("opacity",i)}),e(".forumpostsubmit").click(function(t){if(""==e.trim(e("#addMessage").val())||""==e.trim(e("#addSubject").val()))return alert("Please enter a subject and message."),!1}),e(".forumreplysubmit").click(function(t){if(""==e.trim(e("#addMessage").val()))return alert("Please enter a message."),!1}),e(".check").click(function(t){e(t.target).is("input")||e(this).children(".nzb_check").attr("checked",!e(this).children(".nzb_check").attr("checked"))}),e(".descmore").click(function(t){return e(this).prev(".descinitial").hide(),e(this).next(".descfull").show(),e(this).hide(),!1}),e(".nzb_check_all").change(function(){e(this).attr("checked")?e("table.data tr td input:checkbox").attr("checked",e(this).attr("checked")):e("table.data tr td input:checkbox").removeAttr("checked")}),e(".nzb_check_all_season").change(function(){let t=e(this).attr("name");e("table.data tr td input:checkbox").each(function(n,r){e(r).attr("name")==t&&e(r).attr("checked",!e(r).attr("checked"))})}),e(".icon_cart").click(function(n){if(e(this).hasClass("icon_cart_clicked"))return!1;let r=e(this).attr("id").substring(4);return e.ajaxSetup({headers:{"X-CSRF-TOKEN":e('meta[name="csrf-token"]').attr("content")}}),e.post(t+"/cart/add?id="+r,function(t){e(n.target).addClass("icon_cart_clicked").attr("title"," Release added to Cart"),PNotify.defaults.icons="fontawesome5",PNotify.success({title:"Release added to your download basket!",type:"success",icon:"fa fa-info fa-3x",Animate:{animate:!0,in_class:"bounceInLeft",out_class:"bounceOutRight"},desktop:{desktop:!0,fallback:!0}})}),!1}),e(".icon_nzbvortex").click(function(n){if(e(this).hasClass("icon_nzbvortex_clicked"))return!1;let r=e(this).parent().parent().attr("id").substring(4);return r&&r.length>0&&e.ajax({url:t+"/nzbvortex?addQueue="+r+"&isAjax",cache:!1}).done(function(t){let o="Added "+r+" to queue.";e(n.target).addClass("icon_nzbvortex_clicked").attr("title",o),PNotify.defaults.icons="fontawesome5",PNotify.success({title:"ADDED TO NZBVORTEX!",type:"success",icon:"fa fa-info fa-3x",Animate:{animate:!0,in_class:"bounceInLeft",out_class:"bounceOutRight"},desktop:{desktop:!0,fallback:!0}})}).fail(function(e){alert(e.responseText)}),!1}),e(document).on("click","a.vortex-resume",function(n){return n.preventDefault(),e("#vortex-overlay-"+e(this).attr("href")).show(),e.get(t+"nzbvortex?resume="+e(this).attr("href")+"&isAjax"),e(this).removeAttr("href"),!1}),e(document).on("click","a.vortex-pause",function(n){return n.preventDefault(),e("#vortex-overlay-"+e(this).attr("href")).show(),e.get(t+"nzbvortex?pause="+e(this).attr("href")+"&isAjax"),e(this).removeAttr("href"),!1}),e(document).on("click","a.vortex-moveup",function(n){return n.preventDefault(),e("#vortex-overlay-"+e(this).attr("href")).show(),e.get(t+"nzbvortex?moveup="+e(this).attr("href")+"&isAjax"),e(this).removeAttr("href"),!1}),e(document).on("click","a.vortex-movedown",function(n){return n.preventDefault(),e("#vortex-overlay-"+e(this).attr("href")).show(),e.get(t+"nzbvortex?movedown="+e(this).attr("href")+"&isAjax"),e(this).removeAttr("href"),!1}),e(document).on("click","a.vortex-movetop",function(n){return n.preventDefault(),e("#vortex-overlay-"+e(this).attr("href")).show(),e.get(t+"nzbvortex?movetop="+e(this).attr("href")+"&isAjax"),e(this).removeAttr("href"),!1}),e(document).on("click","a.vortex-movebottom",function(n){return n.preventDefault(),e("#vortex-overlay-"+e(this).attr("href")).show(),e.get(t+"nzbvortex?movebottom="+e(this).attr("href")+"&isAjax"),e(this).removeAttr("href"),!1}),e(document).on("click","a.vortex-trash",function(n){return n.preventDefault(),e("#vortex-overlay-"+e(this).attr("href")).show(),e.get(t+"nzbvortex?delete="+e(this).attr("href")+"&isAjax"),e(this).removeAttr("href"),!1}),e(document).on("click","a.vortex-filelist",function(r){r.preventDefault();let o=e(this).attr("href");return e("#vortex-overlay-"+o).show(),e.colorbox({}),e.ajax({url:t+"/nzbvortex?filelist="+o+"&isAjax",cache:!1}).done(function(t){e("#cboxLoadingGraphic").hide();let r=e.parseJSON(t);console.log(r),e.each(r.files,function(t,r){e("#cboxContent").append(""+r.fileName+" ("+n[r.state]+")
    ")})}).fail(function(e){alert("Unable to retrieve filelist: "+e.responseText)}),e(this).removeAttr("href"),!1}),e(".icon_sab").click(function(n){if(e(this).hasClass("icon_sab_clicked"))return!1;let r=e(this).attr("id").substring(4),o=t+"/sendtoqueue/"+r;return e.post(o,function(t){e(n.target).addClass("icon_sab_clicked").attr("title","Release added to Queue"),PNotify.defaults.icons="fontawesome5",PNotify.success({title:"Release added to your download queue!",type:"success",icon:"fa fa-info fa-3x",Animate:{animate:!0,in_class:"bounceInLeft",out_class:"bounceOutRight"},desktop:{desktop:!0,fallback:!0}})}),!1}),e(".icon_nzbget").click(function(n){if(e(this).hasClass("icon_nzbget_clicked"))return!1;let r=e(this).attr("id").substring(4),o=t+"/sendtoqueue/"+r;return e.post(o,function(t){e(n.target).addClass("icon_nzbget_clicked").attr("title","Added to Queue"),PNotify.defaults.icons="fontawesome5",PNotify.success({title:"Release added to your download queue!",type:"success",icon:"fa fa-info fa-3x",Animate:{animate:!0,in_class:"bounceInLeft",out_class:"bounceOutRight"},desktop:{desktop:!0,fallback:!0}})}),!1}),e("table.data a.modal_nfo").colorbox({href:function(){return e(this).attr("href")+"&modal"},title:function(){return e(this).parent().parent().children("a.title").text()},innerWidth:"800px",innerHeight:"90%",initialWidth:"800px",initialHeight:"90%",speed:0,opacity:.7}),e("table.data a.modal_prev").colorbox({scrolling:!1,maxWidth:"800px",maxHeight:"450px"}),e("table.data a.modal_imdb").colorbox({href:function(){return t+"movie/"+e(this).attr("name").substring(4)+"&modal"},title:function(){return e(this).parent().parent().children("a.title").text()},innerWidth:"800px",innerHeight:"450px",initialWidth:"800px",initialHeight:"450px",speed:0,opacity:.7}).click(function(){e("#colorbox").removeClass().addClass("cboxMovie")}),e("a.modal_imdbtrailer").colorbox({href:function(){return t+"movietrailer/"+e(this).attr("name").substring(4)+"&modal"},title:function(){return e(this).parent().parent().children("a.title").text()},innerWidth:"800px",innerHeight:"450px",initialWidth:"800px",initialHeight:"450px",speed:0,opacity:.7}).click(function(){e("#colorbox").removeClass().addClass("cboxMovie")}),e("table.data a.modal_music").colorbox({href:function(){return t+"musicmodal/"+e(this).attr("name").substring(4)+"&modal"},title:function(){return e(this).parent().parent().children("a.title").text()},innerWidth:"800px",innerHeight:"450px",initialWidth:"800px",initialHeight:"450px",speed:0,opacity:.7}).click(function(){e("#colorbox").removeClass().addClass("cboxMusic")}),e("table.data a.modal_console").colorbox({href:function(){return t+"consolemodal/"+e(this).attr("name").substring(4)+"&modal"},title:function(){return e(this).parent().parent().children("a.title").text()},innerWidth:"800px",innerHeight:"450px",initialWidth:"800px",initialHeight:"450px",speed:0,opacity:.7}).click(function(){e("#colorbox").removeClass().addClass("cboxConsole")}),e("table.data a.modal_book").colorbox({href:function(){return t+"bookmodal/"+e(this).attr("name").substring(4)+"&modal"},title:function(){return e(this).parent().parent().children("a.title").text()},innerWidth:"800px",innerHeight:"450px",initialWidth:"800px",initialHeight:"450px",speed:0,opacity:.7}).click(function(){e("#colorbox").removeClass().addClass("cboxBook")}),e("#nzb_multi_operations_form").submit(function(){return!1}),e("button.nzb_multi_operations_download").on("click",function(){let n="";e("table.data INPUT[type='checkbox']:checked").each(function(t,r){"on"!=e(r).val()&&(n+=e(r).val()+",")}),(n=n.substring(0,n.length-1))&&(window.location=t+"/getnzb?zip=1&id="+n)}),e("input.nzb_multi_operations_download_cart").on("click",function(){let n="";e("table.data INPUT[type='checkbox']:checked").each(function(t,r){"on"!=e(r).val()&&(n+=e(r).val()+",")}),(n=n.substring(0,n.length-1))&&(window.location=t+"/getnzb?zip=1&id="+n)}),e("button.nzb_multi_operations_cart").on("click",function(){let n=new Array;e.ajaxSetup({headers:{"X-CSRF-TOKEN":e('meta[name="csrf-token"]').attr("content")}}),e("table.data INPUT[type='checkbox']:checked").each(function(t,r){let o=e(r).val(),i=e(r).parent().children("div.icons").children(".icon_cart");o&&!i.hasClass("icon_cart_clicked")&&(i.addClass("icon_cart_clicked").attr("title","Added to Cart"),n.push(o),PNotify.defaults.icons="fontawesome5",PNotify.success({title:"Release added to your Download Basket!",type:"success",icon:"fa fa-info fa-3x",Animate:{animate:!0,in_class:"bounceInLeft",out_class:"bounceOutRight"},desktop:{desktop:!0,fallback:!0}})),e(this).attr("checked",!1)});let r=n.toString();e.post(t+"/cart/add?id="+r)}),e("button.nzb_multi_operations_sab").on("click",function(){e("table.data INPUT[type='checkbox']:checked").each(function(n,r){let o=e(r).parent().parent().children("td.icons").children(".icon_sab"),i=e(r).val();if(i&&!o.hasClass("icon_sab_clicked")){let n=t+"/sendtoqueue/"+i;e.post(n,function(e){o.addClass("icon_sab_clicked").attr("title","Added to Queue"),PNotify.defaults.icons="fontawesome5",PNotify.success({title:"Release added to your download queue!",type:"success",icon:"fa fa-info fa-3x",Animate:{animate:!0,in_class:"bounceInLeft",out_class:"bounceOutRight"},desktop:{desktop:!0,fallback:!0}})})}e(this).attr("checked",!1)})}),e("input.nzb_multi_operations_nzbget").on("click",function(){e("table.data INPUT[type='checkbox']:checked").each(function(n,r){let o=e(r).parent().parent().children("td.icons").children(".icon_nzbget"),i=e(r).val();if(i&&!o.hasClass("icon_nzbget_clicked")){let n=t+"/sendtoqueue/"+i;e.post(n,function(e){o.addClass("icon_nzbget_clicked").attr("title","Added to Queue"),PNotify.defaults.icons="fontawesome5",PNotify.success({title:"Release added to your download queue!",type:"success",icon:"fa fa-info fa-3x",Animate:{animate:!0,in_class:"bounceInLeft",out_class:"bounceOutRight"},desktop:{desktop:!0,fallback:!0}})})}e(this).attr("checked",!1)})}),e("input.nzb_multi_operations_edit").click(function(){let n="";e("table.data INPUT[type='checkbox']:checked").each(function(t,r){"on"!=e(r).val()&&(n+="&id[]="+e(r).val())}),n&&e("input.nzb_multi_operations_edit").colorbox({href:function(){return t+"ajax_release-admin?action=edit"+n+"&from="+encodeURIComponent(window.location)},title:"Edit Release",innerWidth:"400px",innerHeight:"250px",initialWidth:"400px",initialHeight:"250px",speed:0,opacity:.7})}),e("input.nzb_multi_operations_delete").click(function(){let n="";if(e("table.data INPUT[type='checkbox']:checked").each(function(t,r){"on"!=e(r).val()&&(n+="&id[]="+e(r).val())}),n){PNotify.defaults.icons="fontawesome5";const r=PNotify.alert({title:"Confirmation Needed",text:"Are you sure you want to delete the selected releases?",icon:"glyphicon glyphicon-question-sign",hide:!1,modules:{Confirm:{confirm:!0}},Buttons:{closer:!1,sticker:!1},History:{history:!1}});r.on("pnotify.confirm",function(){e.post(t+"ajax_release-admin?action=dodelete"+n,function(e){location.reload(!0)})}),r.on("pnotify.cancel",function(){alert("Cancelled")})}}),e("input.nzb_multi_operations_rebuild").click(function(){let n="";e("table.data INPUT[type='checkbox']:checked").each(function(t,r){"on"!=e(r).val()&&(n+="&id[]="+e(r).val())}),n&&confirm("Are you sure you want to rebuild the selected releases?")&&e.post(t+"ajax_release-admin?action=dorebuild"+n,function(e){location.reload(!0)})}),e("input.nzb_multi_operations_cartdelete").click(function(){let n=new Array;if(e("table.data INPUT[type='checkbox']:checked").each(function(t,r){"on"!=e(r).val()&&n.push(e(r).val())}),e.ajaxSetup({headers:{"X-CSRF-TOKEN":e('meta[name="csrf-token"]').attr("content")}}),n){PNotify.defaults.icons="fontawesome5";const r=PNotify.alert({title:"Confirmation Needed",text:"Are you sure you want to delete the selected releases from your cart?",hide:!1,modules:{Confirm:{confirm:!0}},Buttons:{closer:!1,sticker:!1},History:{history:!1}});r.on("pnotify.confirm",function(){e.post(t+"/cart/delete/"+n)}),r.on("pnotify.cancel",function(){alert("Cancelled")})}}),e("input.nzb_multi_operations_cartsab").click(function(){new Array;e("table.data INPUT[type='checkbox']:checked").each(function(n,r){let o=e(r).val(),i=t+"/sendtoqueue/"+o;e.post(i,function(){PNotify.defaults.icons="fontawesome5",PNotify.success({title:"Releases sent to queue!",type:"success",icon:"fa fa-info fa-3x",Animate:{animate:!0,in_class:"bounceInLeft",out_class:"bounceOutRight"},desktop:{desktop:!0,fallback:!0}})})})}),e("#headsearch").focus(function(){"Search..."==this.value?this.value="":this.select()}).blur(function(){""==this.value&&(this.value="Search...")}),e("#headsearch_form").submit(function(){return e("#headsearch_go").trigger("click"),!1}),e("#headsearch_go").click(function(){if(e("#headsearch").val()&&"Search..."!=e("#headsearch").val()){let n=e("#headsearch").val(),r=-1!=e("#headcat").val()?"&t="+e("#headcat").val():"";document.location=t+"/search?id="+n+r}}),e("#search_search_button").click(function(){return e("#search").val()&&(document.location=t+"/search?id="+e("#search").val()+(-1!=e("#search_cat").val()?"&t="+e("#search_cat").val():"")),!1}),e("#search").focus(function(){this.select()}),e("#searchraw_search_button").click(function(){return e("#search").val()&&(document.location=t+"/searchraw/"+e("#search").val()),!1}),e("#searchraw_download_selected").click(function(){return e("#dl input:checked").length&&e("#dl").trigger("submit"),!1}),e("#username").length&&e("#username").focus(),e("#search").length&&e("#search").focus(),e("#viewfilelist_download_selected").click(function(){return e("#fileform input:checked").length&&e("#fileform").trigger("submit"),!1}),e(".confirm_action").click(function(){return confirm("Are you sure?")}),e(".audioprev").click(function(){let t=document.getElementById(e(this).next("audio").attr("ID"));return null!=t&&("Listen"==e(this).text()?(t.play(),e(this).text("Stop")):(t.pause(),t.currentTime=0,e(this).text("Listen"))),t.addEventListener("ended",function(){e(this).prev().text("Listen")}),!1}),e(".mmenu").click(function(){return document.location=e(this).children("a").attr("href"),!1}),e(".mmenu_new").click(function(){return window.open(e(this).children("a").attr("href")),!1}),e(".checkbox_operations .select_all").click(function(){return e("table.data INPUT[type='checkbox']").attr("checked",!0).trigger("change"),!1}),e(".checkbox_operations .select_none").click(function(){return e("table.data INPUT[type='checkbox']").attr("checked",!1).trigger("change"),!1}),e(".checkbox_operations .select_invert").click(function(){return e("table.data INPUT[type='checkbox']").each(function(){e(this).attr("checked",!e(this).attr("checked")).trigger("change")}),!1}),e(".checkbox_operations .select_range").click(function(){return r&&o&&r1&&""!=o[1])t+=o[1],n+=o[1].length;else{if(" "==e[n])t+="+";else{let r=e.charCodeAt(n).toString(16);t+="%"+(r.length<2?"0":"")+r.toUpperCase()}n++}}return t},URLDecode:function(e){let t,n=e,r=/(%[^%]{2})/;for(;null!=(m=r.exec(n))&&m.length>1&&""!=m[1];)b=parseInt(m[1].substr(1),16),t=String.fromCharCode(b),n=n.replace(m[1],t);return n}}),$(function(){let e=$("input.flat-all"),t=$("input.flat");$("input").iCheck({checkboxClass:"icheckbox_flat-green",radioClass:"iradio_flat-green"}),e.on("ifChecked ifUnchecked",function(e){"ifChecked"===e.type?t.iCheck("check"):t.iCheck("uncheck")}),t.on("ifChanged",function(n){t.filter(":checked").length===t.length?e.prop("checked","checked"):e.prop("checked",!1),e.iCheck("update")})}),tinyMCE.init({selector:"textarea#addMessage",theme:"silver",plugins:["advlist autolink link image lists charmap print preview hr anchor pagebreak spellchecker","searchreplace wordcount visualblocks visualchars code fullscreen insertdatetime media nonbreaking","save table directionality emoticons template paste code"],theme_advanced_toolbar_location:"top",theme_advanced_toolbar_align:"left",toolbar:"insertfile undo redo | styleselect | fontselect |sizeselect | fontsizeselect | bold italic | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | link image | print preview media fullpage | forecolor backcolor emoticons | code",fontsize_formats:"8pt 9pt 10pt 11pt 12pt 13pt 14pt 15pt 16pt 17pt 18pt 24pt 36pt",mode:"exact",relative_urls:!1,remove_script_host:!1,convert_urls:!0}); diff --git a/public/assets/js/plugins/advlist/plugin.js b/public/assets/js/plugins/advlist/plugin.js index 10597cc28..9baf90c52 100644 --- a/public/assets/js/plugins/advlist/plugin.js +++ b/public/assets/js/plugins/advlist/plugin.js @@ -4,7 +4,7 @@ * For LGPL see License.txt in the project root for license information. * For commercial licenses see https://www.tiny.cloud/ * - * Version: 5.1.4 (2019-12-11) + * Version: 5.1.5 (2019-12-19) */ (function () { 'use strict'; diff --git a/public/assets/js/plugins/advlist/plugin.min.js b/public/assets/js/plugins/advlist/plugin.min.js index 6bbd57633..f11035d55 100644 --- a/public/assets/js/plugins/advlist/plugin.min.js +++ b/public/assets/js/plugins/advlist/plugin.min.js @@ -4,6 +4,6 @@ * For LGPL see License.txt in the project root for license information. * For commercial licenses see https://www.tiny.cloud/ * - * Version: 5.1.4 (2019-12-11) + * Version: 5.1.5 (2019-12-19) */ !function(){"use strict";function n(){}function o(n){return function(){return n}}function t(){return d}var e,r=tinymce.util.Tools.resolve("tinymce.PluginManager"),u=tinymce.util.Tools.resolve("tinymce.util.Tools"),l=function(n,t,e){var r="UL"===t?"InsertUnorderedList":"InsertOrderedList";n.execCommand(r,!1,!1===e?null:{"list-style-type":e})},i=function(e){e.addCommand("ApplyUnorderedListStyle",function(n,t){l(e,"UL",t["list-style-type"])}),e.addCommand("ApplyOrderedListStyle",function(n,t){l(e,"OL",t["list-style-type"])})},c=function(n){var t=n.getParam("advlist_number_styles","default,lower-alpha,lower-greek,lower-roman,upper-alpha,upper-roman");return t?t.split(/[ ,]/):[]},s=function(n){var t=n.getParam("advlist_bullet_styles","default,circle,square");return t?t.split(/[ ,]/):[]},f=o(!1),a=o(!0),d=(e={fold:function(n,t){return n()},is:f,isSome:f,isNone:a,getOr:m,getOrThunk:p,getOrDie:function(n){throw new Error(n||"error: getOrDie called on none.")},getOrNull:o(null),getOrUndefined:o(undefined),or:m,orThunk:p,map:t,each:n,bind:t,exists:f,forall:a,filter:t,equals:g,equals_:g,toArray:function(){return[]},toString:o("none()")},Object.freeze&&Object.freeze(e),e);function g(n){return n.isNone()}function p(n){return n()}function m(n){return n}function y(n,t,e){var r=function(n,t){for(var e=0;ey(e)&&(i=o+g);var l=z(e);if(l&&l]*>((\xa0| |[ \t]|]*>)+?|)|
    $","i").test(e)}function i(t){var e=parseInt(v.getItem(o(t)+"time"),10)||0;return!((new Date).getTime()-e>function(t){return r(t.settings.autosave_retention,"20m")}(t))||(g(t,!1),!1)}function u(t){var e=o(t);!a(t)&&t.isDirty()&&(v.setItem(e+"draft",t.getContent({format:"raw",no_events:!0})),v.setItem(e+"time",(new Date).getTime().toString()),function(t){t.fire("StoreDraft")}(t))}function s(t){var e=o(t);i(t)&&(t.setContent(v.getItem(e+"draft"),{format:"raw"}),function(t){t.fire("RestoreDraft")}(t))}function c(t,e){var n=function(t){return r(t.settings.autosave_interval,"30s")}(t);e.get()||(m.setInterval(function(){t.removed||u(t)},n),e.set(!0))}function f(t){t.undoManager.transact(function(){s(t),g(t)}),t.focus()}var l=function(t){function e(){return n}var n=t;return{get:e,set:function(t){n=t},clone:function(){return l(e())}}},t=tinymce.util.Tools.resolve("tinymce.PluginManager"),m=tinymce.util.Tools.resolve("tinymce.util.Delay"),v=tinymce.util.Tools.resolve("tinymce.util.LocalStorage"),d=tinymce.util.Tools.resolve("tinymce.util.Tools"),g=function(t,e){var n=o(t);v.removeItem(n+"draft"),v.removeItem(n+"time"),!1!==e&&function(t){t.fire("RemoveDraft")}(t)};function y(r){for(var o=[],t=1;t(.*?)<\/a>/gi,"[url=$1]$2[/url]"),o(/(.*?)<\/font>/gi,"[code][color=$1]$2[/color][/code]"),o(/(.*?)<\/font>/gi,"[quote][color=$1]$2[/color][/quote]"),o(/(.*?)<\/font>/gi,"[code][color=$1]$2[/color][/code]"),o(/(.*?)<\/font>/gi,"[quote][color=$1]$2[/color][/quote]"),o(/(.*?)<\/span>/gi,"[color=$1]$2[/color]"),o(/(.*?)<\/font>/gi,"[color=$1]$2[/color]"),o(/(.*?)<\/span>/gi,"[size=$1]$2[/size]"),o(/(.*?)<\/font>/gi,"$1"),o(//gi,"[img]$1[/img]"),o(/(.*?)<\/span>/gi,"[code]$1[/code]"),o(/(.*?)<\/span>/gi,"[quote]$1[/quote]"),o(/(.*?)<\/strong>/gi,"[code][b]$1[/b][/code]"),o(/(.*?)<\/strong>/gi,"[quote][b]$1[/b][/quote]"),o(/(.*?)<\/em>/gi,"[code][i]$1[/i][/code]"),o(/(.*?)<\/em>/gi,"[quote][i]$1[/i][/quote]"),o(/(.*?)<\/u>/gi,"[code][u]$1[/u][/code]"),o(/(.*?)<\/u>/gi,"[quote][u]$1[/u][/quote]"),o(/<\/(strong|b)>/gi,"[/b]"),o(/<(strong|b)>/gi,"[b]"),o(/<\/(em|i)>/gi,"[/i]"),o(/<(em|i)>/gi,"[i]"),o(/<\/u>/gi,"[/u]"),o(/(.*?)<\/span>/gi,"[u]$1[/u]"),o(//gi,"[u]"),o(/]*>/gi,"[quote]"),o(/<\/blockquote>/gi,"[/quote]"),o(/
    /gi,"\n"),o(//gi,"\n"),o(/
    /gi,"\n"),o(/

    /gi,""),o(/<\/p>/gi,"\n"),o(/ |\u00a0/gi," "),o(/"/gi,'"'),o(/</gi,"<"),o(/>/gi,">"),o(/&/gi,"&"),t},i=function(t){t=e.trim(t);function o(o,e){t=t.replace(o,e)}return o(/\n/gi,"
    "),o(/\[b\]/gi,""),o(/\[\/b\]/gi,""),o(/\[i\]/gi,""),o(/\[\/i\]/gi,""),o(/\[u\]/gi,""),o(/\[\/u\]/gi,""),o(/\[url=([^\]]+)\](.*?)\[\/url\]/gi,'$2'),o(/\[url\](.*?)\[\/url\]/gi,'$1'),o(/\[img\](.*?)\[\/img\]/gi,''),o(/\[color=(.*?)\](.*?)\[\/color\]/gi,'$2'),o(/\[code\](.*?)\[\/code\]/gi,'$1 '),o(/\[quote.*?\](.*?)\[\/quote\]/gi,'$1 '),t};!function n(){o.add("bbcode",function(o){o.on("BeforeSetContent",function(o){o.content=i(o.content)}),o.on("PostProcess",function(o){o.set&&(o.content=i(o.content)),o.get&&(o.content=t(o.content))})})}()}(); \ No newline at end of file diff --git a/public/assets/js/plugins/charmap/plugin.js b/public/assets/js/plugins/charmap/plugin.js index 5790714ef..eb3324312 100644 --- a/public/assets/js/plugins/charmap/plugin.js +++ b/public/assets/js/plugins/charmap/plugin.js @@ -4,7 +4,7 @@ * For LGPL see License.txt in the project root for license information. * For commercial licenses see https://www.tiny.cloud/ * - * Version: 5.1.4 (2019-12-11) + * Version: 5.1.5 (2019-12-19) */ (function (domGlobals) { 'use strict'; @@ -1631,7 +1631,8 @@ } } }; - editor.windowManager.open(bridgeSpec); + var dialogApi = editor.windowManager.open(bridgeSpec); + dialogApi.focus(patternName); }; var Dialog = { open: open }; diff --git a/public/assets/js/plugins/charmap/plugin.min.js b/public/assets/js/plugins/charmap/plugin.min.js index b225e5c4a..b1623c909 100644 --- a/public/assets/js/plugins/charmap/plugin.min.js +++ b/public/assets/js/plugins/charmap/plugin.min.js @@ -4,6 +4,6 @@ * For LGPL see License.txt in the project root for license information. * For commercial licenses see https://www.tiny.cloud/ * - * Version: 5.1.4 (2019-12-11) + * Version: 5.1.5 (2019-12-19) */ -!function(c){"use strict";function n(){}function i(n){return function(){return n}}function e(){return m}var r,t=tinymce.util.Tools.resolve("tinymce.PluginManager"),a=function(n,e){return n.fire("insertCustomChar",{chr:e})},u=function(n,e){var r=a(n,e).chr;n.execCommand("mceInsertContent",!1,r)},o=tinymce.util.Tools.resolve("tinymce.util.Tools"),s=function(n){return n.settings.charmap},l=function(n){return n.settings.charmap_append},f=i(!1),g=i(!0),m=(r={fold:function(n,e){return n()},is:f,isSome:f,isNone:g,getOr:p,getOrThunk:d,getOrDie:function(n){throw new Error(n||"error: getOrDie called on none.")},getOrNull:i(null),getOrUndefined:i(undefined),or:p,orThunk:d,map:e,each:n,bind:e,exists:f,forall:g,filter:e,equals:h,equals_:h,toArray:function(){return[]},toString:i("none()")},Object.freeze&&Object.freeze(r),r);function h(n){return n.isNone()}function d(n){return n()}function p(n){return n}function y(e){return function(n){return function(n){if(null===n)return"null";var e=typeof n;return"object"==e&&(Array.prototype.isPrototypeOf(n)||n.constructor&&"Array"===n.constructor.name)?"array":"object"==e&&(String.prototype.isPrototypeOf(n)||n.constructor&&"String"===n.constructor.name)?"string":e}(n)===e}}function w(n,e){for(var r=n.length,t=new Array(r),a=0;ae.length)break e;if(!(h instanceof a)){u.lastIndex=0;var m=u.exec(h);if(m){g&&(d=m[1].length);var b=m.index-1+d,y=b+(m=m[0].slice(d)).length,v=h.slice(0,b+1),k=h.slice(y+1),w=[f,1];v&&w.push(v);var x=new a(o,c?S.tokenize(m,c):m,p);w.push(x),k&&w.push(k),Array.prototype.splice.apply(r,w)}}}}}return r},hooks:{all:{},add:function(e,t){var n=S.hooks.all;n[e]=n[e]||[],n[e].push(t)},run:function(e,t){var n=S.hooks.all[e];if(n&&n.length)for(var a=0,r=void 0;r=n[a++];)r(t)}}},s=S.Token=function(e,t,n){this.type=e,this.content=t,this.alias=n};if(s.stringify=function(t,n,e){if("string"==typeof t)return t;if("Array"===S.util.type(t))return t.map(function(e){return s.stringify(e,n,t)}).join("");var a={type:t.type,content:s.stringify(t.content,n,e),tag:"span",classes:["token",t.type],attributes:{},language:n,parent:e};if("comment"===a.type&&(a.attributes.spellcheck="true"),t.alias){var r="Array"===S.util.type(t.alias)?t.alias:[t.alias];Array.prototype.push.apply(a.classes,r)}S.hooks.run("wrap",a);var i="";for(var o in a.attributes)i+=(i?" ":"")+o+'="'+(a.attributes[o]||"")+'"';return"<"+a.tag+' class="'+a.classes.join(" ")+'" '+i+">"+a.content+""},!g.document)return g.addEventListener&&g.addEventListener("message",function(e){var t=JSON.parse(e.data),n=t.language,a=t.code,r=t.immediateClose;g.postMessage(S.highlight(a,S.languages[n],n)),r&&g.close()},!1),g.Prism}();void 0!==n&&(n.Prism=i),i.languages.markup={comment://,prolog:/<\?[\w\W]+?\?>/,doctype://,cdata://i,tag:{pattern:/<\/?[^\s>\/=.]+(?:\s+[^\s>\/=]+(?:=(?:("|')(?:\\\1|\\?(?!\1)[\w\W])*\1|[^\s'">=]+))?)*\s*\/?>/i,inside:{tag:{pattern:/^<\/?[^\s>\/]+/i,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"attr-value":{pattern:/=(?:('|")[\w\W]*?(\1)|[^\s>]+)/i,inside:{punctuation:/[=>"']/}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:/&#?[\da-z]{1,8};/i},i.hooks.add("wrap",function(e){"entity"===e.type&&(e.attributes.title=e.content.replace(/&/,"&"))}),i.languages.xml=i.languages.markup,i.languages.html=i.languages.markup,i.languages.mathml=i.languages.markup,i.languages.svg=i.languages.markup,i.languages.css={comment:/\/\*[\w\W]*?\*\//,atrule:{pattern:/@[\w-]+?.*?(;|(?=\s*\{))/i,inside:{rule:/@[\w-]+/}},url:/url\((?:(["'])(\\(?:\r\n|[\w\W])|(?!\1)[^\\\r\n])*\1|.*?)\)/i,selector:/[^\{\}\s][^\{\};]*?(?=\s*\{)/,string:/("|')(\\(?:\r\n|[\w\W])|(?!\1)[^\\\r\n])*\1/,property:/(\b|\B)[\w-]+(?=\s*:)/i,important:/\B!important\b/i,"function":/[-a-z0-9]+(?=\()/i,punctuation:/[(){};:]/},i.languages.css.atrule.inside.rest=i.util.clone(i.languages.css),i.languages.markup&&(i.languages.insertBefore("markup","tag",{style:{pattern:/[\w\W]*?<\/style>/i,inside:{tag:{pattern:/|<\/style>/i,inside:i.languages.markup.tag.inside},rest:i.languages.css},alias:"language-css"}}),i.languages.insertBefore("inside","attr-value",{"style-attr":{pattern:/\s*style=("|').*?\1/i,inside:{"attr-name":{pattern:/^\s*style/i,inside:i.languages.markup.tag.inside},punctuation:/^\s*=\s*['"]|['"]\s*$/,"attr-value":{pattern:/.+/i,inside:i.languages.css}},alias:"language-css"}},i.languages.markup.tag)),i.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\w\W]*?\*\//,lookbehind:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0}],string:/(["'])(\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,"class-name":{pattern:/((?:\b(?:class|interface|extends|implements|trait|instanceof|new)\s+)|(?:catch\s+\())[a-z0-9_\.\\]+/i,lookbehind:!0,inside:{punctuation:/(\.|\\)/}},keyword:/\b(if|else|while|do|for|return|in|instanceof|function|new|try|throw|catch|finally|null|break|continue)\b/,"boolean":/\b(true|false)\b/,"function":/[a-z0-9_]+(?=\()/i,number:/\b-?(?:0x[\da-f]+|\d*\.?\d+(?:e[+-]?\d+)?)\b/i,operator:/--?|\+\+?|!=?=?|<=?|>=?|==?=?|&&?|\|\|?|\?|\*|\/|~|\^|%/,punctuation:/[{}[\];(),.:]/},i.languages.javascript=i.languages.extend("clike",{keyword:/\b(as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|false|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|true|try|typeof|var|void|while|with|yield)\b/,number:/\b-?(0x[\dA-Fa-f]+|0b[01]+|0o[0-7]+|\d*\.?\d+([Ee][+-]?\d+)?|NaN|Infinity)\b/,"function":/[_$a-zA-Z\xA0-\uFFFF][_$a-zA-Z0-9\xA0-\uFFFF]*(?=\()/i}),i.languages.insertBefore("javascript","keyword",{regex:{pattern:/(^|[^/])\/(?!\/)(\[.+?]|\\.|[^/\\\r\n])+\/[gimyu]{0,5}(?=\s*($|[\r\n,.;})]))/,lookbehind:!0}}),i.languages.insertBefore("javascript","class-name",{"template-string":{pattern:/`(?:\\`|\\?[^`])*`/,inside:{interpolation:{pattern:/\$\{[^}]+\}/,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:i.languages.javascript}},string:/[\s\S]+/}}}),i.languages.markup&&i.languages.insertBefore("markup","tag",{script:{pattern:/[\w\W]*?<\/script>/i,inside:{tag:{pattern:/|<\/script>/i,inside:i.languages.markup.tag.inside},rest:i.languages.javascript},alias:"language-javascript"}}),i.languages.js=i.languages.javascript,i.languages.c=i.languages.extend("clike",{keyword:/\b(asm|typeof|inline|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|int|long|register|return|short|signed|sizeof|static|struct|switch|typedef|union|unsigned|void|volatile|while)\b/,operator:/\-[>-]?|\+\+?|!=?|<>?=?|==?|&&?|\|?\||[~^%?*\/]/,number:/\b-?(?:0x[\da-f]+|\d*\.?\d+(?:e[+-]?\d+)?)[ful]*\b/i}),i.languages.insertBefore("c","string",{macro:{pattern:/(^\s*)#\s*[a-z]+([^\r\n\\]|\\.|\\(?:\r\n?|\n))*/im,lookbehind:!0,alias:"property",inside:{string:{pattern:/(#\s*include\s*)(<.+?>|("|')(\\?.)+?\3)/,lookbehind:!0}}}}),delete i.languages.c["class-name"],delete i.languages.c["boolean"],i.languages.csharp=i.languages.extend("clike",{keyword:/\b(abstract|as|async|await|base|bool|break|byte|case|catch|char|checked|class|const|continue|decimal|default|delegate|do|double|else|enum|event|explicit|extern|false|finally|fixed|float|for|foreach|goto|if|implicit|in|int|interface|internal|is|lock|long|namespace|new|null|object|operator|out|override|params|private|protected|public|readonly|ref|return|sbyte|sealed|short|sizeof|stackalloc|static|string|struct|switch|this|throw|true|try|typeof|uint|ulong|unchecked|unsafe|ushort|using|virtual|void|volatile|while|add|alias|ascending|async|await|descending|dynamic|from|get|global|group|into|join|let|orderby|partial|remove|select|set|value|var|where|yield)\b/,string:[/@("|')(\1\1|\\\1|\\?(?!\1)[\s\S])*\1/,/("|')(\\?.)*?\1/],number:/\b-?(0x[\da-f]+|\d*\.?\d+)\b/i}),i.languages.insertBefore("csharp","keyword",{preprocessor:{pattern:/(^\s*)#.*/m,lookbehind:!0}}),i.languages.cpp=i.languages.extend("c",{keyword:/\b(alignas|alignof|asm|auto|bool|break|case|catch|char|char16_t|char32_t|class|compl|const|constexpr|const_cast|continue|decltype|default|delete|do|double|dynamic_cast|else|enum|explicit|export|extern|float|for|friend|goto|if|inline|int|long|mutable|namespace|new|noexcept|nullptr|operator|private|protected|public|register|reinterpret_cast|return|short|signed|sizeof|static|static_assert|static_cast|struct|switch|template|this|thread_local|throw|try|typedef|typeid|typename|union|unsigned|using|virtual|void|volatile|wchar_t|while)\b/,"boolean":/\b(true|false)\b/,operator:/[-+]{1,2}|!=?|<{1,2}=?|>{1,2}=?|\->|:{1,2}|={1,2}|\^|~|%|&{1,2}|\|?\||\?|\*|\/|\b(and|and_eq|bitand|bitor|not|not_eq|or|or_eq|xor|xor_eq)\b/}),i.languages.insertBefore("cpp","keyword",{"class-name":{pattern:/(class\s+)[a-z0-9_]+/i,lookbehind:!0}}),i.languages.java=i.languages.extend("clike",{keyword:/\b(abstract|continue|for|new|switch|assert|default|goto|package|synchronized|boolean|do|if|private|this|break|double|implements|protected|throw|byte|else|import|public|throws|case|enum|instanceof|return|transient|catch|extends|int|short|try|char|final|interface|static|void|class|finally|long|strictfp|volatile|const|float|native|super|while)\b/,number:/\b0b[01]+\b|\b0x[\da-f]*\.?[\da-fp\-]+\b|\b\d*\.?\d+(?:e[+-]?\d+)?[df]?\b/i,operator:{pattern:/(^|[^.])(?:\+[+=]?|-[-=]?|!=?|<>?>?=?|==?|&[&=]?|\|[|=]?|\*=?|\/=?|%=?|\^=?|[?:~])/m,lookbehind:!0}}),i.languages.php=i.languages.extend("clike",{keyword:/\b(and|or|xor|array|as|break|case|cfunction|class|const|continue|declare|default|die|do|else|elseif|enddeclare|endfor|endforeach|endif|endswitch|endwhile|extends|for|foreach|function|include|include_once|global|if|new|return|static|switch|use|require|require_once|var|while|abstract|interface|public|implements|private|protected|parent|throw|null|echo|print|trait|namespace|final|yield|goto|instanceof|finally|try|catch)\b/i,constant:/\b[A-Z0-9_]{2,}\b/,comment:{pattern:/(^|[^\\])(?:\/\*[\w\W]*?\*\/|\/\/.*)/,lookbehind:!0}}),i.languages.insertBefore("php","class-name",{"shell-comment":{pattern:/(^|[^\\])#.*/,lookbehind:!0,alias:"comment"}}),i.languages.insertBefore("php","keyword",{delimiter:/\?>|<\?(?:php)?/i,variable:/\$\w+\b/i,"package":{pattern:/(\\|namespace\s+|use\s+)[\w\\]+/,lookbehind:!0,inside:{punctuation:/\\/}}}),i.languages.insertBefore("php","operator",{property:{pattern:/(->)[\w]+/,lookbehind:!0}}),i.languages.markup&&(i.hooks.add("before-highlight",function(t){"php"===t.language&&(t.tokenStack=[],t.backupCode=t.code,t.code=t.code.replace(/(?:<\?php|<\?)[\w\W]*?(?:\?>)/gi,function(e){return t.tokenStack.push(e),"{{{PHP"+t.tokenStack.length+"}}}"}))}),i.hooks.add("before-insert",function(e){"php"===e.language&&(e.code=e.backupCode,delete e.backupCode)}),i.hooks.add("after-highlight",function(e){if("php"===e.language){for(var t=0,n=void 0;n=e.tokenStack[t];t++)e.highlightedCode=e.highlightedCode.replace("{{{PHP"+(t+1)+"}}}",i.highlight(n,e.grammar,"php").replace(/\$/g,"$$$$"));e.element.innerHTML=e.highlightedCode}}),i.hooks.add("wrap",function(e){"php"===e.language&&"markup"===e.type&&(e.content=e.content.replace(/(\{\{\{PHP[0-9]+\}\}\})/g,'$1'))}),i.languages.insertBefore("php","comment",{markup:{pattern:/<[^?]\/?(.*?)>/,inside:i.languages.markup},php:/\{\{\{PHP[0-9]+\}\}\}/})),i.languages.python={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0},string:/"""[\s\S]+?"""|'''[\s\S]+?'''|("|')(?:\\?.)*?\1/,"function":{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_][a-zA-Z0-9_]*(?=\()/g,lookbehind:!0},"class-name":{pattern:/(\bclass\s+)[a-z0-9_]+/i,lookbehind:!0},keyword:/\b(?:as|assert|async|await|break|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|pass|print|raise|return|try|while|with|yield)\b/,"boolean":/\b(?:True|False)\b/,number:/\b-?(?:0[bo])?(?:(?:\d|0x[\da-f])[\da-f]*\.?\d*|\.\d+)(?:e[+-]?\d+)?j?\b/i,operator:/[-+%=]=?|!=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]|\b(?:or|and|not)\b/,punctuation:/[{}[\];(),.:]/},function(e){e.languages.ruby=e.languages.extend("clike",{comment:/#(?!\{[^\r\n]*?\}).*/,keyword:/\b(alias|and|BEGIN|begin|break|case|class|def|define_method|defined|do|each|else|elsif|END|end|ensure|false|for|if|in|module|new|next|nil|not|or|raise|redo|require|rescue|retry|return|self|super|then|throw|true|undef|unless|until|when|while|yield)\b/});var t={pattern:/#\{[^}]+\}/,inside:{delimiter:{pattern:/^#\{|\}$/,alias:"tag"},rest:e.util.clone(e.languages.ruby)}};e.languages.insertBefore("ruby","keyword",{regex:[{pattern:/%r([^a-zA-Z0-9\s\{\(\[<])(?:[^\\]|\\[\s\S])*?\1[gim]{0,3}/,inside:{interpolation:t}},{pattern:/%r\((?:[^()\\]|\\[\s\S])*\)[gim]{0,3}/,inside:{interpolation:t}},{pattern:/%r\{(?:[^#{}\\]|#(?:\{[^}]+\})?|\\[\s\S])*\}[gim]{0,3}/,inside:{interpolation:t}},{pattern:/%r\[(?:[^\[\]\\]|\\[\s\S])*\][gim]{0,3}/,inside:{interpolation:t}},{pattern:/%r<(?:[^<>\\]|\\[\s\S])*>[gim]{0,3}/,inside:{interpolation:t}},{pattern:/(^|[^/])\/(?!\/)(\[.+?]|\\.|[^/\r\n])+\/[gim]{0,3}(?=\s*($|[\r\n,.;})]))/,lookbehind:!0}],variable:/[@$]+[a-zA-Z_][a-zA-Z_0-9]*(?:[?!]|\b)/,symbol:/:[a-zA-Z_][a-zA-Z_0-9]*(?:[?!]|\b)/}),e.languages.insertBefore("ruby","number",{builtin:/\b(Array|Bignum|Binding|Class|Continuation|Dir|Exception|FalseClass|File|Stat|File|Fixnum|Fload|Hash|Integer|IO|MatchData|Method|Module|NilClass|Numeric|Object|Proc|Range|Regexp|String|Struct|TMS|Symbol|ThreadGroup|Thread|Time|TrueClass)\b/,constant:/\b[A-Z][a-zA-Z_0-9]*(?:[?!]|\b)/}),e.languages.ruby.string=[{pattern:/%[qQiIwWxs]?([^a-zA-Z0-9\s\{\(\[<])(?:[^\\]|\\[\s\S])*?\1/,inside:{interpolation:t}},{pattern:/%[qQiIwWxs]?\((?:[^()\\]|\\[\s\S])*\)/,inside:{interpolation:t}},{pattern:/%[qQiIwWxs]?\{(?:[^#{}\\]|#(?:\{[^}]+\})?|\\[\s\S])*\}/,inside:{interpolation:t}},{pattern:/%[qQiIwWxs]?\[(?:[^\[\]\\]|\\[\s\S])*\]/,inside:{interpolation:t}},{pattern:/%[qQiIwWxs]?<(?:[^<>\\]|\\[\s\S])*>/,inside:{interpolation:t}},{pattern:/("|')(#\{[^}]+\}|\\(?:\r?\n|\r)|\\?.)*?\1/,inside:{interpolation:t}}]}(i);function a(){}function o(e){return function(){return e}}function s(){return f}var l,u={isCodeSample:function B(e){return e&&"PRE"===e.nodeName&&-1!==e.className.indexOf("language-")},trimArg:function M(n){return function(e,t){return n(t)}}},d=o(!1),p=o(!0),f=(l={fold:function(e,t){return e()},is:d,isSome:d,isNone:p,getOr:b,getOrThunk:m,getOrDie:function(e){throw new Error(e||"error: getOrDie called on none.")},getOrNull:o(null),getOrUndefined:o(undefined),or:b,orThunk:m,map:s,each:a,bind:s,exists:d,forall:p,filter:s,equals:h,equals_:h,toArray:function(){return[]},toString:o("none()")},Object.freeze&&Object.freeze(l),l);function h(e){return e.isNone()}function m(e){return e()}function b(e){return e}function y(e){var t=e.selection?e.selection.getNode():null;return u.isCodeSample(t)?w.some(t):w.none()}var v,k=function(n){function e(){return r}function t(e){return e(n)}var a=o(n),r={fold:function(e,t){return t(n)},is:function(e){return n===e},isSome:p,isNone:d,getOr:a,getOrThunk:a,getOrDie:a,getOrNull:a,getOrUndefined:a,or:e,orThunk:e,map:function(e){return k(e(n))},each:function(e){e(n)},bind:t,exists:t,forall:t,filter:function(e){return e(n)?r:f},toArray:function(){return[n]},toString:function(){return"some("+n+")"},equals:function(e){return e.is(n)},equals_:function(e,t){return e.fold(d,function(e){return t(n,e)})}};return r},w={some:k,none:s,from:function(e){return null===e||e===undefined?f:k(e)}},x=y,S=function(t,n,a){t.undoManager.transact(function(){var e=y(t);return a=r.DOM.encode(a),e.fold(function(){t.insertContent('

    '+a+"
    "),t.selection.select(t.$("#__new").removeAttr("id")[0])},function(e){t.dom.setAttrib(e,"class","language-"+n),e.innerHTML=a,i.highlightElement(e),t.selection.select(e)})})},A=function(e){return y(e).fold(function(){return""},function(e){return e.textContent})},C=function(e){return e.settings.codesample_languages},_=function(e){var t=C(e);return t||[{text:"HTML/XML",value:"markup"},{text:"JavaScript",value:"javascript"},{text:"CSS",value:"css"},{text:"PHP",value:"php"},{text:"Ruby",value:"ruby"},{text:"Python",value:"python"},{text:"Java",value:"java"},{text:"C",value:"c"},{text:"C#",value:"csharp"},{text:"C++",value:"cpp"}]},N=function(e,n){return x(e).fold(function(){return n},function(e){var t=e.className.match(/language-(\w+)/);return t?t[1]:n})},O=(v="function",function(e){return function(e){if(null===e)return"null";var t=typeof e;return"object"==t&&(Array.prototype.isPrototypeOf(e)||e.constructor&&"Array"===e.constructor.name)?"array":"object"==t&&(String.prototype.isPrototypeOf(e)||e.constructor&&"String"===e.constructor.name)?"string":t}(e)===v}),z=Array.prototype.slice,P=(O(Array.from)&&Array.from,function(n){var e=_(n),t=function(e){return 0===e.length?w.none():w.some(e[0])}(e).fold(function(){return""},function(e){return e.value}),a=N(n,t),r=A(n);n.windowManager.open({title:"Insert/Edit Code Sample",size:"large",body:{type:"panel",items:[{type:"selectbox",name:"language",label:"Language",items:e},{type:"textarea",name:"code",label:"Code view"}]},buttons:[{type:"cancel",name:"cancel",text:"Cancel"},{type:"submit",name:"save",text:"Save",primary:!0}],initialData:{language:a,code:r},onSubmit:function(e){var t=e.getData();S(n,t.language,t.code),e.close()}})}),W=function(t){t.addCommand("codesample",function(){var e=t.selection.getNode();t.selection.isCollapsed()||u.isCodeSample(e)?P(t):t.formatter.toggle("code")})},j=function(n){var r=n.$;n.on("PreProcess",function(e){r("pre[contenteditable=false]",e.node).filter(u.trimArg(u.isCodeSample)).each(function(e,t){var n=r(t),a=t.textContent;n.attr("class",r.trim(n.attr("class"))),n.removeAttr("contentEditable"),n.empty().append(r("").each(function(){this.textContent=a}))})}),n.on("SetContent",function(){var e=r("pre").filter(u.trimArg(u.isCodeSample)).filter(function(e,t){return"false"!==t.contentEditable});e.length&&n.undoManager.transact(function(){e.each(function(e,t){r(t).find("br").each(function(e,t){t.parentNode.replaceChild(n.getDoc().createTextNode("\n"),t)}),t.contentEditable="false",t.innerHTML=n.dom.encode(t.textContent),i.highlightElement(t),t.className=r.trim(t.className)})})})},T=function(n){n.ui.registry.addToggleButton("codesample",{icon:"code-sample",tooltip:"Insert/edit code sample",onAction:function(){return P(n)},onSetup:function(e){function t(){e.setActive(function(e){var t=e.selection.getStart();return e.dom.is(t,"pre.language-markup")}(n))}return n.on("NodeChange",t),function(){return n.off("NodeChange",t)}}}),n.ui.registry.addMenuItem("codesample",{text:"Code sample...",icon:"code-sample",onAction:function(){return P(n)}})};!function F(){e.add("codesample",function(t){j(t),T(t),W(t),t.on("dblclick",function(e){u.isCodeSample(e.target)&&P(t)})})}()}(window); \ No newline at end of file diff --git a/public/assets/js/plugins/colorpicker/plugin.js b/public/assets/js/plugins/colorpicker/plugin.js index f63e9c868..b0d5e664f 100644 --- a/public/assets/js/plugins/colorpicker/plugin.js +++ b/public/assets/js/plugins/colorpicker/plugin.js @@ -4,7 +4,7 @@ * For LGPL see License.txt in the project root for license information. * For commercial licenses see https://www.tiny.cloud/ * - * Version: 5.1.4 (2019-12-11) + * Version: 5.1.5 (2019-12-19) */ (function (domGlobals) { 'use strict'; diff --git a/public/assets/js/plugins/colorpicker/plugin.min.js b/public/assets/js/plugins/colorpicker/plugin.min.js index 42530c3e7..51e2463ee 100644 --- a/public/assets/js/plugins/colorpicker/plugin.min.js +++ b/public/assets/js/plugins/colorpicker/plugin.min.js @@ -4,6 +4,6 @@ * For LGPL see License.txt in the project root for license information. * For commercial licenses see https://www.tiny.cloud/ * - * Version: 5.1.4 (2019-12-11) + * Version: 5.1.5 (2019-12-19) */ !function(o){"use strict";var i=tinymce.util.Tools.resolve("tinymce.PluginManager");!function n(){i.add("colorpicker",function(){o.console.warn("Color picker plugin is now built in to the core editor, please remove it from your editor configuration")})}()}(window); \ No newline at end of file diff --git a/public/assets/js/plugins/contextmenu/plugin.js b/public/assets/js/plugins/contextmenu/plugin.js index c813900a8..3324b2925 100644 --- a/public/assets/js/plugins/contextmenu/plugin.js +++ b/public/assets/js/plugins/contextmenu/plugin.js @@ -4,7 +4,7 @@ * For LGPL see License.txt in the project root for license information. * For commercial licenses see https://www.tiny.cloud/ * - * Version: 5.1.4 (2019-12-11) + * Version: 5.1.5 (2019-12-19) */ (function (domGlobals) { 'use strict'; diff --git a/public/assets/js/plugins/contextmenu/plugin.min.js b/public/assets/js/plugins/contextmenu/plugin.min.js index 7f557bdff..b9a952230 100644 --- a/public/assets/js/plugins/contextmenu/plugin.min.js +++ b/public/assets/js/plugins/contextmenu/plugin.min.js @@ -4,6 +4,6 @@ * For LGPL see License.txt in the project root for license information. * For commercial licenses see https://www.tiny.cloud/ * - * Version: 5.1.4 (2019-12-11) + * Version: 5.1.5 (2019-12-19) */ !function(n){"use strict";var o=tinymce.util.Tools.resolve("tinymce.PluginManager");!function e(){o.add("contextmenu",function(){n.console.warn("Context menu plugin is now built in to the core editor, please remove it from your editor configuration")})}()}(window); \ No newline at end of file diff --git a/public/assets/js/plugins/directionality/plugin.js b/public/assets/js/plugins/directionality/plugin.js index 18de53797..512485113 100644 --- a/public/assets/js/plugins/directionality/plugin.js +++ b/public/assets/js/plugins/directionality/plugin.js @@ -4,7 +4,7 @@ * For LGPL see License.txt in the project root for license information. * For commercial licenses see https://www.tiny.cloud/ * - * Version: 5.1.4 (2019-12-11) + * Version: 5.1.5 (2019-12-19) */ (function (domGlobals) { 'use strict'; diff --git a/public/assets/js/plugins/directionality/plugin.min.js b/public/assets/js/plugins/directionality/plugin.min.js index 4e922fac0..0105327be 100644 --- a/public/assets/js/plugins/directionality/plugin.min.js +++ b/public/assets/js/plugins/directionality/plugin.min.js @@ -4,6 +4,6 @@ * For LGPL see License.txt in the project root for license information. * For commercial licenses see https://www.tiny.cloud/ * - * Version: 5.1.4 (2019-12-11) + * Version: 5.1.5 (2019-12-19) */ !function(i){"use strict";function n(){}function u(n){return function(){return n}}function t(){return a}var e,r=tinymce.util.Tools.resolve("tinymce.PluginManager"),c=tinymce.util.Tools.resolve("tinymce.util.Tools"),o=function(n,t){var e,r=n.dom,o=n.selection.getSelectedBlocks();o.length&&(e=r.getAttrib(o[0],"dir"),c.each(o,function(n){r.getParent(n.parentNode,'*[dir="'+t+'"]',r.getRoot())||r.setAttrib(n,"dir",e!==t?t:null)}),n.nodeChanged())},d=function(n){n.addCommand("mceDirectionLTR",function(){o(n,"ltr")}),n.addCommand("mceDirectionRTL",function(){o(n,"rtl")})},f=u(!1),l=u(!0),a=(e={fold:function(n,t){return n()},is:f,isSome:f,isNone:l,getOr:s,getOrThunk:N,getOrDie:function(n){throw new Error(n||"error: getOrDie called on none.")},getOrNull:u(null),getOrUndefined:u(undefined),or:s,orThunk:N,map:t,each:n,bind:t,exists:f,forall:l,filter:t,equals:m,equals_:m,toArray:function(){return[]},toString:u("none()")},Object.freeze&&Object.freeze(e),e);function m(n){return n.isNone()}function N(n){return n()}function s(n){return n}function g(n,t){var e=n.dom(),r=i.window.getComputedStyle(e).getPropertyValue(t),o=""!==r||function(n){var t=A(n)?n.dom().parentNode:n.dom();return t!==undefined&&null!==t&&t.ownerDocument.body.contains(t)}(n)?r:w(e,t);return null===o?undefined:o}function T(t,r){return function(e){function n(n){var t=p.fromDom(n.element);e.setActive(function(n){return"rtl"===g(n,"direction")?"rtl":"ltr"}(t)===r)}return t.on("NodeChange",n),function(){return t.off("NodeChange",n)}}}var E,O,y=function(e){function n(){return o}function t(n){return n(e)}var r=u(e),o={fold:function(n,t){return t(e)},is:function(n){return e===n},isSome:l,isNone:f,getOr:r,getOrThunk:r,getOrDie:r,getOrNull:r,getOrUndefined:r,or:n,orThunk:n,map:function(n){return y(n(e))},each:function(n){n(e)},bind:t,exists:t,forall:t,filter:function(n){return n(e)?o:a},toArray:function(){return[e]},toString:function(){return"some("+e+")"},equals:function(n){return n.is(e)},equals_:function(n,t){return n.fold(f,function(n){return t(e,n)})}};return o},D=function(n){return null===n||n===undefined?a:y(n)},h=function(n){if(null===n||n===undefined)throw new Error("Node cannot be null or undefined");return{dom:u(n)}},p={fromHtml:function(n,t){var e=(t||i.document).createElement("div");if(e.innerHTML=n,!e.hasChildNodes()||1Could not load emoticons

    "}]},buttons:[{type:"cancel",text:"Close",primary:!0}],initialData:{pattern:"",results:[]}}),a.focus(M),a.unblock()}))},R=function(n,t){function e(){return U(n,t)}n.ui.registry.addButton("emoticons",{tooltip:"Emoticons",icon:"emoji",onAction:e}),n.ui.registry.addMenuItem("emoticons",{text:"Emoticons...",icon:"emoji",onAction:e})};!function B(){r.add("emoticons",function(n,t){var e=E(n,t),r=F(n),o=h(n,e,r);R(n,o),function(r,o){r.ui.registry.addAutocompleter("emoticons",{ch:":",columns:"auto",minChars:2,fetch:function(t,e){return o.waitForLoad().then(function(){var n=o.listAll();return d(n,t,A.some(e))})},onAction:function(n,t,e){r.selection.setRng(t),r.insertContent(e),n.hide()}})}(n,o)})}()}(window); \ No newline at end of file diff --git a/public/assets/js/plugins/fullpage/plugin.js b/public/assets/js/plugins/fullpage/plugin.js index 3dcd0fe1f..f6e252661 100644 --- a/public/assets/js/plugins/fullpage/plugin.js +++ b/public/assets/js/plugins/fullpage/plugin.js @@ -4,7 +4,7 @@ * For LGPL see License.txt in the project root for license information. * For commercial licenses see https://www.tiny.cloud/ * - * Version: 5.1.4 (2019-12-11) + * Version: 5.1.5 (2019-12-19) */ (function (domGlobals) { 'use strict'; diff --git a/public/assets/js/plugins/fullpage/plugin.min.js b/public/assets/js/plugins/fullpage/plugin.min.js index 3fa320b63..2e5e160cc 100644 --- a/public/assets/js/plugins/fullpage/plugin.min.js +++ b/public/assets/js/plugins/fullpage/plugin.min.js @@ -4,6 +4,6 @@ * For LGPL see License.txt in the project root for license information. * For commercial licenses see https://www.tiny.cloud/ * - * Version: 5.1.4 (2019-12-11) + * Version: 5.1.5 (2019-12-19) */ !function(m){"use strict";function f(t){return e({validate:!1,root_name:"#document"}).parse(t)}function g(t){return t.replace(/<\/?[A-Z]+/g,function(t){return t.toLowerCase()})}var o,i=function(t){function e(){return n}var n=t;return{get:e,set:function(t){n=t},clone:function(){return i(e())}}},t=tinymce.util.Tools.resolve("tinymce.PluginManager"),p=tinymce.util.Tools.resolve("tinymce.util.Tools"),e=tinymce.util.Tools.resolve("tinymce.html.DomParser"),h=tinymce.util.Tools.resolve("tinymce.html.Node"),y=tinymce.util.Tools.resolve("tinymce.html.Serializer"),v=function(t){return t.getParam("fullpage_hide_in_source_view")},r=function(t){return t.getParam("fullpage_default_xml_pi")},a=function(t){return t.getParam("fullpage_default_encoding")},c=function(t){return t.getParam("fullpage_default_font_family")},u=function(t){return t.getParam("fullpage_default_font_size")},s=function(t){return t.getParam("fullpage_default_text_color")},d=function(t){return t.getParam("fullpage_default_title")},_=function(t){return t.getParam("fullpage_default_doctype","")},b=f,n=function(t,e){var n,i,l=f(e),r={};function o(t,e){return t.attr(e)||""}return r.fontface=c(t),r.fontsize=u(t),7===(n=l.firstChild).type&&(r.xml_pi=!0,(i=/encoding="([^"]+)"/.exec(n.value))&&(r.docencoding=i[1])),(n=l.getAll("#doctype")[0])&&(r.doctype=""),(n=l.getAll("title")[0])&&n.firstChild&&(r.title=n.firstChild.value),p.each(l.getAll("meta"),function(t){var e,n=t.attr("name"),i=t.attr("http-equiv");n?r[n.toLowerCase()]=t.attr("content"):"Content-Type"===i&&(e=/charset\s*=\s*(.*)\s*/gi.exec(t.attr("content")))&&(r.docencoding=e[1])}),(n=l.getAll("html")[0])&&(r.langcode=o(n,"lang")||o(n,"xml:lang")),r.stylesheets=[],p.each(l.getAll("link"),function(t){"stylesheet"===t.attr("rel")&&r.stylesheets.push(t.attr("href"))}),(n=l.getAll("body")[0])&&(r.langdir=o(n,"dir"),r.style=o(n,"style"),r.visited_color=o(n,"vlink"),r.link_color=o(n,"link"),r.active_color=o(n,"alink")),r},x=function(t,r,e){var o,n,i,a,l,c=t.dom;function u(t,e,n){t.attr(e,n||undefined)}function s(t){n.firstChild?n.insert(t,n.firstChild):n.append(t)}o=f(e),(n=o.getAll("head")[0])||(a=o.getAll("html")[0],n=new h("head",1),a.firstChild?a.insert(n,a.firstChild,!0):a.append(n)),a=o.firstChild,r.xml_pi?(l='version="1.0"',r.docencoding&&(l+=' encoding="'+r.docencoding+'"'),7!==a.type&&(a=new h("xml",7),o.insert(a,o.firstChild,!0)),a.value=l):a&&7===a.type&&a.remove(),a=o.getAll("#doctype")[0],r.doctype?(a||(a=new h("#doctype",10),r.xml_pi?o.insert(a,o.firstChild):s(a)),a.value=r.doctype.substring(9,r.doctype.length-1)):a&&a.remove(),a=null,p.each(o.getAll("meta"),function(t){"Content-Type"===t.attr("http-equiv")&&(a=t)}),r.docencoding?(a||((a=new h("meta",1)).attr("http-equiv","Content-Type"),a.shortEnded=!0,s(a)),a.attr("content","text/html; charset="+r.docencoding)):a&&a.remove(),a=o.getAll("title")[0],r.title?(a?a.empty():s(a=new h("title",1)),a.append(new h("#text",3)).value=r.title):a&&a.remove(),p.each("keywords,description,author,copyright,robots".split(","),function(t){var e,n,i=o.getAll("meta"),l=r[t];for(e=0;e"))},C=Object.prototype.hasOwnProperty,k=(o=function(t,e){return e},function(){for(var t=new Array(arguments.length),e=0;e/g,function(t,e){return unescape(e)})},T=p.each,O=function(t){var e,n="",i="";if(r(t)){var l=a(t);n+='\n'}return n+=_(t),n+="\n\n\n",(e=d(t))&&(n+=""+e+"\n"),(e=a(t))&&(n+='\n'),(e=c(t))&&(i+="font-family: "+e+";"),(e=u(t))&&(i+="font-size: "+e+";"),(e=s(t))&&(i+="color: "+e+";"),n+="\n\n"},D=function(e,n,i){e.on("BeforeSetContent",function(t){!function(t,e,n,i){var l,r,o,a,c="",u=t.dom;if(!(i.selection||(o=A(t.settings.protect,i.content),"raw"===i.format&&e.get()||i.source_view&&v(t)))){0!==o.length||i.source_view||(o=p.trim(e.get())+"\n"+p.trim(o)+"\n"+p.trim(n.get())),-1!==(l=(o=o.replace(/<(\/?)BODY/gi,"<$1body")).indexOf("",l),e.set(g(o.substring(0,l+1))),-1===(r=o.indexOf("\n")),a=b(e.get()),T(a.getAll("style"),function(t){t.firstChild&&(c+=t.firstChild.value)});var s=a.getAll("body")[0];s&&u.setAttribs(t.getBody(),{style:s.attr("style")||"",dir:s.attr("dir")||"",vLink:s.attr("vlink")||"",link:s.attr("link")||"",aLink:s.attr("alink")||""}),u.remove("fullpage_styles");var d=t.getDoc().getElementsByTagName("head")[0];if(c)u.add(d,"style",{id:"fullpage_styles"}).appendChild(m.document.createTextNode(c));var f={};p.each(d.getElementsByTagName("link"),function(t){"stylesheet"===t.rel&&t.getAttribute("data-mce-fullpage")&&(f[t.href]=t)}),p.each(a.getAll("link"),function(t){var e=t.attr("href");if(!e)return!0;f[e]||"stylesheet"!==t.attr("rel")||u.add(d,"link",{rel:"stylesheet",text:"text/css",href:e,"data-mce-fullpage":"1"}),delete f[e]}),p.each(f,function(t){t.parentNode.removeChild(t)})}}(e,n,i,t)}),e.on("GetContent",function(t){!function(t,e,n,i){i.selection||i.source_view&&v(t)||(i.content=P(p.trim(e)+"\n"+p.trim(i.content)+"\n"+p.trim(n)))}(e,n.get(),i.get(),t)})},E=function(t){t.ui.registry.addButton("fullpage",{tooltip:"Metadata and document properties",icon:"document-properties",onAction:function(){t.execCommand("mceFullPageProperties")}}),t.ui.registry.addMenuItem("fullpage",{text:"Metadata and document properties",icon:"document-properties",onAction:function(){t.execCommand("mceFullPageProperties")}})};!function z(){t.add("fullpage",function(t){var e=i(""),n=i("");w(t,e),E(t),D(t,e,n)})}()}(window); \ No newline at end of file diff --git a/public/assets/js/plugins/fullscreen/plugin.js b/public/assets/js/plugins/fullscreen/plugin.js index a792a3735..6249e71f1 100644 --- a/public/assets/js/plugins/fullscreen/plugin.js +++ b/public/assets/js/plugins/fullscreen/plugin.js @@ -4,7 +4,7 @@ * For LGPL see License.txt in the project root for license information. * For commercial licenses see https://www.tiny.cloud/ * - * Version: 5.1.4 (2019-12-11) + * Version: 5.1.5 (2019-12-19) */ (function (domGlobals) { 'use strict'; diff --git a/public/assets/js/plugins/fullscreen/plugin.min.js b/public/assets/js/plugins/fullscreen/plugin.min.js index 5c3519ee6..c03217ee2 100644 --- a/public/assets/js/plugins/fullscreen/plugin.min.js +++ b/public/assets/js/plugins/fullscreen/plugin.min.js @@ -4,6 +4,6 @@ * For LGPL see License.txt in the project root for license information. * For commercial licenses see https://www.tiny.cloud/ * - * Version: 5.1.4 (2019-12-11) + * Version: 5.1.5 (2019-12-19) */ !function(l){"use strict";function e(){}function m(e){return function(){return e}}function n(){return s}var r,t=function(e){function n(){return r}var r=e;return{get:n,set:function(e){r=e},clone:function(){return t(n())}}},o=tinymce.util.Tools.resolve("tinymce.PluginManager"),i=function(e){return{isFullscreen:function(){return null!==e.get()}}},c=m(!1),u=m(!0),s=(r={fold:function(e,n){return e()},is:c,isSome:c,isNone:u,getOr:d,getOrThunk:a,getOrDie:function(e){throw new Error(e||"error: getOrDie called on none.")},getOrNull:m(null),getOrUndefined:m(undefined),or:d,orThunk:a,map:n,each:e,bind:n,exists:c,forall:u,filter:n,equals:f,equals_:f,toArray:function(){return[]},toString:m("none()")},Object.freeze&&Object.freeze(r),r);function f(e){return e.isNone()}function a(e){return e()}function d(e){return e}function h(n){return function(e){return function(e){if(null===e)return"null";var n=typeof e;return"object"==n&&(Array.prototype.isPrototypeOf(e)||e.constructor&&"Array"===e.constructor.name)?"array":"object"==n&&(String.prototype.isPrototypeOf(e)||e.constructor&&"String"===e.constructor.name)?"string":n}(e)===n}}function v(e,n){for(var r=e.length,t=new Array(r),o=0;o${name}');return{name:"plugins",title:"Plugins",items:[{type:"htmlpanel",presets:"document",html:[(n=e,null==n?"":'
    '+function(t){var e=function(e){var t=F(e.plugins);return e.settings.forced_plugins===undefined?t:function(e,t){for(var n=[],o=0,a=e.length;o"+r(t,e)+""}),o=n.length,a=n.join("");return"

    "+U.translate(["Plugins installed ({0}):",o])+"

      "+a+"
    "}(n)+"
    "),(t=y(["Accessibility Checker","Advanced Code Editor","Advanced Tables","Case Change","Checklist","Tiny Comments","Tiny Drive","Enhanced Media Embed","Format Painter","Link Checker","Mentions","MoxieManager","Page Embed","Permanent Pen","PowerPaste","Spell Checker Pro"],function(e){return"
  • "+U.translate(e)+"
  • "}).join(""),'

    '+U.translate("Premium plugins:")+"

    ")].join("")}]}},N=tinymce.util.Tools.resolve("tinymce.EditorManager"),L=function(){var e,t,n='TinyMCE '+(e=N.majorVersion,t=N.minorVersion,0===e.indexOf("@")?"X.X.X":e+"."+t)+"";return{name:"versions",title:"Version",items:[{type:"htmlpanel",html:"

    "+U.translate(["You are using {0}",n])+"

    ",presets:"document"}]}},B=function(){return{name:"keyboardnav",title:"Keyboard Navigation",items:[{type:"htmlpanel",presets:"document",html:"

    Editor UI keyboard navigation

    \n\n

    Activating keyboard navigation

    \n\n

    The sections of the outer UI of the editor - the menubar, toolbar, sidebar and footer - are all keyboard navigable. As such, there are multiple ways to activate keyboard navigation:

    \n
      \n
    • Focus the menubar: Alt + F9 (Windows) or ⌥F9 (MacOS)
    • \n
    • Focus the toolbar: Alt + F10 (Windows) or ⌥F10 (MacOS)
    • \n
    • Focus the footer: Alt + F11 (Windows) or ⌥F11 (MacOS)
    • \n
    \n\n

    Focusing the menubar or toolbar will start keyboard navigation at the first item in the menubar or toolbar, which will be highlighted with a gray background. Focusing the footer will start keyboard navigation at the first item in the element path, which will be highlighted with an underline.

    \n\n

    Moving between UI sections

    \n\n

    When keyboard navigation is active, pressing tab will move the focus to the next major section of the UI, where applicable. These sections are:

    \n
      \n
    • the menubar
    • \n
    • each group of the toolbar
    • \n
    • the sidebar
    • \n
    • the element path in the footer
    • \n
    • the wordcount toggle button in the footer
    • \n
    • the branding link in the footer
    • \n
    \n\n

    Pressing shift + tab will move backwards through the same sections, except when moving from the footer to the toolbar. Focusing the element path then pressing shift + tab will move focus to the first toolbar group, not the last.

    \n\n

    Moving within UI sections

    \n\n

    Keyboard navigation within UI sections can usually be achieved using the left and right arrow keys. This includes:

    \n
      \n
    • moving between menus in the menubar
    • \n
    • moving between buttons in a toolbar group
    • \n
    • moving between items in the element path
    • \n
    \n\n

    In all these UI sections, keyboard navigation will cycle within the section. For example, focusing the last button in a toolbar group then pressing right arrow will move focus to the first item in the same toolbar group.

    \n\n

    Executing buttons

    \n\n

    To execute a button, navigate the selection to the desired button and hit space or enter.

    \n\n

    Opening, navigating and closing menus

    \n\n

    When focusing a menubar button or a toolbar button with a menu, pressing space, enter or down arrow will open the menu. When the menu opens the first item will be selected. To move up or down the menu, press the up or down arrow key respectively. This is the same for submenus, which can also be opened and closed using the left and right arrow keys.

    \n\n

    To close any active menu, hit the escape key. When a menu is closed the selection will be restored to its previous selection. This also works for closing submenus.

    \n\n

    Context toolbars and menus

    \n\n

    To focus an open context toolbar such as the table context toolbar, press Ctrl + F9 (Windows) or ⌃F9 (MacOS).

    \n\n

    Context toolbar navigation is the same as toolbar navigation, and context menu navigation is the same as standard menu navigation.

    \n\n

    Dialog navigation

    \n\n

    There are two types of dialog UIs in TinyMCE: tabbed dialogs and non-tabbed dialogs.

    \n\n

    When a non-tabbed dialog is opened, the first interactive component in the dialog will be focused. Users can navigate between interactive components by pressing tab. This includes any footer buttons. Navigation will cycle back to the first dialog component if tab is pressed while focusing the last component in the dialog. Pressing shift + tab will navigate backwards.

    \n\n

    When a tabbed dialog is opened, the first button in the tab menu is focused. Pressing tab will navigate to the first interactive component in that tab, and will cycle through the tab\u2019s components, the footer buttons, then back to the tab button. To switch to another tab, focus the tab button for the current tab, then use the arrow keys to cycle through the tab buttons.

    "}]}};!function z(){t.add("help",function(e){var t=a({}),n=function(n){return{addTab:function(e){var t=n.get();t[e.name]=e,n.set(t)}}}(t),o=A(e,t);return s(e,o),i(e,o),e.shortcuts.add("Alt+0","Open help dialog","mceHelp"),n})}()}(); \ No newline at end of file diff --git a/public/assets/js/plugins/hr/plugin.js b/public/assets/js/plugins/hr/plugin.js index b52fbea85..86f27f8a4 100644 --- a/public/assets/js/plugins/hr/plugin.js +++ b/public/assets/js/plugins/hr/plugin.js @@ -4,7 +4,7 @@ * For LGPL see License.txt in the project root for license information. * For commercial licenses see https://www.tiny.cloud/ * - * Version: 5.1.4 (2019-12-11) + * Version: 5.1.5 (2019-12-19) */ (function () { 'use strict'; diff --git a/public/assets/js/plugins/hr/plugin.min.js b/public/assets/js/plugins/hr/plugin.min.js index 4b7c3430b..9024d434a 100644 --- a/public/assets/js/plugins/hr/plugin.min.js +++ b/public/assets/js/plugins/hr/plugin.min.js @@ -4,6 +4,6 @@ * For LGPL see License.txt in the project root for license information. * For commercial licenses see https://www.tiny.cloud/ * - * Version: 5.1.4 (2019-12-11) + * Version: 5.1.5 (2019-12-19) */ !function(){"use strict";var n=tinymce.util.Tools.resolve("tinymce.PluginManager"),o=function(n){n.addCommand("InsertHorizontalRule",function(){n.execCommand("mceInsertContent",!1,"
    ")})},t=function(n){n.ui.registry.addButton("hr",{icon:"horizontal-rule",tooltip:"Horizontal line",onAction:function(){return n.execCommand("InsertHorizontalRule")}}),n.ui.registry.addMenuItem("hr",{icon:"horizontal-rule",text:"Horizontal line",onAction:function(){return n.execCommand("InsertHorizontalRule")}})};!function e(){n.add("hr",function(n){o(n),t(n)})}()}(); \ No newline at end of file diff --git a/public/assets/js/plugins/image/plugin.js b/public/assets/js/plugins/image/plugin.js index 1c07cad5c..2450cdf33 100644 --- a/public/assets/js/plugins/image/plugin.js +++ b/public/assets/js/plugins/image/plugin.js @@ -4,7 +4,7 @@ * For LGPL see License.txt in the project root for license information. * For commercial licenses see https://www.tiny.cloud/ * - * Version: 5.1.4 (2019-12-11) + * Version: 5.1.5 (2019-12-19) */ (function (domGlobals) { 'use strict'; diff --git a/public/assets/js/plugins/image/plugin.min.js b/public/assets/js/plugins/image/plugin.min.js index 0fb2f08f3..bced2648c 100644 --- a/public/assets/js/plugins/image/plugin.min.js +++ b/public/assets/js/plugins/image/plugin.min.js @@ -4,6 +4,6 @@ * For LGPL see License.txt in the project root for license information. * For commercial licenses see https://www.tiny.cloud/ * - * Version: 5.1.4 (2019-12-11) + * Version: 5.1.5 (2019-12-19) */ !function(s){"use strict";function o(){}function a(t){return function(){return t}}function t(t){return t}function e(){return l}var n,r=tinymce.util.Tools.resolve("tinymce.PluginManager"),u=a(!1),c=a(!0),l=(n={fold:function(t,e){return t()},is:u,isSome:u,isNone:c,getOr:d,getOrThunk:f,getOrDie:function(t){throw new Error(t||"error: getOrDie called on none.")},getOrNull:a(null),getOrUndefined:a(undefined),or:d,orThunk:f,map:e,each:o,bind:e,exists:u,forall:c,filter:e,equals:i,equals_:i,toArray:function(){return[]},toString:a("none()")},Object.freeze&&Object.freeze(n),n);function i(t){return t.isNone()}function f(t){return t()}function d(t){return t}function m(e){return function(t){return function(t){if(null===t)return"null";var e=typeof t;return"object"==e&&(Array.prototype.isPrototypeOf(t)||t.constructor&&"Array"===t.constructor.name)?"array":"object"==e&&(String.prototype.isPrototypeOf(t)||t.constructor&&"String"===t.constructor.name)?"string":e}(t)===e}}function v(t){for(var e=[],n=0,r=t.length;n'+n+"")}else e.insertContent(i(e,t))},g=i,y=function(e){e.addCommand("mceInsertDate",function(){p(e,t(e))}),e.addCommand("mceInsertTime",function(){p(e,o(e))})},M=tinymce.util.Tools.resolve("tinymce.util.Tools"),S=function(e){function t(){return n}var n=e;return{get:t,set:function(e){n=e},clone:function(){return S(t())}}},v=function(n){var t=u(n),r=S(c(n));n.ui.registry.addSplitButton("insertdatetime",{icon:"insert-time",tooltip:"Insert date/time",select:function(e){return e===r.get()},fetch:function(e){e(M.map(t,function(e){return{type:"choiceitem",text:g(n,e),value:e}}))},onAction:function(){for(var e=[],t=0;t]+>[^<]+<\/a>$/.test(n)||-1===n.indexOf("href=")))},fn=R,ln=function(n,t){return function(n){return n.replace(/\uFEFF/g,"")}(t?t.innerText||t.textContent:n.getContent({format:"text"}))},sn=L,dn=F,mn={sanitize:function(n){return K(q)(n)},sanitizeWith:K,createUi:function(t,e){return function(n){return{name:t,type:"selectbox",label:e,items:n}}},getValue:q},hn=function(n){function t(){return e}var e=n;return{get:t,set:function(n){e=n},clone:function(){return hn(t())}}},pn=function(n,r){function e(n,t){var e=function(n,t){return"link"===t?n.catalogs.link:"anchor"===t?n.catalogs.anchor:J.none()}(r,t.name).getOr([]);return B(o.get(),t.name,e,n)}var o=hn(n.text);return{onChange:function(n,t){return"url"===t.name?function(n){if(o.get().length<=0){var t=n.url.meta.text!==undefined?n.url.meta.text:n.url.value;return J.some({text:t})}return J.none()}(n()):E(["anchor","link"],t.name)?e(n(),t):("text"===t.name&&o.set(n().text),J.none())}}},gn={},vn={exports:gn};V=undefined,W=gn,H=vn,$=undefined,function(n){"object"==typeof W&&void 0!==H?H.exports=n():"function"==typeof V&&V.amd?V([],n):("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this).EphoxContactWrapper=n()}(function(){return function l(i,u,c){function a(t,n){if(!u[t]){if(!i[t]){var e="function"==typeof $&&$;if(!n&&e)return e(t,!0);if(f)return f(t,!0);var r=new Error("Cannot find module '"+t+"'");throw r.code="MODULE_NOT_FOUND",r}var o=u[t]={exports:{}};i[t][0].call(o.exports,function(n){return a(i[t][1][n]||n)},o,o.exports,l,i,u,c)}return u[t].exports}for(var f="function"==typeof $&&$,n=0;ne.length?ne(t,e,n):ee(t,e,n)},[]);return S(n).map(function(e){return e.list})}(e.contentDocument,n).toArray()}function de(e){var n=g(Jn.getSelectedListItems(e),bn.fromDom);return A(N(n,t(re)),N(function(e){var n=Xe.call(e,0);return n.reverse(),n}(n),t(re)),function(e,n){return{start:e,end:n}})}function le(t,e,r){var n=function(e,n){var t=Ge(!1);return g(e,function(e){return{sourceList:e,entries:tt(0,n,t,e)}})}(e,de(t));p(n,function(e){!function(e,n){p(v(e,ie),function(e){return function(e,n){switch(e){case"Indent":n.depth++;break;case"Outdent":n.depth--;break;case"Flatten":n.depth=0}}(n,e)})}(e.entries,r);var n=function(n,e){return y(function(e,n){if(0===e.length)return[];for(var t=n(e[0]),r=[],o=[],i=0,u=e.length;i=e.childNodes.length?t.data.length:0}:t.previousSibling&&Mn(t.previousSibling)?{container:t.previousSibling,offset:t.previousSibling.data.length}:t.nextSibling&&Mn(t.nextSibling)?{container:t.nextSibling,offset:0}:{container:e,offset:n}}function ve(e,n){var t=g(Jn.getSelectedListRoots(e),bn.fromDom),r=g(Jn.getSelectedDlItems(e),bn.fromDom),o=!1;if(t.length||r.length){var i=e.selection.getBookmark();le(e,t,n),ge(e,n,r),e.selection.moveToBookmark(i),e.selection.setRng(ut(e.selection.getRng())),e.nodeChanged(),o=!0}return o}function he(e){return ve(e,"Indent")}function Ne(e){return ve(e,"Outdent")}function ye(e){return ve(e,"Flatten")}function Se(e){return/\btox\-/.test(e.className)}function Oe(e){switch(e){case"UL":return"ToggleUlList";case"OL":return"ToggleOlList";case"DL":return"ToggleDLList"}}function Ce(t,e){Pn.each(e,function(e,n){t.setAttribute(n,e)})}function be(e,n,t){!function(e,n,t){var r=t["list-style-type"]?t["list-style-type"]:null;e.setStyle(n,"list-style-type",r)}(e,n,t),function(e,n,t){Ce(n,t["list-attributes"]),Pn.each(e.select("li",n),function(e){Ce(e,t["list-item-attributes"])})}(e,n,t)}function Le(e,n,t,r){var o,i;for(o=n[t?"startContainer":"endContainer"],i=n[t?"startOffset":"endOffset"],1===o.nodeType&&(o=o.childNodes[Math.min(i,o.childNodes.length-1)]||o),!t&&qn(o.nextSibling)&&(o=o.nextSibling);o.parentNode!==r;){if(Vn(e,o))return o;if(/^(TD|TH)$/.test(o.parentNode.nodeName))return o;o=o.parentNode}return o}function Te(r,o,i){void 0===i&&(i={});var e,n=r.selection.getRng(!0),u="LI",t=Jn.getClosestListRootElm(r,r.selection.getStart(!0)),s=r.dom;"false"!==s.getContentEditable(r.selection.getNode())&&("DL"===(o=o.toUpperCase())&&(u="DT"),e=ct(n),Pn.each(function(t,e,r){for(var o,i=[],u=t.dom,n=Le(t,e,!0,r),s=Le(t,e,!1,r),a=[],c=n;c&&(a.push(c),c!==s);c=c.nextSibling);return Pn.each(a,function(e){if(Vn(t,e))return i.push(e),void(o=null);if(u.isBlock(e)||qn(e))return qn(e)&&u.remove(e),void(o=null);var n=e.nextSibling;st.isBookmarkNode(e)&&(Vn(t,n)||!n&&e.parentNode===r)?o=null:(o||(o=u.create("p"),e.parentNode.insertBefore(o,e),i.push(o)),o.appendChild(e))}),i}(r,n,t),function(e){var n,t;(t=e.previousSibling)&&Un(t)&&t.nodeName===o&&function(e,n,t){var r=e.getStyle(n,"list-style-type"),o=t?t["list-style-type"]:"";return r===(o=null===o?"":o)}(s,t,i)?(n=t,e=s.rename(e,u),t.appendChild(e)):(n=s.create(o),e.parentNode.insertBefore(n,e),n.appendChild(e),e=s.rename(e,u)),function(t,r,e){Pn.each(e,function(e){var n;return t.setStyle(r,((n={})[e]="",n))})}(s,e,["margin","margin-right","margin-bottom","margin-left","margin-top","padding","padding-right","padding-bottom","padding-left","padding-top"]),be(s,n,i),dt(r.dom,n)}),r.selection.setRng(ft(e)))}function De(e,n,t){return function(e,n){return e&&n&&Un(e)&&e.nodeName===n.nodeName}(n,t)&&function(e,n,t){return e.getStyle(n,"list-style-type",!0)===e.getStyle(t,"list-style-type",!0)}(e,n,t)&&function(e,n){return e.className===n.className}(n,t)}function Ee(n,e,t,r,o){if(e.nodeName!==r||lt(o)){var i=ct(n.selection.getRng(!0));Pn.each([e].concat(t),function(e){!function(e,n,t,r){if(n.nodeName!==t){var o=e.dom.rename(n,t);be(e.dom,o,r),j(e,Oe(t),o)}else be(e.dom,n,r),j(e,Oe(t),n)}(n,e,r,o)}),n.selection.setRng(ft(i))}else ye(n)}function we(e,n){var t,r=n.parentNode;"LI"===r.nodeName&&r.firstChild===n&&((t=r.previousSibling)&&"LI"===t.nodeName?(t.appendChild(n),Xn(e,r)&>.remove(r)):gt.setStyle(r,"listStyleType","none")),Un(r)&&(t=r.previousSibling)&&"LI"===t.nodeName&&t.appendChild(n)}function ke(e,n,t,r){var o=n.startContainer,i=n.startOffset;if(Mn(o)&&(t?i"}(n):"application/x-shockwave-flash"===n.source1mime?function(e){var t='';return e.poster&&(t+=''),t+=""}(n):-1!==n.source1mime.indexOf("audio")?function(e,t){return t?t(e):'"}(n,o):"script"===n.type?function(e){return'