--- a/src/pyams_skin/resources/js/ext/jquery-2.2.4.min.js Mon Dec 03 13:52:31 2018 +0100
+++ b/src/pyams_skin/resources/js/ext/jquery-2.2.4.min.js Wed Dec 05 16:21:23 2018 +0100
@@ -1,1 +1,1 @@
-!function(e,t){"object"==typeof module&&"object"==typeof module.exports?module.exports=e.document?t(e,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return t(e)}:t(e)}("undefined"!=typeof window?window:this,function(C,e){var t=[],k=C.document,c=t.slice,g=t.concat,a=t.push,i=t.indexOf,n={},r=n.toString,h=n.hasOwnProperty,v={},o="2.2.4",E=function(e,t){return new E.fn.init(e,t)},s=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,u=/^-ms-/,l=/-([\da-z])/gi,f=function(e,t){return t.toUpperCase()};function p(e){var t=!!e&&"length"in e&&e.length,n=E.type(e);return"function"!==n&&!E.isWindow(e)&&("array"===n||0===t||"number"==typeof t&&0<t&&t-1 in e)}E.fn=E.prototype={jquery:o,constructor:E,selector:"",length:0,toArray:function(){return c.call(this)},get:function(e){return null!=e?e<0?this[e+this.length]:this[e]:c.call(this)},pushStack:function(e){var t=E.merge(this.constructor(),e);return t.prevObject=this,t.context=this.context,t},each:function(e){return E.each(this,e)},map:function(n){return this.pushStack(E.map(this,function(e,t){return n.call(e,t,e)}))},slice:function(){return this.pushStack(c.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(e){var t=this.length,n=+e+(e<0?t:0);return this.pushStack(0<=n&&n<t?[this[n]]:[])},end:function(){return this.prevObject||this.constructor()},push:a,sort:t.sort,splice:t.splice},E.extend=E.fn.extend=function(){var e,t,n,r,i,o,s=arguments[0]||{},a=1,u=arguments.length,l=!1;for("boolean"==typeof s&&(l=s,s=arguments[a]||{},a++),"object"==typeof s||E.isFunction(s)||(s={}),a===u&&(s=this,a--);a<u;a++)if(null!=(e=arguments[a]))for(t in e)n=s[t],s!==(r=e[t])&&(l&&r&&(E.isPlainObject(r)||(i=E.isArray(r)))?(i?(i=!1,o=n&&E.isArray(n)?n:[]):o=n&&E.isPlainObject(n)?n:{},s[t]=E.extend(l,o,r)):void 0!==r&&(s[t]=r));return s},E.extend({expando:"jQuery"+(o+Math.random()).replace(/\D/g,""),isReady:!0,error:function(e){throw new Error(e)},noop:function(){},isFunction:function(e){return"function"===E.type(e)},isArray:Array.isArray,isWindow:function(e){return null!=e&&e===e.window},isNumeric:function(e){var t=e&&e.toString();return!E.isArray(e)&&0<=t-parseFloat(t)+1},isPlainObject:function(e){var t;if("object"!==E.type(e)||e.nodeType||E.isWindow(e))return!1;if(e.constructor&&!h.call(e,"constructor")&&!h.call(e.constructor.prototype||{},"isPrototypeOf"))return!1;for(t in e);return void 0===t||h.call(e,t)},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},type:function(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?n[r.call(e)]||"object":typeof e},globalEval:function(e){var t,n=eval;(e=E.trim(e))&&(1===e.indexOf("use strict")?((t=k.createElement("script")).text=e,k.head.appendChild(t).parentNode.removeChild(t)):n(e))},camelCase:function(e){return e.replace(u,"ms-").replace(l,f)},nodeName:function(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()},each:function(e,t){var n,r=0;if(p(e))for(n=e.length;r<n&&!1!==t.call(e[r],r,e[r]);r++);else for(r in e)if(!1===t.call(e[r],r,e[r]))break;return e},trim:function(e){return null==e?"":(e+"").replace(s,"")},makeArray:function(e,t){var n=t||[];return null!=e&&(p(Object(e))?E.merge(n,"string"==typeof e?[e]:e):a.call(n,e)),n},inArray:function(e,t,n){return null==t?-1:i.call(t,e,n)},merge:function(e,t){for(var n=+t.length,r=0,i=e.length;r<n;r++)e[i++]=t[r];return e.length=i,e},grep:function(e,t,n){for(var r=[],i=0,o=e.length,s=!n;i<o;i++)!t(e[i],i)!==s&&r.push(e[i]);return r},map:function(e,t,n){var r,i,o=0,s=[];if(p(e))for(r=e.length;o<r;o++)null!=(i=t(e[o],o,n))&&s.push(i);else for(o in e)null!=(i=t(e[o],o,n))&&s.push(i);return g.apply([],s)},guid:1,proxy:function(e,t){var n,r,i;if("string"==typeof t&&(n=e[t],t=e,e=n),E.isFunction(e))return r=c.call(arguments,2),(i=function(){return e.apply(t||this,r.concat(c.call(arguments)))}).guid=e.guid=e.guid||E.guid++,i},now:Date.now,support:v}),"function"==typeof Symbol&&(E.fn[Symbol.iterator]=t[Symbol.iterator]),E.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(e,t){n["[object "+t+"]"]=t.toLowerCase()});var d=function(n){var e,h,b,o,i,g,f,v,w,u,l,T,C,s,k,m,a,c,y,E="sizzle"+1*new Date,x=n.document,N=0,r=0,p=oe(),d=oe(),S=oe(),j=function(e,t){return e===t&&(l=!0),0},D=1<<31,A={}.hasOwnProperty,t=[],q=t.pop,L=t.push,H=t.push,O=t.slice,F=function(e,t){for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1},P="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",R="[\\x20\\t\\r\\n\\f]",M="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",I="\\["+R+"*("+M+")(?:"+R+"*([*^$|!~]?=)"+R+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+M+"))|)"+R+"*\\]",W=":("+M+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+I+")*)|.*)\\)|)",$=new RegExp(R+"+","g"),B=new RegExp("^"+R+"+|((?:^|[^\\\\])(?:\\\\.)*)"+R+"+$","g"),_=new RegExp("^"+R+"*,"+R+"*"),X=new RegExp("^"+R+"*([>+~]|"+R+")"+R+"*"),z=new RegExp("="+R+"*([^\\]'\"]*?)"+R+"*\\]","g"),U=new RegExp(W),V=new RegExp("^"+M+"$"),Y={ID:new RegExp("^#("+M+")"),CLASS:new RegExp("^\\.("+M+")"),TAG:new RegExp("^("+M+"|[*])"),ATTR:new RegExp("^"+I),PSEUDO:new RegExp("^"+W),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+R+"*(even|odd|(([+-]|)(\\d*)n|)"+R+"*(?:([+-]|)"+R+"*(\\d+)|))"+R+"*\\)|)","i"),bool:new RegExp("^(?:"+P+")$","i"),needsContext:new RegExp("^"+R+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+R+"*((?:-\\d)?\\d*)"+R+"*\\)|)(?=[^-]|$)","i")},G=/^(?:input|select|textarea|button)$/i,Q=/^h\d$/i,J=/^[^{]+\{\s*\[native \w/,K=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,Z=/[+~]/,ee=/'|\\/g,te=new RegExp("\\\\([\\da-f]{1,6}"+R+"?|("+R+")|.)","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=function(){T()};try{H.apply(t=O.call(x.childNodes),x.childNodes),t[x.childNodes.length].nodeType}catch(e){H={apply:t.length?function(e,t){L.apply(e,O.call(t))}:function(e,t){for(var n=e.length,r=0;e[n++]=t[r++];);e.length=n-1}}}function ie(e,t,n,r){var i,o,s,a,u,l,c,f,p=t&&t.ownerDocument,d=t?t.nodeType:9;if(n=n||[],"string"!=typeof e||!e||1!==d&&9!==d&&11!==d)return n;if(!r&&((t?t.ownerDocument||t:x)!==C&&T(t),t=t||C,k)){if(11!==d&&(l=K.exec(e)))if(i=l[1]){if(9===d){if(!(s=t.getElementById(i)))return n;if(s.id===i)return n.push(s),n}else if(p&&(s=p.getElementById(i))&&y(t,s)&&s.id===i)return n.push(s),n}else{if(l[2])return H.apply(n,t.getElementsByTagName(e)),n;if((i=l[3])&&h.getElementsByClassName&&t.getElementsByClassName)return H.apply(n,t.getElementsByClassName(i)),n}if(h.qsa&&!S[e+" "]&&(!m||!m.test(e))){if(1!==d)p=t,f=e;else if("object"!==t.nodeName.toLowerCase()){for((a=t.getAttribute("id"))?a=a.replace(ee,"\\$&"):t.setAttribute("id",a=E),o=(c=g(e)).length,u=V.test(a)?"#"+a:"[id='"+a+"']";o--;)c[o]=u+" "+ge(c[o]);f=c.join(","),p=Z.test(e)&&de(t.parentNode)||t}if(f)try{return H.apply(n,p.querySelectorAll(f)),n}catch(e){}finally{a===E&&t.removeAttribute("id")}}}return v(e.replace(B,"$1"),t,n,r)}function oe(){var r=[];return function e(t,n){return r.push(t+" ")>b.cacheLength&&delete e[r.shift()],e[t+" "]=n}}function se(e){return e[E]=!0,e}function ae(e){var t=C.createElement("div");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function ue(e,t){for(var n=e.split("|"),r=n.length;r--;)b.attrHandle[n[r]]=t}function le(e,t){var n=t&&e,r=n&&1===e.nodeType&&1===t.nodeType&&(~t.sourceIndex||D)-(~e.sourceIndex||D);if(r)return r;if(n)for(;n=n.nextSibling;)if(n===t)return-1;return e?1:-1}function ce(t){return function(e){return"input"===e.nodeName.toLowerCase()&&e.type===t}}function fe(n){return function(e){var t=e.nodeName.toLowerCase();return("input"===t||"button"===t)&&e.type===n}}function pe(s){return se(function(o){return o=+o,se(function(e,t){for(var n,r=s([],e.length,o),i=r.length;i--;)e[n=r[i]]&&(e[n]=!(t[n]=e[n]))})})}function de(e){return e&&void 0!==e.getElementsByTagName&&e}for(e in h=ie.support={},i=ie.isXML=function(e){var t=e&&(e.ownerDocument||e).documentElement;return!!t&&"HTML"!==t.nodeName},T=ie.setDocument=function(e){var t,n,r=e?e.ownerDocument||e:x;return r!==C&&9===r.nodeType&&r.documentElement&&(s=(C=r).documentElement,k=!i(C),(n=C.defaultView)&&n.top!==n&&(n.addEventListener?n.addEventListener("unload",re,!1):n.attachEvent&&n.attachEvent("onunload",re)),h.attributes=ae(function(e){return e.className="i",!e.getAttribute("className")}),h.getElementsByTagName=ae(function(e){return e.appendChild(C.createComment("")),!e.getElementsByTagName("*").length}),h.getElementsByClassName=J.test(C.getElementsByClassName),h.getById=ae(function(e){return s.appendChild(e).id=E,!C.getElementsByName||!C.getElementsByName(E).length}),h.getById?(b.find.ID=function(e,t){if(void 0!==t.getElementById&&k){var n=t.getElementById(e);return n?[n]:[]}},b.filter.ID=function(e){var t=e.replace(te,ne);return function(e){return e.getAttribute("id")===t}}):(delete b.find.ID,b.filter.ID=function(e){var n=e.replace(te,ne);return function(e){var t=void 0!==e.getAttributeNode&&e.getAttributeNode("id");return t&&t.value===n}}),b.find.TAG=h.getElementsByTagName?function(e,t){return void 0!==t.getElementsByTagName?t.getElementsByTagName(e):h.qsa?t.querySelectorAll(e):void 0}:function(e,t){var n,r=[],i=0,o=t.getElementsByTagName(e);if("*"===e){for(;n=o[i++];)1===n.nodeType&&r.push(n);return r}return o},b.find.CLASS=h.getElementsByClassName&&function(e,t){if(void 0!==t.getElementsByClassName&&k)return t.getElementsByClassName(e)},a=[],m=[],(h.qsa=J.test(C.querySelectorAll))&&(ae(function(e){s.appendChild(e).innerHTML="<a id='"+E+"'></a><select id='"+E+"-\r\\' msallowcapture=''><option selected=''></option></select>",e.querySelectorAll("[msallowcapture^='']").length&&m.push("[*^$]="+R+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||m.push("\\["+R+"*(?:value|"+P+")"),e.querySelectorAll("[id~="+E+"-]").length||m.push("~="),e.querySelectorAll(":checked").length||m.push(":checked"),e.querySelectorAll("a#"+E+"+*").length||m.push(".#.+[+~]")}),ae(function(e){var t=C.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&m.push("name"+R+"*[*^$|!~]?="),e.querySelectorAll(":enabled").length||m.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),m.push(",.*:")})),(h.matchesSelector=J.test(c=s.matches||s.webkitMatchesSelector||s.mozMatchesSelector||s.oMatchesSelector||s.msMatchesSelector))&&ae(function(e){h.disconnectedMatch=c.call(e,"div"),c.call(e,"[s!='']:x"),a.push("!=",W)}),m=m.length&&new RegExp(m.join("|")),a=a.length&&new RegExp(a.join("|")),t=J.test(s.compareDocumentPosition),y=t||J.test(s.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},j=t?function(e,t){if(e===t)return l=!0,0;var n=!e.compareDocumentPosition-!t.compareDocumentPosition;return n||(1&(n=(e.ownerDocument||e)===(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!h.sortDetached&&t.compareDocumentPosition(e)===n?e===C||e.ownerDocument===x&&y(x,e)?-1:t===C||t.ownerDocument===x&&y(x,t)?1:u?F(u,e)-F(u,t):0:4&n?-1:1)}:function(e,t){if(e===t)return l=!0,0;var n,r=0,i=e.parentNode,o=t.parentNode,s=[e],a=[t];if(!i||!o)return e===C?-1:t===C?1:i?-1:o?1:u?F(u,e)-F(u,t):0;if(i===o)return le(e,t);for(n=e;n=n.parentNode;)s.unshift(n);for(n=t;n=n.parentNode;)a.unshift(n);for(;s[r]===a[r];)r++;return r?le(s[r],a[r]):s[r]===x?-1:a[r]===x?1:0}),C},ie.matches=function(e,t){return ie(e,null,null,t)},ie.matchesSelector=function(e,t){if((e.ownerDocument||e)!==C&&T(e),t=t.replace(z,"='$1']"),h.matchesSelector&&k&&!S[t+" "]&&(!a||!a.test(t))&&(!m||!m.test(t)))try{var n=c.call(e,t);if(n||h.disconnectedMatch||e.document&&11!==e.document.nodeType)return n}catch(e){}return 0<ie(t,C,null,[e]).length},ie.contains=function(e,t){return(e.ownerDocument||e)!==C&&T(e),y(e,t)},ie.attr=function(e,t){(e.ownerDocument||e)!==C&&T(e);var n=b.attrHandle[t.toLowerCase()],r=n&&A.call(b.attrHandle,t.toLowerCase())?n(e,t,!k):void 0;return void 0!==r?r:h.attributes||!k?e.getAttribute(t):(r=e.getAttributeNode(t))&&r.specified?r.value:null},ie.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},ie.uniqueSort=function(e){var t,n=[],r=0,i=0;if(l=!h.detectDuplicates,u=!h.sortStable&&e.slice(0),e.sort(j),l){for(;t=e[i++];)t===e[i]&&(r=n.push(i));for(;r--;)e.splice(n[r],1)}return u=null,e},o=ie.getText=function(e){var t,n="",r=0,i=e.nodeType;if(i){if(1===i||9===i||11===i){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=o(e)}else if(3===i||4===i)return e.nodeValue}else for(;t=e[r++];)n+=o(t);return n},(b=ie.selectors={cacheLength:50,createPseudo:se,match:Y,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(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]||ie.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]&&ie.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return Y.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&U.test(n)&&(t=g(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=p[e+" "];return t||(t=new RegExp("(^|"+R+")"+e+"("+R+"|$)"))&&p(e,function(e){return t.test("string"==typeof e.className&&e.className||void 0!==e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(n,r,i){return function(e){var t=ie.attr(e,n);return null==t?"!="===r:!r||(t+="","="===r?t===i:"!="===r?t!==i:"^="===r?i&&0===t.indexOf(i):"*="===r?i&&-1<t.indexOf(i):"$="===r?i&&t.slice(-i.length)===i:"~="===r?-1<(" "+t.replace($," ")+" ").indexOf(i):"|="===r&&(t===i||t.slice(0,i.length+1)===i+"-"))}},CHILD:function(h,e,t,g,v){var m="nth"!==h.slice(0,3),y="last"!==h.slice(-4),x="of-type"===e;return 1===g&&0===v?function(e){return!!e.parentNode}:function(e,t,n){var r,i,o,s,a,u,l=m!==y?"nextSibling":"previousSibling",c=e.parentNode,f=x&&e.nodeName.toLowerCase(),p=!n&&!x,d=!1;if(c){if(m){for(;l;){for(s=e;s=s[l];)if(x?s.nodeName.toLowerCase()===f:1===s.nodeType)return!1;u=l="only"===h&&!u&&"nextSibling"}return!0}if(u=[y?c.firstChild:c.lastChild],y&&p){for(d=(a=(r=(i=(o=(s=c)[E]||(s[E]={}))[s.uniqueID]||(o[s.uniqueID]={}))[h]||[])[0]===N&&r[1])&&r[2],s=a&&c.childNodes[a];s=++a&&s&&s[l]||(d=a=0)||u.pop();)if(1===s.nodeType&&++d&&s===e){i[h]=[N,a,d];break}}else if(p&&(d=a=(r=(i=(o=(s=e)[E]||(s[E]={}))[s.uniqueID]||(o[s.uniqueID]={}))[h]||[])[0]===N&&r[1]),!1===d)for(;(s=++a&&s&&s[l]||(d=a=0)||u.pop())&&((x?s.nodeName.toLowerCase()!==f:1!==s.nodeType)||!++d||(p&&((i=(o=s[E]||(s[E]={}))[s.uniqueID]||(o[s.uniqueID]={}))[h]=[N,d]),s!==e)););return(d-=v)===g||d%g==0&&0<=d/g}}},PSEUDO:function(e,o){var t,s=b.pseudos[e]||b.setFilters[e.toLowerCase()]||ie.error("unsupported pseudo: "+e);return s[E]?s(o):1<s.length?(t=[e,e,"",o],b.setFilters.hasOwnProperty(e.toLowerCase())?se(function(e,t){for(var n,r=s(e,o),i=r.length;i--;)e[n=F(e,r[i])]=!(t[n]=r[i])}):function(e){return s(e,0,t)}):s}},pseudos:{not:se(function(e){var r=[],i=[],a=f(e.replace(B,"$1"));return a[E]?se(function(e,t,n,r){for(var i,o=a(e,null,r,[]),s=e.length;s--;)(i=o[s])&&(e[s]=!(t[s]=i))}):function(e,t,n){return r[0]=e,a(r,null,n,i),r[0]=null,!i.pop()}}),has:se(function(t){return function(e){return 0<ie(t,e).length}}),contains:se(function(t){return t=t.replace(te,ne),function(e){return-1<(e.textContent||e.innerText||o(e)).indexOf(t)}}),lang:se(function(n){return V.test(n||"")||ie.error("unsupported lang: "+n),n=n.replace(te,ne).toLowerCase(),function(e){var t;do{if(t=k?e.lang:e.getAttribute("xml:lang")||e.getAttribute("lang"))return(t=t.toLowerCase())===n||0===t.indexOf(n+"-")}while((e=e.parentNode)&&1===e.nodeType);return!1}}),target:function(e){var t=n.location&&n.location.hash;return t&&t.slice(1)===e.id},root:function(e){return e===s},focus:function(e){return e===C.activeElement&&(!C.hasFocus||C.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:function(e){return!1===e.disabled},disabled:function(e){return!0===e.disabled},checked:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&!!e.checked||"option"===t&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,!0===e.selected},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!b.pseudos.empty(e)},header:function(e){return Q.test(e.nodeName)},input:function(e){return G.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},text:function(e){var t;return"input"===e.nodeName.toLowerCase()&&"text"===e.type&&(null==(t=e.getAttribute("type"))||"text"===t.toLowerCase())},first:pe(function(){return[0]}),last:pe(function(e,t){return[t-1]}),eq:pe(function(e,t,n){return[n<0?n+t:n]}),even:pe(function(e,t){for(var n=0;n<t;n+=2)e.push(n);return e}),odd:pe(function(e,t){for(var n=1;n<t;n+=2)e.push(n);return e}),lt:pe(function(e,t,n){for(var r=n<0?n+t:n;0<=--r;)e.push(r);return e}),gt:pe(function(e,t,n){for(var r=n<0?n+t:n;++r<t;)e.push(r);return e})}}).pseudos.nth=b.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})b.pseudos[e]=ce(e);for(e in{submit:!0,reset:!0})b.pseudos[e]=fe(e);function he(){}function ge(e){for(var t=0,n=e.length,r="";t<n;t++)r+=e[t].value;return r}function ve(a,e,t){var u=e.dir,l=t&&"parentNode"===u,c=r++;return e.first?function(e,t,n){for(;e=e[u];)if(1===e.nodeType||l)return a(e,t,n)}:function(e,t,n){var r,i,o,s=[N,c];if(n){for(;e=e[u];)if((1===e.nodeType||l)&&a(e,t,n))return!0}else for(;e=e[u];)if(1===e.nodeType||l){if((r=(i=(o=e[E]||(e[E]={}))[e.uniqueID]||(o[e.uniqueID]={}))[u])&&r[0]===N&&r[1]===c)return s[2]=r[2];if((i[u]=s)[2]=a(e,t,n))return!0}}}function me(i){return 1<i.length?function(e,t,n){for(var r=i.length;r--;)if(!i[r](e,t,n))return!1;return!0}:i[0]}function ye(e,t,n,r,i){for(var o,s=[],a=0,u=e.length,l=null!=t;a<u;a++)(o=e[a])&&(n&&!n(o,r,i)||(s.push(o),l&&t.push(a)));return s}function xe(d,h,g,v,m,e){return v&&!v[E]&&(v=xe(v)),m&&!m[E]&&(m=xe(m,e)),se(function(e,t,n,r){var i,o,s,a=[],u=[],l=t.length,c=e||function(e,t,n){for(var r=0,i=t.length;r<i;r++)ie(e,t[r],n);return n}(h||"*",n.nodeType?[n]:n,[]),f=!d||!e&&h?c:ye(c,a,d,n,r),p=g?m||(e?d:l||v)?[]:t:f;if(g&&g(f,p,n,r),v)for(i=ye(p,u),v(i,[],n,r),o=i.length;o--;)(s=i[o])&&(p[u[o]]=!(f[u[o]]=s));if(e){if(m||d){if(m){for(i=[],o=p.length;o--;)(s=p[o])&&i.push(f[o]=s);m(null,p=[],i,r)}for(o=p.length;o--;)(s=p[o])&&-1<(i=m?F(e,s):a[o])&&(e[i]=!(t[i]=s))}}else p=ye(p===t?p.splice(l,p.length):p),m?m(null,t,p,r):H.apply(t,p)})}function be(e){for(var i,t,n,r=e.length,o=b.relative[e[0].type],s=o||b.relative[" "],a=o?1:0,u=ve(function(e){return e===i},s,!0),l=ve(function(e){return-1<F(i,e)},s,!0),c=[function(e,t,n){var r=!o&&(n||t!==w)||((i=t).nodeType?u(e,t,n):l(e,t,n));return i=null,r}];a<r;a++)if(t=b.relative[e[a].type])c=[ve(me(c),t)];else{if((t=b.filter[e[a].type].apply(null,e[a].matches))[E]){for(n=++a;n<r&&!b.relative[e[n].type];n++);return xe(1<a&&me(c),1<a&&ge(e.slice(0,a-1).concat({value:" "===e[a-2].type?"*":""})).replace(B,"$1"),t,a<n&&be(e.slice(a,n)),n<r&&be(e=e.slice(n)),n<r&&ge(e))}c.push(t)}return me(c)}return he.prototype=b.filters=b.pseudos,b.setFilters=new he,g=ie.tokenize=function(e,t){var n,r,i,o,s,a,u,l=d[e+" "];if(l)return t?0:l.slice(0);for(s=e,a=[],u=b.preFilter;s;){for(o in n&&!(r=_.exec(s))||(r&&(s=s.slice(r[0].length)||s),a.push(i=[])),n=!1,(r=X.exec(s))&&(n=r.shift(),i.push({value:n,type:r[0].replace(B," ")}),s=s.slice(n.length)),b.filter)!(r=Y[o].exec(s))||u[o]&&!(r=u[o](r))||(n=r.shift(),i.push({value:n,type:o,matches:r}),s=s.slice(n.length));if(!n)break}return t?s.length:s?ie.error(e):d(e,a).slice(0)},f=ie.compile=function(e,t){var n,v,m,y,x,r,i=[],o=[],s=S[e+" "];if(!s){for(t||(t=g(e)),n=t.length;n--;)(s=be(t[n]))[E]?i.push(s):o.push(s);(s=S(e,(v=o,y=0<(m=i).length,x=0<v.length,r=function(e,t,n,r,i){var o,s,a,u=0,l="0",c=e&&[],f=[],p=w,d=e||x&&b.find.TAG("*",i),h=N+=null==p?1:Math.random()||.1,g=d.length;for(i&&(w=t===C||t||i);l!==g&&null!=(o=d[l]);l++){if(x&&o){for(s=0,t||o.ownerDocument===C||(T(o),n=!k);a=v[s++];)if(a(o,t||C,n)){r.push(o);break}i&&(N=h)}y&&((o=!a&&o)&&u--,e&&c.push(o))}if(u+=l,y&&l!==u){for(s=0;a=m[s++];)a(c,f,t,n);if(e){if(0<u)for(;l--;)c[l]||f[l]||(f[l]=q.call(r));f=ye(f)}H.apply(r,f),i&&!e&&0<f.length&&1<u+m.length&&ie.uniqueSort(r)}return i&&(N=h,w=p),c},y?se(r):r))).selector=e}return s},v=ie.select=function(e,t,n,r){var i,o,s,a,u,l="function"==typeof e&&e,c=!r&&g(e=l.selector||e);if(n=n||[],1===c.length){if(2<(o=c[0]=c[0].slice(0)).length&&"ID"===(s=o[0]).type&&h.getById&&9===t.nodeType&&k&&b.relative[o[1].type]){if(!(t=(b.find.ID(s.matches[0].replace(te,ne),t)||[])[0]))return n;l&&(t=t.parentNode),e=e.slice(o.shift().value.length)}for(i=Y.needsContext.test(e)?0:o.length;i--&&(s=o[i],!b.relative[a=s.type]);)if((u=b.find[a])&&(r=u(s.matches[0].replace(te,ne),Z.test(o[0].type)&&de(t.parentNode)||t))){if(o.splice(i,1),!(e=r.length&&ge(o)))return H.apply(n,r),n;break}}return(l||f(e,c))(r,t,!k,n,!t||Z.test(e)&&de(t.parentNode)||t),n},h.sortStable=E.split("").sort(j).join("")===E,h.detectDuplicates=!!l,T(),h.sortDetached=ae(function(e){return 1&e.compareDocumentPosition(C.createElement("div"))}),ae(function(e){return e.innerHTML="<a href='#'></a>","#"===e.firstChild.getAttribute("href")})||ue("type|href|height|width",function(e,t,n){if(!n)return e.getAttribute(t,"type"===t.toLowerCase()?1:2)}),h.attributes&&ae(function(e){return e.innerHTML="<input/>",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")})||ue("value",function(e,t,n){if(!n&&"input"===e.nodeName.toLowerCase())return e.defaultValue}),ae(function(e){return null==e.getAttribute("disabled")})||ue(P,function(e,t,n){var r;if(!n)return!0===e[t]?t.toLowerCase():(r=e.getAttributeNode(t))&&r.specified?r.value:null}),ie}(C);E.find=d,E.expr=d.selectors,E.expr[":"]=E.expr.pseudos,E.uniqueSort=E.unique=d.uniqueSort,E.text=d.getText,E.isXMLDoc=d.isXML,E.contains=d.contains;var m=function(e,t,n){for(var r=[],i=void 0!==n;(e=e[t])&&9!==e.nodeType;)if(1===e.nodeType){if(i&&E(e).is(n))break;r.push(e)}return r},y=function(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n},x=E.expr.match.needsContext,b=/^<([\w-]+)\s*\/?>(?:<\/\1>|)$/,w=/^.[^:#\[\.,]*$/;function T(e,n,r){if(E.isFunction(n))return E.grep(e,function(e,t){return!!n.call(e,t,e)!==r});if(n.nodeType)return E.grep(e,function(e){return e===n!==r});if("string"==typeof n){if(w.test(n))return E.filter(n,e,r);n=E.filter(n,e)}return E.grep(e,function(e){return-1<i.call(n,e)!==r})}E.filter=function(e,t,n){var r=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===r.nodeType?E.find.matchesSelector(r,e)?[r]:[]:E.find.matches(e,E.grep(t,function(e){return 1===e.nodeType}))},E.fn.extend({find:function(e){var t,n=this.length,r=[],i=this;if("string"!=typeof e)return this.pushStack(E(e).filter(function(){for(t=0;t<n;t++)if(E.contains(i[t],this))return!0}));for(t=0;t<n;t++)E.find(e,i[t],r);return(r=this.pushStack(1<n?E.unique(r):r)).selector=this.selector?this.selector+" "+e:e,r},filter:function(e){return this.pushStack(T(this,e||[],!1))},not:function(e){return this.pushStack(T(this,e||[],!0))},is:function(e){return!!T(this,"string"==typeof e&&x.test(e)?E(e):e||[],!1).length}});var N,S=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/;(E.fn.init=function(e,t,n){var r,i;if(!e)return this;if(n=n||N,"string"==typeof e){if(!(r="<"===e[0]&&">"===e[e.length-1]&&3<=e.length?[null,e,null]:S.exec(e))||!r[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(r[1]){if(t=t instanceof E?t[0]:t,E.merge(this,E.parseHTML(r[1],t&&t.nodeType?t.ownerDocument||t:k,!0)),b.test(r[1])&&E.isPlainObject(t))for(r in t)E.isFunction(this[r])?this[r](t[r]):this.attr(r,t[r]);return this}return(i=k.getElementById(r[2]))&&i.parentNode&&(this.length=1,this[0]=i),this.context=k,this.selector=e,this}return e.nodeType?(this.context=this[0]=e,this.length=1,this):E.isFunction(e)?void 0!==n.ready?n.ready(e):e(E):(void 0!==e.selector&&(this.selector=e.selector,this.context=e.context),E.makeArray(e,this))}).prototype=E.fn,N=E(k);var j=/^(?:parents|prev(?:Until|All))/,D={children:!0,contents:!0,next:!0,prev:!0};function A(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}E.fn.extend({has:function(e){var t=E(e,this),n=t.length;return this.filter(function(){for(var e=0;e<n;e++)if(E.contains(this,t[e]))return!0})},closest:function(e,t){for(var n,r=0,i=this.length,o=[],s=x.test(e)||"string"!=typeof e?E(e,t||this.context):0;r<i;r++)for(n=this[r];n&&n!==t;n=n.parentNode)if(n.nodeType<11&&(s?-1<s.index(n):1===n.nodeType&&E.find.matchesSelector(n,e))){o.push(n);break}return this.pushStack(1<o.length?E.uniqueSort(o):o)},index:function(e){return e?"string"==typeof e?i.call(E(e),this[0]):i.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(E.uniqueSort(E.merge(this.get(),E(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),E.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return m(e,"parentNode")},parentsUntil:function(e,t,n){return m(e,"parentNode",n)},next:function(e){return A(e,"nextSibling")},prev:function(e){return A(e,"previousSibling")},nextAll:function(e){return m(e,"nextSibling")},prevAll:function(e){return m(e,"previousSibling")},nextUntil:function(e,t,n){return m(e,"nextSibling",n)},prevUntil:function(e,t,n){return m(e,"previousSibling",n)},siblings:function(e){return y((e.parentNode||{}).firstChild,e)},children:function(e){return y(e.firstChild)},contents:function(e){return e.contentDocument||E.merge([],e.childNodes)}},function(r,i){E.fn[r]=function(e,t){var n=E.map(this,i,e);return"Until"!==r.slice(-5)&&(t=e),t&&"string"==typeof t&&(n=E.filter(t,n)),1<this.length&&(D[r]||E.uniqueSort(n),j.test(r)&&n.reverse()),this.pushStack(n)}});var q,L=/\S+/g;function H(){k.removeEventListener("DOMContentLoaded",H),C.removeEventListener("load",H),E.ready()}E.Callbacks=function(r){var e,n;r="string"==typeof r?(e=r,n={},E.each(e.match(L)||[],function(e,t){n[t]=!0}),n):E.extend({},r);var i,t,o,s,a=[],u=[],l=-1,c=function(){for(s=r.once,o=i=!0;u.length;l=-1)for(t=u.shift();++l<a.length;)!1===a[l].apply(t[0],t[1])&&r.stopOnFalse&&(l=a.length,t=!1);r.memory||(t=!1),i=!1,s&&(a=t?[]:"")},f={add:function(){return a&&(t&&!i&&(l=a.length-1,u.push(t)),function n(e){E.each(e,function(e,t){E.isFunction(t)?r.unique&&f.has(t)||a.push(t):t&&t.length&&"string"!==E.type(t)&&n(t)})}(arguments),t&&!i&&c()),this},remove:function(){return E.each(arguments,function(e,t){for(var n;-1<(n=E.inArray(t,a,n));)a.splice(n,1),n<=l&&l--}),this},has:function(e){return e?-1<E.inArray(e,a):0<a.length},empty:function(){return a&&(a=[]),this},disable:function(){return s=u=[],a=t="",this},disabled:function(){return!a},lock:function(){return s=u=[],t||(a=t=""),this},locked:function(){return!!s},fireWith:function(e,t){return s||(t=[e,(t=t||[]).slice?t.slice():t],u.push(t),i||c()),this},fire:function(){return f.fireWith(this,arguments),this},fired:function(){return!!o}};return f},E.extend({Deferred:function(e){var o=[["resolve","done",E.Callbacks("once memory"),"resolved"],["reject","fail",E.Callbacks("once memory"),"rejected"],["notify","progress",E.Callbacks("memory")]],i="pending",s={state:function(){return i},always:function(){return a.done(arguments).fail(arguments),this},then:function(){var i=arguments;return E.Deferred(function(r){E.each(o,function(e,t){var n=E.isFunction(i[e])&&i[e];a[t[1]](function(){var e=n&&n.apply(this,arguments);e&&E.isFunction(e.promise)?e.promise().progress(r.notify).done(r.resolve).fail(r.reject):r[t[0]+"With"](this===s?r.promise():this,n?[e]:arguments)})}),i=null}).promise()},promise:function(e){return null!=e?E.extend(e,s):s}},a={};return s.pipe=s.then,E.each(o,function(e,t){var n=t[2],r=t[3];s[t[1]]=n.add,r&&n.add(function(){i=r},o[1^e][2].disable,o[2][2].lock),a[t[0]]=function(){return a[t[0]+"With"](this===a?s:this,arguments),this},a[t[0]+"With"]=n.fireWith}),s.promise(a),e&&e.call(a,a),a},when:function(e){var i,t,n,r=0,o=c.call(arguments),s=o.length,a=1!==s||e&&E.isFunction(e.promise)?s:0,u=1===a?e:E.Deferred(),l=function(t,n,r){return function(e){n[t]=this,r[t]=1<arguments.length?c.call(arguments):e,r===i?u.notifyWith(n,r):--a||u.resolveWith(n,r)}};if(1<s)for(i=new Array(s),t=new Array(s),n=new Array(s);r<s;r++)o[r]&&E.isFunction(o[r].promise)?o[r].promise().progress(l(r,t,i)).done(l(r,n,o)).fail(u.reject):--a;return a||u.resolveWith(n,o),u.promise()}}),E.fn.ready=function(e){return E.ready.promise().done(e),this},E.extend({isReady:!1,readyWait:1,holdReady:function(e){e?E.readyWait++:E.ready(!0)},ready:function(e){(!0===e?--E.readyWait:E.isReady)||(E.isReady=!0)!==e&&0<--E.readyWait||(q.resolveWith(k,[E]),E.fn.triggerHandler&&(E(k).triggerHandler("ready"),E(k).off("ready")))}}),E.ready.promise=function(e){return q||(q=E.Deferred(),"complete"===k.readyState||"loading"!==k.readyState&&!k.documentElement.doScroll?C.setTimeout(E.ready):(k.addEventListener("DOMContentLoaded",H),C.addEventListener("load",H))),q.promise(e)},E.ready.promise();var O=function(e,t,n,r,i,o,s){var a=0,u=e.length,l=null==n;if("object"===E.type(n))for(a in i=!0,n)O(e,t,a,n[a],!0,o,s);else if(void 0!==r&&(i=!0,E.isFunction(r)||(s=!0),l&&(s?(t.call(e,r),t=null):(l=t,t=function(e,t,n){return l.call(E(e),n)})),t))for(;a<u;a++)t(e[a],n,s?r:r.call(e[a],a,t(e[a],n)));return i?e:l?t.call(e):u?t(e[0],n):o},F=function(e){return 1===e.nodeType||9===e.nodeType||!+e.nodeType};function P(){this.expando=E.expando+P.uid++}P.uid=1,P.prototype={register:function(e,t){var n=t||{};return e.nodeType?e[this.expando]=n:Object.defineProperty(e,this.expando,{value:n,writable:!0,configurable:!0}),e[this.expando]},cache:function(e){if(!F(e))return{};var t=e[this.expando];return t||(t={},F(e)&&(e.nodeType?e[this.expando]=t:Object.defineProperty(e,this.expando,{value:t,configurable:!0}))),t},set:function(e,t,n){var r,i=this.cache(e);if("string"==typeof t)i[t]=n;else for(r in t)i[r]=t[r];return i},get:function(e,t){return void 0===t?this.cache(e):e[this.expando]&&e[this.expando][t]},access:function(e,t,n){var r;return void 0===t||t&&"string"==typeof t&&void 0===n?void 0!==(r=this.get(e,t))?r:this.get(e,E.camelCase(t)):(this.set(e,t,n),void 0!==n?n:t)},remove:function(e,t){var n,r,i,o=e[this.expando];if(void 0!==o){if(void 0===t)this.register(e);else{E.isArray(t)?r=t.concat(t.map(E.camelCase)):(i=E.camelCase(t),r=t in o?[t,i]:(r=i)in o?[r]:r.match(L)||[]),n=r.length;for(;n--;)delete o[r[n]]}(void 0===t||E.isEmptyObject(o))&&(e.nodeType?e[this.expando]=void 0:delete e[this.expando])}},hasData:function(e){var t=e[this.expando];return void 0!==t&&!E.isEmptyObject(t)}};var R=new P,M=new P,I=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,W=/[A-Z]/g;function $(e,t,n){var r;if(void 0===n&&1===e.nodeType)if(r="data-"+t.replace(W,"-$&").toLowerCase(),"string"==typeof(n=e.getAttribute(r))){try{n="true"===n||"false"!==n&&("null"===n?null:+n+""===n?+n:I.test(n)?E.parseJSON(n):n)}catch(e){}M.set(e,t,n)}else n=void 0;return n}E.extend({hasData:function(e){return M.hasData(e)||R.hasData(e)},data:function(e,t,n){return M.access(e,t,n)},removeData:function(e,t){M.remove(e,t)},_data:function(e,t,n){return R.access(e,t,n)},_removeData:function(e,t){R.remove(e,t)}}),E.fn.extend({data:function(r,e){var t,n,i,o=this[0],s=o&&o.attributes;if(void 0===r){if(this.length&&(i=M.get(o),1===o.nodeType&&!R.get(o,"hasDataAttrs"))){for(t=s.length;t--;)s[t]&&0===(n=s[t].name).indexOf("data-")&&(n=E.camelCase(n.slice(5)),$(o,n,i[n]));R.set(o,"hasDataAttrs",!0)}return i}return"object"==typeof r?this.each(function(){M.set(this,r)}):O(this,function(t){var e,n;if(o&&void 0===t)return void 0!==(e=M.get(o,r)||M.get(o,r.replace(W,"-$&").toLowerCase()))?e:(n=E.camelCase(r),void 0!==(e=M.get(o,n))?e:void 0!==(e=$(o,n,void 0))?e:void 0);n=E.camelCase(r),this.each(function(){var e=M.get(this,n);M.set(this,n,t),-1<r.indexOf("-")&&void 0!==e&&M.set(this,r,t)})},null,e,1<arguments.length,null,!0)},removeData:function(e){return this.each(function(){M.remove(this,e)})}}),E.extend({queue:function(e,t,n){var r;if(e)return t=(t||"fx")+"queue",r=R.get(e,t),n&&(!r||E.isArray(n)?r=R.access(e,t,E.makeArray(n)):r.push(n)),r||[]},dequeue:function(e,t){t=t||"fx";var n=E.queue(e,t),r=n.length,i=n.shift(),o=E._queueHooks(e,t);"inprogress"===i&&(i=n.shift(),r--),i&&("fx"===t&&n.unshift("inprogress"),delete o.stop,i.call(e,function(){E.dequeue(e,t)},o)),!r&&o&&o.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return R.get(e,n)||R.access(e,n,{empty:E.Callbacks("once memory").add(function(){R.remove(e,[t+"queue",n])})})}}),E.fn.extend({queue:function(t,n){var e=2;return"string"!=typeof t&&(n=t,t="fx",e--),arguments.length<e?E.queue(this[0],t):void 0===n?this:this.each(function(){var e=E.queue(this,t,n);E._queueHooks(this,t),"fx"===t&&"inprogress"!==e[0]&&E.dequeue(this,t)})},dequeue:function(e){return this.each(function(){E.dequeue(this,e)})},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){var n,r=1,i=E.Deferred(),o=this,s=this.length,a=function(){--r||i.resolveWith(o,[o])};for("string"!=typeof e&&(t=e,e=void 0),e=e||"fx";s--;)(n=R.get(o[s],e+"queueHooks"))&&n.empty&&(r++,n.empty.add(a));return a(),i.promise(t)}});var B=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,_=new RegExp("^(?:([+-])=|)("+B+")([a-z%]*)$","i"),X=["Top","Right","Bottom","Left"],z=function(e,t){return e=t||e,"none"===E.css(e,"display")||!E.contains(e.ownerDocument,e)};function U(e,t,n,r){var i,o=1,s=20,a=r?function(){return r.cur()}:function(){return E.css(e,t,"")},u=a(),l=n&&n[3]||(E.cssNumber[t]?"":"px"),c=(E.cssNumber[t]||"px"!==l&&+u)&&_.exec(E.css(e,t));if(c&&c[3]!==l)for(l=l||c[3],n=n||[],c=+u||1;c/=o=o||".5",E.style(e,t,c+l),o!==(o=a()/u)&&1!==o&&--s;);return n&&(c=+c||+u||0,i=n[1]?c+(n[1]+1)*n[2]:+n[2],r&&(r.unit=l,r.start=c,r.end=i)),i}var V=/^(?:checkbox|radio)$/i,Y=/<([\w:-]+)/,G=/^$|\/(?:java|ecma)script/i,Q={option:[1,"<select multiple='multiple'>","</select>"],thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};function J(e,t){var n=void 0!==e.getElementsByTagName?e.getElementsByTagName(t||"*"):void 0!==e.querySelectorAll?e.querySelectorAll(t||"*"):[];return void 0===t||t&&E.nodeName(e,t)?E.merge([e],n):n}function K(e,t){for(var n=0,r=e.length;n<r;n++)R.set(e[n],"globalEval",!t||R.get(t[n],"globalEval"))}Q.optgroup=Q.option,Q.tbody=Q.tfoot=Q.colgroup=Q.caption=Q.thead,Q.th=Q.td;var Z,ee,te=/<|&#?\w+;/;function ne(e,t,n,r,i){for(var o,s,a,u,l,c,f=t.createDocumentFragment(),p=[],d=0,h=e.length;d<h;d++)if((o=e[d])||0===o)if("object"===E.type(o))E.merge(p,o.nodeType?[o]:o);else if(te.test(o)){for(s=s||f.appendChild(t.createElement("div")),a=(Y.exec(o)||["",""])[1].toLowerCase(),u=Q[a]||Q._default,s.innerHTML=u[1]+E.htmlPrefilter(o)+u[2],c=u[0];c--;)s=s.lastChild;E.merge(p,s.childNodes),(s=f.firstChild).textContent=""}else p.push(t.createTextNode(o));for(f.textContent="",d=0;o=p[d++];)if(r&&-1<E.inArray(o,r))i&&i.push(o);else if(l=E.contains(o.ownerDocument,o),s=J(f.appendChild(o),"script"),l&&K(s),n)for(c=0;o=s[c++];)G.test(o.type||"")&&n.push(o);return f}Z=k.createDocumentFragment().appendChild(k.createElement("div")),(ee=k.createElement("input")).setAttribute("type","radio"),ee.setAttribute("checked","checked"),ee.setAttribute("name","t"),Z.appendChild(ee),v.checkClone=Z.cloneNode(!0).cloneNode(!0).lastChild.checked,Z.innerHTML="<textarea>x</textarea>",v.noCloneChecked=!!Z.cloneNode(!0).lastChild.defaultValue;var re=/^key/,ie=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,oe=/^([^.]*)(?:\.(.+)|)/;function se(){return!0}function ae(){return!1}function ue(){try{return k.activeElement}catch(e){}}function le(e,t,n,r,i,o){var s,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],o);return e}if(null==r&&null==i?(i=n,r=n=void 0):null==i&&("string"==typeof n?(i=r,r=void 0):(i=r,r=n,n=void 0)),!1===i)i=ae;else if(!i)return e;return 1===o&&(s=i,(i=function(e){return E().off(e),s.apply(this,arguments)}).guid=s.guid||(s.guid=E.guid++)),e.each(function(){E.event.add(this,t,i,r,n)})}E.event={global:{},add:function(t,e,n,r,i){var o,s,a,u,l,c,f,p,d,h,g,v=R.get(t);if(v)for(n.handler&&(n=(o=n).handler,i=o.selector),n.guid||(n.guid=E.guid++),(u=v.events)||(u=v.events={}),(s=v.handle)||(s=v.handle=function(e){return void 0!==E&&E.event.triggered!==e.type?E.event.dispatch.apply(t,arguments):void 0}),l=(e=(e||"").match(L)||[""]).length;l--;)d=g=(a=oe.exec(e[l])||[])[1],h=(a[2]||"").split(".").sort(),d&&(f=E.event.special[d]||{},d=(i?f.delegateType:f.bindType)||d,f=E.event.special[d]||{},c=E.extend({type:d,origType:g,data:r,handler:n,guid:n.guid,selector:i,needsContext:i&&E.expr.match.needsContext.test(i),namespace:h.join(".")},o),(p=u[d])||((p=u[d]=[]).delegateCount=0,f.setup&&!1!==f.setup.call(t,r,h,s)||t.addEventListener&&t.addEventListener(d,s)),f.add&&(f.add.call(t,c),c.handler.guid||(c.handler.guid=n.guid)),i?p.splice(p.delegateCount++,0,c):p.push(c),E.event.global[d]=!0)},remove:function(e,t,n,r,i){var o,s,a,u,l,c,f,p,d,h,g,v=R.hasData(e)&&R.get(e);if(v&&(u=v.events)){for(l=(t=(t||"").match(L)||[""]).length;l--;)if(d=g=(a=oe.exec(t[l])||[])[1],h=(a[2]||"").split(".").sort(),d){for(f=E.event.special[d]||{},p=u[d=(r?f.delegateType:f.bindType)||d]||[],a=a[2]&&new RegExp("(^|\\.)"+h.join("\\.(?:.*\\.|)")+"(\\.|$)"),s=o=p.length;o--;)c=p[o],!i&&g!==c.origType||n&&n.guid!==c.guid||a&&!a.test(c.namespace)||r&&r!==c.selector&&("**"!==r||!c.selector)||(p.splice(o,1),c.selector&&p.delegateCount--,f.remove&&f.remove.call(e,c));s&&!p.length&&(f.teardown&&!1!==f.teardown.call(e,h,v.handle)||E.removeEvent(e,d,v.handle),delete u[d])}else for(d in u)E.event.remove(e,d+t[l],n,r,!0);E.isEmptyObject(u)&&R.remove(e,"handle events")}},dispatch:function(e){e=E.event.fix(e);var t,n,r,i,o,s,a=c.call(arguments),u=(R.get(this,"events")||{})[e.type]||[],l=E.event.special[e.type]||{};if((a[0]=e).delegateTarget=this,!l.preDispatch||!1!==l.preDispatch.call(this,e)){for(s=E.event.handlers.call(this,e,u),t=0;(i=s[t++])&&!e.isPropagationStopped();)for(e.currentTarget=i.elem,n=0;(o=i.handlers[n++])&&!e.isImmediatePropagationStopped();)e.rnamespace&&!e.rnamespace.test(o.namespace)||(e.handleObj=o,e.data=o.data,void 0!==(r=((E.event.special[o.origType]||{}).handle||o.handler).apply(i.elem,a))&&!1===(e.result=r)&&(e.preventDefault(),e.stopPropagation()));return l.postDispatch&&l.postDispatch.call(this,e),e.result}},handlers:function(e,t){var n,r,i,o,s=[],a=t.delegateCount,u=e.target;if(a&&u.nodeType&&("click"!==e.type||isNaN(e.button)||e.button<1))for(;u!==this;u=u.parentNode||this)if(1===u.nodeType&&(!0!==u.disabled||"click"!==e.type)){for(r=[],n=0;n<a;n++)void 0===r[i=(o=t[n]).selector+" "]&&(r[i]=o.needsContext?-1<E(i,this).index(u):E.find(i,this,null,[u]).length),r[i]&&r.push(o);r.length&&s.push({elem:u,handlers:r})}return a<t.length&&s.push({elem:this,handlers:t.slice(a)}),s},props:"altKey bubbles cancelable ctrlKey currentTarget detail eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),fixHooks:{},keyHooks:{props:"char charCode key keyCode".split(" "),filter:function(e,t){return null==e.which&&(e.which=null!=t.charCode?t.charCode:t.keyCode),e}},mouseHooks:{props:"button buttons clientX clientY offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(e,t){var n,r,i,o=t.button;return null==e.pageX&&null!=t.clientX&&(r=(n=e.target.ownerDocument||k).documentElement,i=n.body,e.pageX=t.clientX+(r&&r.scrollLeft||i&&i.scrollLeft||0)-(r&&r.clientLeft||i&&i.clientLeft||0),e.pageY=t.clientY+(r&&r.scrollTop||i&&i.scrollTop||0)-(r&&r.clientTop||i&&i.clientTop||0)),e.which||void 0===o||(e.which=1&o?1:2&o?3:4&o?2:0),e}},fix:function(e){if(e[E.expando])return e;var t,n,r,i=e.type,o=e,s=this.fixHooks[i];for(s||(this.fixHooks[i]=s=ie.test(i)?this.mouseHooks:re.test(i)?this.keyHooks:{}),r=s.props?this.props.concat(s.props):this.props,e=new E.Event(o),t=r.length;t--;)e[n=r[t]]=o[n];return e.target||(e.target=k),3===e.target.nodeType&&(e.target=e.target.parentNode),s.filter?s.filter(e,o):e},special:{load:{noBubble:!0},focus:{trigger:function(){if(this!==ue()&&this.focus)return this.focus(),!1},delegateType:"focusin"},blur:{trigger:function(){if(this===ue()&&this.blur)return this.blur(),!1},delegateType:"focusout"},click:{trigger:function(){if("checkbox"===this.type&&this.click&&E.nodeName(this,"input"))return this.click(),!1},_default:function(e){return E.nodeName(e.target,"a")}},beforeunload:{postDispatch:function(e){void 0!==e.result&&e.originalEvent&&(e.originalEvent.returnValue=e.result)}}}},E.removeEvent=function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n)},E.Event=function(e,t){if(!(this instanceof E.Event))return new E.Event(e,t);e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||void 0===e.defaultPrevented&&!1===e.returnValue?se:ae):this.type=e,t&&E.extend(this,t),this.timeStamp=e&&e.timeStamp||E.now(),this[E.expando]=!0},E.Event.prototype={constructor:E.Event,isDefaultPrevented:ae,isPropagationStopped:ae,isImmediatePropagationStopped:ae,isSimulated:!1,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=se,e&&!this.isSimulated&&e.preventDefault()},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=se,e&&!this.isSimulated&&e.stopPropagation()},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=se,e&&!this.isSimulated&&e.stopImmediatePropagation(),this.stopPropagation()}},E.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(e,i){E.event.special[e]={delegateType:i,bindType:i,handle:function(e){var t,n=e.relatedTarget,r=e.handleObj;return n&&(n===this||E.contains(this,n))||(e.type=r.origType,t=r.handler.apply(this,arguments),e.type=i),t}}}),E.fn.extend({on:function(e,t,n,r){return le(this,e,t,n,r)},one:function(e,t,n,r){return le(this,e,t,n,r,1)},off:function(e,t,n){var r,i;if(e&&e.preventDefault&&e.handleObj)return r=e.handleObj,E(e.delegateTarget).off(r.namespace?r.origType+"."+r.namespace:r.origType,r.selector,r.handler),this;if("object"==typeof e){for(i in e)this.off(i,t,e[i]);return this}return!1!==t&&"function"!=typeof t||(n=t,t=void 0),!1===n&&(n=ae),this.each(function(){E.event.remove(this,e,n,t)})}});var ce=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:-]+)[^>]*)\/>/gi,fe=/<script|<style|<link/i,pe=/checked\s*(?:[^=]|=\s*.checked.)/i,de=/^true\/(.*)/,he=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;function ge(e,t){return E.nodeName(e,"table")&&E.nodeName(11!==t.nodeType?t:t.firstChild,"tr")?e.getElementsByTagName("tbody")[0]||e.appendChild(e.ownerDocument.createElement("tbody")):e}function ve(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function me(e){var t=de.exec(e.type);return t?e.type=t[1]:e.removeAttribute("type"),e}function ye(e,t){var n,r,i,o,s,a,u,l;if(1===t.nodeType){if(R.hasData(e)&&(o=R.access(e),s=R.set(t,o),l=o.events))for(i in delete s.handle,s.events={},l)for(n=0,r=l[i].length;n<r;n++)E.event.add(t,i,l[i][n]);M.hasData(e)&&(a=M.access(e),u=E.extend({},a),M.set(t,u))}}function xe(n,r,i,o){r=g.apply([],r);var e,t,s,a,u,l,c=0,f=n.length,p=f-1,d=r[0],h=E.isFunction(d);if(h||1<f&&"string"==typeof d&&!v.checkClone&&pe.test(d))return n.each(function(e){var t=n.eq(e);h&&(r[0]=d.call(this,e,t.html())),xe(t,r,i,o)});if(f&&(t=(e=ne(r,n[0].ownerDocument,!1,n,o)).firstChild,1===e.childNodes.length&&(e=t),t||o)){for(a=(s=E.map(J(e,"script"),ve)).length;c<f;c++)u=e,c!==p&&(u=E.clone(u,!0,!0),a&&E.merge(s,J(u,"script"))),i.call(n[c],u,c);if(a)for(l=s[s.length-1].ownerDocument,E.map(s,me),c=0;c<a;c++)u=s[c],G.test(u.type||"")&&!R.access(u,"globalEval")&&E.contains(l,u)&&(u.src?E._evalUrl&&E._evalUrl(u.src):E.globalEval(u.textContent.replace(he,"")))}return n}function be(e,t,n){for(var r,i=t?E.filter(t,e):e,o=0;null!=(r=i[o]);o++)n||1!==r.nodeType||E.cleanData(J(r)),r.parentNode&&(n&&E.contains(r.ownerDocument,r)&&K(J(r,"script")),r.parentNode.removeChild(r));return e}E.extend({htmlPrefilter:function(e){return e.replace(ce,"<$1></$2>")},clone:function(e,t,n){var r,i,o,s,a,u,l,c=e.cloneNode(!0),f=E.contains(e.ownerDocument,e);if(!(v.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||E.isXMLDoc(e)))for(s=J(c),r=0,i=(o=J(e)).length;r<i;r++)a=o[r],u=s[r],void 0,"input"===(l=u.nodeName.toLowerCase())&&V.test(a.type)?u.checked=a.checked:"input"!==l&&"textarea"!==l||(u.defaultValue=a.defaultValue);if(t)if(n)for(o=o||J(e),s=s||J(c),r=0,i=o.length;r<i;r++)ye(o[r],s[r]);else ye(e,c);return 0<(s=J(c,"script")).length&&K(s,!f&&J(e,"script")),c},cleanData:function(e){for(var t,n,r,i=E.event.special,o=0;void 0!==(n=e[o]);o++)if(F(n)){if(t=n[R.expando]){if(t.events)for(r in t.events)i[r]?E.event.remove(n,r):E.removeEvent(n,r,t.handle);n[R.expando]=void 0}n[M.expando]&&(n[M.expando]=void 0)}}}),E.fn.extend({domManip:xe,detach:function(e){return be(this,e,!0)},remove:function(e){return be(this,e)},text:function(e){return O(this,function(e){return void 0===e?E.text(this):this.empty().each(function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=e)})},null,e,arguments.length)},append:function(){return xe(this,arguments,function(e){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||ge(this,e).appendChild(e)})},prepend:function(){return xe(this,arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=ge(this,e);t.insertBefore(e,t.firstChild)}})},before:function(){return xe(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this)})},after:function(){return xe(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)})},empty:function(){for(var e,t=0;null!=(e=this[t]);t++)1===e.nodeType&&(E.cleanData(J(e,!1)),e.textContent="");return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map(function(){return E.clone(this,e,t)})},html:function(e){return O(this,function(e){var t=this[0]||{},n=0,r=this.length;if(void 0===e&&1===t.nodeType)return t.innerHTML;if("string"==typeof e&&!fe.test(e)&&!Q[(Y.exec(e)||["",""])[1].toLowerCase()]){e=E.htmlPrefilter(e);try{for(;n<r;n++)1===(t=this[n]||{}).nodeType&&(E.cleanData(J(t,!1)),t.innerHTML=e);t=0}catch(e){}}t&&this.empty().append(e)},null,e,arguments.length)},replaceWith:function(){var n=[];return xe(this,arguments,function(e){var t=this.parentNode;E.inArray(this,n)<0&&(E.cleanData(J(this)),t&&t.replaceChild(e,this))},n)}}),E.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(e,s){E.fn[e]=function(e){for(var t,n=[],r=E(e),i=r.length-1,o=0;o<=i;o++)t=o===i?this:this.clone(!0),E(r[o])[s](t),a.apply(n,t.get());return this.pushStack(n)}});var we,Te={HTML:"block",BODY:"block"};function Ce(e,t){var n=E(t.createElement(e)).appendTo(t.body),r=E.css(n[0],"display");return n.detach(),r}function ke(e){var t=k,n=Te[e];return n||("none"!==(n=Ce(e,t))&&n||((t=(we=(we||E("<iframe frameborder='0' width='0' height='0'/>")).appendTo(t.documentElement))[0].contentDocument).write(),t.close(),n=Ce(e,t),we.detach()),Te[e]=n),n}var Ee=/^margin/,Ne=new RegExp("^("+B+")(?!px)[a-z%]+$","i"),Se=function(e){var t=e.ownerDocument.defaultView;return t&&t.opener||(t=C),t.getComputedStyle(e)},je=function(e,t,n,r){var i,o,s={};for(o in t)s[o]=e.style[o],e.style[o]=t[o];for(o in i=n.apply(e,r||[]),t)e.style[o]=s[o];return i},De=k.documentElement;function Ae(e,t,n){var r,i,o,s,a=e.style;return""!==(s=(n=n||Se(e))?n.getPropertyValue(t)||n[t]:void 0)&&void 0!==s||E.contains(e.ownerDocument,e)||(s=E.style(e,t)),n&&!v.pixelMarginRight()&&Ne.test(s)&&Ee.test(t)&&(r=a.width,i=a.minWidth,o=a.maxWidth,a.minWidth=a.maxWidth=a.width=s,s=n.width,a.width=r,a.minWidth=i,a.maxWidth=o),void 0!==s?s+"":s}function qe(e,t){return{get:function(){if(!e())return(this.get=t).apply(this,arguments);delete this.get}}}!function(){var t,n,r,i,o=k.createElement("div"),s=k.createElement("div");function e(){s.style.cssText="-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;position:relative;display:block;margin:auto;border:1px;padding:1px;top:1%;width:50%",s.innerHTML="",De.appendChild(o);var e=C.getComputedStyle(s);t="1%"!==e.top,i="2px"===e.marginLeft,n="4px"===e.width,s.style.marginRight="50%",r="4px"===e.marginRight,De.removeChild(o)}s.style&&(s.style.backgroundClip="content-box",s.cloneNode(!0).style.backgroundClip="",v.clearCloneStyle="content-box"===s.style.backgroundClip,o.style.cssText="border:0;width:8px;height:0;top:0;left:-9999px;padding:0;margin-top:1px;position:absolute",o.appendChild(s),E.extend(v,{pixelPosition:function(){return e(),t},boxSizingReliable:function(){return null==n&&e(),n},pixelMarginRight:function(){return null==n&&e(),r},reliableMarginLeft:function(){return null==n&&e(),i},reliableMarginRight:function(){var e,t=s.appendChild(k.createElement("div"));return t.style.cssText=s.style.cssText="-webkit-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:0",t.style.marginRight=t.style.width="0",s.style.width="1px",De.appendChild(o),e=!parseFloat(C.getComputedStyle(t).marginRight),De.removeChild(o),s.removeChild(t),e}}))}();var Le=/^(none|table(?!-c[ea]).+)/,He={position:"absolute",visibility:"hidden",display:"block"},Oe={letterSpacing:"0",fontWeight:"400"},Fe=["Webkit","O","Moz","ms"],Pe=k.createElement("div").style;function Re(e){if(e in Pe)return e;for(var t=e[0].toUpperCase()+e.slice(1),n=Fe.length;n--;)if((e=Fe[n]+t)in Pe)return e}function Me(e,t,n){var r=_.exec(t);return r?Math.max(0,r[2]-(n||0))+(r[3]||"px"):t}function Ie(e,t,n,r,i){for(var o=n===(r?"border":"content")?4:"width"===t?1:0,s=0;o<4;o+=2)"margin"===n&&(s+=E.css(e,n+X[o],!0,i)),r?("content"===n&&(s-=E.css(e,"padding"+X[o],!0,i)),"margin"!==n&&(s-=E.css(e,"border"+X[o]+"Width",!0,i))):(s+=E.css(e,"padding"+X[o],!0,i),"padding"!==n&&(s+=E.css(e,"border"+X[o]+"Width",!0,i)));return s}function We(e,t,n){var r=!0,i="width"===t?e.offsetWidth:e.offsetHeight,o=Se(e),s="border-box"===E.css(e,"boxSizing",!1,o);if(i<=0||null==i){if(((i=Ae(e,t,o))<0||null==i)&&(i=e.style[t]),Ne.test(i))return i;r=s&&(v.boxSizingReliable()||i===e.style[t]),i=parseFloat(i)||0}return i+Ie(e,t,n||(s?"border":"content"),r,o)+"px"}function $e(e,t){for(var n,r,i,o=[],s=0,a=e.length;s<a;s++)(r=e[s]).style&&(o[s]=R.get(r,"olddisplay"),n=r.style.display,t?(o[s]||"none"!==n||(r.style.display=""),""===r.style.display&&z(r)&&(o[s]=R.access(r,"olddisplay",ke(r.nodeName)))):(i=z(r),"none"===n&&i||R.set(r,"olddisplay",i?n:E.css(r,"display"))));for(s=0;s<a;s++)(r=e[s]).style&&(t&&"none"!==r.style.display&&""!==r.style.display||(r.style.display=t?o[s]||"":"none"));return e}function Be(e,t,n,r,i){return new Be.prototype.init(e,t,n,r,i)}E.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=Ae(e,"opacity");return""===n?"1":n}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{float:"cssFloat"},style:function(e,t,n,r){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var i,o,s,a=E.camelCase(t),u=e.style;if(t=E.cssProps[a]||(E.cssProps[a]=Re(a)||a),s=E.cssHooks[t]||E.cssHooks[a],void 0===n)return s&&"get"in s&&void 0!==(i=s.get(e,!1,r))?i:u[t];"string"===(o=typeof n)&&(i=_.exec(n))&&i[1]&&(n=U(e,t,i),o="number"),null!=n&&n==n&&("number"===o&&(n+=i&&i[3]||(E.cssNumber[a]?"":"px")),v.clearCloneStyle||""!==n||0!==t.indexOf("background")||(u[t]="inherit"),s&&"set"in s&&void 0===(n=s.set(e,n,r))||(u[t]=n))}},css:function(e,t,n,r){var i,o,s,a=E.camelCase(t);return t=E.cssProps[a]||(E.cssProps[a]=Re(a)||a),(s=E.cssHooks[t]||E.cssHooks[a])&&"get"in s&&(i=s.get(e,!0,n)),void 0===i&&(i=Ae(e,t,r)),"normal"===i&&t in Oe&&(i=Oe[t]),""===n||n?(o=parseFloat(i),!0===n||isFinite(o)?o||0:i):i}}),E.each(["height","width"],function(e,s){E.cssHooks[s]={get:function(e,t,n){if(t)return Le.test(E.css(e,"display"))&&0===e.offsetWidth?je(e,He,function(){return We(e,s,n)}):We(e,s,n)},set:function(e,t,n){var r,i=n&&Se(e),o=n&&Ie(e,s,n,"border-box"===E.css(e,"boxSizing",!1,i),i);return o&&(r=_.exec(t))&&"px"!==(r[3]||"px")&&(e.style[s]=t,t=E.css(e,s)),Me(0,t,o)}}}),E.cssHooks.marginLeft=qe(v.reliableMarginLeft,function(e,t){if(t)return(parseFloat(Ae(e,"marginLeft"))||e.getBoundingClientRect().left-je(e,{marginLeft:0},function(){return e.getBoundingClientRect().left}))+"px"}),E.cssHooks.marginRight=qe(v.reliableMarginRight,function(e,t){if(t)return je(e,{display:"inline-block"},Ae,[e,"marginRight"])}),E.each({margin:"",padding:"",border:"Width"},function(i,o){E.cssHooks[i+o]={expand:function(e){for(var t=0,n={},r="string"==typeof e?e.split(" "):[e];t<4;t++)n[i+X[t]+o]=r[t]||r[t-2]||r[0];return n}},Ee.test(i)||(E.cssHooks[i+o].set=Me)}),E.fn.extend({css:function(e,t){return O(this,function(e,t,n){var r,i,o={},s=0;if(E.isArray(t)){for(r=Se(e),i=t.length;s<i;s++)o[t[s]]=E.css(e,t[s],!1,r);return o}return void 0!==n?E.style(e,t,n):E.css(e,t)},e,t,1<arguments.length)},show:function(){return $e(this,!0)},hide:function(){return $e(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each(function(){z(this)?E(this).show():E(this).hide()})}}),((E.Tween=Be).prototype={constructor:Be,init:function(e,t,n,r,i,o){this.elem=e,this.prop=n,this.easing=i||E.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=r,this.unit=o||(E.cssNumber[n]?"":"px")},cur:function(){var e=Be.propHooks[this.prop];return e&&e.get?e.get(this):Be.propHooks._default.get(this)},run:function(e){var t,n=Be.propHooks[this.prop];return this.options.duration?this.pos=t=E.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):this.pos=t=e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):Be.propHooks._default.set(this),this}}).init.prototype=Be.prototype,(Be.propHooks={_default:{get:function(e){var t;return 1!==e.elem.nodeType||null!=e.elem[e.prop]&&null==e.elem.style[e.prop]?e.elem[e.prop]:(t=E.css(e.elem,e.prop,""))&&"auto"!==t?t:0},set:function(e){E.fx.step[e.prop]?E.fx.step[e.prop](e):1!==e.elem.nodeType||null==e.elem.style[E.cssProps[e.prop]]&&!E.cssHooks[e.prop]?e.elem[e.prop]=e.now:E.style(e.elem,e.prop,e.now+e.unit)}}}).scrollTop=Be.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},E.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},_default:"swing"},E.fx=Be.prototype.init,E.fx.step={};var _e,Xe,ze,Ue,Ve,Ye=/^(?:toggle|show|hide)$/,Ge=/queueHooks$/;function Qe(){return C.setTimeout(function(){_e=void 0}),_e=E.now()}function Je(e,t){var n,r=0,i={height:e};for(t=t?1:0;r<4;r+=2-t)i["margin"+(n=X[r])]=i["padding"+n]=e;return t&&(i.opacity=i.width=e),i}function Ke(e,t,n){for(var r,i=(Ze.tweeners[t]||[]).concat(Ze.tweeners["*"]),o=0,s=i.length;o<s;o++)if(r=i[o].call(n,t,e))return r}function Ze(o,e,t){var n,s,r=0,i=Ze.prefilters.length,a=E.Deferred().always(function(){delete u.elem}),u=function(){if(s)return!1;for(var e=_e||Qe(),t=Math.max(0,l.startTime+l.duration-e),n=1-(t/l.duration||0),r=0,i=l.tweens.length;r<i;r++)l.tweens[r].run(n);return a.notifyWith(o,[l,n,t]),n<1&&i?t:(a.resolveWith(o,[l]),!1)},l=a.promise({elem:o,props:E.extend({},e),opts:E.extend(!0,{specialEasing:{},easing:E.easing._default},t),originalProperties:e,originalOptions:t,startTime:_e||Qe(),duration:t.duration,tweens:[],createTween:function(e,t){var n=E.Tween(o,l.opts,e,t,l.opts.specialEasing[e]||l.opts.easing);return l.tweens.push(n),n},stop:function(e){var t=0,n=e?l.tweens.length:0;if(s)return this;for(s=!0;t<n;t++)l.tweens[t].run(1);return e?(a.notifyWith(o,[l,1,0]),a.resolveWith(o,[l,e])):a.rejectWith(o,[l,e]),this}}),c=l.props;for(!function(e,t){var n,r,i,o,s;for(n in e)if(i=t[r=E.camelCase(n)],o=e[n],E.isArray(o)&&(i=o[1],o=e[n]=o[0]),n!==r&&(e[r]=o,delete e[n]),(s=E.cssHooks[r])&&"expand"in s)for(n in o=s.expand(o),delete e[r],o)n in e||(e[n]=o[n],t[n]=i);else t[r]=i}(c,l.opts.specialEasing);r<i;r++)if(n=Ze.prefilters[r].call(l,o,c,l.opts))return E.isFunction(n.stop)&&(E._queueHooks(l.elem,l.opts.queue).stop=E.proxy(n.stop,n)),n;return E.map(c,Ke,l),E.isFunction(l.opts.start)&&l.opts.start.call(o,l),E.fx.timer(E.extend(u,{elem:o,anim:l,queue:l.opts.queue})),l.progress(l.opts.progress).done(l.opts.done,l.opts.complete).fail(l.opts.fail).always(l.opts.always)}E.Animation=E.extend(Ze,{tweeners:{"*":[function(e,t){var n=this.createTween(e,t);return U(n.elem,e,_.exec(t),n),n}]},tweener:function(e,t){E.isFunction(e)?(t=e,e=["*"]):e=e.match(L);for(var n,r=0,i=e.length;r<i;r++)n=e[r],Ze.tweeners[n]=Ze.tweeners[n]||[],Ze.tweeners[n].unshift(t)},prefilters:[function(t,e,n){var r,i,o,s,a,u,l,c=this,f={},p=t.style,d=t.nodeType&&z(t),h=R.get(t,"fxshow");for(r in n.queue||(null==(a=E._queueHooks(t,"fx")).unqueued&&(a.unqueued=0,u=a.empty.fire,a.empty.fire=function(){a.unqueued||u()}),a.unqueued++,c.always(function(){c.always(function(){a.unqueued--,E.queue(t,"fx").length||a.empty.fire()})})),1===t.nodeType&&("height"in e||"width"in e)&&(n.overflow=[p.overflow,p.overflowX,p.overflowY],"inline"===("none"===(l=E.css(t,"display"))?R.get(t,"olddisplay")||ke(t.nodeName):l)&&"none"===E.css(t,"float")&&(p.display="inline-block")),n.overflow&&(p.overflow="hidden",c.always(function(){p.overflow=n.overflow[0],p.overflowX=n.overflow[1],p.overflowY=n.overflow[2]})),e)if(i=e[r],Ye.exec(i)){if(delete e[r],o=o||"toggle"===i,i===(d?"hide":"show")){if("show"!==i||!h||void 0===h[r])continue;d=!0}f[r]=h&&h[r]||E.style(t,r)}else l=void 0;if(E.isEmptyObject(f))"inline"===("none"===l?ke(t.nodeName):l)&&(p.display=l);else for(r in h?"hidden"in h&&(d=h.hidden):h=R.access(t,"fxshow",{}),o&&(h.hidden=!d),d?E(t).show():c.done(function(){E(t).hide()}),c.done(function(){var e;for(e in R.remove(t,"fxshow"),f)E.style(t,e,f[e])}),f)s=Ke(d?h[r]:0,r,c),r in h||(h[r]=s.start,d&&(s.end=s.start,s.start="width"===r||"height"===r?1:0))}],prefilter:function(e,t){t?Ze.prefilters.unshift(e):Ze.prefilters.push(e)}}),E.speed=function(e,t,n){var r=e&&"object"==typeof e?E.extend({},e):{complete:n||!n&&t||E.isFunction(e)&&e,duration:e,easing:n&&t||t&&!E.isFunction(t)&&t};return r.duration=E.fx.off?0:"number"==typeof r.duration?r.duration:r.duration in E.fx.speeds?E.fx.speeds[r.duration]:E.fx.speeds._default,null!=r.queue&&!0!==r.queue||(r.queue="fx"),r.old=r.complete,r.complete=function(){E.isFunction(r.old)&&r.old.call(this),r.queue&&E.dequeue(this,r.queue)},r},E.fn.extend({fadeTo:function(e,t,n,r){return this.filter(z).css("opacity",0).show().end().animate({opacity:t},e,n,r)},animate:function(t,e,n,r){var i=E.isEmptyObject(t),o=E.speed(e,n,r),s=function(){var e=Ze(this,E.extend({},t),o);(i||R.get(this,"finish"))&&e.stop(!0)};return s.finish=s,i||!1===o.queue?this.each(s):this.queue(o.queue,s)},stop:function(i,e,o){var s=function(e){var t=e.stop;delete e.stop,t(o)};return"string"!=typeof i&&(o=e,e=i,i=void 0),e&&!1!==i&&this.queue(i||"fx",[]),this.each(function(){var e=!0,t=null!=i&&i+"queueHooks",n=E.timers,r=R.get(this);if(t)r[t]&&r[t].stop&&s(r[t]);else for(t in r)r[t]&&r[t].stop&&Ge.test(t)&&s(r[t]);for(t=n.length;t--;)n[t].elem!==this||null!=i&&n[t].queue!==i||(n[t].anim.stop(o),e=!1,n.splice(t,1));!e&&o||E.dequeue(this,i)})},finish:function(s){return!1!==s&&(s=s||"fx"),this.each(function(){var e,t=R.get(this),n=t[s+"queue"],r=t[s+"queueHooks"],i=E.timers,o=n?n.length:0;for(t.finish=!0,E.queue(this,s,[]),r&&r.stop&&r.stop.call(this,!0),e=i.length;e--;)i[e].elem===this&&i[e].queue===s&&(i[e].anim.stop(!0),i.splice(e,1));for(e=0;e<o;e++)n[e]&&n[e].finish&&n[e].finish.call(this);delete t.finish})}}),E.each(["toggle","show","hide"],function(e,r){var i=E.fn[r];E.fn[r]=function(e,t,n){return null==e||"boolean"==typeof e?i.apply(this,arguments):this.animate(Je(r,!0),e,t,n)}}),E.each({slideDown:Je("show"),slideUp:Je("hide"),slideToggle:Je("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(e,r){E.fn[e]=function(e,t,n){return this.animate(r,e,t,n)}}),E.timers=[],E.fx.tick=function(){var e,t=0,n=E.timers;for(_e=E.now();t<n.length;t++)(e=n[t])()||n[t]!==e||n.splice(t--,1);n.length||E.fx.stop(),_e=void 0},E.fx.timer=function(e){E.timers.push(e),e()?E.fx.start():E.timers.pop()},E.fx.interval=13,E.fx.start=function(){Xe||(Xe=C.setInterval(E.fx.tick,E.fx.interval))},E.fx.stop=function(){C.clearInterval(Xe),Xe=null},E.fx.speeds={slow:600,fast:200,_default:400},E.fn.delay=function(r,e){return r=E.fx&&E.fx.speeds[r]||r,e=e||"fx",this.queue(e,function(e,t){var n=C.setTimeout(e,r);t.stop=function(){C.clearTimeout(n)}})},ze=k.createElement("input"),Ue=k.createElement("select"),Ve=Ue.appendChild(k.createElement("option")),ze.type="checkbox",v.checkOn=""!==ze.value,v.optSelected=Ve.selected,Ue.disabled=!0,v.optDisabled=!Ve.disabled,(ze=k.createElement("input")).value="t",ze.type="radio",v.radioValue="t"===ze.value;var et,tt=E.expr.attrHandle;E.fn.extend({attr:function(e,t){return O(this,E.attr,e,t,1<arguments.length)},removeAttr:function(e){return this.each(function(){E.removeAttr(this,e)})}}),E.extend({attr:function(e,t,n){var r,i,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return void 0===e.getAttribute?E.prop(e,t,n):(1===o&&E.isXMLDoc(e)||(t=t.toLowerCase(),i=E.attrHooks[t]||(E.expr.match.bool.test(t)?et:void 0)),void 0!==n?null===n?void E.removeAttr(e,t):i&&"set"in i&&void 0!==(r=i.set(e,n,t))?r:(e.setAttribute(t,n+""),n):i&&"get"in i&&null!==(r=i.get(e,t))?r:null==(r=E.find.attr(e,t))?void 0:r)},attrHooks:{type:{set:function(e,t){if(!v.radioValue&&"radio"===t&&E.nodeName(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}}},removeAttr:function(e,t){var n,r,i=0,o=t&&t.match(L);if(o&&1===e.nodeType)for(;n=o[i++];)r=E.propFix[n]||n,E.expr.match.bool.test(n)&&(e[r]=!1),e.removeAttribute(n)}}),et={set:function(e,t,n){return!1===t?E.removeAttr(e,n):e.setAttribute(n,n),n}},E.each(E.expr.match.bool.source.match(/\w+/g),function(e,t){var o=tt[t]||E.find.attr;tt[t]=function(e,t,n){var r,i;return n||(i=tt[t],tt[t]=r,r=null!=o(e,t,n)?t.toLowerCase():null,tt[t]=i),r}});var nt=/^(?:input|select|textarea|button)$/i,rt=/^(?:a|area)$/i;E.fn.extend({prop:function(e,t){return O(this,E.prop,e,t,1<arguments.length)},removeProp:function(e){return this.each(function(){delete this[E.propFix[e]||e]})}}),E.extend({prop:function(e,t,n){var r,i,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return 1===o&&E.isXMLDoc(e)||(t=E.propFix[t]||t,i=E.propHooks[t]),void 0!==n?i&&"set"in i&&void 0!==(r=i.set(e,n,t))?r:e[t]=n:i&&"get"in i&&null!==(r=i.get(e,t))?r:e[t]},propHooks:{tabIndex:{get:function(e){var t=E.find.attr(e,"tabindex");return t?parseInt(t,10):nt.test(e.nodeName)||rt.test(e.nodeName)&&e.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),v.optSelected||(E.propHooks.selected={get:function(e){var t=e.parentNode;return t&&t.parentNode&&t.parentNode.selectedIndex,null},set:function(e){var t=e.parentNode;t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex)}}),E.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){E.propFix[this.toLowerCase()]=this});var it=/[\t\r\n\f]/g;function ot(e){return e.getAttribute&&e.getAttribute("class")||""}E.fn.extend({addClass:function(t){var e,n,r,i,o,s,a,u=0;if(E.isFunction(t))return this.each(function(e){E(this).addClass(t.call(this,e,ot(this)))});if("string"==typeof t&&t)for(e=t.match(L)||[];n=this[u++];)if(i=ot(n),r=1===n.nodeType&&(" "+i+" ").replace(it," ")){for(s=0;o=e[s++];)r.indexOf(" "+o+" ")<0&&(r+=o+" ");i!==(a=E.trim(r))&&n.setAttribute("class",a)}return this},removeClass:function(t){var e,n,r,i,o,s,a,u=0;if(E.isFunction(t))return this.each(function(e){E(this).removeClass(t.call(this,e,ot(this)))});if(!arguments.length)return this.attr("class","");if("string"==typeof t&&t)for(e=t.match(L)||[];n=this[u++];)if(i=ot(n),r=1===n.nodeType&&(" "+i+" ").replace(it," ")){for(s=0;o=e[s++];)for(;-1<r.indexOf(" "+o+" ");)r=r.replace(" "+o+" "," ");i!==(a=E.trim(r))&&n.setAttribute("class",a)}return this},toggleClass:function(i,t){var o=typeof i;return"boolean"==typeof t&&"string"===o?t?this.addClass(i):this.removeClass(i):E.isFunction(i)?this.each(function(e){E(this).toggleClass(i.call(this,e,ot(this),t),t)}):this.each(function(){var e,t,n,r;if("string"===o)for(t=0,n=E(this),r=i.match(L)||[];e=r[t++];)n.hasClass(e)?n.removeClass(e):n.addClass(e);else void 0!==i&&"boolean"!==o||((e=ot(this))&&R.set(this,"__className__",e),this.setAttribute&&this.setAttribute("class",e||!1===i?"":R.get(this,"__className__")||""))})},hasClass:function(e){var t,n,r=0;for(t=" "+e+" ";n=this[r++];)if(1===n.nodeType&&-1<(" "+ot(n)+" ").replace(it," ").indexOf(t))return!0;return!1}});var st=/\r/g,at=/[\x20\t\r\n\f]+/g;E.fn.extend({val:function(n){var r,e,i,t=this[0];return arguments.length?(i=E.isFunction(n),this.each(function(e){var t;1===this.nodeType&&(null==(t=i?n.call(this,e,E(this).val()):n)?t="":"number"==typeof t?t+="":E.isArray(t)&&(t=E.map(t,function(e){return null==e?"":e+""})),(r=E.valHooks[this.type]||E.valHooks[this.nodeName.toLowerCase()])&&"set"in r&&void 0!==r.set(this,t,"value")||(this.value=t))})):t?(r=E.valHooks[t.type]||E.valHooks[t.nodeName.toLowerCase()])&&"get"in r&&void 0!==(e=r.get(t,"value"))?e:"string"==typeof(e=t.value)?e.replace(st,""):null==e?"":e:void 0}}),E.extend({valHooks:{option:{get:function(e){var t=E.find.attr(e,"value");return null!=t?t:E.trim(E.text(e)).replace(at," ")}},select:{get:function(e){for(var t,n,r=e.options,i=e.selectedIndex,o="select-one"===e.type||i<0,s=o?null:[],a=o?i+1:r.length,u=i<0?a:o?i:0;u<a;u++)if(((n=r[u]).selected||u===i)&&(v.optDisabled?!n.disabled:null===n.getAttribute("disabled"))&&(!n.parentNode.disabled||!E.nodeName(n.parentNode,"optgroup"))){if(t=E(n).val(),o)return t;s.push(t)}return s},set:function(e,t){for(var n,r,i=e.options,o=E.makeArray(t),s=i.length;s--;)((r=i[s]).selected=-1<E.inArray(E.valHooks.option.get(r),o))&&(n=!0);return n||(e.selectedIndex=-1),o}}}}),E.each(["radio","checkbox"],function(){E.valHooks[this]={set:function(e,t){if(E.isArray(t))return e.checked=-1<E.inArray(E(e).val(),t)}},v.checkOn||(E.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})});var ut=/^(?:focusinfocus|focusoutblur)$/;E.extend(E.event,{trigger:function(e,t,n,r){var i,o,s,a,u,l,c,f=[n||k],p=h.call(e,"type")?e.type:e,d=h.call(e,"namespace")?e.namespace.split("."):[];if(o=s=n=n||k,3!==n.nodeType&&8!==n.nodeType&&!ut.test(p+E.event.triggered)&&(-1<p.indexOf(".")&&(p=(d=p.split(".")).shift(),d.sort()),u=p.indexOf(":")<0&&"on"+p,(e=e[E.expando]?e:new E.Event(p,"object"==typeof e&&e)).isTrigger=r?2:3,e.namespace=d.join("."),e.rnamespace=e.namespace?new RegExp("(^|\\.)"+d.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,e.result=void 0,e.target||(e.target=n),t=null==t?[e]:E.makeArray(t,[e]),c=E.event.special[p]||{},r||!c.trigger||!1!==c.trigger.apply(n,t))){if(!r&&!c.noBubble&&!E.isWindow(n)){for(a=c.delegateType||p,ut.test(a+p)||(o=o.parentNode);o;o=o.parentNode)f.push(o),s=o;s===(n.ownerDocument||k)&&f.push(s.defaultView||s.parentWindow||C)}for(i=0;(o=f[i++])&&!e.isPropagationStopped();)e.type=1<i?a:c.bindType||p,(l=(R.get(o,"events")||{})[e.type]&&R.get(o,"handle"))&&l.apply(o,t),(l=u&&o[u])&&l.apply&&F(o)&&(e.result=l.apply(o,t),!1===e.result&&e.preventDefault());return e.type=p,r||e.isDefaultPrevented()||c._default&&!1!==c._default.apply(f.pop(),t)||!F(n)||u&&E.isFunction(n[p])&&!E.isWindow(n)&&((s=n[u])&&(n[u]=null),n[E.event.triggered=p](),E.event.triggered=void 0,s&&(n[u]=s)),e.result}},simulate:function(e,t,n){var r=E.extend(new E.Event,n,{type:e,isSimulated:!0});E.event.trigger(r,null,t)}}),E.fn.extend({trigger:function(e,t){return this.each(function(){E.event.trigger(e,t,this)})},triggerHandler:function(e,t){var n=this[0];if(n)return E.event.trigger(e,t,n,!0)}}),E.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error contextmenu".split(" "),function(e,n){E.fn[n]=function(e,t){return 0<arguments.length?this.on(n,null,e,t):this.trigger(n)}}),E.fn.extend({hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)}}),v.focusin="onfocusin"in C,v.focusin||E.each({focus:"focusin",blur:"focusout"},function(n,r){var i=function(e){E.event.simulate(r,e.target,E.event.fix(e))};E.event.special[r]={setup:function(){var e=this.ownerDocument||this,t=R.access(e,r);t||e.addEventListener(n,i,!0),R.access(e,r,(t||0)+1)},teardown:function(){var e=this.ownerDocument||this,t=R.access(e,r)-1;t?R.access(e,r,t):(e.removeEventListener(n,i,!0),R.remove(e,r))}}});var lt=C.location,ct=E.now(),ft=/\?/;E.parseJSON=function(e){return JSON.parse(e+"")},E.parseXML=function(e){var t;if(!e||"string"!=typeof e)return null;try{t=(new C.DOMParser).parseFromString(e,"text/xml")}catch(e){t=void 0}return t&&!t.getElementsByTagName("parsererror").length||E.error("Invalid XML: "+e),t};var pt=/#.*$/,dt=/([?&])_=[^&]*/,ht=/^(.*?):[ \t]*([^\r\n]*)$/gm,gt=/^(?:GET|HEAD)$/,vt=/^\/\//,mt={},yt={},xt="*/".concat("*"),bt=k.createElement("a");function wt(o){return function(e,t){"string"!=typeof e&&(t=e,e="*");var n,r=0,i=e.toLowerCase().match(L)||[];if(E.isFunction(t))for(;n=i[r++];)"+"===n[0]?(n=n.slice(1)||"*",(o[n]=o[n]||[]).unshift(t)):(o[n]=o[n]||[]).push(t)}}function Tt(t,i,o,s){var a={},u=t===yt;function l(e){var r;return a[e]=!0,E.each(t[e]||[],function(e,t){var n=t(i,o,s);return"string"!=typeof n||u||a[n]?u?!(r=n):void 0:(i.dataTypes.unshift(n),l(n),!1)}),r}return l(i.dataTypes[0])||!a["*"]&&l("*")}function Ct(e,t){var n,r,i=E.ajaxSettings.flatOptions||{};for(n in t)void 0!==t[n]&&((i[n]?e:r||(r={}))[n]=t[n]);return r&&E.extend(!0,e,r),e}bt.href=lt.href,E.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:lt.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(lt.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":xt,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":E.parseJSON,"text xml":E.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?Ct(Ct(e,E.ajaxSettings),t):Ct(E.ajaxSettings,e)},ajaxPrefilter:wt(mt),ajaxTransport:wt(yt),ajax:function(e,t){"object"==typeof e&&(t=e,e=void 0),t=t||{};var c,f,p,n,d,r,h,i,g=E.ajaxSetup({},t),v=g.context||g,m=g.context&&(v.nodeType||v.jquery)?E(v):E.event,y=E.Deferred(),x=E.Callbacks("once memory"),b=g.statusCode||{},o={},s={},w=0,a="canceled",T={readyState:0,getResponseHeader:function(e){var t;if(2===w){if(!n)for(n={};t=ht.exec(p);)n[t[1].toLowerCase()]=t[2];t=n[e.toLowerCase()]}return null==t?null:t},getAllResponseHeaders:function(){return 2===w?p:null},setRequestHeader:function(e,t){var n=e.toLowerCase();return w||(e=s[n]=s[n]||e,o[e]=t),this},overrideMimeType:function(e){return w||(g.mimeType=e),this},statusCode:function(e){var t;if(e)if(w<2)for(t in e)b[t]=[b[t],e[t]];else T.always(e[T.status]);return this},abort:function(e){var t=e||a;return c&&c.abort(t),u(0,t),this}};if(y.promise(T).complete=x.add,T.success=T.done,T.error=T.fail,g.url=((e||g.url||lt.href)+"").replace(pt,"").replace(vt,lt.protocol+"//"),g.type=t.method||t.type||g.method||g.type,g.dataTypes=E.trim(g.dataType||"*").toLowerCase().match(L)||[""],null==g.crossDomain){r=k.createElement("a");try{r.href=g.url,r.href=r.href,g.crossDomain=bt.protocol+"//"+bt.host!=r.protocol+"//"+r.host}catch(e){g.crossDomain=!0}}if(g.data&&g.processData&&"string"!=typeof g.data&&(g.data=E.param(g.data,g.traditional)),Tt(mt,g,t,T),2===w)return T;for(i in(h=E.event&&g.global)&&0==E.active++&&E.event.trigger("ajaxStart"),g.type=g.type.toUpperCase(),g.hasContent=!gt.test(g.type),f=g.url,g.hasContent||(g.data&&(f=g.url+=(ft.test(f)?"&":"?")+g.data,delete g.data),!1===g.cache&&(g.url=dt.test(f)?f.replace(dt,"$1_="+ct++):f+(ft.test(f)?"&":"?")+"_="+ct++)),g.ifModified&&(E.lastModified[f]&&T.setRequestHeader("If-Modified-Since",E.lastModified[f]),E.etag[f]&&T.setRequestHeader("If-None-Match",E.etag[f])),(g.data&&g.hasContent&&!1!==g.contentType||t.contentType)&&T.setRequestHeader("Content-Type",g.contentType),T.setRequestHeader("Accept",g.dataTypes[0]&&g.accepts[g.dataTypes[0]]?g.accepts[g.dataTypes[0]]+("*"!==g.dataTypes[0]?", "+xt+"; q=0.01":""):g.accepts["*"]),g.headers)T.setRequestHeader(i,g.headers[i]);if(g.beforeSend&&(!1===g.beforeSend.call(v,T,g)||2===w))return T.abort();for(i in a="abort",{success:1,error:1,complete:1})T[i](g[i]);if(c=Tt(yt,g,t,T)){if(T.readyState=1,h&&m.trigger("ajaxSend",[T,g]),2===w)return T;g.async&&0<g.timeout&&(d=C.setTimeout(function(){T.abort("timeout")},g.timeout));try{w=1,c.send(o,u)}catch(e){if(!(w<2))throw e;u(-1,e)}}else u(-1,"No Transport");function u(e,t,n,r){var i,o,s,a,u,l=t;2!==w&&(w=2,d&&C.clearTimeout(d),c=void 0,p=r||"",T.readyState=0<e?4:0,i=200<=e&&e<300||304===e,n&&(a=function(e,t,n){for(var r,i,o,s,a=e.contents,u=e.dataTypes;"*"===u[0];)u.shift(),void 0===r&&(r=e.mimeType||t.getResponseHeader("Content-Type"));if(r)for(i in a)if(a[i]&&a[i].test(r)){u.unshift(i);break}if(u[0]in n)o=u[0];else{for(i in n){if(!u[0]||e.converters[i+" "+u[0]]){o=i;break}s||(s=i)}o=o||s}if(o)return o!==u[0]&&u.unshift(o),n[o]}(g,T,n)),a=function(e,t,n,r){var i,o,s,a,u,l={},c=e.dataTypes.slice();if(c[1])for(s in e.converters)l[s.toLowerCase()]=e.converters[s];for(o=c.shift();o;)if(e.responseFields[o]&&(n[e.responseFields[o]]=t),!u&&r&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),u=o,o=c.shift())if("*"===o)o=u;else if("*"!==u&&u!==o){if(!(s=l[u+" "+o]||l["* "+o]))for(i in l)if((a=i.split(" "))[1]===o&&(s=l[u+" "+a[0]]||l["* "+a[0]])){!0===s?s=l[i]:!0!==l[i]&&(o=a[0],c.unshift(a[1]));break}if(!0!==s)if(s&&e.throws)t=s(t);else try{t=s(t)}catch(e){return{state:"parsererror",error:s?e:"No conversion from "+u+" to "+o}}}return{state:"success",data:t}}(g,a,T,i),i?(g.ifModified&&((u=T.getResponseHeader("Last-Modified"))&&(E.lastModified[f]=u),(u=T.getResponseHeader("etag"))&&(E.etag[f]=u)),204===e||"HEAD"===g.type?l="nocontent":304===e?l="notmodified":(l=a.state,o=a.data,i=!(s=a.error))):(s=l,!e&&l||(l="error",e<0&&(e=0))),T.status=e,T.statusText=(t||l)+"",i?y.resolveWith(v,[o,l,T]):y.rejectWith(v,[T,l,s]),T.statusCode(b),b=void 0,h&&m.trigger(i?"ajaxSuccess":"ajaxError",[T,g,i?o:s]),x.fireWith(v,[T,l]),h&&(m.trigger("ajaxComplete",[T,g]),--E.active||E.event.trigger("ajaxStop")))}return T},getJSON:function(e,t,n){return E.get(e,t,n,"json")},getScript:function(e,t){return E.get(e,void 0,t,"script")}}),E.each(["get","post"],function(e,i){E[i]=function(e,t,n,r){return E.isFunction(t)&&(r=r||n,n=t,t=void 0),E.ajax(E.extend({url:e,type:i,dataType:r,data:t,success:n},E.isPlainObject(e)&&e))}}),E._evalUrl=function(e){return E.ajax({url:e,type:"GET",dataType:"script",async:!1,global:!1,throws:!0})},E.fn.extend({wrapAll:function(t){var e;return E.isFunction(t)?this.each(function(e){E(this).wrapAll(t.call(this,e))}):(this[0]&&(e=E(t,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&e.insertBefore(this[0]),e.map(function(){for(var e=this;e.firstElementChild;)e=e.firstElementChild;return e}).append(this)),this)},wrapInner:function(n){return E.isFunction(n)?this.each(function(e){E(this).wrapInner(n.call(this,e))}):this.each(function(){var e=E(this),t=e.contents();t.length?t.wrapAll(n):e.append(n)})},wrap:function(t){var n=E.isFunction(t);return this.each(function(e){E(this).wrapAll(n?t.call(this,e):t)})},unwrap:function(){return this.parent().each(function(){E.nodeName(this,"body")||E(this).replaceWith(this.childNodes)}).end()}}),E.expr.filters.hidden=function(e){return!E.expr.filters.visible(e)},E.expr.filters.visible=function(e){return 0<e.offsetWidth||0<e.offsetHeight||0<e.getClientRects().length};var kt=/%20/g,Et=/\[\]$/,Nt=/\r?\n/g,St=/^(?:submit|button|image|reset|file)$/i,jt=/^(?:input|select|textarea|keygen)/i;function Dt(n,e,r,i){var t;if(E.isArray(e))E.each(e,function(e,t){r||Et.test(n)?i(n,t):Dt(n+"["+("object"==typeof t&&null!=t?e:"")+"]",t,r,i)});else if(r||"object"!==E.type(e))i(n,e);else for(t in e)Dt(n+"["+t+"]",e[t],r,i)}E.param=function(e,t){var n,r=[],i=function(e,t){t=E.isFunction(t)?t():null==t?"":t,r[r.length]=encodeURIComponent(e)+"="+encodeURIComponent(t)};if(void 0===t&&(t=E.ajaxSettings&&E.ajaxSettings.traditional),E.isArray(e)||e.jquery&&!E.isPlainObject(e))E.each(e,function(){i(this.name,this.value)});else for(n in e)Dt(n,e[n],t,i);return r.join("&").replace(kt,"+")},E.fn.extend({serialize:function(){return E.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var e=E.prop(this,"elements");return e?E.makeArray(e):this}).filter(function(){var e=this.type;return this.name&&!E(this).is(":disabled")&&jt.test(this.nodeName)&&!St.test(e)&&(this.checked||!V.test(e))}).map(function(e,t){var n=E(this).val();return null==n?null:E.isArray(n)?E.map(n,function(e){return{name:t.name,value:e.replace(Nt,"\r\n")}}):{name:t.name,value:n.replace(Nt,"\r\n")}}).get()}}),E.ajaxSettings.xhr=function(){try{return new C.XMLHttpRequest}catch(e){}};var At={0:200,1223:204},qt=E.ajaxSettings.xhr();v.cors=!!qt&&"withCredentials"in qt,v.ajax=qt=!!qt,E.ajaxTransport(function(i){var o,s;if(v.cors||qt&&!i.crossDomain)return{send:function(e,t){var n,r=i.xhr();if(r.open(i.type,i.url,i.async,i.username,i.password),i.xhrFields)for(n in i.xhrFields)r[n]=i.xhrFields[n];for(n in i.mimeType&&r.overrideMimeType&&r.overrideMimeType(i.mimeType),i.crossDomain||e["X-Requested-With"]||(e["X-Requested-With"]="XMLHttpRequest"),e)r.setRequestHeader(n,e[n]);o=function(e){return function(){o&&(o=s=r.onload=r.onerror=r.onabort=r.onreadystatechange=null,"abort"===e?r.abort():"error"===e?"number"!=typeof r.status?t(0,"error"):t(r.status,r.statusText):t(At[r.status]||r.status,r.statusText,"text"!==(r.responseType||"text")||"string"!=typeof r.responseText?{binary:r.response}:{text:r.responseText},r.getAllResponseHeaders()))}},r.onload=o(),s=r.onerror=o("error"),void 0!==r.onabort?r.onabort=s:r.onreadystatechange=function(){4===r.readyState&&C.setTimeout(function(){o&&s()})},o=o("abort");try{r.send(i.hasContent&&i.data||null)}catch(e){if(o)throw e}},abort:function(){o&&o()}}}),E.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(e){return E.globalEval(e),e}}}),E.ajaxPrefilter("script",function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET")}),E.ajaxTransport("script",function(n){var r,i;if(n.crossDomain)return{send:function(e,t){r=E("<script>").prop({charset:n.scriptCharset,src:n.url}).on("load error",i=function(e){r.remove(),i=null,e&&t("error"===e.type?404:200,e.type)}),k.head.appendChild(r[0])},abort:function(){i&&i()}}});var Lt=[],Ht=/(=)\?(?=&|$)|\?\?/;E.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=Lt.pop()||E.expando+"_"+ct++;return this[e]=!0,e}}),E.ajaxPrefilter("json jsonp",function(e,t,n){var r,i,o,s=!1!==e.jsonp&&(Ht.test(e.url)?"url":"string"==typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&Ht.test(e.data)&&"data");if(s||"jsonp"===e.dataTypes[0])return r=e.jsonpCallback=E.isFunction(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,s?e[s]=e[s].replace(Ht,"$1"+r):!1!==e.jsonp&&(e.url+=(ft.test(e.url)?"&":"?")+e.jsonp+"="+r),e.converters["script json"]=function(){return o||E.error(r+" was not called"),o[0]},e.dataTypes[0]="json",i=C[r],C[r]=function(){o=arguments},n.always(function(){void 0===i?E(C).removeProp(r):C[r]=i,e[r]&&(e.jsonpCallback=t.jsonpCallback,Lt.push(r)),o&&E.isFunction(i)&&i(o[0]),o=i=void 0}),"script"}),E.parseHTML=function(e,t,n){if(!e||"string"!=typeof e)return null;"boolean"==typeof t&&(n=t,t=!1),t=t||k;var r=b.exec(e),i=!n&&[];return r?[t.createElement(r[1])]:(r=ne([e],t,i),i&&i.length&&E(i).remove(),E.merge([],r.childNodes))};var Ot=E.fn.load;function Ft(e){return E.isWindow(e)?e:9===e.nodeType&&e.defaultView}E.fn.load=function(e,t,n){if("string"!=typeof e&&Ot)return Ot.apply(this,arguments);var r,i,o,s=this,a=e.indexOf(" ");return-1<a&&(r=E.trim(e.slice(a)),e=e.slice(0,a)),E.isFunction(t)?(n=t,t=void 0):t&&"object"==typeof t&&(i="POST"),0<s.length&&E.ajax({url:e,type:i||"GET",dataType:"html",data:t}).done(function(e){o=arguments,s.html(r?E("<div>").append(E.parseHTML(e)).find(r):e)}).always(n&&function(e,t){s.each(function(){n.apply(this,o||[e.responseText,t,e])})}),this},E.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){E.fn[t]=function(e){return this.on(t,e)}}),E.expr.filters.animated=function(t){return E.grep(E.timers,function(e){return t===e.elem}).length},E.offset={setOffset:function(e,t,n){var r,i,o,s,a,u,l=E.css(e,"position"),c=E(e),f={};"static"===l&&(e.style.position="relative"),a=c.offset(),o=E.css(e,"top"),u=E.css(e,"left"),("absolute"===l||"fixed"===l)&&-1<(o+u).indexOf("auto")?(s=(r=c.position()).top,i=r.left):(s=parseFloat(o)||0,i=parseFloat(u)||0),E.isFunction(t)&&(t=t.call(e,n,E.extend({},a))),null!=t.top&&(f.top=t.top-a.top+s),null!=t.left&&(f.left=t.left-a.left+i),"using"in t?t.using.call(e,f):c.css(f)}},E.fn.extend({offset:function(t){if(arguments.length)return void 0===t?this:this.each(function(e){E.offset.setOffset(this,t,e)});var e,n,r=this[0],i={top:0,left:0},o=r&&r.ownerDocument;return o?(e=o.documentElement,E.contains(e,r)?(i=r.getBoundingClientRect(),n=Ft(o),{top:i.top+n.pageYOffset-e.clientTop,left:i.left+n.pageXOffset-e.clientLeft}):i):void 0},position:function(){if(this[0]){var e,t,n=this[0],r={top:0,left:0};return"fixed"===E.css(n,"position")?t=n.getBoundingClientRect():(e=this.offsetParent(),t=this.offset(),E.nodeName(e[0],"html")||(r=e.offset()),r.top+=E.css(e[0],"borderTopWidth",!0),r.left+=E.css(e[0],"borderLeftWidth",!0)),{top:t.top-r.top-E.css(n,"marginTop",!0),left:t.left-r.left-E.css(n,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var e=this.offsetParent;e&&"static"===E.css(e,"position");)e=e.offsetParent;return e||De})}}),E.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(t,i){var o="pageYOffset"===i;E.fn[t]=function(e){return O(this,function(e,t,n){var r=Ft(e);if(void 0===n)return r?r[i]:e[t];r?r.scrollTo(o?r.pageXOffset:n,o?n:r.pageYOffset):e[t]=n},t,e,arguments.length)}}),E.each(["top","left"],function(e,n){E.cssHooks[n]=qe(v.pixelPosition,function(e,t){if(t)return t=Ae(e,n),Ne.test(t)?E(e).position()[n]+"px":t})}),E.each({Height:"height",Width:"width"},function(o,s){E.each({padding:"inner"+o,content:s,"":"outer"+o},function(r,e){E.fn[e]=function(e,t){var n=arguments.length&&(r||"boolean"!=typeof e),i=r||(!0===e||!0===t?"margin":"border");return O(this,function(e,t,n){var r;return E.isWindow(e)?e.document.documentElement["client"+o]:9===e.nodeType?(r=e.documentElement,Math.max(e.body["scroll"+o],r["scroll"+o],e.body["offset"+o],r["offset"+o],r["client"+o])):void 0===n?E.css(e,t,i):E.style(e,t,n,i)},s,n?e:void 0,n,null)}})}),E.fn.extend({bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,r){return this.on(t,e,n,r)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)},size:function(){return this.length}}),E.fn.andSelf=E.fn.addBack,"function"==typeof define&&define.amd&&define("jquery",[],function(){return E});var Pt=C.jQuery,Rt=C.$;return E.noConflict=function(e){return C.$===E&&(C.$=Rt),e&&C.jQuery===E&&(C.jQuery=Pt),E},e||(C.jQuery=C.$=E),E});
+!function(e,t){"object"==typeof module&&"object"==typeof module.exports?module.exports=e.document?t(e,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return t(e)}:t(e)}("undefined"!=typeof window?window:this,function(e,t){function n(e){var t=!!e&&"length"in e&&e.length,n=re.type(e);return"function"!==n&&!re.isWindow(e)&&("array"===n||0===t||"number"==typeof t&&t>0&&t-1 in e)}function r(e,t,n){if(re.isFunction(t))return re.grep(e,function(e,r){return!!t.call(e,r,e)!==n});if(t.nodeType)return re.grep(e,function(e){return e===t!==n});if("string"==typeof t){if(de.test(t))return re.filter(t,e,n);t=re.filter(t,e)}return re.grep(e,function(e){return K.call(t,e)>-1!==n})}function i(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}function o(e){var t={};return re.each(e.match(ye)||[],function(e,n){t[n]=!0}),t}function s(){Y.removeEventListener("DOMContentLoaded",s),e.removeEventListener("load",s),re.ready()}function a(){this.expando=re.expando+a.uid++}function u(e,t,n){var r;if(void 0===n&&1===e.nodeType)if(r="data-"+t.replace(Ee,"-$&").toLowerCase(),"string"==typeof(n=e.getAttribute(r))){try{n="true"===n||"false"!==n&&("null"===n?null:+n+""===n?+n:ke.test(n)?re.parseJSON(n):n)}catch(e){}Ce.set(e,t,n)}else n=void 0;return n}function l(e,t,n,r){var i,o=1,s=20,a=r?function(){return r.cur()}:function(){return re.css(e,t,"")},u=a(),l=n&&n[3]||(re.cssNumber[t]?"":"px"),c=(re.cssNumber[t]||"px"!==l&&+u)&&Se.exec(re.css(e,t));if(c&&c[3]!==l){l=l||c[3],n=n||[],c=+u||1;do{c/=o=o||".5",re.style(e,t,c+l)}while(o!==(o=a()/u)&&1!==o&&--s)}return n&&(c=+c||+u||0,i=n[1]?c+(n[1]+1)*n[2]:+n[2],r&&(r.unit=l,r.start=c,r.end=i)),i}function c(e,t){var n=void 0!==e.getElementsByTagName?e.getElementsByTagName(t||"*"):void 0!==e.querySelectorAll?e.querySelectorAll(t||"*"):[];return void 0===t||t&&re.nodeName(e,t)?re.merge([e],n):n}function f(e,t){for(var n=0,r=e.length;n<r;n++)Te.set(e[n],"globalEval",!t||Te.get(t[n],"globalEval"))}function p(e,t,n,r,i){for(var o,s,a,u,l,p,d=t.createDocumentFragment(),h=[],g=0,v=e.length;g<v;g++)if((o=e[g])||0===o)if("object"===re.type(o))re.merge(h,o.nodeType?[o]:o);else if(Oe.test(o)){for(s=s||d.appendChild(t.createElement("div")),a=(qe.exec(o)||["",""])[1].toLowerCase(),u=He[a]||He._default,s.innerHTML=u[1]+re.htmlPrefilter(o)+u[2],p=u[0];p--;)s=s.lastChild;re.merge(h,s.childNodes),(s=d.firstChild).textContent=""}else h.push(t.createTextNode(o));for(d.textContent="",g=0;o=h[g++];)if(r&&re.inArray(o,r)>-1)i&&i.push(o);else if(l=re.contains(o.ownerDocument,o),s=c(d.appendChild(o),"script"),l&&f(s),n)for(p=0;o=s[p++];)Le.test(o.type||"")&&n.push(o);return d}function d(){return!0}function h(){return!1}function g(){try{return Y.activeElement}catch(e){}}function v(e,t,n,r,i,o){var s,a;if("object"==typeof t){"string"!=typeof n&&(r=r||n,n=void 0);for(a in t)v(e,a,n,r,t[a],o);return e}if(null==r&&null==i?(i=n,r=n=void 0):null==i&&("string"==typeof n?(i=r,r=void 0):(i=r,r=n,n=void 0)),!1===i)i=h;else if(!i)return e;return 1===o&&(s=i,(i=function(e){return re().off(e),s.apply(this,arguments)}).guid=s.guid||(s.guid=re.guid++)),e.each(function(){re.event.add(this,t,i,r,n)})}function m(e,t){return re.nodeName(e,"table")&&re.nodeName(11!==t.nodeType?t:t.firstChild,"tr")?e.getElementsByTagName("tbody")[0]||e.appendChild(e.ownerDocument.createElement("tbody")):e}function y(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function x(e){var t=$e.exec(e.type);return t?e.type=t[1]:e.removeAttribute("type"),e}function b(e,t){var n,r,i,o,s,a,u,l;if(1===t.nodeType){if(Te.hasData(e)&&(o=Te.access(e),s=Te.set(t,o),l=o.events)){delete s.handle,s.events={};for(i in l)for(n=0,r=l[i].length;n<r;n++)re.event.add(t,i,l[i][n])}Ce.hasData(e)&&(a=Ce.access(e),u=re.extend({},a),Ce.set(t,u))}}function w(e,t){var n=t.nodeName.toLowerCase();"input"===n&&Ae.test(e.type)?t.checked=e.checked:"input"!==n&&"textarea"!==n||(t.defaultValue=e.defaultValue)}function T(e,t,n,r){t=Q.apply([],t);var i,o,s,a,u,l,f=0,d=e.length,h=d-1,g=t[0],v=re.isFunction(g);if(v||d>1&&"string"==typeof g&&!ne.checkClone&&We.test(g))return e.each(function(i){var o=e.eq(i);v&&(t[0]=g.call(this,i,o.html())),T(o,t,n,r)});if(d&&(i=p(t,e[0].ownerDocument,!1,e,r),o=i.firstChild,1===i.childNodes.length&&(i=o),o||r)){for(a=(s=re.map(c(i,"script"),y)).length;f<d;f++)u=i,f!==h&&(u=re.clone(u,!0,!0),a&&re.merge(s,c(u,"script"))),n.call(e[f],u,f);if(a)for(l=s[s.length-1].ownerDocument,re.map(s,x),f=0;f<a;f++)u=s[f],Le.test(u.type||"")&&!Te.access(u,"globalEval")&&re.contains(l,u)&&(u.src?re._evalUrl&&re._evalUrl(u.src):re.globalEval(u.textContent.replace(Be,"")))}return e}function C(e,t,n){for(var r,i=t?re.filter(t,e):e,o=0;null!=(r=i[o]);o++)n||1!==r.nodeType||re.cleanData(c(r)),r.parentNode&&(n&&re.contains(r.ownerDocument,r)&&f(c(r,"script")),r.parentNode.removeChild(r));return e}function k(e,t){var n=re(t.createElement(e)).appendTo(t.body),r=re.css(n[0],"display");return n.detach(),r}function E(e){var t=Y,n=Xe[e];return n||("none"!==(n=k(e,t))&&n||((t=(_e=(_e||re("<iframe frameborder='0' width='0' height='0'/>")).appendTo(t.documentElement))[0].contentDocument).write(),t.close(),n=k(e,t),_e.detach()),Xe[e]=n),n}function N(e,t,n){var r,i,o,s,a=e.style;return n=n||Ve(e),""!==(s=n?n.getPropertyValue(t)||n[t]:void 0)&&void 0!==s||re.contains(e.ownerDocument,e)||(s=re.style(e,t)),n&&!ne.pixelMarginRight()&&Ue.test(s)&&ze.test(t)&&(r=a.width,i=a.minWidth,o=a.maxWidth,a.minWidth=a.maxWidth=a.width=s,s=n.width,a.width=r,a.minWidth=i,a.maxWidth=o),void 0!==s?s+"":s}function S(e,t){return{get:function(){if(!e())return(this.get=t).apply(this,arguments);delete this.get}}}function j(e){if(e in et)return e;for(var t=e[0].toUpperCase()+e.slice(1),n=Ze.length;n--;)if((e=Ze[n]+t)in et)return e}function D(e,t,n){var r=Se.exec(t);return r?Math.max(0,r[2]-(n||0))+(r[3]||"px"):t}function A(e,t,n,r,i){for(var o=n===(r?"border":"content")?4:"width"===t?1:0,s=0;o<4;o+=2)"margin"===n&&(s+=re.css(e,n+je[o],!0,i)),r?("content"===n&&(s-=re.css(e,"padding"+je[o],!0,i)),"margin"!==n&&(s-=re.css(e,"border"+je[o]+"Width",!0,i))):(s+=re.css(e,"padding"+je[o],!0,i),"padding"!==n&&(s+=re.css(e,"border"+je[o]+"Width",!0,i)));return s}function q(e,t,n){var r=!0,i="width"===t?e.offsetWidth:e.offsetHeight,o=Ve(e),s="border-box"===re.css(e,"boxSizing",!1,o);if(i<=0||null==i){if(((i=N(e,t,o))<0||null==i)&&(i=e.style[t]),Ue.test(i))return i;r=s&&(ne.boxSizingReliable()||i===e.style[t]),i=parseFloat(i)||0}return i+A(e,t,n||(s?"border":"content"),r,o)+"px"}function L(e,t){for(var n,r,i,o=[],s=0,a=e.length;s<a;s++)(r=e[s]).style&&(o[s]=Te.get(r,"olddisplay"),n=r.style.display,t?(o[s]||"none"!==n||(r.style.display=""),""===r.style.display&&De(r)&&(o[s]=Te.access(r,"olddisplay",E(r.nodeName)))):(i=De(r),"none"===n&&i||Te.set(r,"olddisplay",i?n:re.css(r,"display"))));for(s=0;s<a;s++)(r=e[s]).style&&(t&&"none"!==r.style.display&&""!==r.style.display||(r.style.display=t?o[s]||"":"none"));return e}function H(e,t,n,r,i){return new H.prototype.init(e,t,n,r,i)}function O(){return e.setTimeout(function(){tt=void 0}),tt=re.now()}function F(e,t){var n,r=0,i={height:e};for(t=t?1:0;r<4;r+=2-t)i["margin"+(n=je[r])]=i["padding"+n]=e;return t&&(i.opacity=i.width=e),i}function P(e,t,n){for(var r,i=(M.tweeners[t]||[]).concat(M.tweeners["*"]),o=0,s=i.length;o<s;o++)if(r=i[o].call(n,t,e))return r}function R(e,t){var n,r,i,o,s;for(n in e)if(r=re.camelCase(n),i=t[r],o=e[n],re.isArray(o)&&(i=o[1],o=e[n]=o[0]),n!==r&&(e[r]=o,delete e[n]),(s=re.cssHooks[r])&&"expand"in s){o=s.expand(o),delete e[r];for(n in o)n in e||(e[n]=o[n],t[n]=i)}else t[r]=i}function M(e,t,n){var r,i,o=0,s=M.prefilters.length,a=re.Deferred().always(function(){delete u.elem}),u=function(){if(i)return!1;for(var t=tt||O(),n=Math.max(0,l.startTime+l.duration-t),r=1-(n/l.duration||0),o=0,s=l.tweens.length;o<s;o++)l.tweens[o].run(r);return a.notifyWith(e,[l,r,n]),r<1&&s?n:(a.resolveWith(e,[l]),!1)},l=a.promise({elem:e,props:re.extend({},t),opts:re.extend(!0,{specialEasing:{},easing:re.easing._default},n),originalProperties:t,originalOptions:n,startTime:tt||O(),duration:n.duration,tweens:[],createTween:function(t,n){var r=re.Tween(e,l.opts,t,n,l.opts.specialEasing[t]||l.opts.easing);return l.tweens.push(r),r},stop:function(t){var n=0,r=t?l.tweens.length:0;if(i)return this;for(i=!0;n<r;n++)l.tweens[n].run(1);return t?(a.notifyWith(e,[l,1,0]),a.resolveWith(e,[l,t])):a.rejectWith(e,[l,t]),this}}),c=l.props;for(R(c,l.opts.specialEasing);o<s;o++)if(r=M.prefilters[o].call(l,e,c,l.opts))return re.isFunction(r.stop)&&(re._queueHooks(l.elem,l.opts.queue).stop=re.proxy(r.stop,r)),r;return re.map(c,P,l),re.isFunction(l.opts.start)&&l.opts.start.call(e,l),re.fx.timer(re.extend(u,{elem:e,anim:l,queue:l.opts.queue})),l.progress(l.opts.progress).done(l.opts.done,l.opts.complete).fail(l.opts.fail).always(l.opts.always)}function I(e){return e.getAttribute&&e.getAttribute("class")||""}function W(e){return function(t,n){"string"!=typeof t&&(n=t,t="*");var r,i=0,o=t.toLowerCase().match(ye)||[];if(re.isFunction(n))for(;r=o[i++];)"+"===r[0]?(r=r.slice(1)||"*",(e[r]=e[r]||[]).unshift(n)):(e[r]=e[r]||[]).push(n)}}function $(e,t,n,r){function i(a){var u;return o[a]=!0,re.each(e[a]||[],function(e,a){var l=a(t,n,r);return"string"!=typeof l||s||o[l]?s?!(u=l):void 0:(t.dataTypes.unshift(l),i(l),!1)}),u}var o={},s=e===Tt;return i(t.dataTypes[0])||!o["*"]&&i("*")}function B(e,t){var n,r,i=re.ajaxSettings.flatOptions||{};for(n in t)void 0!==t[n]&&((i[n]?e:r||(r={}))[n]=t[n]);return r&&re.extend(!0,e,r),e}function _(e,t,n){for(var r,i,o,s,a=e.contents,u=e.dataTypes;"*"===u[0];)u.shift(),void 0===r&&(r=e.mimeType||t.getResponseHeader("Content-Type"));if(r)for(i in a)if(a[i]&&a[i].test(r)){u.unshift(i);break}if(u[0]in n)o=u[0];else{for(i in n){if(!u[0]||e.converters[i+" "+u[0]]){o=i;break}s||(s=i)}o=o||s}if(o)return o!==u[0]&&u.unshift(o),n[o]}function X(e,t,n,r){var i,o,s,a,u,l={},c=e.dataTypes.slice();if(c[1])for(s in e.converters)l[s.toLowerCase()]=e.converters[s];for(o=c.shift();o;)if(e.responseFields[o]&&(n[e.responseFields[o]]=t),!u&&r&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),u=o,o=c.shift())if("*"===o)o=u;else if("*"!==u&&u!==o){if(!(s=l[u+" "+o]||l["* "+o]))for(i in l)if((a=i.split(" "))[1]===o&&(s=l[u+" "+a[0]]||l["* "+a[0]])){!0===s?s=l[i]:!0!==l[i]&&(o=a[0],c.unshift(a[1]));break}if(!0!==s)if(s&&e.throws)t=s(t);else try{t=s(t)}catch(e){return{state:"parsererror",error:s?e:"No conversion from "+u+" to "+o}}}return{state:"success",data:t}}function z(e,t,n,r){var i;if(re.isArray(t))re.each(t,function(t,i){n||Nt.test(e)?r(e,i):z(e+"["+("object"==typeof i&&null!=i?t:"")+"]",i,n,r)});else if(n||"object"!==re.type(t))r(e,t);else for(i in t)z(e+"["+i+"]",t[i],n,r)}function U(e){return re.isWindow(e)?e:9===e.nodeType&&e.defaultView}var V=[],Y=e.document,G=V.slice,Q=V.concat,J=V.push,K=V.indexOf,Z={},ee=Z.toString,te=Z.hasOwnProperty,ne={},re=function(e,t){return new re.fn.init(e,t)},ie=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,oe=/^-ms-/,se=/-([\da-z])/gi,ae=function(e,t){return t.toUpperCase()};re.fn=re.prototype={jquery:"2.2.4",constructor:re,selector:"",length:0,toArray:function(){return G.call(this)},get:function(e){return null!=e?e<0?this[e+this.length]:this[e]:G.call(this)},pushStack:function(e){var t=re.merge(this.constructor(),e);return t.prevObject=this,t.context=this.context,t},each:function(e){return re.each(this,e)},map:function(e){return this.pushStack(re.map(this,function(t,n){return e.call(t,n,t)}))},slice:function(){return this.pushStack(G.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(e){var t=this.length,n=+e+(e<0?t:0);return this.pushStack(n>=0&&n<t?[this[n]]:[])},end:function(){return this.prevObject||this.constructor()},push:J,sort:V.sort,splice:V.splice},re.extend=re.fn.extend=function(){var e,t,n,r,i,o,s=arguments[0]||{},a=1,u=arguments.length,l=!1;for("boolean"==typeof s&&(l=s,s=arguments[a]||{},a++),"object"==typeof s||re.isFunction(s)||(s={}),a===u&&(s=this,a--);a<u;a++)if(null!=(e=arguments[a]))for(t in e)n=s[t],s!==(r=e[t])&&(l&&r&&(re.isPlainObject(r)||(i=re.isArray(r)))?(i?(i=!1,o=n&&re.isArray(n)?n:[]):o=n&&re.isPlainObject(n)?n:{},s[t]=re.extend(l,o,r)):void 0!==r&&(s[t]=r));return s},re.extend({expando:"jQuery"+("2.2.4"+Math.random()).replace(/\D/g,""),isReady:!0,error:function(e){throw new Error(e)},noop:function(){},isFunction:function(e){return"function"===re.type(e)},isArray:Array.isArray,isWindow:function(e){return null!=e&&e===e.window},isNumeric:function(e){var t=e&&e.toString();return!re.isArray(e)&&t-parseFloat(t)+1>=0},isPlainObject:function(e){var t;if("object"!==re.type(e)||e.nodeType||re.isWindow(e))return!1;if(e.constructor&&!te.call(e,"constructor")&&!te.call(e.constructor.prototype||{},"isPrototypeOf"))return!1;for(t in e);return void 0===t||te.call(e,t)},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},type:function(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?Z[ee.call(e)]||"object":typeof e},globalEval:function(e){var t,n=eval;(e=re.trim(e))&&(1===e.indexOf("use strict")?((t=Y.createElement("script")).text=e,Y.head.appendChild(t).parentNode.removeChild(t)):n(e))},camelCase:function(e){return e.replace(oe,"ms-").replace(se,ae)},nodeName:function(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()},each:function(e,t){var r,i=0;if(n(e))for(r=e.length;i<r&&!1!==t.call(e[i],i,e[i]);i++);else for(i in e)if(!1===t.call(e[i],i,e[i]))break;return e},trim:function(e){return null==e?"":(e+"").replace(ie,"")},makeArray:function(e,t){var r=t||[];return null!=e&&(n(Object(e))?re.merge(r,"string"==typeof e?[e]:e):J.call(r,e)),r},inArray:function(e,t,n){return null==t?-1:K.call(t,e,n)},merge:function(e,t){for(var n=+t.length,r=0,i=e.length;r<n;r++)e[i++]=t[r];return e.length=i,e},grep:function(e,t,n){for(var r=[],i=0,o=e.length,s=!n;i<o;i++)!t(e[i],i)!==s&&r.push(e[i]);return r},map:function(e,t,r){var i,o,s=0,a=[];if(n(e))for(i=e.length;s<i;s++)null!=(o=t(e[s],s,r))&&a.push(o);else for(s in e)null!=(o=t(e[s],s,r))&&a.push(o);return Q.apply([],a)},guid:1,proxy:function(e,t){var n,r,i;if("string"==typeof t&&(n=e[t],t=e,e=n),re.isFunction(e))return r=G.call(arguments,2),i=function(){return e.apply(t||this,r.concat(G.call(arguments)))},i.guid=e.guid=e.guid||re.guid++,i},now:Date.now,support:ne}),"function"==typeof Symbol&&(re.fn[Symbol.iterator]=V[Symbol.iterator]),re.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(e,t){Z["[object "+t+"]"]=t.toLowerCase()});var ue=function(e){function t(e,t,n,r){var i,o,s,a,l,f,p,d,h=t&&t.ownerDocument,g=t?t.nodeType:9;if(n=n||[],"string"!=typeof e||!e||1!==g&&9!==g&&11!==g)return n;if(!r&&((t?t.ownerDocument||t:M)!==A&&D(t),t=t||A,L)){if(11!==g&&(f=ge.exec(e)))if(i=f[1]){if(9===g){if(!(s=t.getElementById(i)))return n;if(s.id===i)return n.push(s),n}else if(h&&(s=h.getElementById(i))&&P(t,s)&&s.id===i)return n.push(s),n}else{if(f[2])return Q.apply(n,t.getElementsByTagName(e)),n;if((i=f[3])&&x.getElementsByClassName&&t.getElementsByClassName)return Q.apply(n,t.getElementsByClassName(i)),n}if(x.qsa&&!_[e+" "]&&(!H||!H.test(e))){if(1!==g)h=t,d=e;else if("object"!==t.nodeName.toLowerCase()){for((a=t.getAttribute("id"))?a=a.replace(me,"\\$&"):t.setAttribute("id",a=R),o=(p=C(e)).length,l=ce.test(a)?"#"+a:"[id='"+a+"']";o--;)p[o]=l+" "+c(p[o]);d=p.join(","),h=ve.test(e)&&u(t.parentNode)||t}if(d)try{return Q.apply(n,h.querySelectorAll(d)),n}catch(e){}finally{a===R&&t.removeAttribute("id")}}}return E(e.replace(oe,"$1"),t,n,r)}function n(){function e(n,r){return t.push(n+" ")>b.cacheLength&&delete e[t.shift()],e[n+" "]=r}var t=[];return e}function r(e){return e[R]=!0,e}function i(e){var t=A.createElement("div");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function o(e,t){for(var n=e.split("|"),r=n.length;r--;)b.attrHandle[n[r]]=t}function s(e,t){var n=t&&e,r=n&&1===e.nodeType&&1===t.nodeType&&(~t.sourceIndex||z)-(~e.sourceIndex||z);if(r)return r;if(n)for(;n=n.nextSibling;)if(n===t)return-1;return e?1:-1}function a(e){return r(function(t){return t=+t,r(function(n,r){for(var i,o=e([],n.length,t),s=o.length;s--;)n[i=o[s]]&&(n[i]=!(r[i]=n[i]))})})}function u(e){return e&&void 0!==e.getElementsByTagName&&e}function l(){}function c(e){for(var t=0,n=e.length,r="";t<n;t++)r+=e[t].value;return r}function f(e,t,n){var r=t.dir,i=n&&"parentNode"===r,o=W++;return t.first?function(t,n,o){for(;t=t[r];)if(1===t.nodeType||i)return e(t,n,o)}:function(t,n,s){var a,u,l,c=[I,o];if(s){for(;t=t[r];)if((1===t.nodeType||i)&&e(t,n,s))return!0}else for(;t=t[r];)if(1===t.nodeType||i){if(l=t[R]||(t[R]={}),u=l[t.uniqueID]||(l[t.uniqueID]={}),(a=u[r])&&a[0]===I&&a[1]===o)return c[2]=a[2];if(u[r]=c,c[2]=e(t,n,s))return!0}}}function p(e){return e.length>1?function(t,n,r){for(var i=e.length;i--;)if(!e[i](t,n,r))return!1;return!0}:e[0]}function d(e,n,r){for(var i=0,o=n.length;i<o;i++)t(e,n[i],r);return r}function h(e,t,n,r,i){for(var o,s=[],a=0,u=e.length,l=null!=t;a<u;a++)(o=e[a])&&(n&&!n(o,r,i)||(s.push(o),l&&t.push(a)));return s}function g(e,t,n,i,o,s){return i&&!i[R]&&(i=g(i)),o&&!o[R]&&(o=g(o,s)),r(function(r,s,a,u){var l,c,f,p=[],g=[],v=s.length,m=r||d(t||"*",a.nodeType?[a]:a,[]),y=!e||!r&&t?m:h(m,p,e,a,u),x=n?o||(r?e:v||i)?[]:s:y;if(n&&n(y,x,a,u),i)for(l=h(x,g),i(l,[],a,u),c=l.length;c--;)(f=l[c])&&(x[g[c]]=!(y[g[c]]=f));if(r){if(o||e){if(o){for(l=[],c=x.length;c--;)(f=x[c])&&l.push(y[c]=f);o(null,x=[],l,u)}for(c=x.length;c--;)(f=x[c])&&(l=o?K(r,f):p[c])>-1&&(r[l]=!(s[l]=f))}}else x=h(x===s?x.splice(v,x.length):x),o?o(null,s,x,u):Q.apply(s,x)})}function v(e){for(var t,n,r,i=e.length,o=b.relative[e[0].type],s=o||b.relative[" "],a=o?1:0,u=f(function(e){return e===t},s,!0),l=f(function(e){return K(t,e)>-1},s,!0),d=[function(e,n,r){var i=!o&&(r||n!==N)||((t=n).nodeType?u(e,n,r):l(e,n,r));return t=null,i}];a<i;a++)if(n=b.relative[e[a].type])d=[f(p(d),n)];else{if((n=b.filter[e[a].type].apply(null,e[a].matches))[R]){for(r=++a;r<i&&!b.relative[e[r].type];r++);return g(a>1&&p(d),a>1&&c(e.slice(0,a-1).concat({value:" "===e[a-2].type?"*":""})).replace(oe,"$1"),n,a<r&&v(e.slice(a,r)),r<i&&v(e=e.slice(r)),r<i&&c(e))}d.push(n)}return p(d)}function m(e,n){var i=n.length>0,o=e.length>0,s=function(r,s,a,u,l){var c,f,p,d=0,g="0",v=r&&[],m=[],y=N,x=r||o&&b.find.TAG("*",l),w=I+=null==y?1:Math.random()||.1,T=x.length;for(l&&(N=s===A||s||l);g!==T&&null!=(c=x[g]);g++){if(o&&c){for(f=0,s||c.ownerDocument===A||(D(c),a=!L);p=e[f++];)if(p(c,s||A,a)){u.push(c);break}l&&(I=w)}i&&((c=!p&&c)&&d--,r&&v.push(c))}if(d+=g,i&&g!==d){for(f=0;p=n[f++];)p(v,m,s,a);if(r){if(d>0)for(;g--;)v[g]||m[g]||(m[g]=Y.call(u));m=h(m)}Q.apply(u,m),l&&!r&&m.length>0&&d+n.length>1&&t.uniqueSort(u)}return l&&(I=w,N=y),v};return i?r(s):s}var y,x,b,w,T,C,k,E,N,S,j,D,A,q,L,H,O,F,P,R="sizzle"+1*new Date,M=e.document,I=0,W=0,$=n(),B=n(),_=n(),X=function(e,t){return e===t&&(j=!0),0},z=1<<31,U={}.hasOwnProperty,V=[],Y=V.pop,G=V.push,Q=V.push,J=V.slice,K=function(e,t){for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1},Z="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",ee="[\\x20\\t\\r\\n\\f]",te="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",ne="\\["+ee+"*("+te+")(?:"+ee+"*([*^$|!~]?=)"+ee+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+te+"))|)"+ee+"*\\]",re=":("+te+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+ne+")*)|.*)\\)|)",ie=new RegExp(ee+"+","g"),oe=new RegExp("^"+ee+"+|((?:^|[^\\\\])(?:\\\\.)*)"+ee+"+$","g"),se=new RegExp("^"+ee+"*,"+ee+"*"),ae=new RegExp("^"+ee+"*([>+~]|"+ee+")"+ee+"*"),ue=new RegExp("="+ee+"*([^\\]'\"]*?)"+ee+"*\\]","g"),le=new RegExp(re),ce=new RegExp("^"+te+"$"),fe={ID:new RegExp("^#("+te+")"),CLASS:new RegExp("^\\.("+te+")"),TAG:new RegExp("^("+te+"|[*])"),ATTR:new RegExp("^"+ne),PSEUDO:new RegExp("^"+re),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+ee+"*(even|odd|(([+-]|)(\\d*)n|)"+ee+"*(?:([+-]|)"+ee+"*(\\d+)|))"+ee+"*\\)|)","i"),bool:new RegExp("^(?:"+Z+")$","i"),needsContext:new RegExp("^"+ee+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+ee+"*((?:-\\d)?\\d*)"+ee+"*\\)|)(?=[^-]|$)","i")},pe=/^(?:input|select|textarea|button)$/i,de=/^h\d$/i,he=/^[^{]+\{\s*\[native \w/,ge=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ve=/[+~]/,me=/'|\\/g,ye=new RegExp("\\\\([\\da-f]{1,6}"+ee+"?|("+ee+")|.)","ig"),xe=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)},be=function(){D()};try{Q.apply(V=J.call(M.childNodes),M.childNodes),V[M.childNodes.length].nodeType}catch(e){Q={apply:V.length?function(e,t){G.apply(e,J.call(t))}:function(e,t){for(var n=e.length,r=0;e[n++]=t[r++];);e.length=n-1}}}x=t.support={},T=t.isXML=function(e){var t=e&&(e.ownerDocument||e).documentElement;return!!t&&"HTML"!==t.nodeName},D=t.setDocument=function(e){var t,n,r=e?e.ownerDocument||e:M;return r!==A&&9===r.nodeType&&r.documentElement?(A=r,q=A.documentElement,L=!T(A),(n=A.defaultView)&&n.top!==n&&(n.addEventListener?n.addEventListener("unload",be,!1):n.attachEvent&&n.attachEvent("onunload",be)),x.attributes=i(function(e){return e.className="i",!e.getAttribute("className")}),x.getElementsByTagName=i(function(e){return e.appendChild(A.createComment("")),!e.getElementsByTagName("*").length}),x.getElementsByClassName=he.test(A.getElementsByClassName),x.getById=i(function(e){return q.appendChild(e).id=R,!A.getElementsByName||!A.getElementsByName(R).length}),x.getById?(b.find.ID=function(e,t){if(void 0!==t.getElementById&&L){var n=t.getElementById(e);return n?[n]:[]}},b.filter.ID=function(e){var t=e.replace(ye,xe);return function(e){return e.getAttribute("id")===t}}):(delete b.find.ID,b.filter.ID=function(e){var t=e.replace(ye,xe);return function(e){var n=void 0!==e.getAttributeNode&&e.getAttributeNode("id");return n&&n.value===t}}),b.find.TAG=x.getElementsByTagName?function(e,t){return void 0!==t.getElementsByTagName?t.getElementsByTagName(e):x.qsa?t.querySelectorAll(e):void 0}:function(e,t){var n,r=[],i=0,o=t.getElementsByTagName(e);if("*"===e){for(;n=o[i++];)1===n.nodeType&&r.push(n);return r}return o},b.find.CLASS=x.getElementsByClassName&&function(e,t){if(void 0!==t.getElementsByClassName&&L)return t.getElementsByClassName(e)},O=[],H=[],(x.qsa=he.test(A.querySelectorAll))&&(i(function(e){q.appendChild(e).innerHTML="<a id='"+R+"'></a><select id='"+R+"-\r\\' msallowcapture=''><option selected=''></option></select>",e.querySelectorAll("[msallowcapture^='']").length&&H.push("[*^$]="+ee+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||H.push("\\["+ee+"*(?:value|"+Z+")"),e.querySelectorAll("[id~="+R+"-]").length||H.push("~="),e.querySelectorAll(":checked").length||H.push(":checked"),e.querySelectorAll("a#"+R+"+*").length||H.push(".#.+[+~]")}),i(function(e){var t=A.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&H.push("name"+ee+"*[*^$|!~]?="),e.querySelectorAll(":enabled").length||H.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),H.push(",.*:")})),(x.matchesSelector=he.test(F=q.matches||q.webkitMatchesSelector||q.mozMatchesSelector||q.oMatchesSelector||q.msMatchesSelector))&&i(function(e){x.disconnectedMatch=F.call(e,"div"),F.call(e,"[s!='']:x"),O.push("!=",re)}),H=H.length&&new RegExp(H.join("|")),O=O.length&&new RegExp(O.join("|")),t=he.test(q.compareDocumentPosition),P=t||he.test(q.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},X=t?function(e,t){if(e===t)return j=!0,0;var n=!e.compareDocumentPosition-!t.compareDocumentPosition;return n||(1&(n=(e.ownerDocument||e)===(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!x.sortDetached&&t.compareDocumentPosition(e)===n?e===A||e.ownerDocument===M&&P(M,e)?-1:t===A||t.ownerDocument===M&&P(M,t)?1:S?K(S,e)-K(S,t):0:4&n?-1:1)}:function(e,t){if(e===t)return j=!0,0;var n,r=0,i=e.parentNode,o=t.parentNode,a=[e],u=[t];if(!i||!o)return e===A?-1:t===A?1:i?-1:o?1:S?K(S,e)-K(S,t):0;if(i===o)return s(e,t);for(n=e;n=n.parentNode;)a.unshift(n);for(n=t;n=n.parentNode;)u.unshift(n);for(;a[r]===u[r];)r++;return r?s(a[r],u[r]):a[r]===M?-1:u[r]===M?1:0},A):A},t.matches=function(e,n){return t(e,null,null,n)},t.matchesSelector=function(e,n){if((e.ownerDocument||e)!==A&&D(e),n=n.replace(ue,"='$1']"),x.matchesSelector&&L&&!_[n+" "]&&(!O||!O.test(n))&&(!H||!H.test(n)))try{var r=F.call(e,n);if(r||x.disconnectedMatch||e.document&&11!==e.document.nodeType)return r}catch(e){}return t(n,A,null,[e]).length>0},t.contains=function(e,t){return(e.ownerDocument||e)!==A&&D(e),P(e,t)},t.attr=function(e,t){(e.ownerDocument||e)!==A&&D(e);var n=b.attrHandle[t.toLowerCase()],r=n&&U.call(b.attrHandle,t.toLowerCase())?n(e,t,!L):void 0;return void 0!==r?r:x.attributes||!L?e.getAttribute(t):(r=e.getAttributeNode(t))&&r.specified?r.value:null},t.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},t.uniqueSort=function(e){var t,n=[],r=0,i=0;if(j=!x.detectDuplicates,S=!x.sortStable&&e.slice(0),e.sort(X),j){for(;t=e[i++];)t===e[i]&&(r=n.push(i));for(;r--;)e.splice(n[r],1)}return S=null,e},w=t.getText=function(e){var t,n="",r=0,i=e.nodeType;if(i){if(1===i||9===i||11===i){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=w(e)}else if(3===i||4===i)return e.nodeValue}else for(;t=e[r++];)n+=w(t);return n},(b=t.selectors={cacheLength:50,createPseudo:r,match:fe,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(ye,xe),e[3]=(e[3]||e[4]||e[5]||"").replace(ye,xe),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||t.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&t.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return fe.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&le.test(n)&&(t=C(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(ye,xe).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("(^|"+ee+")"+e+"("+ee+"|$)"))&&$(e,function(e){return t.test("string"==typeof e.className&&e.className||void 0!==e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(e,n,r){return function(i){var o=t.attr(i,e);return null==o?"!="===n:!n||(o+="","="===n?o===r:"!="===n?o!==r:"^="===n?r&&0===o.indexOf(r):"*="===n?r&&o.indexOf(r)>-1:"$="===n?r&&o.slice(-r.length)===r:"~="===n?(" "+o.replace(ie," ")+" ").indexOf(r)>-1:"|="===n&&(o===r||o.slice(0,r.length+1)===r+"-"))}},CHILD:function(e,t,n,r,i){var o="nth"!==e.slice(0,3),s="last"!==e.slice(-4),a="of-type"===t;return 1===r&&0===i?function(e){return!!e.parentNode}:function(t,n,u){var l,c,f,p,d,h,g=o!==s?"nextSibling":"previousSibling",v=t.parentNode,m=a&&t.nodeName.toLowerCase(),y=!u&&!a,x=!1;if(v){if(o){for(;g;){for(p=t;p=p[g];)if(a?p.nodeName.toLowerCase()===m:1===p.nodeType)return!1;h=g="only"===e&&!h&&"nextSibling"}return!0}if(h=[s?v.firstChild:v.lastChild],s&&y){for(x=(d=(l=(c=(f=(p=v)[R]||(p[R]={}))[p.uniqueID]||(f[p.uniqueID]={}))[e]||[])[0]===I&&l[1])&&l[2],p=d&&v.childNodes[d];p=++d&&p&&p[g]||(x=d=0)||h.pop();)if(1===p.nodeType&&++x&&p===t){c[e]=[I,d,x];break}}else if(y&&(x=d=(l=(c=(f=(p=t)[R]||(p[R]={}))[p.uniqueID]||(f[p.uniqueID]={}))[e]||[])[0]===I&&l[1]),!1===x)for(;(p=++d&&p&&p[g]||(x=d=0)||h.pop())&&((a?p.nodeName.toLowerCase()!==m:1!==p.nodeType)||!++x||(y&&((c=(f=p[R]||(p[R]={}))[p.uniqueID]||(f[p.uniqueID]={}))[e]=[I,x]),p!==t)););return(x-=i)===r||x%r==0&&x/r>=0}}},PSEUDO:function(e,n){var i,o=b.pseudos[e]||b.setFilters[e.toLowerCase()]||t.error("unsupported pseudo: "+e);return o[R]?o(n):o.length>1?(i=[e,e,"",n],b.setFilters.hasOwnProperty(e.toLowerCase())?r(function(e,t){for(var r,i=o(e,n),s=i.length;s--;)e[r=K(e,i[s])]=!(t[r]=i[s])}):function(e){return o(e,0,i)}):o}},pseudos:{not:r(function(e){var t=[],n=[],i=k(e.replace(oe,"$1"));return i[R]?r(function(e,t,n,r){for(var o,s=i(e,null,r,[]),a=e.length;a--;)(o=s[a])&&(e[a]=!(t[a]=o))}):function(e,r,o){return t[0]=e,i(t,null,o,n),t[0]=null,!n.pop()}}),has:r(function(e){return function(n){return t(e,n).length>0}}),contains:r(function(e){return e=e.replace(ye,xe),function(t){return(t.textContent||t.innerText||w(t)).indexOf(e)>-1}}),lang:r(function(e){return ce.test(e||"")||t.error("unsupported lang: "+e),e=e.replace(ye,xe).toLowerCase(),function(t){var n;do{if(n=L?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return(n=n.toLowerCase())===e||0===n.indexOf(e+"-")}while((t=t.parentNode)&&1===t.nodeType);return!1}}),target:function(t){var n=e.location&&e.location.hash;return n&&n.slice(1)===t.id},root:function(e){return e===q},focus:function(e){return e===A.activeElement&&(!A.hasFocus||A.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:function(e){return!1===e.disabled},disabled:function(e){return!0===e.disabled},checked:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&!!e.checked||"option"===t&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,!0===e.selected},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!b.pseudos.empty(e)},header:function(e){return de.test(e.nodeName)},input:function(e){return pe.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},text:function(e){var t;return"input"===e.nodeName.toLowerCase()&&"text"===e.type&&(null==(t=e.getAttribute("type"))||"text"===t.toLowerCase())},first:a(function(){return[0]}),last:a(function(e,t){return[t-1]}),eq:a(function(e,t,n){return[n<0?n+t:n]}),even:a(function(e,t){for(var n=0;n<t;n+=2)e.push(n);return e}),odd:a(function(e,t){for(var n=1;n<t;n+=2)e.push(n);return e}),lt:a(function(e,t,n){for(var r=n<0?n+t:n;--r>=0;)e.push(r);return e}),gt:a(function(e,t,n){for(var r=n<0?n+t:n;++r<t;)e.push(r);return e})}}).pseudos.nth=b.pseudos.eq;for(y in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})b.pseudos[y]=function(e){return function(t){return"input"===t.nodeName.toLowerCase()&&t.type===e}}(y);for(y in{submit:!0,reset:!0})b.pseudos[y]=function(e){return function(t){var n=t.nodeName.toLowerCase();return("input"===n||"button"===n)&&t.type===e}}(y);return l.prototype=b.filters=b.pseudos,b.setFilters=new l,C=t.tokenize=function(e,n){var r,i,o,s,a,u,l,c=B[e+" "];if(c)return n?0:c.slice(0);for(a=e,u=[],l=b.preFilter;a;){r&&!(i=se.exec(a))||(i&&(a=a.slice(i[0].length)||a),u.push(o=[])),r=!1,(i=ae.exec(a))&&(r=i.shift(),o.push({value:r,type:i[0].replace(oe," ")}),a=a.slice(r.length));for(s in b.filter)!(i=fe[s].exec(a))||l[s]&&!(i=l[s](i))||(r=i.shift(),o.push({value:r,type:s,matches:i}),a=a.slice(r.length));if(!r)break}return n?a.length:a?t.error(e):B(e,u).slice(0)},k=t.compile=function(e,t){var n,r=[],i=[],o=_[e+" "];if(!o){for(t||(t=C(e)),n=t.length;n--;)(o=v(t[n]))[R]?r.push(o):i.push(o);(o=_(e,m(i,r))).selector=e}return o},E=t.select=function(e,t,n,r){var i,o,s,a,l,f="function"==typeof e&&e,p=!r&&C(e=f.selector||e);if(n=n||[],1===p.length){if((o=p[0]=p[0].slice(0)).length>2&&"ID"===(s=o[0]).type&&x.getById&&9===t.nodeType&&L&&b.relative[o[1].type]){if(!(t=(b.find.ID(s.matches[0].replace(ye,xe),t)||[])[0]))return n;f&&(t=t.parentNode),e=e.slice(o.shift().value.length)}for(i=fe.needsContext.test(e)?0:o.length;i--&&(s=o[i],!b.relative[a=s.type]);)if((l=b.find[a])&&(r=l(s.matches[0].replace(ye,xe),ve.test(o[0].type)&&u(t.parentNode)||t))){if(o.splice(i,1),!(e=r.length&&c(o)))return Q.apply(n,r),n;break}}return(f||k(e,p))(r,t,!L,n,!t||ve.test(e)&&u(t.parentNode)||t),n},x.sortStable=R.split("").sort(X).join("")===R,x.detectDuplicates=!!j,D(),x.sortDetached=i(function(e){return 1&e.compareDocumentPosition(A.createElement("div"))}),i(function(e){return e.innerHTML="<a href='#'></a>","#"===e.firstChild.getAttribute("href")})||o("type|href|height|width",function(e,t,n){if(!n)return e.getAttribute(t,"type"===t.toLowerCase()?1:2)}),x.attributes&&i(function(e){return e.innerHTML="<input/>",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")})||o("value",function(e,t,n){if(!n&&"input"===e.nodeName.toLowerCase())return e.defaultValue}),i(function(e){return null==e.getAttribute("disabled")})||o(Z,function(e,t,n){var r;if(!n)return!0===e[t]?t.toLowerCase():(r=e.getAttributeNode(t))&&r.specified?r.value:null}),t}(e);re.find=ue,re.expr=ue.selectors,re.expr[":"]=re.expr.pseudos,re.uniqueSort=re.unique=ue.uniqueSort,re.text=ue.getText,re.isXMLDoc=ue.isXML,re.contains=ue.contains;var le=function(e,t,n){for(var r=[],i=void 0!==n;(e=e[t])&&9!==e.nodeType;)if(1===e.nodeType){if(i&&re(e).is(n))break;r.push(e)}return r},ce=function(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n},fe=re.expr.match.needsContext,pe=/^<([\w-]+)\s*\/?>(?:<\/\1>|)$/,de=/^.[^:#\[\.,]*$/;re.filter=function(e,t,n){var r=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===r.nodeType?re.find.matchesSelector(r,e)?[r]:[]:re.find.matches(e,re.grep(t,function(e){return 1===e.nodeType}))},re.fn.extend({find:function(e){var t,n=this.length,r=[],i=this;if("string"!=typeof e)return this.pushStack(re(e).filter(function(){for(t=0;t<n;t++)if(re.contains(i[t],this))return!0}));for(t=0;t<n;t++)re.find(e,i[t],r);return r=this.pushStack(n>1?re.unique(r):r),r.selector=this.selector?this.selector+" "+e:e,r},filter:function(e){return this.pushStack(r(this,e||[],!1))},not:function(e){return this.pushStack(r(this,e||[],!0))},is:function(e){return!!r(this,"string"==typeof e&&fe.test(e)?re(e):e||[],!1).length}});var he,ge=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/;(re.fn.init=function(e,t,n){var r,i;if(!e)return this;if(n=n||he,"string"==typeof e){if(!(r="<"===e[0]&&">"===e[e.length-1]&&e.length>=3?[null,e,null]:ge.exec(e))||!r[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(r[1]){if(t=t instanceof re?t[0]:t,re.merge(this,re.parseHTML(r[1],t&&t.nodeType?t.ownerDocument||t:Y,!0)),pe.test(r[1])&&re.isPlainObject(t))for(r in t)re.isFunction(this[r])?this[r](t[r]):this.attr(r,t[r]);return this}return(i=Y.getElementById(r[2]))&&i.parentNode&&(this.length=1,this[0]=i),this.context=Y,this.selector=e,this}return e.nodeType?(this.context=this[0]=e,this.length=1,this):re.isFunction(e)?void 0!==n.ready?n.ready(e):e(re):(void 0!==e.selector&&(this.selector=e.selector,this.context=e.context),re.makeArray(e,this))}).prototype=re.fn,he=re(Y);var ve=/^(?:parents|prev(?:Until|All))/,me={children:!0,contents:!0,next:!0,prev:!0};re.fn.extend({has:function(e){var t=re(e,this),n=t.length;return this.filter(function(){for(var e=0;e<n;e++)if(re.contains(this,t[e]))return!0})},closest:function(e,t){for(var n,r=0,i=this.length,o=[],s=fe.test(e)||"string"!=typeof e?re(e,t||this.context):0;r<i;r++)for(n=this[r];n&&n!==t;n=n.parentNode)if(n.nodeType<11&&(s?s.index(n)>-1:1===n.nodeType&&re.find.matchesSelector(n,e))){o.push(n);break}return this.pushStack(o.length>1?re.uniqueSort(o):o)},index:function(e){return e?"string"==typeof e?K.call(re(e),this[0]):K.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(re.uniqueSort(re.merge(this.get(),re(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),re.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return le(e,"parentNode")},parentsUntil:function(e,t,n){return le(e,"parentNode",n)},next:function(e){return i(e,"nextSibling")},prev:function(e){return i(e,"previousSibling")},nextAll:function(e){return le(e,"nextSibling")},prevAll:function(e){return le(e,"previousSibling")},nextUntil:function(e,t,n){return le(e,"nextSibling",n)},prevUntil:function(e,t,n){return le(e,"previousSibling",n)},siblings:function(e){return ce((e.parentNode||{}).firstChild,e)},children:function(e){return ce(e.firstChild)},contents:function(e){return e.contentDocument||re.merge([],e.childNodes)}},function(e,t){re.fn[e]=function(n,r){var i=re.map(this,t,n);return"Until"!==e.slice(-5)&&(r=n),r&&"string"==typeof r&&(i=re.filter(r,i)),this.length>1&&(me[e]||re.uniqueSort(i),ve.test(e)&&i.reverse()),this.pushStack(i)}});var ye=/\S+/g;re.Callbacks=function(e){e="string"==typeof e?o(e):re.extend({},e);var t,n,r,i,s=[],a=[],u=-1,l=function(){for(i=e.once,r=t=!0;a.length;u=-1)for(n=a.shift();++u<s.length;)!1===s[u].apply(n[0],n[1])&&e.stopOnFalse&&(u=s.length,n=!1);e.memory||(n=!1),t=!1,i&&(s=n?[]:"")},c={add:function(){return s&&(n&&!t&&(u=s.length-1,a.push(n)),function t(n){re.each(n,function(n,r){re.isFunction(r)?e.unique&&c.has(r)||s.push(r):r&&r.length&&"string"!==re.type(r)&&t(r)})}(arguments),n&&!t&&l()),this},remove:function(){return re.each(arguments,function(e,t){for(var n;(n=re.inArray(t,s,n))>-1;)s.splice(n,1),n<=u&&u--}),this},has:function(e){return e?re.inArray(e,s)>-1:s.length>0},empty:function(){return s&&(s=[]),this},disable:function(){return i=a=[],s=n="",this},disabled:function(){return!s},lock:function(){return i=a=[],n||(s=n=""),this},locked:function(){return!!i},fireWith:function(e,n){return i||(n=[e,(n=n||[]).slice?n.slice():n],a.push(n),t||l()),this},fire:function(){return c.fireWith(this,arguments),this},fired:function(){return!!r}};return c},re.extend({Deferred:function(e){var t=[["resolve","done",re.Callbacks("once memory"),"resolved"],["reject","fail",re.Callbacks("once memory"),"rejected"],["notify","progress",re.Callbacks("memory")]],n="pending",r={state:function(){return n},always:function(){return i.done(arguments).fail(arguments),this},then:function(){var e=arguments;return re.Deferred(function(n){re.each(t,function(t,o){var s=re.isFunction(e[t])&&e[t];i[o[1]](function(){var e=s&&s.apply(this,arguments);e&&re.isFunction(e.promise)?e.promise().progress(n.notify).done(n.resolve).fail(n.reject):n[o[0]+"With"](this===r?n.promise():this,s?[e]:arguments)})}),e=null}).promise()},promise:function(e){return null!=e?re.extend(e,r):r}},i={};return r.pipe=r.then,re.each(t,function(e,o){var s=o[2],a=o[3];r[o[1]]=s.add,a&&s.add(function(){n=a},t[1^e][2].disable,t[2][2].lock),i[o[0]]=function(){return i[o[0]+"With"](this===i?r:this,arguments),this},i[o[0]+"With"]=s.fireWith}),r.promise(i),e&&e.call(i,i),i},when:function(e){var t,n,r,i=0,o=G.call(arguments),s=o.length,a=1!==s||e&&re.isFunction(e.promise)?s:0,u=1===a?e:re.Deferred(),l=function(e,n,r){return function(i){n[e]=this,r[e]=arguments.length>1?G.call(arguments):i,r===t?u.notifyWith(n,r):--a||u.resolveWith(n,r)}};if(s>1)for(t=new Array(s),n=new Array(s),r=new Array(s);i<s;i++)o[i]&&re.isFunction(o[i].promise)?o[i].promise().progress(l(i,n,t)).done(l(i,r,o)).fail(u.reject):--a;return a||u.resolveWith(r,o),u.promise()}});var xe;re.fn.ready=function(e){return re.ready.promise().done(e),this},re.extend({isReady:!1,readyWait:1,holdReady:function(e){e?re.readyWait++:re.ready(!0)},ready:function(e){(!0===e?--re.readyWait:re.isReady)||(re.isReady=!0,!0!==e&&--re.readyWait>0||(xe.resolveWith(Y,[re]),re.fn.triggerHandler&&(re(Y).triggerHandler("ready"),re(Y).off("ready"))))}}),re.ready.promise=function(t){return xe||(xe=re.Deferred(),"complete"===Y.readyState||"loading"!==Y.readyState&&!Y.documentElement.doScroll?e.setTimeout(re.ready):(Y.addEventListener("DOMContentLoaded",s),e.addEventListener("load",s))),xe.promise(t)},re.ready.promise();var be=function(e,t,n,r,i,o,s){var a=0,u=e.length,l=null==n;if("object"===re.type(n)){i=!0;for(a in n)be(e,t,a,n[a],!0,o,s)}else if(void 0!==r&&(i=!0,re.isFunction(r)||(s=!0),l&&(s?(t.call(e,r),t=null):(l=t,t=function(e,t,n){return l.call(re(e),n)})),t))for(;a<u;a++)t(e[a],n,s?r:r.call(e[a],a,t(e[a],n)));return i?e:l?t.call(e):u?t(e[0],n):o},we=function(e){return 1===e.nodeType||9===e.nodeType||!+e.nodeType};a.uid=1,a.prototype={register:function(e,t){var n=t||{};return e.nodeType?e[this.expando]=n:Object.defineProperty(e,this.expando,{value:n,writable:!0,configurable:!0}),e[this.expando]},cache:function(e){if(!we(e))return{};var t=e[this.expando];return t||(t={},we(e)&&(e.nodeType?e[this.expando]=t:Object.defineProperty(e,this.expando,{value:t,configurable:!0}))),t},set:function(e,t,n){var r,i=this.cache(e);if("string"==typeof t)i[t]=n;else for(r in t)i[r]=t[r];return i},get:function(e,t){return void 0===t?this.cache(e):e[this.expando]&&e[this.expando][t]},access:function(e,t,n){var r;return void 0===t||t&&"string"==typeof t&&void 0===n?void 0!==(r=this.get(e,t))?r:this.get(e,re.camelCase(t)):(this.set(e,t,n),void 0!==n?n:t)},remove:function(e,t){var n,r,i,o=e[this.expando];if(void 0!==o){if(void 0===t)this.register(e);else{re.isArray(t)?r=t.concat(t.map(re.camelCase)):(i=re.camelCase(t),r=t in o?[t,i]:(r=i)in o?[r]:r.match(ye)||[]),n=r.length;for(;n--;)delete o[r[n]]}(void 0===t||re.isEmptyObject(o))&&(e.nodeType?e[this.expando]=void 0:delete e[this.expando])}},hasData:function(e){var t=e[this.expando];return void 0!==t&&!re.isEmptyObject(t)}};var Te=new a,Ce=new a,ke=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,Ee=/[A-Z]/g;re.extend({hasData:function(e){return Ce.hasData(e)||Te.hasData(e)},data:function(e,t,n){return Ce.access(e,t,n)},removeData:function(e,t){Ce.remove(e,t)},_data:function(e,t,n){return Te.access(e,t,n)},_removeData:function(e,t){Te.remove(e,t)}}),re.fn.extend({data:function(e,t){var n,r,i,o=this[0],s=o&&o.attributes;if(void 0===e){if(this.length&&(i=Ce.get(o),1===o.nodeType&&!Te.get(o,"hasDataAttrs"))){for(n=s.length;n--;)s[n]&&0===(r=s[n].name).indexOf("data-")&&(r=re.camelCase(r.slice(5)),u(o,r,i[r]));Te.set(o,"hasDataAttrs",!0)}return i}return"object"==typeof e?this.each(function(){Ce.set(this,e)}):be(this,function(t){var n,r;if(o&&void 0===t){if(void 0!==(n=Ce.get(o,e)||Ce.get(o,e.replace(Ee,"-$&").toLowerCase())))return n;if(r=re.camelCase(e),void 0!==(n=Ce.get(o,r)))return n;if(void 0!==(n=u(o,r,void 0)))return n}else r=re.camelCase(e),this.each(function(){var n=Ce.get(this,r);Ce.set(this,r,t),e.indexOf("-")>-1&&void 0!==n&&Ce.set(this,e,t)})},null,t,arguments.length>1,null,!0)},removeData:function(e){return this.each(function(){Ce.remove(this,e)})}}),re.extend({queue:function(e,t,n){var r;if(e)return t=(t||"fx")+"queue",r=Te.get(e,t),n&&(!r||re.isArray(n)?r=Te.access(e,t,re.makeArray(n)):r.push(n)),r||[]},dequeue:function(e,t){t=t||"fx";var n=re.queue(e,t),r=n.length,i=n.shift(),o=re._queueHooks(e,t);"inprogress"===i&&(i=n.shift(),r--),i&&("fx"===t&&n.unshift("inprogress"),delete o.stop,i.call(e,function(){re.dequeue(e,t)},o)),!r&&o&&o.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return Te.get(e,n)||Te.access(e,n,{empty:re.Callbacks("once memory").add(function(){Te.remove(e,[t+"queue",n])})})}}),re.fn.extend({queue:function(e,t){var n=2;return"string"!=typeof e&&(t=e,e="fx",n--),arguments.length<n?re.queue(this[0],e):void 0===t?this:this.each(function(){var n=re.queue(this,e,t);re._queueHooks(this,e),"fx"===e&&"inprogress"!==n[0]&&re.dequeue(this,e)})},dequeue:function(e){return this.each(function(){re.dequeue(this,e)})},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){var n,r=1,i=re.Deferred(),o=this,s=this.length,a=function(){--r||i.resolveWith(o,[o])};for("string"!=typeof e&&(t=e,e=void 0),e=e||"fx";s--;)(n=Te.get(o[s],e+"queueHooks"))&&n.empty&&(r++,n.empty.add(a));return a(),i.promise(t)}});var Ne=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,Se=new RegExp("^(?:([+-])=|)("+Ne+")([a-z%]*)$","i"),je=["Top","Right","Bottom","Left"],De=function(e,t){return e=t||e,"none"===re.css(e,"display")||!re.contains(e.ownerDocument,e)},Ae=/^(?:checkbox|radio)$/i,qe=/<([\w:-]+)/,Le=/^$|\/(?:java|ecma)script/i,He={option:[1,"<select multiple='multiple'>","</select>"],thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};He.optgroup=He.option,He.tbody=He.tfoot=He.colgroup=He.caption=He.thead,He.th=He.td;var Oe=/<|&#?\w+;/;!function(){var e=Y.createDocumentFragment().appendChild(Y.createElement("div")),t=Y.createElement("input");t.setAttribute("type","radio"),t.setAttribute("checked","checked"),t.setAttribute("name","t"),e.appendChild(t),ne.checkClone=e.cloneNode(!0).cloneNode(!0).lastChild.checked,e.innerHTML="<textarea>x</textarea>",ne.noCloneChecked=!!e.cloneNode(!0).lastChild.defaultValue}();var Fe=/^key/,Pe=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Re=/^([^.]*)(?:\.(.+)|)/;re.event={global:{},add:function(e,t,n,r,i){var o,s,a,u,l,c,f,p,d,h,g,v=Te.get(e);if(v)for(n.handler&&(n=(o=n).handler,i=o.selector),n.guid||(n.guid=re.guid++),(u=v.events)||(u=v.events={}),(s=v.handle)||(s=v.handle=function(t){return void 0!==re&&re.event.triggered!==t.type?re.event.dispatch.apply(e,arguments):void 0}),l=(t=(t||"").match(ye)||[""]).length;l--;)d=g=(a=Re.exec(t[l])||[])[1],h=(a[2]||"").split(".").sort(),d&&(f=re.event.special[d]||{},d=(i?f.delegateType:f.bindType)||d,f=re.event.special[d]||{},c=re.extend({type:d,origType:g,data:r,handler:n,guid:n.guid,selector:i,needsContext:i&&re.expr.match.needsContext.test(i),namespace:h.join(".")},o),(p=u[d])||((p=u[d]=[]).delegateCount=0,f.setup&&!1!==f.setup.call(e,r,h,s)||e.addEventListener&&e.addEventListener(d,s)),f.add&&(f.add.call(e,c),c.handler.guid||(c.handler.guid=n.guid)),i?p.splice(p.delegateCount++,0,c):p.push(c),re.event.global[d]=!0)},remove:function(e,t,n,r,i){var o,s,a,u,l,c,f,p,d,h,g,v=Te.hasData(e)&&Te.get(e);if(v&&(u=v.events)){for(l=(t=(t||"").match(ye)||[""]).length;l--;)if(a=Re.exec(t[l])||[],d=g=a[1],h=(a[2]||"").split(".").sort(),d){for(f=re.event.special[d]||{},p=u[d=(r?f.delegateType:f.bindType)||d]||[],a=a[2]&&new RegExp("(^|\\.)"+h.join("\\.(?:.*\\.|)")+"(\\.|$)"),s=o=p.length;o--;)c=p[o],!i&&g!==c.origType||n&&n.guid!==c.guid||a&&!a.test(c.namespace)||r&&r!==c.selector&&("**"!==r||!c.selector)||(p.splice(o,1),c.selector&&p.delegateCount--,f.remove&&f.remove.call(e,c));s&&!p.length&&(f.teardown&&!1!==f.teardown.call(e,h,v.handle)||re.removeEvent(e,d,v.handle),delete u[d])}else for(d in u)re.event.remove(e,d+t[l],n,r,!0);re.isEmptyObject(u)&&Te.remove(e,"handle events")}},dispatch:function(e){e=re.event.fix(e);var t,n,r,i,o,s=[],a=G.call(arguments),u=(Te.get(this,"events")||{})[e.type]||[],l=re.event.special[e.type]||{};if(a[0]=e,e.delegateTarget=this,!l.preDispatch||!1!==l.preDispatch.call(this,e)){for(s=re.event.handlers.call(this,e,u),t=0;(i=s[t++])&&!e.isPropagationStopped();)for(e.currentTarget=i.elem,n=0;(o=i.handlers[n++])&&!e.isImmediatePropagationStopped();)e.rnamespace&&!e.rnamespace.test(o.namespace)||(e.handleObj=o,e.data=o.data,void 0!==(r=((re.event.special[o.origType]||{}).handle||o.handler).apply(i.elem,a))&&!1===(e.result=r)&&(e.preventDefault(),e.stopPropagation()));return l.postDispatch&&l.postDispatch.call(this,e),e.result}},handlers:function(e,t){var n,r,i,o,s=[],a=t.delegateCount,u=e.target;if(a&&u.nodeType&&("click"!==e.type||isNaN(e.button)||e.button<1))for(;u!==this;u=u.parentNode||this)if(1===u.nodeType&&(!0!==u.disabled||"click"!==e.type)){for(r=[],n=0;n<a;n++)void 0===r[i=(o=t[n]).selector+" "]&&(r[i]=o.needsContext?re(i,this).index(u)>-1:re.find(i,this,null,[u]).length),r[i]&&r.push(o);r.length&&s.push({elem:u,handlers:r})}return a<t.length&&s.push({elem:this,handlers:t.slice(a)}),s},props:"altKey bubbles cancelable ctrlKey currentTarget detail eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),fixHooks:{},keyHooks:{props:"char charCode key keyCode".split(" "),filter:function(e,t){return null==e.which&&(e.which=null!=t.charCode?t.charCode:t.keyCode),e}},mouseHooks:{props:"button buttons clientX clientY offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(e,t){var n,r,i,o=t.button;return null==e.pageX&&null!=t.clientX&&(r=(n=e.target.ownerDocument||Y).documentElement,i=n.body,e.pageX=t.clientX+(r&&r.scrollLeft||i&&i.scrollLeft||0)-(r&&r.clientLeft||i&&i.clientLeft||0),e.pageY=t.clientY+(r&&r.scrollTop||i&&i.scrollTop||0)-(r&&r.clientTop||i&&i.clientTop||0)),e.which||void 0===o||(e.which=1&o?1:2&o?3:4&o?2:0),e}},fix:function(e){if(e[re.expando])return e;var t,n,r,i=e.type,o=e,s=this.fixHooks[i];for(s||(this.fixHooks[i]=s=Pe.test(i)?this.mouseHooks:Fe.test(i)?this.keyHooks:{}),r=s.props?this.props.concat(s.props):this.props,e=new re.Event(o),t=r.length;t--;)e[n=r[t]]=o[n];return e.target||(e.target=Y),3===e.target.nodeType&&(e.target=e.target.parentNode),s.filter?s.filter(e,o):e},special:{load:{noBubble:!0},focus:{trigger:function(){if(this!==g()&&this.focus)return this.focus(),!1},delegateType:"focusin"},blur:{trigger:function(){if(this===g()&&this.blur)return this.blur(),!1},delegateType:"focusout"},click:{trigger:function(){if("checkbox"===this.type&&this.click&&re.nodeName(this,"input"))return this.click(),!1},_default:function(e){return re.nodeName(e.target,"a")}},beforeunload:{postDispatch:function(e){void 0!==e.result&&e.originalEvent&&(e.originalEvent.returnValue=e.result)}}}},re.removeEvent=function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n)},re.Event=function(e,t){if(!(this instanceof re.Event))return new re.Event(e,t);e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||void 0===e.defaultPrevented&&!1===e.returnValue?d:h):this.type=e,t&&re.extend(this,t),this.timeStamp=e&&e.timeStamp||re.now(),this[re.expando]=!0},re.Event.prototype={constructor:re.Event,isDefaultPrevented:h,isPropagationStopped:h,isImmediatePropagationStopped:h,isSimulated:!1,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=d,e&&!this.isSimulated&&e.preventDefault()},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=d,e&&!this.isSimulated&&e.stopPropagation()},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=d,e&&!this.isSimulated&&e.stopImmediatePropagation(),this.stopPropagation()}},re.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(e,t){re.event.special[e]={delegateType:t,bindType:t,handle:function(e){var n,r=this,i=e.relatedTarget,o=e.handleObj;return i&&(i===r||re.contains(r,i))||(e.type=o.origType,n=o.handler.apply(this,arguments),e.type=t),n}}}),re.fn.extend({on:function(e,t,n,r){return v(this,e,t,n,r)},one:function(e,t,n,r){return v(this,e,t,n,r,1)},off:function(e,t,n){var r,i;if(e&&e.preventDefault&&e.handleObj)return r=e.handleObj,re(e.delegateTarget).off(r.namespace?r.origType+"."+r.namespace:r.origType,r.selector,r.handler),this;if("object"==typeof e){for(i in e)this.off(i,t,e[i]);return this}return!1!==t&&"function"!=typeof t||(n=t,t=void 0),!1===n&&(n=h),this.each(function(){re.event.remove(this,e,n,t)})}});var Me=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:-]+)[^>]*)\/>/gi,Ie=/<script|<style|<link/i,We=/checked\s*(?:[^=]|=\s*.checked.)/i,$e=/^true\/(.*)/,Be=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;re.extend({htmlPrefilter:function(e){return e.replace(Me,"<$1></$2>")},clone:function(e,t,n){var r,i,o,s,a=e.cloneNode(!0),u=re.contains(e.ownerDocument,e);if(!(ne.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||re.isXMLDoc(e)))for(s=c(a),r=0,i=(o=c(e)).length;r<i;r++)w(o[r],s[r]);if(t)if(n)for(o=o||c(e),s=s||c(a),r=0,i=o.length;r<i;r++)b(o[r],s[r]);else b(e,a);return(s=c(a,"script")).length>0&&f(s,!u&&c(e,"script")),a},cleanData:function(e){for(var t,n,r,i=re.event.special,o=0;void 0!==(n=e[o]);o++)if(we(n)){if(t=n[Te.expando]){if(t.events)for(r in t.events)i[r]?re.event.remove(n,r):re.removeEvent(n,r,t.handle);n[Te.expando]=void 0}n[Ce.expando]&&(n[Ce.expando]=void 0)}}}),re.fn.extend({domManip:T,detach:function(e){return C(this,e,!0)},remove:function(e){return C(this,e)},text:function(e){return be(this,function(e){return void 0===e?re.text(this):this.empty().each(function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=e)})},null,e,arguments.length)},append:function(){return T(this,arguments,function(e){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||m(this,e).appendChild(e)})},prepend:function(){return T(this,arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=m(this,e);t.insertBefore(e,t.firstChild)}})},before:function(){return T(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this)})},after:function(){return T(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)})},empty:function(){for(var e,t=0;null!=(e=this[t]);t++)1===e.nodeType&&(re.cleanData(c(e,!1)),e.textContent="");return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map(function(){return re.clone(this,e,t)})},html:function(e){return be(this,function(e){var t=this[0]||{},n=0,r=this.length;if(void 0===e&&1===t.nodeType)return t.innerHTML;if("string"==typeof e&&!Ie.test(e)&&!He[(qe.exec(e)||["",""])[1].toLowerCase()]){e=re.htmlPrefilter(e);try{for(;n<r;n++)1===(t=this[n]||{}).nodeType&&(re.cleanData(c(t,!1)),t.innerHTML=e);t=0}catch(e){}}t&&this.empty().append(e)},null,e,arguments.length)},replaceWith:function(){var e=[];return T(this,arguments,function(t){var n=this.parentNode;re.inArray(this,e)<0&&(re.cleanData(c(this)),n&&n.replaceChild(t,this))},e)}}),re.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(e,t){re.fn[e]=function(e){for(var n,r=[],i=re(e),o=i.length-1,s=0;s<=o;s++)n=s===o?this:this.clone(!0),re(i[s])[t](n),J.apply(r,n.get());return this.pushStack(r)}});var _e,Xe={HTML:"block",BODY:"block"},ze=/^margin/,Ue=new RegExp("^("+Ne+")(?!px)[a-z%]+$","i"),Ve=function(t){var n=t.ownerDocument.defaultView;return n&&n.opener||(n=e),n.getComputedStyle(t)},Ye=function(e,t,n,r){var i,o,s={};for(o in t)s[o]=e.style[o],e.style[o]=t[o];i=n.apply(e,r||[]);for(o in t)e.style[o]=s[o];return i},Ge=Y.documentElement;!function(){function t(){a.style.cssText="-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;position:relative;display:block;margin:auto;border:1px;padding:1px;top:1%;width:50%",a.innerHTML="",Ge.appendChild(s);var t=e.getComputedStyle(a);n="1%"!==t.top,o="2px"===t.marginLeft,r="4px"===t.width,a.style.marginRight="50%",i="4px"===t.marginRight,Ge.removeChild(s)}var n,r,i,o,s=Y.createElement("div"),a=Y.createElement("div");a.style&&(a.style.backgroundClip="content-box",a.cloneNode(!0).style.backgroundClip="",ne.clearCloneStyle="content-box"===a.style.backgroundClip,s.style.cssText="border:0;width:8px;height:0;top:0;left:-9999px;padding:0;margin-top:1px;position:absolute",s.appendChild(a),re.extend(ne,{pixelPosition:function(){return t(),n},boxSizingReliable:function(){return null==r&&t(),r},pixelMarginRight:function(){return null==r&&t(),i},reliableMarginLeft:function(){return null==r&&t(),o},reliableMarginRight:function(){var t,n=a.appendChild(Y.createElement("div"));return n.style.cssText=a.style.cssText="-webkit-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:0",n.style.marginRight=n.style.width="0",a.style.width="1px",Ge.appendChild(s),t=!parseFloat(e.getComputedStyle(n).marginRight),Ge.removeChild(s),a.removeChild(n),t}}))}();var Qe=/^(none|table(?!-c[ea]).+)/,Je={position:"absolute",visibility:"hidden",display:"block"},Ke={letterSpacing:"0",fontWeight:"400"},Ze=["Webkit","O","Moz","ms"],et=Y.createElement("div").style;re.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=N(e,"opacity");return""===n?"1":n}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{float:"cssFloat"},style:function(e,t,n,r){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var i,o,s,a=re.camelCase(t),u=e.style;if(t=re.cssProps[a]||(re.cssProps[a]=j(a)||a),s=re.cssHooks[t]||re.cssHooks[a],void 0===n)return s&&"get"in s&&void 0!==(i=s.get(e,!1,r))?i:u[t];"string"==(o=typeof n)&&(i=Se.exec(n))&&i[1]&&(n=l(e,t,i),o="number"),null!=n&&n===n&&("number"===o&&(n+=i&&i[3]||(re.cssNumber[a]?"":"px")),ne.clearCloneStyle||""!==n||0!==t.indexOf("background")||(u[t]="inherit"),s&&"set"in s&&void 0===(n=s.set(e,n,r))||(u[t]=n))}},css:function(e,t,n,r){var i,o,s,a=re.camelCase(t);return t=re.cssProps[a]||(re.cssProps[a]=j(a)||a),(s=re.cssHooks[t]||re.cssHooks[a])&&"get"in s&&(i=s.get(e,!0,n)),void 0===i&&(i=N(e,t,r)),"normal"===i&&t in Ke&&(i=Ke[t]),""===n||n?(o=parseFloat(i),!0===n||isFinite(o)?o||0:i):i}}),re.each(["height","width"],function(e,t){re.cssHooks[t]={get:function(e,n,r){if(n)return Qe.test(re.css(e,"display"))&&0===e.offsetWidth?Ye(e,Je,function(){return q(e,t,r)}):q(e,t,r)},set:function(e,n,r){var i,o=r&&Ve(e),s=r&&A(e,t,r,"border-box"===re.css(e,"boxSizing",!1,o),o);return s&&(i=Se.exec(n))&&"px"!==(i[3]||"px")&&(e.style[t]=n,n=re.css(e,t)),D(0,n,s)}}}),re.cssHooks.marginLeft=S(ne.reliableMarginLeft,function(e,t){if(t)return(parseFloat(N(e,"marginLeft"))||e.getBoundingClientRect().left-Ye(e,{marginLeft:0},function(){return e.getBoundingClientRect().left}))+"px"}),re.cssHooks.marginRight=S(ne.reliableMarginRight,function(e,t){if(t)return Ye(e,{display:"inline-block"},N,[e,"marginRight"])}),re.each({margin:"",padding:"",border:"Width"},function(e,t){re.cssHooks[e+t]={expand:function(n){for(var r=0,i={},o="string"==typeof n?n.split(" "):[n];r<4;r++)i[e+je[r]+t]=o[r]||o[r-2]||o[0];return i}},ze.test(e)||(re.cssHooks[e+t].set=D)}),re.fn.extend({css:function(e,t){return be(this,function(e,t,n){var r,i,o={},s=0;if(re.isArray(t)){for(r=Ve(e),i=t.length;s<i;s++)o[t[s]]=re.css(e,t[s],!1,r);return o}return void 0!==n?re.style(e,t,n):re.css(e,t)},e,t,arguments.length>1)},show:function(){return L(this,!0)},hide:function(){return L(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each(function(){De(this)?re(this).show():re(this).hide()})}}),re.Tween=H,H.prototype={constructor:H,init:function(e,t,n,r,i,o){this.elem=e,this.prop=n,this.easing=i||re.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=r,this.unit=o||(re.cssNumber[n]?"":"px")},cur:function(){var e=H.propHooks[this.prop];return e&&e.get?e.get(this):H.propHooks._default.get(this)},run:function(e){var t,n=H.propHooks[this.prop];return this.options.duration?this.pos=t=re.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):this.pos=t=e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):H.propHooks._default.set(this),this}},H.prototype.init.prototype=H.prototype,H.propHooks={_default:{get:function(e){var t;return 1!==e.elem.nodeType||null!=e.elem[e.prop]&&null==e.elem.style[e.prop]?e.elem[e.prop]:(t=re.css(e.elem,e.prop,""))&&"auto"!==t?t:0},set:function(e){re.fx.step[e.prop]?re.fx.step[e.prop](e):1!==e.elem.nodeType||null==e.elem.style[re.cssProps[e.prop]]&&!re.cssHooks[e.prop]?e.elem[e.prop]=e.now:re.style(e.elem,e.prop,e.now+e.unit)}}},H.propHooks.scrollTop=H.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},re.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},_default:"swing"},re.fx=H.prototype.init,re.fx.step={};var tt,nt,rt=/^(?:toggle|show|hide)$/,it=/queueHooks$/;re.Animation=re.extend(M,{tweeners:{"*":[function(e,t){var n=this.createTween(e,t);return l(n.elem,e,Se.exec(t),n),n}]},tweener:function(e,t){re.isFunction(e)?(t=e,e=["*"]):e=e.match(ye);for(var n,r=0,i=e.length;r<i;r++)n=e[r],M.tweeners[n]=M.tweeners[n]||[],M.tweeners[n].unshift(t)},prefilters:[function(e,t,n){var r,i,o,s,a,u,l,c=this,f={},p=e.style,d=e.nodeType&&De(e),h=Te.get(e,"fxshow");n.queue||(null==(a=re._queueHooks(e,"fx")).unqueued&&(a.unqueued=0,u=a.empty.fire,a.empty.fire=function(){a.unqueued||u()}),a.unqueued++,c.always(function(){c.always(function(){a.unqueued--,re.queue(e,"fx").length||a.empty.fire()})})),1===e.nodeType&&("height"in t||"width"in t)&&(n.overflow=[p.overflow,p.overflowX,p.overflowY],"inline"===("none"===(l=re.css(e,"display"))?Te.get(e,"olddisplay")||E(e.nodeName):l)&&"none"===re.css(e,"float")&&(p.display="inline-block")),n.overflow&&(p.overflow="hidden",c.always(function(){p.overflow=n.overflow[0],p.overflowX=n.overflow[1],p.overflowY=n.overflow[2]}));for(r in t)if(i=t[r],rt.exec(i)){if(delete t[r],o=o||"toggle"===i,i===(d?"hide":"show")){if("show"!==i||!h||void 0===h[r])continue;d=!0}f[r]=h&&h[r]||re.style(e,r)}else l=void 0;if(re.isEmptyObject(f))"inline"===("none"===l?E(e.nodeName):l)&&(p.display=l);else{h?"hidden"in h&&(d=h.hidden):h=Te.access(e,"fxshow",{}),o&&(h.hidden=!d),d?re(e).show():c.done(function(){re(e).hide()}),c.done(function(){var t;Te.remove(e,"fxshow");for(t in f)re.style(e,t,f[t])});for(r in f)s=P(d?h[r]:0,r,c),r in h||(h[r]=s.start,d&&(s.end=s.start,s.start="width"===r||"height"===r?1:0))}}],prefilter:function(e,t){t?M.prefilters.unshift(e):M.prefilters.push(e)}}),re.speed=function(e,t,n){var r=e&&"object"==typeof e?re.extend({},e):{complete:n||!n&&t||re.isFunction(e)&&e,duration:e,easing:n&&t||t&&!re.isFunction(t)&&t};return r.duration=re.fx.off?0:"number"==typeof r.duration?r.duration:r.duration in re.fx.speeds?re.fx.speeds[r.duration]:re.fx.speeds._default,null!=r.queue&&!0!==r.queue||(r.queue="fx"),r.old=r.complete,r.complete=function(){re.isFunction(r.old)&&r.old.call(this),r.queue&&re.dequeue(this,r.queue)},r},re.fn.extend({fadeTo:function(e,t,n,r){return this.filter(De).css("opacity",0).show().end().animate({opacity:t},e,n,r)},animate:function(e,t,n,r){var i=re.isEmptyObject(e),o=re.speed(t,n,r),s=function(){var t=M(this,re.extend({},e),o);(i||Te.get(this,"finish"))&&t.stop(!0)};return s.finish=s,i||!1===o.queue?this.each(s):this.queue(o.queue,s)},stop:function(e,t,n){var r=function(e){var t=e.stop;delete e.stop,t(n)};return"string"!=typeof e&&(n=t,t=e,e=void 0),t&&!1!==e&&this.queue(e||"fx",[]),this.each(function(){var t=!0,i=null!=e&&e+"queueHooks",o=re.timers,s=Te.get(this);if(i)s[i]&&s[i].stop&&r(s[i]);else for(i in s)s[i]&&s[i].stop&&it.test(i)&&r(s[i]);for(i=o.length;i--;)o[i].elem!==this||null!=e&&o[i].queue!==e||(o[i].anim.stop(n),t=!1,o.splice(i,1));!t&&n||re.dequeue(this,e)})},finish:function(e){return!1!==e&&(e=e||"fx"),this.each(function(){var t,n=Te.get(this),r=n[e+"queue"],i=n[e+"queueHooks"],o=re.timers,s=r?r.length:0;for(n.finish=!0,re.queue(this,e,[]),i&&i.stop&&i.stop.call(this,!0),t=o.length;t--;)o[t].elem===this&&o[t].queue===e&&(o[t].anim.stop(!0),o.splice(t,1));for(t=0;t<s;t++)r[t]&&r[t].finish&&r[t].finish.call(this);delete n.finish})}}),re.each(["toggle","show","hide"],function(e,t){var n=re.fn[t];re.fn[t]=function(e,r,i){return null==e||"boolean"==typeof e?n.apply(this,arguments):this.animate(F(t,!0),e,r,i)}}),re.each({slideDown:F("show"),slideUp:F("hide"),slideToggle:F("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(e,t){re.fn[e]=function(e,n,r){return this.animate(t,e,n,r)}}),re.timers=[],re.fx.tick=function(){var e,t=0,n=re.timers;for(tt=re.now();t<n.length;t++)(e=n[t])()||n[t]!==e||n.splice(t--,1);n.length||re.fx.stop(),tt=void 0},re.fx.timer=function(e){re.timers.push(e),e()?re.fx.start():re.timers.pop()},re.fx.interval=13,re.fx.start=function(){nt||(nt=e.setInterval(re.fx.tick,re.fx.interval))},re.fx.stop=function(){e.clearInterval(nt),nt=null},re.fx.speeds={slow:600,fast:200,_default:400},re.fn.delay=function(t,n){return t=re.fx?re.fx.speeds[t]||t:t,n=n||"fx",this.queue(n,function(n,r){var i=e.setTimeout(n,t);r.stop=function(){e.clearTimeout(i)}})},function(){var e=Y.createElement("input"),t=Y.createElement("select"),n=t.appendChild(Y.createElement("option"));e.type="checkbox",ne.checkOn=""!==e.value,ne.optSelected=n.selected,t.disabled=!0,ne.optDisabled=!n.disabled,(e=Y.createElement("input")).value="t",e.type="radio",ne.radioValue="t"===e.value}();var ot,st=re.expr.attrHandle;re.fn.extend({attr:function(e,t){return be(this,re.attr,e,t,arguments.length>1)},removeAttr:function(e){return this.each(function(){re.removeAttr(this,e)})}}),re.extend({attr:function(e,t,n){var r,i,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return void 0===e.getAttribute?re.prop(e,t,n):(1===o&&re.isXMLDoc(e)||(t=t.toLowerCase(),i=re.attrHooks[t]||(re.expr.match.bool.test(t)?ot:void 0)),void 0!==n?null===n?void re.removeAttr(e,t):i&&"set"in i&&void 0!==(r=i.set(e,n,t))?r:(e.setAttribute(t,n+""),n):i&&"get"in i&&null!==(r=i.get(e,t))?r:null==(r=re.find.attr(e,t))?void 0:r)},attrHooks:{type:{set:function(e,t){if(!ne.radioValue&&"radio"===t&&re.nodeName(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}}},removeAttr:function(e,t){var n,r,i=0,o=t&&t.match(ye);if(o&&1===e.nodeType)for(;n=o[i++];)r=re.propFix[n]||n,re.expr.match.bool.test(n)&&(e[r]=!1),e.removeAttribute(n)}}),ot={set:function(e,t,n){return!1===t?re.removeAttr(e,n):e.setAttribute(n,n),n}},re.each(re.expr.match.bool.source.match(/\w+/g),function(e,t){var n=st[t]||re.find.attr;st[t]=function(e,t,r){var i,o;return r||(o=st[t],st[t]=i,i=null!=n(e,t,r)?t.toLowerCase():null,st[t]=o),i}});var at=/^(?:input|select|textarea|button)$/i,ut=/^(?:a|area)$/i;re.fn.extend({prop:function(e,t){return be(this,re.prop,e,t,arguments.length>1)},removeProp:function(e){return this.each(function(){delete this[re.propFix[e]||e]})}}),re.extend({prop:function(e,t,n){var r,i,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return 1===o&&re.isXMLDoc(e)||(t=re.propFix[t]||t,i=re.propHooks[t]),void 0!==n?i&&"set"in i&&void 0!==(r=i.set(e,n,t))?r:e[t]=n:i&&"get"in i&&null!==(r=i.get(e,t))?r:e[t]},propHooks:{tabIndex:{get:function(e){var t=re.find.attr(e,"tabindex");return t?parseInt(t,10):at.test(e.nodeName)||ut.test(e.nodeName)&&e.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),ne.optSelected||(re.propHooks.selected={get:function(e){var t=e.parentNode;return t&&t.parentNode&&t.parentNode.selectedIndex,null},set:function(e){var t=e.parentNode;t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex)}}),re.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){re.propFix[this.toLowerCase()]=this});var lt=/[\t\r\n\f]/g;re.fn.extend({addClass:function(e){var t,n,r,i,o,s,a,u=0;if(re.isFunction(e))return this.each(function(t){re(this).addClass(e.call(this,t,I(this)))});if("string"==typeof e&&e)for(t=e.match(ye)||[];n=this[u++];)if(i=I(n),r=1===n.nodeType&&(" "+i+" ").replace(lt," ")){for(s=0;o=t[s++];)r.indexOf(" "+o+" ")<0&&(r+=o+" ");i!==(a=re.trim(r))&&n.setAttribute("class",a)}return this},removeClass:function(e){var t,n,r,i,o,s,a,u=0;if(re.isFunction(e))return this.each(function(t){re(this).removeClass(e.call(this,t,I(this)))});if(!arguments.length)return this.attr("class","");if("string"==typeof e&&e)for(t=e.match(ye)||[];n=this[u++];)if(i=I(n),r=1===n.nodeType&&(" "+i+" ").replace(lt," ")){for(s=0;o=t[s++];)for(;r.indexOf(" "+o+" ")>-1;)r=r.replace(" "+o+" "," ");i!==(a=re.trim(r))&&n.setAttribute("class",a)}return this},toggleClass:function(e,t){var n=typeof e;return"boolean"==typeof t&&"string"===n?t?this.addClass(e):this.removeClass(e):re.isFunction(e)?this.each(function(n){re(this).toggleClass(e.call(this,n,I(this),t),t)}):this.each(function(){var t,r,i,o;if("string"===n)for(r=0,i=re(this),o=e.match(ye)||[];t=o[r++];)i.hasClass(t)?i.removeClass(t):i.addClass(t);else void 0!==e&&"boolean"!==n||((t=I(this))&&Te.set(this,"__className__",t),this.setAttribute&&this.setAttribute("class",t||!1===e?"":Te.get(this,"__className__")||""))})},hasClass:function(e){var t,n,r=0;for(t=" "+e+" ";n=this[r++];)if(1===n.nodeType&&(" "+I(n)+" ").replace(lt," ").indexOf(t)>-1)return!0;return!1}});var ct=/\r/g,ft=/[\x20\t\r\n\f]+/g;re.fn.extend({val:function(e){var t,n,r,i=this[0];{if(arguments.length)return r=re.isFunction(e),this.each(function(n){var i;1===this.nodeType&&(null==(i=r?e.call(this,n,re(this).val()):e)?i="":"number"==typeof i?i+="":re.isArray(i)&&(i=re.map(i,function(e){return null==e?"":e+""})),(t=re.valHooks[this.type]||re.valHooks[this.nodeName.toLowerCase()])&&"set"in t&&void 0!==t.set(this,i,"value")||(this.value=i))});if(i)return(t=re.valHooks[i.type]||re.valHooks[i.nodeName.toLowerCase()])&&"get"in t&&void 0!==(n=t.get(i,"value"))?n:"string"==typeof(n=i.value)?n.replace(ct,""):null==n?"":n}}}),re.extend({valHooks:{option:{get:function(e){var t=re.find.attr(e,"value");return null!=t?t:re.trim(re.text(e)).replace(ft," ")}},select:{get:function(e){for(var t,n,r=e.options,i=e.selectedIndex,o="select-one"===e.type||i<0,s=o?null:[],a=o?i+1:r.length,u=i<0?a:o?i:0;u<a;u++)if(((n=r[u]).selected||u===i)&&(ne.optDisabled?!n.disabled:null===n.getAttribute("disabled"))&&(!n.parentNode.disabled||!re.nodeName(n.parentNode,"optgroup"))){if(t=re(n).val(),o)return t;s.push(t)}return s},set:function(e,t){for(var n,r,i=e.options,o=re.makeArray(t),s=i.length;s--;)((r=i[s]).selected=re.inArray(re.valHooks.option.get(r),o)>-1)&&(n=!0);return n||(e.selectedIndex=-1),o}}}}),re.each(["radio","checkbox"],function(){re.valHooks[this]={set:function(e,t){if(re.isArray(t))return e.checked=re.inArray(re(e).val(),t)>-1}},ne.checkOn||(re.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})});var pt=/^(?:focusinfocus|focusoutblur)$/;re.extend(re.event,{trigger:function(t,n,r,i){var o,s,a,u,l,c,f,p=[r||Y],d=te.call(t,"type")?t.type:t,h=te.call(t,"namespace")?t.namespace.split("."):[];if(s=a=r=r||Y,3!==r.nodeType&&8!==r.nodeType&&!pt.test(d+re.event.triggered)&&(d.indexOf(".")>-1&&(d=(h=d.split(".")).shift(),h.sort()),l=d.indexOf(":")<0&&"on"+d,t=t[re.expando]?t:new re.Event(d,"object"==typeof t&&t),t.isTrigger=i?2:3,t.namespace=h.join("."),t.rnamespace=t.namespace?new RegExp("(^|\\.)"+h.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,t.result=void 0,t.target||(t.target=r),n=null==n?[t]:re.makeArray(n,[t]),f=re.event.special[d]||{},i||!f.trigger||!1!==f.trigger.apply(r,n))){if(!i&&!f.noBubble&&!re.isWindow(r)){for(u=f.delegateType||d,pt.test(u+d)||(s=s.parentNode);s;s=s.parentNode)p.push(s),a=s;a===(r.ownerDocument||Y)&&p.push(a.defaultView||a.parentWindow||e)}for(o=0;(s=p[o++])&&!t.isPropagationStopped();)t.type=o>1?u:f.bindType||d,(c=(Te.get(s,"events")||{})[t.type]&&Te.get(s,"handle"))&&c.apply(s,n),(c=l&&s[l])&&c.apply&&we(s)&&(t.result=c.apply(s,n),!1===t.result&&t.preventDefault());return t.type=d,i||t.isDefaultPrevented()||f._default&&!1!==f._default.apply(p.pop(),n)||!we(r)||l&&re.isFunction(r[d])&&!re.isWindow(r)&&((a=r[l])&&(r[l]=null),re.event.triggered=d,r[d](),re.event.triggered=void 0,a&&(r[l]=a)),t.result}},simulate:function(e,t,n){var r=re.extend(new re.Event,n,{type:e,isSimulated:!0});re.event.trigger(r,null,t)}}),re.fn.extend({trigger:function(e,t){return this.each(function(){re.event.trigger(e,t,this)})},triggerHandler:function(e,t){var n=this[0];if(n)return re.event.trigger(e,t,n,!0)}}),re.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error contextmenu".split(" "),function(e,t){re.fn[t]=function(e,n){return arguments.length>0?this.on(t,null,e,n):this.trigger(t)}}),re.fn.extend({hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)}}),ne.focusin="onfocusin"in e,ne.focusin||re.each({focus:"focusin",blur:"focusout"},function(e,t){var n=function(e){re.event.simulate(t,e.target,re.event.fix(e))};re.event.special[t]={setup:function(){var r=this.ownerDocument||this,i=Te.access(r,t);i||r.addEventListener(e,n,!0),Te.access(r,t,(i||0)+1)},teardown:function(){var r=this.ownerDocument||this,i=Te.access(r,t)-1;i?Te.access(r,t,i):(r.removeEventListener(e,n,!0),Te.remove(r,t))}}});var dt=e.location,ht=re.now(),gt=/\?/;re.parseJSON=function(e){return JSON.parse(e+"")},re.parseXML=function(t){var n;if(!t||"string"!=typeof t)return null;try{n=(new e.DOMParser).parseFromString(t,"text/xml")}catch(e){n=void 0}return n&&!n.getElementsByTagName("parsererror").length||re.error("Invalid XML: "+t),n};var vt=/#.*$/,mt=/([?&])_=[^&]*/,yt=/^(.*?):[ \t]*([^\r\n]*)$/gm,xt=/^(?:GET|HEAD)$/,bt=/^\/\//,wt={},Tt={},Ct="*/".concat("*"),kt=Y.createElement("a");kt.href=dt.href,re.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:dt.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(dt.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Ct,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":re.parseJSON,"text xml":re.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?B(B(e,re.ajaxSettings),t):B(re.ajaxSettings,e)},ajaxPrefilter:W(wt),ajaxTransport:W(Tt),ajax:function(t,n){function r(t,n,r,a){var l,f,y,x,w,C=n;2!==b&&(b=2,u&&e.clearTimeout(u),i=void 0,s=a||"",T.readyState=t>0?4:0,l=t>=200&&t<300||304===t,r&&(x=_(p,T,r)),x=X(p,x,T,l),l?(p.ifModified&&((w=T.getResponseHeader("Last-Modified"))&&(re.lastModified[o]=w),(w=T.getResponseHeader("etag"))&&(re.etag[o]=w)),204===t||"HEAD"===p.type?C="nocontent":304===t?C="notmodified":(C=x.state,f=x.data,l=!(y=x.error))):(y=C,!t&&C||(C="error",t<0&&(t=0))),T.status=t,T.statusText=(n||C)+"",l?g.resolveWith(d,[f,C,T]):g.rejectWith(d,[T,C,y]),T.statusCode(m),m=void 0,c&&h.trigger(l?"ajaxSuccess":"ajaxError",[T,p,l?f:y]),v.fireWith(d,[T,C]),c&&(h.trigger("ajaxComplete",[T,p]),--re.active||re.event.trigger("ajaxStop")))}"object"==typeof t&&(n=t,t=void 0),n=n||{};var i,o,s,a,u,l,c,f,p=re.ajaxSetup({},n),d=p.context||p,h=p.context&&(d.nodeType||d.jquery)?re(d):re.event,g=re.Deferred(),v=re.Callbacks("once memory"),m=p.statusCode||{},y={},x={},b=0,w="canceled",T={readyState:0,getResponseHeader:function(e){var t;if(2===b){if(!a)for(a={};t=yt.exec(s);)a[t[1].toLowerCase()]=t[2];t=a[e.toLowerCase()]}return null==t?null:t},getAllResponseHeaders:function(){return 2===b?s:null},setRequestHeader:function(e,t){var n=e.toLowerCase();return b||(e=x[n]=x[n]||e,y[e]=t),this},overrideMimeType:function(e){return b||(p.mimeType=e),this},statusCode:function(e){var t;if(e)if(b<2)for(t in e)m[t]=[m[t],e[t]];else T.always(e[T.status]);return this},abort:function(e){var t=e||w;return i&&i.abort(t),r(0,t),this}};if(g.promise(T).complete=v.add,T.success=T.done,T.error=T.fail,p.url=((t||p.url||dt.href)+"").replace(vt,"").replace(bt,dt.protocol+"//"),p.type=n.method||n.type||p.method||p.type,p.dataTypes=re.trim(p.dataType||"*").toLowerCase().match(ye)||[""],null==p.crossDomain){l=Y.createElement("a");try{l.href=p.url,l.href=l.href,p.crossDomain=kt.protocol+"//"+kt.host!=l.protocol+"//"+l.host}catch(e){p.crossDomain=!0}}if(p.data&&p.processData&&"string"!=typeof p.data&&(p.data=re.param(p.data,p.traditional)),$(wt,p,n,T),2===b)return T;(c=re.event&&p.global)&&0==re.active++&&re.event.trigger("ajaxStart"),p.type=p.type.toUpperCase(),p.hasContent=!xt.test(p.type),o=p.url,p.hasContent||(p.data&&(o=p.url+=(gt.test(o)?"&":"?")+p.data,delete p.data),!1===p.cache&&(p.url=mt.test(o)?o.replace(mt,"$1_="+ht++):o+(gt.test(o)?"&":"?")+"_="+ht++)),p.ifModified&&(re.lastModified[o]&&T.setRequestHeader("If-Modified-Since",re.lastModified[o]),re.etag[o]&&T.setRequestHeader("If-None-Match",re.etag[o])),(p.data&&p.hasContent&&!1!==p.contentType||n.contentType)&&T.setRequestHeader("Content-Type",p.contentType),T.setRequestHeader("Accept",p.dataTypes[0]&&p.accepts[p.dataTypes[0]]?p.accepts[p.dataTypes[0]]+("*"!==p.dataTypes[0]?", "+Ct+"; q=0.01":""):p.accepts["*"]);for(f in p.headers)T.setRequestHeader(f,p.headers[f]);if(p.beforeSend&&(!1===p.beforeSend.call(d,T,p)||2===b))return T.abort();w="abort";for(f in{success:1,error:1,complete:1})T[f](p[f]);if(i=$(Tt,p,n,T)){if(T.readyState=1,c&&h.trigger("ajaxSend",[T,p]),2===b)return T;p.async&&p.timeout>0&&(u=e.setTimeout(function(){T.abort("timeout")},p.timeout));try{b=1,i.send(y,r)}catch(e){if(!(b<2))throw e;r(-1,e)}}else r(-1,"No Transport");return T},getJSON:function(e,t,n){return re.get(e,t,n,"json")},getScript:function(e,t){return re.get(e,void 0,t,"script")}}),re.each(["get","post"],function(e,t){re[t]=function(e,n,r,i){return re.isFunction(n)&&(i=i||r,r=n,n=void 0),re.ajax(re.extend({url:e,type:t,dataType:i,data:n,success:r},re.isPlainObject(e)&&e))}}),re._evalUrl=function(e){return re.ajax({url:e,type:"GET",dataType:"script",async:!1,global:!1,throws:!0})},re.fn.extend({wrapAll:function(e){var t;return re.isFunction(e)?this.each(function(t){re(this).wrapAll(e.call(this,t))}):(this[0]&&(t=re(e,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map(function(){for(var e=this;e.firstElementChild;)e=e.firstElementChild;return e}).append(this)),this)},wrapInner:function(e){return re.isFunction(e)?this.each(function(t){re(this).wrapInner(e.call(this,t))}):this.each(function(){var t=re(this),n=t.contents();n.length?n.wrapAll(e):t.append(e)})},wrap:function(e){var t=re.isFunction(e);return this.each(function(n){re(this).wrapAll(t?e.call(this,n):e)})},unwrap:function(){return this.parent().each(function(){re.nodeName(this,"body")||re(this).replaceWith(this.childNodes)}).end()}}),re.expr.filters.hidden=function(e){return!re.expr.filters.visible(e)},re.expr.filters.visible=function(e){return e.offsetWidth>0||e.offsetHeight>0||e.getClientRects().length>0};var Et=/%20/g,Nt=/\[\]$/,St=/\r?\n/g,jt=/^(?:submit|button|image|reset|file)$/i,Dt=/^(?:input|select|textarea|keygen)/i;re.param=function(e,t){var n,r=[],i=function(e,t){t=re.isFunction(t)?t():null==t?"":t,r[r.length]=encodeURIComponent(e)+"="+encodeURIComponent(t)};if(void 0===t&&(t=re.ajaxSettings&&re.ajaxSettings.traditional),re.isArray(e)||e.jquery&&!re.isPlainObject(e))re.each(e,function(){i(this.name,this.value)});else for(n in e)z(n,e[n],t,i);return r.join("&").replace(Et,"+")},re.fn.extend({serialize:function(){return re.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var e=re.prop(this,"elements");return e?re.makeArray(e):this}).filter(function(){var e=this.type;return this.name&&!re(this).is(":disabled")&&Dt.test(this.nodeName)&&!jt.test(e)&&(this.checked||!Ae.test(e))}).map(function(e,t){var n=re(this).val();return null==n?null:re.isArray(n)?re.map(n,function(e){return{name:t.name,value:e.replace(St,"\r\n")}}):{name:t.name,value:n.replace(St,"\r\n")}}).get()}}),re.ajaxSettings.xhr=function(){try{return new e.XMLHttpRequest}catch(e){}};var At={0:200,1223:204},qt=re.ajaxSettings.xhr();ne.cors=!!qt&&"withCredentials"in qt,ne.ajax=qt=!!qt,re.ajaxTransport(function(t){var n,r;if(ne.cors||qt&&!t.crossDomain)return{send:function(i,o){var s,a=t.xhr();if(a.open(t.type,t.url,t.async,t.username,t.password),t.xhrFields)for(s in t.xhrFields)a[s]=t.xhrFields[s];t.mimeType&&a.overrideMimeType&&a.overrideMimeType(t.mimeType),t.crossDomain||i["X-Requested-With"]||(i["X-Requested-With"]="XMLHttpRequest");for(s in i)a.setRequestHeader(s,i[s]);n=function(e){return function(){n&&(n=r=a.onload=a.onerror=a.onabort=a.onreadystatechange=null,"abort"===e?a.abort():"error"===e?"number"!=typeof a.status?o(0,"error"):o(a.status,a.statusText):o(At[a.status]||a.status,a.statusText,"text"!==(a.responseType||"text")||"string"!=typeof a.responseText?{binary:a.response}:{text:a.responseText},a.getAllResponseHeaders()))}},a.onload=n(),r=a.onerror=n("error"),void 0!==a.onabort?a.onabort=r:a.onreadystatechange=function(){4===a.readyState&&e.setTimeout(function(){n&&r()})},n=n("abort");try{a.send(t.hasContent&&t.data||null)}catch(e){if(n)throw e}},abort:function(){n&&n()}}}),re.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(e){return re.globalEval(e),e}}}),re.ajaxPrefilter("script",function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET")}),re.ajaxTransport("script",function(e){if(e.crossDomain){var t,n;return{send:function(r,i){t=re("<script>").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)}),Y.head.appendChild(t[0])},abort:function(){n&&n()}}}});var Lt=[],Ht=/(=)\?(?=&|$)|\?\?/;re.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=Lt.pop()||re.expando+"_"+ht++;return this[e]=!0,e}}),re.ajaxPrefilter("json jsonp",function(t,n,r){var i,o,s,a=!1!==t.jsonp&&(Ht.test(t.url)?"url":"string"==typeof t.data&&0===(t.contentType||"").indexOf("application/x-www-form-urlencoded")&&Ht.test(t.data)&&"data");if(a||"jsonp"===t.dataTypes[0])return i=t.jsonpCallback=re.isFunction(t.jsonpCallback)?t.jsonpCallback():t.jsonpCallback,a?t[a]=t[a].replace(Ht,"$1"+i):!1!==t.jsonp&&(t.url+=(gt.test(t.url)?"&":"?")+t.jsonp+"="+i),t.converters["script json"]=function(){return s||re.error(i+" was not called"),s[0]},t.dataTypes[0]="json",o=e[i],e[i]=function(){s=arguments},r.always(function(){void 0===o?re(e).removeProp(i):e[i]=o,t[i]&&(t.jsonpCallback=n.jsonpCallback,Lt.push(i)),s&&re.isFunction(o)&&o(s[0]),s=o=void 0}),"script"}),re.parseHTML=function(e,t,n){if(!e||"string"!=typeof e)return null;"boolean"==typeof t&&(n=t,t=!1),t=t||Y;var r=pe.exec(e),i=!n&&[];return r?[t.createElement(r[1])]:(r=p([e],t,i),i&&i.length&&re(i).remove(),re.merge([],r.childNodes))};var Ot=re.fn.load;re.fn.load=function(e,t,n){if("string"!=typeof e&&Ot)return Ot.apply(this,arguments);var r,i,o,s=this,a=e.indexOf(" ");return a>-1&&(r=re.trim(e.slice(a)),e=e.slice(0,a)),re.isFunction(t)?(n=t,t=void 0):t&&"object"==typeof t&&(i="POST"),s.length>0&&re.ajax({url:e,type:i||"GET",dataType:"html",data:t}).done(function(e){o=arguments,s.html(r?re("<div>").append(re.parseHTML(e)).find(r):e)}).always(n&&function(e,t){s.each(function(){n.apply(this,o||[e.responseText,t,e])})}),this},re.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){re.fn[t]=function(e){return this.on(t,e)}}),re.expr.filters.animated=function(e){return re.grep(re.timers,function(t){return e===t.elem}).length},re.offset={setOffset:function(e,t,n){var r,i,o,s,a,u,l=re.css(e,"position"),c=re(e),f={};"static"===l&&(e.style.position="relative"),a=c.offset(),o=re.css(e,"top"),u=re.css(e,"left"),("absolute"===l||"fixed"===l)&&(o+u).indexOf("auto")>-1?(s=(r=c.position()).top,i=r.left):(s=parseFloat(o)||0,i=parseFloat(u)||0),re.isFunction(t)&&(t=t.call(e,n,re.extend({},a))),null!=t.top&&(f.top=t.top-a.top+s),null!=t.left&&(f.left=t.left-a.left+i),"using"in t?t.using.call(e,f):c.css(f)}},re.fn.extend({offset:function(e){if(arguments.length)return void 0===e?this:this.each(function(t){re.offset.setOffset(this,e,t)});var t,n,r=this[0],i={top:0,left:0},o=r&&r.ownerDocument;if(o)return t=o.documentElement,re.contains(t,r)?(i=r.getBoundingClientRect(),n=U(o),{top:i.top+n.pageYOffset-t.clientTop,left:i.left+n.pageXOffset-t.clientLeft}):i},position:function(){if(this[0]){var e,t,n=this[0],r={top:0,left:0};return"fixed"===re.css(n,"position")?t=n.getBoundingClientRect():(e=this.offsetParent(),t=this.offset(),re.nodeName(e[0],"html")||(r=e.offset()),r.top+=re.css(e[0],"borderTopWidth",!0),r.left+=re.css(e[0],"borderLeftWidth",!0)),{top:t.top-r.top-re.css(n,"marginTop",!0),left:t.left-r.left-re.css(n,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var e=this.offsetParent;e&&"static"===re.css(e,"position");)e=e.offsetParent;return e||Ge})}}),re.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(e,t){var n="pageYOffset"===t;re.fn[e]=function(r){return be(this,function(e,r,i){var o=U(e);if(void 0===i)return o?o[t]:e[r];o?o.scrollTo(n?o.pageXOffset:i,n?i:o.pageYOffset):e[r]=i},e,r,arguments.length)}}),re.each(["top","left"],function(e,t){re.cssHooks[t]=S(ne.pixelPosition,function(e,n){if(n)return n=N(e,t),Ue.test(n)?re(e).position()[t]+"px":n})}),re.each({Height:"height",Width:"width"},function(e,t){re.each({padding:"inner"+e,content:t,"":"outer"+e},function(n,r){re.fn[r]=function(r,i){var o=arguments.length&&(n||"boolean"!=typeof r),s=n||(!0===r||!0===i?"margin":"border");return be(this,function(t,n,r){var i;return re.isWindow(t)?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===r?re.css(t,n,s):re.style(t,n,r,s)},t,o?r:void 0,o,null)}})}),re.fn.extend({bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,r){return this.on(t,e,n,r)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)},size:function(){return this.length}}),re.fn.andSelf=re.fn.addBack,"function"==typeof define&&define.amd&&define("jquery",[],function(){return re});var Ft=e.jQuery,Pt=e.$;return re.noConflict=function(t){return e.$===re&&(e.$=Pt),t&&e.jQuery===re&&(e.jQuery=Ft),re},t||(e.jQuery=e.$=re),re});
--- a/src/pyams_skin/resources/js/ext/tinymce/dev/tinymce.min.js Mon Dec 03 13:52:31 2018 +0100
+++ b/src/pyams_skin/resources/js/ext/tinymce/dev/tinymce.min.js Wed Dec 05 16:21:23 2018 +0100
@@ -1,1 +1,1 @@
-(function(b,g){var d={};function c(m,n){var l,j=[];for(var k=0;k<m.length;++k){l=d[m[k]]||e(m[k]);if(!l){throw"module definition dependecy not found: "+m[k]}j.push(l)}n.apply(null,j)}function h(k,j,i){if(typeof k!=="string"){throw"invalid module definition, module id must be defined and be a string"}if(j===g){throw"invalid module definition, dependencies must be specified"}if(i===g){throw"invalid module definition, definition function must be specified"}c(j,function(){d[k]=i.apply(null,arguments)})}function f(i){return !!d[i]}function e(l){var j=b;var i=l.split(/[.\/]/);for(var k=0;k<i.length;++k){if(!j[i[k]]){return}j=j[i[k]]}return j}function a(l){for(var k=0;k<l.length;k++){var m=b;var o=l[k];var j=o.split(/[.\/]/);for(var n=0;n<j.length-1;++n){if(m[j[n]]===g){m[j[n]]={}}m=m[j[n]]}m[j[j.length-1]]=d[o]}}h("tinymce/dom/EventUtils",[],function(){var o="mce-data-";var k=/^(?:mouse|contextmenu)|click/;var j={keyLocation:1,layerX:1,layerY:1,returnValue:1};function l(s,r,t,q){if(s.addEventListener){s.addEventListener(r,t,q||false)}else{if(s.attachEvent){s.attachEvent("on"+r,t)}}}function n(s,r,t,q){if(s.removeEventListener){s.removeEventListener(r,t,q||false)}else{if(s.detachEvent){s.detachEvent("on"+r,t)}}}function i(s,w){var r,q=w||{},u;function t(){return false}function v(){return true}for(r in s){if(!j[r]){q[r]=s[r]}}if(!q.target){q.target=q.srcElement||document}if(s&&k.test(s.type)&&s.pageX===u&&s.clientX!==u){var z=q.target.ownerDocument||document;var y=z.documentElement;var x=z.body;q.pageX=s.clientX+(y&&y.scrollLeft||x&&x.scrollLeft||0)-(y&&y.clientLeft||x&&x.clientLeft||0);q.pageY=s.clientY+(y&&y.scrollTop||x&&x.scrollTop||0)-(y&&y.clientTop||x&&x.clientTop||0)}q.preventDefault=function(){q.isDefaultPrevented=v;if(s){if(s.preventDefault){s.preventDefault()}else{s.returnValue=false}}};q.stopPropagation=function(){q.isPropagationStopped=v;if(s){if(s.stopPropagation){s.stopPropagation()}else{s.cancelBubble=true}}};q.stopImmediatePropagation=function(){q.isImmediatePropagationStopped=v;q.stopPropagation()};if(!q.isDefaultPrevented){q.isDefaultPrevented=t;q.isPropagationStopped=t;q.isImmediatePropagationStopped=t}return q}function m(v,x,s){var u=v.document,t={type:"ready"};if(s.domLoaded){x(t);return}function r(){if(!s.domLoaded){s.domLoaded=true;x(t)}}function q(){if(u.readyState==="complete"||(u.readyState==="interactive"&&u.body)){n(u,"readystatechange",q);r()}}function w(){try{u.documentElement.doScroll("left")}catch(y){setTimeout(w,0);return}r()}if(u.addEventListener){if(u.readyState==="complete"){r()}else{l(v,"DOMContentLoaded",r)}}else{l(u,"readystatechange",q);if(u.documentElement.doScroll&&v.self===v.top){w()}}l(v,"load",r)}function p(){var q=this,s={},u,x,r,t,w;x=o+(+new Date()).toString(32);t="onmouseenter" in document.documentElement;r="onfocusin" in document.documentElement;w={mouseenter:"mouseover",mouseleave:"mouseout"};u=1;q.domLoaded=false;q.events=s;function v(B,E){var A,C,z,D,y=s[E];A=y&&y[B.type];if(A){for(C=0,z=A.length;C<z;C++){D=A[C];if(D&&D.func.call(D.scope,B)===false){B.preventDefault()}if(B.isImmediatePropagationStopped()){return}}}}q.bind=function(D,G,J,K){var z,A,B,y,H,F,I,C=window;function E(L){v(i(L||C.event),z)}if(!D||D.nodeType===3||D.nodeType===8){return}if(!D[x]){z=u++;D[x]=z;s[z]={}}else{z=D[x]}K=K||D;G=G.split(" ");B=G.length;while(B--){y=G[B];F=E;H=I=false;if(y==="DOMContentLoaded"){y="ready"}if(q.domLoaded&&y==="ready"&&D.readyState=="complete"){J.call(K,i({type:y}));continue}if(!t){H=w[y];if(H){F=function(L){var N,M;N=L.currentTarget;M=L.relatedTarget;if(M&&N.contains){M=N.contains(M)}else{while(M&&M!==N){M=M.parentNode}}if(!M){L=i(L||C.event);L.type=L.type==="mouseout"?"mouseleave":"mouseenter";L.target=N;v(L,z)}}}}if(!r&&(y==="focusin"||y==="focusout")){I=true;H=y==="focusin"?"focus":"blur";F=function(L){L=i(L||C.event);L.type=L.type==="focus"?"focusin":"focusout";v(L,z)}}A=s[z][y];if(!A){s[z][y]=A=[{func:J,scope:K}];A.fakeName=H;A.capture=I;A.nativeHandler=F;if(y==="ready"){m(D,F,q)}else{l(D,H||y,F,I)}}else{if(y==="ready"&&q.domLoaded){J({type:y})}else{A.push({func:J,scope:K})}}}D=A=0;return J};q.unbind=function(D,G,J){var z,B,C,K,y,A;if(!D||D.nodeType===3||D.nodeType===8){return q}z=D[x];if(z){A=s[z];if(G){G=G.split(" ");C=G.length;while(C--){y=G[C];B=A[y];if(B){if(J){K=B.length;while(K--){if(B[K].func===J){var F=B.nativeHandler;var H=B.fakeName,I=B.capture;B=B.slice(0,K).concat(B.slice(K+1));B.nativeHandler=F;B.fakeName=H;B.capture=I;A[y]=B}}}if(!J||B.length===0){delete A[y];n(D,B.fakeName||y,B.nativeHandler,B.capture)}}}}else{for(y in A){B=A[y];n(D,B.fakeName||y,B.nativeHandler,B.capture)}A={}}for(y in A){return q}delete s[z];try{delete D[x]}catch(E){D[x]=null}}return q};q.fire=function(A,z,y){var B;if(!A||A.nodeType===3||A.nodeType===8){return q}y=i(null,y);y.type=z;y.target=A;do{B=A[x];if(B){v(y,B)}A=A.parentNode||A.ownerDocument||A.defaultView||A.parentWindow}while(A&&!y.isPropagationStopped());return q};q.clean=function(B){var z,y,A=q.unbind;if(!B||B.nodeType===3||B.nodeType===8){return q}if(B[x]){A(B)}if(!B.getElementsByTagName){B=B.document}if(B&&B.getElementsByTagName){A(B);y=B.getElementsByTagName("*");z=y.length;while(z--){B=y[z];if(B[x]){A(B)}}}return q};q.destroy=function(){s={}};q.cancel=function(y){if(y){y.preventDefault();y.stopImmediatePropagation()}return false}}p.Event=new p();p.Event.bind(window,"ready",function(){});return p});h("tinymce/dom/Sizzle",[],function(){var J,aD,z,S,V,t,ah,aC,aH,T,ai,ak,N,A,au,ao,aB,q,Q,aw="sizzle"+-(new Date()),U=window.document,aE=0,ap=0,l=L(),av=L(),R=L(),P=function(aI,i){if(aI===i){ai=true}return 0},aA=typeof g,ab=1<<31,Z=({}).hasOwnProperty,ay=[],az=ay.pop,X=ay.push,j=ay.push,y=ay.slice,p=ay.indexOf||function(aK){var aJ=0,aI=this.length;for(;aJ<aI;aJ++){if(this[aJ]===aK){return aJ}}return -1},k="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",B="[\\x20\\t\\r\\n\\f]",W="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",ar="\\["+B+"*("+W+")(?:"+B+"*([*^$|!~]?=)"+B+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+W+"))|)"+B+"*\\]",w=":("+W+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+ar+")*)|.*)\\)|)",D=new RegExp("^"+B+"+|((?:^|[^\\\\])(?:\\\\.)*)"+B+"+$","g"),G=new RegExp("^"+B+"*,"+B+"*"),M=new RegExp("^"+B+"*([>+~]|"+B+")"+B+"*"),F=new RegExp("="+B+"*([^\\]'\"]*?)"+B+"*\\]","g"),ad=new RegExp(w),af=new RegExp("^"+W+"$"),an={ID:new RegExp("^#("+W+")"),CLASS:new RegExp("^\\.("+W+")"),TAG:new RegExp("^("+W+"|[*])"),ATTR:new RegExp("^"+ar),PSEUDO:new RegExp("^"+w),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+B+"*(even|odd|(([+-]|)(\\d*)n|)"+B+"*(?:([+-]|)"+B+"*(\\d+)|))"+B+"*\\)|)","i"),bool:new RegExp("^(?:"+k+")$","i"),needsContext:new RegExp("^"+B+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+B+"*((?:-\\d)?\\d*)"+B+"*\\)|)(?=[^-]|$)","i")},o=/^(?:input|select|textarea|button)$/i,x=/^h\d$/i,aa=/^[^{]+\{\s*\[native \w/,ac=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,am=/[+~]/,Y=/'|\\/g,E=new RegExp("\\\\([\\da-f]{1,6}"+B+"?|("+B+")|.)","ig"),aq=function(i,aK,aI){var aJ="0x"+aK-65536;return aJ!==aJ||aI?aK:aJ<0?String.fromCharCode(aJ+65536):String.fromCharCode(aJ>>10|55296,aJ&1023|56320)};try{j.apply((ay=y.call(U.childNodes)),U.childNodes);ay[U.childNodes.length].nodeType}catch(O){j={apply:ay.length?function(aI,i){X.apply(aI,y.call(i))}:function(aL,aK){var aI=aL.length,aJ=0;while((aL[aI++]=aK[aJ++])){}aL.length=aI-1}}}function H(aQ,aJ,aU,aW){var aV,aN,aO,aS,aT,aM,aL,aI,aK,aR;if((aJ?aJ.ownerDocument||aJ:U)!==N){ak(aJ)}aJ=aJ||N;aU=aU||[];if(!aQ||typeof aQ!=="string"){return aU}if((aS=aJ.nodeType)!==1&&aS!==9){return[]}if(au&&!aW){if((aV=ac.exec(aQ))){if((aO=aV[1])){if(aS===9){aN=aJ.getElementById(aO);if(aN&&aN.parentNode){if(aN.id===aO){aU.push(aN);return aU}}else{return aU}}else{if(aJ.ownerDocument&&(aN=aJ.ownerDocument.getElementById(aO))&&Q(aJ,aN)&&aN.id===aO){aU.push(aN);return aU}}}else{if(aV[2]){j.apply(aU,aJ.getElementsByTagName(aQ));return aU}else{if((aO=aV[3])&&aD.getElementsByClassName){j.apply(aU,aJ.getElementsByClassName(aO));return aU}}}}if(aD.qsa&&(!ao||!ao.test(aQ))){aI=aL=aw;aK=aJ;aR=aS===9&&aQ;if(aS===1&&aJ.nodeName.toLowerCase()!=="object"){aM=t(aQ);if((aL=aJ.getAttribute("id"))){aI=aL.replace(Y,"\\$&")}else{aJ.setAttribute("id",aI)}aI="[id='"+aI+"'] ";aT=aM.length;while(aT--){aM[aT]=aI+u(aM[aT])}aK=am.test(aQ)&&ae(aJ.parentNode)||aJ;aR=aM.join(",")}if(aR){try{j.apply(aU,aK.querySelectorAll(aR));return aU}catch(aP){}finally{if(!aL){aJ.removeAttribute("id")}}}}}return aC(aQ.replace(D,"$1"),aJ,aU,aW)}function L(){var aI=[];function i(aJ,aK){if(aI.push(aJ+" ")>z.cacheLength){delete i[aI.shift()]}return(i[aJ+" "]=aK)}return i}function v(i){i[aw]=true;return i}function r(i){var aJ=N.createElement("div");try{return !!i(aJ)}catch(aI){return false}finally{if(aJ.parentNode){aJ.parentNode.removeChild(aJ)}aJ=null}}function aF(aJ,aL){var aI=aJ.split("|"),aK=aJ.length;while(aK--){z.attrHandle[aI[aK]]=aL}}function m(aI,i){var aK=i&&aI,aJ=aK&&aI.nodeType===1&&i.nodeType===1&&(~i.sourceIndex||ab)-(~aI.sourceIndex||ab);if(aJ){return aJ}if(aK){while((aK=aK.nextSibling)){if(aK===i){return -1}}}return aI?1:-1}function I(i){return function(aJ){var aI=aJ.nodeName.toLowerCase();return aI==="input"&&aJ.type===i}}function n(i){return function(aJ){var aI=aJ.nodeName.toLowerCase();return(aI==="input"||aI==="button")&&aJ.type===i}}function at(i){return v(function(aI){aI=+aI;return v(function(aJ,aN){var aL,aK=i([],aJ.length,aI),aM=aK.length;while(aM--){if(aJ[(aL=aK[aM])]){aJ[aL]=!(aN[aL]=aJ[aL])}}})})}function ae(i){return i&&typeof i.getElementsByTagName!==aA&&i}aD=H.support={};V=H.isXML=function(i){var aI=i&&(i.ownerDocument||i).documentElement;return aI?aI.nodeName!=="HTML":false};ak=H.setDocument=function(aJ){var i,aK=aJ?aJ.ownerDocument||aJ:U,aI=aK.defaultView;if(aK===N||aK.nodeType!==9||!aK.documentElement){return N}N=aK;A=aK.documentElement;au=!V(aK);if(aI&&aI!==aI.top){if(aI.addEventListener){aI.addEventListener("unload",function(){ak()},false)}else{if(aI.attachEvent){aI.attachEvent("onunload",function(){ak()})}}}aD.attributes=r(function(aL){aL.className="i";return !aL.getAttribute("className")});aD.getElementsByTagName=r(function(aL){aL.appendChild(aK.createComment(""));return !aL.getElementsByTagName("*").length});aD.getElementsByClassName=aa.test(aK.getElementsByClassName);aD.getById=r(function(aL){A.appendChild(aL).id=aw;return !aK.getElementsByName||!aK.getElementsByName(aw).length});if(aD.getById){z.find.ID=function(aN,aM){if(typeof aM.getElementById!==aA&&au){var aL=aM.getElementById(aN);return aL&&aL.parentNode?[aL]:[]}};z.filter.ID=function(aM){var aL=aM.replace(E,aq);return function(aN){return aN.getAttribute("id")===aL}}}else{delete z.find.ID;z.filter.ID=function(aM){var aL=aM.replace(E,aq);return function(aO){var aN=typeof aO.getAttributeNode!==aA&&aO.getAttributeNode("id");return aN&&aN.value===aL}}}z.find.TAG=aD.getElementsByTagName?function(aL,aM){if(typeof aM.getElementsByTagName!==aA){return aM.getElementsByTagName(aL)}}:function(aL,aP){var aQ,aO=[],aN=0,aM=aP.getElementsByTagName(aL);if(aL==="*"){while((aQ=aM[aN++])){if(aQ.nodeType===1){aO.push(aQ)}}return aO}return aM};z.find.CLASS=aD.getElementsByClassName&&function(aM,aL){if(au){return aL.getElementsByClassName(aM)}};aB=[];ao=[];if((aD.qsa=aa.test(aK.querySelectorAll))){r(function(aL){aL.innerHTML="<select msallowcapture=''><option selected=''></option></select>";if(aL.querySelectorAll("[msallowcapture^='']").length){ao.push("[*^$]="+B+"*(?:''|\"\")")}if(!aL.querySelectorAll("[selected]").length){ao.push("\\["+B+"*(?:value|"+k+")")}if(!aL.querySelectorAll(":checked").length){ao.push(":checked")}});r(function(aM){var aL=aK.createElement("input");aL.setAttribute("type","hidden");aM.appendChild(aL).setAttribute("name","D");if(aM.querySelectorAll("[name=d]").length){ao.push("name"+B+"*[*^$|!~]?=")}if(!aM.querySelectorAll(":enabled").length){ao.push(":enabled",":disabled")}aM.querySelectorAll("*,:x");ao.push(",.*:")})}if((aD.matchesSelector=aa.test((q=A.matches||A.webkitMatchesSelector||A.mozMatchesSelector||A.oMatchesSelector||A.msMatchesSelector)))){r(function(aL){aD.disconnectedMatch=q.call(aL,"div");q.call(aL,"[s!='']:x");aB.push("!=",w)})}ao=ao.length&&new RegExp(ao.join("|"));aB=aB.length&&new RegExp(aB.join("|"));i=aa.test(A.compareDocumentPosition);Q=i||aa.test(A.contains)?function(aM,aL){var aO=aM.nodeType===9?aM.documentElement:aM,aN=aL&&aL.parentNode;return aM===aN||!!(aN&&aN.nodeType===1&&(aO.contains?aO.contains(aN):aM.compareDocumentPosition&&aM.compareDocumentPosition(aN)&16))}:function(aM,aL){if(aL){while((aL=aL.parentNode)){if(aL===aM){return true}}}return false};P=i?function(aM,aL){if(aM===aL){ai=true;return 0}var aN=!aM.compareDocumentPosition-!aL.compareDocumentPosition;if(aN){return aN}aN=(aM.ownerDocument||aM)===(aL.ownerDocument||aL)?aM.compareDocumentPosition(aL):1;if(aN&1||(!aD.sortDetached&&aL.compareDocumentPosition(aM)===aN)){if(aM===aK||aM.ownerDocument===U&&Q(U,aM)){return -1}if(aL===aK||aL.ownerDocument===U&&Q(U,aL)){return 1}return T?(p.call(T,aM)-p.call(T,aL)):0}return aN&4?-1:1}:function(aM,aL){if(aM===aL){ai=true;return 0}var aS,aP=0,aR=aM.parentNode,aO=aL.parentNode,aN=[aM],aQ=[aL];if(!aR||!aO){return aM===aK?-1:aL===aK?1:aR?-1:aO?1:T?(p.call(T,aM)-p.call(T,aL)):0}else{if(aR===aO){return m(aM,aL)}}aS=aM;while((aS=aS.parentNode)){aN.unshift(aS)}aS=aL;while((aS=aS.parentNode)){aQ.unshift(aS)}while(aN[aP]===aQ[aP]){aP++}return aP?m(aN[aP],aQ[aP]):aN[aP]===U?-1:aQ[aP]===U?1:0};return aK};H.matches=function(aI,i){return H(aI,null,null,i)};H.matchesSelector=function(aI,aK){if((aI.ownerDocument||aI)!==N){ak(aI)}aK=aK.replace(F,"='$1']");if(aD.matchesSelector&&au&&(!aB||!aB.test(aK))&&(!ao||!ao.test(aK))){try{var i=q.call(aI,aK);if(i||aD.disconnectedMatch||aI.document&&aI.document.nodeType!==11){return i}}catch(aJ){}}return H(aK,N,null,[aI]).length>0};H.contains=function(i,aI){if((i.ownerDocument||i)!==N){ak(i)}return Q(i,aI)};H.attr=function(aJ,i){if((aJ.ownerDocument||aJ)!==N){ak(aJ)}var aI=z.attrHandle[i.toLowerCase()],aK=aI&&Z.call(z.attrHandle,i.toLowerCase())?aI(aJ,i,!au):g;return aK!==g?aK:aD.attributes||!au?aJ.getAttribute(i):(aK=aJ.getAttributeNode(i))&&aK.specified?aK.value:null};H.error=function(i){throw new Error("Syntax error, unrecognized expression: "+i)};H.uniqueSort=function(aK){var aL,aM=[],aI=0,aJ=0;ai=!aD.detectDuplicates;T=!aD.sortStable&&aK.slice(0);aK.sort(P);if(ai){while((aL=aK[aJ++])){if(aL===aK[aJ]){aI=aM.push(aJ)}}while(aI--){aK.splice(aM[aI],1)}}T=null;return aK};S=H.getText=function(aM){var aL,aJ="",aK=0,aI=aM.nodeType;if(!aI){while((aL=aM[aK++])){aJ+=S(aL)}}else{if(aI===1||aI===9||aI===11){if(typeof aM.textContent==="string"){return aM.textContent}else{for(aM=aM.firstChild;aM;aM=aM.nextSibling){aJ+=S(aM)}}}else{if(aI===3||aI===4){return aM.nodeValue}}}return aJ};z=H.selectors={cacheLength:50,createPseudo:v,match:an,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:true}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:true},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(i){i[1]=i[1].replace(E,aq);i[3]=(i[3]||i[4]||i[5]||"").replace(E,aq);if(i[2]==="~="){i[3]=" "+i[3]+" "}return i.slice(0,4)},CHILD:function(i){i[1]=i[1].toLowerCase();if(i[1].slice(0,3)==="nth"){if(!i[3]){H.error(i[0])}i[4]=+(i[4]?i[5]+(i[6]||1):2*(i[3]==="even"||i[3]==="odd"));i[5]=+((i[7]+i[8])||i[3]==="odd")}else{if(i[3]){H.error(i[0])}}return i},PSEUDO:function(aI){var i,aJ=!aI[6]&&aI[2];if(an.CHILD.test(aI[0])){return null}if(aI[3]){aI[2]=aI[4]||aI[5]||""}else{if(aJ&&ad.test(aJ)&&(i=t(aJ,true))&&(i=aJ.indexOf(")",aJ.length-i)-aJ.length)){aI[0]=aI[0].slice(0,i);aI[2]=aJ.slice(0,i)}}return aI.slice(0,3)}},filter:{TAG:function(aI){var i=aI.replace(E,aq).toLowerCase();return aI==="*"?function(){return true}:function(aJ){return aJ.nodeName&&aJ.nodeName.toLowerCase()===i}},CLASS:function(i){var aI=l[i+" "];return aI||(aI=new RegExp("(^|"+B+")"+i+"("+B+"|$)"))&&l(i,function(aJ){return aI.test(typeof aJ.className==="string"&&aJ.className||typeof aJ.getAttribute!==aA&&aJ.getAttribute("class")||"")})},ATTR:function(aJ,aI,i){return function(aL){var aK=H.attr(aL,aJ);if(aK==null){return aI==="!="}if(!aI){return true}aK+="";return aI==="="?aK===i:aI==="!="?aK!==i:aI==="^="?i&&aK.indexOf(i)===0:aI==="*="?i&&aK.indexOf(i)>-1:aI==="$="?i&&aK.slice(-i.length)===i:aI==="~="?(" "+aK+" ").indexOf(i)>-1:aI==="|="?aK===i||aK.slice(0,i.length+1)===i+"-":false}},CHILD:function(aI,aL,aK,aM,aJ){var aO=aI.slice(0,3)!=="nth",i=aI.slice(-4)!=="last",aN=aL==="of-type";return aM===1&&aJ===0?function(aP){return !!aP.parentNode}:function(aV,aT,aY){var aP,a1,aW,a0,aX,aS,aU=aO!==i?"nextSibling":"previousSibling",aZ=aV.parentNode,aR=aN&&aV.nodeName.toLowerCase(),aQ=!aY&&!aN;if(aZ){if(aO){while(aU){aW=aV;while((aW=aW[aU])){if(aN?aW.nodeName.toLowerCase()===aR:aW.nodeType===1){return false}}aS=aU=aI==="only"&&!aS&&"nextSibling"}return true}aS=[i?aZ.firstChild:aZ.lastChild];if(i&&aQ){a1=aZ[aw]||(aZ[aw]={});aP=a1[aI]||[];aX=aP[0]===aE&&aP[1];a0=aP[0]===aE&&aP[2];aW=aX&&aZ.childNodes[aX];while((aW=++aX&&aW&&aW[aU]||(a0=aX=0)||aS.pop())){if(aW.nodeType===1&&++a0&&aW===aV){a1[aI]=[aE,aX,a0];break}}}else{if(aQ&&(aP=(aV[aw]||(aV[aw]={}))[aI])&&aP[0]===aE){a0=aP[1]}else{while((aW=++aX&&aW&&aW[aU]||(a0=aX=0)||aS.pop())){if((aN?aW.nodeName.toLowerCase()===aR:aW.nodeType===1)&&++a0){if(aQ){(aW[aw]||(aW[aw]={}))[aI]=[aE,a0]}if(aW===aV){break}}}}}a0-=aJ;return a0===aM||(a0%aM===0&&a0/aM>=0)}}},PSEUDO:function(aK,aJ){var i,aI=z.pseudos[aK]||z.setFilters[aK.toLowerCase()]||H.error("unsupported pseudo: "+aK);if(aI[aw]){return aI(aJ)}if(aI.length>1){i=[aK,aK,"",aJ];return z.setFilters.hasOwnProperty(aK.toLowerCase())?v(function(aN,aP){var aM,aL=aI(aN,aJ),aO=aL.length;while(aO--){aM=p.call(aN,aL[aO]);aN[aM]=!(aP[aM]=aL[aO])}}):function(aL){return aI(aL,0,i)}}return aI}},pseudos:{not:v(function(i){var aI=[],aJ=[],aK=ah(i.replace(D,"$1"));return aK[aw]?v(function(aM,aR,aP,aN){var aQ,aL=aK(aM,null,aN,[]),aO=aM.length;while(aO--){if((aQ=aL[aO])){aM[aO]=!(aR[aO]=aQ)}}}):function(aN,aM,aL){aI[0]=aN;aK(aI,null,aL,aJ);return !aJ.pop()}}),has:v(function(i){return function(aI){return H(i,aI).length>0}}),contains:v(function(i){i=i.replace(E,aq);return function(aI){return(aI.textContent||aI.innerText||S(aI)).indexOf(i)>-1}}),lang:v(function(i){if(!af.test(i||"")){H.error("unsupported lang: "+i)}i=i.replace(E,aq).toLowerCase();return function(aJ){var aI;do{if((aI=au?aJ.lang:aJ.getAttribute("xml:lang")||aJ.getAttribute("lang"))){aI=aI.toLowerCase();return aI===i||aI.indexOf(i+"-")===0}}while((aJ=aJ.parentNode)&&aJ.nodeType===1);return false}}),target:function(i){var aI=window.location&&window.location.hash;return aI&&aI.slice(1)===i.id},root:function(i){return i===A},focus:function(i){return i===N.activeElement&&(!N.hasFocus||N.hasFocus())&&!!(i.type||i.href||~i.tabIndex)},enabled:function(i){return i.disabled===false},disabled:function(i){return i.disabled===true},checked:function(i){var aI=i.nodeName.toLowerCase();return(aI==="input"&&!!i.checked)||(aI==="option"&&!!i.selected)},selected:function(i){if(i.parentNode){i.parentNode.selectedIndex}return i.selected===true},empty:function(i){for(i=i.firstChild;i;i=i.nextSibling){if(i.nodeType<6){return false}}return true},parent:function(i){return !z.pseudos.empty(i)},header:function(i){return x.test(i.nodeName)},input:function(i){return o.test(i.nodeName)},button:function(aI){var i=aI.nodeName.toLowerCase();return i==="input"&&aI.type==="button"||i==="button"},text:function(aI){var i;return aI.nodeName.toLowerCase()==="input"&&aI.type==="text"&&((i=aI.getAttribute("type"))==null||i.toLowerCase()==="text")},first:at(function(){return[0]}),last:at(function(i,aI){return[aI-1]}),eq:at(function(i,aJ,aI){return[aI<0?aI+aJ:aI]}),even:at(function(aI,aK){var aJ=0;for(;aJ<aK;aJ+=2){aI.push(aJ)}return aI}),odd:at(function(aI,aK){var aJ=1;for(;aJ<aK;aJ+=2){aI.push(aJ)}return aI}),lt:at(function(aI,aL,aK){var aJ=aK<0?aK+aL:aK;for(;--aJ>=0;){aI.push(aJ)}return aI}),gt:at(function(aI,aL,aK){var aJ=aK<0?aK+aL:aK;for(;++aJ<aL;){aI.push(aJ)}return aI})}};z.pseudos.nth=z.pseudos.eq;for(J in {radio:true,checkbox:true,file:true,password:true,image:true}){z.pseudos[J]=I(J)}for(J in {submit:true,reset:true}){z.pseudos[J]=n(J)}function ag(){}ag.prototype=z.filters=z.pseudos;z.setFilters=new ag();t=H.tokenize=function(aL,aQ){var aI,aM,aO,aP,aN,aJ,i,aK=av[aL+" "];if(aK){return aQ?0:aK.slice(0)}aN=aL;aJ=[];i=z.preFilter;while(aN){if(!aI||(aM=G.exec(aN))){if(aM){aN=aN.slice(aM[0].length)||aN}aJ.push((aO=[]))}aI=false;if((aM=M.exec(aN))){aI=aM.shift();aO.push({value:aI,type:aM[0].replace(D," ")});aN=aN.slice(aI.length)}for(aP in z.filter){if((aM=an[aP].exec(aN))&&(!i[aP]||(aM=i[aP](aM)))){aI=aM.shift();aO.push({value:aI,type:aP,matches:aM});aN=aN.slice(aI.length)}}if(!aI){break}}return aQ?aN.length:aN?H.error(aL):av(aL,aJ).slice(0)};function u(aL){var aK=0,aJ=aL.length,aI="";for(;aK<aJ;aK++){aI+=aL[aK].value}return aI}function C(aL,aJ,aK){var i=aJ.dir,aM=aK&&i==="parentNode",aI=ap++;return aJ.first?function(aP,aO,aN){while((aP=aP[i])){if(aP.nodeType===1||aM){return aL(aP,aO,aN)}}}:function(aR,aP,aO){var aS,aQ,aN=[aE,aI];if(aO){while((aR=aR[i])){if(aR.nodeType===1||aM){if(aL(aR,aP,aO)){return true}}}}else{while((aR=aR[i])){if(aR.nodeType===1||aM){aQ=aR[aw]||(aR[aw]={});if((aS=aQ[i])&&aS[0]===aE&&aS[1]===aI){return(aN[2]=aS[2])}else{aQ[i]=aN;if((aN[2]=aL(aR,aP,aO))){return true}}}}}}}function aG(i){return i.length>1?function(aL,aK,aI){var aJ=i.length;while(aJ--){if(!i[aJ](aL,aK,aI)){return false}}return true}:i[0]}function K(aJ,aM,aL){var aK=0,aI=aM.length;for(;aK<aI;aK++){H(aJ,aM[aK],aL)}return aL}function al(aI,aJ,aK,aL,aO){var aM,aR=[],aN=0,aP=aI.length,aQ=aJ!=null;for(;aN<aP;aN++){if((aM=aI[aN])){if(!aK||aK(aM,aL,aO)){aR.push(aM);if(aQ){aJ.push(aN)}}}}return aR}function s(aJ,aI,aL,aK,aM,i){if(aK&&!aK[aw]){aK=s(aK)}if(aM&&!aM[aw]){aM=s(aM,i)}return v(function(aX,aU,aP,aW){var aZ,aV,aR,aQ=[],aY=[],aO=aU.length,aN=aX||K(aI||"*",aP.nodeType?[aP]:aP,[]),aS=aJ&&(aX||!aI)?al(aN,aQ,aJ,aP,aW):aN,aT=aL?aM||(aX?aJ:aO||aK)?[]:aU:aS;if(aL){aL(aS,aT,aP,aW)}if(aK){aZ=al(aT,aY);aK(aZ,[],aP,aW);aV=aZ.length;while(aV--){if((aR=aZ[aV])){aT[aY[aV]]=!(aS[aY[aV]]=aR)}}}if(aX){if(aM||aJ){if(aM){aZ=[];aV=aT.length;while(aV--){if((aR=aT[aV])){aZ.push((aS[aV]=aR))}}aM(null,(aT=[]),aZ,aW)}aV=aT.length;while(aV--){if((aR=aT[aV])&&(aZ=aM?p.call(aX,aR):aQ[aV])>-1){aX[aZ]=!(aU[aZ]=aR)}}}}else{aT=al(aT===aU?aT.splice(aO,aT.length):aT);if(aM){aM(null,aU,aT,aW)}else{j.apply(aU,aT)}}})}function ax(aO){var aJ,aM,aK,aN=aO.length,aR=z.relative[aO[0].type],aS=aR||z.relative[" "],aL=aR?1:0,aP=C(function(i){return i===aJ},aS,true),aQ=C(function(i){return p.call(aJ,i)>-1},aS,true),aI=[function(aU,aT,i){return(!aR&&(i||aT!==aH))||((aJ=aT).nodeType?aP(aU,aT,i):aQ(aU,aT,i))}];for(;aL<aN;aL++){if((aM=z.relative[aO[aL].type])){aI=[C(aG(aI),aM)]}else{aM=z.filter[aO[aL].type].apply(null,aO[aL].matches);if(aM[aw]){aK=++aL;for(;aK<aN;aK++){if(z.relative[aO[aK].type]){break}}return s(aL>1&&aG(aI),aL>1&&u(aO.slice(0,aL-1).concat({value:aO[aL-2].type===" "?"*":""})).replace(D,"$1"),aM,aL<aK&&ax(aO.slice(aL,aK)),aK<aN&&ax((aO=aO.slice(aK))),aK<aN&&u(aO))}aI.push(aM)}}return aG(aI)}function aj(aK,aJ){var i=aJ.length>0,aL=aK.length>0,aI=function(aV,aP,aU,aT,aY){var aQ,aR,aW,a0=0,aS="0",aM=aV&&[],a1=[],aZ=aH,aO=aV||aL&&z.find.TAG("*",aY),aN=(aE+=aZ==null?1:Math.random()||0.1),aX=aO.length;if(aY){aH=aP!==N&&aP}for(;aS!==aX&&(aQ=aO[aS])!=null;aS++){if(aL&&aQ){aR=0;while((aW=aK[aR++])){if(aW(aQ,aP,aU)){aT.push(aQ);break}}if(aY){aE=aN}}if(i){if((aQ=!aW&&aQ)){a0--}if(aV){aM.push(aQ)}}}a0+=aS;if(i&&aS!==a0){aR=0;while((aW=aJ[aR++])){aW(aM,a1,aP,aU)}if(aV){if(a0>0){while(aS--){if(!(aM[aS]||a1[aS])){a1[aS]=az.call(aT)}}}a1=al(a1)}j.apply(aT,a1);if(aY&&!aV&&a1.length>0&&(a0+aJ.length)>1){H.uniqueSort(aT)}}if(aY){aE=aN;aH=aZ}return aM};return i?v(aI):aI}ah=H.compile=function(aI,aK){var aL,aJ=[],aN=[],aM=R[aI+" "];if(!aM){if(!aK){aK=t(aI)}aL=aK.length;while(aL--){aM=ax(aK[aL]);if(aM[aw]){aJ.push(aM)}else{aN.push(aM)}}aM=R(aI,aj(aN,aJ));aM.selector=aI}return aM};aC=H.select=function(aK,aI,aL,aO){var aM,aR,aJ,aS,aP,aQ=typeof aK==="function"&&aK,aN=!aO&&t((aK=aQ.selector||aK));aL=aL||[];if(aN.length===1){aR=aN[0]=aN[0].slice(0);if(aR.length>2&&(aJ=aR[0]).type==="ID"&&aD.getById&&aI.nodeType===9&&au&&z.relative[aR[1].type]){aI=(z.find.ID(aJ.matches[0].replace(E,aq),aI)||[])[0];if(!aI){return aL}else{if(aQ){aI=aI.parentNode}}aK=aK.slice(aR.shift().value.length)}aM=an.needsContext.test(aK)?0:aR.length;while(aM--){aJ=aR[aM];if(z.relative[(aS=aJ.type)]){break}if((aP=z.find[aS])){if((aO=aP(aJ.matches[0].replace(E,aq),am.test(aR[0].type)&&ae(aI.parentNode)||aI))){aR.splice(aM,1);aK=aO.length&&u(aR);if(!aK){j.apply(aL,aO);return aL}break}}}}(aQ||ah(aK,aN))(aO,aI,!au,aL,am.test(aK)&&ae(aI.parentNode)||aI);return aL};aD.sortStable=aw.split("").sort(P).join("")===aw;aD.detectDuplicates=!!ai;ak();aD.sortDetached=r(function(i){return i.compareDocumentPosition(N.createElement("div"))&1});if(!r(function(i){i.innerHTML="<a href='#'></a>";return i.firstChild.getAttribute("href")==="#"})){aF("type|href|height|width",function(aI,i,aJ){if(!aJ){return aI.getAttribute(i,i.toLowerCase()==="type"?1:2)}})}if(!aD.attributes||!r(function(i){i.innerHTML="<input/>";i.firstChild.setAttribute("value","");return i.firstChild.getAttribute("value")===""})){aF("value",function(aI,i,aJ){if(!aJ&&aI.nodeName.toLowerCase()==="input"){return aI.defaultValue}})}if(!r(function(i){return i.getAttribute("disabled")==null})){aF(k,function(aI,i,aK){var aJ;if(!aK){return aI[i]===true?i.toLowerCase():(aJ=aI.getAttributeNode(i))&&aJ.specified?aJ.value:null}})}return H});h("tinymce/Env",[],function(){var i=navigator,t=i.userAgent;var m,s,j,p,o,l,r,n,k;m=window.opera&&window.opera.buildNumber;k=/Android/.test(t);s=/WebKit/.test(t);j=!s&&!m&&(/MSIE/gi).test(t)&&(/Explorer/gi).test(i.appName);j=j&&/MSIE (\w+)\./.exec(t)[1];p=t.indexOf("Trident/")!=-1&&(t.indexOf("rv:")!=-1||i.appName.indexOf("Netscape")!=-1)?11:false;o=(document.msElementsFromPoint&&!j&&!p)?12:false;j=j||p||o;l=!s&&!p&&/Gecko/.test(t);r=t.indexOf("Mac")!=-1;n=/(iPad|iPhone)/.test(t);if(o){s=false}var q=!n||t.match(/AppleWebKit\/(\d*)/)[1]>=534;return{opera:m,webkit:s,ie:j,gecko:l,mac:r,iOS:n,android:k,contentEditable:q,transparentSrc:"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",caretAfter:j!=8,range:window.getSelection&&"Range" in window,documentMode:j&&!o?(document.documentMode||7):10}});h("tinymce/util/Tools",["tinymce/Env"],function(i){var z=/^\s*|\s*$/g;function u(A){return(A===null||A===g)?"":(""+A).replace(z,"")}var o=Array.isArray||function(A){return Object.prototype.toString.call(A)==="[object Array]"};function m(B,A){if(!A){return B!==g}if(A=="array"&&o(B)){return true}return typeof B==A}function s(C){var D=C,B,A;if(!o(C)){D=[];for(B=0,A=C.length;B<A;B++){D[B]=C[B]}}return D}function q(A,D,C){var B;A=A||[];D=D||",";if(typeof A=="string"){A=A.split(D)}C=C||{};B=A.length;while(B--){C[A[B]]={}}return C}function k(D,A,C){var E,B;if(!D){return 0}C=C||D;if(D.length!==g){for(E=0,B=D.length;E<B;E++){if(A.call(C,D[E],E,D)===false){return 0}}}else{for(E in D){if(D.hasOwnProperty(E)){if(A.call(C,D[E],E,D)===false){return 0}}}}return 1}function y(C,B){var A=[];k(C,function(D){A.push(B(D))});return A}function n(A,B){var C=[];k(A,function(D){if(!B||B(D)){C.push(D)}});return C}function p(J,A,E){var I=this,B,D,F,G,C,H=0;J=/^((static) )?([\w.]+)(:([\w.]+))?/.exec(J);F=J[3].match(/(^|\.)(\w+)$/i)[2];D=I.createNS(J[3].replace(/\.\w+$/,""),E);if(D[F]){return}if(J[2]=="static"){D[F]=A;if(this.onCreate){this.onCreate(J[2],J[3],D[F])}return}if(!A[F]){A[F]=function(){};H=1}D[F]=A[F];I.extend(D[F].prototype,A);if(J[5]){B=I.resolve(J[5]).prototype;G=J[5].match(/\.(\w+)$/i)[1];C=D[F];if(H){D[F]=function(){return B[G].apply(this,arguments)}}else{D[F]=function(){this.parent=B[G];return C.apply(this,arguments)}}D[F].prototype[F]=D[F];I.each(B,function(K,L){D[F].prototype[L]=B[L]});I.each(A,function(K,L){if(B[L]){D[F].prototype[L]=function(){this.parent=B[L];return K.apply(this,arguments)}}else{if(L!=F){D[F].prototype[L]=K}}})}I.each(A["static"],function(K,L){D[F][L]=K})}function v(B,C){var D,A;if(B){for(D=0,A=B.length;D<A;D++){if(B[D]===C){return D}}}return -1}function w(G,E){var D,A,C,B=arguments,F;for(D=1,A=B.length;D<A;D++){E=B[D];for(C in E){if(E.hasOwnProperty(C)){F=E[C];if(F!==g){G[C]=F}}}}return G}function x(C,B,D,A){A=A||this;if(C){if(D){C=C[D]}k(C,function(F,E){if(B.call(A,F,E,D)===false){return false}x(F,B,D,A)})}}function l(D,C){var B,A;C=C||window;D=D.split(".");for(B=0;B<D.length;B++){A=D[B];if(!C[A]){C[A]={}}C=C[A]}return C}function t(D,C){var B,A;C=C||window;D=D.split(".");for(B=0,A=D.length;B<A;B++){C=C[D[B]];if(!C){break}}return C}function r(A,B){if(!A||m(A,"array")){return A}return y(A.split(B||","),u)}function j(B){var A=i.cacheSuffix;if(A){B+=(B.indexOf("?")===-1?"?":"&")+A}return B}return{trim:u,isArray:o,is:m,toArray:s,makeMap:q,each:k,map:y,grep:n,inArray:v,extend:w,create:p,walk:x,createNS:l,resolve:t,explode:r,_addCacheSuffix:j}});h("tinymce/dom/DomQuery",["tinymce/dom/EventUtils","tinymce/dom/Sizzle","tinymce/util/Tools","tinymce/Env"],function(t,q,n,o){var P=document,v=Array.prototype.push,E=Array.prototype.slice;var B=/^(?:[^#<]*(<[\w\W]+>)[^>]*$|#([\w\-]*)$)/;var O=t.Event,p;function k(Q){return typeof Q!=="undefined"}function y(Q){return typeof Q==="string"}function J(Q){return Q&&Q==Q.window}function D(S,R){var U,T,Q;R=R||P;Q=R.createElement("div");U=R.createDocumentFragment();Q.innerHTML=S;while((T=Q.firstChild)){U.appendChild(T)}return U}function A(Q,T,U,R){var S;if(y(T)){T=D(T,z(Q[0]))}else{if(T.length&&!T.nodeType){T=r.makeArray(T);if(R){for(S=T.length-1;S>=0;S--){A(Q,T[S],U,R)}}else{for(S=0;S<T.length;S++){A(Q,T[S],U,R)}}return Q}}if(T.nodeType){S=Q.length;while(S--){U.call(Q[S],T)}}return Q}function l(R,Q){return R&&Q&&(" "+R.className+" ").indexOf(" "+Q+" ")!==-1}function x(T,U,R){var Q,S;U=r(U)[0];T.each(function(){var V=this;if(!R||Q!=V.parentNode){Q=V.parentNode;S=U.cloneNode(false);V.parentNode.insertBefore(S,V);S.appendChild(V)}else{S.appendChild(V)}});return T}var j=n.makeMap("fillOpacity fontWeight lineHeight opacity orphans widows zIndex zoom"," ");var G=n.makeMap("checked compact declare defer disabled ismap multiple nohref noshade nowrap readonly selected"," ");var K={"for":"htmlFor","class":"className",readonly:"readOnly"};var m={"float":"cssFloat"};var M={},N={};function r(Q,R){return new r.fn.init(Q,R)}function H(R,S){var Q;if(S.indexOf){return S.indexOf(R)}Q=S.length;while(Q--){if(S[Q]===R){return Q}}return -1}var L=/^\s*|\s*$/g;function F(Q){return(Q===null||Q===p)?"":(""+Q).replace(L,"")}function s(V,W){var T,R,Q,S,U;if(V){T=V.length;if(T===S){for(R in V){if(V.hasOwnProperty(R)){U=V[R];if(W.call(U,R,U)===false){break}}}}else{for(Q=0;Q<T;Q++){U=V[Q];if(W.call(U,Q,U)===false){break}}}}return V}function w(S,R){var Q=[];s(S,function(T,U){if(R(U,T)){Q.push(U)}});return Q}function z(Q){if(!Q){return P}if(Q.nodeType==9){return Q}return Q.ownerDocument}r.fn=r.prototype={constructor:r,selector:"",context:null,length:0,init:function(Q,T){var R=this,S,U;if(!Q){return R}if(Q.nodeType){R.context=R[0]=Q;R.length=1;return R}if(T&&T.nodeType){R.context=T}else{if(T){return r(Q).attr(T)}else{R.context=T=document}}if(y(Q)){R.selector=Q;if(Q.charAt(0)==="<"&&Q.charAt(Q.length-1)===">"&&Q.length>=3){S=[null,Q,null]}else{S=B.exec(Q)}if(S){if(S[1]){U=D(Q,z(T)).firstChild;while(U){v.call(R,U);U=U.nextSibling}}else{U=z(T).getElementById(S[2]);if(!U){return R}if(U.id!==S[2]){return R.find(Q)}R.length=1;R[0]=U}}else{return r(T).find(Q)}}else{this.add(Q,false)}return R},toArray:function(){return n.toArray(this)},add:function(S,U){var R=this,Q,T;if(y(S)){return R.add(r(S))}if(U!==false){Q=r.unique(R.toArray().concat(r.makeArray(S)));R.length=Q.length;for(T=0;T<Q.length;T++){R[T]=Q[T]}}else{v.apply(R,r.makeArray(S))}return R},attr:function(R,T){var Q=this,S;if(typeof R==="object"){s(R,function(U,V){Q.attr(U,V)})}else{if(k(T)){this.each(function(){var U;if(this.nodeType===1){U=M[R];if(U&&U.set){U.set(this,T);return}if(T===null){this.removeAttribute(R,2)}else{this.setAttribute(R,T,2)}}})}else{if(Q[0]&&Q[0].nodeType===1){S=M[R];if(S&&S.get){return S.get(Q[0],R)}if(G[R]){return Q.prop(R)?R:p}T=Q[0].getAttribute(R,2);if(T===null){T=p}}return T}}return Q},removeAttr:function(Q){return this.attr(Q,null)},prop:function(R,S){var Q=this;R=K[R]||R;if(typeof R==="object"){s(R,function(T,U){Q.prop(T,U)})}else{if(k(S)){this.each(function(){if(this.nodeType==1){this[R]=S}})}else{if(Q[0]&&Q[0].nodeType&&R in Q[0]){return Q[0][R]}return S}}return Q},css:function(S,W){var R=this,X,V;function U(Y){return Y.replace(/-(\D)/g,function(aa,Z){return Z.toUpperCase()})}function Q(Y){return Y.replace(/[A-Z]/g,function(Z){return"-"+Z})}if(typeof S==="object"){s(S,function(Y,Z){R.css(Y,Z)})}else{if(k(W)){S=U(S);if(typeof W==="number"&&!j[S]){W+="px"}R.each(function(){var Z=this.style;V=N[S];if(V&&V.set){V.set(this,W);return}try{this.style[m[S]||S]=W}catch(Y){}if(W===null||W===""){if(Z.removeProperty){Z.removeProperty(Q(S))}else{Z.removeAttribute(S)}}})}else{X=R[0];V=N[S];if(V&&V.get){return V.get(X)}if(X.ownerDocument.defaultView){try{return X.ownerDocument.defaultView.getComputedStyle(X,null).getPropertyValue(Q(S))}catch(T){return p}}else{if(X.currentStyle){return X.currentStyle[U(S)]}}}}return R},remove:function(){var Q=this,S,R=this.length;while(R--){S=Q[R];O.clean(S);if(S.parentNode){S.parentNode.removeChild(S)}}return this},empty:function(){var Q=this,S,R=this.length;while(R--){S=Q[R];while(S.firstChild){S.removeChild(S.firstChild)}}return this},html:function(T){var Q=this,S;if(k(T)){S=Q.length;try{while(S--){Q[S].innerHTML=T}}catch(R){r(Q[S]).empty().append(T)}return Q}return Q[0]?Q[0].innerHTML:""},text:function(S){var Q=this,R;if(k(S)){R=Q.length;while(R--){if("innerText" in Q[R]){Q[R].innerText=S}else{Q[0].textContent=S}}return Q}return Q[0]?(Q[0].innerText||Q[0].textContent):""},append:function(){return A(this,arguments,function(Q){if(this.nodeType===1){this.appendChild(Q)}})},prepend:function(){return A(this,arguments,function(Q){if(this.nodeType===1){this.insertBefore(Q,this.firstChild)}},true)},before:function(){var Q=this;if(Q[0]&&Q[0].parentNode){return A(Q,arguments,function(R){this.parentNode.insertBefore(R,this)})}return Q},after:function(){var Q=this;if(Q[0]&&Q[0].parentNode){return A(Q,arguments,function(R){this.parentNode.insertBefore(R,this.nextSibling)},true)}return Q},appendTo:function(Q){r(Q).append(this);return this},prependTo:function(Q){r(Q).prepend(this);return this},replaceWith:function(Q){return this.before(Q).remove()},wrap:function(Q){return x(this,Q)},wrapAll:function(Q){return x(this,Q,true)},wrapInner:function(Q){this.each(function(){r(this).contents().wrapAll(Q)});return this},unwrap:function(){return this.parent().each(function(){r(this).replaceWith(this.childNodes)})},clone:function(){var Q=[];this.each(function(){Q.push(this.cloneNode(true))});return r(Q)},addClass:function(Q){return this.toggleClass(Q,true)},removeClass:function(Q){return this.toggleClass(Q,false)},toggleClass:function(R,S){var Q=this;if(typeof R!="string"){return Q}if(R.indexOf(" ")!==-1){s(R.split(" "),function(){Q.toggleClass(this,S)})}else{Q.each(function(T,V){var U,W;W=l(V,R);if(W!==S){U=V.className;if(W){V.className=F((" "+U+" ").replace(" "+R+" "," "))}else{V.className+=U?" "+R:R}}})}return Q},hasClass:function(Q){return l(this[0],Q)},each:function(Q){return s(this,Q)},on:function(Q,R){return this.each(function(){O.bind(this,Q,R)})},off:function(Q,R){return this.each(function(){O.unbind(this,Q,R)})},trigger:function(Q){return this.each(function(){if(typeof Q=="object"){O.fire(this,Q.type,Q)}else{O.fire(this,Q)}})},show:function(){return this.css("display","")},hide:function(){return this.css("display","none")},slice:function(){return new r(E.apply(this,arguments))},eq:function(Q){return Q===-1?this.slice(Q):this.slice(Q,+Q+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},find:function(Q){var T,R,S=[];for(T=0,R=this.length;T<R;T++){r.find(Q,this[T],S)}return r(S)},filter:function(Q){if(typeof Q=="function"){return r(w(this.toArray(),function(S,R){return Q(R,S)}))}return r(r.filter(Q,this.toArray()))},closest:function(R){var Q=[];if(R instanceof r){R=R[0]}this.each(function(S,T){while(T){if(typeof R=="string"&&r(T).is(R)){Q.push(T);break}else{if(T==R){Q.push(T);break}}T=T.parentNode}});return r(Q)},offset:function(T){var W,S,R;var Q=0,V=0,U;if(!T){W=this[0];if(W){S=W.ownerDocument;R=S.documentElement;if(W.getBoundingClientRect){U=W.getBoundingClientRect();Q=U.left+(R.scrollLeft||S.body.scrollLeft)-R.clientLeft;V=U.top+(R.scrollTop||S.body.scrollTop)-R.clientTop}}return{left:Q,top:V}}return this.css(T)},push:v,sort:[].sort,splice:[].splice};n.extend(r,{extend:n.extend,makeArray:function(Q){if(J(Q)||Q.nodeType){return[Q]}return n.toArray(Q)},inArray:H,isArray:n.isArray,each:s,trim:F,grep:w,find:q,expr:q.selectors,unique:q.uniqueSort,text:q.getText,contains:q.contains,filter:function(T,Q,S){var R=Q.length;if(S){T=":not("+T+")"}while(R--){if(Q[R].nodeType!=1){Q.splice(R,1)}}if(Q.length===1){Q=r.find.matchesSelector(Q[0],T)?[Q[0]]:[]}else{Q=r.find.matches(T,Q)}return Q}});function C(R,U,T){var Q=[],S=R[U];if(typeof T!="string"&&T instanceof r){T=T[0]}while(S&&S.nodeType!==9){if(T!==g){if(S===T){break}if(typeof T=="string"&&r(S).is(T)){break}}if(S.nodeType===1){Q.push(S)}S=S[U]}return Q}function I(T,S,R,U){var Q=[];if(U instanceof r){U=U[0]}for(;T;T=T[S]){if(R&&T.nodeType!==R){continue}if(U!==g){if(T===U){break}if(typeof U=="string"&&r(T).is(U)){break}}Q.push(T)}return Q}function i(S,R,Q){for(S=S[R];S;S=S[R]){if(S.nodeType==Q){return S}}return null}s({parent:function(R){var Q=R.parentNode;return Q&&Q.nodeType!==11?Q:null},parents:function(Q){return C(Q,"parentNode")},next:function(Q){return i(Q,"nextSibling",1)},prev:function(Q){return i(Q,"previousSibling",1)},children:function(Q){return I(Q.firstChild,"nextSibling",1)},contents:function(Q){return n.toArray((Q.nodeName==="iframe"?Q.contentDocument||Q.contentWindow.document:Q).childNodes)}},function(Q,R){r.fn[Q]=function(T){var U=this,S=[];U.each(function(){var V=R.call(S,this,T,S);if(V){if(r.isArray(V)){S.push.apply(S,V)}else{S.push(V)}}});if(this.length>1){S=r.unique(S);if(Q.indexOf("parents")===0){S=S.reverse()}}S=r(S);if(T){return S.filter(T)}return S}});s({parentsUntil:function(Q,R){return C(Q,"parentNode",R)},nextUntil:function(Q,R){return I(Q,"nextSibling",1,R).slice(1)},prevUntil:function(Q,R){return I(Q,"previousSibling",1,R).slice(1)}},function(Q,R){r.fn[Q]=function(T,V){var U=this,S=[];U.each(function(){var W=R.call(S,this,T,S);if(W){if(r.isArray(W)){S.push.apply(S,W)}else{S.push(W)}}});if(this.length>1){S=r.unique(S);if(Q.indexOf("parents")===0||Q==="prevUntil"){S=S.reverse()}}S=r(S);if(V){return S.filter(V)}return S}});r.fn.is=function(Q){return !!Q&&this.filter(Q).length>0};r.fn.init.prototype=r.fn;r.overrideDefaults=function(S){var R;function Q(T,U){R=R||S();if(arguments.length===0){T=R.element}if(!U){U=R.context}return new Q.fn.init(T,U)}r.extend(Q,this);return Q};function u(S,R,Q){s(Q,function(T,U){S[T]=S[T]||{};S[T][R]=U})}if(o.ie&&o.ie<8){u(M,"get",{maxlength:function(R){var Q=R.maxLength;if(Q===2147483647){return p}return Q},size:function(R){var Q=R.size;if(Q===20){return p}return Q},"class":function(Q){return Q.className},style:function(R){var Q=R.style.cssText;if(Q.length===0){return p}return Q}});u(M,"set",{"class":function(R,Q){R.className=Q},style:function(R,Q){R.style.cssText=Q}})}if(o.ie&&o.ie<9){m["float"]="styleFloat";u(N,"set",{opacity:function(S,R){var Q=S.style;if(R===null||R===""){Q.removeAttribute("filter")}else{Q.zoom=1;Q.filter="alpha(opacity="+(R*100)+")"}}})}r.attrHooks=M;r.cssHooks=N;return r});h("tinymce/html/Styles",[],function(){return function(o,q){var u=/rgb\s*\(\s*([0-9]+)\s*,\s*([0-9]+)\s*,\s*([0-9]+)\s*\)/gi,r=/(?:url(?:(?:\(\s*\"([^\"]+)\"\s*\))|(?:\(\s*\'([^\']+)\'\s*\))|(?:\(\s*([^)\s]+)\s*\))))|(?:\'([^\']+)\')|(?:\"([^\"]+)\")/gi,l=/\s*([^:]+):\s*([^;]+);?/g,w=/\s+$/,p,s,k={},t,n,j,v="\uFEFF";o=o||{};if(q){n=q.getValidStyles();j=q.getInvalidStyles()}t=("\\\" \\' \\; \\: ; : "+v).split(" ");for(s=0;s<t.length;s++){k[t[s]]=v+s;k[v+s]=t[s]}function m(x,A,z,i){function y(B){B=parseInt(B,10).toString(16);return B.length>1?B:"0"+B}return"#"+y(A)+y(z)+y(i)}return{toHex:function(i){return i.replace(u,m)},parse:function(C){var I={},A,x,G,B,F=o.url_converter;var H=o.url_converter_scope||this;function z(O,R,L){var Q,M,K,P;Q=I[O+"-top"+R];if(!Q){return}M=I[O+"-right"+R];if(!M){return}K=I[O+"-bottom"+R];if(!K){return}P=I[O+"-left"+R];if(!P){return}var N=[Q,M,K,P];s=N.length-1;while(s--){if(N[s]!==N[s+1]){break}}if(s>-1&&L){return}I[O+R]=s==-1?N[0]:N.join(" ");delete I[O+"-top"+R];delete I[O+"-right"+R];delete I[O+"-bottom"+R];delete I[O+"-left"+R]}function E(L){var M=I[L],K;if(!M){return}M=M.split(" ");K=M.length;while(K--){if(M[K]!==M[0]){return false}}I[L]=M[0];return true}function J(M,L,K,N){if(!E(L)){return}if(!E(K)){return}if(!E(N)){return}I[M]=I[L]+" "+I[K]+" "+I[N];delete I[L];delete I[K];delete I[N]}function D(K){B=true;return k[K]}function i(L,K){if(B){L=L.replace(/\uFEFF[0-9]/g,function(M){return k[M]})}if(!K){L=L.replace(/\\([\'\";:])/g,"$1")}return L}function y(L,K,O,N,Q,M){Q=Q||M;if(Q){Q=i(Q);return"'"+Q.replace(/\'/g,"\\'")+"'"}K=i(K||O||N);if(!o.allow_script_urls){var P=K.replace(/[\s\r\n]+/,"");if(/(java|vb)script:/i.test(P)){return""}if(!o.allow_svg_data_urls&&/^data:image\/svg/i.test(P)){return""}}if(F){K=F.call(H,K,"style")}return"url('"+K.replace(/\'/g,"\\'")+"')"}if(C){C=C.replace(/[\u0000-\u001F]/g,"");C=C.replace(/\\[\"\';:\uFEFF]/g,D).replace(/\"[^\"]+\"|\'[^\']+\'/g,function(K){return K.replace(/[;:]/g,D)});while((A=l.exec(C))){x=A[1].replace(w,"").toLowerCase();G=A[2].replace(w,"");G=G.replace(/\\[0-9a-f]+/g,function(K){return String.fromCharCode(parseInt(K.substr(1),16))});if(x&&G.length>0){if(!o.allow_script_urls&&(x=="behavior"||/expression\s*\(|\/\*|\*\//.test(G))){continue}if(x==="font-weight"&&G==="700"){G="bold"}else{if(x==="color"||x==="background-color"){G=G.toLowerCase()}}G=G.replace(u,m);G=G.replace(r,y);I[x]=B?i(G,true):G}l.lastIndex=A.index+A[0].length}z("border","",true);z("border","-width");z("border","-color");z("border","-style");z("padding","");z("margin","");J("border","border-width","border-style","border-color");if(I.border==="medium none"){delete I.border}if(I["border-image"]==="none"){delete I["border-image"]}}return I},serialize:function(A,i){var z="",y,B;function x(E){var H,F,D,G;H=n[E];if(H){for(F=0,D=H.length;F<D;F++){E=H[F];G=A[E];if(G!==p&&G.length>0){z+=(z.length>0?" ":"")+E+": "+G+";"}}}}function C(E,D){var F;F=j["*"];if(F&&F[E]){return false}F=j[D];if(F&&F[E]){return false}return true}if(i&&n){x("*");x(i)}else{for(y in A){B=A[y];if(B!==p&&B.length>0){if(!j||C(y,i)){z+=(z.length>0?" ":"")+y+": "+B+";"}}}}return z}}}});h("tinymce/dom/TreeWalker",[],function(){return function(j,i){var k=j;function l(q,m,n,r){var p,o;if(q){if(!r&&q[m]){return q[m]}if(q!=i){p=q[n];if(p){return p}for(o=q.parentNode;o&&o!=i;o=o.parentNode){p=o[n];if(p){return p}}}}}this.current=function(){return k};this.next=function(m){k=l(k,"firstChild","nextSibling",m);return k};this.prev=function(m){k=l(k,"lastChild","previousSibling",m);return k}}});h("tinymce/dom/Range",["tinymce/util/Tools"],function(i){function j(k){var o=this,m=k.doc,aa=0,M=1,s=2,L=true,Y=false,ac="startOffset",q="startContainer",W="endContainer",H="endOffset",t=i.extend,w=k.nodeIndex;function E(){return m.createDocumentFragment()}function z(ae,ad){J(L,ae,ad)}function B(ae,ad){J(Y,ae,ad)}function p(ad){z(ad.parentNode,w(ad))}function Q(ad){z(ad.parentNode,w(ad)+1)}function R(ad){B(ad.parentNode,w(ad))}function C(ad){B(ad.parentNode,w(ad)+1)}function I(ad){if(ad){o[W]=o[q];o[H]=o[ac]}else{o[q]=o[W];o[ac]=o[H]}o.collapsed=L}function F(ad){p(ad);C(ad)}function N(ad){z(ad,0);B(ad,ad.nodeType===1?ad.childNodes.length:ad.nodeValue.length)}function D(ah,ad){var ak=o[q],af=o[ac],aj=o[W],ae=o[H],ai=ad.startContainer,am=ad.startOffset,ag=ad.endContainer,al=ad.endOffset;if(ah===0){return O(ak,af,ai,am)}if(ah===1){return O(aj,ae,ai,am)}if(ah===2){return O(aj,ae,ag,al)}if(ah===3){return O(ak,af,ag,al)}}function y(){u(s)}function P(){return u(aa)}function l(){return u(M)}function K(ah){var ae=this[q],ad=this[ac],ag,af;if((ae.nodeType===3||ae.nodeType===4)&&ae.nodeValue){if(!ad){ae.parentNode.insertBefore(ah,ae)}else{if(ad>=ae.nodeValue.length){k.insertAfter(ah,ae)}else{ag=ae.splitText(ad);ae.parentNode.insertBefore(ah,ag)}}}else{if(ae.childNodes.length>0){af=ae.childNodes[ad]}if(af){ae.insertBefore(ah,af)}else{if(ae.nodeType==3){k.insertAfter(ah,ae)}else{ae.appendChild(ah)}}}}function U(ae){var ad=o.extractContents();o.insertNode(ae);ae.appendChild(ad);o.selectNode(ae)}function S(){return t(new j(k),{startContainer:o[q],startOffset:o[ac],endContainer:o[W],endOffset:o[H],collapsed:o.collapsed,commonAncestorContainer:o.commonAncestorContainer})}function V(ad,ae){var af;if(ad.nodeType==3){return ad}if(ae<0){return ad}af=ad.firstChild;while(af&&ae>0){--ae;af=af.nextSibling}if(af){return af}return ad}function v(){return(o[q]==o[W]&&o[ac]==o[H])}function O(ag,ai,ae,ah){var aj,af,ad,ak,am,al;if(ag==ae){if(ai==ah){return 0}if(ai<ah){return -1}return 1}aj=ae;while(aj&&aj.parentNode!=ag){aj=aj.parentNode}if(aj){af=0;ad=ag.firstChild;while(ad!=aj&&af<ai){af++;ad=ad.nextSibling}if(ai<=af){return -1}return 1}aj=ag;while(aj&&aj.parentNode!=ae){aj=aj.parentNode}if(aj){af=0;ad=ae.firstChild;while(ad!=aj&&af<ah){af++;ad=ad.nextSibling}if(af<ah){return -1}return 1}ak=k.findCommonAncestor(ag,ae);am=ag;while(am&&am.parentNode!=ak){am=am.parentNode}if(!am){am=ak}al=ae;while(al&&al.parentNode!=ak){al=al.parentNode}if(!al){al=ak}if(am==al){return 0}ad=ak.firstChild;while(ad){if(ad==am){return -1}if(ad==al){return 1}ad=ad.nextSibling}}function J(ae,ah,ag){var ad,af;if(ae){o[q]=ah;o[ac]=ag}else{o[W]=ah;o[H]=ag}ad=o[W];while(ad.parentNode){ad=ad.parentNode}af=o[q];while(af.parentNode){af=af.parentNode}if(af==ad){if(O(o[q],o[ac],o[W],o[H])>0){o.collapse(ae)}}else{o.collapse(ae)}o.collapsed=v();o.commonAncestorContainer=k.findCommonAncestor(o[q],o[W])}function u(ak){var aj,ag=0,am=0,ae,ai,af,ah,ad,al;if(o[q]==o[W]){return n(ak)}for(aj=o[W],ae=aj.parentNode;ae;aj=ae,ae=ae.parentNode){if(ae==o[q]){return A(aj,ak)}++ag}for(aj=o[q],ae=aj.parentNode;ae;aj=ae,ae=ae.parentNode){if(ae==o[W]){return ab(aj,ak)}++am}ai=am-ag;af=o[q];while(ai>0){af=af.parentNode;ai--}ah=o[W];while(ai<0){ah=ah.parentNode;ai++}for(ad=af.parentNode,al=ah.parentNode;ad!=al;ad=ad.parentNode,al=al.parentNode){af=ad;ah=al}return x(af,ah,ak)}function n(aj){var al,am,ad,af,ag,ak,ah,ae,ai;if(aj!=s){al=E()}if(o[ac]==o[H]){return al}if(o[q].nodeType==3){am=o[q].nodeValue;ad=am.substring(o[ac],o[H]);if(aj!=M){af=o[q];ae=o[ac];ai=o[H]-o[ac];if(ae===0&&ai>=af.nodeValue.length-1){af.parentNode.removeChild(af)}else{af.deleteData(ae,ai)}o.collapse(L)}if(aj==s){return}if(ad.length>0){al.appendChild(m.createTextNode(ad))}return al}af=V(o[q],o[ac]);ag=o[H]-o[ac];while(af&&ag>0){ak=af.nextSibling;ah=G(af,aj);if(al){al.appendChild(ah)}--ag;af=ak}if(aj!=M){o.collapse(L)}return al}function A(ak,ah){var aj,ai,ae,ad,ag,af;if(ah!=s){aj=E()}ai=r(ak,ah);if(aj){aj.appendChild(ai)}ae=w(ak);ad=ae-o[ac];if(ad<=0){if(ah!=M){o.setEndBefore(ak);o.collapse(Y)}return aj}ai=ak.previousSibling;while(ad>0){ag=ai.previousSibling;af=G(ai,ah);if(aj){aj.insertBefore(af,aj.firstChild)}--ad;ai=ag}if(ah!=M){o.setEndBefore(ak);o.collapse(Y)}return aj}function ab(ai,ah){var ak,ae,aj,ad,ag,af;if(ah!=s){ak=E()}aj=X(ai,ah);if(ak){ak.appendChild(aj)}ae=w(ai);++ae;ad=o[H]-ae;aj=ai.nextSibling;while(aj&&ad>0){ag=aj.nextSibling;af=G(aj,ah);if(ak){ak.appendChild(af)}--ad;aj=ag}if(ah!=M){o.setStartAfter(ai);o.collapse(L)}return ak}function x(ah,ad,ak){var ae,am,ai,aj,af,al,ag;if(ak!=s){am=E()}ae=X(ah,ak);if(am){am.appendChild(ae)}ai=w(ah);aj=w(ad);++ai;af=aj-ai;al=ah.nextSibling;while(af>0){ag=al.nextSibling;ae=G(al,ak);if(am){am.appendChild(ae)}al=ag;--af}ae=r(ad,ak);if(am){am.appendChild(ae)}if(ak!=M){o.setStartAfter(ah);o.collapse(L)}return am}function r(aj,ak){var af=V(o[W],o[H]-1),al,ai;var ah,ad,ae,ag=af!=o[W];if(af==aj){return T(af,ag,Y,ak)}al=af.parentNode;ai=T(al,Y,Y,ak);while(al){while(af){ah=af.previousSibling;ad=T(af,ag,Y,ak);if(ak!=s){ai.insertBefore(ad,ai.firstChild)}ag=L;af=ah}if(al==aj){return ai}af=al.previousSibling;al=al.parentNode;ae=T(al,Y,Y,ak);if(ak!=s){ae.appendChild(ai)}ai=ae}}function X(aj,ak){var ag=V(o[q],o[ac]),ah=ag!=o[q];var al,ai,af,ad,ae;if(ag==aj){return T(ag,ah,L,ak)}al=ag.parentNode;ai=T(al,Y,L,ak);while(al){while(ag){af=ag.nextSibling;ad=T(ag,ah,L,ak);if(ak!=s){ai.appendChild(ad)}ah=L;ag=af}if(al==aj){return ai}ag=al.nextSibling;al=al.parentNode;ae=T(al,Y,L,ak);if(ak!=s){ae.appendChild(ai)}ai=ae}}function T(ad,ah,ak,al){var ag,af,ai,ae,aj;if(ah){return G(ad,al)}if(ad.nodeType==3){ag=ad.nodeValue;if(ak){ae=o[ac];af=ag.substring(ae);ai=ag.substring(0,ae)}else{ae=o[H];af=ag.substring(0,ae);ai=ag.substring(ae)}if(al!=M){ad.nodeValue=ai}if(al==s){return}aj=k.clone(ad,Y);aj.nodeValue=af;return aj}if(al==s){return}return k.clone(ad,Y)}function G(ae,ad){if(ad!=s){return ad==M?k.clone(ae,L):ae}ae.parentNode.removeChild(ae)}function Z(){return k.create("body",null,l()).outerText}t(o,{startContainer:m,startOffset:0,endContainer:m,endOffset:0,collapsed:L,commonAncestorContainer:m,START_TO_START:0,START_TO_END:1,END_TO_END:2,END_TO_START:3,setStart:z,setEnd:B,setStartBefore:p,setStartAfter:Q,setEndBefore:R,setEndAfter:C,collapse:I,selectNode:F,selectNodeContents:N,compareBoundaryPoints:D,deleteContents:y,extractContents:P,cloneContents:l,insertNode:K,surroundContents:U,cloneRange:S,toStringIE:Z});return o}j.prototype.toString=function(){return this.toStringIE()};return j});h("tinymce/html/Entities",["tinymce/util/Tools"],function(l){var m=l.makeMap;var i,r,o,u=/[&<>\"\u0060\u007E-\uD7FF\uE000-\uFFEF]|[\uD800-\uDBFF][\uDC00-\uDFFF]/g,j=/[<>&\u007E-\uD7FF\uE000-\uFFEF]|[\uD800-\uDBFF][\uDC00-\uDFFF]/g,q=/[<>&\"\']/g,n=/&#([a-z0-9]+);?|&([a-z0-9]+);/gi,t={128:"\u20AC",130:"\u201A",131:"\u0192",132:"\u201E",133:"\u2026",134:"\u2020",135:"\u2021",136:"\u02C6",137:"\u2030",138:"\u0160",139:"\u2039",140:"\u0152",142:"\u017D",145:"\u2018",146:"\u2019",147:"\u201C",148:"\u201D",149:"\u2022",150:"\u2013",151:"\u2014",152:"\u02DC",153:"\u2122",154:"\u0161",155:"\u203A",156:"\u0153",158:"\u017E",159:"\u0178"};r={'"':""","'":"'","<":"<",">":">","&":"&","\u0060":"`"};o={"<":"<",">":">","&":"&",""":'"',"'":"'"};function s(v){var w;w=document.createElement("div");w.innerHTML=v;return w.textContent||w.innerText||v}function p(w,z){var x,y,v,A={};if(w){w=w.split(",");z=z||10;for(x=0;x<w.length;x+=2){y=String.fromCharCode(parseInt(w[x],z));if(!r[y]){v="&"+w[x+1]+";";A[y]=v;A[v]=y}}return A}}i=p("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 k={encodeRaw:function(w,v){return w.replace(v?u:j,function(x){return r[x]||x})},encodeAllRaw:function(v){return(""+v).replace(q,function(w){return r[w]||w})},encodeNumeric:function(w,v){return w.replace(v?u:j,function(x){if(x.length>1){return"&#"+(((x.charCodeAt(0)-55296)*1024)+(x.charCodeAt(1)-56320)+65536)+";"}return r[x]||"&#"+x.charCodeAt(0)+";"})},encodeNamed:function(x,v,w){w=w||i;return x.replace(v?u:j,function(y){return r[y]||w[y]||y})},getEncodeFunc:function(v,y){y=p(y)||i;function w(A,z){return A.replace(z?u:j,function(B){return r[B]||y[B]||"&#"+B.charCodeAt(0)+";"||B})}function x(A,z){return k.encodeNamed(A,z,y)}v=m(v.replace(/\+/g,","));if(v.named&&v.numeric){return w}if(v.named){if(y){return x}return k.encodeNamed}if(v.numeric){return k.encodeNumeric}return k.encodeRaw},decode:function(v){return v.replace(n,function(x,w){if(w){if(w.charAt(0).toLowerCase()==="x"){w=parseInt(w.substr(1),16)}else{w=parseInt(w,10)}if(w>65535){w-=65536;return String.fromCharCode(55296+(w>>10),56320+(w&1023))}else{return t[w]||String.fromCharCode(w)}}return o[x]||i[x]||s(x)})}};return k});h("tinymce/dom/StyleSheetLoader",["tinymce/util/Tools"],function(i){return function(j,n){var k=0,m={},p;n=n||{};p=n.maxLoadTime||5000;function l(q){j.getElementsByTagName("head")[0].appendChild(q)}function o(s,w,A){var B,r,t,q;function x(){var E=q.passed,D=E.length;while(D--){E[D]()}q.status=2;q.passed=[];q.failed=[]}function z(){var E=q.failed,D=E.length;while(D--){E[D]()}q.status=3;q.passed=[];q.failed=[]}function C(){var D=navigator.userAgent.match(/WebKit\/(\d*)/);return !!(D&&D[1]<536)}function y(D,E){if(!D()){if((new Date().getTime())-t<p){window.setTimeout(E,0)}else{z()}}}function u(){y(function(){var F=j.styleSheets,G,E=F.length,D;while(E--){G=F[E];D=G.ownerNode?G.ownerNode:G.owningElement;if(D&&D.id===B.id){x();return true}}},u)}function v(){y(function(){try{var D=r.sheet.cssRules;x();return !!D}catch(E){}},v)}s=i._addCacheSuffix(s);if(!m[s]){q={passed:[],failed:[]};m[s]=q}else{q=m[s]}if(w){q.passed.push(w)}if(A){q.failed.push(A)}if(q.status==1){return}if(q.status==2){x();return}if(q.status==3){z();return}q.status=1;B=j.createElement("link");B.rel="stylesheet";B.type="text/css";B.id="u"+(k++);B.async=false;B.defer=false;t=new Date().getTime();if("onload" in B&&!C()){B.onload=u;B.onerror=z}else{if(navigator.userAgent.indexOf("Firefox")>0){r=j.createElement("style");r.textContent='@import "'+s+'"';v();l(r);return}else{u()}}l(B);B.href=s}this.load=o}});h("tinymce/dom/DOMUtils",["tinymce/dom/Sizzle","tinymce/dom/DomQuery","tinymce/html/Styles","tinymce/dom/EventUtils","tinymce/dom/TreeWalker","tinymce/dom/Range","tinymce/html/Entities","tinymce/Env","tinymce/util/Tools","tinymce/dom/StyleSheetLoader"],function(k,o,r,n,p,z,l,j,i,u){var m=i.each,q=i.is,s=i.grep,w=i.trim;var v=j.ie;var t=/^([a-z0-9],?)+$/i;var A=/^[ \t\r\n]*$/;function x(C,E){var D={},B=E.keep_values,F;F={set:function(G,I,H){if(E.url_converter){I=E.url_converter.call(E.url_converter_scope||C,I,H,G[0])}G.attr("data-mce-"+H,I).attr(H,I)},get:function(G,H){return G.attr("data-mce-"+H)||G.attr(H)}};D={style:{set:function(G,H){if(H!==null&&typeof H==="object"){G.css(H);return}if(B){G.attr("data-mce-style",H)}G.attr("style",H)},get:function(G){var H=G.attr("data-mce-style")||G.attr("style");H=C.serializeStyle(C.parseStyle(H),G[0].nodeName);return H}}};if(B){D.href=D.src=F}return D}function y(E,C){var B=this,D;B.doc=E;B.win=window;B.files={};B.counter=0;B.stdMode=!v||E.documentMode>=8;B.boxModel=!v||E.compatMode=="CSS1Compat"||B.stdMode;B.styleSheetLoader=new u(E);B.boundEvents=[];B.settings=C=C||{};B.schema=C.schema;B.styles=new r({url_converter:C.url_converter,url_converter_scope:C.url_converter_scope},C.schema);B.fixDoc(E);B.events=C.ownEvents?new n(C.proxy):n.Event;B.attrHooks=x(B,C);D=C.schema?C.schema.getBlockElements():{};B.$=o.overrideDefaults(function(){return{context:E,element:B.getRoot()}});B.isBlock=function(G){if(!G){return false}var F=G.nodeType;if(F){return !!(F===1&&D[G.nodeName])}return !!D[G]}}y.prototype={$$:function(B){if(typeof B=="string"){B=this.get(B)}return this.$(B)},root:null,fixDoc:function(D){var C=this.settings,B;if(v&&C.schema){("abbr article aside audio canvas details figcaption figure footer header hgroup mark menu meter nav output progress section summary time video").replace(/\w+/g,function(E){D.createElement(E)});for(B in C.schema.getCustomElements()){D.createElement(B)}}},clone:function(D,B){var C=this,F,E;if(!v||D.nodeType!==1||B){return D.cloneNode(B)}E=C.doc;if(!B){F=E.createElement(D.nodeName);m(C.getAttribs(D),function(G){C.setAttrib(F,G.nodeName,C.getAttrib(D,G.nodeName))});return F}return F.firstChild},getRoot:function(){var B=this;return B.settings.root_element||B.doc.body},getViewPort:function(C){var B,D;C=!C?this.win:C;B=C.document;D=this.boxModel?B.documentElement:B.body;return{x:C.pageXOffset||D.scrollLeft,y:C.pageYOffset||D.scrollTop,w:C.innerWidth||D.clientWidth,h:C.innerHeight||D.clientHeight}},getRect:function(E){var B=this,D,C;E=B.get(E);D=B.getPos(E);C=B.getSize(E);return{x:D.x,y:D.y,w:C.w,h:C.h}},getSize:function(E){var C=this,B,D;E=C.get(E);B=C.getStyle(E,"width");D=C.getStyle(E,"height");if(B.indexOf("px")===-1){B=0}if(D.indexOf("px")===-1){D=0}return{w:parseInt(B,10)||E.offsetWidth||E.clientWidth,h:parseInt(D,10)||E.offsetHeight||E.clientHeight}},getParent:function(D,B,C){return this.getParents(D,B,C,false)},getParents:function(G,C,D,H){var F=this,E,B=[];G=F.get(G);H=H===g;D=D||(F.getRoot().nodeName!="BODY"?F.getRoot().parentNode:null);if(q(C,"string")){E=C;if(C==="*"){C=function(I){return I.nodeType==1}}else{C=function(I){return F.is(I,E)}}}while(G){if(G==D||!G.nodeType||G.nodeType===9){break}if(!C||C(G)){if(H){B.push(G)}else{return G}}G=G.parentNode}return H?B:null},get:function(C){var B;if(C&&this.doc&&typeof C=="string"){B=C;C=this.doc.getElementById(C);if(C&&C.id!==B){return this.doc.getElementsByName(B)[1]}}return C},getNext:function(C,B){return this._findSib(C,B,"nextSibling")},getPrev:function(C,B){return this._findSib(C,B,"previousSibling")},select:function(B,D){var C=this;return k(B,C.get(D)||C.settings.root_element||C.doc,[])},is:function(E,B){var C;if(E.length===g){if(B==="*"){return E.nodeType==1}if(t.test(B)){B=B.toLowerCase().split(/,/);E=E.nodeName.toLowerCase();for(C=B.length-1;C>=0;C--){if(B[C]==E){return true}}return false}}if(E.nodeType&&E.nodeType!=1){return false}var D=E.nodeType?[E]:E;return k(B,D[0].ownerDocument||D[0],null,D).length>0},add:function(G,D,C,F,E){var B=this;return this.run(G,function(I){var H;H=q(D,"string")?B.doc.createElement(D):D;B.setAttribs(H,C);if(F){if(F.nodeType){H.appendChild(F)}else{B.setHTML(H,F)}}return !E?I.appendChild(H):H})},create:function(C,B,D){return this.add(this.doc.createElement(C),C,B,D,1)},createHTML:function(C,B,E){var F="",D;F+="<"+C;for(D in B){if(B.hasOwnProperty(D)&&B[D]!==null&&typeof B[D]!="undefined"){F+=" "+D+'="'+this.encode(B[D])+'"'}}if(typeof E!="undefined"){return F+">"+E+"</"+C+">"}return F+" />"},createFragment:function(C){var F,D,E=this.doc,B;B=E.createElement("div");F=E.createDocumentFragment();if(C){B.innerHTML=C}while((D=B.firstChild)){F.appendChild(D)}return F},remove:function(B,C){B=this.$$(B);if(C){B.each(function(){var D;while((D=this.firstChild)){if(D.nodeType==3&&D.data.length===0){this.removeChild(D)}else{this.parentNode.insertBefore(D,this)}}}).remove()}else{B.remove()}return B.length>1?B.toArray():B[0]},setStyle:function(D,B,C){D=this.$$(D).css(B,C);if(this.settings.update_styles){D.attr("data-mce-style",null)}},getStyle:function(D,B,C){D=this.$$(D);if(C){return D.css(B)}B=B.replace(/-(\D)/g,function(F,E){return E.toUpperCase()});if(B=="float"){B=v?"styleFloat":"cssFloat"}return D[0]&&D[0].style?D[0].style[B]:g},setStyles:function(C,B){C=this.$$(C).css(B);if(this.settings.update_styles){C.attr("data-mce-style",null)}},removeAllAttribs:function(B){return this.run(B,function(E){var D,C=E.attributes;for(D=C.length-1;D>=0;D--){E.removeAttributeNode(C.item(D))}})},setAttrib:function(H,D,G){var C=this,B,F,E=C.settings;if(G===""){G=null}H=C.$$(H);B=H.attr(D);if(!H.length){return}F=C.attrHooks[D];if(F&&F.set){F.set(H,G,D)}else{H.attr(D,G)}if(B!=G&&E.onSetAttrib){E.onSetAttrib({attrElm:H,attrName:D,attrValue:G})}},setAttribs:function(D,C){var B=this;B.$$(D).each(function(E,F){m(C,function(H,G){B.setAttrib(F,G,H)})})},getAttrib:function(G,C,F){var B=this,E,D;G=B.$$(G);if(G.length){E=B.attrHooks[C];if(E&&E.get){D=E.get(G,C)}else{D=G.attr(C)}}if(typeof D=="undefined"){D=F||""}return D},getPos:function(D,E){var J=this,H=0,G=0,B,I=J.doc,C=I.body,F;D=J.get(D);E=E||C;if(D){if(E===C&&D.getBoundingClientRect&&o(C).css("position")==="static"){F=D.getBoundingClientRect();E=J.boxModel?I.documentElement:C;H=F.left+(I.documentElement.scrollLeft||C.scrollLeft)-E.clientLeft;G=F.top+(I.documentElement.scrollTop||C.scrollTop)-E.clientTop;return{x:H,y:G}}B=D;while(B&&B!=E&&B.nodeType){H+=B.offsetLeft||0;G+=B.offsetTop||0;B=B.offsetParent}B=D.parentNode;while(B&&B!=E&&B.nodeType){H-=B.scrollLeft||0;G-=B.scrollTop||0;B=B.parentNode}}return{x:H,y:G}},parseStyle:function(B){return this.styles.parse(B)},serializeStyle:function(C,B){return this.styles.serialize(C,B)},addStyle:function(E){var C=this,F=C.doc,D,G;if(C!==y.DOM&&F===document){var B=y.DOM.addedStyles;B=B||[];if(B[E]){return}B[E]=true;y.DOM.addedStyles=B}G=F.getElementById("mceDefaultStyles");if(!G){G=F.createElement("style");G.id="mceDefaultStyles";G.type="text/css";D=F.getElementsByTagName("head")[0];if(D.firstChild){D.insertBefore(G,D.firstChild)}else{D.appendChild(G)}}if(G.styleSheet){G.styleSheet.cssText+=E}else{G.appendChild(F.createTextNode(E))}},loadCSS:function(C){var B=this,E=B.doc,D;if(B!==y.DOM&&E===document){y.DOM.loadCSS(C);return}if(!C){C=""}D=E.getElementsByTagName("head")[0];m(C.split(","),function(F){var G;F=i._addCacheSuffix(F);if(B.files[F]){return}B.files[F]=true;G=B.create("link",{rel:"stylesheet",href:F});if(v&&E.documentMode&&E.recalc){G.onload=function(){if(E.recalc){E.recalc()}G.onload=null}}D.appendChild(G)})},addClass:function(C,B){this.$$(C).addClass(B)},removeClass:function(C,B){this.toggleClass(C,B,false)},hasClass:function(C,B){return this.$$(C).hasClass(B)},toggleClass:function(D,B,C){this.$$(D).toggleClass(B,C).each(function(){if(this.className===""){o(this).attr("class",null)}})},show:function(B){this.$$(B).show()},hide:function(B){this.$$(B).hide()},isHidden:function(B){return this.$$(B).css("display")=="none"},uniqueId:function(B){return(!B?"mce_":B)+(this.counter++)},setHTML:function(C,B){C=this.$$(C);if(v){C.each(function(E,F){if(F.canHaveHTML===false){return}while(F.firstChild){F.removeChild(F.firstChild)}try{F.innerHTML="<br>"+B;F.removeChild(F.firstChild)}catch(D){o("<div>").html("<br>"+B).contents().slice(1).appendTo(F)}return B})}else{C.html(B)}},getOuterHTML:function(B){B=this.get(B);return B.nodeType==1&&"outerHTML" in B?B.outerHTML:o("<div>").append(o(B).clone()).html()},setOuterHTML:function(D,C){var B=this;B.$$(D).each(function(){try{if("outerHTML" in this){this.outerHTML=C;return}}catch(E){}B.remove(o(this).html(C),true)})},decode:l.decode,encode:l.encodeAllRaw,insertAfter:function(C,B){B=this.get(B);return this.run(C,function(E){var D,F;D=B.parentNode;F=B.nextSibling;if(F){D.insertBefore(E,F)}else{D.appendChild(E)}return E})},replace:function(D,C,E){var B=this;return B.run(C,function(F){if(q(F,"array")){D=D.cloneNode(true)}if(E){m(s(F.childNodes),function(G){D.appendChild(G)})}return F.parentNode.replaceChild(D,F)})},rename:function(E,C){var B=this,D;if(E.nodeName!=C.toUpperCase()){D=B.create(C);m(B.getAttribs(E),function(F){B.setAttrib(D,F.nodeName,B.getAttrib(E,F.nodeName))});B.replace(D,E,1)}return D||E},findCommonAncestor:function(D,B){var E=D,C;while(E){C=B;while(C&&E!=C){C=C.parentNode}if(E==C){break}E=E.parentNode}if(!E&&D.ownerDocument){return D.ownerDocument.documentElement}return E},toHex:function(B){return this.styles.toHex(i.trim(B))},run:function(F,E,D){var C=this,B;if(typeof F==="string"){F=C.get(F)}if(!F){return false}D=D||this;if(!F.nodeType&&(F.length||F.length===0)){B=[];m(F,function(H,G){if(H){if(typeof H=="string"){H=C.get(H)}B.push(E.call(D,H,G))}});return B}return E.call(D,F)},getAttribs:function(D){var B;D=this.get(D);if(!D){return[]}if(v){B=[];if(D.nodeName=="OBJECT"){return D.attributes}if(D.nodeName==="OPTION"&&this.getAttrib(D,"selected")){B.push({specified:1,nodeName:"selected"})}var C=/<\/?[\w:\-]+ ?|=[\"][^\"]+\"|=\'[^\']+\'|=[\w\-]+|>/gi;D.cloneNode(false).outerHTML.replace(C,"").replace(/[\w:\-]+/gi,function(E){B.push({specified:1,nodeName:E})});return B}return D.attributes},isEmpty:function(E,C){var J=this,G,F,I,B,D,H=0;E=E.firstChild;if(E){B=new p(E,E.parentNode);C=C||(J.schema?J.schema.getNonEmptyElements():null);do{I=E.nodeType;if(I===1){if(E.getAttribute("data-mce-bogus")){continue}D=E.nodeName.toLowerCase();if(C&&C[D]){if(D==="br"){H++;continue}return false}F=J.getAttribs(E);G=F.length;while(G--){D=F[G].nodeName;if(D==="name"||D==="data-mce-bookmark"){return false}}}if(I==8){return false}if((I===3&&!A.test(E.nodeValue))){return false}}while((E=B.next()))}return H<=1},createRng:function(){var B=this.doc;return B.createRange?B.createRange():new z(this)},nodeIndex:function(E,F){var B=0,D,C;if(E){for(D=E.nodeType,E=E.previousSibling;E;E=E.previousSibling){C=E.nodeType;if(F&&C==3){if(C==D||!E.nodeValue.length){continue}}B++;D=C}}return B},split:function(F,G,C){var J=this,B=J.createRng(),H,E,I;function D(O){var M,L=O.childNodes,N=O.nodeType;function P(S){var R=S.previousSibling&&S.previousSibling.nodeName=="SPAN";var Q=S.nextSibling&&S.nextSibling.nodeName=="SPAN";return R&&Q}if(N==1&&O.getAttribute("data-mce-type")=="bookmark"){return}for(M=L.length-1;M>=0;M--){D(L[M])}if(N!=9){if(N==3&&O.nodeValue.length>0){var K=w(O.nodeValue).length;if(!J.isBlock(O.parentNode)||K>0||K===0&&P(O)){return}}else{if(N==1){L=O.childNodes;if(L.length==1&&L[0]&&L[0].nodeType==1&&L[0].getAttribute("data-mce-type")=="bookmark"){O.parentNode.insertBefore(L[0],O)}if(L.length||/^(br|hr|input|img)$/i.test(O.nodeName)){return}}}J.remove(O)}return O}if(F&&G){B.setStart(F.parentNode,J.nodeIndex(F));B.setEnd(G.parentNode,J.nodeIndex(G));H=B.extractContents();B=J.createRng();B.setStart(G.parentNode,J.nodeIndex(G)+1);B.setEnd(F.parentNode,J.nodeIndex(F)+1);E=B.extractContents();I=F.parentNode;I.insertBefore(D(H),F);if(C){I.replaceChild(C,G)}else{I.insertBefore(G,F)}I.insertBefore(D(E),F);J.remove(F);return C||G}},bind:function(G,C,F,E){var B=this;if(i.isArray(G)){var D=G.length;while(D--){G[D]=B.bind(G[D],C,F,E)}return G}if(B.settings.collect&&(G===B.doc||G===B.win)){B.boundEvents.push([G,C,F,E])}return B.events.bind(G,C,F,E||B)},unbind:function(G,C,F){var B=this,D;if(i.isArray(G)){D=G.length;while(D--){G[D]=B.unbind(G[D],C,F)}return G}if(B.boundEvents&&(G===B.doc||G===B.win)){D=B.boundEvents.length;while(D--){var E=B.boundEvents[D];if(G==E[0]&&(!C||C==E[1])&&(!F||F==E[2])){this.events.unbind(E[0],E[1],E[2])}}}return this.events.unbind(G,C,F)},fire:function(D,C,B){return this.events.fire(D,C,B)},getContentEditable:function(C){var B;if(!C||C.nodeType!=1){return null}B=C.getAttribute("data-mce-contenteditable");if(B&&B!=="inherit"){return B}return C.contentEditable!=="inherit"?C.contentEditable:null},getContentEditableParent:function(C){var B=this.getRoot(),D=null;for(;C&&C!==B;C=C.parentNode){D=this.getContentEditable(C);if(D!==null){break}}return D},destroy:function(){var B=this;if(B.boundEvents){var C=B.boundEvents.length;while(C--){var D=B.boundEvents[C];this.events.unbind(D[0],D[1],D[2])}B.boundEvents=null}if(k.setDocument){k.setDocument()}B.win=B.doc=B.root=B.events=B.frag=null},isChildOf:function(C,B){while(C){if(B===C){return true}C=C.parentNode}return false},dumpRng:function(B){return("startContainer: "+B.startContainer.nodeName+", startOffset: "+B.startOffset+", endContainer: "+B.endContainer.nodeName+", endOffset: "+B.endOffset)},_findSib:function(F,B,D){var C=this,E=B;if(F){if(typeof E=="string"){E=function(G){return C.is(G,B)}}for(F=F[D];F;F=F[D]){if(E(F)){return F}}}return null}};y.DOM=new y(document);return y});h("tinymce/dom/ScriptLoader",["tinymce/dom/DOMUtils","tinymce/util/Tools"],function(m,i){var k=m.DOM;var l=i.each,j=i.grep;function n(){var p=0,w=1,u=2,x={},v=[],r={},q=[],t=0,s;function o(A,E){var B=k,D,C;function y(){B.remove(C);if(D){D.onreadystatechange=D.onload=D=null}E()}function z(){if(typeof console!=="undefined"&&console.log){console.log("Failed to load: "+A)}}C=B.uniqueId();D=document.createElement("script");D.id=C;D.type="text/javascript";D.src=i._addCacheSuffix(A);if("onreadystatechange" in D){D.onreadystatechange=function(){if(/loaded|complete/.test(D.readyState)){y()}}}else{D.onload=y}D.onerror=z;(document.getElementsByTagName("head")[0]||document.body).appendChild(D)}this.isDone=function(y){return x[y]==u};this.markDone=function(y){x[y]=u};this.add=this.load=function(y,B,z){var A=x[y];if(A==s){v.push(y);x[y]=p}if(B){if(!r[y]){r[y]=[]}r[y].push({func:B,scope:z||this})}};this.loadQueue=function(z,y){this.loadScripts(v,z,y)};this.loadScripts=function(y,C,B){var A;function z(D){l(r[D],function(E){E.func.call(E.scope)});r[D]=s}q.push({func:C,scope:B||this});A=function(){var D=j(y);y.length=0;l(D,function(E){if(x[E]==u){z(E);return}if(x[E]!=w){x[E]=w;t++;o(E,function(){x[E]=u;t--;z(E);A()})}});if(!t){l(q,function(E){E.func.call(E.scope)});q.length=0}};A()}}n.ScriptLoader=new n();return n});h("tinymce/AddOnManager",["tinymce/dom/ScriptLoader","tinymce/util/Tools"],function(l,i){var k=i.each;function j(){var m=this;m.items=[];m.urls={};m.lookup={}}j.prototype={get:function(m){if(this.lookup[m]){return this.lookup[m].instance}else{return g}},dependencies:function(n){var m;if(this.lookup[n]){m=this.lookup[n].dependencies}return m||[]},requireLangPack:function(m,n){var o=j.language;if(o&&j.languageLoad!==false){if(n){n=","+n+",";if(n.indexOf(","+o.substr(0,2)+",")!=-1){o=o.substr(0,2)}else{if(n.indexOf(","+o+",")==-1){return}}}l.ScriptLoader.add(this.urls[m]+"/langs/"+o+".js")}},add:function(o,m,n){this.items.push(m);this.lookup[o]={instance:m,dependencies:n};return m},createUrl:function(m,n){if(typeof n==="object"){return n}else{return{prefix:m.prefix,resource:n,suffix:m.suffix}}},addComponents:function(o,m){var n=this.urls[o];k(m,function(p){l.ScriptLoader.add(n+"/"+p)})},load:function(o,q,s,p){var m=this,n=q;function r(){var t=m.dependencies(o);k(t,function(v){var u=m.createUrl(q,v);m.load(u.resource,u,g,g)});if(s){if(p){s.call(p)}else{s.call(l)}}}if(m.urls[o]){return}if(typeof q==="object"){n=q.prefix+q.resource+q.suffix}if(n.indexOf("/")!==0&&n.indexOf("://")==-1){n=j.baseURL+"/"+n}m.urls[o]=n.substring(0,n.lastIndexOf("/"));if(m.lookup[o]){r()}else{l.ScriptLoader.add(n,r,p)}}};j.PluginManager=new j();j.ThemeManager=new j();return j});h("tinymce/dom/RangeUtils",["tinymce/util/Tools","tinymce/dom/TreeWalker"],function(i,j){var l=i.each;function m(n,o){var p=n.childNodes;o--;if(o>p.length-1){o=p.length-1}else{if(o<0){o=0}}return p[o]||n}function k(n){this.walk=function(o,D){var t=o.startContainer,w=o.startOffset,E=o.endContainer,x=o.endOffset,u,r,z,s,C,B,p;p=n.select("td.mce-item-selected,th.mce-item-selected");if(p.length>0){l(p,function(F){D([F])});return}function q(F){var G;G=F[0];if(G.nodeType===3&&G===t&&w>=G.nodeValue.length){F.splice(0,1)}G=F[F.length-1];if(x===0&&F.length>0&&G===E&&G.nodeType===3){F.splice(F.length-1,1)}return F}function A(H,G,F){var I=[];for(;H&&H!=F;H=H[G]){I.push(H)}return I}function y(G,F){do{if(G.parentNode==F){return G}G=G.parentNode}while(G)}function v(H,G,I){var F=I?"nextSibling":"previousSibling";for(s=H,C=s.parentNode;s&&s!=G;s=C){C=s.parentNode;B=A(s==H?s:s[F],F);if(B.length){if(!I){B.reverse()}D(q(B))}}}if(t.nodeType==1&&t.hasChildNodes()){t=t.childNodes[w]}if(E.nodeType==1&&E.hasChildNodes()){E=m(E,x)}if(t==E){return D(q([t]))}u=n.findCommonAncestor(t,E);for(s=t;s;s=s.parentNode){if(s===E){return v(t,u,true)}if(s===u){break}}for(s=E;s;s=s.parentNode){if(s===t){return v(E,u)}if(s===u){break}}r=y(t,u)||t;z=y(E,u)||E;v(t,r,true);B=A(r==t?r:r.nextSibling,"nextSibling",z==E?z.nextSibling:z);if(B.length){D(q(B))}v(E,z)};this.split=function(p){var s=p.startContainer,o=p.startOffset,t=p.endContainer,r=p.endOffset;function q(u,v){return u.splitText(v)}if(s==t&&s.nodeType==3){if(o>0&&o<s.nodeValue.length){t=q(s,o);s=t.previousSibling;if(r>o){r=r-o;s=t=q(t,r).previousSibling;r=t.nodeValue.length;o=0}else{r=0}}}else{if(s.nodeType==3&&o>0&&o<s.nodeValue.length){s=q(s,o);o=0}if(t.nodeType==3&&r>0&&r<t.nodeValue.length){t=q(t,r).previousSibling;r=t.nodeValue.length}}return{startContainer:s,startOffset:o,endContainer:t,endOffset:r}};this.normalize=function(o){var r,q;function p(u){var t,x,s,z=n.getRoot(),v,y;var B,w;function D(E,F){var G=new j(E,n.getParent(E.parentNode,n.isBlock)||z);while((E=G[F?"prev":"next"]())){if(E.nodeName==="BR"){return true}}}function A(F,E){return F.previousSibling&&F.previousSibling.nodeName==E}function C(H,E){var I,F,G;E=E||t;G=n.getParent(E.parentNode,n.isBlock)||z;if(H&&E.nodeName=="BR"&&w&&n.isEmpty(G)){t=E.parentNode;x=n.nodeIndex(E);r=true;return}I=new j(E,G);while((v=I[H?"prev":"next"]())){if(n.getContentEditableParent(v)==="false"){return}if(v.nodeType===3&&v.nodeValue.length>0){t=v;x=H?v.nodeValue.length:0;r=true;return}if(n.isBlock(v)||y[v.nodeName.toLowerCase()]){return}F=v}if(q&&F){t=F;r=true;x=0}}t=o[(u?"start":"end")+"Container"];x=o[(u?"start":"end")+"Offset"];w=t.nodeType==1&&x===t.childNodes.length;y=n.schema.getNonEmptyElements();B=u;if(t.nodeType==1&&x>t.childNodes.length-1){B=false}if(t.nodeType===9){t=n.getRoot();x=0}if(t===z){if(B){v=t.childNodes[x>0?x-1:0];if(v){if(y[v.nodeName]||v.nodeName=="TABLE"){return}}}if(t.hasChildNodes()){x=Math.min(!B&&x>0?x-1:x,t.childNodes.length-1);t=t.childNodes[x];x=0;if(t.hasChildNodes()&&!/TABLE/.test(t.nodeName)){v=t;s=new j(t,z);do{if(v.nodeType===3&&v.nodeValue.length>0){x=B?0:v.nodeValue.length;t=v;r=true;break}if(y[v.nodeName.toLowerCase()]){x=n.nodeIndex(v);t=v.parentNode;if(v.nodeName=="IMG"&&!B){x++}r=true;break}}while((v=(B?s.next():s.prev())))}}}if(q){if(t.nodeType===3&&x===0){C(true)}if(t.nodeType===1){v=t.childNodes[x];if(!v){v=t.childNodes[x-1]}if(v&&v.nodeName==="BR"&&!A(v,"A")&&!D(v)&&!D(v,true)){C(true,v)}}}if(B&&!q&&t.nodeType===3&&x===t.nodeValue.length){C(false)}if(r){o["set"+(u?"Start":"End")](t,x)}}q=o.collapsed;p(true);if(!q){p()}if(r&&q){o.collapse(true)}return r}}k.compareRanges=function(o,n){if(o&&n){if(o.item||o.duplicate){if(o.item&&n.item&&o.item(0)===n.item(0)){return true}if(o.isEqual&&n.isEqual&&n.isEqual(o)){return true}}else{return o.startContainer==n.startContainer&&o.startOffset==n.startOffset}}return false};k.getCaretRangeFromPoint=function(o,s,r){var p,n;if(r.caretPositionFromPoint){n=r.caretPositionFromPoint(o,s);p=r.createRange();p.setStart(n.offsetNode,n.offset);p.collapse(true)}else{if(r.caretRangeFromPoint){p=r.caretRangeFromPoint(o,s)}else{if(r.body.createTextRange){p=r.body.createTextRange();try{p.moveToPoint(o,s);p.collapse(true)}catch(q){p.collapse(s<r.body.clientHeight)}}}}return p};k.getNode=function(n,o){if(n.nodeType==1&&n.hasChildNodes()){if(o>=n.childNodes.length){o=n.childNodes.length-1}n=n.childNodes[o]}return n};return k});h("tinymce/NodeChange",["tinymce/dom/RangeUtils","tinymce/Env"],function(j,i){return function(k){var m,l=[];function n(o){var p,q;q=k.$(o).parentsUntil(k.getBody()).add(o);if(q.length===l.length){for(p=q.length;p>=0;p--){if(q[p]!==l[p]){break}}if(p===-1){l=q;return true}}l=q;return false}if(!("onselectionchange" in k.getDoc())){k.on("NodeChange Click MouseUp KeyUp Focus",function(p){var q,o;q=k.selection.getRng();o={startContainer:q.startContainer,startOffset:q.startOffset,endContainer:q.endContainer,endOffset:q.endOffset};if(p.type=="nodechange"||!j.compareRanges(o,m)){k.fire("SelectionChange")}m=o})}k.on("contextmenu",function(){k.fire("SelectionChange")});k.on("SelectionChange",function(){var o=k.selection.getStart(true);if(!i.range&&k.selection.isCollapsed()){return}if(!n(o)&&k.dom.isChildOf(o,k.getBody())){k.nodeChanged({selectionChange:true})}});k.on("MouseUp",function(o){if(!o.isDefaultPrevented()){if(k.selection.getNode().nodeName=="IMG"){setTimeout(function(){k.nodeChanged()},0)}else{k.nodeChanged()}}});this.nodeChanged=function(q){var r=k.selection,s,p,o;if(k.initialized&&r&&!k.settings.disable_nodechange&&!k.settings.readonly){o=k.getBody();s=r.getStart()||o;s=s.ownerDocument!=k.getDoc()?k.getBody():s;if(s.nodeName=="IMG"&&r.isCollapsed()){s=s.parentNode}p=[];k.dom.getParent(s,function(t){if(t===o){return true}p.push(t)});q=q||{};q.element=s;q.parents=p;k.fire("NodeChange",q)}}}});h("tinymce/html/Node",[],function(){var k=/^[ \t\r\n]*$/,l={"#text":3,"#comment":8,"#cdata":4,"#pi":7,"#doctype":10,"#document-fragment":11};function i(r,s,q){var p,o,m=q?"lastChild":"firstChild",n=q?"prev":"next";if(r[m]){return r[m]}if(r!==s){p=r[n];if(p){return p}for(o=r.parent;o&&o!==s;o=o.parent){p=o[n];if(p){return p}}}}function j(m,n){this.name=m;this.type=n;if(n===1){this.attributes=[];this.attributes.map={}}}j.prototype={replace:function(n){var m=this;if(n.parent){n.remove()}m.insert(n,m);m.remove();return m},attr:function(o,r){var m=this,n,p,q;if(typeof o!=="string"){for(p in o){m.attr(p,o[p])}return m}if((n=m.attributes)){if(r!==q){if(r===null){if(o in n.map){delete n.map[o];p=n.length;while(p--){if(n[p].name===o){n=n.splice(p,1);return m}}}return m}if(o in n.map){p=n.length;while(p--){if(n[p].name===o){n[p].value=r;break}}}else{n.push({name:o,value:r})}n.map[o]=r;return m}else{return n.map[o]}}},clone:function(){var n=this,s=new j(n.name,n.type),o,m,r,p,q;if((r=n.attributes)){q=[];q.map={};for(o=0,m=r.length;o<m;o++){p=r[o];if(p.name!=="id"){q[q.length]={name:p.name,value:p.value};q.map[p.name]=p.value}}s.attributes=q}s.value=n.value;s.shortEnded=n.shortEnded;return s},wrap:function(n){var m=this;m.parent.insert(n,m);n.append(m);return m},unwrap:function(){var m=this,o,n;for(o=m.firstChild;o;){n=o.next;m.insert(o,m,true);o=n}m.remove()},remove:function(){var m=this,o=m.parent,n=m.next,p=m.prev;if(o){if(o.firstChild===m){o.firstChild=n;if(n){n.prev=null}}else{p.next=n}if(o.lastChild===m){o.lastChild=p;if(p){p.next=null}}else{n.prev=p}m.parent=m.next=m.prev=null}return m},append:function(o){var m=this,n;if(o.parent){o.remove()}n=m.lastChild;if(n){n.next=o;o.prev=n;m.lastChild=o}else{m.lastChild=m.firstChild=o}o.parent=m;return o},insert:function(o,m,p){var n;if(o.parent){o.remove()}n=m.parent||this;if(p){if(m===n.firstChild){n.firstChild=o}else{m.prev.next=o}o.prev=m.prev;o.next=m;m.prev=o}else{if(m===n.lastChild){n.lastChild=o}else{m.next.prev=o}o.next=m.next;o.prev=m;m.next=o}o.parent=n;return o},getAll:function(n){var m=this,o,p=[];for(o=m.firstChild;o;o=i(o,m)){if(o.name===n){p.push(o)}}return p},empty:function(){var n=this,m,o,p;if(n.firstChild){m=[];for(p=n.firstChild;p;p=i(p,n)){m.push(p)}o=m.length;while(o--){p=m[o];p.parent=p.firstChild=p.lastChild=p.next=p.prev=null}}n.firstChild=n.lastChild=null;return n},isEmpty:function(q){var m=this,p=m.firstChild,o,n;if(p){do{if(p.type===1){if(p.attributes.map["data-mce-bogus"]){continue}if(q[p.name]){return false}o=p.attributes.length;while(o--){n=p.attributes[o].name;if(n==="name"||n.indexOf("data-mce-bookmark")===0){return false}}}if(p.type===8){return false}if((p.type===3&&!k.test(p.value))){return false}}while((p=i(p,m)))}return true},walk:function(m){return i(this,null,m)}};j.create=function(n,m){var p,o;p=new j(n,l[n]||1);if(m){for(o in m){p.attr(o,m[o])}}return p};return j});h("tinymce/html/Schema",["tinymce/util/Tools"],function(j){var k={},m={};var l=j.makeMap,q=j.each,n=j.extend,p=j.explode,s=j.inArray;function o(t,u){return t?t.split(u||" "):[]}function r(A){var x={},B,u;var y,z,t,w;function C(G,D,J){var I,H,K,F=arguments;function E(P,O){var N={},M,L;for(M=0,L=P.length;M<L;M++){N[P[M]]=O||{}}return N}J=J||[];D=D||"";if(typeof J==="string"){J=o(J)}for(H=3;H<F.length;H++){if(typeof F[H]==="string"){F[H]=o(F[H])}J.push.apply(J,F[H])}G=o(G);I=G.length;while(I--){K=[].concat(B,o(D));x[G[I]]={attributes:E(K),attributesOrder:K,children:E(J,m)}}}function v(G,F){var I,E,H,D;G=o(G);I=G.length;F=o(F);while(I--){E=x[G[I]];for(H=0,D=F.length;H<D;H++){E.attributes[F[H]]={};E.attributesOrder.push(F[H])}}}if(k[A]){return k[A]}B=o("id accesskey class dir lang style tabindex title");u=o("address blockquote div dl fieldset form h1 h2 h3 h4 h5 h6 hr menu ol p pre table ul");y=o("a abbr b bdo br button cite code del dfn em embed i iframe img input ins kbd label map noscript object q s samp script select small span strong sub sup textarea u var #text #comment");if(A!="html4"){B.push.apply(B,o("contenteditable contextmenu draggable dropzone hidden spellcheck translate"));u.push.apply(u,o("article aside details dialog figure header footer hgroup section nav"));y.push.apply(y,o("audio canvas command datalist mark meter output progress time wbr video ruby bdi keygen"))}if(A!="html5-strict"){B.push("xml:lang");w=o("acronym applet basefont big font strike tt");y.push.apply(y,w);q(w,function(D){C(D,"",y)});t=o("center dir isindex noframes");u.push.apply(u,t);z=[].concat(u,y);q(t,function(D){C(D,"",z)})}z=z||[].concat(u,y);C("html","manifest","head body");C("head","","base command link meta noscript script style title");C("title hr noscript br");C("base","href target");C("link","href rel media hreflang type sizes hreflang");C("meta","name http-equiv content charset");C("style","media type scoped");C("script","src async defer type charset");C("body","onafterprint onbeforeprint onbeforeunload onblur onerror onfocus onhashchange onload onmessage onoffline ononline onpagehide onpageshow onpopstate onresize onscroll onstorage onunload",z);C("address dt dd div caption","",z);C("h1 h2 h3 h4 h5 h6 pre p abbr code var samp kbd sub sup i b u bdo span legend em strong small s cite dfn","",y);C("blockquote","cite",z);C("ol","reversed start type","li");C("ul","","li");C("li","value",z);C("dl","","dt dd");C("a","href target rel media hreflang type",y);C("q","cite",y);C("ins del","cite datetime",z);C("img","src sizes srcset alt usemap ismap width height");C("iframe","src name width height",z);C("embed","src type width height");C("object","data type typemustmatch name usemap form width height",z,"param");C("param","name value");C("map","name",z,"area");C("area","alt coords shape href target rel media hreflang type");C("table","border","caption colgroup thead tfoot tbody tr"+(A=="html4"?" col":""));C("colgroup","span","col");C("col","span");C("tbody thead tfoot","","tr");C("tr","","td th");C("td","colspan rowspan headers",z);C("th","colspan rowspan headers scope abbr",z);C("form","accept-charset action autocomplete enctype method name novalidate target",z);C("fieldset","disabled form name",z,"legend");C("label","form for",y);C("input","accept alt autocomplete checked dirname disabled form formaction formenctype formmethod formnovalidate formtarget height list max maxlength min multiple name pattern readonly required size src step type value width");C("button","disabled form formaction formenctype formmethod formnovalidate formtarget name type value",A=="html4"?z:y);C("select","disabled form multiple name required size","option optgroup");C("optgroup","disabled label","option");C("option","disabled label selected value");C("textarea","cols dirname disabled form maxlength name readonly required rows wrap");C("menu","type label",z,"li");C("noscript","",z);if(A!="html4"){C("wbr");C("ruby","",y,"rt rp");C("figcaption","",z);C("mark rt rp summary bdi","",y);C("canvas","width height",z);C("video","src crossorigin poster preload autoplay mediagroup loop muted controls width height buffered",z,"track source");C("audio","src crossorigin preload autoplay mediagroup loop muted controls buffered volume",z,"track source");C("picture","","img source");C("source","src srcset type media sizes");C("track","kind src srclang label default");C("datalist","",y,"option");C("article section nav aside header footer","",z);C("hgroup","","h1 h2 h3 h4 h5 h6");C("figure","",z,"figcaption");C("time","datetime",y);C("dialog","open",z);C("command","type label icon disabled checked radiogroup command");C("output","for form name",y);C("progress","value max",y);C("meter","value min max low high optimum",y);C("details","open",z,"summary");C("keygen","autofocus challenge disabled form keytype name")}if(A!="html5-strict"){v("script","language xml:space");v("style","xml:space");v("object","declare classid code codebase codetype archive standby align border hspace vspace");v("embed","align name hspace vspace");v("param","valuetype type");v("a","charset name rev shape coords");v("br","clear");v("applet","codebase archive code object alt name width height align hspace vspace");v("img","name longdesc align border hspace vspace");v("iframe","longdesc frameborder marginwidth marginheight scrolling align");v("font basefont","size color face");v("input","usemap align");v("select","onchange");v("textarea");v("h1 h2 h3 h4 h5 h6 div p legend caption","align");v("ul","type compact");v("li","type");v("ol dl menu dir","compact");v("pre","width xml:space");v("hr","align noshade size width");v("isindex","prompt");v("table","summary width frame rules cellspacing cellpadding align bgcolor");v("col","width align char charoff valign");v("colgroup","width align char charoff valign");v("thead","align char charoff valign");v("tr","align char charoff valign bgcolor");v("th","axis align char charoff valign nowrap bgcolor width height");v("form","accept");v("td","abbr axis scope align char charoff valign nowrap bgcolor width height");v("tfoot","align char charoff valign");v("tbody","align char charoff valign");v("area","nohref");v("body","background bgcolor text link vlink alink")}if(A!="html4"){v("input button select textarea","autofocus");v("input textarea","placeholder");v("a","download");v("link script img","crossorigin");v("iframe","sandbox seamless allowfullscreen")}q(o("a form meter progress dfn"),function(D){if(x[D]){delete x[D].children[D]}});delete x.caption.children.table;k[A]=x;return x}function i(u,v){var t;if(u){t={};if(typeof u=="string"){u={"*":u}}q(u,function(x,w){t[w]=t[w.toUpperCase()]=v=="map"?l(x,/[, ]/):p(x,/[, ]/)})}return t}return function(P){var K=this,I={},x={},w=[],T,t,N;var D,F,O,G,H;var L,C,B,u,S;var E={},y={};function A(W,U,V){var X=P[W];if(!X){X=k[W];if(!X){X=l(U," ",l(U.toUpperCase()," "));X=n(X,V);k[W]=X}}else{X=l(X,/[, ]/,l(X.toUpperCase(),/[, ]/))}return X}P=P||{};N=r(P.schema);if(P.verify_html===false){P.valid_elements="*[*]"}T=i(P.valid_styles);t=i(P.invalid_styles,"map");H=i(P.valid_classes,"map");D=A("whitespace_elements","pre script noscript style textarea video audio iframe object");F=A("self_closing_elements","colgroup dd dt li option p td tfoot th thead tr");O=A("short_ended_elements","area base basefont br col frame hr img input isindex link meta param embed source wbr track");G=A("boolean_attributes","checked compact declare defer disabled ismap multiple nohref noresize noshade nowrap readonly selected autoplay loop controls");C=A("non_empty_elements","td th iframe video audio object script",O);B=A("move_caret_before_on_enter_elements","table",C);u=A("text_block_elements","h1 h2 h3 h4 h5 h6 p div address pre form blockquote center dir fieldset header footer article section hgroup aside nav figure");L=A("block_elements","hr table tbody thead tfoot th tr td li ol ul caption dl dt dd noscript menu isindex option datalist select optgroup",u);S=A("text_inline_elements","span strong b em i font strike u var cite dfn code mark q sup sub samp");q((P.special||"script noscript style textarea").split(" "),function(U){y[U]=new RegExp("</"+U+"[^>]*>","gi")});function v(U){return new RegExp("^"+U.replace(/([?+*])/g,".$1")+"$")}function R(ag){var aa,W,aq,am,V,Y,ak,ao,ae,ap,ar,ad,Z,an,U,ah,X,at,aj,ac=/^([#+\-])?([^\[!\/]+)(?:\/([^\[!]+))?(?:(!?)\[([^\]]+)\])?$/,af=/^([!\-])?(\w+::\w+|[^=:<]+)?(?:([=:<])(.*))?$/,ab=/[*?+]/;if(ag){ag=o(ag,",");if(I["@"]){ah=I["@"].attributes;X=I["@"].attributesOrder}for(aa=0,W=ag.length;aa<W;aa++){V=ac.exec(ag[aa]);if(V){an=V[1];ae=V[2];U=V[3];ao=V[5];ad={};Z=[];Y={attributes:ad,attributesOrder:Z};if(an==="#"){Y.paddEmpty=true}if(an==="-"){Y.removeEmpty=true}if(V[4]==="!"){Y.removeEmptyAttrs=true}if(ah){for(at in ah){ad[at]=ah[at]}Z.push.apply(Z,X)}if(ao){ao=o(ao,"|");for(aq=0,am=ao.length;aq<am;aq++){V=af.exec(ao[aq]);if(V){ak={};ar=V[1];ap=V[2].replace(/::/g,":");an=V[3];aj=V[4];if(ar==="!"){Y.attributesRequired=Y.attributesRequired||[];Y.attributesRequired.push(ap);ak.required=true}if(ar==="-"){delete ad[ap];Z.splice(s(Z,ap),1);continue}if(an){if(an==="="){Y.attributesDefault=Y.attributesDefault||[];Y.attributesDefault.push({name:ap,value:aj});ak.defaultValue=aj}if(an===":"){Y.attributesForced=Y.attributesForced||[];Y.attributesForced.push({name:ap,value:aj});ak.forcedValue=aj}if(an==="<"){ak.validValues=l(aj,"?")}}if(ab.test(ap)){Y.attributePatterns=Y.attributePatterns||[];ak.pattern=v(ap);Y.attributePatterns.push(ak)}else{if(!ad[ap]){Z.push(ap)}ad[ap]=ak}}}}if(!ah&&ae=="@"){ah=ad;X=Z}if(U){Y.outputName=ae;I[U]=Y}if(ab.test(ae)){Y.pattern=v(ae);w.push(Y)}else{I[ae]=Y}}}}}function J(U){I={};w=[];R(U);q(N,function(W,V){x[V]=W.children})}function z(V){var U=/^(~)?(.+)$/;if(V){k.text_block_elements=k.block_elements=null;q(o(V,","),function(aa){var Y=U.exec(aa),Z=Y[1]==="~",ab=Z?"span":"div",X=Y[2];x[X]=x[ab];E[X]=ab;if(!Z){L[X.toUpperCase()]={};L[X]={}}if(!I[X]){var W=I[ab];W=n({},W);delete W.removeEmptyAttrs;delete W.removeEmpty;I[X]=W}q(x,function(ac,ad){if(ac[ab]){x[ad]=ac=n({},x[ad]);ac[X]=ac[ab]}})})}}function M(U){var V=/^([+\-]?)(\w+)\[([^\]]+)\]$/;if(U){q(o(U,","),function(Z){var Y=V.exec(Z),W,X;if(Y){X=Y[1];if(X){W=x[Y[2]]}else{W=x[Y[2]]={"#comment":{}}}W=x[Y[2]];q(o(Y[3],"|"),function(aa){if(X==="-"){x[Y[2]]=W=n({},x[Y[2]]);delete W[aa]}else{W[aa]={}}})}})}}function Q(U){var W=I[U],V;if(W){return W}V=w.length;while(V--){W=w[V];if(W.pattern.test(U)){return W}}}if(!P.valid_elements){q(N,function(V,U){I[U]={attributes:V.attributes,attributesOrder:V.attributesOrder};x[U]=V.children});if(P.schema!="html5"){q(o("strong/b em/i"),function(U){U=o(U,"/");I[U[1]].outputName=U[0]})}I.img.attributesDefault=[{name:"alt",value:""}];q(o("ol ul sub sup blockquote span font a table tbody tr strong em b i"),function(U){if(I[U]){I[U].removeEmpty=true}});q(o("p h1 h2 h3 h4 h5 h6 th td pre div address caption"),function(U){I[U].paddEmpty=true});q(o("span"),function(U){I[U].removeEmptyAttrs=true})}else{J(P.valid_elements)}z(P.custom_elements);M(P.valid_children);R(P.extended_valid_elements);M("+ol[ul|ol],+ul[ul|ol]");if(P.invalid_elements){q(p(P.invalid_elements),function(U){if(I[U]){delete I[U]}})}if(!Q("span")){R("span[!data-mce-type|*]")}K.children=x;K.getValidStyles=function(){return T};K.getInvalidStyles=function(){return t};K.getValidClasses=function(){return H};K.getBoolAttrs=function(){return G};K.getBlockElements=function(){return L};K.getTextBlockElements=function(){return u};K.getTextInlineElements=function(){return S};K.getShortEndedElements=function(){return O};K.getSelfClosingElements=function(){return F};K.getNonEmptyElements=function(){return C};K.getMoveCaretBeforeOnEnterElements=function(){return B};K.getWhiteSpaceElements=function(){return D};K.getSpecialElements=function(){return y};K.isValidChild=function(U,W){var V=x[U];return !!(V&&V[W])};K.isValid=function(V,U){var X,W,Y=Q(V);if(Y){if(U){if(Y.attributes[U]){return true}X=Y.attributePatterns;if(X){W=X.length;while(W--){if(X[W].pattern.test(V)){return true}}}}else{return true}}return false};K.getElementRule=Q;K.getCustomElements=function(){return E};K.addValidElements=R;K.setValidElements=J;K.addCustomElements=z;K.addValidChildren=M;K.elements=I}});h("tinymce/html/SaxParser",["tinymce/html/Schema","tinymce/html/Entities","tinymce/util/Tools"],function(l,n,k){var m=k.each;function j(s,q,v){var r=1,o,u,t,p;p=s.getShortEndedElements();t=/<([!?\/])?([A-Za-z0-9\-_\:\.]+)((?:\s+[^"\'>]+(?:(?:"[^"]*")|(?:\'[^\']*\')|[^>]*))*|\/|\s+)>/g;t.lastIndex=o=v;while((u=t.exec(q))){o=t.lastIndex;if(u[1]==="/"){r--}else{if(!u[1]){if(u[2] in p){continue}r++}}if(r===0){break}}return o}function i(p,r){var o=this;function q(){}p=p||{};o.schema=r=r||new l();if(p.fix_self_closing!==false){p.fix_self_closing=true}m("comment cdata text start end pi doctype".split(" "),function(s){if(s){o[s]=p[s]||q}});o.parse=function(P){var B=this,t,R=0,U,M,L=[],Z,ac,N,D;var K,E,Y,S,aa;var H,A,x,F,ae,ab,Q;var af,X,s;var ad,V,y,O,W,u,I=0;var w=n.decode,J,T=k.makeMap("src,href,data,background,formaction,poster");var v=/((java|vb)script|mhtml):/i,z=/^data:/i;function G(ag){var ai,ah;ai=L.length;while(ai--){if(L[ai].name===ag){break}}if(ai>=0){for(ah=L.length-1;ah>=ai;ah--){ag=L[ah];if(ag.valid){B.end(ag.name)}}L.length=ai}}function C(al,ah,ap,an,am){var aj,ak,ag=/[\s\u0000-\u001F]+/g;ah=ah.toLowerCase();ap=ah in S?ah:w(ap||an||am||"");if(H&&!K&&ah.indexOf("data-")!==0){aj=ab[ah];if(!aj&&Q){ak=Q.length;while(ak--){aj=Q[ak];if(aj.pattern.test(ah)){break}}if(ak===-1){aj=null}}if(!aj){return}if(aj.validValues&&!(ap in aj.validValues)){return}}if(T[ah]&&!p.allow_script_urls){var ai=ap.replace(ag,"");try{ai=decodeURIComponent(ai)}catch(ao){ai=unescape(ai)}if(v.test(ai)){return}if(!p.allow_html_data_urls&&z.test(ai)&&!/^data:image\//i.test(ai)){return}}Z.map[ah]=ap;Z.push({name:ah,value:ap})}y=new RegExp("<(?:(?:!--([\\w\\W]*?)-->)|(?:!\\[CDATA\\[([\\w\\W]*?)\\]\\]>)|(?:!DOCTYPE([\\w\\W]*?)>)|(?:\\?([^\\s\\/<>]+) ?([\\w\\W]*?)[?/]>)|(?:\\/([^>]+)>)|(?:([A-Za-z0-9\\-_\\:\\.]+)((?:\\s+[^\"'>]+(?:(?:\"[^\"]*\")|(?:'[^']*')|[^>]*))*|\\/|\\s+)>))","g");O=/([\w:\-]+)(?:\s*=\s*(?:(?:\"((?:[^\"])*)\")|(?:\'((?:[^\'])*)\')|([^>\s]+)))?/g;Y=r.getShortEndedElements();V=p.self_closing_elements||r.getSelfClosingElements();S=r.getBoolAttrs();H=p.validate;E=p.remove_internals;J=p.fix_self_closing;W=r.getSpecialElements();while((t=y.exec(P))){if(R<t.index){B.text(w(P.substr(R,t.index-R)))}if((U=t[6])){U=U.toLowerCase();if(U.charAt(0)===":"){U=U.substr(1)}G(U)}else{if((U=t[7])){U=U.toLowerCase();if(U.charAt(0)===":"){U=U.substr(1)}aa=U in Y;if(J&&V[U]&&L.length>0&&L[L.length-1].name===U){G(U)}if(!H||(A=r.getElementRule(U))){x=true;if(H){ab=A.attributes;Q=A.attributePatterns}if((ae=t[8])){K=ae.indexOf("data-mce-type")!==-1;if(K&&E){x=false}Z=[];Z.map={};ae.replace(O,C)}else{Z=[];Z.map={}}if(H&&!K){af=A.attributesRequired;X=A.attributesDefault;s=A.attributesForced;ad=A.removeEmptyAttrs;if(ad&&!Z.length){x=false}if(s){ac=s.length;while(ac--){F=s[ac];D=F.name;u=F.value;if(u==="{$uid}"){u="mce_"+I++}Z.map[D]=u;Z.push({name:D,value:u})}}if(X){ac=X.length;while(ac--){F=X[ac];D=F.name;if(!(D in Z.map)){u=F.value;if(u==="{$uid}"){u="mce_"+I++}Z.map[D]=u;Z.push({name:D,value:u})}}}if(af){ac=af.length;while(ac--){if(af[ac] in Z.map){break}}if(ac===-1){x=false}}if((F=Z.map["data-mce-bogus"])){if(F==="all"){R=j(r,P,y.lastIndex);y.lastIndex=R;continue}x=false}}if(x){B.start(U,Z,aa)}}else{x=false}if((M=W[U])){M.lastIndex=R=t.index+t[0].length;if((t=M.exec(P))){if(x){N=P.substr(R,t.index-R)}R=t.index+t[0].length}else{N=P.substr(R);R=P.length}if(x){if(N.length>0){B.text(N,true)}B.end(U)}y.lastIndex=R;continue}if(!aa){if(!ae||ae.indexOf("/")!=ae.length-1){L.push({name:U,valid:x})}else{if(x){B.end(U)}}}}else{if((U=t[1])){if(U.charAt(0)===">"){U=" "+U}if(!p.allow_conditional_comments&&U.substr(0,3)==="[if"){U=" "+U}B.comment(U)}else{if((U=t[2])){B.cdata(U)}else{if((U=t[3])){B.doctype(U)}else{if((U=t[4])){B.pi(U,t[5])}}}}}}R=t.index+t[0].length}if(R<P.length){B.text(w(P.substr(R)))}for(ac=L.length-1;ac>=0;ac--){U=L[ac];if(U.valid){B.end(U.name)}}}}i.findEndTag=j;return i});h("tinymce/html/DomParser",["tinymce/html/Node","tinymce/html/Schema","tinymce/html/SaxParser","tinymce/util/Tools"],function(k,m,i,j){var n=j.makeMap,o=j.each,l=j.explode,p=j.extend;return function(u,v){var t=this,s={},r=[],w={},q={};u=u||{};u.validate="validate" in u?u.validate:true;u.root_name=u.root_name||"body";t.schema=v=v||new m();function x(B){var D,E,K,J,M,C,F,z,I;var y,H,A,L,G;H=n("tr,td,th,tbody,thead,tfoot,table");y=v.getNonEmptyElements();A=v.getTextBlockElements();for(D=0;D<B.length;D++){E=B[D];if(!E.parent||E.fixed){continue}if(A[E.name]&&E.parent.name=="li"){L=E.next;while(L){if(A[L.name]){L.name="li";L.fixed=true;E.parent.insert(L,E.parent)}else{break}L=L.next}E.unwrap(E);continue}J=[E];for(K=E.parent;K&&!v.isValidChild(K.name,E.name)&&!H[K.name];K=K.parent){J.push(K)}if(K&&J.length>1){J.reverse();M=C=t.filterNode(J[0].clone());for(I=0;I<J.length-1;I++){if(v.isValidChild(C.name,J[I].name)){F=t.filterNode(J[I].clone());C.append(F)}else{F=C}for(z=J[I].firstChild;z&&z!=J[I+1];){G=z.next;F.append(z);z=G}C=F}if(!M.isEmpty(y)){K.insert(M,J[0],true);K.insert(E,M)}else{K.insert(E,J[0],true)}K=J[0];if(K.isEmpty(y)||K.firstChild===K.lastChild&&K.firstChild.name==="br"){K.empty().remove()}}else{if(E.parent){if(E.name==="li"){L=E.prev;if(L&&(L.name==="ul"||L.name==="ul")){L.append(E);continue}L=E.next;if(L&&(L.name==="ul"||L.name==="ul")){L.insert(E,L.firstChild,true);continue}E.wrap(t.filterNode(new k("ul",1)));continue}if(v.isValidChild(E.parent.name,"div")&&v.isValidChild("div",E.name)){E.wrap(t.filterNode(new k("div",1)))}else{if(E.name==="style"||E.name==="script"){E.empty().remove()}else{E.unwrap()}}}}}}t.filterNode=function(A){var z,y,B;if(y in s){B=w[y];if(B){B.push(A)}else{w[y]=[A]}}z=r.length;while(z--){y=r[z].name;if(y in A.attributes.map){B=q[y];if(B){B.push(A)}else{q[y]=[A]}}}return A};t.addNodeFilter=function(y,z){o(l(y),function(A){var B=s[A];if(!B){s[A]=B=[]}B.push(z)})};t.addAttributeFilter=function(y,z){o(l(y),function(A){var B;for(B=0;B<r.length;B++){if(r[B].name===A){r[B].callbacks.push(z);return}}r.push({name:A,callbacks:[z]})})};t.parse=function(I,z){var A,V,N,M,P,O,J,E,R,Z,L;var B,Q,Y=[],X;var G,y,K,F;var C,H,D;z=z||{};w={};q={};B=p(n("script,style,head,html,body,title,meta,param"),v.getBlockElements());H=v.getNonEmptyElements();C=v.children;L=u.validate;D="forced_root_block" in z?z.forced_root_block:u.forced_root_block;F=v.getWhiteSpaceElements();Q=/^[ \t\r\n]+/;G=/[ \t\r\n]+$/;y=/[ \t\r\n]+/g;K=/^[ \t\r\n]+$/;function S(){var ac=V.firstChild,ab,ad;function aa(ae){if(ae){ac=ae.firstChild;if(ac&&ac.type==3){ac.value=ac.value.replace(Q,"")}ac=ae.lastChild;if(ac&&ac.type==3){ac.value=ac.value.replace(G,"")}}}if(!v.isValidChild(V.name,D.toLowerCase())){return}while(ac){ab=ac.next;if(ac.type==3||(ac.type==1&&ac.name!=="p"&&!B[ac.name]&&!ac.attr("data-mce-type"))){if(!ad){ad=W(D,1);ad.attr(u.forced_root_block_attrs);V.insert(ad,ac);ad.append(ac)}else{ad.append(ac)}}else{aa(ad);ad=null}ac=ab}aa(ad)}function W(aa,ab){var ac=new k(aa,ab),ad;if(aa in s){ad=w[aa];if(ad){ad.push(ac)}else{w[aa]=[ac]}}return ac}function U(ac){var ad,aa,ab;for(ad=ac.prev;ad&&ad.type===3;){aa=ad.value.replace(G,"");if(aa.length>0){ad.value=aa;ad=ad.prev}else{ab=ad.prev;ad.remove();ad=ab}}}function T(ab){var ac,aa={};for(ac in ab){if(ac!=="li"&&ac!="p"){aa[ac]=ab[ac]}}return aa}A=new i({validate:L,allow_script_urls:u.allow_script_urls,allow_conditional_comments:u.allow_conditional_comments,self_closing_elements:T(v.getSelfClosingElements()),cdata:function(aa){N.append(W("#cdata",4)).value=aa},text:function(ac,aa){var ab;if(!X){ac=ac.replace(y," ");if(N.lastChild&&B[N.lastChild.name]){ac=ac.replace(Q,"")}}if(ac.length!==0){ab=W("#text",3);ab.raw=!!aa;N.append(ab).value=ac}},comment:function(aa){N.append(W("#comment",8)).value=aa},pi:function(aa,ab){N.append(W(aa,7)).value=ab;U(N)},doctype:function(ab){var aa;aa=N.append(W("#doctype",10));aa.value=ab;U(N)},start:function(ac,ab,ah){var ae,aa,ag,ad,af;ag=L?v.getElementRule(ac):{};if(ag){ae=W(ag.outputName||ac,1);ae.attributes=ab;ae.shortEnded=ah;N.append(ae);af=C[N.name];if(af&&C[ae.name]&&!af[ae.name]){Y.push(ae)}aa=r.length;while(aa--){ad=r[aa].name;if(ad in ab.map){R=q[ad];if(R){R.push(ae)}else{q[ad]=[ae]}}}if(B[ac]){U(ae)}if(!ah){N=ae}if(!X&&F[ac]){X=true}}},end:function(aa){var af,ac,ae,ab,ad;ac=L?v.getElementRule(aa):{};if(ac){if(B[aa]){if(!X){af=N.firstChild;if(af&&af.type===3){ae=af.value.replace(Q,"");if(ae.length>0){af.value=ae;af=af.next}else{ab=af.next;af.remove();af=ab;while(af&&af.type===3){ae=af.value;ab=af.next;if(ae.length===0||K.test(ae)){af.remove();af=ab}af=ab}}}af=N.lastChild;if(af&&af.type===3){ae=af.value.replace(G,"");if(ae.length>0){af.value=ae;af=af.prev}else{ab=af.prev;af.remove();af=ab;while(af&&af.type===3){ae=af.value;ab=af.prev;if(ae.length===0||K.test(ae)){af.remove();af=ab}af=ab}}}}}if(X&&F[aa]){X=false}if(ac.removeEmpty||ac.paddEmpty){if(N.isEmpty(H)){if(ac.paddEmpty){N.empty().append(new k("#text","3")).value="\u00a0"}else{if(!N.attributes.map.name&&!N.attributes.map.id){ad=N.parent;if(B[N.name]){N.empty().remove()}else{N.unwrap()}N=ad;return}}}}N=N.parent}}},v);V=N=new k(z.context||u.root_name,11);A.parse(I);if(L&&Y.length){if(!z.context){x(Y)}else{z.invalid=true}}if(D&&(V.name=="body"||z.isRootContent)){S()}if(!z.invalid){for(Z in w){R=s[Z];M=w[Z];J=M.length;while(J--){if(!M[J].parent){M.splice(J,1)}}for(P=0,O=R.length;P<O;P++){R[P](M,Z,z)}}for(P=0,O=r.length;P<O;P++){R=r[P];if(R.name in q){M=q[R.name];J=M.length;while(J--){if(!M[J].parent){M.splice(J,1)}}for(J=0,E=R.callbacks.length;J<E;J++){R.callbacks[J](M,R.name,z)}}}}return V};if(u.remove_trailing_brs){t.addNodeFilter("br",function(z){var E,D=z.length,A,J=p({},v.getBlockElements());var y=v.getNonEmptyElements(),H,F,C,I;var G,B;J.body=1;for(E=0;E<D;E++){A=z[E];H=A.parent;if(J[A.parent.name]&&A===H.lastChild){C=A.prev;while(C){I=C.name;if(I!=="span"||C.attr("data-mce-type")!=="bookmark"){if(I!=="br"){break}if(I==="br"){A=null;break}}C=C.prev}if(A){A.remove();if(H.isEmpty(y)){G=v.getElementRule(H.name);if(G){if(G.removeEmpty){H.remove()}else{if(G.paddEmpty){H.empty().append(new k("#text",3)).value="\u00a0"}}}}}}else{F=A;while(H&&H.firstChild===F&&H.lastChild===F){F=H;if(J[H.name]){break}H=H.parent}if(F===H){B=new k("#text",3);B.value="\u00a0";A.replace(B)}}}})}if(!u.allow_html_in_named_anchor){t.addAttributeFilter("id,name",function(y){var A=y.length,C,z,B,D;while(A--){D=y[A];if(D.name==="a"&&D.firstChild&&!D.attr("href")){B=D.parent;C=D.lastChild;do{z=C.prev;B.insert(C,D);C=z}while(C)}}})}if(u.validate&&v.getValidClasses()){t.addAttributeFilter("class",function(z){var D=z.length,C,A,H,F,B;var G=v.getValidClasses(),E,y;while(D--){C=z[D];A=C.attr("class").split(" ");B="";for(H=0;H<A.length;H++){F=A[H];y=false;E=G["*"];if(E&&E[F]){y=true}E=G[C.name];if(!y&&E&&E[F]){y=true}if(y){if(B){B+=" "}B+=F}}if(!B.length){B=null}C.attr("class",B)}})}}});h("tinymce/html/Writer",["tinymce/html/Entities","tinymce/util/Tools"],function(k,i){var j=i.makeMap;return function(p){var n=[],l,m,o,q,r;p=p||{};l=p.indent;m=j(p.indent_before||"");o=j(p.indent_after||"");q=k.getEncodeFunc(p.entity_encoding||"raw",p.entities);r=p.element_format=="html";return{start:function(v,u,y){var w,t,s,x;if(l&&m[v]&&n.length>0){x=n[n.length-1];if(x.length>0&&x!=="\n"){n.push("\n")}}n.push("<",v);if(u){for(w=0,t=u.length;w<t;w++){s=u[w];n.push(" ",s.name,'="',q(s.value,true),'"')}}if(!y||r){n[n.length]=">"}else{n[n.length]=" />"}if(y&&l&&o[v]&&n.length>0){x=n[n.length-1];if(x.length>0&&x!=="\n"){n.push("\n")}}},end:function(s){var t;n.push("</",s,">");if(l&&o[s]&&n.length>0){t=n[n.length-1];if(t.length>0&&t!=="\n"){n.push("\n")}}},text:function(t,s){if(t.length>0){n[n.length]=s?t:q(t)}},cdata:function(s){n.push("<![CDATA[",s,"]]>")},comment:function(s){n.push("<!--",s,"-->")},pi:function(s,t){if(t){n.push("<?",s," ",q(t),"?>")}else{n.push("<?",s,"?>")}if(l){n.push("\n")}},doctype:function(s){n.push("<!DOCTYPE",s,">",l?"\n":"")},reset:function(){n.length=0},getContent:function(){return n.join("").replace(/\n$/,"")}}}});h("tinymce/html/Serializer",["tinymce/html/Writer","tinymce/html/Schema"],function(j,i){return function(l,m){var k=this,n=new j(l);l=l||{};l.validate="validate" in l?l.validate:true;k.schema=m=m||new i();k.writer=n;k.serialize=function(q){var p,r;r=l.validate;p={3:function(s){n.text(s.value,s.raw)},8:function(s){n.comment(s.value)},7:function(s){n.pi(s.name,s.value)},10:function(s){n.doctype(s.value)},4:function(s){n.cdata(s.value)},11:function(s){if((s=s.firstChild)){do{o(s)}while((s=s.next))}}};n.reset();function o(t){var B=p[t.type],s,w,A,z,x,C,v,u,y;if(!B){s=t.name;w=t.shortEnded;A=t.attributes;if(r&&A&&A.length>1){C=[];C.map={};y=m.getElementRule(t.name);for(v=0,u=y.attributesOrder.length;v<u;v++){z=y.attributesOrder[v];if(z in A.map){x=A.map[z];C.map[z]=x;C.push({name:z,value:x})}}for(v=0,u=A.length;v<u;v++){z=A[v].name;if(!(z in C.map)){x=A.map[z];C.map[z]=x;C.push({name:z,value:x})}}A=C}n.start(t.name,A,w);if(!w){if((t=t.firstChild)){do{o(t)}while((t=t.next))}n.end(s)}}else{B(t)}}if(q.type==1&&!l.inner){o(q)}else{p[11](q)}return n.getContent()}}});h("tinymce/dom/Serializer",["tinymce/dom/DOMUtils","tinymce/html/DomParser","tinymce/html/Entities","tinymce/html/Serializer","tinymce/html/Node","tinymce/html/Schema","tinymce/Env","tinymce/util/Tools"],function(p,s,j,o,m,l,n,k){var q=k.each,i=k.trim;var r=p.DOM;return function(v,u){var x,w,t;if(u){x=u.dom;w=u.schema}x=x||r;w=w||new l(v);v.entity_encoding=v.entity_encoding||"named";v.remove_trailing_brs="remove_trailing_brs" in v?v.remove_trailing_brs:true;t=new s(v,w);t.addAttributeFilter("data-mce-tabindex",function(y,z){var A=y.length,B;while(A--){B=y[A];B.attr("tabindex",B.attributes.map["data-mce-tabindex"]);B.attr(z,null)}});t.addAttributeFilter("src,href,style",function(z,y){var D=z.length,A,F,C="data-mce-"+y;var E=v.url_converter,G=v.url_converter_scope,B;while(D--){A=z[D];F=A.attributes.map[C];if(F!==B){A.attr(y,F.length>0?F:null);A.attr(C,null)}else{F=A.attributes.map[y];if(y==="style"){F=x.serializeStyle(x.parseStyle(F),A.name)}else{if(E){F=E.call(G,F,y,A.name)}}A.attr(y,F.length>0?F:null)}}});t.addAttributeFilter("class",function(y){var z=y.length,A,B;while(z--){A=y[z];B=A.attr("class");if(B){B=A.attr("class").replace(/(?:^|\s)mce-item-\w+(?!\S)/g,"");A.attr("class",B.length>0?B:null)}}});t.addAttributeFilter("data-mce-type",function(y,A,z){var B=y.length,C;while(B--){C=y[B];if(C.attributes.map["data-mce-type"]==="bookmark"&&!z.cleanup){C.remove()}}});t.addNodeFilter("noscript",function(y){var z=y.length,A;while(z--){A=y[z].firstChild;if(A){A.value=j.decode(A.value)}}});t.addNodeFilter("script,style",function(z,A){var B=z.length,D,E,C;function y(F){return F.replace(/(<!--\[CDATA\[|\]\]-->)/g,"\n").replace(/^[\r\n]*|[\r\n]*$/g,"").replace(/^\s*((<!--)?(\s*\/\/)?\s*<!\[CDATA\[|(<!--\s*)?\/\*\s*<!\[CDATA\[\s*\*\/|(\/\/)?\s*<!--|\/\*\s*<!--\s*\*\/)\s*[\r\n]*/gi,"").replace(/\s*(\/\*\s*\]\]>\s*\*\/(-->)?|\s*\/\/\s*\]\]>(-->)?|\/\/\s*(-->)?|\]\]>|\/\*\s*-->\s*\*\/|\s*-->\s*)\s*$/g,"")}while(B--){D=z[B];E=D.firstChild?D.firstChild.value:"";if(A==="script"){C=D.attr("type");if(C){D.attr("type",C=="mce-no/type"?null:C.replace(/^mce\-/,""))}if(E.length>0){D.firstChild.value="// <![CDATA[\n"+y(E)+"\n// ]]>"}}else{if(E.length>0){D.firstChild.value="<!--\n"+y(E)+"\n-->"}}}});t.addNodeFilter("#comment",function(y){var z=y.length,A;while(z--){A=y[z];if(A.value.indexOf("[CDATA[")===0){A.name="#cdata";A.type=4;A.value=A.value.replace(/^\[CDATA\[|\]\]$/g,"")}else{if(A.value.indexOf("mce:protected ")===0){A.name="#text";A.type=3;A.raw=true;A.value=unescape(A.value).substr(14)}}}});t.addNodeFilter("xml:namespace,input",function(y,z){var A=y.length,B;while(A--){B=y[A];if(B.type===7){B.remove()}else{if(B.type===1){if(z==="input"&&!("type" in B.attributes.map)){B.attr("type","text")}}}}});if(v.fix_list_elements){t.addNodeFilter("ul,ol",function(z){var A=z.length,B,y;while(A--){B=z[A];y=B.parent;if(y.name==="ul"||y.name==="ol"){if(B.prev&&B.prev.name==="li"){B.prev.append(B)}}}})}t.addAttributeFilter("data-mce-src,data-mce-href,data-mce-style,data-mce-selected,data-mce-expando,data-mce-type,data-mce-resize",function(y,z){var A=y.length;while(A--){y[A].attr(z,null)}});return{schema:w,addNodeFilter:t.addNodeFilter,addAttributeFilter:t.addAttributeFilter,serialize:function(E,C){var B=this,A,F,z,y,D;if(n.ie&&x.select("script,style,select,map").length>0){D=E.innerHTML;E=E.cloneNode(false);x.setHTML(E,D)}else{E=E.cloneNode(true)}A=E.ownerDocument.implementation;if(A.createHTMLDocument){F=A.createHTMLDocument("");q(E.nodeName=="BODY"?E.childNodes:[E],function(G){F.body.appendChild(F.importNode(G,true))});if(E.nodeName!="BODY"){E=F.body.firstChild}else{E=F.body}z=x.doc;x.doc=F}C=C||{};C.format=C.format||"html";if(C.selection){C.forced_root_block=""}if(!C.no_events){C.node=E;B.onPreProcess(C)}y=new o(v,w);C.content=y.serialize(t.parse(i(C.getInner?E.innerHTML:x.getOuterHTML(E)),C));if(!C.cleanup){C.content=C.content.replace(/\uFEFF/g,"")}if(!C.no_events){B.onPostProcess(C)}if(z){x.doc=z}C.node=null;return C.content},addRules:function(y){w.addValidElements(y)},setRules:function(y){w.setValidElements(y)},onPreProcess:function(y){if(u){u.fire("PreProcess",y)}},onPostProcess:function(y){if(u){u.fire("PostProcess",y)}}}}});h("tinymce/dom/TridentSelection",[],function(){function i(k){var j=this,o=k.dom,m=false;function l(p,q){var r,A=0,x,u,t,s,v,y,w=-1,z;r=p.duplicate();r.collapse(q);z=r.parentElement();if(z.ownerDocument!==k.dom.doc){return}while(z.contentEditable==="false"){z=z.parentNode}if(!z.hasChildNodes()){return{node:z,inside:1}}t=z.children;x=t.length-1;while(A<=x){y=Math.floor((A+x)/2);s=t[y];r.moveToElementText(s);w=r.compareEndPoints(q?"StartToStart":"EndToEnd",p);if(w>0){x=y-1}else{if(w<0){A=y+1}else{return{node:s}}}}if(w<0){if(!s){r.moveToElementText(z);r.collapse(true);s=z;u=true}else{r.collapse(false)}v=0;while(r.compareEndPoints(q?"StartToStart":"StartToEnd",p)!==0){if(r.move("character",1)===0||z!=r.parentElement()){break}v++}}else{r.collapse(true);v=0;while(r.compareEndPoints(q?"StartToStart":"StartToEnd",p)!==0){if(r.move("character",-1)===0||z!=r.parentElement()){break}v++}}return{node:s,position:w,offset:v,inside:u}}function n(){var p=k.getRng(),x=o.createRng(),r,q,v,w,s;r=p.item?p.item(0):p.parentElement();if(r.ownerDocument!=o.doc){return x}q=k.isCollapsed();if(p.item){x.setStart(r.parentNode,o.nodeIndex(r));x.setEnd(x.startContainer,x.startOffset+1);return x}function u(F){var A=l(p,F),y,D,E=0,C,B,z;y=A.node;D=A.offset;if(A.inside&&!y.hasChildNodes()){x[F?"setStart":"setEnd"](y,0);return}if(D===B){x[F?"setStartBefore":"setEndAfter"](y);return}if(A.position<0){C=A.inside?y.firstChild:y.nextSibling;if(!C){x[F?"setStartAfter":"setEndAfter"](y);return}if(!D){if(C.nodeType==3){x[F?"setStart":"setEnd"](C,0)}else{x[F?"setStartBefore":"setEndBefore"](C)}return}while(C){if(C.nodeType==3){z=C.nodeValue;E+=z.length;if(E>=D){y=C;E-=D;E=z.length-E;break}}C=C.nextSibling}}else{C=y.previousSibling;if(!C){return x[F?"setStartBefore":"setEndBefore"](y)}if(!D){if(y.nodeType==3){x[F?"setStart":"setEnd"](C,y.nodeValue.length)}else{x[F?"setStartAfter":"setEndAfter"](C)}return}while(C){if(C.nodeType==3){E+=C.nodeValue.length;if(E>=D){y=C;E-=D;break}}C=C.previousSibling}}x[F?"setStart":"setEnd"](y,E)}try{u(true);if(!q){u()}}catch(t){if(t.number==-2147024809){s=j.getBookmark(2);v=p.duplicate();v.collapse(true);r=v.parentElement();if(!q){v=p.duplicate();v.collapse(false);w=v.parentElement();w.innerHTML=w.innerHTML}r.innerHTML=r.innerHTML;j.moveToBookmark(s);p=k.getRng();u(true);if(!q){u()}}else{throw t}}return x}this.getBookmark=function(s){var p=k.getRng(),r={};function t(z){var y,u,x,w,v=[];y=z.parentNode;u=o.getRoot().parentNode;while(y!=u&&y.nodeType!==9){x=y.children;w=x.length;while(w--){if(z===x[w]){v.push(w);break}}z=y;y=y.parentNode}return v}function q(v){var u;u=l(p,v);if(u){return{position:u.position,offset:u.offset,indexes:t(u.node),inside:u.inside}}}if(s===2){if(!p.item){r.start=q(true);if(!k.isCollapsed()){r.end=q()}}else{r.start={ctrl:true,indexes:t(p.item(0))}}}return r};this.moveToBookmark=function(r){var q,p=o.doc.body;function t(v){var y,x,u,w;y=o.getRoot();for(x=v.length-1;x>=0;x--){w=y.children;u=v[x];if(u<=w.length-1){y=w[u]}}return y}function s(z){var u=r[z?"start":"end"],x,w,v,y;if(u){x=u.position>0;w=p.createTextRange();w.moveToElementText(t(u.indexes));y=u.offset;if(y!==v){w.collapse(u.inside||x);w.moveStart("character",x?-y:y)}else{w.collapse(z)}q.setEndPoint(z?"StartToStart":"EndToStart",w);if(z){q.collapse(true)}}}if(r.start){if(r.start.ctrl){q=p.createControlRange();q.addElement(t(r.start.indexes));q.select()}else{q=p.createTextRange();s(true);s();q.select()}}};this.addRange=function(p){var u,s,r,w,C,x,A,z=k.dom.doc,t=z.body,y,B;function q(I){var E,H,D,G,F;D=o.create("a");E=I?r:C;H=I?w:x;G=u.duplicate();if(E==z||E==z.documentElement){E=t;H=0}if(E.nodeType==3){E.parentNode.insertBefore(D,E);G.moveToElementText(D);G.moveStart("character",H);o.remove(D);u.setEndPoint(I?"StartToStart":"EndToEnd",G)}else{F=E.childNodes;if(F.length){if(H>=F.length){o.insertAfter(D,F[F.length-1])}else{E.insertBefore(D,F[H])}G.moveToElementText(D)}else{if(E.canHaveHTML){E.innerHTML="<span></span>";D=E.firstChild;G.moveToElementText(D);G.collapse(m)}}u.setEndPoint(I?"StartToStart":"EndToEnd",G);o.remove(D)}}r=p.startContainer;w=p.startOffset;C=p.endContainer;x=p.endOffset;u=t.createTextRange();if(r==C&&r.nodeType==1){if(w==x&&!r.hasChildNodes()){if(r.canHaveHTML){A=r.previousSibling;if(A&&!A.hasChildNodes()&&o.isBlock(A)){A.innerHTML=""}else{A=null}r.innerHTML="<span></span><span></span>";u.moveToElementText(r.lastChild);u.select();o.doc.selection.clear();r.innerHTML="";if(A){A.innerHTML=""}return}else{w=o.nodeIndex(r);r=r.parentNode}}if(w==x-1){try{B=r.childNodes[w];s=t.createControlRange();s.addElement(B);s.select();y=k.getRng();if(y.item&&B===y.item(0)){return}}catch(v){}}}q(true);q();u.select()};this.getRangeAt=n}return i});h("tinymce/util/VK",["tinymce/Env"],function(i){return{BACKSPACE:8,DELETE:46,DOWN:40,ENTER:13,LEFT:37,RIGHT:39,SPACEBAR:32,TAB:9,UP:38,modifierPressed:function(j){return j.shiftKey||j.ctrlKey||j.altKey||this.metaKeyPressed(j)},metaKeyPressed:function(j){return(i.mac?j.metaKey:j.ctrlKey&&!j.altKey)}}});h("tinymce/dom/ControlSelection",["tinymce/util/VK","tinymce/util/Tools","tinymce/Env"],function(k,j,i){return function(y,m){var n=m.dom,T=j.each;var v,ac,O,Q,aa,Y;var D,B,M,L,E,J,R,r;var l,o,w=m.getDoc(),Z=document,u=i.ie&&i.ie<11;var I=Math.abs,X=Math.round,A=m.getBody(),F,p;Q={n:[0.5,0,0,-1],e:[1,0.5,1,0],s:[0.5,1,0,1],w:[0,0.5,-1,0],nw:[0,0,-1,-1],ne:[1,0,1,-1],se:[1,1,1,1],sw:[0,1,-1,1]};var C=".mce-content-body";m.contentStyles.push(C+" div.mce-resizehandle {position: absolute;border: 1px solid black;background: #FFF;width: 5px;height: 5px;z-index: 10000}"+C+" .mce-resizehandle:hover {background: #000}"+C+" img[data-mce-selected], hr[data-mce-selected] {outline: 1px solid black;resize: none}"+C+" .mce-clonedresizable {position: absolute;"+(i.gecko?"":"outline: 1px dashed black;")+"opacity: .5;filter: alpha(opacity=50);z-index: 10000}"+C+" .mce-resize-helper {background: #555;background: rgba(0,0,0,0.75);border-radius: 3px;border: 1px;color: white;display: none;font-family: sans-serif;font-size: 12px;white-space: nowrap;line-height: 14px;margin: 5px 10px;padding: 5px;position: absolute;z-index: 10001}");function U(ae){var ad=m.settings.object_resizing;if(ad===false||i.iOS){return false}if(typeof ad!="string"){ad="table,img,div"}if(ae.getAttribute("data-mce-resize")==="false"){return false}return m.dom.is(ae,ad)}function q(ag){var ae,ad,af;var ai,ah;ae=ag.screenX-D;ad=ag.screenY-B;l=ae*aa[2]+E;o=ad*aa[3]+J;l=l<5?5:l;o=o<5?5:o;if(v.nodeName=="IMG"&&m.settings.resize_img_proportional!==false){af=!k.modifierPressed(ag)}else{af=k.modifierPressed(ag)||(v.nodeName=="IMG"&&aa[2]*aa[3]!==0)}if(af){if(I(ae)>I(ad)){o=X(l*R);l=X(o/R)}else{l=X(o/R);o=X(l*R)}}n.setStyles(ac,{width:l,height:o});ai=aa.startPos.x+ae;ah=aa.startPos.y+ad;ai=ai>0?ai:0;ah=ah>0?ah:0;n.setStyles(O,{left:ai,top:ah,display:"block"});O.innerHTML=l+" × "+o;if(aa[2]<0&&ac.clientWidth<=l){n.setStyle(ac,"left",M+(E-l))}if(aa[3]<0&&ac.clientHeight<=o){n.setStyle(ac,"top",L+(J-o))}ae=A.scrollWidth-F;ad=A.scrollHeight-p;if(ae+ad!==0){n.setStyles(O,{left:ai-ae,top:ah-ad})}if(!r){m.fire("ObjectResizeStart",{target:v,width:E,height:J});r=true}}function P(){r=false;function ad(ae,af){if(af){if(v.style[ae]||!m.schema.isValid(v.nodeName.toLowerCase(),ae)){n.setStyle(v,ae,af)}else{n.setAttrib(v,ae,af)}}}ad("width",l);ad("height",o);n.unbind(w,"mousemove",q);n.unbind(w,"mouseup",P);if(Z!=w){n.unbind(Z,"mousemove",q);n.unbind(Z,"mouseup",P)}n.remove(ac);n.remove(O);if(!u||v.nodeName=="TABLE"){K(v)}m.fire("ObjectResized",{target:v,width:l,height:o});n.setAttrib(v,"style",n.getAttrib(v,"style"));m.nodeChanged()}function K(aj,ah,af){var ae,ag,ad,ak,ai;ab();ae=n.getPos(aj,A);M=ae.x;L=ae.y;ai=aj.getBoundingClientRect();ag=ai.width||(ai.right-ai.left);ad=ai.height||(ai.bottom-ai.top);if(v!=aj){V();v=aj;l=o=0}ak=m.fire("ObjectSelected",{target:aj});if(U(aj)&&!ak.isDefaultPrevented()){T(Q,function(ao,am){var an,ap;function al(aq){D=aq.screenX;B=aq.screenY;E=v.clientWidth;J=v.clientHeight;R=J/E;aa=ao;ao.startPos={x:ag*ao[0]+M,y:ad*ao[1]+L};F=A.scrollWidth;p=A.scrollHeight;ac=v.cloneNode(true);n.addClass(ac,"mce-clonedresizable");n.setAttrib(ac,"data-mce-bogus","all");ac.contentEditable=false;ac.unSelectabe=true;n.setStyles(ac,{left:M,top:L,margin:0});ac.removeAttribute("data-mce-selected");A.appendChild(ac);n.bind(w,"mousemove",q);n.bind(w,"mouseup",P);if(Z!=w){n.bind(Z,"mousemove",q);n.bind(Z,"mouseup",P)}O=n.add(A,"div",{"class":"mce-resize-helper","data-mce-bogus":"all"},E+" × "+J)}if(ah){if(am==ah){al(af)}return}an=n.get("mceResizeHandle"+am);if(!an){ap=A;an=n.add(ap,"div",{id:"mceResizeHandle"+am,"data-mce-bogus":"all","class":"mce-resizehandle",unselectable:true,style:"cursor:"+am+"-resize; margin:0; padding:0"});if(i.ie){an.contentEditable=false}}else{n.show(an)}if(!ao.elm){n.bind(an,"mousedown",function(aq){aq.stopImmediatePropagation();aq.preventDefault();al(aq)});ao.elm=an}n.setStyles(an,{left:(ag*ao[0]+M)-(an.offsetWidth/2),top:(ad*ao[1]+L)-(an.offsetHeight/2)})})}else{G()}v.setAttribute("data-mce-selected","1")}function G(){var ad,ae;ab();if(v){v.removeAttribute("data-mce-selected")}for(ad in Q){ae=n.get("mceResizeHandle"+ad);if(ae){n.unbind(ae);n.remove(ae)}}}function H(ag){var af,ad;function ae(ai,ah){if(ai){do{if(ai===ah){return true}}while((ai=ai.parentNode))}}if(r){return}T(n.select("img[data-mce-selected],hr[data-mce-selected]"),function(ah){ah.removeAttribute("data-mce-selected")});ad=ag.type=="mousedown"?ag.target:y.getNode();ad=n.$(ad).closest(u?"table":"table,img,hr")[0];if(ae(ad,A)){N();af=y.getStart(true);if(ae(af,ad)&&ae(y.getEnd(true),ad)){if(!u||(ad!=af&&af.nodeName!=="IMG")){K(ad);return}}}G()}function s(af,ad,ae){if(af&&af.attachEvent){af.attachEvent("on"+ad,ae)}}function z(af,ad,ae){if(af&&af.detachEvent){af.detachEvent("on"+ad,ae)}}function x(af){var ag=af.srcElement,ak,ad,al,aj,ah,ai,ae;ak=ag.getBoundingClientRect();ai=Y.clientX-ak.left;ae=Y.clientY-ak.top;for(ad in Q){al=Q[ad];aj=ag.offsetWidth*al[0];ah=ag.offsetHeight*al[1];if(I(aj-ai)<8&&I(ah-ae)<8){aa=al;break}}r=true;m.fire("ObjectResizeStart",{target:v,width:v.clientWidth,height:v.clientHeight});m.getDoc().selection.empty();K(ag,ad,Y)}function W(ae){var ad=ae.srcElement;if(ad!=v){m.fire("ObjectSelected",{target:ad});V();if(ad.id.indexOf("mceResizeHandle")===0){ae.returnValue=false;return}if(ad.nodeName=="IMG"||ad.nodeName=="TABLE"){G();v=ad;s(ad,"resizestart",x)}}}function V(){z(v,"resizestart",x)}function ab(){for(var ad in Q){var ae=Q[ad];if(ae.elm){n.unbind(ae.elm);delete ae.elm}}}function N(){try{m.getDoc().execCommand("enableObjectResizing",false,false)}catch(ad){}}function t(af){var ae;if(!u){return}ae=w.body.createControlRange();try{ae.addElement(af);ae.select();return true}catch(ad){}}m.on("init",function(){if(u){m.on("ObjectResized",function(ad){if(ad.target.nodeName!="TABLE"){G();t(ad.target)}});s(A,"controlselect",W);m.on("mousedown",function(ad){Y=ad})}else{N();if(i.ie>=11){m.on("mouseup",function(ad){var ae=ad.target.nodeName;if(!r&&/^(TABLE|IMG|HR)$/.test(ae)){m.selection.select(ad.target,ae=="TABLE");m.nodeChanged()}});m.dom.bind(A,"mscontrolselect",function(ad){if(/^(TABLE|IMG|HR)$/.test(ad.target.nodeName)){ad.preventDefault();if(ad.target.tagName=="IMG"){window.setTimeout(function(){m.selection.select(ad.target)},0)}}})}}m.on("nodechange ResizeEditor",H);m.on("keydown keyup",function(ad){if(v&&v.nodeName=="TABLE"){H(ad)}});m.on("hide",G)});m.on("remove",ab);function S(){v=ac=null;if(u){V();z(A,"controlselect",W)}}return{isResizable:U,showResizeRect:K,hideResizeRect:G,updateResizeRect:H,controlSelect:t,destroy:S}}});h("tinymce/dom/BookmarkManager",["tinymce/Env","tinymce/util/Tools"],function(i,k){function j(l){var m=l.dom;this.getBookmark=function(x,z){var o,r,q,u,p,v,t="",A;function n(C,D){var B=0;k.each(m.select(C),function(F,E){if(F==D){B=E}});return B}function y(B){function C(H){var D,G,F,E=H?"start":"end";D=B[E+"Container"];G=B[E+"Offset"];if(D.nodeType==1&&D.nodeName=="TR"){F=D.childNodes;D=F[Math.min(H?G:G-1,F.length-1)];if(D){G=H?0:D.childNodes.length;B["set"+(H?"Start":"End")](D,G)}}}C(true);C();return B}function s(){var C=l.getRng(true),B=m.getRoot(),D={};function E(H,M){var G=H[M?"startContainer":"endContainer"],L=H[M?"startOffset":"endOffset"],F=[],I,K,J=0;if(G.nodeType==3){if(z){for(I=G.previousSibling;I&&I.nodeType==3;I=I.previousSibling){L+=I.nodeValue.length}}F.push(L)}else{K=G.childNodes;if(L>=K.length&&K.length){J=1;L=Math.max(0,K.length-1)}F.push(m.nodeIndex(K[L],z)+J)}for(;G&&G!=B;G=G.parentNode){F.push(m.nodeIndex(G,z))}return F}D.start=E(C,true);if(!l.isCollapsed()){D.end=E(C)}return D}if(x==2){v=l.getNode();p=v?v.nodeName:null;if(p=="IMG"){return{name:p,index:n(p,v)}}if(l.tridentSel){return l.tridentSel.getBookmark(x)}return s()}if(x){return{rng:l.getRng()}}o=l.getRng();q=m.uniqueId();u=l.isCollapsed();A="overflow:hidden;line-height:0px";if(o.duplicate||o.item){if(!o.item){r=o.duplicate();try{o.collapse();o.pasteHTML('<span data-mce-type="bookmark" id="'+q+'_start" style="'+A+'">'+t+"</span>");if(!u){r.collapse(false);o.moveToElementText(r.parentElement());if(o.compareEndPoints("StartToEnd",r)===0){r.move("character",-1)}r.pasteHTML('<span data-mce-type="bookmark" id="'+q+'_end" style="'+A+'">'+t+"</span>")}}catch(w){return null}}else{v=o.item(0);p=v.nodeName;return{name:p,index:n(p,v)}}}else{v=l.getNode();p=v.nodeName;if(p=="IMG"){return{name:p,index:n(p,v)}}r=y(o.cloneRange());if(!u){r.collapse(false);r.insertNode(m.create("span",{"data-mce-type":"bookmark",id:q+"_end",style:A},t))}o=y(o);o.collapse(true);o.insertNode(m.create("span",{"data-mce-type":"bookmark",id:q+"_start",style:A},t))}l.moveToBookmark({id:q,keep:1});return{id:q}};this.moveToBookmark=function(s){var n,v,p,w,t,u;function o(C){var x=s[C?"start":"end"],z,A,B,y;if(x){B=x[0];for(A=v,z=x.length-1;z>=1;z--){y=A.childNodes;if(x[z]>y.length-1){return}A=y[x[z]]}if(A.nodeType===3){B=Math.min(x[0],A.nodeValue.length)}if(A.nodeType===1){B=Math.min(x[0],A.childNodes.length)}if(C){n.setStart(A,B)}else{n.setEnd(A,B)}}return true}function q(D){var y=m.get(s.id+"_"+D),C,x,A,B,z=s.keep;if(y){C=y.parentNode;if(D=="start"){if(!z){x=m.nodeIndex(y)}else{C=y.firstChild;x=1}p=w=C;t=u=x}else{if(!z){x=m.nodeIndex(y)}else{C=y.firstChild;x=1}w=C;u=x}if(!z){B=y.previousSibling;A=y.nextSibling;k.each(k.grep(y.childNodes),function(E){if(E.nodeType==3){E.nodeValue=E.nodeValue.replace(/\uFEFF/g,"")}});while((y=m.get(s.id+"_"+D))){m.remove(y,1)}if(B&&A&&B.nodeType==A.nodeType&&B.nodeType==3&&!i.opera){x=B.nodeValue.length;B.appendData(A.nodeValue);m.remove(A);if(D=="start"){p=w=B;t=u=x}else{w=B;u=x}}}}}function r(x){if(m.isBlock(x)&&!x.innerHTML&&!i.ie){x.innerHTML='<br data-mce-bogus="1" />'}return x}if(s){if(s.start){n=m.createRng();v=m.getRoot();if(l.tridentSel){return l.tridentSel.moveToBookmark(s)}if(o(true)&&o()){l.setRng(n)}}else{if(s.id){q("start");q("end");if(p){n=m.createRng();n.setStart(r(p),t);n.setEnd(r(w),u);l.setRng(n)}}else{if(s.name){l.select(m.select(s.name)[s.index])}else{if(s.rng){l.setRng(s.rng)}}}}}}}j.isBookmarkNode=function(l){return l&&l.tagName==="SPAN"&&l.getAttribute("data-mce-type")==="bookmark"};return j});h("tinymce/dom/Selection",["tinymce/dom/TreeWalker","tinymce/dom/TridentSelection","tinymce/dom/ControlSelection","tinymce/dom/RangeUtils","tinymce/dom/BookmarkManager","tinymce/Env","tinymce/util/Tools"],function(q,o,i,m,r,n,l){var p=l.each,k=l.trim;var j=n.ie;function s(x,w,v,u){var t=this;t.dom=x;t.win=w;t.serializer=v;t.editor=u;t.bookmarkManager=new r(t);t.controlSelection=new i(t,u);if(!t.win.getSelection){t.tridentSel=new o(t)}}s.prototype={setCursorLocation:function(v,w){var u=this,t=u.dom.createRng();if(!v){u._moveEndPoint(t,u.editor.getBody(),true);u.setRng(t)}else{t.setStart(v,w);t.setEnd(v,w);u.setRng(t);u.collapse(false)}},getContent:function(x){var v=this,u=v.getRng(),t=v.dom.create("body");var A=v.getSel(),z,y,w;x=x||{};z=y="";x.get=true;x.format=x.format||"html";x.selection=true;v.editor.fire("BeforeGetContent",x);if(x.format=="text"){return v.isCollapsed()?"":(u.text||(A.toString?A.toString():""))}if(u.cloneContents){w=u.cloneContents();if(w){t.appendChild(w)}}else{if(u.item!==g||u.htmlText!==g){t.innerHTML="<br>"+(u.item?u.item(0).outerHTML:u.htmlText);t.removeChild(t.firstChild)}else{t.innerHTML=u.toString()}}if(/^\s/.test(t.innerHTML)){z=" "}if(/\s+$/.test(t.innerHTML)){y=" "}x.getInner=true;x.content=v.isCollapsed()?"":z+v.serializer.serialize(t,x)+y;v.editor.fire("GetContent",x);return x.content},setContent:function(u,w){var B=this,t=B.getRng(),x,y=B.win.document,A,z;w=w||{format:"html"};w.set=true;w.selection=true;u=w.content=u;if(!w.no_events){B.editor.fire("BeforeSetContent",w)}u=w.content;if(t.insertNode){u+='<span id="__caret">_</span>';if(t.startContainer==y&&t.endContainer==y){y.body.innerHTML=u}else{t.deleteContents();if(y.body.childNodes.length===0){y.body.innerHTML=u}else{if(t.createContextualFragment){t.insertNode(t.createContextualFragment(u))}else{A=y.createDocumentFragment();z=y.createElement("div");A.appendChild(z);z.outerHTML=u;t.insertNode(A)}}}x=B.dom.get("__caret");t=y.createRange();t.setStartBefore(x);t.setEndBefore(x);B.setRng(t);B.dom.remove("__caret");try{B.setRng(t)}catch(v){}}else{if(t.item){y.execCommand("Delete",false,null);t=B.getRng()}if(/^\s+/.test(u)){t.pasteHTML('<span id="__mce_tmp">_</span>'+u);B.dom.remove("__mce_tmp")}else{t.pasteHTML(u)}}if(!w.no_events){B.editor.fire("SetContent",w)}},getStart:function(z){var v=this,u=v.getRng(),w,t,y,x;if(u.duplicate||u.item){if(u.item){return u.item(0)}y=u.duplicate();y.collapse(1);w=y.parentElement();if(w.ownerDocument!==v.dom.doc){w=v.dom.getRoot()}t=x=u.parentElement();while((x=x.parentNode)){if(x==w){w=t;break}}return w}else{w=u.startContainer;if(w.nodeType==1&&w.hasChildNodes()){if(!z||!u.collapsed){w=w.childNodes[Math.min(w.childNodes.length-1,u.startOffset)]}}if(w&&w.nodeType==3){return w.parentNode}return w}},getEnd:function(x){var u=this,t=u.getRng(),w,v;if(t.duplicate||t.item){if(t.item){return t.item(0)}t=t.duplicate();t.collapse(0);w=t.parentElement();if(w.ownerDocument!==u.dom.doc){w=u.dom.getRoot()}if(w&&w.nodeName=="BODY"){return w.lastChild||w}return w}else{w=t.endContainer;v=t.endOffset;if(w.nodeType==1&&w.hasChildNodes()){if(!x||!t.collapsed){w=w.childNodes[v>0?v-1:v]}}if(w&&w.nodeType==3){return w.parentNode}return w}},getBookmark:function(t,u){return this.bookmarkManager.getBookmark(t,u)},moveToBookmark:function(t){return this.bookmarkManager.moveToBookmark(t)},select:function(x,w){var v=this,y=v.dom,u=y.createRng(),t;v.lastFocusBookmark=null;if(x){if(!w&&v.controlSelection.controlSelect(x)){return}t=y.nodeIndex(x);u.setStart(x.parentNode,t);u.setEnd(x.parentNode,t+1);if(w){v._moveEndPoint(u,x,true);v._moveEndPoint(u,x)}v.setRng(u)}return x},isCollapsed:function(){var u=this,t=u.getRng(),v=u.getSel();if(!t||t.item){return false}if(t.compareEndPoints){return t.compareEndPoints("StartToEnd",t)===0}return !v||t.collapsed},collapse:function(v){var u=this,t=u.getRng(),w;if(t.item){w=t.item(0);t=u.win.document.body.createTextRange();t.moveToElementText(w)}t.collapse(!!v);u.setRng(t)},getSel:function(){var t=this.win;return t.getSelection?t.getSelection():t.document.selection},getRng:function(z){var C=this,B,t,x,A=C.win.document,v;function y(F,G,D){try{return G.compareBoundaryPoints(F,D)}catch(E){return -1}}if(!z&&C.lastFocusBookmark){var u=C.lastFocusBookmark;if(u.startContainer){t=A.createRange();t.setStart(u.startContainer,u.startOffset);t.setEnd(u.endContainer,u.endOffset)}else{t=u}return t}if(z&&C.tridentSel){return C.tridentSel.getRangeAt(0)}try{if((B=C.getSel())){if(B.rangeCount>0){t=B.getRangeAt(0)}else{t=B.createRange?B.createRange():A.createRange()}}}catch(w){}if(j&&t&&t.setStart&&A.selection){try{v=A.selection.createRange()}catch(w){}if(v&&v.item){x=v.item(0);t=A.createRange();t.setStartBefore(x);t.setEndAfter(x)}}if(!t){t=A.createRange?A.createRange():A.body.createTextRange()}if(t.setStart&&t.startContainer.nodeType===9&&t.collapsed){x=C.dom.getRoot();t.setStart(x,0);t.setEnd(x,0)}if(C.selectedRange&&C.explicitRange){if(y(t.START_TO_START,t,C.selectedRange)===0&&y(t.END_TO_END,t,C.selectedRange)===0){t=C.explicitRange}else{C.selectedRange=null;C.explicitRange=null}}return t},setRng:function(t,v){var u=this,x;if(!t){return}if(t.select){try{t.select()}catch(w){}return}if(!u.tridentSel){x=u.getSel();if(x){u.explicitRange=t;try{x.removeAllRanges();x.addRange(t)}catch(w){}if(v===false&&x.extend){x.collapse(t.endContainer,t.endOffset);x.extend(t.startContainer,t.startOffset)}u.selectedRange=x.rangeCount>0?x.getRangeAt(0):null}}else{if(t.cloneRange){try{u.tridentSel.addRange(t);return}catch(w){}}}},setNode:function(u){var t=this;t.setContent(t.dom.getOuterHTML(u));return u},getNode:function(){var A=this,t=A.getRng(),w;var u=t.startContainer,B=t.endContainer;var x=t.startOffset,y=t.endOffset,z=A.dom.getRoot();function v(D,C){var E=D;while(D&&D.nodeType===3&&D.length===0){D=C?D.nextSibling:D.previousSibling}return D||E}if(!t){return z}if(t.setStart){w=t.commonAncestorContainer;if(!t.collapsed){if(u==B){if(y-x<2){if(u.hasChildNodes()){w=u.childNodes[x]}}}if(u.nodeType===3&&B.nodeType===3){if(u.length===x){u=v(u.nextSibling,true)}else{u=u.parentNode}if(y===0){B=v(B.previousSibling,false)}else{B=B.parentNode}if(u&&u===B){return u}}}if(w&&w.nodeType==3){return w.parentNode}return w}w=t.item?t.item(0):t.parentElement();if(w.ownerDocument!==A.win.document){w=z}return w},getSelectedBlocks:function(w,v){var u=this,A=u.dom,x,t,z=[];t=A.getRoot();w=A.getParent(w||u.getStart(),A.isBlock);v=A.getParent(v||u.getEnd(),A.isBlock);if(w&&w!=t){z.push(w)}if(w&&v&&w!=v){x=w;var y=new q(w,t);while((x=y.next())&&x!=v){if(A.isBlock(x)){z.push(x)}}}if(v&&w!=v&&v!=t){z.push(v)}return z},isForward:function(){var v=this.dom,t=this.getSel(),w,u;if(!t||!t.anchorNode||!t.focusNode){return true}w=v.createRng();w.setStart(t.anchorNode,t.anchorOffset);w.collapse(true);u=v.createRng();u.setStart(t.focusNode,t.focusOffset);u.collapse(true);return w.compareBoundaryPoints(w.START_TO_START,u)<=0},normalize:function(){var u=this,t=u.getRng();if(n.range&&new m(u.dom).normalize(t)){u.setRng(t,u.isForward())}return t},selectorChanged:function(t,w){var u=this,v;if(!u.selectorChangedData){u.selectorChangedData={};v={};u.editor.on("NodeChange",function(A){var z=A.element,B=u.dom,x=B.getParents(z,null,B.getRoot()),y={};p(u.selectorChangedData,function(D,C){p(x,function(E){if(B.is(E,C)){if(!v[C]){p(D,function(F){F(true,{node:E,selector:C,parents:x})});v[C]=D}y[C]=D;return false}})});p(v,function(D,C){if(!y[C]){delete v[C];p(D,function(E){E(false,{node:z,selector:C,parents:x})})}})})}if(!u.selectorChangedData[t]){u.selectorChangedData[t]=[]}u.selectorChangedData[t].push(w);return u},getScrollContainer:function(){var t,u=this.dom.getRoot();while(u&&u.nodeName!="BODY"){if(u.scrollHeight>u.clientHeight){t=u;break}u=u.parentNode}return t},scrollIntoView:function(w){var z,C,D=this,v=D.dom,A=v.getRoot(),t,B;function u(H){var E=0,G=0;var F=H;while(F&&F.nodeType){E+=F.offsetLeft||0;G+=F.offsetTop||0;F=F.offsetParent}return{x:E,y:G}}if(A.nodeName!="BODY"){var x=D.getScrollContainer();if(x){z=u(w).y-u(x).y;B=x.clientHeight;t=x.scrollTop;if(z<t||z+25>t+B){x.scrollTop=z<t?z:z-B+25}return}}C=v.getViewPort(D.editor.getWin());z=v.getPos(w).y;t=C.y;B=C.h;if(z<C.y||z+25>t+B){D.editor.getWin().scrollTo(0,z<t?z:z-B+25)}},placeCaretAt:function(x,w){var y=this.editor.getDoc(),u,t;if(y.caretPositionFromPoint){t=y.caretPositionFromPoint(x,w);u=y.createRange();u.setStart(t.offsetNode,t.offset);u.collapse(true)}else{if(y.caretRangeFromPoint){u=y.caretRangeFromPoint(x,w)}else{if(y.body.createTextRange){u=y.body.createTextRange();try{u.moveToPoint(x,w);u.collapse(true)}catch(v){u.collapse(w<y.body.clientHeight)}}}}this.setRng(u)},_moveEndPoint:function(u,w,y){var t=w,x=new q(w,t);var v=this.dom.schema.getNonEmptyElements();do{if(w.nodeType==3&&k(w.nodeValue).length!==0){if(y){u.setStart(w,0)}else{u.setEnd(w,w.nodeValue.length)}return}if(v[w.nodeName]&&!/^(TD|TH)$/.test(w.nodeName)){if(y){u.setStartBefore(w)}else{if(w.nodeName=="BR"){u.setEndBefore(w)}else{u.setEndAfter(w)}}return}if(n.ie&&n.ie<11&&this.dom.isBlock(w)&&this.dom.isEmpty(w)){if(y){u.setStart(w,0)}else{u.setEnd(w,0)}return}}while((w=(y?x.next():x.prev())));if(t.nodeName=="BODY"){if(y){u.setStart(t,0)}else{u.setEnd(t,t.childNodes.length)}}},destroy:function(){this.win=null;this.controlSelection.destroy()}};return s});h("tinymce/dom/ElementUtils",["tinymce/dom/BookmarkManager","tinymce/util/Tools"],function(i,k){var l=k.each;function j(m){this.compare=function(p,o){if(p.nodeName!=o.nodeName){return false}function n(r){var s={};l(m.getAttribs(r),function(t){var u=t.nodeName.toLowerCase();if(u.indexOf("_")!==0&&u!=="style"&&u!=="data-mce-style"){s[u]=m.getAttrib(r,u)}});return s}function q(u,t){var s,r;for(r in u){if(u.hasOwnProperty(r)){s=t[r];if(typeof s=="undefined"){return false}if(u[r]!=s){return false}delete t[r]}}for(r in t){if(t.hasOwnProperty(r)){return false}}return true}if(!q(n(p),n(o))){return false}if(!q(m.parseStyle(m.getAttrib(p,"style")),m.parseStyle(m.getAttrib(o,"style")))){return false}return !i.isBookmarkNode(p)&&!i.isBookmarkNode(o)}}return j});h("tinymce/fmt/Preview",["tinymce/util/Tools"],function(i){var k=i.each;function j(q,t){var m,n,p=q.dom;var l="",o,s;s=q.settings.preview_styles;if(s===false){return""}if(!s){s="font-family font-size font-weight font-style text-decoration text-transform color background-color border border-radius outline text-shadow"}function r(u){return u.replace(/%(\w+)/g,"")}if(typeof t=="string"){t=q.formatter.get(t);if(!t){return}t=t[0]}m=t.block||t.inline||"span";n=p.create(m);k(t.styles,function(v,u){v=r(v);if(v){p.setStyle(n,u,v)}});k(t.attributes,function(v,u){v=r(v);if(v){p.setAttrib(n,u,v)}});k(t.classes,function(u){u=r(u);if(!p.hasClass(n,u)){p.addClass(n,u)}});q.fire("PreviewFormats");p.setStyles(n,{position:"absolute",left:-65535});q.getBody().appendChild(n);o=p.getStyle(q.getBody(),"fontSize",true);o=/px$/.test(o)?parseInt(o,10):0;k(s.split(" "),function(u){var v=p.getStyle(n,u,true);if(u=="background-color"&&/transparent|rgba\s*\([^)]+,\s*0\)/.test(v)){v=p.getStyle(q.getBody(),u,true);if(p.toHex(v).toLowerCase()=="#ffffff"){return}}if(u=="color"){if(p.toHex(v).toLowerCase()=="#000000"){return}}if(u=="font-size"){if(/em|%$/.test(v)){if(o===0){return}v=parseFloat(v,10)/(/%$/.test(v)?100:1);v=(v*o)+"px"}}if(u=="border"&&v){l+="padding:0 2px;"}l+=u+":"+v+";"});q.fire("AfterPreviewFormats");p.remove(n);return l}return{getCssText:j}});h("tinymce/Formatter",["tinymce/dom/TreeWalker","tinymce/dom/RangeUtils","tinymce/dom/BookmarkManager","tinymce/dom/ElementUtils","tinymce/util/Tools","tinymce/fmt/Preview"],function(l,m,i,k,j,n){return function(av){var ah={},p=av.dom,I=av.selection,ae=new m(p),r=av.schema.isValidChild,Y=p.isBlock,B=av.settings.forced_root_block,K=p.nodeIndex,W="\uFEFF",s=/^(src|href|style)$/,ap=false,S=true,ag,T,N=p.getContentEditable,X,z,ab=i.isBookmarkNode;var ak=j.each,at=j.grep,F=j.walk,G=j.extend;function Z(aw){if(aw.nodeType){aw=aw.nodeName}return !!av.schema.getTextBlockElements()[aw.toLowerCase()]}function am(aw){return/^(TH|TD)$/.test(aw.nodeName)}function C(ax,aw){return p.getParents(ax,aw,p.getRoot())}function o(aw){return aw.nodeType===1&&aw.id==="_mce_caret"}function x(){A({valigntop:[{selector:"td,th",styles:{verticalAlign:"top"}}],valignmiddle:[{selector:"td,th",styles:{verticalAlign:"middle"}}],valignbottom:[{selector:"td,th",styles:{verticalAlign:"bottom"}}],alignleft:[{selector:"figure,p,h1,h2,h3,h4,h5,h6,td,th,tr,div,ul,ol,li",styles:{textAlign:"left"},defaultBlock:"div"},{selector:"img,table",collapsed:false,styles:{"float":"left"}}],aligncenter:[{selector:"figure,p,h1,h2,h3,h4,h5,h6,td,th,tr,div,ul,ol,li",styles:{textAlign:"center"},defaultBlock:"div"},{selector:"img",collapsed:false,styles:{display:"block",marginLeft:"auto",marginRight:"auto"}},{selector:"table",collapsed:false,styles:{marginLeft:"auto",marginRight:"auto"}}],alignright:[{selector:"figure,p,h1,h2,h3,h4,h5,h6,td,th,tr,div,ul,ol,li",styles:{textAlign:"right"},defaultBlock:"div"},{selector:"img,table",collapsed:false,styles:{"float":"right"}}],alignjustify:[{selector:"figure,p,h1,h2,h3,h4,h5,h6,td,th,tr,div,ul,ol,li",styles:{textAlign:"justify"},defaultBlock:"div"}],bold:[{inline:"strong",remove:"all"},{inline:"span",styles:{fontWeight:"bold"}},{inline:"b",remove:"all"}],italic:[{inline:"em",remove:"all"},{inline:"span",styles:{fontStyle:"italic"}},{inline:"i",remove:"all"}],underline:[{inline:"span",styles:{textDecoration:"underline"},exact:true},{inline:"u",remove:"all"}],strikethrough:[{inline:"span",styles:{textDecoration:"line-through"},exact:true},{inline:"strike",remove:"all"}],forecolor:{inline:"span",styles:{color:"%value"},links:true,remove_similar:true},hilitecolor:{inline:"span",styles:{backgroundColor:"%value"},links:true,remove_similar:true},fontname:{inline:"span",styles:{fontFamily:"%value"}},fontsize:{inline:"span",styles:{fontSize:"%value"}},fontsize_class:{inline:"span",attributes:{"class":"%value"}},blockquote:{block:"blockquote",wrapper:1,remove:"all"},subscript:{inline:"sub"},superscript:{inline:"sup"},code:{inline:"code"},link:{inline:"a",selector:"a",remove:"all",split:true,deep:true,onmatch:function(){return true},onformat:function(ay,aw,ax){ak(ax,function(aA,az){p.setAttrib(ay,az,aA)})}},removeformat:[{selector:"b,strong,em,i,font,u,strike,sub,sup,dfn,code,samp,kbd,var,cite,mark,q,del,ins",remove:"all",split:true,expand:false,block_expand:true,deep:true},{selector:"span",attributes:["style","class"],remove:"empty",split:true,expand:false,deep:true},{selector:"*",attributes:["style","class"],split:false,expand:false,deep:true}]});ak("p h1 h2 h3 h4 h5 h6 div address pre div dt dd samp".split(/\s/),function(aw){A(aw,{block:aw,remove:"all"})});A(av.settings.formats)}function ao(){av.addShortcut("meta+b","bold_desc","Bold");av.addShortcut("meta+i","italic_desc","Italic");av.addShortcut("meta+u","underline_desc","Underline");for(var aw=1;aw<=6;aw++){av.addShortcut("access+"+aw,"",["FormatBlock",false,"h"+aw])}av.addShortcut("access+7","",["FormatBlock",false,"p"]);av.addShortcut("access+8","",["FormatBlock",false,"div"]);av.addShortcut("access+9","",["FormatBlock",false,"address"])}function an(aw){return aw?ah[aw]:ah}function A(aw,ax){if(aw){if(typeof aw!=="string"){ak(aw,function(az,ay){A(ay,az)})}else{ax=ax.length?ax:[ax];ak(ax,function(ay){if(ay.deep===T){ay.deep=!ay.selector}if(ay.split===T){ay.split=!ay.selector||ay.inline}if(ay.remove===T&&ay.selector&&!ay.inline){ay.remove="none"}if(ay.selector&&ay.inline){ay.mixed=true;ay.block_expand=true}if(typeof ay.classes==="string"){ay.classes=ay.classes.split(/\s+/)}});ah[aw]=ax}}}function O(aw){if(aw&&ah[aw]){delete ah[aw]}return ah}function w(ax){var aw;av.dom.getParent(ax,function(ay){aw=av.dom.getStyle(ay,"text-decoration");return aw&&aw!=="none"});return aw}function ac(aw){var ax;if(aw.nodeType===1&&aw.parentNode&&aw.parentNode.nodeType===1){ax=w(aw.parentNode);if(av.dom.getStyle(aw,"color")&&ax){av.dom.setStyle(aw,"text-decoration",ax)}else{if(av.dom.getStyle(aw,"text-decoration")===ax){av.dom.setStyle(aw,"text-decoration",null)}}}}function ar(ay,aE,aA){var aB=an(ay),aF=aB[0],aD,ax,aC=!aA&&I.isCollapsed();function aw(aK,aI){aI=aI||aF;if(aK){if(aI.onformat){aI.onformat(aK,aI,aE,aA)}ak(aI.styles,function(aM,aL){p.setStyle(aK,aL,H(aM,aE))});if(aI.styles){var aJ=p.getAttrib(aK,"style");if(aJ){aK.setAttribute("data-mce-style",aJ)}}ak(aI.attributes,function(aM,aL){p.setAttrib(aK,aL,H(aM,aE))});ak(aI.classes,function(aL){aL=H(aL,aE);if(!p.hasClass(aK,aL)){p.addClass(aK,aL)}})}}function az(){function aK(aQ,aO){var aP=new l(aO);for(aA=aP.current();aA;aA=aP.prev()){if(aA.childNodes.length>1||aA==aQ||aA.tagName=="BR"){return aA}}}var aJ=av.selection.getRng();var aN=aJ.startContainer;var aI=aJ.endContainer;if(aN!=aI&&aJ.endOffset===0){var aM=aK(aN,aI);var aL=aM.nodeType==3?aM.length:aM.childNodes.length;aJ.setEnd(aM,aL)}return aJ}function aG(aJ,aL,aO){var aI=[],aN,aK,aM=true;aN=aF.inline||aF.block;aK=p.create(aN);aw(aK);ae.walk(aJ,function(aP){var aQ;function aR(aS){var aX,aV,aT,aU,aW;aW=aM;aX=aS.nodeName.toLowerCase();aV=aS.parentNode.nodeName.toLowerCase();if(aS.nodeType===1&&N(aS)){aW=aM;aM=N(aS)==="true";aU=true}if(u(aX,"br")){aQ=0;if(aF.block){p.remove(aS)}return}if(aF.wrapper&&P(aS,ay,aE)){aQ=0;return}if(aM&&!aU&&aF.block&&!aF.wrapper&&Z(aX)&&r(aV,aN)){aS=p.rename(aS,aN);aw(aS);aI.push(aS);aQ=0;return}if(aF.selector){ak(aB,function(aY){if("collapsed" in aY&&aY.collapsed!==aC){return}if(p.is(aS,aY.selector)&&!o(aS)){aw(aS,aY);aT=true}});if(!aF.inline||aT){aQ=0;return}}if(aM&&!aU&&r(aN,aX)&&r(aV,aN)&&!(!aO&&aS.nodeType===3&&aS.nodeValue.length===1&&aS.nodeValue.charCodeAt(0)===65279)&&!o(aS)&&(!aF.inline||!Y(aS))){if(!aQ){aQ=p.clone(aK,ap);aS.parentNode.insertBefore(aQ,aS);aI.push(aQ)}aQ.appendChild(aS)}else{aQ=0;ak(at(aS.childNodes),aR);if(aU){aM=aW}aQ=0}}ak(aP,aR)});if(aF.links===true){ak(aI,function(aP){function aQ(aR){if(aR.nodeName==="A"){aw(aR,aF)}ak(at(aR.childNodes),aQ)}aQ(aP)})}ak(aI,function(aR){var aP;function aS(aU){var aT=0;ak(aU.childNodes,function(aV){if(!t(aV)&&!ab(aV)){aT++}});return aT}function aQ(aT){var aV,aU;ak(aT.childNodes,function(aW){if(aW.nodeType==1&&!ab(aW)&&!o(aW)){aV=aW;return ap}});if(aV&&!ab(aV)&&v(aV,aF)){aU=p.clone(aV,ap);aw(aU);p.replace(aU,aT,S);p.remove(aV,1)}return aU||aT}aP=aS(aR);if((aI.length>1||!Y(aR))&&aP===0){p.remove(aR,1);return}if(aF.inline||aF.wrapper){if(!aF.exact&&aP===1){aR=aQ(aR)}ak(aB,function(aT){ak(p.select(aT.inline,aR),function(aU){if(ab(aU)){return}au(aT,aE,aU,aT.exact?aU:null)})});if(P(aR.parentNode,ay,aE)){p.remove(aR,1);aR=0;return S}if(aF.merge_with_parents){p.getParent(aR.parentNode,function(aT){if(P(aT,ay,aE)){p.remove(aR,1);aR=0;return S}})}if(aR&&aF.merge_siblings!==false){aR=L(U(aR),aR);aR=L(aR,U(aR,S))}}})}if(aF){if(aA){if(aA.nodeType){ax=p.createRng();ax.setStartBefore(aA);ax.setEndAfter(aA);aG(E(ax,aB),null,true)}else{aG(aA,null,true)}}else{if(!aC||!aF.inline||p.select("td.mce-item-selected,th.mce-item-selected").length){var aH=av.selection.getNode();if(!B&&aB[0].defaultBlock&&!p.getParent(aH,p.isBlock)){ar(aB[0].defaultBlock)}av.selection.setRng(az());aD=I.getBookmark();aG(E(I.getRng(S),aB),aD);if(aF.styles&&(aF.styles.color||aF.styles.textDecoration)){F(aH,ac,"childNodes");ac(aH)}I.moveToBookmark(aD);ai(I.getRng(S));av.nodeChanged()}else{al("apply",ay,aE)}}}}function R(ay,aH,aA,aD){var aB=an(ay),aJ=aB[0],aF,ax,aG=true;function az(aO){var aN,aM,aL,aQ,aP;if(aO.nodeType===1&&N(aO)){aQ=aG;aG=N(aO)==="true";aP=true}aN=at(aO.childNodes);if(aG&&!aP){for(aM=0,aL=aB.length;aM<aL;aM++){if(au(aB[aM],aH,aO,aO)){break}}}if(aJ.deep){if(aN.length){for(aM=0,aL=aN.length;aM<aL;aM++){az(aN[aM])}if(aP){aG=aQ}}}}function aC(aL){var aM;ak(C(aL.parentNode).reverse(),function(aN){var aO;if(!aM&&aN.id!="_start"&&aN.id!="_end"){aO=P(aN,ay,aH,aD);if(aO&&aO.split!==false){aM=aN}}});return aM}function aw(aP,aL,aQ,aT){var aU,aS,aR,aN,aO,aM;if(aP){aM=aP.parentNode;for(aU=aL.parentNode;aU&&aU!=aM;aU=aU.parentNode){aS=p.clone(aU,ap);for(aO=0;aO<aB.length;aO++){if(au(aB[aO],aH,aS,aS)){aS=0;break}}if(aS){if(aR){aS.appendChild(aR)}if(!aN){aN=aS}aR=aS}}if(aT&&(!aJ.mixed||!Y(aP))){aL=p.split(aP,aL)}if(aR){aQ.parentNode.insertBefore(aR,aQ);aN.appendChild(aQ)}}return aL}function aI(aL){return aw(aC(aL),aL,aL,true)}function aE(aN){var aM=p.get(aN?"_start":"_end"),aL=aM[aN?"firstChild":"lastChild"];if(ab(aL)){aL=aL[aN?"firstChild":"lastChild"]}if(aL.nodeType==3&&aL.data.length===0){aL=aN?aM.previousSibling||aM.nextSibling:aM.nextSibling||aM.previousSibling}p.remove(aM,true);return aL}function aK(aL){var aM,aN;var aO=aL.commonAncestorContainer;aL=E(aL,aB,S);if(aJ.split){aM=ad(aL,S);aN=ad(aL);if(aM!=aN){if(/^(TR|TH|TD)$/.test(aM.nodeName)&&aM.firstChild){if(aM.nodeName=="TR"){aM=aM.firstChild.firstChild||aM}else{aM=aM.firstChild||aM}}if(aO&&/^T(HEAD|BODY|FOOT|R)$/.test(aO.nodeName)&&am(aN)&&aN.firstChild){aN=aN.firstChild||aN}if(p.isChildOf(aM,aN)&&!am(aM)&&!am(aN)){aM=aj(aM,"span",{id:"_start","data-mce-type":"bookmark"});aI(aM);aM=aE(S);return}else{aM=aj(aM,"span",{id:"_start","data-mce-type":"bookmark"});aN=aj(aN,"span",{id:"_end","data-mce-type":"bookmark"});aI(aM);aI(aN);aM=aE(S);aN=aE()}}else{aM=aN=aI(aM)}aL.startContainer=aM.parentNode?aM.parentNode:aM;aL.startOffset=K(aM);aL.endContainer=aN.parentNode?aN.parentNode:aN;aL.endOffset=K(aN)+1}ae.walk(aL,function(aP){ak(aP,function(aQ){az(aQ);if(aQ.nodeType===1&&av.dom.getStyle(aQ,"text-decoration")==="underline"&&aQ.parentNode&&w(aQ.parentNode)==="underline"){au({deep:false,exact:true,inline:"span",styles:{textDecoration:"underline"}},null,aQ)}})})}if(aA){if(aA.nodeType){ax=p.createRng();ax.setStartBefore(aA);ax.setEndAfter(aA);aK(ax)}else{aK(aA)}return}if(!I.isCollapsed()||!aJ.inline||p.select("td.mce-item-selected,th.mce-item-selected").length){aF=I.getBookmark();aK(I.getRng(S));I.moveToBookmark(aF);if(aJ.inline&&y(ay,aH,I.getStart())){ai(I.getRng(true))}av.nodeChanged()}else{al("remove",ay,aH,aD)}}function V(ax,az,ay){var aw=an(ax);if(y(ax,az,ay)&&(!("toggle" in aw[0])||aw[0].toggle)){R(ax,az,ay)}else{ar(ax,az,ay)}}function P(ax,aw,aC,aA){var ay=an(aw),aD,aB,az;function aE(aI,aK,aL){var aH,aJ,aF=aK[aL],aG;if(aK.onmatch){return aK.onmatch(aI,aK,aL)}if(aF){if(aF.length===T){for(aH in aF){if(aF.hasOwnProperty(aH)){if(aL==="attributes"){aJ=p.getAttrib(aI,aH)}else{aJ=af(aI,aH)}if(aA&&!aJ&&!aK.exact){return}if((!aA||aK.exact)&&!u(aJ,J(H(aF[aH],aC),aH))){return}}}}else{for(aG=0;aG<aF.length;aG++){if(aL==="attributes"?p.getAttrib(aI,aF[aG]):af(aI,aF[aG])){return aK}}}}return aK}if(ay&&ax){for(aB=0;aB<ay.length;aB++){aD=ay[aB];if(v(ax,aD)&&aE(ax,aD,"attributes")&&aE(ax,aD,"styles")){if((az=aD.classes)){for(aB=0;aB<az.length;aB++){if(!p.hasClass(ax,az[aB])){return}}}return aD}}}}function y(ay,aA,az){var ax;function aw(aC){var aB=p.getRoot();if(aC===aB){return false}aC=p.getParent(aC,function(aD){return aD.parentNode===aB||!!P(aD,ay,aA,true)});return P(aC,ay,aA)}if(az){return aw(az)}az=I.getNode();if(aw(az)){return S}ax=I.getStart();if(ax!=az){if(aw(ax)){return S}}return ap}function M(aA,az){var ax,ay=[],aw={};ax=I.getStart();p.getParent(ax,function(aD){var aC,aB;for(aC=0;aC<aA.length;aC++){aB=aA[aC];if(!aw[aB]&&P(aD,aB,az)){aw[aB]=true;ay.push(aB)}}},p.getRoot());return ay}function Q(aA){var aC=an(aA),az,ay,aB,ax,aw;if(aC){az=I.getStart();ay=C(az);for(ax=aC.length-1;ax>=0;ax--){aw=aC[ax].selector;if(!aw||aC[ax].defaultBlock){return S}for(aB=ay.length-1;aB>=0;aB--){if(p.is(ay[aB],aw)){return S}}}}return ap}function aa(aw,az,ax){var ay;if(!ag){ag={};ay={};av.on("NodeChange",function(aB){var aA=C(aB.element),aC={};aA=j.grep(aA,function(aD){return aD.nodeType==1&&!aD.getAttribute("data-mce-bogus")});ak(ag,function(aD,aE){ak(aA,function(aF){if(P(aF,aE,{},aD.similar)){if(!ay[aE]){ak(aD,function(aG){aG(true,{node:aF,format:aE,parents:aA})});ay[aE]=aD}aC[aE]=aD;return false}})});ak(ay,function(aD,aE){if(!aC[aE]){delete ay[aE];ak(aD,function(aF){aF(false,{node:aB.element,format:aE,parents:aA})})}})})}ak(aw.split(","),function(aA){if(!ag[aA]){ag[aA]=[];ag[aA].similar=ax}ag[aA].push(az)});return this}function aq(aw){return n.getCssText(av,aw)}G(this,{get:an,register:A,unregister:O,apply:ar,remove:R,toggle:V,match:y,matchAll:M,matchNode:P,canApply:Q,formatChanged:aa,getCssText:aq});x();ao();av.on("BeforeGetContent",function(aw){if(z&&aw.format!="raw"){z()}});av.on("mouseup keydown",function(aw){if(X){X(aw)}});function v(aw,ax){if(u(aw,ax.inline)){return S}if(u(aw,ax.block)){return S}if(ax.selector){return aw.nodeType==1&&p.is(aw,ax.selector)}}function u(ax,aw){ax=ax||"";aw=aw||"";ax=""+(ax.nodeName||ax);aw=""+(aw.nodeName||aw);return ax.toLowerCase()==aw.toLowerCase()}function af(ax,aw){return J(p.getStyle(ax,aw),aw)}function J(ax,aw){if(aw=="color"||aw=="backgroundColor"){ax=p.toHex(ax)}if(aw=="fontWeight"&&ax==700){ax="bold"}if(aw=="fontFamily"){ax=ax.replace(/[\'\"]/g,"").replace(/,\s+/g,",")}return""+ax}function H(aw,ax){if(typeof aw!="string"){aw=aw(ax)}else{if(ax){aw=aw.replace(/%(\w+)/g,function(az,ay){return ax[ay]||az})}}return aw}function t(aw){return aw&&aw.nodeType===3&&/^([\t \r\n]+|)$/.test(aw.nodeValue)}function aj(ay,ax,aw){var az=p.create(ax,aw);ay.parentNode.insertBefore(az,ay);az.appendChild(ay);return az}function E(aw,aH,az){var aI,aC,aG,ay=aw.startContainer,aD=aw.startOffset,aL=aw.endContainer,aF=aw.endOffset;function aJ(aS){var aN,aQ,aP,aO,aM;aN=aQ=aS?ay:aL;aO=aS?"previousSibling":"nextSibling";aM=p.getRoot();function aR(aT){return aT.nodeName=="BR"&&aT.getAttribute("data-mce-bogus")&&!aT.nextSibling}if(aN.nodeType==3&&!t(aN)){if(aS?aD>0:aF<aN.nodeValue.length){return aN}}while(true){if(!aH[0].block_expand&&Y(aQ)){return aQ}for(aP=aQ[aO];aP;aP=aP[aO]){if(!ab(aP)&&!t(aP)&&!aR(aP)){return aQ}}if(aQ.parentNode==aM){aN=aQ;break}aQ=aQ.parentNode}return aN}function aB(aM,aN){if(aN===T){aN=aM.nodeType===3?aM.length:aM.childNodes.length}while(aM&&aM.hasChildNodes()){aM=aM.childNodes[aN];if(aM){aN=aM.nodeType===3?aM.length:aM.childNodes.length}}return{node:aM,offset:aN}}if(ay.nodeType==1&&ay.hasChildNodes()){aI=ay.childNodes.length-1;ay=ay.childNodes[aD>aI?aI:aD];if(ay.nodeType==3){aD=0}}if(aL.nodeType==1&&aL.hasChildNodes()){aI=aL.childNodes.length-1;aL=aL.childNodes[aF>aI?aI:aF-1];if(aL.nodeType==3){aF=aL.nodeValue.length}}function aK(aN){var aM=aN;while(aM){if(aM.nodeType===1&&N(aM)){return N(aM)==="false"?aM:aN}aM=aM.parentNode}return aN}function aE(aN,aR,aT){var aQ,aO,aS,aM;function aP(aV,aX){var aY,aU,aW=aV.nodeValue;if(typeof aX=="undefined"){aX=aT?aW.length:0}if(aT){aY=aW.lastIndexOf(" ",aX);aU=aW.lastIndexOf("\u00a0",aX);aY=aY>aU?aY:aU;if(aY!==-1&&!az){aY++}}else{aY=aW.indexOf(" ",aX);aU=aW.indexOf("\u00a0",aX);aY=aY!==-1&&(aU===-1||aY<aU)?aY:aU}return aY}if(aN.nodeType===3){aS=aP(aN,aR);if(aS!==-1){return{container:aN,offset:aS}}aM=aN}aQ=new l(aN,p.getParent(aN,Y)||av.getBody());while((aO=aQ[aT?"prev":"next"]())){if(aO.nodeType===3){aM=aO;aS=aP(aO);if(aS!==-1){return{container:aO,offset:aS}}}else{if(Y(aO)){break}}}if(aM){if(aT){aR=0}else{aR=aM.length}return{container:aM,offset:aR}}}function aA(aN,aM){var aO,aP,aR,aQ;if(aN.nodeType==3&&aN.nodeValue.length===0&&aN[aM]){aN=aN[aM]}aO=C(aN);for(aP=0;aP<aO.length;aP++){for(aR=0;aR<aH.length;aR++){aQ=aH[aR];if("collapsed" in aQ&&aQ.collapsed!==aw.collapsed){continue}if(p.is(aO[aP],aQ.selector)){return aO[aP]}}}return aN}function ax(aO,aM){var aP,aN=p.getRoot();if(!aH[0].wrapper){aP=p.getParent(aO,aH[0].block,aN)}if(!aP){aP=p.getParent(aO.nodeType==3?aO.parentNode:aO,function(aQ){return aQ!=aN&&Z(aQ)})}if(aP&&aH[0].wrapper){aP=C(aP,"ul,ol").reverse()[0]||aP}if(!aP){aP=aO;while(aP[aM]&&!Y(aP[aM])){aP=aP[aM];if(u(aP,"br")){break}}}return aP||aO}ay=aK(ay);aL=aK(aL);if(ab(ay.parentNode)||ab(ay)){ay=ab(ay)?ay:ay.parentNode;ay=ay.nextSibling||ay;if(ay.nodeType==3){aD=0}}if(ab(aL.parentNode)||ab(aL)){aL=ab(aL)?aL:aL.parentNode;aL=aL.previousSibling||aL;if(aL.nodeType==3){aF=aL.length}}if(aH[0].inline){if(aw.collapsed){aG=aE(ay,aD,true);if(aG){ay=aG.container;aD=aG.offset}aG=aE(aL,aF);if(aG){aL=aG.container;aF=aG.offset}}aC=aB(aL,aF);if(aC.node){while(aC.node&&aC.offset===0&&aC.node.previousSibling){aC=aB(aC.node.previousSibling)}if(aC.node&&aC.offset>0&&aC.node.nodeType===3&&aC.node.nodeValue.charAt(aC.offset-1)===" "){if(aC.offset>1){aL=aC.node;aL.splitText(aC.offset-1)}}}}if(aH[0].inline||aH[0].block_expand){if(!aH[0].inline||(ay.nodeType!=3||aD===0)){ay=aJ(true)}if(!aH[0].inline||(aL.nodeType!=3||aF===aL.nodeValue.length)){aL=aJ()}}if(aH[0].selector&&aH[0].expand!==ap&&!aH[0].inline){ay=aA(ay,"previousSibling");aL=aA(aL,"nextSibling")}if(aH[0].block||aH[0].selector){ay=ax(ay,"previousSibling");aL=ax(aL,"nextSibling");if(aH[0].block){if(!Y(ay)){ay=aJ(true)}if(!Y(aL)){aL=aJ()}}}if(ay.nodeType==1){aD=K(ay);ay=ay.parentNode}if(aL.nodeType==1){aF=K(aL)+1;aL=aL.parentNode}return{startContainer:ay,startOffset:aD,endContainer:aL,endOffset:aF}}function q(aw,ax){return ax.links&&aw.tagName=="A"}function au(aC,aB,az,aw){var ay,ax,aA;if(!v(az,aC)&&!q(az,aC)){return ap}if(aC.remove!="all"){ak(aC.styles,function(aE,aD){aE=J(H(aE,aB),aD);if(typeof aD==="number"){aD=aE;aw=0}if(aC.remove_similar||(!aw||u(af(aw,aD),aE))){p.setStyle(az,aD,"")}aA=1});if(aA&&p.getAttrib(az,"style")===""){az.removeAttribute("style");az.removeAttribute("data-mce-style")}ak(aC.attributes,function(aF,aD){var aE;aF=H(aF,aB);if(typeof aD==="number"){aD=aF;aw=0}if(!aw||u(p.getAttrib(aw,aD),aF)){if(aD=="class"){aF=p.getAttrib(az,aD);if(aF){aE="";ak(aF.split(/\s+/),function(aG){if(/mce\-\w+/.test(aG)){aE+=(aE?" ":"")+aG}});if(aE){p.setAttrib(az,aD,aE);return}}}if(aD=="class"){az.removeAttribute("className")}if(s.test(aD)){az.removeAttribute("data-mce-"+aD)}az.removeAttribute(aD)}});ak(aC.classes,function(aD){aD=H(aD,aB);if(!aw||p.hasClass(aw,aD)){p.removeClass(az,aD)}});ax=p.getAttribs(az);for(ay=0;ay<ax.length;ay++){if(ax[ay].nodeName.indexOf("_")!==0){return ap}}}if(aC.remove!="none"){D(az,aC);return S}}function D(ay,az){var aw=ay.parentNode,ax;function aA(aC,aB,aD){aC=U(aC,aB,aD);return !aC||(aC.nodeName=="BR"||Y(aC))}if(az.block){if(!B){if(Y(ay)&&!Y(aw)){if(!aA(ay,ap)&&!aA(ay.firstChild,S,1)){ay.insertBefore(p.create("br"),ay.firstChild)}if(!aA(ay,S)&&!aA(ay.lastChild,ap,1)){ay.appendChild(p.create("br"))}}}else{if(aw==p.getRoot()){if(!az.list_block||!u(ay,az.list_block)){ak(at(ay.childNodes),function(aB){if(r(B,aB.nodeName.toLowerCase())){if(!ax){ax=aj(aB,B);p.setAttribs(ax,av.settings.forced_root_block_attrs)}else{ax.appendChild(aB)}}else{ax=0}})}}}}if(az.selector&&az.inline&&!u(az.inline,ay)){return}p.remove(ay,1)}function U(ax,aw,ay){if(ax){aw=aw?"nextSibling":"previousSibling";for(ax=ay?ax:ax[aw];ax;ax=ax[aw]){if(ax.nodeType==1||!t(ax)){return ax}}}}function L(aA,az){var ay,ax,aw=new k(p);function aB(aD,aC){for(ay=aD;ay;ay=ay[aC]){if(ay.nodeType==3&&ay.nodeValue.length!==0){return aD}if(ay.nodeType==1&&!ab(ay)){return ay}}return aD}if(aA&&az){aA=aB(aA,"previousSibling");az=aB(az,"nextSibling");if(aw.compare(aA,az)){for(ay=aA.nextSibling;ay&&ay!=az;){ax=ay;ay=ay.nextSibling;aA.appendChild(ax)}p.remove(az);ak(at(az.childNodes),function(aC){aA.appendChild(aC)});return aA}}return az}function ad(ax,aA){var aw,az,ay;aw=ax[aA?"startContainer":"endContainer"];az=ax[aA?"startOffset":"endOffset"];if(aw.nodeType==1){ay=aw.childNodes.length-1;if(!aA&&az){az--}aw=aw.childNodes[az>ay?ay:az]}if(aw.nodeType===3&&aA&&az>=aw.nodeValue.length){aw=new l(aw,av.getBody()).next()||aw}if(aw.nodeType===3&&!aA&&az===0){aw=new l(aw,av.getBody()).prev()||aw}return aw}function al(aG,aw,aE,aA){var aH="_mce_caret",ax=av.settings.caret_debug;function ay(aL){var aK=p.create("span",{id:aH,"data-mce-bogus":true,style:ax?"color:red":""});if(aL){aK.appendChild(av.getDoc().createTextNode(W))}return aK}function aF(aL,aK){while(aL){if((aL.nodeType===3&&aL.nodeValue!==W)||aL.childNodes.length>1){return false}if(aK&&aL.nodeType===1){aK.push(aL)}aL=aL.firstChild}return true}function aC(aK){while(aK){if(aK.id===aH){return aK}aK=aK.parentNode}}function aB(aK){var aL;if(aK){aL=new l(aK,aK);for(aK=aL.current();aK;aK=aL.next()){if(aK.nodeType===3){return aK}}}}function az(aM,aL){var aN,aK;if(!aM){aM=aC(I.getStart());if(!aM){while((aM=p.get(aH))){az(aM,false)}}}else{aK=I.getRng(true);if(aF(aM)){if(aL!==false){aK.setStartBefore(aM);aK.setEndBefore(aM)}p.remove(aM)}else{aN=aB(aM);if(aN.nodeValue.charAt(0)===W){aN.deleteData(0,1);if(aK.startContainer==aN&&aK.startOffset>0){aK.setStart(aN,aK.startOffset-1)}if(aK.endContainer==aN&&aK.endOffset>0){aK.setEnd(aN,aK.endOffset-1)}}p.remove(aM,1)}I.setRng(aK)}}function aD(){var aM,aK,aQ,aP,aN,aL,aO;aM=I.getRng(true);aP=aM.startOffset;aL=aM.startContainer;aO=aL.nodeValue;aK=aC(I.getStart());if(aK){aQ=aB(aK)}if(aO&&aP>0&&aP<aO.length&&/\w/.test(aO.charAt(aP))&&/\w/.test(aO.charAt(aP-1))){aN=I.getBookmark();aM.collapse(true);aM=E(aM,an(aw));aM=ae.split(aM);ar(aw,aE,aM);I.moveToBookmark(aN)}else{if(!aK||aQ.nodeValue!==W){aK=ay(true);aQ=aK.firstChild;aM.insertNode(aK);aP=1;ar(aw,aE,aK)}else{ar(aw,aE,aK)}I.setCursorLocation(aQ,aP)}}function aI(){var aK=I.getRng(true),aL,aO,aR,aQ,aM,aU,aT=[],aP,aS;aL=aK.startContainer;aO=aK.startOffset;aM=aL;if(aL.nodeType==3){if(aO!=aL.nodeValue.length){aQ=true}aM=aM.parentNode}while(aM){if(P(aM,aw,aE,aA)){aU=aM;break}if(aM.nextSibling){aQ=true}aT.push(aM);aM=aM.parentNode}if(!aU){return}if(aQ){aR=I.getBookmark();aK.collapse(true);aK=E(aK,an(aw),true);aK=ae.split(aK);R(aw,aE,aK);I.moveToBookmark(aR)}else{aS=ay();aM=aS;for(aP=aT.length-1;aP>=0;aP--){aM.appendChild(p.clone(aT[aP],false));aM=aM.firstChild}aM.appendChild(p.doc.createTextNode(W));aM=aM.firstChild;var aN=p.getParent(aU,Z);if(aN&&p.isEmpty(aN)){aU.parentNode.replaceChild(aS,aU)}else{p.insertAfter(aS,aU)}I.setCursorLocation(aM,1);if(p.isEmpty(aU)){p.remove(aU)}}}function aJ(){var aK;aK=aC(I.getStart());if(aK&&!p.isEmpty(aK)){F(aK,function(aL){if(aL.nodeType==1&&aL.id!==aH&&!p.isEmpty(aL)){p.setAttrib(aL,"data-mce-bogus",null)}},"childNodes")}}if(!av._hasCaretEvents){z=function(){var aK=[],aL;if(aF(aC(I.getStart()),aK)){aL=aK.length;while(aL--){p.setAttrib(aK[aL],"data-mce-bogus","1")}}};X=function(aL){var aK=aL.keyCode;az();if((aK==8&&I.isCollapsed())||aK==37||aK==39){az(aC(I.getStart()))}aJ()};av.on("SetContent",function(aK){if(aK.selection){aJ()}});av._hasCaretEvents=true}if(aG=="apply"){aD()}else{aI()}}function ai(ax){var aw=ax.startContainer,aD=ax.startOffset,az,aC,aB,ay,aA;if(aw.nodeType==3&&aD>=aw.nodeValue.length){aD=K(aw);aw=aw.parentNode;az=true}if(aw.nodeType==1){ay=aw.childNodes;aw=ay[Math.min(aD,ay.length-1)];aC=new l(aw,p.getParent(aw,p.isBlock));if(aD>ay.length-1||az){aC.next()}for(aB=aC.current();aB;aB=aC.next()){if(aB.nodeType==3&&!t(aB)){aA=p.create("a",{"data-mce-bogus":"all"},W);aB.parentNode.insertBefore(aA,aB);ax.setStart(aB,0);I.setRng(ax);p.remove(aA);return}}}}}});h("tinymce/UndoManager",["tinymce/util/VK","tinymce/Env","tinymce/util/Tools","tinymce/html/SaxParser"],function(n,k,l,j){var i=l.trim,m;m=new RegExp(["<span[^>]+data-mce-bogus[^>]+>[\u200B\uFEFF]+<\\/span>",'\\s?data-mce-selected="[^"]+"'].join("|"),"gi");return function(t){var x=this,u=0,q=[],r,v,w=0;function o(){var D=t.getContent({format:"raw",no_events:1});var B=/<(\w+) [^>]*data-mce-bogus="all"[^>]*>/g;var y,z,F,E,A,C=t.schema;D=D.replace(m,"");A=C.getShortEndedElements();while((E=B.exec(D))){z=B.lastIndex;F=E[0].length;if(A[E[1]]){y=z}else{y=j.findEndTag(C,D,z)}D=D.substring(0,z-F)+D.substring(y);B.lastIndex=z-F}return i(D)}function s(y){t.isNotDirty=!y}function p(y){x.typing=false;x.add({},y)}t.on("init",function(){x.add()});t.on("BeforeExecCommand",function(z){var y=z.command;if(y!="Undo"&&y!="Redo"&&y!="mceRepaint"){x.beforeChange()}});t.on("ExecCommand",function(z){var y=z.command;if(y!="Undo"&&y!="Redo"&&y!="mceRepaint"){p(z)}});t.on("ObjectResizeStart",function(){x.beforeChange()});t.on("SaveContent ObjectResized blur",p);t.on("DragEnd",p);t.on("KeyUp",function(z){var y=z.keyCode;if((y>=33&&y<=36)||(y>=37&&y<=40)||y==45||y==13||z.ctrlKey){p();t.nodeChanged()}if(y==46||y==8||(k.mac&&(y==91||y==93))){t.nodeChanged()}if(v&&x.typing){if(!t.isDirty()){s(q[0]&&o()!=q[0].content);if(!t.isNotDirty){t.fire("change",{level:q[0],lastLevel:null})}}t.fire("TypingUndo");v=false;t.nodeChanged()}});t.on("KeyDown",function(A){var z=A.keyCode;if((z>=33&&z<=36)||(z>=37&&z<=40)||z==45){if(x.typing){p(A)}return}var y=(A.ctrlKey&&!A.altKey)||A.metaKey;if((z<16||z>20)&&z!=224&&z!=91&&!x.typing&&!y){x.beforeChange();x.typing=true;x.add({},A);v=true}});t.on("MouseDown",function(y){if(x.typing){p(y)}});t.addShortcut("meta+z","","Undo");t.addShortcut("meta+y,meta+shift+z","","Redo");t.on("AddUndo Undo Redo ClearUndos",function(y){if(!y.isDefaultPrevented()){t.nodeChanged()}});x={data:q,typing:false,beforeChange:function(){if(!w){r=t.selection.getBookmark(2,true)}},add:function(D,C){var z,A=t.settings,B;D=D||{};D.content=o();if(w||t.removed){return null}B=q[u];if(t.fire("BeforeAddUndo",{level:D,lastLevel:B,originalEvent:C}).isDefaultPrevented()){return null}if(B&&B.content==D.content){return null}if(q[u]){q[u].beforeBookmark=r}if(A.custom_undo_redo_levels){if(q.length>A.custom_undo_redo_levels){for(z=0;z<q.length-1;z++){q[z]=q[z+1]}q.length--;u=q.length}}D.bookmark=t.selection.getBookmark(2,true);if(u<q.length-1){q.length=u+1}q.push(D);u=q.length-1;var y={level:D,lastLevel:B,originalEvent:C};t.fire("AddUndo",y);if(u>0){s(true);t.fire("change",y)}return D},undo:function(){var y;if(x.typing){x.add();x.typing=false}if(u>0){y=q[--u];if(u===0){s(false)}t.setContent(y.content,{format:"raw"});t.selection.moveToBookmark(y.beforeBookmark);t.fire("undo",{level:y})}return y},redo:function(){var y;if(u<q.length-1){y=q[++u];t.setContent(y.content,{format:"raw"});t.selection.moveToBookmark(y.bookmark);s(true);t.fire("redo",{level:y})}return y},clear:function(){q=[];u=0;x.typing=false;t.fire("ClearUndos")},hasUndo:function(){return u>0||(x.typing&&q[0]&&o()!=q[0].content)},hasRedo:function(){return u<q.length-1&&!this.typing},transact:function(y){x.beforeChange();try{w++;y()}finally{w--}x.add()}};return x}});h("tinymce/EnterKey",["tinymce/dom/TreeWalker","tinymce/dom/RangeUtils","tinymce/Env"],function(j,l,i){var k=i.ie&&i.ie<11;return function(r){var o=r.dom,s=r.selection,m=r.settings;var u=r.undoManager,n=r.schema,p=n.getNonEmptyElements(),t=n.getMoveCaretBeforeOnEnterElements();function q(M){var H,R,v,L,G,B,X,N,A,w,z,F,U,J,O;function P(Y){return Y&&o.isBlock(Y)&&!/^(TD|TH|CAPTION|FORM)$/.test(Y.nodeName)&&!/^(fixed|absolute)/i.test(Y.style.position)&&o.getContentEditable(Y)!=="true"}function Q(Z){var Y;if(o.isBlock(Z)){Y=s.getRng();Z.appendChild(o.create("span",null,"\u00a0"));s.select(Z);Z.lastChild.outerHTML="";s.setRng(Y)}}function K(aa){var Z=aa,ab=[],Y;if(!Z){return}while((Z=Z.firstChild)){if(o.isBlock(Z)){return}if(Z.nodeType==1&&!p[Z.nodeName.toLowerCase()]){ab.push(Z)}}Y=ab.length;while(Y--){Z=ab[Y];if(!Z.hasChildNodes()||(Z.firstChild==Z.lastChild&&Z.firstChild.nodeValue==="")){o.remove(Z)}else{if(Z.nodeName=="A"&&(Z.innerText||Z.textContent)===" "){o.remove(Z)}}}}function y(Z){var af,ac,Y,ab=Z,aa;function ae(ag){while(ag){if(ag.nodeType==1||(ag.nodeType==3&&ag.data&&/[\r\n\s]/.test(ag.data))){return ag}ag=ag.nextSibling}}if(!Z){return}if(i.ie&&i.ie<9&&B&&B.firstChild){if(B.firstChild==B.lastChild&&B.firstChild.tagName=="BR"){o.remove(B.firstChild)}}if(/^(LI|DT|DD)$/.test(Z.nodeName)){var ad=ae(Z.firstChild);if(ad&&/^(UL|OL|DL)$/.test(ad.nodeName)){Z.insertBefore(o.doc.createTextNode("\u00a0"),Z.firstChild)}}Y=o.createRng();if(!i.ie){Z.normalize()}if(Z.hasChildNodes()){af=new j(Z,Z);while((ac=af.current())){if(ac.nodeType==3){Y.setStart(ac,0);Y.setEnd(ac,0);break}if(t[ac.nodeName.toLowerCase()]){Y.setStartBefore(ac);Y.setEndBefore(ac);break}ab=ac;ac=af.next()}if(!ac){Y.setStart(ab,0);Y.setEnd(ab,0)}}else{if(Z.nodeName=="BR"){if(Z.nextSibling&&o.isBlock(Z.nextSibling)){if(!X||X<9){aa=o.create("br");Z.parentNode.insertBefore(aa,Z)}Y.setStartBefore(Z);Y.setEndBefore(Z)}else{Y.setStartAfter(Z);Y.setEndAfter(Z)}}else{Y.setStart(Z,0);Y.setEnd(Z,0)}}s.setRng(Y);o.remove(aa);s.scrollIntoView(Z)}function I(Z){var Y=m.forced_root_block;if(Y&&Y.toLowerCase()===Z.tagName.toLowerCase()){o.setAttribs(Z,m.forced_root_block_attrs)}}function D(Z){var ab=L,ad,ac,Y,aa=n.getTextInlineElements();if(Z||F=="TABLE"){ad=o.create(Z||J);I(ad)}else{ad=B.cloneNode(false)}Y=ad;if(m.keep_styles!==false){do{if(aa[ab.nodeName]){if(ab.id=="_mce_caret"){continue}ac=ab.cloneNode(false);o.setAttrib(ac,"id","");if(ad.hasChildNodes()){ac.appendChild(ad.firstChild);ad.appendChild(ac)}else{Y=ac;ad.appendChild(ac)}}}while((ab=ab.parentNode))}if(!k){Y.innerHTML='<br data-mce-bogus="1">'}return ad}function C(ab){var aa,Z,Y;if(L.nodeType==3&&(ab?G>0:G<L.nodeValue.length)){return false}if(L.parentNode==B&&O&&!ab){return true}if(ab&&L.nodeType==1&&L==B.firstChild){return true}if(L.nodeName==="TABLE"||(L.previousSibling&&L.previousSibling.nodeName=="TABLE")){return(O&&!ab)||(!O&&ab)}aa=new j(L,B);if(L.nodeType==3){if(ab&&G===0){aa.prev()}else{if(!ab&&G==L.nodeValue.length){aa.next()}}}while((Z=aa.current())){if(Z.nodeType===1){if(!Z.getAttribute("data-mce-bogus")){Y=Z.nodeName.toLowerCase();if(p[Y]&&Y!=="br"){return false}}}else{if(Z.nodeType===3&&!/^[ \t\r\n]*$/.test(Z.nodeValue)){return false}}if(ab){aa.prev()}else{aa.next()}}return true}function x(Z,ad){var af,aa,ab,ac,ae,Y,ag=J||"P";aa=o.getParent(Z,o.isBlock);Y=r.getBody().nodeName.toLowerCase();if(!aa||!P(aa)){aa=aa||v;if(!aa.hasChildNodes()){af=o.create(ag);I(af);aa.appendChild(af);H.setStart(af,0);H.setEnd(af,0);return af}ac=Z;while(ac.parentNode!=aa){ac=ac.parentNode}while(ac&&!o.isBlock(ac)){ab=ac;ac=ac.previousSibling}if(ab&&n.isValidChild(Y,ag.toLowerCase())){af=o.create(ag);I(af);ab.parentNode.insertBefore(af,ab);ac=ab;while(ac&&!o.isBlock(ac)){ae=ac.nextSibling;af.appendChild(ac);ac=ae}H.setStart(Z,ad);H.setEnd(Z,ad)}}return Z}function S(){function Z(ac){var ab=z[ac?"firstChild":"lastChild"];while(ab){if(ab.nodeType==1){break}ab=ab[ac?"nextSibling":"previousSibling"]}return ab===B}function aa(){var ab=z.parentNode;if(/^(LI|DT|DD)$/.test(ab.nodeName)){return ab}return z}var Y=z.parentNode.nodeName;if(/^(OL|UL|LI)$/.test(Y)){J="LI"}A=J?D(J):o.create("BR");if(Z(true)&&Z()){if(Y=="LI"){o.insertAfter(A,aa())}else{o.replace(A,z)}}else{if(Z(true)){if(Y=="LI"){o.insertAfter(A,aa());A.appendChild(o.doc.createTextNode(" "));A.appendChild(z)}else{z.parentNode.insertBefore(A,z)}}else{if(Z()){o.insertAfter(A,aa());Q(A)}else{z=aa();R=H.cloneRange();R.setStartAfter(B);R.setEndAfter(z);w=R.extractContents();if(J=="LI"&&w.firstChild.nodeName=="LI"){A=w.firstChild;o.insertAfter(w,z)}else{o.insertAfter(w,z);o.insertAfter(A,z)}}}}o.remove(B);y(A);u.add()}function W(){r.execCommand("InsertLineBreak",false,M)}function E(Y){do{if(Y.nodeType===3){Y.nodeValue=Y.nodeValue.replace(/^[\r\n]+/,"")}Y=Y.firstChild}while(Y)}function V(aa){var Y=o.getRoot(),Z,ab;Z=aa;while(Z!==Y&&o.getContentEditable(Z)!=="false"){if(o.getContentEditable(Z)==="true"){ab=Z}Z=Z.parentNode}return Z!==Y?ab:Y}function T(Z){var Y;if(!k){Z.normalize();Y=Z.lastChild;if(!Y||(/^(left|right)$/gi.test(o.getStyle(Y,"float",true)))){o.add(Z,"br")}}}H=s.getRng(true);if(M.isDefaultPrevented()){return}if(!H.collapsed){r.execCommand("Delete");return}new l(o).normalize(H);L=H.startContainer;G=H.startOffset;J=(m.force_p_newlines?"p":"")||m.forced_root_block;J=J?J.toUpperCase():"";X=o.doc.documentMode;N=M.shiftKey;if(L.nodeType==1&&L.hasChildNodes()){O=G>L.childNodes.length-1;L=L.childNodes[Math.min(G,L.childNodes.length-1)]||L;if(O&&L.nodeType==3){G=L.nodeValue.length}else{G=0}}v=V(L);if(!v){return}u.beforeChange();if(!o.isBlock(v)&&v!=o.getRoot()){if(!J||N){W()}return}if((J&&!N)||(!J&&N)){L=x(L,G)}B=o.getParent(L,o.isBlock);z=B?o.getParent(B.parentNode,o.isBlock):null;F=B?B.nodeName.toUpperCase():"";U=z?z.nodeName.toUpperCase():"";if(U=="LI"&&!M.ctrlKey){B=z;F=U}if(/^(LI|DT|DD)$/.test(F)){if(!J&&N){W();return}if(o.isEmpty(B)){S();return}}if(F=="PRE"&&m.br_in_pre!==false){if(!N){W();return}}else{if((!J&&!N&&F!="LI")||(J&&N)){W();return}}if(J&&B===r.getBody()){return}J=J||"P";if(C()){if(/^(H[1-6]|PRE|FIGURE)$/.test(F)&&U!="HGROUP"){A=D(J)}else{A=D()}if(m.end_container_on_empty_block&&P(z)&&o.isEmpty(B)){A=o.split(z,B)}else{o.insertAfter(A,B)}y(A)}else{if(C(true)){A=B.parentNode.insertBefore(D(),B);Q(A);y(B)}else{R=H.cloneRange();R.setEndAfter(B);w=R.extractContents();E(w);A=w.firstChild;o.insertAfter(w,B);K(A);T(B);y(A)}}o.setAttrib(A,"id","");r.fire("NewBlock",{newBlock:A});u.add()}r.on("keydown",function(v){if(v.keyCode==13){if(q(v)!==false){v.preventDefault()}}})}});h("tinymce/ForceBlocks",[],function(){return function(k){var j=k.settings,n=k.dom,i=k.selection;var m=k.schema,l=m.getBlockElements();function o(){var u=i.getStart(),s=k.getBody(),p;var v,A,E,C,t;var w,x=-16777215,B,q;var D,r,z;z=j.forced_root_block;if(!u||u.nodeType!==1||!z){return}while(u&&u!=s){if(l[u.nodeName]){return}u=u.parentNode}p=i.getRng();if(p.setStart){v=p.startContainer;A=p.startOffset;E=p.endContainer;C=p.endOffset;try{q=k.getDoc().activeElement===s}catch(y){}}else{if(p.item){u=p.item(0);p=k.getDoc().body.createTextRange();p.moveToElementText(u)}q=p.parentElement().ownerDocument===k.getDoc();D=p.duplicate();D.collapse(true);A=D.move("character",x)*-1;if(!D.collapsed){D=p.duplicate();D.collapse(false);C=(D.move("character",x)*-1)-A}}u=s.firstChild;r=s.nodeName.toLowerCase();while(u){if(((u.nodeType===3||(u.nodeType==1&&!l[u.nodeName])))&&m.isValidChild(r,z.toLowerCase())){if(u.nodeType===3&&u.nodeValue.length===0){w=u;u=u.nextSibling;n.remove(w);continue}if(!t){t=n.create(z,k.settings.forced_root_block_attrs);u.parentNode.insertBefore(t,u);B=true}w=u;u=u.nextSibling;t.appendChild(w)}else{t=null;u=u.nextSibling}}if(B&&q){if(p.setStart){p.setStart(v,A);p.setEnd(E,C);i.setRng(p)}else{try{p=k.getDoc().body.createTextRange();p.moveToElementText(s);p.collapse(true);p.moveStart("character",A);if(C>0){p.moveEnd("character",C)}p.select()}catch(y){}}k.nodeChanged()}}if(j.forced_root_block){k.on("NodeChange",o)}}});h("tinymce/EditorCommands",["tinymce/html/Serializer","tinymce/Env","tinymce/util/Tools","tinymce/dom/ElementUtils","tinymce/dom/RangeUtils","tinymce/dom/TreeWalker"],function(t,r,m,k,p,w){var v=m.each,s=m.extend;var j=m.map,x=m.inArray,u=m.explode;var i=r.gecko,l=r.ie,o=r.ie&&r.ie<11;var n=true,q=false;return function(B){var M,S,L,E={state:{},exec:{},value:{}},O=B.settings,F;B.on("PreInit",function(){M=B.dom;S=B.selection;O=B.settings;L=B.formatter});function N(aa,Z,Y,T){var V,X,W=0;if(!/^(mceAddUndoLevel|mceEndUndoLevel|mceBeginUndoLevel|mceRepaint)$/.test(aa)&&(!T||!T.skip_focus)){B.focus()}T=s({},T);T=B.fire("BeforeExecCommand",{command:aa,ui:Z,value:Y});if(T.isDefaultPrevented()){return false}X=aa.toLowerCase();if((V=E.exec[X])){V(X,Z,Y);B.fire("ExecCommand",{command:aa,ui:Z,value:Y});return true}v(B.plugins,function(ab){if(ab.execCommand&&ab.execCommand(aa,Z,Y)){B.fire("ExecCommand",{command:aa,ui:Z,value:Y});W=true;return false}});if(W){return W}if(B.theme&&B.theme.execCommand&&B.theme.execCommand(aa,Z,Y)){B.fire("ExecCommand",{command:aa,ui:Z,value:Y});return true}try{W=B.getDoc().execCommand(aa,Z,Y)}catch(U){}if(W){B.fire("ExecCommand",{command:aa,ui:Z,value:Y});return true}return false}function D(V){var U;if(B._isHidden()){return}V=V.toLowerCase();if((U=E.state[V])){return U(V)}try{return B.getDoc().queryCommandState(V)}catch(T){}return false}function K(V){var U;if(B._isHidden()){return}V=V.toLowerCase();if((U=E.value[V])){return U(V)}try{return B.getDoc().queryCommandValue(V)}catch(T){}}function I(T,U){U=U||"exec";v(T,function(W,V){v(V.toLowerCase().split(","),function(X){E[U][X]=W})})}function H(U,V,T){U=U.toLowerCase();E.exec[U]=function(Z,Y,X,W){return V.call(T||B,Y,X,W)}}function Q(U){U=U.toLowerCase();if(E.exec[U]){return true}try{return B.getDoc().queryCommandSupported(U)}catch(T){}return false}function y(U,V,T){U=U.toLowerCase();E.state[U]=function(){return V.call(T||B)}}function z(U,V,T){U=U.toLowerCase();E.value[U]=function(){return V.call(T||B)}}function A(T){T=T.toLowerCase();return !!E.exec[T]}s(this,{execCommand:N,queryCommandState:D,queryCommandValue:K,queryCommandSupported:Q,addCommands:I,addCommand:H,addQueryStateHandler:y,addQueryValueHandler:z,hasCustomCommand:A});function C(V,U,T){if(U===g){U=q}if(T===g){T=null}return B.getDoc().execCommand(V,U,T)}function P(T){return L.match(T)}function R(T,U){L.toggle(T,U?{value:U}:g);B.nodeChanged()}function J(T){F=S.getBookmark(T)}function G(){S.moveToBookmark(F)}I({"mceResetDesignMode,mceBeginUndoLevel":function(){},"mceEndUndoLevel,mceAddUndoLevel":function(){B.undoManager.add()},"Cut,Copy,Paste":function(X){var V=B.getDoc(),T;try{C(X)}catch(U){T=n}if(T||!V.queryCommandSupported(X)){var W=B.translate("Your browser doesn't support direct access to the clipboard. Please use the Ctrl+X/C/V keyboard shortcuts instead.");if(r.mac){W=W.replace(/Ctrl\+/g,"\u2318+")}B.windowManager.alert(W)}},unlink:function(){if(S.isCollapsed()){var T=S.getNode();if(T.tagName=="A"){B.dom.remove(T,true)}return}L.remove("link")},"JustifyLeft,JustifyCenter,JustifyRight,JustifyFull":function(T){var U=T.substring(7);if(U=="full"){U="justify"}v("left,center,right,justify".split(","),function(V){if(U!=V){L.remove("align"+V)}});R("align"+U);N("mceRepaint")},"InsertUnorderedList,InsertOrderedList":function(V){var T,U;C(V);T=M.getParent(S.getNode(),"ol,ul");if(T){U=T.parentNode;if(/^(H[1-6]|P|ADDRESS|PRE)$/.test(U.nodeName)){J();M.split(U,T);G()}}},"Bold,Italic,Underline,Strikethrough,Superscript,Subscript":function(T){R(T)},"ForeColor,HiliteColor,FontName":function(V,U,T){R(V,T)},FontSize:function(W,V,U){var T,X;if(U>=1&&U<=7){X=u(O.font_size_style_values);T=u(O.font_size_classes);if(T){U=T[U-1]||U}else{U=X[U-1]||U}}R(W,U)},RemoveFormat:function(T){L.remove(T)},mceBlockQuote:function(){R("blockquote")},FormatBlock:function(V,U,T){return R(T||"p")},mceCleanup:function(){var T=S.getBookmark();B.setContent(B.getContent({cleanup:n}),{cleanup:n});S.moveToBookmark(T)},mceRemoveNode:function(W,V,U){var T=U||S.getNode();if(T!=B.getBody()){J();B.dom.remove(T,n);G()}},mceSelectNodeDepth:function(W,V,U){var T=0;M.getParent(S.getNode(),function(X){if(X.nodeType==1&&T++==U){S.select(X);return q}},B.getBody())},mceSelectNode:function(V,U,T){S.select(T)},mceInsertContent:function(Y,aj,ak){var X,an,ac,ao,U,W;var ab,aa,al,T,ae,Z;var ah=B.schema.getTextInlineElements();function am(au){var at,ar,av;at=S.getRng(true);ar=at.startContainer;av=at.startOffset;function aq(aw){return ar[aw]&&ar[aw].nodeType==3}if(ar.nodeType==3){if(av>0){au=au.replace(/^ /," ")}else{if(!aq("previousSibling")){au=au.replace(/^ /," ")}}if(av<ar.length){au=au.replace(/ (<br>|)$/," ")}else{if(!aq("nextSibling")){au=au.replace(/( | )(<br>|)$/," ")}}}return au}function V(){var ar,aq,at;ar=S.getRng(true);aq=ar.startContainer;at=ar.startOffset;if(aq.nodeType==3&&ar.collapsed){if(aq.data[at]==="\u00a0"){aq.deleteData(at,1);if(!/[\u00a0| ]$/.test(ak)){ak+=" "}}else{if(aq.data[at-1]==="\u00a0"){aq.deleteData(at-1,1);if(!/[\u00a0| ]$/.test(ak)){ak=" "+ak}}}}}function ad(aq){if(Z){for(al=aq.firstChild;al;al=al.walk(true)){if(ah[al.name]){al.attr("data-mce-new","true")}}}}function ap(){if(Z){var aq=B.getBody(),ar=new k(M);v(M.select("*[data-mce-new]"),function(au){au.removeAttribute("data-mce-new");for(var at=au.parentNode;at&&at!=aq;at=at.parentNode){if(ar.compare(at,au)){M.remove(au,true)}}})}}if(typeof ak!="string"){Z=ak.merge;ak=ak.content}if(/^ | $/.test(ak)){ak=am(ak)}X=B.parser;an=new t({},B.schema);ae='<span id="mce_marker" data-mce-type="bookmark">​</span>';W={content:ak,format:"html",selection:true};B.fire("BeforeSetContent",W);ak=W.content;if(ak.indexOf("{$caret}")==-1){ak+="{$caret}"}ak=ak.replace(/\{\$caret\}/,ae);aa=S.getRng();var ai=aa.startContainer||(aa.parentElement?aa.parentElement():null);var af=B.getBody();if(ai===af&&S.isCollapsed()){if(M.isBlock(af.firstChild)&&M.isEmpty(af.firstChild)){aa=M.createRng();aa.setStart(af.firstChild,0);aa.setEnd(af.firstChild,0);S.setRng(aa)}}if(!S.isCollapsed()){B.getDoc().execCommand("Delete",false,null);V()}ac=S.getNode();var ag={context:ac.nodeName.toLowerCase()};U=X.parse(ak,ag);ad(U);al=U.lastChild;if(al.attr("id")=="mce_marker"){ab=al;for(al=al.prev;al;al=al.walk(true)){if(al.type==3||!M.isBlock(al.name)){if(B.schema.isValidChild(al.parent.name,"span")){al.parent.insert(ab,al,al.name==="br")}break}}}if(!ag.invalid){ak=an.serialize(U);al=ac.firstChild;T=ac.lastChild;if(!al||(al===T&&al.nodeName==="BR")){M.setHTML(ac,ak)}else{S.setContent(ak)}}else{S.setContent(ae);ac=S.getNode();ao=B.getBody();if(ac.nodeType==9){ac=al=ao}else{al=ac}while(al!==ao){ac=al;al=al.parentNode}ak=ac==ao?ao.innerHTML:M.getOuterHTML(ac);ak=an.serialize(X.parse(ak.replace(/<span (id="mce_marker"|id=mce_marker).+?<\/span>/i,function(){return an.serialize(U)})));if(ac==ao){M.setHTML(ao,ak)}else{M.setOuterHTML(ac,ak)}}ap();ab=M.get("mce_marker");S.scrollIntoView(ab);aa=M.createRng();al=ab.previousSibling;if(al&&al.nodeType==3){aa.setStart(al,al.nodeValue.length);if(!l){T=ab.nextSibling;if(T&&T.nodeType==3){al.appendData(T.data);T.parentNode.removeChild(T)}}}else{aa.setStartBefore(ab);aa.setEndBefore(ab)}M.remove(ab);S.setRng(aa);B.fire("SetContent",W);B.addVisual()},mceInsertRawHTML:function(V,U,T){S.setContent("tiny_mce_marker");B.setContent(B.getContent().replace(/tiny_mce_marker/g,function(){return T}))},mceToggleFormat:function(V,U,T){R(T)},mceSetContent:function(V,U,T){B.setContent(T)},"Indent,Outdent":function(W){var U,T,V;U=O.indentation;T=/[a-z%]+$/i.exec(U);U=parseInt(U,10);if(!D("InsertUnorderedList")&&!D("InsertOrderedList")){if(!O.forced_root_block&&!M.getParent(S.getNode(),M.isBlock)){L.apply("div")}v(S.getSelectedBlocks(),function(Y){if(Y.nodeName!="LI"){var X=B.getParam("indent_use_margin",false)?"margin":"padding";X+=M.getStyle(Y,"direction",true)=="rtl"?"Right":"Left";if(W=="outdent"){V=Math.max(0,parseInt(Y.style[X]||0,10)-U);M.setStyle(Y,X,V?V+T:"")}else{V=(parseInt(Y.style[X]||0,10)+U)+T;M.setStyle(Y,X,V)}}})}else{C(W)}},mceRepaint:function(){if(i){try{J(n);if(S.getSel()){S.getSel().selectAllChildren(B.getBody())}S.collapse(n);G()}catch(T){}}},InsertHorizontalRule:function(){B.execCommand("mceInsertContent",false,"<hr />")},mceToggleVisualAid:function(){B.hasVisual=!B.hasVisual;B.addVisual()},mceReplaceContent:function(V,U,T){B.execCommand("mceInsertContent",false,T.replace(/\{\$selection\}/g,S.getContent({format:"text"})))},mceInsertLink:function(W,V,U){var T;if(typeof U=="string"){U={href:U}}T=M.getParent(S.getNode(),"a");U.href=U.href.replace(" ","%20");if(!T||!U.href){L.remove("link")}if(U.href){L.apply("link",U,T)}},selectAll:function(){var U=M.getRoot(),T;if(S.getRng().setStart){T=M.createRng();T.setStart(U,0);T.setEnd(U,U.childNodes.length);S.setRng(T)}else{T=S.getRng();if(!T.item){T.moveToElementText(U);T.select()}}},"delete":function(){C("Delete");var T=B.getBody();if(M.isEmpty(T)){B.setContent("");if(T.firstChild&&M.isBlock(T.firstChild)){B.selection.setCursorLocation(T.firstChild,0)}else{B.selection.setCursorLocation(T,0)}}},mceNewDocument:function(){B.setContent("")},InsertLineBreak:function(V,af,ah){var ae=ah;var T,ac,aa;var Z=S.getRng(true);new p(M).normalize(Z);var Y=Z.startOffset;var ad=Z.startContainer;if(ad.nodeType==1&&ad.hasChildNodes()){var ai=Y>ad.childNodes.length-1;ad=ad.childNodes[Math.min(Y,ad.childNodes.length-1)]||ad;if(ai&&ad.nodeType==3){Y=ad.nodeValue.length}else{Y=0}}var W=M.getParent(ad,M.isBlock);var X=W?W.nodeName.toUpperCase():"";var U=W?M.getParent(W.parentNode,M.isBlock):null;var aj=U?U.nodeName.toUpperCase():"";var ag=ae&&ae.ctrlKey;if(aj=="LI"&&!ag){W=U;X=aj}function ab(){var an=new w(ad,W),am;var al=B.schema.getNonEmptyElements();while((am=an.next())){if(al[am.nodeName.toLowerCase()]||am.length>0){return true}}}if(ad&&ad.nodeType==3&&Y>=ad.nodeValue.length){if(!o&&!ab()){T=M.create("br");Z.insertNode(T);Z.setStartAfter(T);Z.setEndAfter(T);ac=true}}T=M.create("br");Z.insertNode(T);var ak=M.doc.documentMode;if(o&&X=="PRE"&&(!ak||ak<8)){T.parentNode.insertBefore(M.doc.createTextNode("\r"),T)}aa=M.create("span",{}," ");T.parentNode.insertBefore(aa,T);S.scrollIntoView(aa);M.remove(aa);if(!ac){Z.setStartAfter(T);Z.setEndAfter(T)}else{Z.setStartBefore(T);Z.setEndBefore(T)}S.setRng(Z);B.undoManager.add();return n}});I({"JustifyLeft,JustifyCenter,JustifyRight,JustifyFull":function(W){var U="align"+W.substring(7);var T=S.isCollapsed()?[M.getParent(S.getNode(),M.isBlock)]:S.getSelectedBlocks();var V=j(T,function(X){return !!L.matchNode(X,U)});return x(V,n)!==-1},"Bold,Italic,Underline,Strikethrough,Superscript,Subscript":function(T){return P(T)},mceBlockQuote:function(){return P("blockquote")},Outdent:function(){var T;if(O.inline_styles){if((T=M.getParent(S.getStart(),M.isBlock))&&parseInt(T.style.paddingLeft,10)>0){return n}if((T=M.getParent(S.getEnd(),M.isBlock))&&parseInt(T.style.paddingLeft,10)>0){return n}}return(D("InsertUnorderedList")||D("InsertOrderedList")||(!O.inline_styles&&!!M.getParent(S.getNode(),"BLOCKQUOTE")))},"InsertUnorderedList,InsertOrderedList":function(U){var T=M.getParent(S.getNode(),"ul,ol");return T&&(U==="insertunorderedlist"&&T.tagName==="UL"||U==="insertorderedlist"&&T.tagName==="OL")}},"state");I({"FontSize,FontName":function(V){var U=0,T;if((T=M.getParent(S.getNode(),"span"))){if(V=="fontsize"){U=T.style.fontSize}else{U=T.style.fontFamily.replace(/, /g,",").replace(/[\'\"]/g,"").toLowerCase()}}return U}},"value");I({Undo:function(){B.undoManager.undo()},Redo:function(){B.undoManager.redo()}})}});h("tinymce/util/URI",["tinymce/util/Tools"],function(k){var n=k.each,i=k.trim;var l="source protocol authority userInfo user password host port relative path directory file query anchor".split(" ");var m={ftp:21,http:80,https:443,mailto:25};function j(q,r){var p=this,t,s;q=i(q);r=p.settings=r||{};t=r.base_uri;if(/^([\w\-]+):([^\/]{2})/i.test(q)||/^\s*#/.test(q)){p.source=q;return}var o=q.indexOf("//")===0;if(q.indexOf("/")===0&&!o){q=(t?t.protocol||"http":"http")+"://mce_host"+q}if(!/^[\w\-]*:?\/\//.test(q)){s=r.base_uri?r.base_uri.path:new j(location.href).directory;if(r.base_uri.protocol===""){q="//mce_host"+p.toAbsPath(s,q)}else{q=/([^#?]*)([#?]?.*)/.exec(q);q=((t&&t.protocol)||"http")+"://mce_host"+p.toAbsPath(s,q[1])+q[2]}}q=q.replace(/@@/g,"(mce_at)");q=/^(?:(?![^:@]+:[^:@\/]*@)([^:\/?#.]+):)?(?:\/\/)?((?:(([^:@\/]*):?([^:@\/]*))?@)?([^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/.exec(q);n(l,function(u,x){var w=q[x];if(w){w=w.replace(/\(mce_at\)/g,"@@")}p[u]=w});if(t){if(!p.protocol){p.protocol=t.protocol}if(!p.userInfo){p.userInfo=t.userInfo}if(!p.port&&p.host==="mce_host"){p.port=t.port}if(!p.host||p.host==="mce_host"){p.host=t.host}p.source=""}if(o){p.protocol=""}}j.prototype={setPath:function(p){var o=this;p=/^(.*?)\/?(\w+)?$/.exec(p);o.path=p[0];o.directory=p[1];o.file=p[2];o.source="";o.getURI()},toRelative:function(s){var p=this,o;if(s==="./"){return s}s=new j(s,{base_uri:p});if((s.host!="mce_host"&&p.host!=s.host&&s.host)||p.port!=s.port||(p.protocol!=s.protocol&&s.protocol!=="")){return s.getURI()}var q=p.getURI(),r=s.getURI();if(q==r||(q.charAt(q.length-1)=="/"&&q.substr(0,q.length-1)==r)){return q}o=p.toRelPath(p.path,s.path);if(s.query){o+="?"+s.query}if(s.anchor){o+="#"+s.anchor}return o},toAbsolute:function(p,o){p=new j(p,{base_uri:this});return p.getURI(o&&this.isSameOrigin(p))},isSameOrigin:function(o){if(this.host==o.host&&this.protocol==o.protocol){if(this.port==o.port){return true}var p=m[this.protocol];if(p&&((this.port||p)==(o.port||p))){return true}}return false},toRelPath:function(t,u){var p,s=0,q="",r,o;t=t.substring(0,t.lastIndexOf("/"));t=t.split("/");p=u.split("/");if(t.length>=p.length){for(r=0,o=t.length;r<o;r++){if(r>=p.length||t[r]!=p[r]){s=r+1;break}}}if(t.length<p.length){for(r=0,o=p.length;r<o;r++){if(r>=t.length||t[r]!=p[r]){s=r+1;break}}}if(s===1){return u}for(r=0,o=t.length-(s-1);r<o;r++){q+="../"}for(r=s-1,o=p.length;r<o;r++){if(r!=s-1){q+="/"+p[r]}else{q+=p[r]}}return q},toAbsPath:function(s,t){var q,p=0,v=[],r,u;r=/\/$/.test(t)?"/":"";s=s.split("/");t=t.split("/");n(s,function(o){if(o){v.push(o)}});s=v;for(q=t.length-1,v=[];q>=0;q--){if(t[q].length===0||t[q]==="."){continue}if(t[q]===".."){p++;continue}if(p>0){p--;continue}v.push(t[q])}q=s.length-p;if(q<=0){u=v.reverse().join("/")}else{u=s.slice(0,q).join("/")+"/"+v.reverse().join("/")}if(u.indexOf("/")!==0){u="/"+u}if(r&&u.lastIndexOf("/")!==u.length-1){u+=r}return u},getURI:function(q){var p,o=this;if(!o.source||q){p="";if(!q){if(o.protocol){p+=o.protocol+"://"}else{p+="//"}if(o.userInfo){p+=o.userInfo+"@"}if(o.host){p+=o.host}if(o.port){p+=":"+o.port}}if(o.path){p+=o.path}if(o.query){p+="?"+o.query}if(o.anchor){p+="#"+o.anchor}o.source=p}return o.source}};return j});h("tinymce/util/Class",["tinymce/util/Tools"],function(l){var m=l.each,n=l.extend;var k,j;function i(){}i.extend=k=function(o){var w=this,v=w.prototype,u,p,t;function q(){var A,x,z,y=this;if(!j){if(y.init){y.init.apply(y,arguments)}x=y.Mixins;if(x){A=x.length;while(A--){z=x[A];if(z.init){z.init.apply(y,arguments)}}}}}function r(){return this}function s(x,y){return function(){var z=this,B=z._super,A;z._super=v[x];A=y.apply(z,arguments);z._super=B;return A}}j=true;u=new w();j=false;if(o.Mixins){m(o.Mixins,function(x){x=x;for(var y in x){if(y!=="init"){o[y]=x[y]}}});if(v.Mixins){o.Mixins=v.Mixins.concat(o.Mixins)}}if(o.Methods){m(o.Methods.split(","),function(x){o[x]=r})}if(o.Properties){m(o.Properties.split(","),function(x){var y="_"+x;o[x]=function(B){var z=this,A;if(B!==A){z[y]=B;return z}return z[y]}})}if(o.Statics){m(o.Statics,function(y,x){q[x]=y})}if(o.Defaults&&v.Defaults){o.Defaults=n({},v.Defaults,o.Defaults)}for(p in o){t=o[p];if(typeof t=="function"&&v[p]){u[p]=s(p,t)}else{u[p]=t}}q.prototype=u;q.constructor=q;q.extend=k;return q};return i});h("tinymce/util/EventDispatcher",["tinymce/util/Tools"],function(j){var k=j.makeMap("focus blur focusin focusout click dblclick mousedown mouseup mousemove mouseover beforepaste paste cut copy selectionchange mouseout mouseenter mouseleave wheel keydown keypress keyup input contextmenu dragstart dragend dragover draggesture dragdrop drop drag submit compositionstart compositionend compositionupdate touchstart touchend"," ");function i(q){var w=this,v,m={},t;function o(){return false}function r(){return true}q=q||{};v=q.scope||w;t=q.toggleEvent||o;function n(A,z){var y,B,x,C;A=A.toLowerCase();z=z||{};z.type=A;if(!z.target){z.target=v}if(!z.preventDefault){z.preventDefault=function(){z.isDefaultPrevented=r};z.stopPropagation=function(){z.isPropagationStopped=r};z.stopImmediatePropagation=function(){z.isImmediatePropagationStopped=r};z.isDefaultPrevented=o;z.isPropagationStopped=o;z.isImmediatePropagationStopped=o}if(q.beforeFire){q.beforeFire(z)}y=m[A];if(y){for(B=0,x=y.length;B<x;B++){C=y[B];if(C.once){p(A,C.func)}if(z.isImmediatePropagationStopped()){z.stopPropagation();return z}if(C.func.call(v,z)===false){z.preventDefault();return z}}}return z}function s(A,D,z,x){var y,C,B;if(D===false){D=o}if(D){D={func:D};if(x){j.extend(D,x)}C=A.toLowerCase().split(" ");B=C.length;while(B--){A=C[B];y=m[A];if(!y){y=m[A]=[];t(A,true)}if(z){y.unshift(D)}else{y.push(D)}}}return w}function p(z,D){var A,x,B,C,y;if(z){C=z.toLowerCase().split(" ");A=C.length;while(A--){z=C[A];x=m[z];if(!z){for(B in m){t(B,false);delete m[B]}return w}if(x){if(!D){x.length=0}else{y=x.length;while(y--){if(x[y].func===D){x=x.slice(0,y).concat(x.slice(y+1));m[z]=x}}}if(!x.length){t(z,false);delete m[z]}}}}else{for(z in m){t(z,false)}m={}}return w}function l(y,z,x){return s(y,z,x,{once:true})}function u(x){x=x.toLowerCase();return !(!m[x]||m[x].length===0)}w.fire=n;w.on=s;w.off=p;w.once=l;w.has=u}i.isNative=function(l){return !!k[l.toLowerCase()]};return i});h("tinymce/ui/Selector",["tinymce/util/Class"],function(k){function o(s){var p=[],q=s.length,r;while(q--){r=s[q];if(!r.__checked){p.push(r);r.__checked=1}}q=p.length;while(q--){delete p[q].__checked}return p}var n=/^([\w\\*]+)?(?:#([\w\\]+))?(?:\.([\w\\\.]+))?(?:\[\@?([\w\\]+)([\^\$\*!~]?=)([\w\\]+)\])?(?:\:(.+))?/i;var i=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^\[\]]*\]|['"][^'"]*['"]|[^\[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,m=/^\s*|\s*$/g,l;var j=k.extend({init:function(q){var s=this.match;function r(y){if(y){y=y.toLowerCase();return function(z){return y==="*"||z.type===y}}}function w(y){if(y){return function(z){return z._name===y}}}function t(y){if(y){y=y.split(".");return function(A){var z=y.length;while(z--){if(!A.hasClass(y[z])){return false}}return true}}}function p(z,A,y){if(z){return function(B){var C=B[z]?B[z]():"";return !A?!!y:A==="="?C===y:A==="*="?C.indexOf(y)>=0:A==="~="?(" "+C+" ").indexOf(" "+y+" ")>=0:A==="!="?C!=y:A==="^="?C.indexOf(y)===0:A==="$="?C.substr(C.length-y.length)===y:false}}}function v(y){var z;if(y){y=/(?:not\((.+)\))|(.+)/i.exec(y);if(!y[1]){y=y[2];return function(C,A,B){return y==="first"?A===0:y==="last"?A===B-1:y==="even"?A%2===0:y==="odd"?A%2===1:C[y]?C[y]():false}}else{z=u(y[1],[]);return function(A){return !s(A,z)}}}}function x(y,z,C){var B;function A(D){if(D){z.push(D)}}B=n.exec(y.replace(m,""));A(r(B[1]));A(w(B[2]));A(t(B[3]));A(p(B[4],B[5],B[6]));A(v(B[7]));z.psuedo=!!B[7];z.direct=C;return z}function u(z,B){var D=[],y,C,A;do{i.exec("");C=i.exec(z);if(C){z=C[3];D.push(C[1]);if(C[2]){y=C[3];break}}}while(C);if(y){u(y,B)}z=[];for(A=0;A<D.length;A++){if(D[A]!=">"){z.push(x(D[A],[],D[A-1]===">"))}}B.push(z);return B}this._selectors=u(q,[])},match:function(u,B){var v,r,w,s,t,D,A,q,y,p,z,x,C;B=B||this._selectors;for(v=0,r=B.length;v<r;v++){t=B[v];s=t.length;C=u;x=0;for(w=s-1;w>=0;w--){q=t[w];while(C){if(q.psuedo){z=C.parent().items();y=p=z.length;while(y--){if(z[y]===C){break}}}for(D=0,A=q.length;D<A;D++){if(!q[D](C,y,p)){D=A+1;break}}if(D===A){x++;break}else{if(w===s-1){break}}C=C.parent()}}if(x===s){return true}}return false},find:function(q){var u=[],s,p,r=this._selectors;function t(A,x,z){var y,w,C,B,D,v=x[z];for(y=0,w=A.length;y<w;y++){D=A[y];for(C=0,B=v.length;C<B;C++){if(!v[C](D,y,w)){C=B+1;break}}if(C===B){if(z==x.length-1){u.push(D)}else{if(D.items){t(D.items(),x,z+1)}}}else{if(v.direct){return}}if(D.items){t(D.items(),x,z)}}}if(q.items){for(s=0,p=r.length;s<p;s++){t(q.items(),r[s],0)}if(p>1){u=o(u)}}if(!l){l=j.Collection}return new l(u)}});return j});h("tinymce/ui/Collection",["tinymce/util/Tools","tinymce/ui/Selector","tinymce/util/Class"],function(l,i,j){var m,n,k=Array.prototype.push,o=Array.prototype.slice;n={length:0,init:function(p){if(p){this.add(p)}},add:function(q){var p=this;if(!l.isArray(q)){if(q instanceof m){p.add(q.toArray())}else{k.call(p,q)}}else{k.apply(p,q)}return p},set:function(r){var q=this,p=q.length,s;q.length=0;q.add(r);for(s=q.length;s<p;s++){delete q[s]}return q},filter:function(p){var r=this,t,q,v=[],u,s;if(typeof p==="string"){p=new i(p);s=function(w){return p.match(w)}}else{s=p}for(t=0,q=r.length;t<q;t++){u=r[t];if(s(u)){v.push(u)}}return new m(v)},slice:function(){return new m(o.apply(this,arguments))},eq:function(p){return p===-1?this.slice(p):this.slice(p,+p+1)},each:function(p){l.each(this,p);return this},toArray:function(){return l.toArray(this)},indexOf:function(r){var p=this,q=p.length;while(q--){if(p[q]===r){break}}return q},reverse:function(){return new m(l.toArray(this).reverse())},hasClass:function(p){return this[0]?this[0].hasClass(p):false},prop:function(q,t){var p=this,r,s;if(t!==r){p.each(function(u){if(u[q]){u[q](t)}});return p}s=p[0];if(s&&s[q]){return s[q]()}},exec:function(r){var p=this,q=l.toArray(arguments).slice(1);p.each(function(s){if(s[r]){s[r].apply(s,q)}});return p},remove:function(){var p=this.length;while(p--){this[p].remove()}return this}};l.each("fire on off show hide addClass removeClass append prepend before after reflow".split(" "),function(p){n[p]=function(){var q=l.toArray(arguments);this.each(function(r){if(p in r){r[p].apply(r,q)}});return this}});l.each("text name disabled active selected checked visible parent value data".split(" "),function(p){n[p]=function(q){return this.prop(p,q)}});m=j.extend(n);i.Collection=m;return m});h("tinymce/ui/DomUtils",["tinymce/util/Tools","tinymce/dom/DOMUtils"],function(i,k){var j=0;return{id:function(){return"mceu_"+(j++)},createFragment:function(l){return k.DOM.createFragment(l)},getWindowSize:function(){return k.DOM.getViewPort()},getSize:function(o){var m,l;if(o.getBoundingClientRect){var n=o.getBoundingClientRect();m=Math.max(n.width||(n.right-n.left),o.offsetWidth);l=Math.max(n.height||(n.bottom-n.bottom),o.offsetHeight)}else{m=o.offsetWidth;l=o.offsetHeight}return{width:m,height:l}},getPos:function(m,l){return k.DOM.getPos(m,l)},getViewPort:function(l){return k.DOM.getViewPort(l)},get:function(l){return document.getElementById(l)},addClass:function(m,l){return k.DOM.addClass(m,l)},removeClass:function(m,l){return k.DOM.removeClass(m,l)},hasClass:function(m,l){return k.DOM.hasClass(m,l)},toggleClass:function(n,l,m){return k.DOM.toggleClass(n,l,m)},css:function(n,l,m){return k.DOM.setStyle(n,l,m)},getRuntimeStyle:function(m,l){return k.DOM.getStyle(m,l,true)},on:function(n,l,o,m){return k.DOM.bind(n,l,o,m)},off:function(m,l,n){return k.DOM.unbind(m,l,n)},fire:function(n,m,l){return k.DOM.fire(n,m,l)},innerHtml:function(m,l){k.DOM.setHTML(m,l)}}});h("tinymce/ui/Control",["tinymce/util/Class","tinymce/util/Tools","tinymce/util/EventDispatcher","tinymce/ui/Collection","tinymce/ui/DomUtils"],function(j,o,m,p,i){var l="onmousewheel" in document;var n=false;var r="mce-";function q(s){if(!s._eventDispatcher){s._eventDispatcher=new m({scope:s,toggleEvent:function(t,u){if(u&&m.isNative(t)){if(!s._nativeEvents){s._nativeEvents={}}s._nativeEvents[t]=true;if(s._rendered){s.bindPendingEvents()}}}})}return s._eventDispatcher}var k=j.extend({Statics:{classPrefix:r},isRtl:function(){return k.rtl},classPrefix:r,init:function(v){var s=this,u,t;s.settings=v=o.extend({},s.Defaults,v);s._id=v.id||i.id();s._text=s._name="";s._width=s._height=0;s._aria={role:v.role};this._elmCache={};u=v.classes;if(u){u=u.split(" ");u.map={};t=u.length;while(t--){u.map[u[t]]=true}}s._classes=u||[];s.visible(true);o.each("title text width height name classes visible disabled active value".split(" "),function(w){var y=v[w],x;if(y!==x){s[w](y)}else{if(s["_"+w]===x){s["_"+w]=false}}});s.on("click",function(){if(s.disabled()){return false}});if(v.classes){o.each(v.classes.split(" "),function(w){s.addClass(w)})}s.settings=v;s._borderBox=s.parseBox(v.border);s._paddingBox=s.parseBox(v.padding);s._marginBox=s.parseBox(v.margin);if(v.hidden){s.hide()}},Properties:"parent,title,text,width,height,disabled,active,name,value",Methods:"renderHtml",getContainerElm:function(){return document.body},getParentCtrl:function(u){var s,t=this.getRoot().controlIdLookup;while(u&&t){s=t[u.id];if(s){break}u=u.parentNode}return s},parseBox:function(u){var s,t=10;if(!u){return}if(typeof u==="number"){u=u||0;return{top:u,left:u,bottom:u,right:u}}u=u.split(" ");s=u.length;if(s===1){u[1]=u[2]=u[3]=u[0]}else{if(s===2){u[2]=u[0];u[3]=u[1]}else{if(s===3){u[3]=u[1]}}}return{top:parseInt(u[0],t)||0,right:parseInt(u[1],t)||0,bottom:parseInt(u[2],t)||0,left:parseInt(u[3],t)||0}},borderBox:function(){return this._borderBox},paddingBox:function(){return this._paddingBox},marginBox:function(){return this._marginBox},measureBox:function(v,t){function s(w){var x=document.defaultView;if(x){w=w.replace(/[A-Z]/g,function(y){return"-"+y});return x.getComputedStyle(v,null).getPropertyValue(w)}return v.currentStyle[w]}function u(w){var x=parseFloat(s(w),10);return isNaN(x)?0:x}return{top:u(t+"TopWidth"),right:u(t+"RightWidth"),bottom:u(t+"BottomWidth"),left:u(t+"LeftWidth")}},initLayoutRect:function(){var I=this,A=I.settings,v,E;var C=I.getEl(),z,G,w,F,y;var s,u,H;v=I._borderBox=I._borderBox||I.measureBox(C,"border");I._paddingBox=I._paddingBox||I.measureBox(C,"padding");I._marginBox=I._marginBox||I.measureBox(C,"margin");H=i.getSize(C);s=A.minWidth;u=A.minHeight;w=s||H.width;F=u||H.height;z=A.width;G=A.height;y=A.autoResize;y=typeof y!="undefined"?y:!z&&!G;z=z||w;G=G||F;var B=v.left+v.right;var t=v.top+v.bottom;var x=A.maxWidth||65535;var D=A.maxHeight||65535;I._layoutRect=E={x:A.x||0,y:A.y||0,w:z,h:G,deltaW:B,deltaH:t,contentW:z-B,contentH:G-t,innerW:z-B,innerH:G-t,startMinWidth:s||0,startMinHeight:u||0,minW:Math.min(w,x),minH:Math.min(F,D),maxW:x,maxH:D,autoResize:y,scrollW:0};I._lastLayoutRect={};return E},layoutRect:function(t){var z=this,v=z._layoutRect,y,A,x,w,s,u;if(!v){v=z.initLayoutRect()}if(t){x=v.deltaW;w=v.deltaH;if(t.x!==s){v.x=t.x}if(t.y!==s){v.y=t.y}if(t.minW!==s){v.minW=t.minW}if(t.minH!==s){v.minH=t.minH}A=t.w;if(A!==s){A=A<v.minW?v.minW:A;A=A>v.maxW?v.maxW:A;v.w=A;v.innerW=A-x}A=t.h;if(A!==s){A=A<v.minH?v.minH:A;A=A>v.maxH?v.maxH:A;v.h=A;v.innerH=A-w}A=t.innerW;if(A!==s){A=A<v.minW-x?v.minW-x:A;A=A>v.maxW-x?v.maxW-x:A;v.innerW=A;v.w=A+x}A=t.innerH;if(A!==s){A=A<v.minH-w?v.minH-w:A;A=A>v.maxH-w?v.maxH-w:A;v.innerH=A;v.h=A+w}if(t.contentW!==s){v.contentW=t.contentW}if(t.contentH!==s){v.contentH=t.contentH}y=z._lastLayoutRect;if(y.x!==v.x||y.y!==v.y||y.w!==v.w||y.h!==v.h){u=k.repaintControls;if(u){if(u.map&&!u.map[z._id]){u.push(z);u.map[z._id]=true}}y.x=v.x;y.y=v.y;y.w=v.w;y.h=v.h}return z}return v},repaint:function(){var A=this,t,v,w,s,y=0,u=0,x,z;z=!document.createRange?Math.round:function(B){return B};t=A.getEl().style;w=A._layoutRect;x=A._lastRepaintRect||{};s=A._borderBox;y=s.left+s.right;u=s.top+s.bottom;if(w.x!==x.x){t.left=z(w.x)+"px";x.x=w.x}if(w.y!==x.y){t.top=z(w.y)+"px";x.y=w.y}if(w.w!==x.w){t.width=z(w.w-y)+"px";x.w=w.w}if(w.h!==x.h){t.height=z(w.h-u)+"px";x.h=w.h}if(A._hasBody&&w.innerW!==x.innerW){v=A.getEl("body").style;v.width=z(w.innerW)+"px";x.innerW=w.innerW}if(A._hasBody&&w.innerH!==x.innerH){v=v||A.getEl("body").style;v.height=z(w.innerH)+"px";x.innerH=w.innerH}A._lastRepaintRect=x;A.fire("repaint",{},false)},on:function(u,v){var t=this;function s(w){var y,x;if(typeof w!="string"){return w}return function(z){if(!y){t.parentsAndSelf().each(function(B){var A=B.settings.callbacks;if(A&&(y=A[w])){x=B;return false}})}return y.call(x,z)}}q(t).on(u,s(v));return t},off:function(s,t){q(this).off(s,t);return this},fire:function(v,u,s){var t=this;u=u||{};if(!u.control){u.control=t}u=q(t).fire(v,u);if(s!==false&&t.parent){var w=t.parent();while(w&&!u.isPropagationStopped()){w.fire(v,u,false);w=w.parent()}}return u},hasEventListeners:function(s){return q(this).has(s)},parents:function(s){var t=this,v,u=new p();for(v=t.parent();v;v=v.parent()){u.add(v)}if(s){u=u.filter(s)}return u},parentsAndSelf:function(s){return new p(this).add(this.parents(s))},next:function(){var s=this.parent().items();return s[s.indexOf(this)+1]},prev:function(){var s=this.parent().items();return s[s.indexOf(this)-1]},findCommonAncestor:function(s,u){var t;while(s){t=u;while(t&&s!=t){t=t.parent()}if(s==t){break}s=s.parent()}return s},hasClass:function(s,u){var t=this._classes[u||"control"];s=this.classPrefix+s;return t&&!!t.map[s]},addClass:function(s,v){var t=this,u,w;s=this.classPrefix+s;u=t._classes[v||"control"];if(!u){u=[];u.map={};t._classes[v||"control"]=u}if(!u.map[s]){u.map[s]=s;u.push(s);if(t._rendered){w=t.getEl(v);if(w){w.className=u.join(" ")}}}return t},removeClass:function(s,w){var t=this,v,u,x;s=this.classPrefix+s;v=t._classes[w||"control"];if(v&&v.map[s]){delete v.map[s];u=v.length;while(u--){if(v[u]===s){v.splice(u,1)}}}if(t._rendered){x=t.getEl(w);if(x){x.className=v.join(" ")}}return t},toggleClass:function(s,u,v){var t=this;if(u){t.addClass(s,v)}else{t.removeClass(s,v)}return t},classes:function(t){var s=this._classes[t||"control"];return s?s.join(" "):""},innerHtml:function(s){i.innerHtml(this.getEl(),s);return this},getEl:function(s){var t=s?this._id+"-"+s:this._id;if(!this._elmCache[t]){this._elmCache[t]=i.get(t)}return this._elmCache[t]},visible:function(u){var t=this,s;if(typeof u!=="undefined"){if(t._visible!==u){if(t._rendered){t.getEl().style.display=u?"":"none"}t._visible=u;s=t.parent();if(s){s._lastRect=null}t.fire(u?"show":"hide")}return t}return t._visible},show:function(){return this.visible(true)},hide:function(){return this.visible(false)},focus:function(){try{this.getEl().focus()}catch(s){}return this},blur:function(){this.getEl().blur();return this},aria:function(t,u){var s=this,v=s.getEl(s.ariaTarget);if(typeof u==="undefined"){return s._aria[t]}else{s._aria[t]=u}if(s._rendered){v.setAttribute(t=="role"?t:"aria-"+t,u)}return s},encode:function(t,s){if(s!==false){t=this.translate(t)}return(t||"").replace(/[&<>"]/g,function(u){return"&#"+u.charCodeAt(0)+";"})},translate:function(s){return k.translate?k.translate(s):s},before:function(t){var s=this,u=s.parent();if(u){u.insert(t,u.items().indexOf(s),true)}return s},after:function(t){var s=this,u=s.parent();if(u){u.insert(t,u.items().indexOf(s))}return s},remove:function(){var t=this,y=t.getEl(),w=t.parent(),u,v;if(t.items){var s=t.items().toArray();v=s.length;while(v--){s[v].remove()}}if(w&&w.items){u=[];w.items().each(function(z){if(z!==t){u.push(z)}});w.items().set(u);w._lastRect=null}if(t._eventsRoot&&t._eventsRoot==t){i.off(y)}var x=t.getRoot().controlIdLookup;if(x){delete x[t._id]}if(y&&y.parentNode){y.parentNode.removeChild(y)}t._rendered=false;return t},renderBefore:function(t){var s=this;t.parentNode.insertBefore(i.createFragment(s.renderHtml()),t);s.postRender();return s},renderTo:function(t){var s=this;t=t||s.getContainerElm();t.appendChild(i.createFragment(s.renderHtml()));s.postRender();return s},postRender:function(){var A=this,t=A.settings,v,u,y,s,x;for(s in t){if(s.indexOf("on")===0){A.on(s.substr(2),t[s])}}if(A._eventsRoot){for(y=A.parent();!x&&y;y=y.parent()){x=y._eventsRoot}if(x){for(s in x._nativeEvents){A._nativeEvents[s]=true}}}A.bindPendingEvents();if(t.style){v=A.getEl();if(v){v.setAttribute("style",t.style);v.style.cssText=t.style}}if(!A._visible){i.css(A.getEl(),"display","none")}if(A.settings.border){u=A.borderBox();i.css(A.getEl(),{"border-top-width":u.top,"border-right-width":u.right,"border-bottom-width":u.bottom,"border-left-width":u.left})}var w=A.getRoot();if(!w.controlIdLookup){w.controlIdLookup={}}w.controlIdLookup[A._id]=A;for(var z in A._aria){A.aria(z,A._aria[z])}A.fire("postrender",{},false)},scrollIntoView:function(u){function E(J,H){var F,I,G=J;F=I=0;while(G&&G!=H&&G.nodeType){F+=G.offsetLeft||0;I+=G.offsetTop||0;G=G.offsetParent}return{x:F,y:I}}var w=this.getEl(),v=w.parentNode;var B,A,s,D,C,t;var z=E(w,v);B=z.x;A=z.y;s=w.offsetWidth;D=w.offsetHeight;C=v.clientWidth;t=v.clientHeight;if(u=="end"){B-=C-s;A-=t-D}else{if(u=="center"){B-=(C/2)-(s/2);A-=(t/2)-(D/2)}}v.scrollLeft=B;v.scrollTop=A;return this},bindPendingEvents:function(){var D=this,x,v,B,u,z,t;function A(F){var E=D.getParentCtrl(F.target);if(E){E.fire(F.type,F)}}function w(){var E=u._lastHoverCtrl;if(E){E.fire("mouseleave",{target:E.getEl()});E.parents().each(function(F){F.fire("mouseleave",{target:F.getEl()})});u._lastHoverCtrl=null}}function C(J){var I=D.getParentCtrl(J.target),H=u._lastHoverCtrl,E=0,G,F,K;if(I!==H){u._lastHoverCtrl=I;F=I.parents().toArray().reverse();F.push(I);if(H){K=H.parents().toArray().reverse();K.push(H);for(E=0;E<K.length;E++){if(F[E]!==K[E]){break}}for(G=K.length-1;G>=E;G--){H=K[G];H.fire("mouseleave",{target:H.getEl()})}}for(G=E;G<F.length;G++){I=F[G];I.fire("mouseenter",{target:I.getEl()})}}}function s(E){E.preventDefault();if(E.type=="mousewheel"){E.deltaY=-1/40*E.wheelDelta;if(E.wheelDeltaX){E.deltaX=-1/40*E.wheelDeltaX}}else{E.deltaX=0;E.deltaY=E.detail}E=D.fire("wheel",E)}D._rendered=true;z=D._nativeEvents;if(z){B=D.parents().toArray();B.unshift(D);for(x=0,v=B.length;!u&&x<v;x++){u=B[x]._eventsRoot}if(!u){u=B[B.length-1]||D}D._eventsRoot=u;for(v=x,x=0;x<v;x++){B[x]._eventsRoot=u}var y=u._delegates;if(!y){y=u._delegates={}}for(t in z){if(!z){return false}if(t==="wheel"&&!n){if(l){i.on(D.getEl(),"mousewheel",s)}else{i.on(D.getEl(),"DOMMouseScroll",s)}continue}if(t==="mouseenter"||t==="mouseleave"){if(!u._hasMouseEnter){i.on(u.getEl(),"mouseleave",w);i.on(u.getEl(),"mouseover",C);u._hasMouseEnter=1}}else{if(!y[t]){i.on(u.getEl(),t,A);y[t]=true}}z[t]=false}}},getRoot:function(){var v=this,u,s=[];while(v){if(v.rootControl){u=v.rootControl;break}s.push(v);u=v;v=v.parent()}if(!u){u=this}var t=s.length;while(t--){s[t].rootControl=u}return u},reflow:function(){this.repaint();return this}});return k});h("tinymce/ui/Factory",[],function(){var i={},j;return{add:function(k,l){i[k.toLowerCase()]=l},has:function(k){return !!i[k.toLowerCase()]},create:function(o,n){var k,l,m;if(!j){m=tinymce.ui;for(l in m){i[l.toLowerCase()]=m[l]}j=true}if(typeof o=="string"){n=n||{};n.type=o}else{n=o;o=n.type}o=o.toLowerCase();k=i[o];if(!k){throw new Error("Could not find control by type: "+o)}k=new k(n);k.type=o;return k}}});h("tinymce/ui/KeyboardNavigation",[],function(){return function(A){var w=A.root,i,p;try{i=document.activeElement}catch(z){i=document.body}p=w.getParentCtrl(i);function t(E){E=E||i;return E&&E.getAttribute("role")}function D(G){var F,E=G||i;while((E=E.parentNode)){if((F=t(E))){return F}}}function v(E){var F=i;if(F){return F.getAttribute("aria-"+E)}}function u(F){var E=F.tagName.toUpperCase();return E=="INPUT"||E=="TEXTAREA"}function j(E){if(u(E)&&!E.hidden){return true}if(/^(button|menuitem|checkbox|tab|menuitemcheckbox|option|gridcell)$/.test(t(E))){return true}return false}function o(G){var F=[];function E(I){if(I.nodeType!=1||I.style.display=="none"){return}if(j(I)){F.push(I)}for(var H=0;H<I.childNodes.length;H++){E(I.childNodes[H])}}E(G||w.getEl());return F}function n(H){var F,E;H=H||p;E=H.parents().toArray();E.unshift(H);for(var G=0;G<E.length;G++){F=E[G];if(F.settings.ariaRoot){break}}return F}function x(G){var E=n(G);var F=o(E.getEl());if(E.settings.ariaRemember&&"lastAriaIndex" in E){r(E.lastAriaIndex,F)}else{r(0,F)}}function r(E,F){if(E<0){E=F.length-1}else{if(E>=F.length){E=0}}if(F[E]){F[E].focus()}return E}function C(G,I){var E=-1,F=n();I=I||o(F.getEl());for(var H=0;H<I.length;H++){if(I[H]===i){E=H}}E+=G;F.lastAriaIndex=r(E,I)}function m(){var E=D();if(E=="tablist"){C(-1,o(i.parentNode))}else{if(p.parent().submenu){l()}else{C(-1)}}}function B(){var F=t(),E=D();if(E=="tablist"){C(1,o(i.parentNode))}else{if(F=="menuitem"&&E=="menu"&&v("haspopup")){y()}else{C(1)}}}function q(){C(-1)}function s(){var F=t(),E=D();if(F=="menuitem"&&E=="menubar"){y()}else{if(F=="button"&&v("haspopup")){y({key:"down"})}else{C(1)}}}function k(F){var E=D();if(E=="tablist"){var G=o(p.getEl("body"))[0];if(G){G.focus()}}else{C(F.shiftKey?-1:1)}}function l(){p.fire("cancel")}function y(E){E=E||{};p.fire("click",{target:i,aria:E})}w.on("keydown",function(F){function E(H,G){if(u(i)){return}if(G(H)!==false){H.preventDefault()}}if(F.isDefaultPrevented()){return}switch(F.keyCode){case 37:E(F,m);break;case 39:E(F,B);break;case 38:E(F,q);break;case 40:E(F,s);break;case 27:l();break;case 14:case 13:case 32:E(F,y);break;case 9:if(k(F)!==false){F.preventDefault()}break}});w.on("focusin",function(E){i=E.target;p=E.control});return{focusFirst:x}}});h("tinymce/ui/Container",["tinymce/ui/Control","tinymce/ui/Collection","tinymce/ui/Selector","tinymce/ui/Factory","tinymce/ui/KeyboardNavigation","tinymce/util/Tools","tinymce/ui/DomUtils"],function(p,o,k,i,n,m,j){var l={};return p.extend({layout:"",innerClass:"container-inner",init:function(r){var q=this;q._super(r);r=q.settings;q._fixed=r.fixed;q._items=new o();if(q.isRtl()){q.addClass("rtl")}q.addClass("container");q.addClass("container-body","body");if(r.containerCls){q.addClass(r.containerCls)}q._layout=i.create((r.layout||q.layout)+"layout");if(q.settings.items){q.add(q.settings.items)}q._hasBody=true},items:function(){return this._items},find:function(q){q=l[q]=l[q]||new k(q);return q.find(this)},add:function(r){var q=this;q.items().add(q.create(r)).parent(q);return q},focus:function(q){var s=this,u,t,r;if(q){t=s.keyboardNav||s.parents().eq(-1)[0].keyboardNav;if(t){t.focusFirst(s);return}}r=s.find("*");if(s.statusbar){r.add(s.statusbar.items())}r.each(function(v){if(v.settings.autofocus){u=null;return false}if(v.canFocus){u=u||v}});if(u){u.focus()}return s},replace:function(u,t){var s,q=this.items(),r=q.length;while(r--){if(q[r]===u){q[r]=t;break}}if(r>=0){s=t.getEl();if(s){s.parentNode.removeChild(s)}s=u.getEl();if(s){s.parentNode.removeChild(s)}}t.parent(this)},create:function(r){var q=this,t,s=[];if(!m.isArray(r)){r=[r]}m.each(r,function(u){if(u){if(!(u instanceof p)){if(typeof u=="string"){u={type:u}}t=m.extend({},q.settings.defaults,u);u.type=t.type=t.type||u.type||q.settings.defaultType||(t.defaults?t.defaults.type:null);u=i.create(t)}s.push(u)}});return s},renderNew:function(){var q=this;q.items().each(function(t,s){var u,r;t.parent(q);if(!t._rendered){u=q.getEl("body");r=j.createFragment(t.renderHtml());if(u.hasChildNodes()&&s<=u.childNodes.length-1){u.insertBefore(r,u.childNodes[s])}else{u.appendChild(r)}t.postRender()}});q._layout.applyClasses(q);q._lastRect=null;return q},append:function(q){return this.add(q).renderNew()},prepend:function(r){var q=this;q.items().set(q.create(r).concat(q.items().toArray()));return q.renderNew()},insert:function(s,u,w){var r=this,t,q,v;s=r.create(s);t=r.items();if(!w&&u<t.length-1){u+=1}if(u>=0&&u<t.length){q=t.slice(0,u).toArray();v=t.slice(u).toArray();t.set(q.concat(s,v))}return r.renderNew()},fromJSON:function(s){var q=this;for(var r in s){q.find("#"+r).value(s[r])}return q},toJSON:function(){var q=this,r={};q.find("*").each(function(u){var s=u.name(),t=u.value();if(s&&typeof t!="undefined"){r[s]=t}});return r},preRender:function(){},renderHtml:function(){var q=this,r=q._layout,s=this.settings.role;q.preRender();r.preRender(q);return('<div id="'+q._id+'" class="'+q.classes()+'"'+(s?' role="'+this.settings.role+'"':"")+'><div id="'+q._id+'-body" class="'+q.classes("body")+'">'+(q.settings.html||"")+r.renderHtml(q)+"</div></div>")},postRender:function(){var q=this,r;q.items().exec("postRender");q._super();q._layout.postRender(q);q._rendered=true;if(q.settings.style){j.css(q.getEl(),q.settings.style)}if(q.settings.border){r=q.borderBox();j.css(q.getEl(),{"border-top-width":r.top,"border-right-width":r.right,"border-bottom-width":r.bottom,"border-left-width":r.left})}if(!q.parent()){q.keyboardNav=new n({root:q})}return q},initLayoutRect:function(){var q=this,r=q._super();q._layout.recalc(q);return r},recalc:function(){var q=this,s=q._layoutRect,r=q._lastRect;if(!r||r.w!=s.w||r.h!=s.h){q._layout.recalc(q);s=q.layoutRect();q._lastRect={x:s.x,y:s.y,w:s.w,h:s.h};return true}},reflow:function(){var q;if(this.visible()){p.repaintControls=[];p.repaintControls.map={};this.recalc();q=p.repaintControls.length;while(q--){p.repaintControls[q].repaint()}if(this.settings.layout!=="flow"&&this.settings.layout!=="stack"){this.repaint()}p.repaintControls=[]}return this}})});h("tinymce/ui/DragHelper",["tinymce/ui/DomUtils"],function(i){function j(){var r=document,s,n,l,q;var o,t,m,k,p=Math.max;s=r.documentElement;n=r.body;l=p(s.scrollWidth,n.scrollWidth);q=p(s.clientWidth,n.clientWidth);o=p(s.offsetWidth,n.offsetWidth);t=p(s.scrollHeight,n.scrollHeight);m=p(s.clientHeight,n.clientHeight);k=p(s.offsetHeight,n.offsetHeight);return{width:l<o?q:l,height:t<k?m:t}}return function(l,n){var u,t=document,k,m,s,q,p,o;n=n||{};function r(){return t.getElementById(n.handle||l)}m=function(w){var y=j(),v,x;w.preventDefault();k=w.button;v=r();p=w.screenX;o=w.screenY;if(window.getComputedStyle){x=window.getComputedStyle(v,null).getPropertyValue("cursor")}else{x=v.runtimeStyle.cursor}u=t.createElement("div");i.css(u,{position:"absolute",top:0,left:0,width:y.width,height:y.height,zIndex:2147483647,opacity:0.0001,cursor:x});t.body.appendChild(u);i.on(t,"mousemove",q);i.on(t,"mouseup",s);n.start(w)};q=function(v){if(v.button!==k){return s(v)}v.deltaX=v.screenX-p;v.deltaY=v.screenY-o;v.preventDefault();n.drag(v)};s=function(v){i.off(t,"mousemove",q);i.off(t,"mouseup",s);u.parentNode.removeChild(u);if(n.stop){n.stop(v)}};this.destroy=function(){i.off(r())};i.on(r(),"mousedown",m)}});h("tinymce/ui/Scrollable",["tinymce/ui/DomUtils","tinymce/ui/DragHelper"],function(i,j){return{init:function(){var k=this;k.on("repaint",k.renderScroll)},renderScroll:function(){var l=this,m=2;function n(){var r,q,p;function o(w,v,y,E,D,u){var x,B,A;var t,s,z,C;var F,G;B=l.getEl("scroll"+w);if(B){F=v.toLowerCase();G=y.toLowerCase();if(l.getEl("absend")){i.css(l.getEl("absend"),F,l.layoutRect()[E]-1)}if(!D){i.css(B,"display","none");return}i.css(B,"display","block");x=l.getEl("body");A=l.getEl("scroll"+w+"t");t=x["client"+y]-(m*2);t-=r&&q?B["client"+u]:0;s=x["scroll"+y];z=t/s;C={};C[F]=x["offset"+v]+m;C[G]=t;i.css(B,C);C={};C[F]=x["scroll"+v]*z;C[G]=t*z;i.css(A,C)}}p=l.getEl("body");r=p.scrollWidth>p.clientWidth;q=p.scrollHeight>p.clientHeight;o("h","Left","Width","contentW",r,"Height");o("v","Top","Height","contentH",q,"Width")}function k(){function o(v,r,p,w,t){var u,q=l._id+"-scroll"+v,s=l.classPrefix;l.getEl().appendChild(i.createFragment('<div id="'+q+'" class="'+s+"scrollbar "+s+"scrollbar-"+v+'"><div id="'+q+'t" class="'+s+'scrollbar-thumb"></div></div>'));l.draghelper=new j(q+"t",{start:function(){u=l.getEl("body")["scroll"+r];i.addClass(i.get(q),s+"active")},drag:function(A){var x,C,z,B,y=l.layoutRect();C=y.contentW>y.innerW;z=y.contentH>y.innerH;B=l.getEl("body")["client"+p]-(m*2);B-=C&&z?l.getEl("scroll"+v)["client"+t]:0;x=B/l.getEl("body")["scroll"+p];l.getEl("body")["scroll"+r]=u+(A["delta"+w]/x)},stop:function(){i.removeClass(i.get(q),s+"active")}})}l.addClass("scroll");o("v","Top","Height","Y","Width");o("h","Left","Width","X","Height")}if(l.settings.autoScroll){if(!l._hasScroll){l._hasScroll=true;k();l.on("wheel",function(p){var o=l.getEl("body");o.scrollLeft+=(p.deltaX||0)*10;o.scrollTop+=p.deltaY*10;n()});i.on(l.getEl("body"),"scroll",n)}n()}}}});h("tinymce/ui/Panel",["tinymce/ui/Container","tinymce/ui/Scrollable"],function(j,i){return j.extend({Defaults:{layout:"fit",containerCls:"panel"},Mixins:[i],renderHtml:function(){var l=this,m=l._layout,k=l.settings.html;l.preRender();m.preRender(l);if(typeof k=="undefined"){k=('<div id="'+l._id+'-body" class="'+l.classes("body")+'">'+m.renderHtml(l)+"</div>")}else{if(typeof k=="function"){k=k.call(l)}l._hasBody=false}return('<div id="'+l._id+'" class="'+l.classes()+'" hidefocus="1" tabindex="-1" role="group">'+(l._preBodyHtml||"")+k+"</div>")}})});h("tinymce/ui/Movable",["tinymce/ui/DomUtils"],function(i){function j(k,s,v){var u,o,r,p,t,m,q,l,n,w;n=i.getViewPort();o=i.getPos(s);r=o.x;p=o.y;if(k._fixed&&i.getRuntimeStyle(document.body,"position")=="static"){r-=n.x;p-=n.y}u=k.getEl();w=i.getSize(u);t=w.width;m=w.height;w=i.getSize(s);q=w.width;l=w.height;v=(v||"").split("");if(v[0]==="b"){p+=l}if(v[1]==="r"){r+=q}if(v[0]==="c"){p+=Math.round(l/2)}if(v[1]==="c"){r+=Math.round(q/2)}if(v[3]==="b"){p-=m}if(v[4]==="r"){r-=t}if(v[3]==="c"){p-=Math.round(m/2)}if(v[4]==="c"){r-=Math.round(t/2)}return{x:r,y:p,w:t,h:m}}return{testMoveRel:function(o,l){var k=i.getViewPort();for(var m=0;m<l.length;m++){var n=j(this,o,l[m]);if(this._fixed){if(n.x>0&&n.x+n.w<k.w&&n.y>0&&n.y+n.h<k.h){return l[m]}}else{if(n.x>k.x&&n.x+n.w<k.w+k.x&&n.y>k.y&&n.y+n.h<k.h+k.y){return l[m]}}}return l[0]},moveRel:function(m,k){if(typeof k!="string"){k=this.testMoveRel(m,k)}var l=j(this,m,k);return this.moveTo(l.x,l.y)},moveBy:function(m,k){var l=this,n=l.layoutRect();l.moveTo(n.x+m,n.y+k);return l},moveTo:function(k,p){var m=this;function l(s,q,r){if(s<0){return 0}if(s+r>q){s=q-r;return s<0?0:s}return s}if(m.settings.constrainToViewport){var n=i.getViewPort(window);var o=m.layoutRect();k=l(k,n.w+n.x,o.w);p=l(p,n.h+n.y,o.h)}if(m._rendered){m.layoutRect({x:k,y:p}).repaint()}else{m.settings.x=k;m.settings.y=p}m.fire("move",{x:k,y:p});return m}}});h("tinymce/ui/Resizable",["tinymce/ui/DomUtils"],function(i){return{resizeToContent:function(){this._layoutRect.autoResize=true;this._lastRect=null;this.reflow()},resizeTo:function(j,k){if(j<=1||k<=1){var l=i.getWindowSize();j=j<=1?j*l.w:j;k=k<=1?k*l.h:k}this._layoutRect.autoResize=false;return this.layoutRect({minW:j,minH:k,w:j,h:k}).reflow()},resizeBy:function(k,m){var j=this,l=j.layoutRect();return j.resizeTo(l.w+k,l.h+m)}}});h("tinymce/ui/FloatPanel",["tinymce/ui/Panel","tinymce/ui/Movable","tinymce/ui/Resizable","tinymce/ui/DomUtils"],function(w,t,k,i){var q,l,j,x=[];var o=[],y;function u(){function z(B,A){while(B){if(B==A){return true}B=B.parent()}}if(!q){q=function(D){if(D.button==2){return}var C=x.length;while(C--){var B=x[C],A=B.getParentCtrl(D.target);if(B.settings.autohide){if(A){if(z(A,B)||B.parent()===A){continue}}D=B.fire("autohide",{target:D.target});if(!D.isDefaultPrevented()){B.hide()}}}};i.on(document,"click",q)}}function n(){if(!l){l=function(){var z;z=x.length;while(z--){p(x[z])}};i.on(window,"scroll",l)}}function m(){if(!j){var A=document.documentElement,B=A.clientWidth,z=A.clientHeight;j=function(){if(!document.all||B!=A.clientWidth||z!=A.clientHeight){B=A.clientWidth;z=A.clientHeight;r.hideAll()}};i.on(window,"resize",j)}}function p(z){var A=i.getViewPort().y;function B(F,C){var E;for(var D=0;D<x.length;D++){if(x[D]!=z){E=x[D].parent();while(E&&(E=E.parent())){if(E==z){x[D].fixed(F).moveBy(0,C).repaint()}}}}}if(z.settings.autofix){if(!z._fixed){z._autoFixY=z.layoutRect().y;if(z._autoFixY<A){z.fixed(true).layoutRect({y:0}).repaint();B(true,A-z._autoFixY)}}else{if(z._autoFixY>A){z.fixed(false).layoutRect({y:z._autoFixY}).repaint();B(false,z._autoFixY-A)}}}}function v(D,B){var z,E=r.zIndex||65535,A;if(D){o.push(B)}else{z=o.length;while(z--){if(o[z]===B){o.splice(z,1)}}}if(o.length){for(z=0;z<o.length;z++){if(o[z].modal){E++;A=o[z]}o[z].getEl().style.zIndex=E;o[z].zIndex=E;E++}}var C=document.getElementById(B.classPrefix+"modal-block");if(A){i.css(C,"z-index",A.zIndex-1)}else{if(C){C.parentNode.removeChild(C);y=false}}r.currentZIndex=E}var r=w.extend({Mixins:[t,k],init:function(A){var z=this;z._super(A);z._eventsRoot=z;z.addClass("floatpanel");if(A.autohide){u();m();x.push(z)}if(A.autofix){n();z.on("move",function(){p(this)})}z.on("postrender show",function(D){if(D.control==z){var C,B=z.classPrefix;if(z.modal&&!y){C=i.createFragment('<div id="'+B+'modal-block" class="'+B+"reset "+B+'fade"></div>');C=C.firstChild;z.getContainerElm().appendChild(C);setTimeout(function(){i.addClass(C,B+"in");i.addClass(z.getEl(),B+"in")},0);y=true}v(true,z)}});z.on("show",function(){z.parents().each(function(B){if(B._fixed){z.fixed(true);return false}})});if(A.popover){z._preBodyHtml='<div class="'+z.classPrefix+'arrow"></div>';z.addClass("popover").addClass("bottom").addClass(z.isRtl()?"end":"start")}},fixed:function(B){var A=this;if(A._fixed!=B){if(A._rendered){var z=i.getViewPort();if(B){A.layoutRect().y-=z.y}else{A.layoutRect().y+=z.y}}A.toggleClass("fixed",B);A._fixed=B}return A},show:function(){var z=this,A,B=z._super();A=x.length;while(A--){if(x[A]===z){break}}if(A===-1){x.push(z)}return B},hide:function(){s(this);v(false,this);return this._super()},hideAll:function(){r.hideAll()},close:function(){var z=this;if(!z.fire("close").isDefaultPrevented()){z.remove();v(false,z)}return z},remove:function(){s(this);this._super()},postRender:function(){var z=this;if(z.settings.bodyRole){this.getEl("body").setAttribute("role",z.settings.bodyRole)}return z._super()}});r.hideAll=function(){var A=x.length;while(A--){var z=x[A];if(z&&z.settings.autohide){z.hide();x.splice(A,1)}}};function s(z){var A;A=x.length;while(A--){if(x[A]===z){x.splice(A,1)}}A=o.length;while(A--){if(o[A]===z){o.splice(A,1)}}}return r});h("tinymce/ui/Window",["tinymce/ui/FloatPanel","tinymce/ui/Panel","tinymce/ui/DomUtils","tinymce/ui/DragHelper"],function(m,l,i,k){var j=m.extend({modal:true,Defaults:{border:1,layout:"flex",containerCls:"panel",role:"dialog",callbacks:{submit:function(){this.fire("submit",{data:this.toJSON()})},close:function(){this.close()}}},init:function(o){var n=this;n._super(o);if(n.isRtl()){n.addClass("rtl")}n.addClass("window");n._fixed=true;if(o.buttons){n.statusbar=new l({layout:"flex",border:"1 0 0 0",spacing:3,padding:10,align:"center",pack:n.isRtl()?"start":"end",defaults:{type:"button"},items:o.buttons});n.statusbar.addClass("foot");n.statusbar.parent(n)}n.on("click",function(p){if(p.target.className.indexOf(n.classPrefix+"close")!=-1){n.close()}});n.on("cancel",function(){n.close()});n.aria("describedby",n.describedBy||n._id+"-none");n.aria("label",o.title);n._fullscreen=false},recalc:function(){var o=this,r=o.statusbar,q,p,n,s;if(o._fullscreen){o.layoutRect(i.getWindowSize());o.layoutRect().contentH=o.layoutRect().innerH}o._super();q=o.layoutRect();if(o.settings.title&&!o._fullscreen){p=q.headerW;if(p>q.w){n=q.x-Math.max(0,p/2);o.layoutRect({w:p,x:n});s=true}}if(r){r.layoutRect({w:o.layoutRect().innerW}).recalc();p=r.layoutRect().minW+q.deltaW;if(p>q.w){n=q.x-Math.max(0,p-q.w);o.layoutRect({w:p,x:n});s=true}}if(s){o.recalc()}},initLayoutRect:function(){var n=this,r=n._super(),q=0,s;if(n.settings.title&&!n._fullscreen){s=n.getEl("head");var o=i.getSize(s);r.headerW=o.width;r.headerH=o.height;q+=r.headerH}if(n.statusbar){q+=n.statusbar.layoutRect().h}r.deltaH+=q;r.minH+=q;r.h+=q;var p=i.getWindowSize();r.x=Math.max(0,p.w/2-r.w/2);r.y=Math.max(0,p.h/2-r.h/2);return r},renderHtml:function(){var o=this,r=o._layout,u=o._id,s=o.classPrefix;var q=o.settings,n="",t="",p=q.html;o.preRender();r.preRender(o);if(q.title){n=('<div id="'+u+'-head" class="'+s+'window-head"><div id="'+u+'-title" class="'+s+'title">'+o.encode(q.title)+'</div><button type="button" class="'+s+'close" aria-hidden="true">\u00d7</button><div id="'+u+'-dragh" class="'+s+'dragh"></div></div>')}if(q.url){p='<iframe src="'+q.url+'" tabindex="-1"></iframe>'}if(typeof p=="undefined"){p=r.renderHtml(o)}if(o.statusbar){t=o.statusbar.renderHtml()}return('<div id="'+u+'" class="'+o.classes()+'" hidefocus="1"><div class="'+o.classPrefix+'reset" role="application">'+n+'<div id="'+u+'-body" class="'+o.classes("body")+'">'+p+"</div>"+t+"</div></div>")},fullscreen:function(t){var n=this,s=document.documentElement,o,r=n.classPrefix,q;if(t!=n._fullscreen){i.on(window,"resize",function(){var v;if(n._fullscreen){if(!o){v=new Date().getTime();var u=i.getWindowSize();n.moveTo(0,0).resizeTo(u.w,u.h);if((new Date().getTime())-v>50){o=true}}else{if(!n._timer){n._timer=setTimeout(function(){var w=i.getWindowSize();n.moveTo(0,0).resizeTo(w.w,w.h);n._timer=0},50)}}}});q=n.layoutRect();n._fullscreen=t;if(!t){n._borderBox=n.parseBox(n.settings.border);n.getEl("head").style.display="";q.deltaH+=q.headerH;i.removeClass(s,r+"fullscreen");i.removeClass(document.body,r+"fullscreen");n.removeClass("fullscreen");n.moveTo(n._initial.x,n._initial.y).resizeTo(n._initial.w,n._initial.h)}else{n._initial={x:q.x,y:q.y,w:q.w,h:q.h};n._borderBox=n.parseBox("0");n.getEl("head").style.display="none";q.deltaH-=q.headerH+2;i.addClass(s,r+"fullscreen");i.addClass(document.body,r+"fullscreen");n.addClass("fullscreen");var p=i.getWindowSize();n.moveTo(0,0).resizeTo(p.w,p.h)}}return n.reflow()},postRender:function(){var n=this,o;setTimeout(function(){n.addClass("in")},0);n._super();if(n.statusbar){n.statusbar.postRender()}n.focus();this.dragHelper=new k(n._id+"-dragh",{start:function(){o={x:n.layoutRect().x,y:n.layoutRect().y}},drag:function(p){n.moveTo(o.x+p.deltaX,o.y+p.deltaY)}});n.on("submit",function(p){if(!p.isDefaultPrevented()){n.close()}})},submit:function(){return this.fire("submit",{data:this.toJSON()})},remove:function(){var n=this,o=n.classPrefix;n.dragHelper.destroy();n._super();if(n.statusbar){this.statusbar.remove()}if(n._fullscreen){i.removeClass(document.documentElement,o+"fullscreen");i.removeClass(document.body,o+"fullscreen")}},getContentWindow:function(){var n=this.getEl().getElementsByTagName("iframe")[0];return n?n.contentWindow:null}});return j});h("tinymce/ui/MessageBox",["tinymce/ui/Window"],function(j){var i=j.extend({init:function(k){k={border:1,padding:20,layout:"flex",pack:"center",align:"center",containerCls:"panel",autoScroll:true,buttons:{type:"button",text:"Ok",action:"ok"},items:{type:"label",multiline:true,maxWidth:500,maxHeight:200}};this._super(k)},Statics:{OK:1,OK_CANCEL:2,YES_NO:3,YES_NO_CANCEL:4,msgBox:function(l){var m,n=l.callback||function(){};function k(q,o,p){return{type:"button",text:q,subtype:p?"primary":"",onClick:function(r){r.control.parents()[1].close();n(o)}}}switch(l.buttons){case i.OK_CANCEL:m=[k("Ok",true,true),k("Cancel",false)];break;case i.YES_NO:case i.YES_NO_CANCEL:m=[k("Yes",1,true),k("No",0)];if(l.buttons==i.YES_NO_CANCEL){m.push(k("Cancel",-1))}break;default:m=[k("Ok",true,true)];break}return new j({padding:20,x:l.x,y:l.y,minWidth:300,minHeight:100,layout:"flex",pack:"center",align:"center",buttons:m,title:l.title,role:"alertdialog",items:{type:"label",multiline:true,maxWidth:500,maxHeight:200,text:l.text},onPostRender:function(){this.aria("describedby",this.items()[0]._id)},onClose:l.onClose,onCancel:function(){n(false)}}).renderTo(document.body).reflow()},alert:function(k,l){if(typeof k=="string"){k={text:k}}k.callback=l;return i.msgBox(k)},confirm:function(k,l){if(typeof k=="string"){k={text:k}}k.callback=l;k.buttons=i.OK_CANCEL;return i.msgBox(k)}}});return i});h("tinymce/WindowManager",["tinymce/ui/Window","tinymce/ui/MessageBox"],function(j,i){return function(m){var l=this,n=[];function k(){if(n.length){return n[n.length-1]}}l.windows=n;m.on("remove",function(){var o=n.length;while(o--){n[o].close()}});l.open=function(o,q){var p;m.editorManager.setActive(m);o.title=o.title||" ";o.url=o.url||o.file;if(o.url){o.width=parseInt(o.width||320,10);o.height=parseInt(o.height||240,10)}if(o.body){o.items={defaults:o.defaults,type:o.bodyType||"form",items:o.body}}if(!o.url&&!o.buttons){o.buttons=[{text:"Ok",subtype:"primary",onclick:function(){p.find("form")[0].submit()}},{text:"Cancel",onclick:function(){p.close()}}]}p=new j(o);n.push(p);p.on("close",function(){var r=n.length;while(r--){if(n[r]===p){n.splice(r,1)}}if(!n.length){m.focus()}});if(o.data){p.on("postRender",function(){this.find("*").each(function(s){var r=s.name();if(r in o.data){s.value(o.data[r])}})})}p.features=o||{};p.params=q||{};if(n.length===1){m.nodeChanged()}return p.renderTo().reflow()};l.alert=function(p,q,o){i.alert(p,function(){if(q){q.call(o||this)}else{m.focus()}})};l.confirm=function(p,q,o){i.confirm(p,function(r){q.call(o||this,r)})};l.close=function(){if(k()){k().close()}};l.getParams=function(){return k()?k().params:null};l.setParams=function(o){if(k()){k().params=o}};l.getWindows=function(){return n}}});h("tinymce/util/Quirks",["tinymce/util/VK","tinymce/dom/RangeUtils","tinymce/dom/TreeWalker","tinymce/html/Node","tinymce/html/Entities","tinymce/Env","tinymce/util/Tools"],function(n,m,l,k,o,i,j){return function(p){var aj=j.each,W=p.$;var s=n.BACKSPACE,E=n.DELETE,r=p.dom,G=p.selection,an=p.settings,V=p.parser,L=p.serializer;var u=i.gecko,C=i.ie,ag=i.webkit;var ab="data:text/mce-internal,";var t=C?"Text":"URL";function aa(au,at){try{p.getDoc().execCommand(au,false,at)}catch(ar){}}function J(){var ar=p.getDoc().documentMode;return ar?ar:6}function Z(ar){return ar.isDefaultPrevented()}function Q(at){var ar;if(at.dataTransfer){if(p.selection.isCollapsed()&&at.target.tagName=="IMG"){G.select(at.target)}ar=p.selection.getContent();if(ar.length>0){at.dataTransfer.setData(t,ab+escape(ar))}}}function K(at){var au,ar;if(at.dataTransfer){au=at.dataTransfer.getData(t);if(au&&au.indexOf(ab)>=0){ar=unescape(au.substr(ab.length))}}return ar}function R(ar){if(p.queryCommandSupported("mceInsertClipboardContent")){p.execCommand("mceInsertClipboardContent",false,{content:ar})}else{p.execCommand("mceInsertContent",false,ar)}}function ap(){var aD=p.getDoc(),ax=p.dom,aE=p.selection;var at=window.MutationObserver,ay,aC;if(!at){ay=true;at=function(){var aF=[],aI;function aH(aK){var aJ=aK.relatedNode||aK.target;aF.push({target:aJ,addedNodes:[aJ]})}function aG(aK){var aJ=aK.relatedNode||aK.target;aF.push({target:aJ,attributeName:aK.attrName})}this.observe=function(aJ){aI=aJ;aI.addEventListener("DOMSubtreeModified",aH,false);aI.addEventListener("DOMNodeInsertedIntoDocument",aH,false);aI.addEventListener("DOMNodeInserted",aH,false);aI.addEventListener("DOMAttrModified",aG,false)};this.disconnect=function(){aI.removeEventListener("DOMSubtreeModified",aH,false);aI.removeEventListener("DOMNodeInsertedIntoDocument",aH,false);aI.removeEventListener("DOMNodeInserted",aH,false);aI.removeEventListener("DOMAttrModified",aG,false)};this.takeRecords=function(){return aF}}}function ar(aH){var aG=ax.schema.getBlockElements(),aF=p.getBody();if(aH.nodeName!="BR"){return false}for(aH=aH;aH!=aF&&!aG[aH.nodeName];aH=aH.parentNode){if(aH.nextSibling){return false}}return true}function au(aG,aF){var aH;for(aH=aG.nextSibling;aH&&aH!=aF;aH=aH.nextSibling){if(aH.nodeType==3&&W.trim(aH.data).length===0){continue}if(aH!==aF){return false}}return aH===aF}function az(aI,aH,aG){var aK,aJ,aF;aF=ax.schema.getNonEmptyElements();aK=new l(aG||aI,aI);while((aJ=aK[aH?"next":"prev"]())){if(aF[aJ.nodeName]&&!ar(aJ)){return aJ}if(aJ.nodeType==3&&aJ.data.length>0){return aJ}}}function aB(aG){var aJ,aH,aF,aI,aK;if(aG.collapsed){return}aJ=ax.getParent(m.getNode(aG.startContainer,aG.startOffset),ax.isBlock);aH=ax.getParent(m.getNode(aG.endContainer,aG.endOffset),ax.isBlock);aK=p.schema.getTextBlockElements();if(aJ==aH){return}if(!aK[aJ.nodeName]||!aK[aH.nodeName]){return}if(ax.getContentEditable(aJ)==="false"||ax.getContentEditable(aH)==="false"){return}aG.deleteContents();aF=az(aJ,false);aI=az(aH,true);if(!ax.isEmpty(aH)){W(aJ).append(aH.childNodes)}W(aH).remove();if(aF){if(aF.nodeType==1){if(aF.nodeName=="BR"){aG.setStartBefore(aF);aG.setEndBefore(aF)}else{aG.setStartAfter(aF);aG.setEndAfter(aF)}}else{aG.setStart(aF,aF.data.length);aG.setEnd(aF,aF.data.length)}}else{if(aI){if(aI.nodeType==1){aG.setStartBefore(aI);aG.setEndBefore(aI)}else{aG.setStart(aI,0);aG.setEnd(aI,0)}}}aE.setRng(aG);return true}function aw(aG,aL){var aI,aK,aH,aJ,aF,aM;if(!aG.collapsed){return aG}aF=aG.startContainer;aM=aG.startOffset;if(aF.nodeType==3){if(aL){if(aM<aF.data.length){return aG}}else{if(aM>0){return aG}}}aI=m.getNode(aG.startContainer,aG.startOffset);aH=ax.getParent(aI,ax.isBlock);aK=az(p.getBody(),aL,aI);aJ=ax.getParent(aK,ax.isBlock);if(!aI||!aK){return aG}if(aJ&&aH!=aJ){if(!aL){if(!au(aJ,aH)){return aG}if(aK.nodeType==1){if(aK.nodeName=="BR"){aG.setStartBefore(aK)}else{aG.setStartAfter(aK)}}else{aG.setStart(aK,aK.data.length)}if(aI.nodeType==1){aG.setEnd(aI,0)}else{aG.setEndBefore(aI)}}else{if(!au(aH,aJ)){return aG}if(aI.nodeType==1){if(aI.nodeName=="BR"){aG.setStartBefore(aI)}else{aG.setStartAfter(aI)}}else{aG.setStart(aI,aI.data.length)}if(aK.nodeType==1){aG.setEnd(aK,0)}else{aG.setEndBefore(aK)}}}return aG}function av(aG){var aF=aE.getRng();aF=aw(aF,aG);if(aB(aF)){return true}}function aA(aH){var aG,aF,aI;if(av(aH)){return}j.each(p.getBody().getElementsByTagName("*"),function(aJ){if(aJ.tagName=="SPAN"){aJ.setAttribute("mce-data-marked",1)}if(!aJ.hasAttribute("data-mce-style")&&aJ.hasAttribute("style")){p.dom.setAttrib(aJ,"style",p.dom.getAttrib(aJ,"style"))}});aG=new at(function(){});aG.observe(p.getDoc(),{childList:true,attributes:true,subtree:true,attributeFilter:["style"]});p.getDoc().execCommand(aH?"ForwardDelete":"Delete",false,null);aF=p.selection.getRng();aI=aF.startContainer.parentNode;j.each(aG.takeRecords(),function(aJ){if(!ax.isChildOf(aJ.target,p.getBody())){return}if(aJ.attributeName=="style"){var aK=aJ.target.getAttribute("data-mce-style");if(aK){aJ.target.setAttribute("style",aK)}else{aJ.target.removeAttribute("style")}}j.each(aJ.addedNodes,function(aM){if(aM.nodeName=="SPAN"&&!aM.getAttribute("mce-data-marked")){var aN,aL;if(aM==aI){aN=aF.startOffset;aL=aM.firstChild}ax.remove(aM,true);if(aL){aF.setStart(aL,aN);aF.setEnd(aL,aN);p.selection.setRng(aF)}}})});aG.disconnect();j.each(p.dom.select("span[mce-data-marked]"),function(aJ){aJ.removeAttribute("mce-data-marked")})}p.on("keydown",function(aJ){var aI=aJ.keyCode==E,aF=aJ.ctrlKey||aJ.metaKey;if(!Z(aJ)&&(aI||aJ.keyCode==s)){var aH=p.selection.getRng(),aG=aH.startContainer,aK=aH.startOffset;if(!aF&&aH.collapsed&&aG.nodeType==3){if(aI?aK<aG.data.length:aK>0){return}}aJ.preventDefault();if(aF){p.selection.getSel().modify("extend",aI?"forward":"backward",aJ.metaKey?"lineboundary":"word")}aA(aI)}});p.on("keypress",function(aK){if(!Z(aK)&&!aE.isCollapsed()&&aK.charCode&&!n.metaKeyPressed(aK)){var aF,aL,aJ,aG,aH,aI;aF=p.selection.getRng();aI=String.fromCharCode(aK.charCode);aK.preventDefault();aL=W(aF.startContainer).parents().filter(function(aM,aN){return !!p.schema.getTextInlineElements()[aN.nodeName]});aA(true);aL=aL.filter(function(aM,aN){return !W.contains(p.getBody(),aN)});if(aL.length){aJ=ax.createFragment();aL.each(function(aM,aN){aN=aN.cloneNode(false);if(aJ.hasChildNodes()){aN.appendChild(aJ.firstChild);aJ.appendChild(aN)}else{aH=aN;aJ.appendChild(aN)}aJ.appendChild(aN)});aH.appendChild(p.getDoc().createTextNode(aI));aG=ax.getParent(aF.startContainer,ax.isBlock);if(ax.isEmpty(aG)){W(aG).empty().append(aJ)}else{aF.insertNode(aJ)}aF.setStart(aH.firstChild,1);aF.setEnd(aH.firstChild,1);p.selection.setRng(aF)}else{p.selection.setContent(aI)}}});p.addCommand("Delete",function(){aA()});p.addCommand("ForwardDelete",function(){aA(true)});if(ay){return}p.on("dragstart",function(aF){aC=aE.getRng();Q(aF)});p.on("drop",function(aF){if(!Z(aF)){var aG=K(aF);if(aG){aF.preventDefault();window.setTimeout(function(){var aH=m.getCaretRangeFromPoint(aF.x,aF.y,aD);if(aC){aE.setRng(aC);aC=null}aA();aE.setRng(aH);R(aG)},0)}}});p.on("cut",function(aF){if(!Z(aF)&&aF.clipboardData){aF.preventDefault();aF.clipboardData.clearData();aF.clipboardData.setData("text/html",p.selection.getContent());aF.clipboardData.setData("text/plain",p.selection.getContent({format:"text"}));aA(true)}})}function P(){function ar(av){var au=r.create("body");var aw=av.cloneContents();au.appendChild(aw);return G.serializer.serialize(au,{format:"html"})}function at(au){if(!au.setStart){if(au.item){return false}var ay=au.duplicate();ay.moveToElementText(p.getBody());return m.compareRanges(au,ay)}var aw=ar(au);var ax=r.createRng();ax.selectNode(p.getBody());var av=ar(ax);return aw===av}p.on("keydown",function(ax){var aw=ax.keyCode,av,au;if(!Z(ax)&&(aw==E||aw==s)){av=p.selection.isCollapsed();au=p.getBody();if(av&&!r.isEmpty(au)){return}if(!av&&!at(p.selection.getRng())){return}ax.preventDefault();p.setContent("");if(au.firstChild&&r.isBlock(au.firstChild)){p.selection.setCursorLocation(au.firstChild,0)}else{p.selection.setCursorLocation(au,0)}p.nodeChanged()}})}function ao(){p.shortcuts.add("meta+a",null,"SelectAll")}function aq(){if(!p.settings.content_editable){r.bind(p.getDoc(),"focusin",function(){G.setRng(G.getRng())});r.bind(p.getDoc(),"mousedown mouseup",function(ar){if(ar.target==p.getDoc().documentElement){p.getBody().focus();if(ar.type=="mousedown"){G.placeCaretAt(ar.clientX,ar.clientY)}else{G.setRng(G.getRng())}}})}}function ad(){p.on("keydown",function(au){if(!Z(au)&&au.keyCode===s){if(!p.getBody().getElementsByTagName("hr").length){return}if(G.isCollapsed()&&G.getRng(true).startOffset===0){var at=G.getNode();var ar=at.previousSibling;if(at.nodeName=="HR"){r.remove(at);au.preventDefault();return}if(ar&&ar.nodeName&&ar.nodeName.toLowerCase()==="hr"){r.remove(ar);au.preventDefault()}}}})}function Y(){if(!window.Range.prototype.getClientRects){p.on("mousedown",function(at){if(!Z(at)&&at.target.nodeName==="HTML"){var ar=p.getBody();ar.blur();setTimeout(function(){ar.focus()},0)}})}}function x(){p.on("click",function(at){var ar=at.target;if(/^(IMG|HR)$/.test(ar.nodeName)){at.preventDefault();G.getSel().setBaseAndExtent(ar,0,ar,1);p.nodeChanged()}if(ar.nodeName=="A"&&r.hasClass(ar,"mce-item-anchor")){at.preventDefault();G.select(ar)}})}function ak(){function at(){var au=r.getAttribs(G.getStart().cloneNode(false));return function(){var av=G.getStart();if(av!==p.getBody()){r.setAttrib(av,"style",null);aj(au,function(aw){av.setAttributeNode(aw.cloneNode(true))})}}}function ar(){return !G.isCollapsed()&&r.getParent(G.getStart(),r.isBlock)!=r.getParent(G.getEnd(),r.isBlock)}p.on("keypress",function(av){var au;if(!Z(av)&&(av.keyCode==8||av.keyCode==46)&&ar()){au=at();p.getDoc().execCommand("delete",false,null);au();av.preventDefault();return false}});r.bind(p.getDoc(),"cut",function(av){var au;if(!Z(av)&&ar()){au=at();setTimeout(function(){au()},0)}})}function X(){document.body.setAttribute("role","application")}function U(){p.on("keydown",function(at){if(!Z(at)&&at.keyCode===s){if(G.isCollapsed()&&G.getRng(true).startOffset===0){var ar=G.getNode().previousSibling;if(ar&&ar.nodeName&&ar.nodeName.toLowerCase()==="table"){at.preventDefault();return false}}}})}function ah(){if(J()>7){return}aa("RespectVisibilityInDesign",true);p.contentStyles.push(".mceHideBrInPre pre br {display: none}");r.addClass(p.getBody(),"mceHideBrInPre");V.addNodeFilter("pre",function(ar){var au=ar.length,aw,at,ax,av;while(au--){aw=ar[au].getAll("br");at=aw.length;while(at--){ax=aw[at];av=ax.prev;if(av&&av.type===3&&av.value.charAt(av.value-1)!="\n"){av.value+="\n"}else{ax.parent.insert(new k("#text",3),ax,true).value="\n"}}}});L.addNodeFilter("pre",function(ar){var au=ar.length,aw,at,ax,av;while(au--){aw=ar[au].getAll("br");at=aw.length;while(at--){ax=aw[at];av=ax.prev;if(av&&av.type==3){av.value=av.value.replace(/\r?\n$/,"")}}}})}function w(){r.bind(p.getBody(),"mouseup",function(){var at,ar=G.getNode();if(ar.nodeName=="IMG"){if((at=r.getStyle(ar,"width"))){r.setAttrib(ar,"width",at.replace(/[^0-9%]+/g,""));r.setStyle(ar,"width","")}if((at=r.getStyle(ar,"height"))){r.setAttrib(ar,"height",at.replace(/[^0-9%]+/g,""));r.setStyle(ar,"height","")}}})}function am(){p.on("keydown",function(aw){var au,at,ax,ar,av;if(Z(aw)||aw.keyCode!=n.BACKSPACE){return}au=G.getRng();at=au.startContainer;ax=au.startOffset;ar=r.getRoot();av=at;if(!au.collapsed||ax!==0){return}while(av&&av.parentNode&&av.parentNode.firstChild==av&&av.parentNode!=ar){av=av.parentNode}if(av.tagName==="BLOCKQUOTE"){p.formatter.toggle("blockquote",null,av);au=r.createRng();au.setStart(at,0);au.setEnd(at,0);G.setRng(au)}})}function al(){function ar(){p._refreshContentEditable();aa("StyleWithCSS",false);aa("enableInlineTableEditing",false);if(!an.object_resizing){aa("enableObjectResizing",false)}}if(!an.readonly){p.on("BeforeExecCommand MouseDown",ar)}}function T(){function ar(){aj(r.select("a"),function(av){var at=av.parentNode,au=r.getRoot();if(at.lastChild===av){while(at&&!r.isBlock(at)){if(at.parentNode.lastChild!==at||at===au){return}at=at.parentNode}r.add(at,"br",{"data-mce-bogus":1})}})}p.on("SetContent ExecCommand",function(at){if(at.type=="setcontent"||at.command==="mceInsertLink"){ar()}})}function H(){if(an.forced_root_block){p.on("init",function(){aa("DefaultParagraphSeparator",an.forced_root_block)})}}function N(){p.on("Undo Redo SetContent",function(ar){if(!ar.initial){p.execCommand("mceRepaint")}})}function y(){p.on("keydown",function(at){var ar;if(!Z(at)&&at.keyCode==s){ar=p.getDoc().selection.createRange();if(ar&&ar.item){at.preventDefault();p.undoManager.beforeChange();r.remove(ar.item(0));p.undoManager.add()}}})}function S(){var ar;if(J()>=10){ar="";aj("p div h1 h2 h3 h4 h5 h6".split(" "),function(at,au){ar+=(au>0?",":"")+at+":empty"});p.contentStyles.push(ar+"{padding-right: 1px !important}")}}function ai(){if(J()<9){V.addNodeFilter("noscript",function(ar){var at=ar.length,au,av;while(at--){au=ar[at];av=au.firstChild;if(av){au.attr("data-mce-innertext",av.value)}}});L.addNodeFilter("noscript",function(ar){var at=ar.length,au,aw,av;while(at--){au=ar[at];aw=ar[at].firstChild;if(aw){aw.value=o.decode(aw.value)}else{av=au.attributes.map["data-mce-innertext"];if(av){au.attr("data-mce-innertext",null);aw=new k("#text",3);aw.value=av;aw.raw=true;au.append(aw)}}}})}}function O(){var ay=r.doc,at=ay.body,av,aw,az;function ax(aA,aD){var aB=at.createTextRange();try{aB.moveToPoint(aA,aD)}catch(aC){aB=null}return aB}function au(aB){var aA;if(aB.button){aA=ax(aB.x,aB.y);if(aA){if(aA.compareEndPoints("StartToStart",aw)>0){aA.setEndPoint("StartToStart",aw)}else{aA.setEndPoint("EndToEnd",aw)}aA.select()}}else{ar()}}function ar(){var aA=ay.selection.createRange();if(aw&&!aA.item&&aA.compareEndPoints("StartToEnd",aA)===0){aw.select()}r.unbind(ay,"mouseup",ar);r.unbind(ay,"mousemove",au);aw=av=0}ay.documentElement.unselectable=true;r.bind(ay,"mousedown contextmenu",function(aA){if(aA.target.nodeName==="HTML"){if(av){ar()}az=ay.documentElement;if(az.scrollHeight>az.clientHeight){return}av=1;aw=ax(aA.x,aA.y);if(aw){r.bind(ay,"mouseup",ar);r.bind(ay,"mousemove",au);r.getRoot().focus();aw.select()}}})}function af(){p.on("keyup focusin mouseup",function(ar){if(ar.keyCode!=65||!n.metaKeyPressed(ar)){G.normalize()}},true)}function A(){p.contentStyles.push("img:-moz-broken {-moz-force-broken-image-icon:1;min-width:24px;min-height:24px}")}function B(){if(!p.inline){p.on("keydown",function(){if(document.activeElement==document.body){p.getWin().focus()}})}}function F(){if(!p.inline){p.contentStyles.push("body {min-height: 150px}");p.on("click",function(at){if(at.target.nodeName=="HTML"){var ar;ar=p.selection.getRng();p.getBody().focus();p.selection.setRng(ar);p.selection.normalize();p.nodeChanged()}})}}function D(){if(i.mac){p.on("keydown",function(ar){if(n.metaKeyPressed(ar)&&(ar.keyCode==37||ar.keyCode==39)){ar.preventDefault();p.selection.getSel().modify("move",ar.keyCode==37?"backward":"forward","lineboundary")}})}}function ac(){aa("AutoUrlDetect",false)}function I(){if(!p.inline){p.on("focus blur beforegetcontent",function(){var ar=p.dom.create("br");p.getBody().appendChild(ar);ar.parentNode.removeChild(ar)},true)}}function z(){p.on("click",function(ar){var at=ar.target;do{if(at.tagName==="A"){ar.preventDefault();return}}while((at=at.parentNode))});p.contentStyles.push(".mce-content-body {-webkit-touch-callout: none}")}function q(){p.on("touchstart",function(av){var aw,au,at,ar;aw=av.target;au=new Date().getTime();ar=av.changedTouches;if(!ar||ar.length>1){return}at=ar[0];p.once("touchend",function(az){var ay=az.changedTouches[0],ax;if(new Date().getTime()-au>500){return}if(Math.abs(at.clientX-ay.clientX)>5){return}if(Math.abs(at.clientY-ay.clientY)>5){return}ax={target:aw};aj("pageX pageY clientX clientY screenX screenY".split(" "),function(aA){ax[aA]=ay[aA]});ax=p.fire("click",ax);if(!ax.isDefaultPrevented()){p.selection.placeCaretAt(ay.clientX,ay.clientY);p.nodeChanged()}})})}function M(){p.on("init",function(){p.dom.bind(p.getBody(),"submit",function(ar){ar.preventDefault()})})}function ae(){V.addNodeFilter("br",function(ar){var at=ar.length;while(at--){if(ar[at].attr("class")=="Apple-interchange-newline"){ar[at].remove()}}})}function v(){p.on("dragstart",function(ar){Q(ar)});p.on("drop",function(at){if(!Z(at)){var au=K(at);if(au){at.preventDefault();var ar=m.getCaretRangeFromPoint(at.x,at.y,p.getDoc());G.setRng(ar);R(au)}}})}am();P();af();if(ag){ap();aq();x();H();M();U();ae();q();if(i.iOS){B();F();z()}else{ao()}}if(C&&i.ie<11){ad();X();ah();w();y();S();ai();O()}if(i.ie>=11){F();I();U()}if(i.ie){ao();ac();v()}if(u){ad();Y();ak();al();T();N();A();D();U()}}});h("tinymce/util/Observable",["tinymce/util/EventDispatcher"],function(j){function i(k){if(!k._eventDispatcher){k._eventDispatcher=new j({scope:k,toggleEvent:function(l,m){if(j.isNative(l)&&k.toggleNativeEvent){k.toggleNativeEvent(l,m)}}})}return k._eventDispatcher}return{fire:function(n,m,k){var l=this;if(l.removed&&n!=="remove"){return m}m=i(l).fire(n,m,k);if(k!==false&&l.parent){var o=l.parent();while(o&&!m.isPropagationStopped()){o.fire(n,m,false);o=o.parent()}}return m},on:function(l,m,k){return i(this).on(l,m,k)},off:function(k,l){return i(this).off(k,l)},once:function(k,l){return i(this).once(k,l)},hasEventListeners:function(k){return i(this).has(k)}}});h("tinymce/EditorObservable",["tinymce/util/Observable","tinymce/dom/DOMUtils","tinymce/util/Tools"],function(i,n,k){var l=n.DOM,j;function o(r,q){if(q=="selectionchange"){return r.getDoc()}if(!r.inline&&/^mouse|click|contextmenu|drop|dragover|dragend/.test(q)){return r.getDoc().documentElement}if(r.settings.event_root){if(!r.eventRoot){r.eventRoot=l.select(r.settings.event_root)[0]}return r.eventRoot}return r.getBody()}function m(s,q){var t=o(s,q),r;if(!s.delegates){s.delegates={}}if(s.delegates[q]){return}if(s.settings.event_root){if(!j){j={};s.editorManager.on("removeEditor",function(){var u;if(!s.editorManager.activeEditor){if(j){for(u in j){s.dom.unbind(o(s,u))}j=null}}})}if(j[q]){return}r=function(y){var x=y.target,w=s.editorManager.editors,v=w.length;while(v--){var u=w[v].getBody();if(u===x||l.isChildOf(x,u)){if(!w[v].hidden){w[v].fire(q,y)}}}};j[q]=r;l.bind(t,q,r)}else{r=function(u){if(!s.hidden){s.fire(q,u)}};l.bind(t,q,r);s.delegates[q]=r}}var p={bindPendingEventDelegates:function(){var q=this;k.each(q._pendingNativeEvents,function(r){m(q,r)})},toggleNativeEvent:function(r,s){var q=this;if(q.settings.readonly){return}if(r=="focus"||r=="blur"){return}if(s){if(q.initialized){m(q,r)}else{if(!q._pendingNativeEvents){q._pendingNativeEvents=[r]}else{q._pendingNativeEvents.push(r)}}}else{if(q.initialized){q.dom.unbind(o(q,r),r,q.delegates[r]);delete q.delegates[r]}}},unbindAllNativeEvents:function(){var q=this,r;if(q.delegates){for(r in q.delegates){q.dom.unbind(o(q,r),r,q.delegates[r])}delete q.delegates}if(!q.inline){q.getBody().onload=null;q.dom.unbind(q.getWin());q.dom.unbind(q.getDoc())}q.dom.unbind(q.getBody());q.dom.unbind(q.getContainer())}};p=k.extend({},i,p);return p});h("tinymce/Shortcuts",["tinymce/util/Tools","tinymce/Env"],function(k,j){var n=k.each,m=k.explode;var i={f9:120,f10:121,f11:122};var l=k.makeMap("alt,ctrl,shift,meta,access");return function(r){var q=this,o={};function p(w,x,v,u){var y,t,s;s={func:v,scope:u||r,desc:r.translate(x)};n(m(w,"+"),function(z){if(z in l){s[z]=true}else{if(/^[0-9]{2,}$/.test(z)){s.keyCode=parseInt(z,10)}else{s.charCode=z.charCodeAt(0);s.keyCode=i[z]||z.toUpperCase().charCodeAt(0)}}});y=[s.keyCode];for(t in l){if(s[t]){y.push(t)}else{s[t]=false}}s.id=y.join(",");if(s.access){s.alt=true;if(j.mac){s.ctrl=true}else{s.shift=true}}if(s.meta){if(j.mac){s.meta=true}else{s.ctrl=true;s.meta=false}}return s}r.on("keyup keypress keydown",function(s){if((s.altKey||s.ctrlKey||s.metaKey)&&!s.isDefaultPrevented()){n(o,function(t){if(t.ctrl!=s.ctrlKey||t.meta!=s.metaKey){return}if(t.alt!=s.altKey||t.shift!=s.shiftKey){return}if(s.keyCode==t.keyCode||(s.charCode&&s.charCode==t.charCode)){s.preventDefault();if(s.type=="keydown"){t.func.call(t.scope)}return true}})}});q.add=function(v,w,t,s){var u;u=t;if(typeof t==="string"){t=function(){r.execCommand(u,false,null)}}else{if(k.isArray(u)){t=function(){r.execCommand(u[0],u[1],u[2])}}}n(m(v.toLowerCase()),function(y){var x=p(y,w,t,s);o[x.id]=x});return true};q.remove=function(t){var s=p(t);if(o[s.id]){delete o[s.id];return true}return false}}});h("tinymce/Editor",["tinymce/dom/DOMUtils","tinymce/dom/DomQuery","tinymce/AddOnManager","tinymce/NodeChange","tinymce/html/Node","tinymce/dom/Serializer","tinymce/html/Serializer","tinymce/dom/Selection","tinymce/Formatter","tinymce/UndoManager","tinymce/EnterKey","tinymce/ForceBlocks","tinymce/EditorCommands","tinymce/util/URI","tinymce/dom/ScriptLoader","tinymce/dom/EventUtils","tinymce/WindowManager","tinymce/html/Schema","tinymce/html/DomParser","tinymce/util/Quirks","tinymce/Env","tinymce/util/Tools","tinymce/EditorObservable","tinymce/Shortcuts"],function(S,A,C,m,x,K,I,E,y,n,J,G,v,D,s,t,M,o,j,B,N,q,k,P){var z=S.DOM,O=C.ThemeManager,R=C.PluginManager;var p=q.extend,L=q.each,r=q.explode;var Q=q.inArray,i=q.trim,u=q.resolve;var H=t.Event;var l=N.gecko,F=N.ie;function w(Y,V,X){var U=this,T,W;T=U.documentBaseUrl=X.documentBaseURL;W=X.baseURI;U.settings=V=p({id:Y,theme:"modern",delta_width:0,delta_height:0,popup_css:"",plugins:"",document_base_url:T,add_form_submit_trigger:true,submit_patch:true,add_unload_trigger:true,convert_urls:true,relative_urls:true,remove_script_host:true,object_resizing:true,doctype:"<!DOCTYPE html>",visual:true,font_size_style_values:"xx-small,x-small,small,medium,large,x-large,xx-large",font_size_legacy_values:"xx-small,small,medium,large,x-large,xx-large,300%",forced_root_block:"p",hidden_input:true,padd_empty_editor:true,render_ui:true,indentation:"30px",inline_styles:true,convert_fonts_to_spans:true,indent:"simple",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,article,hgroup,aside,figure,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,article,hgroup,aside,figure,option,optgroup,datalist",validate:true,entity_encoding:"named",url_converter:U.convertURL,url_converter_scope:U,ie7_compat:true},V);C.language=V.language||"en";C.languageLoad=V.language_load;C.baseURL=X.baseURL;U.id=V.id=Y;U.isNotDirty=true;U.plugins={};U.documentBaseURI=new D(V.document_base_url||T,{base_uri:W});U.baseURI=W;U.contentCSS=[];U.contentStyles=[];U.shortcuts=new P(U);U.loadedCSS={};U.editorCommands=new v(U);if(V.target){U.targetElm=V.target}U.suffix=X.suffix;U.editorManager=X;U.inline=V.inline;if(V.cache_suffix){N.cacheSuffix=V.cache_suffix.replace(/^[\?\&]+/,"")}X.fire("SetupEditor",U);U.execCallback("setup",U);U.$=A.overrideDefaults(function(){return{context:U.inline?U.getBody():U.getDoc(),element:U.getBody()}})}w.prototype={render:function(){var T=this,W=T.settings,Z=T.id,Y=T.suffix;function V(){z.unbind(window,"ready",V);T.render()}if(!H.domLoaded){z.bind(window,"ready",V);return}if(!T.getElement()){return}if(!N.contentEditable){return}if(!W.inline){T.orgVisibility=T.getElement().style.visibility;T.getElement().style.visibility="hidden"}else{T.inline=true}var X=T.getElement().form||z.getParent(Z,"form");if(X){T.formElement=X;if(W.hidden_input&&!/TEXTAREA|INPUT/i.test(T.getElement().nodeName)){z.insertAfter(z.create("input",{type:"hidden",name:Z}),Z);T.hasHiddenInput=true}T.formEventDelegate=function(aa){T.fire(aa.type,aa)};z.bind(X,"submit reset",T.formEventDelegate);T.on("reset",function(){T.setContent(T.startContent,{format:"raw"})});if(W.submit_patch&&!X.submit.nodeType&&!X.submit.length&&!X._mceOldSubmit){X._mceOldSubmit=X.submit;X.submit=function(){T.editorManager.triggerSave();T.isNotDirty=true;return X._mceOldSubmit(X)}}}T.windowManager=new M(T);if(W.encoding=="xml"){T.on("GetContent",function(aa){if(aa.save){aa.content=z.encode(aa.content)}})}if(W.add_form_submit_trigger){T.on("submit",function(){if(T.initialized){T.save()}})}if(W.add_unload_trigger){T._beforeUnload=function(){if(T.initialized&&!T.destroyed&&!T.isHidden()){T.save({format:"raw",no_events:true,set_dirty:false})}};T.editorManager.on("BeforeUnload",T._beforeUnload)}function U(){var ab=s.ScriptLoader;if(W.language&&W.language!="en"&&!W.language_url){W.language_url=T.editorManager.baseURL+"/langs/"+W.language+".js"}if(W.language_url){ab.add(W.language_url)}if(W.theme&&typeof W.theme!="function"&&W.theme.charAt(0)!="-"&&!O.urls[W.theme]){var aa=W.theme_url;if(aa){aa=T.documentBaseURI.toAbsolute(aa)}else{aa="themes/"+W.theme+"/theme"+Y+".js"}O.load(W.theme,aa)}if(q.isArray(W.plugins)){W.plugins=W.plugins.join(" ")}L(W.external_plugins,function(ad,ac){R.load(ac,ad);W.plugins+=" "+ac});L(W.plugins.split(/[ ,]/),function(ac){ac=i(ac);if(ac&&!R.urls[ac]){if(ac.charAt(0)=="-"){ac=ac.substr(1,ac.length);var ad=R.dependencies(ac);L(ad,function(af){var ae={prefix:"plugins/",resource:af,suffix:"/plugin"+Y+".js"};af=R.createUrl(ae,af);R.load(af.resource,af)})}else{R.load(ac,{prefix:"plugins/",resource:ac,suffix:"/plugin"+Y+".js"})}}});ab.loadQueue(function(){if(!T.removed){T.init()}})}U()},init:function(){var ab=this,ak=ab.settings,X=ab.getElement();var Z,ai,W,ae,ac,T,U,am,ah,ad,ag,V=[];this.editorManager.i18n.setCode(ak.language);ab.rtl=this.editorManager.i18n.rtl;ab.editorManager.add(ab);ak.aria_label=ak.aria_label||z.getAttrib(X,"aria-label",ab.getLang("aria.rich_text_area"));if(ak.theme){if(typeof ak.theme!="function"){ak.theme=ak.theme.replace(/-/,"");T=O.get(ak.theme);ab.theme=new T(ab,O.urls[ak.theme]);if(ab.theme.init){ab.theme.init(ab,O.urls[ak.theme]||ab.documentBaseUrl.replace(/\/$/,""),ab.$)}}else{ab.theme=ak.theme}}function al(aq){var ap=R.get(aq),ao,an;ao=R.urls[aq]||ab.documentBaseUrl.replace(/\/$/,"");aq=i(aq);if(ap&&Q(V,aq)===-1){L(R.dependencies(aq),function(ar){al(ar)});an=new ap(ab,ao,ab.$);ab.plugins[aq]=an;if(an.init){an.init(ab,ao);V.push(aq)}}}L(ak.plugins.replace(/\-/g,"").split(/[ ,]/),al);if(ak.render_ui&&ab.theme){ab.orgDisplay=X.style.display;if(typeof ak.theme!="function"){Z=ak.width||X.style.width||X.offsetWidth;ai=ak.height||X.style.height||X.offsetHeight;W=ak.min_height||100;ad=/^[0-9\.]+(|px)$/i;if(ad.test(""+Z)){Z=Math.max(parseInt(Z,10),100)}if(ad.test(""+ai)){ai=Math.max(parseInt(ai,10),W)}ac=ab.theme.renderUI({targetNode:X,width:Z,height:ai,deltaWidth:ak.delta_width,deltaHeight:ak.delta_height});if(!ak.content_editable){ai=(ac.iframeHeight||ai)+(typeof ai=="number"?(ac.deltaHeight||0):"");if(ai<W){ai=W}}}else{ac=ak.theme(ab,X);if(ac.editorContainer.nodeType){ac.editorContainer=ac.editorContainer.id=ac.editorContainer.id||ab.id+"_parent"}if(ac.iframeContainer.nodeType){ac.iframeContainer=ac.iframeContainer.id=ac.iframeContainer.id||ab.id+"_iframecontainer"}ai=ac.iframeHeight||X.offsetHeight}ab.editorContainer=ac.editorContainer}if(ak.content_css){L(r(ak.content_css),function(an){ab.contentCSS.push(ab.documentBaseURI.toAbsolute(an))})}if(ak.content_style){ab.contentStyles.push(ak.content_style)}if(ak.content_editable){X=ae=ac=null;return ab.initContentBody()}ab.iframeHTML=ak.doctype+"<html><head>";if(ak.document_base_url!=ab.documentBaseUrl){ab.iframeHTML+='<base href="'+ab.documentBaseURI.getURI()+'" />'}if(!N.caretAfter&&ak.ie7_compat){ab.iframeHTML+='<meta http-equiv="X-UA-Compatible" content="IE=7" />'}ab.iframeHTML+='<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />';for(ag=0;ag<ab.contentCSS.length;ag++){var af=ab.contentCSS[ag];ab.iframeHTML+=('<link type="text/css" rel="stylesheet" href="'+q._addCacheSuffix(af)+'" />');ab.loadedCSS[af]=true}am=ak.body_id||"tinymce";if(am.indexOf("=")!=-1){am=ab.getParam("body_id","","hash");am=am[ab.id]||am}ah=ak.body_class||"";if(ah.indexOf("=")!=-1){ah=ab.getParam("body_class","","hash");ah=ah[ab.id]||""}if(ak.content_security_policy){ab.iframeHTML+='<meta http-equiv="Content-Security-Policy" content="'+ak.content_security_policy+'" />'}ab.iframeHTML+='</head><body id="'+am+'" class="mce-content-body '+ah+'" data-id="'+ab.id+'"><br></body></html>';var aa='javascript:(function(){document.open();document.domain="'+document.domain+'";var ed = window.parent.tinymce.get("'+ab.id+'");document.write(ed.iframeHTML);document.close();ed.initContentBody(true);})()';if(document.domain!=location.hostname){U=aa}var Y=z.create("iframe",{id:ab.id+"_ifr",frameBorder:"0",allowTransparency:"true",title:ab.editorManager.translate("Rich Text Area. Press ALT-F9 for menu. Press ALT-F10 for toolbar. Press ALT-0 for help"),style:{width:"100%",height:ai,display:"block"}});Y.onload=function(){Y.onload=null;ab.fire("load")};z.setAttrib(Y,"src",U||'javascript:""');ab.contentAreaContainer=ac.iframeContainer;ab.iframeElement=Y;ae=z.add(ac.iframeContainer,Y);if(F){try{ab.getDoc()}catch(aj){ae.src=U=aa}}if(ac.editorContainer){z.get(ac.editorContainer).style.display=ab.orgDisplay;ab.hidden=z.isHidden(ac.editorContainer)}ab.getElement().style.display="none";z.setAttrib(ab.id,"aria-hidden",true);if(!U){ab.initContentBody()}X=ae=ac=null},initContentBody:function(U){var V=this,W=V.settings,X=V.getElement(),Y=V.getDoc(),T,Z;if(!W.inline){V.getElement().style.visibility=V.orgVisibility}if(!U&&!W.content_editable){Y.open();Y.write(V.iframeHTML);Y.close()}if(W.content_editable){V.on("remove",function(){var aa=this.getBody();z.removeClass(aa,"mce-content-body");z.removeClass(aa,"mce-edit-focus");z.setAttrib(aa,"contentEditable",null)});z.addClass(X,"mce-content-body");V.contentDocument=Y=W.content_document||document;V.contentWindow=W.content_window||window;V.bodyElement=X;W.content_document=W.content_window=null;W.root_name=X.nodeName.toLowerCase()}T=V.getBody();T.disabled=true;if(!W.readonly){if(V.inline&&z.getStyle(T,"position",true)=="static"){T.style.position="relative"}T.contentEditable=V.getParam("content_editable_state",true)}T.disabled=false;V.schema=new o(W);V.dom=new S(Y,{keep_values:true,url_converter:V.convertURL,url_converter_scope:V,hex_colors:W.force_hex_style_colors,class_filter:W.class_filter,update_styles:true,root_element:V.inline?V.getBody():null,collect:W.content_editable,schema:V.schema,onSetAttrib:function(aa){V.fire("SetAttrib",aa)}});V.parser=new j(W,V.schema);V.parser.addAttributeFilter("src,href,style,tabindex",function(aa,ab){var ac=aa.length,ae,ag=V.dom,af,ad;while(ac--){ae=aa[ac];af=ae.attr(ab);ad="data-mce-"+ab;if(!ae.attributes.map[ad]){if(ab==="style"){af=ag.serializeStyle(ag.parseStyle(af),ae.name);if(!af.length){af=null}ae.attr(ad,af);ae.attr(ab,af)}else{if(ab==="tabindex"){ae.attr(ad,af);ae.attr(ab,null)}else{ae.attr(ad,V.convertURL(af,ab,ae.name))}}}}});V.parser.addNodeFilter("script",function(aa){var ab=aa.length,ac;while(ab--){ac=aa[ab];ac.attr("type","mce-"+(ac.attr("type")||"no/type"))}});V.parser.addNodeFilter("#cdata",function(aa){var ab=aa.length,ac;while(ab--){ac=aa[ab];ac.type=8;ac.name="#comment";ac.value="[CDATA["+ac.value+"]]"}});V.parser.addNodeFilter("p,h1,h2,h3,h4,h5,h6,div",function(ab){var ac=ab.length,ad,aa=V.schema.getNonEmptyElements();while(ac--){ad=ab[ac];if(ad.isEmpty(aa)){ad.append(new x("br",1)).shortEnded=true}}});V.serializer=new K(W,V);V.selection=new E(V.dom,V.getWin(),V.serializer,V);V.formatter=new y(V);V.undoManager=new n(V);V.forceBlocks=new G(V);V.enterKey=new J(V);V._nodeChangeDispatcher=new m(V);V.fire("PreInit");if(!W.browser_spellcheck&&!W.gecko_spellcheck){Y.body.spellcheck=false;z.setAttrib(T,"spellcheck","false")}V.fire("PostRender");V.quirks=new B(V);if(W.directionality){T.dir=W.directionality}if(W.nowrap){T.style.whiteSpace="nowrap"}if(W.protect){V.on("BeforeSetContent",function(aa){L(W.protect,function(ab){aa.content=aa.content.replace(ab,function(ac){return"<!--mce:protected "+escape(ac)+"-->"})})})}V.on("SetContent",function(){V.addVisual(V.getBody())});if(W.padd_empty_editor){V.on("PostProcess",function(aa){aa.content=aa.content.replace(/^(<p[^>]*>( | |\s|\u00a0|)<\/p>[\r\n]*|<br \/>[\r\n]*)$/,"")})}V.load({initial:true,format:"html"});V.startContent=V.getContent({format:"raw"});V.initialized=true;V.bindPendingEventDelegates();V.fire("init");V.focus(true);V.nodeChanged({initial:true});V.execCallback("init_instance_callback",V);if(V.contentStyles.length>0){Z="";L(V.contentStyles,function(aa){Z+=aa+"\r\n"});V.dom.addStyle(Z)}L(V.contentCSS,function(aa){if(!V.loadedCSS[aa]){V.dom.loadCSS(aa);V.loadedCSS[aa]=true}});if(W.auto_focus){setTimeout(function(){var aa;if(W.auto_focus===true){aa=V}else{aa=V.editorManager.get(W.auto_focus)}if(!aa.destroyed){aa.focus()}},100)}X=Y=T=null},focus:function(U){var ab=this,aa=ab.selection,X=ab.settings.content_editable,T;var Y,Z=ab.getDoc(),V;if(!U){T=aa.getRng();if(T.item){Y=T.item(0)}ab._refreshContentEditable();if(!X){if(!N.opera){ab.getBody().focus()}ab.getWin().focus()}if(l||X){V=ab.getBody();if(V.setActive){try{V.setActive()}catch(W){V.focus()}}else{V.focus()}if(X){aa.normalize()}}if(Y&&Y.ownerDocument==Z){T=Z.body.createControlRange();T.addElement(Y);T.select()}}ab.editorManager.setActive(ab)},execCallback:function(U){var T=this,W=T.settings[U],V;if(!W){return}if(T.callbackLookup&&(V=T.callbackLookup[U])){W=V.func;V=V.scope}if(typeof W==="string"){V=W.replace(/\.\w+$/,"");V=V?u(V):0;W=u(W);T.callbackLookup=T.callbackLookup||{};T.callbackLookup[U]={func:W,scope:V}}return W.apply(V||T,Array.prototype.slice.call(arguments,1))},translate:function(V){var U=this.settings.language||"en",T=this.editorManager.i18n;if(!V){return""}return T.data[U+"."+V]||V.replace(/\{\#([^\}]+)\}/g,function(X,W){return T.data[U+"."+W]||"{#"+W+"}"})},getLang:function(T,U){return(this.editorManager.i18n.data[(this.settings.language||"en")+"."+T]||(U!==g?U:"{#"+T+"}"))},getParam:function(U,X,V){var W=U in this.settings?this.settings[U]:X,T;if(V==="hash"){T={};if(typeof W==="string"){L(W.indexOf("=")>0?W.split(/[;,](?![^=;,]*(?:[;,]|$))/):W.split(","),function(Y){Y=Y.split("=");if(Y.length>1){T[i(Y[0])]=i(Y[1])}else{T[i(Y[0])]=i(Y)}})}else{T=W}return T}return W},nodeChanged:function(T){this._nodeChangeDispatcher.nodeChanged(T)},addButton:function(U,V){var T=this;if(V.cmd){V.onclick=function(){T.execCommand(V.cmd)}}if(!V.text&&!V.icon){V.icon=U}T.buttons=T.buttons||{};V.tooltip=V.tooltip||V.title;T.buttons[U]=V},addMenuItem:function(U,V){var T=this;if(V.cmd){V.onclick=function(){T.execCommand(V.cmd)}}T.menuItems=T.menuItems||{};T.menuItems[U]=V},addCommand:function(T,V,U){this.editorCommands.addCommand(T,V,U)},addQueryStateHandler:function(T,V,U){this.editorCommands.addQueryStateHandler(T,V,U)},addQueryValueHandler:function(T,V,U){this.editorCommands.addQueryValueHandler(T,V,U)},addShortcut:function(V,W,U,T){this.shortcuts.add(V,W,U,T)},execCommand:function(W,V,U,T){return this.editorCommands.execCommand(W,V,U,T)},queryCommandState:function(T){return this.editorCommands.queryCommandState(T)},queryCommandValue:function(T){return this.editorCommands.queryCommandValue(T)},queryCommandSupported:function(T){return this.editorCommands.queryCommandSupported(T)},show:function(){var T=this;if(T.hidden){T.hidden=false;if(T.inline){T.getBody().contentEditable=true}else{z.show(T.getContainer());z.hide(T.id)}T.load();T.fire("show")}},hide:function(){var T=this,U=T.getDoc();if(!T.hidden){if(F&&U&&!T.inline){U.execCommand("SelectAll")}T.save();if(T.inline){T.getBody().contentEditable=false;if(T==T.editorManager.focusedEditor){T.editorManager.focusedEditor=null}}else{z.hide(T.getContainer());z.setStyle(T.id,"display",T.orgDisplay)}T.hidden=true;T.fire("hide")}},isHidden:function(){return !!this.hidden},setProgressState:function(T,U){this.fire("ProgressState",{state:T,time:U})},load:function(U){var T=this,W=T.getElement(),V;if(W){U=U||{};U.load=true;V=T.setContent(W.value!==g?W.value:W.innerHTML,U);U.element=W;if(!U.no_events){T.fire("LoadContent",U)}U.element=W=null;return V}},save:function(U){var T=this,X=T.getElement(),V,W;if(!X||!T.initialized){return}U=U||{};U.save=true;U.element=X;V=U.content=T.getContent(U);if(!U.no_events){T.fire("SaveContent",U)}V=U.content;if(!/TEXTAREA|INPUT/i.test(X.nodeName)){if(!T.inline){X.innerHTML=V}if((W=z.getParent(T.id,"form"))){L(W.elements,function(Y){if(Y.name==T.id){Y.value=V;return false}})}}else{X.value=V}U.element=X=null;if(U.set_dirty!==false){T.isNotDirty=true}return V},setContent:function(X,V){var U=this,T=U.getBody(),W;V=V||{};V.format=V.format||"html";V.set=true;V.content=X;if(!V.no_events){U.fire("BeforeSetContent",V)}X=V.content;if(X.length===0||/^\s+$/.test(X)){W=U.settings.forced_root_block;if(W&&U.schema.isValidChild(T.nodeName.toLowerCase(),W.toLowerCase())){X=F&&F<11?"":'<br data-mce-bogus="1">';X=U.dom.createHTML(W,U.settings.forced_root_block_attrs,X)}else{if(!F){X='<br data-mce-bogus="1">'}}U.dom.setHTML(T,X);U.fire("SetContent",V)}else{if(V.format!=="raw"){X=new I({},U.schema).serialize(U.parser.parse(X,{isRootContent:true}))}V.content=i(X);U.dom.setHTML(T,V.content);if(!V.no_events){U.fire("SetContent",V)}}return V.content},getContent:function(V){var U=this,W,T=U.getBody();V=V||{};V.format=V.format||"html";V.get=true;V.getInner=true;if(!V.no_events){U.fire("BeforeGetContent",V)}if(V.format=="raw"){W=T.innerHTML}else{if(V.format=="text"){W=T.innerText||T.textContent}else{W=U.serializer.serialize(T,V)}}if(V.format!="text"){V.content=i(W)}else{V.content=W}if(!V.no_events){U.fire("GetContent",V)}return V.content},insertContent:function(U,T){if(T){U=p({content:U},T)}this.execCommand("mceInsertContent",false,U)},isDirty:function(){return !this.isNotDirty},getContainer:function(){var T=this;if(!T.container){T.container=z.get(T.editorContainer||T.id+"_parent")}return T.container},getContentAreaContainer:function(){return this.contentAreaContainer},getElement:function(){if(!this.targetElm){this.targetElm=z.get(this.id)}return this.targetElm},getWin:function(){var T=this,U;if(!T.contentWindow){U=T.iframeElement;if(U){T.contentWindow=U.contentWindow}}return T.contentWindow},getDoc:function(){var T=this,U;if(!T.contentDocument){U=T.getWin();if(U){T.contentDocument=U.document}}return T.contentDocument},getBody:function(){return this.bodyElement||this.getDoc().body},convertURL:function(V,U,X){var T=this,W=T.settings;if(W.urlconverter_callback){return T.execCallback("urlconverter_callback",V,X,true,U)}if(!W.convert_urls||(X&&X.nodeName=="LINK")||V.indexOf("file:")===0||V.length===0){return V}if(W.relative_urls){return T.documentBaseURI.toRelative(V)}V=T.documentBaseURI.toAbsolute(V,W.remove_script_host);return V},addVisual:function(X){var U=this,V=U.settings,W=U.dom,T;X=X||U.getBody();if(U.hasVisual===g){U.hasVisual=V.visual}L(W.select("table,a",X),function(Z){var Y;switch(Z.nodeName){case"TABLE":T=V.visual_table_class||"mce-item-table";Y=W.getAttrib(Z,"border");if((!Y||Y=="0")&&U.hasVisual){W.addClass(Z,T)}else{W.removeClass(Z,T)}return;case"A":if(!W.getAttrib(Z,"href",false)){Y=W.getAttrib(Z,"name")||Z.id;T=V.visual_anchor_class||"mce-item-anchor";if(Y&&U.hasVisual){W.addClass(Z,T)}else{W.removeClass(Z,T)}}return}});U.fire("VisualAid",{element:X,hasVisual:U.hasVisual})},remove:function(){var T=this;if(!T.removed){T.save();T.removed=1;T.unbindAllNativeEvents();if(T.hasHiddenInput){z.remove(T.getElement().nextSibling)}if(!T.inline){if(F&&F<10){T.getDoc().execCommand("SelectAll",false,null)}z.setStyle(T.id,"display",T.orgDisplay);T.getBody().onload=null}T.fire("remove");T.editorManager.remove(T);z.remove(T.getContainer());T.destroy()}},destroy:function(V){var T=this,U;if(T.destroyed){return}if(!V&&!T.removed){T.remove();return}if(!V){T.editorManager.off("beforeunload",T._beforeUnload);if(T.theme&&T.theme.destroy){T.theme.destroy()}T.selection.destroy();T.dom.destroy()}U=T.formElement;if(U){if(U._mceOldSubmit){U.submit=U._mceOldSubmit;U._mceOldSubmit=null}z.unbind(U,"submit reset",T.formEventDelegate)}T.contentAreaContainer=T.formElement=T.container=T.editorContainer=null;T.bodyElement=T.contentDocument=T.contentWindow=null;T.iframeElement=T.targetElm=null;if(T.selection){T.selection=T.selection.win=T.selection.dom=T.selection.dom.doc=null}T.destroyed=1},_refreshContentEditable:function(){var U=this,T,V;if(U._isHidden()){T=U.getBody();V=T.parentNode;V.removeChild(T);V.appendChild(T);T.focus()}},_isHidden:function(){var T;if(!l){return 0}T=this.selection.getSel();return(!T||!T.rangeCount||T.rangeCount===0)}};p(w.prototype,k);return w});h("tinymce/util/I18n",[],function(){var j={},i="en";return{setCode:function(k){if(k){i=k;this.rtl=this.data[k]?this.data[k]._dir==="rtl":false}},getCode:function(){return i},rtl:false,add:function(n,l){var k=j[n];if(!k){j[n]=k={}}for(var m in l){k[m]=l[m]}this.setCode(n)},translate:function(m){var k;k=j[i];if(!k){k={}}if(typeof m=="undefined"){return m}if(typeof m!="string"&&m.raw){return m.raw}if(m.push){var l=m.slice(1);m=(k[m[0]]||m[0]).replace(/\{([0-9]+)\}/g,function(o,n){return l[n]})}return(k[m]||m).replace(/{context:\w+}$/,"")},data:j}});h("tinymce/FocusManager",["tinymce/dom/DOMUtils","tinymce/Env"],function(o,j){var k,m,l,n=o.DOM;function i(v){function q(){try{return document.activeElement}catch(w){return document.body}}function u(x,w){if(w&&w.startContainer){if(!x.isChildOf(w.startContainer,x.getRoot())||!x.isChildOf(w.endContainer,x.getRoot())){return}return{startContainer:w.startContainer,startOffset:w.startOffset,endContainer:w.endContainer,endOffset:w.endOffset}}return w}function p(y,x){var w;if(x.startContainer){w=y.getDoc().createRange();w.setStart(x.startContainer,x.startOffset);w.setEnd(x.endContainer,x.endOffset)}else{w=x}return w}function t(w){return !!n.getParent(w,i.isEditorUIElement)}function r(x){var w=x.editor;w.on("init",function(){if(w.inline||j.ie){if("onbeforedeactivate" in document&&j.ie<9){w.dom.bind(w.getBody(),"beforedeactivate",function(z){if(z.target!=w.getBody()){return}try{w.lastRng=w.selection.getRng()}catch(y){}})}else{w.on("nodechange mouseup keyup",function(z){var y=q();if(z.type=="nodechange"&&z.selectionChange){return}if(y&&y.id==w.id+"_ifr"){y=w.getBody()}if(w.dom.isChildOf(y,w.getBody())){w.lastRng=w.selection.getRng()}})}if(j.webkit&&!k){k=function(){var z=v.activeEditor;if(z&&z.selection){var y=z.selection.getRng();if(y&&!y.collapsed){w.lastRng=y}}};n.bind(document,"selectionchange",k)}}});w.on("setcontent",function(){w.lastRng=null});w.on("mousedown",function(){w.selection.lastFocusBookmark=null});w.on("focusin",function(){var y=v.focusedEditor;if(w.selection.lastFocusBookmark){w.selection.setRng(p(w,w.selection.lastFocusBookmark));w.selection.lastFocusBookmark=null}if(y!=w){if(y){y.fire("blur",{focusedEditor:w})}v.setActive(w);v.focusedEditor=w;w.fire("focus",{blurredEditor:y});w.focus(true)}w.lastRng=null});w.on("focusout",function(){window.setTimeout(function(){var y=v.focusedEditor;if(!t(q())&&y==w){w.fire("blur",{focusedEditor:null});v.focusedEditor=null;if(w.selection){w.selection.lastFocusBookmark=null}}},0)});if(!m){m=function(z){var y=v.activeEditor;if(y&&z.target.ownerDocument==document){if(y.selection&&z.target!=y.getBody()){y.selection.lastFocusBookmark=u(y.dom,y.lastRng)}if(z.target!=document.body&&!t(z.target)&&v.focusedEditor==y){y.fire("blur",{focusedEditor:null});v.focusedEditor=null}}};n.bind(document,"focusin",m)}if(w.inline&&!l){l=function(A){var z=v.activeEditor;if(z.inline&&!z.dom.isChildOf(A.target,z.getBody())){var y=z.selection.getRng();if(!y.collapsed){z.lastRng=y}}};n.bind(document,"mouseup",l)}}function s(w){if(v.focusedEditor==w.editor){v.focusedEditor=null}if(!v.activeEditor){n.unbind(document,"selectionchange",k);n.unbind(document,"focusin",m);n.unbind(document,"mouseup",l);k=m=l=null}}v.on("AddEditor",r);v.on("RemoveEditor",s)}i.isEditorUIElement=function(p){return p.className.toString().indexOf("mce-")!==-1};return i});h("tinymce/EditorManager",["tinymce/Editor","tinymce/dom/DomQuery","tinymce/dom/DOMUtils","tinymce/util/URI","tinymce/Env","tinymce/util/Tools","tinymce/util/Observable","tinymce/util/I18n","tinymce/FocusManager"],function(s,k,w,n,j,i,p,t,m){var y=w.DOM;var u=i.explode,l=i.each,x=i.extend;var z=0,q,r;function v(C){var D=r.editors,B;delete D[C.id];for(var A=0;A<D.length;A++){if(D[A]==C){D.splice(A,1);B=true;break}}if(r.activeEditor==C){r.activeEditor=D[0]}if(r.focusedEditor==C){r.focusedEditor=null}return B}function o(A){if(A&&!(A.getContainer()||A.getBody()).parentNode){v(A);A.unbindAllNativeEvents();A.destroy(true);A=null}return A}r={$:k,majorVersion:"4",minorVersion:"1.10",releaseDate:"2015-05-05",editors:[],i18n:t,activeEditor:null,setup:function(){var D=this,F,B,G="",C,H;B=document.location.href;if(/^[^:]+:\/\/\/?[^\/]+\//.test(B)){B=B.replace(/[\?#].*$/,"").replace(/[\/\\][^\/]+$/,"");if(!/[\/\\]$/.test(B)){B+="/"}}C=window.tinymce||window.tinyMCEPreInit;if(C){F=C.base||C.baseURL;G=C.suffix}else{var A=document.getElementsByTagName("script");for(var E=0;E<A.length;E++){H=A[E].src;if(/tinymce(\.full|\.jquery|)(\.min|\.dev|)\.js/.test(H)){if(H.indexOf(".min")!=-1){G=".min"}F=H.substring(0,H.lastIndexOf("/"));break}}if(!F&&document.currentScript){H=document.currentScript.src;if(H.indexOf(".min")!=-1){G=".min"}F=H.substring(0,H.lastIndexOf("/"))}}D.baseURL=new n(B).toAbsolute(F);D.documentBaseURL=B;D.baseURI=new n(D.baseURL);D.suffix=G;D.focusManager=new m(D)},init:function(F){var A=this,G=[];function E(J){var I=J.id;if(!I){I=J.name;if(I&&!y.get(I)){I=J.name}else{I=y.uniqueId()}J.setAttribute("id",I)}return I}function C(L,J,K){if(!o(A.get(L))){var I=new s(L,J,A);I.targetElm=I.targetElm||K;G.push(I);I.render()}}function H(I){var J=F[I];if(!J){return}return J.apply(A,Array.prototype.slice.call(arguments,2))}function D(J,I){return I.constructor===RegExp?I.test(J.className):y.hasClass(J,I)}function B(){var I,J;y.unbind(window,"ready",B);H("onpageload");if(F.types){l(F.types,function(K){l(y.select(K.selector),function(L){C(E(L),x({},F,K),L)})});return}else{if(F.selector){l(y.select(F.selector),function(K){C(E(K),F,K)});return}else{if(F.target){C(E(F.target),F)}}}switch(F.mode){case"exact":I=F.elements||"";if(I.length>0){l(u(I),function(L){var K;if((K=y.get(L))){C(L,F,K)}else{l(document.forms,function(M){l(M.elements,function(N){if(N.name===L){L="mce_editor_"+z++;y.setAttrib(N,"id",L);C(L,F,N)}})})}})}break;case"textareas":case"specific_textareas":l(y.select("textarea"),function(K){if(F.editor_deselector&&D(K,F.editor_deselector)){return}if(!F.editor_selector||D(K,F.editor_selector)){C(E(K),F,K)}});break}if(F.oninit){I=J=0;l(G,function(K){J++;if(!K.initialized){K.on("init",function(){I++;if(I==J){H("oninit")}})}else{I++}if(I==J){H("oninit")}})}}A.settings=F;y.bind(window,"ready",B)},get:function(A){if(!arguments.length){return this.editors}return A in this.editors?this.editors[A]:null},add:function(B){var A=this,C=A.editors;C[B.id]=B;C.push(B);A.activeEditor=B;A.fire("AddEditor",{editor:B});if(!q){q=function(){A.fire("BeforeUnload")};y.bind(window,"beforeunload",q)}return B},createEditor:function(B,A){return this.add(new s(B,A,this))},remove:function(A){var B=this,C,E=B.editors,D;if(!A){for(C=E.length-1;C>=0;C--){B.remove(E[C])}return}if(typeof A=="string"){A=A.selector||A;l(y.select(A),function(F){D=E[F.id];if(D){B.remove(D)}});return}D=A;if(!E[D.id]){return null}if(v(D)){B.fire("RemoveEditor",{editor:D})}if(!E.length){y.unbind(window,"beforeunload",q)}D.remove();return D},execCommand:function(E,D,C){var A=this,B=A.get(C);switch(E){case"mceAddEditor":if(!A.get(C)){new s(C,A.settings,A).render()}return true;case"mceRemoveEditor":if(B){B.remove()}return true;case"mceToggleEditor":if(!B){A.execCommand("mceAddEditor",0,C);return true}if(B.isHidden()){B.show()}else{B.hide()}return true}if(A.activeEditor){return A.activeEditor.execCommand(E,D,C)}return false},triggerSave:function(){l(this.editors,function(A){A.save()})},addI18n:function(B,A){t.add(B,A)},translate:function(A){return t.translate(A)},setActive:function(A){var B=this.activeEditor;if(this.activeEditor!=A){if(B){B.fire("deactivate",{relatedTarget:A})}A.fire("activate",{relatedTarget:B})}this.activeEditor=A}};x(r,p);r.setup();window.tinymce=window.tinyMCE=r;return r});h("tinymce/LegacyInput",["tinymce/EditorManager","tinymce/util/Tools"],function(j,i){var l=i.each,k=i.explode;j.on("AddEditor",function(n){var m=n.editor;m.on("preInit",function(){var q,t,s,p=m.settings;function o(v,u){l(u,function(x,w){if(x){s.setStyle(v,w,x)}});s.rename(v,"span")}function r(u){s=m.dom;if(p.convert_fonts_to_spans){l(s.select("font,u,strike",u.node),function(v){q[v.nodeName.toLowerCase()](s,v)})}}if(p.inline_styles){t=k(p.font_size_legacy_values);q={font:function(v,u){o(u,{backgroundColor:u.style.backgroundColor,color:u.color,fontFamily:u.face,fontSize:t[parseInt(u.size,10)-1]})},u:function(v,u){if(m.settings.schema==="html4"){o(u,{textDecoration:"underline"})}},strike:function(v,u){o(u,{textDecoration:"line-through"})}};m.on("PreProcess SetContent",r)}})})});h("tinymce/util/XHR",["tinymce/util/Observable","tinymce/util/Tools"],function(i,j){var k={send:function(m){var o,n=0;function l(){if(!m.async||o.readyState==4||n++>10000){if(m.success&&n<10000&&o.status==200){m.success.call(m.success_scope,""+o.responseText,o,m)}else{if(m.error){m.error.call(m.error_scope,n>10000?"TIMED_OUT":"GENERAL",o,m)}}o=null}else{setTimeout(l,10)}}m.scope=m.scope||this;m.success_scope=m.success_scope||m.scope;m.error_scope=m.error_scope||m.scope;m.async=m.async===false?false:true;m.data=m.data||"";o=new XMLHttpRequest();if(o){if(o.overrideMimeType){o.overrideMimeType(m.content_type)}o.open(m.type||(m.data?"POST":"GET"),m.url,m.async);if(m.crossDomain){o.withCredentials=true}if(m.content_type){o.setRequestHeader("Content-Type",m.content_type)}o.setRequestHeader("X-Requested-With","XMLHttpRequest");o=k.fire("beforeSend",{xhr:o,settings:m}).xhr;o.send(m.data);if(!m.async){return l()}setTimeout(l,10)}}};j.extend(k,i);return k});h("tinymce/util/JSON",[],function(){function i(p,k){var n,j,m,l;k=k||'"';if(p===null){return"null"}m=typeof p;if(m=="string"){j="\bb\tt\nn\ff\rr\"\"''\\\\";return k+p.replace(/([\u0080-\uFFFF\x00-\x1f\"\'\\])/g,function(q,o){if(k==='"'&&q==="'"){return q}n=j.indexOf(o);if(n+1){return"\\"+j.charAt(n+1)}q=o.charCodeAt().toString(16);return"\\u"+"0000".substring(q.length)+q})+k}if(m=="object"){if(p.hasOwnProperty&&Object.prototype.toString.call(p)==="[object Array]"){for(n=0,j="[";n<p.length;n++){j+=(n>0?",":"")+i(p[n],k)}return j+"]"}j="{";for(l in p){if(p.hasOwnProperty(l)){j+=typeof p[l]!="function"?(j.length>1?","+k:k)+l+k+":"+i(p[l],k):""}}return j+"}"}return""+p}return{serialize:i,parse:function(k){try{return window[String.fromCharCode(101)+"val"]("("+k+")")}catch(j){}}}});h("tinymce/util/JSONRequest",["tinymce/util/JSON","tinymce/util/XHR","tinymce/util/Tools"],function(l,k,j){var m=j.extend;function i(n){this.settings=m({},n);this.count=0}i.sendRPC=function(n){return new i().send(n)};i.prototype={send:function(p){var o=p.error,n=p.success;p=m(this.settings,p);p.success=function(r,q){r=l.parse(r);if(typeof r=="undefined"){r={error:"JSON Parse error."}}if(r.error){o.call(p.error_scope||p.scope,r.error,q)}else{n.call(p.success_scope||p.scope,r.result)}};p.error=function(r,q){if(o){o.call(p.error_scope||p.scope,r,q)}};p.data=l.serialize({id:p.id||"c"+(this.count++),method:p.method,params:p.params});p.content_type="application/json";k.send(p)}};return i});h("tinymce/util/JSONP",["tinymce/dom/DOMUtils"],function(i){return{callbacks:{},count:0,send:function(k){var j=this,m=i.DOM,l=k.count!==g?k.count:j.count;var n="tinymce_jsonp_"+l;j.callbacks[l]=function(o){m.remove(n);delete j.callbacks[l];k.callback(o)};m.add(m.doc.body,"script",{id:n,src:k.url,type:"text/javascript"});j.count++}}});h("tinymce/util/LocalStorage",[],function(){var l,k,o,q,r,j;try{if(window.localStorage){return localStorage}}catch(n){}r="tinymce";k=document.documentElement;j=!!k.addBehavior;if(j){k.addBehavior("#default#userData")}function i(){q=[];for(var s in o){q.push(s)}l.length=q.length}function p(){var s,v,u,x=0;o={};if(!j){return}function t(y){var A,z;z=y!==g?x+y:v.indexOf(",",x);if(z===-1||z>v.length){return null}A=v.substring(x,z);x=z+1;return A}k.load(r);v=k.getAttribute(r)||"";do{var w=t();if(w===null){break}s=t(parseInt(w,32)||0);if(s!==null){w=t();if(w===null){break}u=t(parseInt(w,32)||0);if(s){o[s]=u}}}while(s!==null);i()}function m(){var v,u="";if(!j){return}for(var t in o){v=o[t];u+=(u?",":"")+t.length.toString(32)+","+t+","+v.length.toString(32)+","+v}k.setAttribute(r,u);try{k.save(r)}catch(s){}i()}l={key:function(s){return q[s]},getItem:function(s){return s in o?o[s]:null},setItem:function(s,t){o[s]=""+t;m()},removeItem:function(s){delete o[s];m()},clear:function(){o={};m()}};p();return l});h("tinymce/Compat",["tinymce/dom/DOMUtils","tinymce/dom/EventUtils","tinymce/dom/ScriptLoader","tinymce/AddOnManager","tinymce/util/Tools","tinymce/Env"],function(m,o,n,l,j,i){var k=window.tinymce;k.DOM=m.DOM;k.ScriptLoader=n.ScriptLoader;k.PluginManager=l.PluginManager;k.ThemeManager=l.ThemeManager;k.dom=k.dom||{};k.dom.Event=o.Event;j.each(j,function(q,p){k[p]=q});j.each("isOpera isWebKit isIE isGecko isMac".split(" "),function(p){k[p]=i[p.substr(2).toLowerCase()]});return{}});h("tinymce/ui/Layout",["tinymce/util/Class","tinymce/util/Tools"],function(i,j){return i.extend({Defaults:{firstControlClass:"first",lastControlClass:"last"},init:function(k){this.settings=j.extend({},this.Defaults,k)},preRender:function(k){k.addClass(this.settings.containerClass,"body")},applyClasses:function(k){var m=this,p=m.settings,l,o,n;l=k.items().filter(":visible");o=p.firstControlClass;n=p.lastControlClass;l.each(function(q){q.removeClass(o).removeClass(n);if(p.controlClass){q.addClass(p.controlClass)}});l.eq(0).addClass(o);l.eq(-1).addClass(n)},renderHtml:function(k){var m=this,o=m.settings,l,n="";l=k.items();l.eq(0).addClass(o.firstControlClass);l.eq(-1).addClass(o.lastControlClass);l.each(function(p){if(o.controlClass){p.addClass(o.controlClass)}n+=p.renderHtml()});return n},recalc:function(){},postRender:function(){}})});h("tinymce/ui/AbsoluteLayout",["tinymce/ui/Layout"],function(i){return i.extend({Defaults:{containerClass:"abs-layout",controlClass:"abs-layout-item"},recalc:function(j){j.items().filter(":visible").each(function(l){var k=l.settings;l.layoutRect({x:k.x,y:k.y,w:k.w,h:k.h});if(l.recalc){l.recalc()}})},renderHtml:function(j){return'<div id="'+j._id+'-absend" class="'+j.classPrefix+'abs-end"></div>'+this._super(j)}})});h("tinymce/ui/Tooltip",["tinymce/ui/Control","tinymce/ui/Movable"],function(j,i){return j.extend({Mixins:[i],Defaults:{classes:"widget tooltip tooltip-n"},text:function(l){var k=this;if(typeof l!="undefined"){k._value=l;if(k._rendered){k.getEl().lastChild.innerHTML=k.encode(l)}return k}return k._value},renderHtml:function(){var k=this,l=k.classPrefix;return('<div id="'+k._id+'" class="'+k.classes()+'" role="presentation"><div class="'+l+'tooltip-arrow"></div><div class="'+l+'tooltip-inner">'+k.encode(k._text)+"</div></div>")},repaint:function(){var k=this,l,m;l=k.getEl().style;m=k._layoutRect;l.left=m.x+"px";l.top=m.y+"px";l.zIndex=65535+65535}})});h("tinymce/ui/Widget",["tinymce/ui/Control","tinymce/ui/Tooltip"],function(k,i){var l;var j=k.extend({init:function(n){var m=this;m._super(n);n=m.settings;m.canFocus=true;if(n.tooltip&&j.tooltips!==false){m.on("mouseenter",function(q){var p=m.tooltip().moveTo(-65535);if(q.control==m){var o=p.text(n.tooltip).show().testMoveRel(m.getEl(),["bc-tc","bc-tl","bc-tr"]);p.toggleClass("tooltip-n",o=="bc-tc");p.toggleClass("tooltip-nw",o=="bc-tl");p.toggleClass("tooltip-ne",o=="bc-tr");p.moveRel(m.getEl(),o)}else{p.hide()}});m.on("mouseleave mousedown click",function(){m.tooltip().hide()})}m.aria("label",n.ariaLabel||n.tooltip)},tooltip:function(){if(!l){l=new i({type:"tooltip"});l.renderTo()}return l},active:function(o){var m=this,n;if(o!==n){m.aria("pressed",o);m.toggleClass("active",o)}return m._super(o)},disabled:function(o){var m=this,n;if(o!==n){m.aria("disabled",o);m.toggleClass("disabled",o)}return m._super(o)},postRender:function(){var m=this,n=m.settings;m._rendered=true;m._super();if(!m.parent()&&(n.width||n.height)){m.initLayoutRect();m.repaint()}if(n.autofocus){m.focus()}},remove:function(){this._super();if(l){l.remove();l=null}}});return j});h("tinymce/ui/Button",["tinymce/ui/Widget"],function(i){return i.extend({Defaults:{classes:"widget btn",role:"button"},init:function(l){var j=this,k;j.on("click mousedown",function(m){m.preventDefault()});j._super(l);k=l.size;if(l.subtype){j.addClass(l.subtype)}if(k){j.addClass("btn-"+k)}},icon:function(m){var l=this,n=l.classPrefix;if(typeof m=="undefined"){return l.settings.icon}l.settings.icon=m;m=m?n+"ico "+n+"i-"+l.settings.icon:"";if(l._rendered){var j=l.getEl().firstChild,k=j.getElementsByTagName("i")[0];if(m){if(!k||k!=j.firstChild){k=document.createElement("i");j.insertBefore(k,j.firstChild)}k.className=m}else{if(k){j.removeChild(k)}}l.text(l._text)}return l},repaint:function(){var j=this.getEl().firstChild.style;j.width=j.height="100%";this._super()},text:function(l){var j=this;if(j._rendered){var k=j.getEl().lastChild.lastChild;if(k){k.data=j.translate(l)}}return j._super(l)},renderHtml:function(){var j=this,n=j._id,l=j.classPrefix;var k=j.settings.icon,m;m=j.settings.image;if(m){k="none";if(typeof m!="string"){m=window.getSelection?m[0]:m[1]}m=" style=\"background-image: url('"+m+"')\""}else{m=""}k=j.settings.icon?l+"ico "+l+"i-"+k:"";return('<div id="'+n+'" class="'+j.classes()+'" tabindex="-1" aria-labelledby="'+n+'"><button role="presentation" type="button" tabindex="-1">'+(k?'<i class="'+k+'"'+m+"></i>":"")+(j._text?(k?"\u00a0":"")+j.encode(j._text):"")+"</button></div>")}})});h("tinymce/ui/ButtonGroup",["tinymce/ui/Container"],function(i){return i.extend({Defaults:{defaultType:"button",role:"group"},renderHtml:function(){var j=this,k=j._layout;j.addClass("btn-group");j.preRender();k.preRender(j);return('<div id="'+j._id+'" class="'+j.classes()+'"><div id="'+j._id+'-body">'+(j.settings.html||"")+k.renderHtml(j)+"</div></div>")}})});h("tinymce/ui/Checkbox",["tinymce/ui/Widget"],function(i){return i.extend({Defaults:{classes:"checkbox",role:"checkbox",checked:false},init:function(k){var j=this;j._super(k);j.on("click mousedown",function(l){l.preventDefault()});j.on("click",function(l){l.preventDefault();if(!j.disabled()){j.checked(!j.checked())}});j.checked(j.settings.checked)},checked:function(k){var j=this;if(typeof k!="undefined"){if(k){j.addClass("checked")}else{j.removeClass("checked")}j._checked=k;j.aria("checked",k);return j}return j._checked},value:function(j){return this.checked(j)},renderHtml:function(){var j=this,l=j._id,k=j.classPrefix;return('<div id="'+l+'" class="'+j.classes()+'" unselectable="on" aria-labelledby="'+l+'-al" tabindex="-1"><i class="'+k+"ico "+k+'i-checkbox"></i><span id="'+l+'-al" class="'+k+'label">'+j.encode(j._text)+"</span></div>")}})});h("tinymce/ui/ComboBox",["tinymce/ui/Widget","tinymce/ui/Factory","tinymce/ui/DomUtils"],function(k,i,j){return k.extend({init:function(m){var l=this;l._super(m);l.addClass("combobox");l.subinput=true;l.ariaTarget="inp";m=l.settings;m.menu=m.menu||m.values;if(m.menu){m.icon="caret"}l.on("click",function(o){var p=o.target,n=l.getEl();while(p&&p!=n){if(p.id&&p.id.indexOf("-open")!=-1){l.fire("action");if(m.menu){l.showMenu();if(o.aria){l.menu.items()[0].focus()}}}p=p.parentNode}});l.on("keydown",function(n){if(n.target.nodeName=="INPUT"&&n.keyCode==13){l.parents().reverse().each(function(o){n.preventDefault();l.fire("change");if(o.hasEventListeners("submit")&&o.toJSON){o.fire("submit",{data:o.toJSON()});return false}})}});if(m.placeholder){l.addClass("placeholder");l.on("focusin",function(){if(!l._hasOnChange){j.on(l.getEl("inp"),"change",function(){l.fire("change")});l._hasOnChange=true}if(l.hasClass("placeholder")){l.getEl("inp").value="";l.removeClass("placeholder")}});l.on("focusout",function(){if(l.value().length===0){l.getEl("inp").value=m.placeholder;l.addClass("placeholder")}})}},showMenu:function(){var l=this,m=l.settings,n;if(!l.menu){n=m.menu||[];if(n.length){n={type:"menu",items:n}}else{n.type=n.type||"menu"}l.menu=i.create(n).parent(l).renderTo(l.getContainerElm());l.fire("createmenu");l.menu.reflow();l.menu.on("cancel",function(o){if(o.control===l.menu){l.focus()}});l.menu.on("show hide",function(o){o.control.items().each(function(p){p.active(p.value()==l.value())})}).fire("show");l.menu.on("select",function(o){l.value(o.control.value())});l.on("focusin",function(o){if(o.target.tagName.toUpperCase()=="INPUT"){l.menu.hide()}});l.aria("expanded",true)}l.menu.show();l.menu.layoutRect({w:l.layoutRect().w});l.menu.moveRel(l.getEl(),l.isRtl()?["br-tr","tr-br"]:["bl-tl","tl-bl"])},value:function(m){var l=this;if(typeof m!="undefined"){l._value=m;l.removeClass("placeholder");if(l._rendered){l.getEl("inp").value=m}return l}if(l._rendered){m=l.getEl("inp").value;if(m!=l.settings.placeholder){return m}return""}return l._value},disabled:function(m){var l=this;if(l._rendered&&typeof m!="undefined"){l.getEl("inp").disabled=m}return l._super(m)},focus:function(){this.getEl("inp").focus()},repaint:function(){var m=this,r=m.getEl(),l=m.getEl("open"),p=m.layoutRect();var o,n;if(l){o=p.w-j.getSize(l).width-10}else{o=p.w-10}var q=document;if(q.all&&(!q.documentMode||q.documentMode<=8)){n=(m.layoutRect().h-2)+"px"}j.css(r.firstChild,{width:o,lineHeight:n});m._super();return m},postRender:function(){var l=this;j.on(this.getEl("inp"),"change",function(){l.fire("change")});return l._super()},remove:function(){j.off(this.getEl("inp"));this._super()},renderHtml:function(){var t=this,l=t._id,m=t.settings,n=t.classPrefix;var q=m.value||m.placeholder||"";var p,s,o="",r="";if("spellcheck" in m){r+=' spellcheck="'+m.spellcheck+'"'}if(m.maxLength){r+=' maxlength="'+m.maxLength+'"'}if(m.size){r+=' size="'+m.size+'"'}if(m.subtype){r+=' type="'+m.subtype+'"'}if(t.disabled()){r+=' disabled="disabled"'}p=m.icon;if(p&&p!="caret"){p=n+"ico "+n+"i-"+m.icon}s=t._text;if(p||s){o=('<div id="'+l+'-open" class="'+n+"btn "+n+'open" tabIndex="-1" role="button"><button id="'+l+'-action" type="button" hidefocus="1" tabindex="-1">'+(p!="caret"?'<i class="'+p+'"></i>':'<i class="'+n+'caret"></i>')+(s?(p?" ":"")+s:"")+"</button></div>");t.addClass("has-open")}return('<div id="'+l+'" class="'+t.classes()+'"><input id="'+l+'-inp" class="'+n+"textbox "+n+'placeholder" value="'+q+'" hidefocus="1"'+r+" />"+o+"</div>")}})});h("tinymce/ui/ColorBox",["tinymce/ui/ComboBox"],function(i){return i.extend({init:function(k){var j=this;k.spellcheck=false;if(k.onaction){k.icon="none"}j._super(k);j.addClass("colorbox");j.on("change keyup postrender",function(){j.repaintColor(j.value())})},repaintColor:function(k){var l=this.getEl().getElementsByTagName("i")[0];if(l){try{l.style.background=k}catch(j){}}},value:function(k){var j=this;if(typeof k!="undefined"){if(j._rendered){j.repaintColor(k)}}return j._super(k)}})});h("tinymce/ui/PanelButton",["tinymce/ui/Button","tinymce/ui/FloatPanel"],function(i,j){return i.extend({showPanel:function(){var k=this,l=k.settings;k.active(true);if(!k.panel){var m=l.panel;if(m.type){m={layout:"grid",items:m}}m.role=m.role||"dialog";m.popover=true;m.autohide=true;m.ariaRoot=true;k.panel=new j(m).on("hide",function(){k.active(false)}).on("cancel",function(n){n.stopPropagation();k.focus();k.hidePanel()}).parent(k).renderTo(k.getContainerElm());k.panel.fire("show");k.panel.reflow()}else{k.panel.show()}k.panel.moveRel(k.getEl(),l.popoverAlign||(k.isRtl()?["bc-tr","bc-tc"]:["bc-tl","bc-tc"]))},hidePanel:function(){var k=this;if(k.panel){k.panel.hide()}},postRender:function(){var k=this;k.aria("haspopup",true);k.on("click",function(l){if(l.control===k){if(k.panel&&k.panel.visible()){k.hidePanel()}else{k.showPanel();k.panel.focus(!!l.aria)}}});return k._super()},remove:function(){if(this.panel){this.panel.remove();this.panel=null}return this._super()}})});h("tinymce/ui/ColorButton",["tinymce/ui/PanelButton","tinymce/dom/DOMUtils"],function(j,i){var k=i.DOM;return j.extend({init:function(l){this._super(l);this.addClass("colorbutton")},color:function(l){if(l){this._color=l;this.getEl("preview").style.backgroundColor=l;return this}return this._color},resetColor:function(){this._color=null;this.getEl("preview").style.backgroundColor=null;return this},renderHtml:function(){var l=this,p=l._id,n=l.classPrefix;var m=l.settings.icon?n+"ico "+n+"i-"+l.settings.icon:"";var o=l.settings.image?" style=\"background-image: url('"+l.settings.image+"')\"":"";return('<div id="'+p+'" class="'+l.classes()+'" role="button" tabindex="-1" aria-haspopup="true"><button role="presentation" hidefocus="1" type="button" tabindex="-1">'+(m?'<i class="'+m+'"'+o+"></i>":"")+'<span id="'+p+'-preview" class="'+n+'preview"></span>'+(l._text?(m?" ":"")+(l._text):"")+'</button><button type="button" class="'+n+'open" hidefocus="1" tabindex="-1"> <i class="'+n+'caret"></i></button></div>')},postRender:function(){var l=this,m=l.settings.onclick;l.on("click",function(n){if(n.aria&&n.aria.key=="down"){return}if(n.control==l&&!k.getParent(n.target,"."+l.classPrefix+"open")){n.stopImmediatePropagation();m.call(l,n)}});delete l.settings.onclick;return l._super()}})});h("tinymce/util/Color",[],function(){var k=Math.min,i=Math.max,j=Math.round;function l(w){var x=this,m=0,t=0,v=0;function p(y,A,C){var z,G,E,B,D,F;z=0;G=0;E=0;y=y/255;A=A/255;C=C/255;D=k(y,k(A,C));F=i(y,i(A,C));if(D==F){E=D;return{h:0,s:0,v:E*100}}B=(y==D)?A-C:((C==D)?y-A:C-y);z=(y==D)?3:((C==D)?1:5);z=60*(z-B/(F-D));G=(F-D)/F;E=F;return{h:j(z),s:j(G*100),v:j(E*100)}}function q(y,C,D){var B,A,r,z;y=(parseInt(y,10)||0)%360;C=parseInt(C,10)/100;D=parseInt(D,10)/100;C=i(0,k(C,1));D=i(0,k(D,1));if(C===0){m=t=v=j(255*D);return}B=y/60;A=D*C;r=A*(1-Math.abs(B%2-1));z=D-A;switch(Math.floor(B)){case 0:m=A;t=r;v=0;break;case 1:m=r;t=A;v=0;break;case 2:m=0;t=A;v=r;break;case 3:m=0;t=r;v=A;break;case 4:m=r;t=0;v=A;break;case 5:m=A;t=0;v=r;break;default:m=t=v=0}m=j(255*(m+z));t=j(255*(t+z));v=j(255*(v+z))}function n(){function r(y){y=parseInt(y,10).toString(16);return y.length>1?y:"0"+y}return"#"+r(m)+r(t)+r(v)}function u(){return{r:m,g:t,b:v}}function s(){return p(m,t,v)}function o(y){var r;if(typeof y=="object"){if("r" in y){m=y.r;t=y.g;v=y.b}else{if("v" in y){q(y.h,y.s,y.v)}}}else{if((r=/rgb\s*\(\s*([0-9]+)\s*,\s*([0-9]+)\s*,\s*([0-9]+)[^\)]*\)/gi.exec(y))){m=parseInt(r[1],10);t=parseInt(r[2],10);v=parseInt(r[3],10)}else{if((r=/#([0-F]{2})([0-F]{2})([0-F]{2})/gi.exec(y))){m=parseInt(r[1],16);t=parseInt(r[2],16);v=parseInt(r[3],16)}else{if((r=/#([0-F])([0-F])([0-F])/gi.exec(y))){m=parseInt(r[1]+r[1],16);t=parseInt(r[2]+r[2],16);v=parseInt(r[3]+r[3],16)}}}}m=m<0?0:(m>255?255:m);t=t<0?0:(t>255?255:t);v=v<0?0:(v>255?255:v);return x}if(w){o(w)}x.toRgb=u;x.toHsv=s;x.toHex=n;x.parse=o}return l});h("tinymce/ui/ColorPicker",["tinymce/ui/Widget","tinymce/ui/DragHelper","tinymce/ui/DomUtils","tinymce/util/Color"],function(k,j,i,l){return k.extend({Defaults:{classes:"widget colorpicker"},init:function(m){this._super(m)},postRender:function(){var w=this,q=w.color(),r,t,s,v,o;t=w.getEl("h");s=w.getEl("hp");v=w.getEl("sv");o=w.getEl("svp");function p(D,A){var C=i.getPos(D),z,B;z=A.pageX-C.x;B=A.pageY-C.y;z=Math.max(0,Math.min(z/D.clientWidth,1));B=Math.max(0,Math.min(B/D.clientHeight,1));return{x:z,y:B}}function n(z,y){var x=(360-z.h)/360;i.css(s,{top:(x*100)+"%"});if(!y){i.css(o,{left:z.s+"%",top:(100-z.v)+"%"})}v.style.background=new l({s:100,v:100,h:z.h}).toHex();w.color().parse({s:z.s,v:z.v,h:z.h})}function m(x){var y;y=p(v,x);r.s=y.x*100;r.v=(1-y.y)*100;n(r);w.fire("change")}function u(x){var y;y=p(t,x);r=q.toHsv();r.h=(1-y.y)*360;n(r,true);w.fire("change")}w._repaint=function(){r=q.toHsv();n(r)};w._super();w._svdraghelper=new j(w._id+"-sv",{start:m,drag:m});w._hdraghelper=new j(w._id+"-h",{start:u,drag:u});w._repaint()},rgb:function(){return this.color().toRgb()},value:function(n){var m=this;if(arguments.length){m.color().parse(n);if(m._rendered){m._repaint()}}else{return m.color().toHex()}},color:function(){if(!this._color){this._color=new l()}return this._color},renderHtml:function(){var m=this,s=m._id,q=m.classPrefix,o;var p="#ff0000,#ff0080,#ff00ff,#8000ff,#0000ff,#0080ff,#00ffff,#00ff80,#00ff00,#80ff00,#ffff00,#ff8000,#ff0000";function n(){var w,u,v="",t,x;t="filter:progid:DXImageTransform.Microsoft.gradient(GradientType=0,startColorstr=";x=p.split(",");for(w=0,u=x.length-1;w<u;w++){v+=('<div class="'+q+'colorpicker-h-chunk" style="height:'+(100/u)+"%;"+t+x[w]+",endColorstr="+x[w+1]+");-ms-"+t+x[w]+",endColorstr="+x[w+1]+')"></div>')}return v}var r=("background: -ms-linear-gradient(top,"+p+");background: linear-gradient(to bottom,"+p+");");o=('<div id="'+s+'-h" class="'+q+'colorpicker-h" style="'+r+'">'+n()+'<div id="'+s+'-hp" class="'+q+'colorpicker-h-marker"></div></div>');return('<div id="'+s+'" class="'+m.classes()+'"><div id="'+s+'-sv" class="'+q+'colorpicker-sv"><div class="'+q+'colorpicker-overlay1"><div class="'+q+'colorpicker-overlay2"><div id="'+s+'-svp" class="'+q+'colorpicker-selector1"><div class="'+q+'colorpicker-selector2"></div></div></div></div></div>'+o+"</div>")}})});h("tinymce/ui/Path",["tinymce/ui/Widget"],function(i){return i.extend({init:function(k){var j=this;if(!k.delimiter){k.delimiter="\u00BB"}j._super(k);j.addClass("path");j.canFocus=true;j.on("click",function(n){var l,m=n.target;if((l=m.getAttribute("data-index"))){j.fire("select",{value:j.data()[l],index:l})}})},focus:function(){var j=this;j.getEl().firstChild.focus();return j},data:function(k){var j=this;if(typeof k!=="undefined"){j._data=k;j.update();return j}return j._data},update:function(){this.innerHtml(this._getPathHtml())},postRender:function(){var j=this;j._super();j.data(j.settings.data)},renderHtml:function(){var j=this;return('<div id="'+j._id+'" class="'+j.classes()+'">'+j._getPathHtml()+"</div>")},_getPathHtml:function(){var k=this,p=k._data||[],n,j,m="",o=k.classPrefix;for(n=0,j=p.length;n<j;n++){m+=((n>0?'<div class="'+o+'divider" aria-hidden="true"> '+k.settings.delimiter+" </div>":"")+'<div role="button" class="'+o+"path-item"+(n==j-1?" "+o+"last":"")+'" data-index="'+n+'" tabindex="-1" id="'+k._id+"-"+n+'" aria-level="'+n+'">'+p[n].name+"</div>")}if(!m){m='<div class="'+o+'path-item">\u00a0</div>'}return m}})});h("tinymce/ui/ElementPath",["tinymce/ui/Path","tinymce/EditorManager"],function(j,i){return j.extend({postRender:function(){var k=this,m=i.activeEditor;function l(n){if(n.nodeType===1){if(n.nodeName=="BR"||!!n.getAttribute("data-mce-bogus")){return true}if(n.getAttribute("data-mce-type")==="bookmark"){return true}}return false}if(m.settings.elementpath!==false){k.on("select",function(n){m.focus();m.selection.select(this.data()[n.index].element);m.nodeChanged()});m.on("nodeChange",function(r){var n=[],p=r.parents,q=p.length;while(q--){if(p[q].nodeType==1&&!l(p[q])){var o=m.fire("ResolveName",{name:p[q].nodeName.toLowerCase(),target:p[q]});if(!o.isDefaultPrevented()){n.push({name:o.name,element:p[q]})}if(o.isPropagationStopped()){break}}}k.data(n)})}return k._super()}})});h("tinymce/ui/FormItem",["tinymce/ui/Container"],function(i){return i.extend({Defaults:{layout:"flex",align:"center",defaults:{flex:1}},renderHtml:function(){var j=this,k=j._layout,l=j.classPrefix;j.addClass("formitem");k.preRender(j);return('<div id="'+j._id+'" class="'+j.classes()+'" hidefocus="1" tabindex="-1">'+(j.settings.title?('<div id="'+j._id+'-title" class="'+l+'title">'+j.settings.title+"</div>"):"")+'<div id="'+j._id+'-body" class="'+j.classes("body")+'">'+(j.settings.html||"")+k.renderHtml(j)+"</div></div>")}})});h("tinymce/ui/Form",["tinymce/ui/Container","tinymce/ui/FormItem","tinymce/util/Tools"],function(i,k,j){return i.extend({Defaults:{containerCls:"form",layout:"flex",direction:"column",align:"stretch",flex:1,padding:20,labelGap:30,spacing:10,callbacks:{submit:function(){this.submit()}}},preRender:function(){var m=this,l=m.items();if(!m.settings.formItemDefaults){m.settings.formItemDefaults={layout:"flex",autoResize:"overflow",defaults:{flex:1}}}l.each(function(p){var o,n=p.settings.label;if(n){o=new k(j.extend({items:{type:"label",id:p._id+"-l",text:n,flex:0,forId:p._id,disabled:p.disabled()}},m.settings.formItemDefaults));o.type="formitem";p.aria("labelledby",p._id+"-l");if(typeof p.settings.flex=="undefined"){p.settings.flex=1}m.replace(p,o);o.add(p)}})},recalcLabels:function(){var m=this,p=0,q=[],n,o,l;if(m.settings.labelGapCalc===false){return}if(m.settings.labelGapCalc=="children"){l=m.find("formitem")}else{l=m.items()}l.filter("formitem").each(function(t){var s=t.items()[0],r=s.getEl().clientWidth;p=r>p?r:p;q.push(s)});o=m.settings.labelGap||0;n=q.length;while(n--){q[n].settings.minWidth=p+o}},visible:function(l){var m=this._super(l);if(l===true&&this._rendered){this.recalcLabels()}return m},submit:function(){return this.fire("submit",{data:this.toJSON()})},postRender:function(){var l=this;l._super();l.recalcLabels();l.fromJSON(l.settings.data)}})});h("tinymce/ui/FieldSet",["tinymce/ui/Form"],function(i){return i.extend({Defaults:{containerCls:"fieldset",layout:"flex",direction:"column",align:"stretch",flex:1,padding:"25 15 5 15",labelGap:30,spacing:10,border:1},renderHtml:function(){var j=this,k=j._layout,l=j.classPrefix;j.preRender();k.preRender(j);return('<fieldset id="'+j._id+'" class="'+j.classes()+'" hidefocus="1" tabindex="-1">'+(j.settings.title?('<legend id="'+j._id+'-title" class="'+l+'fieldset-title">'+j.settings.title+"</legend>"):"")+'<div id="'+j._id+'-body" class="'+j.classes("body")+'">'+(j.settings.html||"")+k.renderHtml(j)+"</div></fieldset>")}})});h("tinymce/ui/FilePicker",["tinymce/ui/ComboBox","tinymce/util/Tools"],function(j,i){return j.extend({init:function(o){var m=this,n=tinymce.activeEditor,l=n.settings;var k,q,p;o.spellcheck=false;p=l.file_picker_types||l.file_browser_callback_types;if(p){p=i.makeMap(p,/[, ]/)}if(!p||p[o.filetype]){q=l.file_picker_callback;if(q&&(!p||p[o.filetype])){k=function(){var r=m.fire("beforecall").meta;r=i.extend({filetype:o.filetype},r);q.call(n,function(s,t){m.value(s).fire("change",{meta:t})},m.value(),r)}}else{q=l.file_browser_callback;if(q&&(!p||p[o.filetype])){k=function(){q(m.getEl("inp").id,m.value(),o.filetype,window)}}}}if(k){o.icon="browse";o.onaction=k}m._super(o)}})});h("tinymce/ui/FitLayout",["tinymce/ui/AbsoluteLayout"],function(i){return i.extend({recalc:function(k){var j=k.layoutRect(),l=k.paddingBox();k.items().filter(":visible").each(function(m){m.layoutRect({x:l.left,y:l.top,w:j.innerW-l.right-l.left,h:j.innerH-l.top-l.bottom});if(m.recalc){m.recalc()}})}})});h("tinymce/ui/FlexLayout",["tinymce/ui/AbsoluteLayout"],function(i){return i.extend({recalc:function(L){var X,S,y,V,t,B,R,w,m,Y,n,u;var T,k,o,q,s=[],r,E,P,I,J,W;var O,D,v,p,aa,M,x,N;var F,j,C,Q,H,U;var K,G;var z=Math.max,Z=Math.min;y=L.items().filter(":visible");V=L.layoutRect();t=L._paddingBox;B=L.settings;u=L.isRtl()?(B.direction||"row-reversed"):B.direction;R=B.align;w=L.isRtl()?(B.pack||"end"):B.pack;m=B.spacing||0;if(u=="row-reversed"||u=="column-reverse"){y=y.set(y.toArray().reverse());u=u.split("-")[0]}if(u=="column"){v="y";O="h";D="minH";p="maxH";M="innerH";aa="top";x="deltaH";N="contentH";H="left";C="w";F="x";j="innerW";Q="minW";U="right";K="deltaW";G="contentW"}else{v="x";O="w";D="minW";p="maxW";M="innerW";aa="left";x="deltaW";N="contentW";H="top";C="h";F="y";j="innerH";Q="minH";U="bottom";K="deltaH";G="contentH"}n=V[M]-t[aa]-t[aa];W=Y=0;for(X=0,S=y.length;X<S;X++){T=y[X];k=T.layoutRect();o=T.settings;q=o.flex;n-=(X<S-1?m:0);if(q>0){Y+=q;if(k[p]){s.push(T)}k.flex=q}n-=k[D];r=t[H]+k[Q]+t[U];if(r>W){W=r}}I={};if(n<0){I[D]=V[D]-n+V[x]}else{I[D]=V[M]-n+V[x]}I[Q]=W+V[K];I[N]=V[M]-n;I[G]=W;I.minW=Z(I.minW,V.maxW);I.minH=Z(I.minH,V.maxH);I.minW=z(I.minW,V.startMinWidth);I.minH=z(I.minH,V.startMinHeight);if(V.autoResize&&(I.minW!=V.minW||I.minH!=V.minH)){I.w=I.minW;I.h=I.minH;L.layoutRect(I);this.recalc(L);if(L._lastRect===null){var A=L.parent();if(A){A._lastRect=null;A.recalc()}}return}P=n/Y;for(X=0,S=s.length;X<S;X++){T=s[X];k=T.layoutRect();E=k[p];r=k[D]+k.flex*P;if(r>E){n-=(k[p]-k[D]);Y-=k.flex;k.flex=0;k.maxFlexSize=E}else{k.maxFlexSize=0}}P=n/Y;J=t[aa];I={};if(Y===0){if(w=="end"){J=n+t[aa]}else{if(w=="center"){J=Math.round((V[M]/2)-((V[M]-n)/2))+t[aa];if(J<0){J=t[aa]}}else{if(w=="justify"){J=t[aa];m=Math.floor(n/(y.length-1))}}}}I[F]=t[H];for(X=0,S=y.length;X<S;X++){T=y[X];k=T.layoutRect();r=k.maxFlexSize||k[D];if(R==="center"){I[F]=Math.round((V[j]/2)-(k[C]/2))}else{if(R==="stretch"){I[C]=z(k[Q]||0,V[j]-t[H]-t[U]);I[F]=t[H]}else{if(R==="end"){I[F]=V[j]-k[C]-t.top}}}if(k.flex>0){r+=k.flex*P}I[O]=r;I[v]=J;T.layoutRect(I);if(T.recalc){T.recalc()}J+=r+m}}})});h("tinymce/ui/FlowLayout",["tinymce/ui/Layout"],function(i){return i.extend({Defaults:{containerClass:"flow-layout",controlClass:"flow-layout-item",endClass:"break"},recalc:function(j){j.items().filter(":visible").each(function(k){if(k.recalc){k.recalc()}})}})});h("tinymce/ui/FormatControls",["tinymce/ui/Control","tinymce/ui/Widget","tinymce/ui/FloatPanel","tinymce/util/Tools","tinymce/EditorManager","tinymce/Env"],function(n,m,p,j,l,i){var o=j.each;l.on("AddEditor",function(q){if(q.editor.rtl){n.rtl=true}k(q.editor)});n.translate=function(q){return l.translate(q)};m.tooltips=!i.iOS;function k(v){var q;function w(y,z){return function(){var A=this;v.on("nodeChange",function(D){var B=v.formatter;var C=null;o(D.parents,function(E){o(y,function(F){if(z){if(B.matchNode(E,z,{value:F.value})){C=F.value}}else{if(B.matchNode(E,F.value)){C=F.value}}if(C){return false}});if(C){return false}});A.value(C)})}}function t(y){y=y.replace(/;$/,"").split(";");var z=y.length;while(z--){y[z]=y[z].split("=")}return y}function s(){var C=0,B=[];var A=[{title:"Headings",items:[{title:"Heading 1",format:"h1"},{title:"Heading 2",format:"h2"},{title:"Heading 3",format:"h3"},{title:"Heading 4",format:"h4"},{title:"Heading 5",format:"h5"},{title:"Heading 6",format:"h6"}]},{title:"Inline",items:[{title:"Bold",icon:"bold",format:"bold"},{title:"Italic",icon:"italic",format:"italic"},{title:"Underline",icon:"underline",format:"underline"},{title:"Strikethrough",icon:"strikethrough",format:"strikethrough"},{title:"Superscript",icon:"superscript",format:"superscript"},{title:"Subscript",icon:"subscript",format:"subscript"},{title:"Code",icon:"code",format:"code"}]},{title:"Blocks",items:[{title:"Paragraph",format:"p"},{title:"Blockquote",format:"blockquote"},{title:"Div",format:"div"},{title:"Pre",format:"pre"}]},{title:"Alignment",items:[{title:"Left",icon:"alignleft",format:"alignleft"},{title:"Center",icon:"aligncenter",format:"aligncenter"},{title:"Right",icon:"alignright",format:"alignright"},{title:"Justify",icon:"alignjustify",format:"alignjustify"}]}];function y(D){var E=[];if(!D){return}o(D,function(H){var G={text:H.title,icon:H.icon};if(H.items){G.menu=y(H.items)}else{var F=H.format||"custom"+C++;if(!H.format){H.name=F;B.push(H)}G.format=F;G.cmd=H.cmd}E.push(G)});return E}function z(){var D;if(v.settings.style_formats_merge){if(v.settings.style_formats){D=y(A.concat(v.settings.style_formats))}else{D=y(A)}}else{D=y(v.settings.style_formats||A)}return D}v.on("init",function(){o(B,function(D){v.formatter.register(D.name,D)})});return{type:"menu",items:z(),onPostRender:function(D){v.fire("renderFormatsMenu",{control:D.control})},itemDefaults:{preview:true,textStyle:function(){if(this.settings.format){return v.formatter.getCssText(this.settings.format)}},onPostRender:function(){var D=this;D.parent().on("show",function(){var E,F;E=D.settings.format;if(E){D.disabled(!v.formatter.canApply(E));D.active(v.formatter.match(E))}F=D.settings.cmd;if(F){D.active(v.queryCommandState(F))}})},onclick:function(){if(this.settings.format){r(this.settings.format)}if(this.settings.cmd){v.execCommand(this.settings.cmd)}}}}}q=s();o({bold:"Bold",italic:"Italic",underline:"Underline",strikethrough:"Strikethrough",subscript:"Subscript",superscript:"Superscript"},function(z,y){v.addButton(y,{tooltip:z,onPostRender:function(){var A=this;if(v.formatter){v.formatter.formatChanged(y,function(B){A.active(B)})}else{v.on("init",function(){v.formatter.formatChanged(y,function(B){A.active(B)})})}},onclick:function(){r(y)}})});o({outdent:["Decrease indent","Outdent"],indent:["Increase indent","Indent"],cut:["Cut","Cut"],copy:["Copy","Copy"],paste:["Paste","Paste"],help:["Help","mceHelp"],selectall:["Select all","SelectAll"],removeformat:["Clear formatting","RemoveFormat"],visualaid:["Visual aids","mceToggleVisualAid"],newdocument:["New document","mceNewDocument"]},function(z,y){v.addButton(y,{tooltip:z[0],cmd:z[1]})});o({blockquote:["Blockquote","mceBlockQuote"],numlist:["Numbered list","InsertOrderedList"],bullist:["Bullet list","InsertUnorderedList"],subscript:["Subscript","Subscript"],superscript:["Superscript","Superscript"],alignleft:["Align left","JustifyLeft"],aligncenter:["Align center","JustifyCenter"],alignright:["Align right","JustifyRight"],alignjustify:["Justify","JustifyFull"]},function(z,y){v.addButton(y,{tooltip:z[0],cmd:z[1],onPostRender:function(){var A=this;if(v.formatter){v.formatter.formatChanged(y,function(B){A.active(B)})}else{v.on("init",function(){v.formatter.formatChanged(y,function(B){A.active(B)})})}}})});function u(y){return function(){var z=this;y=y=="redo"?"hasRedo":"hasUndo";function A(){return v.undoManager?v.undoManager[y]():false}z.disabled(!A());v.on("Undo Redo AddUndo TypingUndo ClearUndos",function(){z.disabled(!A())})}}function x(){var y=this;v.on("VisualAid",function(z){y.active(z.hasVisual)});y.active(v.hasVisual)}v.addButton("undo",{tooltip:"Undo",onPostRender:u("undo"),cmd:"undo"});v.addButton("redo",{tooltip:"Redo",onPostRender:u("redo"),cmd:"redo"});v.addMenuItem("newdocument",{text:"New document",icon:"newdocument",cmd:"mceNewDocument"});v.addMenuItem("undo",{text:"Undo",icon:"undo",shortcut:"Meta+Z",onPostRender:u("undo"),cmd:"undo"});v.addMenuItem("redo",{text:"Redo",icon:"redo",shortcut:"Meta+Y",onPostRender:u("redo"),cmd:"redo"});v.addMenuItem("visualaid",{text:"Visual aids",selectable:true,onPostRender:x,cmd:"mceToggleVisualAid"});o({cut:["Cut","Cut","Meta+X"],copy:["Copy","Copy","Meta+C"],paste:["Paste","Paste","Meta+V"],selectall:["Select all","SelectAll","Meta+A"],bold:["Bold","Bold","Meta+B"],italic:["Italic","Italic","Meta+I"],underline:["Underline","Underline"],strikethrough:["Strikethrough","Strikethrough"],subscript:["Subscript","Subscript"],superscript:["Superscript","Superscript"],removeformat:["Clear formatting","RemoveFormat"]},function(z,y){v.addMenuItem(y,{text:z[0],icon:y,shortcut:z[2],cmd:z[1]})});v.on("mousedown",function(){p.hideAll()});function r(y){if(y.control){y=y.control.value()}if(y){v.execCommand("mceToggleFormat",false,y)}}v.addButton("styleselect",{type:"menubutton",text:"Formats",menu:q});v.addButton("formatselect",function(){var y=[],z=t(v.settings.block_formats||"Paragraph=p;Heading 1=h1;Heading 2=h2;Heading 3=h3;Heading 4=h4;Heading 5=h5;Heading 6=h6;Preformatted=pre");o(z,function(A){y.push({text:A[0],value:A[1],textStyle:function(){return v.formatter.getCssText(A[1])}})});return{type:"listbox",text:z[0][0],values:y,fixedWidth:true,onselect:r,onPostRender:w(y)}});v.addButton("fontselect",function(){var z="Andale Mono=andale mono,monospace;Arial=arial,helvetica,sans-serif;Arial Black=arial black,sans-serif;Book Antiqua=book antiqua,palatino,serif;Comic Sans MS=comic sans ms,sans-serif;Courier New=courier new,courier,monospace;Georgia=georgia,palatino,serif;Helvetica=helvetica,arial,sans-serif;Impact=impact,sans-serif;Symbol=symbol;Tahoma=tahoma,arial,helvetica,sans-serif;Terminal=terminal,monaco,monospace;Times New Roman=times new roman,times,serif;Trebuchet MS=trebuchet ms,geneva,sans-serif;Verdana=verdana,geneva,sans-serif;Webdings=webdings;Wingdings=wingdings,zapf dingbats";var y=[],A=t(v.settings.font_formats||z);o(A,function(B){y.push({text:{raw:B[0]},value:B[1],textStyle:B[1].indexOf("dings")==-1?"font-family:"+B[1]:""})});return{type:"listbox",text:"Font Family",tooltip:"Font Family",values:y,fixedWidth:true,onPostRender:w(y,"fontname"),onselect:function(B){if(B.control.settings.value){v.execCommand("FontName",false,B.control.settings.value)}}}});v.addButton("fontsizeselect",function(){var y=[],A="8pt 10pt 12pt 14pt 18pt 24pt 36pt";var z=v.settings.fontsize_formats||A;o(z.split(" "),function(C){var E=C,D=C;var B=C.split("=");if(B.length>1){E=B[0];D=B[1]}y.push({text:E,value:D})});return{type:"listbox",text:"Font Sizes",tooltip:"Font Sizes",values:y,fixedWidth:true,onPostRender:w(y,"fontsize"),onclick:function(B){if(B.control.settings.value){v.execCommand("FontSize",false,B.control.settings.value)}}}});v.addMenuItem("formats",{text:"Formats",menu:q})}});h("tinymce/ui/GridLayout",["tinymce/ui/AbsoluteLayout"],function(i){return i.extend({recalc:function(F){var T=F.settings,S,v,w,P,k,o,D,n,O,K,J,H,G,q,s,N,t,p,m,Q,A,z,M=[],j=[],B,U,r,u,I,V;T=F.settings;w=F.items().filter(":visible");P=F.layoutRect();v=T.columns||Math.ceil(Math.sqrt(w.length));S=Math.ceil(w.length/v);t=T.spacingH||T.spacing||0;p=T.spacingV||T.spacing||0;m=T.alignH||T.align;Q=T.alignV||T.align;s=F._paddingBox;I="reverseRows" in T?T.reverseRows:F.isRtl();if(m&&typeof m=="string"){m=[m]}if(Q&&typeof Q=="string"){Q=[Q]}for(K=0;K<v;K++){M.push(0)}for(J=0;J<S;J++){j.push(0)}for(J=0;J<S;J++){for(K=0;K<v;K++){O=w[J*v+K];if(!O){break}n=O.layoutRect();B=n.minW;U=n.minH;M[K]=B>M[K]?B:M[K];j[J]=U>j[J]?U:j[J]}}r=P.innerW-s.left-s.right;for(A=0,K=0;K<v;K++){A+=M[K]+(K>0?t:0);r-=(K>0?t:0)+M[K]}u=P.innerH-s.top-s.bottom;for(z=0,J=0;J<S;J++){z+=j[J]+(J>0?p:0);u-=(J>0?p:0)+j[J]}A+=s.left+s.right;z+=s.top+s.bottom;D={};D.minW=A+(P.w-P.innerW);D.minH=z+(P.h-P.innerH);D.contentW=D.minW-P.deltaW;D.contentH=D.minH-P.deltaH;D.minW=Math.min(D.minW,P.maxW);D.minH=Math.min(D.minH,P.maxH);D.minW=Math.max(D.minW,P.startMinWidth);D.minH=Math.max(D.minH,P.startMinHeight);if(P.autoResize&&(D.minW!=P.minW||D.minH!=P.minH)){D.w=D.minW;D.h=D.minH;F.layoutRect(D);this.recalc(F);if(F._lastRect===null){var C=F.parent();if(C){C._lastRect=null;C.recalc()}}return}if(P.autoResize){D=F.layoutRect(D);D.contentW=D.minW-P.deltaW;D.contentH=D.minH-P.deltaH}var E;if(T.packV=="start"){E=0}else{E=u>0?Math.floor(u/S):0}var R=0;var l=T.flexWidths;if(l){for(K=0;K<l.length;K++){R+=l[K]}}else{R=v}var L=r/R;for(K=0;K<v;K++){M[K]+=l?l[K]*L:L}G=s.top;for(J=0;J<S;J++){H=s.left;o=j[J]+E;for(K=0;K<v;K++){if(I){V=J*v+v-1-K}else{V=J*v+K}O=w[V];if(!O){break}q=O.settings;n=O.layoutRect();k=Math.max(M[K],n.startMinWidth);n.x=H;n.y=G;N=q.alignH||(m?(m[K]||m[0]):null);if(N=="center"){n.x=H+(k/2)-(n.w/2)}else{if(N=="right"){n.x=H+k-n.w}else{if(N=="stretch"){n.w=k}}}N=q.alignV||(Q?(Q[K]||Q[0]):null);if(N=="center"){n.y=G+(o/2)-(n.h/2)}else{if(N=="bottom"){n.y=G+o-n.h}else{if(N=="stretch"){n.h=o}}}O.layoutRect(n);H+=k+t;if(O.recalc){O.recalc()}}G+=o+p}}})});h("tinymce/ui/Iframe",["tinymce/ui/Widget"],function(i){return i.extend({renderHtml:function(){var j=this;j.addClass("iframe");j.canFocus=false;return('<iframe id="'+j._id+'" class="'+j.classes()+'" tabindex="-1" src="'+(j.settings.url||"javascript:''")+'" frameborder="0"></iframe>')},src:function(j){this.getEl().src=j},html:function(l,m){var k=this,j=this.getEl().contentWindow.document.body;if(!j){setTimeout(function(){k.html(l)},0)}else{j.innerHTML=l;if(m){m()}}return this}})});h("tinymce/ui/Label",["tinymce/ui/Widget","tinymce/ui/DomUtils"],function(j,i){return j.extend({init:function(l){var k=this;k._super(l);k.addClass("widget");k.addClass("label");k.canFocus=false;if(l.multiline){k.addClass("autoscroll")}if(l.strong){k.addClass("strong")}},initLayoutRect:function(){var k=this,m=k._super();if(k.settings.multiline){var l=i.getSize(k.getEl());if(l.width>m.maxW){m.minW=m.maxW;k.addClass("multiline")}k.getEl().style.width=m.minW+"px";m.startMinH=m.h=m.minH=Math.min(m.maxH,i.getSize(k.getEl()).height)}return m},repaint:function(){var k=this;if(!k.settings.multiline){k.getEl().style.lineHeight=k.layoutRect().h+"px"}return k._super()},text:function(l){var k=this;if(k._rendered&&l){this.innerHtml(k.encode(l))}return k._super(l)},renderHtml:function(){var l=this,k=l.settings.forId;return('<label id="'+l._id+'" class="'+l.classes()+'"'+(k?' for="'+k+'"':"")+">"+l.encode(l._text)+"</label>")}})});h("tinymce/ui/Toolbar",["tinymce/ui/Container"],function(i){return i.extend({Defaults:{role:"toolbar",layout:"flow"},init:function(k){var j=this;j._super(k);j.addClass("toolbar")},postRender:function(){var j=this;j.items().addClass("toolbar-item");return j._super()}})});h("tinymce/ui/MenuBar",["tinymce/ui/Toolbar"],function(i){return i.extend({Defaults:{role:"menubar",containerCls:"menubar",ariaRoot:true,defaults:{type:"menubutton"}}})});h("tinymce/ui/MenuButton",["tinymce/ui/Button","tinymce/ui/Factory","tinymce/ui/MenuBar"],function(l,j,k){function i(o,n){while(o){if(n===o){return true}o=o.parentNode}return false}var m=l.extend({init:function(o){var n=this;n._renderOpen=true;n._super(o);n.addClass("menubtn");if(o.fixedWidth){n.addClass("fixed-width")}n.aria("haspopup",true);n.hasPopup=true},showMenu:function(){var n=this,o=n.settings,p;if(n.menu&&n.menu.visible()){return n.hideMenu()}if(!n.menu){p=o.menu||[];if(p.length){p={type:"menu",items:p}}else{p.type=p.type||"menu"}n.menu=j.create(p).parent(n).renderTo();n.fire("createmenu");n.menu.reflow();n.menu.on("cancel",function(q){if(q.control.parent()===n.menu){q.stopPropagation();n.focus();n.hideMenu()}});n.menu.on("select",function(){n.focus()});n.menu.on("show hide",function(q){if(q.control==n.menu){n.activeMenu(q.type=="show")}n.aria("expanded",q.type=="show")}).fire("show")}n.menu.show();n.menu.layoutRect({w:n.layoutRect().w});n.menu.moveRel(n.getEl(),n.isRtl()?["br-tr","tr-br"]:["bl-tl","tl-bl"])},hideMenu:function(){var n=this;if(n.menu){n.menu.items().each(function(o){if(o.hideMenu){o.hideMenu()}});n.menu.hide()}},activeMenu:function(n){this.toggleClass("active",n)},renderHtml:function(){var n=this,r=n._id,p=n.classPrefix;var o=n.settings.icon,q;q=n.settings.image;if(q){o="none";if(typeof q!="string"){q=window.getSelection?q[0]:q[1]}q=" style=\"background-image: url('"+q+"')\""}else{q=""}o=n.settings.icon?p+"ico "+p+"i-"+o:"";n.aria("role",n.parent() instanceof k?"menuitem":"button");return('<div id="'+r+'" class="'+n.classes()+'" tabindex="-1" aria-labelledby="'+r+'"><button id="'+r+'-open" role="presentation" type="button" tabindex="-1">'+(o?'<i class="'+o+'"'+q+"></i>":"")+"<span>"+(n._text?(o?"\u00a0":"")+n.encode(n._text):"")+'</span> <i class="'+p+'caret"></i></button></div>')},postRender:function(){var n=this;n.on("click",function(o){if(o.control===n&&i(o.target,n.getEl())){n.showMenu();if(o.aria){n.menu.items()[0].focus()}}});n.on("mouseenter",function(r){var o=r.control,q=n.parent(),p;if(o&&q&&o instanceof m&&o.parent()==q){q.items().filter("MenuButton").each(function(s){if(s.hideMenu&&s!=o){if(s.menu&&s.menu.visible()){p=true}s.hideMenu()}});if(p){o.focus();o.showMenu()}}});return n._super()},text:function(q){var n=this,p,o;if(n._rendered){o=n.getEl("open").getElementsByTagName("span");for(p=0;p<o.length;p++){o[p].innerHTML=(n.settings.icon&&q?"\u00a0":"")+n.encode(q)}}return this._super(q)},remove:function(){this._super();if(this.menu){this.menu.remove()}}});return m});h("tinymce/ui/ListBox",["tinymce/ui/MenuButton"],function(i){return i.extend({init:function(n){var l=this,k,m,p,j;function o(q){for(var r=0;r<q.length;r++){m=q[r].selected||n.value===q[r].value;if(m){p=p||q[r].text;l._value=q[r].value;break}if(q[r].menu){o(q[r].menu)}}}l._values=k=n.values;if(k){o(k);if(!m&&k.length>0){p=k[0].text;l._value=k[0].value}n.menu=k}n.text=n.text||p||k[0].text;l._super(n);l.addClass("listbox");l.on("select",function(r){var q=r.control;if(j){r.lastControl=j}if(n.multiple){q.active(!q.active())}else{l.value(r.control.settings.value)}j=q})},value:function(l){var j=this,m,p,o;function n(r,q){r.items().each(function(s){m=s.value()===q;if(m){p=p||s.text()}s.active(m);if(s.menu){n(s.menu,q)}})}function k(q){for(var r=0;r<q.length;r++){m=q[r].value==l;if(m){p=p||q[r].text}q[r].active=m;if(q[r].menu){k(q[r].menu)}}}if(typeof l!="undefined"){if(j.menu){n(j.menu,l)}else{o=j.settings.menu;k(o)}j.text(p||this.settings.text)}return j._super(l)}})});h("tinymce/ui/MenuItem",["tinymce/ui/Widget","tinymce/ui/Factory","tinymce/Env"],function(k,i,j){return k.extend({Defaults:{border:0,role:"menuitem"},init:function(m){var l=this;l.hasPopup=true;l._super(m);m=l.settings;l.addClass("menu-item");if(m.menu){l.addClass("menu-item-expand")}if(m.preview){l.addClass("menu-item-preview")}if(l._text==="-"||l._text==="|"){l.addClass("menu-item-sep");l.aria("role","separator");l._text="-"}if(m.selectable){l.aria("role","menuitemcheckbox");l.addClass("menu-item-checkbox");m.icon="selected"}if(!m.preview&&!m.selectable){l.addClass("menu-item-normal")}l.on("mousedown",function(n){n.preventDefault()});if(m.menu&&!m.ariaHideMenu){l.aria("haspopup",true)}},hasMenus:function(){return !!this.settings.menu},showMenu:function(){var m=this,o=m.settings,p,n=m.parent();n.items().each(function(q){if(q!==m){q.hideMenu()}});if(o.menu){p=m.menu;if(!p){p=o.menu;if(p.length){p={type:"menu",items:p}}else{p.type=p.type||"menu"}if(n.settings.itemDefaults){p.itemDefaults=n.settings.itemDefaults}p=m.menu=i.create(p).parent(m).renderTo();p.reflow();p.on("cancel",function(q){q.stopPropagation();m.focus();p.hide()});p.on("show hide",function(q){q.control.items().each(function(r){r.active(r.settings.selected)})}).fire("show");p.on("hide",function(q){if(q.control===p){m.removeClass("selected")}});p.submenu=true}else{p.show()}p._parentMenu=n;p.addClass("menu-sub");var l=p.testMoveRel(m.getEl(),m.isRtl()?["tl-tr","bl-br","tr-tl","br-bl"]:["tr-tl","br-bl","tl-tr","bl-br"]);p.moveRel(m.getEl(),l);p.rel=l;l="menu-sub-"+l;p.removeClass(p._lastRel);p.addClass(l);p._lastRel=l;m.addClass("selected");m.aria("expanded",true)}},hideMenu:function(){var l=this;if(l.menu){l.menu.items().each(function(m){if(m.hideMenu){m.hideMenu()}});l.menu.hide();l.aria("expanded",false)}return l},renderHtml:function(){var t=this,l=t._id,o=t.settings,q=t.classPrefix,s=t.encode(t._text);var r=t.settings.icon,n="",p=o.shortcut;function m(u){var w,x,v={};if(j.mac){v={alt:"⌥",ctrl:"⌘",shift:"⇧",meta:"⌘"}}else{v={meta:"Ctrl"}}u=u.split("+");for(w=0;w<u.length;w++){x=v[u[w].toLowerCase()];if(x){u[w]=x}}return u.join("+")}if(r){t.parent().addClass("menu-has-icons")}if(o.image){r="none";n=" style=\"background-image: url('"+o.image+"')\""}if(p){p=m(p)}r=q+"ico "+q+"i-"+(t.settings.icon||"none");return('<div id="'+l+'" class="'+t.classes()+'" tabindex="-1">'+(s!=="-"?'<i class="'+r+'"'+n+"></i>\u00a0":"")+(s!=="-"?'<span id="'+l+'-text" class="'+q+'text">'+s+"</span>":"")+(p?'<div id="'+l+'-shortcut" class="'+q+'menu-shortcut">'+p+"</div>":"")+(o.menu?'<div class="'+q+'caret"></div>':"")+"</div>")},postRender:function(){var m=this,n=m.settings;var o=n.textStyle;if(typeof o=="function"){o=o.call(this)}if(o){var l=m.getEl("text");if(l){l.setAttribute("style",o)}}m.on("mouseenter click",function(p){if(p.control===m){if(!n.menu&&p.type==="click"){m.fire("select");m.parent().hideAll()}else{m.showMenu();if(p.aria){m.menu.focus(true)}}}});m._super();return m},active:function(l){if(typeof l!="undefined"){this.aria("checked",l)}return this._super(l)},remove:function(){this._super();if(this.menu){this.menu.remove()}}})});h("tinymce/ui/Menu",["tinymce/ui/FloatPanel","tinymce/ui/MenuItem","tinymce/util/Tools"],function(l,k,i){var j=l.extend({Defaults:{defaultType:"menuitem",border:1,layout:"stack",role:"application",bodyRole:"menu",ariaRoot:true},init:function(p){var n=this;p.autohide=true;p.constrainToViewport=true;if(p.itemDefaults){var m=p.items,o=m.length;while(o--){m[o]=i.extend({},p.itemDefaults,m[o])}}n._super(p);n.addClass("menu")},repaint:function(){this.toggleClass("menu-align",true);this._super();this.getEl().style.height="";this.getEl("body").style.height="";return this},cancel:function(){var m=this;m.hideAll();m.fire("select")},hideAll:function(){var m=this;this.find("menuitem").exec("hideMenu");return m._super()},preRender:function(){var m=this;m.items().each(function(o){var n=o.settings;if(n.icon||n.selectable){m._hasIcons=true;return false}});return m._super()}});return j});h("tinymce/ui/Radio",["tinymce/ui/Checkbox"],function(i){return i.extend({Defaults:{classes:"radio",role:"radio"}})});h("tinymce/ui/ResizeHandle",["tinymce/ui/Widget","tinymce/ui/DragHelper"],function(j,i){return j.extend({renderHtml:function(){var k=this,l=k.classPrefix;k.addClass("resizehandle");if(k.settings.direction=="both"){k.addClass("resizehandle-both")}k.canFocus=false;return('<div id="'+k._id+'" class="'+k.classes()+'"><i class="'+l+"ico "+l+'i-resize"></i></div>')},postRender:function(){var k=this;k._super();k.resizeDragHelper=new i(this._id,{start:function(){k.fire("ResizeStart")},drag:function(l){if(k.settings.direction!="both"){l.deltaX=0}k.fire("Resize",l)},stop:function(){k.fire("ResizeEnd")}})},remove:function(){if(this.resizeDragHelper){this.resizeDragHelper.destroy()}return this._super()}})});h("tinymce/ui/Spacer",["tinymce/ui/Widget"],function(i){return i.extend({renderHtml:function(){var j=this;j.addClass("spacer");j.canFocus=false;return'<div id="'+j._id+'" class="'+j.classes()+'"></div>'}})});h("tinymce/ui/SplitButton",["tinymce/ui/MenuButton","tinymce/ui/DomUtils"],function(j,i){return j.extend({Defaults:{classes:"widget btn splitbtn",role:"button"},repaint:function(){var k=this,o=k.getEl(),m=k.layoutRect(),l,n;k._super();l=o.firstChild;n=o.lastChild;i.css(l,{width:m.w-i.getSize(n).width,height:m.h-2});i.css(n,{height:m.h-2});return k},activeMenu:function(l){var k=this;i.toggleClass(k.getEl().lastChild,k.classPrefix+"active",l)},renderHtml:function(){var k=this,o=k._id,m=k.classPrefix,n;var l=k.settings.icon;n=k.settings.image;if(n){l="none";if(typeof n!="string"){n=window.getSelection?n[0]:n[1]}n=" style=\"background-image: url('"+n+"')\""}else{n=""}l=k.settings.icon?m+"ico "+m+"i-"+l:"";return('<div id="'+o+'" class="'+k.classes()+'" role="button" tabindex="-1"><button type="button" hidefocus="1" tabindex="-1">'+(l?'<i class="'+l+'"'+n+"></i>":"")+(k._text?(l?" ":"")+k._text:"")+'</button><button type="button" class="'+m+'open" hidefocus="1" tabindex="-1">'+(k._menuBtnText?(l?"\u00a0":"")+k._menuBtnText:"")+' <i class="'+m+'caret"></i></button></div>')},postRender:function(){var k=this,l=k.settings.onclick;k.on("click",function(n){var m=n.target;if(n.control==this){while(m){if((n.aria&&n.aria.key!="down")||(m.nodeName=="BUTTON"&&m.className.indexOf("open")==-1)){n.stopImmediatePropagation();l.call(this,n);return}m=m.parentNode}}});delete k.settings.onclick;return k._super()}})});h("tinymce/ui/StackLayout",["tinymce/ui/FlowLayout"],function(i){return i.extend({Defaults:{containerClass:"stack-layout",controlClass:"stack-layout-item",endClass:"break"}})});h("tinymce/ui/TabPanel",["tinymce/ui/Panel","tinymce/ui/DomUtils"],function(j,i){return j.extend({Defaults:{layout:"absolute",defaults:{type:"panel"}},activateTab:function(k){var l;if(this.activeTabId){l=this.getEl(this.activeTabId);i.removeClass(l,this.classPrefix+"active");l.setAttribute("aria-selected","false")}this.activeTabId="t"+k;l=this.getEl("t"+k);l.setAttribute("aria-selected","true");i.addClass(l,this.classPrefix+"active");this.items()[k].show().fire("showtab");this.reflow();this.items().each(function(n,m){if(k!=m){n.hide()}})},renderHtml:function(){var l=this,m=l._layout,k="",n=l.classPrefix;l.preRender();m.preRender(l);l.items().each(function(p,o){var q=l._id+"-t"+o;p.aria("role","tabpanel");p.aria("labelledby",q);k+=('<div id="'+q+'" class="'+n+'tab" unselectable="on" role="tab" aria-controls="'+p._id+'" aria-selected="false" tabIndex="-1">'+l.encode(p.settings.title)+"</div>")});return('<div id="'+l._id+'" class="'+l.classes()+'" hidefocus="1" tabindex="-1"><div id="'+l._id+'-head" class="'+n+'tabs" role="tablist">'+k+'</div><div id="'+l._id+'-body" class="'+l.classes("body")+'">'+m.renderHtml(l)+"</div></div>")},postRender:function(){var k=this;k._super();k.settings.activeTab=k.settings.activeTab||0;k.activateTab(k.settings.activeTab);this.on("click",function(n){var m=n.target.parentNode;if(n.target.parentNode.id==k._id+"-head"){var l=m.childNodes.length;while(l--){if(m.childNodes[l]==n.target){k.activateTab(l)}}}})},initLayoutRect:function(){var l=this,o,k,n;k=i.getSize(l.getEl("head")).width;k=k<0?0:k;n=0;l.items().each(function(p){k=Math.max(k,p.layoutRect().minW);n=Math.max(n,p.layoutRect().minH)});l.items().each(function(p){p.settings.x=0;p.settings.y=0;p.settings.w=k;p.settings.h=n;p.layoutRect({x:0,y:0,w:k,h:n})});var m=i.getSize(l.getEl("head")).height;l.settings.minWidth=k;l.settings.minHeight=n+m;o=l._super();o.deltaH+=m;o.innerH=o.h-o.deltaH;return o}})});h("tinymce/ui/TextBox",["tinymce/ui/Widget","tinymce/ui/DomUtils"],function(j,i){return j.extend({init:function(l){var k=this;k._super(l);k._value=l.value||"";k.addClass("textbox");if(l.multiline){k.addClass("multiline")}else{k.on("keydown",function(m){if(m.keyCode==13){k.parents().reverse().each(function(n){m.preventDefault();if(n.hasEventListeners("submit")&&n.toJSON){n.fire("submit",{data:n.toJSON()});return false}})}})}},disabled:function(l){var k=this;if(k._rendered&&typeof l!="undefined"){k.getEl().disabled=l}return k._super(l)},value:function(l){var k=this;if(typeof l!="undefined"){k._value=l;if(k._rendered){k.getEl().value=l}return k}if(k._rendered){return k.getEl().value}return k._value},repaint:function(){var l=this,n,o,r,m=0,p=0,k;n=l.getEl().style;o=l._layoutRect;k=l._lastRepaintRect||{};var q=document;if(!l.settings.multiline&&q.all&&(!q.documentMode||q.documentMode<=8)){n.lineHeight=(o.h-p)+"px"}r=l._borderBox;m=r.left+r.right+8;p=r.top+r.bottom+(l.settings.multiline?8:0);if(o.x!==k.x){n.left=o.x+"px";k.x=o.x}if(o.y!==k.y){n.top=o.y+"px";k.y=o.y}if(o.w!==k.w){n.width=(o.w-m)+"px";k.w=o.w}if(o.h!==k.h){n.height=(o.h-p)+"px";k.h=o.h}l._lastRepaintRect=k;l.fire("repaint",{},false);return l},renderHtml:function(){var k=this,o=k._id,l=k.settings,n=k.encode(k._value,false),m="";if("spellcheck" in l){m+=' spellcheck="'+l.spellcheck+'"'}if(l.maxLength){m+=' maxlength="'+l.maxLength+'"'}if(l.size){m+=' size="'+l.size+'"'}if(l.subtype){m+=' type="'+l.subtype+'"'}if(k.disabled()){m+=' disabled="disabled"'}if(l.multiline){return('<textarea id="'+o+'" class="'+k.classes()+'" '+(l.rows?' rows="'+l.rows+'"':"")+' hidefocus="1"'+m+">"+n+"</textarea>")}return'<input id="'+o+'" class="'+k.classes()+'" value="'+n+'" hidefocus="1"'+m+" />"},postRender:function(){var k=this;i.on(k.getEl(),"change",function(l){k.fire("change",l)});return k._super()},remove:function(){i.off(this.getEl());this._super()}})});h("tinymce/ui/Throbber",["tinymce/ui/DomUtils","tinymce/ui/Control"],function(i,j){return function(o,n){var l=this,m,k=j.classPrefix;l.show=function(p){l.hide();m=true;window.setTimeout(function(){if(m){o.appendChild(i.createFragment('<div class="'+k+"throbber"+(n?" "+k+"throbber-inline":"")+'"></div>'))}},p||0);return l};l.hide=function(){var p=o.lastChild;if(p&&p.className.indexOf("throbber")!=-1){p.parentNode.removeChild(p)}m=false;return l}}});a(["tinymce/dom/EventUtils","tinymce/dom/Sizzle","tinymce/Env","tinymce/util/Tools","tinymce/dom/DomQuery","tinymce/html/Styles","tinymce/dom/TreeWalker","tinymce/dom/Range","tinymce/html/Entities","tinymce/dom/DOMUtils","tinymce/dom/ScriptLoader","tinymce/AddOnManager","tinymce/dom/RangeUtils","tinymce/html/Node","tinymce/html/Schema","tinymce/html/SaxParser","tinymce/html/DomParser","tinymce/html/Writer","tinymce/html/Serializer","tinymce/dom/Serializer","tinymce/dom/TridentSelection","tinymce/util/VK","tinymce/dom/ControlSelection","tinymce/dom/BookmarkManager","tinymce/dom/Selection","tinymce/dom/ElementUtils","tinymce/Formatter","tinymce/UndoManager","tinymce/EnterKey","tinymce/ForceBlocks","tinymce/EditorCommands","tinymce/util/URI","tinymce/util/Class","tinymce/util/EventDispatcher","tinymce/ui/Selector","tinymce/ui/Collection","tinymce/ui/DomUtils","tinymce/ui/Control","tinymce/ui/Factory","tinymce/ui/KeyboardNavigation","tinymce/ui/Container","tinymce/ui/DragHelper","tinymce/ui/Scrollable","tinymce/ui/Panel","tinymce/ui/Movable","tinymce/ui/Resizable","tinymce/ui/FloatPanel","tinymce/ui/Window","tinymce/ui/MessageBox","tinymce/WindowManager","tinymce/util/Quirks","tinymce/util/Observable","tinymce/EditorObservable","tinymce/Shortcuts","tinymce/Editor","tinymce/util/I18n","tinymce/FocusManager","tinymce/EditorManager","tinymce/LegacyInput","tinymce/util/XHR","tinymce/util/JSON","tinymce/util/JSONRequest","tinymce/util/JSONP","tinymce/util/LocalStorage","tinymce/Compat","tinymce/ui/Layout","tinymce/ui/AbsoluteLayout","tinymce/ui/Tooltip","tinymce/ui/Widget","tinymce/ui/Button","tinymce/ui/ButtonGroup","tinymce/ui/Checkbox","tinymce/ui/ComboBox","tinymce/ui/ColorBox","tinymce/ui/PanelButton","tinymce/ui/ColorButton","tinymce/util/Color","tinymce/ui/ColorPicker","tinymce/ui/Path","tinymce/ui/ElementPath","tinymce/ui/FormItem","tinymce/ui/Form","tinymce/ui/FieldSet","tinymce/ui/FilePicker","tinymce/ui/FitLayout","tinymce/ui/FlexLayout","tinymce/ui/FlowLayout","tinymce/ui/FormatControls","tinymce/ui/GridLayout","tinymce/ui/Iframe","tinymce/ui/Label","tinymce/ui/Toolbar","tinymce/ui/MenuBar","tinymce/ui/MenuButton","tinymce/ui/ListBox","tinymce/ui/MenuItem","tinymce/ui/Menu","tinymce/ui/Radio","tinymce/ui/ResizeHandle","tinymce/ui/Spacer","tinymce/ui/SplitButton","tinymce/ui/StackLayout","tinymce/ui/TabPanel","tinymce/ui/TextBox","tinymce/ui/Throbber"])})(this);
\ No newline at end of file
+!function(e,t){"use strict";function n(e,t){for(var n,i=[],a=0;a<e.length;++a){if(!(n=o[e[a]]||r(e[a])))throw"module definition dependecy not found: "+e[a];i.push(n)}t.apply(null,i)}function i(e,i,r){if("string"!=typeof e)throw"invalid module definition, module id must be defined and be a string";if(i===t)throw"invalid module definition, dependencies must be specified";if(r===t)throw"invalid module definition, definition function must be specified";n(i,function(){o[e]=r.apply(null,arguments)})}function r(t){for(var n=e,i=t.split(/[.\/]/),r=0;r<i.length;++r){if(!n[i[r]])return;n=n[i[r]]}return n}var o={};i("tinymce/dom/EventUtils",[],function(){function e(e,t,n,i){e.addEventListener?e.addEventListener(t,n,i||!1):e.attachEvent&&e.attachEvent("on"+t,n)}function t(e,t,n,i){e.removeEventListener?e.removeEventListener(t,n,i||!1):e.detachEvent&&e.detachEvent("on"+t,n)}function n(e,t){function n(){return!1}function i(){return!0}var r,o=t||{};for(r in e)s[r]||(o[r]=e[r]);if(o.target||(o.target=o.srcElement||document),e&&a.test(e.type)&&void 0===e.pageX&&void 0!==e.clientX){var l=o.target.ownerDocument||document,c=l.documentElement,u=l.body;o.pageX=e.clientX+(c&&c.scrollLeft||u&&u.scrollLeft||0)-(c&&c.clientLeft||u&&u.clientLeft||0),o.pageY=e.clientY+(c&&c.scrollTop||u&&u.scrollTop||0)-(c&&c.clientTop||u&&u.clientTop||0)}return o.preventDefault=function(){o.isDefaultPrevented=i,e&&(e.preventDefault?e.preventDefault():e.returnValue=!1)},o.stopPropagation=function(){o.isPropagationStopped=i,e&&(e.stopPropagation?e.stopPropagation():e.cancelBubble=!0)},o.stopImmediatePropagation=function(){o.isImmediatePropagationStopped=i,o.stopPropagation()},o.isDefaultPrevented||(o.isDefaultPrevented=n,o.isPropagationStopped=n,o.isImmediatePropagationStopped=n),o}function i(n,i,r){function o(){r.domLoaded||(r.domLoaded=!0,i(c))}function a(){("complete"===l.readyState||"interactive"===l.readyState&&l.body)&&(t(l,"readystatechange",a),o())}function s(){try{l.documentElement.doScroll("left")}catch(e){return void setTimeout(s,0)}o()}var l=n.document,c={type:"ready"};r.domLoaded?i(c):(l.addEventListener?"complete"===l.readyState?o():e(n,"DOMContentLoaded",o):(e(l,"readystatechange",a),l.documentElement.doScroll&&n.self===n.top&&s()),e(n,"load",o))}function r(){function r(e,t){var n,i,r,o,a=f[t];if(n=a&&a[e.type])for(i=0,r=n.length;i<r;i++)if((o=n[i])&&!1===o.func.call(o.scope,e)&&e.preventDefault(),e.isImmediatePropagationStopped())return}var a,s,l,c,u,d=this,f={};s=o+(+new Date).toString(32),c="onmouseenter"in document.documentElement,l="onfocusin"in document.documentElement,u={mouseenter:"mouseover",mouseleave:"mouseout"},a=1,d.domLoaded=!1,d.events=f,d.bind=function(t,o,m,p){var h,g,v,y,b,C,x,w=window;if(t&&3!==t.nodeType&&8!==t.nodeType){for(t[s]?h=t[s]:(h=a++,t[s]=h,f[h]={}),p=p||t,v=(o=o.split(" ")).length;v--;)C=function(e){r(n(e||w.event),h)},b=x=!1,"DOMContentLoaded"===(y=o[v])&&(y="ready"),d.domLoaded&&"ready"===y&&"complete"==t.readyState?m.call(p,n({type:y})):(c||(b=u[y])&&(C=function(e){var t,i;if(t=e.currentTarget,(i=e.relatedTarget)&&t.contains)i=t.contains(i);else for(;i&&i!==t;)i=i.parentNode;i||((e=n(e||w.event)).type="mouseout"===e.type?"mouseleave":"mouseenter",e.target=t,r(e,h))}),l||"focusin"!==y&&"focusout"!==y||(x=!0,b="focusin"===y?"focus":"blur",C=function(e){(e=n(e||w.event)).type="focus"===e.type?"focusin":"focusout",r(e,h)}),(g=f[h][y])?"ready"===y&&d.domLoaded?m({type:y}):g.push({func:m,scope:p}):(f[h][y]=g=[{func:m,scope:p}],g.fakeName=b,g.capture=x,g.nativeHandler=C,"ready"===y?i(t,C,d):e(t,b||y,C,x)));return t=g=0,m}},d.unbind=function(e,n,i){var r,o,a,l,c,u;if(!e||3===e.nodeType||8===e.nodeType)return d;if(r=e[s]){if(u=f[r],n){for(a=(n=n.split(" ")).length;a--;)if(c=n[a],o=u[c]){if(i)for(l=o.length;l--;)if(o[l].func===i){var m=o.nativeHandler,p=o.fakeName,h=o.capture;(o=o.slice(0,l).concat(o.slice(l+1))).nativeHandler=m,o.fakeName=p,o.capture=h,u[c]=o}i&&0!==o.length||(delete u[c],t(e,o.fakeName||c,o.nativeHandler,o.capture))}}else{for(c in u)o=u[c],t(e,o.fakeName||c,o.nativeHandler,o.capture);u={}}for(c in u)return d;delete f[r];try{delete e[s]}catch(t){e[s]=null}}return d},d.fire=function(e,t,i){var o;if(!e||3===e.nodeType||8===e.nodeType)return d;(i=n(null,i)).type=t,i.target=e;do{(o=e[s])&&r(i,o),e=e.parentNode||e.ownerDocument||e.defaultView||e.parentWindow}while(e&&!i.isPropagationStopped());return d},d.clean=function(e){var t,n,i=d.unbind;if(!e||3===e.nodeType||8===e.nodeType)return d;if(e[s]&&i(e),e.getElementsByTagName||(e=e.document),e&&e.getElementsByTagName)for(i(e),t=(n=e.getElementsByTagName("*")).length;t--;)(e=n[t])[s]&&i(e);return d},d.destroy=function(){f={}},d.cancel=function(e){return e&&(e.preventDefault(),e.stopImmediatePropagation()),!1}}var o="mce-data-",a=/^(?:mouse|contextmenu)|click/,s={keyLocation:1,layerX:1,layerY:1,returnValue:1};return(r.Event=new r).bind(window,"ready",function(){}),r}),i("tinymce/dom/Sizzle",[],function(){function e(e,t,n,i){var r,o,a,s,c,d,f,m,p,h;if((t?t.ownerDocument||t:I)!==A&&R(t),t=t||A,n=n||[],!e||"string"!=typeof e)return n;if(1!==(s=t.nodeType)&&9!==s)return[];if(D&&!i){if(r=he.exec(e))if(a=r[1]){if(9===s){if(!(o=t.getElementById(a))||!o.parentNode)return n;if(o.id===a)return n.push(o),n}else if(t.ownerDocument&&(o=t.ownerDocument.getElementById(a))&&H(t,o)&&o.id===a)return n.push(o),n}else{if(r[2])return J.apply(n,t.getElementsByTagName(e)),n;if((a=r[3])&&b.getElementsByClassName)return J.apply(n,t.getElementsByClassName(a)),n}if(b.qsa&&(!M||!M.test(e))){if(m=f=O,p=t,h=9===s&&e,1===s&&"object"!==t.nodeName.toLowerCase()){for(d=_(e),(f=t.getAttribute("id"))?m=f.replace(ve,"\\$&"):t.setAttribute("id",m),m="[id='"+m+"'] ",c=d.length;c--;)d[c]=m+u(d[c]);p=ge.test(e)&&l(t.parentNode)||t,h=d.join(",")}if(h)try{return J.apply(n,p.querySelectorAll(h)),n}catch(e){}finally{f||t.removeAttribute("id")}}}return N(e.replace(oe,"$1"),t,n,i)}function n(){function e(n,i){return t.push(n+" ")>C.cacheLength&&delete e[t.shift()],e[n+" "]=i}var t=[];return e}function i(e){return e[O]=!0,e}function r(e){var t=A.createElement("div");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function o(e,t){for(var n=e.split("|"),i=e.length;i--;)C.attrHandle[n[i]]=t}function a(e,t){var n=t&&e,i=n&&1===e.nodeType&&1===t.nodeType&&(~t.sourceIndex||j)-(~e.sourceIndex||j);if(i)return i;if(n)for(;n=n.nextSibling;)if(n===t)return-1;return e?1:-1}function s(e){return i(function(t){return t=+t,i(function(n,i){for(var r,o=e([],n.length,t),a=o.length;a--;)n[r=o[a]]&&(n[r]=!(i[r]=n[r]))})})}function l(e){return e&&typeof e.getElementsByTagName!==q&&e}function c(){}function u(e){for(var t=0,n=e.length,i="";t<n;t++)i+=e[t].value;return i}function d(e,t,n){var i=t.dir,r=n&&"parentNode"===i,o=z++;return t.first?function(t,n,o){for(;t=t[i];)if(1===t.nodeType||r)return e(t,n,o)}:function(t,n,a){var s,l,c=[F,o];if(a){for(;t=t[i];)if((1===t.nodeType||r)&&e(t,n,a))return!0}else for(;t=t[i];)if(1===t.nodeType||r){if(l=t[O]||(t[O]={}),(s=l[i])&&s[0]===F&&s[1]===o)return c[2]=s[2];if(l[i]=c,c[2]=e(t,n,a))return!0}}}function f(e){return e.length>1?function(t,n,i){for(var r=e.length;r--;)if(!e[r](t,n,i))return!1;return!0}:e[0]}function m(t,n,i){for(var r=0,o=n.length;r<o;r++)e(t,n[r],i);return i}function p(e,t,n,i,r){for(var o,a=[],s=0,l=e.length,c=null!=t;s<l;s++)(o=e[s])&&(n&&!n(o,i,r)||(a.push(o),c&&t.push(s)));return a}function h(e,t,n,r,o,a){return r&&!r[O]&&(r=h(r)),o&&!o[O]&&(o=h(o,a)),i(function(i,a,s,l){var c,u,d,f=[],h=[],g=a.length,v=i||m(t||"*",s.nodeType?[s]:s,[]),y=!e||!i&&t?v:p(v,f,e,s,l),b=n?o||(i?e:g||r)?[]:a:y;if(n&&n(y,b,s,l),r)for(c=p(b,h),r(c,[],s,l),u=c.length;u--;)(d=c[u])&&(b[h[u]]=!(y[h[u]]=d));if(i){if(o||e){if(o){for(c=[],u=b.length;u--;)(d=b[u])&&c.push(y[u]=d);o(null,b=[],c,l)}for(u=b.length;u--;)(d=b[u])&&(c=o?Z.call(i,d):f[u])>-1&&(i[c]=!(a[c]=d))}}else b=p(b===a?b.splice(g,b.length):b),o?o(null,a,b,l):J.apply(a,b)})}function g(e){for(var t,n,i,r=e.length,o=C.relative[e[0].type],a=o||C.relative[" "],s=o?1:0,l=d(function(e){return e===t},a,!0),c=d(function(e){return Z.call(t,e)>-1},a,!0),m=[function(e,n,i){return!o&&(i||n!==S)||((t=n).nodeType?l(e,n,i):c(e,n,i))}];s<r;s++)if(n=C.relative[e[s].type])m=[d(f(m),n)];else{if((n=C.filter[e[s].type].apply(null,e[s].matches))[O]){for(i=++s;i<r&&!C.relative[e[i].type];i++);return h(s>1&&f(m),s>1&&u(e.slice(0,s-1).concat({value:" "===e[s-2].type?"*":""})).replace(oe,"$1"),n,s<i&&g(e.slice(s,i)),i<r&&g(e=e.slice(i)),i<r&&u(e))}m.push(n)}return f(m)}function v(t,n){var r=n.length>0,o=t.length>0,a=function(i,a,s,l,c){var u,d,f,m=0,h="0",g=i&&[],v=[],y=S,b=i||o&&C.find.TAG("*",c),x=F+=null==y?1:Math.random()||.1,w=b.length;for(c&&(S=a!==A&&a);h!==w&&null!=(u=b[h]);h++){if(o&&u){for(d=0;f=t[d++];)if(f(u,a,s)){l.push(u);break}c&&(F=x)}r&&((u=!f&&u)&&m--,i&&g.push(u))}if(m+=h,r&&h!==m){for(d=0;f=n[d++];)f(g,v,a,s);if(i){if(m>0)for(;h--;)g[h]||v[h]||(v[h]=G.call(l));v=p(v)}J.apply(l,v),c&&!i&&v.length>0&&m+n.length>1&&e.uniqueSort(l)}return c&&(F=x,S=y),g};return r?i(a):a}var y,b,C,x,w,_,E,N,S,k,T,R,A,B,D,M,L,P,H,O="sizzle"+-new Date,I=window.document,F=0,z=0,W=n(),U=n(),V=n(),$=function(e,t){return e===t&&(T=!0),0},q=typeof t,j=1<<31,K={}.hasOwnProperty,Y=[],G=Y.pop,X=Y.push,J=Y.push,Q=Y.slice,Z=Y.indexOf||function(e){for(var t=0,n=this.length;t<n;t++)if(this[t]===e)return t;return-1},ee="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",te="[\\x20\\t\\r\\n\\f]",ne="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",ie="\\["+te+"*("+ne+")(?:"+te+"*([*^$|!~]?=)"+te+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+ne+"))|)"+te+"*\\]",re=":("+ne+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+ie+")*)|.*)\\)|)",oe=new RegExp("^"+te+"+|((?:^|[^\\\\])(?:\\\\.)*)"+te+"+$","g"),ae=new RegExp("^"+te+"*,"+te+"*"),se=new RegExp("^"+te+"*([>+~]|"+te+")"+te+"*"),le=new RegExp("="+te+"*([^\\]'\"]*?)"+te+"*\\]","g"),ce=new RegExp(re),ue=new RegExp("^"+ne+"$"),de={ID:new RegExp("^#("+ne+")"),CLASS:new RegExp("^\\.("+ne+")"),TAG:new RegExp("^("+ne+"|[*])"),ATTR:new RegExp("^"+ie),PSEUDO:new RegExp("^"+re),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+te+"*(even|odd|(([+-]|)(\\d*)n|)"+te+"*(?:([+-]|)"+te+"*(\\d+)|))"+te+"*\\)|)","i"),bool:new RegExp("^(?:"+ee+")$","i"),needsContext:new RegExp("^"+te+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+te+"*((?:-\\d)?\\d*)"+te+"*\\)|)(?=[^-]|$)","i")},fe=/^(?:input|select|textarea|button)$/i,me=/^h\d$/i,pe=/^[^{]+\{\s*\[native \w/,he=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ge=/[+~]/,ve=/'|\\/g,ye=new RegExp("\\\\([\\da-f]{1,6}"+te+"?|("+te+")|.)","ig"),be=function(e,t,n){var i="0x"+t-65536;return i!==i||n?t:i<0?String.fromCharCode(i+65536):String.fromCharCode(i>>10|55296,1023&i|56320)};try{J.apply(Y=Q.call(I.childNodes),I.childNodes),Y[I.childNodes.length].nodeType}catch(e){J={apply:Y.length?function(e,t){X.apply(e,Q.call(t))}:function(e,t){for(var n=e.length,i=0;e[n++]=t[i++];);e.length=n-1}}}b=e.support={},w=e.isXML=function(e){var t=e&&(e.ownerDocument||e).documentElement;return!!t&&"HTML"!==t.nodeName},R=e.setDocument=function(e){var t,n=e?e.ownerDocument||e:I,i=n.defaultView;return n!==A&&9===n.nodeType&&n.documentElement?(A=n,B=n.documentElement,D=!w(n),i&&i!==i.top&&(i.addEventListener?i.addEventListener("unload",function(){R()},!1):i.attachEvent&&i.attachEvent("onunload",function(){R()})),b.attributes=r(function(e){return e.className="i",!e.getAttribute("className")}),b.getElementsByTagName=r(function(e){return e.appendChild(n.createComment("")),!e.getElementsByTagName("*").length}),b.getElementsByClassName=pe.test(n.getElementsByClassName),b.getById=r(function(e){return B.appendChild(e).id=O,!n.getElementsByName||!n.getElementsByName(O).length}),b.getById?(C.find.ID=function(e,t){if(typeof t.getElementById!==q&&D){var n=t.getElementById(e);return n&&n.parentNode?[n]:[]}},C.filter.ID=function(e){var t=e.replace(ye,be);return function(e){return e.getAttribute("id")===t}}):(delete C.find.ID,C.filter.ID=function(e){var t=e.replace(ye,be);return function(e){var n=typeof e.getAttributeNode!==q&&e.getAttributeNode("id");return n&&n.value===t}}),C.find.TAG=b.getElementsByTagName?function(e,t){if(typeof t.getElementsByTagName!==q)return t.getElementsByTagName(e)}:function(e,t){var n,i=[],r=0,o=t.getElementsByTagName(e);if("*"===e){for(;n=o[r++];)1===n.nodeType&&i.push(n);return i}return o},C.find.CLASS=b.getElementsByClassName&&function(e,t){if(D)return t.getElementsByClassName(e)},L=[],M=[],(b.qsa=pe.test(n.querySelectorAll))&&(r(function(e){e.innerHTML="<select msallowcapture=''><option selected=''></option></select>",e.querySelectorAll("[msallowcapture^='']").length&&M.push("[*^$]="+te+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||M.push("\\["+te+"*(?:value|"+ee+")"),e.querySelectorAll(":checked").length||M.push(":checked")}),r(function(e){var t=n.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&M.push("name"+te+"*[*^$|!~]?="),e.querySelectorAll(":enabled").length||M.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),M.push(",.*:")})),(b.matchesSelector=pe.test(P=B.matches||B.webkitMatchesSelector||B.mozMatchesSelector||B.oMatchesSelector||B.msMatchesSelector))&&r(function(e){b.disconnectedMatch=P.call(e,"div"),P.call(e,"[s!='']:x"),L.push("!=",re)}),M=M.length&&new RegExp(M.join("|")),L=L.length&&new RegExp(L.join("|")),t=pe.test(B.compareDocumentPosition),H=t||pe.test(B.contains)?function(e,t){var n=9===e.nodeType?e.documentElement:e,i=t&&t.parentNode;return e===i||!(!i||1!==i.nodeType||!(n.contains?n.contains(i):e.compareDocumentPosition&&16&e.compareDocumentPosition(i)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},$=t?function(e,t){if(e===t)return T=!0,0;var i=!e.compareDocumentPosition-!t.compareDocumentPosition;return i||(1&(i=(e.ownerDocument||e)===(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!b.sortDetached&&t.compareDocumentPosition(e)===i?e===n||e.ownerDocument===I&&H(I,e)?-1:t===n||t.ownerDocument===I&&H(I,t)?1:k?Z.call(k,e)-Z.call(k,t):0:4&i?-1:1)}:function(e,t){if(e===t)return T=!0,0;var i,r=0,o=e.parentNode,s=t.parentNode,l=[e],c=[t];if(!o||!s)return e===n?-1:t===n?1:o?-1:s?1:k?Z.call(k,e)-Z.call(k,t):0;if(o===s)return a(e,t);for(i=e;i=i.parentNode;)l.unshift(i);for(i=t;i=i.parentNode;)c.unshift(i);for(;l[r]===c[r];)r++;return r?a(l[r],c[r]):l[r]===I?-1:c[r]===I?1:0},n):A},e.matches=function(t,n){return e(t,null,null,n)},e.matchesSelector=function(t,n){if((t.ownerDocument||t)!==A&&R(t),n=n.replace(le,"='$1']"),b.matchesSelector&&D&&(!L||!L.test(n))&&(!M||!M.test(n)))try{var i=P.call(t,n);if(i||b.disconnectedMatch||t.document&&11!==t.document.nodeType)return i}catch(e){}return e(n,A,null,[t]).length>0},e.contains=function(e,t){return(e.ownerDocument||e)!==A&&R(e),H(e,t)},e.attr=function(e,n){(e.ownerDocument||e)!==A&&R(e);var i=C.attrHandle[n.toLowerCase()],r=i&&K.call(C.attrHandle,n.toLowerCase())?i(e,n,!D):t;return r!==t?r:b.attributes||!D?e.getAttribute(n):(r=e.getAttributeNode(n))&&r.specified?r.value:null},e.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},e.uniqueSort=function(e){var t,n=[],i=0,r=0;if(T=!b.detectDuplicates,k=!b.sortStable&&e.slice(0),e.sort($),T){for(;t=e[r++];)t===e[r]&&(i=n.push(r));for(;i--;)e.splice(n[i],1)}return k=null,e},x=e.getText=function(e){var t,n="",i=0,r=e.nodeType;if(r){if(1===r||9===r||11===r){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=x(e)}else if(3===r||4===r)return e.nodeValue}else for(;t=e[i++];)n+=x(t);return n},(C=e.selectors={cacheLength:50,createPseudo:i,match:de,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(ye,be),e[3]=(e[3]||e[4]||e[5]||"").replace(ye,be),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(t){return t[1]=t[1].toLowerCase(),"nth"===t[1].slice(0,3)?(t[3]||e.error(t[0]),t[4]=+(t[4]?t[5]+(t[6]||1):2*("even"===t[3]||"odd"===t[3])),t[5]=+(t[7]+t[8]||"odd"===t[3])):t[3]&&e.error(t[0]),t},PSEUDO:function(e){var t,n=!e[6]&&e[2];return de.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&ce.test(n)&&(t=_(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(ye,be).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=W[e+" "];return t||(t=new RegExp("(^|"+te+")"+e+"("+te+"|$)"))&&W(e,function(e){return t.test("string"==typeof e.className&&e.className||typeof e.getAttribute!==q&&e.getAttribute("class")||"")})},ATTR:function(t,n,i){return function(r){var o=e.attr(r,t);return null==o?"!="===n:!n||(o+="","="===n?o===i:"!="===n?o!==i:"^="===n?i&&0===o.indexOf(i):"*="===n?i&&o.indexOf(i)>-1:"$="===n?i&&o.slice(-i.length)===i:"~="===n?(" "+o+" ").indexOf(i)>-1:"|="===n&&(o===i||o.slice(0,i.length+1)===i+"-"))}},CHILD:function(e,t,n,i,r){var o="nth"!==e.slice(0,3),a="last"!==e.slice(-4),s="of-type"===t;return 1===i&&0===r?function(e){return!!e.parentNode}:function(t,n,l){var c,u,d,f,m,p,h=o!==a?"nextSibling":"previousSibling",g=t.parentNode,v=s&&t.nodeName.toLowerCase(),y=!l&&!s;if(g){if(o){for(;h;){for(d=t;d=d[h];)if(s?d.nodeName.toLowerCase()===v:1===d.nodeType)return!1;p=h="only"===e&&!p&&"nextSibling"}return!0}if(p=[a?g.firstChild:g.lastChild],a&&y){for(m=(c=(u=g[O]||(g[O]={}))[e]||[])[0]===F&&c[1],f=c[0]===F&&c[2],d=m&&g.childNodes[m];d=++m&&d&&d[h]||(f=m=0)||p.pop();)if(1===d.nodeType&&++f&&d===t){u[e]=[F,m,f];break}}else if(y&&(c=(t[O]||(t[O]={}))[e])&&c[0]===F)f=c[1];else for(;(d=++m&&d&&d[h]||(f=m=0)||p.pop())&&((s?d.nodeName.toLowerCase()!==v:1!==d.nodeType)||!++f||(y&&((d[O]||(d[O]={}))[e]=[F,f]),d!==t)););return(f-=r)===i||f%i==0&&f/i>=0}}},PSEUDO:function(t,n){var r,o=C.pseudos[t]||C.setFilters[t.toLowerCase()]||e.error("unsupported pseudo: "+t);return o[O]?o(n):o.length>1?(r=[t,t,"",n],C.setFilters.hasOwnProperty(t.toLowerCase())?i(function(e,t){for(var i,r=o(e,n),a=r.length;a--;)e[i=Z.call(e,r[a])]=!(t[i]=r[a])}):function(e){return o(e,0,r)}):o}},pseudos:{not:i(function(e){var t=[],n=[],r=E(e.replace(oe,"$1"));return r[O]?i(function(e,t,n,i){for(var o,a=r(e,null,i,[]),s=e.length;s--;)(o=a[s])&&(e[s]=!(t[s]=o))}):function(e,i,o){return t[0]=e,r(t,null,o,n),!n.pop()}}),has:i(function(t){return function(n){return e(t,n).length>0}}),contains:i(function(e){return e=e.replace(ye,be),function(t){return(t.textContent||t.innerText||x(t)).indexOf(e)>-1}}),lang:i(function(t){return ue.test(t||"")||e.error("unsupported lang: "+t),t=t.replace(ye,be).toLowerCase(),function(e){var n;do{if(n=D?e.lang:e.getAttribute("xml:lang")||e.getAttribute("lang"))return(n=n.toLowerCase())===t||0===n.indexOf(t+"-")}while((e=e.parentNode)&&1===e.nodeType);return!1}}),target:function(e){var t=window.location&&window.location.hash;return t&&t.slice(1)===e.id},root:function(e){return e===B},focus:function(e){return e===A.activeElement&&(!A.hasFocus||A.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:function(e){return!1===e.disabled},disabled:function(e){return!0===e.disabled},checked:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&!!e.checked||"option"===t&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,!0===e.selected},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!C.pseudos.empty(e)},header:function(e){return me.test(e.nodeName)},input:function(e){return fe.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},text:function(e){var t;return"input"===e.nodeName.toLowerCase()&&"text"===e.type&&(null==(t=e.getAttribute("type"))||"text"===t.toLowerCase())},first:s(function(){return[0]}),last:s(function(e,t){return[t-1]}),eq:s(function(e,t,n){return[n<0?n+t:n]}),even:s(function(e,t){for(var n=0;n<t;n+=2)e.push(n);return e}),odd:s(function(e,t){for(var n=1;n<t;n+=2)e.push(n);return e}),lt:s(function(e,t,n){for(var i=n<0?n+t:n;--i>=0;)e.push(i);return e}),gt:s(function(e,t,n){for(var i=n<0?n+t:n;++i<t;)e.push(i);return e})}}).pseudos.nth=C.pseudos.eq;for(y in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})C.pseudos[y]=function(e){return function(t){return"input"===t.nodeName.toLowerCase()&&t.type===e}}(y);for(y in{submit:!0,reset:!0})C.pseudos[y]=function(e){return function(t){var n=t.nodeName.toLowerCase();return("input"===n||"button"===n)&&t.type===e}}(y);return c.prototype=C.filters=C.pseudos,C.setFilters=new c,_=e.tokenize=function(t,n){var i,r,o,a,s,l,c,u=U[t+" "];if(u)return n?0:u.slice(0);for(s=t,l=[],c=C.preFilter;s;){i&&!(r=ae.exec(s))||(r&&(s=s.slice(r[0].length)||s),l.push(o=[])),i=!1,(r=se.exec(s))&&(i=r.shift(),o.push({value:i,type:r[0].replace(oe," ")}),s=s.slice(i.length));for(a in C.filter)!(r=de[a].exec(s))||c[a]&&!(r=c[a](r))||(i=r.shift(),o.push({value:i,type:a,matches:r}),s=s.slice(i.length));if(!i)break}return n?s.length:s?e.error(t):U(t,l).slice(0)},E=e.compile=function(e,t){var n,i=[],r=[],o=V[e+" "];if(!o){for(t||(t=_(e)),n=t.length;n--;)(o=g(t[n]))[O]?i.push(o):r.push(o);(o=V(e,v(r,i))).selector=e}return o},N=e.select=function(e,t,n,i){var r,o,a,s,c,d="function"==typeof e&&e,f=!i&&_(e=d.selector||e);if(n=n||[],1===f.length){if((o=f[0]=f[0].slice(0)).length>2&&"ID"===(a=o[0]).type&&b.getById&&9===t.nodeType&&D&&C.relative[o[1].type]){if(!(t=(C.find.ID(a.matches[0].replace(ye,be),t)||[])[0]))return n;d&&(t=t.parentNode),e=e.slice(o.shift().value.length)}for(r=de.needsContext.test(e)?0:o.length;r--&&(a=o[r],!C.relative[s=a.type]);)if((c=C.find[s])&&(i=c(a.matches[0].replace(ye,be),ge.test(o[0].type)&&l(t.parentNode)||t))){if(o.splice(r,1),!(e=i.length&&u(o)))return J.apply(n,i),n;break}}return(d||E(e,f))(i,t,!D,n,ge.test(e)&&l(t.parentNode)||t),n},b.sortStable=O.split("").sort($).join("")===O,b.detectDuplicates=!!T,R(),b.sortDetached=r(function(e){return 1&e.compareDocumentPosition(A.createElement("div"))}),r(function(e){return e.innerHTML="<a href='#'></a>","#"===e.firstChild.getAttribute("href")})||o("type|href|height|width",function(e,t,n){if(!n)return e.getAttribute(t,"type"===t.toLowerCase()?1:2)}),b.attributes&&r(function(e){return e.innerHTML="<input/>",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")})||o("value",function(e,t,n){if(!n&&"input"===e.nodeName.toLowerCase())return e.defaultValue}),r(function(e){return null==e.getAttribute("disabled")})||o(ee,function(e,t,n){var i;if(!n)return!0===e[t]?t.toLowerCase():(i=e.getAttributeNode(t))&&i.specified?i.value:null}),e}),i("tinymce/Env",[],function(){var e,t,n,i,r,o,a,s,l,c=navigator,u=c.userAgent;return e=window.opera&&window.opera.buildNumber,l=/Android/.test(u),n=(n=!(t=/WebKit/.test(u))&&!e&&/MSIE/gi.test(u)&&/Explorer/gi.test(c.appName))&&/MSIE (\w+)\./.exec(u)[1],i=-1!=u.indexOf("Trident/")&&(-1!=u.indexOf("rv:")||-1!=c.appName.indexOf("Netscape"))&&11,r=!(!document.msElementsFromPoint||n||i)&&12,n=n||i||r,o=!t&&!i&&/Gecko/.test(u),a=-1!=u.indexOf("Mac"),s=/(iPad|iPhone)/.test(u),r&&(t=!1),{opera:e,webkit:t,ie:n,gecko:o,mac:a,iOS:s,android:l,contentEditable:!s||u.match(/AppleWebKit\/(\d*)/)[1]>=534,transparentSrc:"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",caretAfter:8!=n,range:window.getSelection&&"Range"in window,documentMode:n&&!r?document.documentMode||7:10}}),i("tinymce/util/Tools",["tinymce/Env"],function(e){function n(e){return null===e||e===t?"":(""+e).replace(s,"")}function i(e,n){return n?!("array"!=n||!l(e))||typeof e==n:e!==t}function r(e,n,i){var r,o;if(!e)return 0;if(i=i||e,e.length!==t){for(r=0,o=e.length;r<o;r++)if(!1===n.call(i,e[r],r,e))return 0}else for(r in e)if(e.hasOwnProperty(r)&&!1===n.call(i,e[r],r,e))return 0;return 1}function o(e,t){var n=[];return r(e,function(e){n.push(t(e))}),n}function a(e,t,n,i){i=i||this,e&&(n&&(e=e[n]),r(e,function(e,r){if(!1===t.call(i,e,r,n))return!1;a(e,t,n,i)}))}var s=/^\s*|\s*$/g,l=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)};return{trim:n,isArray:l,is:i,toArray:function(e){var t,n,i=e;if(!l(e))for(i=[],t=0,n=e.length;t<n;t++)i[t]=e[t];return i},makeMap:function(e,t,n){var i;for(e=e||[],t=t||",","string"==typeof e&&(e=e.split(t)),n=n||{},i=e.length;i--;)n[e[i]]={};return n},each:r,map:o,grep:function(e,t){var n=[];return r(e,function(e){t&&!t(e)||n.push(e)}),n},inArray:function(e,t){var n,i;if(e)for(n=0,i=e.length;n<i;n++)if(e[n]===t)return n;return-1},extend:function(e,n){var i,r,o,a,s=arguments;for(i=1,r=s.length;i<r;i++){n=s[i];for(o in n)n.hasOwnProperty(o)&&(a=n[o])!==t&&(e[o]=a)}return e},create:function(e,t,n){var i,r,o,a,s,l=this,c=0;if(e=/^((static) )?([\w.]+)(:([\w.]+))?/.exec(e),o=e[3].match(/(^|\.)(\w+)$/i)[2],!(r=l.createNS(e[3].replace(/\.\w+$/,""),n))[o]){if("static"==e[2])return r[o]=t,void(this.onCreate&&this.onCreate(e[2],e[3],r[o]));t[o]||(t[o]=function(){},c=1),r[o]=t[o],l.extend(r[o].prototype,t),e[5]&&(i=l.resolve(e[5]).prototype,a=e[5].match(/\.(\w+)$/i)[1],s=r[o],r[o]=c?function(){return i[a].apply(this,arguments)}:function(){return this.parent=i[a],s.apply(this,arguments)},r[o].prototype[o]=r[o],l.each(i,function(e,t){r[o].prototype[t]=i[t]}),l.each(t,function(e,t){i[t]?r[o].prototype[t]=function(){return this.parent=i[t],e.apply(this,arguments)}:t!=o&&(r[o].prototype[t]=e)})),l.each(t.static,function(e,t){r[o][t]=e})}},walk:a,createNS:function(e,t){var n,i;for(t=t||window,e=e.split("."),n=0;n<e.length;n++)t[i=e[n]]||(t[i]={}),t=t[i];return t},resolve:function(e,t){var n,i;for(t=t||window,n=0,i=(e=e.split(".")).length;n<i&&(t=t[e[n]]);n++);return t},explode:function(e,t){return!e||i(e,"array")?e:o(e.split(t||","),n)},_addCacheSuffix:function(t){var n=e.cacheSuffix;return n&&(t+=(-1===t.indexOf("?")?"?":"&")+n),t}}}),i("tinymce/dom/DomQuery",["tinymce/dom/EventUtils","tinymce/dom/Sizzle","tinymce/util/Tools","tinymce/Env"],function(e,n,i,r){function o(e){return void 0!==e}function a(e){return"string"==typeof e}function s(e){return e&&e==e.window}function l(e,t){var n,i,r;for(r=(t=t||w).createElement("div"),n=t.createDocumentFragment(),r.innerHTML=e;i=r.firstChild;)n.appendChild(i);return n}function c(e,t,n,i){var r;if(a(t))t=l(t,g(e[0]));else if(t.length&&!t.nodeType){if(t=f.makeArray(t),i)for(r=t.length-1;r>=0;r--)c(e,t[r],n,i);else for(r=0;r<t.length;r++)c(e,t[r],n,i);return e}if(t.nodeType)for(r=e.length;r--;)n.call(e[r],t);return e}function u(e,t){return e&&t&&-1!==(" "+e.className+" ").indexOf(" "+t+" ")}function d(e,t,n){var i,r;return t=f(t)[0],e.each(function(){var e=this;n&&i==e.parentNode?r.appendChild(e):(i=e.parentNode,r=t.cloneNode(!1),e.parentNode.insertBefore(r,e),r.appendChild(e))}),e}function f(e,t){return new f.fn.init(e,t)}function m(e){return null===e||e===x?"":(""+e).replace(M,"")}function p(e,t){var n,i,r,o;if(e)if(void 0===(n=e.length)){for(i in e)if(e.hasOwnProperty(i)&&(o=e[i],!1===t.call(o,i,o)))break}else for(r=0;r<n&&(o=e[r],!1!==t.call(o,r,o));r++);return e}function h(e,t){var n=[];return p(e,function(e,i){t(i,e)&&n.push(i)}),n}function g(e){return e?9==e.nodeType?e:e.ownerDocument:w}function v(e,n,i){var r=[],o=e[n];for("string"!=typeof i&&i instanceof f&&(i=i[0]);o&&9!==o.nodeType;){if(i!==t){if(o===i)break;if("string"==typeof i&&f(o).is(i))break}1===o.nodeType&&r.push(o),o=o[n]}return r}function y(e,n,i,r){var o=[];for(r instanceof f&&(r=r[0]);e;e=e[n])if(!i||e.nodeType===i){if(r!==t){if(e===r)break;if("string"==typeof r&&f(e).is(r))break}o.push(e)}return o}function b(e,t,n){for(e=e[t];e;e=e[t])if(e.nodeType==n)return e;return null}function C(e,t,n){p(n,function(n,i){e[n]=e[n]||{},e[n][t]=i})}var x,w=document,_=Array.prototype.push,E=Array.prototype.slice,N=/^(?:[^#<]*(<[\w\W]+>)[^>]*$|#([\w\-]*)$)/,S=e.Event,k=i.makeMap("fillOpacity fontWeight lineHeight opacity orphans widows zIndex zoom"," "),T=i.makeMap("checked compact declare defer disabled ismap multiple nohref noshade nowrap readonly selected"," "),R={for:"htmlFor",class:"className",readonly:"readOnly"},A={float:"cssFloat"},B={},D={},M=/^\s*|\s*$/g;return f.fn=f.prototype={constructor:f,selector:"",context:null,length:0,init:function(e,t){var n,i,r=this;if(!e)return r;if(e.nodeType)return r.context=r[0]=e,r.length=1,r;if(t&&t.nodeType)r.context=t;else{if(t)return f(e).attr(t);r.context=t=document}if(a(e)){if(r.selector=e,!(n="<"===e.charAt(0)&&">"===e.charAt(e.length-1)&&e.length>=3?[null,e,null]:N.exec(e)))return f(t).find(e);if(n[1])for(i=l(e,g(t)).firstChild;i;)_.call(r,i),i=i.nextSibling;else{if(!(i=g(t).getElementById(n[2])))return r;if(i.id!==n[2])return r.find(e);r.length=1,r[0]=i}}else this.add(e,!1);return r},toArray:function(){return i.toArray(this)},add:function(e,t){var n,i,r=this;if(a(e))return r.add(f(e));if(!1!==t)for(n=f.unique(r.toArray().concat(f.makeArray(e))),r.length=n.length,i=0;i<n.length;i++)r[i]=n[i];else _.apply(r,f.makeArray(e));return r},attr:function(e,t){var n,i=this;if("object"==typeof e)p(e,function(e,t){i.attr(e,t)});else{if(!o(t)){if(i[0]&&1===i[0].nodeType){if((n=B[e])&&n.get)return n.get(i[0],e);if(T[e])return i.prop(e)?e:x;null===(t=i[0].getAttribute(e,2))&&(t=x)}return t}this.each(function(){var n;if(1===this.nodeType){if((n=B[e])&&n.set)return void n.set(this,t);null===t?this.removeAttribute(e,2):this.setAttribute(e,t,2)}})}return i},removeAttr:function(e){return this.attr(e,null)},prop:function(e,t){var n=this;if("object"==typeof(e=R[e]||e))p(e,function(e,t){n.prop(e,t)});else{if(!o(t))return n[0]&&n[0].nodeType&&e in n[0]?n[0][e]:t;this.each(function(){1==this.nodeType&&(this[e]=t)})}return n},css:function(e,t){function n(e){return e.replace(/-(\D)/g,function(e,t){return t.toUpperCase()})}function i(e){return e.replace(/[A-Z]/g,function(e){return"-"+e})}var r,a,s=this;if("object"==typeof e)p(e,function(e,t){s.css(e,t)});else if(o(t))e=n(e),"number"!=typeof t||k[e]||(t+="px"),s.each(function(){var n=this.style;if((a=D[e])&&a.set)a.set(this,t);else{try{this.style[A[e]||e]=t}catch(e){}null!==t&&""!==t||(n.removeProperty?n.removeProperty(i(e)):n.removeAttribute(e))}});else{if(r=s[0],(a=D[e])&&a.get)return a.get(r);if(r.ownerDocument.defaultView)try{return r.ownerDocument.defaultView.getComputedStyle(r,null).getPropertyValue(i(e))}catch(e){return x}else if(r.currentStyle)return r.currentStyle[n(e)]}return s},remove:function(){for(var e,t=this,n=this.length;n--;)e=t[n],S.clean(e),e.parentNode&&e.parentNode.removeChild(e);return this},empty:function(){for(var e,t=this,n=this.length;n--;)for(e=t[n];e.firstChild;)e.removeChild(e.firstChild);return this},html:function(e){var t,n=this;if(o(e)){t=n.length;try{for(;t--;)n[t].innerHTML=e}catch(i){f(n[t]).empty().append(e)}return n}return n[0]?n[0].innerHTML:""},text:function(e){var t,n=this;if(o(e)){for(t=n.length;t--;)"innerText"in n[t]?n[t].innerText=e:n[0].textContent=e;return n}return n[0]?n[0].innerText||n[0].textContent:""},append:function(){return c(this,arguments,function(e){1===this.nodeType&&this.appendChild(e)})},prepend:function(){return c(this,arguments,function(e){1===this.nodeType&&this.insertBefore(e,this.firstChild)},!0)},before:function(){var e=this;return e[0]&&e[0].parentNode?c(e,arguments,function(e){this.parentNode.insertBefore(e,this)}):e},after:function(){var e=this;return e[0]&&e[0].parentNode?c(e,arguments,function(e){this.parentNode.insertBefore(e,this.nextSibling)},!0):e},appendTo:function(e){return f(e).append(this),this},prependTo:function(e){return f(e).prepend(this),this},replaceWith:function(e){return this.before(e).remove()},wrap:function(e){return d(this,e)},wrapAll:function(e){return d(this,e,!0)},wrapInner:function(e){return this.each(function(){f(this).contents().wrapAll(e)}),this},unwrap:function(){return this.parent().each(function(){f(this).replaceWith(this.childNodes)})},clone:function(){var e=[];return this.each(function(){e.push(this.cloneNode(!0))}),f(e)},addClass:function(e){return this.toggleClass(e,!0)},removeClass:function(e){return this.toggleClass(e,!1)},toggleClass:function(e,t){var n=this;return"string"!=typeof e?n:(-1!==e.indexOf(" ")?p(e.split(" "),function(){n.toggleClass(this,t)}):n.each(function(n,i){var r,o;(o=u(i,e))!==t&&(r=i.className,o?i.className=m((" "+r+" ").replace(" "+e+" "," ")):i.className+=r?" "+e:e)}),n)},hasClass:function(e){return u(this[0],e)},each:function(e){return p(this,e)},on:function(e,t){return this.each(function(){S.bind(this,e,t)})},off:function(e,t){return this.each(function(){S.unbind(this,e,t)})},trigger:function(e){return this.each(function(){"object"==typeof e?S.fire(this,e.type,e):S.fire(this,e)})},show:function(){return this.css("display","")},hide:function(){return this.css("display","none")},slice:function(){return new f(E.apply(this,arguments))},eq:function(e){return-1===e?this.slice(e):this.slice(e,+e+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},find:function(e){var t,n,i=[];for(t=0,n=this.length;t<n;t++)f.find(e,this[t],i);return f(i)},filter:function(e){return f("function"==typeof e?h(this.toArray(),function(t,n){return e(n,t)}):f.filter(e,this.toArray()))},closest:function(e){var t=[];return e instanceof f&&(e=e[0]),this.each(function(n,i){for(;i;){if("string"==typeof e&&f(i).is(e)){t.push(i);break}if(i==e){t.push(i);break}i=i.parentNode}}),f(t)},offset:function(e){var t,n,i,r,o=0,a=0;return e?this.css(e):((t=this[0])&&(i=(n=t.ownerDocument).documentElement,t.getBoundingClientRect&&(o=(r=t.getBoundingClientRect()).left+(i.scrollLeft||n.body.scrollLeft)-i.clientLeft,a=r.top+(i.scrollTop||n.body.scrollTop)-i.clientTop)),{left:o,top:a})},push:_,sort:[].sort,splice:[].splice},i.extend(f,{extend:i.extend,makeArray:function(e){return s(e)||e.nodeType?[e]:i.toArray(e)},inArray:function(e,t){var n;if(t.indexOf)return t.indexOf(e);for(n=t.length;n--;)if(t[n]===e)return n;return-1},isArray:i.isArray,each:p,trim:m,grep:h,find:n,expr:n.selectors,unique:n.uniqueSort,text:n.getText,contains:n.contains,filter:function(e,t,n){var i=t.length;for(n&&(e=":not("+e+")");i--;)1!=t[i].nodeType&&t.splice(i,1);return t=1===t.length?f.find.matchesSelector(t[0],e)?[t[0]]:[]:f.find.matches(e,t)}}),p({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return v(e,"parentNode")},next:function(e){return b(e,"nextSibling",1)},prev:function(e){return b(e,"previousSibling",1)},children:function(e){return y(e.firstChild,"nextSibling",1)},contents:function(e){return i.toArray(("iframe"===e.nodeName?e.contentDocument||e.contentWindow.document:e).childNodes)}},function(e,t){f.fn[e]=function(n){var i=[];return this.each(function(){var e=t.call(i,this,n,i);e&&(f.isArray(e)?i.push.apply(i,e):i.push(e))}),this.length>1&&(i=f.unique(i),0===e.indexOf("parents")&&(i=i.reverse())),i=f(i),n?i.filter(n):i}}),p({parentsUntil:function(e,t){return v(e,"parentNode",t)},nextUntil:function(e,t){return y(e,"nextSibling",1,t).slice(1)},prevUntil:function(e,t){return y(e,"previousSibling",1,t).slice(1)}},function(e,t){f.fn[e]=function(n,i){var r=[];return this.each(function(){var e=t.call(r,this,n,r);e&&(f.isArray(e)?r.push.apply(r,e):r.push(e))}),this.length>1&&(r=f.unique(r),0!==e.indexOf("parents")&&"prevUntil"!==e||(r=r.reverse())),r=f(r),i?r.filter(i):r}}),f.fn.is=function(e){return!!e&&this.filter(e).length>0},f.fn.init.prototype=f.fn,f.overrideDefaults=function(e){function t(i,r){return n=n||e(),0===arguments.length&&(i=n.element),r||(r=n.context),new t.fn.init(i,r)}var n;return f.extend(t,this),t},r.ie&&r.ie<8&&(C(B,"get",{maxlength:function(e){var t=e.maxLength;return 2147483647===t?x:t},size:function(e){var t=e.size;return 20===t?x:t},class:function(e){return e.className},style:function(e){var t=e.style.cssText;return 0===t.length?x:t}}),C(B,"set",{class:function(e,t){e.className=t},style:function(e,t){e.style.cssText=t}})),r.ie&&r.ie<9&&(A.float="styleFloat",C(D,"set",{opacity:function(e,t){var n=e.style;null===t||""===t?n.removeAttribute("filter"):(n.zoom=1,n.filter="alpha(opacity="+100*t+")")}})),f.attrHooks=B,f.cssHooks=D,f}),i("tinymce/html/Styles",[],function(){return function(e,t){function n(e,t,n,i){function r(e){return(e=parseInt(e,10).toString(16)).length>1?e:"0"+e}return"#"+r(t)+r(n)+r(i)}var i,r,o,a,s,l=/rgb\s*\(\s*([0-9]+)\s*,\s*([0-9]+)\s*,\s*([0-9]+)\s*\)/gi,c=/(?:url(?:(?:\(\s*\"([^\"]+)\"\s*\))|(?:\(\s*\'([^\']+)\'\s*\))|(?:\(\s*([^)\s]+)\s*\))))|(?:\'([^\']+)\')|(?:\"([^\"]+)\")/gi,u=/\s*([^:]+):\s*([^;]+);?/g,d=/\s+$/,f={};for(e=e||{},t&&(a=t.getValidStyles(),s=t.getInvalidStyles()),o="\\\" \\' \\; \\: ; : \ufeff".split(" "),r=0;r<o.length;r++)f[o[r]]="\ufeff"+r,f["\ufeff"+r]=o[r];return{toHex:function(e){return e.replace(l,n)},parse:function(t){function i(e,t,n){var i,o,a,s;if((i=v[e+"-top"+t])&&(o=v[e+"-right"+t])&&(a=v[e+"-bottom"+t])&&(s=v[e+"-left"+t])){var l=[i,o,a,s];for(r=l.length-1;r--&&l[r]===l[r+1];);r>-1&&n||(v[e+t]=-1==r?l[0]:l.join(" "),delete v[e+"-top"+t],delete v[e+"-right"+t],delete v[e+"-bottom"+t],delete v[e+"-left"+t])}}function o(e){var t,n=v[e];if(n){for(t=(n=n.split(" ")).length;t--;)if(n[t]!==n[0])return!1;return v[e]=n[0],!0}}function a(e){return g=!0,f[e]}function s(e,t){return g&&(e=e.replace(/\uFEFF[0-9]/g,function(e){return f[e]})),t||(e=e.replace(/\\([\'\";:])/g,"$1")),e}var m,p,h,g,v={},y=e.url_converter,b=e.url_converter_scope||this;if(t){for(t=(t=t.replace(/[\u0000-\u001F]/g,"")).replace(/\\[\"\';:\uFEFF]/g,a).replace(/\"[^\"]+\"|\'[^\']+\'/g,function(e){return e.replace(/[;:]/g,a)});m=u.exec(t);){if(p=m[1].replace(d,"").toLowerCase(),h=m[2].replace(d,""),h=h.replace(/\\[0-9a-f]+/g,function(e){return String.fromCharCode(parseInt(e.substr(1),16))}),p&&h.length>0){if(!e.allow_script_urls&&("behavior"==p||/expression\s*\(|\/\*|\*\//.test(h)))continue;"font-weight"===p&&"700"===h?h="bold":"color"!==p&&"background-color"!==p||(h=h.toLowerCase()),h=(h=h.replace(l,n)).replace(c,function(t,n,i,r,o,a){if(o=o||a)return"'"+(o=s(o)).replace(/\'/g,"\\'")+"'";if(n=s(n||i||r),!e.allow_script_urls){var l=n.replace(/[\s\r\n]+/,"");if(/(java|vb)script:/i.test(l))return"";if(!e.allow_svg_data_urls&&/^data:image\/svg/i.test(l))return""}return y&&(n=y.call(b,n,"style")),"url('"+n.replace(/\'/g,"\\'")+"')"}),v[p]=g?s(h,!0):h}u.lastIndex=m.index+m[0].length}i("border","",!0),i("border","-width"),i("border","-color"),i("border","-style"),i("padding",""),i("margin",""),function(e,t,n,i){o(t)&&o(n)&&o(i)&&(v[e]=v[t]+" "+v[n]+" "+v[i],delete v[t],delete v[n],delete v[i])}("border","border-width","border-style","border-color"),"medium none"===v.border&&delete v.border,"none"===v["border-image"]&&delete v["border-image"]}return v},serialize:function(e,t){function n(t){var n,r,o,s;if(n=a[t])for(r=0,o=n.length;r<o;r++)t=n[r],(s=e[t])!==i&&s.length>0&&(l+=(l.length>0?" ":"")+t+": "+s+";")}var r,o,l="";if(t&&a)n("*"),n(t);else for(r in e)(o=e[r])!==i&&o.length>0&&(s&&!function(e,t){var n;return!((n=s["*"])&&n[e]||(n=s[t])&&n[e])}(r,t)||(l+=(l.length>0?" ":"")+r+": "+o+";"));return l}}}}),i("tinymce/dom/TreeWalker",[],function(){return function(e,t){function n(e,n,i,r){var o,a;if(e){if(!r&&e[n])return e[n];if(e!=t){if(o=e[i])return o;for(a=e.parentNode;a&&a!=t;a=a.parentNode)if(o=a[i])return o}}}var i=e;this.current=function(){return i},this.next=function(e){return i=n(i,"firstChild","nextSibling",e)},this.prev=function(e){return i=n(i,"lastChild","previousSibling",e)}}}),i("tinymce/dom/Range",["tinymce/util/Tools"],function(e){function t(n){function i(){return _.createDocumentFragment()}function r(e,t){f(k,e,t)}function o(e,t){f(T,e,t)}function a(e){r(e.parentNode,L(e))}function s(e){o(e.parentNode,L(e)+1)}function l(){return m(N)}function c(e,t){var n;if(3==e.nodeType)return e;if(t<0)return e;for(n=e.firstChild;n&&t>0;)--t,n=n.nextSibling;return n||e}function u(){return w[A]==w[B]&&w[R]==w[D]}function d(e,t,i,r){var o,a,s,l,c,u;if(e==i)return t==r?0:t<r?-1:1;for(o=i;o&&o.parentNode!=e;)o=o.parentNode;if(o){for(a=0,s=e.firstChild;s!=o&&a<t;)a++,s=s.nextSibling;return t<=a?-1:1}for(o=e;o&&o.parentNode!=i;)o=o.parentNode;if(o){for(a=0,s=i.firstChild;s!=o&&a<r;)a++,s=s.nextSibling;return a<r?-1:1}for(l=n.findCommonAncestor(e,i),c=e;c&&c.parentNode!=l;)c=c.parentNode;for(c||(c=l),u=i;u&&u.parentNode!=l;)u=u.parentNode;if(u||(u=l),c==u)return 0;for(s=l.firstChild;s;){if(s==c)return-1;if(s==u)return 1;s=s.nextSibling}}function f(e,t,i){var r,o;for(e?(w[A]=t,w[R]=i):(w[B]=t,w[D]=i),r=w[B];r.parentNode;)r=r.parentNode;for(o=w[A];o.parentNode;)o=o.parentNode;o==r?d(w[A],w[R],w[B],w[D])>0&&w.collapse(e):w.collapse(e),w.collapsed=u(),w.commonAncestorContainer=n.findCommonAncestor(w[A],w[B])}function m(e){var t,n,i,r,o,a,s,l=0,c=0;if(w[A]==w[B])return p(e);for(n=(t=w[B]).parentNode;n;t=n,n=n.parentNode){if(n==w[A])return h(t,e);++l}for(n=(t=w[A]).parentNode;n;t=n,n=n.parentNode){if(n==w[B])return g(t,e);++c}for(i=c-l,r=w[A];i>0;)r=r.parentNode,i--;for(o=w[B];i<0;)o=o.parentNode,i++;for(a=r.parentNode,s=o.parentNode;a!=s;a=a.parentNode,s=s.parentNode)r=a,o=s;return v(r,o,e)}function p(e){var t,n,r,o,a,s,l,u,d;if(e!=S&&(t=i()),w[R]==w[D])return t;if(3==w[A].nodeType){if(n=w[A].nodeValue,r=n.substring(w[R],w[D]),e!=N&&(o=w[A],u=w[R],d=w[D]-w[R],0===u&&d>=o.nodeValue.length-1?o.parentNode.removeChild(o):o.deleteData(u,d),w.collapse(k)),e==S)return;return r.length>0&&t.appendChild(_.createTextNode(r)),t}for(o=c(w[A],w[R]),a=w[D]-w[R];o&&a>0;)s=o.nextSibling,l=x(o,e),t&&t.appendChild(l),--a,o=s;return e!=N&&w.collapse(k),t}function h(e,t){var n,r,o,a,s,l;if(t!=S&&(n=i()),r=y(e,t),n&&n.appendChild(r),o=L(e),(a=o-w[R])<=0)return t!=N&&(w.setEndBefore(e),w.collapse(T)),n;for(r=e.previousSibling;a>0;)s=r.previousSibling,l=x(r,t),n&&n.insertBefore(l,n.firstChild),--a,r=s;return t!=N&&(w.setEndBefore(e),w.collapse(T)),n}function g(e,t){var n,r,o,a,s,l;for(t!=S&&(n=i()),o=b(e,t),n&&n.appendChild(o),r=L(e),++r,a=w[D]-r,o=e.nextSibling;o&&a>0;)s=o.nextSibling,l=x(o,t),n&&n.appendChild(l),--a,o=s;return t!=N&&(w.setStartAfter(e),w.collapse(k)),n}function v(e,t,n){var r,o,a,s,l,c;for(n!=S&&(o=i()),r=b(e,n),o&&o.appendChild(r),a=L(e),s=L(t)-++a,l=e.nextSibling;s>0;)c=l.nextSibling,r=x(l,n),o&&o.appendChild(r),l=c,--s;return r=y(t,n),o&&o.appendChild(r),n!=N&&(w.setStartAfter(e),w.collapse(k)),o}function y(e,t){var n,i,r,o,a,s=c(w[B],w[D]-1),l=s!=w[B];if(s==e)return C(s,l,T,t);for(i=C(n=s.parentNode,T,T,t);n;){for(;s;)r=s.previousSibling,o=C(s,l,T,t),t!=S&&i.insertBefore(o,i.firstChild),l=k,s=r;if(n==e)return i;s=n.previousSibling,a=C(n=n.parentNode,T,T,t),t!=S&&a.appendChild(i),i=a}}function b(e,t){var n,i,r,o,a,s=c(w[A],w[R]),l=s!=w[A];if(s==e)return C(s,l,k,t);for(i=C(n=s.parentNode,T,k,t);n;){for(;s;)r=s.nextSibling,o=C(s,l,k,t),t!=S&&i.appendChild(o),l=k,s=r;if(n==e)return i;s=n.nextSibling,a=C(n=n.parentNode,T,k,t),t!=S&&a.appendChild(i),i=a}}function C(e,t,i,r){var o,a,s,l,c;if(t)return x(e,r);if(3==e.nodeType){if(o=e.nodeValue,i?(l=w[R],a=o.substring(l),s=o.substring(0,l)):(l=w[D],a=o.substring(0,l),s=o.substring(l)),r!=N&&(e.nodeValue=s),r==S)return;return c=n.clone(e,T),c.nodeValue=a,c}if(r!=S)return n.clone(e,T)}function x(e,t){if(t!=S)return t==N?n.clone(e,k):e;e.parentNode.removeChild(e)}var w=this,_=n.doc,E=0,N=1,S=2,k=!0,T=!1,R="startOffset",A="startContainer",B="endContainer",D="endOffset",M=e.extend,L=n.nodeIndex;return M(w,{startContainer:_,startOffset:0,endContainer:_,endOffset:0,collapsed:k,commonAncestorContainer:_,START_TO_START:0,START_TO_END:1,END_TO_END:2,END_TO_START:3,setStart:r,setEnd:o,setStartBefore:a,setStartAfter:function(e){r(e.parentNode,L(e)+1)},setEndBefore:function(e){o(e.parentNode,L(e))},setEndAfter:s,collapse:function(e){e?(w[B]=w[A],w[D]=w[R]):(w[A]=w[B],w[R]=w[D]),w.collapsed=k},selectNode:function(e){a(e),s(e)},selectNodeContents:function(e){r(e,0),o(e,1===e.nodeType?e.childNodes.length:e.nodeValue.length)},compareBoundaryPoints:function(e,t){var n=w[A],i=w[R],r=w[B],o=w[D],a=t.startContainer,s=t.startOffset,l=t.endContainer,c=t.endOffset;return 0===e?d(n,i,a,s):1===e?d(r,o,a,s):2===e?d(r,o,l,c):3===e?d(n,i,l,c):void 0},deleteContents:function(){m(S)},extractContents:function(){return m(E)},cloneContents:l,insertNode:function(e){var t,i,r=this[A],o=this[R];3!==r.nodeType&&4!==r.nodeType||!r.nodeValue?(r.childNodes.length>0&&(i=r.childNodes[o]),i?r.insertBefore(e,i):3==r.nodeType?n.insertAfter(e,r):r.appendChild(e)):o?o>=r.nodeValue.length?n.insertAfter(e,r):(t=r.splitText(o),r.parentNode.insertBefore(e,t)):r.parentNode.insertBefore(e,r)},surroundContents:function(e){var t=w.extractContents();w.insertNode(e),e.appendChild(t),w.selectNode(e)},cloneRange:function(){return M(new t(n),{startContainer:w[A],startOffset:w[R],endContainer:w[B],endOffset:w[D],collapsed:w.collapsed,commonAncestorContainer:w.commonAncestorContainer})},toStringIE:function(){return n.create("body",null,l()).outerText}}),w}return t.prototype.toString=function(){return this.toStringIE()},t}),i("tinymce/html/Entities",["tinymce/util/Tools"],function(e){function t(e){var t;return t=document.createElement("div"),t.innerHTML=e,t.textContent||t.innerText||e}function n(e,t){var n,i,o,a={};if(e){for(e=e.split(","),t=t||10,n=0;n<e.length;n+=2)i=String.fromCharCode(parseInt(e[n],t)),r[i]||(o="&"+e[n+1]+";",a[i]=o,a[o]=i);return a}}var i,r,o,a=e.makeMap,s=/[&<>\"\u0060\u007E-\uD7FF\uE000-\uFFEF]|[\uD800-\uDBFF][\uDC00-\uDFFF]/g,l=/[<>&\u007E-\uD7FF\uE000-\uFFEF]|[\uD800-\uDBFF][\uDC00-\uDFFF]/g,c=/[<>&\"\']/g,u=/&#([a-z0-9]+);?|&([a-z0-9]+);/gi,d={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:"Ÿ"};r={'"':""","'":"'","<":"<",">":">","&":"&","`":"`"},o={"<":"<",">":">","&":"&",""":'"',"'":"'"},i=n("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 f={encodeRaw:function(e,t){return e.replace(t?s:l,function(e){return r[e]||e})},encodeAllRaw:function(e){return(""+e).replace(c,function(e){return r[e]||e})},encodeNumeric:function(e,t){return e.replace(t?s:l,function(e){return e.length>1?"&#"+(1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320)+65536)+";":r[e]||"&#"+e.charCodeAt(0)+";"})},encodeNamed:function(e,t,n){return n=n||i,e.replace(t?s:l,function(e){return r[e]||n[e]||e})},getEncodeFunc:function(e,t){return t=n(t)||i,(e=a(e.replace(/\+/g,","))).named&&e.numeric?function(e,n){return e.replace(n?s:l,function(e){return r[e]||t[e]||"&#"+e.charCodeAt(0)+";"||e})}:e.named?t?function(e,n){return f.encodeNamed(e,n,t)}:f.encodeNamed:e.numeric?f.encodeNumeric:f.encodeRaw},decode:function(e){return e.replace(u,function(e,n){return n?(n="x"===n.charAt(0).toLowerCase()?parseInt(n.substr(1),16):parseInt(n,10))>65535?(n-=65536,String.fromCharCode(55296+(n>>10),56320+(1023&n))):d[n]||String.fromCharCode(n):o[e]||i[e]||t(e)})}};return f}),i("tinymce/dom/StyleSheetLoader",["tinymce/util/Tools"],function(e){return function(t,n){function i(e){t.getElementsByTagName("head")[0].appendChild(e)}var r,o=0,a={};r=(n=n||{}).maxLoadTime||5e3,this.load=function(n,s,l){function c(){for(var e=v.passed,t=e.length;t--;)e[t]();v.status=2,v.passed=[],v.failed=[]}function u(){for(var e=v.failed,t=e.length;t--;)e[t]();v.status=3,v.passed=[],v.failed=[]}function d(e,t){e()||((new Date).getTime()-g<r?window.setTimeout(t,0):u())}function f(){d(function(){for(var e,n,i=t.styleSheets,r=i.length;r--;)if(e=i[r],(n=e.ownerNode?e.ownerNode:e.owningElement)&&n.id===p.id)return c(),!0},f)}function m(){d(function(){try{var e=h.sheet.cssRules;return c(),!!e}catch(e){}},m)}var p,h,g,v;if(n=e._addCacheSuffix(n),a[n]?v=a[n]:(v={passed:[],failed:[]},a[n]=v),s&&v.passed.push(s),l&&v.failed.push(l),1!=v.status)if(2!=v.status)if(3!=v.status){if(v.status=1,p=t.createElement("link"),p.rel="stylesheet",p.type="text/css",p.id="u"+o++,p.async=!1,p.defer=!1,g=(new Date).getTime(),"onload"in p&&!function(){var e=navigator.userAgent.match(/WebKit\/(\d*)/);return!!(e&&e[1]<536)}())p.onload=f,p.onerror=u;else{if(navigator.userAgent.indexOf("Firefox")>0)return h=t.createElement("style"),h.textContent='@import "'+n+'"',m(),void i(h);f()}i(p),p.href=n}else u();else c()}}}),i("tinymce/dom/DOMUtils",["tinymce/dom/Sizzle","tinymce/dom/DomQuery","tinymce/html/Styles","tinymce/dom/EventUtils","tinymce/dom/TreeWalker","tinymce/dom/Range","tinymce/html/Entities","tinymce/Env","tinymce/util/Tools","tinymce/dom/StyleSheetLoader"],function(e,n,i,r,o,a,s,l,c,u){function d(e,t){var n,i={},r=t.keep_values;return n={set:function(n,i,r){t.url_converter&&(i=t.url_converter.call(t.url_converter_scope||e,i,r,n[0])),n.attr("data-mce-"+r,i).attr(r,i)},get:function(e,t){return e.attr("data-mce-"+t)||e.attr(t)}},i={style:{set:function(e,t){null===t||"object"!=typeof t?(r&&e.attr("data-mce-style",t),e.attr("style",t)):e.css(t)},get:function(t){var n=t.attr("data-mce-style")||t.attr("style");return n=e.serializeStyle(e.parseStyle(n),t[0].nodeName)}}},r&&(i.href=i.src=n),i}function f(e,t){var o,a=this;a.doc=e,a.win=window,a.files={},a.counter=0,a.stdMode=!v||e.documentMode>=8,a.boxModel=!v||"CSS1Compat"==e.compatMode||a.stdMode,a.styleSheetLoader=new u(e),a.boundEvents=[],a.settings=t=t||{},a.schema=t.schema,a.styles=new i({url_converter:t.url_converter,url_converter_scope:t.url_converter_scope},t.schema),a.fixDoc(e),a.events=t.ownEvents?new r(t.proxy):r.Event,a.attrHooks=d(a,t),o=t.schema?t.schema.getBlockElements():{},a.$=n.overrideDefaults(function(){return{context:e,element:a.getRoot()}}),a.isBlock=function(e){if(!e)return!1;var t=e.nodeType;return t?!(1!==t||!o[e.nodeName]):!!o[e]}}var m=c.each,p=c.is,h=c.grep,g=c.trim,v=l.ie,y=/^([a-z0-9],?)+$/i,b=/^[ \t\r\n]*$/;return f.prototype={$$:function(e){return"string"==typeof e&&(e=this.get(e)),this.$(e)},root:null,fixDoc:function(e){var t,n=this.settings;if(v&&n.schema){"abbr article aside audio canvas details figcaption figure footer header hgroup mark menu meter nav output progress section summary time video".replace(/\w+/g,function(t){e.createElement(t)});for(t in n.schema.getCustomElements())e.createElement(t)}},clone:function(e,t){var n,i,r=this;return!v||1!==e.nodeType||t?e.cloneNode(t):(i=r.doc,t?n.firstChild:(n=i.createElement(e.nodeName),m(r.getAttribs(e),function(t){r.setAttrib(n,t.nodeName,r.getAttrib(e,t.nodeName))}),n))},getRoot:function(){var e=this;return e.settings.root_element||e.doc.body},getViewPort:function(e){var t,n;return e=e||this.win,t=e.document,n=this.boxModel?t.documentElement:t.body,{x:e.pageXOffset||n.scrollLeft,y:e.pageYOffset||n.scrollTop,w:e.innerWidth||n.clientWidth,h:e.innerHeight||n.clientHeight}},getRect:function(e){var t,n,i=this;return e=i.get(e),t=i.getPos(e),n=i.getSize(e),{x:t.x,y:t.y,w:n.w,h:n.h}},getSize:function(e){var t,n,i=this;return e=i.get(e),t=i.getStyle(e,"width"),n=i.getStyle(e,"height"),-1===t.indexOf("px")&&(t=0),-1===n.indexOf("px")&&(n=0),{w:parseInt(t,10)||e.offsetWidth||e.clientWidth,h:parseInt(n,10)||e.offsetHeight||e.clientHeight}},getParent:function(e,t,n){return this.getParents(e,t,n,!1)},getParents:function(e,n,i,r){var o,a=this,s=[];for(e=a.get(e),r=r===t,i=i||("BODY"!=a.getRoot().nodeName?a.getRoot().parentNode:null),p(n,"string")&&(o=n,n="*"===n?function(e){return 1==e.nodeType}:function(e){return a.is(e,o)});e&&e!=i&&e.nodeType&&9!==e.nodeType;){if(!n||n(e)){if(!r)return e;s.push(e)}e=e.parentNode}return r?s:null},get:function(e){var t;return e&&this.doc&&"string"==typeof e&&(t=e,(e=this.doc.getElementById(e))&&e.id!==t)?this.doc.getElementsByName(t)[1]:e},getNext:function(e,t){return this._findSib(e,t,"nextSibling")},getPrev:function(e,t){return this._findSib(e,t,"previousSibling")},select:function(t,n){var i=this;return e(t,i.get(n)||i.settings.root_element||i.doc,[])},is:function(n,i){var r;if(n.length===t){if("*"===i)return 1==n.nodeType;if(y.test(i)){for(i=i.toLowerCase().split(/,/),n=n.nodeName.toLowerCase(),r=i.length-1;r>=0;r--)if(i[r]==n)return!0;return!1}}if(n.nodeType&&1!=n.nodeType)return!1;var o=n.nodeType?[n]:n;return e(i,o[0].ownerDocument||o[0],null,o).length>0},add:function(e,t,n,i,r){var o=this;return this.run(e,function(e){var a;return a=p(t,"string")?o.doc.createElement(t):t,o.setAttribs(a,n),i&&(i.nodeType?a.appendChild(i):o.setHTML(a,i)),r?a:e.appendChild(a)})},create:function(e,t,n){return this.add(this.doc.createElement(e),e,t,n,1)},createHTML:function(e,t,n){var i,r="";r+="<"+e;for(i in t)t.hasOwnProperty(i)&&null!==t[i]&&void 0!==t[i]&&(r+=" "+i+'="'+this.encode(t[i])+'"');return void 0!==n?r+">"+n+"</"+e+">":r+" />"},createFragment:function(e){var t,n,i,r=this.doc;for(i=r.createElement("div"),t=r.createDocumentFragment(),e&&(i.innerHTML=e);n=i.firstChild;)t.appendChild(n);return t},remove:function(e,t){return e=this.$$(e),t?e.each(function(){for(var e;e=this.firstChild;)3==e.nodeType&&0===e.data.length?this.removeChild(e):this.parentNode.insertBefore(e,this)}).remove():e.remove(),e.length>1?e.toArray():e[0]},setStyle:function(e,t,n){e=this.$$(e).css(t,n),this.settings.update_styles&&e.attr("data-mce-style",null)},getStyle:function(e,n,i){return e=this.$$(e),i?e.css(n):("float"==(n=n.replace(/-(\D)/g,function(e,t){return t.toUpperCase()}))&&(n=v?"styleFloat":"cssFloat"),e[0]&&e[0].style?e[0].style[n]:t)},setStyles:function(e,t){e=this.$$(e).css(t),this.settings.update_styles&&e.attr("data-mce-style",null)},removeAllAttribs:function(e){return this.run(e,function(e){var t,n=e.attributes;for(t=n.length-1;t>=0;t--)e.removeAttributeNode(n.item(t))})},setAttrib:function(e,t,n){var i,r,o=this,a=o.settings;""===n&&(n=null),i=(e=o.$$(e)).attr(t),e.length&&((r=o.attrHooks[t])&&r.set?r.set(e,n,t):e.attr(t,n),i!=n&&a.onSetAttrib&&a.onSetAttrib({attrElm:e,attrName:t,attrValue:n}))},setAttribs:function(e,t){var n=this;n.$$(e).each(function(e,i){m(t,function(e,t){n.setAttrib(i,t,e)})})},getAttrib:function(e,t,n){var i,r,o=this;return(e=o.$$(e)).length&&(r=(i=o.attrHooks[t])&&i.get?i.get(e,t):e.attr(t)),void 0===r&&(r=n||""),r},getPos:function(e,t){var i,r,o=this,a=0,s=0,l=o.doc,c=l.body;if(e=o.get(e),t=t||c,e){if(t===c&&e.getBoundingClientRect&&"static"===n(c).css("position"))return r=e.getBoundingClientRect(),t=o.boxModel?l.documentElement:c,a=r.left+(l.documentElement.scrollLeft||c.scrollLeft)-t.clientLeft,s=r.top+(l.documentElement.scrollTop||c.scrollTop)-t.clientTop,{x:a,y:s};for(i=e;i&&i!=t&&i.nodeType;)a+=i.offsetLeft||0,s+=i.offsetTop||0,i=i.offsetParent;for(i=e.parentNode;i&&i!=t&&i.nodeType;)a-=i.scrollLeft||0,s-=i.scrollTop||0,i=i.parentNode}return{x:a,y:s}},parseStyle:function(e){return this.styles.parse(e)},serializeStyle:function(e,t){return this.styles.serialize(e,t)},addStyle:function(e){var t,n,i=this,r=i.doc;if(i!==f.DOM&&r===document){var o=f.DOM.addedStyles;if((o=o||[])[e])return;o[e]=!0,f.DOM.addedStyles=o}(n=r.getElementById("mceDefaultStyles"))||((n=r.createElement("style")).id="mceDefaultStyles",n.type="text/css",(t=r.getElementsByTagName("head")[0]).firstChild?t.insertBefore(n,t.firstChild):t.appendChild(n)),n.styleSheet?n.styleSheet.cssText+=e:n.appendChild(r.createTextNode(e))},loadCSS:function(e){var t,n=this,i=n.doc;n===f.DOM||i!==document?(e||(e=""),t=i.getElementsByTagName("head")[0],m(e.split(","),function(e){var r;e=c._addCacheSuffix(e),n.files[e]||(n.files[e]=!0,r=n.create("link",{rel:"stylesheet",href:e}),v&&i.documentMode&&i.recalc&&(r.onload=function(){i.recalc&&i.recalc(),r.onload=null}),t.appendChild(r))})):f.DOM.loadCSS(e)},addClass:function(e,t){this.$$(e).addClass(t)},removeClass:function(e,t){this.toggleClass(e,t,!1)},hasClass:function(e,t){return this.$$(e).hasClass(t)},toggleClass:function(e,t,i){this.$$(e).toggleClass(t,i).each(function(){""===this.className&&n(this).attr("class",null)})},show:function(e){this.$$(e).show()},hide:function(e){this.$$(e).hide()},isHidden:function(e){return"none"==this.$$(e).css("display")},uniqueId:function(e){return(e||"mce_")+this.counter++},setHTML:function(e,t){e=this.$$(e),v?e.each(function(e,i){if(!1!==i.canHaveHTML){for(;i.firstChild;)i.removeChild(i.firstChild);try{i.innerHTML="<br>"+t,i.removeChild(i.firstChild)}catch(e){n("<div>").html("<br>"+t).contents().slice(1).appendTo(i)}return t}}):e.html(t)},getOuterHTML:function(e){return 1==(e=this.get(e)).nodeType&&"outerHTML"in e?e.outerHTML:n("<div>").append(n(e).clone()).html()},setOuterHTML:function(e,t){var i=this;i.$$(e).each(function(){try{if("outerHTML"in this)return void(this.outerHTML=t)}catch(e){}i.remove(n(this).html(t),!0)})},decode:s.decode,encode:s.encodeAllRaw,insertAfter:function(e,t){return t=this.get(t),this.run(e,function(e){var n,i;return n=t.parentNode,(i=t.nextSibling)?n.insertBefore(e,i):n.appendChild(e),e})},replace:function(e,t,n){return this.run(t,function(t){return p(t,"array")&&(e=e.cloneNode(!0)),n&&m(h(t.childNodes),function(t){e.appendChild(t)}),t.parentNode.replaceChild(e,t)})},rename:function(e,t){var n,i=this;return e.nodeName!=t.toUpperCase()&&(n=i.create(t),m(i.getAttribs(e),function(t){i.setAttrib(n,t.nodeName,i.getAttrib(e,t.nodeName))}),i.replace(n,e,1)),n||e},findCommonAncestor:function(e,t){for(var n,i=e;i;){for(n=t;n&&i!=n;)n=n.parentNode;if(i==n)break;i=i.parentNode}return!i&&e.ownerDocument?e.ownerDocument.documentElement:i},toHex:function(e){return this.styles.toHex(c.trim(e))},run:function(e,t,n){var i,r=this;return"string"==typeof e&&(e=r.get(e)),!!e&&(n=n||this,e.nodeType||!e.length&&0!==e.length?t.call(n,e):(i=[],m(e,function(e,o){e&&("string"==typeof e&&(e=r.get(e)),i.push(t.call(n,e,o)))}),i))},getAttribs:function(e){var t;if(!(e=this.get(e)))return[];if(v){if(t=[],"OBJECT"==e.nodeName)return e.attributes;"OPTION"===e.nodeName&&this.getAttrib(e,"selected")&&t.push({specified:1,nodeName:"selected"});return e.cloneNode(!1).outerHTML.replace(/<\/?[\w:\-]+ ?|=[\"][^\"]+\"|=\'[^\']+\'|=[\w\-]+|>/gi,"").replace(/[\w:\-]+/gi,function(e){t.push({specified:1,nodeName:e})}),t}return e.attributes},isEmpty:function(e,t){var n,i,r,a,s,l=this,c=0;if(e=e.firstChild){a=new o(e,e.parentNode),t=t||(l.schema?l.schema.getNonEmptyElements():null);do{if(1===(r=e.nodeType)){if(e.getAttribute("data-mce-bogus"))continue;if(s=e.nodeName.toLowerCase(),t&&t[s]){if("br"===s){c++;continue}return!1}for(n=(i=l.getAttribs(e)).length;n--;)if("name"===(s=i[n].nodeName)||"data-mce-bookmark"===s)return!1}if(8==r)return!1;if(3===r&&!b.test(e.nodeValue))return!1}while(e=a.next())}return c<=1},createRng:function(){var e=this.doc;return e.createRange?e.createRange():new a(this)},nodeIndex:function(e,t){var n,i,r=0;if(e)for(n=e.nodeType,e=e.previousSibling;e;e=e.previousSibling)i=e.nodeType,(!t||3!=i||i!=n&&e.nodeValue.length)&&(r++,n=i);return r},split:function(e,t,n){function i(e){var t,n=e.childNodes,r=e.nodeType;if(1!=r||"bookmark"!=e.getAttribute("data-mce-type")){for(t=n.length-1;t>=0;t--)i(n[t]);if(9!=r){if(3==r&&e.nodeValue.length>0){var o=g(e.nodeValue).length;if(!s.isBlock(e.parentNode)||o>0||0===o&&function(e){var t=e.previousSibling&&"SPAN"==e.previousSibling.nodeName,n=e.nextSibling&&"SPAN"==e.nextSibling.nodeName;return t&&n}(e))return}else if(1==r&&(1==(n=e.childNodes).length&&n[0]&&1==n[0].nodeType&&"bookmark"==n[0].getAttribute("data-mce-type")&&e.parentNode.insertBefore(n[0],e),n.length||/^(br|hr|input|img)$/i.test(e.nodeName)))return;s.remove(e)}return e}}var r,o,a,s=this,l=s.createRng();if(e&&t)return l.setStart(e.parentNode,s.nodeIndex(e)),l.setEnd(t.parentNode,s.nodeIndex(t)),r=l.extractContents(),(l=s.createRng()).setStart(t.parentNode,s.nodeIndex(t)+1),l.setEnd(e.parentNode,s.nodeIndex(e)+1),o=l.extractContents(),(a=e.parentNode).insertBefore(i(r),e),n?a.replaceChild(n,t):a.insertBefore(t,e),a.insertBefore(i(o),e),s.remove(e),n||t},bind:function(e,t,n,i){var r=this;if(c.isArray(e)){for(var o=e.length;o--;)e[o]=r.bind(e[o],t,n,i);return e}return!r.settings.collect||e!==r.doc&&e!==r.win||r.boundEvents.push([e,t,n,i]),r.events.bind(e,t,n,i||r)},unbind:function(e,t,n){var i,r=this;if(c.isArray(e)){for(i=e.length;i--;)e[i]=r.unbind(e[i],t,n);return e}if(r.boundEvents&&(e===r.doc||e===r.win))for(i=r.boundEvents.length;i--;){var o=r.boundEvents[i];e!=o[0]||t&&t!=o[1]||n&&n!=o[2]||this.events.unbind(o[0],o[1],o[2])}return this.events.unbind(e,t,n)},fire:function(e,t,n){return this.events.fire(e,t,n)},getContentEditable:function(e){var t;return e&&1==e.nodeType?(t=e.getAttribute("data-mce-contenteditable"))&&"inherit"!==t?t:"inherit"!==e.contentEditable?e.contentEditable:null:null},getContentEditableParent:function(e){for(var t=this.getRoot(),n=null;e&&e!==t&&null===(n=this.getContentEditable(e));e=e.parentNode);return n},destroy:function(){var t=this;if(t.boundEvents){for(var n=t.boundEvents.length;n--;){var i=t.boundEvents[n];this.events.unbind(i[0],i[1],i[2])}t.boundEvents=null}e.setDocument&&e.setDocument(),t.win=t.doc=t.root=t.events=t.frag=null},isChildOf:function(e,t){for(;e;){if(t===e)return!0;e=e.parentNode}return!1},dumpRng:function(e){return"startContainer: "+e.startContainer.nodeName+", startOffset: "+e.startOffset+", endContainer: "+e.endContainer.nodeName+", endOffset: "+e.endOffset},_findSib:function(e,t,n){var i=this,r=t;if(e)for("string"==typeof r&&(r=function(e){return i.is(e,t)}),e=e[n];e;e=e[n])if(r(e))return e;return null}},f.DOM=new f(document),f}),i("tinymce/dom/ScriptLoader",["tinymce/dom/DOMUtils","tinymce/util/Tools"],function(e,t){function n(){function e(e,n){function r(){s.remove(a),o&&(o.onreadystatechange=o.onload=o=null),n()}var o,a,s=i;a=s.uniqueId(),(o=document.createElement("script")).id=a,o.type="text/javascript",o.src=t._addCacheSuffix(e),"onreadystatechange"in o?o.onreadystatechange=function(){/loaded|complete/.test(o.readyState)&&r()}:o.onload=r,o.onerror=function(){"undefined"!=typeof console&&console.log&&console.log("Failed to load: "+e)},(document.getElementsByTagName("head")[0]||document.body).appendChild(o)}var n,a={},s=[],l={},c=[],u=0;this.isDone=function(e){return 2==a[e]},this.markDone=function(e){a[e]=2},this.add=this.load=function(e,t,i){a[e]==n&&(s.push(e),a[e]=0),t&&(l[e]||(l[e]=[]),l[e].push({func:t,scope:i||this}))},this.loadQueue=function(e,t){this.loadScripts(s,e,t)},this.loadScripts=function(t,i,s){function d(e){r(l[e],function(e){e.func.call(e.scope)}),l[e]=n}var f;c.push({func:i,scope:s||this}),(f=function(){var n=o(t);t.length=0,r(n,function(t){2!=a[t]?1!=a[t]&&(a[t]=1,u++,e(t,function(){a[t]=2,u--,d(t),f()})):d(t)}),u||(r(c,function(e){e.func.call(e.scope)}),c.length=0)})()}}var i=e.DOM,r=t.each,o=t.grep;return n.ScriptLoader=new n,n}),i("tinymce/AddOnManager",["tinymce/dom/ScriptLoader","tinymce/util/Tools"],function(e,n){function i(){var e=this;e.items=[],e.urls={},e.lookup={}}var r=n.each;return i.prototype={get:function(e){return this.lookup[e]?this.lookup[e].instance:t},dependencies:function(e){var t;return this.lookup[e]&&(t=this.lookup[e].dependencies),t||[]},requireLangPack:function(t,n){var r=i.language;if(r&&!1!==i.languageLoad){if(n)if(-1!=(n=","+n+",").indexOf(","+r.substr(0,2)+","))r=r.substr(0,2);else if(-1==n.indexOf(","+r+","))return;e.ScriptLoader.add(this.urls[t]+"/langs/"+r+".js")}},add:function(e,t,n){return this.items.push(t),this.lookup[e]={instance:t,dependencies:n},t},createUrl:function(e,t){return"object"==typeof t?t:{prefix:e.prefix,resource:t,suffix:e.suffix}},addComponents:function(t,n){var i=this.urls[t];r(n,function(t){e.ScriptLoader.add(i+"/"+t)})},load:function(n,o,a,s){function l(){var i=c.dependencies(n);r(i,function(e){var n=c.createUrl(o,e);c.load(n.resource,n,t,t)}),a&&(s?a.call(s):a.call(e))}var c=this,u=o;c.urls[n]||("object"==typeof o&&(u=o.prefix+o.resource+o.suffix),0!==u.indexOf("/")&&-1==u.indexOf("://")&&(u=i.baseURL+"/"+u),c.urls[n]=u.substring(0,u.lastIndexOf("/")),c.lookup[n]?l():e.ScriptLoader.add(u,l,s))}},i.PluginManager=new i,i.ThemeManager=new i,i}),i("tinymce/dom/RangeUtils",["tinymce/util/Tools","tinymce/dom/TreeWalker"],function(e,t){function n(e,t){var n=e.childNodes;return--t>n.length-1?t=n.length-1:t<0&&(t=0),n[t]||e}function i(e){this.walk=function(t,i){function o(e){var t;return 3===(t=e[0]).nodeType&&t===g&&v>=t.nodeValue.length&&e.splice(0,1),t=e[e.length-1],0===b&&e.length>0&&t===y&&3===t.nodeType&&e.splice(e.length-1,1),e}function a(e,t,n){for(var i=[];e&&e!=n;e=e[t])i.push(e);return i}function s(e,t){do{if(e.parentNode==t)return e;e=e.parentNode}while(e)}function l(e,t,n){var r=n?"nextSibling":"previousSibling";for(m=(f=e).parentNode;f&&f!=t;f=m)m=f.parentNode,(p=a(f==e?f:f[r],r)).length&&(n||p.reverse(),i(o(p)))}var c,u,d,f,m,p,h,g=t.startContainer,v=t.startOffset,y=t.endContainer,b=t.endOffset;if((h=e.select("td.mce-item-selected,th.mce-item-selected")).length>0)r(h,function(e){i([e])});else{if(1==g.nodeType&&g.hasChildNodes()&&(g=g.childNodes[v]),1==y.nodeType&&y.hasChildNodes()&&(y=n(y,b)),g==y)return i(o([g]));for(c=e.findCommonAncestor(g,y),f=g;f;f=f.parentNode){if(f===y)return l(g,c,!0);if(f===c)break}for(f=y;f;f=f.parentNode){if(f===g)return l(y,c);if(f===c)break}u=s(g,c)||g,d=s(y,c)||y,l(g,u,!0),(p=a(u==g?u:u.nextSibling,"nextSibling",d==y?d.nextSibling:d)).length&&i(o(p)),l(y,d)}},this.split=function(e){function t(e,t){return e.splitText(t)}var n=e.startContainer,i=e.startOffset,r=e.endContainer,o=e.endOffset;return n==r&&3==n.nodeType?i>0&&i<n.nodeValue.length&&(n=(r=t(n,i)).previousSibling,o>i?(n=r=t(r,o-=i).previousSibling,o=r.nodeValue.length,i=0):o=0):(3==n.nodeType&&i>0&&i<n.nodeValue.length&&(n=t(n,i),i=0),3==r.nodeType&&o>0&&o<r.nodeValue.length&&(o=(r=t(r,o).previousSibling).nodeValue.length)),{startContainer:n,startOffset:i,endContainer:r,endOffset:o}},this.normalize=function(n){function i(i){function a(n,i){for(var r=new t(n,e.getParent(n.parentNode,e.isBlock)||h);n=r[i?"prev":"next"]();)if("BR"===n.nodeName)return!0}function s(n,i){var a,s,u;if(i=i||l,u=e.getParent(i.parentNode,e.isBlock)||h,n&&"BR"==i.nodeName&&p&&e.isEmpty(u))return l=i.parentNode,c=e.nodeIndex(i),void(r=!0);for(a=new t(i,u);d=a[n?"prev":"next"]();){if("false"===e.getContentEditableParent(d))return;if(3===d.nodeType&&d.nodeValue.length>0)return l=d,c=n?d.nodeValue.length:0,void(r=!0);if(e.isBlock(d)||f[d.nodeName.toLowerCase()])return;s=d}o&&s&&(l=s,r=!0,c=0)}var l,c,u,d,f,m,p,h=e.getRoot();if(l=n[(i?"start":"end")+"Container"],c=n[(i?"start":"end")+"Offset"],p=1==l.nodeType&&c===l.childNodes.length,f=e.schema.getNonEmptyElements(),m=i,1==l.nodeType&&c>l.childNodes.length-1&&(m=!1),9===l.nodeType&&(l=e.getRoot(),c=0),l===h){if(m&&(d=l.childNodes[c>0?c-1:0])&&(f[d.nodeName]||"TABLE"==d.nodeName))return;if(l.hasChildNodes()&&(c=Math.min(!m&&c>0?c-1:c,l.childNodes.length-1),l=l.childNodes[c],c=0,l.hasChildNodes()&&!/TABLE/.test(l.nodeName))){d=l,u=new t(l,h);do{if(3===d.nodeType&&d.nodeValue.length>0){c=m?0:d.nodeValue.length,l=d,r=!0;break}if(f[d.nodeName.toLowerCase()]){c=e.nodeIndex(d),l=d.parentNode,"IMG"!=d.nodeName||m||c++,r=!0;break}}while(d=m?u.next():u.prev())}}o&&(3===l.nodeType&&0===c&&s(!0),1===l.nodeType&&((d=l.childNodes[c])||(d=l.childNodes[c-1]),!d||"BR"!==d.nodeName||function(e,t){return e.previousSibling&&e.previousSibling.nodeName==t}(d,"A")||a(d)||a(d,!0)||s(!0,d))),m&&!o&&3===l.nodeType&&c===l.nodeValue.length&&s(!1),r&&n["set"+(i?"Start":"End")](l,c)}var r,o;return o=n.collapsed,i(!0),o||i(),r&&o&&n.collapse(!0),r}}var r=e.each;return i.compareRanges=function(e,t){if(e&&t){if(!e.item&&!e.duplicate)return e.startContainer==t.startContainer&&e.startOffset==t.startOffset;if(e.item&&t.item&&e.item(0)===t.item(0))return!0;if(e.isEqual&&t.isEqual&&t.isEqual(e))return!0}return!1},i.getCaretRangeFromPoint=function(e,t,n){var i,r;if(n.caretPositionFromPoint)r=n.caretPositionFromPoint(e,t),(i=n.createRange()).setStart(r.offsetNode,r.offset),i.collapse(!0);else if(n.caretRangeFromPoint)i=n.caretRangeFromPoint(e,t);else if(n.body.createTextRange){i=n.body.createTextRange();try{i.moveToPoint(e,t),i.collapse(!0)}catch(e){i.collapse(t<n.body.clientHeight)}}return i},i.getNode=function(e,t){return 1==e.nodeType&&e.hasChildNodes()&&(t>=e.childNodes.length&&(t=e.childNodes.length-1),e=e.childNodes[t]),e},i}),i("tinymce/NodeChange",["tinymce/dom/RangeUtils","tinymce/Env"],function(e,t){return function(n){function i(e){var t,i;if((i=n.$(e).parentsUntil(n.getBody()).add(e)).length===o.length){for(t=i.length;t>=0&&i[t]===o[t];t--);if(-1===t)return o=i,!0}return o=i,!1}var r,o=[];"onselectionchange"in n.getDoc()||n.on("NodeChange Click MouseUp KeyUp Focus",function(t){var i,o;o={startContainer:(i=n.selection.getRng()).startContainer,startOffset:i.startOffset,endContainer:i.endContainer,endOffset:i.endOffset},"nodechange"!=t.type&&e.compareRanges(o,r)||n.fire("SelectionChange"),r=o}),n.on("contextmenu",function(){n.fire("SelectionChange")}),n.on("SelectionChange",function(){var e=n.selection.getStart(!0);!t.range&&n.selection.isCollapsed()||!i(e)&&n.dom.isChildOf(e,n.getBody())&&n.nodeChanged({selectionChange:!0})}),n.on("MouseUp",function(e){e.isDefaultPrevented()||("IMG"==n.selection.getNode().nodeName?setTimeout(function(){n.nodeChanged()},0):n.nodeChanged())}),this.nodeChanged=function(e){var t,i,r,o=n.selection;n.initialized&&o&&!n.settings.disable_nodechange&&!n.settings.readonly&&(r=n.getBody(),"IMG"==(t=(t=o.getStart()||r).ownerDocument!=n.getDoc()?n.getBody():t).nodeName&&o.isCollapsed()&&(t=t.parentNode),i=[],n.dom.getParent(t,function(e){if(e===r)return!0;i.push(e)}),(e=e||{}).element=t,e.parents=i,n.fire("NodeChange",e))}}}),i("tinymce/html/Node",[],function(){function e(e,t,n){var i,r,o=n?"lastChild":"firstChild",a=n?"prev":"next";if(e[o])return e[o];if(e!==t){if(i=e[a])return i;for(r=e.parent;r&&r!==t;r=r.parent)if(i=r[a])return i}}function t(e,t){this.name=e,this.type=t,1===t&&(this.attributes=[],this.attributes.map={})}var n=/^[ \t\r\n]*$/,i={"#text":3,"#comment":8,"#cdata":4,"#pi":7,"#doctype":10,"#document-fragment":11};return t.prototype={replace:function(e){var t=this;return e.parent&&e.remove(),t.insert(e,t),t.remove(),t},attr:function(e,t){var n,i,r=this;if("string"!=typeof e){for(i in e)r.attr(i,e[i]);return r}if(n=r.attributes){if(void 0!==t){if(null===t){if(e in n.map)for(delete n.map[e],i=n.length;i--;)if(n[i].name===e)return n=n.splice(i,1),r;return r}if(e in n.map){for(i=n.length;i--;)if(n[i].name===e){n[i].value=t;break}}else n.push({name:e,value:t});return n.map[e]=t,r}return n.map[e]}},clone:function(){var e,n,i,r,o,a=this,s=new t(a.name,a.type);if(i=a.attributes){for((o=[]).map={},e=0,n=i.length;e<n;e++)"id"!==(r=i[e]).name&&(o[o.length]={name:r.name,value:r.value},o.map[r.name]=r.value);s.attributes=o}return s.value=a.value,s.shortEnded=a.shortEnded,s},wrap:function(e){var t=this;return t.parent.insert(e,t),e.append(t),t},unwrap:function(){var e,t,n=this;for(e=n.firstChild;e;)t=e.next,n.insert(e,n,!0),e=t;n.remove()},remove:function(){var e=this,t=e.parent,n=e.next,i=e.prev;return t&&(t.firstChild===e?(t.firstChild=n,n&&(n.prev=null)):i.next=n,t.lastChild===e?(t.lastChild=i,i&&(i.next=null)):n.prev=i,e.parent=e.next=e.prev=null),e},append:function(e){var t,n=this;return e.parent&&e.remove(),(t=n.lastChild)?(t.next=e,e.prev=t,n.lastChild=e):n.lastChild=n.firstChild=e,e.parent=n,e},insert:function(e,t,n){var i;return e.parent&&e.remove(),i=t.parent||this,n?(t===i.firstChild?i.firstChild=e:t.prev.next=e,e.prev=t.prev,e.next=t,t.prev=e):(t===i.lastChild?i.lastChild=e:t.next.prev=e,e.next=t.next,e.prev=t,t.next=e),e.parent=i,e},getAll:function(t){var n,i=this,r=[];for(n=i.firstChild;n;n=e(n,i))n.name===t&&r.push(n);return r},empty:function(){var t,n,i,r=this;if(r.firstChild){for(t=[],i=r.firstChild;i;i=e(i,r))t.push(i);for(n=t.length;n--;)(i=t[n]).parent=i.firstChild=i.lastChild=i.next=i.prev=null}return r.firstChild=r.lastChild=null,r},isEmpty:function(t){var i,r,o=this,a=o.firstChild;if(a)do{if(1===a.type){if(a.attributes.map["data-mce-bogus"])continue;if(t[a.name])return!1;for(i=a.attributes.length;i--;)if("name"===(r=a.attributes[i].name)||0===r.indexOf("data-mce-bookmark"))return!1}if(8===a.type)return!1;if(3===a.type&&!n.test(a.value))return!1}while(a=e(a,o));return!0},walk:function(t){return e(this,null,t)}},t.create=function(e,n){var r,o;if(r=new t(e,i[e]||1),n)for(o in n)r.attr(o,n[o]);return r},t}),i("tinymce/html/Schema",["tinymce/util/Tools"],function(e){function t(e,t){return e?e.split(t||" "):[]}function n(e){function n(e,n,i){function r(e,t){var n,i,r={};for(n=0,i=e.length;n<i;n++)r[e[n]]=t||{};return r}var s,l,c,u=arguments;for(i=i||[],n=n||"","string"==typeof i&&(i=t(i)),l=3;l<u.length;l++)"string"==typeof u[l]&&(u[l]=t(u[l])),i.push.apply(i,u[l]);for(s=(e=t(e)).length;s--;)c=[].concat(a,t(n)),m[e[s]]={attributes:r(c),attributesOrder:c,children:r(i,o)}}function i(e,n){var i,r,o,a;for(i=(e=t(e)).length,n=t(n);i--;)for(r=m[e[i]],o=0,a=n.length;o<a;o++)r.attributes[n[o]]={},r.attributesOrder.push(n[o])}var a,l,c,u,d,f,m={};return r[e]?r[e]:(a=t("id accesskey class dir lang style tabindex title"),l=t("address blockquote div dl fieldset form h1 h2 h3 h4 h5 h6 hr menu ol p pre table ul"),c=t("a abbr b bdo br button cite code del dfn em embed i iframe img input ins kbd label map noscript object q s samp script select small span strong sub sup textarea u var #text #comment"),"html4"!=e&&(a.push.apply(a,t("contenteditable contextmenu draggable dropzone hidden spellcheck translate")),l.push.apply(l,t("article aside details dialog figure header footer hgroup section nav")),c.push.apply(c,t("audio canvas command datalist mark meter output progress time wbr video ruby bdi keygen"))),"html5-strict"!=e&&(a.push("xml:lang"),f=t("acronym applet basefont big font strike tt"),c.push.apply(c,f),s(f,function(e){n(e,"",c)}),d=t("center dir isindex noframes"),l.push.apply(l,d),u=[].concat(l,c),s(d,function(e){n(e,"",u)})),u=u||[].concat(l,c),n("html","manifest","head body"),n("head","","base command link meta noscript script style title"),n("title hr noscript br"),n("base","href target"),n("link","href rel media hreflang type sizes hreflang"),n("meta","name http-equiv content charset"),n("style","media type scoped"),n("script","src async defer type charset"),n("body","onafterprint onbeforeprint onbeforeunload onblur onerror onfocus onhashchange onload onmessage onoffline ononline onpagehide onpageshow onpopstate onresize onscroll onstorage onunload",u),n("address dt dd div caption","",u),n("h1 h2 h3 h4 h5 h6 pre p abbr code var samp kbd sub sup i b u bdo span legend em strong small s cite dfn","",c),n("blockquote","cite",u),n("ol","reversed start type","li"),n("ul","","li"),n("li","value",u),n("dl","","dt dd"),n("a","href target rel media hreflang type",c),n("q","cite",c),n("ins del","cite datetime",u),n("img","src sizes srcset alt usemap ismap width height"),n("iframe","src name width height",u),n("embed","src type width height"),n("object","data type typemustmatch name usemap form width height",u,"param"),n("param","name value"),n("map","name",u,"area"),n("area","alt coords shape href target rel media hreflang type"),n("table","border","caption colgroup thead tfoot tbody tr"+("html4"==e?" col":"")),n("colgroup","span","col"),n("col","span"),n("tbody thead tfoot","","tr"),n("tr","","td th"),n("td","colspan rowspan headers",u),n("th","colspan rowspan headers scope abbr",u),n("form","accept-charset action autocomplete enctype method name novalidate target",u),n("fieldset","disabled form name",u,"legend"),n("label","form for",c),n("input","accept alt autocomplete checked dirname disabled form formaction formenctype formmethod formnovalidate formtarget height list max maxlength min multiple name pattern readonly required size src step type value width"),n("button","disabled form formaction formenctype formmethod formnovalidate formtarget name type value","html4"==e?u:c),n("select","disabled form multiple name required size","option optgroup"),n("optgroup","disabled label","option"),n("option","disabled label selected value"),n("textarea","cols dirname disabled form maxlength name readonly required rows wrap"),n("menu","type label",u,"li"),n("noscript","",u),"html4"!=e&&(n("wbr"),n("ruby","",c,"rt rp"),n("figcaption","",u),n("mark rt rp summary bdi","",c),n("canvas","width height",u),n("video","src crossorigin poster preload autoplay mediagroup loop muted controls width height buffered",u,"track source"),n("audio","src crossorigin preload autoplay mediagroup loop muted controls buffered volume",u,"track source"),n("picture","","img source"),n("source","src srcset type media sizes"),n("track","kind src srclang label default"),n("datalist","",c,"option"),n("article section nav aside header footer","",u),n("hgroup","","h1 h2 h3 h4 h5 h6"),n("figure","",u,"figcaption"),n("time","datetime",c),n("dialog","open",u),n("command","type label icon disabled checked radiogroup command"),n("output","for form name",c),n("progress","value max",c),n("meter","value min max low high optimum",c),n("details","open",u,"summary"),n("keygen","autofocus challenge disabled form keytype name")),"html5-strict"!=e&&(i("script","language xml:space"),i("style","xml:space"),i("object","declare classid code codebase codetype archive standby align border hspace vspace"),i("embed","align name hspace vspace"),i("param","valuetype type"),i("a","charset name rev shape coords"),i("br","clear"),i("applet","codebase archive code object alt name width height align hspace vspace"),i("img","name longdesc align border hspace vspace"),i("iframe","longdesc frameborder marginwidth marginheight scrolling align"),i("font basefont","size color face"),i("input","usemap align"),i("select","onchange"),i("textarea"),i("h1 h2 h3 h4 h5 h6 div p legend caption","align"),i("ul","type compact"),i("li","type"),i("ol dl menu dir","compact"),i("pre","width xml:space"),i("hr","align noshade size width"),i("isindex","prompt"),i("table","summary width frame rules cellspacing cellpadding align bgcolor"),i("col","width align char charoff valign"),i("colgroup","width align char charoff valign"),i("thead","align char charoff valign"),i("tr","align char charoff valign bgcolor"),i("th","axis align char charoff valign nowrap bgcolor width height"),i("form","accept"),i("td","abbr axis scope align char charoff valign nowrap bgcolor width height"),i("tfoot","align char charoff valign"),i("tbody","align char charoff valign"),i("area","nohref"),i("body","background bgcolor text link vlink alink")),"html4"!=e&&(i("input button select textarea","autofocus"),i("input textarea","placeholder"),i("a","download"),i("link script img","crossorigin"),i("iframe","sandbox seamless allowfullscreen")),s(t("a form meter progress dfn"),function(e){m[e]&&delete m[e].children[e]}),delete m.caption.children.table,r[e]=m,m)}function i(e,t){var n;return e&&(n={},"string"==typeof e&&(e={"*":e}),s(e,function(e,i){n[i]=n[i.toUpperCase()]="map"==t?a(e,/[, ]/):c(e,/[, ]/)})),n}var r={},o={},a=e.makeMap,s=e.each,l=e.extend,c=e.explode,u=e.inArray;return function(e){function o(t,n,i){var o=e[t];return o?o=a(o,/[, ]/,a(o.toUpperCase(),/[, ]/)):(o=r[t])||(o=a(n," ",a(n.toUpperCase()," ")),o=l(o,i),r[t]=o),o}function d(e){return new RegExp("^"+e.replace(/([?+*])/g,".$1")+"$")}function f(e){var n,i,r,o,s,l,c,f,m,p,h,g,v,y,b,C,x,w,_,E=/^([#+\-])?([^\[!\/]+)(?:\/([^\[!]+))?(?:(!?)\[([^\]]+)\])?$/,N=/^([!\-])?(\w+::\w+|[^=:<]+)?(?:([=:<])(.*))?$/,S=/[*?+]/;if(e)for(e=t(e,","),B["@"]&&(C=B["@"].attributes,x=B["@"].attributesOrder),n=0,i=e.length;n<i;n++)if(s=E.exec(e[n])){if(y=s[1],m=s[2],b=s[3],f=s[5],g={},v=[],l={attributes:g,attributesOrder:v},"#"===y&&(l.paddEmpty=!0),"-"===y&&(l.removeEmpty=!0),"!"===s[4]&&(l.removeEmptyAttrs=!0),C){for(w in C)g[w]=C[w];v.push.apply(v,x)}if(f)for(r=0,o=(f=t(f,"|")).length;r<o;r++)if(s=N.exec(f[r])){if(c={},h=s[1],p=s[2].replace(/::/g,":"),y=s[3],_=s[4],"!"===h&&(l.attributesRequired=l.attributesRequired||[],l.attributesRequired.push(p),c.required=!0),"-"===h){delete g[p],v.splice(u(v,p),1);continue}y&&("="===y&&(l.attributesDefault=l.attributesDefault||[],l.attributesDefault.push({name:p,value:_}),c.defaultValue=_),":"===y&&(l.attributesForced=l.attributesForced||[],l.attributesForced.push({name:p,value:_}),c.forcedValue=_),"<"===y&&(c.validValues=a(_,"?"))),S.test(p)?(l.attributePatterns=l.attributePatterns||[],c.pattern=d(p),l.attributePatterns.push(c)):(g[p]||v.push(p),g[p]=c)}C||"@"!=m||(C=g,x=v),b&&(l.outputName=m,B[b]=l),S.test(m)?(l.pattern=d(m),M.push(l)):B[m]=l}}function m(e){B={},M=[],f(e),s(b,function(e,t){D[t]=e.children})}function p(e){var n=/^(~)?(.+)$/;e&&(r.text_block_elements=r.block_elements=null,s(t(e,","),function(e){var t=n.exec(e),i="~"===t[1],r=i?"span":"div",o=t[2];if(D[o]=D[r],L[o]=r,i||(N[o.toUpperCase()]={},N[o]={}),!B[o]){var a=B[r];delete(a=l({},a)).removeEmptyAttrs,delete a.removeEmpty,B[o]=a}s(D,function(e,t){e[r]&&(D[t]=e=l({},D[t]),e[o]=e[r])})}))}function h(e){var n=/^([+\-]?)(\w+)\[([^\]]+)\]$/;e&&s(t(e,","),function(e){var i,r,o=n.exec(e);o&&(r=o[1],i=r?D[o[2]]:D[o[2]]={"#comment":{}},i=D[o[2]],s(t(o[3],"|"),function(e){"-"===r?(D[o[2]]=i=l({},D[o[2]]),delete i[e]):i[e]={}}))})}function g(e){var t,n=B[e];if(n)return n;for(t=M.length;t--;)if((n=M[t]).pattern.test(e))return n}var v,y,b,C,x,w,_,E,N,S,k,T,R,A=this,B={},D={},M=[],L={},P={};b=n((e=e||{}).schema),!1===e.verify_html&&(e.valid_elements="*[*]"),v=i(e.valid_styles),y=i(e.invalid_styles,"map"),E=i(e.valid_classes,"map"),C=o("whitespace_elements","pre script noscript style textarea video audio iframe object"),x=o("self_closing_elements","colgroup dd dt li option p td tfoot th thead tr"),w=o("short_ended_elements","area base basefont br col frame hr img input isindex link meta param embed source wbr track"),_=o("boolean_attributes","checked compact declare defer disabled ismap multiple nohref noresize noshade nowrap readonly selected autoplay loop controls"),S=o("non_empty_elements","td th iframe video audio object script",w),k=o("move_caret_before_on_enter_elements","table",S),T=o("text_block_elements","h1 h2 h3 h4 h5 h6 p div address pre form blockquote center dir fieldset header footer article section hgroup aside nav figure"),N=o("block_elements","hr table tbody thead tfoot th tr td li ol ul caption dl dt dd noscript menu isindex option datalist select optgroup",T),R=o("text_inline_elements","span strong b em i font strike u var cite dfn code mark q sup sub samp"),s((e.special||"script noscript style textarea").split(" "),function(e){P[e]=new RegExp("</"+e+"[^>]*>","gi")}),e.valid_elements?m(e.valid_elements):(s(b,function(e,t){B[t]={attributes:e.attributes,attributesOrder:e.attributesOrder},D[t]=e.children}),"html5"!=e.schema&&s(t("strong/b em/i"),function(e){e=t(e,"/"),B[e[1]].outputName=e[0]}),B.img.attributesDefault=[{name:"alt",value:""}],s(t("ol ul sub sup blockquote span font a table tbody tr strong em b i"),function(e){B[e]&&(B[e].removeEmpty=!0)}),s(t("p h1 h2 h3 h4 h5 h6 th td pre div address caption"),function(e){B[e].paddEmpty=!0}),s(t("span"),function(e){B[e].removeEmptyAttrs=!0})),p(e.custom_elements),h(e.valid_children),f(e.extended_valid_elements),h("+ol[ul|ol],+ul[ul|ol]"),e.invalid_elements&&s(c(e.invalid_elements),function(e){B[e]&&delete B[e]}),g("span")||f("span[!data-mce-type|*]"),A.children=D,A.getValidStyles=function(){return v},A.getInvalidStyles=function(){return y},A.getValidClasses=function(){return E},A.getBoolAttrs=function(){return _},A.getBlockElements=function(){return N},A.getTextBlockElements=function(){return T},A.getTextInlineElements=function(){return R},A.getShortEndedElements=function(){return w},A.getSelfClosingElements=function(){return x},A.getNonEmptyElements=function(){return S},A.getMoveCaretBeforeOnEnterElements=function(){return k},A.getWhiteSpaceElements=function(){return C},A.getSpecialElements=function(){return P},A.isValidChild=function(e,t){var n=D[e];return!(!n||!n[t])},A.isValid=function(e,t){var n,i,r=g(e);if(r){if(!t)return!0;if(r.attributes[t])return!0;if(n=r.attributePatterns)for(i=n.length;i--;)if(n[i].pattern.test(e))return!0}return!1},A.getElementRule=g,A.getCustomElements=function(){return L},A.addValidElements=f,A.setValidElements=m,A.addCustomElements=p,A.addValidChildren=h,A.elements=B}}),i("tinymce/html/SaxParser",["tinymce/html/Schema","tinymce/html/Entities","tinymce/util/Tools"],function(e,t,n){function i(e,t,n){var i,r,o,a,s=1;for(a=e.getShortEndedElements(),(o=/<([!?\/])?([A-Za-z0-9\-_\:\.]+)((?:\s+[^"\'>]+(?:(?:"[^"]*")|(?:\'[^\']*\')|[^>]*))*|\/|\s+)>/g).lastIndex=i=n;r=o.exec(t);){if(i=o.lastIndex,"/"===r[1])s--;else if(!r[1]){if(r[2]in a)continue;s++}if(0===s)break}return i}function r(r,a){function s(){}var l=this;r=r||{},l.schema=a=a||new e,!1!==r.fix_self_closing&&(r.fix_self_closing=!0),o("comment cdata text start end pi doctype".split(" "),function(e){e&&(l[e]=r[e]||s)}),l.parse=function(e){function o(e){var t,n;for(t=O.length;t--&&O[t].name!==e;);if(t>=0){for(n=O.length-1;n>=t;n--)(e=O[n]).valid&&P.end(e.name);O.length=t}}var s,l,c,u,d,f,m,p,h,g,v,y,b,C,x,w,_,E,N,S,k,T,R,A,B,D,M,L,P=this,H=0,O=[],I=0,F=t.decode,z=n.makeMap("src,href,data,background,formaction,poster"),W=/((java|vb)script|mhtml):/i,U=/^data:/i;for(A=new RegExp("<(?:(?:!--([\\w\\W]*?)--\x3e)|(?:!\\[CDATA\\[([\\w\\W]*?)\\]\\]>)|(?:!DOCTYPE([\\w\\W]*?)>)|(?:\\?([^\\s\\/<>]+) ?([\\w\\W]*?)[?/]>)|(?:\\/([^>]+)>)|(?:([A-Za-z0-9\\-_\\:\\.]+)((?:\\s+[^\"'>]+(?:(?:\"[^\"]*\")|(?:'[^']*')|[^>]*))*|\\/|\\s+)>))","g"),B=/([\w:\-]+)(?:\s*=\s*(?:(?:\"((?:[^\"])*)\")|(?:\'((?:[^\'])*)\')|([^>\s]+)))?/g,g=a.getShortEndedElements(),R=r.self_closing_elements||a.getSelfClosingElements(),v=a.getBoolAttrs(),b=r.validate,h=r.remove_internals,L=r.fix_self_closing,D=a.getSpecialElements();s=A.exec(e);){if(H<s.index&&P.text(F(e.substr(H,s.index-H))),l=s[6])":"===(l=l.toLowerCase()).charAt(0)&&(l=l.substr(1)),o(l);else if(l=s[7]){if(":"===(l=l.toLowerCase()).charAt(0)&&(l=l.substr(1)),y=l in g,L&&R[l]&&O.length>0&&O[O.length-1].name===l&&o(l),!b||(C=a.getElementRule(l))){if(x=!0,b&&(E=C.attributes,N=C.attributePatterns),(_=s[8])?((p=-1!==_.indexOf("data-mce-type"))&&h&&(x=!1),(u=[]).map={},_.replace(B,function(e,t,n,i,o){var a,s;if(t=t.toLowerCase(),n=t in v?t:F(n||i||o||""),b&&!p&&0!==t.indexOf("data-")){if(!(a=E[t])&&N){for(s=N.length;s--&&!(a=N[s]).pattern.test(t););-1===s&&(a=null)}if(!a)return;if(a.validValues&&!(n in a.validValues))return}if(z[t]&&!r.allow_script_urls){var l=n.replace(/[\s\u0000-\u001F]+/g,"");try{l=decodeURIComponent(l)}catch(e){l=unescape(l)}if(W.test(l))return;if(!r.allow_html_data_urls&&U.test(l)&&!/^data:image\//i.test(l))return}u.map[t]=n,u.push({name:t,value:n})})):(u=[]).map={},b&&!p){if(S=C.attributesRequired,k=C.attributesDefault,T=C.attributesForced,C.removeEmptyAttrs&&!u.length&&(x=!1),T)for(d=T.length;d--;)m=(w=T[d]).name,"{$uid}"===(M=w.value)&&(M="mce_"+I++),u.map[m]=M,u.push({name:m,value:M});if(k)for(d=k.length;d--;)(m=(w=k[d]).name)in u.map||("{$uid}"===(M=w.value)&&(M="mce_"+I++),u.map[m]=M,u.push({name:m,value:M}));if(S){for(d=S.length;d--&&!(S[d]in u.map););-1===d&&(x=!1)}if(w=u.map["data-mce-bogus"]){if("all"===w){H=i(a,e,A.lastIndex),A.lastIndex=H;continue}x=!1}}x&&P.start(l,u,y)}else x=!1;if(c=D[l]){c.lastIndex=H=s.index+s[0].length,(s=c.exec(e))?(x&&(f=e.substr(H,s.index-H)),H=s.index+s[0].length):(f=e.substr(H),H=e.length),x&&(f.length>0&&P.text(f,!0),P.end(l)),A.lastIndex=H;continue}y||(_&&_.indexOf("/")==_.length-1?x&&P.end(l):O.push({name:l,valid:x}))}else(l=s[1])?(">"===l.charAt(0)&&(l=" "+l),r.allow_conditional_comments||"[if"!==l.substr(0,3)||(l=" "+l),P.comment(l)):(l=s[2])?P.cdata(l):(l=s[3])?P.doctype(l):(l=s[4])&&P.pi(l,s[5]);H=s.index+s[0].length}for(H<e.length&&P.text(F(e.substr(H))),d=O.length-1;d>=0;d--)(l=O[d]).valid&&P.end(l.name)}}var o=n.each;return r.findEndTag=i,r}),i("tinymce/html/DomParser",["tinymce/html/Node","tinymce/html/Schema","tinymce/html/SaxParser","tinymce/util/Tools"],function(e,t,n,i){var r=i.makeMap,o=i.each,a=i.explode,s=i.extend;return function(i,l){function c(t){var n,i,o,a,s,c,d,f,m,p,h,g,v,y;for(h=r("tr,td,th,tbody,thead,tfoot,table"),p=l.getNonEmptyElements(),g=l.getTextBlockElements(),n=0;n<t.length;n++)if((i=t[n]).parent&&!i.fixed)if(g[i.name]&&"li"==i.parent.name){for(v=i.next;v&&g[v.name];)v.name="li",v.fixed=!0,i.parent.insert(v,i.parent),v=v.next;i.unwrap(i)}else{for(a=[i],o=i.parent;o&&!l.isValidChild(o.name,i.name)&&!h[o.name];o=o.parent)a.push(o);if(o&&a.length>1){for(a.reverse(),s=c=u.filterNode(a[0].clone()),m=0;m<a.length-1;m++){for(l.isValidChild(c.name,a[m].name)?(d=u.filterNode(a[m].clone()),c.append(d)):d=c,f=a[m].firstChild;f&&f!=a[m+1];)y=f.next,d.append(f),f=y;c=d}s.isEmpty(p)?o.insert(i,a[0],!0):(o.insert(s,a[0],!0),o.insert(i,s)),((o=a[0]).isEmpty(p)||o.firstChild===o.lastChild&&"br"===o.firstChild.name)&&o.empty().remove()}else if(i.parent){if("li"===i.name){if((v=i.prev)&&("ul"===v.name||"ul"===v.name)){v.append(i);continue}if((v=i.next)&&("ul"===v.name||"ul"===v.name)){v.insert(i,v.firstChild,!0);continue}i.wrap(u.filterNode(new e("ul",1)));continue}l.isValidChild(i.parent.name,"div")&&l.isValidChild("div",i.name)?i.wrap(u.filterNode(new e("div",1))):"style"===i.name||"script"===i.name?i.empty().remove():i.unwrap()}}}var u=this,d={},f=[],m={},p={};(i=i||{}).validate=!("validate"in i)||i.validate,i.root_name=i.root_name||"body",u.schema=l=l||new t,u.filterNode=function(e){var t,n,i;n in d&&((i=m[n])?i.push(e):m[n]=[e]),t=f.length;for(;t--;)(n=f[t].name)in e.attributes.map&&((i=p[n])?i.push(e):p[n]=[e]);return e},u.addNodeFilter=function(e,t){o(a(e),function(e){var n=d[e];n||(d[e]=n=[]),n.push(t)})},u.addAttributeFilter=function(e,t){o(a(e),function(e){var n;for(n=0;n<f.length;n++)if(f[n].name===e)return void f[n].callbacks.push(t);f.push({name:e,callbacks:[t]})})},u.parse=function(t,o){function a(t,n){var i,r=new e(t,n);return t in d&&((i=m[t])?i.push(r):m[t]=[r]),r}function u(e){var t,n,i;for(t=e.prev;t&&3===t.type;)(n=t.value.replace(R,"")).length>0?(t.value=n,t=t.prev):(i=t.prev,t.remove(),t=i)}var h,g,v,y,b,C,x,w,_,E,N,S,k,T,R,A,B,D,M,L,P,H=[];if(o=o||{},m={},p={},S=s(r("script,style,head,html,body,title,meta,param"),l.getBlockElements()),L=l.getNonEmptyElements(),M=l.children,N=i.validate,P="forced_root_block"in o?o.forced_root_block:i.forced_root_block,D=l.getWhiteSpaceElements(),k=/^[ \t\r\n]+/,R=/[ \t\r\n]+$/,A=/[ \t\r\n]+/g,B=/^[ \t\r\n]+$/,h=new n({validate:N,allow_script_urls:i.allow_script_urls,allow_conditional_comments:i.allow_conditional_comments,self_closing_elements:function(e){var t,n={};for(t in e)"li"!==t&&"p"!=t&&(n[t]=e[t]);return n}(l.getSelfClosingElements()),cdata:function(e){v.append(a("#cdata",4)).value=e},text:function(e,t){var n;T||(e=e.replace(A," "),v.lastChild&&S[v.lastChild.name]&&(e=e.replace(k,""))),0!==e.length&&((n=a("#text",3)).raw=!!t,v.append(n).value=e)},comment:function(e){v.append(a("#comment",8)).value=e},pi:function(e,t){v.append(a(e,7)).value=t,u(v)},doctype:function(e){v.append(a("#doctype",10)).value=e,u(v)},start:function(e,t,n){var i,r,o,s,c;if(o=N?l.getElementRule(e):{}){for((i=a(o.outputName||e,1)).attributes=t,i.shortEnded=n,v.append(i),(c=M[v.name])&&M[i.name]&&!c[i.name]&&H.push(i),r=f.length;r--;)(s=f[r].name)in t.map&&((_=p[s])?_.push(i):p[s]=[i]);S[e]&&u(i),n||(v=i),!T&&D[e]&&(T=!0)}},end:function(t){var n,i,r,o,a;if(i=N?l.getElementRule(t):{}){if(S[t]&&!T){if((n=v.firstChild)&&3===n.type)if((r=n.value.replace(k,"")).length>0)n.value=r,n=n.next;else for(o=n.next,n.remove(),n=o;n&&3===n.type;)r=n.value,o=n.next,(0===r.length||B.test(r))&&(n.remove(),n=o),n=o;if((n=v.lastChild)&&3===n.type)if((r=n.value.replace(R,"")).length>0)n.value=r,n=n.prev;else for(o=n.prev,n.remove(),n=o;n&&3===n.type;)r=n.value,o=n.prev,(0===r.length||B.test(r))&&(n.remove(),n=o),n=o}if(T&&D[t]&&(T=!1),(i.removeEmpty||i.paddEmpty)&&v.isEmpty(L))if(i.paddEmpty)v.empty().append(new e("#text","3")).value=" ";else if(!v.attributes.map.name&&!v.attributes.map.id)return a=v.parent,S[v.name]?v.empty().remove():v.unwrap(),void(v=a);v=v.parent}}},l),g=v=new e(o.context||i.root_name,11),h.parse(t),N&&H.length&&(o.context?o.invalid=!0:c(H)),P&&("body"==g.name||o.isRootContent)&&function(){function e(e){e&&((r=e.firstChild)&&3==r.type&&(r.value=r.value.replace(k,"")),(r=e.lastChild)&&3==r.type&&(r.value=r.value.replace(R,"")))}var t,n,r=g.firstChild;if(l.isValidChild(g.name,P.toLowerCase())){for(;r;)t=r.next,3==r.type||1==r.type&&"p"!==r.name&&!S[r.name]&&!r.attr("data-mce-type")?n?n.append(r):((n=a(P,1)).attr(i.forced_root_block_attrs),g.insert(n,r),n.append(r)):(e(n),n=null),r=t;e(n)}}(),!o.invalid){for(E in m){for(_=d[E],x=(y=m[E]).length;x--;)y[x].parent||y.splice(x,1);for(b=0,C=_.length;b<C;b++)_[b](y,E,o)}for(b=0,C=f.length;b<C;b++)if((_=f[b]).name in p){for(x=(y=p[_.name]).length;x--;)y[x].parent||y.splice(x,1);for(x=0,w=_.callbacks.length;x<w;x++)_.callbacks[x](y,_.name,o)}}return g},i.remove_trailing_brs&&u.addNodeFilter("br",function(t){var n,i,r,o,a,c,u,d,f=t.length,m=s({},l.getBlockElements()),p=l.getNonEmptyElements();for(m.body=1,n=0;n<f;n++)if(i=t[n],r=i.parent,m[i.parent.name]&&i===r.lastChild){for(a=i.prev;a;){if("span"!==(c=a.name)||"bookmark"!==a.attr("data-mce-type")){if("br"!==c)break;if("br"===c){i=null;break}}a=a.prev}i&&(i.remove(),r.isEmpty(p)&&(u=l.getElementRule(r.name))&&(u.removeEmpty?r.remove():u.paddEmpty&&(r.empty().append(new e("#text",3)).value=" ")))}else{for(o=i;r&&r.firstChild===o&&r.lastChild===o&&(o=r,!m[r.name]);)r=r.parent;o===r&&((d=new e("#text",3)).value=" ",i.replace(d))}}),i.allow_html_in_named_anchor||u.addAttributeFilter("id,name",function(e){for(var t,n,i,r,o=e.length;o--;)if("a"===(r=e[o]).name&&r.firstChild&&!r.attr("href")){i=r.parent,t=r.lastChild;do{n=t.prev,i.insert(t,r),t=n}while(t)}}),i.validate&&l.getValidClasses()&&u.addAttributeFilter("class",function(e){for(var t,n,i,r,o,a,s,c=e.length,u=l.getValidClasses();c--;){for(n=(t=e[c]).attr("class").split(" "),o="",i=0;i<n.length;i++)r=n[i],s=!1,(a=u["*"])&&a[r]&&(s=!0),a=u[t.name],!s&&a&&a[r]&&(s=!0),s&&(o&&(o+=" "),o+=r);o.length||(o=null),t.attr("class",o)}})}}),i("tinymce/html/Writer",["tinymce/html/Entities","tinymce/util/Tools"],function(e,t){var n=t.makeMap;return function(t){var i,r,o,a,s,l=[];return t=t||{},i=t.indent,r=n(t.indent_before||""),o=n(t.indent_after||""),a=e.getEncodeFunc(t.entity_encoding||"raw",t.entities),s="html"==t.element_format,{start:function(e,t,n){var c,u,d,f;if(i&&r[e]&&l.length>0&&(f=l[l.length-1]).length>0&&"\n"!==f&&l.push("\n"),l.push("<",e),t)for(c=0,u=t.length;c<u;c++)d=t[c],l.push(" ",d.name,'="',a(d.value,!0),'"');l[l.length]=!n||s?">":" />",n&&i&&o[e]&&l.length>0&&(f=l[l.length-1]).length>0&&"\n"!==f&&l.push("\n")},end:function(e){var t;l.push("</",e,">"),i&&o[e]&&l.length>0&&(t=l[l.length-1]).length>0&&"\n"!==t&&l.push("\n")},text:function(e,t){e.length>0&&(l[l.length]=t?e:a(e))},cdata:function(e){l.push("<![CDATA[",e,"]]>")},comment:function(e){l.push("\x3c!--",e,"--\x3e")},pi:function(e,t){t?l.push("<?",e," ",a(t),"?>"):l.push("<?",e,"?>"),i&&l.push("\n")},doctype:function(e){l.push("<!DOCTYPE",e,">",i?"\n":"")},reset:function(){l.length=0},getContent:function(){return l.join("").replace(/\n$/,"")}}}}),i("tinymce/html/Serializer",["tinymce/html/Writer","tinymce/html/Schema"],function(e,t){return function(n,i){var r=this,o=new e(n);(n=n||{}).validate=!("validate"in n)||n.validate,r.schema=i=i||new t,r.writer=o,r.serialize=function(e){function t(e){var n,s,l,c,u,d,f,m,p,h=r[e.type];if(h)h(e);else{if(n=e.name,s=e.shortEnded,l=e.attributes,a&&l&&l.length>1){for((d=[]).map={},f=0,m=(p=i.getElementRule(e.name)).attributesOrder.length;f<m;f++)(c=p.attributesOrder[f])in l.map&&(u=l.map[c],d.map[c]=u,d.push({name:c,value:u}));for(f=0,m=l.length;f<m;f++)(c=l[f].name)in d.map||(u=l.map[c],d.map[c]=u,d.push({name:c,value:u}));l=d}if(o.start(e.name,l,s),!s){if(e=e.firstChild)do{t(e)}while(e=e.next);o.end(n)}}}var r,a;return a=n.validate,r={3:function(e){o.text(e.value,e.raw)},8:function(e){o.comment(e.value)},7:function(e){o.pi(e.name,e.value)},10:function(e){o.doctype(e.value)},4:function(e){o.cdata(e.value)},11:function(e){if(e=e.firstChild)do{t(e)}while(e=e.next)}},o.reset(),1!=e.type||n.inner?r[11](e):t(e),o.getContent()}}}),i("tinymce/dom/Serializer",["tinymce/dom/DOMUtils","tinymce/html/DomParser","tinymce/html/Entities","tinymce/html/Serializer","tinymce/html/Node","tinymce/html/Schema","tinymce/Env","tinymce/util/Tools"],function(e,t,n,i,r,o,a,s){var l=s.each,c=s.trim,u=e.DOM;return function(e,r){var s,d,f;return r&&(s=r.dom,d=r.schema),s=s||u,d=d||new o(e),e.entity_encoding=e.entity_encoding||"named",e.remove_trailing_brs=!("remove_trailing_brs"in e)||e.remove_trailing_brs,(f=new t(e,d)).addAttributeFilter("data-mce-tabindex",function(e,t){for(var n,i=e.length;i--;)(n=e[i]).attr("tabindex",n.attributes.map["data-mce-tabindex"]),n.attr(t,null)}),f.addAttributeFilter("src,href,style",function(t,n){for(var i,r,o=t.length,a="data-mce-"+n,l=e.url_converter,c=e.url_converter_scope;o--;)void 0!==(r=(i=t[o]).attributes.map[a])?(i.attr(n,r.length>0?r:null),i.attr(a,null)):(r=i.attributes.map[n],"style"===n?r=s.serializeStyle(s.parseStyle(r),i.name):l&&(r=l.call(c,r,n,i.name)),i.attr(n,r.length>0?r:null))}),f.addAttributeFilter("class",function(e){for(var t,n,i=e.length;i--;)(n=(t=e[i]).attr("class"))&&(n=t.attr("class").replace(/(?:^|\s)mce-item-\w+(?!\S)/g,""),t.attr("class",n.length>0?n:null))}),f.addAttributeFilter("data-mce-type",function(e,t,n){for(var i,r=e.length;r--;)"bookmark"!==(i=e[r]).attributes.map["data-mce-type"]||n.cleanup||i.remove()}),f.addNodeFilter("noscript",function(e){for(var t,i=e.length;i--;)(t=e[i].firstChild)&&(t.value=n.decode(t.value))}),f.addNodeFilter("script,style",function(e,t){function n(e){return e.replace(/(<!--\[CDATA\[|\]\]-->)/g,"\n").replace(/^[\r\n]*|[\r\n]*$/g,"").replace(/^\s*((<!--)?(\s*\/\/)?\s*<!\[CDATA\[|(<!--\s*)?\/\*\s*<!\[CDATA\[\s*\*\/|(\/\/)?\s*<!--|\/\*\s*<!--\s*\*\/)\s*[\r\n]*/gi,"").replace(/\s*(\/\*\s*\]\]>\s*\*\/(-->)?|\s*\/\/\s*\]\]>(-->)?|\/\/\s*(-->)?|\]\]>|\/\*\s*-->\s*\*\/|\s*-->\s*)\s*$/g,"")}for(var i,r,o,a=e.length;a--;)r=(i=e[a]).firstChild?i.firstChild.value:"","script"===t?((o=i.attr("type"))&&i.attr("type","mce-no/type"==o?null:o.replace(/^mce\-/,"")),r.length>0&&(i.firstChild.value="// <![CDATA[\n"+n(r)+"\n// ]]>")):r.length>0&&(i.firstChild.value="\x3c!--\n"+n(r)+"\n--\x3e")}),f.addNodeFilter("#comment",function(e){for(var t,n=e.length;n--;)0===(t=e[n]).value.indexOf("[CDATA[")?(t.name="#cdata",t.type=4,t.value=t.value.replace(/^\[CDATA\[|\]\]$/g,"")):0===t.value.indexOf("mce:protected ")&&(t.name="#text",t.type=3,t.raw=!0,t.value=unescape(t.value).substr(14))}),f.addNodeFilter("xml:namespace,input",function(e,t){for(var n,i=e.length;i--;)7===(n=e[i]).type?n.remove():1===n.type&&("input"!==t||"type"in n.attributes.map||n.attr("type","text"))}),e.fix_list_elements&&f.addNodeFilter("ul,ol",function(e){for(var t,n,i=e.length;i--;)"ul"!==(n=(t=e[i]).parent).name&&"ol"!==n.name||t.prev&&"li"===t.prev.name&&t.prev.append(t)}),f.addAttributeFilter("data-mce-src,data-mce-href,data-mce-style,data-mce-selected,data-mce-expando,data-mce-type,data-mce-resize",function(e,t){for(var n=e.length;n--;)e[n].attr(t,null)}),{schema:d,addNodeFilter:f.addNodeFilter,addAttributeFilter:f.addAttributeFilter,serialize:function(t,n){var r,o,u,m,p,h=this;return a.ie&&s.select("script,style,select,map").length>0?(p=t.innerHTML,t=t.cloneNode(!1),s.setHTML(t,p)):t=t.cloneNode(!0),(r=t.ownerDocument.implementation).createHTMLDocument&&(o=r.createHTMLDocument(""),l("BODY"==t.nodeName?t.childNodes:[t],function(e){o.body.appendChild(o.importNode(e,!0))}),t="BODY"!=t.nodeName?o.body.firstChild:o.body,u=s.doc,s.doc=o),n=n||{},n.format=n.format||"html",n.selection&&(n.forced_root_block=""),n.no_events||(n.node=t,h.onPreProcess(n)),m=new i(e,d),n.content=m.serialize(f.parse(c(n.getInner?t.innerHTML:s.getOuterHTML(t)),n)),n.cleanup||(n.content=n.content.replace(/\uFEFF/g,"")),n.no_events||h.onPostProcess(n),u&&(s.doc=u),n.node=null,n.content},addRules:function(e){d.addValidElements(e)},setRules:function(e){d.setValidElements(e)},onPreProcess:function(e){r&&r.fire("PreProcess",e)},onPostProcess:function(e){r&&r.fire("PostProcess",e)}}}}),i("tinymce/dom/TridentSelection",[],function(){return function(e){function t(t,n){var i,r,o,a,s,l,c,u,d=0,f=-1;if((i=t.duplicate()).collapse(n),(u=i.parentElement()).ownerDocument===e.dom.doc){for(;"false"===u.contentEditable;)u=u.parentNode;if(!u.hasChildNodes())return{node:u,inside:1};for(r=(a=u.children).length-1;d<=r;)if(c=Math.floor((d+r)/2),s=a[c],i.moveToElementText(s),(f=i.compareEndPoints(n?"StartToStart":"EndToEnd",t))>0)r=c-1;else{if(!(f<0))return{node:s};d=c+1}if(f<0)for(s?i.collapse(!1):(i.moveToElementText(u),i.collapse(!0),s=u,o=!0),l=0;0!==i.compareEndPoints(n?"StartToStart":"StartToEnd",t)&&0!==i.move("character",1)&&u==i.parentElement();)l++;else for(i.collapse(!0),l=0;0!==i.compareEndPoints(n?"StartToStart":"StartToEnd",t)&&0!==i.move("character",-1)&&u==i.parentElement();)l++;return{node:s,position:f,offset:l,inside:o}}}var n=this,i=e.dom,r=!1;this.getBookmark=function(n){function r(e){var t,n,r,o,a=[];for(t=e.parentNode,n=i.getRoot().parentNode;t!=n&&9!==t.nodeType;){for(o=(r=t.children).length;o--;)if(e===r[o]){a.push(o);break}e=t,t=t.parentNode}return a}function o(e){var n;if(n=t(a,e))return{position:n.position,offset:n.offset,indexes:r(n.node),inside:n.inside}}var a=e.getRng(),s={};return 2===n&&(a.item?s.start={ctrl:!0,indexes:r(a.item(0))}:(s.start=o(!0),e.isCollapsed()||(s.end=o()))),s},this.moveToBookmark=function(e){function t(e){var t,n,r,o;for(t=i.getRoot(),n=e.length-1;n>=0;n--)o=t.children,(r=e[n])<=o.length-1&&(t=o[r]);return t}function n(n){var i,a,s,l=e[n?"start":"end"];l&&(i=l.position>0,(a=o.createTextRange()).moveToElementText(t(l.indexes)),void 0!==(s=l.offset)?(a.collapse(l.inside||i),a.moveStart("character",i?-s:s)):a.collapse(n),r.setEndPoint(n?"StartToStart":"EndToStart",a),n&&r.collapse(!0))}var r,o=i.doc.body;e.start&&(e.start.ctrl?((r=o.createControlRange()).addElement(t(e.start.indexes)),r.select()):(r=o.createTextRange(),n(!0),n(),r.select()))},this.addRange=function(t){function n(e){var t,n,a,d,f;a=i.create("a"),t=e?s:c,n=e?l:u,d=o.duplicate(),t!=p&&t!=p.documentElement||(t=h,n=0),3==t.nodeType?(t.parentNode.insertBefore(a,t),d.moveToElementText(a),d.moveStart("character",n),i.remove(a),o.setEndPoint(e?"StartToStart":"EndToEnd",d)):((f=t.childNodes).length?(n>=f.length?i.insertAfter(a,f[f.length-1]):t.insertBefore(a,f[n]),d.moveToElementText(a)):t.canHaveHTML&&(t.innerHTML="<span></span>",a=t.firstChild,d.moveToElementText(a),d.collapse(r)),o.setEndPoint(e?"StartToStart":"EndToEnd",d),i.remove(a))}var o,a,s,l,c,u,d,f,m,p=e.dom.doc,h=p.body;if(s=t.startContainer,l=t.startOffset,c=t.endContainer,u=t.endOffset,o=h.createTextRange(),s==c&&1==s.nodeType){if(l==u&&!s.hasChildNodes()){if(s.canHaveHTML)return(d=s.previousSibling)&&!d.hasChildNodes()&&i.isBlock(d)?d.innerHTML="":d=null,s.innerHTML="<span></span><span></span>",o.moveToElementText(s.lastChild),o.select(),i.doc.selection.clear(),s.innerHTML="",void(d&&(d.innerHTML=""));l=i.nodeIndex(s),s=s.parentNode}if(l==u-1)try{if(m=s.childNodes[l],(a=h.createControlRange()).addElement(m),a.select(),(f=e.getRng()).item&&m===f.item(0))return}catch(e){}}n(!0),n(),o.select()},this.getRangeAt=function(){function r(e){var n,i,r,o,a=t(u,e),s=0;if(n=a.node,i=a.offset,!a.inside||n.hasChildNodes())if(void 0!==i){if(a.position<0){if(!(r=a.inside?n.firstChild:n.nextSibling))return void d[e?"setStartAfter":"setEndAfter"](n);if(!i)return void(3==r.nodeType?d[e?"setStart":"setEnd"](r,0):d[e?"setStartBefore":"setEndBefore"](r));for(;r;){if(3==r.nodeType&&(o=r.nodeValue,(s+=o.length)>=i)){n=r,s-=i,s=o.length-s;break}r=r.nextSibling}}else{if(!(r=n.previousSibling))return d[e?"setStartBefore":"setEndBefore"](n);if(!i)return void(3==n.nodeType?d[e?"setStart":"setEnd"](r,n.nodeValue.length):d[e?"setStartAfter":"setEndAfter"](r));for(;r;){if(3==r.nodeType&&(s+=r.nodeValue.length)>=i){n=r,s-=i;break}r=r.previousSibling}}d[e?"setStart":"setEnd"](n,s)}else d[e?"setStartBefore":"setEndAfter"](n);else d[e?"setStart":"setEnd"](n,0)}var o,a,s,l,c,u=e.getRng(),d=i.createRng();if((o=u.item?u.item(0):u.parentElement()).ownerDocument!=i.doc)return d;if(a=e.isCollapsed(),u.item)return d.setStart(o.parentNode,i.nodeIndex(o)),d.setEnd(d.startContainer,d.startOffset+1),d;try{r(!0),a||r()}catch(t){if(-2147024809!=t.number)throw t;c=n.getBookmark(2),(s=u.duplicate()).collapse(!0),o=s.parentElement(),a||((s=u.duplicate()).collapse(!1),(l=s.parentElement()).innerHTML=l.innerHTML),o.innerHTML=o.innerHTML,n.moveToBookmark(c),u=e.getRng(),r(!0),a||r()}return d}}}),i("tinymce/util/VK",["tinymce/Env"],function(e){return{BACKSPACE:8,DELETE:46,DOWN:40,ENTER:13,LEFT:37,RIGHT:39,SPACEBAR:32,TAB:9,UP:38,modifierPressed:function(e){return e.shiftKey||e.ctrlKey||e.altKey||this.metaKeyPressed(e)},metaKeyPressed:function(t){return e.mac?t.metaKey:t.ctrlKey&&!t.altKey}}}),i("tinymce/dom/ControlSelection",["tinymce/util/VK","tinymce/util/Tools","tinymce/Env"],function(e,t,n){return function(i,r){function o(e){var t=r.settings.object_resizing;return!1!==t&&!n.iOS&&("string"!=typeof t&&(t="table,img,div"),"false"!==e.getAttribute("data-mce-resize")&&r.dom.is(e,t))}function a(t){var n,i,o,a;n=t.screenX-N,i=t.screenY-S,M=n*_[2]+R,L=i*_[3]+A,M=M<5?5:M,L=L<5?5:L,("IMG"==b.nodeName&&!1!==r.settings.resize_img_proportional?!e.modifierPressed(t):e.modifierPressed(t)||"IMG"==b.nodeName&&_[2]*_[3]!=0)&&(U(n)>U(i)?(L=V(M*B),M=V(L/B)):(M=V(L/B),L=V(M*B))),O.setStyles(C,{width:M,height:L}),o=_.startPos.x+n,a=_.startPos.y+i,o=o>0?o:0,a=a>0?a:0,O.setStyles(x,{left:o,top:a,display:"block"}),x.innerHTML=M+" × "+L,_[2]<0&&C.clientWidth<=M&&O.setStyle(C,"left",k+(R-M)),_[3]<0&&C.clientHeight<=L&&O.setStyle(C,"top",T+(A-L)),(n=$.scrollWidth-P)+(i=$.scrollHeight-H)!==0&&O.setStyles(x,{left:o-n,top:a-i}),D||(r.fire("ObjectResizeStart",{target:b,width:R,height:A}),D=!0)}function s(){function e(e,t){t&&(b.style[e]||!r.schema.isValid(b.nodeName.toLowerCase(),e)?O.setStyle(b,e,t):O.setAttrib(b,e,t))}D=!1,e("width",M),e("height",L),O.unbind(F,"mousemove",a),O.unbind(F,"mouseup",s),z!=F&&(O.unbind(z,"mousemove",a),O.unbind(z,"mouseup",s)),O.remove(C),O.remove(x),W&&"TABLE"!=b.nodeName||l(b),r.fire("ObjectResized",{target:b,width:M,height:L}),O.setAttrib(b,"style",O.getAttrib(b,"style")),r.nodeChanged()}function l(e,t,i){var l,u,d,f,m;g(),l=O.getPos(e,$),k=l.x,T=l.y,m=e.getBoundingClientRect(),u=m.width||m.right-m.left,d=m.height||m.bottom-m.top,b!=e&&(h(),b=e,M=L=0),f=r.fire("ObjectSelected",{target:e}),o(e)&&!f.isDefaultPrevented()?I(w,function(e,r){function o(t){N=t.screenX,S=t.screenY,R=b.clientWidth,A=b.clientHeight,B=A/R,_=e,e.startPos={x:u*e[0]+k,y:d*e[1]+T},P=$.scrollWidth,H=$.scrollHeight,C=b.cloneNode(!0),O.addClass(C,"mce-clonedresizable"),O.setAttrib(C,"data-mce-bogus","all"),C.contentEditable=!1,C.unSelectabe=!0,O.setStyles(C,{left:k,top:T,margin:0}),C.removeAttribute("data-mce-selected"),$.appendChild(C),O.bind(F,"mousemove",a),O.bind(F,"mouseup",s),z!=F&&(O.bind(z,"mousemove",a),O.bind(z,"mouseup",s)),x=O.add($,"div",{class:"mce-resize-helper","data-mce-bogus":"all"},R+" × "+A)}var l,c;t?r==t&&o(i):((l=O.get("mceResizeHandle"+r))?O.show(l):(c=$,l=O.add(c,"div",{id:"mceResizeHandle"+r,"data-mce-bogus":"all",class:"mce-resizehandle",unselectable:!0,style:"cursor:"+r+"-resize; margin:0; padding:0"}),n.ie&&(l.contentEditable=!1)),e.elm||(O.bind(l,"mousedown",function(e){e.stopImmediatePropagation(),e.preventDefault(),o(e)}),e.elm=l),O.setStyles(l,{left:u*e[0]+k-l.offsetWidth/2,top:d*e[1]+T-l.offsetHeight/2}))}):c(),b.setAttribute("data-mce-selected","1")}function c(){var e,t;g(),b&&b.removeAttribute("data-mce-selected");for(e in w)(t=O.get("mceResizeHandle"+e))&&(O.unbind(t),O.remove(t))}function u(e){function t(e,t){if(e)do{if(e===t)return!0}while(e=e.parentNode)}var n,r;D||(I(O.select("img[data-mce-selected],hr[data-mce-selected]"),function(e){e.removeAttribute("data-mce-selected")}),r="mousedown"==e.type?e.target:i.getNode(),t(r=O.$(r).closest(W?"table":"table,img,hr")[0],$)&&(v(),n=i.getStart(!0),t(n,r)&&t(i.getEnd(!0),r)&&(!W||r!=n&&"IMG"!==n.nodeName))?l(r):c())}function d(e,t,n){e&&e.attachEvent&&e.attachEvent("on"+t,n)}function f(e,t,n){e&&e.detachEvent&&e.detachEvent("on"+t,n)}function m(e){var t,n,i,o,a,s,c,u=e.srcElement;t=u.getBoundingClientRect(),s=E.clientX-t.left,c=E.clientY-t.top;for(n in w)if(i=w[n],o=u.offsetWidth*i[0],a=u.offsetHeight*i[1],U(o-s)<8&&U(a-c)<8){_=i;break}D=!0,r.fire("ObjectResizeStart",{target:b,width:b.clientWidth,height:b.clientHeight}),r.getDoc().selection.empty(),l(u,n,E)}function p(e){var t=e.srcElement;if(t!=b){if(r.fire("ObjectSelected",{target:t}),h(),0===t.id.indexOf("mceResizeHandle"))return void(e.returnValue=!1);"IMG"!=t.nodeName&&"TABLE"!=t.nodeName||(c(),b=t,d(t,"resizestart",m))}}function h(){f(b,"resizestart",m)}function g(){for(var e in w){var t=w[e];t.elm&&(O.unbind(t.elm),delete t.elm)}}function v(){try{r.getDoc().execCommand("enableObjectResizing",!1,!1)}catch(e){}}function y(e){var t;if(W){t=F.body.createControlRange();try{return t.addElement(e),t.select(),!0}catch(e){}}}var b,C,x,w,_,E,N,S,k,T,R,A,B,D,M,L,P,H,O=r.dom,I=t.each,F=r.getDoc(),z=document,W=n.ie&&n.ie<11,U=Math.abs,V=Math.round,$=r.getBody();w={n:[.5,0,0,-1],e:[1,.5,1,0],s:[.5,1,0,1],w:[0,.5,-1,0],nw:[0,0,-1,-1],ne:[1,0,1,-1],se:[1,1,1,1],sw:[0,1,-1,1]};var q=".mce-content-body";return r.contentStyles.push(q+" div.mce-resizehandle {position: absolute;border: 1px solid black;background: #FFF;width: 5px;height: 5px;z-index: 10000}"+q+" .mce-resizehandle:hover {background: #000}"+q+" img[data-mce-selected], hr[data-mce-selected] {outline: 1px solid black;resize: none}"+q+" .mce-clonedresizable {position: absolute;"+(n.gecko?"":"outline: 1px dashed black;")+"opacity: .5;filter: alpha(opacity=50);z-index: 10000}"+q+" .mce-resize-helper {background: #555;background: rgba(0,0,0,0.75);border-radius: 3px;border: 1px;color: white;display: none;font-family: sans-serif;font-size: 12px;white-space: nowrap;line-height: 14px;margin: 5px 10px;padding: 5px;position: absolute;z-index: 10001}"),r.on("init",function(){W?(r.on("ObjectResized",function(e){"TABLE"!=e.target.nodeName&&(c(),y(e.target))}),d($,"controlselect",p),r.on("mousedown",function(e){E=e})):(v(),n.ie>=11&&(r.on("mouseup",function(e){var t=e.target.nodeName;!D&&/^(TABLE|IMG|HR)$/.test(t)&&(r.selection.select(e.target,"TABLE"==t),r.nodeChanged())}),r.dom.bind($,"mscontrolselect",function(e){/^(TABLE|IMG|HR)$/.test(e.target.nodeName)&&(e.preventDefault(),"IMG"==e.target.tagName&&window.setTimeout(function(){r.selection.select(e.target)},0))}))),r.on("nodechange ResizeEditor",u),r.on("keydown keyup",function(e){b&&"TABLE"==b.nodeName&&u(e)}),r.on("hide",c)}),r.on("remove",g),{isResizable:o,showResizeRect:l,hideResizeRect:c,updateResizeRect:u,controlSelect:y,destroy:function(){b=C=null,W&&(h(),f($,"controlselect",p))}}}}),i("tinymce/dom/BookmarkManager",["tinymce/Env","tinymce/util/Tools"],function(e,t){function n(n){var i=n.dom;this.getBookmark=function(e,r){function o(e,n){var r=0;return t.each(i.select(e),function(e,t){e==n&&(r=t)}),r}function a(e){function t(t){var n,i,r,o=t?"start":"end";n=e[o+"Container"],i=e[o+"Offset"],1==n.nodeType&&"TR"==n.nodeName&&(n=(r=n.childNodes)[Math.min(t?i:i-1,r.length-1)])&&(i=t?0:n.childNodes.length,e["set"+(t?"Start":"End")](n,i))}return t(!0),t(),e}var s,l,c,u,d,f,m,p="";if(2==e)return f=n.getNode(),"IMG"==(d=f?f.nodeName:null)?{name:d,index:o(d,f)}:n.tridentSel?n.tridentSel.getBookmark(e):function(){function e(e,t){var n,a,s=e[t?"startContainer":"endContainer"],l=e[t?"startOffset":"endOffset"],c=[],u=0;if(3==s.nodeType){if(r)for(n=s.previousSibling;n&&3==n.nodeType;n=n.previousSibling)l+=n.nodeValue.length;c.push(l)}else l>=(a=s.childNodes).length&&a.length&&(u=1,l=Math.max(0,a.length-1)),c.push(i.nodeIndex(a[l],r)+u);for(;s&&s!=o;s=s.parentNode)c.push(i.nodeIndex(s,r));return c}var t=n.getRng(!0),o=i.getRoot(),a={};return a.start=e(t,!0),n.isCollapsed()||(a.end=e(t)),a}();if(e)return{rng:n.getRng()};if(s=n.getRng(),c=i.uniqueId(),u=n.isCollapsed(),m="overflow:hidden;line-height:0px",s.duplicate||s.item){if(s.item)return f=s.item(0),d=f.nodeName,{name:d,index:o(d,f)};l=s.duplicate();try{s.collapse(),s.pasteHTML('<span data-mce-type="bookmark" id="'+c+'_start" style="'+m+'">'+p+"</span>"),u||(l.collapse(!1),s.moveToElementText(l.parentElement()),0===s.compareEndPoints("StartToEnd",l)&&l.move("character",-1),l.pasteHTML('<span data-mce-type="bookmark" id="'+c+'_end" style="'+m+'">'+p+"</span>"))}catch(e){return null}}else{if(f=n.getNode(),"IMG"==(d=f.nodeName))return{name:d,index:o(d,f)};l=a(s.cloneRange()),u||(l.collapse(!1),l.insertNode(i.create("span",{"data-mce-type":"bookmark",id:c+"_end",style:m},p))),(s=a(s)).collapse(!0),s.insertNode(i.create("span",{"data-mce-type":"bookmark",id:c+"_start",style:m},p))}return n.moveToBookmark({id:c,keep:1}),{id:c}},this.moveToBookmark=function(r){function o(e){var t,n,i,o,a=r[e?"start":"end"];if(a){for(i=a[0],n=c,t=a.length-1;t>=1;t--){if(o=n.childNodes,a[t]>o.length-1)return;n=o[a[t]]}3===n.nodeType&&(i=Math.min(a[0],n.nodeValue.length)),1===n.nodeType&&(i=Math.min(a[0],n.childNodes.length)),e?l.setStart(n,i):l.setEnd(n,i)}return!0}function a(n){var o,a,s,l,c=i.get(r.id+"_"+n),p=r.keep;if(c&&(o=c.parentNode,"start"==n?(p?(o=c.firstChild,a=1):a=i.nodeIndex(c),u=d=o,f=m=a):(p?(o=c.firstChild,a=1):a=i.nodeIndex(c),d=o,m=a),!p)){for(l=c.previousSibling,s=c.nextSibling,t.each(t.grep(c.childNodes),function(e){3==e.nodeType&&(e.nodeValue=e.nodeValue.replace(/\uFEFF/g,""))});c=i.get(r.id+"_"+n);)i.remove(c,1);l&&s&&l.nodeType==s.nodeType&&3==l.nodeType&&!e.opera&&(a=l.nodeValue.length,l.appendData(s.nodeValue),i.remove(s),"start"==n?(u=d=l,f=m=a):(d=l,m=a))}}function s(t){return!i.isBlock(t)||t.innerHTML||e.ie||(t.innerHTML='<br data-mce-bogus="1" />'),t}var l,c,u,d,f,m;if(r)if(r.start){if(l=i.createRng(),c=i.getRoot(),n.tridentSel)return n.tridentSel.moveToBookmark(r);o(!0)&&o()&&n.setRng(l)}else r.id?(a("start"),a("end"),u&&((l=i.createRng()).setStart(s(u),f),l.setEnd(s(d),m),n.setRng(l))):r.name?n.select(i.select(r.name)[r.index]):r.rng&&n.setRng(r.rng)}}return n.isBookmarkNode=function(e){return e&&"SPAN"===e.tagName&&"bookmark"===e.getAttribute("data-mce-type")},n}),i("tinymce/dom/Selection",["tinymce/dom/TreeWalker","tinymce/dom/TridentSelection","tinymce/dom/ControlSelection","tinymce/dom/RangeUtils","tinymce/dom/BookmarkManager","tinymce/Env","tinymce/util/Tools"],function(e,n,i,r,o,a,s){function l(e,t,r,a){var s=this;s.dom=e,s.win=t,s.serializer=r,s.editor=a,s.bookmarkManager=new o(s),s.controlSelection=new i(s,a),s.win.getSelection||(s.tridentSel=new n(s))}var c=s.each,u=s.trim,d=a.ie;return l.prototype={setCursorLocation:function(e,t){var n=this,i=n.dom.createRng();e?(i.setStart(e,t),i.setEnd(e,t),n.setRng(i),n.collapse(!1)):(n._moveEndPoint(i,n.editor.getBody(),!0),n.setRng(i))},getContent:function(e){var n,i,r,o=this,a=o.getRng(),s=o.dom.create("body"),l=o.getSel();return e=e||{},n=i="",e.get=!0,e.format=e.format||"html",e.selection=!0,o.editor.fire("BeforeGetContent",e),"text"==e.format?o.isCollapsed()?"":a.text||(l.toString?l.toString():""):(a.cloneContents?(r=a.cloneContents())&&s.appendChild(r):a.item!==t||a.htmlText!==t?(s.innerHTML="<br>"+(a.item?a.item(0).outerHTML:a.htmlText),s.removeChild(s.firstChild)):s.innerHTML=a.toString(),/^\s/.test(s.innerHTML)&&(n=" "),/\s+$/.test(s.innerHTML)&&(i=" "),e.getInner=!0,e.content=o.isCollapsed()?"":n+o.serializer.serialize(s,e)+i,o.editor.fire("GetContent",e),e.content)},setContent:function(e,t){var n,i,r,o=this,a=o.getRng(),s=o.win.document;if(t=t||{format:"html"},t.set=!0,t.selection=!0,e=t.content=e,t.no_events||o.editor.fire("BeforeSetContent",t),e=t.content,a.insertNode){e+='<span id="__caret">_</span>',a.startContainer==s&&a.endContainer==s?s.body.innerHTML=e:(a.deleteContents(),0===s.body.childNodes.length?s.body.innerHTML=e:a.createContextualFragment?a.insertNode(a.createContextualFragment(e)):(i=s.createDocumentFragment(),r=s.createElement("div"),i.appendChild(r),r.outerHTML=e,a.insertNode(i))),n=o.dom.get("__caret"),(a=s.createRange()).setStartBefore(n),a.setEndBefore(n),o.setRng(a),o.dom.remove("__caret");try{o.setRng(a)}catch(e){}}else a.item&&(s.execCommand("Delete",!1,null),a=o.getRng()),/^\s+/.test(e)?(a.pasteHTML('<span id="__mce_tmp">_</span>'+e),o.dom.remove("__mce_tmp")):a.pasteHTML(e);t.no_events||o.editor.fire("SetContent",t)},getStart:function(e){var t,n,i,r,o=this,a=o.getRng();if(a.duplicate||a.item){if(a.item)return a.item(0);for((i=a.duplicate()).collapse(1),(t=i.parentElement()).ownerDocument!==o.dom.doc&&(t=o.dom.getRoot()),n=r=a.parentElement();r=r.parentNode;)if(r==t){t=n;break}return t}return 1==(t=a.startContainer).nodeType&&t.hasChildNodes()&&(e&&a.collapsed||(t=t.childNodes[Math.min(t.childNodes.length-1,a.startOffset)])),t&&3==t.nodeType?t.parentNode:t},getEnd:function(e){var t,n,i=this,r=i.getRng();return r.duplicate||r.item?r.item?r.item(0):((r=r.duplicate()).collapse(0),(t=r.parentElement()).ownerDocument!==i.dom.doc&&(t=i.dom.getRoot()),t&&"BODY"==t.nodeName?t.lastChild||t:t):(t=r.endContainer,n=r.endOffset,1==t.nodeType&&t.hasChildNodes()&&(e&&r.collapsed||(t=t.childNodes[n>0?n-1:n])),t&&3==t.nodeType?t.parentNode:t)},getBookmark:function(e,t){return this.bookmarkManager.getBookmark(e,t)},moveToBookmark:function(e){return this.bookmarkManager.moveToBookmark(e)},select:function(e,t){var n,i=this,r=i.dom,o=r.createRng();if(i.lastFocusBookmark=null,e){if(!t&&i.controlSelection.controlSelect(e))return;n=r.nodeIndex(e),o.setStart(e.parentNode,n),o.setEnd(e.parentNode,n+1),t&&(i._moveEndPoint(o,e,!0),i._moveEndPoint(o,e)),i.setRng(o)}return e},isCollapsed:function(){var e=this,t=e.getRng(),n=e.getSel();return!(!t||t.item)&&(t.compareEndPoints?0===t.compareEndPoints("StartToEnd",t):!n||t.collapsed)},collapse:function(e){var t,n=this,i=n.getRng();i.item&&(t=i.item(0),(i=n.win.document.body.createTextRange()).moveToElementText(t)),i.collapse(!!e),n.setRng(i)},getSel:function(){var e=this.win;return e.getSelection?e.getSelection():e.document.selection},getRng:function(e){function t(e,t,n){try{return t.compareBoundaryPoints(e,n)}catch(e){return-1}}var n,i,r,o,a=this,s=a.win.document;if(!e&&a.lastFocusBookmark){var l=a.lastFocusBookmark;return l.startContainer?((i=s.createRange()).setStart(l.startContainer,l.startOffset),i.setEnd(l.endContainer,l.endOffset)):i=l,i}if(e&&a.tridentSel)return a.tridentSel.getRangeAt(0);try{(n=a.getSel())&&(i=n.rangeCount>0?n.getRangeAt(0):n.createRange?n.createRange():s.createRange())}catch(e){}if(d&&i&&i.setStart&&s.selection){try{o=s.selection.createRange()}catch(e){}o&&o.item&&(r=o.item(0),(i=s.createRange()).setStartBefore(r),i.setEndAfter(r))}return i||(i=s.createRange?s.createRange():s.body.createTextRange()),i.setStart&&9===i.startContainer.nodeType&&i.collapsed&&(r=a.dom.getRoot(),i.setStart(r,0),i.setEnd(r,0)),a.selectedRange&&a.explicitRange&&(0===t(i.START_TO_START,i,a.selectedRange)&&0===t(i.END_TO_END,i,a.selectedRange)?i=a.explicitRange:(a.selectedRange=null,a.explicitRange=null)),i},setRng:function(e,t){var n,i=this;if(e)if(e.select)try{e.select()}catch(e){}else if(i.tridentSel){if(e.cloneRange)try{return void i.tridentSel.addRange(e)}catch(e){}}else if(n=i.getSel()){i.explicitRange=e;try{n.removeAllRanges(),n.addRange(e)}catch(e){}!1===t&&n.extend&&(n.collapse(e.endContainer,e.endOffset),n.extend(e.startContainer,e.startOffset)),i.selectedRange=n.rangeCount>0?n.getRangeAt(0):null}},setNode:function(e){var t=this;return t.setContent(t.dom.getOuterHTML(e)),e},getNode:function(){function e(e,t){for(var n=e;e&&3===e.nodeType&&0===e.length;)e=t?e.nextSibling:e.previousSibling;return e||n}var t,n=this,i=n.getRng(),r=i.startContainer,o=i.endContainer,a=i.startOffset,s=i.endOffset,l=n.dom.getRoot();return i?i.setStart?(t=i.commonAncestorContainer,!i.collapsed&&(r==o&&s-a<2&&r.hasChildNodes()&&(t=r.childNodes[a]),3===r.nodeType&&3===o.nodeType&&(r=r.length===a?e(r.nextSibling,!0):r.parentNode,o=0===s?e(o.previousSibling,!1):o.parentNode,r&&r===o))?r:t&&3==t.nodeType?t.parentNode:t):((t=i.item?i.item(0):i.parentElement()).ownerDocument!==n.win.document&&(t=l),t):l},getSelectedBlocks:function(t,n){var i,r,o=this,a=o.dom,s=[];if(r=a.getRoot(),t=a.getParent(t||o.getStart(),a.isBlock),n=a.getParent(n||o.getEnd(),a.isBlock),t&&t!=r&&s.push(t),t&&n&&t!=n){i=t;for(var l=new e(t,r);(i=l.next())&&i!=n;)a.isBlock(i)&&s.push(i)}return n&&t!=n&&n!=r&&s.push(n),s},isForward:function(){var e,t,n=this.dom,i=this.getSel();return!(i&&i.anchorNode&&i.focusNode)||((e=n.createRng()).setStart(i.anchorNode,i.anchorOffset),e.collapse(!0),(t=n.createRng()).setStart(i.focusNode,i.focusOffset),t.collapse(!0),e.compareBoundaryPoints(e.START_TO_START,t)<=0)},normalize:function(){var e=this,t=e.getRng();return a.range&&new r(e.dom).normalize(t)&&e.setRng(t,e.isForward()),t},selectorChanged:function(e,t){var n,i=this;return i.selectorChangedData||(i.selectorChangedData={},n={},i.editor.on("NodeChange",function(e){var t=e.element,r=i.dom,o=r.getParents(t,null,r.getRoot()),a={};c(i.selectorChangedData,function(e,t){c(o,function(i){if(r.is(i,t))return n[t]||(c(e,function(e){e(!0,{node:i,selector:t,parents:o})}),n[t]=e),a[t]=e,!1})}),c(n,function(e,i){a[i]||(delete n[i],c(e,function(e){e(!1,{node:t,selector:i,parents:o})}))})})),i.selectorChangedData[e]||(i.selectorChangedData[e]=[]),i.selectorChangedData[e].push(t),i},getScrollContainer:function(){for(var e,t=this.dom.getRoot();t&&"BODY"!=t.nodeName;){if(t.scrollHeight>t.clientHeight){e=t;break}t=t.parentNode}return e},scrollIntoView:function(e){function t(e){for(var t=0,n=0,i=e;i&&i.nodeType;)t+=i.offsetLeft||0,n+=i.offsetTop||0,i=i.offsetParent;return{x:t,y:n}}var n,i,r,o,a=this,s=a.dom;if("BODY"!=s.getRoot().nodeName){var l=a.getScrollContainer();if(l)return n=t(e).y-t(l).y,o=l.clientHeight,r=l.scrollTop,void((n<r||n+25>r+o)&&(l.scrollTop=n<r?n:n-o+25))}i=s.getViewPort(a.editor.getWin()),n=s.getPos(e).y,r=i.y,o=i.h,(n<i.y||n+25>r+o)&&a.editor.getWin().scrollTo(0,n<r?n:n-o+25)},placeCaretAt:function(e,t){var n,i,r=this.editor.getDoc();if(r.caretPositionFromPoint)i=r.caretPositionFromPoint(e,t),(n=r.createRange()).setStart(i.offsetNode,i.offset),n.collapse(!0);else if(r.caretRangeFromPoint)n=r.caretRangeFromPoint(e,t);else if(r.body.createTextRange){n=r.body.createTextRange();try{n.moveToPoint(e,t),n.collapse(!0)}catch(e){n.collapse(t<r.body.clientHeight)}}this.setRng(n)},_moveEndPoint:function(t,n,i){var r=n,o=new e(n,r),s=this.dom.schema.getNonEmptyElements();do{if(3==n.nodeType&&0!==u(n.nodeValue).length)return void(i?t.setStart(n,0):t.setEnd(n,n.nodeValue.length));if(s[n.nodeName]&&!/^(TD|TH)$/.test(n.nodeName))return void(i?t.setStartBefore(n):"BR"==n.nodeName?t.setEndBefore(n):t.setEndAfter(n));if(a.ie&&a.ie<11&&this.dom.isBlock(n)&&this.dom.isEmpty(n))return void(i?t.setStart(n,0):t.setEnd(n,0))}while(n=i?o.next():o.prev());"BODY"==r.nodeName&&(i?t.setStart(r,0):t.setEnd(r,r.childNodes.length))},destroy:function(){this.win=null,this.controlSelection.destroy()}},l}),i("tinymce/dom/ElementUtils",["tinymce/dom/BookmarkManager","tinymce/util/Tools"],function(e,t){var n=t.each;return function(t){this.compare=function(i,r){function o(e){var i={};return n(t.getAttribs(e),function(n){var r=n.nodeName.toLowerCase();0!==r.indexOf("_")&&"style"!==r&&"data-mce-style"!==r&&(i[r]=t.getAttrib(e,r))}),i}function a(e,t){var n,i;for(i in e)if(e.hasOwnProperty(i)){if(void 0===(n=t[i]))return!1;if(e[i]!=n)return!1;delete t[i]}for(i in t)if(t.hasOwnProperty(i))return!1;return!0}return!(i.nodeName!=r.nodeName||!a(o(i),o(r))||!a(t.parseStyle(t.getAttrib(i,"style")),t.parseStyle(t.getAttrib(r,"style")))||e.isBookmarkNode(i)||e.isBookmarkNode(r))}}}),i("tinymce/fmt/Preview",["tinymce/util/Tools"],function(e){var t=e.each;return{getCssText:function(e,n){function i(e){return e.replace(/%(\w+)/g,"")}var r,o,a,s,l=e.dom,c="";if(!1===(s=e.settings.preview_styles))return"";if(s||(s="font-family font-size font-weight font-style text-decoration text-transform color background-color border border-radius outline text-shadow"),"string"==typeof n){if(!(n=e.formatter.get(n)))return;n=n[0]}return r=n.block||n.inline||"span",o=l.create(r),t(n.styles,function(e,t){(e=i(e))&&l.setStyle(o,t,e)}),t(n.attributes,function(e,t){(e=i(e))&&l.setAttrib(o,t,e)}),t(n.classes,function(e){e=i(e),l.hasClass(o,e)||l.addClass(o,e)}),e.fire("PreviewFormats"),l.setStyles(o,{position:"absolute",left:-65535}),e.getBody().appendChild(o),a=l.getStyle(e.getBody(),"fontSize",!0),a=/px$/.test(a)?parseInt(a,10):0,t(s.split(" "),function(t){var n=l.getStyle(o,t,!0);if(!("background-color"==t&&/transparent|rgba\s*\([^)]+,\s*0\)/.test(n)&&(n=l.getStyle(e.getBody(),t,!0),"#ffffff"==l.toHex(n).toLowerCase())||"color"==t&&"#000000"==l.toHex(n).toLowerCase())){if("font-size"==t&&/em|%$/.test(n)){if(0===a)return;n=(n=parseFloat(n,10)/(/%$/.test(n)?100:1))*a+"px"}"border"==t&&n&&(c+="padding:0 2px;"),c+=t+":"+n+";"}}),e.fire("AfterPreviewFormats"),l.remove(o),c}}}),i("tinymce/Formatter",["tinymce/dom/TreeWalker","tinymce/dom/RangeUtils","tinymce/dom/BookmarkManager","tinymce/dom/ElementUtils","tinymce/util/Tools","tinymce/fmt/Preview"],function(e,t,n,i,r,o){return function(a){function s(e){return e.nodeType&&(e=e.nodeName),!!a.schema.getTextBlockElements()[e.toLowerCase()]}function l(e){return/^(TH|TD)$/.test(e.nodeName)}function c(e,t){return z.getParents(e,t,z.getRoot())}function u(e){return 1===e.nodeType&&"_mce_caret"===e.id}function d(e){return e?F[e]:F}function f(e,t){e&&("string"!=typeof e?Z(e,function(e,t){f(t,e)}):(t=t.length?t:[t],Z(t,function(e){e.deep===H&&(e.deep=!e.selector),e.split===H&&(e.split=!e.selector||e.inline),e.remove===H&&e.selector&&!e.inline&&(e.remove="none"),e.selector&&e.inline&&(e.mixed=!0,e.block_expand=!0),"string"==typeof e.classes&&(e.classes=e.classes.split(/\s+/))}),F[e]=t))}function m(e){var t;return a.dom.getParent(e,function(e){return(t=a.dom.getStyle(e,"text-decoration"))&&"none"!==t}),t}function p(e){var t;1===e.nodeType&&e.parentNode&&1===e.parentNode.nodeType&&(t=m(e.parentNode),a.dom.getStyle(e,"color")&&t?a.dom.setStyle(e,"text-decoration",t):a.dom.getStyle(e,"text-decoration")===t&&a.dom.setStyle(e,"text-decoration",null))}function h(t,n,i){function r(e,t){if(t=t||m,e){if(t.onformat&&t.onformat(e,t,n,i),Z(t.styles,function(t,i){z.setStyle(e,i,_(t,n))}),t.styles){var r=z.getAttrib(e,"style");r&&e.setAttribute("data-mce-style",r)}Z(t.attributes,function(t,i){z.setAttrib(e,i,_(t,n))}),Z(t.classes,function(t){t=_(t,n),z.hasClass(e,t)||z.addClass(e,t)})}}function o(e,i,o){var a,l,c=[],d=!0;a=m.inline||m.block,r(l=z.create(a)),U.walk(e,function(e){function i(e){var h,y,b,x,w;return w=d,h=e.nodeName.toLowerCase(),y=e.parentNode.nodeName.toLowerCase(),1===e.nodeType&&J(e)&&(w=d,d="true"===J(e),x=!0),C(h,"br")?(p=0,void(m.block&&z.remove(e))):m.wrapper&&v(e,t,n)?void(p=0):d&&!x&&m.block&&!m.wrapper&&s(h)&&V(y,a)?(e=z.rename(e,a),r(e),c.push(e),void(p=0)):void(m.selector&&(Z(f,function(t){"collapsed"in t&&t.collapsed!==g||z.is(e,t.selector)&&!u(e)&&(r(e,t),b=!0)}),!m.inline||b)?p=0:!d||x||!V(a,h)||!V(y,a)||!o&&3===e.nodeType&&1===e.nodeValue.length&&65279===e.nodeValue.charCodeAt(0)||u(e)||m.inline&&$(e)?(p=0,Z(ee(e.childNodes),i),x&&(d=w),p=0):(p||(p=z.clone(l,G),e.parentNode.insertBefore(p,e),c.push(p)),p.appendChild(e)))}var p;Z(e,i)}),!0===m.links&&Z(c,function(e){function t(e){"A"===e.nodeName&&r(e,m),Z(ee(e.childNodes),t)}t(e)}),Z(c,function(e){var i;if(i=function(e){var t=0;return Z(e.childNodes,function(e){E(e)||Q(e)||t++}),t}(e),!(c.length>1)&&$(e)||0!==i){if(m.inline||m.wrapper){if(m.exact||1!==i||(e=function(e){var t,n;return Z(e.childNodes,function(e){if(1==e.nodeType&&!Q(e)&&!u(e))return t=e,G}),t&&!Q(t)&&b(t,m)&&(r(n=z.clone(t,G)),z.replace(n,e,X),z.remove(t,1)),n||e}(e)),Z(f,function(t){Z(z.select(t.inline,e),function(e){Q(e)||T(t,n,e,t.exact?e:null)})}),v(e.parentNode,t,n))return z.remove(e,1),e=0,X;m.merge_with_parents&&z.getParent(e.parentNode,function(i){if(v(i,t,n))return z.remove(e,1),e=0,X}),e&&!1!==m.merge_siblings&&(e=B(A(e),e),e=B(e,A(e,X)))}}else z.remove(e,1)})}var l,c,f=d(t),m=f[0],g=!i&&W.isCollapsed();if(m)if(i)i.nodeType?((c=z.createRng()).setStartBefore(i),c.setEndAfter(i),o(S(c,f),0,!0)):o(i,0,!0);else if(g&&m.inline&&!z.select("td.mce-item-selected,th.mce-item-selected").length)M("apply",t,n);else{var y=a.selection.getNode();q||!f[0].defaultBlock||z.getParent(y,z.isBlock)||h(f[0].defaultBlock),a.selection.setRng(function(){var t=a.selection.getRng(),n=t.startContainer,r=t.endContainer;if(n!=r&&0===t.endOffset){var o=function(t,n){var r=new e(n);for(i=r.current();i;i=r.prev())if(i.childNodes.length>1||i==t||"BR"==i.tagName)return i}(n,r),s=3==o.nodeType?o.length:o.childNodes.length;t.setEnd(o,s)}return t}()),l=W.getBookmark(),o(S(W.getRng(X),f)),m.styles&&(m.styles.color||m.styles.textDecoration)&&(te(y,p,"childNodes"),p(y)),W.moveToBookmark(l),L(W.getRng(X)),a.nodeChanged()}}function g(e,t,n,i){function r(e){var n,i,o,a,s;if(1===e.nodeType&&J(e)&&(a=x,x="true"===J(e),s=!0),n=ee(e.childNodes),x&&!s)for(i=0,o=b.length;i<o&&!T(b[i],t,e,e);i++);if(C.deep&&n.length){for(i=0,o=n.length;i<o;i++)r(n[i]);s&&(x=a)}}function o(n){var r;return Z(c(n.parentNode).reverse(),function(n){var o;r||"_start"==n.id||"_end"==n.id||(o=v(n,e,t,i))&&!1!==o.split&&(r=n)}),r}function s(e,n,i,r){var o,a,s,l,c,u;if(e){for(u=e.parentNode,o=n.parentNode;o&&o!=u;o=o.parentNode){for(a=z.clone(o,G),c=0;c<b.length;c++)if(T(b[c],t,a,a)){a=0;break}a&&(s&&a.appendChild(s),l||(l=a),s=a)}!r||C.mixed&&$(e)||(n=z.split(e,n)),s&&(i.parentNode.insertBefore(s,i),l.appendChild(i))}return n}function u(e){return s(o(e),e,e,!0)}function f(e){var t=z.get(e?"_start":"_end"),n=t[e?"firstChild":"lastChild"];return Q(n)&&(n=n[e?"firstChild":"lastChild"]),3==n.nodeType&&0===n.data.length&&(n=e?t.previousSibling||t.nextSibling:t.nextSibling||t.previousSibling),z.remove(t,!0),n}function p(e){var t,n,i=e.commonAncestorContainer;if(e=S(e,b,X),C.split){if(t=D(e,X),n=D(e),t!=n){if(/^(TR|TH|TD)$/.test(t.nodeName)&&t.firstChild&&(t="TR"==t.nodeName?t.firstChild.firstChild||t:t.firstChild||t),i&&/^T(HEAD|BODY|FOOT|R)$/.test(i.nodeName)&&l(n)&&n.firstChild&&(n=n.firstChild||n),z.isChildOf(t,n)&&!l(t)&&!l(n))return t=N(t,"span",{id:"_start","data-mce-type":"bookmark"}),u(t),void(t=f(X));t=N(t,"span",{id:"_start","data-mce-type":"bookmark"}),n=N(n,"span",{id:"_end","data-mce-type":"bookmark"}),u(t),u(n),t=f(X),n=f()}else t=n=u(t);e.startContainer=t.parentNode?t.parentNode:t,e.startOffset=j(t),e.endContainer=n.parentNode?n.parentNode:n,e.endOffset=j(n)+1}U.walk(e,function(e){Z(e,function(e){r(e),1===e.nodeType&&"underline"===a.dom.getStyle(e,"text-decoration")&&e.parentNode&&"underline"===m(e.parentNode)&&T({deep:!1,exact:!0,inline:"span",styles:{textDecoration:"underline"}},null,e)})})}var h,g,b=d(e),C=b[0],x=!0;n?n.nodeType?((g=z.createRng()).setStartBefore(n),g.setEndAfter(n),p(g)):p(n):W.isCollapsed()&&C.inline&&!z.select("td.mce-item-selected,th.mce-item-selected").length?M("remove",e,t,i):(h=W.getBookmark(),p(W.getRng(X)),W.moveToBookmark(h),C.inline&&y(e,t,W.getStart())&&L(W.getRng(!0)),a.nodeChanged())}function v(e,t,n,i){function r(e,t,r){var o,a,s,l=t[r];if(t.onmatch)return t.onmatch(e,t,r);if(l)if(l.length===H){for(o in l)if(l.hasOwnProperty(o)){if(a="attributes"===r?z.getAttrib(e,o):x(e,o),i&&!a&&!t.exact)return;if((!i||t.exact)&&!C(a,w(_(l[o],n),o)))return}}else for(s=0;s<l.length;s++)if("attributes"===r?z.getAttrib(e,l[s]):x(e,l[s]))return t;return t}var o,a,s,l=d(t);if(l&&e)for(a=0;a<l.length;a++)if(o=l[a],b(e,o)&&r(e,o,"attributes")&&r(e,o,"styles")){if(s=o.classes)for(a=0;a<s.length;a++)if(!z.hasClass(e,s[a]))return;return o}}function y(e,t,n){function i(n){var i=z.getRoot();return n!==i&&(n=z.getParent(n,function(n){return n.parentNode===i||!!v(n,e,t,!0)}),v(n,e,t))}var r;return n?i(n):(n=W.getNode(),i(n)?X:(r=W.getStart())!=n&&i(r)?X:G)}function b(e,t){return C(e,t.inline)?X:C(e,t.block)?X:t.selector?1==e.nodeType&&z.is(e,t.selector):void 0}function C(e,t){return e=e||"",t=t||"",e=""+(e.nodeName||e),t=""+(t.nodeName||t),e.toLowerCase()==t.toLowerCase()}function x(e,t){return w(z.getStyle(e,t),t)}function w(e,t){return"color"!=t&&"backgroundColor"!=t||(e=z.toHex(e)),"fontWeight"==t&&700==e&&(e="bold"),"fontFamily"==t&&(e=e.replace(/[\'\"]/g,"").replace(/,\s+/g,",")),""+e}function _(e,t){return"string"!=typeof e?e=e(t):t&&(e=e.replace(/%(\w+)/g,function(e,n){return t[n]||e})),e}function E(e){return e&&3===e.nodeType&&/^([\t \r\n]+|)$/.test(e.nodeValue)}function N(e,t,n){var i=z.create(t,n);return e.parentNode.insertBefore(i,e),i.appendChild(e),i}function S(t,n,i){function r(e){var t,i,r,o,a;if(t=i=e?g:y,o=e?"previousSibling":"nextSibling",a=z.getRoot(),3==t.nodeType&&!E(t)&&(e?v>0:b<t.nodeValue.length))return t;for(;;){if(!n[0].block_expand&&$(i))return i;for(r=i[o];r;r=r[o])if(!Q(r)&&!E(r)&&!function(e){return"BR"==e.nodeName&&e.getAttribute("data-mce-bogus")&&!e.nextSibling}(r))return i;if(i.parentNode==a){t=i;break}i=i.parentNode}return t}function o(e,t){for(t===H&&(t=3===e.nodeType?e.length:e.childNodes.length);e&&e.hasChildNodes();)(e=e.childNodes[t])&&(t=3===e.nodeType?e.length:e.childNodes.length);return{node:e,offset:t}}function l(e){for(var t=e;t;){if(1===t.nodeType&&J(t))return"false"===J(t)?t:e;t=t.parentNode}return e}function u(t,n,r){function o(e,t){var n,o,a=e.nodeValue;return void 0===t&&(t=r?a.length:0),r?-1===(n=(n=a.lastIndexOf(" ",t))>(o=a.lastIndexOf(" ",t))?n:o)||i||n++:(n=a.indexOf(" ",t),o=a.indexOf(" ",t),n=-1!==n&&(-1===o||n<o)?n:o),n}var s,l,c,u;if(3===t.nodeType){if(-1!==(c=o(t,n)))return{container:t,offset:c};u=t}for(s=new e(t,z.getParent(t,$)||a.getBody());l=s[r?"prev":"next"]();)if(3===l.nodeType){if(u=l,-1!==(c=o(l)))return{container:l,offset:c}}else if($(l))break;if(u)return n=r?0:u.length,{container:u,offset:n}}function d(e,i){var r,o,a,s;for(3==e.nodeType&&0===e.nodeValue.length&&e[i]&&(e=e[i]),r=c(e),o=0;o<r.length;o++)for(a=0;a<n.length;a++)if(!("collapsed"in(s=n[a])&&s.collapsed!==t.collapsed)&&z.is(r[o],s.selector))return r[o];return e}function f(e,t){var i,r=z.getRoot();if(n[0].wrapper||(i=z.getParent(e,n[0].block,r)),i||(i=z.getParent(3==e.nodeType?e.parentNode:e,function(e){return e!=r&&s(e)})),i&&n[0].wrapper&&(i=c(i,"ul,ol").reverse()[0]||i),!i)for(i=e;i[t]&&!$(i[t])&&(i=i[t],!C(i,"br")););return i||e}var m,p,h,g=t.startContainer,v=t.startOffset,y=t.endContainer,b=t.endOffset;if(1==g.nodeType&&g.hasChildNodes()&&(m=g.childNodes.length-1,3==(g=g.childNodes[v>m?m:v]).nodeType&&(v=0)),1==y.nodeType&&y.hasChildNodes()&&(m=y.childNodes.length-1,3==(y=y.childNodes[b>m?m:b-1]).nodeType&&(b=y.nodeValue.length)),g=l(g),y=l(y),(Q(g.parentNode)||Q(g))&&(g=Q(g)?g:g.parentNode,3==(g=g.nextSibling||g).nodeType&&(v=0)),(Q(y.parentNode)||Q(y))&&(y=Q(y)?y:y.parentNode,3==(y=y.previousSibling||y).nodeType&&(b=y.length)),n[0].inline&&(t.collapsed&&((h=u(g,v,!0))&&(g=h.container,v=h.offset),(h=u(y,b))&&(y=h.container,b=h.offset)),(p=o(y,b)).node)){for(;p.node&&0===p.offset&&p.node.previousSibling;)p=o(p.node.previousSibling);p.node&&p.offset>0&&3===p.node.nodeType&&" "===p.node.nodeValue.charAt(p.offset-1)&&p.offset>1&&(y=p.node).splitText(p.offset-1)}return(n[0].inline||n[0].block_expand)&&(n[0].inline&&3==g.nodeType&&0!==v||(g=r(!0)),n[0].inline&&3==y.nodeType&&b!==y.nodeValue.length||(y=r())),n[0].selector&&n[0].expand!==G&&!n[0].inline&&(g=d(g,"previousSibling"),y=d(y,"nextSibling")),(n[0].block||n[0].selector)&&(g=f(g,"previousSibling"),y=f(y,"nextSibling"),n[0].block&&($(g)||(g=r(!0)),$(y)||(y=r()))),1==g.nodeType&&(v=j(g),g=g.parentNode),1==y.nodeType&&(b=j(y)+1,y=y.parentNode),{startContainer:g,startOffset:v,endContainer:y,endOffset:b}}function k(e,t){return t.links&&"A"==e.tagName}function T(e,t,n,i){var r,o,a;if(!b(n,e)&&!k(n,e))return G;if("all"!=e.remove)for(Z(e.styles,function(r,o){r=w(_(r,t),o),"number"==typeof o&&(o=r,i=0),(e.remove_similar||!i||C(x(i,o),r))&&z.setStyle(n,o,""),a=1}),a&&""===z.getAttrib(n,"style")&&(n.removeAttribute("style"),n.removeAttribute("data-mce-style")),Z(e.attributes,function(e,r){var o;if(e=_(e,t),"number"==typeof r&&(r=e,i=0),!i||C(z.getAttrib(i,r),e)){if("class"==r&&(e=z.getAttrib(n,r))&&(o="",Z(e.split(/\s+/),function(e){/mce\-\w+/.test(e)&&(o+=(o?" ":"")+e)}),o))return void z.setAttrib(n,r,o);"class"==r&&n.removeAttribute("className"),Y.test(r)&&n.removeAttribute("data-mce-"+r),n.removeAttribute(r)}}),Z(e.classes,function(e){e=_(e,t),i&&!z.hasClass(i,e)||z.removeClass(n,e)}),o=z.getAttribs(n),r=0;r<o.length;r++)if(0!==o[r].nodeName.indexOf("_"))return G;return"none"!=e.remove?(R(n,e),X):void 0}function R(e,t){function n(e,t,n){return!(e=A(e,t,n))||"BR"==e.nodeName||$(e)}var i,r=e.parentNode;t.block&&(q?r==z.getRoot()&&(t.list_block&&C(e,t.list_block)||Z(ee(e.childNodes),function(e){V(q,e.nodeName.toLowerCase())?i?i.appendChild(e):(i=N(e,q),z.setAttribs(i,a.settings.forced_root_block_attrs)):i=0})):$(e)&&!$(r)&&(n(e,G)||n(e.firstChild,X,1)||e.insertBefore(z.create("br"),e.firstChild),n(e,X)||n(e.lastChild,G,1)||e.appendChild(z.create("br")))),t.selector&&t.inline&&!C(t.inline,e)||z.remove(e,1)}function A(e,t,n){if(e)for(t=t?"nextSibling":"previousSibling",e=n?e:e[t];e;e=e[t])if(1==e.nodeType||!E(e))return e}function B(e,t){function n(e,t){for(r=e;r;r=r[t]){if(3==r.nodeType&&0!==r.nodeValue.length)return e;if(1==r.nodeType&&!Q(r))return r}return e}var r,o,a=new i(z);if(e&&t&&(e=n(e,"previousSibling"),t=n(t,"nextSibling"),a.compare(e,t))){for(r=e.nextSibling;r&&r!=t;)o=r,r=r.nextSibling,e.appendChild(o);return z.remove(t),Z(ee(t.childNodes),function(t){e.appendChild(t)}),e}return t}function D(t,n){var i,r,o;return i=t[n?"startContainer":"endContainer"],r=t[n?"startOffset":"endOffset"],1==i.nodeType&&(o=i.childNodes.length-1,!n&&r&&r--,i=i.childNodes[r>o?o:r]),3===i.nodeType&&n&&r>=i.nodeValue.length&&(i=new e(i,a.getBody()).next()||i),3!==i.nodeType||n||0!==r||(i=new e(i,a.getBody()).prev()||i),i}function M(t,n,i,r){function o(e){var t=z.create("span",{id:p,"data-mce-bogus":!0,style:y?"color:red":""});return e&&t.appendChild(a.getDoc().createTextNode(K)),t}function l(e,t){for(;e;){if(3===e.nodeType&&e.nodeValue!==K||e.childNodes.length>1)return!1;t&&1===e.nodeType&&t.push(e),e=e.firstChild}return!0}function c(e){for(;e;){if(e.id===p)return e;e=e.parentNode}}function u(t){var n;if(t)for(t=(n=new e(t,t)).current();t;t=n.next())if(3===t.nodeType)return t}function f(e,t){var n,i;if(e)i=W.getRng(!0),l(e)?(!1!==t&&(i.setStartBefore(e),i.setEndBefore(e)),z.remove(e)):((n=u(e)).nodeValue.charAt(0)===K&&(n.deleteData(0,1),i.startContainer==n&&i.startOffset>0&&i.setStart(n,i.startOffset-1),i.endContainer==n&&i.endOffset>0&&i.setEnd(n,i.endOffset-1)),z.remove(e,1)),W.setRng(i);else if(!(e=c(W.getStart())))for(;e=z.get(p);)f(e,!1)}function m(){var e;(e=c(W.getStart()))&&!z.isEmpty(e)&&te(e,function(e){1!=e.nodeType||e.id===p||z.isEmpty(e)||z.setAttrib(e,"data-mce-bogus",null)},"childNodes")}var p="_mce_caret",y=a.settings.caret_debug;a._hasCaretEvents||(I=function(){var e,t=[];if(l(c(W.getStart()),t))for(e=t.length;e--;)z.setAttrib(t[e],"data-mce-bogus","1")},O=function(e){var t=e.keyCode;f(),(8==t&&W.isCollapsed()||37==t||39==t)&&f(c(W.getStart())),m()},a.on("SetContent",function(e){e.selection&&m()}),a._hasCaretEvents=!0),"apply"==t?function(){var e,t,r,a,s,l;a=(e=W.getRng(!0)).startOffset,l=e.startContainer.nodeValue,(t=c(W.getStart()))&&(r=u(t)),l&&a>0&&a<l.length&&/\w/.test(l.charAt(a))&&/\w/.test(l.charAt(a-1))?(s=W.getBookmark(),e.collapse(!0),e=S(e,d(n)),e=U.split(e),h(n,i,e),W.moveToBookmark(s)):(t&&r.nodeValue===K?h(n,i,t):(r=(t=o(!0)).firstChild,e.insertNode(t),a=1,h(n,i,t)),W.setCursorLocation(r,a))}():function(){var e,t,a,l,c,u,f,m,p=W.getRng(!0),h=[];for(e=p.startContainer,t=p.startOffset,c=e,3==e.nodeType&&(t!=e.nodeValue.length&&(l=!0),c=c.parentNode);c;){if(v(c,n,i,r)){u=c;break}c.nextSibling&&(l=!0),h.push(c),c=c.parentNode}if(u)if(l)a=W.getBookmark(),p.collapse(!0),p=S(p,d(n),!0),p=U.split(p),g(n,i,p),W.moveToBookmark(a);else{for(c=m=o(),f=h.length-1;f>=0;f--)c.appendChild(z.clone(h[f],!1)),c=c.firstChild;c.appendChild(z.doc.createTextNode(K)),c=c.firstChild;var y=z.getParent(u,s);y&&z.isEmpty(y)?u.parentNode.replaceChild(m,u):z.insertAfter(m,u),W.setCursorLocation(c,1),z.isEmpty(u)&&z.remove(u)}}()}function L(t){var n,i,r,o,a,s=t.startContainer,l=t.startOffset;if(3==s.nodeType&&l>=s.nodeValue.length&&(l=j(s),s=s.parentNode,n=!0),1==s.nodeType)for(s=(o=s.childNodes)[Math.min(l,o.length-1)],i=new e(s,z.getParent(s,z.isBlock)),(l>o.length-1||n)&&i.next(),r=i.current();r;r=i.next())if(3==r.nodeType&&!E(r))return a=z.create("a",{"data-mce-bogus":"all"},K),r.parentNode.insertBefore(a,r),t.setStart(r,0),W.setRng(t),void z.remove(a)}var P,H,O,I,F={},z=a.dom,W=a.selection,U=new t(z),V=a.schema.isValidChild,$=z.isBlock,q=a.settings.forced_root_block,j=z.nodeIndex,K="\ufeff",Y=/^(src|href|style)$/,G=!1,X=!0,J=z.getContentEditable,Q=n.isBookmarkNode,Z=r.each,ee=r.grep,te=r.walk;(0,r.extend)(this,{get:d,register:f,unregister:function(e){return e&&F[e]&&delete F[e],F},apply:h,remove:g,toggle:function(e,t,n){var i=d(e);!y(e,t,n)||"toggle"in i[0]&&!i[0].toggle?h(e,t,n):g(e,t,n)},match:y,matchAll:function(e,t){var n,i=[],r={};return n=W.getStart(),z.getParent(n,function(n){var o,a;for(o=0;o<e.length;o++)a=e[o],!r[a]&&v(n,a,t)&&(r[a]=!0,i.push(a))},z.getRoot()),i},matchNode:v,canApply:function(e){var t,n,i,r,o=d(e);if(o)for(t=c(W.getStart()),i=o.length-1;i>=0;i--){if(!(r=o[i].selector)||o[i].defaultBlock)return X;for(n=t.length-1;n>=0;n--)if(z.is(t[n],r))return X}return G},formatChanged:function(e,t,n){var i;return P||(P={},i={},a.on("NodeChange",function(e){var t=c(e.element),n={};t=r.grep(t,function(e){return 1==e.nodeType&&!e.getAttribute("data-mce-bogus")}),Z(P,function(e,r){Z(t,function(o){if(v(o,r,{},e.similar))return i[r]||(Z(e,function(e){e(!0,{node:o,format:r,parents:t})}),i[r]=e),n[r]=e,!1})}),Z(i,function(r,o){n[o]||(delete i[o],Z(r,function(n){n(!1,{node:e.element,format:o,parents:t})}))})})),Z(e.split(","),function(e){P[e]||(P[e]=[],P[e].similar=n),P[e].push(t)}),this},getCssText:function(e){return o.getCssText(a,e)}}),f({valigntop:[{selector:"td,th",styles:{verticalAlign:"top"}}],valignmiddle:[{selector:"td,th",styles:{verticalAlign:"middle"}}],valignbottom:[{selector:"td,th",styles:{verticalAlign:"bottom"}}],alignleft:[{selector:"figure,p,h1,h2,h3,h4,h5,h6,td,th,tr,div,ul,ol,li",styles:{textAlign:"left"},defaultBlock:"div"},{selector:"img,table",collapsed:!1,styles:{float:"left"}}],aligncenter:[{selector:"figure,p,h1,h2,h3,h4,h5,h6,td,th,tr,div,ul,ol,li",styles:{textAlign:"center"},defaultBlock:"div"},{selector:"img",collapsed:!1,styles:{display:"block",marginLeft:"auto",marginRight:"auto"}},{selector:"table",collapsed:!1,styles:{marginLeft:"auto",marginRight:"auto"}}],alignright:[{selector:"figure,p,h1,h2,h3,h4,h5,h6,td,th,tr,div,ul,ol,li",styles:{textAlign:"right"},defaultBlock:"div"},{selector:"img,table",collapsed:!1,styles:{float:"right"}}],alignjustify:[{selector:"figure,p,h1,h2,h3,h4,h5,h6,td,th,tr,div,ul,ol,li",styles:{textAlign:"justify"},defaultBlock:"div"}],bold:[{inline:"strong",remove:"all"},{inline:"span",styles:{fontWeight:"bold"}},{inline:"b",remove:"all"}],italic:[{inline:"em",remove:"all"},{inline:"span",styles:{fontStyle:"italic"}},{inline:"i",remove:"all"}],underline:[{inline:"span",styles:{textDecoration:"underline"},exact:!0},{inline:"u",remove:"all"}],strikethrough:[{inline:"span",styles:{textDecoration:"line-through"},exact:!0},{inline:"strike",remove:"all"}],forecolor:{inline:"span",styles:{color:"%value"},links:!0,remove_similar:!0},hilitecolor:{inline:"span",styles:{backgroundColor:"%value"},links:!0,remove_similar:!0},fontname:{inline:"span",styles:{fontFamily:"%value"}},fontsize:{inline:"span",styles:{fontSize:"%value"}},fontsize_class:{inline:"span",attributes:{class:"%value"}},blockquote:{block:"blockquote",wrapper:1,remove:"all"},subscript:{inline:"sub"},superscript:{inline:"sup"},code:{inline:"code"},link:{inline:"a",selector:"a",remove:"all",split:!0,deep:!0,onmatch:function(){return!0},onformat:function(e,t,n){Z(n,function(t,n){z.setAttrib(e,n,t)})}},removeformat:[{selector:"b,strong,em,i,font,u,strike,sub,sup,dfn,code,samp,kbd,var,cite,mark,q,del,ins",remove:"all",split:!0,expand:!1,block_expand:!0,deep:!0},{selector:"span",attributes:["style","class"],remove:"empty",split:!0,expand:!1,deep:!0},{selector:"*",attributes:["style","class"],split:!1,expand:!1,deep:!0}]}),Z("p h1 h2 h3 h4 h5 h6 div address pre div dt dd samp".split(/\s/),function(e){f(e,{block:e,remove:"all"})}),f(a.settings.formats),function(){a.addShortcut("meta+b","bold_desc","Bold"),a.addShortcut("meta+i","italic_desc","Italic"),a.addShortcut("meta+u","underline_desc","Underline");for(var e=1;e<=6;e++)a.addShortcut("access+"+e,"",["FormatBlock",!1,"h"+e]);a.addShortcut("access+7","",["FormatBlock",!1,"p"]),a.addShortcut("access+8","",["FormatBlock",!1,"div"]),a.addShortcut("access+9","",["FormatBlock",!1,"address"])}(),a.on("BeforeGetContent",function(e){I&&"raw"!=e.format&&I()}),a.on("mouseup keydown",function(e){O&&O(e)})}}),i("tinymce/UndoManager",["tinymce/util/VK","tinymce/Env","tinymce/util/Tools","tinymce/html/SaxParser"],function(e,t,n,i){var r,o=n.trim;return r=new RegExp(["<span[^>]+data-mce-bogus[^>]+>[\ufeff]+<\\/span>",'\\s?data-mce-selected="[^"]+"'].join("|"),"gi"),function(e){function n(){var t,n,a,s,l,c=e.getContent({format:"raw",no_events:1}),u=/<(\w+) [^>]*data-mce-bogus="all"[^>]*>/g,d=e.schema;for(c=c.replace(r,""),l=d.getShortEndedElements();s=u.exec(c);)n=u.lastIndex,a=s[0].length,t=l[s[1]]?n:i.findEndTag(d,c,n),c=c.substring(0,n-a)+c.substring(t),u.lastIndex=n-a;return o(c)}function a(t){e.isNotDirty=!t}function s(e){u.typing=!1,u.add({},e)}var l,c,u=this,d=0,f=[],m=0;return e.on("init",function(){u.add()}),e.on("BeforeExecCommand",function(e){var t=e.command;"Undo"!=t&&"Redo"!=t&&"mceRepaint"!=t&&u.beforeChange()}),e.on("ExecCommand",function(e){var t=e.command;"Undo"!=t&&"Redo"!=t&&"mceRepaint"!=t&&s(e)}),e.on("ObjectResizeStart",function(){u.beforeChange()}),e.on("SaveContent ObjectResized blur",s),e.on("DragEnd",s),e.on("KeyUp",function(i){var r=i.keyCode;(r>=33&&r<=36||r>=37&&r<=40||45==r||13==r||i.ctrlKey)&&(s(),e.nodeChanged()),(46==r||8==r||t.mac&&(91==r||93==r))&&e.nodeChanged(),c&&u.typing&&(e.isDirty()||(a(f[0]&&n()!=f[0].content),e.isNotDirty||e.fire("change",{level:f[0],lastLevel:null})),e.fire("TypingUndo"),c=!1,e.nodeChanged())}),e.on("KeyDown",function(e){var t=e.keyCode;if(t>=33&&t<=36||t>=37&&t<=40||45==t)u.typing&&s(e);else{var n=e.ctrlKey&&!e.altKey||e.metaKey;!(t<16||t>20)||224==t||91==t||u.typing||n||(u.beforeChange(),u.typing=!0,u.add({},e),c=!0)}}),e.on("MouseDown",function(e){u.typing&&s(e)}),e.addShortcut("meta+z","","Undo"),e.addShortcut("meta+y,meta+shift+z","","Redo"),e.on("AddUndo Undo Redo ClearUndos",function(t){t.isDefaultPrevented()||e.nodeChanged()}),u={data:f,typing:!1,beforeChange:function(){m||(l=e.selection.getBookmark(2,!0))},add:function(t,i){var r,o,s=e.settings;if(t=t||{},t.content=n(),m||e.removed)return null;if(o=f[d],e.fire("BeforeAddUndo",{level:t,lastLevel:o,originalEvent:i}).isDefaultPrevented())return null;if(o&&o.content==t.content)return null;if(f[d]&&(f[d].beforeBookmark=l),s.custom_undo_redo_levels&&f.length>s.custom_undo_redo_levels){for(r=0;r<f.length-1;r++)f[r]=f[r+1];f.length--,d=f.length}t.bookmark=e.selection.getBookmark(2,!0),d<f.length-1&&(f.length=d+1),f.push(t),d=f.length-1;var c={level:t,lastLevel:o,originalEvent:i};return e.fire("AddUndo",c),d>0&&(a(!0),e.fire("change",c)),t},undo:function(){var t;return u.typing&&(u.add(),u.typing=!1),d>0&&(t=f[--d],0===d&&a(!1),e.setContent(t.content,{format:"raw"}),e.selection.moveToBookmark(t.beforeBookmark),e.fire("undo",{level:t})),t},redo:function(){var t;return d<f.length-1&&(t=f[++d],e.setContent(t.content,{format:"raw"}),e.selection.moveToBookmark(t.bookmark),a(!0),e.fire("redo",{level:t})),t},clear:function(){f=[],d=0,u.typing=!1,e.fire("ClearUndos")},hasUndo:function(){return d>0||u.typing&&f[0]&&n()!=f[0].content},hasRedo:function(){return d<f.length-1&&!this.typing},transact:function(e){u.beforeChange();try{m++,e()}finally{m--}u.add()}}}}),i("tinymce/EnterKey",["tinymce/dom/TreeWalker","tinymce/dom/RangeUtils","tinymce/Env"],function(e,t,n){var i=n.ie&&n.ie<11;return function(r){function o(o){function m(e){return e&&a.isBlock(e)&&!/^(TD|TH|CAPTION|FORM)$/.test(e.nodeName)&&!/^(fixed|absolute)/i.test(e.style.position)&&"true"!==a.getContentEditable(e)}function p(e){var t;a.isBlock(e)&&(t=s.getRng(),e.appendChild(a.create("span",null," ")),s.select(e),e.lastChild.outerHTML="",s.setRng(t))}function h(t){var i,r,o,l,c=t;if(t){if(n.ie&&n.ie<9&&N&&N.firstChild&&N.firstChild==N.lastChild&&"BR"==N.firstChild.tagName&&a.remove(N.firstChild),/^(LI|DT|DD)$/.test(t.nodeName)){var u=function(e){for(;e;){if(1==e.nodeType||3==e.nodeType&&e.data&&/[\r\n\s]/.test(e.data))return e;e=e.nextSibling}}(t.firstChild);u&&/^(UL|OL|DL)$/.test(u.nodeName)&&t.insertBefore(a.doc.createTextNode(" "),t.firstChild)}if(o=a.createRng(),n.ie||t.normalize(),t.hasChildNodes()){for(i=new e(t,t);r=i.current();){if(3==r.nodeType){o.setStart(r,0),o.setEnd(r,0);break}if(f[r.nodeName.toLowerCase()]){o.setStartBefore(r),o.setEndBefore(r);break}c=r,r=i.next()}r||(o.setStart(c,0),o.setEnd(c,0))}else"BR"==t.nodeName?t.nextSibling&&a.isBlock(t.nextSibling)?((!S||S<9)&&(l=a.create("br"),t.parentNode.insertBefore(l,t)),o.setStartBefore(t),o.setEndBefore(t)):(o.setStartAfter(t),o.setEndAfter(t)):(o.setStart(t,0),o.setEnd(t,0));s.setRng(o),a.remove(l),s.scrollIntoView(t)}}function g(e){var t=l.forced_root_block;t&&t.toLowerCase()===e.tagName.toLowerCase()&&a.setAttribs(e,l.forced_root_block_attrs)}function v(e){var t,n,r,o=_,s=u.getTextInlineElements();if(e||"TABLE"==B?g(t=a.create(e||M)):t=N.cloneNode(!1),r=t,!1!==l.keep_styles)do{if(s[o.nodeName]){if("_mce_caret"==o.id)continue;n=o.cloneNode(!1),a.setAttrib(n,"id",""),t.hasChildNodes()?(n.appendChild(t.firstChild),t.appendChild(n)):(r=n,t.appendChild(n))}}while(o=o.parentNode);return i||(r.innerHTML='<br data-mce-bogus="1">'),t}function y(t){var n,i,r;if(3==_.nodeType&&(t?E>0:E<_.nodeValue.length))return!1;if(_.parentNode==N&&L&&!t)return!0;if(t&&1==_.nodeType&&_==N.firstChild)return!0;if("TABLE"===_.nodeName||_.previousSibling&&"TABLE"==_.previousSibling.nodeName)return L&&!t||!L&&t;for(n=new e(_,N),3==_.nodeType&&(t&&0===E?n.prev():t||E!=_.nodeValue.length||n.next());i=n.current();){if(1===i.nodeType){if(!i.getAttribute("data-mce-bogus")&&(r=i.nodeName.toLowerCase(),d[r]&&"br"!==r))return!1}else if(3===i.nodeType&&!/^[ \t\r\n]*$/.test(i.nodeValue))return!1;t?n.prev():n.next()}return!0}function b(){r.execCommand("InsertLineBreak",!1,o)}var C,x,w,_,E,N,S,k,T,R,A,B,D,M,L;if(C=s.getRng(!0),!o.isDefaultPrevented())if(C.collapsed){if(new t(a).normalize(C),_=C.startContainer,E=C.startOffset,M=(l.force_p_newlines?"p":"")||l.forced_root_block,M=M?M.toUpperCase():"",S=a.doc.documentMode,k=o.shiftKey,1==_.nodeType&&_.hasChildNodes()&&(L=E>_.childNodes.length-1,_=_.childNodes[Math.min(E,_.childNodes.length-1)]||_,E=L&&3==_.nodeType?_.nodeValue.length:0),w=function(e){var t,n,i=a.getRoot();for(t=e;t!==i&&"false"!==a.getContentEditable(t);)"true"===a.getContentEditable(t)&&(n=t),t=t.parentNode;return t!==i?n:i}(_))if(c.beforeChange(),a.isBlock(w)||w==a.getRoot()){if((M&&!k||!M&&k)&&(_=function(e,t){var n,i,o,s,l,c,d=M||"P";if(i=a.getParent(e,a.isBlock),c=r.getBody().nodeName.toLowerCase(),!i||!m(i)){if(!(i=i||w).hasChildNodes())return n=a.create(d),g(n),i.appendChild(n),C.setStart(n,0),C.setEnd(n,0),n;for(s=e;s.parentNode!=i;)s=s.parentNode;for(;s&&!a.isBlock(s);)o=s,s=s.previousSibling;if(o&&u.isValidChild(c,d.toLowerCase())){for(g(n=a.create(d)),o.parentNode.insertBefore(n,o),s=o;s&&!a.isBlock(s);)l=s.nextSibling,n.appendChild(s),s=l;C.setStart(e,t),C.setEnd(e,t)}}return e}(_,E)),N=a.getParent(_,a.isBlock),A=N?a.getParent(N.parentNode,a.isBlock):null,B=N?N.nodeName.toUpperCase():"","LI"!=(D=A?A.nodeName.toUpperCase():"")||o.ctrlKey||(N=A,B=D),/^(LI|DT|DD)$/.test(B)){if(!M&&k)return void b();if(a.isEmpty(N))return void function(){function e(e){for(var t=A[e?"firstChild":"lastChild"];t&&1!=t.nodeType;)t=t[e?"nextSibling":"previousSibling"];return t===N}function t(){var e=A.parentNode;return/^(LI|DT|DD)$/.test(e.nodeName)?e:A}var n=A.parentNode.nodeName;/^(OL|UL|LI)$/.test(n)&&(M="LI"),T=M?v(M):a.create("BR"),e(!0)&&e()?"LI"==n?a.insertAfter(T,t()):a.replace(T,A):e(!0)?"LI"==n?(a.insertAfter(T,t()),T.appendChild(a.doc.createTextNode(" ")),T.appendChild(A)):A.parentNode.insertBefore(T,A):e()?(a.insertAfter(T,t()),p(T)):(A=t(),(x=C.cloneRange()).setStartAfter(N),x.setEndAfter(A),R=x.extractContents(),"LI"==M&&"LI"==R.firstChild.nodeName?(T=R.firstChild,a.insertAfter(R,A)):(a.insertAfter(R,A),a.insertAfter(T,A))),a.remove(N),h(T),c.add()}()}if("PRE"==B&&!1!==l.br_in_pre){if(!k)return void b()}else if(!M&&!k&&"LI"!=B||M&&k)return void b();M&&N===r.getBody()||(M=M||"P",y()?(T=/^(H[1-6]|PRE|FIGURE)$/.test(B)&&"HGROUP"!=D?v(M):v(),l.end_container_on_empty_block&&m(A)&&a.isEmpty(N)?T=a.split(A,N):a.insertAfter(T,N),h(T)):y(!0)?(p(T=N.parentNode.insertBefore(v(),N)),h(N)):((x=C.cloneRange()).setEndAfter(N),function(e){do{3===e.nodeType&&(e.nodeValue=e.nodeValue.replace(/^[\r\n]+/,"")),e=e.firstChild}while(e)}(R=x.extractContents()),T=R.firstChild,a.insertAfter(R,N),function(e){var t,n=e,i=[];if(n){for(;n=n.firstChild;){if(a.isBlock(n))return;1!=n.nodeType||d[n.nodeName.toLowerCase()]||i.push(n)}for(t=i.length;t--;)!(n=i[t]).hasChildNodes()||n.firstChild==n.lastChild&&""===n.firstChild.nodeValue?a.remove(n):"A"==n.nodeName&&" "===(n.innerText||n.textContent)&&a.remove(n)}}(T),function(e){var t;i||(e.normalize(),(t=e.lastChild)&&!/^(left|right)$/gi.test(a.getStyle(t,"float",!0))||a.add(e,"br"))}(N),h(T)),a.setAttrib(T,"id",""),r.fire("NewBlock",{newBlock:T}),c.add())}else M&&!k||b()}else r.execCommand("Delete")}var a=r.dom,s=r.selection,l=r.settings,c=r.undoManager,u=r.schema,d=u.getNonEmptyElements(),f=u.getMoveCaretBeforeOnEnterElements();r.on("keydown",function(e){13==e.keyCode&&!1!==o(e)&&e.preventDefault()})}}),i("tinymce/ForceBlocks",[],function(){return function(e){var t=e.settings,n=e.dom,i=e.selection,r=e.schema,o=r.getBlockElements();t.forced_root_block&&e.on("NodeChange",function(){var a,s,l,c,u,d,f,m,p,h,g,v,y=i.getStart(),b=e.getBody();if(v=t.forced_root_block,y&&1===y.nodeType&&v){for(;y&&y!=b;){if(o[y.nodeName])return;y=y.parentNode}if((a=i.getRng()).setStart){s=a.startContainer,l=a.startOffset,c=a.endContainer,u=a.endOffset;try{p=e.getDoc().activeElement===b}catch(e){}}else a.item&&(y=a.item(0),(a=e.getDoc().body.createTextRange()).moveToElementText(y)),p=a.parentElement().ownerDocument===e.getDoc(),(h=a.duplicate()).collapse(!0),l=-1*h.move("character",-16777215),h.collapsed||((h=a.duplicate()).collapse(!1),u=-1*h.move("character",-16777215)-l);for(y=b.firstChild,g=b.nodeName.toLowerCase();y;)if((3===y.nodeType||1==y.nodeType&&!o[y.nodeName])&&r.isValidChild(g,v.toLowerCase())){if(3===y.nodeType&&0===y.nodeValue.length){f=y,y=y.nextSibling,n.remove(f);continue}d||(d=n.create(v,e.settings.forced_root_block_attrs),y.parentNode.insertBefore(d,y),m=!0),f=y,y=y.nextSibling,d.appendChild(f)}else d=null,y=y.nextSibling;if(m&&p){if(a.setStart)a.setStart(s,l),a.setEnd(c,u),i.setRng(a);else try{(a=e.getDoc().body.createTextRange()).moveToElementText(b),a.collapse(!0),a.moveStart("character",l),u>0&&a.moveEnd("character",u),a.select()}catch(e){}e.nodeChanged()}}})}}),i("tinymce/EditorCommands",["tinymce/html/Serializer","tinymce/Env","tinymce/util/Tools","tinymce/dom/ElementUtils","tinymce/dom/RangeUtils","tinymce/dom/TreeWalker"],function(e,n,i,r,o,a){var s=i.each,l=i.extend,c=i.map,u=i.inArray,d=i.explode,f=n.gecko,m=n.ie,p=n.ie&&n.ie<11,h=!1;return function(i){function g(e,t,n,r){var o,a,c=0;if(/^(mceAddUndoLevel|mceEndUndoLevel|mceBeginUndoLevel|mceRepaint)$/.test(e)||r&&r.skip_focus||i.focus(),r=l({},r),(r=i.fire("BeforeExecCommand",{command:e,ui:t,value:n})).isDefaultPrevented())return!1;if(a=e.toLowerCase(),o=T.exec[a])return o(a,t,n),i.fire("ExecCommand",{command:e,ui:t,value:n}),!0;if(s(i.plugins,function(r){if(r.execCommand&&r.execCommand(e,t,n))return i.fire("ExecCommand",{command:e,ui:t,value:n}),c=!0,!1}),c)return c;if(i.theme&&i.theme.execCommand&&i.theme.execCommand(e,t,n))return i.fire("ExecCommand",{command:e,ui:t,value:n}),!0;try{c=i.getDoc().execCommand(e,t,n)}catch(e){}return!!c&&(i.fire("ExecCommand",{command:e,ui:t,value:n}),!0)}function v(e){var t;if(!i._isHidden()){if(e=e.toLowerCase(),t=T.state[e])return t(e);try{return i.getDoc().queryCommandState(e)}catch(e){}return!1}}function y(e,t){t=t||"exec",s(e,function(e,n){s(n.toLowerCase().split(","),function(n){T[t][n]=e})})}function b(e,n,r){return n===t&&(n=h),r===t&&(r=null),i.getDoc().execCommand(e,n,r)}function C(e){return S.match(e)}function x(e,n){S.toggle(e,n?{value:n}:t),i.nodeChanged()}function w(e){k=N.getBookmark(e)}function _(){N.moveToBookmark(k)}var E,N,S,k,T={state:{},exec:{},value:{}},R=i.settings;i.on("PreInit",function(){E=i.dom,N=i.selection,R=i.settings,S=i.formatter}),l(this,{execCommand:g,queryCommandState:v,queryCommandValue:function(e){var t;if(!i._isHidden()){if(e=e.toLowerCase(),t=T.value[e])return t(e);try{return i.getDoc().queryCommandValue(e)}catch(e){}}},queryCommandSupported:function(e){if(e=e.toLowerCase(),T.exec[e])return!0;try{return i.getDoc().queryCommandSupported(e)}catch(e){}return!1},addCommands:y,addCommand:function(e,t,n){e=e.toLowerCase(),T.exec[e]=function(e,r,o,a){return t.call(n||i,r,o,a)}},addQueryStateHandler:function(e,t,n){e=e.toLowerCase(),T.state[e]=function(){return t.call(n||i)}},addQueryValueHandler:function(e,t,n){e=e.toLowerCase(),T.value[e]=function(){return t.call(n||i)}},hasCustomCommand:function(e){return e=e.toLowerCase(),!!T.exec[e]}}),y({"mceResetDesignMode,mceBeginUndoLevel":function(){},"mceEndUndoLevel,mceAddUndoLevel":function(){i.undoManager.add()},"Cut,Copy,Paste":function(e){var t,r=i.getDoc();try{b(e)}catch(e){t=!0}if(t||!r.queryCommandSupported(e)){var o=i.translate("Your browser doesn't support direct access to the clipboard. Please use the Ctrl+X/C/V keyboard shortcuts instead.");n.mac&&(o=o.replace(/Ctrl\+/g,"⌘+")),i.windowManager.alert(o)}},unlink:function(){if(N.isCollapsed()){var e=N.getNode();"A"==e.tagName&&i.dom.remove(e,!0)}else S.remove("link")},"JustifyLeft,JustifyCenter,JustifyRight,JustifyFull":function(e){var t=e.substring(7);"full"==t&&(t="justify"),s("left,center,right,justify".split(","),function(e){t!=e&&S.remove("align"+e)}),x("align"+t),g("mceRepaint")},"InsertUnorderedList,InsertOrderedList":function(e){var t,n;b(e),(t=E.getParent(N.getNode(),"ol,ul"))&&(n=t.parentNode,/^(H[1-6]|P|ADDRESS|PRE)$/.test(n.nodeName)&&(w(),E.split(n,t),_()))},"Bold,Italic,Underline,Strikethrough,Superscript,Subscript":function(e){x(e)},"ForeColor,HiliteColor,FontName":function(e,t,n){x(e,n)},FontSize:function(e,t,n){var i,r;n>=1&&n<=7&&(r=d(R.font_size_style_values),n=(i=d(R.font_size_classes))?i[n-1]||n:r[n-1]||n),x(e,n)},RemoveFormat:function(e){S.remove(e)},mceBlockQuote:function(){x("blockquote")},FormatBlock:function(e,t,n){return x(n||"p")},mceCleanup:function(){var e=N.getBookmark();i.setContent(i.getContent({cleanup:!0}),{cleanup:!0}),N.moveToBookmark(e)},mceRemoveNode:function(e,t,n){var r=n||N.getNode();r!=i.getBody()&&(w(),i.dom.remove(r,!0),_())},mceSelectNodeDepth:function(e,t,n){var r=0;E.getParent(N.getNode(),function(e){if(1==e.nodeType&&r++==n)return N.select(e),h},i.getBody())},mceSelectNode:function(e,t,n){N.select(n)},mceInsertContent:function(t,n,o){var a,l,c,u,d,f,p,h,g,v,y,b,C=i.schema.getTextInlineElements();"string"!=typeof o&&(b=o.merge,o=o.content),/^ | $/.test(o)&&(o=function(e){function t(e){return i[e]&&3==i[e].nodeType}var n,i,r;return n=N.getRng(!0),i=n.startContainer,r=n.startOffset,3==i.nodeType&&(r>0?e=e.replace(/^ /," "):t("previousSibling")||(e=e.replace(/^ /," ")),r<i.length?e=e.replace(/ (<br>|)$/," "):t("nextSibling")||(e=e.replace(/( | )(<br>|)$/," "))),e}(o)),a=i.parser,l=new e({},i.schema),y='<span id="mce_marker" data-mce-type="bookmark">​</span>',f={content:o,format:"html",selection:!0},i.fire("BeforeSetContent",f),-1==(o=f.content).indexOf("{$caret}")&&(o+="{$caret}"),o=o.replace(/\{\$caret\}/,y);var x=(h=N.getRng()).startContainer||(h.parentElement?h.parentElement():null),w=i.getBody();x===w&&N.isCollapsed()&&E.isBlock(w.firstChild)&&E.isEmpty(w.firstChild)&&((h=E.createRng()).setStart(w.firstChild,0),h.setEnd(w.firstChild,0),N.setRng(h)),N.isCollapsed()||(i.getDoc().execCommand("Delete",!1,null),function(){var e,t,n;t=(e=N.getRng(!0)).startContainer,n=e.startOffset,3==t.nodeType&&e.collapsed&&(" "===t.data[n]?(t.deleteData(n,1),/[\u00a0| ]$/.test(o)||(o+=" ")):" "===t.data[n-1]&&(t.deleteData(n-1,1),/[\u00a0| ]$/.test(o)||(o=" "+o)))}());var _={context:(c=N.getNode()).nodeName.toLowerCase()};if(d=a.parse(o,_),function(e){if(b)for(g=e.firstChild;g;g=g.walk(!0))C[g.name]&&g.attr("data-mce-new","true")}(d),"mce_marker"==(g=d.lastChild).attr("id"))for(p=g,g=g.prev;g;g=g.walk(!0))if(3==g.type||!E.isBlock(g.name)){i.schema.isValidChild(g.parent.name,"span")&&g.parent.insert(p,g,"br"===g.name);break}if(_.invalid){for(N.setContent(y),c=N.getNode(),u=i.getBody(),9==c.nodeType?c=g=u:g=c;g!==u;)c=g,g=g.parentNode;o=c==u?u.innerHTML:E.getOuterHTML(c),o=l.serialize(a.parse(o.replace(/<span (id="mce_marker"|id=mce_marker).+?<\/span>/i,function(){return l.serialize(d)}))),c==u?E.setHTML(u,o):E.setOuterHTML(c,o)}else o=l.serialize(d),g=c.firstChild,v=c.lastChild,!g||g===v&&"BR"===g.nodeName?E.setHTML(c,o):N.setContent(o);!function(){if(b){var e=i.getBody(),t=new r(E);s(E.select("*[data-mce-new]"),function(n){n.removeAttribute("data-mce-new");for(var i=n.parentNode;i&&i!=e;i=i.parentNode)t.compare(i,n)&&E.remove(n,!0)})}}(),p=E.get("mce_marker"),N.scrollIntoView(p),h=E.createRng(),(g=p.previousSibling)&&3==g.nodeType?(h.setStart(g,g.nodeValue.length),m||(v=p.nextSibling)&&3==v.nodeType&&(g.appendData(v.data),v.parentNode.removeChild(v))):(h.setStartBefore(p),h.setEndBefore(p)),E.remove(p),N.setRng(h),i.fire("SetContent",f),i.addVisual()},mceInsertRawHTML:function(e,t,n){N.setContent("tiny_mce_marker"),i.setContent(i.getContent().replace(/tiny_mce_marker/g,function(){return n}))},mceToggleFormat:function(e,t,n){x(n)},mceSetContent:function(e,t,n){i.setContent(n)},"Indent,Outdent":function(e){var t,n,r;t=R.indentation,n=/[a-z%]+$/i.exec(t),t=parseInt(t,10),v("InsertUnorderedList")||v("InsertOrderedList")?b(e):(R.forced_root_block||E.getParent(N.getNode(),E.isBlock)||S.apply("div"),s(N.getSelectedBlocks(),function(o){if("LI"!=o.nodeName){var a=i.getParam("indent_use_margin",!1)?"margin":"padding";a+="rtl"==E.getStyle(o,"direction",!0)?"Right":"Left","outdent"==e?(r=Math.max(0,parseInt(o.style[a]||0,10)-t),E.setStyle(o,a,r?r+n:"")):(r=parseInt(o.style[a]||0,10)+t+n,E.setStyle(o,a,r))}}))},mceRepaint:function(){if(f)try{w(!0),N.getSel()&&N.getSel().selectAllChildren(i.getBody()),N.collapse(!0),_()}catch(e){}},InsertHorizontalRule:function(){i.execCommand("mceInsertContent",!1,"<hr />")},mceToggleVisualAid:function(){i.hasVisual=!i.hasVisual,i.addVisual()},mceReplaceContent:function(e,t,n){i.execCommand("mceInsertContent",!1,n.replace(/\{\$selection\}/g,N.getContent({format:"text"})))},mceInsertLink:function(e,t,n){var i;"string"==typeof n&&(n={href:n}),i=E.getParent(N.getNode(),"a"),n.href=n.href.replace(" ","%20"),i&&n.href||S.remove("link"),n.href&&S.apply("link",n,i)},selectAll:function(){var e,t=E.getRoot();N.getRng().setStart?((e=E.createRng()).setStart(t,0),e.setEnd(t,t.childNodes.length),N.setRng(e)):(e=N.getRng()).item||(e.moveToElementText(t),e.select())},delete:function(){b("Delete");var e=i.getBody();E.isEmpty(e)&&(i.setContent(""),e.firstChild&&E.isBlock(e.firstChild)?i.selection.setCursorLocation(e.firstChild,0):i.selection.setCursorLocation(e,0))},mceNewDocument:function(){i.setContent("")},InsertLineBreak:function(e,t,n){var r,s,l,c=n,u=N.getRng(!0);new o(E).normalize(u);var d=u.startOffset,f=u.startContainer;if(1==f.nodeType&&f.hasChildNodes()){var m=d>f.childNodes.length-1;f=f.childNodes[Math.min(d,f.childNodes.length-1)]||f,d=m&&3==f.nodeType?f.nodeValue.length:0}var h=E.getParent(f,E.isBlock),g=h?h.nodeName.toUpperCase():"",v=h?E.getParent(h.parentNode,E.isBlock):null,y=v?v.nodeName.toUpperCase():"",b=c&&c.ctrlKey;"LI"!=y||b||(h=v,g=y),f&&3==f.nodeType&&d>=f.nodeValue.length&&(p||function(){for(var e,t=new a(f,h),n=i.schema.getNonEmptyElements();e=t.next();)if(n[e.nodeName.toLowerCase()]||e.length>0)return!0}()||(r=E.create("br"),u.insertNode(r),u.setStartAfter(r),u.setEndAfter(r),s=!0)),r=E.create("br"),u.insertNode(r);var C=E.doc.documentMode;return p&&"PRE"==g&&(!C||C<8)&&r.parentNode.insertBefore(E.doc.createTextNode("\r"),r),l=E.create("span",{}," "),r.parentNode.insertBefore(l,r),N.scrollIntoView(l),E.remove(l),s?(u.setStartBefore(r),u.setEndBefore(r)):(u.setStartAfter(r),u.setEndAfter(r)),N.setRng(u),i.undoManager.add(),!0}}),y({"JustifyLeft,JustifyCenter,JustifyRight,JustifyFull":function(e){var t="align"+e.substring(7),n=N.isCollapsed()?[E.getParent(N.getNode(),E.isBlock)]:N.getSelectedBlocks(),i=c(n,function(e){return!!S.matchNode(e,t)});return-1!==u(i,!0)},"Bold,Italic,Underline,Strikethrough,Superscript,Subscript":function(e){return C(e)},mceBlockQuote:function(){return C("blockquote")},Outdent:function(){var e;if(R.inline_styles){if((e=E.getParent(N.getStart(),E.isBlock))&&parseInt(e.style.paddingLeft,10)>0)return!0;if((e=E.getParent(N.getEnd(),E.isBlock))&&parseInt(e.style.paddingLeft,10)>0)return!0}return v("InsertUnorderedList")||v("InsertOrderedList")||!R.inline_styles&&!!E.getParent(N.getNode(),"BLOCKQUOTE")},"InsertUnorderedList,InsertOrderedList":function(e){var t=E.getParent(N.getNode(),"ul,ol");return t&&("insertunorderedlist"===e&&"UL"===t.tagName||"insertorderedlist"===e&&"OL"===t.tagName)}},"state"),y({"FontSize,FontName":function(e){var t,n=0;return(t=E.getParent(N.getNode(),"span"))&&(n="fontsize"==e?t.style.fontSize:t.style.fontFamily.replace(/, /g,",").replace(/[\'\"]/g,"").toLowerCase()),n}},"value"),y({Undo:function(){i.undoManager.undo()},Redo:function(){i.undoManager.redo()}})}}),i("tinymce/util/URI",["tinymce/util/Tools"],function(e){function t(e,o){var a,s,l=this;if(e=i(e),o=l.settings=o||{},a=o.base_uri,/^([\w\-]+):([^\/]{2})/i.test(e)||/^\s*#/.test(e))l.source=e;else{var c=0===e.indexOf("//");0!==e.indexOf("/")||c||(e=(a?a.protocol||"http":"http")+"://mce_host"+e),/^[\w\-]*:?\/\//.test(e)||(s=o.base_uri?o.base_uri.path:new t(location.href).directory,""===o.base_uri.protocol?e="//mce_host"+l.toAbsPath(s,e):(e=/([^#?]*)([#?]?.*)/.exec(e),e=(a&&a.protocol||"http")+"://mce_host"+l.toAbsPath(s,e[1])+e[2])),e=e.replace(/@@/g,"(mce_at)"),e=/^(?:(?![^:@]+:[^:@\/]*@)([^:\/?#.]+):)?(?:\/\/)?((?:(([^:@\/]*):?([^:@\/]*))?@)?([^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/.exec(e),n(r,function(t,n){var i=e[n];i&&(i=i.replace(/\(mce_at\)/g,"@@")),l[t]=i}),a&&(l.protocol||(l.protocol=a.protocol),l.userInfo||(l.userInfo=a.userInfo),l.port||"mce_host"!==l.host||(l.port=a.port),l.host&&"mce_host"!==l.host||(l.host=a.host),l.source=""),c&&(l.protocol="")}}var n=e.each,i=e.trim,r="source protocol authority userInfo user password host port relative path directory file query anchor".split(" "),o={ftp:21,http:80,https:443,mailto:25};return t.prototype={setPath:function(e){var t=this;e=/^(.*?)\/?(\w+)?$/.exec(e),t.path=e[0],t.directory=e[1],t.file=e[2],t.source="",t.getURI()},toRelative:function(e){var n,i=this;if("./"===e)return e;if("mce_host"!=(e=new t(e,{base_uri:i})).host&&i.host!=e.host&&e.host||i.port!=e.port||i.protocol!=e.protocol&&""!==e.protocol)return e.getURI();var r=i.getURI(),o=e.getURI();return r==o||"/"==r.charAt(r.length-1)&&r.substr(0,r.length-1)==o?r:(n=i.toRelPath(i.path,e.path),e.query&&(n+="?"+e.query),e.anchor&&(n+="#"+e.anchor),n)},toAbsolute:function(e,n){return(e=new t(e,{base_uri:this})).getURI(n&&this.isSameOrigin(e))},isSameOrigin:function(e){if(this.host==e.host&&this.protocol==e.protocol){if(this.port==e.port)return!0;var t=o[this.protocol];if(t&&(this.port||t)==(e.port||t))return!0}return!1},toRelPath:function(e,t){var n,i,r,o=0,a="";if(e=e.substring(0,e.lastIndexOf("/")),e=e.split("/"),n=t.split("/"),e.length>=n.length)for(i=0,r=e.length;i<r;i++)if(i>=n.length||e[i]!=n[i]){o=i+1;break}if(e.length<n.length)for(i=0,r=n.length;i<r;i++)if(i>=e.length||e[i]!=n[i]){o=i+1;break}if(1===o)return t;for(i=0,r=e.length-(o-1);i<r;i++)a+="../";for(i=o-1,r=n.length;i<r;i++)a+=i!=o-1?"/"+n[i]:n[i];return a},toAbsPath:function(e,t){var i,r,o,a=0,s=[];for(r=/\/$/.test(t)?"/":"",e=e.split("/"),t=t.split("/"),n(e,function(e){e&&s.push(e)}),e=s,i=t.length-1,s=[];i>=0;i--)0!==t[i].length&&"."!==t[i]&&(".."!==t[i]?a>0?a--:s.push(t[i]):a++);return i=e.length-a,0!==(o=i<=0?s.reverse().join("/"):e.slice(0,i).join("/")+"/"+s.reverse().join("/")).indexOf("/")&&(o="/"+o),r&&o.lastIndexOf("/")!==o.length-1&&(o+=r),o},getURI:function(e){var t,n=this;return n.source&&!e||(t="",e||(n.protocol?t+=n.protocol+"://":t+="//",n.userInfo&&(t+=n.userInfo+"@"),n.host&&(t+=n.host),n.port&&(t+=":"+n.port)),n.path&&(t+=n.path),n.query&&(t+="?"+n.query),n.anchor&&(t+="#"+n.anchor),n.source=t),n.source}},t}),i("tinymce/util/Class",["tinymce/util/Tools"],function(e){function t(){}var n,i,r=e.each,o=e.extend;return t.extend=n=function(e){function t(){var e,t,n,r=this;if(!i&&(r.init&&r.init.apply(r,arguments),t=r.Mixins))for(e=t.length;e--;)(n=t[e]).init&&n.init.apply(r,arguments)}function a(){return this}var s,l,c,u=this,d=u.prototype;i=!0,s=new u,i=!1,e.Mixins&&(r(e.Mixins,function(t){t=t;for(var n in t)"init"!==n&&(e[n]=t[n])}),d.Mixins&&(e.Mixins=d.Mixins.concat(e.Mixins))),e.Methods&&r(e.Methods.split(","),function(t){e[t]=a}),e.Properties&&r(e.Properties.split(","),function(t){var n="_"+t;e[t]=function(e){var t=this;return void 0!==e?(t[n]=e,t):t[n]}}),e.Statics&&r(e.Statics,function(e,n){t[n]=e}),e.Defaults&&d.Defaults&&(e.Defaults=o({},d.Defaults,e.Defaults));for(l in e)"function"==typeof(c=e[l])&&d[l]?s[l]=function(e,t){return function(){var n,i=this,r=i._super;return i._super=d[e],n=t.apply(i,arguments),i._super=r,n}}(l,c):s[l]=c;return t.prototype=s,t.constructor=t,t.extend=n,t},t}),i("tinymce/util/EventDispatcher",["tinymce/util/Tools"],function(e){function t(t){function n(){return!1}function i(){return!0}function r(t,i,r,o){var a,u,d;if(!1===i&&(i=n),i)for(i={func:i},o&&e.extend(i,o),d=(u=t.toLowerCase().split(" ")).length;d--;)t=u[d],(a=c[t])||(a=c[t]=[],s(t,!0)),r?a.unshift(i):a.push(i);return l}function o(e,t){var n,i,r,o,a;if(e)for(n=(o=e.toLowerCase().split(" ")).length;n--;){if(e=o[n],i=c[e],!e){for(r in c)s(r,!1),delete c[r];return l}if(i){if(t)for(a=i.length;a--;)i[a].func===t&&(i=i.slice(0,a).concat(i.slice(a+1)),c[e]=i);else i.length=0;i.length||(s(e,!1),delete c[e])}}else{for(e in c)s(e,!1);c={}}return l}var a,s,l=this,c={};a=(t=t||{}).scope||l,s=t.toggleEvent||n,l.fire=function(e,r){var s,l,u,d;if(e=e.toLowerCase(),r=r||{},r.type=e,r.target||(r.target=a),r.preventDefault||(r.preventDefault=function(){r.isDefaultPrevented=i},r.stopPropagation=function(){r.isPropagationStopped=i},r.stopImmediatePropagation=function(){r.isImmediatePropagationStopped=i},r.isDefaultPrevented=n,r.isPropagationStopped=n,r.isImmediatePropagationStopped=n),t.beforeFire&&t.beforeFire(r),s=c[e])for(l=0,u=s.length;l<u;l++){if((d=s[l]).once&&o(e,d.func),r.isImmediatePropagationStopped())return r.stopPropagation(),r;if(!1===d.func.call(a,r))return r.preventDefault(),r}return r},l.on=r,l.off=o,l.once=function(e,t,n){return r(e,t,n,{once:!0})},l.has=function(e){return e=e.toLowerCase(),!(!c[e]||0===c[e].length)}}var n=e.makeMap("focus blur focusin focusout click dblclick mousedown mouseup mousemove mouseover beforepaste paste cut copy selectionchange mouseout mouseenter mouseleave wheel keydown keypress keyup input contextmenu dragstart dragend dragover draggesture dragdrop drop drag submit compositionstart compositionend compositionupdate touchstart touchend"," ");return t.isNative=function(e){return!!n[e.toLowerCase()]},t}),i("tinymce/ui/Selector",["tinymce/util/Class"],function(e){function t(e){for(var t,n=[],i=e.length;i--;)(t=e[i]).__checked||(n.push(t),t.__checked=1);for(i=n.length;i--;)delete n[i].__checked;return n}var n,i=/^([\w\\*]+)?(?:#([\w\\]+))?(?:\.([\w\\\.]+))?(?:\[\@?([\w\\]+)([\^\$\*!~]?=)([\w\\]+)\])?(?:\:(.+))?/i,r=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^\[\]]*\]|['"][^'"]*['"]|[^\[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,o=/^\s*|\s*$/g,a=e.extend({init:function(e){function t(e){if(e)return e=e.toLowerCase(),function(t){return"*"===e||t.type===e}}function n(e){if(e)return function(t){return t._name===e}}function a(e){if(e)return e=e.split("."),function(t){for(var n=e.length;n--;)if(!t.hasClass(e[n]))return!1;return!0}}function s(e,t,n){if(e)return function(i){var r=i[e]?i[e]():"";return t?"="===t?r===n:"*="===t?r.indexOf(n)>=0:"~="===t?(" "+r+" ").indexOf(" "+n+" ")>=0:"!="===t?r!=n:"^="===t?0===r.indexOf(n):"$="===t&&r.substr(r.length-n.length)===n:!!n}}function l(e){var t;if(e)return(e=/(?:not\((.+)\))|(.+)/i.exec(e))[1]?(t=u(e[1],[]),function(e){return!d(e,t)}):(e=e[2],function(t,n,i){return"first"===e?0===n:"last"===e?n===i-1:"even"===e?n%2==0:"odd"===e?n%2==1:!!t[e]&&t[e]()})}function c(e,r,c){function u(e){e&&r.push(e)}var d;return d=i.exec(e.replace(o,"")),u(t(d[1])),u(n(d[2])),u(a(d[3])),u(s(d[4],d[5],d[6])),u(l(d[7])),r.psuedo=!!d[7],r.direct=c,r}function u(e,t){var n,i,o,a=[];do{if(r.exec(""),(i=r.exec(e))&&(e=i[3],a.push(i[1]),i[2])){n=i[3];break}}while(i);for(n&&u(n,t),e=[],o=0;o<a.length;o++)">"!=a[o]&&e.push(c(a[o],[],">"===a[o-1]));return t.push(e),t}var d=this.match;this._selectors=u(e,[])},match:function(e,t){var n,i,r,o,a,s,l,c,u,d,f,m,p;for(n=0,i=(t=t||this._selectors).length;n<i;n++){for(p=e,m=0,r=(o=(a=t[n]).length)-1;r>=0;r--)for(c=a[r];p;){if(c.psuedo)for(u=d=(f=p.parent().items()).length;u--&&f[u]!==p;);for(s=0,l=c.length;s<l;s++)if(!c[s](p,u,d)){s=l+1;break}if(s===l){m++;break}if(r===o-1)break;p=p.parent()}if(m===o)return!0}return!1},find:function(e){function i(e,t,n){var r,o,a,l,c,u=t[n];for(r=0,o=e.length;r<o;r++){for(c=e[r],a=0,l=u.length;a<l;a++)if(!u[a](c,r,o)){a=l+1;break}if(a===l)n==t.length-1?s.push(c):c.items&&i(c.items(),t,n+1);else if(u.direct)return;c.items&&i(c.items(),t,n)}}var r,o,s=[],l=this._selectors;if(e.items){for(r=0,o=l.length;r<o;r++)i(e.items(),l[r],0);o>1&&(s=t(s))}return n||(n=a.Collection),new n(s)}});return a}),i("tinymce/ui/Collection",["tinymce/util/Tools","tinymce/ui/Selector","tinymce/util/Class"],function(e,t,n){var i,r,o=Array.prototype.push,a=Array.prototype.slice;return r={length:0,init:function(e){e&&this.add(e)},add:function(t){var n=this;return e.isArray(t)?o.apply(n,t):t instanceof i?n.add(t.toArray()):o.call(n,t),n},set:function(e){var t,n=this,i=n.length;for(n.length=0,n.add(e),t=n.length;t<i;t++)delete n[t];return n},filter:function(e){var n,r,o,a,s=this,l=[];for("string"==typeof e?(e=new t(e),a=function(t){return e.match(t)}):a=e,n=0,r=s.length;n<r;n++)a(o=s[n])&&l.push(o);return new i(l)},slice:function(){return new i(a.apply(this,arguments))},eq:function(e){return-1===e?this.slice(e):this.slice(e,+e+1)},each:function(t){return e.each(this,t),this},toArray:function(){return e.toArray(this)},indexOf:function(e){for(var t=this,n=t.length;n--&&t[n]!==e;);return n},reverse:function(){return new i(e.toArray(this).reverse())},hasClass:function(e){return!!this[0]&&this[0].hasClass(e)},prop:function(e,t){var n,i=this;return void 0!==t?(i.each(function(n){n[e]&&n[e](t)}),i):(n=i[0])&&n[e]?n[e]():void 0},exec:function(t){var n=this,i=e.toArray(arguments).slice(1);return n.each(function(e){e[t]&&e[t].apply(e,i)}),n},remove:function(){for(var e=this.length;e--;)this[e].remove();return this}},e.each("fire on off show hide addClass removeClass append prepend before after reflow".split(" "),function(t){r[t]=function(){var n=e.toArray(arguments);return this.each(function(e){t in e&&e[t].apply(e,n)}),this}}),e.each("text name disabled active selected checked visible parent value data".split(" "),function(e){r[e]=function(t){return this.prop(e,t)}}),i=n.extend(r),t.Collection=i,i}),i("tinymce/ui/DomUtils",["tinymce/util/Tools","tinymce/dom/DOMUtils"],function(e,t){var n=0;return{id:function(){return"mceu_"+n++},createFragment:function(e){return t.DOM.createFragment(e)},getWindowSize:function(){return t.DOM.getViewPort()},getSize:function(e){var t,n;if(e.getBoundingClientRect){var i=e.getBoundingClientRect();t=Math.max(i.width||i.right-i.left,e.offsetWidth),n=Math.max(i.height||i.bottom-i.bottom,e.offsetHeight)}else t=e.offsetWidth,n=e.offsetHeight;return{width:t,height:n}},getPos:function(e,n){return t.DOM.getPos(e,n)},getViewPort:function(e){return t.DOM.getViewPort(e)},get:function(e){return document.getElementById(e)},addClass:function(e,n){return t.DOM.addClass(e,n)},removeClass:function(e,n){return t.DOM.removeClass(e,n)},hasClass:function(e,n){return t.DOM.hasClass(e,n)},toggleClass:function(e,n,i){return t.DOM.toggleClass(e,n,i)},css:function(e,n,i){return t.DOM.setStyle(e,n,i)},getRuntimeStyle:function(e,n){return t.DOM.getStyle(e,n,!0)},on:function(e,n,i,r){return t.DOM.bind(e,n,i,r)},off:function(e,n,i){return t.DOM.unbind(e,n,i)},fire:function(e,n,i){return t.DOM.fire(e,n,i)},innerHtml:function(e,n){t.DOM.setHTML(e,n)}}}),i("tinymce/ui/Control",["tinymce/util/Class","tinymce/util/Tools","tinymce/util/EventDispatcher","tinymce/ui/Collection","tinymce/ui/DomUtils"],function(e,t,n,i,r){function o(e){return e._eventDispatcher||(e._eventDispatcher=new n({scope:e,toggleEvent:function(t,i){i&&n.isNative(t)&&(e._nativeEvents||(e._nativeEvents={}),e._nativeEvents[t]=!0,e._rendered&&e.bindPendingEvents())}})),e._eventDispatcher}var a="onmousewheel"in document,s=e.extend({Statics:{classPrefix:"mce-"},isRtl:function(){return s.rtl},classPrefix:"mce-",init:function(e){var n,i,o=this;if(o.settings=e=t.extend({},o.Defaults,e),o._id=e.id||r.id(),o._text=o._name="",o._width=o._height=0,o._aria={role:e.role},this._elmCache={},n=e.classes)for((n=n.split(" ")).map={},i=n.length;i--;)n.map[n[i]]=!0;o._classes=n||[],o.visible(!0),t.each("title text width height name classes visible disabled active value".split(" "),function(t){var n=e[t];void 0!==n?o[t](n):void 0===o["_"+t]&&(o["_"+t]=!1)}),o.on("click",function(){if(o.disabled())return!1}),e.classes&&t.each(e.classes.split(" "),function(e){o.addClass(e)}),o.settings=e,o._borderBox=o.parseBox(e.border),o._paddingBox=o.parseBox(e.padding),o._marginBox=o.parseBox(e.margin),e.hidden&&o.hide()},Properties:"parent,title,text,width,height,disabled,active,name,value",Methods:"renderHtml",getContainerElm:function(){return document.body},getParentCtrl:function(e){for(var t,n=this.getRoot().controlIdLookup;e&&n&&!(t=n[e.id]);)e=e.parentNode;return t},parseBox:function(e){var t;if(e)return"number"==typeof e?(e=e||0,{top:e,left:e,bottom:e,right:e}):(e=e.split(" "),1===(t=e.length)?e[1]=e[2]=e[3]=e[0]:2===t?(e[2]=e[0],e[3]=e[1]):3===t&&(e[3]=e[1]),{top:parseInt(e[0],10)||0,right:parseInt(e[1],10)||0,bottom:parseInt(e[2],10)||0,left:parseInt(e[3],10)||0})},borderBox:function(){return this._borderBox},paddingBox:function(){return this._paddingBox},marginBox:function(){return this._marginBox},measureBox:function(e,t){function n(t){var n=document.defaultView;return n?(t=t.replace(/[A-Z]/g,function(e){return"-"+e}),n.getComputedStyle(e,null).getPropertyValue(t)):e.currentStyle[t]}function i(e){var t=parseFloat(n(e),10);return isNaN(t)?0:t}return{top:i(t+"TopWidth"),right:i(t+"RightWidth"),bottom:i(t+"BottomWidth"),left:i(t+"LeftWidth")}},initLayoutRect:function(){var e,t,n,i,o,a,s,l,c,u,d=this,f=d.settings,m=d.getEl();e=d._borderBox=d._borderBox||d.measureBox(m,"border"),d._paddingBox=d._paddingBox||d.measureBox(m,"padding"),d._marginBox=d._marginBox||d.measureBox(m,"margin"),u=r.getSize(m),l=f.minWidth,c=f.minHeight,o=l||u.width,a=c||u.height,n=f.width,i=f.height,s=void 0!==(s=f.autoResize)?s:!n&&!i,n=n||o,i=i||a;var p=e.left+e.right,h=e.top+e.bottom,g=f.maxWidth||65535,v=f.maxHeight||65535;return d._layoutRect=t={x:f.x||0,y:f.y||0,w:n,h:i,deltaW:p,deltaH:h,contentW:n-p,contentH:i-h,innerW:n-p,innerH:i-h,startMinWidth:l||0,startMinHeight:c||0,minW:Math.min(o,g),minH:Math.min(a,v),maxW:g,maxH:v,autoResize:s,scrollW:0},d._lastLayoutRect={},t},layoutRect:function(e){var t,n,i,r,o,a=this,l=a._layoutRect;return l||(l=a.initLayoutRect()),e?(i=l.deltaW,r=l.deltaH,void 0!==e.x&&(l.x=e.x),void 0!==e.y&&(l.y=e.y),void 0!==e.minW&&(l.minW=e.minW),void 0!==e.minH&&(l.minH=e.minH),void 0!==(n=e.w)&&(n=(n=n<l.minW?l.minW:n)>l.maxW?l.maxW:n,l.w=n,l.innerW=n-i),void 0!==(n=e.h)&&(n=(n=n<l.minH?l.minH:n)>l.maxH?l.maxH:n,l.h=n,l.innerH=n-r),void 0!==(n=e.innerW)&&(n=(n=n<l.minW-i?l.minW-i:n)>l.maxW-i?l.maxW-i:n,l.innerW=n,l.w=n+i),void 0!==(n=e.innerH)&&(n=(n=n<l.minH-r?l.minH-r:n)>l.maxH-r?l.maxH-r:n,l.innerH=n,l.h=n+r),void 0!==e.contentW&&(l.contentW=e.contentW),void 0!==e.contentH&&(l.contentH=e.contentH),(t=a._lastLayoutRect).x===l.x&&t.y===l.y&&t.w===l.w&&t.h===l.h||((o=s.repaintControls)&&o.map&&!o.map[a._id]&&(o.push(a),o.map[a._id]=!0),t.x=l.x,t.y=l.y,t.w=l.w,t.h=l.h),a):l},repaint:function(){var e,t,n,i,r,o,a=this,s=0,l=0;o=document.createRange?function(e){return e}:Math.round,e=a.getEl().style,n=a._layoutRect,r=a._lastRepaintRect||{},s=(i=a._borderBox).left+i.right,l=i.top+i.bottom,n.x!==r.x&&(e.left=o(n.x)+"px",r.x=n.x),n.y!==r.y&&(e.top=o(n.y)+"px",r.y=n.y),n.w!==r.w&&(e.width=o(n.w-s)+"px",r.w=n.w),n.h!==r.h&&(e.height=o(n.h-l)+"px",r.h=n.h),a._hasBody&&n.innerW!==r.innerW&&((t=a.getEl("body").style).width=o(n.innerW)+"px",r.innerW=n.innerW),a._hasBody&&n.innerH!==r.innerH&&((t=t||a.getEl("body").style).height=o(n.innerH)+"px",r.innerH=n.innerH),a._lastRepaintRect=r,a.fire("repaint",{},!1)},on:function(e,t){var n=this;return o(n).on(e,function(e){var t,i;return"string"!=typeof e?e:function(r){return t||n.parentsAndSelf().each(function(n){var r=n.settings.callbacks;if(r&&(t=r[e]))return i=n,!1}),t.call(i,r)}}(t)),n},off:function(e,t){return o(this).off(e,t),this},fire:function(e,t,n){var i=this;if((t=t||{}).control||(t.control=i),t=o(i).fire(e,t),!1!==n&&i.parent)for(var r=i.parent();r&&!t.isPropagationStopped();)r.fire(e,t,!1),r=r.parent();return t},hasEventListeners:function(e){return o(this).has(e)},parents:function(e){var t,n=this,r=new i;for(t=n.parent();t;t=t.parent())r.add(t);return e&&(r=r.filter(e)),r},parentsAndSelf:function(e){return new i(this).add(this.parents(e))},next:function(){var e=this.parent().items();return e[e.indexOf(this)+1]},prev:function(){var e=this.parent().items();return e[e.indexOf(this)-1]},findCommonAncestor:function(e,t){for(var n;e;){for(n=t;n&&e!=n;)n=n.parent();if(e==n)break;e=e.parent()}return e},hasClass:function(e,t){var n=this._classes[t||"control"];return e=this.classPrefix+e,n&&!!n.map[e]},addClass:function(e,t){var n,i,r=this;return e=this.classPrefix+e,(n=r._classes[t||"control"])||((n=[]).map={},r._classes[t||"control"]=n),n.map[e]||(n.map[e]=e,n.push(e),r._rendered&&(i=r.getEl(t))&&(i.className=n.join(" "))),r},removeClass:function(e,t){var n,i,r,o=this;if(e=this.classPrefix+e,(n=o._classes[t||"control"])&&n.map[e])for(delete n.map[e],i=n.length;i--;)n[i]===e&&n.splice(i,1);return o._rendered&&(r=o.getEl(t))&&(r.className=n.join(" ")),o},toggleClass:function(e,t,n){var i=this;return t?i.addClass(e,n):i.removeClass(e,n),i},classes:function(e){var t=this._classes[e||"control"];return t?t.join(" "):""},innerHtml:function(e){return r.innerHtml(this.getEl(),e),this},getEl:function(e){var t=e?this._id+"-"+e:this._id;return this._elmCache[t]||(this._elmCache[t]=r.get(t)),this._elmCache[t]},visible:function(e){var t,n=this;return void 0!==e?(n._visible!==e&&(n._rendered&&(n.getEl().style.display=e?"":"none"),n._visible=e,(t=n.parent())&&(t._lastRect=null),n.fire(e?"show":"hide")),n):n._visible},show:function(){return this.visible(!0)},hide:function(){return this.visible(!1)},focus:function(){try{this.getEl().focus()}catch(e){}return this},blur:function(){return this.getEl().blur(),this},aria:function(e,t){var n=this,i=n.getEl(n.ariaTarget);return void 0===t?n._aria[e]:(n._aria[e]=t,n._rendered&&i.setAttribute("role"==e?e:"aria-"+e,t),n)},encode:function(e,t){return!1!==t&&(e=this.translate(e)),(e||"").replace(/[&<>"]/g,function(e){return"&#"+e.charCodeAt(0)+";"})},translate:function(e){return s.translate?s.translate(e):e},before:function(e){var t=this,n=t.parent();return n&&n.insert(e,n.items().indexOf(t),!0),t},after:function(e){var t=this,n=t.parent();return n&&n.insert(e,n.items().indexOf(t)),t},remove:function(){var e,t,n=this,i=n.getEl(),o=n.parent();if(n.items){var a=n.items().toArray();for(t=a.length;t--;)a[t].remove()}o&&o.items&&(e=[],o.items().each(function(t){t!==n&&e.push(t)}),o.items().set(e),o._lastRect=null),n._eventsRoot&&n._eventsRoot==n&&r.off(i);var s=n.getRoot().controlIdLookup;return s&&delete s[n._id],i&&i.parentNode&&i.parentNode.removeChild(i),n._rendered=!1,n},renderBefore:function(e){var t=this;return e.parentNode.insertBefore(r.createFragment(t.renderHtml()),e),t.postRender(),t},renderTo:function(e){var t=this;return(e=e||t.getContainerElm()).appendChild(r.createFragment(t.renderHtml())),t.postRender(),t},postRender:function(){var e,t,n,i,o,a=this,s=a.settings;for(i in s)0===i.indexOf("on")&&a.on(i.substr(2),s[i]);if(a._eventsRoot){for(n=a.parent();!o&&n;n=n.parent())o=n._eventsRoot;if(o)for(i in o._nativeEvents)a._nativeEvents[i]=!0}a.bindPendingEvents(),s.style&&(e=a.getEl())&&(e.setAttribute("style",s.style),e.style.cssText=s.style),a._visible||r.css(a.getEl(),"display","none"),a.settings.border&&(t=a.borderBox(),r.css(a.getEl(),{"border-top-width":t.top,"border-right-width":t.right,"border-bottom-width":t.bottom,"border-left-width":t.left}));var l=a.getRoot();l.controlIdLookup||(l.controlIdLookup={}),l.controlIdLookup[a._id]=a;for(var c in a._aria)a.aria(c,a._aria[c]);a.fire("postrender",{},!1)},scrollIntoView:function(e){var t,n,i,r,o,a,s=this.getEl(),l=s.parentNode,c=function(e,t){var n,i,r=e;for(n=i=0;r&&r!=t&&r.nodeType;)n+=r.offsetLeft||0,i+=r.offsetTop||0,r=r.offsetParent;return{x:n,y:i}}(s,l);return t=c.x,n=c.y,i=s.offsetWidth,r=s.offsetHeight,o=l.clientWidth,a=l.clientHeight,"end"==e?(t-=o-i,n-=a-r):"center"==e&&(t-=o/2-i/2,n-=a/2-r/2),l.scrollLeft=t,l.scrollTop=n,this},bindPendingEvents:function(){function e(e){e.preventDefault(),"mousewheel"==e.type?(e.deltaY=-.025*e.wheelDelta,e.wheelDeltaX&&(e.deltaX=-.025*e.wheelDeltaX)):(e.deltaX=0,e.deltaY=e.detail),e=c.fire("wheel",e)}var t,n,i,o,s,l,c=this;if(c._rendered=!0,s=c._nativeEvents){for((i=c.parents().toArray()).unshift(c),t=0,n=i.length;!o&&t<n;t++)o=i[t]._eventsRoot;for(o||(o=i[i.length-1]||c),c._eventsRoot=o,n=t,t=0;t<n;t++)i[t]._eventsRoot=o;var u=o._delegates;u||(u=o._delegates={});for(l in s){if(!s)return!1;"wheel"!==l?("mouseenter"===l||"mouseleave"===l?o._hasMouseEnter||(r.on(o.getEl(),"mouseleave",function(){var e=o._lastHoverCtrl;e&&(e.fire("mouseleave",{target:e.getEl()}),e.parents().each(function(e){e.fire("mouseleave",{target:e.getEl()})}),o._lastHoverCtrl=null)}),r.on(o.getEl(),"mouseover",function(e){var t,n,i,r=c.getParentCtrl(e.target),a=o._lastHoverCtrl,s=0;if(r!==a){if(o._lastHoverCtrl=r,(n=r.parents().toArray().reverse()).push(r),a){for((i=a.parents().toArray().reverse()).push(a),s=0;s<i.length&&n[s]===i[s];s++);for(t=i.length-1;t>=s;t--)(a=i[t]).fire("mouseleave",{target:a.getEl()})}for(t=s;t<n.length;t++)(r=n[t]).fire("mouseenter",{target:r.getEl()})}}),o._hasMouseEnter=1):u[l]||(r.on(o.getEl(),l,function(e){var t=c.getParentCtrl(e.target);t&&t.fire(e.type,e)}),u[l]=!0),s[l]=!1):a?r.on(c.getEl(),"mousewheel",e):r.on(c.getEl(),"DOMMouseScroll",e)}}},getRoot:function(){for(var e,t=this,n=[];t;){if(t.rootControl){e=t.rootControl;break}n.push(t),e=t,t=t.parent()}e||(e=this);for(var i=n.length;i--;)n[i].rootControl=e;return e},reflow:function(){return this.repaint(),this}});return s}),i("tinymce/ui/Factory",[],function(){var e,t={};return{add:function(e,n){t[e.toLowerCase()]=n},has:function(e){return!!t[e.toLowerCase()]},create:function(n,i){var r,o,a;if(!e){a=tinymce.ui;for(o in a)t[o.toLowerCase()]=a[o];e=!0}if("string"==typeof n?(i=i||{}).type=n:n=(i=n).type,n=n.toLowerCase(),!(r=t[n]))throw new Error("Could not find control by type: "+n);return r=new r(i),r.type=n,r}}}),i("tinymce/ui/KeyboardNavigation",[],function(){return function(e){function t(e){return(e=e||v)&&e.getAttribute("role")}function n(e){for(var n,i=e||v;i=i.parentNode;)if(n=t(i))return n}function i(e){var t=v;if(t)return t.getAttribute("aria-"+e)}function r(e){var t=e.tagName.toUpperCase();return"INPUT"==t||"TEXTAREA"==t}function o(e){return!(!r(e)||e.hidden)||!!/^(button|menuitem|checkbox|tab|menuitemcheckbox|option|gridcell)$/.test(t(e))}function a(e){function t(e){if(1==e.nodeType&&"none"!=e.style.display){o(e)&&n.push(e);for(var i=0;i<e.childNodes.length;i++)t(e.childNodes[i])}}var n=[];return t(e||b.getEl()),n}function s(e){var t,n;(n=(e=e||y).parents().toArray()).unshift(e);for(var i=0;i<n.length&&!(t=n[i]).settings.ariaRoot;i++);return t}function l(e,t){return e<0?e=t.length-1:e>=t.length&&(e=0),t[e]&&t[e].focus(),e}function c(e,t){var n=-1,i=s();t=t||a(i.getEl());for(var r=0;r<t.length;r++)t[r]===v&&(n=r);n+=e,i.lastAriaIndex=l(n,t)}function u(){"tablist"==n()?c(-1,a(v.parentNode)):y.parent().submenu?h():c(-1)}function d(){var e=t(),r=n();"tablist"==r?c(1,a(v.parentNode)):"menuitem"==e&&"menu"==r&&i("haspopup")?g():c(1)}function f(){c(-1)}function m(){var e=t(),r=n();"menuitem"==e&&"menubar"==r?g():"button"==e&&i("haspopup")?g({key:"down"}):c(1)}function p(e){if("tablist"==n()){var t=a(y.getEl("body"))[0];t&&t.focus()}else c(e.shiftKey?-1:1)}function h(){y.fire("cancel")}function g(e){e=e||{},y.fire("click",{target:v,aria:e})}var v,y,b=e.root;try{v=document.activeElement}catch(e){v=document.body}return y=b.getParentCtrl(v),b.on("keydown",function(e){function t(e,t){r(v)||!1!==t(e)&&e.preventDefault()}if(!e.isDefaultPrevented())switch(e.keyCode){case 37:t(e,u);break;case 39:t(e,d);break;case 38:t(e,f);break;case 40:t(e,m);break;case 27:h();break;case 14:case 13:case 32:t(e,g);break;case 9:!1!==p(e)&&e.preventDefault()}}),b.on("focusin",function(e){v=e.target,y=e.control}),{focusFirst:function(e){var t=s(e),n=a(t.getEl());t.settings.ariaRemember&&"lastAriaIndex"in t?l(t.lastAriaIndex,n):l(0,n)}}}}),i("tinymce/ui/Container",["tinymce/ui/Control","tinymce/ui/Collection","tinymce/ui/Selector","tinymce/ui/Factory","tinymce/ui/KeyboardNavigation","tinymce/util/Tools","tinymce/ui/DomUtils"],function(e,t,n,i,r,o,a){var s={};return e.extend({layout:"",innerClass:"container-inner",init:function(e){var n=this;n._super(e),e=n.settings,n._fixed=e.fixed,n._items=new t,n.isRtl()&&n.addClass("rtl"),n.addClass("container"),n.addClass("container-body","body"),e.containerCls&&n.addClass(e.containerCls),n._layout=i.create((e.layout||n.layout)+"layout"),n.settings.items&&n.add(n.settings.items),n._hasBody=!0},items:function(){return this._items},find:function(e){return(e=s[e]=s[e]||new n(e)).find(this)},add:function(e){var t=this;return t.items().add(t.create(e)).parent(t),t},focus:function(e){var t,n,i,r=this;{if(!e||!(n=r.keyboardNav||r.parents().eq(-1)[0].keyboardNav))return i=r.find("*"),r.statusbar&&i.add(r.statusbar.items()),i.each(function(e){if(e.settings.autofocus)return t=null,!1;e.canFocus&&(t=t||e)}),t&&t.focus(),r;n.focusFirst(r)}},replace:function(e,t){for(var n,i=this.items(),r=i.length;r--;)if(i[r]===e){i[r]=t;break}r>=0&&((n=t.getEl())&&n.parentNode.removeChild(n),(n=e.getEl())&&n.parentNode.removeChild(n)),t.parent(this)},create:function(t){var n,r=this,a=[];return o.isArray(t)||(t=[t]),o.each(t,function(t){t&&(t instanceof e||("string"==typeof t&&(t={type:t}),n=o.extend({},r.settings.defaults,t),t.type=n.type=n.type||t.type||r.settings.defaultType||(n.defaults?n.defaults.type:null),t=i.create(n)),a.push(t))}),a},renderNew:function(){var e=this;return e.items().each(function(t,n){var i,r;t.parent(e),t._rendered||(i=e.getEl("body"),r=a.createFragment(t.renderHtml()),i.hasChildNodes()&&n<=i.childNodes.length-1?i.insertBefore(r,i.childNodes[n]):i.appendChild(r),t.postRender())}),e._layout.applyClasses(e),e._lastRect=null,e},append:function(e){return this.add(e).renderNew()},prepend:function(e){var t=this;return t.items().set(t.create(e).concat(t.items().toArray())),t.renderNew()},insert:function(e,t,n){var i,r,o,a=this;return e=a.create(e),i=a.items(),!n&&t<i.length-1&&(t+=1),t>=0&&t<i.length&&(r=i.slice(0,t).toArray(),o=i.slice(t).toArray(),i.set(r.concat(e,o))),a.renderNew()},fromJSON:function(e){var t=this;for(var n in e)t.find("#"+n).value(e[n]);return t},toJSON:function(){var e={};return this.find("*").each(function(t){var n=t.name(),i=t.value();n&&void 0!==i&&(e[n]=i)}),e},preRender:function(){},renderHtml:function(){var e=this,t=e._layout,n=this.settings.role;return e.preRender(),t.preRender(e),'<div id="'+e._id+'" class="'+e.classes()+'"'+(n?' role="'+this.settings.role+'"':"")+'><div id="'+e._id+'-body" class="'+e.classes("body")+'">'+(e.settings.html||"")+t.renderHtml(e)+"</div></div>"},postRender:function(){var e,t=this;return t.items().exec("postRender"),t._super(),t._layout.postRender(t),t._rendered=!0,t.settings.style&&a.css(t.getEl(),t.settings.style),t.settings.border&&(e=t.borderBox(),a.css(t.getEl(),{"border-top-width":e.top,"border-right-width":e.right,"border-bottom-width":e.bottom,"border-left-width":e.left})),t.parent()||(t.keyboardNav=new r({root:t})),t},initLayoutRect:function(){var e=this,t=e._super();return e._layout.recalc(e),t},recalc:function(){var e=this,t=e._layoutRect,n=e._lastRect;if(!n||n.w!=t.w||n.h!=t.h)return e._layout.recalc(e),t=e.layoutRect(),e._lastRect={x:t.x,y:t.y,w:t.w,h:t.h},!0},reflow:function(){var t;if(this.visible()){for(e.repaintControls=[],e.repaintControls.map={},this.recalc(),t=e.repaintControls.length;t--;)e.repaintControls[t].repaint();"flow"!==this.settings.layout&&"stack"!==this.settings.layout&&this.repaint(),e.repaintControls=[]}return this}})}),i("tinymce/ui/DragHelper",["tinymce/ui/DomUtils"],function(e){function t(){var e,t,n,i,r,o,a,s,l=document,c=Math.max;return e=l.documentElement,t=l.body,n=c(e.scrollWidth,t.scrollWidth),i=c(e.clientWidth,t.clientWidth),r=c(e.offsetWidth,t.offsetWidth),o=c(e.scrollHeight,t.scrollHeight),a=c(e.clientHeight,t.clientHeight),s=c(e.offsetHeight,t.offsetHeight),{width:n<r?i:n,height:o<s?a:o}}return function(n,i){function r(){return f.getElementById(i.handle||n)}var o,a,s,l,c,u,d,f=document;i=i||{},s=function(n){var s,m,p=t();n.preventDefault(),a=n.button,s=r(),u=n.screenX,d=n.screenY,m=window.getComputedStyle?window.getComputedStyle(s,null).getPropertyValue("cursor"):s.runtimeStyle.cursor,o=f.createElement("div"),e.css(o,{position:"absolute",top:0,left:0,width:p.width,height:p.height,zIndex:2147483647,opacity:1e-4,cursor:m}),f.body.appendChild(o),e.on(f,"mousemove",c),e.on(f,"mouseup",l),i.start(n)},c=function(e){if(e.button!==a)return l(e);e.deltaX=e.screenX-u,e.deltaY=e.screenY-d,e.preventDefault(),i.drag(e)},l=function(t){e.off(f,"mousemove",c),e.off(f,"mouseup",l),o.parentNode.removeChild(o),i.stop&&i.stop(t)},this.destroy=function(){e.off(r())},e.on(r(),"mousedown",s)}}),i("tinymce/ui/Scrollable",["tinymce/ui/DomUtils","tinymce/ui/DragHelper"],function(e,t){return{init:function(){var e=this;e.on("repaint",e.renderScroll)},renderScroll:function(){function n(){function t(t,a,s,l,c,u){var d,f,m,p,h,g,v,y;if(f=i.getEl("scroll"+t)){if(v=a.toLowerCase(),y=s.toLowerCase(),i.getEl("absend")&&e.css(i.getEl("absend"),v,i.layoutRect()[l]-1),!c)return void e.css(f,"display","none");e.css(f,"display","block"),d=i.getEl("body"),m=i.getEl("scroll"+t+"t"),p=d["client"+s]-2*r,h=(p-=n&&o?f["client"+u]:0)/d["scroll"+s],(g={})[v]=d["offset"+a]+r,g[y]=p,e.css(f,g),(g={})[v]=d["scroll"+a]*h,g[y]=p*h,e.css(m,g)}}var n,o,a;a=i.getEl("body"),n=a.scrollWidth>a.clientWidth,o=a.scrollHeight>a.clientHeight,t("h","Left","Width","contentW",n,"Height"),t("v","Top","Height","contentH",o,"Width")}var i=this,r=2;i.settings.autoScroll&&(i._hasScroll||(i._hasScroll=!0,function(){function n(n,o,a,s,l){var c,u=i._id+"-scroll"+n,d=i.classPrefix;i.getEl().appendChild(e.createFragment('<div id="'+u+'" class="'+d+"scrollbar "+d+"scrollbar-"+n+'"><div id="'+u+'t" class="'+d+'scrollbar-thumb"></div></div>')),i.draghelper=new t(u+"t",{start:function(){c=i.getEl("body")["scroll"+o],e.addClass(e.get(u),d+"active")},drag:function(e){var t,u,d,f,m=i.layoutRect();u=m.contentW>m.innerW,d=m.contentH>m.innerH,f=i.getEl("body")["client"+a]-2*r,t=(f-=u&&d?i.getEl("scroll"+n)["client"+l]:0)/i.getEl("body")["scroll"+a],i.getEl("body")["scroll"+o]=c+e["delta"+s]/t},stop:function(){e.removeClass(e.get(u),d+"active")}})}i.addClass("scroll"),n("v","Top","Height","Y","Width"),n("h","Left","Width","X","Height")}(),i.on("wheel",function(e){var t=i.getEl("body");t.scrollLeft+=10*(e.deltaX||0),t.scrollTop+=10*e.deltaY,n()}),e.on(i.getEl("body"),"scroll",n)),n())}}}),i("tinymce/ui/Panel",["tinymce/ui/Container","tinymce/ui/Scrollable"],function(e,t){return e.extend({Defaults:{layout:"fit",containerCls:"panel"},Mixins:[t],renderHtml:function(){var e=this,t=e._layout,n=e.settings.html;return e.preRender(),t.preRender(e),void 0===n?n='<div id="'+e._id+'-body" class="'+e.classes("body")+'">'+t.renderHtml(e)+"</div>":("function"==typeof n&&(n=n.call(e)),e._hasBody=!1),'<div id="'+e._id+'" class="'+e.classes()+'" hidefocus="1" tabindex="-1" role="group">'+(e._preBodyHtml||"")+n+"</div>"}})}),i("tinymce/ui/Movable",["tinymce/ui/DomUtils"],function(e){function t(t,n,i){var r,o,a,s,l,c,u,d,f,m;return f=e.getViewPort(),o=e.getPos(n),a=o.x,s=o.y,t._fixed&&"static"==e.getRuntimeStyle(document.body,"position")&&(a-=f.x,s-=f.y),r=t.getEl(),m=e.getSize(r),l=m.width,c=m.height,m=e.getSize(n),u=m.width,d=m.height,"b"===(i=(i||"").split(""))[0]&&(s+=d),"r"===i[1]&&(a+=u),"c"===i[0]&&(s+=Math.round(d/2)),"c"===i[1]&&(a+=Math.round(u/2)),"b"===i[3]&&(s-=c),"r"===i[4]&&(a-=l),"c"===i[3]&&(s-=Math.round(c/2)),"c"===i[4]&&(a-=Math.round(l/2)),{x:a,y:s,w:l,h:c}}return{testMoveRel:function(n,i){for(var r=e.getViewPort(),o=0;o<i.length;o++){var a=t(this,n,i[o]);if(this._fixed){if(a.x>0&&a.x+a.w<r.w&&a.y>0&&a.y+a.h<r.h)return i[o]}else if(a.x>r.x&&a.x+a.w<r.w+r.x&&a.y>r.y&&a.y+a.h<r.h+r.y)return i[o]}return i[0]},moveRel:function(e,n){"string"!=typeof n&&(n=this.testMoveRel(e,n));var i=t(this,e,n);return this.moveTo(i.x,i.y)},moveBy:function(e,t){var n=this,i=n.layoutRect();return n.moveTo(i.x+e,i.y+t),n},moveTo:function(t,n){function i(e,t,n){return e<0?0:e+n>t&&(e=t-n)<0?0:e}var r=this;if(r.settings.constrainToViewport){var o=e.getViewPort(window),a=r.layoutRect();t=i(t,o.w+o.x,a.w),n=i(n,o.h+o.y,a.h)}return r._rendered?r.layoutRect({x:t,y:n}).repaint():(r.settings.x=t,r.settings.y=n),r.fire("move",{x:t,y:n}),r}}}),i("tinymce/ui/Resizable",["tinymce/ui/DomUtils"],function(e){return{resizeToContent:function(){this._layoutRect.autoResize=!0,this._lastRect=null,this.reflow()},resizeTo:function(t,n){if(t<=1||n<=1){var i=e.getWindowSize();t=t<=1?t*i.w:t,n=n<=1?n*i.h:n}return this._layoutRect.autoResize=!1,this.layoutRect({minW:t,minH:n,w:t,h:n}).reflow()},resizeBy:function(e,t){var n=this,i=n.layoutRect();return n.resizeTo(i.w+e,i.h+t)}}}),i("tinymce/ui/FloatPanel",["tinymce/ui/Panel","tinymce/ui/Movable","tinymce/ui/Resizable","tinymce/ui/DomUtils"],function(e,t,n,i){function r(){function e(e,t){for(;e;){if(e==t)return!0;e=e.parent()}}u||(u=function(t){if(2!=t.button)for(var n=p.length;n--;){var i=p[n],r=i.getParentCtrl(t.target);if(i.settings.autohide){if(r&&(e(r,i)||i.parent()===r))continue;(t=i.fire("autohide",{target:t.target})).isDefaultPrevented()||i.hide()}}},i.on(document,"click",u))}function o(){d||(d=function(){var e;for(e=p.length;e--;)s(p[e])},i.on(window,"scroll",d))}function a(){if(!f){var e=document.documentElement,t=e.clientWidth,n=e.clientHeight;f=function(){document.all&&t==e.clientWidth&&n==e.clientHeight||(t=e.clientWidth,n=e.clientHeight,g.hideAll())},i.on(window,"resize",f)}}function s(e){function t(t,n){for(var i,r=0;r<p.length;r++)if(p[r]!=e)for(i=p[r].parent();i&&(i=i.parent());)i==e&&p[r].fixed(t).moveBy(0,n).repaint()}var n=i.getViewPort().y;e.settings.autofix&&(e._fixed?e._autoFixY>n&&(e.fixed(!1).layoutRect({y:e._autoFixY}).repaint(),t(!1,e._autoFixY-n)):(e._autoFixY=e.layoutRect().y,e._autoFixY<n&&(e.fixed(!0).layoutRect({y:0}).repaint(),t(!0,n-e._autoFixY))))}function l(e,t){var n,r,o=g.zIndex||65535;if(e)h.push(t);else for(n=h.length;n--;)h[n]===t&&h.splice(n,1);if(h.length)for(n=0;n<h.length;n++)h[n].modal&&(o++,r=h[n]),h[n].getEl().style.zIndex=o,h[n].zIndex=o,o++;var a=document.getElementById(t.classPrefix+"modal-block");r?i.css(a,"z-index",r.zIndex-1):a&&(a.parentNode.removeChild(a),m=!1),g.currentZIndex=o}function c(e){var t;for(t=p.length;t--;)p[t]===e&&p.splice(t,1);for(t=h.length;t--;)h[t]===e&&h.splice(t,1)}var u,d,f,m,p=[],h=[],g=e.extend({Mixins:[t,n],init:function(e){var t=this;t._super(e),t._eventsRoot=t,t.addClass("floatpanel"),e.autohide&&(r(),a(),p.push(t)),e.autofix&&(o(),t.on("move",function(){s(this)})),t.on("postrender show",function(e){if(e.control==t){var n,r=t.classPrefix;t.modal&&!m&&(n=i.createFragment('<div id="'+r+'modal-block" class="'+r+"reset "+r+'fade"></div>'),n=n.firstChild,t.getContainerElm().appendChild(n),setTimeout(function(){i.addClass(n,r+"in"),i.addClass(t.getEl(),r+"in")},0),m=!0),l(!0,t)}}),t.on("show",function(){t.parents().each(function(e){if(e._fixed)return t.fixed(!0),!1})}),e.popover&&(t._preBodyHtml='<div class="'+t.classPrefix+'arrow"></div>',t.addClass("popover").addClass("bottom").addClass(t.isRtl()?"end":"start"))},fixed:function(e){var t=this;if(t._fixed!=e){if(t._rendered){var n=i.getViewPort();e?t.layoutRect().y-=n.y:t.layoutRect().y+=n.y}t.toggleClass("fixed",e),t._fixed=e}return t},show:function(){var e,t=this,n=t._super();for(e=p.length;e--&&p[e]!==t;);return-1===e&&p.push(t),n},hide:function(){return c(this),l(!1,this),this._super()},hideAll:function(){g.hideAll()},close:function(){var e=this;return e.fire("close").isDefaultPrevented()||(e.remove(),l(!1,e)),e},remove:function(){c(this),this._super()},postRender:function(){var e=this;return e.settings.bodyRole&&this.getEl("body").setAttribute("role",e.settings.bodyRole),e._super()}});return g.hideAll=function(){for(var e=p.length;e--;){var t=p[e];t&&t.settings.autohide&&(t.hide(),p.splice(e,1))}},g}),i("tinymce/ui/Window",["tinymce/ui/FloatPanel","tinymce/ui/Panel","tinymce/ui/DomUtils","tinymce/ui/DragHelper"],function(e,t,n,i){return e.extend({modal:!0,Defaults:{border:1,layout:"flex",containerCls:"panel",role:"dialog",callbacks:{submit:function(){this.fire("submit",{data:this.toJSON()})},close:function(){this.close()}}},init:function(e){var n=this;n._super(e),n.isRtl()&&n.addClass("rtl"),n.addClass("window"),n._fixed=!0,e.buttons&&(n.statusbar=new t({layout:"flex",border:"1 0 0 0",spacing:3,padding:10,align:"center",pack:n.isRtl()?"start":"end",defaults:{type:"button"},items:e.buttons}),n.statusbar.addClass("foot"),n.statusbar.parent(n)),n.on("click",function(e){-1!=e.target.className.indexOf(n.classPrefix+"close")&&n.close()}),n.on("cancel",function(){n.close()}),n.aria("describedby",n.describedBy||n._id+"-none"),n.aria("label",e.title),n._fullscreen=!1},recalc:function(){var e,t,i,r,o=this,a=o.statusbar;o._fullscreen&&(o.layoutRect(n.getWindowSize()),o.layoutRect().contentH=o.layoutRect().innerH),o._super(),e=o.layoutRect(),o.settings.title&&!o._fullscreen&&(t=e.headerW)>e.w&&(i=e.x-Math.max(0,t/2),o.layoutRect({w:t,x:i}),r=!0),a&&(a.layoutRect({w:o.layoutRect().innerW}).recalc(),(t=a.layoutRect().minW+e.deltaW)>e.w&&(i=e.x-Math.max(0,t-e.w),o.layoutRect({w:t,x:i}),r=!0)),r&&o.recalc()},initLayoutRect:function(){var e,t=this,i=t._super(),r=0;if(t.settings.title&&!t._fullscreen){e=t.getEl("head");var o=n.getSize(e);i.headerW=o.width,i.headerH=o.height,r+=i.headerH}t.statusbar&&(r+=t.statusbar.layoutRect().h),i.deltaH+=r,i.minH+=r,i.h+=r;var a=n.getWindowSize();return i.x=Math.max(0,a.w/2-i.w/2),i.y=Math.max(0,a.h/2-i.h/2),i},renderHtml:function(){var e=this,t=e._layout,n=e._id,i=e.classPrefix,r=e.settings,o="",a="",s=r.html;return e.preRender(),t.preRender(e),r.title&&(o='<div id="'+n+'-head" class="'+i+'window-head"><div id="'+n+'-title" class="'+i+'title">'+e.encode(r.title)+'</div><button type="button" class="'+i+'close" aria-hidden="true">×</button><div id="'+n+'-dragh" class="'+i+'dragh"></div></div>'),r.url&&(s='<iframe src="'+r.url+'" tabindex="-1"></iframe>'),void 0===s&&(s=t.renderHtml(e)),e.statusbar&&(a=e.statusbar.renderHtml()),'<div id="'+n+'" class="'+e.classes()+'" hidefocus="1"><div class="'+e.classPrefix+'reset" role="application">'+o+'<div id="'+n+'-body" class="'+e.classes("body")+'">'+s+"</div>"+a+"</div></div>"},fullscreen:function(e){var t,i,r=this,o=document.documentElement,a=r.classPrefix;if(e!=r._fullscreen)if(n.on(window,"resize",function(){var e;if(r._fullscreen)if(t)r._timer||(r._timer=setTimeout(function(){var e=n.getWindowSize();r.moveTo(0,0).resizeTo(e.w,e.h),r._timer=0},50));else{e=(new Date).getTime();var i=n.getWindowSize();r.moveTo(0,0).resizeTo(i.w,i.h),(new Date).getTime()-e>50&&(t=!0)}}),i=r.layoutRect(),r._fullscreen=e,e){r._initial={x:i.x,y:i.y,w:i.w,h:i.h},r._borderBox=r.parseBox("0"),r.getEl("head").style.display="none",i.deltaH-=i.headerH+2,n.addClass(o,a+"fullscreen"),n.addClass(document.body,a+"fullscreen"),r.addClass("fullscreen");var s=n.getWindowSize();r.moveTo(0,0).resizeTo(s.w,s.h)}else r._borderBox=r.parseBox(r.settings.border),r.getEl("head").style.display="",i.deltaH+=i.headerH,n.removeClass(o,a+"fullscreen"),n.removeClass(document.body,a+"fullscreen"),r.removeClass("fullscreen"),r.moveTo(r._initial.x,r._initial.y).resizeTo(r._initial.w,r._initial.h);return r.reflow()},postRender:function(){var e,t=this;setTimeout(function(){t.addClass("in")},0),t._super(),t.statusbar&&t.statusbar.postRender(),t.focus(),this.dragHelper=new i(t._id+"-dragh",{start:function(){e={x:t.layoutRect().x,y:t.layoutRect().y}},drag:function(n){t.moveTo(e.x+n.deltaX,e.y+n.deltaY)}}),t.on("submit",function(e){e.isDefaultPrevented()||t.close()})},submit:function(){return this.fire("submit",{data:this.toJSON()})},remove:function(){var e=this,t=e.classPrefix;e.dragHelper.destroy(),e._super(),e.statusbar&&this.statusbar.remove(),e._fullscreen&&(n.removeClass(document.documentElement,t+"fullscreen"),n.removeClass(document.body,t+"fullscreen"))},getContentWindow:function(){var e=this.getEl().getElementsByTagName("iframe")[0];return e?e.contentWindow:null}})}),i("tinymce/ui/MessageBox",["tinymce/ui/Window"],function(e){var t=e.extend({init:function(e){e={border:1,padding:20,layout:"flex",pack:"center",align:"center",containerCls:"panel",autoScroll:!0,buttons:{type:"button",text:"Ok",action:"ok"},items:{type:"label",multiline:!0,maxWidth:500,maxHeight:200}},this._super(e)},Statics:{OK:1,OK_CANCEL:2,YES_NO:3,YES_NO_CANCEL:4,msgBox:function(n){function i(e,t,n){return{type:"button",text:e,subtype:n?"primary":"",onClick:function(e){e.control.parents()[1].close(),o(t)}}}var r,o=n.callback||function(){};switch(n.buttons){case t.OK_CANCEL:r=[i("Ok",!0,!0),i("Cancel",!1)];break;case t.YES_NO:case t.YES_NO_CANCEL:r=[i("Yes",1,!0),i("No",0)],n.buttons==t.YES_NO_CANCEL&&r.push(i("Cancel",-1));break;default:r=[i("Ok",!0,!0)]}return new e({padding:20,x:n.x,y:n.y,minWidth:300,minHeight:100,layout:"flex",pack:"center",align:"center",buttons:r,title:n.title,role:"alertdialog",items:{type:"label",multiline:!0,maxWidth:500,maxHeight:200,text:n.text},onPostRender:function(){this.aria("describedby",this.items()[0]._id)},onClose:n.onClose,onCancel:function(){o(!1)}}).renderTo(document.body).reflow()},alert:function(e,n){return"string"==typeof e&&(e={text:e}),e.callback=n,t.msgBox(e)},confirm:function(e,n){return"string"==typeof e&&(e={text:e}),e.callback=n,e.buttons=t.OK_CANCEL,t.msgBox(e)}}});return t}),i("tinymce/WindowManager",["tinymce/ui/Window","tinymce/ui/MessageBox"],function(e,t){return function(n){function i(){if(o.length)return o[o.length-1]}var r=this,o=[];r.windows=o,n.on("remove",function(){for(var e=o.length;e--;)o[e].close()}),r.open=function(t,i){var r;return n.editorManager.setActive(n),t.title=t.title||" ",t.url=t.url||t.file,t.url&&(t.width=parseInt(t.width||320,10),t.height=parseInt(t.height||240,10)),t.body&&(t.items={defaults:t.defaults,type:t.bodyType||"form",items:t.body}),t.url||t.buttons||(t.buttons=[{text:"Ok",subtype:"primary",onclick:function(){r.find("form")[0].submit()}},{text:"Cancel",onclick:function(){r.close()}}]),r=new e(t),o.push(r),r.on("close",function(){for(var e=o.length;e--;)o[e]===r&&o.splice(e,1);o.length||n.focus()}),t.data&&r.on("postRender",function(){this.find("*").each(function(e){var n=e.name();n in t.data&&e.value(t.data[n])})}),r.features=t||{},r.params=i||{},1===o.length&&n.nodeChanged(),r.renderTo().reflow()},r.alert=function(e,i,r){t.alert(e,function(){i?i.call(r||this):n.focus()})},r.confirm=function(e,n,i){t.confirm(e,function(e){n.call(i||this,e)})},r.close=function(){i()&&i().close()},r.getParams=function(){return i()?i().params:null},r.setParams=function(e){i()&&(i().params=e)},r.getWindows=function(){return o}}}),i("tinymce/util/Quirks",["tinymce/util/VK","tinymce/dom/RangeUtils","tinymce/dom/TreeWalker","tinymce/html/Node","tinymce/html/Entities","tinymce/Env","tinymce/util/Tools"],function(e,t,n,i,r,o,a){return function(s){function l(e,t){try{s.getDoc().execCommand(e,!1,t)}catch(e){}}function c(){var e=s.getDoc().documentMode;return e||6}function u(e){return e.isDefaultPrevented()}function d(e){var t;e.dataTransfer&&(s.selection.isCollapsed()&&"IMG"==e.target.tagName&&_.select(e.target),(t=s.selection.getContent()).length>0&&e.dataTransfer.setData(B,A+escape(t)))}function f(e){var t,n;return e.dataTransfer&&(t=e.dataTransfer.getData(B))&&t.indexOf(A)>=0&&(n=unescape(t.substr(A.length))),n}function m(e){s.queryCommandSupported("mceInsertClipboardContent")?s.execCommand("mceInsertClipboardContent",!1,{content:e}):s.execCommand("mceInsertContent",!1,e)}function p(){s.shortcuts.add("meta+a",null,"SelectAll")}function h(){s.on("keydown",function(e){if(!u(e)&&e.keyCode===C){if(!s.getBody().getElementsByTagName("hr").length)return;if(_.isCollapsed()&&0===_.getRng(!0).startOffset){var t=_.getNode(),n=t.previousSibling;if("HR"==t.nodeName)return w.remove(t),void e.preventDefault();n&&n.nodeName&&"hr"===n.nodeName.toLowerCase()&&(w.remove(n),e.preventDefault())}}})}function g(){s.on("keydown",function(e){if(!u(e)&&e.keyCode===C&&_.isCollapsed()&&0===_.getRng(!0).startOffset){var t=_.getNode().previousSibling;if(t&&t.nodeName&&"table"===t.nodeName.toLowerCase())return e.preventDefault(),!1}})}function v(){s.inline||(s.contentStyles.push("body {min-height: 150px}"),s.on("click",function(e){if("HTML"==e.target.nodeName){var t;t=s.selection.getRng(),s.getBody().focus(),s.selection.setRng(t),s.selection.normalize(),s.nodeChanged()}}))}var y=a.each,b=s.$,C=e.BACKSPACE,x=e.DELETE,w=s.dom,_=s.selection,E=s.settings,N=s.parser,S=s.serializer,k=o.gecko,T=o.ie,R=o.webkit,A="data:text/mce-internal,",B=T?"Text":"URL";s.on("keydown",function(t){var n,i,r,o,a;if(!u(t)&&t.keyCode==e.BACKSPACE&&(n=_.getRng(),i=n.startContainer,r=n.startOffset,o=w.getRoot(),a=i,n.collapsed&&0===r)){for(;a&&a.parentNode&&a.parentNode.firstChild==a&&a.parentNode!=o;)a=a.parentNode;"BLOCKQUOTE"===a.tagName&&(s.formatter.toggle("blockquote",null,a),(n=w.createRng()).setStart(i,0),n.setEnd(i,0),_.setRng(n))}}),function(){function e(e){var t=w.create("body"),n=e.cloneContents();return t.appendChild(n),_.serializer.serialize(t,{format:"html"})}function n(n){if(!n.setStart){if(n.item)return!1;var i=n.duplicate();return i.moveToElementText(s.getBody()),t.compareRanges(n,i)}var r=e(n),o=w.createRng();return o.selectNode(s.getBody()),r===e(o)}s.on("keydown",function(e){var t,i,r=e.keyCode;if(!u(e)&&(r==x||r==C)){if(t=s.selection.isCollapsed(),i=s.getBody(),t&&!w.isEmpty(i))return;if(!t&&!n(s.selection.getRng()))return;e.preventDefault(),s.setContent(""),i.firstChild&&w.isBlock(i.firstChild)?s.selection.setCursorLocation(i.firstChild,0):s.selection.setCursorLocation(i,0),s.nodeChanged()}})}(),s.on("keyup focusin mouseup",function(t){65==t.keyCode&&e.metaKeyPressed(t)||_.normalize()},!0),R&&(!function(){function i(e){var t=w.schema.getBlockElements(),n=s.getBody();if("BR"!=e.nodeName)return!1;for(e=e;e!=n&&!t[e.nodeName];e=e.parentNode)if(e.nextSibling)return!1;return!0}function r(e,t){var n;for(n=e.nextSibling;n&&n!=t;n=n.nextSibling)if((3!=n.nodeType||0!==b.trim(n.data).length)&&n!==t)return!1;return n===t}function o(e,t,r){var o,a,s;for(s=w.schema.getNonEmptyElements(),o=new n(r||e,e);a=o[t?"next":"prev"]();){if(s[a.nodeName]&&!i(a))return a;if(3==a.nodeType&&a.data.length>0)return a}}function l(e){var n,i,r,a,l;if(!e.collapsed&&(n=w.getParent(t.getNode(e.startContainer,e.startOffset),w.isBlock),i=w.getParent(t.getNode(e.endContainer,e.endOffset),w.isBlock),l=s.schema.getTextBlockElements(),n!=i&&l[n.nodeName]&&l[i.nodeName]&&"false"!==w.getContentEditable(n)&&"false"!==w.getContentEditable(i)))return e.deleteContents(),r=o(n,!1),a=o(i,!0),w.isEmpty(i)||b(n).append(i.childNodes),b(i).remove(),r?1==r.nodeType?"BR"==r.nodeName?(e.setStartBefore(r),e.setEndBefore(r)):(e.setStartAfter(r),e.setEndAfter(r)):(e.setStart(r,r.data.length),e.setEnd(r,r.data.length)):a&&(1==a.nodeType?(e.setStartBefore(a),e.setEndBefore(a)):(e.setStart(a,0),e.setEnd(a,0))),_.setRng(e),!0}function c(e,n){var i,a,l,c,u,d;if(!e.collapsed)return e;if(u=e.startContainer,d=e.startOffset,3==u.nodeType)if(n){if(d<u.data.length)return e}else if(d>0)return e;if(i=t.getNode(e.startContainer,e.startOffset),l=w.getParent(i,w.isBlock),a=o(s.getBody(),n,i),c=w.getParent(a,w.isBlock),!i||!a)return e;if(c&&l!=c)if(n){if(!r(l,c))return e;1==i.nodeType?"BR"==i.nodeName?e.setStartBefore(i):e.setStartAfter(i):e.setStart(i,i.data.length),1==a.nodeType?e.setEnd(a,0):e.setEndBefore(a)}else{if(!r(c,l))return e;1==a.nodeType?"BR"==a.nodeName?e.setStartBefore(a):e.setStartAfter(a):e.setStart(a,a.data.length),1==i.nodeType?e.setEnd(i,0):e.setEndBefore(i)}return e}function p(e){var t=_.getRng();if(t=c(t,e),l(t))return!0}function h(e){var t,n,i;p(e)||(a.each(s.getBody().getElementsByTagName("*"),function(e){"SPAN"==e.tagName&&e.setAttribute("mce-data-marked",1),!e.hasAttribute("data-mce-style")&&e.hasAttribute("style")&&s.dom.setAttrib(e,"style",s.dom.getAttrib(e,"style"))}),(t=new E(function(){})).observe(s.getDoc(),{childList:!0,attributes:!0,subtree:!0,attributeFilter:["style"]}),s.getDoc().execCommand(e?"ForwardDelete":"Delete",!1,null),n=s.selection.getRng(),i=n.startContainer.parentNode,a.each(t.takeRecords(),function(e){if(w.isChildOf(e.target,s.getBody())){if("style"==e.attributeName){var t=e.target.getAttribute("data-mce-style");t?e.target.setAttribute("style",t):e.target.removeAttribute("style")}a.each(e.addedNodes,function(e){if("SPAN"==e.nodeName&&!e.getAttribute("mce-data-marked")){var t,r;e==i&&(t=n.startOffset,r=e.firstChild),w.remove(e,!0),r&&(n.setStart(r,t),n.setEnd(r,t),s.selection.setRng(n))}})}}),t.disconnect(),a.each(s.dom.select("span[mce-data-marked]"),function(e){e.removeAttribute("mce-data-marked")}))}var g,v,y=s.getDoc(),w=s.dom,_=s.selection,E=window.MutationObserver;E||(g=!0,E=function(){function e(e){var t=e.relatedNode||e.target;i.push({target:t,addedNodes:[t]})}function t(e){var t=e.relatedNode||e.target;i.push({target:t,attributeName:e.attrName})}var n,i=[];this.observe=function(i){(n=i).addEventListener("DOMSubtreeModified",e,!1),n.addEventListener("DOMNodeInsertedIntoDocument",e,!1),n.addEventListener("DOMNodeInserted",e,!1),n.addEventListener("DOMAttrModified",t,!1)},this.disconnect=function(){n.removeEventListener("DOMSubtreeModified",e,!1),n.removeEventListener("DOMNodeInsertedIntoDocument",e,!1),n.removeEventListener("DOMNodeInserted",e,!1),n.removeEventListener("DOMAttrModified",t,!1)},this.takeRecords=function(){return i}}),s.on("keydown",function(e){var t=e.keyCode==x,n=e.ctrlKey||e.metaKey;if(!u(e)&&(t||e.keyCode==C)){var i=s.selection.getRng(),r=i.startContainer,o=i.startOffset;if(!n&&i.collapsed&&3==r.nodeType&&(t?o<r.data.length:o>0))return;e.preventDefault(),n&&s.selection.getSel().modify("extend",t?"forward":"backward",e.metaKey?"lineboundary":"word"),h(t)}}),s.on("keypress",function(t){if(!u(t)&&!_.isCollapsed()&&t.charCode&&!e.metaKeyPressed(t)){var n,i,r,o,a,l;n=s.selection.getRng(),l=String.fromCharCode(t.charCode),t.preventDefault(),i=b(n.startContainer).parents().filter(function(e,t){return!!s.schema.getTextInlineElements()[t.nodeName]}),h(!0),(i=i.filter(function(e,t){return!b.contains(s.getBody(),t)})).length?(r=w.createFragment(),i.each(function(e,t){t=t.cloneNode(!1),r.hasChildNodes()?(t.appendChild(r.firstChild),r.appendChild(t)):(a=t,r.appendChild(t)),r.appendChild(t)}),a.appendChild(s.getDoc().createTextNode(l)),o=w.getParent(n.startContainer,w.isBlock),w.isEmpty(o)?b(o).empty().append(r):n.insertNode(r),n.setStart(a.firstChild,1),n.setEnd(a.firstChild,1),s.selection.setRng(n)):s.selection.setContent(l)}}),s.addCommand("Delete",function(){h()}),s.addCommand("ForwardDelete",function(){h(!0)}),g||(s.on("dragstart",function(e){v=_.getRng(),d(e)}),s.on("drop",function(e){if(!u(e)){var n=f(e);n&&(e.preventDefault(),window.setTimeout(function(){var i=t.getCaretRangeFromPoint(e.x,e.y,y);v&&(_.setRng(v),v=null),h(),_.setRng(i),m(n)},0))}}),s.on("cut",function(e){!u(e)&&e.clipboardData&&(e.preventDefault(),e.clipboardData.clearData(),e.clipboardData.setData("text/html",s.selection.getContent()),e.clipboardData.setData("text/plain",s.selection.getContent({format:"text"})),h(!0))}))}(),s.settings.content_editable||(w.bind(s.getDoc(),"focusin",function(){_.setRng(_.getRng())}),w.bind(s.getDoc(),"mousedown mouseup",function(e){e.target==s.getDoc().documentElement&&(s.getBody().focus(),"mousedown"==e.type?_.placeCaretAt(e.clientX,e.clientY):_.setRng(_.getRng()))})),s.on("click",function(e){var t=e.target;/^(IMG|HR)$/.test(t.nodeName)&&(e.preventDefault(),_.getSel().setBaseAndExtent(t,0,t,1),s.nodeChanged()),"A"==t.nodeName&&w.hasClass(t,"mce-item-anchor")&&(e.preventDefault(),_.select(t))}),E.forced_root_block&&s.on("init",function(){l("DefaultParagraphSeparator",E.forced_root_block)}),s.on("init",function(){s.dom.bind(s.getBody(),"submit",function(e){e.preventDefault()})}),g(),N.addNodeFilter("br",function(e){for(var t=e.length;t--;)"Apple-interchange-newline"==e[t].attr("class")&&e[t].remove()}),s.on("touchstart",function(e){var t,n,i,r;t=e.target,n=(new Date).getTime(),!(r=e.changedTouches)||r.length>1||(i=r[0],s.once("touchend",function(e){var r,o=e.changedTouches[0];(new Date).getTime()-n>500||Math.abs(i.clientX-o.clientX)>5||Math.abs(i.clientY-o.clientY)>5||(r={target:t},y("pageX pageY clientX clientY screenX screenY".split(" "),function(e){r[e]=o[e]}),(r=s.fire("click",r)).isDefaultPrevented()||(s.selection.placeCaretAt(o.clientX,o.clientY),s.nodeChanged()))}))}),o.iOS?(s.inline||s.on("keydown",function(){document.activeElement==document.body&&s.getWin().focus()}),v(),s.on("click",function(e){var t=e.target;do{if("A"===t.tagName)return void e.preventDefault()}while(t=t.parentNode)}),s.contentStyles.push(".mce-content-body {-webkit-touch-callout: none}")):p()),T&&o.ie<11&&(h(),document.body.setAttribute("role","application"),c()>7||(l("RespectVisibilityInDesign",!0),s.contentStyles.push(".mceHideBrInPre pre br {display: none}"),w.addClass(s.getBody(),"mceHideBrInPre"),N.addNodeFilter("pre",function(e){for(var t,n,r,o,a=e.length;a--;)for(n=(t=e[a].getAll("br")).length;n--;)(o=(r=t[n]).prev)&&3===o.type&&"\n"!=o.value.charAt(o.value-1)?o.value+="\n":r.parent.insert(new i("#text",3),r,!0).value="\n"}),S.addNodeFilter("pre",function(e){for(var t,n,i,r=e.length;r--;)for(n=(t=e[r].getAll("br")).length;n--;)(i=t[n].prev)&&3==i.type&&(i.value=i.value.replace(/\r?\n$/,""))})),w.bind(s.getBody(),"mouseup",function(){var e,t=_.getNode();"IMG"==t.nodeName&&((e=w.getStyle(t,"width"))&&(w.setAttrib(t,"width",e.replace(/[^0-9%]+/g,"")),w.setStyle(t,"width","")),(e=w.getStyle(t,"height"))&&(w.setAttrib(t,"height",e.replace(/[^0-9%]+/g,"")),w.setStyle(t,"height","")))}),s.on("keydown",function(e){var t;u(e)||e.keyCode!=C||(t=s.getDoc().selection.createRange())&&t.item&&(e.preventDefault(),s.undoManager.beforeChange(),w.remove(t.item(0)),s.undoManager.add())}),function(){var e;c()>=10&&(e="",y("p div h1 h2 h3 h4 h5 h6".split(" "),function(t,n){e+=(n>0?",":"")+t+":empty"}),s.contentStyles.push(e+"{padding-right: 1px !important}"))}(),c()<9&&(N.addNodeFilter("noscript",function(e){for(var t,n,i=e.length;i--;)(n=(t=e[i]).firstChild)&&t.attr("data-mce-innertext",n.value)}),S.addNodeFilter("noscript",function(e){for(var t,n,o,a=e.length;a--;)t=e[a],(n=e[a].firstChild)?n.value=r.decode(n.value):(o=t.attributes.map["data-mce-innertext"])&&(t.attr("data-mce-innertext",null),(n=new i("#text",3)).value=o,n.raw=!0,t.append(n))})),function(){function e(e,t){var n=s.createTextRange();try{n.moveToPoint(e,t)}catch(e){n=null}return n}function t(t){var i;t.button?(i=e(t.x,t.y))&&(i.compareEndPoints("StartToStart",r)>0?i.setEndPoint("StartToStart",r):i.setEndPoint("EndToEnd",r),i.select()):n()}function n(){var e=a.selection.createRange();r&&!e.item&&0===e.compareEndPoints("StartToEnd",e)&&r.select(),w.unbind(a,"mouseup",n),w.unbind(a,"mousemove",t),r=i=0}var i,r,o,a=w.doc,s=a.body;a.documentElement.unselectable=!0,w.bind(a,"mousedown contextmenu",function(s){if("HTML"===s.target.nodeName){if(i&&n(),(o=a.documentElement).scrollHeight>o.clientHeight)return;i=1,(r=e(s.x,s.y))&&(w.bind(a,"mouseup",n),w.bind(a,"mousemove",t),w.getRoot().focus(),r.select())}})}()),o.ie>=11&&(v(),s.inline||s.on("focus blur beforegetcontent",function(){var e=s.dom.create("br");s.getBody().appendChild(e),e.parentNode.removeChild(e)},!0),g()),o.ie&&(p(),l("AutoUrlDetect",!1),s.on("dragstart",function(e){d(e)}),s.on("drop",function(e){if(!u(e)){var n=f(e);if(n){e.preventDefault();var i=t.getCaretRangeFromPoint(e.x,e.y,s.getDoc());_.setRng(i),m(n)}}})),k&&(h(),window.Range.prototype.getClientRects||s.on("mousedown",function(e){if(!u(e)&&"HTML"===e.target.nodeName){var t=s.getBody();t.blur(),setTimeout(function(){t.focus()},0)}}),function(){function e(){var e=w.getAttribs(_.getStart().cloneNode(!1));return function(){var t=_.getStart();t!==s.getBody()&&(w.setAttrib(t,"style",null),y(e,function(e){t.setAttributeNode(e.cloneNode(!0))}))}}function t(){return!_.isCollapsed()&&w.getParent(_.getStart(),w.isBlock)!=w.getParent(_.getEnd(),w.isBlock)}s.on("keypress",function(n){var i;if(!u(n)&&(8==n.keyCode||46==n.keyCode)&&t())return i=e(),s.getDoc().execCommand("delete",!1,null),i(),n.preventDefault(),!1}),w.bind(s.getDoc(),"cut",function(n){var i;!u(n)&&t()&&(i=e(),setTimeout(function(){i()},0))})}(),E.readonly||s.on("BeforeExecCommand MouseDown",function(){s._refreshContentEditable(),l("StyleWithCSS",!1),l("enableInlineTableEditing",!1),E.object_resizing||l("enableObjectResizing",!1)}),function(){function e(){y(w.select("a"),function(e){var t=e.parentNode,n=w.getRoot();if(t.lastChild===e){for(;t&&!w.isBlock(t);){if(t.parentNode.lastChild!==t||t===n)return;t=t.parentNode}w.add(t,"br",{"data-mce-bogus":1})}})}s.on("SetContent ExecCommand",function(t){"setcontent"!=t.type&&"mceInsertLink"!==t.command||e()})}(),s.on("Undo Redo SetContent",function(e){e.initial||s.execCommand("mceRepaint")}),s.contentStyles.push("img:-moz-broken {-moz-force-broken-image-icon:1;min-width:24px;min-height:24px}"),o.mac&&s.on("keydown",function(t){!e.metaKeyPressed(t)||37!=t.keyCode&&39!=t.keyCode||(t.preventDefault(),s.selection.getSel().modify("move",37==t.keyCode?"backward":"forward","lineboundary"))}),g())}}),i("tinymce/util/Observable",["tinymce/util/EventDispatcher"],function(e){function t(t){return t._eventDispatcher||(t._eventDispatcher=new e({scope:t,toggleEvent:function(n,i){e.isNative(n)&&t.toggleNativeEvent&&t.toggleNativeEvent(n,i)}})),t._eventDispatcher}return{fire:function(e,n,i){var r=this;if(r.removed&&"remove"!==e)return n;if(n=t(r).fire(e,n,i),!1!==i&&r.parent)for(var o=r.parent();o&&!n.isPropagationStopped();)o.fire(e,n,!1),o=o.parent();return n},on:function(e,n,i){return t(this).on(e,n,i)},off:function(e,n){return t(this).off(e,n)},once:function(e,n){return t(this).once(e,n)},hasEventListeners:function(e){return t(this).has(e)}}}),i("tinymce/EditorObservable",["tinymce/util/Observable","tinymce/dom/DOMUtils","tinymce/util/Tools"],function(e,t,n){function i(e,t){return"selectionchange"==t?e.getDoc():!e.inline&&/^mouse|click|contextmenu|drop|dragover|dragend/.test(t)?e.getDoc().documentElement:e.settings.event_root?(e.eventRoot||(e.eventRoot=a.select(e.settings.event_root)[0]),e.eventRoot):e.getBody()}function r(e,t){var n,r=i(e,t);if(e.delegates||(e.delegates={}),!e.delegates[t])if(e.settings.event_root){if(o||(o={},e.editorManager.on("removeEditor",function(){var t;if(!e.editorManager.activeEditor&&o){for(t in o)e.dom.unbind(i(e,t));o=null}})),o[t])return;n=function(n){for(var i=n.target,r=e.editorManager.editors,o=r.length;o--;){var s=r[o].getBody();(s===i||a.isChildOf(i,s))&&(r[o].hidden||r[o].fire(t,n))}},o[t]=n,a.bind(r,t,n)}else n=function(n){e.hidden||e.fire(t,n)},a.bind(r,t,n),e.delegates[t]=n}var o,a=t.DOM,s={bindPendingEventDelegates:function(){var e=this;n.each(e._pendingNativeEvents,function(t){r(e,t)})},toggleNativeEvent:function(e,t){var n=this;n.settings.readonly||"focus"!=e&&"blur"!=e&&(t?n.initialized?r(n,e):n._pendingNativeEvents?n._pendingNativeEvents.push(e):n._pendingNativeEvents=[e]:n.initialized&&(n.dom.unbind(i(n,e),e,n.delegates[e]),delete n.delegates[e]))},unbindAllNativeEvents:function(){var e,t=this;if(t.delegates){for(e in t.delegates)t.dom.unbind(i(t,e),e,t.delegates[e]);delete t.delegates}t.inline||(t.getBody().onload=null,t.dom.unbind(t.getWin()),t.dom.unbind(t.getDoc())),t.dom.unbind(t.getBody()),t.dom.unbind(t.getContainer())}};return s=n.extend({},e,s)}),i("tinymce/Shortcuts",["tinymce/util/Tools","tinymce/Env"],function(e,t){var n=e.each,i=e.explode,r={f9:120,f10:121,f11:122},o=e.makeMap("alt,ctrl,shift,meta,access");return function(a){function s(e,s,l,c){var u,d,f;f={func:l,scope:c||a,desc:a.translate(s)},n(i(e,"+"),function(e){e in o?f[e]=!0:/^[0-9]{2,}$/.test(e)?f.keyCode=parseInt(e,10):(f.charCode=e.charCodeAt(0),f.keyCode=r[e]||e.toUpperCase().charCodeAt(0))}),u=[f.keyCode];for(d in o)f[d]?u.push(d):f[d]=!1;return f.id=u.join(","),f.access&&(f.alt=!0,t.mac?f.ctrl=!0:f.shift=!0),f.meta&&(t.mac?f.meta=!0:(f.ctrl=!0,f.meta=!1)),f}var l=this,c={};a.on("keyup keypress keydown",function(e){(e.altKey||e.ctrlKey||e.metaKey)&&!e.isDefaultPrevented()&&n(c,function(t){if(t.ctrl==e.ctrlKey&&t.meta==e.metaKey&&t.alt==e.altKey&&t.shift==e.shiftKey)return e.keyCode==t.keyCode||e.charCode&&e.charCode==t.charCode?(e.preventDefault(),"keydown"==e.type&&t.func.call(t.scope),!0):void 0})}),l.add=function(t,r,o,l){var u;return u=o,"string"==typeof o?o=function(){a.execCommand(u,!1,null)}:e.isArray(u)&&(o=function(){a.execCommand(u[0],u[1],u[2])}),n(i(t.toLowerCase()),function(e){var t=s(e,r,o,l);c[t.id]=t}),!0},l.remove=function(e){var t=s(e);return!!c[t.id]&&(delete c[t.id],!0)}}}),i("tinymce/Editor",["tinymce/dom/DOMUtils","tinymce/dom/DomQuery","tinymce/AddOnManager","tinymce/NodeChange","tinymce/html/Node","tinymce/dom/Serializer","tinymce/html/Serializer","tinymce/dom/Selection","tinymce/Formatter","tinymce/UndoManager","tinymce/EnterKey","tinymce/ForceBlocks","tinymce/EditorCommands","tinymce/util/URI","tinymce/dom/ScriptLoader","tinymce/dom/EventUtils","tinymce/WindowManager","tinymce/html/Schema","tinymce/html/DomParser","tinymce/util/Quirks","tinymce/Env","tinymce/util/Tools","tinymce/EditorObservable","tinymce/Shortcuts"],function(e,n,i,r,o,a,s,l,c,u,d,f,m,p,h,g,v,y,b,C,x,w,_,E){function N(e,t,r){var o,a,s=this;o=s.documentBaseUrl=r.documentBaseURL,a=r.baseURI,s.settings=t=R({id:e,theme:"modern",delta_width:0,delta_height:0,popup_css:"",plugins:"",document_base_url:o,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:"<!DOCTYPE html>",visual:!0,font_size_style_values:"xx-small,x-small,small,medium,large,x-large,xx-large",font_size_legacy_values:"xx-small,small,medium,large,x-large,xx-large,300%",forced_root_block:"p",hidden_input:!0,padd_empty_editor:!0,render_ui:!0,indentation:"30px",inline_styles:!0,convert_fonts_to_spans:!0,indent:"simple",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,article,hgroup,aside,figure,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,article,hgroup,aside,figure,option,optgroup,datalist",validate:!0,entity_encoding:"named",url_converter:s.convertURL,url_converter_scope:s,ie7_compat:!0},t),i.language=t.language||"en",i.languageLoad=t.language_load,i.baseURL=r.baseURL,s.id=t.id=e,s.isNotDirty=!0,s.plugins={},s.documentBaseURI=new p(t.document_base_url||o,{base_uri:a}),s.baseURI=a,s.contentCSS=[],s.contentStyles=[],s.shortcuts=new E(s),s.loadedCSS={},s.editorCommands=new m(s),t.target&&(s.targetElm=t.target),s.suffix=r.suffix,s.editorManager=r,s.inline=t.inline,t.cache_suffix&&(x.cacheSuffix=t.cache_suffix.replace(/^[\?\&]+/,"")),r.fire("SetupEditor",s),s.execCallback("setup",s),s.$=n.overrideDefaults(function(){return{context:s.inline?s.getBody():s.getDoc(),element:s.getBody()}})}var S=e.DOM,k=i.ThemeManager,T=i.PluginManager,R=w.extend,A=w.each,B=w.explode,D=w.inArray,M=w.trim,L=w.resolve,P=g.Event,H=x.gecko,O=x.ie;return N.prototype={render:function(){function e(){S.unbind(window,"ready",e),t.render()}var t=this,n=t.settings,i=t.id,r=t.suffix;if(P.domLoaded){if(t.getElement()&&x.contentEditable){n.inline?t.inline=!0:(t.orgVisibility=t.getElement().style.visibility,t.getElement().style.visibility="hidden");var o=t.getElement().form||S.getParent(i,"form");o&&(t.formElement=o,n.hidden_input&&!/TEXTAREA|INPUT/i.test(t.getElement().nodeName)&&(S.insertAfter(S.create("input",{type:"hidden",name:i}),i),t.hasHiddenInput=!0),t.formEventDelegate=function(e){t.fire(e.type,e)},S.bind(o,"submit reset",t.formEventDelegate),t.on("reset",function(){t.setContent(t.startContent,{format:"raw"})}),!n.submit_patch||o.submit.nodeType||o.submit.length||o._mceOldSubmit||(o._mceOldSubmit=o.submit,o.submit=function(){return t.editorManager.triggerSave(),t.isNotDirty=!0,o._mceOldSubmit(o)})),t.windowManager=new v(t),"xml"==n.encoding&&t.on("GetContent",function(e){e.save&&(e.content=S.encode(e.content))}),n.add_form_submit_trigger&&t.on("submit",function(){t.initialized&&t.save()}),n.add_unload_trigger&&(t._beforeUnload=function(){!t.initialized||t.destroyed||t.isHidden()||t.save({format:"raw",no_events:!0,set_dirty:!1})},t.editorManager.on("BeforeUnload",t._beforeUnload)),function(){var e=h.ScriptLoader;if(n.language&&"en"!=n.language&&!n.language_url&&(n.language_url=t.editorManager.baseURL+"/langs/"+n.language+".js"),n.language_url&&e.add(n.language_url),n.theme&&"function"!=typeof n.theme&&"-"!=n.theme.charAt(0)&&!k.urls[n.theme]){var i=n.theme_url;i=i?t.documentBaseURI.toAbsolute(i):"themes/"+n.theme+"/theme"+r+".js",k.load(n.theme,i)}w.isArray(n.plugins)&&(n.plugins=n.plugins.join(" ")),A(n.external_plugins,function(e,t){T.load(t,e),n.plugins+=" "+t}),A(n.plugins.split(/[ ,]/),function(e){if((e=M(e))&&!T.urls[e])if("-"==e.charAt(0)){e=e.substr(1,e.length);var t=T.dependencies(e);A(t,function(e){var t={prefix:"plugins/",resource:e,suffix:"/plugin"+r+".js"};e=T.createUrl(t,e),T.load(e.resource,e)})}else T.load(e,{prefix:"plugins/",resource:e,suffix:"/plugin"+r+".js"})}),e.loadQueue(function(){t.removed||t.init()})}()}}else S.bind(window,"ready",e)},init:function(){function e(t){var n,i,r=T.get(t);n=T.urls[t]||f.documentBaseUrl.replace(/\/$/,""),t=M(t),r&&-1===D(h,t)&&(A(T.dependencies(t),function(t){e(t)}),i=new r(f,n,f.$),f.plugins[t]=i,i.init&&(i.init(f,n),h.push(t)))}var t,n,i,r,o,a,s,l,c,u,d,f=this,m=f.settings,p=f.getElement(),h=[];if(this.editorManager.i18n.setCode(m.language),f.rtl=this.editorManager.i18n.rtl,f.editorManager.add(f),m.aria_label=m.aria_label||S.getAttrib(p,"aria-label",f.getLang("aria.rich_text_area")),m.theme&&("function"!=typeof m.theme?(m.theme=m.theme.replace(/-/,""),a=k.get(m.theme),f.theme=new a(f,k.urls[m.theme]),f.theme.init&&f.theme.init(f,k.urls[m.theme]||f.documentBaseUrl.replace(/\/$/,""),f.$)):f.theme=m.theme),A(m.plugins.replace(/\-/g,"").split(/[ ,]/),e),m.render_ui&&f.theme&&(f.orgDisplay=p.style.display,"function"!=typeof m.theme?(t=m.width||p.style.width||p.offsetWidth,n=m.height||p.style.height||p.offsetHeight,i=m.min_height||100,(u=/^[0-9\.]+(|px)$/i).test(""+t)&&(t=Math.max(parseInt(t,10),100)),u.test(""+n)&&(n=Math.max(parseInt(n,10),i)),o=f.theme.renderUI({targetNode:p,width:t,height:n,deltaWidth:m.delta_width,deltaHeight:m.delta_height}),m.content_editable||(n=(o.iframeHeight||n)+("number"==typeof n?o.deltaHeight||0:""))<i&&(n=i)):((o=m.theme(f,p)).editorContainer.nodeType&&(o.editorContainer=o.editorContainer.id=o.editorContainer.id||f.id+"_parent"),o.iframeContainer.nodeType&&(o.iframeContainer=o.iframeContainer.id=o.iframeContainer.id||f.id+"_iframecontainer"),n=o.iframeHeight||p.offsetHeight),f.editorContainer=o.editorContainer),m.content_css&&A(B(m.content_css),function(e){f.contentCSS.push(f.documentBaseURI.toAbsolute(e))}),m.content_style&&f.contentStyles.push(m.content_style),m.content_editable)return p=r=o=null,f.initContentBody();for(f.iframeHTML=m.doctype+"<html><head>",m.document_base_url!=f.documentBaseUrl&&(f.iframeHTML+='<base href="'+f.documentBaseURI.getURI()+'" />'),!x.caretAfter&&m.ie7_compat&&(f.iframeHTML+='<meta http-equiv="X-UA-Compatible" content="IE=7" />'),f.iframeHTML+='<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />',d=0;d<f.contentCSS.length;d++){var g=f.contentCSS[d];f.iframeHTML+='<link type="text/css" rel="stylesheet" href="'+w._addCacheSuffix(g)+'" />',f.loadedCSS[g]=!0}-1!=(l=m.body_id||"tinymce").indexOf("=")&&(l=(l=f.getParam("body_id","","hash"))[f.id]||l),-1!=(c=m.body_class||"").indexOf("=")&&(c=(c=f.getParam("body_class","","hash"))[f.id]||""),m.content_security_policy&&(f.iframeHTML+='<meta http-equiv="Content-Security-Policy" content="'+m.content_security_policy+'" />'),f.iframeHTML+='</head><body id="'+l+'" class="mce-content-body '+c+'" data-id="'+f.id+'"><br></body></html>';var v='javascript:(function(){document.open();document.domain="'+document.domain+'";var ed = window.parent.tinymce.get("'+f.id+'");document.write(ed.iframeHTML);document.close();ed.initContentBody(true);})()';document.domain!=location.hostname&&(s=v);var y=S.create("iframe",{id:f.id+"_ifr",frameBorder:"0",allowTransparency:"true",title:f.editorManager.translate("Rich Text Area. Press ALT-F9 for menu. Press ALT-F10 for toolbar. Press ALT-0 for help"),style:{width:"100%",height:n,display:"block"}});if(y.onload=function(){y.onload=null,f.fire("load")},S.setAttrib(y,"src",s||'javascript:""'),f.contentAreaContainer=o.iframeContainer,f.iframeElement=y,r=S.add(o.iframeContainer,y),O)try{f.getDoc()}catch(e){r.src=s=v}o.editorContainer&&(S.get(o.editorContainer).style.display=f.orgDisplay,f.hidden=S.isHidden(o.editorContainer)),f.getElement().style.display="none",S.setAttrib(f.id,"aria-hidden",!0),s||f.initContentBody(),p=r=o=null},initContentBody:function(t){var n,i,s=this,m=s.settings,p=s.getElement(),h=s.getDoc();m.inline||(s.getElement().style.visibility=s.orgVisibility),t||m.content_editable||(h.open(),h.write(s.iframeHTML),h.close()),m.content_editable&&(s.on("remove",function(){var e=this.getBody();S.removeClass(e,"mce-content-body"),S.removeClass(e,"mce-edit-focus"),S.setAttrib(e,"contentEditable",null)}),S.addClass(p,"mce-content-body"),s.contentDocument=h=m.content_document||document,s.contentWindow=m.content_window||window,s.bodyElement=p,m.content_document=m.content_window=null,m.root_name=p.nodeName.toLowerCase()),(n=s.getBody()).disabled=!0,m.readonly||(s.inline&&"static"==S.getStyle(n,"position",!0)&&(n.style.position="relative"),n.contentEditable=s.getParam("content_editable_state",!0)),n.disabled=!1,s.schema=new y(m),s.dom=new e(h,{keep_values:!0,url_converter:s.convertURL,url_converter_scope:s,hex_colors:m.force_hex_style_colors,class_filter:m.class_filter,update_styles:!0,root_element:s.inline?s.getBody():null,collect:m.content_editable,schema:s.schema,onSetAttrib:function(e){s.fire("SetAttrib",e)}}),s.parser=new b(m,s.schema),s.parser.addAttributeFilter("src,href,style,tabindex",function(e,t){for(var n,i,r,o=e.length,a=s.dom;o--;)i=(n=e[o]).attr(t),r="data-mce-"+t,n.attributes.map[r]||("style"===t?((i=a.serializeStyle(a.parseStyle(i),n.name)).length||(i=null),n.attr(r,i),n.attr(t,i)):"tabindex"===t?(n.attr(r,i),n.attr(t,null)):n.attr(r,s.convertURL(i,t,n.name)))}),s.parser.addNodeFilter("script",function(e){for(var t,n=e.length;n--;)(t=e[n]).attr("type","mce-"+(t.attr("type")||"no/type"))}),s.parser.addNodeFilter("#cdata",function(e){for(var t,n=e.length;n--;)(t=e[n]).type=8,t.name="#comment",t.value="[CDATA["+t.value+"]]"}),s.parser.addNodeFilter("p,h1,h2,h3,h4,h5,h6,div",function(e){for(var t,n=e.length,i=s.schema.getNonEmptyElements();n--;)(t=e[n]).isEmpty(i)&&(t.append(new o("br",1)).shortEnded=!0)}),s.serializer=new a(m,s),s.selection=new l(s.dom,s.getWin(),s.serializer,s),s.formatter=new c(s),s.undoManager=new u(s),s.forceBlocks=new f(s),s.enterKey=new d(s),s._nodeChangeDispatcher=new r(s),s.fire("PreInit"),m.browser_spellcheck||m.gecko_spellcheck||(h.body.spellcheck=!1,S.setAttrib(n,"spellcheck","false")),s.fire("PostRender"),s.quirks=new C(s),m.directionality&&(n.dir=m.directionality),m.nowrap&&(n.style.whiteSpace="nowrap"),m.protect&&s.on("BeforeSetContent",function(e){A(m.protect,function(t){e.content=e.content.replace(t,function(e){return"\x3c!--mce:protected "+escape(e)+"--\x3e"})})}),s.on("SetContent",function(){s.addVisual(s.getBody())}),m.padd_empty_editor&&s.on("PostProcess",function(e){e.content=e.content.replace(/^(<p[^>]*>( | |\s|\u00a0|)<\/p>[\r\n]*|<br \/>[\r\n]*)$/,"")}),s.load({initial:!0,format:"html"}),s.startContent=s.getContent({format:"raw"}),s.initialized=!0,s.bindPendingEventDelegates(),s.fire("init"),s.focus(!0),s.nodeChanged({initial:!0}),s.execCallback("init_instance_callback",s),s.contentStyles.length>0&&(i="",A(s.contentStyles,function(e){i+=e+"\r\n"}),s.dom.addStyle(i)),A(s.contentCSS,function(e){s.loadedCSS[e]||(s.dom.loadCSS(e),s.loadedCSS[e]=!0)}),m.auto_focus&&setTimeout(function(){var e;(e=!0===m.auto_focus?s:s.editorManager.get(m.auto_focus)).destroyed||e.focus()},100),p=h=n=null},focus:function(e){var t,n,i,r=this,o=r.selection,a=r.settings.content_editable,s=r.getDoc();if(!e){if((t=o.getRng()).item&&(n=t.item(0)),r._refreshContentEditable(),a||(x.opera||r.getBody().focus(),r.getWin().focus()),H||a){if((i=r.getBody()).setActive)try{i.setActive()}catch(e){i.focus()}else i.focus();a&&o.normalize()}n&&n.ownerDocument==s&&((t=s.body.createControlRange()).addElement(n),t.select())}r.editorManager.setActive(r)},execCallback:function(e){var t,n=this,i=n.settings[e];if(i)return n.callbackLookup&&(t=n.callbackLookup[e])&&(i=t.func,t=t.scope),"string"==typeof i&&(t=(t=i.replace(/\.\w+$/,""))?L(t):0,i=L(i),n.callbackLookup=n.callbackLookup||{},n.callbackLookup[e]={func:i,scope:t}),i.apply(t||n,Array.prototype.slice.call(arguments,1))},translate:function(e){var t=this.settings.language||"en",n=this.editorManager.i18n;return e?n.data[t+"."+e]||e.replace(/\{\#([^\}]+)\}/g,function(e,i){return n.data[t+"."+i]||"{#"+i+"}"}):""},getLang:function(e,n){return this.editorManager.i18n.data[(this.settings.language||"en")+"."+e]||(n!==t?n:"{#"+e+"}")},getParam:function(e,t,n){var i,r=e in this.settings?this.settings[e]:t;return"hash"===n?(i={},"string"==typeof r?A(r.indexOf("=")>0?r.split(/[;,](?![^=;,]*(?:[;,]|$))/):r.split(","),function(e){(e=e.split("=")).length>1?i[M(e[0])]=M(e[1]):i[M(e[0])]=M(e)}):i=r,i):r},nodeChanged:function(e){this._nodeChangeDispatcher.nodeChanged(e)},addButton:function(e,t){var n=this;t.cmd&&(t.onclick=function(){n.execCommand(t.cmd)}),t.text||t.icon||(t.icon=e),n.buttons=n.buttons||{},t.tooltip=t.tooltip||t.title,n.buttons[e]=t},addMenuItem:function(e,t){var n=this;t.cmd&&(t.onclick=function(){n.execCommand(t.cmd)}),n.menuItems=n.menuItems||{},n.menuItems[e]=t},addCommand:function(e,t,n){this.editorCommands.addCommand(e,t,n)},addQueryStateHandler:function(e,t,n){this.editorCommands.addQueryStateHandler(e,t,n)},addQueryValueHandler:function(e,t,n){this.editorCommands.addQueryValueHandler(e,t,n)},addShortcut:function(e,t,n,i){this.shortcuts.add(e,t,n,i)},execCommand:function(e,t,n,i){return this.editorCommands.execCommand(e,t,n,i)},queryCommandState:function(e){return this.editorCommands.queryCommandState(e)},queryCommandValue:function(e){return this.editorCommands.queryCommandValue(e)},queryCommandSupported:function(e){return this.editorCommands.queryCommandSupported(e)},show:function(){var e=this;e.hidden&&(e.hidden=!1,e.inline?e.getBody().contentEditable=!0:(S.show(e.getContainer()),S.hide(e.id)),e.load(),e.fire("show"))},hide:function(){var e=this,t=e.getDoc();e.hidden||(O&&t&&!e.inline&&t.execCommand("SelectAll"),e.save(),e.inline?(e.getBody().contentEditable=!1,e==e.editorManager.focusedEditor&&(e.editorManager.focusedEditor=null)):(S.hide(e.getContainer()),S.setStyle(e.id,"display",e.orgDisplay)),e.hidden=!0,e.fire("hide"))},isHidden:function(){return!!this.hidden},setProgressState:function(e,t){this.fire("ProgressState",{state:e,time:t})},load:function(e){var n,i=this,r=i.getElement();if(r)return e=e||{},e.load=!0,n=i.setContent(r.value!==t?r.value:r.innerHTML,e),e.element=r,e.no_events||i.fire("LoadContent",e),e.element=r=null,n},save:function(e){var t,n,i=this,r=i.getElement();if(r&&i.initialized)return e=e||{},e.save=!0,e.element=r,t=e.content=i.getContent(e),e.no_events||i.fire("SaveContent",e),t=e.content,/TEXTAREA|INPUT/i.test(r.nodeName)?r.value=t:(i.inline||(r.innerHTML=t),(n=S.getParent(i.id,"form"))&&A(n.elements,function(e){if(e.name==i.id)return e.value=t,!1})),e.element=r=null,!1!==e.set_dirty&&(i.isNotDirty=!0),t},setContent:function(e,t){var n,i=this,r=i.getBody();return t=t||{},t.format=t.format||"html",t.set=!0,t.content=e,t.no_events||i.fire("BeforeSetContent",t),0===(e=t.content).length||/^\s+$/.test(e)?((n=i.settings.forced_root_block)&&i.schema.isValidChild(r.nodeName.toLowerCase(),n.toLowerCase())?(e=O&&O<11?"":'<br data-mce-bogus="1">',e=i.dom.createHTML(n,i.settings.forced_root_block_attrs,e)):O||(e='<br data-mce-bogus="1">'),i.dom.setHTML(r,e),i.fire("SetContent",t)):("raw"!==t.format&&(e=new s({},i.schema).serialize(i.parser.parse(e,{isRootContent:!0}))),t.content=M(e),i.dom.setHTML(r,t.content),t.no_events||i.fire("SetContent",t)),t.content},getContent:function(e){var t,n=this,i=n.getBody();return e=e||{},e.format=e.format||"html",e.get=!0,e.getInner=!0,e.no_events||n.fire("BeforeGetContent",e),t="raw"==e.format?i.innerHTML:"text"==e.format?i.innerText||i.textContent:n.serializer.serialize(i,e),"text"!=e.format?e.content=M(t):e.content=t,e.no_events||n.fire("GetContent",e),e.content},insertContent:function(e,t){t&&(e=R({content:e},t)),this.execCommand("mceInsertContent",!1,e)},isDirty:function(){return!this.isNotDirty},getContainer:function(){var e=this;return e.container||(e.container=S.get(e.editorContainer||e.id+"_parent")),e.container},getContentAreaContainer:function(){return this.contentAreaContainer},getElement:function(){return this.targetElm||(this.targetElm=S.get(this.id)),this.targetElm},getWin:function(){var e,t=this;return t.contentWindow||(e=t.iframeElement)&&(t.contentWindow=e.contentWindow),t.contentWindow},getDoc:function(){var e,t=this;return t.contentDocument||(e=t.getWin())&&(t.contentDocument=e.document),t.contentDocument},getBody:function(){return this.bodyElement||this.getDoc().body},convertURL:function(e,t,n){var i=this,r=i.settings;return r.urlconverter_callback?i.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?i.documentBaseURI.toRelative(e):e=i.documentBaseURI.toAbsolute(e,r.remove_script_host)},addVisual:function(e){var n,i=this,r=i.settings,o=i.dom;e=e||i.getBody(),i.hasVisual===t&&(i.hasVisual=r.visual),A(o.select("table,a",e),function(e){var t;switch(e.nodeName){case"TABLE":return n=r.visual_table_class||"mce-item-table",void((t=o.getAttrib(e,"border"))&&"0"!=t||!i.hasVisual?o.removeClass(e,n):o.addClass(e,n));case"A":return void(o.getAttrib(e,"href",!1)||(t=o.getAttrib(e,"name")||e.id,n=r.visual_anchor_class||"mce-item-anchor",t&&i.hasVisual?o.addClass(e,n):o.removeClass(e,n)))}}),i.fire("VisualAid",{element:e,hasVisual:i.hasVisual})},remove:function(){var e=this;e.removed||(e.save(),e.removed=1,e.unbindAllNativeEvents(),e.hasHiddenInput&&S.remove(e.getElement().nextSibling),e.inline||(O&&O<10&&e.getDoc().execCommand("SelectAll",!1,null),S.setStyle(e.id,"display",e.orgDisplay),e.getBody().onload=null),e.fire("remove"),e.editorManager.remove(e),S.remove(e.getContainer()),e.destroy())},destroy:function(e){var t,n=this;n.destroyed||(e||n.removed?(e||(n.editorManager.off("beforeunload",n._beforeUnload),n.theme&&n.theme.destroy&&n.theme.destroy(),n.selection.destroy(),n.dom.destroy()),(t=n.formElement)&&(t._mceOldSubmit&&(t.submit=t._mceOldSubmit,t._mceOldSubmit=null),S.unbind(t,"submit reset",n.formEventDelegate)),n.contentAreaContainer=n.formElement=n.container=n.editorContainer=null,n.bodyElement=n.contentDocument=n.contentWindow=null,n.iframeElement=n.targetElm=null,n.selection&&(n.selection=n.selection.win=n.selection.dom=n.selection.dom.doc=null),n.destroyed=1):n.remove())},_refreshContentEditable:function(){var e,t,n=this;n._isHidden()&&((t=(e=n.getBody()).parentNode).removeChild(e),t.appendChild(e),e.focus())},_isHidden:function(){var e;return H?!(e=this.selection.getSel())||!e.rangeCount||0===e.rangeCount:0}},R(N.prototype,_),N}),i("tinymce/util/I18n",[],function(){var e={},t="en";return{setCode:function(e){e&&(t=e,this.rtl=!!this.data[e]&&"rtl"===this.data[e]._dir)},getCode:function(){return t},rtl:!1,add:function(t,n){var i=e[t];i||(e[t]=i={});for(var r in n)i[r]=n[r];this.setCode(t)},translate:function(n){var i;if((i=e[t])||(i={}),void 0===n)return n;if("string"!=typeof n&&n.raw)return n.raw;if(n.push){var r=n.slice(1);n=(i[n[0]]||n[0]).replace(/\{([0-9]+)\}/g,function(e,t){return r[t]})}return(i[n]||n).replace(/{context:\w+}$/,"")},data:e}}),i("tinymce/FocusManager",["tinymce/dom/DOMUtils","tinymce/Env"],function(e,t){function n(e){function s(){try{return document.activeElement}catch(e){return document.body}}function l(e,t){if(t&&t.startContainer){if(!e.isChildOf(t.startContainer,e.getRoot())||!e.isChildOf(t.endContainer,e.getRoot()))return;return{startContainer:t.startContainer,startOffset:t.startOffset,endContainer:t.endContainer,endOffset:t.endOffset}}return t}function c(e,t){var n;return t.startContainer?((n=e.getDoc().createRange()).setStart(t.startContainer,t.startOffset),n.setEnd(t.endContainer,t.endOffset)):n=t,n}function u(e){return!!a.getParent(e,n.isEditorUIElement)}e.on("AddEditor",function(n){var d=n.editor;d.on("init",function(){(d.inline||t.ie)&&("onbeforedeactivate"in document&&t.ie<9?d.dom.bind(d.getBody(),"beforedeactivate",function(e){if(e.target==d.getBody())try{d.lastRng=d.selection.getRng()}catch(e){}}):d.on("nodechange mouseup keyup",function(e){var t=s();"nodechange"==e.type&&e.selectionChange||(t&&t.id==d.id+"_ifr"&&(t=d.getBody()),d.dom.isChildOf(t,d.getBody())&&(d.lastRng=d.selection.getRng()))}),t.webkit&&!i&&(i=function(){var t=e.activeEditor;if(t&&t.selection){var n=t.selection.getRng();n&&!n.collapsed&&(d.lastRng=n)}},a.bind(document,"selectionchange",i)))}),d.on("setcontent",function(){d.lastRng=null}),d.on("mousedown",function(){d.selection.lastFocusBookmark=null}),d.on("focusin",function(){var t=e.focusedEditor;d.selection.lastFocusBookmark&&(d.selection.setRng(c(d,d.selection.lastFocusBookmark)),d.selection.lastFocusBookmark=null),t!=d&&(t&&t.fire("blur",{focusedEditor:d}),e.setActive(d),e.focusedEditor=d,d.fire("focus",{blurredEditor:t}),d.focus(!0)),d.lastRng=null}),d.on("focusout",function(){window.setTimeout(function(){var t=e.focusedEditor;u(s())||t!=d||(d.fire("blur",{focusedEditor:null}),e.focusedEditor=null,d.selection&&(d.selection.lastFocusBookmark=null))},0)}),r||(r=function(t){var n=e.activeEditor;n&&t.target.ownerDocument==document&&(n.selection&&t.target!=n.getBody()&&(n.selection.lastFocusBookmark=l(n.dom,n.lastRng)),t.target==document.body||u(t.target)||e.focusedEditor!=n||(n.fire("blur",{focusedEditor:null}),e.focusedEditor=null))},a.bind(document,"focusin",r)),d.inline&&!o&&(o=function(t){var n=e.activeEditor;if(n.inline&&!n.dom.isChildOf(t.target,n.getBody())){var i=n.selection.getRng();i.collapsed||(n.lastRng=i)}},a.bind(document,"mouseup",o))}),e.on("RemoveEditor",function(t){e.focusedEditor==t.editor&&(e.focusedEditor=null),e.activeEditor||(a.unbind(document,"selectionchange",i),a.unbind(document,"focusin",r),a.unbind(document,"mouseup",o),i=r=o=null)})}var i,r,o,a=e.DOM;return n.isEditorUIElement=function(e){return-1!==e.className.toString().indexOf("mce-")},n}),i("tinymce/EditorManager",["tinymce/Editor","tinymce/dom/DomQuery","tinymce/dom/DOMUtils","tinymce/util/URI","tinymce/Env","tinymce/util/Tools","tinymce/util/Observable","tinymce/util/I18n","tinymce/FocusManager"],function(e,t,n,i,r,o,a,s,l){function c(e){var t,n=f.editors;delete n[e.id];for(var i=0;i<n.length;i++)if(n[i]==e){n.splice(i,1),t=!0;break}return f.activeEditor==e&&(f.activeEditor=n[0]),f.focusedEditor==e&&(f.focusedEditor=null),t}function u(e){return e&&!(e.getContainer()||e.getBody()).parentNode&&(c(e),e.unbindAllNativeEvents(),e.destroy(!0),e=null),e}var d,f,m=n.DOM,p=o.explode,h=o.each,g=o.extend,v=0;return f={$:t,majorVersion:"4",minorVersion:"1.10",releaseDate:"2015-05-05",editors:[],i18n:s,activeEditor:null,setup:function(){var e,t,n,r,o=this,a="";if(t=document.location.href,/^[^:]+:\/\/\/?[^\/]+\//.test(t)&&(t=t.replace(/[\?#].*$/,"").replace(/[\/\\][^\/]+$/,""),/[\/\\]$/.test(t)||(t+="/")),n=window.tinymce||window.tinyMCEPreInit)e=n.base||n.baseURL,a=n.suffix;else{for(var s=document.getElementsByTagName("script"),c=0;c<s.length;c++)if(r=s[c].src,/tinymce(\.full|\.jquery|)(\.min|\.dev|)\.js/.test(r)){-1!=r.indexOf(".min")&&(a=".min"),e=r.substring(0,r.lastIndexOf("/"));break}!e&&document.currentScript&&(-1!=(r=document.currentScript.src).indexOf(".min")&&(a=".min"),e=r.substring(0,r.lastIndexOf("/")))}o.baseURL=new i(t).toAbsolute(e),o.documentBaseURL=t,o.baseURI=new i(o.baseURL),o.suffix=a,o.focusManager=new l(o)},init:function(t){function n(e){var t=e.id;return t||(t=(t=e.name)&&!m.get(t)?e.name:m.uniqueId(),e.setAttribute("id",t)),t}function i(t,n,i){if(!u(s.get(t))){var r=new e(t,n,s);r.targetElm=r.targetElm||i,l.push(r),r.render()}}function r(e){var n=t[e];if(n)return n.apply(s,Array.prototype.slice.call(arguments,2))}function o(e,t){return t.constructor===RegExp?t.test(e.className):m.hasClass(e,t)}function a(){var e,s;if(m.unbind(window,"ready",a),r("onpageload"),t.types)h(t.types,function(e){h(m.select(e.selector),function(r){i(n(r),g({},t,e),r)})});else if(t.selector)h(m.select(t.selector),function(e){i(n(e),t,e)});else{switch(t.target&&i(n(t.target),t),t.mode){case"exact":(e=t.elements||"").length>0&&h(p(e),function(e){var n;(n=m.get(e))?i(e,t,n):h(document.forms,function(n){h(n.elements,function(n){n.name===e&&(e="mce_editor_"+v++,m.setAttrib(n,"id",e),i(e,t,n))})})});break;case"textareas":case"specific_textareas":h(m.select("textarea"),function(e){t.editor_deselector&&o(e,t.editor_deselector)||t.editor_selector&&!o(e,t.editor_selector)||i(n(e),t,e)})}t.oninit&&(e=s=0,h(l,function(t){s++,t.initialized?e++:t.on("init",function(){++e==s&&r("oninit")}),e==s&&r("oninit")}))}}var s=this,l=[];s.settings=t,m.bind(window,"ready",a)},get:function(e){return arguments.length?e in this.editors?this.editors[e]:null:this.editors},add:function(e){var t=this,n=t.editors;return n[e.id]=e,n.push(e),t.activeEditor=e,t.fire("AddEditor",{editor:e}),d||(d=function(){t.fire("BeforeUnload")},m.bind(window,"beforeunload",d)),e},createEditor:function(t,n){return this.add(new e(t,n,this))},remove:function(e){var t,n,i=this,r=i.editors;{if(e)return"string"==typeof e?(e=e.selector||e,void h(m.select(e),function(e){(n=r[e.id])&&i.remove(n)})):(n=e,r[n.id]?(c(n)&&i.fire("RemoveEditor",{editor:n}),r.length||m.unbind(window,"beforeunload",d),n.remove(),n):null);for(t=r.length-1;t>=0;t--)i.remove(r[t])}},execCommand:function(t,n,i){var r=this,o=r.get(i);switch(t){case"mceAddEditor":return r.get(i)||new e(i,r.settings,r).render(),!0;case"mceRemoveEditor":return o&&o.remove(),!0;case"mceToggleEditor":return o?(o.isHidden()?o.show():o.hide(),!0):(r.execCommand("mceAddEditor",0,i),!0)}return!!r.activeEditor&&r.activeEditor.execCommand(t,n,i)},triggerSave:function(){h(this.editors,function(e){e.save()})},addI18n:function(e,t){s.add(e,t)},translate:function(e){return s.translate(e)},setActive:function(e){var t=this.activeEditor;this.activeEditor!=e&&(t&&t.fire("deactivate",{relatedTarget:e}),e.fire("activate",{relatedTarget:t})),this.activeEditor=e}},g(f,a),f.setup(),window.tinymce=window.tinyMCE=f,f}),i("tinymce/LegacyInput",["tinymce/EditorManager","tinymce/util/Tools"],function(e,t){var n=t.each,i=t.explode;e.on("AddEditor",function(e){var t=e.editor;t.on("preInit",function(){function e(e,t){n(t,function(t,n){t&&a.setStyle(e,n,t)}),a.rename(e,"span")}var r,o,a,s=t.settings;s.inline_styles&&(o=i(s.font_size_legacy_values),r={font:function(t,n){e(n,{backgroundColor:n.style.backgroundColor,color:n.color,fontFamily:n.face,fontSize:o[parseInt(n.size,10)-1]})},u:function(n,i){"html4"===t.settings.schema&&e(i,{textDecoration:"underline"})},strike:function(t,n){e(n,{textDecoration:"line-through"})}},t.on("PreProcess SetContent",function(e){a=t.dom,s.convert_fonts_to_spans&&n(a.select("font,u,strike",e.node),function(e){r[e.nodeName.toLowerCase()](a,e)})}))})})}),i("tinymce/util/XHR",["tinymce/util/Observable","tinymce/util/Tools"],function(e,t){var n={send:function(e){function t(){!e.async||4==i.readyState||r++>1e4?(e.success&&r<1e4&&200==i.status?e.success.call(e.success_scope,""+i.responseText,i,e):e.error&&e.error.call(e.error_scope,r>1e4?"TIMED_OUT":"GENERAL",i,e),i=null):setTimeout(t,10)}var i,r=0;if(e.scope=e.scope||this,e.success_scope=e.success_scope||e.scope,e.error_scope=e.error_scope||e.scope,e.async=!1!==e.async,e.data=e.data||"",i=new XMLHttpRequest){if(i.overrideMimeType&&i.overrideMimeType(e.content_type),i.open(e.type||(e.data?"POST":"GET"),e.url,e.async),e.crossDomain&&(i.withCredentials=!0),e.content_type&&i.setRequestHeader("Content-Type",e.content_type),i.setRequestHeader("X-Requested-With","XMLHttpRequest"),(i=n.fire("beforeSend",{xhr:i,settings:e}).xhr).send(e.data),!e.async)return t();setTimeout(t,10)}}};return t.extend(n,e),n}),i("tinymce/util/JSON",[],function(){function e(t,n){var i,r,o,a;if(n=n||'"',null===t)return"null";if("string"==(o=typeof t))return r="\bb\tt\nn\ff\rr\"\"''\\\\",n+t.replace(/([\u0080-\uFFFF\x00-\x1f\"\'\\])/g,function(e,t){return'"'===n&&"'"===e?e:(i=r.indexOf(t))+1?"\\"+r.charAt(i+1):(e=t.charCodeAt().toString(16),"\\u"+"0000".substring(e.length)+e)})+n;if("object"==o){if(t.hasOwnProperty&&"[object Array]"===Object.prototype.toString.call(t)){for(i=0,r="[";i<t.length;i++)r+=(i>0?",":"")+e(t[i],n);return r+"]"}r="{";for(a in t)t.hasOwnProperty(a)&&(r+="function"!=typeof t[a]?(r.length>1?","+n:n)+a+n+":"+e(t[a],n):"");return r+"}"}return""+t}return{serialize:e,parse:function(e){try{return window[String.fromCharCode(101)+"val"]("("+e+")")}catch(e){}}}}),i("tinymce/util/JSONRequest",["tinymce/util/JSON","tinymce/util/XHR","tinymce/util/Tools"],function(e,t,n){function i(e){this.settings=r({},e),this.count=0}var r=n.extend;return i.sendRPC=function(e){return(new i).send(e)},i.prototype={send:function(n){var i=n.error,o=n.success;(n=r(this.settings,n)).success=function(t,r){void 0===(t=e.parse(t))&&(t={error:"JSON Parse error."}),t.error?i.call(n.error_scope||n.scope,t.error,r):o.call(n.success_scope||n.scope,t.result)},n.error=function(e,t){i&&i.call(n.error_scope||n.scope,e,t)},n.data=e.serialize({id:n.id||"c"+this.count++,method:n.method,params:n.params}),n.content_type="application/json",t.send(n)}},i}),i("tinymce/util/JSONP",["tinymce/dom/DOMUtils"],function(e){return{callbacks:{},count:0,send:function(n){var i=this,r=e.DOM,o=n.count!==t?n.count:i.count,a="tinymce_jsonp_"+o;i.callbacks[o]=function(e){r.remove(a),delete i.callbacks[o],n.callback(e)},r.add(r.doc.body,"script",{id:a,src:n.url,type:"text/javascript"}),i.count++}}}),i("tinymce/util/LocalStorage",[],function(){function e(){a=[];for(var e in o)a.push(e);i.length=a.length}function n(){var t,n="";if(l){for(var i in o)t=o[i],n+=(n?",":"")+i.length.toString(32)+","+i+","+t.length.toString(32)+","+t;r.setAttribute(s,n);try{r.save(s)}catch(e){}e()}}var i,r,o,a,s,l;try{if(window.localStorage)return localStorage}catch(e){}return s="tinymce",r=document.documentElement,(l=!!r.addBehavior)&&r.addBehavior("#default#userData"),i={key:function(e){return a[e]},getItem:function(e){return e in o?o[e]:null},setItem:function(e,t){o[e]=""+t,n()},removeItem:function(e){delete o[e],n()},clear:function(){o={},n()}},function(){function n(e){var n,i;return-1===(i=e!==t?u+e:a.indexOf(",",u))||i>a.length?null:(n=a.substring(u,i),u=i+1,n)}var i,a,c,u=0;if(o={},l){r.load(s),a=r.getAttribute(s)||"";do{var d=n();if(null===d)break;if(null!==(i=n(parseInt(d,32)||0))){if(null===(d=n()))break;c=n(parseInt(d,32)||0),i&&(o[i]=c)}}while(null!==i);e()}}(),i}),i("tinymce/Compat",["tinymce/dom/DOMUtils","tinymce/dom/EventUtils","tinymce/dom/ScriptLoader","tinymce/AddOnManager","tinymce/util/Tools","tinymce/Env"],function(e,t,n,i,r,o){var a=window.tinymce;return a.DOM=e.DOM,a.ScriptLoader=n.ScriptLoader,a.PluginManager=i.PluginManager,a.ThemeManager=i.ThemeManager,a.dom=a.dom||{},a.dom.Event=t.Event,r.each(r,function(e,t){a[t]=e}),r.each("isOpera isWebKit isIE isGecko isMac".split(" "),function(e){a[e]=o[e.substr(2).toLowerCase()]}),{}}),i("tinymce/ui/Layout",["tinymce/util/Class","tinymce/util/Tools"],function(e,t){return e.extend({Defaults:{firstControlClass:"first",lastControlClass:"last"},init:function(e){this.settings=t.extend({},this.Defaults,e)},preRender:function(e){e.addClass(this.settings.containerClass,"body")},applyClasses:function(e){var t,n,i,r=this.settings;t=e.items().filter(":visible"),n=r.firstControlClass,i=r.lastControlClass,t.each(function(e){e.removeClass(n).removeClass(i),r.controlClass&&e.addClass(r.controlClass)}),t.eq(0).addClass(n),t.eq(-1).addClass(i)},renderHtml:function(e){var t,n=this.settings,i="";return(t=e.items()).eq(0).addClass(n.firstControlClass),t.eq(-1).addClass(n.lastControlClass),t.each(function(e){n.controlClass&&e.addClass(n.controlClass),i+=e.renderHtml()}),i},recalc:function(){},postRender:function(){}})}),i("tinymce/ui/AbsoluteLayout",["tinymce/ui/Layout"],function(e){return e.extend({Defaults:{containerClass:"abs-layout",controlClass:"abs-layout-item"},recalc:function(e){e.items().filter(":visible").each(function(e){var t=e.settings;e.layoutRect({x:t.x,y:t.y,w:t.w,h:t.h}),e.recalc&&e.recalc()})},renderHtml:function(e){return'<div id="'+e._id+'-absend" class="'+e.classPrefix+'abs-end"></div>'+this._super(e)}})}),i("tinymce/ui/Tooltip",["tinymce/ui/Control","tinymce/ui/Movable"],function(e,t){return e.extend({Mixins:[t],Defaults:{classes:"widget tooltip tooltip-n"},text:function(e){var t=this;return void 0!==e?(t._value=e,t._rendered&&(t.getEl().lastChild.innerHTML=t.encode(e)),t):t._value},renderHtml:function(){var e=this,t=e.classPrefix;return'<div id="'+e._id+'" class="'+e.classes()+'" role="presentation"><div class="'+t+'tooltip-arrow"></div><div class="'+t+'tooltip-inner">'+e.encode(e._text)+"</div></div>"},repaint:function(){var e,t,n=this;e=n.getEl().style,t=n._layoutRect,e.left=t.x+"px",e.top=t.y+"px",e.zIndex=131070}})}),i("tinymce/ui/Widget",["tinymce/ui/Control","tinymce/ui/Tooltip"],function(e,t){var n,i=e.extend({init:function(e){var t=this;t._super(e),e=t.settings,t.canFocus=!0,e.tooltip&&!1!==i.tooltips&&(t.on("mouseenter",function(n){var i=t.tooltip().moveTo(-65535);if(n.control==t){var r=i.text(e.tooltip).show().testMoveRel(t.getEl(),["bc-tc","bc-tl","bc-tr"]);i.toggleClass("tooltip-n","bc-tc"==r),i.toggleClass("tooltip-nw","bc-tl"==r),i.toggleClass("tooltip-ne","bc-tr"==r),i.moveRel(t.getEl(),r)}else i.hide()}),t.on("mouseleave mousedown click",function(){t.tooltip().hide()})),t.aria("label",e.ariaLabel||e.tooltip)},tooltip:function(){return n||(n=new t({type:"tooltip"})).renderTo(),n},active:function(e){var t=this;return void 0!==e&&(t.aria("pressed",e),t.toggleClass("active",e)),t._super(e)},disabled:function(e){var t=this;return void 0!==e&&(t.aria("disabled",e),t.toggleClass("disabled",e)),t._super(e)},postRender:function(){var e=this,t=e.settings;e._rendered=!0,e._super(),e.parent()||!t.width&&!t.height||(e.initLayoutRect(),e.repaint()),t.autofocus&&e.focus()},remove:function(){this._super(),n&&(n.remove(),n=null)}});return i}),i("tinymce/ui/Button",["tinymce/ui/Widget"],function(e){return e.extend({Defaults:{classes:"widget btn",role:"button"},init:function(e){var t,n=this;n.on("click mousedown",function(e){e.preventDefault()}),n._super(e),t=e.size,e.subtype&&n.addClass(e.subtype),t&&n.addClass("btn-"+t)},icon:function(e){var t=this,n=t.classPrefix;if(void 0===e)return t.settings.icon;if(t.settings.icon=e,e=e?n+"ico "+n+"i-"+t.settings.icon:"",t._rendered){var i=t.getEl().firstChild,r=i.getElementsByTagName("i")[0];e?(r&&r==i.firstChild||(r=document.createElement("i"),i.insertBefore(r,i.firstChild)),r.className=e):r&&i.removeChild(r),t.text(t._text)}return t},repaint:function(){var e=this.getEl().firstChild.style;e.width=e.height="100%",this._super()},text:function(e){var t=this;if(t._rendered){var n=t.getEl().lastChild.lastChild;n&&(n.data=t.translate(e))}return t._super(e)},renderHtml:function(){var e,t=this,n=t._id,i=t.classPrefix,r=t.settings.icon;return(e=t.settings.image)?(r="none","string"!=typeof e&&(e=window.getSelection?e[0]:e[1]),e=" style=\"background-image: url('"+e+"')\""):e="",r=t.settings.icon?i+"ico "+i+"i-"+r:"",'<div id="'+n+'" class="'+t.classes()+'" tabindex="-1" aria-labelledby="'+n+'"><button role="presentation" type="button" tabindex="-1">'+(r?'<i class="'+r+'"'+e+"></i>":"")+(t._text?(r?" ":"")+t.encode(t._text):"")+"</button></div>"}})}),i("tinymce/ui/ButtonGroup",["tinymce/ui/Container"],function(e){return e.extend({Defaults:{defaultType:"button",role:"group"},renderHtml:function(){var e=this,t=e._layout;return e.addClass("btn-group"),e.preRender(),t.preRender(e),'<div id="'+e._id+'" class="'+e.classes()+'"><div id="'+e._id+'-body">'+(e.settings.html||"")+t.renderHtml(e)+"</div></div>"}})}),i("tinymce/ui/Checkbox",["tinymce/ui/Widget"],function(e){return e.extend({Defaults:{classes:"checkbox",role:"checkbox",checked:!1},init:function(e){var t=this;t._super(e),t.on("click mousedown",function(e){e.preventDefault()}),t.on("click",function(e){e.preventDefault(),t.disabled()||t.checked(!t.checked())}),t.checked(t.settings.checked)},checked:function(e){var t=this;return void 0!==e?(e?t.addClass("checked"):t.removeClass("checked"),t._checked=e,t.aria("checked",e),t):t._checked},value:function(e){return this.checked(e)},renderHtml:function(){var e=this,t=e._id,n=e.classPrefix;return'<div id="'+t+'" class="'+e.classes()+'" unselectable="on" aria-labelledby="'+t+'-al" tabindex="-1"><i class="'+n+"ico "+n+'i-checkbox"></i><span id="'+t+'-al" class="'+n+'label">'+e.encode(e._text)+"</span></div>"}})}),i("tinymce/ui/ComboBox",["tinymce/ui/Widget","tinymce/ui/Factory","tinymce/ui/DomUtils"],function(e,t,n){return e.extend({init:function(e){var t=this;t._super(e),t.addClass("combobox"),t.subinput=!0,t.ariaTarget="inp",(e=t.settings).menu=e.menu||e.values,e.menu&&(e.icon="caret"),t.on("click",function(n){for(var i=n.target,r=t.getEl();i&&i!=r;)i.id&&-1!=i.id.indexOf("-open")&&(t.fire("action"),e.menu&&(t.showMenu(),n.aria&&t.menu.items()[0].focus())),i=i.parentNode}),t.on("keydown",function(e){"INPUT"==e.target.nodeName&&13==e.keyCode&&t.parents().reverse().each(function(n){if(e.preventDefault(),t.fire("change"),n.hasEventListeners("submit")&&n.toJSON)return n.fire("submit",{data:n.toJSON()}),!1})}),e.placeholder&&(t.addClass("placeholder"),t.on("focusin",function(){t._hasOnChange||(n.on(t.getEl("inp"),"change",function(){t.fire("change")}),t._hasOnChange=!0),t.hasClass("placeholder")&&(t.getEl("inp").value="",t.removeClass("placeholder"))}),t.on("focusout",function(){0===t.value().length&&(t.getEl("inp").value=e.placeholder,t.addClass("placeholder"))}))},showMenu:function(){var e,n=this,i=n.settings;n.menu||((e=i.menu||[]).length?e={type:"menu",items:e}:e.type=e.type||"menu",n.menu=t.create(e).parent(n).renderTo(n.getContainerElm()),n.fire("createmenu"),n.menu.reflow(),n.menu.on("cancel",function(e){e.control===n.menu&&n.focus()}),n.menu.on("show hide",function(e){e.control.items().each(function(e){e.active(e.value()==n.value())})}).fire("show"),n.menu.on("select",function(e){n.value(e.control.value())}),n.on("focusin",function(e){"INPUT"==e.target.tagName.toUpperCase()&&n.menu.hide()}),n.aria("expanded",!0)),n.menu.show(),n.menu.layoutRect({w:n.layoutRect().w}),n.menu.moveRel(n.getEl(),n.isRtl()?["br-tr","tr-br"]:["bl-tl","tl-bl"])},value:function(e){var t=this;return void 0!==e?(t._value=e,t.removeClass("placeholder"),t._rendered&&(t.getEl("inp").value=e),t):t._rendered?(e=t.getEl("inp").value)!=t.settings.placeholder?e:"":t._value},disabled:function(e){var t=this;return t._rendered&&void 0!==e&&(t.getEl("inp").disabled=e),t._super(e)},focus:function(){this.getEl("inp").focus()},repaint:function(){var e,t,i=this,r=i.getEl(),o=i.getEl("open"),a=i.layoutRect();e=o?a.w-n.getSize(o).width-10:a.w-10;var s=document;return s.all&&(!s.documentMode||s.documentMode<=8)&&(t=i.layoutRect().h-2+"px"),n.css(r.firstChild,{width:e,lineHeight:t}),i._super(),i},postRender:function(){var e=this;return n.on(this.getEl("inp"),"change",function(){e.fire("change")}),e._super()},remove:function(){n.off(this.getEl("inp")),this._super()},renderHtml:function(){var e,t,n=this,i=n._id,r=n.settings,o=n.classPrefix,a=r.value||r.placeholder||"",s="",l="";return"spellcheck"in r&&(l+=' spellcheck="'+r.spellcheck+'"'),r.maxLength&&(l+=' maxlength="'+r.maxLength+'"'),r.size&&(l+=' size="'+r.size+'"'),r.subtype&&(l+=' type="'+r.subtype+'"'),n.disabled()&&(l+=' disabled="disabled"'),(e=r.icon)&&"caret"!=e&&(e=o+"ico "+o+"i-"+r.icon),t=n._text,(e||t)&&(s='<div id="'+i+'-open" class="'+o+"btn "+o+'open" tabIndex="-1" role="button"><button id="'+i+'-action" type="button" hidefocus="1" tabindex="-1">'+("caret"!=e?'<i class="'+e+'"></i>':'<i class="'+o+'caret"></i>')+(t?(e?" ":"")+t:"")+"</button></div>",n.addClass("has-open")),'<div id="'+i+'" class="'+n.classes()+'"><input id="'+i+'-inp" class="'+o+"textbox "+o+'placeholder" value="'+a+'" hidefocus="1"'+l+" />"+s+"</div>"}})}),i("tinymce/ui/ColorBox",["tinymce/ui/ComboBox"],function(e){return e.extend({init:function(e){var t=this;e.spellcheck=!1,e.onaction&&(e.icon="none"),t._super(e),t.addClass("colorbox"),t.on("change keyup postrender",function(){t.repaintColor(t.value())})},repaintColor:function(e){var t=this.getEl().getElementsByTagName("i")[0];if(t)try{t.style.background=e}catch(e){}},value:function(e){var t=this;return void 0!==e&&t._rendered&&t.repaintColor(e),t._super(e)}})}),i("tinymce/ui/PanelButton",["tinymce/ui/Button","tinymce/ui/FloatPanel"],function(e,t){return e.extend({showPanel:function(){var e=this,n=e.settings;if(e.active(!0),e.panel)e.panel.show();else{var i=n.panel;i.type&&(i={layout:"grid",items:i}),i.role=i.role||"dialog",i.popover=!0,i.autohide=!0,i.ariaRoot=!0,e.panel=new t(i).on("hide",function(){e.active(!1)}).on("cancel",function(t){t.stopPropagation(),e.focus(),e.hidePanel()}).parent(e).renderTo(e.getContainerElm()),e.panel.fire("show"),e.panel.reflow()}e.panel.moveRel(e.getEl(),n.popoverAlign||(e.isRtl()?["bc-tr","bc-tc"]:["bc-tl","bc-tc"]))},hidePanel:function(){var e=this;e.panel&&e.panel.hide()},postRender:function(){var e=this;return e.aria("haspopup",!0),e.on("click",function(t){t.control===e&&(e.panel&&e.panel.visible()?e.hidePanel():(e.showPanel(),e.panel.focus(!!t.aria)))}),e._super()},remove:function(){return this.panel&&(this.panel.remove(),this.panel=null),this._super()}})}),i("tinymce/ui/ColorButton",["tinymce/ui/PanelButton","tinymce/dom/DOMUtils"],function(e,t){var n=t.DOM;return e.extend({init:function(e){this._super(e),this.addClass("colorbutton")},color:function(e){return e?(this._color=e,this.getEl("preview").style.backgroundColor=e,this):this._color},resetColor:function(){return this._color=null,this.getEl("preview").style.backgroundColor=null,this},renderHtml:function(){var e=this,t=e._id,n=e.classPrefix,i=e.settings.icon?n+"ico "+n+"i-"+e.settings.icon:"",r=e.settings.image?" style=\"background-image: url('"+e.settings.image+"')\"":"";return'<div id="'+t+'" class="'+e.classes()+'" role="button" tabindex="-1" aria-haspopup="true"><button role="presentation" hidefocus="1" type="button" tabindex="-1">'+(i?'<i class="'+i+'"'+r+"></i>":"")+'<span id="'+t+'-preview" class="'+n+'preview"></span>'+(e._text?(i?" ":"")+e._text:"")+'</button><button type="button" class="'+n+'open" hidefocus="1" tabindex="-1"> <i class="'+n+'caret"></i></button></div>'},postRender:function(){var e=this,t=e.settings.onclick;return e.on("click",function(i){i.aria&&"down"==i.aria.key||i.control!=e||n.getParent(i.target,"."+e.classPrefix+"open")||(i.stopImmediatePropagation(),t.call(e,i))}),delete e.settings.onclick,e._super()}})}),i("tinymce/util/Color",[],function(){var e=Math.min,t=Math.max,n=Math.round;return function(i){function r(i,r,o){var a,s,l,c,u,d;return a=0,s=0,l=0,i/=255,r/=255,o/=255,u=e(i,e(r,o)),d=t(i,t(r,o)),u==d?(l=u,{h:0,s:0,v:100*l}):(c=i==u?r-o:o==u?i-r:o-i,a=i==u?3:o==u?1:5,a=60*(a-c/(d-u)),s=(d-u)/d,l=d,{h:n(a),s:n(100*s),v:n(100*l)})}function o(i,r,o){var a,s,d,f;if(i=(parseInt(i,10)||0)%360,r=parseInt(r,10)/100,o=parseInt(o,10)/100,r=t(0,e(r,1)),o=t(0,e(o,1)),0!==r){switch(a=i/60,s=o*r,d=s*(1-Math.abs(a%2-1)),f=o-s,Math.floor(a)){case 0:l=s,c=d,u=0;break;case 1:l=d,c=s,u=0;break;case 2:l=0,c=s,u=d;break;case 3:l=0,c=d,u=s;break;case 4:l=d,c=0,u=s;break;case 5:l=s,c=0,u=d;break;default:l=c=u=0}l=n(255*(l+f)),c=n(255*(c+f)),u=n(255*(u+f))}else l=c=u=n(255*o)}function a(e){var t;return"object"==typeof e?"r"in e?(l=e.r,c=e.g,u=e.b):"v"in e&&o(e.h,e.s,e.v):(t=/rgb\s*\(\s*([0-9]+)\s*,\s*([0-9]+)\s*,\s*([0-9]+)[^\)]*\)/gi.exec(e))?(l=parseInt(t[1],10),c=parseInt(t[2],10),u=parseInt(t[3],10)):(t=/#([0-F]{2})([0-F]{2})([0-F]{2})/gi.exec(e))?(l=parseInt(t[1],16),c=parseInt(t[2],16),u=parseInt(t[3],16)):(t=/#([0-F])([0-F])([0-F])/gi.exec(e))&&(l=parseInt(t[1]+t[1],16),c=parseInt(t[2]+t[2],16),u=parseInt(t[3]+t[3],16)),l=l<0?0:l>255?255:l,c=c<0?0:c>255?255:c,u=u<0?0:u>255?255:u,s}var s=this,l=0,c=0,u=0;i&&a(i),s.toRgb=function(){return{r:l,g:c,b:u}},s.toHsv=function(){return r(l,c,u)},s.toHex=function(){function e(e){return(e=parseInt(e,10).toString(16)).length>1?e:"0"+e}return"#"+e(l)+e(c)+e(u)},s.parse=a}}),i("tinymce/ui/ColorPicker",["tinymce/ui/Widget","tinymce/ui/DragHelper","tinymce/ui/DomUtils","tinymce/util/Color"],function(e,t,n,i){return e.extend({Defaults:{classes:"widget colorpicker"},init:function(e){this._super(e)},postRender:function(){function e(e,t){var i,r,o=n.getPos(e);return i=t.pageX-o.x,r=t.pageY-o.y,i=Math.max(0,Math.min(i/e.clientWidth,1)),r=Math.max(0,Math.min(r/e.clientHeight,1)),{x:i,y:r}}function r(e,t){var r=(360-e.h)/360;n.css(c,{top:100*r+"%"}),t||n.css(d,{left:e.s+"%",top:100-e.v+"%"}),u.style.background=new i({s:100,v:100,h:e.h}).toHex(),f.color().parse({s:e.s,v:e.v,h:e.h})}function o(t){var n;n=e(u,t),s.s=100*n.x,s.v=100*(1-n.y),r(s),f.fire("change")}function a(t){var n;n=e(l,t),(s=m.toHsv()).h=360*(1-n.y),r(s,!0),f.fire("change")}var s,l,c,u,d,f=this,m=f.color();l=f.getEl("h"),c=f.getEl("hp"),u=f.getEl("sv"),d=f.getEl("svp"),f._repaint=function(){r(s=m.toHsv())},f._super(),f._svdraghelper=new t(f._id+"-sv",{start:o,drag:o}),f._hdraghelper=new t(f._id+"-h",{start:a,drag:a}),f._repaint()},rgb:function(){return this.color().toRgb()},value:function(e){var t=this;if(!arguments.length)return t.color().toHex();t.color().parse(e),t._rendered&&t._repaint()},color:function(){return this._color||(this._color=new i),this._color},renderHtml:function(){var e,t=this,n=t._id,i=t.classPrefix,r="#ff0000,#ff0080,#ff00ff,#8000ff,#0000ff,#0080ff,#00ffff,#00ff80,#00ff00,#80ff00,#ffff00,#ff8000,#ff0000";return e='<div id="'+n+'-h" class="'+i+'colorpicker-h" style="'+("background: -ms-linear-gradient(top,"+r+");background: linear-gradient(to bottom,"+r+");")+'">'+function(){var e,t,n,o,a="";for(n="filter:progid:DXImageTransform.Microsoft.gradient(GradientType=0,startColorstr=",e=0,t=(o=r.split(",")).length-1;e<t;e++)a+='<div class="'+i+'colorpicker-h-chunk" style="height:'+100/t+"%;"+n+o[e]+",endColorstr="+o[e+1]+");-ms-"+n+o[e]+",endColorstr="+o[e+1]+')"></div>';return a}()+'<div id="'+n+'-hp" class="'+i+'colorpicker-h-marker"></div></div>','<div id="'+n+'" class="'+t.classes()+'"><div id="'+n+'-sv" class="'+i+'colorpicker-sv"><div class="'+i+'colorpicker-overlay1"><div class="'+i+'colorpicker-overlay2"><div id="'+n+'-svp" class="'+i+'colorpicker-selector1"><div class="'+i+'colorpicker-selector2"></div></div></div></div></div>'+e+"</div>"}})}),i("tinymce/ui/Path",["tinymce/ui/Widget"],function(e){return e.extend({init:function(e){var t=this;e.delimiter||(e.delimiter="»"),t._super(e),t.addClass("path"),t.canFocus=!0,t.on("click",function(e){var n;(n=e.target.getAttribute("data-index"))&&t.fire("select",{value:t.data()[n],index:n})})},focus:function(){var e=this;return e.getEl().firstChild.focus(),e},data:function(e){var t=this;return void 0!==e?(t._data=e,t.update(),t):t._data},update:function(){this.innerHtml(this._getPathHtml())},postRender:function(){var e=this;e._super(),e.data(e.settings.data)},renderHtml:function(){var e=this;return'<div id="'+e._id+'" class="'+e.classes()+'">'+e._getPathHtml()+"</div>"},_getPathHtml:function(){var e,t,n=this,i=n._data||[],r="",o=n.classPrefix;for(e=0,t=i.length;e<t;e++)r+=(e>0?'<div class="'+o+'divider" aria-hidden="true"> '+n.settings.delimiter+" </div>":"")+'<div role="button" class="'+o+"path-item"+(e==t-1?" "+o+"last":"")+'" data-index="'+e+'" tabindex="-1" id="'+n._id+"-"+e+'" aria-level="'+e+'">'+i[e].name+"</div>";return r||(r='<div class="'+o+'path-item"> </div>'),r}})}),i("tinymce/ui/ElementPath",["tinymce/ui/Path","tinymce/EditorManager"],function(e,t){return e.extend({postRender:function(){function e(e){if(1===e.nodeType){if("BR"==e.nodeName||e.getAttribute("data-mce-bogus"))return!0;if("bookmark"===e.getAttribute("data-mce-type"))return!0}return!1}var n=this,i=t.activeEditor;return!1!==i.settings.elementpath&&(n.on("select",function(e){i.focus(),i.selection.select(this.data()[e.index].element),i.nodeChanged()}),i.on("nodeChange",function(t){for(var r=[],o=t.parents,a=o.length;a--;)if(1==o[a].nodeType&&!e(o[a])){var s=i.fire("ResolveName",{name:o[a].nodeName.toLowerCase(),target:o[a]});if(s.isDefaultPrevented()||r.push({name:s.name,element:o[a]}),s.isPropagationStopped())break}n.data(r)})),n._super()}})}),i("tinymce/ui/FormItem",["tinymce/ui/Container"],function(e){return e.extend({Defaults:{layout:"flex",align:"center",defaults:{flex:1}},renderHtml:function(){var e=this,t=e._layout,n=e.classPrefix;return e.addClass("formitem"),t.preRender(e),'<div id="'+e._id+'" class="'+e.classes()+'" hidefocus="1" tabindex="-1">'+(e.settings.title?'<div id="'+e._id+'-title" class="'+n+'title">'+e.settings.title+"</div>":"")+'<div id="'+e._id+'-body" class="'+e.classes("body")+'">'+(e.settings.html||"")+t.renderHtml(e)+"</div></div>"}})}),i("tinymce/ui/Form",["tinymce/ui/Container","tinymce/ui/FormItem","tinymce/util/Tools"],function(e,t,n){return e.extend({Defaults:{containerCls:"form",layout:"flex",direction:"column",align:"stretch",flex:1,padding:20,labelGap:30,spacing:10,callbacks:{submit:function(){this.submit()}}},preRender:function(){var e=this,i=e.items();e.settings.formItemDefaults||(e.settings.formItemDefaults={layout:"flex",autoResize:"overflow",defaults:{flex:1}}),i.each(function(i){var r,o=i.settings.label;o&&((r=new t(n.extend({items:{type:"label",id:i._id+"-l",text:o,flex:0,forId:i._id,disabled:i.disabled()}},e.settings.formItemDefaults))).type="formitem",i.aria("labelledby",i._id+"-l"),void 0===i.settings.flex&&(i.settings.flex=1),e.replace(i,r),r.add(i))})},recalcLabels:function(){var e,t,n=this,i=0,r=[];if(!1!==n.settings.labelGapCalc)for(("children"==n.settings.labelGapCalc?n.find("formitem"):n.items()).filter("formitem").each(function(e){var t=e.items()[0],n=t.getEl().clientWidth;i=n>i?n:i,r.push(t)}),t=n.settings.labelGap||0,e=r.length;e--;)r[e].settings.minWidth=i+t},visible:function(e){var t=this._super(e);return!0===e&&this._rendered&&this.recalcLabels(),t},submit:function(){return this.fire("submit",{data:this.toJSON()})},postRender:function(){var e=this;e._super(),e.recalcLabels(),e.fromJSON(e.settings.data)}})}),i("tinymce/ui/FieldSet",["tinymce/ui/Form"],function(e){return e.extend({Defaults:{containerCls:"fieldset",layout:"flex",direction:"column",align:"stretch",flex:1,padding:"25 15 5 15",labelGap:30,spacing:10,border:1},renderHtml:function(){var e=this,t=e._layout,n=e.classPrefix;return e.preRender(),t.preRender(e),'<fieldset id="'+e._id+'" class="'+e.classes()+'" hidefocus="1" tabindex="-1">'+(e.settings.title?'<legend id="'+e._id+'-title" class="'+n+'fieldset-title">'+e.settings.title+"</legend>":"")+'<div id="'+e._id+'-body" class="'+e.classes("body")+'">'+(e.settings.html||"")+t.renderHtml(e)+"</div></fieldset>"}})}),i("tinymce/ui/FilePicker",["tinymce/ui/ComboBox","tinymce/util/Tools"],function(e,t){return e.extend({init:function(e){var n,i,r,o=this,a=tinymce.activeEditor,s=a.settings;e.spellcheck=!1,(r=s.file_picker_types||s.file_browser_callback_types)&&(r=t.makeMap(r,/[, ]/)),r&&!r[e.filetype]||(!(i=s.file_picker_callback)||r&&!r[e.filetype]?!(i=s.file_browser_callback)||r&&!r[e.filetype]||(n=function(){i(o.getEl("inp").id,o.value(),e.filetype,window)}):n=function(){var n=o.fire("beforecall").meta;n=t.extend({filetype:e.filetype},n),i.call(a,function(e,t){o.value(e).fire("change",{meta:t})},o.value(),n)}),n&&(e.icon="browse",e.onaction=n),o._super(e)}})}),i("tinymce/ui/FitLayout",["tinymce/ui/AbsoluteLayout"],function(e){return e.extend({recalc:function(e){var t=e.layoutRect(),n=e.paddingBox();e.items().filter(":visible").each(function(e){e.layoutRect({x:n.left,y:n.top,w:t.innerW-n.right-n.left,h:t.innerH-n.top-n.bottom}),e.recalc&&e.recalc()})}})}),i("tinymce/ui/FlexLayout",["tinymce/ui/AbsoluteLayout"],function(e){return e.extend({recalc:function(e){var t,n,i,r,o,a,s,l,c,u,d,f,m,p,h,g,v,y,b,C,x,w,_,E,N,S,k,T,R,A,B,D,M,L,P,H,O,I=[],F=Math.max,z=Math.min;for(i=e.items().filter(":visible"),r=e.layoutRect(),o=e._paddingBox,a=e.settings,f=e.isRtl()?a.direction||"row-reversed":a.direction,s=a.align,l=e.isRtl()?a.pack||"end":a.pack,c=a.spacing||0,"row-reversed"!=f&&"column-reverse"!=f||(i=i.set(i.toArray().reverse()),f=f.split("-")[0]),"column"==f?(E="y",w="h",_="minH",N="maxH",k="innerH",S="top",T="deltaH",R="contentH",L="left",D="w",A="x",B="innerW",M="minW",P="right",H="deltaW",O="contentW"):(E="x",w="w",_="minW",N="maxW",k="innerW",S="left",T="deltaW",R="contentW",L="top",D="h",A="y",B="innerH",M="minH",P="bottom",H="deltaH",O="contentH"),d=r[k]-o[S]-o[S],x=u=0,t=0,n=i.length;t<n;t++)p=(m=i[t]).layoutRect(),h=m.settings.flex,d-=t<n-1?c:0,h>0&&(u+=h,p[N]&&I.push(m),p.flex=h),d-=p[_],(g=o[L]+p[M]+o[P])>x&&(x=g);if(b={},b[_]=d<0?r[_]-d+r[T]:r[k]-d+r[T],b[M]=x+r[H],b[R]=r[k]-d,b[O]=x,b.minW=z(b.minW,r.maxW),b.minH=z(b.minH,r.maxH),b.minW=F(b.minW,r.startMinWidth),b.minH=F(b.minH,r.startMinHeight),!r.autoResize||b.minW==r.minW&&b.minH==r.minH){for(y=d/u,t=0,n=I.length;t<n;t++)v=(p=(m=I[t]).layoutRect())[N],(g=p[_]+p.flex*y)>v?(d-=p[N]-p[_],u-=p.flex,p.flex=0,p.maxFlexSize=v):p.maxFlexSize=0;for(y=d/u,C=o[S],b={},0===u&&("end"==l?C=d+o[S]:"center"==l?(C=Math.round(r[k]/2-(r[k]-d)/2)+o[S])<0&&(C=o[S]):"justify"==l&&(C=o[S],c=Math.floor(d/(i.length-1)))),b[A]=o[L],t=0,n=i.length;t<n;t++)g=(p=(m=i[t]).layoutRect()).maxFlexSize||p[_],"center"===s?b[A]=Math.round(r[B]/2-p[D]/2):"stretch"===s?(b[D]=F(p[M]||0,r[B]-o[L]-o[P]),b[A]=o[L]):"end"===s&&(b[A]=r[B]-p[D]-o.top),p.flex>0&&(g+=p.flex*y),b[w]=g,b[E]=C,m.layoutRect(b),m.recalc&&m.recalc(),C+=g+c}else if(b.w=b.minW,b.h=b.minH,e.layoutRect(b),this.recalc(e),null===e._lastRect){var W=e.parent();W&&(W._lastRect=null,W.recalc())}}})}),i("tinymce/ui/FlowLayout",["tinymce/ui/Layout"],function(e){return e.extend({Defaults:{containerClass:"flow-layout",controlClass:"flow-layout-item",endClass:"break"},recalc:function(e){e.items().filter(":visible").each(function(e){e.recalc&&e.recalc()})}})}),i("tinymce/ui/FormatControls",["tinymce/ui/Control","tinymce/ui/Widget","tinymce/ui/FloatPanel","tinymce/util/Tools","tinymce/EditorManager","tinymce/Env"],function(e,t,n,i,r,o){function a(e){function t(t,n){return function(){var i=this;e.on("nodeChange",function(r){var o=e.formatter,a=null;s(r.parents,function(e){if(s(t,function(t){if(n?o.matchNode(e,n,{value:t.value})&&(a=t.value):o.matchNode(e,t.value)&&(a=t.value),a)return!1}),a)return!1}),i.value(a)})}}function i(e){for(var t=(e=e.replace(/;$/,"").split(";")).length;t--;)e[t]=e[t].split("=");return e}function r(t){return function(){function n(){return!!e.undoManager&&e.undoManager[t]()}var i=this;t="redo"==t?"hasRedo":"hasUndo",i.disabled(!n()),e.on("Undo Redo AddUndo TypingUndo ClearUndos",function(){i.disabled(!n())})}}function o(t){t.control&&(t=t.control.value()),t&&e.execCommand("mceToggleFormat",!1,t)}var a;a=function(){function t(e){var r=[];if(e)return s(e,function(e){var o={text:e.title,icon:e.icon};if(e.items)o.menu=t(e.items);else{var a=e.format||"custom"+n++;e.format||(e.name=a,i.push(e)),o.format=a,o.cmd=e.cmd}r.push(o)}),r}var n=0,i=[],r=[{title:"Headings",items:[{title:"Heading 1",format:"h1"},{title:"Heading 2",format:"h2"},{title:"Heading 3",format:"h3"},{title:"Heading 4",format:"h4"},{title:"Heading 5",format:"h5"},{title:"Heading 6",format:"h6"}]},{title:"Inline",items:[{title:"Bold",icon:"bold",format:"bold"},{title:"Italic",icon:"italic",format:"italic"},{title:"Underline",icon:"underline",format:"underline"},{title:"Strikethrough",icon:"strikethrough",format:"strikethrough"},{title:"Superscript",icon:"superscript",format:"superscript"},{title:"Subscript",icon:"subscript",format:"subscript"},{title:"Code",icon:"code",format:"code"}]},{title:"Blocks",items:[{title:"Paragraph",format:"p"},{title:"Blockquote",format:"blockquote"},{title:"Div",format:"div"},{title:"Pre",format:"pre"}]},{title:"Alignment",items:[{title:"Left",icon:"alignleft",format:"alignleft"},{title:"Center",icon:"aligncenter",format:"aligncenter"},{title:"Right",icon:"alignright",format:"alignright"},{title:"Justify",icon:"alignjustify",format:"alignjustify"}]}];return e.on("init",function(){s(i,function(t){e.formatter.register(t.name,t)})}),{type:"menu",items:t(e.settings.style_formats_merge?e.settings.style_formats?r.concat(e.settings.style_formats):r:e.settings.style_formats||r),onPostRender:function(t){e.fire("renderFormatsMenu",{control:t.control})},itemDefaults:{preview:!0,textStyle:function(){if(this.settings.format)return e.formatter.getCssText(this.settings.format)},onPostRender:function(){var t=this;t.parent().on("show",function(){var n,i;(n=t.settings.format)&&(t.disabled(!e.formatter.canApply(n)),t.active(e.formatter.match(n))),(i=t.settings.cmd)&&t.active(e.queryCommandState(i))})},onclick:function(){this.settings.format&&o(this.settings.format),this.settings.cmd&&e.execCommand(this.settings.cmd)}}}}(),s({bold:"Bold",italic:"Italic",underline:"Underline",strikethrough:"Strikethrough",subscript:"Subscript",superscript:"Superscript"},function(t,n){e.addButton(n,{tooltip:t,onPostRender:function(){var t=this;e.formatter?e.formatter.formatChanged(n,function(e){t.active(e)}):e.on("init",function(){e.formatter.formatChanged(n,function(e){t.active(e)})})},onclick:function(){o(n)}})}),s({outdent:["Decrease indent","Outdent"],indent:["Increase indent","Indent"],cut:["Cut","Cut"],copy:["Copy","Copy"],paste:["Paste","Paste"],help:["Help","mceHelp"],selectall:["Select all","SelectAll"],removeformat:["Clear formatting","RemoveFormat"],visualaid:["Visual aids","mceToggleVisualAid"],newdocument:["New document","mceNewDocument"]},function(t,n){e.addButton(n,{tooltip:t[0],cmd:t[1]})}),s({blockquote:["Blockquote","mceBlockQuote"],numlist:["Numbered list","InsertOrderedList"],bullist:["Bullet list","InsertUnorderedList"],subscript:["Subscript","Subscript"],superscript:["Superscript","Superscript"],alignleft:["Align left","JustifyLeft"],aligncenter:["Align center","JustifyCenter"],alignright:["Align right","JustifyRight"],alignjustify:["Justify","JustifyFull"]},function(t,n){e.addButton(n,{tooltip:t[0],cmd:t[1],onPostRender:function(){var t=this;e.formatter?e.formatter.formatChanged(n,function(e){t.active(e)}):e.on("init",function(){e.formatter.formatChanged(n,function(e){t.active(e)})})}})}),e.addButton("undo",{tooltip:"Undo",onPostRender:r("undo"),cmd:"undo"}),e.addButton("redo",{tooltip:"Redo",onPostRender:r("redo"),cmd:"redo"}),e.addMenuItem("newdocument",{text:"New document",icon:"newdocument",cmd:"mceNewDocument"}),e.addMenuItem("undo",{text:"Undo",icon:"undo",shortcut:"Meta+Z",onPostRender:r("undo"),cmd:"undo"}),e.addMenuItem("redo",{text:"Redo",icon:"redo",shortcut:"Meta+Y",onPostRender:r("redo"),cmd:"redo"}),e.addMenuItem("visualaid",{text:"Visual aids",selectable:!0,onPostRender:function(){var t=this;e.on("VisualAid",function(e){t.active(e.hasVisual)}),t.active(e.hasVisual)},cmd:"mceToggleVisualAid"}),s({cut:["Cut","Cut","Meta+X"],copy:["Copy","Copy","Meta+C"],paste:["Paste","Paste","Meta+V"],selectall:["Select all","SelectAll","Meta+A"],bold:["Bold","Bold","Meta+B"],italic:["Italic","Italic","Meta+I"],underline:["Underline","Underline"],strikethrough:["Strikethrough","Strikethrough"],subscript:["Subscript","Subscript"],superscript:["Superscript","Superscript"],removeformat:["Clear formatting","RemoveFormat"]},function(t,n){e.addMenuItem(n,{text:t[0],icon:n,shortcut:t[2],cmd:t[1]})}),e.on("mousedown",function(){n.hideAll()}),e.addButton("styleselect",{type:"menubutton",text:"Formats",menu:a}),e.addButton("formatselect",function(){var n=[],r=i(e.settings.block_formats||"Paragraph=p;Heading 1=h1;Heading 2=h2;Heading 3=h3;Heading 4=h4;Heading 5=h5;Heading 6=h6;Preformatted=pre");return s(r,function(t){n.push({text:t[0],value:t[1],textStyle:function(){return e.formatter.getCssText(t[1])}})}),{type:"listbox",text:r[0][0],values:n,fixedWidth:!0,onselect:o,onPostRender:t(n)}}),e.addButton("fontselect",function(){var n=[],r=i(e.settings.font_formats||"Andale Mono=andale mono,monospace;Arial=arial,helvetica,sans-serif;Arial Black=arial black,sans-serif;Book Antiqua=book antiqua,palatino,serif;Comic Sans MS=comic sans ms,sans-serif;Courier New=courier new,courier,monospace;Georgia=georgia,palatino,serif;Helvetica=helvetica,arial,sans-serif;Impact=impact,sans-serif;Symbol=symbol;Tahoma=tahoma,arial,helvetica,sans-serif;Terminal=terminal,monaco,monospace;Times New Roman=times new roman,times,serif;Trebuchet MS=trebuchet ms,geneva,sans-serif;Verdana=verdana,geneva,sans-serif;Webdings=webdings;Wingdings=wingdings,zapf dingbats");return s(r,function(e){n.push({text:{raw:e[0]},value:e[1],textStyle:-1==e[1].indexOf("dings")?"font-family:"+e[1]:""})}),{type:"listbox",text:"Font Family",tooltip:"Font Family",values:n,fixedWidth:!0,onPostRender:t(n,"fontname"),onselect:function(t){t.control.settings.value&&e.execCommand("FontName",!1,t.control.settings.value)}}}),e.addButton("fontsizeselect",function(){var n=[],i=e.settings.fontsize_formats||"8pt 10pt 12pt 14pt 18pt 24pt 36pt";return s(i.split(" "),function(e){var t=e,i=e,r=e.split("=");r.length>1&&(t=r[0],i=r[1]),n.push({text:t,value:i})}),{type:"listbox",text:"Font Sizes",tooltip:"Font Sizes",values:n,fixedWidth:!0,onPostRender:t(n,"fontsize"),onclick:function(t){t.control.settings.value&&e.execCommand("FontSize",!1,t.control.settings.value)}}}),e.addMenuItem("formats",{text:"Formats",menu:a})}var s=i.each;r.on("AddEditor",function(t){t.editor.rtl&&(e.rtl=!0),a(t.editor)}),e.translate=function(e){return r.translate(e)},t.tooltips=!o.iOS}),i("tinymce/ui/GridLayout",["tinymce/ui/AbsoluteLayout"],function(e){return e.extend({recalc:function(e){var t,n,i,r,o,a,s,l,c,u,d,f,m,p,h,g,v,y,b,C,x,w,_,E,N,S,k,T,R=e.settings,A=[],B=[];R=e.settings,i=e.items().filter(":visible"),r=e.layoutRect(),n=R.columns||Math.ceil(Math.sqrt(i.length)),t=Math.ceil(i.length/n),v=R.spacingH||R.spacing||0,y=R.spacingV||R.spacing||0,b=R.alignH||R.align,C=R.alignV||R.align,h=e._paddingBox,k="reverseRows"in R?R.reverseRows:e.isRtl(),b&&"string"==typeof b&&(b=[b]),C&&"string"==typeof C&&(C=[C]);for(u=0;u<n;u++)A.push(0);for(d=0;d<t;d++)B.push(0);for(d=0;d<t;d++)for(u=0;u<n&&(c=i[d*n+u]);u++)_=(l=c.layoutRect()).minW,E=l.minH,A[u]=_>A[u]?_:A[u],B[d]=E>B[d]?E:B[d];for(N=r.innerW-h.left-h.right,x=0,u=0;u<n;u++)x+=A[u]+(u>0?v:0),N-=(u>0?v:0)+A[u];for(S=r.innerH-h.top-h.bottom,w=0,d=0;d<t;d++)w+=B[d]+(d>0?y:0),S-=(d>0?y:0)+B[d];if(x+=h.left+h.right,w+=h.top+h.bottom,s={},s.minW=x+(r.w-r.innerW),s.minH=w+(r.h-r.innerH),s.contentW=s.minW-r.deltaW,s.contentH=s.minH-r.deltaH,s.minW=Math.min(s.minW,r.maxW),s.minH=Math.min(s.minH,r.maxH),s.minW=Math.max(s.minW,r.startMinWidth),s.minH=Math.max(s.minH,r.startMinHeight),!r.autoResize||s.minW==r.minW&&s.minH==r.minH){r.autoResize&&((s=e.layoutRect(s)).contentW=s.minW-r.deltaW,s.contentH=s.minH-r.deltaH);var D;D="start"==R.packV?0:S>0?Math.floor(S/t):0;var M=0,L=R.flexWidths;if(L)for(u=0;u<L.length;u++)M+=L[u];else M=n;var P=N/M;for(u=0;u<n;u++)A[u]+=L?L[u]*P:P;for(m=h.top,d=0;d<t;d++){for(f=h.left,a=B[d]+D,u=0;u<n&&(T=k?d*n+n-1-u:d*n+u,c=i[T]);u++)p=c.settings,l=c.layoutRect(),o=Math.max(A[u],l.startMinWidth),l.x=f,l.y=m,"center"==(g=p.alignH||(b?b[u]||b[0]:null))?l.x=f+o/2-l.w/2:"right"==g?l.x=f+o-l.w:"stretch"==g&&(l.w=o),"center"==(g=p.alignV||(C?C[u]||C[0]:null))?l.y=m+a/2-l.h/2:"bottom"==g?l.y=m+a-l.h:"stretch"==g&&(l.h=a),c.layoutRect(l),f+=o+v,c.recalc&&c.recalc();m+=a+y}}else if(s.w=s.minW,s.h=s.minH,e.layoutRect(s),this.recalc(e),null===e._lastRect){var H=e.parent();H&&(H._lastRect=null,H.recalc())}}})}),i("tinymce/ui/Iframe",["tinymce/ui/Widget"],function(e){return e.extend({renderHtml:function(){var e=this;return e.addClass("iframe"),e.canFocus=!1,'<iframe id="'+e._id+'" class="'+e.classes()+'" tabindex="-1" src="'+(e.settings.url||"javascript:''")+'" frameborder="0"></iframe>'},src:function(e){this.getEl().src=e},html:function(e,t){var n=this,i=this.getEl().contentWindow.document.body;return i?(i.innerHTML=e,t&&t()):setTimeout(function(){n.html(e)},0),this}})}),i("tinymce/ui/Label",["tinymce/ui/Widget","tinymce/ui/DomUtils"],function(e,t){return e.extend({init:function(e){var t=this;t._super(e),t.addClass("widget"),t.addClass("label"),t.canFocus=!1,e.multiline&&t.addClass("autoscroll"),e.strong&&t.addClass("strong")},initLayoutRect:function(){var e=this,n=e._super();return e.settings.multiline&&(t.getSize(e.getEl()).width>n.maxW&&(n.minW=n.maxW,e.addClass("multiline")),e.getEl().style.width=n.minW+"px",n.startMinH=n.h=n.minH=Math.min(n.maxH,t.getSize(e.getEl()).height)),n},repaint:function(){var e=this;return e.settings.multiline||(e.getEl().style.lineHeight=e.layoutRect().h+"px"),e._super()},text:function(e){var t=this;return t._rendered&&e&&this.innerHtml(t.encode(e)),t._super(e)},renderHtml:function(){var e=this,t=e.settings.forId;return'<label id="'+e._id+'" class="'+e.classes()+'"'+(t?' for="'+t+'"':"")+">"+e.encode(e._text)+"</label>"}})}),i("tinymce/ui/Toolbar",["tinymce/ui/Container"],function(e){return e.extend({Defaults:{role:"toolbar",layout:"flow"},init:function(e){var t=this;t._super(e),t.addClass("toolbar")},postRender:function(){var e=this;return e.items().addClass("toolbar-item"),e._super()}})}),i("tinymce/ui/MenuBar",["tinymce/ui/Toolbar"],function(e){return e.extend({Defaults:{role:"menubar",containerCls:"menubar",ariaRoot:!0,defaults:{type:"menubutton"}}})}),i("tinymce/ui/MenuButton",["tinymce/ui/Button","tinymce/ui/Factory","tinymce/ui/MenuBar"],function(e,t,n){function i(e,t){for(;e;){if(t===e)return!0;e=e.parentNode}return!1}var r=e.extend({init:function(e){var t=this;t._renderOpen=!0,t._super(e),t.addClass("menubtn"),e.fixedWidth&&t.addClass("fixed-width"),t.aria("haspopup",!0),t.hasPopup=!0},showMenu:function(){var e,n=this,i=n.settings;if(n.menu&&n.menu.visible())return n.hideMenu();n.menu||((e=i.menu||[]).length?e={type:"menu",items:e}:e.type=e.type||"menu",n.menu=t.create(e).parent(n).renderTo(),n.fire("createmenu"),n.menu.reflow(),n.menu.on("cancel",function(e){e.control.parent()===n.menu&&(e.stopPropagation(),n.focus(),n.hideMenu())}),n.menu.on("select",function(){n.focus()}),n.menu.on("show hide",function(e){e.control==n.menu&&n.activeMenu("show"==e.type),n.aria("expanded","show"==e.type)}).fire("show")),n.menu.show(),n.menu.layoutRect({w:n.layoutRect().w}),n.menu.moveRel(n.getEl(),n.isRtl()?["br-tr","tr-br"]:["bl-tl","tl-bl"])},hideMenu:function(){var e=this;e.menu&&(e.menu.items().each(function(e){e.hideMenu&&e.hideMenu()}),e.menu.hide())},activeMenu:function(e){this.toggleClass("active",e)},renderHtml:function(){var e,t=this,i=t._id,r=t.classPrefix,o=t.settings.icon;return(e=t.settings.image)?(o="none","string"!=typeof e&&(e=window.getSelection?e[0]:e[1]),e=" style=\"background-image: url('"+e+"')\""):e="",o=t.settings.icon?r+"ico "+r+"i-"+o:"",t.aria("role",t.parent()instanceof n?"menuitem":"button"),'<div id="'+i+'" class="'+t.classes()+'" tabindex="-1" aria-labelledby="'+i+'"><button id="'+i+'-open" role="presentation" type="button" tabindex="-1">'+(o?'<i class="'+o+'"'+e+"></i>":"")+"<span>"+(t._text?(o?" ":"")+t.encode(t._text):"")+'</span> <i class="'+r+'caret"></i></button></div>'},postRender:function(){var e=this;return e.on("click",function(t){t.control===e&&i(t.target,e.getEl())&&(e.showMenu(),t.aria&&e.menu.items()[0].focus())}),e.on("mouseenter",function(t){var n,i=t.control,o=e.parent();i&&o&&i instanceof r&&i.parent()==o&&(o.items().filter("MenuButton").each(function(e){e.hideMenu&&e!=i&&(e.menu&&e.menu.visible()&&(n=!0),e.hideMenu())}),n&&(i.focus(),i.showMenu()))}),e._super()},text:function(e){var t,n,i=this;if(i._rendered)for(n=i.getEl("open").getElementsByTagName("span"),t=0;t<n.length;t++)n[t].innerHTML=(i.settings.icon&&e?" ":"")+i.encode(e);return this._super(e)},remove:function(){this._super(),this.menu&&this.menu.remove()}});return r}),i("tinymce/ui/ListBox",["tinymce/ui/MenuButton"],function(e){return e.extend({init:function(e){function t(n){for(var o=0;o<n.length;o++){if(i=n[o].selected||e.value===n[o].value){r=r||n[o].text,a._value=n[o].value;break}n[o].menu&&t(n[o].menu)}}var n,i,r,o,a=this;a._values=n=e.values,n&&(t(n),!i&&n.length>0&&(r=n[0].text,a._value=n[0].value),e.menu=n),e.text=e.text||r||n[0].text,a._super(e),a.addClass("listbox"),a.on("select",function(t){var n=t.control;o&&(t.lastControl=o),e.multiple?n.active(!n.active()):a.value(t.control.settings.value),o=n})},value:function(e){function t(e,n){e.items().each(function(e){(i=e.value()===n)&&(r=r||e.text()),e.active(i),e.menu&&t(e.menu,n)})}function n(t){for(var o=0;o<t.length;o++)(i=t[o].value==e)&&(r=r||t[o].text),t[o].active=i,t[o].menu&&n(t[o].menu)}var i,r,o=this;return void 0!==e&&(o.menu?t(o.menu,e):n(o.settings.menu),o.text(r||this.settings.text)),o._super(e)}})}),i("tinymce/ui/MenuItem",["tinymce/ui/Widget","tinymce/ui/Factory","tinymce/Env"],function(e,t,n){return e.extend({Defaults:{border:0,role:"menuitem"},init:function(e){var t=this;t.hasPopup=!0,t._super(e),e=t.settings,t.addClass("menu-item"),e.menu&&t.addClass("menu-item-expand"),e.preview&&t.addClass("menu-item-preview"),"-"!==t._text&&"|"!==t._text||(t.addClass("menu-item-sep"),t.aria("role","separator"),t._text="-"),e.selectable&&(t.aria("role","menuitemcheckbox"),t.addClass("menu-item-checkbox"),e.icon="selected"),e.preview||e.selectable||t.addClass("menu-item-normal"),t.on("mousedown",function(e){e.preventDefault()}),e.menu&&!e.ariaHideMenu&&t.aria("haspopup",!0)},hasMenus:function(){return!!this.settings.menu},showMenu:function(){var e,n=this,i=n.settings,r=n.parent();if(r.items().each(function(e){e!==n&&e.hideMenu()}),i.menu){(e=n.menu)?e.show():((e=i.menu).length?e={type:"menu",items:e}:e.type=e.type||"menu",r.settings.itemDefaults&&(e.itemDefaults=r.settings.itemDefaults),(e=n.menu=t.create(e).parent(n).renderTo()).reflow(),e.on("cancel",function(t){t.stopPropagation(),n.focus(),e.hide()}),e.on("show hide",function(e){e.control.items().each(function(e){e.active(e.settings.selected)})}).fire("show"),e.on("hide",function(t){t.control===e&&n.removeClass("selected")}),e.submenu=!0),e._parentMenu=r,e.addClass("menu-sub");var o=e.testMoveRel(n.getEl(),n.isRtl()?["tl-tr","bl-br","tr-tl","br-bl"]:["tr-tl","br-bl","tl-tr","bl-br"]);e.moveRel(n.getEl(),o),e.rel=o,o="menu-sub-"+o,e.removeClass(e._lastRel),e.addClass(o),e._lastRel=o,n.addClass("selected"),n.aria("expanded",!0)}},hideMenu:function(){var e=this;return e.menu&&(e.menu.items().each(function(e){e.hideMenu&&e.hideMenu()}),e.menu.hide(),e.aria("expanded",!1)),e},renderHtml:function(){var e=this,t=e._id,i=e.settings,r=e.classPrefix,o=e.encode(e._text),a=e.settings.icon,s="",l=i.shortcut;return a&&e.parent().addClass("menu-has-icons"),i.image&&(a="none",s=" style=\"background-image: url('"+i.image+"')\""),l&&(l=function(e){var t,i,r={};for(r=n.mac?{alt:"⌥",ctrl:"⌘",shift:"⇧",meta:"⌘"}:{meta:"Ctrl"},e=e.split("+"),t=0;t<e.length;t++)(i=r[e[t].toLowerCase()])&&(e[t]=i);return e.join("+")}(l)),a=r+"ico "+r+"i-"+(e.settings.icon||"none"),'<div id="'+t+'" class="'+e.classes()+'" tabindex="-1">'+("-"!==o?'<i class="'+a+'"'+s+"></i> ":"")+("-"!==o?'<span id="'+t+'-text" class="'+r+'text">'+o+"</span>":"")+(l?'<div id="'+t+'-shortcut" class="'+r+'menu-shortcut">'+l+"</div>":"")+(i.menu?'<div class="'+r+'caret"></div>':"")+"</div>"},postRender:function(){var e=this,t=e.settings,n=t.textStyle;if("function"==typeof n&&(n=n.call(this)),n){var i=e.getEl("text");i&&i.setAttribute("style",n)}return e.on("mouseenter click",function(n){n.control===e&&(t.menu||"click"!==n.type?(e.showMenu(),n.aria&&e.menu.focus(!0)):(e.fire("select"),e.parent().hideAll()))}),e._super(),e},active:function(e){return void 0!==e&&this.aria("checked",e),this._super(e)},remove:function(){this._super(),this.menu&&this.menu.remove()}})}),i("tinymce/ui/Menu",["tinymce/ui/FloatPanel","tinymce/ui/MenuItem","tinymce/util/Tools"],function(e,t,n){return e.extend({Defaults:{defaultType:"menuitem",border:1,layout:"stack",role:"application",bodyRole:"menu",ariaRoot:!0},init:function(e){var t=this;if(e.autohide=!0,e.constrainToViewport=!0,e.itemDefaults)for(var i=e.items,r=i.length;r--;)i[r]=n.extend({},e.itemDefaults,i[r]);t._super(e),t.addClass("menu")},repaint:function(){return this.toggleClass("menu-align",!0),this._super(),this.getEl().style.height="",this.getEl("body").style.height="",this},cancel:function(){var e=this;e.hideAll(),e.fire("select")},hideAll:function(){var e=this;return this.find("menuitem").exec("hideMenu"),e._super()},preRender:function(){var e=this;return e.items().each(function(t){var n=t.settings;if(n.icon||n.selectable)return e._hasIcons=!0,!1}),e._super()}})}),i("tinymce/ui/Radio",["tinymce/ui/Checkbox"],function(e){return e.extend({Defaults:{classes:"radio",role:"radio"}})}),i("tinymce/ui/ResizeHandle",["tinymce/ui/Widget","tinymce/ui/DragHelper"],function(e,t){return e.extend({renderHtml:function(){var e=this,t=e.classPrefix;return e.addClass("resizehandle"),"both"==e.settings.direction&&e.addClass("resizehandle-both"),e.canFocus=!1,'<div id="'+e._id+'" class="'+e.classes()+'"><i class="'+t+"ico "+t+'i-resize"></i></div>'},postRender:function(){var e=this;e._super(),e.resizeDragHelper=new t(this._id,{start:function(){e.fire("ResizeStart")},drag:function(t){"both"!=e.settings.direction&&(t.deltaX=0),e.fire("Resize",t)},stop:function(){e.fire("ResizeEnd")}})},remove:function(){return this.resizeDragHelper&&this.resizeDragHelper.destroy(),this._super()}})}),i("tinymce/ui/Spacer",["tinymce/ui/Widget"],function(e){return e.extend({renderHtml:function(){var e=this;return e.addClass("spacer"),e.canFocus=!1,'<div id="'+e._id+'" class="'+e.classes()+'"></div>'}})}),i("tinymce/ui/SplitButton",["tinymce/ui/MenuButton","tinymce/ui/DomUtils"],function(e,t){return e.extend({Defaults:{classes:"widget btn splitbtn",role:"button"},repaint:function(){var e,n,i=this,r=i.getEl(),o=i.layoutRect();return i._super(),e=r.firstChild,n=r.lastChild,t.css(e,{width:o.w-t.getSize(n).width,height:o.h-2}),t.css(n,{height:o.h-2}),i},activeMenu:function(e){var n=this;t.toggleClass(n.getEl().lastChild,n.classPrefix+"active",e)},renderHtml:function(){var e,t=this,n=t._id,i=t.classPrefix,r=t.settings.icon;return(e=t.settings.image)?(r="none","string"!=typeof e&&(e=window.getSelection?e[0]:e[1]),e=" style=\"background-image: url('"+e+"')\""):e="",r=t.settings.icon?i+"ico "+i+"i-"+r:"",'<div id="'+n+'" class="'+t.classes()+'" role="button" tabindex="-1"><button type="button" hidefocus="1" tabindex="-1">'+(r?'<i class="'+r+'"'+e+"></i>":"")+(t._text?(r?" ":"")+t._text:"")+'</button><button type="button" class="'+i+'open" hidefocus="1" tabindex="-1">'+(t._menuBtnText?(r?" ":"")+t._menuBtnText:"")+' <i class="'+i+'caret"></i></button></div>'},postRender:function(){var e=this,t=e.settings.onclick;return e.on("click",function(e){var n=e.target;if(e.control==this)for(;n;){if(e.aria&&"down"!=e.aria.key||"BUTTON"==n.nodeName&&-1==n.className.indexOf("open"))return e.stopImmediatePropagation(),void t.call(this,e);n=n.parentNode}}),delete e.settings.onclick,e._super()}})}),i("tinymce/ui/StackLayout",["tinymce/ui/FlowLayout"],function(e){return e.extend({Defaults:{containerClass:"stack-layout",controlClass:"stack-layout-item",endClass:"break"}})}),i("tinymce/ui/TabPanel",["tinymce/ui/Panel","tinymce/ui/DomUtils"],function(e,t){return e.extend({Defaults:{layout:"absolute",defaults:{type:"panel"}},activateTab:function(e){var n;this.activeTabId&&(n=this.getEl(this.activeTabId),t.removeClass(n,this.classPrefix+"active"),n.setAttribute("aria-selected","false")),this.activeTabId="t"+e,(n=this.getEl("t"+e)).setAttribute("aria-selected","true"),t.addClass(n,this.classPrefix+"active"),this.items()[e].show().fire("showtab"),this.reflow(),this.items().each(function(t,n){e!=n&&t.hide()})},renderHtml:function(){var e=this,t=e._layout,n="",i=e.classPrefix;return e.preRender(),t.preRender(e),e.items().each(function(t,r){var o=e._id+"-t"+r;t.aria("role","tabpanel"),t.aria("labelledby",o),n+='<div id="'+o+'" class="'+i+'tab" unselectable="on" role="tab" aria-controls="'+t._id+'" aria-selected="false" tabIndex="-1">'+e.encode(t.settings.title)+"</div>"}),'<div id="'+e._id+'" class="'+e.classes()+'" hidefocus="1" tabindex="-1"><div id="'+e._id+'-head" class="'+i+'tabs" role="tablist">'+n+'</div><div id="'+e._id+'-body" class="'+e.classes("body")+'">'+t.renderHtml(e)+"</div></div>"},postRender:function(){var e=this;e._super(),e.settings.activeTab=e.settings.activeTab||0,e.activateTab(e.settings.activeTab),this.on("click",function(t){var n=t.target.parentNode;if(t.target.parentNode.id==e._id+"-head")for(var i=n.childNodes.length;i--;)n.childNodes[i]==t.target&&e.activateTab(i)})},initLayoutRect:function(){var e,n,i,r=this;n=t.getSize(r.getEl("head")).width,n=n<0?0:n,i=0,r.items().each(function(e){n=Math.max(n,e.layoutRect().minW),i=Math.max(i,e.layoutRect().minH)}),r.items().each(function(e){e.settings.x=0,e.settings.y=0,e.settings.w=n,e.settings.h=i,e.layoutRect({x:0,y:0,w:n,h:i})});var o=t.getSize(r.getEl("head")).height;return r.settings.minWidth=n,r.settings.minHeight=i+o,e=r._super(),e.deltaH+=o,e.innerH=e.h-e.deltaH,e}})}),i("tinymce/ui/TextBox",["tinymce/ui/Widget","tinymce/ui/DomUtils"],function(e,t){return e.extend({init:function(e){var t=this;t._super(e),t._value=e.value||"",t.addClass("textbox"),e.multiline?t.addClass("multiline"):t.on("keydown",function(e){13==e.keyCode&&t.parents().reverse().each(function(t){if(e.preventDefault(),t.hasEventListeners("submit")&&t.toJSON)return t.fire("submit",{data:t.toJSON()}),!1})})},disabled:function(e){var t=this;return t._rendered&&void 0!==e&&(t.getEl().disabled=e),t._super(e)},value:function(e){var t=this;return void 0!==e?(t._value=e,t._rendered&&(t.getEl().value=e),t):t._rendered?t.getEl().value:t._value},repaint:function(){var e,t,n,i,r=this,o=0,a=0;e=r.getEl().style,t=r._layoutRect,i=r._lastRepaintRect||{};var s=document;return!r.settings.multiline&&s.all&&(!s.documentMode||s.documentMode<=8)&&(e.lineHeight=t.h-a+"px"),n=r._borderBox,o=n.left+n.right+8,a=n.top+n.bottom+(r.settings.multiline?8:0),t.x!==i.x&&(e.left=t.x+"px",i.x=t.x),t.y!==i.y&&(e.top=t.y+"px",i.y=t.y),t.w!==i.w&&(e.width=t.w-o+"px",i.w=t.w),t.h!==i.h&&(e.height=t.h-a+"px",i.h=t.h),r._lastRepaintRect=i,r.fire("repaint",{},!1),r},renderHtml:function(){var e=this,t=e._id,n=e.settings,i=e.encode(e._value,!1),r="";return"spellcheck"in n&&(r+=' spellcheck="'+n.spellcheck+'"'),n.maxLength&&(r+=' maxlength="'+n.maxLength+'"'),n.size&&(r+=' size="'+n.size+'"'),n.subtype&&(r+=' type="'+n.subtype+'"'),e.disabled()&&(r+=' disabled="disabled"'),n.multiline?'<textarea id="'+t+'" class="'+e.classes()+'" '+(n.rows?' rows="'+n.rows+'"':"")+' hidefocus="1"'+r+">"+i+"</textarea>":'<input id="'+t+'" class="'+e.classes()+'" value="'+i+'" hidefocus="1"'+r+" />"},postRender:function(){var e=this;return t.on(e.getEl(),"change",function(t){e.fire("change",t)}),e._super()},remove:function(){t.off(this.getEl()),this._super()}})}),i("tinymce/ui/Throbber",["tinymce/ui/DomUtils","tinymce/ui/Control"],function(e,t){return function(n,i){var r,o=this,a=t.classPrefix;o.show=function(t){return o.hide(),r=!0,window.setTimeout(function(){r&&n.appendChild(e.createFragment('<div class="'+a+"throbber"+(i?" "+a+"throbber-inline":"")+'"></div>'))},t||0),o},o.hide=function(){var e=n.lastChild;return e&&-1!=e.className.indexOf("throbber")&&e.parentNode.removeChild(e),r=!1,o}}}),function(n){for(var i=0;i<n.length;i++){for(var r=e,a=n[i],s=a.split(/[.\/]/),l=0;l<s.length-1;++l)r[s[l]]===t&&(r[s[l]]={}),r=r[s[l]];r[s[s.length-1]]=o[a]}}(["tinymce/dom/EventUtils","tinymce/dom/Sizzle","tinymce/Env","tinymce/util/Tools","tinymce/dom/DomQuery","tinymce/html/Styles","tinymce/dom/TreeWalker","tinymce/dom/Range","tinymce/html/Entities","tinymce/dom/DOMUtils","tinymce/dom/ScriptLoader","tinymce/AddOnManager","tinymce/dom/RangeUtils","tinymce/html/Node","tinymce/html/Schema","tinymce/html/SaxParser","tinymce/html/DomParser","tinymce/html/Writer","tinymce/html/Serializer","tinymce/dom/Serializer","tinymce/dom/TridentSelection","tinymce/util/VK","tinymce/dom/ControlSelection","tinymce/dom/BookmarkManager","tinymce/dom/Selection","tinymce/dom/ElementUtils","tinymce/Formatter","tinymce/UndoManager","tinymce/EnterKey","tinymce/ForceBlocks","tinymce/EditorCommands","tinymce/util/URI","tinymce/util/Class","tinymce/util/EventDispatcher","tinymce/ui/Selector","tinymce/ui/Collection","tinymce/ui/DomUtils","tinymce/ui/Control","tinymce/ui/Factory","tinymce/ui/KeyboardNavigation","tinymce/ui/Container","tinymce/ui/DragHelper","tinymce/ui/Scrollable","tinymce/ui/Panel","tinymce/ui/Movable","tinymce/ui/Resizable","tinymce/ui/FloatPanel","tinymce/ui/Window","tinymce/ui/MessageBox","tinymce/WindowManager","tinymce/util/Quirks","tinymce/util/Observable","tinymce/EditorObservable","tinymce/Shortcuts","tinymce/Editor","tinymce/util/I18n","tinymce/FocusManager","tinymce/EditorManager","tinymce/LegacyInput","tinymce/util/XHR","tinymce/util/JSON","tinymce/util/JSONRequest","tinymce/util/JSONP","tinymce/util/LocalStorage","tinymce/Compat","tinymce/ui/Layout","tinymce/ui/AbsoluteLayout","tinymce/ui/Tooltip","tinymce/ui/Widget","tinymce/ui/Button","tinymce/ui/ButtonGroup","tinymce/ui/Checkbox","tinymce/ui/ComboBox","tinymce/ui/ColorBox","tinymce/ui/PanelButton","tinymce/ui/ColorButton","tinymce/util/Color","tinymce/ui/ColorPicker","tinymce/ui/Path","tinymce/ui/ElementPath","tinymce/ui/FormItem","tinymce/ui/Form","tinymce/ui/FieldSet","tinymce/ui/FilePicker","tinymce/ui/FitLayout","tinymce/ui/FlexLayout","tinymce/ui/FlowLayout","tinymce/ui/FormatControls","tinymce/ui/GridLayout","tinymce/ui/Iframe","tinymce/ui/Label","tinymce/ui/Toolbar","tinymce/ui/MenuBar","tinymce/ui/MenuButton","tinymce/ui/ListBox","tinymce/ui/MenuItem","tinymce/ui/Menu","tinymce/ui/Radio","tinymce/ui/ResizeHandle","tinymce/ui/Spacer","tinymce/ui/SplitButton","tinymce/ui/StackLayout","tinymce/ui/TabPanel","tinymce/ui/TextBox","tinymce/ui/Throbber"])}(this);