vendor: 45,403 bytes, line 1
1if(function(e,t){"use strict";"object"==typeof module&&"object"==typeof module.exports?module.exports=e.document?t(e,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return t(e)}:t(e)}("undefined"!=typeof window?window:this,function(e,t){"use strict";var n=[],i=e.document,o=Object.getPrototypeOf,r=n.slice,s=n.concat,a=n.push,l=n.indexOf,u={},c=u.toString,d=u.hasOwnProperty,h=d.toString,f=h.call(Object),p={};function g(e,t){var n=(t=t||i).createElement("script");n.text=e,t.head.appendChild(n).parentNode.removeChild(n)}var m="3.2.1",v=function(e,t){return new v.fn.init(e,t)},E=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,T=/^-ms-/,y=/-([a-z])/g,C=function(e,t){return t.toUpperCase()};function b(e){var t=!!e&&"length"in e&&e.length,n=v.type(e);return"function"!==n&&!v.isWindow(e)&&("array"===n||0===t||"number"==typeof t&&t>0&&t-1 in e)}v.fn=v.prototype={jquery:m,constructor:v,length:0,toArray:function(){return r.call(this)},get:function(e){return null==e?r.call(this):e<0?this[e+this.length]:this[e]},pushStack:function(e){var t=v.merge(this.constructor(),e);return t.prevObject=this,t},each:function(e){return v.each(this,e)},map:function(e){return this.pushStack(v.map(this,function(t,n){return e.call(t,n,t)}))},slice:function(){return this.pushStack(r.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:a,sort:n.sort,splice:n.splice},v.extend=v.fn.extend=function(){var e,t,n,i,o,r,s=arguments[0]||{},a=1,l=arguments.length,u=!1;for("boolean"==typeof s&&(u=s,s=arguments[a]||{},a++),"object"==typeof s||v.isFunction(s)||(s={}),a===l&&(s=this,a--);a<l;a++)if(null!=(e=arguments[a]))for(t in e)n=s[t],s!==(i=e[t])&&(u&&i&&(v.isPlainObject(i)||(o=Array.isArray(i)))?(o?(o=!1,r=n&&Array.isArray(n)?n:[]):r=n&&v.isPlainObject(n)?n:{},s[t]=v.extend(u,r,i)):void 0!==i&&(s[t]=i));return s},v.extend({expando:"jQuery"+(m+Math.random()).replace(/\D/g,""),isReady:!0,error:function(e){throw new Error(e)},noop:function(){},isFunction:function(e){return"function"===v.type(e)},isWindow:function(e){return null!=e&&e===e.window},isNumeric:function(e){var t=v.type(e);return("number"===t||"string"===t)&&!isNaN(e-parseFloat(e))},isPlainObject:function(e){var t,n;return!(!e||"[object Object]"!==c.call(e)||(t=o(e))&&(n=d.call(t,"constructor")&&t.constructor,"function"!=typeof n||h.call(n)!==f))},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?u[c.call(e)]||"object":typeof e},globalEval:function(e){g(e)},camelCase:function(e){return e.replace(T,"ms-").replace(y,C)},each:function(e,t){var n,i=0;if(b(e))for(n=e.length;i<n&&!1!==t.call(e[i],i,e[i]);i++);else for(i in e)if(!1===t.call(e[i],i,e[i]))break;return e},trim:function(e){return null==e?"":(e+"").replace(E,"")},makeArray:function(e,t){var n=t||[];return null!=e&&(b(Object(e))?v.merge(n,"string"==typeof e?[e]:e):a.call(n,e)),n},inArray:function(e,t,n){return null==t?-1:l.call(t,e,n)},merge:function(e,t){for(var n=+t.length,i=0,o=e.length;i<n;i++)e[o++]=t[i];return e.length=o,e},grep:function(e,t,n){for(var i=[],o=0,r=e.length,s=!n;o<r;o++)!t(e[o],o)!==s&&i.push(e[o]);return i},map:function(e,t,n){var i,o,r=0,a=[];if(b(e))for(i=e.length;r<i;r++)null!=(o=t(e[r],r,n))&&a.push(o);else for(r in e)null!=(o=t(e[r],r,n))&&a.push(o);return s.apply([],a)},guid:1,proxy:function(e,t){var n,i,o;if("string"==typeof t&&(n=e[t],t=e,e=n),v.isFunction(e))return i=r.call(arguments,2),(o=function(){return e.apply(t||this,i.concat(r.call(arguments)))}).guid=e.guid=e.guid||v.guid++,o},now:Date.now,support:p}),"function"==typeof Symbol&&(v.fn[Symbol.iterator]=n[Symbol.iterator]),v.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(e,t){u["[object "+t+"]"]=t.toLowerCase()});var D=function(e){var t,n,i,o,r,s,a,l,u,c,d,h,f,p,g,m,v,E,T,y="sizzle"+1*new Date,C=e.document,b=0,D=0,I=se(),O=se(),R=se(),_=function(e,t){return e===t&&(d=!0),0},w={}.hasOwnProperty,k=[],K=k.pop,S=k.push,x=k.push,N=k.slice,A=function(e,t){for(var n=0,i=e.length;n<i;n++)if(e[n]===t)return n;return-1},L="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",F="[\\x20\\t\\r\\n\\f]",P="(?:\\\\.|[\\w-]|[^\0-\\xa0])+",B="\\["+F+"*("+P+")(?:"+F+"*([*^$|!~]?=)"+F+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+P+"))|)"+F+"*\\]",M=":("+P+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+B+")*)|.*)\\)|)",$=new RegExp(F+"+","g"),H=new RegExp("^"+F+"+|((?:^|[^\\\\])(?:\\\\.)*)"+F+"+$","g"),j=new RegExp("^"+F+"*,"+F+"*"),q=new RegExp("^"+F+"*([>+~]|"+F+")"+F+"*"),z=new RegExp("="+F+"*([^\\]'\"]*?)"+F+"*\\]","g"),W=new RegExp(M),V=new RegExp("^"+P+"$"),U={ID:new RegExp("^#("+P+")"),CLASS:new RegExp("^\\.("+P+")"),TAG:new RegExp("^("+P+"|[*])"),ATTR:new RegExp("^"+B),PSEUDO:new RegExp("^"+M),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+F+"*(even|odd|(([+-]|)(\\d*)n|)"+F+"*(?:([+-]|)"+F+"*(\\d+)|))"+F+"*\\)|)","i"),bool:new RegExp("^(?:"+L+")$","i"),needsContext:new RegExp("^"+F+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+F+"*((?:-\\d)?\\d*)"+F+"*\\)|)(?=[^-]|$)","i")},G=/^(?:input|select|textarea|button)$/i,Y=/^h\d$/i,X=/^[^{]+\{\s*\[native \w/,Z=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,Q=/[+~]/,J=new RegExp("\\\\([\\da-f]{1,6}"+F+"?|("+F+")|.)","ig"),ee=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)},te=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,ne=function(e,t){return t?"\0"===e?"\ufffd":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e},ie=function(){h()},oe=Ee(function(e){return!0===e.disabled&&("form"in e||"label"in e)},{dir:"parentNode",next:"legend"});try{x.apply(k=N.call(C.childNodes),C.childNodes),k[C.childNodes.length].nodeType}catch(e){x={apply:k.length?function(e,t){S.apply(e,N.call(t))}:function(e,t){for(var n=e.length,i=0;e[n++]=t[i++];);e.length=n-1}}}function re(e,t,i,o){var r,a,u,c,d,p,v,E=t&&t.ownerDocument,b=t?t.nodeType:9;if(i=i||[],"string"!=typeof e||!e||1!==b&&9!==b&&11!==b)return i;if(!o&&((t?t.ownerDocument||t:C)!==f&&h(t),t=t||f,g)){if(11!==b&&(d=Z.exec(e)))if(r=d[1]){if(9===b){if(!(u=t.getElementById(r)))return i;if(u.id===r)return i.push(u),i}else if(E&&(u=E.getElementById(r))&&T(t,u)&&u.id===r)return i.push(u),i}else{if(d[2])return x.apply(i,t.getElementsByTagName(e)),i;if((r=d[3])&&n.getElementsByClassName&&t.getElementsByClassName)return x.apply(i,t.getElementsByClassName(r)),i}if(n.qsa&&!R[e+" "]&&(!m||!m.test(e))){if(1!==b)E=t,v=e;else if("object"!==t.nodeName.toLowerCase()){for((c=t.getAttribute("id"))?c=c.replace(te,ne):t.setAttribute("id",c=y),a=(p=s(e)).length;a--;)p[a]="#"+c+" "+ve(p[a]);v=p.join(","),E=Q.test(e)&&ge(t.parentNode)||t}if(v)try{return x.apply(i,E.querySelectorAll(v)),i}catch(e){}finally{c===y&&t.removeAttribute("id")}}}return l(e.replace(H,"$1"),t,i,o)}function se(){var e=[];return function t(n,o){return e.push(n+" ")>i.cacheLength&&delete t[e.shift()],t[n+" "]=o}}function ae(e){return e[y]=!0,e}function le(e){var t=f.createElement("fieldset");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("|"),o=n.length;o--;)i.attrHandle[n[o]]=t}function ce(e,t){var n=t&&e,i=n&&1===e.nodeType&&1===t.nodeType&&e.sourceIndex-t.sourceIndex;if(i)return i;if(n)for(;n=n.nextSibling;)if(n===t)return-1;return e?1:-1}function de(e){return function(t){return"input"===t.nodeName.toLowerCase()&&t.type===e}}function he(e){return function(t){var n=t.nodeName.toLowerCase();return("input"===n||"button"===n)&&t.type===e}}function fe(e){return function(t){return"form"in t?t.parentNode&&!1===t.disabled?"label"in t?"label"in t.parentNode?t.parentNode.disabled===e:t.disabled===e:t.isDisabled===e||t.isDisabled!==!e&&oe(t)===e:t.disabled===e:"label"in t&&t.disabled===e}}function pe(e){return ae(function(t){return t=+t,ae(function(n,i){for(var o,r=e([],n.length,t),s=r.length;s--;)n[o=r[s]]&&(n[o]=!(i[o]=n[o]))})})}function ge(e){return e&&"undefined"!=typeof e.getElementsByTagName&&e}for(t in n=re.support={},r=re.isXML=function(e){var t=e&&(e.ownerDocument||e).documentElement;return!!t&&"HTML"!==t.nodeName},h=re.setDocument=function(e){var t,o,s=e?e.ownerDocument||e:C;return s!==f&&9===s.nodeType&&s.documentElement?(p=(f=s).documentElement,g=!r(f),C!==f&&(o=f.defaultView)&&o.top!==o&&(o.addEventListener?o.addEventListener("unload",ie,!1):o.attachEvent&&o.attachEvent("onunload",ie)),n.attributes=le(function(e){return e.className="i",!e.getAttribute("className")}),n.getElementsByTagName=le(function(e){return e.appendChild(f.createComment("")),!e.getElementsByTagName("*").length}),n.getElementsByClassName=X.test(f.getElementsByClassName),n.getById=le(function(e){return p.appendChild(e).id=y,!f.getElementsByName||!f.getElementsByName(y).length}),n.getById?(i.filter.ID=function(e){var t=e.replace(J,ee);return function(e){return e.getAttribute("id")===t}},i.find.ID=function(e,t){if("undefined"!=typeof t.getElementById&&g){var n=t.getElementById(e);return n?[n]:[]}}):(i.filter.ID=function(e){var t=e.replace(J,ee);return function(e){var n="undefined"!=typeof e.getAttributeNode&&e.getAttributeNode("id");return n&&n.value===t}},i.find.ID=function(e,t){if("undefined"!=typeof t.getElementById&&g){var n,i,o,r=t.getElementById(e);if(r){if((n=r.getAttributeNode("id"))&&n.value===e)return[r];for(o=t.getElementsByName(e),i=0;r=o[i++];)if((n=r.getAttributeNode("id"))&&n.value===e)return[r]}return[]}}),i.find.TAG=n.getElementsByTagName?function(e,t){return"undefined"!=typeof t.getElementsByTagName?t.getElementsByTagName(e):n.qsa?t.querySelectorAll(e):void 0}:function(e,t){var n,i=[],o=0,r=t.getElementsByTagName(e);if("*"===e){for(;n=r[o++];)1===n.nodeType&&i.push(n);return i}return r},i.find.CLASS=n.getElementsByClassName&&function(e,t){if("undefined"!=typeof t.getElementsByClassName&&g)return t.getElementsByClassName(e)},v=[],m=[],(n.qsa=X.test(f.querySelectorAll))&&(le(function(e){p.appendChild(e).innerHTML="<a id='"+y+"'></a><select id='"+y+"-\r\\' msallowcapture=''><option selected=''></option></select>",e.querySelectorAll("[msallowcapture^='']").length&&m.push("[*^$]="+F+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||m.push("\\["+F+"*(?:value|"+L+")"),e.querySelectorAll("[id~="+y+"-]").length||m.push("~="),e.querySelectorAll(":checked").length||m.push(":checked"),e.querySelectorAll("a#"+y+"+*").length||m.push(".#.+[+~]")}),le(function(e){e.innerHTML="<a href='' disabled='disabled'></a><select disabled='disabled'><option/></select>";var t=f.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&m.push("name"+F+"*[*^$|!~]?="),2!==e.querySelectorAll(":enabled").length&&m.push(":enabled",":disabled"),p.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&m.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),m.push(",.*:")})),(n.matchesSelector=X.test(E=p.matches||p.webkitMatchesSelector||p.mozMatchesSelector||p.oMatchesSelector||p.msMatchesSelector))&&le(function(e){n.disconnectedMatch=E.call(e,"*"),E.call(e,"[s!='']:x"),v.push("!=",M)}),m=m.length&&new RegExp(m.join("|")),v=v.length&&new RegExp(v.join("|")),t=X.test(p.compareDocumentPosition),T=t||X.test(p.contains)?function(e,t){var n=9===e.nodeType?e.documentElement:e,i=t&&t.parentNode;return e===i||!(!i||1!==i.nodeType||!(n.contains?n.contains(i):e.compareDocumentPosition&&16&e.compareDocumentPosition(i)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},_=t?function(e,t){if(e===t)return d=!0,0;var i=!e.compareDocumentPosition-!t.compareDocumentPosition;return i||(1&(i=(e.ownerDocument||e)===(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!n.sortDetached&&t.compareDocumentPosition(e)===i?e===f||e.ownerDocument===C&&T(C,e)?-1:t===f||t.ownerDocument===C&&T(C,t)?1:c?A(c,e)-A(c,t):0:4&i?-1:1)}:function(e,t){if(e===t)return d=!0,0;var n,i=0,o=e.parentNode,r=t.parentNode,s=[e],a=[t];if(!o||!r)return e===f?-1:t===f?1:o?-1:r?1:c?A(c,e)-A(c,t):0;if(o===r)return ce(e,t);for(n=e;n=n.parentNode;)s.unshift(n);for(n=t;n=n.parentNode;)a.unshift(n);for(;s[i]===a[i];)i++;return i?ce(s[i],a[i]):s[i]===C?-1:a[i]===C?1:0},f):f},re.matches=function(e,t){return re(e,null,null,t)},re.matchesSelector=function(e,t){if((e.ownerDocument||e)!==f&&h(e),t=t.replace(z,"='$1']"),n.matchesSelector&&g&&!R[t+" "]&&(!v||!v.test(t))&&(!m||!m.test(t)))try{var i=E.call(e,t);if(i||n.disconnectedMatch||e.document&&11!==e.document.nodeType)return i}catch(e){}return re(t,f,null,[e]).length>0},re.contains=function(e,t){return(e.ownerDocument||e)!==f&&h(e),T(e,t)},re.attr=function(e,t){(e.ownerDocument||e)!==f&&h(e);var o=i.attrHandle[t.toLowerCase()],r=o&&w.call(i.attrHandle,t.toLowerCase())?o(e,t,!g):void 0;return void 0!==r?r:n.attributes||!g?e.getAttribute(t):(r=e.getAttributeNode(t))&&r.specified?r.value:null},re.escape=function(e){return(e+"").replace(te,ne)},re.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},re.uniqueSort=function(e){var t,i=[],o=0,r=0;if(d=!n.detectDuplicates,c=!n.sortStable&&e.slice(0),e.sort(_),d){for(;t=e[r++];)t===e[r]&&(o=i.push(r));for(;o--;)e.splice(i[o],1)}return c=null,e},o=re.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+=o(e)}else if(3===r||4===r)return e.nodeValue}else for(;t=e[i++];)n+=o(t);return n},(i=re.selectors={cacheLength:50,createPseudo:ae,match:U,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(J,ee),e[3]=(e[3]||e[4]||e[5]||"").replace(J,ee),"~="===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]||re.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]&&re.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return U.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&W.test(n)&&(t=s(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(J,ee).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=I[e+" "];return t||(t=new RegExp("(^|"+F+")"+e+"("+F+"|$)"))&&I(e,function(e){return t.test("string"==typeof e.className&&e.className||"undefined"!=typeof e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(e,t,n){return function(i){var o=re.attr(i,e);return null==o?"!="===t:!t||(o+="","="===t?o===n:"!="===t?o!==n:"^="===t?n&&0===o.indexOf(n):"*="===t?n&&o.indexOf(n)>-1:"$="===t?n&&o.slice(-n.length)===n:"~="===t?(" "+o.replace($," ")+" ").indexOf(n)>-1:"|="===t&&(o===n||o.slice(0,n.length+1)===n+"-"))}},CHILD:function(e,t,n,i,o){var r="nth"!==e.slice(0,3),s="last"!==e.slice(-4),a="of-type"===t;return 1===i&&0===o?function(e){return!!e.parentNode}:function(t,n,l){var u,c,d,h,f,p,g=r!==s?"nextSibling":"previousSibling",m=t.parentNode,v=a&&t.nodeName.toLowerCase(),E=!l&&!a,T=!1;if(m){if(r){for(;g;){for(h=t;h=h[g];)if(a?h.nodeName.toLowerCase()===v:1===h.nodeType)return!1;p=g="only"===e&&!p&&"nextSibling"}return!0}if(p=[s?m.firstChild:m.lastChild],s&&E){for(T=(f=(u=(c=(d=(h=m)[y]||(h[y]={}))[h.uniqueID]||(d[h.uniqueID]={}))[e]||[])[0]===b&&u[1])&&u[2],h=f&&m.childNodes[f];h=++f&&h&&h[g]||(T=f=0)||p.pop();)if(1===h.nodeType&&++T&&h===t){c[e]=[b,f,T];break}}else if(E&&(T=f=(u=(c=(d=(h=t)[y]||(h[y]={}))[h.uniqueID]||(d[h.uniqueID]={}))[e]||[])[0]===b&&u[1]),!1===T)for(;(h=++f&&h&&h[g]||(T=f=0)||p.pop())&&((a?h.nodeName.toLowerCase()!==v:1!==h.nodeType)||!++T||(E&&((c=(d=h[y]||(h[y]={}))[h.uniqueID]||(d[h.uniqueID]={}))[e]=[b,T]),h!==t)););return(T-=o)===i||T%i==0&&T/i>=0}}},PSEUDO:function(e,t){var n,o=i.pseudos[e]||i.setFilters[e.toLowerCase()]||re.error("unsupported pseudo: "+e);return o[y]?o(t):o.length>1?(n=[e,e,"",t],i.setFilters.hasOwnProperty(e.toLowerCase())?ae(function(e,n){for(var i,r=o(e,t),s=r.length;s--;)e[i=A(e,r[s])]=!(n[i]=r[s])}):function(e){return o(e,0,n)}):o}},pseudos:{not:ae(function(e){var t=[],n=[],i=a(e.replace(H,"$1"));return i[y]?ae(function(e,t,n,o){for(var r,s=i(e,null,o,[]),a=e.length;a--;)(r=s[a])&&(e[a]=!(t[a]=r))}):function(e,o,r){return t[0]=e,i(t,null,r,n),t[0]=null,!n.pop()}}),has:ae(function(e){return function(t){return re(e,t).length>0}}),contains:ae(function(e){return e=e.replace(J,ee),function(t){return(t.textContent||t.innerText||o(t)).indexOf(e)>-1}}),lang:ae(function(e){return V.test(e||"")||re.error("unsupported lang: "+e),e=e.replace(J,ee).toLowerCase(),function(t){var n;do{if(n=g?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return(n=n.toLowerCase())===e||0===n.indexOf(e+"-")}while((t=t.parentNode)&&1===t.nodeType);return!1}}),target:function(t){var n=e.location&&e.location.hash;return n&&n.slice(1)===t.id},root:function(e){return e===p},focus:function(e){return e===f.activeElement&&(!f.hasFocus||f.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:fe(!1),disabled:fe(!0),checked:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&!!e.checked||"option"===t&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,!0===e.selected},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!i.pseudos.empty(e)},header:function(e){return Y.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 i=n<0?n+t:n;--i>=0;)e.push(i);return e}),gt:pe(function(e,t,n){for(var i=n<0?n+t:n;++i<t;)e.push(i);return e})}}).pseudos.nth=i.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})i.pseudos[t]=de(t);for(t in{submit:!0,reset:!0})i.pseudos[t]=he(t);function me(){}function ve(e){for(var t=0,n=e.length,i="";t<n;t++)i+=e[t].value;return i}function Ee(e,t,n){var i=t.dir,o=t.next,r=o||i,s=n&&"parentNode"===r,a=D++;return t.first?function(t,n,o){for(;t=t[i];)if(1===t.nodeType||s)return e(t,n,o);return!1}:function(t,n,l){var u,c,d,h=[b,a];if(l){for(;t=t[i];)if((1===t.nodeType||s)&&e(t,n,l))return!0}else for(;t=t[i];)if(1===t.nodeType||s)if(c=(d=t[y]||(t[y]={}))[t.uniqueID]||(d[t.uniqueID]={}),o&&o===t.nodeName.toLowerCase())t=t[i]||t;else{if((u=c[r])&&u[0]===b&&u[1]===a)return h[2]=u[2];if(c[r]=h,h[2]=e(t,n,l))return!0}return!1}}function Te(e){return e.length>1?function(t,n,i){for(var o=e.length;o--;)if(!e[o](t,n,i))return!1;return!0}:e[0]}function ye(e,t,n,i,o){for(var r,s=[],a=0,l=e.length,u=null!=t;a<l;a++)(r=e[a])&&(n&&!n(r,i,o)||(s.push(r),u&&t.push(a)));return s}function Ce(e,t,n,i,o,r){return i&&!i[y]&&(i=Ce(i)),o&&!o[y]&&(o=Ce(o,r)),ae(function(r,s,a,l){var u,c,d,h=[],f=[],p=s.length,g=r||function(e,t,n){for(var i=0,o=t.length;i<o;i++)re(e,t[i],n);return n}(t||"*",a.nodeType?[a]:a,[]),m=!e||!r&&t?g:ye(g,h,e,a,l),v=n?o||(r?e:p||i)?[]:s:m;if(n&&n(m,v,a,l),i)for(u=ye(v,f),i(u,[],a,l),c=u.length;c--;)(d=u[c])&&(v[f[c]]=!(m[f[c]]=d));if(r){if(o||e){if(o){for(u=[],c=v.length;c--;)(d=v[c])&&u.push(m[c]=d);o(null,v=[],u,l)}for(c=v.length;c--;)(d=v[c])&&(u=o?A(r,d):h[c])>-1&&(r[u]=!(s[u]=d))}}else v=ye(v===s?v.splice(p,v.length):v),o?o(null,s,v,l):x.apply(s,v)})}function be(e){for(var t,n,o,r=e.length,s=i.relative[e[0].type],a=s||i.relative[" "],l=s?1:0,c=Ee(function(e){return e===t},a,!0),d=Ee(function(e){return A(t,e)>-1},a,!0),h=[function(e,n,i){var o=!s&&(i||n!==u)||((t=n).nodeType?c(e,n,i):d(e,n,i));return t=null,o}];l<r;l++)if(n=i.relative[e[l].type])h=[Ee(Te(h),n)];else{if((n=i.filter[e[l].type].apply(null,e[l].matches))[y]){for(o=++l;o<r&&!i.relative[e[o].type];o++);return Ce(l>1&&Te(h),l>1&&ve(e.slice(0,l-1).concat({value:" "===e[l-2].type?"*":""})).replace(H,"$1"),n,l<o&&be(e.slice(l,o)),o<r&&be(e=e.slice(o)),o<r&&ve(e))}h.push(n)}return Te(h)}function De(e,t){var n=t.length>0,o=e.length>0,r=function(r,s,a,l,c){var d,p,m,v=0,E="0",T=r&&[],y=[],C=u,D=r||o&&i.find.TAG("*",c),I=b+=null==C?1:Math.random()||.1,O=D.length;for(c&&(u=s===f||s||c);E!==O&&null!=(d=D[E]);E++){if(o&&d){for(p=0,s||d.ownerDocument===f||(h(d),a=!g);m=e[p++];)if(m(d,s||f,a)){l.push(d);break}c&&(b=I)}n&&((d=!m&&d)&&v--,r&&T.push(d))}if(v+=E,n&&E!==v){for(p=0;m=t[p++];)m(T,y,s,a);if(r){if(v>0)for(;E--;)T[E]||y[E]||(y[E]=K.call(l));y=ye(y)}x.apply(l,y),c&&!r&&y.length>0&&v+t.length>1&&re.uniqueSort(l)}return c&&(b=I,u=C),T};return n?ae(r):r}return me.prototype=i.filters=i.pseudos,i.setFilters=new me,s=re.tokenize=function(e,t){var n,o,r,s,a,l,u,c=O[e+" "];if(c)return t?0:c.slice(0);for(a=e,l=[],u=i.preFilter;a;){for(s in n&&!(o=j.exec(a))||(o&&(a=a.slice(o[0].length)||a),l.push(r=[])),n=!1,(o=q.exec(a))&&(n=o.shift(),r.push({value:n,type:o[0].replace(H," ")}),a=a.slice(n.length)),i.filter)!(o=U[s].exec(a))||u[s]&&!(o=u[s](o))||(n=o.shift(),r.push({value:n,type:s,matches:o}),a=a.slice(n.length));if(!n)break}return t?a.length:a?re.error(e):O(e,l).slice(0)},a=re.compile=function(e,t){var n,i=[],o=[],r=R[e+" "];if(!r){for(t||(t=s(e)),n=t.length;n--;)(r=be(t[n]))[y]?i.push(r):o.push(r);(r=R(e,De(o,i))).selector=e}return r},l=re.select=function(e,t,n,o){var r,l,u,c,d,h="function"==typeof e&&e,f=!o&&s(e=h.selector||e);if(n=n||[],1===f.length){if((l=f[0]=f[0].slice(0)).length>2&&"ID"===(u=l[0]).type&&9===t.nodeType&&g&&i.relative[l[1].type]){if(!(t=(i.find.ID(u.matches[0].replace(J,ee),t)||[])[0]))return n;h&&(t=t.parentNode),e=e.slice(l.shift().value.length)}for(r=U.needsContext.test(e)?0:l.length;r--&&(u=l[r],!i.relative[c=u.type]);)if((d=i.find[c])&&(o=d(u.matches[0].replace(J,ee),Q.test(l[0].type)&&ge(t.parentNode)||t))){if(l.splice(r,1),!(e=o.length&&ve(l)))return x.apply(n,o),n;break}}return(h||a(e,f))(o,t,!g,n,!t||Q.test(e)&&ge(t.parentNode)||t),n},n.sortStable=y.split("").sort(_).join("")===y,n.detectDuplicates=!!d,h(),n.sortDetached=le(function(e){return 1&e.compareDocumentPosition(f.createElement("fieldset"))}),le(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)}),n.attributes&&le(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}),le(function(e){return null==e.getAttribute("disabled")})||ue(L,function(e,t,n){var i;if(!n)return!0===e[t]?t.toLowerCase():(i=e.getAttributeNode(t))&&i.specified?i.value:null}),re}(e);v.find=D,v.expr=D.selectors,v.expr[":"]=v.expr.pseudos,v.uniqueSort=v.unique=D.uniqueSort,v.text=D.getText,v.isXMLDoc=D.isXML,v.contains=D.contains,v.escapeSelector=D.escape;var I=function(e,t,n){for(var i=[],o=void 0!==n;(e=e[t])&&9!==e.nodeType;)if(1===e.nodeType){if(o&&v(e).is(n))break;i.push(e)}return i},O=function(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n},R=v.expr.match.needsContext;function _(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()}var w=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i,k=/^.[^:#\[\.,]*$/;function K(e,t,n){return v.isFunction(t)?v.grep(e,function(e,i){return!!t.call(e,i,e)!==n}):t.nodeType?v.grep(e,function(e){return e===t!==n}):"string"!=typeof t?v.grep(e,function(e){return l.call(t,e)>-1!==n}):k.test(t)?v.filter(t,e,n):(t=v.filter(t,e),v.grep(e,function(e){return l.call(t,e)>-1!==n&&1===e.nodeType}))}v.filter=function(e,t,n){var i=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===i.nodeType?v.find.matchesSelector(i,e)?[i]:[]:v.find.matches(e,v.grep(t,function(e){return 1===e.nodeType}))},v.fn.extend({find:function(e){var t,n,i=this.length,o=this;if("string"!=typeof e)return this.pushStack(v(e).filter(function(){for(t=0;t<i;t++)if(v.contains(o[t],this))return!0}));for(n=this.pushStack([]),t=0;t<i;t++)v.find(e,o[t],n);return i>1?v.uniqueSort(n):n},filter:function(e){return this.pushStack(K(this,e||[],!1))},not:function(e){return this.pushStack(K(this,e||[],!0))},is:function(e){return!!K(this,"string"==typeof e&&R.test(e)?v(e):e||[],!1).length}});var S,x=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(v.fn.init=function(e,t,n){var o,r;if(!e)return this;if(n=n||S,"string"==typeof e){if(!(o="<"===e[0]&&">"===e[e.length-1]&&e.length>=3?[null,e,null]:x.exec(e))||!o[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(o[1]){if(t=t instanceof v?t[0]:t,v.merge(this,v.parseHTML(o[1],t&&t.nodeType?t.ownerDocument||t:i,!0)),w.test(o[1])&&v.isPlainObject(t))for(o in t)v.isFunction(this[o])?this[o](t[o]):this.attr(o,t[o]);return this}return(r=i.getElementById(o[2]))&&(this[0]=r,this.length=1),this}return e.nodeType?(this[0]=e,this.length=1,this):v.isFunction(e)?void 0!==n.ready?n.ready(e):e(v):v.makeArray(e,this)}).prototype=v.fn,S=v(i);var N=/^(?:parents|prev(?:Until|All))/,A={children:!0,contents:!0,next:!0,prev:!0};function L(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}v.fn.extend({has:function(e){var t=v(e,this),n=t.length;return this.filter(function(){for(var e=0;e<n;e++)if(v.contains(this,t[e]))return!0})},closest:function(e,t){var n,i=0,o=this.length,r=[],s="string"!=typeof e&&v(e);if(!R.test(e))for(;i<o;i++)for(n=this[i];n&&n!==t;n=n.parentNode)if(n.nodeType<11&&(s?s.index(n)>-1:1===n.nodeType&&v.find.matchesSelector(n,e))){r.push(n);break}return this.pushStack(r.length>1?v.uniqueSort(r):r)},index:function(e){return e?"string"==typeof e?l.call(v(e),this[0]):l.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(v.uniqueSort(v.merge(this.get(),v(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),v.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return I(e,"parentNode")},parentsUntil:function(e,t,n){return I(e,"parentNode",n)},next:function(e){return L(e,"nextSibling")},prev:function(e){return L(e,"previousSibling")},nextAll:function(e){return I(e,"nextSibling")},prevAll:function(e){return I(e,"previousSibling")},nextUntil:function(e,t,n){return I(e,"nextSibling",n)},prevUntil:function(e,t,n){return I(e,"previousSibling",n)},siblings:function(e){return O((e.parentNode||{}).firstChild,e)},children:function(e){return O(e.firstChild)},contents:function(e){return _(e,"iframe")?e.contentDocument:(_(e,"template")&&(e=e.content||e),v.merge([],e.childNodes))}},function(e,t){v.fn[e]=function(n,i){var o=v.map(this,t,n);return"Until"!==e.slice(-5)&&(i=n),i&&"string"==typeof i&&(o=v.filter(i,o)),this.length>1&&(A[e]||v.uniqueSort(o),N.test(e)&&o.reverse()),this.pushStack(o)}});var F=/[^\x20\t\r\n\f]+/g;function P(e){return e}function B(e){throw e}function M(e,t,n,i){var o;try{e&&v.isFunction(o=e.promise)?o.call(e).done(t).fail(n):e&&v.isFunction(o=e.then)?o.call(e,t,n):t.apply(void 0,[e].slice(i))}catch(e){n.apply(void 0,[e])}}v.Callbacks=function(e){e="string"==typeof e?function(e){var t={};return v.each(e.match(F)||[],function(e,n){t[n]=!0}),t}(e):v.extend({},e);var t,n,i,o,r=[],s=[],a=-1,l=function(){for(o=o||e.once,i=t=!0;s.length;a=-1)for(n=s.shift();++a<r.length;)!1===r[a].apply(n[0],n[1])&&e.stopOnFalse&&(a=r.length,n=!1);e.memory||(n=!1),t=!1,o&&(r=n?[]:"")},u={add:function(){return r&&(n&&!t&&(a=r.length-1,s.push(n)),function t(n){v.each(n,function(n,i){v.isFunction(i)?e.unique&&u.has(i)||r.push(i):i&&i.length&&"string"!==v.type(i)&&t(i)})}(arguments),n&&!t&&l()),this},remove:function(){return v.each(arguments,function(e,t){for(var n;(n=v.inArray(t,r,n))>-1;)r.splice(n,1),n<=a&&a--}),this},has:function(e){return e?v.inArray(e,r)>-1:r.length>0},empty:function(){return r&&(r=[]),this},disable:function(){return o=s=[],r=n="",this},disabled:function(){return!r},lock:function(){return o=s=[],n||t||(r=n=""),this},locked:function(){return!!o},fireWith:function(e,n){return o||(n=[e,(n=n||[]).slice?n.slice():n],s.push(n),t||l()),this},fire:function(){return u.fireWith(this,arguments),this},fired:function(){return!!i}};return u},v.extend({Deferred:function(t){var n=[["notify","progress",v.Callbacks("memory"),v.Callbacks("memory"),2],["resolve","done",v.Callbacks("once memory"),v.Callbacks("once memory"),0,"resolved"],["reject","fail",v.Callbacks("once memory"),v.Callbacks("once memory"),1,"rejected"]],i="pending",o={state:function(){return i},always:function(){return r.done(arguments).fail(arguments),this},catch:function(e){return o.then(null,e)},pipe:function(){var e=arguments;return v.Deferred(function(t){v.each(n,function(n,i){var o=v.isFunction(e[i[4]])&&e[i[4]];r[i[1]](function(){var e=o&&o.apply(this,arguments);e&&v.isFunction(e.promise)?e.promise().progress(t.notify).done(t.resolve).fail(t.reject):t[i[0]+"With"](this,o?[e]:arguments)})}),e=null}).promise()},then:function(t,i,o){var r=0;function s(t,n,i,o){return function(){var a=this,l=arguments,u=function(){var e,u;if(!(t<r)){if((e=i.apply(a,l))===n.promise())throw new TypeError("Thenable self-resolution");u=e&&("object"==typeof e||"function"==typeof e)&&e.then,v.isFunction(u)?o?u.call(e,s(r,n,P,o),s(r,n,B,o)):(r++,u.call(e,s(r,n,P,o),s(r,n,B,o),s(r,n,P,n.notifyWith))):(i!==P&&(a=void 0,l=[e]),(o||n.resolveWith)(a,l))}},c=o?u:function(){try{u()}catch(e){v.Deferred.exceptionHook&&v.Deferred.exceptionHook(e,c.stackTrace),t+1>=r&&(i!==B&&(a=void 0,l=[e]),n.rejectWith(a,l))}};t?c():(v.Deferred.getStackHook&&(c.stackTrace=v.Deferred.getStackHook()),e.setTimeout(c))}}return v.Deferred(function(e){n[0][3].add(s(0,e,v.isFunction(o)?o:P,e.notifyWith)),n[1][3].add(s(0,e,v.isFunction(t)?t:P)),n[2][3].add(s(0,e,v.isFunction(i)?i:B))}).promise()},promise:function(e){return null!=e?v.extend(e,o):o}},r={};return v.each(n,function(e,t){var s=t[2],a=t[5];o[t[1]]=s.add,a&&s.add(function(){i=a},n[3-e][2].disable,n[0][2].lock),s.add(t[3].fire),r[t[0]]=function(){return r[t[0]+"With"](this===r?void 0:this,arguments),this},r[t[0]+"With"]=s.fireWith}),o.promise(r),t&&t.call(r,r),r},when:function(e){var t=arguments.length,n=t,i=Array(n),o=r.call(arguments),s=v.Deferred(),a=function(e){return function(n){i[e]=this,o[e]=arguments.length>1?r.call(arguments):n,--t||s.resolveWith(i,o)}};if(t<=1&&(M(e,s.done(a(n)).resolve,s.reject,!t),"pending"===s.state()||v.isFunction(o[n]&&o[n].then)))return s.then();for(;n--;)M(o[n],a(n),s.reject);return s.promise()}});var $=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;v.Deferred.exceptionHook=function(t,n){e.console&&e.console.warn&&t&&$.test(t.name)&&e.console.warn("jQuery.Deferred exception: "+t.message,t.stack,n)},v.readyException=function(t){e.setTimeout(function(){throw t})};var H=v.Deferred();function j(){i.removeEventListener("DOMContentLoaded",j),e.removeEventListener("load",j),v.ready()}v.fn.ready=function(e){return H.then(e).catch(function(e){v.readyException(e)}),this},v.extend({isReady:!1,readyWait:1,ready:function(e){(!0===e?--v.readyWait:v.isReady)||(v.isReady=!0,!0!==e&&--v.readyWait>0||H.resolveWith(i,[v]))}}),v.ready.then=H.then,"complete"===i.readyState||"loading"!==i.readyState&&!i.documentElement.doScroll?e.setTimeout(v.ready):(i.addEventListener("DOMContentLoaded",j),e.addEventListener("load",j));var q=function(e,t,n,i,o,r,s){var a=0,l=e.length,u=null==n;if("object"===v.type(n))for(a in o=!0,n)q(e,t,a,n[a],!0,r,s);else if(void 0!==i&&(o=!0,v.isFunction(i)||(s=!0),u&&(s?(t.call(e,i),t=null):(u=t,t=function(e,t,n){return u.call(v(e),n)})),t))for(;a<l;a++)t(e[a],n,s?i:i.call(e[a],a,t(e[a],n)));return o?e:u?t.call(e):l?t(e[0],n):r},z=function(e){return 1===e.nodeType||9===e.nodeType||!+e.nodeType};function W(){this.expando=v.expando+W.uid++}W.uid=1,W.prototype={cache:function(e){var t=e[this.expando];return t||(t={},z(e)&&(e.nodeType?e[this.expando]=t:Object.defineProperty(e,this.expando,{value:t,configurable:!0}))),t},set:function(e,t,n){var i,o=this.cache(e);if("string"==typeof t)o[v.camelCase(t)]=n;else for(i in t)o[v.camelCase(i)]=t[i];return o},get:function(e,t){return void 0===t?this.cache(e):e[this.expando]&&e[this.expando][v.camelCase(t)]},access:function(e,t,n){return void 0===t||t&&"string"==typeof t&&void 0===n?this.get(e,t):(this.set(e,t,n),void 0!==n?n:t)},remove:function(e,t){var n,i=e[this.expando];if(void 0!==i){if(void 0!==t){Array.isArray(t)?t=t.map(v.camelCase):t=(t=v.camelCase(t))in i?[t]:t.match(F)||[],n=t.length;for(;n--;)delete i[t[n]]}(void 0===t||v.isEmptyObject(i))&&(e.nodeType?e[this.expando]=void 0:delete e[this.expando])}},hasData:function(e){var t=e[this.expando];return void 0!==t&&!v.isEmptyObject(t)}};var V=new W,U=new W,G=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,Y=/[A-Z]/g;function X(e,t,n){var i;if(void 0===n&&1===e.nodeType)if(i="data-"+t.replace(Y,"-$&").toLowerCase(),"string"==typeof(n=e.getAttribute(i))){try{n=function(e){return"true"===e||"false"!==e&&("null"===e?null:e===+e+""?+e:G.test(e)?JSON.parse(e):e)}(n)}catch(e){}U.set(e,t,n)}else n=void 0;return n}v.extend({hasData:function(e){return U.hasData(e)||V.hasData(e)},data:function(e,t,n){return U.access(e,t,n)},removeData:function(e,t){U.remove(e,t)},_data:function(e,t,n){return V.access(e,t,n)},_removeData:function(e,t){V.remove(e,t)}}),v.fn.extend({data:function(e,t){var n,i,o,r=this[0],s=r&&r.attributes;if(void 0===e){if(this.length&&(o=U.get(r),1===r.nodeType&&!V.get(r,"hasDataAttrs"))){for(n=s.length;n--;)s[n]&&(0===(i=s[n].name).indexOf("data-")&&(i=v.camelCase(i.slice(5)),X(r,i,o[i])));V.set(r,"hasDataAttrs",!0)}return o}return"object"==typeof e?this.each(function(){U.set(this,e)}):q(this,function(t){var n;if(r&&void 0===t){if(void 0!==(n=U.get(r,e)))return n;if(void 0!==(n=X(r,e)))return n}else this.each(function(){U.set(this,e,t)})},null,t,arguments.length>1,null,!0)},removeData:function(e){return this.each(function(){U.remove(this,e)})}}),v.extend({queue:function(e,t,n){var i;if(e)return t=(t||"fx")+"queue",i=V.get(e,t),n&&(!i||Array.isArray(n)?i=V.access(e,t,v.makeArray(n)):i.push(n)),i||[]},dequeue:function(e,t){t=t||"fx";var n=v.queue(e,t),i=n.length,o=n.shift(),r=v._queueHooks(e,t);"inprogress"===o&&(o=n.shift(),i--),o&&("fx"===t&&n.unshift("inprogress"),delete r.stop,o.call(e,function(){v.dequeue(e,t)},r)),!i&&r&&r.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return V.get(e,n)||V.access(e,n,{empty:v.Callbacks("once memory").add(function(){V.remove(e,[t+"queue",n])})})}}),v.fn.extend({queue:function(e,t){var n=2;return"string"!=typeof e&&(t=e,e="fx",n--),arguments.length<n?v.queue(this[0],e):void 0===t?this:this.each(function(){var n=v.queue(this,e,t);v._queueHooks(this,e),"fx"===e&&"inprogress"!==n[0]&&v.dequeue(this,e)})},dequeue:function(e){return this.each(function(){v.dequeue(this,e)})},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){var n,i=1,o=v.Deferred(),r=this,s=this.length,a=function(){--i||o.resolveWith(r,[r])};for("string"!=typeof e&&(t=e,e=void 0),e=e||"fx";s--;)(n=V.get(r[s],e+"queueHooks"))&&n.empty&&(i++,n.empty.add(a));return a(),o.promise(t)}});var Z=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,Q=new RegExp("^(?:([+-])=|)("+Z+")([a-z%]*)$","i"),J=["Top","Right","Bottom","Left"],ee=function(e,t){return"none"===(e=t||e).style.display||""===e.style.display&&v.contains(e.ownerDocument,e)&&"none"===v.css(e,"display")},te=function(e,t,n,i){var o,r,s={};for(r in t)s[r]=e.style[r],e.style[r]=t[r];for(r in o=n.apply(e,i||[]),t)e.style[r]=s[r];return o};function ne(e,t,n,i){var o,r=1,s=20,a=i?function(){return i.cur()}:function(){return v.css(e,t,"")},l=a(),u=n&&n[3]||(v.cssNumber[t]?"":"px"),c=(v.cssNumber[t]||"px"!==u&&+l)&&Q.exec(v.css(e,t));if(c&&c[3]!==u){u=u||c[3],n=n||[],c=+l||1;do{c/=r=r||".5",v.style(e,t,c+u)}while(r!==(r=a()/l)&&1!==r&&--s)}return n&&(c=+c||+l||0,o=n[1]?c+(n[1]+1)*n[2]:+n[2],i&&(i.unit=u,i.start=c,i.end=o)),o}var ie={};function oe(e){var t,n=e.ownerDocument,i=e.nodeName,o=ie[i];return o||(t=n.body.appendChild(n.createElement(i)),o=v.css(t,"display"),t.parentNode.removeChild(t),"none"===o&&(o="block"),ie[i]=o,o)}function re(e,t){for(var n,i,o=[],r=0,s=e.length;r<s;r++)(i=e[r]).style&&(n=i.style.display,t?("none"===n&&(o[r]=V.get(i,"display")||null,o[r]||(i.style.display="")),""===i.style.display&&ee(i)&&(o[r]=oe(i))):"none"!==n&&(o[r]="none",V.set(i,"display",n)));for(r=0;r<s;r++)null!=o[r]&&(e[r].style.display=o[r]);return e}v.fn.extend({show:function(){return re(this,!0)},hide:function(){return re(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each(function(){ee(this)?v(this).show():v(this).hide()})}});var se=/^(?:checkbox|radio)$/i,ae=/<([a-z][^\/\0>\x20\t\r\n\f]+)/i,le=/^$|\/(?:java|ecma)script/i,ue={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 ce(e,t){var n;return n="undefined"!=typeof e.getElementsByTagName?e.getElementsByTagName(t||"*"):"undefined"!=typeof e.querySelectorAll?e.querySelectorAll(t||"*"):[],void 0===t||t&&_(e,t)?v.merge([e],n):n}function de(e,t){for(var n=0,i=e.length;n<i;n++)V.set(e[n],"globalEval",!t||V.get(t[n],"globalEval"))}ue.optgroup=ue.option,ue.tbody=ue.tfoot=ue.colgroup=ue.caption=ue.thead,ue.th=ue.td;var he=/<|&#?\w+;/;function fe(e,t,n,i,o){for(var r,s,a,l,u,c,d=t.createDocumentFragment(),h=[],f=0,p=e.length;f<p;f++)if((r=e[f])||0===r)if("object"===v.type(r))v.merge(h,r.nodeType?[r]:r);else if(he.test(r)){for(s=s||d.appendChild(t.createElement("div")),a=(ae.exec(r)||["",""])[1].toLowerCase(),l=ue[a]||ue._default,s.innerHTML=l[1]+v.htmlPrefilter(r)+l[2],c=l[0];c--;)s=s.lastChild;v.merge(h,s.childNodes),(s=d.firstChild).textContent=""}else h.push(t.createTextNode(r));for(d.textContent="",f=0;r=h[f++];)if(i&&v.inArray(r,i)>-1)o&&o.push(r);else if(u=v.contains(r.ownerDocument,r),s=ce(d.appendChild(r),"script"),u&&de(s),n)for(c=0;r=s[c++];)le.test(r.type||"")&&n.push(r);return d}!function(){var e=i.createDocumentFragment().appendChild(i.createElement("div")),t=i.createElement("input");t.setAttribute("type","radio"),t.setAttribute("checked","checked"),t.setAttribute("name","t"),e.appendChild(t),p.checkClone=e.cloneNode(!0).cloneNode(!0).lastChild.checked,e.innerHTML="<textarea>x</textarea>",p.noCloneChecked=!!e.cloneNode(!0).lastChild.defaultValue}();var pe=i.documentElement,ge=/^key/,me=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,ve=/^([^.]*)(?:\.(.+)|)/;function Ee(){return!0}function Te(){return!1}function ye(){try{return i.activeElement}catch(e){}}function Ce(e,t,n,i,o,r){var s,a;if("object"==typeof t){for(a in"string"!=typeof n&&(i=i||n,n=void 0),t)Ce(e,a,n,i,t[a],r);return e}if(null==i&&null==o?(o=n,i=n=void 0):null==o&&("string"==typeof n?(o=i,i=void 0):(o=i,i=n,n=void 0)),!1===o)o=Te;else if(!o)return e;return 1===r&&(s=o,(o=function(e){return v().off(e),s.apply(this,arguments)}).guid=s.guid||(s.guid=v.guid++)),e.each(function(){v.event.add(this,t,o,i,n)})}v.event={global:{},add:function(e,t,n,i,o){var r,s,a,l,u,c,d,h,f,p,g,m=V.get(e);if(m)for(n.handler&&(n=(r=n).handler,o=r.selector),o&&v.find.matchesSelector(pe,o),n.guid||(n.guid=v.guid++),(l=m.events)||(l=m.events={}),(s=m.handle)||(s=m.handle=function(t){return"undefined"!=typeof v&&v.event.triggered!==t.type?v.event.dispatch.apply(e,arguments):void 0}),u=(t=(t||"").match(F)||[""]).length;u--;)f=g=(a=ve.exec(t[u])||[])[1],p=(a[2]||"").split(".").sort(),f&&(d=v.event.special[f]||{},f=(o?d.delegateType:d.bindType)||f,d=v.event.special[f]||{},c=v.extend({type:f,origType:g,data:i,handler:n,guid:n.guid,selector:o,needsContext:o&&v.expr.match.needsContext.test(o),namespace:p.join(".")},r),(h=l[f])||((h=l[f]=[]).delegateCount=0,d.setup&&!1!==d.setup.call(e,i,p,s)||e.addEventListener&&e.addEventListener(f,s)),d.add&&(d.add.call(e,c),c.handler.guid||(c.handler.guid=n.guid)),o?h.splice(h.delegateCount++,0,c):h.push(c),v.event.global[f]=!0)},remove:function(e,t,n,i,o){var r,s,a,l,u,c,d,h,f,p,g,m=V.hasData(e)&&V.get(e);if(m&&(l=m.events)){for(u=(t=(t||"").match(F)||[""]).length;u--;)if(f=g=(a=ve.exec(t[u])||[])[1],p=(a[2]||"").split(".").sort(),f){for(d=v.event.special[f]||{},h=l[f=(i?d.delegateType:d.bindType)||f]||[],a=a[2]&&new RegExp("(^|\\.)"+p.join("\\.(?:.*\\.|)")+"(\\.|$)"),s=r=h.length;r--;)c=h[r],!o&&g!==c.origType||n&&n.guid!==c.guid||a&&!a.test(c.namespace)||i&&i!==c.selector&&("**"!==i||!c.selector)||(h.splice(r,1),c.selector&&h.delegateCount--,d.remove&&d.remove.call(e,c));s&&!h.length&&(d.teardown&&!1!==d.teardown.call(e,p,m.handle)||v.removeEvent(e,f,m.handle),delete l[f])}else for(f in l)v.event.remove(e,f+t[u],n,i,!0);v.isEmptyObject(l)&&V.remove(e,"handle events")}},dispatch:function(e){var t,n,i,o,r,s,a=v.event.fix(e),l=new Array(arguments.length),u=(V.get(this,"events")||{})[a.type]||[],c=v.event.special[a.type]||{};for(l[0]=a,t=1;t<arguments.length;t++)l[t]=arguments[t];if(a.delegateTarget=this,!c.preDispatch||!1!==c.preDispatch.call(this,a)){for(s=v.event.handlers.call(this,a,u),t=0;(o=s[t++])&&!a.isPropagationStopped();)for(a.currentTarget=o.elem,n=0;(r=o.handlers[n++])&&!a.isImmediatePropagationStopped();)a.rnamespace&&!a.rnamespace.test(r.namespace)||(a.handleObj=r,a.data=r.data,void 0!==(i=((v.event.special[r.origType]||{}).handle||r.handler).apply(o.elem,l))&&!1===(a.result=i)&&(a.preventDefault(),a.stopPropagation()));return c.postDispatch&&c.postDispatch.call(this,a),a.result}},handlers:function(e,t){var n,i,o,r,s,a=[],l=t.delegateCount,u=e.target;if(l&&u.nodeType&&!("click"===e.type&&e.button>=1))for(;u!==this;u=u.parentNode||this)if(1===u.nodeType&&("click"!==e.type||!0!==u.disabled)){for(r=[],s={},n=0;n<l;n++)void 0===s[o=(i=t[n]).selector+" "]&&(s[o]=i.needsContext?v(o,this).index(u)>-1:v.find(o,this,null,[u]).length),s[o]&&r.push(i);r.length&&a.push({elem:u,handlers:r})}return u=this,l<t.length&&a.push({elem:u,handlers:t.slice(l)}),a},addProp:function(e,t){Object.defineProperty(v.Event.prototype,e,{enumerable:!0,configurable:!0,get:v.isFunction(t)?function(){if(this.originalEvent)return t(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[e]},set:function(t){Object.defineProperty(this,e,{enumerable:!0,configurable:!0,writable:!0,value:t})}})},fix:function(e){return e[v.expando]?e:new v.Event(e)},special:{load:{noBubble:!0},focus:{trigger:function(){if(this!==ye()&&this.focus)return this.focus(),!1},delegateType:"focusin"},blur:{trigger:function(){if(this===ye()&&this.blur)return this.blur(),!1},delegateType:"focusout"},click:{trigger:function(){if("checkbox"===this.type&&this.click&&_(this,"input"))return this.click(),!1},_default:function(e){return _(e.target,"a")}},beforeunload:{postDispatch:function(e){void 0!==e.result&&e.originalEvent&&(e.originalEvent.returnValue=e.result)}}}},v.removeEvent=function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n)},v.Event=function(e,t){return this instanceof v.Event?(e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||void 0===e.defaultPrevented&&!1===e.returnValue?Ee:Te,this.target=e.target&&3===e.target.nodeType?e.target.parentNode:e.target,this.currentTarget=e.currentTarget,this.relatedTarget=e.relatedTarget):this.type=e,t&&v.extend(this,t),this.timeStamp=e&&e.timeStamp||v.now(),void(this[v.expando]=!0)):new v.Event(e,t)},v.Event.prototype={constructor:v.Event,isDefaultPrevented:Te,isPropagationStopped:Te,isImmediatePropagationStopped:Te,isSimulated:!1,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=Ee,e&&!this.isSimulated&&e.preventDefault()},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=Ee,e&&!this.isSimulated&&e.stopPropagation()},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=Ee,e&&!this.isSimulated&&e.stopImmediatePropagation(),this.stopPropagation()}},v.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,char:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:function(e){var t=e.button;return null==e.which&&ge.test(e.type)?null!=e.charCode?e.charCode:e.keyCode:!e.which&&void 0!==t&&me.test(e.type)?1&t?1:2&t?3:4&t?2:0:e.which}},v.event.addProp),v.each({mouseenter:"mouseover",mouseleave:"mou
1seout",pointerenter:"pointerover",pointerleave:"pointerout"},function(e,t){v.event.special[e]={delegateType:t,bindType:t,handle:function(e){var n,i=e.relatedTarget,o=e.handleObj;return i&&(i===this||v.contains(this,i))||(e.type=o.origType,n=o.handler.apply(this,arguments),e.type=t),n}}}),v.fn.extend({on:function(e,t,n,i){return Ce(this,e,t,n,i)},one:function(e,t,n,i){return Ce(this,e,t,n,i,1)},off:function(e,t,n){var i,o;if(e&&e.preventDefault&&e.handleObj)return i=e.handleObj,v(e.delegateTarget).off(i.namespace?i.origType+"."+i.namespace:i.origType,i.selector,i.handler),this;if("object"==typeof e){for(o in e)this.off(o,t,e[o]);return this}return!1!==t&&"function"!=typeof t||(n=t,t=void 0),!1===n&&(n=Te),this.each(function(){v.event.remove(this,e,n,t)})}});var be=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([a-z][^\/\0>\x20\t\r\n\f]*)[^>]*)\/>/gi,De=/<script|<style|<link/i,Ie=/checked\s*(?:[^=]|=\s*.checked.)/i,Oe=/^true\/(.*)/,Re=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;function _e(e,t){return _(e,"table")&&_(11!==t.nodeType?t:t.firstChild,"tr")&&v(">tbody",e)[0]||e}function we(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function ke(e){var t=Oe.exec(e.type);return t?e.type=t[1]:e.removeAttribute("type"),e}function Ke(e,t){var n,i,o,r,s,a,l,u;if(1===t.nodeType){if(V.hasData(e)&&(r=V.access(e),s=V.set(t,r),u=r.events))for(o in delete s.handle,s.events={},u)for(n=0,i=u[o].length;n<i;n++)v.event.add(t,o,u[o][n]);U.hasData(e)&&(a=U.access(e),l=v.extend({},a),U.set(t,l))}}function Se(e,t){var n=t.nodeName.toLowerCase();"input"===n&&se.test(e.type)?t.checked=e.checked:"input"!==n&&"textarea"!==n||(t.defaultValue=e.defaultValue)}function xe(e,t,n,i){t=s.apply([],t);var o,r,a,l,u,c,d=0,h=e.length,f=h-1,m=t[0],E=v.isFunction(m);if(E||h>1&&"string"==typeof m&&!p.checkClone&&Ie.test(m))return e.each(function(o){var r=e.eq(o);E&&(t[0]=m.call(this,o,r.html())),xe(r,t,n,i)});if(h&&(r=(o=fe(t,e[0].ownerDocument,!1,e,i)).firstChild,1===o.childNodes.length&&(o=r),r||i)){for(l=(a=v.map(ce(o,"script"),we)).length;d<h;d++)u=o,d!==f&&(u=v.clone(u,!0,!0),l&&v.merge(a,ce(u,"script"))),n.call(e[d],u,d);if(l)for(c=a[a.length-1].ownerDocument,v.map(a,ke),d=0;d<l;d++)u=a[d],le.test(u.type||"")&&!V.access(u,"globalEval")&&v.contains(c,u)&&(u.src?v._evalUrl&&v._evalUrl(u.src):g(u.textContent.replace(Re,""),c))}return e}function Ne(e,t,n){for(var i,o=t?v.filter(t,e):e,r=0;null!=(i=o[r]);r++)n||1!==i.nodeType||v.cleanData(ce(i)),i.parentNode&&(n&&v.contains(i.ownerDocument,i)&&de(ce(i,"script")),i.parentNode.removeChild(i));return e}v.extend({htmlPrefilter:function(e){return e.replace(be,"<$1></$2>")},clone:function(e,t,n){var i,o,r,s,a=e.cloneNode(!0),l=v.contains(e.ownerDocument,e);if(!(p.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||v.isXMLDoc(e)))for(s=ce(a),i=0,o=(r=ce(e)).length;i<o;i++)Se(r[i],s[i]);if(t)if(n)for(r=r||ce(e),s=s||ce(a),i=0,o=r.length;i<o;i++)Ke(r[i],s[i]);else Ke(e,a);return(s=ce(a,"script")).length>0&&de(s,!l&&ce(e,"script")),a},cleanData:function(e){for(var t,n,i,o=v.event.special,r=0;void 0!==(n=e[r]);
vendor: 15,486 bytes, line 1
1r++)if(z(n)){if(t=n[V.expando]){if(t.events)for(i in t.events)o[i]?v.event.remove(n,i):v.removeEvent(n,i,t.handle);n[V.expando]=void 0}n[U.expando]&&(n[U.expando]=void 0)}}}),v.fn.extend({detach:function(e){return Ne(this,e,!0)},remove:function(e){return Ne(this,e)},text:function(e){return q(this,function(e){return void 0===e?v.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||_e(this,e).appendChild(e)})},prepend:function(){return xe(this,arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=_e(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&&(v.cleanData(ce(e,!1)),e.textContent="");return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map(function(){return v.clone(this,e,t)})},html:function(e){return q(this,function(e){var t=this[0]||{},n=0,i=this.length;if(void 0===e&&1===t.nodeType)return t.innerHTML;if("string"==typeof e&&!De.test(e)&&!ue[(ae.exec(e)||["",""])[1].toLowerCase()]){e=v.htmlPrefilter(e);try{for(;n<i;n++)1===(t=this[n]||{}).nodeType&&(v.cleanData(ce(t,!1)),t.innerHTML=e);t=0}catch(e){}}t&&this.empty().append(e)},null,e,arguments.length)},replaceWith:function(){var e=[];return xe(this,arguments,function(t){var n=this.parentNode;v.inArray(this,e)<0&&(v.cleanData(ce(this)),n&&n.replaceChild(t,this))},e)}}),v.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(e,t){v.fn[e]=function(e){for(var n,i=[],o=v(e),r=o.length-1,s=0;s<=r;s++)n=s===r?this:this.clone(!0),v(o[s])[t](n),a.apply(i,n.get());return this.pushStack(i)}});var Ae=/^margin/,Le=new RegExp("^("+Z+")(?!px)[a-z%]+$","i"),Fe=function(t){var n=t.ownerDocument.defaultView;return n&&n.opener||(n=e),n.getComputedStyle(t)};function Pe(e,t,n){var i,o,r,s,a=e.style;return(n=n||Fe(e))&&(""!==(s=n.getPropertyValue(t)||n[t])||v.contains(e.ownerDocument,e)||(s=v.style(e,t)),!p.pixelMarginRight()&&Le.test(s)&&Ae.test(t)&&(i=a.width,o=a.minWidth,r=a.maxWidth,a.minWidth=a.maxWidth=a.width=s,s=n.width,a.width=i,a.minWidth=o,a.maxWidth=r)),void 0!==s?s+"":s}function Be(e,t){return{get:function(){return e()?void delete this.get:(this.get=t).apply(this,arguments)}}}!function(){function t(){if(l){l.style.cssText="box-sizing:border-box;position:relative;display:block;margin:auto;border:1px;padding:1px;top:1%;width:50%",l.innerHTML="",pe.appendChild(a);var t=e.getComputedStyle(l);n="1%"!==t.top,s="2px"===t.marginLeft,o="4px"===t.width,l.style.marginRight="50%",r="4px"===t.marginRight,pe.removeChild(a),l=null}}var n,o,r,s,a=i.createElement("div"),l=i.createElement("div");l.style&&(l.style.backgroundClip="content-box",l.cloneNode(!0).style.backgroundClip="",p.clearCloneStyle="content-box"===l.style.backgroundClip,a.style.cssText="border:0;width:8px;height:0;top:0;left:-9999px;padding:0;margin-top:1px;position:absolute",a.appendChild(l),v.extend(p,{pixelPosition:function(){return t(),n},boxSizingReliable:function(){return t(),o},pixelMarginRight:function(){return t(),r},reliableMarginLeft:function(){return t(),s}}))}();var Me=/^(none|table(?!-c[ea]).+)/,$e=/^--/,He={position:"absolute",visibility:"hidden",display:"block"},je={letterSpacing:"0",fontWeight:"400"},qe=["Webkit","Moz","ms"],ze=i.createElement("div").style;function We(e){var t=v.cssProps[e];return t||(t=v.cssProps[e]=function(e){if(e in ze)return e;for(var t=e[0].toUpperCase()+e.slice(1),n=qe.length;n--;)if((e=qe[n]+t)in ze)return e}(e)||e),t}function Ve(e,t,n){var i=Q.exec(t);return i?Math.max(0,i[2]-(n||0))+(i[3]||"px"):t}function Ue(e,t,n,i,o){var r,s=0;for(r=n===(i?"border":"content")?4:"width"===t?1:0;r<4;r+=2)"margin"===n&&(s+=v.css(e,n+J[r],!0,o)),i?("content"===n&&(s-=v.css(e,"padding"+J[r],!0,o)),"margin"!==n&&(s-=v.css(e,"border"+J[r]+"Width",!0,o))):(s+=v.css(e,"padding"+J[r],!0,o),"padding"!==n&&(s+=v.css(e,"border"+J[r]+"Width",!0,o)));return s}function Ge(e,t,n){var i,o=Fe(e),r=Pe(e,t,o),s="border-box"===v.css(e,"boxSizing",!1,o);return Le.test(r)?r:(i=s&&(p.boxSizingReliable()||r===e.style[t]),"auto"===r&&(r=e["offset"+t[0].toUpperCase()+t.slice(1)]),(r=parseFloat(r)||0)+Ue(e,t,n||(s?"border":"content"),i,o)+"px")}function Ye(e,t,n,i,o){return new Ye.prototype.init(e,t,n,i,o)}v.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=Pe(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,i){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var o,r,s,a=v.camelCase(t),l=$e.test(t),u=e.style;return l||(t=We(a)),s=v.cssHooks[t]||v.cssHooks[a],void 0===n?s&&"get"in s&&void 0!==(o=s.get(e,!1,i))?o:u[t]:("string"===(r=typeof n)&&(o=Q.exec(n))&&o[1]&&(n=ne(e,t,o),r="number"),void(null!=n&&n==n&&("number"===r&&(n+=o&&o[3]||(v.cssNumber[a]?"":"px")),p.clearCloneStyle||""!==n||0!==t.indexOf("background")||(u[t]="inherit"),s&&"set"in s&&void 0===(n=s.set(e,n,i))||(l?u.setProperty(t,n):u[t]=n))))}},css:function(e,t,n,i){var o,r,s,a=v.camelCase(t);return $e.test(t)||(t=We(a)),(s=v.cssHooks[t]||v.cssHooks[a])&&"get"in s&&(o=s.get(e,!0,n)),void 0===o&&(o=Pe(e,t,i)),"normal"===o&&t in je&&(o=je[t]),""===n||n?(r=parseFloat(o),!0===n||isFinite(r)?r||0:o):o}}),v.each(["height","width"],function(e,t){v.cssHooks[t]={get:function(e,n,i){if(n)return!Me.test(v.css(e,"display"))||e.getClientRects().length&&e.getBoundingClientRect().width?Ge(e,t,i):te(e,He,function(){return Ge(e,t,i)})},set:function(e,n,i){var o,r=i&&Fe(e),s=i&&Ue(e,t,i,"border-box"===v.css(e,"boxSizing",!1,r),r);return s&&(o=Q.exec(n))&&"px"!==(o[3]||"px")&&(e.style[t]=n,n=v.css(e,t)),Ve(0,n,s)}}}),v.cssHooks.marginLeft=Be(p.reliableMarginLeft,function(e,t){if(t)return(parseFloat(Pe(e,"marginLeft"))||e.getBoundingClientRect().left-te(e,{marginLeft:0},function(){return e.getBoundingClientRect().left}))+"px"}),v.each({margin:"",padding:"",border:"Width"},function(e,t){v.cssHooks[e+t]={expand:function(n){for(var i=0,o={},r="string"==typeof n?n.split(" "):[n];i<4;i++)o[e+J[i]+t]=r[i]||r[i-2]||r[0];return o}},Ae.test(e)||(v.cssHooks[e+t].set=Ve)}),v.fn.extend({css:function(e,t){return q(this,function(e,t,n){var i,o,r={},s=0;if(Array.isArray(t)){for(i=Fe(e),o=t.length;s<o;s++)r[t[s]]=v.css(e,t[s],!1,i);return r}return void 0!==n?v.style(e,t,n):v.css(e,t)},e,t,arguments.length>1)}}),v.Tween=Ye,Ye.prototype={constructor:Ye,init:function(e,t,n,i,o,r){this.elem=e,this.prop=n,this.easing=o||v.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=i,this.unit=r||(v.cssNumber[n]?"":"px")},cur:function(){var e=Ye.propHooks[this.prop];return e&&e.get?e.get(this):Ye.propHooks._default.get(this)},run:function(e){var t,n=Ye.propHooks[this.prop];return this.options.duration?this.pos=t=v.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):Ye.propHooks._default.set(this),this}},Ye.prototype.init.prototype=Ye.prototype,Ye.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=v.css(e.elem,e.prop,""))&&"auto"!==t?t:0},set:function(e){v.fx.step[e.prop]?v.fx.step[e.prop](e):1!==e.elem.nodeType||null==e.elem.style[v.cssProps[e.prop]]&&!v.cssHooks[e.prop]?e.elem[e.prop]=e.now:v.style(e.elem,e.prop,e.now+e.unit)}}},Ye.propHooks.scrollTop=Ye.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},v.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},_default:"swing"},v.fx=Ye.prototype.init,v.fx.step={};var Xe,Ze,Qe=/^(?:toggle|show|hide)$/,Je=/queueHooks$/;function et(){Ze&&(!1===i.hidden&&e.requestAnimationFrame?e.requestAnimationFrame(et):e.setTimeout(et,v.fx.interval),v.fx.tick())}function tt(){return e.setTimeout(function(){Xe=void 0}),Xe=v.now()}function nt(e,t){var n,i=0,o={height:e};for(t=t?1:0;i<4;i+=2-t)o["margin"+(n=J[i])]=o["padding"+n]=e;return t&&(o.opacity=o.width=e),o}function it(e,t,n){for(var i,o=(ot.tweeners[t]||[]).concat(ot.tweeners["*"]),r=0,s=o.length;r<s;r++)if(i=o[r].call(n,t,e))return i}function ot(e,t,n){var i,o,r=0,s=ot.prefilters.length,a=v.Deferred().always(function(){delete l.elem}),l=function(){if(o)return!1;for(var t=Xe||tt(),n=Math.max(0,u.startTime+u.duration-t),i=1-(n/u.duration||0),r=0,s=u.tweens.length;r<s;r++)u.tweens[r].run(i);return a.notifyWith(e,[u,i,n]),i<1&&s?n:(s||a.notifyWith(e,[u,1,0]),a.resolveWith(e,[u]),!1)},u=a.promise({elem:e,props:v.extend({},t),opts:v.extend(!0,{specialEasing:{},easing:v.easing._default},n),originalProperties:t,originalOptions:n,startTime:Xe||tt(),duration:n.duration,tweens:[],createTween:function(t,n){var i=v.Tween(e,u.opts,t,n,u.opts.specialEasing[t]||u.opts.easing);return u.tweens.push(i),i},stop:function(t){var n=0,i=t?u.tweens.length:0;if(o)return this;for(o=!0;n<i;n++)u.tweens[n].run(1);return t?(a.notifyWith(e,[u,1,0]),a.resolveWith(e,[u,t])):a.rejectWith(e,[u,t]),this}}),c=u.props;for(function(e,t){var n,i,o,r,s;for(n in e)if(o=t[i=v.camelCase(n)],r=e[n],Array.isArray(r)&&(o=r[1],r=e[n]=r[0]),n!==i&&(e[i]=r,delete e[n]),(s=v.cssHooks[i])&&"expand"in s)for(n in r=s.expand(r),delete e[i],r)n in e||(e[n]=r[n],t[n]=o);else t[i]=o}(c,u.opts.specialEasing);r<s;r++)if(i=ot.prefilters[r].call(u,e,c,u.opts))return v.isFunction(i.stop)&&(v._queueHooks(u.elem,u.opts.queue).stop=v.proxy(i.stop,i)),i;return v.map(c,it,u),v.isFunction(u.opts.start)&&u.opts.start.call(e,u),u.progress(u.opts.progress).done(u.opts.done,u.opts.complete).fail(u.opts.fail).always(u.opts.always),v.fx.timer(v.extend(l,{elem:e,anim:u,queue:u.opts.queue})),u}v.Animation=v.extend(ot,{tweeners:{"*":[function(e,t){var n=this.createTween(e,t);return ne(n.elem,e,Q.exec(t),n),n}]},tweener:function(e,t){v.isFunction(e)?(t=e,e=["*"]):e=e.match(F);for(var n,i=0,o=e.length;i<o;i++)n=e[i],ot.tweeners[n]=ot.tweeners[n]||[],ot.tweeners[n].unshift(t)},prefilters:[function(e,t,n){var i,o,r,s,a,l,u,c,d="width"in t||"height"in t,h=this,f={},p=e.style,g=e.nodeType&&ee(e),m=V.get(e,"fxshow");for(i in n.queue||(null==(s=v._queueHooks(e,"fx")).unqueued&&(s.unqueued=0,a=s.empty.fire,s.empty.fire=function(){s.unqueued||a()}),s.unqueued++,h.always(function(){h.always(function(){s.unqueued--,v.queue(e,"fx").length||s.empty.fire()})})),t)if(o=t[i],Qe.test(o)){if(delete t[i],r=r||"toggle"===o,o===(g?"hide":"show")){if("show"!==o||!m||void 0===m[i])continue;g=!0}f[i]=m&&m[i]||v.style(e,i)}if((l=!v.isEmptyObject(t))||!v.isEmptyObject(f))for(i in d&&1===e.nodeType&&(n.overflow=[p.overflow,p.overflowX,p.overflowY],null==(u=m&&m.display)&&(u=V.get(e,"display")),"none"===(c=v.css(e,"display"))&&(u?c=u:(re([e],!0),u=e.style.display||u,c=v.css(e,"display"),re([e]))),("inline"===c||"inline-block"===c&&null!=u)&&"none"===v.css(e,"float")&&(l||(h.done(function(){p.display=u}),null==u&&(c=p.display,u="none"===c?"":c)),p.display="inline-block")),n.overflow&&(p.overflow="hidden",h.always(function(){p.overflow=n.overflow[0],p.overflowX=n.overflow[1],p.overflowY=n.overflow[2]})),l=!1,f)l||(m?"hidden"in m&&(g=m.hidden):m=V.access(e,"fxshow",{display:u}),r&&(m.hidden=!g),g&&re([e],!0),h.done(function(){for(i in g||re([e]),V.remove(e,"fxshow"),f)v.style(e,i,f[i])})),l=it(g?m[i]:0,i,h),i in m||(m[i]=l.start,g&&(l.end=l.start,l.start=0))}],prefilter:function(e,t){t?ot.prefilters.unshift(e):ot.prefilters.push(e)}}),v.speed=function(e,t,n){var i=e&&"object"==typeof e?v.extend({},e):{complete:n||!n&&t||v.isFunction(e)&&e,duration:e,easing:n&&t||t&&!v.isFunction(t)&&t};return v.fx.off?i.duration=0:"number"!=typeof i.duration&&(i.duration in v.fx.speeds?i.duration=v.fx.speeds[i.duration]:i.duration=v.fx.speeds._default),null!=i.queue&&!0!==i.queue||(i.queue="fx"),i.old=i.complete,i.complete=function(){v.isFunction(i.old)&&i.old.call(this),i.queue&&v.dequeue(this,i.queue)},i},v.fn.extend({fadeTo:function(e,t,n,i){return this.filter(ee).css("opacity",0).show().end().animate({opacity:t},e,n,i)},animate:function(e,t,n,i){var o=v.isEmptyObject(e),r=v.speed(t,n,i),s=function(){var t=ot(this,v.extend({},e),r);(o||V.get(this,"finish"))&&t.stop(!0)};return s.finish=s,o||!1===r.queue?this.each(s):this.queue(r.queue,s)},stop:function(e,t,n){var i=function(e){var t=e.stop;delete e.stop,t(n)};return"string"!=typeof e&&(n=t,t=e,e=void 0),t&&!1!==e&&this.queue(e||"fx",[]),this.each(function(){var t=!0,o=null!=e&&e+"queueHooks",r=v.timers,s=V.get(this);if(o)s[o]&&s[o].stop&&i(s[o]);else for(o in s)s[o]&&s[o].stop&&Je.test(o)&&i(s[o]);for(o=r.length;o--;)r[o].elem!==this||null!=e&&r[o].queue!==e||(r[o].anim.stop(n),t=!1,r.splice(o,1));!t&&n||v.dequeue(this,e)})},finish:function(e){return!1!==e&&(e=e||"fx"),this.each(function(){var t,n=V.get(this),i=n[e+"queue"],o=n[e+"queueHooks"],r=v.timers,s=i?i.length:0;for(n.finish=!0,v.queue(this,e,[]),o&&o.stop&&o.stop.call(this,!0),t=r.length;t--;)r[t].elem===this&&r[t].queue===e&&(r[t].anim.stop(!0),r.splice(t,1));for(t=0;t<s;t++)i[t]&&i[t].finish&&i[t].finish.call(this);delete n.finish})}}),v.each(["toggle","show","hide"],function(e,t){var n=v.fn[t];v.fn[t]=function(e,i,o){return null==e||"boolean"==typeof e?n.apply(this,arguments):this.animate(nt(t,!0),e,i,o)}}),v.each({slideDown:nt("show"),slideUp:nt("hide"),slideToggle:nt("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(e,t){v.fn[e]=function(e,n,i){return this.animate(t,e,n,i)}}),v.timers=[],v.fx.tick=function(){var e,t=0,n=v.timers;for(Xe=v.now();t<n.length;t++)(e=n[t])()||n[t]!==e||n.splice(t--,1);n.length||v.fx.stop(),Xe=void 0},v.fx.timer=function(e){v.timers.push(e),v.fx.start()},v.fx.interval=13,v.fx.start=function(){Ze||(Ze=!0,et())},v.fx.stop=function(){Ze=null},v.fx.speeds={slow:600,fast:200,_default:400},v.fn.delay=function(t,n){return t=v.fx&&v.fx.speeds[t]||t,n=n||"fx",this.queue(n,function(n,i){var o=e.setTimeout(n,t);i.stop=function(){e.clearTimeout(o)}})},function(){var e=i.createElement("input"),t=i.createElement("select").appendChild(i.createElement("option"));e.type="checkbox",p.checkOn=""!==e.value,p.optSelected=t.selected,(e=i.createElement("input")).value="t",e.type="radio",p.radioValue="t"===e.value}();var rt,st=v.expr.attrHandle;v.fn.extend({attr:function(e,t){return q(this,v.attr,e,t,arguments.length>1)},removeAttr:function(e){return this.each(function(){v.removeAttr(this,e)})}}),v.extend({attr:function(e,t,n){var i,o,r=e.nodeType;if(3!==r&&8!==r&&2!==r)return"undefined"==typeof e.getAttribute?v.prop(e,t,n):(1===r&&v.isXMLDoc(e)||(o=v.attrHooks[t.toLowerCase()]||(v.expr.match.bool.test(t)?rt:void 0)),void 0!==n?null===n?void v.removeAttr(e,t):o&&"set"in o&&void 0!==(i=o.set(e,n,t))?i:(e.setAttribute(t,n+""),n):o&&"get"in o&&null!==(i=o.get(e,t))?i:null==(i=v.find.attr(e,t))?void 0:i)},attrHooks:{type:{set:function(e,t){if(!p.radioValue&&"radio"===t&&_(e,"
1input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}}},removeAttr:function(e,t){var n,i=0,o=t&&t.match(F);if(o&&1===e.nodeType)for(;n=o[i++];)e.removeAttribute(n)}}),rt={set:function(e,t,n){return!1===t?v.removeAttr(e,n):e.setAttribute(n,n),n}},v.each(v.expr.match.bool.source.match(/\w+/g),function(e,t){var n=st[t]||v.find.attr;st[t]=function(e,t,i){var o,r,s=t.toLowerCase();return i||(r=st[s],st[s]=o,o=null!=n(e,t,i)?s:null,st[s]=r),o}});var at=/^(?:input|select|textarea|button)$/i,lt=/^(?:a|area)$/i;function ut(e){return(e.match(F)||[]).join(" ")}function ct(e){return e.getAttribute&&e.getAttribute("class")||""}v.fn.extend({prop:function(e,t){return q(this,v.prop,e,t,arguments.length>1)},removeProp:function(e){return this.each(function(){delete this[v.propFix[e]||e]})}}),v.extend({prop:function(e,t,n){var i,o,r=e.nodeType;if(3!==r&&8!==r&&2!==r)return 1===r&&v.isXMLDoc(e)||(t=v.propFix[t]||t,o=v.propHooks[t]),void 0!==n?o&&"set"in o&&void 0!==(i=o.set(e,n,t))?i:e[t]=n:o&&"get"in o&&null!==(i=o.get(e,t))?i:e[t]},propHooks:{tabIndex:{get:function(e){var t=v.find.attr(e,"tabindex");return t?parseInt(t,10):at.test(e.nodeName)||lt.test(e.nodeName)&&e.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),p.optSelected||(v.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)}}),v.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){v.propFix[this.toLowerCase()]=this}),v.fn.extend({addClass:function(e){var t,n,i,o,r,s,a,l=0;if(v.isFunction(e))return this.each(function(t){v(this).addClass(e.call(this,t,ct(this)))});if("string"==typeof e&&e)for(t=e.match(F)||[];n=this[l++];)if(o=ct(n),i=1===n.nodeType&&" "+ut(o)+" "){for(s=0;r=t[s++];)i.indexOf(" "+r+" ")<0&&(i+=r+" ");o!==(a=ut(i))&&n.setAttribute("class",a)}return this},removeClass:function(e){var t,n,i,o,r,s,a,l=0;if(v.isFunction(e))return this.each(function(t){v(this).removeClass(e.call(this,t,ct(this)))});if(!arguments.length)return this.attr("class","");if("string"==typeof e&&e)for(t=e.match(F)||[];n=this[l++];)if(o=ct(n),i=1===n.nodeType&&" "+ut(o)+" "){for(s=0;r=t[s++];)for(;i.indexOf(" "+r+" ")>-1;)i=i.replace(" "+r+" "," ");o!==(a=ut(i))&&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):v.isFunction(e)?this.each(function(n){v(this).toggleClass(e.call(this,n,ct(this),t),t)}):this.each(function(){var t,i,o,r;if("string"===n)for(i=0,o=v(this),r=e.match(F)||[];t=r[i++];)o.hasClass(t)?o.removeClass(t):o.addClass(t);else void 0!==e&&"boolean"!==n||((t=ct(this))&&V.set(this,"__className__",t),this.setAttribute&&this.setAttribute("class",t||!1===e?"":V.get(this,"__className__")||""))})},hasClass:function(e){var t,n,i=0;for(t=" "+e+" ";n=this[i++];)if(1===n.nodeType&&(" "+ut(ct(n))+" ").indexOf(t)>-1)return!0;return!1}});var dt=/\r/g;v.fn.extend({val:function(e){var t,n,i,o=this[0];return arguments.length?(i=v.isFunction(e),this.each(function(n){var o;1===this.nodeType&&(null==(o=i?e.call(this,n,v(this).val()):e)?o="":"number"==typeof o?o+="":Array.isArray(o)&&(o=v.map(o,function(e){return null==e?"":e+""})),(t=v.valHooks[this.type]||v.valHooks[this.nodeName.toLowerCase()])&&"set"in t&&void 0!==t.set(this,o,"value")||(this.value=o))})):o?(t=v.valHooks[o.type]||v.valHooks[o.nodeName.toLowerCase()])&&"get"in t&&void 0!==(n=t.get(o,"value"))?n:"string"==typeof(n=o.value)?n.replace(dt,""):null==n?"":n:void 0}}),v.extend({valHooks:{option:{get:function(e){var t=v.find.attr(e,"value");return null!=t?t:ut(v.text(e))}},select:{get:function(e){var t,n,i,o=e.options,r=e.selectedIndex,s="select-one"===e.type,a=s?null:[],l=s?r+1:o.length;for(i=r<0?l:s?r:0;i<l;i++)if(((n=o[i]).selected||i===r)&&!n.disabled&&(!n.parentNode.disabled||!_(n.parentNode,"optgroup"))){if(t=v(n).val(),s)return t;a.push(t)}return a}
vendor: 12,963 bytes, line 1
1,set:function(e,t){for(var n,i,o=e.options,r=v.makeArray(t),s=o.length;s--;)((i=o[s]).selected=v.inArray(v.valHooks.option.get(i),r)>-1)&&(n=!0);return n||(e.selectedIndex=-1),r}}}}),v.each(["radio","checkbox"],function(){v.valHooks[this]={set:function(e,t){if(Array.isArray(t))return e.checked=v.inArray(v(e).val(),t)>-1}},p.checkOn||(v.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})});var ht=/^(?:focusinfocus|focusoutblur)$/;v.extend(v.event,{trigger:function(t,n,o,r){var s,a,l,u,c,h,f,p=[o||i],g=d.call(t,"type")?t.type:t,m=d.call(t,"namespace")?t.namespace.split("."):[];if(a=l=o=o||i,3!==o.nodeType&&8!==o.nodeType&&!ht.test(g+v.event.triggered)&&(g.indexOf(".")>-1&&(g=(m=g.split(".")).shift(),m.sort()),c=g.indexOf(":")<0&&"on"+g,(t=t[v.expando]?t:new v.Event(g,"object"==typeof t&&t)).isTrigger=r?2:3,t.namespace=m.join("."),t.rnamespace=t.namespace?new RegExp("(^|\\.)"+m.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,t.result=void 0,t.target||(t.target=o),n=null==n?[t]:v.makeArray(n,[t]),f=v.event.special[g]||{},r||!f.trigger||!1!==f.trigger.apply(o,n))){if(!r&&!f.noBubble&&!v.isWindow(o)){for(u=f.delegateType||g,ht.test(u+g)||(a=a.parentNode);a;a=a.parentNode)p.push(a),l=a;l===(o.ownerDocument||i)&&p.push(l.defaultView||l.parentWindow||e)}for(s=0;(a=p[s++])&&!t.isPropagationStopped();)t.type=s>1?u:f.bindType||g,(h=(V.get(a,"events")||{})[t.type]&&V.get(a,"handle"))&&h.apply(a,n),(h=c&&a[c])&&h.apply&&z(a)&&(t.result=h.apply(a,n),!1===t.result&&t.preventDefault());return t.type=g,r||t.isDefaultPrevented()||f._default&&!1!==f._default.apply(p.pop(),n)||!z(o)||c&&v.isFunction(o[g])&&!v.isWindow(o)&&((l=o[c])&&(o[c]=null),v.event.triggered=g,o[g](),v.event.triggered=void 0,l&&(o[c]=l)),t.result}},simulate:function(e,t,n){var i=v.extend(new v.Event,n,{type:e,isSimulated:!0});v.event.trigger(i,null,t)}}),v.fn.extend({trigger:function(e,t){return this.each(function(){v.event.trigger(e,t,this)})},triggerHandler:function(e,t){var n=this[0];if(n)return v.event.trigger(e,t,n,!0)}}),v.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(e,t){v.fn[t]=function(e,n){return arguments.length>0?this.on(t,null,e,n):this.trigger(t)}}),v.fn.extend({hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)}}),p.focusin="onfocusin"in e,p.focusin||v.each({focus:"focusin",blur:"focusout"},function(e,t){var n=function(e){v.event.simulate(t,e.target,v.event.fix(e))};v.event.special[t]={setup:function(){var i=this.ownerDocument||this,o=V.access(i,t);o||i.addEventListener(e,n,!0),V.access(i,t,(o||0)+1)},teardown:function(){var i=this.ownerDocument||this,o=V.access(i,t)-1;o?V.access(i,t,o):(i.removeEventListener(e,n,!0),V.remove(i,t))}}});var ft=e.location,pt=v.now(),gt=/\?/;v.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||v.error("Invalid XML: "+t),n};var mt=/\[\]$/,vt=/\r?\n/g,Et=/^(?:submit|button|image|reset|file)$/i,Tt=/^(?:input|select|textarea|keygen)/i;function yt(e,t,n,i){var o;if(Array.isArray(t))v.each(t,function(t,o){n||mt.test(e)?i(e,o):yt(e+"["+("object"==typeof o&&null!=o?t:"")+"]",o,n,i)});else if(n||"object"!==v.type(t))i(e,t);else for(o in t)yt(e+"["+o+"]",t[o],n,i)}v.param=function(e,t){var n,i=[],o=function(e,t){var n=v.isFunction(t)?t():t;i[i.length]=encodeURIComponent(e)+"="+encodeURIComponent(null==n?"":n)};if(Array.isArray(e)||e.jquery&&!v.isPlainObject(e))v.each(e,function(){o(this.name,this.value)});else for(n in e)yt(n,e[n],t,o);return i.join("&")},v.fn.extend({serialize:function(){return v.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var e=v.prop(this,"elements");return e?v.makeArray(e):this}).filter(function(){var e=this.type;return this.name&&!v(this).is(":disabled")&&Tt.test(this.nodeName)&&!Et.test(e)&&(this.checked||!se.test(e))}).map(function(e,t){var n=v(this).val();return null==n?null:Array.isArray(n)?v.map(n,function(e){return{name:t.name,value:e.replace(vt,"\r\n")}}):{name:t.name,value:n.replace(vt,"\r\n")}}).get()}});var Ct=/%20/g,bt=/#.*$/,Dt=/([?&])_=[^&]*/,It=/^(.*?):[ \t]*([^\r\n]*)$/gm,Ot=/^(?:GET|HEAD)$/,Rt=/^\/\//,_t={},wt={},kt="*/".concat("*"),Kt=i.createElement("a");function St(e){return function(t,n){"string"!=typeof t&&(n=t,t="*");var i,o=0,r=t.toLowerCase().match(F)||[];if(v.isFunction(n))for(;i=r[o++];)"+"===i[0]?(i=i.slice(1)||"*",(e[i]=e[i]||[]).unshift(n)):(e[i]=e[i]||[]).push(n)}}function xt(e,t,n,i){var o={},r=e===wt;function s(a){var l;return o[a]=!0,v.each(e[a]||[],function(e,a){var u=a(t,n,i);return"string"!=typeof u||r||o[u]?r?!(l=u):void 0:(t.dataTypes.unshift(u),s(u),!1)}),l}return s(t.dataTypes[0])||!o["*"]&&s("*")}function Nt(e,t){var n,i,o=v.ajaxSettings.flatOptions||{};for(n in t)void 0!==t[n]&&((o[n]?e:i||(i={}))[n]=t[n]);return i&&v.extend(!0,e,i),e}Kt.href=ft.href,v.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:ft.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(ft.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":kt,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":v.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?Nt(Nt(e,v.ajaxSettings),t):Nt(v.ajaxSettings,e)},ajaxPrefilter:St(_t),ajaxTransport:St(wt),ajax:function(t,n){"object"==typeof t&&(n=t,t=void 0),n=n||{};var o,r,s,a,l,u,c,d,h,f,p=v.ajaxSetup({},n),g=p.context||p,m=p.context&&(g.nodeType||g.jquery)?v(g):v.event,E=v.Deferred(),T=v.Callbacks("once memory"),y=p.statusCode||{},C={},b={},D="canceled",I={readyState:0,getResponseHeader:function(e){var t;if(c){if(!a)for(a={};t=It.exec(s);)a[t[1].toLowerCase()]=t[2];t=a[e.toLowerCase()]}return null==t?null:t},getAllResponseHeaders:function(){return c?s:null},setRequestHeader:function(e,t){return null==c&&(e=b[e.toLowerCase()]=b[e.toLowerCase()]||e,C[e]=t),this},overrideMimeType:function(e){return null==c&&(p.mimeType=e),this},statusCode:function(e){var t;if(e)if(c)I.always(e[I.status]);else for(t in e)y[t]=[y[t],e[t]];return this},abort:function(e){var t=e||D;return o&&o.abort(t),O(0,t),this}};if(E.promise(I),p.url=((t||p.url||ft.href)+"").replace(Rt,ft.protocol+"//"),p.type=n.method||n.type||p.method||p.type,p.dataTypes=(p.dataType||"*").toLowerCase().match(F)||[""],null==p.crossDomain){u=i.createElement("a");try{u.href=p.url,u.href=u.href,p.crossDomain=Kt.protocol+"//"+Kt.host!=u.protocol+"//"+u.host}catch(e){p.crossDomain=!0}}if(p.data&&p.processData&&"string"!=typeof p.data&&(p.data=v.param(p.data,p.traditional)),xt(_t,p,n,I),c)return I;for(h in(d=v.event&&p.global)&&0==v.active++&&v.event.trigger("ajaxStart"),p.type=p.type.toUpperCase(),p.hasContent=!Ot.test(p.type),r=p.url.replace(bt,""),p.hasContent?p.data&&p.processData&&0===(p.contentType||"").indexOf("application/x-www-form-urlencoded")&&(p.data=p.data.replace(Ct,"+")):(f=p.url.slice(r.length),p.data&&(r+=(gt.test(r)?"&":"?")+p.data,delete p.data),!1===p.cache&&(r=r.replace(Dt,"$1"),f=(gt.test(r)?"&":"?")+"_="+pt+++f),p.url=r+f),p.ifModified&&(v.lastModified[r]&&I.setRequestHeader("If-Modified-Since",v.lastModified[r]),v.etag[r]&&I.setRequestHeader("If-None-Match",v.etag[r])),(p.data&&p.hasContent&&!1!==p.contentType||n.contentType)&&I.setRequestHeader("Content-Type",p.contentType),I.setRequestHeader("Accept",p.dataTypes[0]&&p.accepts[p.dataTypes[0]]?p.accepts[p.dataTypes[0]]+("*"!==p.dataTypes[0]?", "+kt+"; q=0.01":""):p.accepts["*"]),p.headers)I.setRequestHeader(h,p.headers[h]);if(p.beforeSend&&(!1===p.beforeSend.call(g,I,p)||c))return I.abort();if(D="abort",T.add(p.complete),I.done(p.success),I.fail(p.error),o=xt(wt,p,n,I)){if(I.readyState=1,d&&m.trigger("ajaxSend",[I,p]),c)return I;p.async&&p.timeout>0&&(l=e.setTimeout(function(){I.abort("timeout")},p.timeout));try{c=!1,o.send(C,O)}catch(e){if(c)throw e;O(-1,e)}}else O(-1,"No Transport");function O(t,n,i,a){var u,h,f,C,b,D=n;c||(c=!0,l&&e.clearTimeout(l),o=void 0,s=a||"",I.readyState=t>0?4:0,u=t>=200&&t<300||304===t,i&&(C=function(e,t,n){for(var i,o,r,s,a=e.contents,l=e.dataTypes;"*"===l[0];)l.shift(),void 0===i&&(i=e.mimeType||t.getResponseHeader("Content-Type"));if(i)for(o in a)if(a[o]&&a[o].test(i)){l.unshift(o);break}if(l[0]in n)r=l[0];else{for(o in n){if(!l[0]||e.converters[o+" "+l[0]]){r=o;break}s||(s=o)}r=r||s}if(r)return r!==l[0]&&l.unshift(r),n[r]}(p,I,i)),C=function(e,t,n,i){var o,r,s,a,l,u={},c=e.dataTypes.slice();if(c[1])for(s in e.converters)u[s.toLowerCase()]=e.converters[s];for(r=c.shift();r;)if(e.responseFields[r]&&(n[e.responseFields[r]]=t),!l&&i&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),l=r,r=c.shift())if("*"===r)r=l;else if("*"!==l&&l!==r){if(!(s=u[l+" "+r]||u["* "+r]))for(o in u)if((a=o.split(" "))[1]===r&&(s=u[l+" "+a[0]]||u["* "+a[0]])){!0===s?s=u[o]:!0!==u[o]&&(r=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 "+l+" to "+r}}}return{state:"success",data:t}}(p,C,I,u),u?(p.ifModified&&((b=I.getResponseHeader("Last-Modified"))&&(v.lastModified[r]=b),(b=I.getResponseHeader("etag"))&&(v.etag[r]=b)),204===t||"HEAD"===p.type?D="nocontent":304===t?D="notmodified":(D=C.state,h=C.data,u=!(f=C.error))):(f=D,!t&&D||(D="error",t<0&&(t=0))),I.status=t,I.statusText=(n||D)+"",u?E.resolveWith(g,[h,D,I]):E.rejectWith(g,[I,D,f]),I.statusCode(y),y=void 0,d&&m.trigger(u?"ajaxSuccess":"ajaxError",[I,p,u?h:f]),T.fireWith(g,[I,D]),d&&(m.trigger("ajaxComplete",[I,p]),--v.active||v.event.trigger("ajaxStop")))}return I},getJSON:function(e,t,n){return v.get(e,t,n,"json")},getScript:function(e,t){return v.get(e,void 0,t,"script")}}),v.each(["get","post"],function(e,t){v[t]=function(e,n,i,o){return v.isFunction(n)&&(o=o||i,i=n,n=void 0),v.ajax(v.extend({url:e,type:t,dataType:o,data:n,success:i},v.isPlainObject(e)&&e))}}),v._evalUrl=function(e){return v.ajax({url:e,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,throws:!0})},v.fn.extend({wrapAll:function(e){var t;return this[0]&&(v.isFunction(e)&&(e=e.call(this[0])),t=v(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 v.isFunction(e)?this.each(function(t){v(this).wrapInner(e.call(this,t))}):this.each(function(){var t=v(this),n=t.contents();n.length?n.wrapAll(e):t.append(e)})},wrap:function(e){var t=v.isFunction(e);return this.each(function(n){v(this).wrapAll(t?e.call(this,n):e)})},unwrap:function(e){return this.parent(e).not("body").each(function(){v(this).replaceWith(this.childNodes)}),this}}),v.expr.pseudos.hidden=function(e){return!v.expr.pseudos.visible(e)},v.expr.pseudos.visible=function(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)},v.ajaxSettings.xhr=function(){try{return new e.XMLHttpRequest}catch(e){}};var At={0:200,1223:204},Lt=v.ajaxSettings.xhr();p.cors=!!Lt&&"withCredentials"in Lt,p.ajax=Lt=!!Lt,v.ajaxTransport(function(t){var n,i;if(p.cors||Lt&&!t.crossDomain)return{send:function(o,r){var s,a=t.xhr();if(a.open(t.type,t.url,t.async,t.username,t.password),t.xhrFields)for(s in t.xhrFields)a[s]=t.xhrFields[s];for(s in t.mimeType&&a.overrideMimeType&&a.overrideMimeType(t.mimeType),t.crossDomain||o["X-Requested-With"]||(o["X-Requested-With"]="XMLHttpRequest"),o)a.setRequestHeader(s,o[s]);n=function(e){return function(){n&&(n=i=a.onload=a.onerror=a.onabort=a.onreadystatechange=null,"abort"===e?a.abort():"error"===e?"number"!=typeof a.status?r(0,"error"):r(a.status,a.statusText):r(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(),i=a.onerror=n("error"),void 0!==a.onabort?a.onabort=i:a.onreadystatechange=function(){4===a.readyState&&e.setTimeout(function(){n&&i()})},n=n("abort");try{a.send(t.hasContent&&t.data||null)}catch(e){if(n)throw e}},abort:function(){n&&n()}}}),v.ajaxPrefilter(function(e){e.crossDomain&&(e.contents.script=!1)}),v.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 v.globalEval(e),e}}}),v.ajaxPrefilter("script",function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET")}),v.ajaxTransport("script",function(e){var t,n;
1if(e.crossDomain)return{send:function(o,r){t=v("<script>").prop({charset:e.scriptCharset,src:e.url}).on("load error",n=function(e){t.remove(),n=null,e&&r("error"===e.type?404:200,e.type)}),i.head.appendChild(t[0])},abort:function(){n&&n()}}});var Ft=[],Pt=/(=)\?(?=&|$)|\?\?/;v.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=Ft.pop()||v.expando+"_"+pt++;return this[e]=!0,e}}),v.ajaxPrefilter("json jsonp",function(t,n,i){var o,r,s,a=!1!==t.jsonp&&(Pt.test(t.url)?"url":"string"==typeof t.data&&0===(t.contentType||"").indexOf("application/x-www-form-urlencoded")&&Pt.test(t.data)&&"data");if(a||"jsonp"===t.dataTypes[0])return o=t.jsonpCallback=v.isFunction(t.jsonpCallback)?t.jsonpCallback():t.jsonpCallback,a?t[a]=t[a].replace(Pt,"$1"+o):!1!==t.jsonp&&(t.url+=(gt.test(t.url)?"&":"?")+t.jsonp+"="+o),t.converters["script json"]=function(){return s||v.error(o+" was not called"),s[0]},t.dataTypes[0]="json",r=e[o],e[o]=function(){s=arguments},i.always(function(){void 0===r?v(e).removeProp(o):e[o]=r,t[o]&&(t.jsonpCallback=n.jsonpCallback,Ft.push(o)),s&&v.isFunction(r)&&r(s[0]),s=r=void 0}),"script"}),p.createHTMLDocument=function(){var e=i.implementation.createHTMLDocument("").body;return e.innerHTML="<form></form><form></form>",2===e.childNodes.length}(),v.parseHTML=function(e,t,n){return"string"!=typeof e?[]:("boolean"==typeof t&&(n=t,t=!1),t||(p.createHTMLDocument?((o=(t=i.implementation.createHTMLDocument("")).createElement("base")).href=i.location.href,t.head.appendChild(o)):t=i),r=w.exec(e),s=!n&&[],r?[t.createElement(r[1])]:(r=fe([e],t,s),s&&s.length&&v(s).remove(),v.merge([],r.childNodes)));var o,r,s},v.fn.load=function(e,t,n){var i,o,r,s=this,a=e.indexOf(" ");return a>-1&&(i=ut(e.slice(a)),e=e.slice(0,a)),v.isFunction(t)?(n=t,t=void 0):t&&"object"==typeof t&&(o="POST"),s.length>0&&v.ajax({url:e,type:o||"GET",dataType:"html",data:t}).done(function(e){r=arguments,s.html(i?v("<div>").append(v.parseHTML(e)).find(i):e)}).always(n&&function(e,t){s.each(function(){n.apply(this,r||[e.responseText,t,e])})}),this},v.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){v.fn[t]=function(e){return this.on(t,e)}}),v.expr.pseudos.animated=function(e){return v.grep(v.timers,function(t){return e===t.elem}).length},v.offset={setOffset:function(e,t,n){var i,o,r,s,a,l,u=v.css(e,"position"),c=v(e),d={};"static"===u&&(e.style.position="relative"),a=c.offset(),r=v.css(e,"top"),l=v.css(e,"left"),("absolute"===u||"fixed"===u)&&(r+l).indexOf("auto")>-1?(s=(i=c.position()).top,o=i.left):(s=parseFloat(r)||0,o=parseFloat(l)||0),v.isFunction(t)&&(t=t.call(e,n,v.extend({},a))),null!=t.top&&(d.top=t.top-a.top+s),null!=t.left&&(d.left=t.left-a.left+o),"using"in t?t.using.call(e,d):c.css(d)}},v.fn.extend({offset:function(e){if(arguments.length)return void 0===e?this:this.each(function(t){v.offset.setOffset(this,e,t)});var t,n,i,o,r=this[0];return r?r.getClientRects().length?(i=r.getBoundingClientRect(),n=(t=r.ownerDocument).documentElement,o=t.defaultView,{top:i.top+o.pageYOffset-n.clientTop,left:i.left+o.pageXOffset-n.clientLeft}):{top:0,left:0}:void 0},position:function(){if(this[0]){var e,t,n=this[0],i={top:0,left:0};return"fixed"===v.css(n,"position")?t=n.getBoundingClientRect():(e=this.offsetParent(),t=this.offset(),_(e[0],"html")||(i=e.offset()),i={top:i.top+v.css(e[0],"borderTopWidth",!0),left:i.left+v.css(e[0],"borderLeftWidth",!0)}),{top:t.top-i.top-v.css(n,"marginTop",!0),left:t.left-i.left-v.css(n,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var e=this.offsetParent;e&&"static"===v.css(e,"position");)e=e.offsetParent;return e||pe})}}),v.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(e,t){var n="pageYOffset"===t;v.fn[e]=function(i){return q(this,function(e,i,o){var r;return v.isWindow(e)?r=e:9===e.nodeType&&(r=e.defaultView),void 0===o?r?r[t]:e[i]:void(r?r.scrollTo(n?r.pageXOffset:o,n?o:r.pageYOffset):e[i]=o)},e,i,arguments.length)}}),v.each(["top","left"],function(e,t){v.cssHooks[t]=Be(p.pixelPosition,function(e,n){if(n)return n=Pe(e,t),Le.test(n)?v(e).position()[t]+"px":n})}),v.each({Height:"height",Width:"width"},function(e,t){v.each({padding:"inner"+e,content:t,"":"outer"+e},function(n,i){v.fn[i]=function(o,r){var s=arguments.length&&(n||"boolean"!=typeof o),a=n||(!0===o||!0===r?"margin":"border");return q(this,function(t,n,o){var r;return v.isWindow(t)?0===i.indexOf("outer")?t["inner"+e]:t.document.documentElement["client"+e]:9===t.nodeType?(r=t.documentElement,Math.max(t.body["scroll"+e],r["scroll"+e],t.body["offset"+e],r["offset"+e],r["client"+e])):void 0===o?v.css(t,n,a):v.style(t,n,o,a)},t,s?o:void 0,s)}})}),v.fn.extend({bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,i){return this.on(t,e,n,i)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)}}),v.holdReady=function(e){e?v.readyWait++:v.ready(!0)},v.isArray=Array.isArray,v.parseJSON=JSON.parse,v.nodeName=_,"function"==typeof define&&define.amd&&define("jquery",[],function(){return v});var Bt=e.jQuery,Mt=e.$;return v.noConflict=function(t){return e.$===v&&(e.$=Mt),t&&e.jQuery===v&&(e.jQuery=Bt),v},t||(e.jQuery=e.$=v),v}),"undefined"==typeof jQuery)throw new Error("Bootstrap's JavaScript requires jQuery");function lightboxclose(){jQuery(".lightbox").css("overflow","hidden"),jQuery(".lightbox .lightcontent").fadeOut("fast"),jQuery(".lightbox").fadeOut("slow"),jQuery("body").css("overflow","auto")}function refreshSidebar(){jQuery("#sidebar").each(function(){jQuery(this).css("height","auto");var e=jQuery(this).height(),t=jQuery(".main-content").height();e=parseInt(t)>parseInt(e)?t:e,jQuery("#sidebar").css("height",e)})}function refreshLeftbar(){jQuery("#leftbar").each(function(){jQuery(this).css("height","auto");var e=jQuery(this).height(),t=jQuery(".main-content").height();e=parseInt(t)>parseInt(e)?t:e,jQuery("#leftbar").css("height",e)})}function slideGalleryWidget(e){e.css("opacity","0").css("display","block").animate({opacity:"1"},200,function(){jQuery(this).addClass("active").siblings("a.active").removeClass("active").css("display","none"),refreshSidebar(),refreshLeftbar()})}!function(e){"use strict";var t=e.fn.jquery.split(" ")[0].split(".");if(t[0]<2&&t[1]<9||1==t[0]&&9==t[1]&&t[2]<1||t[0]>3)throw new Error("Bootstrap's JavaScript requires jQuery version 1.9.1 or higher, but lower than version 4")}(jQuery),function(e){"use strict";e.fn.emulateTransitionEnd=function(t){var n=!1,i=this;e(this).one("bsTransitionEnd",function(){n=!0});return setTimeout(function(){n||e(i).trigger(e.support.transition.end)},t),this},e(function(){e.support.transition=function(){var e=document.createElement("bootstrap"),t={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};for(var n in t)if(void 0!==e.style[n])return{end:t[n]};return!1}(),e.support.transition&&(e.event.special.bsTransitionEnd={bindType:e.support.transition.end,delegateType:e.support.transition.end,handle:function(t){if(e(t.target).is(this))return t.handleObj.handler.apply(this,arguments)}})})}(jQuery),function(e){"use strict";var t='[data-dismiss="alert"]',n=function(n){e(n).on("click",t,this.close)};n.VERSION="3.3.7",n.TRANSITION_DURATION=150,n.prototype.close=function(t){function i(){s.detach().trigger("closed.bs.alert").remove()}var o=e(this),r=o.attr("data-target");r||(r=(r=o.attr("href"))&&r.replace(/.*(?=#[^\s]*$)/,""));var s=e("#"===r?[]:r);t&&t.preventDefault(),s.length||(s=o.closest(".alert")),s.trigger(t=e.Event("close.bs.alert")),t.isDefaultPrevented()||(s.removeClass("in"),e.support.transition&&s.hasClass("fade")?s.one("bsTransitionEnd",i).emulateTransitionEnd(n.TRANSITION_DURATION):i())};var i=e.fn.alert;e.fn.alert=function(t){return this.each(function(){var i=e(this),o=i.data("bs.alert");o||i.data("bs.alert",o=new n(this)),"string"==typeof t&&o[t].call(i)})},e.fn.alert.Constructor=n,e.fn.alert.noConflict=function(){return e.fn.alert=i,this},e(document).on("click.bs.alert.data-api",t,n.prototype.close)}(jQuery),function(e){"use strict";function t(t){return this.each(function(){var i=e(this),o=i.data("bs.button"),r="object"==typeof t&&t;o||i.data("bs.button",o=new n(this,r)),"toggle"==t?o.toggle():t&&o.setState(t)})}var n=function(t,i){this.$element=e(t),this.options=e.extend({},n.DEFAULTS,i),this.isLoading=!1};n.VERSION="3.3.7",n.DEFAULTS={loadingText:"loading..."},n.prototype.setState=function(t){var n="disabled",i=this.$element,o=i.is("input")?"val":"html",r=i.data();t+="Text",null==r.resetText&&i.data("resetText",i[o]()),setTimeout(e.proxy(function(){i[o](null==r[t]?this.options[t]:r[t]),"loadingText"==t?(this.isLoading=!0,i.addClass(n).attr(n,n).prop(n,!0)):this.isLoading&&(this.isLoading=!1,i.removeClass(n).removeAttr(n).prop(n,!1))},this),0)},n.prototype.toggle=function(){var e=!0,t=this.$element.closest('[data-toggle="buttons"]');if(t.length){var n=this.$element.find("input");"radio"==n.prop("type")?(n.prop("checked")&&(e=!1),t.find(".active").removeClass("active"),this.$element.addClass("active")):"checkbox"==n.prop("type")&&(n.prop("checked")!==this.$element.hasClass("active")&&(e=!1),this.$element.toggleClass("active")),n.prop("checked",this.$element.hasClass("active")),e&&n.trigger("change")}else this.$element.attr("aria-pressed",!this.$element.hasClass("active")),this.$element.toggleClass("active")};var i=e.fn.button;e.fn.button=t,e.fn.button.Constructor=n,e.fn.button.noConflict=function(){return e.fn.button=i,this},e(document).on("click.bs.button.data-api",'[data-toggle^="button"]',function(n){var i=e(n.target).closest(".btn");t.call(i,"toggle"),e(n.target).is('input[type="radio"], input[type="checkbox"]')||(n.preventDefault(),i.is("input,button")?i.trigger("focus"):i.find("input:visible,button:visible").first().trigger("focus"))}).on("focus.bs.button.data-api blur.bs.button.data-api",'[data-toggle^="button"]',function(t){e(t.target).closest(".btn").toggleClass("focus",/^focus(in)?$/.test(t.type))})}(jQuery),function(e){"use strict";function t(t){return this.each(function(){var i=e(this),o=i.data("bs.carousel"),r=e.extend({},n.DEFAULTS,i.data(),"object"==typeof t&&t),s="string"==typeof t?t:r.slide;o||i.data("bs.carousel",o=new n(this,r)),"number"==typeof t?o.to(t):s?o[s]():r.interval&&o.pause().cycle()})}var n=function(t,n){this.$element=e(t),this.$indicators=this.$element.find(".carousel-indicators"),this.options=n,this.paused=null,this.sliding=null,this.interval=null,this.$active=null,this.$items=null,this.options.keyboard&&this.$element.on("key
1down.bs.carousel",e.proxy(this.keydown,this)),"hover"==this.options.pause&&!("ontouchstart"in document.documentElement)&&this.$element.on("mouseenter.bs.carousel",e.proxy(this.pause,this)).on("mouseleave.bs.carousel",e.proxy(this.cycle,this))};n.VERSION="3.3.7",n.TRANSITION_DURATION=600,n.DEFAULTS={interval:5e3,pause:"hover",wrap:!0,keyboard:!0},n.prototype.keydown=function(e){if(!/input|textarea/i.test(e.target.tagName)){switch(e.which){case 37:this.prev();break;case 39:this.next();break;default:return}e.preventDefault()}},n.prototype.cycle=function(t){return t||(this.paused=!1),this.interval&&clearInterval(this.interval),this.options.interval&&!this.paused&&(this.interval=setInterval(e.proxy(this.next,this),this.options.interval)),this},n.prototype.getItemIndex=function(e){return this.$items=e.parent().children(".item"),this.$items.index(e||this.$active)},n.prototype.getItemForDirection=function(e,t){var n=this.getItemIndex(t);if(("prev"==e&&0===n||"next"==e&&n==this.$items.length-1)&&!this.options.wrap)return t;var i=(n+("prev"==e?-1:1))%this.$items.length;return this.$items.eq(i)},n.prototype.to=function(e){var t=this,n=this.getItemIndex(this.$active=this.$element.find(".item.active"));if(!(e>this.$items.length-1||e<0))return this.sliding?this.$element.one("slid.bs.carousel",function(){t.to(e)}):n==e?this.pause().cycle():this.slide(e>n?"next":"prev",this.$items.eq(e))},n.prototype.pause=function(t){return t||(this.paused=!0),this.$element.find(".next, .prev").length&&e.support.transition&&(this.$element.trigger(e.support.transition.end),this.cycle(!0)),this.interval=clearInterval(this.interval),this},n.prototype.next=function(){if(!this.sliding)return this.slide("next")},n.prototype.prev=function(){if(!this.sliding)return this.slide("prev")},n.prototype.slide=function(t,i){var o=this.$element.find(".item.active"),r=i||this.getItemForDirection(t,o),s=this.interval,a="next"==t?"left":"right",l=this;if(r.hasClass("active"))return this.sliding=!1;var u=r[0],c=e.Event("slide.bs.carousel",{relatedTarget:u,direction:a});if(this.$element.trigger(c),!c.isDefaultPrevented()){if(this.sliding=!0,s&&this.pause(),this.$indicators.length){this.$indicators.find(".active").removeClass("active");var d=e(this.$indicators.children()[this.getItemIndex(r)]);d&&d.addClass("active")}var h=e.Event("slid.bs.carousel",{relatedTarget:u,direction:a});return e.support.transition&&this.$element.hasClass("slide")?(r.addClass(t),r[0].offsetWidth,o.addClass(a),r.addClass(a),o.one("bsTransitionEnd",function(){r.removeClass([t,a].join(" ")).addClass("active"),o.removeClass(["active",a].join(" ")),l.sliding=!1,setTimeout(function(){l.$element.trigger(h)},0)}).emulateTransitionEnd(n.TRANSITION_DURATION)):(o.removeClass("active"),r.addClass("active"),this.sliding=!1,this.$element.trigger(h)),s&&this.cycle(),this}};var i=e.fn.carousel;e.fn.carousel=t,e.fn.carousel.Constructor=n,e.fn.carousel.noConflict=function(){return e.fn.carousel=i,this};var o=function(n){var i,o=e(this),r=e(o.attr("data-target")||(i=o.attr("href"))&&i.replace(/.*(?=#[^\s]+$)/,""));if(r.hasClass("carousel")){var s=e.extend({},r.data(),o.data()),a=o.attr("data-slide-to");a&&(s.interval=!1),t.call(r,s),a&&r.data("bs.carousel").to(a),n.preventDefault()}};e(document).on("click.bs.carousel.data-api","[data-slide]",o).on("click.bs.carousel.data-api","[data-slide-to]",o),e(window).on("load",function(){e('[data-ride="carousel"]').each(function(){var n=e(this);t.call(n,n.data())})})}(jQuery),function(e){"use strict";function t(t){var n,i=t.attr("data-target")||(n=t.attr("href"))&&n.replace(/.*(?=#[^\s]+$)/,"");return e(i)}function n(t){return this.each(function(){var n=e(this),o=n.data("bs.collapse"),r=e.extend({},i.DEFAULTS,n.data(),"object"==typeof t&&t);!o&&r.toggle&&/show|hide/.test(t)&&(r.toggle=!1),o||n.data("bs.collapse",o=new i(this,r)),"string"==typeof t&&o[t]()})}var i=function(t,n){this.$element=e(t),this.options=e.extend({},i.DEFAULTS,n),this.$trigger=e('[data-toggle="collapse"][href="#'+t.id+'"],[data-toggle="collapse"][data-target="#'+t.id+'"]'),this.transitioning=null,this.options.parent?this.$parent=this.getParent():this.addAriaAndCollapsedClass(this.$element,this.$trigger),this.options.toggle&&this.toggle()};i.VERSION="3.3.7",i.TRANSITION_DURATION=350,i.DEFAULTS={toggle:!0},i.prototype.dimension=function(){return this.$element.hasClass("width")?"width":"height"},i.prototype.show=function(){if(!this.transitioning&&!this.$element.hasClass("in")){var t,o=this.$parent&&this.$parent.children(".panel").children(".in, .collapsing");if(!(o&&o.length&&(t=o.data("bs.collapse"),t&&t.transitioning))){var r=e.Event("show.bs.collapse");if(this.$element.trigger(r),!r.isDefaultPrevented()){o&&o.length&&(n.call(o,"hide"),t||o.data("bs.collapse",null));var s=this.dimension();this.$element.removeClass("collapse").addClass("collapsing")[s](0).attr("aria-expanded",!0),this.$trigger.removeClass("collapsed").attr("aria-expanded",!0),this.transitioning=1;var a=function(){this.$element.removeClass("collapsing").addClass("collapse in")[s](""),this.transitioning=0,this.$element.trigger("shown.bs.collapse")};if(!e.support.transition)return a.call(this);var l=e.camelCase(["scroll",s].join("-"));this.$element.one("bsTransitionEnd",e.proxy(a,this)).emulateTransitionEnd(i.TRANSITION_DURATION)[s](this.$element[0][l])}}}},i.prototype.hide=function(){if(!this.transitioning&&this.$element.hasClass("in")){var t=e.Event("hide.bs.collapse");if(this.$element.trigger(t),!t.isDefaultPrevented()){var n=this.dimension();this.$element[n](this.$element[n]())[0].offsetHeight,this.$element.addClass("collapsing").removeClass("collapse in").attr("aria-expanded",!1),this.$trigger.addClass("collapsed").attr("aria-expanded",!1),this.transitioning=1;var o=function(){this.transitioning=0,this.$element.removeClass("collapsing").addClass("collapse").trigger("hidden.bs.collapse")};
vendor: 1,849 bytes, line 1
1return e.support.transition?void this.$element[n](0).one("bsTransitionEnd",e.proxy(o,this)).emulateTransitionEnd(i.TRANSITION_DURATION):o.call(this)}}},i.prototype.toggle=function(){this[this.$element.hasClass("in")?"hide":"show"]()},i.prototype.getParent=function(){return e(this.options.parent).find('[data-toggle="collapse"][data-parent="'+this.options.parent+'"]').each(e.proxy(function(n,i){var o=e(i);this.addAriaAndCollapsedClass(t(o),o)},this)).end()},i.prototype.addAriaAndCollapsedClass=function(e,t){var n=e.hasClass("in");e.attr("aria-expanded",n),t.toggleClass("collapsed",!n).attr("aria-expanded",n)};var o=e.fn.collapse;e.fn.collapse=n,e.fn.collapse.Constructor=i,e.fn.collapse.noConflict=function(){return e.fn.collapse=o,this},e(document).on("click.bs.collapse.data-api",'[data-toggle="collapse"]',function(i){var o=e(this);o.attr("data-target")||i.preventDefault();var r=t(o),s=r.data("bs.collapse")?"toggle":o.data();n.call(r,s)})}(jQuery),function(e){"use strict";function t(t){var n=t.attr("data-target");n||(n=(n=t.attr("href"))&&/#[A-Za-z]/.test(n)&&n.replace(/.*(?=#[^\s]*$)/,""));var i=n&&e(n);return i&&i.length?i:t.parent()}function n(n){n&&3===n.which||(e(i).remove(),e(o).each(function(){var i=e(this),o=t(i),r={relatedTarget:this};o.hasClass("open")&&(n&&"click"==n.type&&/input|textarea/i.test(n.target.tagName)&&e.contains(o[0],n.target)||(o.trigger(n=e.Event("hide.bs.dropdown",r)),n.isDefaultPrevented()||(i.attr("aria-expanded","false"),o.removeClass("open").trigger(e.Event("hidden.bs.dropdown",r)))))}))}var i=".dropdown-backdrop",o='[data-toggle="dropdown"]',r=function(t){e(t).on("click.bs.dropdown",this.toggle)};r.VERSION="3.3.7",r.prototype.toggle=function(i){var o=e(this);if(!o.is(".disabled, :disabled")){var r=t(o),s=r.hasClass("open");if(n(),!s){"ontouchstart"in document.documentElement&&!r.closest(".
1navbar-nav").length&&e(document.createElement("div")).addClass("dropdown-backdrop").insertAfter(e(this)).on("click",n);var a={relatedTarget:this};if(r.trigger(i=e.Event("show.bs.dropdown",a)),i.isDefaultPrevented())return;o.trigger("focus").attr("aria-expanded","true"),r.toggleClass("open").trigger(e.Event("shown.bs.dropdown",a))}return!1}},r.prototype.keydown=function(n){if(/(38|40|27|32)/.test(n.which)&&!/input|textarea/i.test(n.target.tagName)){var i=e(this);if(n.preventDefault(),n.stopPropagation(),!i.is(".disabled, :disabled")){var r=t(i),s=r.hasClass("open");if(!s&&27!=n.which||s&&27==n.which)return 27==n.which&&r.find(o).trigger("focus"),i.trigger("click");var a=r.find(".dropdown-menu li:not(.disabled):visible a");if(a.length){var l=a.index(n.target);38==n.which&&l>0&&l--,40==n.which&&l<a.length-1&&l++,~l||(l=0),a.eq(l).trigger("focus")}}}};var s=e.fn.dropdown;e.fn.dropdown=function(t){return this.each(function(){var n=e(this),i=n.data("bs.dropdown");i||n.data("bs.dropdown",i=new r(this)),"string"==typeof t&&i[t].call(n)})},e.fn.dropdown.Constructor=r,e.fn.dropdown.noConflict=function(){return e.fn.dropdown=s,this},e(document).on("click.bs.dropdown.data-api",n).on("click.bs.dropdown.data-api",".dropdown form",function(e){e.stopPropagation()}).on("click.bs.dropdown.data-api",o,r.prototype.toggle).on("keydown.bs.dropdown.data-api",o,r.prototype.keydown).on("keydown.bs.dropdown.data-api",".dropdown-menu",r.prototype.keydown)}(jQuery),function(e){"use strict";function t(t,i){return this.each(function(){var o=e(this),r=o.data("bs.modal"),s=e.extend({},n.DEFAULTS,o.data(),"object"==typeof t&&t);r||o.data("bs.modal",r=new n(this,s)),"string"==typeof t?r[t](i):s.show&&r.show(i)})}var n=function(t,n){this.options=n,this.$body=e(document.body),this.$element=e(t),this.$dialog=this.$element.find(".modal-dialog"),this.$backdrop=null,this.isShown=null,this.originalBodyPad=null,this.scrollbarWidth=0,this.ignoreBackdropClick=!1,this.options.remote&&this.$element.find(".modal-content").load(this.options.remote,e.proxy(function(){this.$element.trigger("loaded.bs.modal")},this))};n.VERSION="3.3.7",n.TRANSITION_DURATION=300,n.BACKDROP_TRANSITION_DURATION=150,n.DEFAULTS={backdrop:!0,keyboard:!0,show:!0},n.prototype.toggle=function(e){return this.isShown?this.hide():this.show(e)},n.prototype.show=function(t){var i=this,o=e.Event("show.bs.modal",{relatedTarget:t});this.$element.trigger(o),this.isShown||o.isDefaultPrevented()||(this.isShown=!0,this.checkScrollbar(),this.setScrollbar(),this.$body.addClass("modal-open"),this.escape(),this.resize(),this.$element.on("click.dismiss.bs.modal",'[data-dismiss="modal"]',e.proxy(this.hide,this)),this.$dialog.on("mousedown.dismiss.bs.modal",function(){i.$element.one("mouseup.dismiss.bs.modal",function(t){e(t.target).is(i.$element)&&(i.ignoreBackdropClick=!0)})}),this.backdrop(function(){var o=e.support.transition&&i.$element.hasClass("fade");i.$element.parent().length||i.$element.appendTo(i.$body),i.$element.show().scrollTop(0),i.adjustDialog(),o&&i.$element[0].offsetWidth,i.$element.addClass("in"),i.enforceFocus();var r=e.Event("shown.bs.modal",{relatedTarget:t});o?i.$dialog.one("bsTransitionEnd",function(){i.$element.trigger("focus").trigger(r)}).emulateTransitionEnd(n.TRANSITION_DURATION):i.$element.trigger("focus").trigger(r)}))},n.prototype.hide=function(t){t&&t.preventDefault(),t=e.Event("hide.bs.modal"),this.$element.trigger(t),this.isShown&&!t.isDefaultPrevented()&&(this.isShown=!1,this.escape(),this.resize(),e(document).off("focusin.bs.modal"),this.$element.removeClass("in").off("click.dismiss.bs.modal").off("mouseup.dismiss.bs.modal"),this.$dialog.off("mousedown.dismiss.bs.modal"),e.support.transition&&this.$element.hasClass("fade")?this.$element.one("bsTransitionEnd",e.proxy(this.hideModal,this)).emulateTransitionEnd(n.TRANSITION_DURATION):this.hideModal())},n.prototype.enforceFocus=function(){e(document).off("focusin.bs.modal").on("focusin.bs.modal",e.proxy(function(e){document===e.target||this.$element[0]===e.target||this.$element.has(e.target).length||this.$element.trigger("focus")},this))},n.prototype.escape=function(){this.isShown&&this.options.keyboard?this.$element.on("key
1down.dismiss.bs.modal",e.proxy(function(e){27==e.which&&this.hide()},this)):this.isShown||this.$element.off("keydown.dismiss.bs.modal")},n.prototype.resize=function(){this.isShown?e(window).on("resize.bs.modal",e.proxy(this.handleUpdate,this)):e(window).off("resize.bs.modal")},n.prototype.hideModal=function(){var e=this;this.$element.hide(),this.backdrop(function(){e.$body.removeClass("modal-open"),e.resetAdjustments(),e.resetScrollbar(),e.$element.trigger("hidden.bs.modal")})},n.prototype.removeBackdrop=function(){this.$backdrop&&this.$backdrop.remove(),this.$backdrop=null},n.prototype.backdrop=function(t){var i=this,o=this.$element.hasClass("fade")?"fade":"";if(this.isShown&&this.options.backdrop){var r=e.support.transition&&o;if(this.$backdrop=e(document.createElement("div")).addClass("modal-backdrop "+o).appendTo(this.$body),this.$element.on("click.dismiss.bs.modal",e.proxy(function(e){return this.ignoreBackdropClick?void(this.ignoreBackdropClick=!1):void(e.target===e.currentTarget&&("static"==this.options.backdrop?this.$element[0].focus():this.hide()))},this)),r&&this.$backdrop[0].offsetWidth,this.$backdrop.addClass("in"),!t)return;r?this.$backdrop.one("bsTransitionEnd",t).emulateTransitionEnd(n.BACKDROP_TRANSITION_DURATION):t()}else if(!this.isShown&&this.$backdrop){this.$backdrop.removeClass("in");var s=function(){i.removeBackdrop(),t&&t()};
vendor: 4,147 bytes, line 1
1e.support.transition&&this.$element.hasClass("fade")?this.$backdrop.one("bsTransitionEnd",s).emulateTransitionEnd(n.BACKDROP_TRANSITION_DURATION):s()}else t&&t()},n.prototype.handleUpdate=function(){this.adjustDialog()},n.prototype.adjustDialog=function(){var e=this.$element[0].scrollHeight>document.documentElement.clientHeight;this.$element.css({paddingLeft:!this.bodyIsOverflowing&&e?this.scrollbarWidth:"",paddingRight:this.bodyIsOverflowing&&!e?this.scrollbarWidth:""})},n.prototype.resetAdjustments=function(){this.$element.css({paddingLeft:"",paddingRight:""})},n.prototype.checkScrollbar=function(){var e=window.innerWidth;if(!e){var t=document.documentElement.getBoundingClientRect();e=t.right-Math.abs(t.left)}this.bodyIsOverflowing=document.body.clientWidth<e,this.scrollbarWidth=this.measureScrollbar()},n.prototype.setScrollbar=function(){var e=parseInt(this.$body.css("padding-right")||0,10);this.originalBodyPad=document.body.style.paddingRight||"",this.bodyIsOverflowing&&this.$body.css("padding-right",e+this.scrollbarWidth)},n.prototype.resetScrollbar=function(){this.$body.css("padding-right",this.originalBodyPad)},n.prototype.measureScrollbar=function(){var e=document.createElement("div");e.className="modal-scrollbar-measure",this.$body.append(e);var t=e.offsetWidth-e.clientWidth;return this.$body[0].removeChild(e),t};var i=e.fn.modal;e.fn.modal=t,e.fn.modal.Constructor=n,e.fn.modal.noConflict=function(){return e.fn.modal=i,this},e(document).on("click.bs.modal.data-api",'[data-toggle="modal"]',function(n){var i=e(this),o=i.attr("href"),r=e(i.attr("data-target")||o&&o.replace(/.*(?=#[^\s]+$)/,"")),s=r.data("bs.modal")?"toggle":e.extend({remote:!/#/.test(o)&&o},r.data(),i.data());i.is("a")&&n.preventDefault(),r.one("show.bs.modal",function(e){e.isDefaultPrevented()||r.one("hidden.bs.modal",function(){i.is(":visible")&&i.trigger("focus")})}),t.call(r,s,this)})}(jQuery),function(e){"use strict";var t=function(e,t){this.type=null,this.options=null,this.enabled=null,this.timeout=null,this.hoverState=null,this.$element=null,this.inState=null,this.init("tooltip",e,t)};t.VERSION="3.3.7",t.TRANSITION_DURATION=150,t.DEFAULTS={animation:!0,placement:"top",selector:!1,template:'<div class="tooltip" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',trigger:"hover focus",title:"",delay:0,html:!1,container:!1,viewport:{selector:"body",padding:0}},t.prototype.init=function(t,n,i){if(this.enabled=!0,this.type=t,this.$element=e(n),this.options=this.getOptions(i),this.$viewport=this.options.viewport&&e(e.isFunction(this.options.viewport)?this.options.viewport.call(this,this.$element):this.options.viewport.selector||this.options.viewport),this.inState={click:!1,hover:!1,focus:!1},this.$element[0]instanceof document.constructor&&!this.options.selector)throw new Error("`selector` option must be specified when initializing "+this.type+" on the window.document object!");for(var o=this.options.trigger.split(" "),r=o.length;r--;){var s=o[r];if("click"==s)this.$element.on("click."+this.type,this.options.selector,e.proxy(this.toggle,this));else if("manual"!=s){var a="hover"==s?"mouseenter":"focusin",l="hover"==s?"mouseleave":"focusout";this.$element.on(a+"."+this.type,this.options.selector,e.proxy(this.enter,this)),this.$element.on(l+"."+this.type,this.options.selector,e.proxy(this.leave,this))}}this.options.selector?this._options=e.extend({},this.options,{trigger:"manual",selector:""}):this.fixTitle()},t.prototype.getDefaults=function(){return t.DEFAULTS},t.prototype.getOptions=function(t){return(t=e.extend({},this.getDefaults(),this.$element.data(),t)).delay&&"number"==typeof t.delay&&(t.delay={show:t.delay,hide:t.delay}),t},t.prototype.getDelegateOptions=function(){var t={},n=this.getDefaults();return this._options&&e.each(this._options,function(e,i){n[e]!=i&&(t[e]=i)}),t},t.prototype.enter=function(t){var n=t instanceof this.constructor?t:e(t.currentTarget).data("bs."+this.type);return n||(n=new this.constructor(t.currentTarget,this.getDelegateOptions()),e(t.currentTarget).data("bs."+this.type,n)),t instanceof e.Event&&(n.inState["focusin"==t.type?"focu
1s":"hover"]=!0),n.tip().hasClass("in")||"in"==n.hoverState?void(n.hoverState="in"):(clearTimeout(n.timeout),n.hoverState="in",n.options.delay&&n.options.delay.show?void(n.timeout=setTimeout(function(){"in"==n.hoverState&&n.show()},n.options.delay.show)):n.show())},t.prototype.isInStateTrue=function(){for(var e in this.inState)if(this.inState[e])return!0;return!1},t.prototype.leave=function(t){var n=t instanceof this.constructor?t:e(t.currentTarget).data("bs."+this.type);if(n||(n=new this.constructor(t.currentTarget,this.getDelegateOptions()),e(t.currentTarget).data("bs."+this.type,n)),t instanceof e.Event&&(n.inState["focusout"==t.type?"focus":"hover"]=!1),!n.isInStateTrue())return clearTimeout(n.timeout),n.hoverState="out",n.options.delay&&n.options.delay.hide?void(n.timeout=setTimeout(function(){"out"==n.hoverState&&n.hide()},n.options.delay.hide)):n.hide()},t.prototype.show=function(){var n=e.Event("show.bs."+this.type);if(this.hasContent()&&this.enabled){this.$element.trigger(n);var i=e.contains(this.$element[0].ownerDocument.documentElement,this.$element[0]);if(n.isDefaultPrevented()||!i)return;var o=this,r=this.tip(),s=this.getUID(this.type);this.setContent(),r.attr("id",s),this.$element.attr("aria-describedby",s),this.options.animation&&r.addClass("fade");var a="function"==typeof this.options.placement?this.options.placement.call(this,r[0],this.$element[0]):this.options.placement,l=/\s?auto?\s?/i,u=l.test(a);u&&(a=a.replace(l,"")||"top"),r.detach().css({top:0,left:0,display:"block"}).addClass(a).data("bs."+this.type,this),this.options.container?r.appendTo(this.options.container):r.insertAfter(this.$element),this.$element.trigger("inserted.bs."+this.type);var c=this.getPosition(),d=r[0].offsetWidth,h=r[0].offsetHeight;if(u){var f=a,p=this.getPosition(this.$viewport);a="bottom"==a&&c.bottom+h>p.bottom?"top":"top"==a&&c.top-h<p.top?"bottom":"right"==a&&c.right+d>p.width?"left":"left"==a&&c.left-d<p.left?"right":a,r.removeClass(f).addClass(a)}var g=this.getCalculatedOffset(a,c,d,h);this.applyPlacement(g,a);var m=function(){var e=o.hoverState;o.$element.trigger("shown.bs."+o.type),o.hoverState=null,"out"==e&&o.leave(o)};e.support.transition&&this.$tip.hasClass("fade")?r.one("bsTransitionEnd",m).emulateTransitionEnd(t.TRANSITION_DURATION):m()}},t.prototype.applyPlacement=function(t,n){var i=this.tip(),o=i[0].offsetWidth,r=i[0].offsetHeight,s=parseInt(i.css("margin-top"),10),a=parseInt(i.css("margin-left"),10);isNaN(s)&&(s=0),isNaN(a)&&(a=0),t.top+=s,t.left+=a,e.offset.setOffset(i[0],e.extend({using:function(e){i.css({top:Math.round(e.top),left:Math.round(e.left)})}},t),0),i.addClass("in");var l=i[0].offsetWidth,u=i[0].offsetHeight;"top"==n&&u!=r&&(t.top=t.top+r-u);var c=this.getViewportAdjustedDelta(n,t,l,u);c.left?t.left+=c.left:t.top+=c.top;var d=/top|bottom/.test(n),h=d?2*c.left-o+l:2*c.top-r+u,f=d?"offsetWidth":"offsetHeight";i.offset(t),this.replaceArrow(h,i[0][f],d)},t.prototype.replaceArrow=function(e,t,n){this.arrow().css(n?"left":"top",50*(1-e/t)+"%").css(n?"top":"left","")},t.prototype.setContent=function(){var e=this.tip(),t=this.getTitle();e.find(".tooltip-inner")[this.options.html?"html":"text"](t),e.removeClass("fade in top bottom left right")},t.prototype.hide=function(n){function i(){"in"!=o.hoverState&&r.detach(),o.$element&&o.$element.removeAttr("aria-describedby").trigger("hidden.bs."+o.type),n&&n()}var o=this,r=e(this.$tip),s=e.Event("hide.bs."+this.type);if(this.$element.trigger(s),!s.isDefaultPrevented())return r.removeClass("in"),e.support.transition&&r.hasClass("fade")?r.one("bsTransitionEnd",i).emulateTransitionEnd(t.TRANSITION_DURATION):i(),this.hoverState=null,this},t.prototype.fixTitle=function(){var e=this.$element;(e.attr("title")||"string"!=typeof e.attr("data-original-title"))&&e.attr("data-original-title",e.attr("title")||"").attr("title","")},t.prototype.hasContent=function(){return this.getTitle()},t.prototype.getPosition=function(t){var n=(t=t||this.$element)[0],i="BODY"==n.tagName,o=n.getBoundingClientRect();null==o.width&&(o=e.extend({},o,{width:o.right-o.left,height:o.bottom-o.top}));var r=window.SVGElement&&n instanceof window.SVGElement,s=i?{top:0,left:0}:r?null:t.offset(),a={scroll:i?document.documentElement.scrollTop||document.body.scrollTop:t.scrollTop()},l=i?{width:e(window).width(),height:e(window).height()}:null;return e.extend({},o,a,l,s)},t.prototype.getCalculatedOffset=function(e,t,n,i){return"bottom"==e?{top:t.top+t.height,left:t.left+t.width/2-n/2}:"top"==e?{top:t.top-i,left:t.left+t.width/2-n/2}:"left"==e?{top:t.top+t.height/2-i/2,left:t.left-n}:{top:t.top+t.height/2-i/2,left:t.left+t.width}},t.prototype.getViewportAdjustedDelta=function(e,t,n,i){var o={top:0,left:0};if(!this.$viewport)return o;var r=this.options.viewport&&this.options.viewport.padding||0,s=this.getPosition(this.$viewport);if(/right|left/.test(e)){var a=t.top-r-s.scroll,l=t.top+r-s.scroll+i;a<s.top?o.top=s.top-a:l>s.top+s.height&&(o.top=s.top+s.height-l)}else{var u=t.left-r,c=t.left+r+n;
vendor: 7,232 bytes, line 1
1u<s.left?o.left=s.left-u:c>s.right&&(o.left=s.left+s.width-c)}return o},t.prototype.getTitle=function(){var e=this.$element,t=this.options;return e.attr("data-original-title")||("function"==typeof t.title?t.title.call(e[0]):t.title)},t.prototype.getUID=function(e){do{e+=~~(1e6*Math.random())}while(document.getElementById(e));return e},t.prototype.tip=function(){if(!this.$tip&&(this.$tip=e(this.options.template),1!=this.$tip.length))throw new Error(this.type+" `template` option must consist of exactly 1 top-level element!");return this.$tip},t.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".tooltip-arrow")},t.prototype.enable=function(){this.enabled=!0},t.prototype.disable=function(){this.enabled=!1},t.prototype.toggleEnabled=function(){this.enabled=!this.enabled},t.prototype.toggle=function(t){var n=this;t&&((n=e(t.currentTarget).data("bs."+this.type))||(n=new this.constructor(t.currentTarget,this.getDelegateOptions()),e(t.currentTarget).data("bs."+this.type,n))),t?(n.inState.click=!n.inState.click,n.isInStateTrue()?n.enter(n):n.leave(n)):n.tip().hasClass("in")?n.leave(n):n.enter(n)},t.prototype.destroy=function(){var e=this;clearTimeout(this.timeout),this.hide(function(){e.$element.off("."+e.type).removeData("bs."+e.type),e.$tip&&e.$tip.detach(),e.$tip=null,e.$arrow=null,e.$viewport=null,e.$element=null})};var n=e.fn.tooltip;e.fn.tooltip=function(n){return this.each(function(){var i=e(this),o=i.data("bs.tooltip"),r="object"==typeof n&&n;!o&&/destroy|hide/.test(n)||(o||i.data("bs.tooltip",o=new t(this,r)),"string"==typeof n&&o[n]())})},e.fn.tooltip.Constructor=t,e.fn.tooltip.noConflict=function(){return e.fn.tooltip=n,this}}(jQuery),function(e){"use strict";var t=function(e,t){this.init("popover",e,t)};if(!e.fn.tooltip)throw new Error("Popover requires tooltip.js");t.VERSION="3.3.7",t.DEFAULTS=e.extend({},e.fn.tooltip.Constructor.DEFAULTS,{placement:"right",trigger:"click",content:"",template:'<div class="popover" role="tooltip"><div class="arrow"></div><h3 class="popover-title"></h3><div class="popover-content"></div></div>'}),t.prototype=e.extend({},e.fn.tooltip.Constructor.prototype),t.prototype.constructor=t,t.prototype.getDefaults=function(){return t.DEFAULTS},t.prototype.setContent=function(){var e=this.tip(),t=this.getTitle(),n=this.getContent();e.find(".popover-title")[this.options.html?"html":"text"](t),e.find(".popover-content").children().detach().end()[this.options.html?"string"==typeof n?"html":"append":"text"](n),e.removeClass("fade top bottom left right in"),e.find(".popover-title").html()||e.find(".popover-title").hide()},t.prototype.hasContent=function(){return this.getTitle()||this.getContent()},t.prototype.getContent=function(){var e=this.$element,t=this.options;return e.attr("data-content")||("function"==typeof t.content?t.content.call(e[0]):t.content)},t.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".arrow")};var n=e.fn.popover;e.fn.popover=function(n){return this.each(function(){var i=e(this),o=i.data("bs.popover"),r="object"==typeof n&&n;!o&&/destroy|hide/.test(n)||(o||i.data("bs.popover",o=new t(this,r)),"string"==typeof n&&o[n]())})},e.fn.popover.Constructor=t,e.fn.popover.noConflict=function(){return e.fn.popover=n,this}}(jQuery),function(e){"use strict";function t(n,i){this.$body=e(document.body),this.$scrollElement=e(e(n).is(document.body)?window:n),this.options=e.extend({},t.DEFAULTS,i),this.selector=(this.options.target||"")+" .nav li > a",this.offsets=[],this.targets=[],this.activeTarget=null,this.scrollHeight=0,this.$scrollElement.on("scroll.bs.scrollspy",e.proxy(this.process,this)),this.refresh(),this.process()}function n(n){return this.each(function(){var i=e(this),o=i.data("bs.scrollspy"),r="object"==typeof n&&n;o||i.data("bs.scrollspy",o=new t(this,r)),"string"==typeof n&&o[n]()})}t.VERSION="3.3.7",t.DEFAULTS={offset:10},t.prototype.getScrollHeight=function(){return this.$scrollElement[0].scrollHeight||Math.max(this.$body[0].scrollHeight,document.documentElement.scrollHeight)},t.prototype.refresh=function(){var t=this,n="offset",i=0;this.offsets=[],this.targets=[],this.scrollHeight=this.getScrollHeight(),e.isWindow(this.$scrollElement[0])||(n="position",i=this.$scrollElement.scrollTop()),this.$body.find(this.selector).map(function(){var t=e(this),o=t.data("target")||t.attr("href"),r=/^#./.test(o)&&e(o);return r&&r.length&&r.is(":visible")&&[[r[n]().top+i,o]]||null}).sort(function(e,t){return e[0]-t[0]}).each(function(){t.offsets.push(this[0]),t.targets.push(this[1])})},t.prototype.process=function(){var e,t=this.$scrollElement.scrollTop()+this.options.offset,n=this.getScrollHeight(),i=this.options.offset+n-this.$scrollElement.height(),o=this.offsets,r=this.targets,s=this.activeTarget;if(this.scrollHeight!=n&&this.refresh(),t>=i)return s!=(e=r[r.length-1])&&this.activate(e);if(s&&t<o[0])return this.activeTarget=null,this.clear();for(e=o.length;e--;)s!=r[e]&&t>=o[e]&&(void 0===o[e+1]||t<o[e+1])&&this.activate(r[e])},t.prototype.activate=function(t){this.activeTarget=t,this.clear();var n=this.selector+'[data-target="'+t+'"],'+this.selector+'[href="'+t+'"]',i=e(n).parents("li").addClass("active");i.parent(".dropdown-menu").length&&(i=i.closest("li.dropdown").addClass("active")),i.trigger("activate.bs.scrollspy")},t.prototype.clear=function(){e(this.selector).parentsUntil(this.options.target,".active").removeClass("active")};var i=e.fn.scrollspy;e.fn.scrollspy=n,e.fn.scrollspy.Constructor=t,e.fn.scrollspy.noConflict=function(){return e.fn.scrollspy=i,this},e(window).on("load.bs.scrollspy.data-api",function(){e('[data-spy="scroll"]').each(function(){var t=e(this);n.call(t,t.data())})})}(jQuery),function(e){"use strict";function t(t){return this.each(function(){var i=e(this),o=i.data("bs.tab");o||i.data("bs.tab",o=new n(this)),"string"==typeof t&&o[t]()})}var n=function(t){this.element=e(t)};n.VERSION="3.3.7",n.TRANSITION_DURATION=150,n.prototype.show=function(){var t=this.element,n=t.closest("ul:not(.dropdown-menu)"),i=t.data("target");if(i||(i=(i=t.attr("href"))&&i.replace(/.*(?=#[^\s]*$)/,"")),!t.parent("li").hasClass("active")){var o=n.find(".active:last a"),r=e.Event("hide.bs.tab",{relatedTarget:t[0]}),s=e.Event("show.bs.tab",{relatedTarget:o[0]});if(o.trigger(r),t.trigger(s),!s.isDefaultPrevented()&&!r.isDefaultPrevented()){var a=e(i);this.activate(t.closest("li"),n),this.activate(a,a.parent(),function(){o.trigger({type:"hidden.bs.tab",relatedTarget:t[0]}),t.trigger({type:"shown.bs.tab",relatedTarget:o[0]})})}}},n.prototype.activate=function(t,i,o){function r(){s.removeClass("active").find("> .dropdown-menu > .active").removeClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!1),t.addClass("active").find('[data-toggle="tab"]').attr("aria-expanded",!0),a?(t[0].offsetWidth,t.addClass("in")):t.removeClass("fade"),t.parent(".dropdown-menu").length&&t.closest("li.dropdown").addClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!0),o&&o()}var s=i.find("> .active"),a=o&&e.support.transition&&(s.length&&s.hasClass("fade")||!!i.find("> .fade").length);s.length&&a?s.one("bsTransitionEnd",r).emulateTransitionEnd(n.TRANSITION_DURATION):r(),s.removeClass("in")};var i=e.fn.tab;
1e.fn.tab=t,e.fn.tab.Constructor=n,e.fn.tab.noConflict=function(){return e.fn.tab=i,this};var o=function(n){n.preventDefault(),t.call(e(this),"show")};e(document).on("click.bs.tab.data-api",'[data-toggle="tab"]',o).on("click.bs.tab.data-api",'[data-toggle="pill"]',o)}(jQuery),function(e){"use strict";function t(t){return this.each(function(){var i=e(this),o=i.data("bs.affix"),r="object"==typeof t&&t;o||i.data("bs.affix",o=new n(this,r)),"string"==typeof t&&o[t]()})}var n=function(t,i){this.options=e.extend({},n.DEFAULTS,i),this.$target=e(this.options.target).on("scroll.bs.affix.data-api",e.proxy(this.checkPosition,this)).on("click.bs.affix.data-api",e.proxy(this.checkPositionWithEventLoop,this)),this.$element=e(t),this.affixed=null,this.unpin=null,this.pinnedOffset=null,this.checkPosition()};n.VERSION="3.3.7",n.RESET="affix affix-top affix-bottom",n.DEFAULTS={offset:0,target:window},n.prototype.getState=function(e,t,n,i){var o=this.$target.scrollTop(),r=this.$element.offset(),s=this.$target.height();if(null!=n&&"top"==this.affixed)return o<n&&"top";if("bottom"==this.affixed)return null!=n?!(o+this.unpin<=r.top)&&"bottom":!(o+s<=e-i)&&"bottom";var a=null==this.affixed,l=a?o:r.top;return null!=n&&o<=n?"top":null!=i&&l+(a?s:t)>=e-i&&"bottom"},n.prototype.getPinnedOffset=function(){if(this.pinnedOffset)return this.pinnedOffset;this.$element.removeClass(n.RESET).addClass("affix");var e=this.$target.scrollTop(),t=this.$element.offset();return this.pinnedOffset=t.top-e},n.prototype.checkPositionWithEventLoop=function(){setTimeout(e.proxy(this.checkPosition,this),1)},n.prototype.checkPosition=function(){if(this.$element.is(":visible")){var t=this.$element.height(),i=this.options.offset,o=i.top,r=i.bottom,s=Math.max(e(document).height(),e(document.body).height());"object"!=typeof i&&(r=o=i),"function"==typeof o&&(o=i.top(this.$element)),"function"==typeof r&&(r=i.bottom(this.$element));var a=this.getState(s,t,o,r);if(this.affixed!=a){null!=this.unpin&&this.$element.css("top","");var l="affix"+(a?"-"+a:""),u=e.Event(l+".bs.affix");if(this.$element.trigger(u),u.isDefaultPrevented())return;this.affixed=a,this.unpin="bottom"==a?this.getPinnedOffset():null,this.$element.removeClass(n.RESET).addClass(l).trigger(l.replace("affix","affixed")+".bs.affix")}"bottom"==a&&this.$element.offset({top:s-t-r})}};var i=e.fn.affix;e.fn.affix=t,e.fn.affix.Constructor=n,e.fn.affix.noConflict=function(){return e.fn.affix=i,this},e(window).on("load",function(){e('[data-spy="affix"]').each(function(){var n=e(this),i=n.data();i.offset=i.offset||{},null!=i.offsetBottom&&(i.offset.bottom=i.offsetBottom),null!=i.offsetTop&&(i.offset.top=i.offsetTop),t.call(n,i)})})}(jQuery),function(e,t){"object"==typeof exports?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t(e)}(this,function(e){var t,n,i,o,r,s,a,l,u,c,d,h,f,p,g,m;for(a in s=document.createElement("fakeelement"),o=!1,f=!1,i="animationend",h=null,r="Webkit Moz O ms".split(" "),d={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd",msTransition:"MSTransitionEnd",transition:"transitionend"})if(p=d[a],null!=s.style[a]){h=p,f=!0;break}if(null!=s.style.animationName&&(o=!0),!o)for(g=0,m=r.length;m>g;g++)if(l=r[g],null!=s.style[l+"AnimationName"]){switch(l){case"Webkit":i="webkitAnimationEnd";break;case"Moz":i="animationend";break;case"O":i="oanimationend";break;case"ms":i="MSAnimationEnd"}o=!0;break}return n=function(e,t){return t.classList?t.classList.add(e):t.className+=" "+e},c=function(e,t){return t.classList?t.classList.remove(e):t.className=t.className.replace(e,"").trim()},t=function(){function e(e){var t,r,s,a;for(r in t=this.constructor._defaultOptions,this.options={},this.loaded=!1,this.finishing=!1,t)a=t[r],this.options[r]=null!=e[r]?e[r]:a;this._loadingElem=document.createElement("div"),this._loadingHtmlToDisplay=[],this._loadingElem.className="pg-loading-screen",null!=this.options.backgroundColor&&(this._loadingElem.style.backgroundColor=this.options.backgroundColor),this._loadingElem.innerHTML=this.options.template,this._loadingHtmlElem=this._loadingElem.getElementsByClassName("pg-loading-html")[0],null!=this._loadingHtmlElem&&(this._loadingHtmlElem.
1innerHTML=this.options.loadingHtml),this._readyToShowLoadingHtml=!1,this._logoElem=this._loadingElem.getElementsByClassName("pg-loading-logo")[0],null!=this._logoElem&&(this._logoElem.src=this.options.logo),c("pg-loaded",document.body),n("pg-loading",document.body),document.body.appendChild(this._loadingElem),n("pg-loading",this._loadingElem),this._onLoadedCallback=this.options.onLoadedCallback,s=function(e){return function(t){return e.loaded=!0,e._readyToShowLoadingHtml=!0,n("pg-loaded",e._loadingHtmlElem),o&&e._loadingHtmlElem.removeEventListener(i,s),e._loadingHtmlToDisplay.length>0&&e._changeLoadingHtml(),e.finishing?(null!=t&&t.stopPropagation(),e._finish()):void 0}}(this),null!=this._loadingHtmlElem&&(o?this._loadingHtmlElem.addEventListener(i,s):s(),this._loadingHtmlListener=function(e){return function(){return e._readyToShowLoadingHtml=!0,c("pg-loading",e._loadingHtmlElem),f&&e._loadingHtmlElem.removeEventListener(h,e._loadingHtmlListener),e._loadingHtmlToDisplay.length>0?e._changeLoadingHtml():void 0}}(this),this._removingHtmlListener=function(e){return function(){return e._loadingHtmlElem.
1innerHTML=e._loadingHtmlToDisplay.shift(),c("pg-removing",e._loadingHtmlElem),n("pg-loading",e._loadingHtmlElem),f?(e._loadingHtmlElem.removeEventListener(h,e._removingHtmlListener),e._loadingHtmlElem.addEventListener(h,e._loadingHtmlListener)):e._loadingHtmlListener()}}(this))}return e._defaultOptions={backgroundColor:null,logo:null,loadingHtml:null,template:"<div class='pg-loading-inner'>\n <div class='pg-loading-center-outer'>\n <div class='pg-loading-center-middle'>\n <h1 class='pg-loading-logo-header'>\n <img class='pg-loading-logo'></img>\n </h1>\n <div class='pg-loading-html'>\n </div>\n </div>\n </div>\n</div>",onLoadedCallback:null},e.prototype.finish=function(e,t){return null==e&&(e=!1),window.document.hidden&&(e=!0),this.finishing=!0,null!=t&&this.updateOption("onLoadedCallback",t),this.loaded||e?this._finish(e):void 0},e.prototype.updateOption=function(e,t){switch(e){case"backgroundColor":return this._loadingElem.style.backgroundColor=t;case"logo":return this._logoElem.src=t;case"loadingHtml":return this.updateLoadingHtml(t);case"onLoadedCallback":return this._onLoadedCallback=t;default:throw new Error("Unknown option '"+e+"'")}},e.prototype.updateOptions=function(e){var t,n,i;for(t in null==e&&(e={}),i=[],e)n=e[t],i.push(this.updateOption(t,n));return i},e.prototype.updateLoadingHtml=function(e,t){if(null==t&&(t=!1),null==this._loadingHtmlElem)throw new Error("The loading template does not have an element of class 'pg-loading-html'");return t?(this._loadingHtmlToDisplay=[e],this._readyToShowLoadingHtml=!0):this._loadingHtmlToDisplay.push(e),this._readyToShowLoadingHtml?this._changeLoadingHtml():void 0},e.prototype._changeLoadingHtml=function(){return this._readyToShowLoadingHtml=!1,this._loadingHtmlElem.removeEventListener(h,this._loadingHtmlListener),this._loadingHtmlElem.removeEventListener(h,this._removingHtmlListener),c("pg-loading",this._loadingHtmlElem),c("pg-removing",this._loadingHtmlElem),f?(n("pg-removing",this._loadingHtmlElem),this._loadingHtmlElem.addEventListener(h,this._removingHtmlListener)):this._removingHtmlListener()},e.prototype._finish=function(e){var t;return null==e&&(e=!1),null!=this._loadingElem?(n("pg-loaded",document.body),"function"==typeof this._onLoadedCallback&&this._onLoadedCallback.apply(this),t=function(e){return function(){return document.body.removeChild(e._loadingElem),c("pg-loading",document.body),o&&e._loadingElem.removeEventListener(i,t),e._loadingElem=null}}(this),!e&&o?(n("pg-loaded",this._loadingElem),this._loadingElem.addEventListener(i,t)):t()):void 0},e}(),u=function(e){return null==e&&(e={}),new t(e)},e.pleaseWait=u,u}),function(e){"use strict";e(window).resize(function(){refreshSidebar(),refreshLeftbar()}),e(window).ready(function(){e("img").each(function(t){var n=e(this).offset().top+e(this).outerHeight();e(window).scrollTop()+e(window).height()+200<=n&&e(this).css("opacity","0")}),e(window).scroll(function(){e("img").each(function(t){var n=e(this).offset().top+e(this).outerHeight();e(window).scrollTop()+e(window).height()+200>n&&e(this).animate({opacity:"1"},500)})}),e(".tab-a").each(function(){e(this).find("h3").eq(0).addClass("active")}),e(".tab-d").each(function(){e(this).children("div").eq(0).addClass("active")}),e(".tab-a h3").click(function(){var t=e(this),n=t.index();t.addClass("active").siblings("h3.active").removeClass("active"),t.parent().siblings(".tab-d").children("div").eq(n).addClass("active").siblings("div.active").removeClass("active"),refreshSidebar(),refreshLeftbar()}),e(".w-photos .photo-images").each(function(){e(this).children("a").eq(0).addClass("active")}),e(".gallery-link-left").click(function(){return slideGalleryWidget(e(this).siblings(".photo-images").children("a.active").prev()),!1}),e(".gallery-link-right").click(function(){return slideGalleryWidget(e(this).siblings(".photo-images").children("a.active").next()),!1}),e(".carousel-right").click(function(){var t=e(this),n=Math.ceil(t.siblings(".inner-carousel").children(".item").size()/3);if(t.parent().attr("rel"))if(t.parent().attr("rel")<n-1)var i=parseInt(t.parent().attr("rel"))+1;else i=parseInt(t.parent().attr("rel"));else if(n-1>=1)i=1;else i=0;return t.parent().attr("rel",i),t.siblings(".inner-carousel").animate({left:"-"+103.5*i+"%"},200),!1}),e(".carousel-left").click(function(){var t=e(this);if(t.parent().attr("rel"))if(t.parent().attr("rel")>0)var n=parseInt(t.parent().attr("rel"))-1;else n=parseInt(t.parent().attr("rel"));else n=0;return t.parent().attr("rel",n),t.siblings(".inner-carousel").animate({left:"-"+103.5*n+"%"},200),!1}
1),e(".slider .slider-navigation li > a").click(function(){var t=e(this),n=t.parent().index();return t.parent().addClass("active").siblings("li.active").removeClass("active"),t.parent().parent().siblings(".slider-image").children("a").eq(n).addClass("active").siblings("a.active").each(function(){var t=e(this);setTimeout(function(){t.removeClass("active")},100)}),!1}),e('a[href="#close-alert"]').click(function(){return e(this).parent().animate({opacity:0,padding:"0px 13px",margin:"0px",height:"0px"},300,function(){refreshSidebar(),refreshLeftbar()}),!1}),e("body").on("click",".accordion > div > a",function(){var t=e(this).parent();return t.hasClass("active")?(t.removeClass("active").children("div").animate({height:"toggle",opacity:"toggle","padding-top":"toggle"},300),!1):(t.siblings("div").each(function(){var t=e(this);t.hasClass("active")&&t.removeClass("active").children("div").animate({height:"toggle",opacity:"toggle","padding-top":"toggle"},300,function(){refreshSidebar(),refreshLeftbar()})}),t.addClass("active").children("div").animate({height:"toggle",opacity:"toggle","padding-top":"toggle"},300,function(){refreshSidebar(),refreshLeftbar()}),!1)}),e(".short-tabs").each(function(){var t=e(this);t.children("div").eq(0).addClass("active"),t.children("ul").children("li").eq(0).addClass("active")}),e(".short-tabs > ul > li a").click(function(){var t=e(this).parent();return t.siblings(".active").removeClass("active"),t.addClass("active"),t.parent().siblings("div.active").removeClass("active"),t.parent().siblings("div").eq(t.index()).addClass("active"),refreshSidebar(),refreshLeftbar(),!1}),e(".lightbox").click(function(){e(".lightbox").css("overflow","hidden"),e("body").css("overflow","auto"),e(".lightbox .lightcontent").fadeOut("fast"),e(".lightbox").fadeOut("slow")}).children().click(function(e){return!1}),e(".main-menu > div").append('<a href="#" class="toggle-menu"><i class="fa fa-ban"></i> Toggle Menu</a>'),e(".header-topmenu > div").append('<a href="#" class="toggle-menu"><i class="fa fa-ban"></i> Toggle Menu</a>'),e("body").on("click",".toggle-menu",function(t){return e(this).siblings("ul").fadeToggle(),!1}),refreshSidebar(),refreshLeftbar()})}(jQuery),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):e.Sweetalert2=t()}(this,function(){"use strict";var e={title:"",titleText:"",text:"",html:"",type:null,customClass:"",target:"body",animation:!0,allowOutsideClick:!0,allowEscapeKey:!0,allowEnterKey:!0,showConfirmButton:!0,showCancelButton:!1,preConfirm:null,confirmButtonText:"OK",confirmButtonAriaLabel:"",confirmButtonColor:"#3085d6",confirmButtonClass:null,cancelButtonText:"Cancel",cancelButtonAriaLabel:"",cancelButtonColor:"#aaa",cancelButtonClass:null,buttonsStyling:!0,reverseButtons:!1,focusConfirm:!0,focusCancel:!1,showCloseButton:!1,closeButtonAriaLabel:"Close this dialog",showLoaderOnConfirm:!1,imageUrl:null,imageWidth:null,imageHeight:null,imageAlt:"",imageClass:null,timer:null,width:500,padding:20,background:"#fff",input:null,inputPlaceholder:"",inputValue:"",inputOptions:{},inputAutoTrim:!0,inputClass:null,inputAttributes:{},inputValidator:null,progressSteps:[],currentProgressStep:null,progressStepsDistance:"40px",onOpen:null,onClose:null,useRejections:!0},t=function(e){var t={};for(var n in e)t[e[n]]="swal2-"+e[n];return t},n=t(["container","shown","iosfix","modal","overlay","fade","show","hide","noanimation","close","title","content","buttonswrapper","confirm","cancel","icon","image","input","file","range","select","radio","checkbox","textarea","inputerror","validationerror","progresssteps","activeprogressstep","progresscircle","progressline","loading","styled"]),i=t(["success","warning","info","question","error"]),o=function(e,t){(e=String(e).replace(/[^0-9a-f]/gi,"")).length<6&&(e=e[0]+e[0]+e[1]+e[1]+e[2]+e[2]),t=t||0;for(var n="#",i=0;i<3;i++){var o=parseInt(e.substr(2*i,2),16);n+=("00"+(o=Math.round(Math.min(Math.max(0,o+o*t),255)).toString(16))).substr(o.length)}return n},r={previousWindowKeyDown:null,previousActiveElement:null,previousBodyPadding:null},s=function(e){var t=l();if(t&&t.parentNode.removeChild(t),"undefined"!=typeof document){var i=document.createElement("div");i.className=n.container,i.innerHTML=a,("string"==typeof e.target?document.querySelector(e.target):e.target).appendChild(i);var o=u(),r=O(o,n.input),s=O(o,n.file),c=o.querySelector("."+n.range+" input"),d=o.querySelector("."+n.range+" output"),h=O(o,n.select),f=o.querySelector("."+n.checkbox+" input"),p=O(o,n.textarea);return r.oninput=function(){M.resetValidationError()},r.onkeydown=function(t){setTimeout(function(){13===t.keyCode&&e.allowEnterKey&&(t.stopPropagation(),M.clickConfirm())},0)},s.onchange=function(){M.resetValidationError()},c.oninput=function(){M.resetValidationError(),d.value=c.value},c.onchange=function(){M.resetValidationError(),c.previousSibling.value=c.value},h.onchange=function(){M.resetValidationError()},f.onchange=function(){M.resetValidationError()},p.oninput=function(){M.resetValidationError()},o}console.error("SweetAlert2 requires document to initialize")},a=('\n <div role="dialog" aria-labelledby="'+n.title+'" aria-describedby="'+n.content+'" class="'+n.modal+'" tabindex="-1">\n <ul class="'+n.progresssteps+'"></ul>\n <div class="'+n.icon+" "+i.error+'">\n <span class="swal2-x-mark"><span class="swal2-x-mark-line-left"></span><span class="swal2-x-mark-line-right"></span></span>\n </div>\n <div class="'+n.icon+" "+i.question+'">?</div>\n <div class="'+n.icon+" "+i.warning+'">!</div>\n <div class="'+n.icon+" "+i.info+'">i</div>\n <div class="'+n.icon+" "+i.success+'">\n <div class="swal2-success-circular-line-left"></div>\n <span class="swal2-success-line-tip"></span> <span class="swal2-success-line-long"></span>\n <div class="swal2-success-ring"></div> <div class="swal2-success-fix"></div>\n <div class="swal2-success-circular-line-right"></div>\n </div>\n <img class="'+n.image+'" />\n <h2 class="'+n.title+'" id="'+n.title+'"></h2>\n <div id="'+n.content+'" class="'+n.content+'"></div>\n <input class="'+n.input+'" />\n <input type="file" class="'+n.file+'" />\n <div class="'+n.range+'">\n <output></output>\n <input type="range" />\n </div>\n <select class="'+n.select+'"></select>\n <div class="'+n.radio+'"></div>\n <label for="'+n.checkbox+'" class="'+n.checkbox+'">\n <input type="checkbox" />\n </label>\n <textarea class="'+n.textarea+'"></textarea>\n <div class="'+n.validationerror+'" id="'+n.validationerror+'"></div>\n <div class="'+n.buttonswrapper+'">\n <button type="button" class="'+n.confirm+'">OK</button>\n <button type="button" class="'+n.cancel+'">Cancel</button>\n </div>\n <button type="button" class="'+n.close+'">\xd7</button>\n </div>\n').replace(/(^|\n)\s*/g,""),l=function(){return document.body.querySelector("."+n.container)},u=function(){return l()?l().querySelector("."+n.modal):null},c=function(e){return l()?l().querySelector("."+e):null},d=function(){return c(n.title)},h=function(){return c(n.content)},f=function(){return c(n.image)},p=function(){return c(n.buttonswrapper)},g=function(){return c(n.progresssteps)},m=function(){return c(n.validationerror)},v=function(){return c(n.confirm)},E=function(){return c(n.cancel)},T=function(){return c(n.close)},y=function(){var e=Array.from(u().querySelectorAll('[tabindex]:not
1([tabindex="-1"]):not([tabindex="0"])')).sort(function(e,t){return(e=parseInt(e.getAttribute("tabindex")))>(t=parseInt(t.getAttribute("tabindex")))?1:e<t?-1:0}),t=Array.prototype.slice.call(u().querySelectorAll('button, input:not([type=hidden]), textarea, select, a, [tabindex="0"]'));return function(e){var t=[];for(var n in e)-1===t.indexOf(e[n])&&t.push(e[n]);return t}(e.concat(t))},C=function(e,t){return!!e.classList&&e.classList.contains(t)},b=function(e){if(e.focus(),"file"!==e.type){var t=e.value;e.value="",e.value=t}},D=function(e,t){e&&t&&t.split(/\s+/).filter(Boolean).forEach(function(t){e.classList.add(t)})},I=function(e,t){e&&t&&t.split(/\s+/).filter(Boolean).forEach(function(t){e.classList.remove(t)})},O=function(e,t){for(var n=0;n<e.childNodes.length;n++)if(C(e.childNodes[n],t))return e.childNodes[n]},R=function(e,t){t||(t="block"),e.style.opacity="",e.style.display=t},_=function(e){e.style.opacity="",e.style.display="none"},w=function(e){return e.offsetWidth||e.offsetHeight||e.getClientRects().length},k=function(){var e=document.createElement("div"),t={WebkitAnimation:"webkitAnimationEnd",OAnimation:"oAnimationEnd oanimationend",animation:"animationend"};for(var n in t)if(t.hasOwnProperty(n)&&void 0!==e.style[n])return t[n];return!1}(),K="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},S=(function(){function e(e){function t(i,o){try{var r=e[i](o),s=r.value;s instanceof function(e){this.value=e}?Promise.resolve(s.value).then(function(e){t("next",e)},function(e){t("throw",e)}):n(r.done?"return":"normal",r.value)}catch(e){n("throw",e)}}function n(e,n){switch(e){case"return":i.resolve({value:n,done:!0});break;case"throw":i.reject(n);break;default:i.resolve({value:n,done:!1})}(i=i.next)?t(i.key,i.arg):o=null}var i,o;this._invoke=function(e,n){return new Promise(function(r,s){var a={key:e,arg:n,resolve:r,reject:s,next:null};o?o=o.next=a:(i=o=a,t(e,n))})},"function"!=typeof e.return&&(this.return=void 0)}"function"==typeof Symbol&&Symbol.asyncIterator&&(e.prototype[Symbol.asyncIterator]=function(){return this}),e.prototype.next=function(e){return this._invoke("next",e)},e.prototype.throw=function(e){return this._invoke("throw",e)},e.prototype.return=function(e){return this._invoke("return",e)}}(),Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}),x=S({},e),N=[],A=void 0,L=function(e){("string"==typeof e.target&&!document.querySelector(e.target)||"string"!=typeof e.target&&!e.target.appendChild)&&(console.warn('SweetAlert2: Target parameter is not valid, defaulting to "body"'),e.target="body");var t=void 0,o=u(),r="string"==typeof e.target?document.querySelector(e.target):e.target;for(var a in t=o&&r&&o.parentNode!==r.parentNode?s(e):o||s(e),e)M.isValidParameter(a)||console.warn('SweetAlert2: Unknown parameter "'+a+'"');t.style.width="number"==typeof e.width?e.width+"px":e.width,t.style.padding=e.padding+"px",t.style.background=e.background;for(var l=t.querySelectorAll("[class^=swal2-success-circular-line], .swal2-success-fix"),c=0;c<l.length;c++)l[c].style.background=e.background;var m=d(),y=h(),C=p(),b=v(),O=E(),w=T();if(e.titleText?m.innerText=e.titleText:m.innerHTML=e.title.split("\n").join("<br />"),e.text||e.html){if("object"===K(e.html))if(y.innerHTML="",0 in e.html)for(var k=0;k in e.html;k++)y.appendChild(e.html[k].cloneNode(!0));else y.appendChild(e.html.cloneNode(!0));else e.html?y.innerHTML=e.html:e.text&&(y.textContent=e.text);R(y)}else _(y);e.showCloseButton?(w.setAttribute("aria-label",e.closeButtonAriaLabel),R(w)):_(w),t.className=n.modal,e.customClass&&D(t,e.customClass);var S=g(),x=parseInt(null===e.currentProgressStep?M.getQueueStep():e.currentProgressStep,10);e.progressSteps.length?(R(S),function(e){for(;e.firstChild;)e.removeChild(e.firstChild)}(S),x>=e.progressSteps.length&&console.warn("SweetAlert2: Invalid currentProgressStep parameter, it should be less than progressSteps.length (currentProgressStep like JS arrays starts from 0)"),e.progressSteps.forEach(function(t,i){var o=document.createElement("li");if(D(o,n.progresscircle),o.innerHTML=t,i===x&&D(o,n.activeprogressstep),S.appendChild(o),i!==e.progressSteps.length-1){var r=document.createElement("li");D(r,n.progressline),r.style.width=e.progressStepsDistance,S.appendChild(r)}})):_(S);for(var N=u().querySelectorAll("."+n.icon),A=0;A<N.length;A++)_(N[A]);if(e.type){var L=!1;for(var F in i)if(e.type===F){L=!0;break}if(!L)return console.error("SweetAlert2: Unknown alert type: "+e.type),!1;var P=t.querySelector("."+n.icon+"."+i[e.type]);if(R(P),e.animation)switch(e.type){case"success":D(P,"swal2-animate-success-icon"),D(P.querySelector(".swal2-success-line-tip"),"swal2-animate-success-line-tip"),D(P.querySelector(".swal2-success-line-long"),"swal2-animate-success-line-long");break;case"error":D(P,"swal2-animate-error-icon"),D(P.querySelector(".swal2-x-mark"),"swal2-animate-x-mark")}}var B=f();e.imageUrl?(B.setAttribute("src",e.imageUrl),B.setAttribute("alt",e.imageAlt),R(B),e.imageWidth?B.setAttribute("width",e.imageWidth):B.removeAttribute("width"),e.imageHeight?B.setAttribute("height",e.imageHeight):B.removeAttribute("height"),B.className=n.image,e.imageClass&&D(B,e.imageClass)):_(B),e.showCancelButton?O.style.display="inline-block":_(O),e.showConfirmButton?function(e,t){e.style.removeProperty?e.style.removeProperty(t):e.style.removeAttribute(t)}(b,"display"):_(b),e.showConfirmButton||e.showCancelButton?R(C):_(C),b.innerHTML=e.confirmButtonText,O.innerHTML=e.cancelButtonText,b.setAttribute("aria-label",e.confirmButtonAriaLabel),O.setAttribute("aria-label",e.cancelButtonAriaLabel),e.buttonsStyling&&(b.style.backgroundColor=e.confirmButtonColor,O.style.backgroundColor=e.cancelButtonColor),b.className=n.confirm,D(b,e.confirmButtonClass),O.className=n.cancel,D(O,e.cancelButtonClass),e.buttonsStyling?(D(b,n.styled),D(O,n.styled)):(I(b,n.styled),I(O,n.styled),b.style.backgroundColor=b.style.borderLeftColor=b.style.borderRightColor="",O.style.backgroundColor=O.style.borderLeftColor=O.style.borderRightColor=""),!0===e.animation?I(t,n.noanimation):D(t,
1n.noanimation),e.showLoaderOnConfirm&&!e.preConfirm&&console.warn("SweetAlert2: showLoaderOnConfirm is set to true, but preConfirm is not defined.\nshowLoaderOnConfirm should be used together with preConfirm, see usage example:\nhttps://limonte.github.io/sweetalert2/#ajax-request")},F=function(e,t){var i=l(),o=u();e?(D(o,n.show),D(i,n.fade),I(o,n.hide)):I(o,n.fade),R(o),i.style.overflowY="hidden",k&&!C(o,n.noanimation)?o.addEventListener(k,function e(){o.removeEventListener(k,e),i.style.overflowY="auto"}):i.style.overflowY="auto",D(document.documentElement,n.shown),D(document.body,n.shown),D(i,n.shown),P(),B(),r.previousActiveElement=document.activeElement,null!==t&&"function"==typeof t&&setTimeout(function(){t(o)})},P=function(){null===r.previousBodyPadding&&document.body.scrollHeight>window.innerHeight&&(r.previousBodyPadding=document.body.style.paddingRight,document.body.style.paddingRight=function(){if("ontouchstart"in window||navigator.msMaxTouchPoints)return 0;var e=document.createElement("div");e.style.width="50px",e.style.height="50px",e.style.overflow="scroll",document.body.appendChild(e);var t=e.offsetWidth-e.clientWidth;return document.body.removeChild(e),t}()+"px")},B=function(){if(/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream&&!C(document.body,n.iosfix)){var e=document.body.scrollTop;document.body.style.top=-1*e+"px",D(document.body,n.iosfix)}},M=function e(){for(var t=arguments.length,i=Array(t),s=0;s<t;s++)i[s]=arguments[s];if(void 0===i[0])return console.error("SweetAlert2 expects at least 1 attribute!"),!1;var a=S({},x);switch(K(i[0])){case"string":a.title=i[0],a.html=i[1],a.type=i[2];break;case"object":S(a,i[0]),a.extraParams=i[0].extraParams,"email"===a.input&&null===a.inputValidator&&(a.inputValidator=function(e){return new Promise(function(t,n){/^[a-zA-Z0-9.+_-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,6}$/.test(e)?t():n("Invalid email address")})}),"url"===a.input&&null===a.inputValidator&&(a.inputValidator=function(e){return new Promise(function(t,n){/^https?:\/\/(www\.)?[-a-zA-Z0-9@:%._+~#=]{2,256}\.[a-z]{2,6}\b([-a-zA-Z0-9@:%_+.~#?&//=]*)$/.test(e)?t():n("Invalid URL")})});break;default:return console.error('SweetAlert2: Unexpected type of argument! Expected "string" or "object", got '+K(i[0])),!1}L(a);var c=l(),C=u();return new Promise(function(t,i){a.timer&&(C.timeout=setTimeout(function(){e.closeModal(a.onClose),a.useRejections?i("timer"):t({dismiss:"timer"})},a.timer));var s=function(e){if(!(e=e||a.input))return null;switch(e){case"select":case"textarea":case"file":return O(C,n[e]);case"checkbox":return C.querySelector("."+n.checkbox+" input");case"radio":return C.querySelector("."+n.radio+" input:checked")||C.querySelector("."+n.radio+" input:first-child");case"range":return C.querySelector("."+n.range+" input");default:return O(C,n.input)}},k=function(){var e=s();if(!e)return null;switch(a.input){case"checkbox":return e.checked?1:0;case"radio":return e.checked?e.value:null;case"file":return e.files.length?e.files[0]:null;default:return a.inputAutoTrim?e.value.trim():e.value}};a.input&&setTimeout(function(){var e=s();e&&b(e)},0);for(var S=function(n){a.showLoaderOnConfirm&&e.showLoading(),a.preConfirm?a.preConfirm(n,a.extraParams).then(function(i){e.closeModal(a.onClose),t(i||n)},function(t){e.hideLoading(),t&&e.showValidationError(t)}):(e.closeModal(a.onClose),t(a.useRejections?n:{value:n}))},x=function(n){var r=n||window.event,s=r.target||r.srcElement,l=v(),u=E(),c=l&&(l===s||l.contains(s)),d=u&&(u===s||u.contains(s));switch(r.type){case"mouseover":case"mouseup":a.buttonsStyling&&(c?l.style.backgroundColor=o(a.confirmButtonColor,-.1):d&&(u.style.backgroundColor=o(a.cancelButtonColor,-.1)));break;case"mouseout":a.buttonsStyling&&(c?l.style.backgroundColor=a.confirmButtonColor:d&&(u.style.backgroundColor=a.cancelButtonColor));break;case"mousedown":a.buttonsStyling&&(c?l.style.backgroundColor=o(a.confirmButtonColor,-.2):d&&(u.style.backgroundColor=o(a.cancelButtonColor,-.2)));break;case"click":if(c&&e.isVisible())if(e.disableButtons(),a.input){var h=k();a.inputValidator?(e.disableInput(),a.inputValidator(h,a.extraParams).then(function(){e.enableButtons(),e.enableInput(),S(h)},function(t){e.enableButtons(),e.enableInput(),t&&e.showValidationError(t)})):S(h)}else S(!0);else d&&e.isVisible()&&(e.disableButtons(),e.closeModal(a.onClose),a.useRejections?i("c
1ancel"):t({dismiss:"cancel"}))}},N=C.querySelectorAll("button"),P=0;P<N.length;P++)N[P].onclick=x,N[P].onmouseover=x,N[P].onmouseout=x,N[P].onmousedown=x;T().onclick=function(){e.closeModal(a.onClose),a.useRejections?i("close"):t({dismiss:"close"})},c.onclick=function(n){n.target===c&&a.allowOutsideClick&&(e.closeModal(a.onClose),a.useRejections?i("overlay"):t({dismiss:"overlay"}))};var B=p(),M=v(),$=E();a.reverseButtons?M.parentNode.insertBefore($,M):M.parentNode.insertBefore(M,$);var H=function(e,t){for(var n=y(a.focusCancel),i=0;i<n.length;i++){(e+=t)===n.length?e=0:-1===e&&(e=n.length-1);var o=n[e];if(w(o))return o.focus()}},j=function(n){var o=n||window.event,r=o.keyCode||o.which;if(-1!==[9,13,32,27,37,38,39,40].indexOf(r)){for(var s=o.target||o.srcElement,l=y(a.focusCancel),u=-1,c=0;c<l.length;c++)if(s===l[c]){u=c;break}9===r?(o.shiftKey?H(u,-1):H(u,1),o.stopPropagation(),o.preventDefault()):37===r||38===r||39===r||40===r?document.activeElement===M&&w($)?$.focus():document.activeElement===$&&w(M)&&M.focus():27===r&&!0===a.allowEscapeKey&&(e.closeModal(a.onClose),a.useRejections?i("esc"):t({dismiss:"esc"}))}};window.onkeydown&&window.onkeydown.toString()===j.toString()||(r.previousWindowKeyDown=window.onkeydown,window.onkeydown=j),a.buttonsStyling&&(M.style.borderLeftColor=a.confirmButtonColor,M.style.borderRightColor=a.confirmButtonColor),e.hideLoading=e.disableLoading=function(){a.showConfirmButton||(_(M),a.showCancelButton||_(p())),I(B,n.loading),I(C,n.loading),C.removeAttribute("aria-busy"),M.disabled=!1,$.disabled=!1},e.getTitle=function(){return d()},e.getContent=function(){return h()},e.getInput=function(){return s()},e.getImage=function(){return f()},e.getButtonsWrapper=function(){return p()},e.getConfirmButton=function(){return v()},e.getCancelButton=function(){return E()},e.enableButtons=function(){M.disabled=!1,$.disabled=!1},e.disableButtons=function(){M.disabled=!0,$.disabled=!0},e.enableConfirmButton=function(){M.disabled=!1},e.disableConfirmButton=function(){M.disabled=!0},e.enableInput=function(){var e=s();if(!e)return!1;if("radio"===e.type)for(var t=e.parentNode.parentNode.querySelectorAll("input"),n=0;n<t.length;n++)t[n].disabled=!1;else e.disabled=!1},e.disableInput=function(){var e=s();if(!e)return!1;if(e&&"radio"===e.type)for(var t=e.parentNode.parentNode.querySelectorAll("input"),n=0;n<t.length;n++)t[n].disabled=!0;else e.disabled=!0},e.recalculateHeight=function(e,t){var n=void 0;return function(){clearTimeout(n),n=setTimeout(function(){n=null,e()},t)}}(function(){var e=u();if(e){var t=e.style.display;e.style.minHeight="",R(e),e.style.minHeight=e.scrollHeight+1+"px",e.style.display=t}},50),e.showValidationError=function(e){var t=m();t.innerHTML=e,R(t);var i=s();i&&(i.setAttribute("aria-invalid",!0),i.setAttribute("aria-describedBy",n.validationerror),b(i),D(i,n.inputerror))},e.resetValidationError=function(){var t=m();_(t),e.recalculateHeight();var i=s();i&&(i.removeAttribute("aria-invalid"),i.removeAttribute("aria-describedBy"),I(i,n.inputerror))},e.getProgressSteps=function(){return a.progressSteps},e.setProgressSteps=function(e){a.progressSteps=e,L(a)},e.showProgressSteps=function(){R(g())},e.hideProgressSteps=function(){_(g())},e.enableButtons(),e.hideLoading(),e.resetValidationError();for(var q=["input","file","range","select","radio","checkbox","textarea"],z=void 0,W=0;W<q.length;W++){var V=n[q[W]],U=O(C,V);if(z=s(q[W])){for(var G in z.attributes)if(z.attributes.hasOwnProperty(G)){var Y=z.attributes[G].name;"type"!==Y&&"value"!==Y&&z.removeAttribute(Y)}for(var X in a.inputAttributes)z.setAttribute(X,a.inputAttributes[X])}U.className=V,a.inputClass&&D(U,a.inputClass),_(U)}var Z=void 0;switch(a.input){case"text":case"email":case"password":case"number":case"tel":case"url":(z=O(C,n.input)).value=a.inputValue,z.placeholder=a.inputPlaceholder,z.type=a.input,R(z);break;case"file":(z=O(C,n.file)).placeholder=a.inputPlaceholder,z.type=a.input,R(z);break;case"range":var Q=O(C,n.range),J=Q.querySelector("input"),ee=Q.querySelector("output");J.value=a.inputValue,J.type=a.input,ee.value=a.inputValue,R(Q);break;case"select":var te=O(C,n.select);if(te.innerHTML="",a.inputPlaceholder){var ne=document.createElement("option");ne.innerHTML=a.inputPlaceholder,ne.value="",ne.disabled=!0,ne.selected=!0,te.appendChild(ne)}Z=function(e){for(var t in e){var n=document.createElement("option");n.value=t,n.innerHTML=e[t],a.inputValue===t&&(n.selected=!0),te.appendChild(n)}R(te),te.focus()};break;case"radio":var ie=O(C,n.radio);ie.innerHTML="",Z=function(e){for(var t in e){var i=document.createElement("input"),o=document.createElement("label"),r=document.createElement("span");i.type="radio",i.name=n.radio,i.value=t,a.inputValue===t&&(i.checked=!0),r.innerHTML=e[t],o.appendChild(i),o.appendChild(r),o.for=i.id,ie.appendChild(o)}R(ie);var s=ie.querySelectorAll("input");s.length&&s[0].focus()};break;case"checkbox":var oe=O(C,n.checkbox),re=s("checkbox");re.type="checkbox",re.value=1,re.id=n.checkbox,re.checked=Boolean(a.inputValue);var se=oe.getElementsByTagName("span");se.length&&oe.removeChild(se[0]),(se=document.createElement("span")).innerHTML=a.inputPlaceholder,oe.appendChild(se),R(oe);break;case"textarea":var ae=O(C,n.textarea);ae.value=a.inputValue,ae.placeholder=a.inputPlaceholder,R(ae);break;case null:break;default:console.error('SweetAlert2: Unexpected type of input! Expected "text", "email", "password", "number", "tel", "select", "radio", "checkbox", "textarea", "file" or "url", got "'+a.input+'"')}"select"!==a.input&&"radio"!==a.input||(a.inputOptions instanceof Promise?(e.showLoading(),a.inputOptions.then(function(t){e.hideL
1oading(),Z(t)})):"object"===K(a.inputOptions)?Z(a.inputOptions):console.error("SweetAlert2: Unexpected type of inputOptions! Expected object or Promise, got "+K(a.inputOptions))),F(a.animation,a.onOpen),a.allowEnterKey?a.focusCancel&&w($)?$.focus():a.focusConfirm&&w(M)?M.focus():H(-1,1):document.activeElement&&document.activeElement.blur(),l().scrollTop=0,"undefined"==typeof MutationObserver||A||(A=new MutationObserver(e.recalculateHeight)).observe(C,{childList:!0,characterData:!0,subtree:!0})})};return M.isVisible=function(){return!!u()},M.queue=function(e){N=e;var t=function(){N=[],document.body.removeAttribute("data-swal2-queue-step")},n=[];return new Promise(function(e,i){!function o(r,s){r<N.length?(document.body.setAttribute("data-swal2-queue-step",r),M(N[r]).then(function(e){n.push(e),o(r+1,s)},function(e){t(),i(e)})):(t(),e(n))}(0)})},M.getQueueStep=function(){return document.body.getAttribute("data-swal2-queue-step")},M.insertQueueStep=function(e,t){return t&&t<N.length?N.splice(t,0,e):N.push(e)},M.deleteQueueStep=function(e){void 0!==N[e]&&N.splice(e,1)},M.close=M.closeModal=function(e){var t=l(),i=u();if(i){I(i,n.show),D(i,n.hide),clearTimeout(i.timeout),function(){if(window.onkeydown=r.previousWindowKeyDown,r.previousActiveElement&&r.previousActiveElement.focus){var e=window.scrollX,t=window.scrollY;r.previousActiveElement.focus(),e&&t&&window.scrollTo(e,t)}}();var o=function(){t.parentNode&&t.parentNode.removeChild(t),I(document.documentElement,n.shown),I(document.body,n.shown),null!==r.previousBodyPadding&&(document.body.style.paddingRight=r.previousBodyPadding,r.previousBodyPadding=null),function(){if(C(document.body,n.iosfix)){var e=parseInt(document.body.style.top,10);I(document.body,n.iosfix),document.body.style.top="",document.body.scrollTop=-1*e}}()};k&&!C(i,n.noanimation)?i.addEventListener(k,function e(){i.removeEventListener(k,e),C(i,n.hide)&&o()}):o(),null!==e&&"function"==typeof e&&setTimeout(function(){e(i)})}},M.clickConfirm=function(){return v().click()},M.clickCancel=function(){return E().click()},M.showLoading=M.enableLoading=function(){var e=u();e||M(""),e=u();var t=p(),i=v(),o=E();R(t),R(i,"inline-block"),D(t,n.loading),D(e,n.loading),i.disabled=!0,o.disabled=!0,e.setAttribute("aria-busy",!0),e.focus()},M.isValidParameter=function(t){return e.hasOwnProperty(t)||"extraParams"===t},M.setDefaults=function(e){if(!e||"object"!==(void 0===e?"undefined":K(e)))return console.error("SweetAlert2: the argument for setDefaults() is required and has to be a object");for(var t in e)M.isValidParameter(t)||(console.warn('SweetAlert2: Unknown parameter "'+t+'"'),delete e[t]);S(x,e)},M.resetDefaults=function(){x=S({},e)},M.noop=function(){},M.version="6.9.1",M.default=M,M}),window.Sweetalert2&&(window.sweetAlert=window.swal=window.Sweetalert2),(function(){function e(e,t){return e.set(t[0],t[1]),e}function t(e,t){return e.add(t),e}function n(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function i(e,t,n,i){for(var o=-1,r=null==e?0:e.length;++o<r;){var s=e[o];t(i,s,n(s),e)}return i}function o(e,t){for(var n=-1,i=null==e?0:e.length;++n<i&&!1!==t(e[n],n,e););return e}function r(e,t){for(var n=-1,i=null==e?0:e.length;++n<i;
vendor: 3,369 bytes, line 1
1)if(!t(e[n],n,e))return!1;return!0}function s(e,t){for(var n=-1,i=null==e?0:e.length,o=0,r=[];++n<i;){var s=e[n];t(s,n,e)&&(r[o++]=s)}return r}function a(e,t){return!(null==e||!e.length)&&-1<m(e,t,0)}function l(e,t,n){for(var i=-1,o=null==e?0:e.length;++i<o;)if(n(t,e[i]))return!0;return!1}function u(e,t){for(var n=-1,i=null==e?0:e.length,o=Array(i);++n<i;)o[n]=t(e[n],n,e);return o}function c(e,t){for(var n=-1,i=t.length,o=e.length;++n<i;)e[o+n]=t[n];return e}function d(e,t,n,i){var o=-1,r=null==e?0:e.length;for(i&&r&&(n=e[++o]);++o<r;)n=t(n,e[o],o,e);return n}function h(e,t,n,i){var o=null==e?0:e.length;for(i&&o&&(n=e[--o]);o--;)n=t(n,e[o],o,e);return n}function f(e,t){for(var n=-1,i=null==e?0:e.length;++n<i;)if(t(e[n],n,e))return!0;return!1}function p(e,t,n){var i;return n(e,function(e,n,o){if(t(e,n,o))return i=n,!1}),i}function g(e,t,n,i){var o=e.length;for(n+=i?1:-1;i?n--:++n<o;)if(t(e[n],n,e))return n;return-1}function m(e,t,n){if(t==t)e:{--n;for(var i=e.length;++n<i;)if(e[n]===t){e=n;break e}e=-1}else e=g(e,E,n);return e}function v(e,t,n,i){--n;for(var o=e.length;++n<o;)if(i(e[n],t))return n;return-1}function E(e){return e!=e}function T(e,t){var n=null==e?0:e.length;return n?D(e,t)/n:M}function y(e){return function(t){return null==t?P:t[e]}}function C(e){return function(t){return null==e?P:e[t]}}function b(e,t,n,i,o){return o(e,function(e,o,r){n=i?(i=!1,e):t(n,e,o,r)}),n}function D(e,t){for(var n,i=-1,o=e.length;++i<o;){var r=t(e[i]);r!==P&&(n=n===P?r:n+r)}return n}function I(e,t){for(var n=-1,i=Array(e);++n<e;)i[n]=t(n);return i}function O(e){return function(t){return e(t)}}function R(e,t){return u(t,function(t){return e[t]})}function _(e,t){return e.has(t)}function w(e,t){for(var n=-1,i=e.length;++n<i&&-1<m(t,e[n],0););return n}function k(e,t){for(var n=e.length;n--&&-1<m(t,e[n],0););return n}function K(e){return"\\"+Ne[e]}function S(e){var t=-1,n=Array(e.size);return e.forEach(function(e,i){n[++t]=[i,e]}),n}function x(e,t){return function(n){return e(t(n))}}function N(e,t){for(var n=-1,i=e.length,o=0,r=[];++n<i;){var s=e[n];s!==t&&"__lodash_placeholder__"!==s||(e[n]="__lodash_placeholder__",r[o++]=n)}return r}function A(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}function L(e){if(_e.test(e)){for(var t=Oe.lastIndex=0;Oe.test(e);)++t;e=t}else e=Ye(e);return e}function F(e){return _e.test(e)?e.match(Oe)||[]:e.split("")}var P,B=1/0,M=NaN,$=[["ary",128],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",32],["partialRight",64],["rearg",256]],H=/\b__p\+='';/g,j=/\b(__p\+=)''\+/g,q=/(__e\(.*?\)|\b__t\))\+'';/g,z=/&(?:amp|lt|gt|quot|#39);/g,W=/[&<>"']/g,V=RegExp(z.source),U=RegExp(W.source),G=/<%-([\s\S]+?)%>/g,Y=/<%([\s\S]+?)%>/g,X=/<%=([\s\S]+?)%>/g,Z=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Q=/^\w*$/,J=/^\./,ee=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,te=/[\\^$.*+?()[\]{}|]/g,ne=RegExp(te.source),ie=/^\s+|\s+$/g,oe=/^\s+/,re=/\s+$/,se=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,ae=/\{\n\/\* \[wrapped with (.+)\] \*/,le=/,? & /,ue=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,ce=/\\(\\)?/g,de=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,he=/\w*$/,fe=/^[-+]0x[0-9a-f]+$/i,pe=/^0b[01]+$/i,ge=/^\[object .+?Constructor\]$/,me=/^0o[0-7]+$/i,ve=/^(?:0|[1-9]\d*)$/,Ee=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u01
17f]/g,Te=/($^)/,ye=/['\n\r\u2028\u2029\\]/g,Ce="[\\ufe0e\\ufe0f]?(?:[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|\\ud83c[\\udffb-\\udfff])?(?:\\u200d(?:[^\\ud800-\\udfff]|(?:\\ud83c[\\udde6-\\uddff]){2}|[\\ud800-\\udbff][\\udc00-\\udfff])[\\ufe0e\\ufe0f]?(?:[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|\\ud83c[\\udffb-\\udfff])?)*",be="(?:[\\u2700-\\u27bf]|(?:\\ud83c[\\udde6-\\uddff]){2}|[\\ud800-\\udbff][\\udc00-\\udfff])"+Ce,De=RegExp("['\u2019]","g"),Ie=RegExp("[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]","g"),Oe=RegExp("\\ud83c[\\udffb-\\udfff](?=\\ud83c[\\udffb-\\udfff])|(?:[^\\ud800-\\udfff][\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]?|[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|(?:\\ud83c[\\udde6-\\uddff]){2}|[\\ud800-\\udbff][\\udc00-\\udfff]|[\\ud800-\\udfff])"+Ce,"g"),Re=RegExp(["[A-Z\\xc0-\\xd6\\xd8-\\xde]?[a-z\\xdf-\\xf6\\xf8-\\xff]+(?:['\u2019](?:d|ll|m|re|s|t|ve))?(?=[\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000]|[A-Z\\xc0-\\xd6\\xd8-\\xde]|$)|(?:[A-Z\\xc0-\\xd6\\xd8-\\xde]|[^\\ud800-\\udfff\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000\\d+\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde])+(?:['\u2019](?:D|LL|M|RE|S|T|VE))?(?=[\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000]|[A-Z\\xc0-\\xd6\\xd8-\\xde](?:[a-z\\xdf-\\xf6\\xf8-\\xff]|[^\\ud800-\\udfff\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000\\d+\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde])|$)|[A-Z\\xc0-\\xd6\\xd8-\\xde]?(?:[a-z\\xdf-\\xf6\\xf8-\\xff]|[^\\ud800-\\udfff\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000\\d+\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde])+(?:['\u2019](?:d|ll|m|re|s|t|ve))?|[A-Z\\xc0-\\xd6\\xd8-\\xde]+(?:['\u2019](?:D|LL|M|RE|S|T|VE))?|\\d*(?:(?:1ST|2ND|3RD|(?![123])\\dTH)\\b)|\\d*(?:(?:1st|2nd|3rd|(?![123])\\dth)\\b)|\\d+",be].join("|"),"g"),_e=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]"),we=/[a-z][A-Z]|[A-Z]{2,}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,ke="Array Buffer DataView Date Error Float32Array Float64Array Function Int8Array Int16Array Int32Array Map Math Object Promise RegExp Set String Symbol TypeError Uint8Array Uint8ClampedArray Uint16Array Uint32Array WeakMap _ clearTimeout isFinite parseInt setTimeout".split(" "),Ke={};Ke["[object Float32Array]"]=Ke["[object Float64Array]"]=Ke["[object Int8Array]"]=Ke["[object Int16Array]"]=Ke["[object Int32Array]"]=Ke["[object Uint8Array]"]=Ke["[object Uint8ClampedArray]"]=Ke["[object Uint16Array]"]=Ke["[object Uint32Array]"]=!0,Ke["[object Arguments]"]=Ke["[object Array]"]=Ke["[object ArrayBuffer]"]=Ke["[object Boolean]"]=Ke["[object DataView]"]=Ke["[object Date]"]=Ke["[object Error]"]=Ke["[object Function]"]=Ke["[object Map]"]=Ke["[object Number]"]=Ke["[object Object]"]=Ke["[object RegExp]"]=Ke["[object Set]"]=Ke["[object String]"]=Ke["[object WeakMap]"]=!1;var Se={};Se["[object Arguments]"]=Se["[object Array]"]=Se["[object ArrayBuffer]"]=Se["[object DataView]"]=Se["[object Boolean]"]=Se["[object Date]"]=Se["[object Float32Array]"]=Se["[object Float64Array]"]=Se["[object Int8Array]"]=Se["[object Int16Array]"]=Se["[object Int32Array]"]=Se["[object Map]"]=Se["[object Number]"]=Se["[object Object]"]=Se["[object RegExp]"]=Se["[object Set]"]=Se["[object String]"]=Se["[object Symbol]"]=Se["[object Uint8Array]"]=Se["[object Uint8ClampedArray]"]=Se["[object Uint16Array]"]=Se["[object Uint32Array]"]=!0,Se["[object Error]"]=Se["[object Function]"]=Se["[object WeakMap]"]=!1;var xe,Ne={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Ae=parseFloat,Le=parseInt,Fe="object"==typeof global&&global&&global.Object===Object&&global,Pe="object"==typeof self&&self&&self.Object===Object&&self,Be=Fe||Pe||Function("return this")(),Me="object"==typeof exports&&exports&&!exports.nodeType&&exports,$e=Me&&"object"==typeof module&&module&&!module.nodeType&&module,He=$e&&$e.exports===Me,je=He&&Fe.process;e:{try{xe=je&&je.binding&&je.binding("util");break e}catch(e){}xe=void 0}var qe=xe&&xe.isArrayBuffer,ze=xe&&xe.isDate,We=xe&&xe.isMap,Ve=xe&&xe.isRegExp,Ue=xe&&xe.isSet,Ge=xe&&xe.isTypedArray,Ye=y("length"),Xe=C({"\xc0":"A","\xc1":"A","\xc2":"A","\xc3":"A","\xc4":"A","\xc5":"A","\xe0":"a","\xe1":"a","\xe2":"a","\xe3":"a","\xe4":"a","\xe5":"a","\xc7":"C","\xe7":"c","\xd0":"D","\xf0":"d","\xc8":"E","\xc9":"E","\xca":"E","\xcb":"E","\xe8":"e","\xe9":"e","\xea":"e","\xeb":"e","\xcc":"I","\xcd":"I","\xce":"I","\xcf":"I","\xec":"i","\xed":"i","\xee":"i","\xef":"i","\xd1":"N","\xf1":"n","\xd2":"O","\xd3":"O","\xd4":"O","\xd5":"O","\xd6":"O","\xd8":"O","\xf2":"o","\xf3":"o","\xf4":"o","\xf5":"o","\xf6":"o","\xf8":"o","\xd9":"U","\xda":"U","\xdb":"U","\xdc":"U","\xf9":"u","\xfa":"u","\xfb":"u","\xfc":"u","\xdd":"Y","\xfd":"y","\xff":"y","\xc6":"Ae","\xe6":"ae","\xde":"Th","\xfe":"th","\xdf":"ss","\u0100":"A","\u0102":"A","\u0104":"A","\u0101":"a","\u0103":"a","\u0105":"a","\u0106":"C","\u0108":"C","\u010a":"C","\u010c":"C","\u0107":"c","\u0109":"c","\u010b":"c","\u010d":"
1c","\u010e":"D","\u0110":"D","\u010f":"d","\u0111":"d","\u0112":"E","\u0114":"E","\u0116":"E","\u0118":"E","\u011a":"E","\u0113":"e","\u0115":"e","\u0117":"e","\u0119":"e","\u011b":"e","\u011c":"G","\u011e":"G","\u0120":"G","\u0122":"G","\u011d":"g","\u011f":"g","\u0121":"g","\u0123":"g","\u0124":"H","\u0126":"H","\u0125":"h","\u0127":"h","\u0128":"I","\u012a":"I","\u012c":"I","\u012e":"I","\u0130":"I","\u0129":"i","\u012b":"i","\u012d":"i","\u012f":"i","\u0131":"i","\u0134":"J","\u0135":"j","\u0136":"K","\u0137":"k","\u0138":"k","\u0139":"L","\u013b":"L","\u013d":"L","\u013f":"L","\u0141":"L","\u013a":"l","\u013c":"l","\u013e":"l","\u0140":"l","\u0142":"l","\u0143":"N","\u0145":"N","\u0147":"N","\u014a":"N","\u0144":"n","\u0146":"n","\u0148":"n","\u014b":"n","\u014c":"O","\u014e":"O","\u0150":"O","\u014d":"o","\u014f":"o","\u0151":"o","\u0154":"R","\u0156":"R","\u0158":"R","\u0155":"r","\u0157":"r","\u0159":"r","\u015a":"S","\u015c":"S","\u015e":"S","\u0160":"S","\u015b":"s","\u015d":"s","\u015f":"s","\u0161":"s","\u0162":"T","\u0164":"T","\u0166":"T","\u0163":"t","\u0165":"t","\u0167":"t","\u0168":"U","\u016a":"U","\u016c":"U","\u016e":"U","\u0170":"U","\u0172":"U","\u0169":"u","\u016b":"u","\u016d":"u","\u016f":"u","\u0171":"u","\u0173":"u","\u0174":"W","\u0175":"w","\u0176":"Y","\u0177":"y","\u0178":"Y","\u0179":"Z","\u017b":"Z","\u017d":"Z","\u017a":"z","\u017c":"z","\u017e":"z","\u0132":"IJ","\u0133":"ij","\u0152":"Oe","\u0153":"oe","\u0149":"'n","\u017f":"s"}),Ze=C({"&":"&","<":"<",">":">",'"':""","'":"'"}),Qe=C({"&":"&","<":"<",">":">",""":'"',"'":"'"}),Je=function C(Ce){function be(e){if(Vi(e)&&!As(e)&&!(e instanceof Ne)){if(e instanceof xe)return e;if(Lo.call(e,"__wrapped__"))return Ei(e)}return new xe(e)}function Oe(){}function xe(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=P}function Ne(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=4294967295,this.__views__=[]}function Fe(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}function Pe(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}function Me(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}function $e(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new Me;++t<n;)this.add(e[t])}function je(e){this.size=(this.__data__=new Pe(e)).size}function Ye(e,t){var n,i=As(e),o=!i&&Ns(e),r=!i&&!o&&Fs(e),s=!i&&!o&&!r&&Hs(e),a=(o=(i=i||o||r||s)?I(e.length,ko):[]).length;for(n in e)!t&&!Lo.call(e,n)||i&&("length"==n||r&&("offset"==n||"parent"==n)||s&&("buffer"==n||"byteLength"==n||"byteOffset"==n)||ri(n,a))||o.push(n);return o}function et(e){var t=e.length;return t?e[zt(0,t-1)]:P}function tt(e,t,n){(n===P||Bi(e[t],n))&&(n!==P||t in e)||st(e,t,n)}function nt(e,t,n){var i=e[t];Lo.call(e,t)&&Bi(i,n)&&(n!==P||t in e)||st(e,t,n)}function it(e,t){for(var n=e.length;n--;)if(Bi(e[n][0],t))return n;return-1}function ot(e,t,n,i){return Nr(e,function(e,o,r){t(i,e,n(e),r)}),i}function rt(e,t){return e&&Tn(t,so(t),e)}function st(e,t,n){"__proto__"==t&&Jo?Jo(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function at(e,t){for(var n=-1,i=t.length,o=bo(i),r=null==e;++n<i;)o[n]=r?P:oo(e,t[n]);return o}function lt(e,t,n){return e==e&&(n!==P&&(e=e<=n?e:n),t!==P&&(e=e>=t?e:t)),e}function ut(e,t,n,i,r,s){var a,l=1&t,u=2&t,c=4&t;if(n&&(a=r?n(e,i,r,s):n(e)),a!==P)return a;
1if(!Wi(e))return e;if(i=As(e)){if(a=function(e){var t=e.length,n=e.constructor(t);return t&&"string"==typeof e[0]&&Lo.call(e,"index")&&(n.index=e.index,n.input=e.input),n}(e),!l)return En(e,a)}else{var d=zr(e),h="[object Function]"==d||"[object GeneratorFunction]"==d;if(Fs(e))return hn(e,l);if("[object Object]"==d||"[object Arguments]"==d||h&&!r){if(a=u||h?{}:ni(e),!l)return u?function(e,t){return Tn(e,qr(e),t)}(e,function(e,t){return e&&Tn(t,ao(t),e)}(a,e)):function(e,t){return Tn(e,jr(e),t)}(e,rt(a,e))}else{if(!Se[d])return r?e:{};a=ii(e,d,ut,l)}}if(s||(s=new je),r=s.get(e))return r;s.set(e,a);u=c?u?Gn:Un:u?ao:so;var f=i?P:u(e);return o(f||e,function(i,o){f&&(i=e[o=i]),nt(a,o,ut(i,t,n,o,e,s))}),a}function ct(e,t,n){var i=n.length;if(null==e)return!i;for(e=_o(e);i--;){var o=n[i],r=t[o],s=e[o];if(s===P&&!(o in e)||!r(s))return!1}return!0}function dt(e,t,n){if("function"!=typeof e)throw new Ko("Expected a function");return Ur(function(){e.apply(P,n)},t)}function ht(e,t,n,i){var o=-1,r=a,s=!0,c=e.length,d=[],h=t.length;if(!c)return d;n&&(t=u(t,O(n))),i?(r=l,s=!1):200<=t.length&&(r=_,s=!1,t=new $e(t));e:for(;++o<c;){var f=e[o],p=null==n?f:n(f);f=i||0!==f?f:0;if(s&&p==p){for(var g=h;g--;)if(t[g]===p)continue e;d.push(f)}else r(t,p,i)||d.push(f)}return d}function ft(e,t){var n=!0;return Nr(e,function(e,i,o){return n=!!t(e,i,o)}),n}function pt(e,t,n){for(var i=-1,o=e.length;++i<o;){var r=e[i],s=t(r);if(null!=s&&(a===P?s==s&&!Xi(s):n(s,a)))var a=s,l=r}return l}function gt(e,t){var n=[];return Nr(e,function(e,i,o){t(e,i,o)&&n.push(e)}),n}function mt(e,t,n,i,o){var r=-1,s=e.length;for(n||(n=oi),o||(o=[]);++r<s;){var a=e[r];0<t&&n(a)?1<t?mt(a,t-1,n,i,o):c(o,a):i||(o[o.length]=a)}return o}function vt(e,t){return e&&Lr(e,t,so)}function Et(e,t){return e&&Fr(e,t,so)}function Tt(e,t){return s(t,function(t){return ji(e[t])})}function yt(e,t){for(var n=0,i=(t=cn(t,e)).length;null!=e&&n<i;)e=e[gi(t[n++])];return n&&n==i?e:P}function Ct(e,t,n){return t=t(e),As(e)?t:c(t,n(e))}function bt(e){if(null==e)e=e===P?"[object Undefined]":"[object Null]";else if(Qo&&Qo in _o(e)){var t=Lo.call(e,Qo),n=e[Qo];try{e[Qo]=P;var i=!0}catch(e){}var o=Bo.call(e);i&&(t?e[Qo]=n:delete e[Qo]),e=o}else e=Bo.call(e);return e}function Dt(e,t){return e>t}function It(e,t){return null!=e&&Lo.call(e,t)}function Ot(e,t){return null!=e&&t in _o(e)}function Rt(e,t,n){for(var i=n?l:a,o=e[0].length,r=e.length,s=r,c=bo(r),d=1/0,h=[];s--;){var f=e[s];s&&t&&(f=u(f,O(t))),d=dr(f.length,d),c[s]=!n&&(t||120<=o&&120<=f.length)?new $e(s&&f):P}f=e[0];var p=-1,g=c[0];e:for(;++p<o&&h.length<d;){var m=f[p],v=t?t(m):m;m=n||0!==m?m:0;if(g?!_(g,v):!i(h,v,n)){for(s=r;--s;){var E=c[s];if(E?!_(E,v):!i(e[s],v,n))continue e}g&&g.push(v),h.push(m)}}return h}function _t(e,t,i){return null==(t=null==(e=2>(t=cn(t,e)).length?e:yt(e,Gt(t,0,-1)))?e:e[gi(Di(t))])?P:n(t,e,i)}function wt(e){return Vi(e)&&"[object Arguments]"==bt(e)}function kt(e,t,n,i,o){if(e===t)t=!0;else if(null==e||null==t||!Vi(e)&&!Vi(t))t=e!=e&&t!=t;else e:{var r=As(e),s=As(t),a=r?"[object Array]":zr(e),l=s?"[object Array]":zr(t),u="[object Object]"==(a="[object Arguments]"==a?"[object Object]":a);s="[object Object]"==(l="[object Arguments]"==l?"[object Object]":l);if((l=a==l)&&Fs(e)){if(!Fs(t)){t=!1;break e}r=!0,u=!1}if(l&&!u)o||(o=new je),t=r||Hs(e)?Wn(e,t,n,i,kt,o):function(e,t,n,i,o,r,s){switch(n){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)break;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":if(e.byteLength!=t.byteLength||!r(new zo(e),new zo(t)))break;return!0;case"[object Boolean]":case"[object Date]":case"[object Number]":return Bi(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var a=S;case"[object Set]":if(a||(a=A),e.size!=t.size&&!(1&i))break;return(n=s.get(e))?n==t:(i|=2,s.set(e,t),t=Wn(a(e),a(t),i,o,r,s),s.delete(e),t);case"[object Symbol]":if(Kr)return Kr.call(e)==Kr.call(t)}return!1}(e,t,a,n,i,kt,o);else{if(!(1&n)&&(r=u&&Lo.call(e,"__wrapped__"),a=s&&Lo.call(t,"__wrapped__"),r||a)){e=r?e.value():e,t=a?t.value():t,o||(o=new je),t=kt(e,t,n,i,o);break e}if(l)t:if(o||(o=new je),r=1&n,a=Un(e),s=a.length,l=Un(t).length,s==l||r){for(u=s;u--;){var c=a[u];if(!(r?c in t:Lo.call(t,c))){t=!1;break t}}if((l=o.get(e))&&o.get(t))t=l==t;else{l=!0,o.set(e,t),o.set(t,e);for(var d=r;++u<s;){var h=e[c=a[u]],f=t[c];if(i)var p=r?i(f,h,c,t,e,o):i(h,f,c,e,t,o);if(p===P?h!==f&&!kt(h,f,n,i,o):!p){l=!1;break}d||(d="constructor"==c)}l&&!d&&((n=e.constructor)!=(i=t.constructor)&&"constructor"in e&&"constructor"in t&&!("function"==typeof n&&n instanceof n&&"function"==typeof i&&i instanceof i)&&(l=!1)),o.delete(e),o.delete(t),t=l}}else t=!1;else t=!1}}return t}function Kt(e,t,n,i){var o=n.length,r=o,s=!i;
1if(null==e)return!r;for(e=_o(e);o--;){var a=n[o];if(s&&a[2]?a[1]!==e[a[0]]:!(a[0]in e))return!1}for(;++o<r;){var l=(a=n[o])[0],u=e[l],c=a[1];if(s&&a[2]){if(u===P&&!(l in e))return!1}else{if(a=new je,i)var d=i(u,c,l,e,t,a);if(d===P?!kt(c,u,3,i,a):!d)return!1}}return!0}function St(e){return!(!Wi(e)||Po&&Po in e)&&(ji(e)?Ho:ge).test(mi(e))}function xt(e){return"function"==typeof e?e:null==e?go:"object"==typeof e?As(e)?Pt(e[0],e[1]):Ft(e):To(e)}function Nt(e){if(!ui(e))return ur(e);var t,n=[];for(t in _o(e))Lo.call(e,t)&&"constructor"!=t&&n.push(t);return n}function At(e,t){return e<t}function Lt(e,t){var n=-1,i=Mi(e)?bo(e.length):[];return Nr(e,function(e,o,r){i[++n]=t(e,o,r)}),i}function Ft(e){var t=Jn(e);return 1==t.length&&t[0][2]?ci(t[0][0],t[0][1]):function(n){return n===e||Kt(n,e,t)}}function Pt(e,t){return ai(e)&&t==t&&!Wi(t)?ci(gi(e),t):function(n){var i=oo(n,e);return i===P&&i===t?ro(n,e):kt(t,i,3)}}function Bt(e,t,n,i,o){e!==t&&Lr(t,function(r,s){if(Wi(r)){o||(o=new je);var a=o,l=e[s],u=t[s];if(p=a.get(u))tt(e,s,p);else{var c=(p=i?i(l,u,s+"",e,t,a):P)===P;if(c){var d=As(u),h=!d&&Fs(u),f=!d&&!h&&Hs(u),p=u;d||h||f?As(l)?p=l:$i(l)?p=En(l):h?(c=!1,p=hn(u,!0)):f?(c=!1,p=pn(u,!0)):p=[]:Gi(u)||Ns(u)?(p=l,Ns(l)?p=no(l):(!Wi(l)||n&&ji(l))&&(p=ni(u))):c=!1}c&&(a.set(u,p),Bt(p,u,n,i,a),a.delete(u)),tt(e,s,p)}}else(a=i?i(e[s],r,s+"",e,t,o):P)===P&&(a=r),tt(e,s,a)},ao)}function Mt(e,t){var n=e.length;if(n)return ri(t+=0>t?n:0,n)?e[t]:P}function $t(e,t,n){var i=-1;return t=u(t.length?t:[go],O(Zn())),function(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].c;return e}(e=Lt(e,function(e){return{a:u(t,function(t){return t(e)}),b:++i,c:e}}),function(e,t){var i;e:{i=-1;for(var o=e.a,r=t.a,s=o.length,a=n.length;++i<s;){var l=gn(o[i],r[i]);if(l){i=i>=a?l:l*("desc"==n[i]?-1:1);break e}}i=e.b-t.b}return i})}function Ht(e,t,n){for(var i=-1,o=t.length,r={};++i<o;){var s=t[i],a=yt(e,s);n(a,s)&&Ut(r,cn(s,e),a)}return r}function jt(e,t,n,i){var o=i?v:m,r=-1,s=t.length,a=e;for(e===t&&(t=En(t)),n&&(a=u(e,O(n)));++r<s;){var l=0,c=t[r];for(c=n?n(c):c;-1<(l=o(a,c,l,i));)a!==e&&Yo.call(a,l,1),Yo.call(e,l,1)}return e}function qt(e,t){for(var n=e?t.length:0,i=n-1;n--;){var o=t[n];if(n==i||o!==r){var r=o;ri(o)?Yo.call(e,o,1):nn(e,o)}}}function zt(e,t){return e+or(pr()*(t-e+1))}function Wt(e,t){var n="";if(!e||1>t||9007199254740991<t)return n;do{t%2&&(n+=e),(t=or(t/2))&&(e+=e)}while(t);return n}function Vt(e,t){return Gr(di(e,t,go),e+"")}function Ut(e,t,n,i){if(!Wi(e))return e;for(var o=-1,r=(t=cn(t,e)).length,s=r-1,a=e;null!=a&&++o<r;){var l=gi(t[o]),u=n;if(o!=s){var c=a[l];(u=i?i(c,l,a):P)===P&&(u=Wi(c)?c:ri(t[o+1])?[]:{})}nt(a,l,u),a=a[l]}return e}function Gt(e,t,n){var i=-1,o=e.length;for(0>t&&(t=-t>o?0:o+t),0>(n=n>o?o:n)&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0,n=bo(o);++i<o;)n[i]=e[i+t];return n}function Yt(e,t){var n;return Nr(e,function(e,i,o){return!(n=t(e,i,o))}),!!n}function Xt(e,t,n){var i=0,o=null==e?i:e.length;if("number"==typeof t&&t==t&&2147483647>=o){for(;i<o;){var r=i+o>>>1,s=e[r];null!==s&&!Xi(s)&&(n?s<=t:s<t)?i=r+1:o=r}return o}return Zt(e,t,go,n)}function Zt(e,t,n,i){t=n(t);for(var o=0,r=null==e?0:e.length,s=t!=t,a=null===t,l=Xi(t),u=t===P;o<r;){var c=or((o+r)/2),d=n(e[c]),h=d!==P,f=null===d,p=d==d,g=Xi(d);(s?i||p:u?p&&(i||h):a?p&&h&&(i||!f):l?p&&h&&!f&&(i||!g):!f&&!g&&(i?d<=t:d<t))?o=c+1:r=c}return dr(r,4294967294)}function Qt(e,t){for(var n=-1,i=e.length,o=0,r=[];++n<i;){var s=e[n],a=t?t(s):s;if(!n||!Bi(a,l)){var l=a;r[o++]=0===s?0:s}}return r}function Jt(e){return"number"==typeof e?e:Xi(e)?M:+e}function en(e){if("string"==typeof e)return e;if(As(e))return u(e,en)+"";if(Xi(e))return Sr?Sr.call(e):"";var t=e+"";return"0"==t&&1/e==-B?"-0":t}function tn(e,t,n){var i=-1,o=a,r=e.length,s=!0,u=[],c=u;if(n)s=!1,o=l;else if(200<=r){if(o=t?null:$r(e))return A(o);s=!1,o=_,c=new $e}else c=t?[]:u;e:for(;++i<r;){var d=e[i],h=t?t(d):d;d=n||0!==d?d:0;if(s&&h==h){for(var f=c.length;f--;)if(c[f]===h)continue e;t&&c.push(h),u.push(d)}else o(c,h,n)||(c!==u&&c.push(h),u.push(d))}return u}function nn(e,t){return null==(e=2>
1(t=cn(t,e)).length?e:yt(e,Gt(t,0,-1)))||delete e[gi(Di(t))]}function on(e,t,n,i){for(var o=e.length,r=i?o:-1;(i?r--:++r<o)&&t(e[r],r,e););return n?Gt(e,i?0:r,i?r+1:o):Gt(e,i?r+1:0,i?o:r)}function rn(e,t){var n=e;return n instanceof Ne&&(n=n.value()),d(t,function(e,t){return t.func.apply(t.thisArg,c([e],t.args))},n)}function sn(e,t,n){var i=e.length;if(2>i)return i?tn(e[0]):[];for(var o=-1,r=bo(i);++o<i;)for(var s=e[o],a=-1;++a<i;)a!=o&&(r[o]=ht(r[o]||s,e[a],t,n));return tn(mt(r,1),t,n)}function an(e,t,n){for(var i=-1,o=e.length,r=t.length,s={};++i<o;)n(s,e[i],i<r?t[i]:P);return s}function ln(e){return $i(e)?e:[]}function un(e){return"function"==typeof e?e:go}function cn(e,t){return As(e)?e:ai(e,t)?[e]:Yr(io(e))}function dn(e,t,n){var i=e.length;return n=n===P?i:n,!t&&n>=i?e:Gt(e,t,n)}function hn(e,t){if(t)return e.slice();var n=e.length;n=Wo?Wo(n):new e.constructor(n);return e.copy(n),n}function fn(e){var t=new e.constructor(e.byteLength);return new zo(t).set(new zo(e)),t}function pn(e,t){return new e.constructor(t?fn(e.buffer):e.buffer,e.byteOffset,e.length)}function gn(e,t){if(e!==t){var n=e!==P,i=null===e,o=e==e,r=Xi(e),s=t!==P,a=null===t,l=t==t,u=Xi(t);if(!a&&!u&&!r&&e>t||r&&s&&l&&!a&&!u||i&&s&&l||!n&&l||!o)return 1;if(!i&&!r&&!u&&e<t||u&&n&&o&&!i&&!r||a&&n&&o||!s&&o||!l)return-1}return 0}function mn(e,t,n,i){var o=-1,r=e.length,s=n.length,a=-1,l=t.length,u=cr(r-s,0),c=bo(l+u);for(i=!i;++a<l;)c[a]=t[a];for(;++o<s;)(i||o<r)&&(c[n[o]]=e[o]);for(;u--;)c[a++]=e[o++];return c}function vn(e,t,n,i){var o=-1,r=e.length,s=-1,a=n.length,l=-1,u=t.length,c=cr(r-a,0),d=bo(c+u);for(i=!i;++o<c;)d[o]=e[o];for(c=o;++l<u;)d[c+l]=t[l];for(;++s<a;)(i||o<r)&&(d[c+n[s]]=e[o++]);return d}function En(e,t){var n=-1,i=e.length;for(t||(t=bo(i));++n<i;)t[n]=e[n];return t}function Tn(e,t,n,i){var o=!n;n||(n={});for(var r=-1,s=t.length;++r<s;){var a=t[r],l=i?i(n[a],e[a],a,n,e):P;l===P&&(l=e[a]),o?st(n,a,l):nt(n,a,l)}return n}function yn(e,t){return function(n,o){var r=As(n)?i:ot,s=t?t():{};return r(n,e,Zn(o,2),s)}}function Cn(e){return Vt(function(t,n){var i=-1,o=n.length,r=1<o?n[o-1]:P,s=2<o?n[2]:P;r=3<e.length&&"function"==typeof r?(o--,r):P;for(s&&si(n[0],n[1],s)&&(r=3>o?P:r,o=1),t=_o(t);++i<o;)(s=n[i])&&e(t,s,i,r);return t})}function bn(e,t){return function(n,i){if(null==n)return n;if(!Mi(n))return e(n,i);for(var o=n.length,r=t?o:-1,s=_o(n);(t?r--:++r<o)&&!1!==i(s[r],r,s););return n}}function Dn(e){return function(t,n,i){for(var o=-1,r=_o(t),s=(i=i(t)).length;s--;){var a=i[e?s:++o];if(!1===n(r[a],a,r))break}return t}}function In(e){return function(t){t=io(t);var n=_e.test(t)?F(t):P,i=n?n[0]:t.charAt(0);return t=n?dn(n,1).join(""):t.slice(1),i[e]()+t}}function On(e){return function(t){return d(fo(ho(t).replace(De,"")),e,"")}}function Rn(e){return function(){switch((t=arguments).length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var t,n=xr(e.prototype);return Wi(t=e.apply(n,t))?t:n}}function _n(e,t,i){var o=Rn(e);return function r(){for(var s=arguments.length,a=bo(s),l=s,u=Xn(r);l--;)a[l]=arguments[l];return(s-=(l=3>s&&a[0]!==u&&a[s-1]!==u?[]:N(a,u)).length)<i?Bn(e,t,Kn,r.placeholder,P,a,l,P,P,i-s):n(this&&this!==Be&&this instanceof r?o:e,this,a)}}function wn(e){return function(t,n,i){var o=_o(t);if(!Mi(t)){var r=Zn(n,3);t=so(t),n=function(e){return r(o[e],e,o)}}return-1<(n=e(t,n,i))?o[r?t[n]:n]:P}}function kn(e){return Vn(function(t){var n=t.length,i=n,o=xe.prototype.thru;for(e&&t.reverse();i--;){if("function"!=typeof(s=t[i]))throw new Ko("Expected a function");if(o&&!r&&"wrapper"==Yn(s))var r=new xe([],!0)}for(i=r?i:n;++i<n;){var s,a="wrapper"==(o=Yn(s=t[i]))?Hr(s):P;r=a&&li(a[0])&&424==a[1]&&!a[4].length&&1==a[9]?r[Yn(a[0])].apply(r,a[3]):1==s.length&&li(s)?r[o]():r.thru(s)}return function(){var e=(o=arguments)[0];if(r&&1==o.length&&As(e))return r.plant(e).value();for(var i=0,o=n?t[i].apply(this,o):e;++i<n;)o=t[i].call(this,o);return o}})}function Kn(e,t,n,i,o,r,s,a,l,u){var c=128&t,d=1&t,h=2&t,f=24&t,p=512&t,g=h?P:Rn(e);return function m(){for(var v=arguments.length,E=bo(v),T=v;T--;)E[T]=arguments[T];if(f){var y,C=Xn(m);for(T=E.length,y=0;T--;)E[T]===C&&++y}if(i&&(E=mn(E,i,o,f)),r&&(E=vn(E,r,s,f)),v-=y,f&&v<u)return C=N(E,C),Bn(e,t,Kn,m.placeholder,n,E,C,a,l,u-v);if(C=d?n:this,T=h?C[e]:e,v=E.length,a){y=E.length;for(var b=dr(a.length,y),D=En(E);b--;){var I=a[b];E[b]=ri(I,y)?D[I]:P}}else p&&1<v&&E.reverse();return c&&l<v&&(E.length=l),this&&this!==Be&&this instanceof m&&(T=g||Rn(T)),T.apply(C,E)}}function Sn(e,t){return function(n,i){return function(e,t,n){var i={};return vt(e,function(e,o,r){t(i,n(e),o,r)}),i}(n,e,t(i))}}function xn(e,t){return function(n,i){var o;if(n===P&&i===P)return t;if(n!==P&&(o=n),i!==P){if(o===P)return i;"string"==typeof n||"string"==typeof i?(n=en(n),i=en(i)):(n=Jt(n),i=Jt(i)),o=e(n,i)}return o}}function Nn(e){return Vn(function(t){return t=u(t,O(Zn())),Vt(function(i){var o=this;return e(t,function(e){return n(e,o,i)})})})}function An(e,t){var n=(t=t===P?" ":en(t)).length;return 2>n?n?Wt(t,e):t:(n=Wt(t,ir(e/L(t))),_e.test(t)?dn(F(n),0,e).join(""):n.slice(0,e))}function Ln(e,t,i,o){var r=1&t,s=Rn(e);return function t(){for(var a=-1,l=arguments.length,u=-1,c=o.length,d=bo(c+l),h=this&&this!==Be&&this instanceof t?s:e;++u<c;)d[u]=o[u];for(;l--;)d[u++]=arguments[++a];return n(h,r?i:this,d)}}function Fn(e){return function(t,n,i){i&&"number"!=typeof i&&si(t,n,i)&&(n=i=P),t=Qi(t),n===P?(n=t,t=0):n=Qi(n),i=i===P?t<n?1:-1:Qi(i);var o=-1;n=cr(ir((n-t)/(i||1)),0);for(var r=bo(n);n--;)r[e?n:++o]=t,t+=i;return r}}function Pn(e){return function(t,n){return"string"==typeof t&&"string"==typeof n||(t=to(t),n=to(n)),e(t,n)}}function Bn(e,t,n,i,o,r,s,a,l,u){var c=8&t,d=c?s:P;s=c?P:s;var h=c?r:P;return r=c?P:r,4&(t=(t|(c?32:64))&~(c?64:32))||(t&=-4),o=[e,t,o,h,d,r,s,a,l,u],n=n.apply(P,o),li(e)&&Vr(n,o),n.placeholder=i,hi(n,e,t)}function Mn(e){var t=Ro[e];return function(e,n){if(e=to(e),n=null==n?0:dr(Ji(n),292)){var i=(io(e)+"e").split("e");return+((i=(io(i=t(i[0]+"e"+(+i[1]+n)))+"e").split("e"))[0]+"e"+(+i[1]-n))}return t(e)}}function $n(e){return function(t){var n=zr(t);return"[object Map]"==n?S(t):"[object Set]"==n?function(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=[e,e]}),n}(t):function(e,t){return u(t,function(t){return[t,e[t]]})}(t,e(t))}}function Hn(e,t,n,i,o,r,s,a){var l=2&t;if(!l&&"function"!=typeof e)throw new Ko("Expected a function");var u=i?i.length:0;if(u||(t&=-97,i=o=P),s=s===P?s:cr(Ji(s),0),a=a===P?a:Ji(a),u-=o?o.length:0,64&t){var c=i,d=o;i=o=P}var h=l?P:Hr(e);return r=[e,t,n,i,o,c,d,r,s,a],h&&(t=(n=r[1])|(e=h[1]),i=128==e&&8==n||128==e&&256==n&&r[7].length<=h[8]||384==e&&h[7].length<=h[8]&&8==n,131>t||i)&&(1&e&&(r[2]=h[2],t|=1&n?0:4),(n=h[3])&&(i=r[3],r[3]=i?mn(i,n,h[4]):n,r[4]=i?N(r[3],"__lodash_placeholder__"):h[4]),(n=h[5])&&(i=r[5],r[5]=i?vn(i,n,h[6]):n,r[6]=i?N(r[5],"__lodash_placeholder__"):h[6]),(n=h[7])&&
1(r[7]=n),128&e&&(r[8]=null==r[8]?h[8]:dr(r[8],h[8])),null==r[9]&&(r[9]=h[9]),r[0]=h[0],r[1]=t),e=r[0],t=r[1],n=r[2],i=r[3],o=r[4],!(a=r[9]=r[9]===P?l?0:e.length:cr(r[9]-u,0))&&24&t&&(t&=-25),hi((h?Pr:Vr)(t&&1!=t?8==t||16==t?_n(e,t,a):32!=t&&33!=t||o.length?Kn.apply(P,r):Ln(e,t,n,i):function(e,t,n){var i=1&t,o=Rn(e);return function t(){return(this&&this!==Be&&this instanceof t?o:e).apply(i?n:this,arguments)}}(e,t,n),r),e,t)}function jn(e,t,n,i){return e===P||Bi(e,xo[n])&&!Lo.call(i,n)?t:e}function qn(e,t,n,i,o,r){return Wi(e)&&Wi(t)&&(r.set(t,e),Bt(e,t,P,qn,r),r.delete(t)),e}function zn(e){return Gi(e)?P:e}function Wn(e,t,n,i,o,r){var s=1&n,a=e.length;if(a!=(l=t.length)&&!(s&&l>a))return!1;if((l=r.get(e))&&r.get(t))return l==t;var l=-1,u=!0,c=2&n?new $e:P;for(r.set(e,t),r.set(t,e);++l<a;){var d=e[l],h=t[l];if(i)var p=s?i(h,d,l,t,e,r):i(d,h,l,e,t,r);if(p!==P){if(p)continue;u=!1;break}if(c){if(!f(t,function(e,t){if(!_(c,t)&&(d===e||o(d,e,n,i,r)))return c.push(t)})){u=!1;break}}else if(d!==h&&!o(d,h,n,i,r)){u=!1;break}}return r.delete(e),r.delete(t),u}function Vn(e){return Gr(di(e,P,Ci),e+"")}function Un(e){return Ct(e,so,jr)}function Gn(e){return Ct(e,ao,qr)}function Yn(e){for(var t=e.name+"",n=Dr[t],i=Lo.call(Dr,t)?n.length:0;i--;){var o=n[i],r=o.func;if(null==r||r==e)return o.name}return t}function Xn(e){return(Lo.call(be,"placeholder")?be:e).placeholder}function Zn(){var e=(e=be.iteratee||mo)===mo?xt:e;return arguments.length?e(arguments[0],arguments[1]):e}function Qn(e,t){var n=e.__data__,i=typeof t;return("string"==i||"number"==i||"symbol"==i||"boolean"==i?"__proto__"!==t:null===t)?n["string"==typeof t?"string":"hash"]:n.map}function Jn(e){for(var t=so(e),n=t.length;n--;){var i=t[n],o=e[i];t[n]=[i,o,o==o&&!Wi(o)]}return t}function ei(e,t){var n=null==e?P:e[t];return St(n)?n:P}function ti(e,t,n){for(var i=-1,o=(t=cn(t,e)).length,r=!1;++i<o;){var s=gi(t[i]);if(!(r=null!=e&&n(e,s)))break;e=e[s]}return r||++i!=o?r:!!(o=null==e?0:e.length)&&zi(o)&&ri(s,o)&&(As(e)||Ns(e))}function ni(e){return"function"!=typeof e.constructor||ui(e)?{}:xr(Vo(e))}function ii(n,i,o,r){var s=n.constructor;switch(i){case"[object ArrayBuffer]":return fn(n);case"[object Boolean]":case"[object Date]":return new s(+n);case"[object DataView]":return i=r?fn(n.buffer):n.buffer,new n.constructor(i,n.byteOffset,n.byteLength);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return pn(n,r);case"[object Map]":return d(i=r?o(S(n),1):S(n),e,new n.constructor);case"[object Number]":case"[object String]":return new s(n);case"[object RegExp]":return(i=new n.constructor(n.source,he.exec(n))).lastIndex=n.lastIndex,i;case"[object Set]":return d(i=r?o(A(n),1):A(n),t,new n.constructor);case"[object Symbol]":return Kr?_o(Kr.call(n)):{}}}function oi(e){return As(e)||Ns(e)||!!(Xo&&e&&e[Xo])}function ri(e,t){return!!(t=null==t?9007199254740991:t)&&("number"==typeof e||ve.test(e))&&-1<e&&0==e%1&&e<t}function si(e,t,n){if(!Wi(n))return!1;var i=typeof t;return!!("number"==i?Mi(n)&&ri(t,n.length):"string"==i&&t in n)&&Bi(n[t],e)}function ai(e,t){if(As(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!Xi(e))||Q.test(e)||!Z.test(e)||null!=t&&e in _o(t)}function li(e){var t=Yn(e),n=be[t];return"function"==typeof n&&t in Ne.prototype&&(e===n||!!(t=Hr(n))&&e===t[0])}function ui(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||xo)}function ci(e,t){return function(n){return null!=n&&n[e]===t&&(t!==P||e in _o(n))}}function di(e,t,i){return t=cr(t===P?e.length-1:t,0),function(){for(var o=arguments,r=-1,s=cr(o.length-t,0),a=bo(s);++r<s;)a[r]=o[t+r];for(r=-1,s=bo(t+1);++r<t;)s[r]=o[r];return s[t]=i(a),n(e,this,s)}}function hi(e,t,n){var i=t+"";t=Gr;var o,r=vi;return(r=(n=r(o=(o=i.match(ae))?o[1].split(le):[],n)).length)&&(n[o=r-1]=(1<r?"& ":"")+n[o],n=n.join(2<r?", ":" "),i=i.replace(se,"{\n/* [wrapped with "+n+"] */\n")),t(e,i)}function fi(e){var t=0,n=0;return function(){var i=hr(),o=16-(i-n);if(n=i,0<o){if(800<=++t)return arguments[0]}else t=0;return e.apply(P,arguments)}}function pi(e,t){var n=-1,i=(o=e.length)-1;for(t=t===P?o:t;++n<t;){var o,r=e[o=zt(n,i)];e[o]=e[n],e[n]=r}return e.length=t,e}function gi(e){if("string"==typeof e||Xi(e))return e;var t=e+"";return"0"==t&&1/e==-B?"-0":t}function mi(e){if(null!=e){try{return Ao.call(e)}catch(e){}return e+""}return""}function vi(e,t){return o($,function(n){var i="_."+n[0];
1t&n[1]&&!a(e,i)&&e.push(i)}),e.sort()}function Ei(e){if(e instanceof Ne)return e.clone();var t=new xe(e.__wrapped__,e.__chain__);return t.__actions__=En(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}function Ti(e,t,n){var i=null==e?0:e.length;return i?(0>(n=null==n?0:Ji(n))&&(n=cr(i+n,0)),g(e,Zn(t,3),n)):-1}function yi(e,t,n){var i=null==e?0:e.length;if(!i)return-1;var o=i-1;return n!==P&&(o=Ji(n),o=0>n?cr(i+o,0):dr(o,i-1)),g(e,Zn(t,3),o,!0)}function Ci(e){return null!=e&&e.length?mt(e,1):[]}function bi(e){return e&&e.length?e[0]:P}function Di(e){var t=null==e?0:e.length;return t?e[t-1]:P}function Ii(e,t){return e&&e.length&&t&&t.length?jt(e,t):e}function Oi(e){return null==e?e:gr.call(e)}function Ri(e){if(!e||!e.length)return[];var t=0;return e=s(e,function(e){if($i(e))return t=cr(e.length,t),!0}),I(t,function(t){return u(e,y(t))})}function _i(e,t){if(!e||!e.length)return[];var i=Ri(e);return null==t?i:u(i,function(e){return n(t,P,e)})}function wi(e){return(e=be(e)).__chain__=!0,e}function ki(e,t){return t(e)}function Ki(e,t){return(As(e)?o:Nr)(e,Zn(t,3))}function Si(e,t){return(As(e)?function(e,t){for(var n=null==e?0:e.length;n--&&!1!==t(e[n],n,e););return e}:Ar)(e,Zn(t,3))}function xi(e,t){return(As(e)?u:Lt)(e,Zn(t,3))}function Ni(e,t,n){return t=n?P:t,t=e&&null==t?e.length:t,Hn(e,128,P,P,P,P,t)}function Ai(e,t){var n;if("function"!=typeof t)throw new Ko("Expected a function");return e=Ji(e),function(){return 0<--e&&(n=t.apply(this,arguments)),1>=e&&(t=P),n}}function Li(e,t,n){function i(t){var n=l,i=u;return l=u=P,p=t,d=e.apply(i,n)}function o(e){var n=e-f;return e-=p,f===P||n>=t||0>n||m&&e>=c}function r(){var e=bs();if(o(e))return s(e);var n,i=Ur;n=e-p,e=t-(e-f),n=m?dr(e,c-n):e,h=i(r,n)}function s(e){return h=P,v&&l?i(e):(l=u=P,d)}function a(){var e=bs(),n=o(e);if(l=arguments,u=this,f=e,n){if(h===P)return p=e=f,h=Ur(r,t),g?i(e):d;if(m)return h=Ur(r,t),i(f)}return h===P&&(h=Ur(r,t)),d}var l,u,c,d,h,f,p=0,g=!1,m=!1,v=!0;if("function"!=typeof e)throw new Ko("Expected a function");return t=to(t)||0,Wi(n)&&(g=!!n.leading,c=(m="maxWait"in n)?cr(to(n.maxWait)||0,t):c,v="trailing"in n?!!n.trailing:v),a.cancel=function(){h!==P&&Mr(h),p=0,l=f=u=h=P},a.flush=function(){return h===P?d:s(bs())},a}function Fi(e,t){function n(){var i=arguments,o=t?t.apply(this,i):i[0],r=n.cache;return r.has(o)?r.get(o):(i=e.apply(this,i),n.cache=r.set(o,i)||r,i)}if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new Ko("Expected a function");return n.cache=new(Fi.Cache||Me),n}function Pi(e){if("function"!=typeof e)throw new Ko("Expected a function");return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}function Bi(e,t){return e===t||e!=e&&t!=t}function Mi(e){return null!=e&&zi(e.length)&&!ji(e)}function $i(e){return Vi(e)&&Mi(e)}function Hi(e){if(!Vi(e))return!1;var t=bt(e);return"[object Error]"==t||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!Gi(e)}function ji(e){return!!Wi(e)&&("[object Function]"==(e=bt(e))||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e)}function qi(e){return"number"==typeof e&&e==Ji(e)}function zi(e){return"number"==typeof e&&-1<e&&0==e%1&&9007199254740991>=e}function Wi(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function Vi(e){return null!=e&&"object"==typeof e}function Ui(e){return"number"==typeof e||Vi(e)&&"[object Number]"==bt(e)}function Gi(e){return!(!Vi(e)||"[object Object]"!=bt(e))&&(null===(e=Vo(e))||"function"==typeof(e=Lo.call(e,"constructor")&&e.constructor)&&e instanceof e&&Ao.call(e)==Mo)}function Yi(e){return"string"==typeof e||!As(e)&&Vi(e)&&"[object String]"==bt(e)}function Xi(e){return"symbol"==typeof e||Vi(e)&&"[object Symbol]"==bt(e)}function Zi(e){if(!e)return[];if(Mi(e))return Yi(e)?F(e):En(e);if(Zo&&e[Zo]){e=e[Zo]();for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}return("[object Map]"==(t=zr(e))?S:"[object Set]"==t?A:uo)(e)}function Qi(e){return e?(e=to(e))===B||e===-B?1.7976931348623157e308*(0>e?-1:1):e==e?e:0:0===e?e:0}function Ji(e){var t=(e=Qi(e))%1;return e==e?t?e-t:e:0}function eo(e){return e?lt(Ji(e),0,4294967295):0}function to(e){if("number"==typeof e)return e;if(Xi(e))return M;if(Wi(e)&&(e=Wi(e="function"==typeof e.valueOf?e.valueOf():e)?e+"":e),"string"!=typeof e)return 0===e?e:+e;e=e.replace(ie,"");var t=pe.test(e);return t||me.test(e)?Le(e.slice(2),t?2:8):fe.test(e)?M:+e}function no(e){return Tn(e,ao(e))}function io(e){return null==e?"":en(e)}
1function oo(e,t,n){return(e=null==e?P:yt(e,t))===P?n:e}function ro(e,t){return null!=e&&ti(e,t,Ot)}function so(e){return Mi(e)?Ye(e):Nt(e)}function ao(e){if(Mi(e))e=Ye(e,!0);else if(Wi(e)){var t,n=ui(e),i=[];for(t in e)("constructor"!=t||!n&&Lo.call(e,t))&&i.push(t);e=i}else{if(t=[],null!=e)for(n in _o(e))t.push(n);e=t}return e}function lo(e,t){if(null==e)return{};var n=u(Gn(e),function(e){return[e]});return t=Zn(t),Ht(e,n,function(e,n){return t(e,n[0])})}function uo(e){return null==e?[]:R(e,so(e))}function co(e){return fa(io(e).toLowerCase())}function ho(e){return(e=io(e))&&e.replace(Ee,Xe).replace(Ie,"")}function fo(e,t,n){return e=io(e),(t=n?P:t)===P?we.test(e)?e.match(Re)||[]:e.match(ue)||[]:e.match(t)||[]}function po(e){return function(){return e}}function go(e){return e}function mo(e){return xt("function"==typeof e?e:ut(e,1))}function vo(e,t,n){var i=so(t),r=Tt(t,i);null!=n||Wi(t)&&(r.length||!i.length)||(n=t,t=e,e=this,r=Tt(t,so(t)));var s=!(Wi(n)&&"chain"in n&&!n.chain),a=ji(e);return o(r,function(n){var i=t[n];e[n]=i,a&&(e.prototype[n]=function(){var t=this.__chain__;if(s||t){var n=e(this.__wrapped__);return(n.__actions__=En(this.__actions__)).push({func:i,args:arguments,thisArg:e}),n.__chain__=t,n}return i.apply(e,c([this.value()],arguments))})}),e}function Eo(){}function To(e){return ai(e)?y(gi(e)):function(e){return function(t){return yt(t,e)}}(e)}function yo(){return[]}function Co(){return!1}var bo=(Ce=null==Ce?Be:Je.defaults(Be.Object(),Ce,Je.pick(Be,ke))).Array,Do=Ce.Date,Io=Ce.Error,Oo=Ce.Function,Ro=Ce.Math,_o=Ce.Object,wo=Ce.RegExp,ko=Ce.String,Ko=Ce.TypeError,So=bo.prototype,xo=_o.prototype,No=Ce["__core-js_shared__"],Ao=Oo.prototype.toString,Lo=xo.hasOwnProperty,Fo=0,Po=function(){var e=/[^.]+$/.exec(No&&No.keys&&No.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),Bo=xo.toString,Mo=Ao.call(_o),$o=Be._,Ho=wo("^"+Ao.call(Lo).replace(te,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),jo=He?Ce.Buffer:P,qo=Ce.Symbol,zo=Ce.Uint8Array,Wo=jo?jo.f:P,Vo=x(_o.getPrototypeOf,_o),Uo=_o.create,Go=xo.propertyIsEnumerable,Yo=So.splice,Xo=qo?qo.isConcatSpreadable:P,Zo=qo?qo.iterator:P,Qo=qo?qo.toStringTag:P,Jo=function(){try{var e=ei(_o,"defineProperty");return e({},"",{}),e}catch(e){}}(),er=Ce.clearTimeout!==Be.clearTimeout&&Ce.clearTimeout,tr=Do&&Do.now!==Be.Date.now&&Do.now,nr=Ce.setTimeout!==Be.setTimeout&&Ce.setTimeout,ir=Ro.ceil,or=Ro.floor,rr=_o.getOwnPropertySymbols,sr=jo?jo.isBuffer:P,ar=Ce.isFinite,lr=So.join,ur=x(_o.keys,_o),cr=Ro.max,dr=Ro.min,hr=Do.now,fr=Ce.parseInt,pr=Ro.random,gr=So.reverse,mr=ei(Ce,"DataView"),vr=ei(Ce,"Map"),Er=ei(Ce,"Promise"),Tr=ei(Ce,"Set"),yr=ei(Ce,"WeakMap"),Cr=ei(_o,"create"),br=yr&&new yr,Dr={},Ir=mi(mr),Or=mi(vr),Rr=mi(Er),_r=mi(Tr),wr=mi(yr),kr=qo?qo.prototype:P,Kr=kr?kr.valueOf:P,Sr=kr?kr.toString:P,xr=function(){function e(){}return function(t){return Wi(t)?Uo?Uo(t):(e.prototype=t,t=new e,e.prototype=P,t):{}}}();be.templateSettings={escape:G,evaluate:Y,interpolate:X,variable:"",imports:{_:be}},be.prototype=Oe.prototype,be.prototype.constructor=be,xe.prototype=xr(Oe.prototype),xe.prototype.constructor=xe,Ne.prototype=xr(Oe.prototype),Ne.prototype.constructor=Ne,Fe.prototype.clear=function(){this.__data__=Cr?Cr(null):{},this.size=0},Fe.prototype.delete=function(e){return e=this.has(e)&&delete this.__data__[e],this.size-=e?1:0,e},Fe.prototype.get=function(e){var t=this.__data__;return Cr?"__lodash_hash_undefined__"===(e=t[e])?P:e:Lo.call(t,e)?t[e]:P},Fe.prototype.has=function(e){var t=this.__data__;return Cr?t[e]!==P:Lo.call(t,e)},Fe.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=Cr&&t===P?"__lodash_hash_undefined__":t,this},Pe.prototype.clear=function(){this.__data__=[],this.size=0},Pe.prototype.delete=function(e){var t=this.__data__;return!(0>(e=it(t,e))||(e==t.length-1?t.pop():Yo.call(t,e,1),--this.size,0))},Pe.prototype.get=function(e){var t=this.__data__;return 0>(e=it(t,e))?P:t[e][1]},Pe.prototype.has=function(e){return-1<it(this.__data__,e)},Pe.prototype.set=function(e,t){var n=this.__data__,i=it(n,e);return 0>i?(++this.size,n.push([e,t])):n[i][1]=t,this},Me.prototype.clear=function(){this.size=0,this.__data__={hash:new Fe,map:new(vr||Pe),string:new Fe}},Me.prototype.delete=function(e){return e=Qn(this,e).delete(e),this.size-=e?1:0,e},Me.prototype.get=function(e){return Qn(this,e).get(e)},Me.prototype.has=function(e){return Qn(this,e).has(e)},Me.prototype.set=function(e,t){var n=Qn(this,e),i=n.size;return n.set(e,t),this.size+=n.size==i?0:1,this},$e.prototype.add=$e.prototype.push=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this},$e.prototype.has=function(e){return this.__data__.has(e)},je.prototype.clear=function(){this.__data__=new Pe,this.size=0},je.prototype.delete=function(e){var t=this.__data__;return e=t.delete(e),this.size=t.size,e},je.prototype.get=function(e){return this.__data__.get(e)},je.prototype.has=function(e){return this.__data__.has(e)},je.prototype.set=function(e,t){var n=this.__data__;if(n instanceof Pe){var i=n.__data__;if(!vr||199>i.length)return i.push([e,t]),this.size=++n.size,this;n=this.__data__=new Me(i)}return n.set(e,t),this.size=n.size,this};var Nr=bn(vt),Ar=bn(Et,!0),Lr=Dn(),Fr=Dn(!0),Pr=br?function(e,t){return br.set(e,t),e}:go,Br=Jo?function(e,t){return Jo(e,"toString",{configurable:!0,enumerable:!1,value:po(t),writable:!0})}:go,Mr=er||function(e){return Be.clearTimeout(e)},$r=Tr&&1/A(new Tr([,-0]))[1]==B?function(e){return new Tr(e)}:Eo,Hr=br?function(e){return br.get(e)}:Eo,jr=rr?function(e){return null==e?[]:(e=_o(e),s(rr(e),function(t){return Go.call(e,t)}))}:yo,qr=rr?function(e){for(var t=[];e;)c(t,jr(e)),e=Vo(e);return t}:yo,zr=bt;(mr&&"[object DataView]"!=zr(new mr(new ArrayBuffer(1)))||vr&&"[object Map]"!=zr(new vr)||Er&&"[object Promise]"!=zr(Er.resolve())||Tr&&"[object Set]"!=zr(new Tr)||yr&&"[object WeakMap]"!=zr(new yr))&&(zr=function(e){var t=bt(e);if(e=(e="[object Object]"==t?e.constructor:P)?mi(e):"")switch(e){case Ir:return"[object DataView]";case Or:return"[object Map]";case Rr:return"[object Promise]";case _r:return"[object Set]";case wr:return"[object WeakMap]"}return t});var Wr=No?ji:Co,Vr=fi(Pr),Ur=nr||function(e,t){return Be.setTimeout(e,t)},Gr=fi(Br),Yr=function(e){var t=(e=Fi(e,function(e){return 500===t.size&&t.clear(),e})).cache;return e}(function(e){var t=[];return J.test(e)&&t.push(""),e.replace(ee,function(e,n,i,o){t.push(i?o.replace(ce,"$1"):n||e)}),t}),Xr=Vt(function(e,t){return $i(e)?ht(e,mt(t,1,$i,!0)):[]}),Zr=Vt(function(e,t){var n=Di(t);return $i(n)&&(n=P),$i(e)?ht(e,mt(t,1,$i,!0),Zn(n,2)):[]}),Qr=Vt(function(e,t){var n=Di(t);return $i(n)&&(n=P),$i(e)?ht(e,mt(t,1,$i,!0),P,n):[]}),Jr=Vt(function(e){var t=u(e,ln);return t.length&&t[0]===e[0]?Rt(t):[]}),es=Vt(function(e){var t=Di(e),n=u(e,ln);return t===Di(n)?t=P:n.pop(),n.length&&n[0]===e[0]?Rt(n,Zn(t,2)):[]}),ts=Vt(function(e){var t=Di(e),n=u(e,ln);return(t="function"==typeof t?t:P)&&n.pop(),n.length&&n[0]===e[0]?Rt(n,P,t):[]}),ns=Vt(Ii),is=Vn(function(e,t){var n=null==e?0:e.length,i=at(e,t);return qt(e,u(t,function(e){return ri(e,n)?+e:e}).sort(gn)),i}),os=Vt(function(e){return tn(mt(e,1,$i,!0))}),rs=Vt(function(e){var t=Di(e);return $i(t)&&(t=P),tn(mt(e,1,$i,!0),Zn(t,2))}),ss=Vt(function(e){var t="function"==typeof(t=Di(e))?t:P;return tn(mt(e,1,$i,!0),P,t)}),as=Vt(function(e,t){return $i(e)?ht(e,t):[]}),ls=Vt(function(e){return sn(s(e,$i))}),us=Vt(function(e){var t=Di(e);return $i(t)&&(t=P),sn(s(e,$i),Zn(t,2))}),cs=Vt(function(e){var t="function"==typeof(t=Di(e))?t:P;return sn(s(e,$i),P,t)}),ds=Vt(Ri),hs=Vt(function(e){var t;return _i(e,t="function"==typeof(t=1<(t=e.length)?e[t-1]:P)?(e.pop(),t):P)}),fs=Vn(function(e){function t(t){return at(t,e)}var n=e.length,i=n?e[0]:0,o=this.__wrapped__;return!(1<n||this.__actions__.length)&&o instanceof Ne&&ri(i)?((o=o.slice(i,+i+(n?1:0))).__actions__.push({func:ki,args:[t],thisArg:P}),new xe(o,this.__chain__).thru(function(e){return n&&!e.length&&e.push(P),e})):this.thru(t)}
vendor: 5,417 bytes, line 1
1),ps=yn(function(e,t,n){Lo.call(e,n)?++e[n]:st(e,n,1)}),gs=wn(Ti),ms=wn(yi),vs=yn(function(e,t,n){Lo.call(e,n)?e[n].push(t):st(e,n,[t])}),Es=Vt(function(e,t,i){var o=-1,r="function"==typeof t,s=Mi(e)?bo(e.length):[];return Nr(e,function(e){s[++o]=r?n(t,e,i):_t(e,t,i)}),s}),Ts=yn(function(e,t,n){st(e,n,t)}),ys=yn(function(e,t,n){e[n?0:1].push(t)},function(){return[[],[]]}),Cs=Vt(function(e,t){if(null==e)return[];var n=t.length;return 1<n&&si(e,t[0],t[1])?t=[]:2<n&&si(t[0],t[1],t[2])&&(t=[t[0]]),$t(e,mt(t,1),[])}),bs=tr||function(){return Be.Date.now()},Ds=Vt(function(e,t,n){var i=1;if(n.length){var o=N(n,Xn(Ds));i=32|i}return Hn(e,i,t,n,o)}),Is=Vt(function(e,t,n){var i=3;if(n.length){var o=N(n,Xn(Is));i=32|i}return Hn(t,i,e,n,o)}),Os=Vt(function(e,t){return dt(e,1,t)}),Rs=Vt(function(e,t,n){return dt(e,to(t)||0,n)});Fi.Cache=Me;var _s=Vt(function(e,t){var i=(t=1==t.length&&As(t[0])?u(t[0],O(Zn())):u(mt(t,1),O(Zn()))).length;return Vt(function(o){for(var r=-1,s=dr(o.length,i);++r<s;)o[r]=t[r].call(this,o[r]);return n(e,this,o)})}),ws=Vt(function(e,t){return Hn(e,32,P,t,N(t,Xn(ws)))}),ks=Vt(function(e,t){return Hn(e,64,P,t,N(t,Xn(ks)))}),Ks=Vn(function(e,t){return Hn(e,256,P,P,P,t)}),Ss=Pn(Dt),xs=Pn(function(e,t){return e>=t}),Ns=wt(function(){return arguments}())?wt:function(e){return Vi(e)&&Lo.call(e,"callee")&&!Go.call(e,"callee")},As=bo.isArray,Ls=qe?O(qe):function(e){return Vi(e)&&"[object ArrayBuffer]"==bt(e)},Fs=sr||Co,Ps=ze?O(ze):function(e){return Vi(e)&&"[object Date]"==bt(e)},Bs=We?O(We):function(e){return Vi(e)&&"[object Map]"==zr(e)},Ms=Ve?O(Ve):function(e){return Vi(e)&&"[object RegExp]"==bt(e)},$s=Ue?O(Ue):function(e){return Vi(e)&&"[object Set]"==zr(e)},Hs=Ge?O(Ge):function(e){return Vi(e)&&zi(e.length)&&!!Ke[bt(e)]},js=Pn(At),qs=Pn(function(e,t){return e<=t}),zs=Cn(function(e,t){if(ui(t)||Mi(t))Tn(t,so(t),e);else for(var n in t)Lo.call(t,n)&&nt(e,n,t[n])}),Ws=Cn(function(e,t){Tn(t,ao(t),e)}),Vs=Cn(function(e,t,n,i){Tn(t,ao(t),e,i)}),Us=Cn(function(e,t,n,i){Tn(t,so(t),e,i)}),Gs=Vn(at),Ys=Vt(function(e){return e.push(P,jn),n(Vs,P,e)}),Xs=Vt(function(e){return e.push(P,qn),n(ta,P,e)}),Zs=Sn(function(e,t,n){e[t]=n},po(go)),Qs=Sn(function(e,t,n){Lo.call(e,t)?e[t].push(n):e[t]=[n]},Zn),Js=Vt(_t),ea=Cn(function(e,t,n){Bt(e,t,n)}),ta=Cn(function(e,t,n,i){Bt(e,t,n,i)}),na=Vn(function(e,t){var n={};if(null==e)return n;var i=!1;t=u(t,function(t){return t=cn(t,e),i||(i=1<t.length),t}),Tn(e,Gn(e),n),i&&(n=ut(n,7,zn));for(var o=t.length;o--;)nn(n,t[o]);return n}),ia=Vn(function(e,t){return null==e?{}:function(e,t){return Ht(e,t,function(t,n){return ro(e,n)})}(e,t)}),oa=$n(so),ra=$n(ao),sa=On(function(e,t,n){return t=t.toLowerCase(),e+(n?co(t):t)}),aa=On(function(e,t,n){return e+(n?"-":"")+t.toLowerCase()}),la=On(function(e,t,n){return e+(n?" ":"")+t.toLowerCase()}),ua=In("toLowerCase"),ca=On(function(e,t,n){return e+(n?"_":"")+t.toLowerCase()}),da=On(function(e,t,n){return e+(n?" ":"")+fa(t)}),ha=On(function(e,t,n){return e+(n?" ":"")+t.toUpperCase()}),fa=In("toUpperCase"),pa=Vt(function(e,t){try{return n(e,P,t)}catch(e){return Hi(e)?e:new Io(e)}}),ga=Vn(function(e,t){return o(t,function(t){t=gi(t),st(e,t,Ds(e[t],e))}),e}),ma=kn(),va=kn(!0),Ea=Vt(function(e,t){return function(n){return _t(n,e,t)}}),Ta=Vt(function(e,t){return function(n){return _t(e,n,t)}}),ya=Nn(u),Ca=Nn(r),ba=Nn(f),Da=Fn(),Ia=Fn(!0),Oa=xn(function(e,t){return e+t},0),Ra=Mn("ceil"),_a=xn(function(e,t){return e/t},1),wa=Mn("floor"),ka=xn(function(e,t){return e*t},1),Ka=Mn("round"),Sa=xn(function(e,t){return e-t},0);return be.after=function(e,t){if("function"!=typeof t)throw new Ko("Expected a function");return e=Ji(e),function(){if(1>--e)return t.apply(this,arguments)}},be.ary=Ni,be.assign=zs,be.assignIn=Ws,be.assignInWith=Vs,be.assignWith=Us,be.at=Gs,be.before=Ai,be.bind=Ds,be.bindAll=ga,be.bindKey=Is,be.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return As(e)?e:[e]},be.chain=wi,be.chunk=function(e,t,n){if(t=(n?si(e,t,n):t===P)?1:cr(Ji(t),0),!(n=null==e?0:e.length)||1>t)return[];for(var i=0,o=0,r=bo(ir(n/t));i<n;)r[o++]=Gt(e,i,i+=t);return r},be.compact=function(e){for(var t=-1,n=null==e?0:e.length,i=0,o=[];++t<n;){var r=e[t];r&&(o[i++]=r)}return o},be.concat=function(){var e=arguments.length;if(!e)return[];for(var t=bo(e-1),n=arguments[0];e--;)t[e-1]=arguments[e];return c(As(n)?En(n):[n],mt(t,1))},be.cond=function(e){var t=null==e?0:e.length,i=Zn();return e=t?u(e,function(e){if("function"!=typeof e[1])throw new Ko("Expected a function");return[i(e[0]),e[1]]}):[],Vt(function(i){for(var o=-1;++o<t;){var r=e[o];if(n(r[0],this,i))return n(r[1],this,i)}})},be.conforms=function(e){return function(e){var t=so(e);return function(n){return ct(n,e,t)}}(ut(e,1))},be.constant=po,be.countBy=ps,be.create=function(e,t){var n=xr(e);return null==t?n:rt(n,t)},be.curry=function e(t,n,i){return(t=Hn(t,8,P,P,P,P,P,n=i?P:n)).placeholder=e.placeholder,t},be.curryRight=function e(t,n,i){return(t=Hn(t,16,P,P,P,P,P,n=i?P:n)).placeholder=e.placeholder,t},be.debounce=Li,be.defaults=Ys,be.defaultsDeep=Xs,be.defer=Os,be.delay=Rs,be.difference=Xr,be.differenceBy=Zr,be.differenceWith=Qr,be.drop=function(e,t,n){var i=null==e?0:e.length;return i?Gt(e,0>(t=n||t===P?1:Ji(t))?0:t,i):[]},be.dropRight=function(e,t,n){var i=null==e?0:e.length;return i?Gt(e,0,0>(t=i-(t=n||t===P?1:Ji(t)))?0:t):[]},be.dropRightWhile=function(e,t){return e&&e.length?on(e,Zn(t,3),!0,
1!0):[]},be.dropWhile=function(e,t){return e&&e.length?on(e,Zn(t,3),!0):[]},be.fill=function(e,t,n,i){var o=null==e?0:e.length;if(!o)return[];for(n&&"number"!=typeof n&&si(e,t,n)&&(n=0,i=o),o=e.length,0>(n=Ji(n))&&(n=-n>o?0:o+n),0>(i=i===P||i>o?o:Ji(i))&&(i+=o),i=n>i?0:eo(i);n<i;)e[n++]=t;return e},be.filter=function(e,t){return(As(e)?s:gt)(e,Zn(t,3))},be.flatMap=function(e,t){return mt(xi(e,t),1)},be.flatMapDeep=function(e,t){return mt(xi(e,t),B)},be.flatMapDepth=function(e,t,n){return n=n===P?1:Ji(n),mt(xi(e,t),n)},be.flatten=Ci,be.flattenDeep=function(e){return null!=e&&e.length?mt(e,B):[]},be.flattenDepth=function(e,t){return null!=e&&e.length?mt(e,t=t===P?1:Ji(t)):[]},be.flip=function(e){return Hn(e,512)},be.flow=ma,be.flowRight=va,be.fromPairs=function(e){for(var t=-1,n=null==e?0:e.length,i={};++t<n;){var o=e[t];i[o[0]]=o[1]}return i},be.functions=function(e){return null==e?[]:Tt(e,so(e))},be.functionsIn=function(e){return null==e?[]:Tt(e,ao(e))},be.groupBy=vs,be.initial=function(e){return null!=e&&e.length?Gt(e,0,-1):[]},be.intersection=Jr,be.intersectionBy=es,be.intersectionWith=ts,be.invert=Zs,be.invertBy=Qs,be.invokeMap=Es,be.iteratee=mo,be.keyBy=Ts,be.keys=so,be.keysIn=ao,be.map=xi,be.mapKeys=function(e,t){var n={};return t=Zn(t,3),vt(e,function(e,i,o){st(n,t(e,i,o),e)}),n},be.mapValues=function(e,t){var n={};return t=Zn(t,3),vt(e,function(e,i,o){st(n,i,t(e,i,o))}),n},be.matches=function(e){return Ft(ut(e,1))},be.matchesProperty=function(e,t){return Pt(e,ut(t,1))},be.memoize=Fi,be.merge=ea,be.mergeWith=ta,be.method=Ea,be.methodOf=Ta,be.mixin=vo,be.negate=Pi,be.nthArg=function(e){return e=Ji(e),Vt(function(t){return Mt(t,e)})},be.omit=na,be.omitBy=function(e,t){return lo(e,Pi(Zn(t)))},be.once=function(e){return Ai(2,e)},be.orderBy=function(e,t,n,i){return null==e?[]:(As(t)||(t=null==t?[]:[t]),As(n=i?P:n)||(n=null==n?[]:[n]),$t(e,t,n))},be.over=ya,be.overArgs=_s,be.overEvery=Ca,be.overSome=ba,be.partial=ws,be.partialRight=ks,be.partition=ys,be.pick=ia,be.pickBy=lo,be.property=To,be.propertyOf=function(e){return function(t){return null==e?P:yt(e,t)}},be.pull=ns,be.pullAll=Ii,be.pullAllBy=function(e,t,n){return e&&e.length&&t&&t.length?jt(e,t,Zn(n,2)):e},be.pullAllWith=function(e,t,n){return e&&e.length&&t&&t.length?jt(e,t,P,n):e},be.pullAt=is,be.range=Da,be.rangeRight=Ia,be.rearg=Ks,be.reject=function(e,t){return(As(e)?s:gt)(e,Pi(Zn(t,3)))},be.remove=function(e,t){var n=[];if(!e||!e.length)return n;var i=-1,o=[],r=e.length;for(t=Zn(t,3);++i<r;){var s=e[i];t(s,i,e)&&(n.push(s),o.push(i))}return qt(e,o),n},be.rest=function(e,t){if("function"!=typeof e)throw new Ko("Expected a function");return Vt(e,t=t===P?t:Ji(t))},be.reverse=Oi,be.sampleSize=function(e,t,n){return t=(n?si(e,t,n):t===P)?1:Ji(t),(As(e)?function(e,t){return pi(En(e),lt(t,0,e.length))}:function(e,t){var n=uo(e);return pi(n,lt(t,0,n.length))})(e,t)},be.set=function(e,t,n){return null==e?e:Ut(e,t,n)},be.setWith=function(e,t,n,i){return i="function"==typeof i?i:P,null==e?e:Ut(e,t,n,i)},be.shuffle=function(e){return(As(e)?function(e){return pi(En(e))}:function(e){return pi(uo(e))})(e)},be.slice=function(e,t,n){var i=null==e?0:e.length;return i?(n&&"number"!=typeof n&&si(e,t,n)?(t=0,n=i):(t=null==t?0:Ji(t),n=n===P?i:Ji(n)),Gt(e,t,n)):[]},be.sortBy=Cs,be.sortedUniq=function(e){return e&&e.length?Qt(e):[]},be.sortedUniqBy=function(e,t){return e&&e.length?Qt(e,Zn(t,2)):[]},be.split=function(e,t,n){return n&&"number"!=typeof n&&si(e,t,n)&&(t=n=P),(n=n===P?4294967295:n>>>0)?(e=io(e))&&("string"==typeof t||null!=t&&!Ms(t))&&(!(t=en(t))&&_e.test(e))?dn(F(e),0,n):e.split(t,n):[]},be.spread=function(e,t){if("function"!=typeof e)throw new Ko("Expected a function");return t=null==t?0:cr(Ji(t),0),Vt(function(i){var o=i[t];return i=dn(i,0,t),o&&c(i,o),n(e,this,i)})},be.tail=function(e){var t=null==e?0:e.length;return t?Gt(e,1,t):[]},be.take=function(e,t,n){return e&&e.length?Gt(e,0,0>(t=n||t===P?1:Ji(t))?0:t):[]},be.takeRight=function(e,t,n){var i=null==e?0:e.length;return i?Gt(e,0>(t=i-(t=n||t===P?1:Ji(t)))?0:t,i):[]},be.takeRightWhile=function(e,t){return e&&e.length?on(e,Zn(t,3),!1,!0):[]},be.takeWhile=function(e,t){return e&&e.length?on(e,Zn(t,3)):[]},be.tap=function(e,t){return t(e),e},be.throttle=function(e,t,n){var i=!0,o=!0;if("function"!=typeof e)throw new Ko("Expected a function");return Wi(n)&&(i="leading"in n?!!n.leading:i,o="trailing"in n?!!n.trailing:o),Li(e,t,{leading:i,maxWait:t,trailing:o})},be.thru=ki,be.toArray=Zi,be.toPairs=oa,be.toPairsIn=ra,be.toPath=function(e){return As(e)?u(e,gi):Xi(e)?[e]:En(Yr(io(e)))},be.toPlainObject=no,be.transform=function(e,t,n){var i=As(e),r=i||Fs(e)||Hs(e);if(t=Zn(t,4),null==n){var s=e&&e.constructor;n=r?i?new s:[]:Wi(e)&&ji(s)?xr(Vo(e)):{}}return(r?o:vt)(e,function(e,i,o){return t(n,e,i,o)}),n},be.unary=function(e){return Ni(e,1)},be.union=os,be.unionBy=rs,be.unionWith=ss,be.uniq=function(e){return e&&e.length?tn(e):[]},be.uniqBy=function(e,t){return e&&e.length?tn(e,Zn(t,2)):[]},be.uniqWith=function(e,t){return t="function"==typeof t?t:P,e&&e.length?tn(e,P,t):[]},be.unset=function(e,t){return null==e||nn(e,t)},be.unzip=Ri,be.unzipWith=_i,be.update=function(e,t,n){return null==e?e:Ut(e,t,un(n)(yt(e,t)),void 0)},be.updateWith=function(e,t,n,i){return i="function"==typeof i?i:P,null!=e&&(e=Ut(e,t,un(n)(yt(e,t)),i)),e}
1,be.values=uo,be.valuesIn=function(e){return null==e?[]:R(e,ao(e))},be.without=as,be.words=fo,be.wrap=function(e,t){return ws(un(t),e)},be.xor=ls,be.xorBy=us,be.xorWith=cs,be.zip=ds,be.zipObject=function(e,t){return an(e||[],t||[],nt)},be.zipObjectDeep=function(e,t){return an(e||[],t||[],Ut)},be.zipWith=hs,be.entries=oa,be.entriesIn=ra,be.extend=Ws,be.extendWith=Vs,vo(be,be),be.add=Oa,be.attempt=pa,be.camelCase=sa,be.capitalize=co,be.ceil=Ra,be.clamp=function(e,t,n){return n===P&&(n=t,t=P),n!==P&&(n=(n=to(n))==n?n:0),t!==P&&(t=(t=to(t))==t?t:0),lt(to(e),t,n)},be.clone=function(e){return ut(e,4)},be.cloneDeep=function(e){return ut(e,5)},be.cloneDeepWith=function(e,t){return ut(e,5,t="function"==typeof t?t:P)},be.cloneWith=function(e,t){return ut(e,4,t="function"==typeof t?t:P)},be.conformsTo=function(e,t){return null==t||ct(e,t,so(t))},be.deburr=ho,be.defaultTo=function(e,t){return null==e||e!=e?t:e},be.divide=_a,be.endsWith=function(e,t,n){e=io(e),t=en(t);var i=e.length;i=n=n===P?i:lt(Ji(n),0,i);return 0<=(n-=t.length)&&e.slice(n,i)==t},be.eq=Bi,be.escape=function(e){return(e=io(e))&&U.test(e)?e.replace(W,Ze):e},be.escapeRegExp=function(e){return(e=io(e))&&ne.test(e)?e.replace(te,"\\$&"):e},be.every=function(e,t,n){var i=As(e)?r:ft;return n&&si(e,t,n)&&(t=P),i(e,Zn(t,3))},be.find=gs,be.findIndex=Ti,be.findKey=function(e,t){return p(e,Zn(t,3),vt)},be.findLast=ms,be.findLastIndex=yi,be.findLastKey=function(e,t){return p(e,Zn(t,3),Et)},be.floor=wa,be.forEach=Ki,be.forEachRight=Si,be.forIn=function(e,t){return null==e?e:Lr(e,Zn(t,3),ao)},be.forInRight=function(e,t){return null==e?e:Fr(e,Zn(t,3),ao)},be.forOwn=function(e,t){return e&&vt(e,Zn(t,3))},be.forOwnRight=function(e,t){return e&&Et(e,Zn(t,3))},be.get=oo,be.gt=Ss,be.gte=xs,be.has=function(e,t){return null!=e&&ti(e,t,It)},be.hasIn=ro,be.head=bi,be.identity=go,be.includes=function(e,t,n,i){return e=Mi(e)?e:uo(e),n=n&&!i?Ji(n):0,i=e.length,0>n&&(n=cr(i+n,0)),Yi(e)?n<=i&&-1<e.indexOf(t,n):!!i&&-1<m(e,t,n)},be.indexOf=function(e,t,n){var i=null==e?0:e.length;return i?(0>(n=null==n?0:Ji(n))&&(n=cr(i+n,0)),m(e,t,n)):-1},be.inRange=function(e,t,n){return t=Qi(t),n===P?(n=t,t=0):n=Qi(n),(e=to(e))>=dr(t,n)&&e<cr(t,n)},be.invoke=Js,be.isArguments=Ns,be.isArray=As,be.isArrayBuffer=Ls,be.isArrayLike=Mi,be.isArrayLikeObject=$i,be.isBoolean=function(e){return!0===e||!1===e||Vi(e)&&"[object Boolean]"==bt(e)},be.isBuffer=Fs,be.isDate=Ps,be.isElement=function(e){return Vi(e)&&1===e.nodeType&&!Gi(e)},be.isEmpty=function(e){if(null==e)return!0;if(Mi(e)&&(As(e)||"string"==typeof e||"function"==typeof e.splice||Fs(e)||Hs(e)||Ns(e)))return!e.length;var t=zr(e);if("[object Map]"==t||"[object Set]"==t)return!e.size;if(ui(e))return!Nt(e).length;for(var n in e)if(Lo.call(e,n))return!1;return!0},be.isEqual=function(e,t){return kt(e,t)},be.isEqualWith=function(e,t,n){var i=(n="function"==typeof n?n:P)?n(e,t):P;return i===P?kt(e,t,P,n):!!i},be.isError=Hi,be.isFinite=function(e){return"number"==typeof e&&ar(e)},be.isFunction=ji,be.isInteger=qi,be.isLength=zi,be.isMap=Bs,be.isMatch=function(e,t){return e===t||Kt(e,t,Jn(t))},be.isMatchWith=function(e,t,n){return n="function"==typeof n?n:P,Kt(e,t,Jn(t),n)},be.isNaN=function(e){return Ui(e)&&e!=+e},be.isNative=function(e){if(Wr(e))throw new Io("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return St(e)},be.isNil=function(e){return null==e},be.isNull=function(e){return null===e},be.isNumber=Ui,be.isObject=Wi,be.isObjectLike=Vi,be.isPlainObject=Gi,be.isRegExp=Ms,be.isSafeInteger=function(e){return qi(e)&&-9007199254740991<=e&&9007199254740991>=e},be.isSet=$s,be.isString=Yi,be.isSymbol=Xi,be.isTypedArray=Hs,be.isUndefined=function(e){return e===P},be.isWeakMap=function(e){return Vi(e)&&"[object WeakMap]"==zr(e)},be.isWeakSet=function(e){return Vi(e)&&"[object WeakSet]"==bt(e)},be.join=function(e,t){return null==e?"":lr.call(e,t)},be.kebabCase=aa,be.last=Di,be.lastIndexOf=function(e,t,n){var i=null==e?0:e.length;if(!i)return-1;var o=i;if(n!==P&&(o=0>(o=Ji(n))?cr(i+o,0):dr(o,i-1)),t==t){for(n=o+1;n--&&e[n]!==t;);e=n}else e=g(e,E,o,!0);return e},be.lowerCase=la,be.lowerFirst=ua,be.lt=js,be.lte=qs,be.max=function(e){return e&&e.length?pt(e,go,Dt):P},be.maxBy=function(e,t){return e&&e.length?pt(e,Zn(t,2),Dt):P},be.mean=function(e){return T(e,go)},be.meanBy=function(e,t){return T(e,Zn(t,2))},be.min=function(e){return e&&e.length?pt(e,go,At):P},be.minBy=function(e,t){return e&&e.length?pt(e,Zn(t,2),At):P},be.stubArray=yo,be.stubFalse=Co,be.stubObject=function(){return{}},be.stubString=function(){return""},be.stubTrue=function(){return!0},be.multiply=ka,be.nth=function(e,t){return e&&e.length?Mt(e,Ji(t)):P},be.noConflict=function(){return Be._===this&&(Be._=$o),this},be.noop=Eo,be.now=bs,be.pad=function(e,t,n){e=io(e);var i=(t=Ji(t))?L(e):0;return!t||i>=t?e:An(or(t=(t-i)/2),n)+e+An(ir(t),n)},be.padEnd=function(e,t,n){e=io(e);var i=(t=Ji(t))?L(e):0;return t&&i<t?e+An(t-i,n):e},be.padStart=function(e,t,n){e=io(e);var i=(t=Ji(t))?L(e):0;return t&&i<t?An(t-i,n)+e:e},be.parseInt=function(e,t,n){return n||null==t?t=0:t&&(t=+t),fr(io(e).replace(oe,""),t||0)},be.random=function(e,t,n){if(n&&"boolean"!=typeof n&&si(e,t,n)&&(t=n=P),n===P&&("boolean"==typeof t?(n=t,t=P):"boolean"==typeof e&&(n=e,e=P)),e===P&&t===P?(e=0,t=1):(e=Qi(e),t===P?(t=e,e=0):t=Qi(t)),e>t){var i=e;e=t,t=i}return n||e%1||t%1?(n=pr(),dr(e+n*(t-e+Ae("1e-"+((n+"").length-1))),t)):zt(e,t)},be.reduce=function(e,t,n){var i=As(e)?d:b,o=3>arguments.length;return i(e,Zn(t,4),n,o,Nr)},be.reduceRight=function(e,t,n){var i=As(e)?h:b,o=3>arguments.length;return i(e,Zn(t,4),n,o,Ar)},be.repeat=function(e,t,n){return t=(n?si(e,t,n):t===P)?1:Ji(t),Wt(io(e),t)},be.replace=function(){var e=arguments,t=io(e[0]);return 3>e.length?t:t.replace(e[1],e[2])},be.result=function(e,t,n){var i=-1,o=(t=cn(t,e)).length;for(o||(o=1,e=P);++i<o;){var r=null==e?P:e[gi(t[i])];r===P&&(i=o,r=n),e=ji(r)?r.call(e):r}return e},be.round=Ka,be.runInContext=C,be.sample=function(e){return(As(e)?et:function(e){return et(uo(e))})(e)},be.size=function(e){if(null==e)return 0;if(Mi(e))return Yi(e)?L(e):e.length;var t=zr(e);return"[object Map]"==t||"[object Set]"==t?e.size:Nt(e).length},be.snakeCase=ca,be.some=function(e,t,n){var i=As(e)?f:Yt;return n&&si(e,t,n)&&(t=P),i(e,Zn(t,3))},be.sortedIndex=function(e,t){return Xt(e,t)},be.sortedIndexBy=function(e,t,n){return Zt(e,t,Zn(n,2))},be.sortedIndexOf=function(e,t){var n=null==e?0:e.length;if(n){var i=Xt(e,t);if(i<n&&Bi(e[i],t))return i}return-1},be.sortedLastIndex=function(e,t){return Xt(e,t,!0)},be.sortedLastIndexBy=function(e,t,n){return Zt(e,t,Zn(n,2),!0)},be.sortedLastIndexOf=function(e,t){if(null!=e&&e.length){var n=Xt(e,t,!0)-1;if(Bi(e[n],t))return n}return-1},be.startCase=da,be.startsWith=function(e,t,n){return e=io(e),n=null==n?0:lt(Ji(n),0,e.length),t=en(t),e.slice(n,n+t.length)==t},be.subtract=Sa,be.sum=function(e){return e&&e.length?D(e,go):0},be.sumBy=function(e,t){return e&&e.length?D(e,Zn(t,2)):0},be.template=function(e,t,n){var i=be.templateSettings;n&&si(e,t,n)&&(t=P),e=io(e),t=Vs({},t,i,jn);var o,r,s=so(n=Vs({},t.imports,i.imports,jn)),a=R(n,s),l=0;
1n=t.interpolate||Te;var u="__p+='";n=wo((t.escape||Te).source+"|"+n.source+"|"+(n===X?de:Te).source+"|"+(t.evaluate||Te).source+"|$","g");var c="sourceURL"in t?"//# sourceURL="+t.sourceURL+"\n":"";if(e.replace(n,function(t,n,i,s,a,c){return i||(i=s),u+=e.slice(l,c).replace(ye,K),n&&(o=!0,u+="'+__e("+n+")+'"),a&&(r=!0,u+="';"+a+";\n__p+='"),i&&(u+="'+((__t=("+i+"))==null?'':__t)+'"),l=c+t.length,t}),u+="';",(t=t.variable)||(u="with(obj){"+u+"}"),u=(r?u.replace(H,""):u).replace(j,"$1").replace(q,"$1;"),u="function("+(t||"obj")+"){"+(t?"":"obj||(obj={});")+"var __t,__p=''"+(o?",__e=_.escape":"")+(r?",__j=Array.prototype.join;function print(){__p+=__j.call(arguments,'')}":";")+u+"return __p}",(t=pa(function(){return Oo(s,c+"return "+u).apply(P,a)})).source=u,Hi(t))throw t;return t},be.times=function(e,t){if(1>(e=Ji(e))||9007199254740991<e)return[];var n=4294967295,i=dr(e,4294967295);for(e-=4294967295,i=I(i,t=Zn(t));++n<e;)t(n);return i},be.toFinite=Qi,be.toInteger=Ji,be.toLength=eo,be.toLower=function(e){return io(e).toLowerCase()},be.toNumber=to,be.toSafeInteger=function(e){return e?lt(Ji(e),-9007199254740991,9007199254740991):0===e?e:0},be.toString=io,be.toUpper=function(e){return io(e).toUpperCase()},be.trim=function(e,t,n){return(e=io(e))&&(n||t===P)?e.replace(ie,""):e&&(t=en(t))?dn(e=F(e),t=w(e,n=F(t)),n=k(e,n)+1).join(""):e},be.trimEnd=function(e,t,n){return(e=io(e))&&(n||t===P)?e.replace(re,""):e&&(t=en(t))?dn(e=F(e),0,t=k(e,F(t))+1).join(""):e},be.trimStart=function(e,t,n){return(e=io(e))&&(n||t===P)?e.replace(oe,""):e&&(t=en(t))?dn(e=F(e),t=w(e,F(t))).join(""):e},be.truncate=function(e,t){var n=30,i="...";if(Wi(t)){var o="separator"in t?t.separator:o;n="length"in t?Ji(t.length):n,i="omission"in t?en(t.omission):i}var r=(e=io(e)).length;if(_e.test(e)){var s=F(e);r=s.length}if(n>=r)return e;if(1>(r=n-L(i)))return i;if(n=s?dn(s,0,r).join(""):e.slice(0,r),o===P)return n+i;if(s&&(r+=n.length-r),Ms(o)){if(e.slice(r).search(o)){var a=n;for(o.global||(o=wo(o.source,io(he.exec(o))+"g")),o.lastIndex=0;s=o.exec(a);)var l=s.index;n=n.slice(0,l===P?r:l)}}else e.indexOf(en(o),r)!=r&&(-1<(o=n.lastIndexOf(o))&&(n=n.slice(0,o)));return n+i},be.unescape=function(e){return(e=io(e))&&V.test(e)?e.replace(z,Qe):e},be.uniqueId=function(e){var t=++Fo;return io(e)+t},be.upperCase=ha,be.upperFirst=fa,be.each=Ki,be.eachRight=Si,be.first=bi,vo(be,function(){var e={};return vt(be,function(t,n){Lo.call(be.prototype,n)||(e[n]=t)}),e}(),{chain:!1}),be.VERSION="4.17.4",o("bind bindKey curry curryRight partial partialRight".split(" "),function(e){be[e].placeholder=be}),o(["drop","take"],function(e,t){Ne.prototype[e]=function(n){n=n===P?1:cr(Ji(n),0);var i=this.__filtered__&&!t?new Ne(this):this.clone();return i.__filtered__?i.__takeCount__=dr(n,i.__takeCount__):i.__views__.push({size:dr(n,4294967295),type:e+(0>i.__dir__?"Right":"")}),i},Ne.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}}),o(["filter","map","takeWhile"],function(e,t){var n=t+1,i=1==n||3==n;Ne.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:Zn(e,3),type:n}),t.__filtered__=t.__filtered__||i,t}}),o(["head","last"],function(e,t){var n="take"+(t?"Right":"");Ne.prototype[e]=function(){return this[n](1).value()[0]}}),o(["initial","tail"],function(e,t){var n="drop"+(t?"":"Right");Ne.prototype[e]=function(){return this.__filtered__?new Ne(this):this[n](1)}}),Ne.prototype.compact=function(){return this.filter(go)},Ne.prototype.find=function(e){return this.filter(e).head()},Ne.prototype.findLast=function(e){return this.reverse().find(e)},Ne.prototype.invokeMap=Vt(function(e,t){return"function"==typeof e?new Ne(this):this.map(function(n){return _t(n,e,t)})}),Ne.prototype.reject=function(e){return this.filter(Pi(Zn(e)))},Ne.prototype.slice=function(e,t){e=Ji(e);var n=this;return n.__filtered__&&(0<e||0>t)?new Ne(n):(0>e?n=n.takeRight(-e):e&&(n=n.drop(e)),t!==P&&(n=0>(t=Ji(t))?n.dropRight(-t):n.take(t-e)),n)},Ne.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Ne.prototype.toArray=function(){return this.take(4294967295)},vt(Ne.prototype,function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),i=/^(?:head|last)$/.test(t),o=be[i?"take"+("last"==t?"Right":""):t],r=i||/^find/.test(t);o&&(be.prototype[t]=function(){function t(e){return e=o.apply(be,c([e],a)),i&&h?e[0]:e}var s=this.__wrapped__,a=i?[1]:arguments,l=s instanceof Ne,u=a[0],d=l||As(s);d&&n&&"function"==typeof u&&1!=u.length&&(l=d=!1);var h=this.__chain__,f=!!this.__actions__.length;u=r&&!h,l=l&&!f;return!r&&d?(s=l?s:new Ne(this),(s=e.apply(s,a)).__actions__.push({func:ki,args:[t],thisArg:P}),new xe(s,h)):u&&l?e.apply(this,a):(s=this.thru(t),u?i?s.value(
1)[0]:s.value():s)})}),o("pop push shift sort splice unshift".split(" "),function(e){var t=So[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",i=/^(?:pop|shift)$/.test(e);be.prototype[e]=function(){var e=arguments;if(i&&!this.__chain__){var o=this.value();return t.apply(As(o)?o:[],e)}return this[n](function(n){return t.apply(As(n)?n:[],e)})}}),vt(Ne.prototype,function(e,t){var n=be[t];if(n){var i=n.name+"";(Dr[i]||(Dr[i]=[])).push({name:t,func:n})}}),Dr[Kn(P,2).name]=[{name:"wrapper",func:P}],Ne.prototype.clone=function(){var e=new Ne(this.__wrapped__);return e.__actions__=En(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=En(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=En(this.__views__),e},Ne.prototype.reverse=function(){if(this.__filtered__){var e=new Ne(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},Ne.prototype.value=function(){var e,t=this.__wrapped__.value(),n=this.__dir__,i=As(t),o=0>n,r=i?t.length:0;e=r;for(var s=this.__views__,a=0,l=-1,u=s.length;++l<u;){var c=s[l],d=c.size;switch(c.type){case"drop":a+=d;break;case"dropRight":e-=d;break;case"take":e=dr(e,a+d);break;case"takeRight":a=cr(a,e-d)}}if(s=(e={start:a,end:e}).start,e=(a=e.end)-s,s=o?a:s-1,l=(a=this.__iteratees__).length,u=0,c=dr(e,this.__takeCount__),!i||!o&&r==e&&c==e)return rn(t,this.__actions__);i=[];e:for(;e--&&u<c;){for(o=-1,r=t[s+=n];++o<l;){d=(h=a[o]).type;var h=(0,h.iteratee)(r);if(2==d)r=h;else if(!h){if(1==d)continue e;break e}}i[u++]=r}return i},be.prototype.at=fs,be.prototype.chain=function(){return wi(this)},be.prototype.commit=function(){return new xe(this.value(),this.__chain__)},be.prototype.next=function(){this.__values__===P&&(this.__values__=Zi(this.value()));var e=this.__index__>=this.__values__.length;return{done:e,value:e?P:this.__values__[this.__index__++]}},be.prototype.plant=function(e){for(var t,n=this;n instanceof Oe;){var i=Ei(n);i.__index__=0,i.__values__=P,t?o.__wrapped__=i:t=i;var o=i;n=n.__wrapped__}return o.__wrapped__=e,t},be.prototype.reverse=function(){var e=this.__wrapped__;return e instanceof Ne?(this.__actions__.length&&(e=new Ne(this)),(e=e.reverse()).__actions__.push({func:ki,args:[Oi],thisArg:P}),new xe(e,this.__chain__)):this.thru(Oi)},be.prototype.toJSON=be.prototype.valueOf=be.prototype.value=function(){return rn(this.__wrapped__,this.__actions__)},be.prototype.first=be.prototype.head,Zo&&(be.prototype[Zo]=function(){return this}),be}();"function"==typeof define&&"object"==typeof define.amd&&define.amd?(Be._=Je,define(function(){return Je})):$e?(($e.exports=Je)._=Je,Me._=Je):Be._=Je}).call(this),function(){var e,t,n,i,o,r,s,a,l,u,c,d;window.CKEDITOR&&window.CKEDITOR.dom||(window.CKEDITOR||(window.CKEDITOR=function(){var e=/(^|.*[\\\/])ckeditor\.js(?:\?.*|;.*)?$/i,t={timestamp:"H0CG",version:"4.6.2",revision:"20af917",rnd:Math.floor(900*Math.random())+100,_:{pending:[],basePathSrcPattern:e},status:"unloaded",basePath:function(){var t=window.CKEDITOR_BASEPATH||"";if(!t)for(var n=document.getElementsByTagName("script"),i=0;i<n.length;i++){var o=n[i].src.match(e);if(o){t=o[1];break}}if(-1==t.indexOf(":/")&&"//"!=t.slice(0,2)&&(t=0===t.indexOf("/")?location.href.match(/^.*?:\/\/[^\/]*/)[0]+t:location.href.match(/^[^\?]*\/(?:)/)[0]+t),!t)throw'The CKEditor installation path could not be automatically detected. Please set the global variable "CKEDITOR_BASEPATH" before creating editor instances.';return t}(),getUrl:function(e){return-1==e.indexOf(":/")&&0!==e.indexOf("/")&&(e=this.basePath+e),this.timestamp&&"/"!=e.charAt(e.length-1)&&!/[&?]t=/.test(e)&&(e+=(0<=e.indexOf("?")?"&":"?")+"t="+this.timestamp),e},domReady:function(){function e(){try{document.addEventListener?(document.removeEventListener("DOMContentLoaded",e,!1),t()):document.attachEvent&&"complete"===document.readyState&&(document.detachEvent("onreadystatechange",e),t())}catch(e){}}function t(){for(var e;e=n.shift();)e()}var n=[];return function(t){if(n.push(t),"complete"===document.readyState&&setTimeout(e,1),1==n.length)if(document.addEventListener)document.addEventListener("DOMContentLoaded",e,!1),window.addEventListener("load",e,!1);else if(document.attachEvent){document.attachEvent("onreadystatechange",e),window.attachEvent("onload",e),t=!1;try{t=!window.frameElement}catch(e){}document.documentElement.doScroll&&t&&function t(){try{document.documentElement.doScroll("left")}catch(e){return void setTimeout(t,1)}e()}()}}}()},n=window.CKEDITOR_GETURL;if(n){var i=t.getUrl;t.getUrl=function(e){return n.call(t,e)||i.call(t,e)}}return t}()),CKEDITOR.event||(CKEDITOR.event=function(){},CKEDITOR.event.implementOn=function(e){var t,n=CKEDITOR.event.prototype;for(t in n)null==e[t]&&(e[t]=n[t])},CKEDITOR.event.prototype=function(){function e(e){var i=t(this);return i[e]||(i[e]=new n(e))}var t=function(e){return(e=e.getPrivate&&e.getPrivate()||e._||(e._={})).events||(e.events={})},n=function(e){this.name=e,this.listeners=[]};return n.prototype={getListenerIndex:function(e){for(var t=0,n=this.listeners;t<n.length;t++)if(n[t].fn==e)return t;return-1}},{define:function(t,n){var i=e.call(this,t);CKEDITOR.tools.extend(i,n,!0)},on:function(t,n,i,o,r){function s(e,r,s,l){return e={name:t,sender:this,editor:e,data:r,listenerData:o,stop:s,cancel:l,removeListener:a},!1!==n.call(i,e)&&e.data}function a(){u.removeListener(t,n)}var l=e.call(this,t);if(0>l.getListenerIndex(n)){l=l.listeners,i||(i=this),isNaN(r)&&(r=10);var u=this;s.fn=n,s.priority=r;for(var c=l.length-1;0<=c;c--)if(l[c].priority<=r)return l.splice(c+1,0,s),{removeListener:a};l.unshift(s)}return{removeListener:a}},once:function(){var e=Array.prototype.slice.call(arguments),t=e[1];return e[1]=function(e){return e.removeListener(),t.apply(this,arguments)},this.on.apply(this,e)},capture:function(){CKEDITOR.event.useCapture=1;var e=this.on.apply(this,arguments);return CKEDITOR.event.useCapture=0,e},fire:function(){var e=0,n=function(){e=1},i=0,o=function(){i=1};
1return function(r,s,a){var l=t(this)[r];r=e;var u=i;if((e=i=0,l)&&(d=l.listeners).length)for(var c,d=d.slice(0),h=0;h<d.length;h++){if(l.errorProof)try{c=d[h].call(this,a,s,n,o)}catch(e){}else c=d[h].call(this,a,s,n,o);if(!1===c?i=1:"undefined"!=typeof c&&(s=c),e||i)break}return s=!i&&("undefined"==typeof s||s),e=r,i=u,s}}(),fireOnce:function(e,n,i){return n=this.fire(e,n,i),delete t(this)[e],n},removeListener:function(e,n){var i=t(this)[e];if(i){var o=i.getListenerIndex(n);0<=o&&i.listeners.splice(o,1)}},removeAllListeners:function(){var e,n=t(this);for(e in n)delete n[e]},hasListeners:function(e){return(e=t(this)[e])&&0<e.listeners.length}}}()),CKEDITOR.editor||(CKEDITOR.editor=function(){CKEDITOR._.pending.push([this,arguments]),CKEDITOR.event.call(this)},CKEDITOR.editor.prototype.fire=function(e,t){return e in{instanceReady:1,loaded:1}&&(this[e]=!0),CKEDITOR.event.prototype.fire.call(this,e,t,this)},CKEDITOR.editor.prototype.fireOnce=function(e,t){return e in{instanceReady:1,loaded:1}&&(this[e]=!0),CKEDITOR.event.prototype.fireOnce.call(this,e,t,this)},CKEDITOR.event.implementOn(CKEDITOR.editor.prototype)),CKEDITOR.env||(CKEDITOR.env=function(){var e=navigator.userAgent.toLowerCase(),t=e.match(/edge[ \/](\d+.?\d*)/),n=-1<e.indexOf("trident/");(n={ie:n=!(!t&&!n),edge:!!t,webkit:!n&&-1<e.indexOf(" applewebkit/"),air:-1<e.indexOf(" adobeair/"),mac:-1<e.indexOf("macintosh"),quirks:"BackCompat"==document.compatMode&&(!document.documentMode||10>document.documentMode),mobile:-1<e.indexOf("mobile"),iOS:/(ipad|iphone|ipod)/.test(e),isCustomDomain:function(){if(!this.ie)return!1;var e=document.domain,t=window.location.hostname;return e!=t&&e!="["+t+"]"},secure:"https:"==location.protocol}).gecko="Gecko"==navigator.product&&!n.webkit&&!n.ie,n.webkit&&(-1<e.indexOf("chrome")?n.chrome=!0:n.safari=!0);var i=0;return n.ie&&(i=t?parseFloat(t[1]):n.quirks||!document.documentMode?parseFloat(e.match(/msie (\d+)/)[1]):document.documentMode,n.ie9Compat=9==i,n.ie8Compat=8==i,n.ie7Compat=7==i,n.ie6Compat=7>i||n.quirks),n.gecko&&(t=e.match(/rv:([\d\.]+)/))&&(i=1e4*(t=t[1].split("."))[0]+100*(t[1]||0)+1*(t[2]||0)),n.air&&(i=parseFloat(e.match(/ adobeair\/(\d+)/)[1])),n.webkit&&(i=parseFloat(e.match(/ applewebkit\/(\d+)/)[1])),n.version=i,n.isCompatible=!(n.ie&&7>i||n.gecko&&4e4>i||n.webkit&&534>i),n.hidpi=2<=window.devicePixelRatio,n.needsBrFiller=n.gecko||n.webkit||n.ie&&10<i,n.needsNbspFiller=n.ie&&11>i,n.cssClass="cke_browser_"+(n.ie?"ie":n.gecko?"gecko":n.webkit?"webkit":"unknown"),n.quirks&&(n.cssClass+=" cke_browser_quirks"),n.ie&&(n.cssClass+=" cke_browser_ie"+(n.quirks?"6 cke_browser_iequirks":n.version)),n.air&&(n.cssClass+=" cke_browser_air"),n.iOS&&(n.cssClass+=" cke_browser_ios"),n.hidpi&&(n.cssClass+=" cke_hidpi"),n}()),"unloaded"==CKEDITOR.status&&(CKEDITOR.event.implementOn(CKEDITOR),CKEDITOR.loadFullCore=function(){if("basic_ready"!=CKEDITOR.status)CKEDITOR.loadFullCore._load=1;else{delete CKEDITOR.loadFullCore;var e=document.createElement("script");e.type="text/javascript",e.src=CKEDITOR.basePath+"ckeditor.js",document.getElementsByTagName("head")[0].appendChild(e)}},CKEDITOR.loadFullCoreTimeout=0,CKEDITOR.add=function(e){(this._.pending||(this._.pending=[])).push(e)},CKEDITOR.domReady(function(){var e=CKEDITOR.loadFullCore,t=CKEDITOR.loadFullCoreTimeout;e&&(CKEDITOR.status="basic_ready",e&&e._load?e():t&&setTimeout(function(){CKEDITOR.loadFullCore&&CKEDITOR.loadFullCore()},1e3*t))}),CKEDITOR.status="basic_loaded"),CKEDITOR.VERBOSITY_WARN=1,CKEDITOR.VERBOSITY_ERROR=2,CKEDITOR.verbosity=CKEDITOR.VERBOSITY_WARN|CKEDITOR.VERBOSITY_ERROR,CKEDITOR.warn=function(e,t){CKEDITOR.verbosity&CKEDITOR.VERBOSITY_WARN&&CKEDITOR.fire("log",{type:"warn",errorCode:e,additionalData:t})},CKEDITOR.error=function(e,t){CKEDITOR.verbosity&CKEDITOR.VERBOSITY_ERROR&&CKEDITOR.fire("log",{type:"error",errorCode:e,additionalData:t})},CKEDITOR.on("log",function(e){if(window.console&&window.console.log){var t=console[e.data.type]?e.data.type:"log",n=e.data.errorCode;(e=e.data.additionalData)?console[t]("[CKEDITOR] Error code: "+n+".",e):console[t]("[CKEDITOR] Error c
1ode: "+n+"."),console[t]("[CKEDITOR] For more information about this error go to http://docs.ckeditor.com/#!/guide/dev_errors-section-"+n)}},null,null,999),CKEDITOR.dom={},e=[],t=CKEDITOR.env.gecko?"-moz-":CKEDITOR.env.webkit?"-webkit-":CKEDITOR.env.ie?"-ms-":"",n=/&/g,i=/>/g,o=/</g,r=/"/g,s=/&(lt|gt|amp|quot|nbsp|shy|#\d{1,5});/g,a={lt:"<",gt:">",amp:"&",quot:'"',nbsp:"\xa0",shy:"\xad"},l=function(e,t){return"#"==t[0]?String.fromCharCode(parseInt(t.slice(1),10)):a[t]},CKEDITOR.on("reset",function(){e=[]}),CKEDITOR.tools={arrayCompare:function(e,t){if(!e&&!t)return!0;if(!e||!t||e.length!=t.length)return!1;for(var n=0;n<e.length;n++)if(e[n]!=t[n])return!1;return!0},getIndex:function(e,t){for(var n=0;n<e.length;++n)if(t(e[n]))return n;return-1},clone:function(e){var t;if(e&&e instanceof Array){t=[];for(var n=0;n<e.length;n++)t[n]=CKEDITOR.tools.clone(e[n]);return t}if(null===e||"object"!=typeof e||e instanceof String||e instanceof Number||e instanceof Boolean||e instanceof Date||e instanceof RegExp||e.nodeType||e.window===e)return e;for(n in t=new e.constructor,e)t[n]=CKEDITOR.tools.clone(e[n]);return t},capitalize:function(e,t){return e.charAt(0).toUpperCase()+(t?e.slice(1):e.slice(1).toLowerCase())},extend:function(e){var t,n,i=arguments.length;"boolean"==typeof(t=arguments[i-1])?i--:"boolean"==typeof(t=arguments[i-2])&&(n=arguments[i-1],i-=2);for(var o=1;o<i;o++){var r,s=arguments[o];for(r in s)!0!==t&&null!=e[r]||(!n||r in n)&&(e[r]=s[r])}return e},prototypedCopy:function(e){var t=function(){};return t.prototype=e,new t},copy:function(e){var t,n={};for(t in e)n[t]=e[t];return n},isArray:function(e){return"[object Array]"==Object.prototype.toString.call(e)},isEmpty:function(e){for(var t in e)if(e.hasOwnProperty(t))return!1;return!0},cssVendorPrefix:function(e,n,i){return i?t+e+":"+n+";"+e+":"+n:((i={})[e]=n,i[t+e]=n,i)},cssStyleToDomStyle:function(){var e=document.createElement("div").style,t="undefined"!=typeof e.cssFloat?"cssFloat":"undefined"!=typeof e.styleFloat?"styleFloat":"float";return function(e){return"float"==e?t:e.replace(/-./g,function(e){return e.substr(1).toUpperCase()})}}(),buildStyleHtml:function(e){e=[].concat(e);for(var t,n=[],i=0;i<e.length;i++)(t=e[i])&&(/@import|[{}]/.test(t)?n.push("<style>"+t+"</style>"):n.push('<link type="text/css" rel=stylesheet href="'+t+'">'));return n.join("")},htmlEncode:function(e){return void 0===e||null===e?"":String(e).replace(n,"&").replace(i,">").replace(o,"<")},htmlDecode:function(e){return e.replace(s,l)},htmlEncodeAttr:function(e){return CKEDITOR.tools.htmlEncode(e).replace(r,""")},htmlDecodeAttr:function(e){return CKEDITOR.tools.htmlDecode(e)},transformPlainTextToHtml:function(e,t){var n=t==CKEDITOR.ENTER_BR,i=(i=this.htmlEncode(e.replace(/\r\n/g,"\n"))).replace(/\t/g," "),o=t==CKEDITOR.ENTER_P?"p":"div";if(!n){var r=/\n{2}/g;if(r.test(i)){var s="<"+o+">",a="</"+o+">";i=s+i.replace(r,function(){return a+s})+a}}return i=i.replace(/\n/g,"<br>"),n||(i=i.replace(new RegExp("<br>(?=</"+o+">)"),function(e){return CKEDITOR.tools.repeat(e,2)})),(i=i.replace(/^ | $/g," ")).replace(/(>|\s) /g,function(e,t){return t+" "}).replace(/ (?=<)/g," ")},getNextNumber:function(){var e=0;return function(){return++e}}(),getNextId:function(){return"cke_"+this.getNextNumber()},getUniqueId:function(){for(var e="e",t=0;8>t;t++)e+=Math.floor(65536*(1+Math.random())).toString(16).substring(1);return e},override:function(e,t){var n=t(e);return n.prototype=e.prototype,n},setTimeout:function(e,t,n,i,o){return o||(o=window),n||(n=o),o.setTimeout(function(){i?e.apply(n,[].concat(i)):e.apply(n)},t||0)},trim:function(){var e=/(?:^[ \t\n\r]+)|(?:[ \t\n\r]+$)/g;return function(t){return t.replace(e,"")}}(),ltrim:function(){var e=/^[ \t\n\r]+/g;return function(t){return t.replace(e,"")}}(),rtrim:function(){var e=/[ \t\n\r]+$/g;return function(t){return t.replace(e,"")}}(),indexOf:function(e,t){if("function"==typeof t){for(var n=0,i=e.length;n<i;n++)if(t(e[n]))return n}else{if(e.indexOf)return e.indexOf(t);for(n=0,i=e.length;n<i;n++)if(e[n]===t)return n}return-1},search:function(e,t){var n=CKEDITOR.tools.indexOf(e,t);return 0<=n?e[n]:null},bind:function(e,t){return function(){return e.apply(t,arguments)}},createClass:function(e){var t=e.$,n=e.base,i=e.privates||e._,o=e.proto;if(e=e.statics,!t&&(t=function(){n&&this.base.apply(this,arguments)}),i){var r=t;t=function(){var e,t=this._||(this._={});for(e in i){var n=i[e];t[e]="function"==typeof n?CKEDITOR.tools.bind(n,this):n}r.apply(this,arguments)}}return n&&(t.prototype=this.prototypedCopy(n.prototype),t.prototype.constructor=t,t.base=n,t.baseProto=n.prototype,t.prototype.base
1=function(){this.base=n.prototype.base,n.apply(this,arguments),this.base=arguments.callee}),o&&this.extend(t.prototype,o,!0),e&&this.extend(t,e,!0),t},addFunction:function(t,n){return e.push(function(){return t.apply(n||this,arguments)})-1},removeFunction:function(t){e[t]=null},callFunction:function(t){var n=e[t];return n&&n.apply(window,Array.prototype.slice.call(arguments,1))},cssLength:function(){var e,t=/^-?\d+\.?\d*px$/;return function(n){return e=CKEDITOR.tools.trim(n+"")+"px",t.test(e)?e:n||""}}(),convertToPx:function(){var e;return function(t){return e||(e=CKEDITOR.dom.element.createFromHtml('<div style="position:absolute;left:-9999px;top:-9999px;margin:0px;padding:0px;border:0px;"></div>',CKEDITOR.document),CKEDITOR.document.getBody().append(e)),/%$/.test(t)?t:(e.setStyle("width",t),e.$.clientWidth)}}(),repeat:function(e,t){return Array(t+1).join(e)},tryThese:function(){for(var e,t=0,n=arguments.length;t<n;t++){var i=arguments[t];try{e=i();break}catch(e){}}return e},genKey:function(){return Array.prototype.slice.call(arguments).join("-")},defer:function(e){return function(){var t=arguments,n=this;window.setTimeout(function(){e.apply(n,t)},0)}},normalizeCssText:function(e,t){var n,i=[],o=CKEDITOR.tools.parseCssText(e,!0,t);for(n in o)i.push(n+":"+o[n]);return i.sort(),i.length?i.join(";")+";":""},convertRgbToHex:function(e){return e.replace(/(?:rgb\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\))/gi,function(e,t,n,i){for(e=[t,n,i],t=0;3>t;t++)e[t]=("0"+parseInt(e[t],10).toString(16)).slice(-2);return"#"+e.join("")})},normalizeHex:function(e){return e.replace(/#(([0-9a-f]{3}){1,2})($|;|\s+)/gi,function(e,t,n,i){return 3==(e=t.toLowerCase()).length&&(e=[(e=e.split(""))[0],e[0],e[1],e[1],e[2],e[2]].join("")),"#"+e+i})},parseCssText:function(e,t,n){var i={};return n&&(e=new CKEDITOR.dom.element("span").setAttribute("style",e).getAttribute("style")||""),e&&(e=CKEDITOR.tools.normalizeHex(CKEDITOR.tools.convertRgbToHex(e))),e&&";"!=e?(e.replace(/"/g,'"').replace(/\s*([^:;\s]+)\s*:\s*([^;]+)\s*(?=;|$)/g,function(e,n,o){t&&("font-family"==(n=n.toLowerCase())&&(o=o.replace(/\s*,\s*/g,",")),o=CKEDITOR.tools.trim(o)),i[n]=o}),i):i},writeCssText:function(e,t){var n,i=[];for(n in e)i.push(n+":"+e[n]);return t&&i.sort(),i.join("; ")},objectCompare:function(e,t,n){var i;if(!e&&!t)return!0;if(!e||!t)return!1;for(i in e)if(e[i]!=t[i])return!1;if(!n)for(i in t)if(e[i]!=t[i])return!1;return!0},objectKeys:function(e){var t,n=[];for(t in e)n.push(t);return n},convertArrayToObject:function(e,t){var n={};1==arguments.length&&(t=!0);for(var i=0,o=e.length;i<o;++i)n[e[i]]=t;return n},fixDomain:function(){for(var e;;)try{e=window.parent.document.domain;break}catch(t){if(!(e=e?e.replace(/.+?(?:\.|$)/,""):document.domain))break;document.domain=e}return!!e},eventsBuffer:function(e,t,n){function i(){r=(new Date).getTime(),o=!1,n?t.call(n):t()}var o,r=0;return{input:function(){if(!o){var t=(new Date).getTime()-r;t<e?o=setTimeout(i,e-t):i()}},reset:function(){o&&clearTimeout(o),o=r=0}}},enableHtml5Elements:function(e,t){for(var n,i="abbr article aside audio bdi canvas data datalist details figcaption figure footer header hgroup main mark meter nav output progress section summary time video".split(" "),o=i.length;o--;)n=e.createElement(i[o]),t&&e.appendChild(n)},checkIfAnyArrayItemMatches:function(e,t){for(var n=0,i=e.length;n<i;++n)if(e[n].match(t))return!0;return!1},checkIfAnyObjectPropertyMatches:function(e,t){for(var n in e)if(n.match(t))return!0;return!1},keystrokeToString:function(e,t){var n=16711680&t,i=65535&t,o=CKEDITOR.env.mac,r=[],s=[];return n&CKEDITOR.CTRL&&(r.push(o?"\u2318":e[17]),s.push(o?e[224]:e[17])),n&CKEDITOR.ALT&&(r.push(o?"\u2325":e[18]),s.push(e[18])),n&CKEDITOR.SH
1IFT&&(r.push(o?"\u21e7":e[16]),s.push(e[16])),i&&(e[i]?(r.push(e[i]),s.push(e[i])):(r.push(String.fromCharCode(i)),s.push(String.fromCharCode(i)))),{display:r.join("+"),aria:s.join("+")}},transparentImageData:"data:image/gif;base64,R0lGODlhAQABAPABAP///wAAACH5BAEKAAAALAAAAAABAAEAAAICRAEAOw==",getCookie:function(e){e=e.toLowerCase();for(var t,n=document.cookie.split(";"),i=0;i<n.length;i++)if(t=n[i].split("="),decodeURIComponent(CKEDITOR.tools.trim(t[0]).toLowerCase())===e)return decodeURIComponent(1<t.length?t[1]:"");return null},setCookie:function(e,t){document.cookie=encodeURIComponent(e)+"="+encodeURIComponent(t)+";path=/"},getCsrfToken:function(){if(!(e=CKEDITOR.tools.getCookie("ckCsrfToken"))||40!=e.length){var e=[],t="";if(window.crypto&&window.crypto.getRandomValues)e=new Uint8Array(40),window.crypto.getRandomValues(e);else for(var n=0;40>n;n++)e.push(Math.floor(256*Math.random()));for(n=0;n<e.length;n++){var i="abcdefghijklmnopqrstuvwxyz0123456789".charAt(e[n]%36);t+=.5<Math.random()?i.toUpperCase():i}e=t,CKEDITOR.tools.setCookie("ckCsrfToken",e)}return e},escapeCss:function(e){return e?window.CSS&&CSS.escape?CSS.escape(e):isNaN(parseInt(e.charAt(0),10))?e:"\\3"+e.charAt(0)+" "+e.substring(1,e.length):""},style:{parse:{_colors:{aliceblue:"#F0F8FF",antiquewhite:"#FAEBD7",aqua:"#00FFFF",aquamarine:"#7FFFD4",azure:"#F0FFFF",beige:"#F5F5DC",bisque:"#FFE4C4",black:"#000000",blanchedalmond:"#FFEBCD",blue:"#0000FF",blueviolet:"#8A2BE2",brown:"#A52A2A",burlywood:"#DEB887",cadetblue:"#5F9EA0",chartreuse:"#7FFF00",chocolate:"#D2691E",coral:"#FF7F50",cornflowerblue:"#6495ED",cornsilk:"#FFF8DC",crimson:"#DC143C",cyan:"#00FFFF",darkblue:"#00008B",darkcyan:"#008B8B",darkgoldenrod:"#B8860B",darkgray:"#A9A9A9",darkgreen:"#006400",darkgrey:"#A9A9A9",darkkhaki:"#BDB76B",darkmagenta:"#8B008B",darkolivegreen:"#556B2F",darkorange:"#FF8C00",darkorchid:"#9932CC",darkred:"#8B0000",darksalmon:"#E9967A",darkseagreen:"#8FBC8F",darkslateblue:"#483D8B",darkslategray:"#2F4F4F",darkslategrey:"#2F4F4F",darkturquoise:"#00CED1",darkviolet:"#9400D3",deeppink:"#FF1493",deepskyblue:"#00BFFF",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1E90FF",firebrick:"#B22222",floralwhite:"#FFFAF0",forestgreen:"#228B22",fuchsia:"#FF00FF",gainsboro:"#DCDCDC",ghostwhite:"#F8F8FF",gold:"#FFD700",goldenrod:"#DAA520",gray:"#808080",green:"#008000",greenyellow:"#ADFF2F",grey:"#808080",honeydew:"#F0FFF0",hotpink:"#FF69B4",indianred:"#CD5C5C",indigo:"#4B0082",ivory:"#FFFFF0",khaki:"#F0E68C",lavender:"#E6E6FA",lavenderblush:"#FFF0F5",lawngreen:"#7CFC00",lemonchiffon:"#FFFACD",lightblue:"#ADD8E6",lightcoral:"#F08080",lightcyan:"#E0FFFF",lightgoldenrodyellow:"#FAFAD2",lightgray:"#D3D3D3",lightgreen:"#90EE90",lightgrey:"#D3D3D3",lightpink:"#FFB6C1",lightsalmon:"#FFA07A",lightseagreen:"#20B2AA",lightskyblue:"#87CEFA",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#B0C4DE",lightyellow:"#FFFFE0",lime:"#00FF00",limegreen:"#32CD32",linen:"#FAF0E6",magenta:"#FF00FF",maroon:"#800000",mediumaquamarine:"#66CDAA",mediumblue:"#0000CD",mediumorchid:"#BA55D3",mediumpurple:"#9370DB",mediumseagreen:"#3CB371",mediumslateblue:"#7B68EE",mediumspringgreen:"#00FA9A",mediumturquoise:"#48D1CC",mediumvioletred:"#C71585",midnightblue:"#191970",mintcream:"#F5FFFA",mistyrose:"#FFE4E1",moccasin:"#FFE4B5",navajowhite:"#FFDEAD",navy:"#000080",oldlace:"#FDF5E6",olive:"#808000",olivedrab:"#6B8E23",orange:"#FFA500",orangered:"#FF4500",orchid:"#DA70D6",palegoldenrod:"#EEE8AA",palegreen:"#98FB98",paleturquoise:"#AFEEEE",palevioletred:"#DB7093",papayawhip:"#FFEFD5",peachpuff:"#FFDAB9",peru:"#CD853F",pink:"#FFC0CB",plum:"#DDA0DD",powderblue:"#B0E0E6",purple:"#800080",rebeccapurple:"#663399",red:"#FF0000",rosybrown:"#BC8F8F",royalblue:"#4169E1",saddlebrown:"#8B4513",salmon:"#FA8072",sandybrown:"#F4A460",seagreen:"#2E8B57",seashell:"#FFF5EE",sienna:"#A0522D",silver:"#C0C0C0",skyblue:"#87CEEB",slateblue:"#6A5ACD",slategray:"#708090",slategrey:"#708090",snow:"#FFFAFA",springgreen:"#00FF7F",steelblue:"#4682B4",tan:"#D2B48C",teal:"#008080",thistle:"#D8BFD8",tomato:"#FF6347",turquoise:"#40E0D0",violet:"#EE82EE",wheat:"#F5DEB3",white:"#FFFFFF",whitesmoke:"#F5F5F5",yellow:"#FFFF00",yellowgreen:"#9ACD32"},_rgbaRegExp:/rgba?\(\s*\d+%?\s*,\s*\d+%?\s*,\s*\d+%?\s*(?:,\s*[0-9.]+\s*)?\)/gi,_hslaRegExp:/hsla?\(\s*[0-9.]+\s*,\s*\d+%\s*,\s*\d+%\s*(?
1:,\s*[0-9.]+\s*)?\)/gi,background:function(e){var t=[],n=[];return(n=this._findColor(e)).length&&(t.color=n[0],CKEDITOR.tools.array.forEach(n,function(t){e=e.replace(t,"")})),(e=CKEDITOR.tools.trim(e))&&(t.unprocessed=e),t},margin:function(e){function t(e){n.top=i[e[0]],n.right=i[e[1]],n.bottom=i[e[2]],n.left=i[e[3]]}var n={},i=e.match(/(?:\-?[\.\d]+(?:%|\w*)|auto|inherit|initial|unset)/g)||["0px"];switch(i.length){case 1:t([0,0,0,0]);break;case 2:t([0,1,0,1]);break;case 3:t([0,1,2,1]);break;case 4:t([0,1,2,3])}return n},_findColor:function(e){var t=[],n=CKEDITOR.tools.array;return(t=(t=t.concat(e.match(this._rgbaRegExp)||[])).concat(e.match(this._hslaRegExp)||[])).concat(n.filter(e.split(/\s+/),function(e){return!!e.match(/^\#[a-f0-9]{3}(?:[a-f0-9]{3})?$/gi)||e.toLowerCase()in CKEDITOR.tools.style.parse._colors}))}}},array:{filter:function(e,t,n){var i=[];return this.forEach(e,function(o,r){t.call(n,o,r,e)&&i.push(o)}),i},forEach:function(e,t,n){var i,o=e.length;for(i=0;i<o;i++)t.call(n,e[i],i,e)},map:function(e,t,n){for(var i=[],o=0;o<e.length;o++)i.push(t.call(n,e[o],o,e));return i},reduce:function(e,t,n,i){for(var o=0;o<e.length;o++)n=t.call(i,n,e[o],o,e);return n}}},CKEDITOR.tools.array.indexOf=CKEDITOR.tools.indexOf,CKEDITOR.tools.array.isArray=CKEDITOR.tools.isArray,CKEDITOR.dtd=function(){var e=CKEDITOR.tools.extend,t=function(e,t){for(var n=CKEDITOR.tools.clone(e),i=1;i<arguments.length;i++)for(var o in arguments[i])delete n[o];return n},n={},i={},o={address:1,article:1,aside:1,blockquote:1,details:1,div:1,dl:1,fieldset:1,figure:1,footer:1,form:1,h1:1,h2:1,h3:1,h4:1,h5:1,h6:1,header:1,hgroup:1,hr:1,main:1,menu:1,nav:1,ol:1,p:1,pre:1,section:1,table:1,ul:1},r={command:1,link:1,meta:1,noscript:1,script:1,style:1},s={},a={"#":1},l={center:1,dir:1,noframes:1};return e(n,{a:1,abbr:1,area:1,audio:1,b:1,bdi:1,bdo:1,br:1,button:1,canvas:1,cite:1,code:1,command:1,datalist:1,del:1,dfn:1,em:1,embed:1,i:1,iframe:1,img:1,input:1,ins:1,kbd:1,keygen:1,label:1,map:1,mark:1,meter:1,noscript:1,object:1,output:1,progress:1,q:1,ruby:1,s:1,samp:1,script:1,select:1,small:1,span:1,strong:1,sub:1,sup:1,textarea:1,time:1,u:1,var:1,video:1,wbr:1},a,{acronym:1,applet:1,basefont:1,big:1,font:1,isindex:1,strike:1,style:1,tt:1}),e(i,o,n,l),e(t={a:t(n,{a:1,button:1}),abbr:n,address:i,area:s,article:i,aside:i,audio:e({source:1,track:1},i),b:n,base:s,bdi:n,bdo:n,blockquote:i,body:i,br:s,button:t(n,{a:1,button:1}),canvas:n,caption:i,cite:n,code:n,col:s,colgroup:{col:1},command:s,datalist:e({option:1},n),dd:i,del:n,details:e({summary:1},i),dfn:n,div:i,dl:{dt:1,dd:1},dt:i,em:n,embed:s,fieldset:e({legend:1},i),figcaption:i,figure:e({figcaption:1},i),footer:i,form:i,h1:n,h2:n,h3:n,h4:n,h5:n,h6:n,head:e({title:1,base:1},r),header:i,hgroup:{h1:1,h2:1,h3:1,h4:1,h5:1,h6:1},hr:s,html:e({head:1,body:1},i,r),i:n,iframe:a,img:s,input:s,ins:n,kbd:n,keygen:s,label:n,legend:n,li:i,link:s,main:i,map:i,mark:n,menu:e({li:1},i),meta:s,meter:t(n,{meter:1}),nav:i,noscript:e({link:1,meta:1,style:1},n),object:e({param:1},n),ol:{li:1},optgroup:{option:1},option:a,output:n,p:n,param:s,pre:n,progress:t(n,{progress:1}),q:n,rp:n,rt:n,ruby:e({rp:1,rt:1},n),s:n,samp:n,script:a,section:i,select:{optgroup:1,option:1},small:n,source:s,span:n,strong:n,style:a,sub:n,summary:e({h1:1,h2:1,h3:1,h4:1,h5:1,h6:1},n),sup:n,table:{caption:1,colgroup:1,thead:1,tfoot:1,tbody:1,tr:1},tbody:{tr:1},td:i,textarea:a,tfoot:{tr:1},th:i,thead:{tr:1},time:t(n,{time:1}),title:a,tr:{th:1,td:1},track:s,u:n,ul:{li:1},var:n,video:e({source:1,track:1},i),wbr:s,acronym:n,applet:e({param:1},i),basefont:s,big:n,center:i,dialog:s,dir:{li:1},font:n,isindex:s,noframes:i,strike:n,tt:n},{$block:e({audio:1,dd:1,dt:1,figcaption:1,li:1,video:1},o,l),$blockLimit:{article:1,aside:1,audio:1,body:1,caption:1,details:1,dir:1,div:1,dl:1,fieldset:1,figcaption:1,figure:1,footer:1,form:1,header:1,hgroup:1,main:1,menu:1,nav:1,ol:1,section:1,table:1,td:1,th:1,tr:1,ul:1,video:1},$cdata:{script:1,style:1},$editable:{address:1,article:1,aside:1,blockquote:1,body:1,details:1,div:1,fieldset:1,figcaption:1,footer:1,form:1,h1:1,h2:1,h3:1,h4:1,h5:1,h6:1,header:1,hgroup:1,main:1,nav:1,p:1,pre:1,section:1},$empty:{area:1,base:1,basefont:1,br:1,col:1,command:1,dialog:1,embed:1,hr:1,img:1,input:1,isindex:1,keygen:1,link:1,meta:1,param:1,source:1,track:1,wbr:1}
1,$inline:n,$list:{dl:1,ol:1,ul:1},$listItem:{dd:1,dt:1,li:1},$nonBodyContent:e({body:1,head:1,html:1},t.head),$nonEditable:{applet:1,audio:1,button:1,embed:1,iframe:1,map:1,object:1,option:1,param:1,script:1,textarea:1,video:1},$object:{applet:1,audio:1,button:1,hr:1,iframe:1,img:1,input:1,object:1,select:1,table:1,textarea:1,video:1},$removeEmpty:{abbr:1,acronym:1,b:1,bdi:1,bdo:1,big:1,cite:1,code:1,del:1,dfn:1,em:1,font:1,i:1,ins:1,label:1,kbd:1,mark:1,meter:1,output:1,q:1,ruby:1,s:1,samp:1,small:1,span:1,strike:1,strong:1,sub:1,sup:1,time:1,tt:1,u:1,var:1},$tabIndex:{a:1,area:1,button:1,input:1,object:1,select:1,textarea:1},$tableContent:{caption:1,col:1,colgroup:1,tbody:1,td:1,tfoot:1,th:1,thead:1,tr:1},$transparent:{a:1,audio:1,canvas:1,del:1,ins:1,map:1,noscript:1,object:1,video:1},$intermediate:{caption:1,colgroup:1,dd:1,dt:1,figcaption:1,legend:1,li:1,optgroup:1,option:1,rp:1,rt:1,summary:1,tbody:1,td:1,tfoot:1,th:1,thead:1,tr:1}}),t}(),CKEDITOR.dom.event=function(e){this.$=e},CKEDITOR.dom.event.prototype={getKey:function(){return this.$.keyCode||this.$.which},getKeystroke:function(){var e=this.getKey();return(this.$.ctrlKey||this.$.metaKey)&&(e+=CKEDITOR.CTRL),this.$.shiftKey&&(e+=CKEDITOR.SHIFT),this.$.altKey&&(e+=CKEDITOR.ALT),e},preventDefault:function(e){var t=this.$;t.preventDefault?t.preventDefault():t.returnValue=!1,e&&this.stopPropagation()},stopPropagation:function(){var e=this.$;e.stopPropagation?e.stopPropagation():e.cancelBubble=!0},getTarget:function(){var e=this.$.target||this.$.srcElement;return e?new CKEDITOR.dom.node(e):null},getPhase:function(){return this.$.eventPhase||2},getPageOffset:function(){var e=this.getTarget().getDocument().$;return{x:this.$.pageX||this.$.clientX+(e.documentElement.scrollLeft||e.body.scrollLeft),y:this.$.pageY||this.$.clientY+(e.documentElement.scrollTop||e.body.scrollTop)}}}
1,CKEDITOR.CTRL=1114112,CKEDITOR.SHIFT=2228224,CKEDITOR.ALT=4456448,CKEDITOR.EVENT_PHASE_CAPTURING=1,CKEDITOR.EVENT_PHASE_AT_TARGET=2,CKEDITOR.EVENT_PHASE_BUBBLING=3,CKEDITOR.dom.domObject=function(e){e&&(this.$=e)},CKEDITOR.dom.domObject.prototype={getPrivate:function(){var e;return(e=this.getCustomData("_"))||this.setCustomData("_",e={}),e},on:function(e){var t=this.getCustomData("_cke_nativeListeners");return t||(t={},this.setCustomData("_cke_nativeListeners",t)),t[e]||(t=t[e]=function(e,t){return function(n){"undefined"!=typeof CKEDITOR&&e.fire(t,new CKEDITOR.dom.event(n))}}(this,e),this.$.addEventListener?this.$.addEventListener(e,t,!!CKEDITOR.event.useCapture):this.$.attachEvent&&this.$.attachEvent("on"+e,t)),CKEDITOR.event.prototype.on.apply(this,arguments)},removeListener:function(e){if(CKEDITOR.event.prototype.removeListener.apply(this,arguments),!this.hasListeners(e)){var t=this.getCustomData("_cke_nativeListeners"),n=t&&t[e];n&&(this.$.removeEventListener?this.$.removeEventListener(e,n,!1):this.$.detachEvent&&this.$.detachEvent("on"+e,n),delete t[e])}},removeAllListeners:function(){var e,t=this.getCustomData("_cke_nativeListeners");for(e in t){var n=t[e];this.$.detachEvent?this.$.detachEvent("on"+e,n):this.$.removeEventListener&&this.$.removeEventListener(e,n,!1),delete t[e]}CKEDITOR.event.prototype.removeAllListeners.call(this)}},function(e){var t={};CKEDITOR.on("reset",function(){t={}}),e.equals=function(e){try{return e&&e.$===this.$}catch(e){return!1}},e.setCustomData=function(e,n){var i=this.getUniqueId();return(t[i]||(t[i]={}))[e]=n,this},e.getCustomData=function(e){var n=this.$["data-cke-expando"];return(n=n&&t[n])&&e in n?n[e]:null},e.removeCustomData=function(e){var n,i,o;return(n=(n=this.$["data-cke-expando"])&&t[n])&&(i=n[e],o=e in n,delete n[e]),o?i:null},e.clearCustomData=function(){this.removeAllListeners();var e=this.$["data-cke-expando"];e&&delete t[e]},e.getUniqueId=function(){return this.$["data-cke-expando"]||(this.$["data-cke-expando"]=CKEDITOR.tools.getNextNumber())},CKEDITOR.event.implementOn(e)}(CKEDITOR.dom.domObject.prototype),CKEDITOR.dom.node=function(e){return e?new CKEDITOR.dom[e.nodeType==CKEDITOR.NODE_DOCUMENT?"document":e.nodeType==CKEDITOR.NODE_ELEMENT?"element":e.nodeType==CKEDITOR.NODE_TEXT?"text":e.nodeType==CKEDITOR.NODE_COMMENT?"comment":e.nodeType==CKEDITOR.NODE_DOCUMENT_FRAGMENT?"documentFragment":"domObject"](e):this},CKEDITOR.dom.node.prototype=new CKEDITOR.dom.domObject,CKEDITOR.NODE_ELEMENT=1,CKEDITOR.NODE_DOCUMENT=9,CKEDITOR.NODE_TEXT=3,CKEDITOR.NODE_COMMENT=8,CKEDITOR.NODE_DOCUMENT_FRAGMENT=11,CKEDITOR.POSITION_IDENTICAL=0,CKEDITOR.POSITION_DISCONNECTED=1,CKEDITOR.POSITION_FOLLOWING=2,CKEDITOR.POSITION_PRECEDING=4,CKEDITOR.POSITION_IS_CONTAINED=8,CKEDITOR.POSITION_CONTAINS=16,CKEDITOR.tools.extend(CKEDITOR.dom.node.prototype,{appendTo:function(e,t){return e.append(this,t),e},clone:function(e,t){var n=this.$.cloneNode(e);return function n(i){if(i["data-cke-expando"]&&(i["data-cke-expando"]=!1),(i.nodeType==CKEDITOR.NODE_ELEMENT||i.nodeType==CKEDITOR.NODE_DOCUMENT_FRAGMENT)&&(t||i.nodeType!=CKEDITOR.NODE_ELEMENT||i.removeAttribute("id",!1),e)){i=i.childNodes;for(var o=0;o<i.length;o++)n(i[o])}}(n),n=new CKEDITOR.dom.node(n),CKEDITOR.env.ie&&9>CKEDITOR.env.version&&(this.type==CKEDITOR.NODE_ELEMENT||this.type==CKEDITOR.NODE_DOCUMENT_FRAGMENT)&&function t(n){if(n.type==CKEDITOR.NODE_ELEMENT||n.type==CKEDITOR.NODE_DOCUMENT_FRAGMENT){if(n.type!=CKEDITOR.NODE_DOCUMENT_FRAGMENT){var i=n.getName();":"==i[0]&&n.renameNode(i.substring(1))}if(e)for(i=0;i<n.getChildCount();i++)t(n.getChild(i))}}(n),n},hasPrevious:function(){return!!this.$.previousSibling},hasNext:function(){return!!this.$.nextSibling},insertAfter:function(e){return e.$.parentNode.insertBefore(this.$,e.$.nextSibling),e},insertBefore:function(e){return e.$.parentNode.insertBefore(this.$,e.$),e},insertBeforeMe:function(e){return this.$.parentNode.insertBefore(e.$,this.$),e},getAddress:function(e){for(var t=[],n=this.getDocument().$.documentElement,i=this.$;i&&i!=n;){var o=i.parentNode;o&&t.unshift(this.getIndex.call({$:i},e)),i=o}return t},getDocument:function(){return new CKEDITOR.dom.document(this.$.ownerDocument||this.$.parentNode.ownerDocument)},getIndex:function(e){function t(e,i){var o=i?e.nextSibling:e.previousSibling;return o&&o.nodeType==CKEDITOR.NODE_TEXT?n(o)?t(o,i):o:null}function n(e){return!e.nodeValue||e.nodeValue==CKEDITOR.dom.selection.FILLING_CHAR_SEQUENCE}var i,o=this.$,r=-1;if(!this.$.parentNode||e&&o.nodeType==CKEDITOR.NODE_TEXT&&n(o)&&!t(o)&&!t(o,!0))return-1;
1do{e&&o!=this.$&&o.nodeType==CKEDITOR.NODE_TEXT&&(i||n(o))||(r++,i=o.nodeType==CKEDITOR.NODE_TEXT)}while(o=o.previousSibling);return r},getNextSourceNode:function(e,t,n){if(n&&!n.call){var i=n;n=function(e){return!e.equals(i)}}var o;if(!(e=!e&&this.getFirst&&this.getFirst())){if(this.type==CKEDITOR.NODE_ELEMENT&&n&&!1===n(this,!0))return null;e=this.getNext()}for(;!e&&(o=(o||this).getParent());){if(n&&!1===n(o,!0))return null;e=o.getNext()}return!e||n&&!1===n(e)?null:t&&t!=e.type?e.getNextSourceNode(!1,t,n):e},getPreviousSourceNode:function(e,t,n){if(n&&!n.call){var i=n;n=function(e){return!e.equals(i)}}var o;if(!(e=!e&&this.getLast&&this.getLast())){if(this.type==CKEDITOR.NODE_ELEMENT&&n&&!1===n(this,!0))return null;e=this.getPrevious()}for(;!e&&(o=(o||this).getParent());){if(n&&!1===n(o,!0))return null;e=o.getPrevious()}return!e||n&&!1===n(e)?null:t&&e.type!=t?e.getPreviousSourceNode(!1,t,n):e},getPrevious:function(e){var t,n=this.$;do{t=(n=n.previousSibling)&&10!=n.nodeType&&new CKEDITOR.dom.node(n)}while(t&&e&&!e(t));return t},getNext:function(e){var t,n=this.$;do{t=(n=n.nextSibling)&&new CKEDITOR.dom.node(n)}while(t&&e&&!e(t));return t},getParent:function(e){var t=this.$.parentNode;return t&&(t.nodeType==CKEDITOR.NODE_ELEMENT||e&&t.nodeType==CKEDITOR.NODE_DOCUMENT_FRAGMENT)?new CKEDITOR.dom.node(t):null},getParents:function(e){var t=this,n=[];do{n[e?"push":"unshift"](t)}while(t=t.getParent());return n},getCommonAncestor:function(e){if(e.equals(this))return this;if(e.contains&&e.contains(this))return e;var t=this.contains?this:this.getParent();do{if(t.contains(e))return t}while(t=t.getParent());return null},getPosition:function(e){var t=this.$,n=e.$;if(t.compareDocumentPosition)return t.compareDocumentPosition(n);if(t==n)return CKEDITOR.POSITION_IDENTICAL;if(this.type==CKEDITOR.NODE_ELEMENT&&e.type==CKEDITOR.NODE_ELEMENT){if(t.contains){if(t.contains(n))return CKEDITOR.POSITION_CONTAINS+CKEDITOR.POSITION_PRECEDING;if(n.contains(t))return CKEDITOR.POSITION_IS_CONTAINED+CKEDITOR.POSITION_FOLLOWING}if("sourceIndex"in t)return 0>t.sourceIndex||0>n.sourceIndex?CKEDITOR.POSITION_DISCONNECTED:t.sourceIndex<n.sourceIndex?CKEDITOR.POSITION_PRECEDING:CKEDITOR.POSITION_FOLLOWING}t=this.getAddress(),e=e.getAddress();n=Math.min(t.length,e.length);for(var i=0;i<n;i++)if(t[i]!=e[i])return t[i]<e[i]?CKEDITOR.POSITION_PRECEDING:CKEDITOR.POSITION_FOLLOWING;return t.length<e.length?CKEDITOR.POSITION_CONTAINS+CKEDITOR.POSITION_PRECEDING:CKEDITOR.POSITION_IS_CONTAINED+CKEDITOR.POSITION_FOLLOWING},getAscendant:function(e,t){var n,i,o=this.$;for(t||(o=o.parentNode),"function"==typeof e?(i=!0,n=e):(i=!1,n=function(t){return t="string"==typeof t.nodeName?t.nodeName.toLowerCase():"","string"==typeof e?t==e:t in e});o;){if(n(i?new CKEDITOR.dom.node(o):o))return new CKEDITOR.dom.node(o);try{o=o.parentNode}catch(e){o=null}}return null},hasAscendant:function(e,t){var n=this.$;for(t||(n=n.parentNode);n;){if(n.nodeName&&n.nodeName.toLowerCase()==e)return!0;n=n.parentNode}return!1},move:function(e,t){e.append(this.remove(),t)},remove:function(e){var t=this.$,n=t.parentNode;if(n){if(e)for(;e=t.firstChild;)n.insertBefore(t.removeChild(e),t);n.removeChild(t)}return this},replace:function(e){this.insertBefore(e),e.remove()},trim:function(){this.ltrim(),this.rtrim()},ltrim:function(){for(var e;this.getFirst&&(e=this.getFirst());){if(e.type==CKEDITOR.NODE_TEXT){var t=CKEDITOR.tools.ltrim(e.getText()),n=e.getLength();if(!t){e.remove();continue}t.length<n&&(e.split(n-t.length),this.$.removeChild(this.$.firstChild))}break}},rtrim:function(){for(var e;this.getLast&&(e=this.getLast());){if(e.type==CKEDITOR.NODE_TEXT){var t=CKEDITOR.tools.rtrim(e.getText()),n=e.getLength();if(!t){e.remove();continue}t.length<n&&(e.split(t.length),this.$.lastChild.parentNode.removeChild(this.$.lastChild))}break}CKEDITOR.env.needsBrFiller&&(e=this.$.lastChild)&&1==e.type&&"br"==e.nodeName.toLowerCase()&&e.parentNode.removeChild(e)},isReadOnly:function(e){var t=this;if(this.type!=CKEDITOR.NODE_ELEMENT&&(t=this.getParent()),CKEDITOR.env.edge&&t&&t.is("textarea","input")&&(e=!0),!e&&t&&"undefined"!=typeof t.$.isContentEditable)return!(t.$.isContentEditable||t.data("cke-editable"));for(;t;){if(t.data("cke-editable"))return!1;if(t.hasAttribute("contenteditable"))return"false"==t.getAttribute("contenteditable");t=t.getParent()}return!0}}),CKEDITOR.dom.window=function(e){CKEDITOR.dom.domObject.call(this,e)},CKEDITOR.dom.window.prototype=new CKEDITOR.dom.domObject,CKEDITOR.tools.extend(CKEDITOR.dom.window.prototype,{focus:function(){this.$.focu
1s()},getViewPaneSize:function(){var e=this.$.document,t="CSS1Compat"==e.compatMode;return{width:(t?e.documentElement.clientWidth:e.body.clientWidth)||0,height:(t?e.documentElement.clientHeight:e.body.clientHeight)||0}},getScrollPosition:function(){var e=this.$;return"pageXOffset"in e?{x:e.pageXOffset||0,y:e.pageYOffset||0}:{x:(e=e.document).documentElement.scrollLeft||e.body.scrollLeft||0,y:e.documentElement.scrollTop||e.body.scrollTop||0}},getFrame:function(){var e=this.$.frameElement;return e?new CKEDITOR.dom.element.get(e):null}}),CKEDITOR.dom.document=function(e){CKEDITOR.dom.domObject.call(this,e)},CKEDITOR.dom.document.prototype=new CKEDITOR.dom.domObject,CKEDITOR.tools.extend(CKEDITOR.dom.document.prototype,{type:CKEDITOR.NODE_DOCUMENT,appendStyleSheet:function(e){if(this.$.createStyleSheet)this.$.createStyleSheet(e);else{var t=new CKEDITOR.dom.element("link");t.setAttributes({rel:"stylesheet",type:"text/css",href:e}),this.getHead().append(t)}},appendStyleText:function(e){if(this.$.createStyleSheet){var t=this.$.createStyleSheet("");t.cssText=e}else{var n=new CKEDITOR.dom.element("style",this);n.append(new CKEDITOR.dom.text(e,this)),this.getHead().append(n)}return t||n.$.sheet},createElement:function(e,t){var n=new CKEDITOR.dom.element(e,this);return t&&(t.attributes&&n.setAttributes(t.attributes),t.styles&&n.setStyles(t.styles)),n},createText:function(e){return new CKEDITOR.dom.text(e,this)},focus:function(){this.getWindow().focus()},getActive:function(){var e;try{e=this.$.activeElement}catch(e){return null}return new CKEDITOR.dom.element(e)},getById:function(e){return(e=this.$.getElementById(e))?new CKEDITOR.dom.element(e):null},getByAddress:function(e,t){for(var n=this.$.documentElement,i=0;n&&i<e.length;i++){var o=e[i];if(t)for(var r=-1,s=0;s<n.childNodes.length;s++){var a=n.childNodes[s];if((!0!==t||3!=a.nodeType||!a.previousSibling||3!=a.previousSibling.nodeType)&&++r==o){n=a;break}}else n=n.childNodes[o]}return n?new CKEDITOR.dom.node(n):null},getElementsByTag:function(e,t){return CKEDITOR.env.ie&&8>=document.documentMode||!t||(e=t+":"+e),new CKEDITOR.dom.nodeList(this.$.getElementsByTagName(e))},getHead:function(){var e=this.$.getElementsByTagName("head")[0];return e?new CKEDITOR.dom.element(e):this.getDocumentElement().append(new CKEDITOR.dom.element("head"),!0)},getBody:function(){return new CKEDITOR.dom.element(this.$.body)},getDocumentElement:function(){return new CKEDITOR.dom.element(this.$.documentElement)},getWindow:function(){return new CKEDITOR.dom.window(this.$.parentWindow||this.$.defaultView)},write:function(e){this.$.open("text/html","replace"),CKEDITOR.env.ie&&(e=e.replace(/(?:^\s*<!DOCTYPE[^>]*?>)|^/i,'$&\n<script data-cke-temp="1">('+CKEDITOR.tools.fixDomain+")();<\/script>")),this.$.write(e),this.$.close()},find:function(e){return new CKEDITOR.dom.nodeList(this.$.querySelectorAll(e))},findOne:function(e){return(e=this.$.querySelector(e))?new CKEDITOR.dom.element(e):null},_getHtml5ShivFrag:function(){var e=this.getCustomData("html5ShivFrag");return e||(e=this.$.createDocumentFragment(),CKEDITOR.tools.enableHtml5Elements(e,!0),this.setCustomData("html5ShivFrag",e)),e}}),CKEDITOR.dom.nodeList=function(e){this.$=e},CKEDITOR.dom.nodeList.prototype={count:function(){return this.$.length},getItem:function(e){return 0>e||e>=this.$.length?null:(e=this.$[e])?new CKEDITOR.dom.node(e):null}},CKEDITOR.dom.element=function(e,t){"string"==typeof e&&(e=(t?t.$:document).createElement(e)),CKEDITOR.dom.domObject.call(this,e)},CKEDITOR.dom.element.get=function(e){return(e="string"==typeof e?document.getElementById(e)||document.getElementsByName(e)[0]:e)&&(e.$?e:new CKEDITOR.dom.element(e))},CKEDITOR.dom.element.prototype=new CKEDITOR.dom.node,CKEDITOR.dom.element.createFromHtml=function(e,t){var n=new CKEDITOR.dom.element("div",t);return n.setHtml(e),n.getFirst().remove()},CKEDITOR.dom.element.setMarker=function(e,t,n,i){var o=t.getCustomData("list_marker_id")||t.setCustomData("list_marker_id",CKEDITOR.tools.getNextNumber()).getCustomData("list_marker_id"),r=t.getCustomData("list_marker_names")||t.setCustomData("list_marker_names",{}).getCustomData("list_marker_names");return e[o]=t,r[n]=1,t.setCustomData(n,i)},CKEDITOR.dom.element.clearAllMarkers=function(e){for(var t in e)CKEDITOR.dom.element.clearMarkers(e,e[t],1)},CKEDITOR.dom.element.clearMarkers=function(e,t,n){var i,o=t.getCustomData("list_marker_names"),r=t.getCustomData("list_marker_id");for(i in o)t.removeCustomData(i);t.removeCustomData("list_marker_names"),n&&(t.removeCustomData("list_marker_id"),delete e[r])},function(){function e(e,t){return-1<(" "+e+" ").replace(r," ").indexOf(" "+t+" ")}function t(e){var t=!0;return e.$.id||(e.$.id="cke_tmp_"+CKEDITOR.tools.getNextNumber(),t=!1),function(){t||e.removeAttribute("id")}}function n(e,t){var n=CKEDITOR.tools.escapeCss(e.$.id);return"#"+n+" "+t.split(/,\s*/).join(", #"+n+" ")}function i(e){for(var t=0,n=0,i=s[e].length;n<i;n++)t+=parseFloat(this.getComputedStyle(s[e][n])||0,10)||0;return t}var o="undefined"!=typeof(o=document.createElement("_").classList)&&null!==String(o.add).match(/\[Native code\]/gi),r=/[\n\t\r]/g;CKEDITOR.tools.extend(CKEDITOR.dom.element.prototype,{type:CKEDITOR.NODE_ELEMENT,addClass:o?function(e){return this.$.classList.add(e),this}:function(t){var n=this.$.className;return n&&(e(n,t)||(n+=" "+t)),this.$.className=n||t,this},removeClass:o?function(e){var t=this.$;return t.classList.remove(e),t.className||t.removeAttribute("class"),this}:function(t){var n=this.getAttribute("class");return n&&e(n,t)&&((n=n.replace(new RegExp("(?:^|\\s+)"+t+"(?=\\
1s|$)"),"").replace(/^\s+/,""))?this.setAttribute("class",n):this.removeAttribute("class")),this},hasClass:function(t){return e(this.$.className,t)},append:function(e,t){return"string"==typeof e&&(e=this.getDocument().createElement(e)),t?this.$.insertBefore(e.$,this.$.firstChild):this.$.appendChild(e.$),e},appendHtml:function(e){if(this.$.childNodes.length){var t=new CKEDITOR.dom.element("div",this.getDocument());t.setHtml(e),t.moveChildren(this)}else this.setHtml(e)},appendText:function(e){null!=this.$.text&&CKEDITOR.env.ie&&9>CKEDITOR.env.version?this.$.text+=e:this.append(new CKEDITOR.dom.text(e))},appendBogus:function(e){if(e||CKEDITOR.env.needsBrFiller){for(e=this.getLast();e&&e.type==CKEDITOR.NODE_TEXT&&!CKEDITOR.tools.rtrim(e.getText());)e=e.getPrevious();e&&e.is&&e.is("br")||(e=this.getDocument().createElement("br"),CKEDITOR.env.gecko&&e.setAttribute("type","_moz"),this.append(e))}},breakParent:function(e,t){var n=new CKEDITOR.dom.range(this.getDocument());n.setStartAfter(this),n.setEndAfter(e);var i,o=n.extractContents(!1,t||!1);if(n.insertNode(this.remove()),CKEDITOR.env.ie&&!CKEDITOR.env.edge){for(n=new CKEDITOR.dom.element("div");i=o.getFirst();)i.$.style.backgroundColor&&(i.$.style.backgroundColor=i.$.style.backgroundColor),n.append(i);n.insertAfter(this),n.remove(!0)}else o.insertAfterNode(this)},contains:document.compareDocumentPosition?function(e){return!!(16&this.$.compareDocumentPosition(e.$))}:function(e){var t=this.$;return e.type!=CKEDITOR.NODE_ELEMENT?t.contains(e.getParent().$):t!=e.$&&t.contains(e.$)},focus:function(){function e(){try{this.$.focus()}catch(e){}}return function(t){t?CKEDITOR.tools.setTimeout(e,100,this):e.call(this)}}(),getHtml:function(){var e=this.$.innerHTML;return CKEDITOR.env.ie?e.replace(/<\?[^>]*>/g,""):e},getOuterHtml:function(){if(this.$.outerHTML)return this.$.outerHTML.replace(/<\?[^>]*>/,"");var e=this.$.ownerDocument.createElement("div");return e.appendChild(this.$.cloneNode(!0)),e.innerHTML},getClientRect:function(){var e=CKEDITOR.tools.extend({},this.$.getBoundingClientRect());return!e.width&&(e.width=e.right-e.left),!e.height&&(e.height=e.bottom-e.top),e},setHtml:CKEDITOR.env.ie&&9>CKEDITOR.env.version?function(e){try{var t=this.$;if(this.getParent())return t.innerHTML=e;var n=this.getDocument()._getHtml5ShivFrag();return n.appendChild(t),t.innerHTML=e,n.removeChild(t),e}catch(n){for(this.$.innerHTML="",(t=new CKEDITOR.dom.element("body",this.getDocument())).$.innerHTML=e,t=t.getChildren();t.count();)this.append(t.getItem(0));return e}}:function(e){return this.$.innerHTML=e},setText:function(){var e=document.createElement("p");return e.innerHTML="x",e=e.textContent,function(t){this.$[e?"textContent":"innerText"]=t}}(),getAttribute:CKEDITOR.env.ie&&(CKEDITOR.env.ie7Compat||CKEDITOR.env.quirks)?function(e){switch(e){case"class":e="className";break;case"http-equiv":e="httpEquiv";break;case"name":return this.$.name;case"tabindex":return 0!==(e=this.$.getAttribute(e,2))&&0===this.$.tabIndex&&(e=null),e;case"checked":return((e=this.$.attributes.getNamedItem(e)).specified?e.nodeValue:this.$.checked)?"checked":null;case"hspace":case"value":return this.$[e];case"style":return this.$.style.cssText;case"contenteditable":case"contentEditable":return this.$.attributes.getNamedItem("contentEditable").specified?this.$.getAttribute("contentEditable"):null}return this.$.getAttribute(e,2)}:function(e){return this.$.getAttribute(e,2)},getAttributes:function(e){var t,n={},i=this.$.attributes;for(e=CKEDITOR.tools.isArray(e)?e:[],t=0;t<i.length;t++)-1===CKEDITOR.tools.indexOf(e,i[t].name)&&(n[i[t].name]=i[t].value);return n},getChildren:function(){return new CKEDITOR.dom.nodeList(this.$.childNodes)},getComputedStyle:document.defaultView&&document.defaultView.getComputedStyle?function(e){var t=this.getWindow().$.getComputedStyle(this.$,null);return t?t.getPropertyValue(e):""}:function(e){return this.$.currentStyle[CKEDITOR.tools.cssStyleToDomStyle(e)]},getDtd:function(){var e=CKEDITOR.dtd[this.getName()];return this.getDtd=function(){return e},e},getElementsByTag:CKEDITOR.dom.document.prototype.getElementsByTag,getTabIndex:function(){var e=this.$.tabIndex;return 0!==e||CKEDITOR.dtd.$tabIndex[this.getName()]||0===parseInt(this.getAttribute("tabindex"),10)?e:-1},getText:function(){return this.$.textContent||this.$.innerText||""},getWindow:function(){return this.getDocument().getWindow()},getId:function(){return this.$.id||null},getNameAtt:function(){return this.$.name||null},getName:function(){var e=this.$.nodeName.toLowerCase();if(CKEDITOR.env.ie&&8>=document.documentMode){var t=this.$.scopeName;"HTML"!=t&&(e=t.toLowerCase()+":"+e)}return this.getName=function(){return e},this.getName()},getValue:function(){return this.$.value},getFirst:function(e){var t=this.$.firstChild;return(t=t&&new CKEDITOR.dom.node(t))&&e&&!e(t)&&(t=t.getNext(e)),t},getLast:function(e){var t=this.$.lastChild;return(t=t&&new CKEDITOR.dom.node(t))&&e&&!e(t)&&(t=t.getPrevious(e)),t}
1,getStyle:function(e){return this.$.style[CKEDITOR.tools.cssStyleToDomStyle(e)]},is:function(){var e=this.getName();if("object"==typeof arguments[0])return!!arguments[0][e];for(var t=0;t<arguments.length;t++)if(arguments[t]==e)return!0;return!1},isEditable:function(e){var t=this.getName();return!(this.isReadOnly()||"none"==this.getComputedStyle("display")||"hidden"==this.getComputedStyle("visibility")||CKEDITOR.dtd.$nonEditable[t]||CKEDITOR.dtd.$empty[t]||this.is("a")&&(this.data("cke-saved-name")||this.hasAttribute("name"))&&!this.getChildCount())&&(!1===e||!(!(e=CKEDITOR.dtd[t]||CKEDITOR.dtd.span)||!e["#"]))},isIdentical:function(e){var t=this.clone(0,1);if(e=e.clone(0,1),t.removeAttributes(["_moz_dirty","data-cke-expando","data-cke-saved-href","data-cke-saved-name"]),e.removeAttributes(["_moz_dirty","data-cke-expando","data-cke-saved-href","data-cke-saved-name"]),t.$.isEqualNode)return t.$.style.cssText=CKEDITOR.tools.normalizeCssText(t.$.style.cssText),e.$.style.cssText=CKEDITOR.tools.normalizeCssText(e.$.style.cssText),t.$.isEqualNode(e.$);if(t=t.getOuterHtml(),e=e.getOuterHtml(),CKEDITOR.env.ie&&9>CKEDITOR.env.version&&this.is("a")){var n=this.getParent();n.type==CKEDITOR.NODE_ELEMENT&&((n=n.clone()).setHtml(t),t=n.getHtml(),n.setHtml(e),e=n.getHtml())}return t==e},isVisible:function(){var e,t,n=(this.$.offsetHeight||this.$.offsetWidth)&&"hidden"!=this.getComputedStyle("visibility");return n&&CKEDITOR.env.webkit&&(!(e=this.getWindow()).equals(CKEDITOR.document.getWindow())&&(t=e.$.frameElement)&&(n=new CKEDITOR.dom.element(t).isVisible())),!!n},isEmptyInlineRemoveable:function(){if(!CKEDITOR.dtd.$removeEmpty[this.getName()])return!1;for(var e=this.getChildren(),t=0,n=e.count();t<n;t++){var i=e.getItem(t);if((i.type!=CKEDITOR.NODE_ELEMENT||!i.data("cke-bookmark"))&&(i.type==CKEDITOR.NODE_ELEMENT&&!i.isEmptyInlineRemoveable()||i.type==CKEDITOR.NODE_TEXT&&CKEDITOR.tools.trim(i.getText())))return!1}return!0},hasAttributes:CKEDITOR.env.ie&&(CKEDITOR.env.ie7Compat||CKEDITOR.env.quirks)?function(){for(var e=this.$.attributes,t=0;t<e.length;t++){var n=e[t];switch(n.nodeName){case"class":if(this.getAttribute("class"))return!0;case"data-cke-expando":continue;default:if(n.specified)return!0}}return!1}:function(){var e=this.$.attributes,t=e.length,n={"data-cke-expando":1,_moz_dirty:1};return 0<t&&(2<t||!n[e[0].nodeName]||2==t&&!n[e[1].nodeName])},hasAttribute:function(){function e(e){var t=this.$.attributes.getNamedItem(e);if("input"==this.getName())switch(e){case"class":return 0<this.$.className.length;case"checked":return!!this.$.checked;case"value":return"checkbox"==(e=this.getAttribute("type"))||"radio"==e?"on"!=this.$.value:!!this.$.value}return!!t&&t.specified}return CKEDITOR.env.ie?8>CKEDITOR.env.version?function(t){return"name"==t?!!this.$.name:e.call(this,t)}:e:function(e){return!!this.$.attributes.getNamedItem(e)}}(),hide:function(){this.setStyle("display","none")},moveChildren:function(e,t){var n,i=this.$;if(i!=(e=e.$))if(t)for(;n=i.lastChild;)e.insertBefore(i.removeChild(n),e.firstChild);else for(;n=i.firstChild;)e.appendChild(i.removeChild(n))},mergeSiblings:function(){function e(e,t,n){if(t&&t.type==CKEDITOR.NODE_ELEMENT){for(var i=[];t.data("cke-bookmark")||t.isEmptyInlineRemoveable();)if(i.push(t),!(t=n?t.getNext():t.getPrevious())||t.type!=CKEDITOR.NODE_ELEMENT)return;if(e.isIdentical(t)){for(var o=n?e.getLast():e.getFirst();i.length;)i.shift().move(e,!n);t.moveChildren(e,!n),t.remove(),o&&o.type==CKEDITOR.NODE_ELEMENT&&o.mergeSiblings()}}}return function(t){(!1===t||CKEDITOR.dtd.$removeEmpty[this.getName()]||this.is("a"))&&(e(this,this.getNext(),!0),e(this,this.getPrevious()))}}(),show:function(){this.setStyles({display:"",visibility:""})},setAttribute:function(){var e=function(e,t){return this.$.setAttribute(e,t),this};return CKEDITOR.env.ie&&(CKEDITOR.env.ie7Compat||CKEDITOR.env.quirks)?function(t,n){return"class"==t?this.$.className=n:"style"==t?this.$.style.cssText=n:"tabindex"==t?this.$.tabIndex=n:"checked"==t?this.$.checked=n:"contenteditable"==t?e.call(this,"contentEditable",n):e.apply(this,arguments),this}:CKEDITOR.env.ie8Compat&&CKEDITOR.env.secure?function(t,n){if("src"==t&&n.match(/^http:\/\//))try{e.apply(this,arguments)}catch(e){}
1else e.apply(this,arguments);return this}:e}(),setAttributes:function(e){for(var t in e)this.setAttribute(t,e[t]);return this},setValue:function(e){return this.$.value=e,this},removeAttribute:CKEDITOR.env.ie&&(CKEDITOR.env.ie7Compat||CKEDITOR.env.quirks)?function(e){"class"==e?e="className":"tabindex"==e?e="tabIndex":"contenteditable"==e&&(e="contentEditable"),this.$.removeAttribute(e)}:function(e){this.$.removeAttribute(e)},removeAttributes:function(e){if(CKEDITOR.tools.isArray(e))for(var t=0;t<e.length;t++)this.removeAttribute(e[t]);else for(t in e=e||this.getAttributes())e.hasOwnProperty(t)&&this.removeAttribute(t)},removeStyle:function(e){if((i=this.$.style).removeProperty||"border"!=e&&"margin"!=e&&"padding"!=e)i.removeProperty?i.removeProperty(e):i.removeAttribute(CKEDITOR.tools.cssStyleToDomStyle(e)),this.$.style.cssText||this.removeAttribute("style");else{var t,n=["top","left","right","bottom"];"border"==e&&(t=["color","style","width"]);for(var i=[],o=0;o<n.length;o++)if(t)for(var r=0;r<t.length;r++)i.push([e,n[o],t[r]].join("-"));else i.push([e,n[o]].join("-"));for(e=0;e<i.length;e++)this.removeStyle(i[e])}},setStyle:function(e,t){return this.$.style[CKEDITOR.tools.cssStyleToDomStyle(e)]=t,this},setStyles:function(e){for(var t in e)this.setStyle(t,e[t]);return this},setOpacity:function(e){CKEDITOR.env.ie&&9>CKEDITOR.env.version?(e=Math.round(100*e),this.setStyle("filter",100<=e?"":"progid:DXImageTransform.Microsoft.Alpha(opacity="+e+")")):this.setStyle("opacity",e)},unselectable:function(){if(this.setStyles(CKEDITOR.tools.cssVendorPrefix("user-select","none")),CKEDITOR.env.ie){this.setAttribute("unselectable","on");for(var e=this.getElementsByTag("*"),t=0,n=e.count();t<n;t++)e.getItem(t).setAttribute("unselectable","on")}},getPositionedAncestor:function(){for(var e=this;"html"!=e.getName();){if("static"!=e.getComputedStyle("position"))return e;e=e.getParent()}return null},getDocumentPosition:function(e){var t=0,n=0,i=this.getDocument(),o=i.getBody(),r="BackCompat"==i.$.compatMode;if(!document.documentElement.getBoundingClientRect||CKEDITOR.env.ie&&8===CKEDITOR.env.version)for(l=this,u=null;l&&"body"!=l.getName()&&"html"!=l.getName();){for(t+=l.$.offsetLeft-l.$.scrollLeft,n+=l.$.offsetTop-l.$.scrollTop,l.equals(this)||(t+=l.$.clientLeft||0,n+=l.$.clientTop||0);u&&!u.equals(l);)t-=u.$.scrollLeft,n-=u.$.scrollTop,u=u.getParent();u=l,l=(s=l.$.offsetParent)?new CKEDITOR.dom.element(s):null}else{var s=this.$.getBoundingClientRect(),a=i.$.documentElement,l=a.clientTop||o.$.clientTop||0,u=a.clientLeft||o.$.clientLeft||0,c=!0;CKEDITOR.env.ie&&(c=i.getDocumentElement().contains(this),i=i.getBody().contains(this),c=r&&i||!r&&c),c&&(CKEDITOR.env.webkit||CKEDITOR.env.ie&&12<=CKEDITOR.env.version?(t=o.$.scrollLeft||a.scrollLeft,n=o.$.scrollTop||a.scrollTop):(t=(n=r?o.$:a).scrollLeft,n=n.scrollTop),t=s.left+t-u,n=s.top+n-l)}return e&&(s=this.getWindow(),l=e.getWindow(),!s.equals(l)&&s.$.frameElement&&(t+=(e=new CKEDITOR.dom.element(s.$.frameElement).getDocumentPosition(e)).x,n+=e.y)),document.documentElement.getBoundingClientRect||!CKEDITOR.env.gecko||r||(t+=this.$.clientLeft?1:0,n+=this.$.clientTop?1:0),{x:t,y:n}},scrollIntoView:function(e){var t=this.getParent();if(t)do{if((t.$.clientWidth&&t.$.clientWidth<t.$.scrollWidth||t.$.clientHeight&&t.$.clientHeight<t.$.scrollHeight)&&!t.is("body")&&this.scrollIntoParent(t,e,1),t.is("html")){var n=t.getWindow();try{var i=n.$.frameElement;i&&(t=new CKEDITOR.dom.element(i))}catch(e){}}}while(t=t.getParent())},scrollIntoParent:function(e,t,n){var i,o,r,s;function a(t,n){/body|html/.test(e.getName())?e.getWindow().$.scrollBy(t,n):(e.$.scrollLeft+=t,e.$.scrollTop+=n)}function l(e,t){var n={x:0,y:0};if(!e.is(c?"body":"html")){var i=e.$.getBoundingClientRect();n.x=i.left,n.y=i.top}return(i=e.getWindow()).equals(t)||(i=l(CKEDITOR.dom.element.get(i.$.frameElement),t),n.x+=i.x,n.y+=i.y),n}function u(e,t){return parseInt(e.getComputedStyle("margin-"+t)||0,10)||0}!e&&(e=this.getWindow());var c="BackCompat"==(r=e.getDocument()).$.compatMode;e instanceof CKEDITOR.dom.window&&(e=c?r.getBody():r.getDocumentElement()),CKEDITOR.env.webkit&&(r=this.getEditor(!1))&&(r._.previousScrollTop=null),o=l(this,r=e.getWindow());var d=l(e,r),h=this.$.offsetHeight;i=this.$.offsetWidth;var f=e.$.clientHeight,p=e.$.clientWidth;r=o.x-u(this,"left")-d.x||0,s=o.y-u(this,"top")-d.y||0,i=o.x+i+u(this,"right")-(d.x+p)||0,o=o.y+h+u(this,"bottom")-(d.y+f)||0,(0>s||0<o)&&a(0,!0===t?s:!1===t?o:0>s?s:o),n&&(0>r||0<i)&&a(0>r?r:i,0)},setState:function(e,t,n){switch(t=t||"cke",e){case CKEDITOR.TRISTATE_ON:this.addClass(t+"_on"),this.removeClass(t+"_off"),this.removeClass(t+"_disabled"),n&&this.setAttribute("aria-pressed",!0),n&&this.removeAttribute("aria-disabled");break;case CKEDITOR.TRISTATE_DISABLED:this.addClass(t+"_disabled"),this.removeClass(t+"_off"),this.removeClass(t+"_on"),n&&this.setAttribute("aria-disabled",!0),n&&this.removeAttribute("aria-pressed");break;default:this.addClass(t+"_off"),this.removeClass(t+"_on"),this.removeClass(t+"_disabled"),n&&this.removeAttribute("aria-pressed"),n&&this.removeAttribute("aria-disabled")}},getFrameDocument:function(){var e=this.$;try{e.contentWindow.document}catch(t){e.src=e.src}return e&&new CKEDITOR.dom.document(e.contentWindow.document)},copyAttributes:function(e,t){var n=this.$.attributes;t=t||{};for(var i=0;i<n.length;i++){var o,r=n[i],s=r.nodeName.toLowerCase();s in t||("checked"==s&&(o=this.getAttribute(s))?e.setAttribute(s,o):CKEDITOR.env.ie&&!this.hasAttribute(s)||(null===(o=this.getAttribute(s))&&(o=r.nodeValue),e.setAttribute(s,o)))}""!==this.$.style.cssText&&(e.$.style.cssText=this.$.style.cssText)},renameNode:function(e){if(this.getName()!=e){var t=this.getDocument();e=new CKEDITOR.dom.element(e,t),this.copyAttributes(e),this.moveChildren(e),this.getParent(!0)&&this.$.parentNode.replaceChild(e.$,this.$),e.$["data-cke-expando"]=this.$["data-cke-expando"],this.$=e.$,delete this.getName}},getChild:function(){function e(e,t){var n=e.childNodes;if(0<=t&&t<n.length)return n[t]}return function(t){var n=this.$;
1if(t.slice)for(t=t.slice();0<t.length&&n;)n=e(n,t.shift());else n=e(n,t);return n?new CKEDITOR.dom.node(n):null}}(),getChildCount:function(){return this.$.childNodes.length},disableContextMenu:function(){function e(e){return e.type==CKEDITOR.NODE_ELEMENT&&e.hasClass("cke_enable_context_menu")}this.on("contextmenu",function(t){t.data.getTarget().getAscendant(e,!0)||t.data.preventDefault()})},getDirection:function(e){return e?this.getComputedStyle("direction")||this.getDirection()||this.getParent()&&this.getParent().getDirection(1)||this.getDocument().$.dir||"ltr":this.getStyle("direction")||this.getAttribute("dir")},data:function(e,t){return e="data-"+e,void 0===t?this.getAttribute(e):(!1===t?this.removeAttribute(e):this.setAttribute(e,t),null)},getEditor:function(e){var t,n,i,o=CKEDITOR.instances;for(t in e=e||void 0===e,o)if((n=o[t]).element.equals(this)&&n.elementMode!=CKEDITOR.ELEMENT_MODE_APPENDTO||!e&&(i=n.editable())&&(i.equals(this)||i.contains(this)))return n;return null},find:function(e){var i=t(this);return e=new CKEDITOR.dom.nodeList(this.$.querySelectorAll(n(this,e))),i(),e},findOne:function(e){var i=t(this);return e=this.$.querySelector(n(this,e)),i(),e?new CKEDITOR.dom.element(e):null},forEach:function(e,t,n){if(!(n||t&&this.type!=t))var i=e(this);if(!1!==i){n=this.getChildren();for(var o=0;o<n.count();o++)(i=n.getItem(o)).type==CKEDITOR.NODE_ELEMENT?i.forEach(e,t):t&&i.type!=t||e(i)}}});var s={width:["border-left-width","border-right-width","padding-left","padding-right"],height:["border-top-width","border-bottom-width","padding-top","padding-bottom"]};CKEDITOR.dom.element.prototype.setSize=function(e,t,n){"number"==typeof t&&(!n||CKEDITOR.env.ie&&CKEDITOR.env.quirks||(t-=i.call(this,e)),this.setStyle(e,t+"px"))},CKEDITOR.dom.element.prototype.getSize=function(e,t){var n=Math.max(this.$["offset"+CKEDITOR.tools.capitalize(e)],this.$["client"+CKEDITOR.tools.capitalize(e)])||0;return t&&(n-=i.call(this,e)),n}}(),CKEDITOR.dom.documentFragment=function(e){e=e||CKEDITOR.document,this.$=e.type==CKEDITOR.NODE_DOCUMENT?e.$.createDocumentFragment():e},CKEDITOR.tools.extend(CKEDITOR.dom.documentFragment.prototype,CKEDITOR.dom.element.prototype,{type:CKEDITOR.NODE_DOCUMENT_FRAGMENT,insertAfterNode:function(e){(e=e.$).parentNode.insertBefore(this.$,e.nextSibling)},getHtml:function(){var e=new CKEDITOR.dom.element("div");return this.clone(1,1).appendTo(e),e.getHtml().replace(/\s*data-cke-expando=".*?"/g,"")}},!0,{append:1,appendBogus:1,clone:1,getFirst:1,getHtml:1,getLast:1,getParent:1,getNext:1,getPrevious:1,appendTo:1,moveChildren:1,insertBefore:1,insertAfterNode:1,replace:1,trim:1,type:1,ltrim:1,rtrim:1,getDocument:1,getChildCount:1,getChild:1,getChildren:1}),function(){function e(e,t){var n=this.range;if(this._.end)return null;if(!this._.start){if(this._.start=1,n.collapsed)return this.end(),null;n.optimize()}var i,o=n.startContainer;i=n.endContainer;var r,s=n.startOffset,a=n.endOffset,l=this.guard,u=this.type,c=e?"getPreviousSourceNode":"getNextSourceNode";if(!e&&!this._.guardLTR){var d=i.type==CKEDITOR.NODE_ELEMENT?i:i.getParent(),h=i.type==CKEDITOR.NODE_ELEMENT?i.getChild(a):i.getNext();this._.guardLTR=function(e,t){return!(t&&d.equals(e)||h&&e.equals(h)||e.type==CKEDITOR.NODE_ELEMENT&&t&&e.equals(n.root))}}if(e&&!this._.guardRTL){var f=o.type==CKEDITOR.NODE_ELEMENT?o:o.getParent(),p=o.type==CKEDITOR.NODE_ELEMENT?s?o.getChild(s-1):null:o.getPrevious();this._.guardRTL=function(e,t){return!(t&&f.equals(e)||p&&e.equals(p)||e.type==CKEDITOR.NODE_ELEMENT&&t&&e.equals(n.root))}}var g=e?this._.guardRTL:this._.guardLTR;for(r=l?function(e,t){return!1!==g(e,t)&&l(e,t)}:g,this.current?i=this.current[c](!1,u,r):(e?i.type==CKEDITOR.NODE_ELEMENT&&(i=0<a?i.getChild(a-1):!1===r(i,!0)?null:i.getPreviousSourceNode(!0,u,r)):(i=o).type==CKEDITOR.NODE_ELEMENT&&((i=i.getChild(s))||(i=!1===r(o,!0)?null:o.getNextSourceNode(!0,u,r))),i&&!1===r(i)&&(i=null));i&&!this._.end;){if(this.current=i,this.evaluator&&!1===this.evaluator(i)){if(t&&this.evaluator)return!1}else if(!t)return i;i=i[c](!1,u,r)}return this.end(),this.current=null}function t(t){for(var n,i=null;n=e.call(this,t);)i=n;return i}CKEDITOR.dom.walker=CKEDITOR.tools.createClass({$:function(e){this.range=e,this._={}},proto:{end:function(){this._.end=1},next:function(){return e.call(this)},previous:function(){return e.call(this,1)},checkForward:function(){return!1!==e.call(this,0,1)},checkBackward:function(){return!1!==e.call(this,1,1)},lastForward:function(){return t.call(this)},lastBackward:function(){return t.call(this,1)},reset:function(){delete this.current,this._={}}}});var n={block:1,"list-item":1,table:1,"table-row-group":1,"table-header-group":1,"table-footer-group":1,"table-row":1,"table-column-group":1,"table-column":1,"table-cell":1,"table-caption":1},i={absolute:1,fixed:1};CKEDITOR.dom.element.prototype.isBlockBoundary=function(e){return!("none"!=this.getComputedStyle("float")||this.getComputedStyle("position")in i||!n[this.getComputedStyle("display")])||!!(this.is(CKEDITOR.dtd.$block)||e&&this.is(e))},CKEDITOR.dom.walker.blockBoundary=function(e){return function(t){return!(t.type==CKEDITOR.NODE_ELEMENT&&t.isBlockBoundary(e))}},CKEDITOR.dom.walker.listItemBoundary=function(){return this.blockBoundary({br:1})},CKEDITOR.dom.walker.bookmark=function(e,t){function n(e){return e&&e.getName&&"span"==e.getName()&&e.data("cke-bookmark")}return function(i){var o,r;return o=i&&i.type!=CKEDITOR.NODE_ELEMENT&&(r=i.getParent())&&n(r),o=e?o:o||n(i),!!(t^o)}}
1,CKEDITOR.dom.walker.whitespaces=function(e){return function(t){var n;return t&&t.type==CKEDITOR.NODE_TEXT&&(n=!CKEDITOR.tools.trim(t.getText())||CKEDITOR.env.webkit&&t.getText()==CKEDITOR.dom.selection.FILLING_CHAR_SEQUENCE),!!(e^n)}},CKEDITOR.dom.walker.invisible=function(e){var t=CKEDITOR.dom.walker.whitespaces(),n=CKEDITOR.env.webkit?1:0;return function(i){return t(i)?i=1:(i.type==CKEDITOR.NODE_TEXT&&(i=i.getParent()),i=i.$.offsetWidth<=n),!!(e^i)}},CKEDITOR.dom.walker.nodeType=function(e,t){return function(n){return!!(t^n.type==e)}},CKEDITOR.dom.walker.bogus=function(e){function t(e){return!r(e)&&!s(e)}return function(n){var i=CKEDITOR.env.needsBrFiller?n.is&&n.is("br"):n.getText&&o.test(n.getText());return i&&(i=n.getParent(),n=n.getNext(t),i=i.isBlockBoundary()&&(!n||n.type==CKEDITOR.NODE_ELEMENT&&n.isBlockBoundary())),!!(e^i)}},CKEDITOR.dom.walker.temp=function(e){return function(t){return t.type!=CKEDITOR.NODE_ELEMENT&&(t=t.getParent()),t=t&&t.hasAttribute("data-cke-temp"),!!(e^t)}};var o=/^[\t\r\n ]*(?: |\xa0)$/,r=CKEDITOR.dom.walker.whitespaces(),s=CKEDITOR.dom.walker.bookmark(),a=CKEDITOR.dom.walker.temp(),l=function(e){return s(e)||r(e)||e.type==CKEDITOR.NODE_ELEMENT&&e.is(CKEDITOR.dtd.$inline)&&!e.is(CKEDITOR.dtd.$empty)};CKEDITOR.dom.walker.ignored=function(e){return function(t){return t=r(t)||s(t)||a(t),!!(e^t)}};var u=CKEDITOR.dom.walker.ignored();CKEDITOR.dom.walker.empty=function(e){return function(t){for(var n=0,i=t.getChildCount();n<i;++n)if(!u(t.getChild(n)))return!!e;return!e}};var c=CKEDITOR.dom.walker.empty(),d=CKEDITOR.dom.walker.validEmptyBlockContainers=CKEDITOR.tools.extend(function(e){var t,n={};for(t in e)CKEDITOR.dtd[t]["#"]&&(n[t]=1);return n}(CKEDITOR.dtd.$block),{caption:1,td:1,th:1});CKEDITOR.dom.walker.editable=function(e){return function(t){return t=!u(t)&&!!(t.type==CKEDITOR.NODE_TEXT||t.type==CKEDITOR.NODE_ELEMENT&&(t.is(CKEDITOR.dtd.$inline)||t.is("hr")||"false"==t.getAttribute("contenteditable")||!CKEDITOR.env.needsBrFiller&&t.is(d)&&c(t))),!!(e^t)}},CKEDITOR.dom.element.prototype.getBogus=function(){var e=this;do{e=e.getPreviousSourceNode()}while(l(e));return!(!e||!(CKEDITOR.env.needsBrFiller?e.is&&e.is("br"):e.getText&&o.test(e.getText())))&&e}}(),CKEDITOR.dom.range=function(e){this.endOffset=this.endContainer=this.startOffset=this.startContainer=null,this.collapsed=!0;var t=e instanceof CKEDITOR.dom.document;this.document=t?e:e.getDocument(),this.root=t?e.getBody():e},function(){function e(e){e.collapsed=e.startContainer&&e.endContainer&&e.startContainer.equals(e.endContainer)&&e.startOffset==e.endOffset}function t(e,t,n,i,o){function r(e,t,n,i){var r=n?e.getPrevious():e.getNext();return i&&s?r:(l||i?t.append(e.clone(!0,o),n):(e.remove(),a&&t.append(e)),r)}e.optimizeBookmark();var s=0===t,a=1==t,l=2==t;t=l||a;var u,c,d,h,f,p,g=e.startContainer,m=e.endContainer,v=e.startOffset,E=e.endOffset;if(l&&m.type==CKEDITOR.NODE_TEXT&&g.equals(m))g=e.document.createText(g.substring(v,E)),n.append(g);else{m.type==CKEDITOR.NODE_TEXT?l?p=!0:m=m.split(E):0<m.getChildCount()?E>=m.getChildCount()?(m=m.getChild(E-1),c=!0):m=m.getChild(E):h=c=!0,g.type==CKEDITOR.NODE_TEXT?l?f=!0:g.split(v):0<g.getChildCount()?0===v?(g=g.getChild(v),u=!0):g=g.getChild(v-1):d=u=!0;for(var T,y,C,b=g.getParents(),D=m.getParents(),I=function(){var e,t,n,i=Math.min(b.length,D.length);for(e=0;e<i;e++)if(t=b[e],n=D[e],!t.equals(n))return e;return e-1}(),O=b.length-1,R=D.length-1,_=n,w=-1,k=I;k<=O;k++){for(C=(y=b[k]).getNext(),k!=O||y.equals(D[k])&&O<R?t&&(T=_.append(y.clone(0,o))):u?r(y,_,!1,d):f&&_.append(e.document.createText(y.substring(v)));C;){if(C.equals(D[k])){w=k;break}C=r(C,_)}_=T}for(_=n,k=I;k<=R;k++)if(C=(n=D[k]).getPrevious(),n.equals(b[k]))t&&(_=_.getChild(0));else{if(k!=R||n.equals(b[k])&&R<O?t&&(T=_.append(n.clone(0,o))):c?r(n,_,!1,h):p&&_.append(e.document.createText(n.substring(0,E))),k>w)for(;C;)C=r(C,_,!0);_=T}l||function(){var t=I-1,n=d&&h&&!g.equals(m);t<O-1||t<R-1||n?(n?e.moveToPosition(m,CKEDITOR.POSITION_BEFORE_START):R==t+1&&c?e.moveToPosition(D[t],CKEDITOR.POSITION_BEFORE_END):e.moveToPosition(D[t+1],CKEDITOR.POSITION_BEFORE_START),i&&(t=b[t+1])&&t.type==CKEDITOR.NODE_ELEMENT&&((n=CKEDITOR.dom.element.createFromHtml('<span data-cke-bookmark="1" style="display:none"> </span>',e.document)).insertAfter(t),t.mergeSiblings(!1),e.moveToBookmark({startNode:n}))):e.collapse(!0)}()}}
1function n(){var e=!1,t=CKEDITOR.dom.walker.whitespaces(),n=CKEDITOR.dom.walker.bookmark(!0),i=CKEDITOR.dom.walker.bogus();return function(r){return!(!n(r)&&!t(r))||(i(r)&&!e?e=!0:!(r.type==CKEDITOR.NODE_TEXT&&(r.hasAscendant("pre")||CKEDITOR.tools.trim(r.getText()).length)||r.type==CKEDITOR.NODE_ELEMENT&&!r.is(o)))}}function i(e){return function(){var t;return this[e?"getPreviousNode":"getNextNode"](function(e){return!t&&l(e)&&(t=e),a(e)&&!(r(e)&&e.equals(t))})}}var o={abbr:1,acronym:1,b:1,bdo:1,big:1,cite:1,code:1,del:1,dfn:1,em:1,font:1,i:1,ins:1,label:1,kbd:1,q:1,samp:1,small:1,span:1,strike:1,strong:1,sub:1,sup:1,tt:1,u:1,var:1},r=CKEDITOR.dom.walker.bogus(),s=/^[\t\r\n ]*(?: |\xa0)$/,a=CKEDITOR.dom.walker.editable(),l=CKEDITOR.dom.walker.ignored(!0);CKEDITOR.dom.range.prototype={clone:function(){var e=new CKEDITOR.dom.range(this.root);return e._setStartContainer(this.startContainer),e.startOffset=this.startOffset,e._setEndContainer(this.endContainer),e.endOffset=this.endOffset,e.collapsed=this.collapsed,e},collapse:function(e){e?(this._setEndContainer(this.startContainer),this.endOffset=this.startOffset):(this._setStartContainer(this.endContainer),this.startOffset=this.endOffset),this.collapsed=!0},cloneContents:function(e){var n=new CKEDITOR.dom.documentFragment(this.document);return this.collapsed||t(this,2,n,!1,"undefined"==typeof e||e),n},deleteContents:function(e){this.collapsed||t(this,0,null,e)},extractContents:function(e,n){var i=new CKEDITOR.dom.documentFragment(this.document);return this.collapsed||t(this,1,i,e,"undefined"==typeof n||n),i},createBookmark:function(e){var t,n,i,o,r=this.collapsed;return(t=this.document.createElement("span")).data("cke-bookmark",1),t.setStyle("display","none"),t.setHtml(" "),e&&(i="cke_bm_"+CKEDITOR.tools.getNextNumber(),t.setAttribute("id",i+(r?"C":"S"))),r||((n=t.clone()).setHtml(" "),e&&n.setAttribute("id",i+"E"),(o=this.clone()).collapse(),o.insertNode(n)),(o=this.clone()).collapse(!0),o.insertNode(t),n?(this.setStartAfter(t),this.setEndBefore(n)):this.moveToPosition(t,CKEDITOR.POSITION_AFTER_END),{startNode:e?i+(r?"C":"S"):t,endNode:e?i+"E":n,serializable:e,collapsed:r}},createBookmark2:function(){function e(e){var t,i=e.container,o=e.offset,r=o;
1if((t=(t=i).type!=CKEDITOR.NODE_ELEMENT||0===r||r==t.getChildCount()?0:t.getChild(r-1).type==CKEDITOR.NODE_TEXT&&t.getChild(r).type==CKEDITOR.NODE_TEXT)&&(o=(i=i.getChild(o-1)).getLength()),i.type==CKEDITOR.NODE_ELEMENT&&0<o){e:{for(t=i;o--;)if(0<=(r=t.getChild(o).getIndex(!0))){o=r;break e}o=-1}o+=1}if(i.type==CKEDITOR.NODE_TEXT){for(t=i,r=0;(t=t.getPrevious())&&t.type==CKEDITOR.NODE_TEXT;)r+=t.getText().replace(CKEDITOR.dom.selection.FILLING_CHAR_SEQUENCE,"").length;t=r,i.getText()?o+=t:(r=i.getPrevious(n),t?(o=t,i=r?r.getNext():i.getParent().getFirst()):(i=i.getParent(),o=r?r.getIndex(!0)+1:0))}e.container=i,e.offset=o}function t(e,t){var n=t.getCustomData("cke-fillingChar");if(n){var i=e.container;n.equals(i)&&(e.offset-=CKEDITOR.dom.selection.FILLING_CHAR_SEQUENCE.length,0>=e.offset&&(e.offset=i.getIndex(),e.container=i.getParent()))}}var n=CKEDITOR.dom.walker.nodeType(CKEDITOR.NODE_TEXT,!0);return function(n){var i=this.collapsed,o={container:this.startContainer,offset:this.startOffset},r={container:this.endContainer,offset:this.endOffset};return n&&(e(o),t(o,this.root),i||(e(r),t(r,this.root))),{start:o.container.getAddress(n),end:i?null:r.container.getAddress(n),startOffset:o.offset,endOffset:r.offset,normalized:n,collapsed:i,is2:!0}}}(),moveToBookmark:function(e){if(e.is2){var t=this.document.getByAddress(e.start,e.normalized),n=e.startOffset,i=e.end&&this.document.getByAddress(e.end,e.normalized);e=e.endOffset,this.setStart(t,n),i?this.setEnd(i,e):this.collapse(!0)}else t=(n=e.serializable)?this.document.getById(e.startNode):e.startNode,e=n?this.document.getById(e.endNode):e.endNode,this.setStartBefore(t),t.remove(),e?(this.setEndBefore(e),e.remove()):this.collapse(!0)},getBoundaryNodes:function(){var e,t=this.startContainer,n=this.endContainer,i=this.startOffset,o=this.endOffset;if(t.type==CKEDITOR.NODE_ELEMENT)if((e=t.getChildCount())>i)t=t.getChild(i);else if(1>e)t=t.getPreviousSourceNode();else{for(t=t.$;t.lastChild;)t=t.lastChild;t=(t=new CKEDITOR.dom.node(t)).getNextSourceNode()||t}if(n.type==CKEDITOR.NODE_ELEMENT)if((e=n.getChildCount())>o)n=n.getChild(o).getPreviousSourceNode(!0);else if(1>e)n=n.getPreviousSourceNode();else{for(n=n.$;n.lastChild;)n=n.lastChild;n=new CKEDITOR.dom.node(n)}return t.getPosition(n)&CKEDITOR.POSITION_FOLLOWING&&(t=n),{startNode:t,endNode:n}},getCommonAncestor:function(e,t){var n=this.startContainer,i=this.endContainer;n=n.equals(i)?e&&n.type==CKEDITOR.NODE_ELEMENT&&this.startOffset==this.endOffset-1?n.getChild(this.startOffset):n:n.getCommonAncestor(i);return t&&!n.is?n.getParent():n},optimize:function(){var e=this.startContainer,t=this.startOffset;e.type!=CKEDITOR.NODE_ELEMENT&&(t?t>=e.getLength()&&this.setStartAfter(e):this.setStartBefore(e)),e=this.endContainer,t=this.endOffset,e.type!=CKEDITOR.NODE_ELEMENT&&(t?t>=e.getLength()&&this.setEndAfter(e):this.setEndBefore(e))},optimizeBookmark:function(){var e=this.startContainer,t=this.endContainer;e.is&&e.is("span")&&e.data("cke-bookmark")&&this.setStartAt(e,CKEDITOR.POSITION_BEFORE_START),t&&t.is&&t.is("span")&&t.data("cke-bookmark")&&this.setEndAt(t,CKEDITOR.POSITION_AFTER_END)},trim:function(e,t){var n=this.startContainer,i=this.startOffset,o=this.collapsed;if((!e||o)&&n&&n.type==CKEDITOR.NODE_TEXT){if(i)if(i>=n.getLength())i=n.getIndex()+1,n=n.getParent();else{var r=n.split(i);i=n.getIndex()+1,n=n.getParent();this.startContainer.equals(this.endContainer)?this.setEnd(r,this.endOffset-this.startOffset):n.equals(this.endContainer)&&(this.endOffset+=1)}else i=n.getIndex(),n=n.getParent();if(this.setStart(n,i),o)return void this.collapse(!0)}n=this.endContainer,i=this.endOffset,t||o||!n||n.type!=CKEDITOR.NODE_TEXT||(i?(i>=n.getLength()||n.split(i),i=n.getIndex()+1):i=n.getIndex(),n=n.getParent(),this.setEnd(n,i))},enlarge:function(e,t){function n(e){return e&&e.type==CKEDITOR.NODE_ELEMENT&&e.hasAttribute("contenteditable")?null:e}var i=new RegExp(/[^\s\ufeff]/);switch(e){case CKEDITOR.ENLARGE_INLINE:var o=1;case CKEDITOR.ENLARGE_ELEMENT:var r=function(e,t){var n,o;for((n=new CKEDITOR.dom.range(p)).setStart(e,t),n.setEndAt(p,CKEDITOR.POSITION_BEFORE_END),(n=new CKEDITOR.dom.walker(n)).guard=function(e){return!(e.type==CKEDITOR.NODE_ELEMENT&&e.isBlockBoundary())};o=n.next();){if(o.type!=CKEDITOR.NODE_TEXT)return!1;if(h=o!=e?o.getText():o.substring(t),i.test(h))return!1}return!0};if(this.collapsed)break;var s,a,l,u,c,d,h,f=this.getCommonAncestor(),p=this.root,g=!1;d=this.startContainer;var m=this.startOffset;for(d.type==CKEDITOR.NODE_TEXT?(m&&(g=!!(d=!CKEDITOR.tools.trim(d.substring(0,m)).length&&d)),d&&((u=
1d.getPrevious())||(l=d.getParent()))):(m&&(u=d.getChild(m-1)||d.getLast()),u||(l=d)),l=n(l);l||u;){if(l&&!u){if(!c&&l.equals(f)&&(c=!0),o?l.isBlockBoundary():!p.contains(l))break;g&&"inline"==l.getComputedStyle("display")||(g=!1,c?s=l:this.setStartBefore(l)),u=l.getPrevious()}for(;u;)if(d=!1,u.type==CKEDITOR.NODE_COMMENT)u=u.getPrevious();else{if(u.type==CKEDITOR.NODE_TEXT)h=u.getText(),i.test(h)&&(u=null),d=/[\s\ufeff]$/.test(h);else if((u.$.offsetWidth>(CKEDITOR.env.webkit?1:0)||t&&u.is("br"))&&!u.data("cke-bookmark"))if(g&&CKEDITOR.dtd.$removeEmpty[u.getName()]){if(h=u.getText(),i.test(h))u=null;else{m=u.$.getElementsByTagName("*");for(var v,E=0;v=m[E++];)if(!CKEDITOR.dtd.$removeEmpty[v.nodeName.toLowerCase()]){u=null;break}}u&&(d=!!h.length)}else u=null;if(d&&(g?c?s=l:l&&this.setStartBefore(l):g=!0),u){if(d=u.getPrevious(),!l&&!d){l=u,u=null;break}u=d}else l=null}l&&(l=n(l.getParent()))}for(d=this.endContainer,m=this.endOffset,l=u=null,c=g=!1,d.type==CKEDITOR.NODE_TEXT?CKEDITOR.tools.trim(d.substring(m)).length?g=!0:(g=!d.getLength(),m==d.getLength()?(u=d.getNext())||(l=d.getParent()):r(d,m)&&(l=d.getParent())):(u=d.getChild(m))||(l=d);l||u;){if(l&&!u){if(!c&&l.equals(f)&&(c=!0),o?l.isBlockBoundary():!p.contains(l))break;g&&"inline"==l.getComputedStyle("display")||(g=!1,c?a=l:l&&this.setEndAfter(l)),u=l.getNext()}for(;u;){if(d=!1,u.type==CKEDITOR.NODE_TEXT)h=u.getText(),r(u,0)||(u=null),d=/^[\s\ufeff]/.test(h);else if(u.type==CKEDITOR.NODE_ELEMENT){if((0<u.$.offsetWidth||t&&u.is("br"))&&!u.data("cke-bookmark"))if(g&&CKEDITOR.dtd.$removeEmpty[u.getName()]){if(h=u.getText(),i.test(h))u=null;else for(m=u.$.getElementsByTagName("*"),E=0;v=m[E++];)if(!CKEDITOR.dtd.$removeEmpty[v.nodeName.toLowerCase()]){u=null;break}u&&(d=!!h.length)}else u=null}else d=1;if(d&&g&&(c?a=l:this.setEndAfter(l)),u){if(d=u.getNext(),!l&&!d){l=u,u=null;break}u=d}else l=null}l&&(l=n(l.getParent()))}s&&a&&(f=s.contains(a)?a:s,this.setStartBefore(f),this.setEndAfter(f));break;case CKEDITOR.ENLARGE_BLOCK_CONTENTS:case CKEDITOR.ENLARGE_LIST_ITEM_CONTENTS:l=new CKEDITOR.dom.range(this.root),p=this.root,l.setStartAt(p,CKEDITOR.POSITION_AFTER_START),l.setEnd(this.startContainer,this.startOffset),l=new CKEDITOR.dom.walker(l);var T,y,C=CKEDITOR.dom.walker.blockBoundary(e==CKEDITOR.ENLARGE_LIST_ITEM_CONTENTS?{br:1}:null),b=null,D=function(e){if(e.type==CKEDITOR.NODE_ELEMENT&&"false"==e.getAttribute("contenteditable"))if(b){if(b.equals(e))return void(b=null)}else b=e;else if(b)return;var t=C(e);return t||(T=e),t};o=function(e){var t=D(e);return!t&&e.is&&e.is("br")&&(y=e),t};if(l.guard=D,l=l.lastBackward(),T=T||p,this.setStartAt(T,!T.is("br")&&(!l&&this.checkStartOfBlock()||l&&T.contains(l))?CKEDITOR.POSITION_AFTER_START:CKEDITOR.POSITION_AFTER_END),e==CKEDITOR.ENLARGE_LIST_ITEM_CONTENTS){l=this.clone(),l=new CKEDITOR.dom.walker(l);var I=CKEDITOR.dom.walker.whitespaces(),O=CKEDITOR.dom.walker.bookmark();if(l.evaluator=function(e){return!I(e)&&!O(e)},(l=l.previous())&&l.type==CKEDITOR.NODE_ELEMENT&&l.is("br"))break}(l=this.clone()).collapse(),l.setEndAt(p,CKEDITOR.POSITION_BEFORE_END),(l=new CKEDITOR.dom.walker(l)).guard=e==CKEDITOR.ENLARGE_LIST_ITEM_CONTENTS?o:D,T=b=y=null,l=l.lastForward(),T=T||p,this.setEndAt(T,!l&&this.checkEndOfBlock()||l&&T.contains(l)?CKEDITOR.POSITION_BEFORE_END:CKEDITOR.POSITION_BEFORE_START),y&&this.setEndAfter(y)}},shrink:function(e,t,n){if(!this.collapsed){e=e||CKEDITOR.SHRINK_TEXT;var i=this.clone(),o=this.startContainer,r=this.endContainer,s=this.startOffset,a=this.endOffset,l=1,u=1;o&&o.type==CKEDITOR.NODE_TEXT&&(s?s>=o.getLength()?i.setStartAfter(o):(i.setStartBefore(o),l=0):i.setStartBefore(o)),r&&r.type==CKEDITOR.NODE_TEXT&&(a?a>=r.getLength()?i.setEndAfter(r):(i.setEndAfter(r),u=0):i.setEndBefore(r));i=new CKEDITOR.dom.walker(i);var c,d=CKEDITOR.dom.walker.bookmark();return i.evaluator=function(t){return t.type==(e==CKEDITOR.SHRINK_ELEMENT?CKEDITOR.NODE_ELEMENT:CKEDITOR.NODE_TEXT)},i.guard=function(t,i){return!!d(t)||!(e==CKEDITOR.SHRINK_ELEMENT&&t.type==CKEDITOR.NODE_TEXT||i&&t.equals(c)||!1===n&&t.type==CKEDITOR.NODE_ELEMENT&&t.isBlockBoundary()||t.type==CKEDITOR.NODE_ELEMENT&&t.hasAttribute("contenteditable"))&&(i||t.type!=CKEDITOR.NODE_ELEMENT||(c=t),!0)},l&&(o=i[e==CKEDITOR.SHRINK_ELEMENT?"lastForward":"next"]())&&this.setStartAt(o,t?CKEDITOR.POSITION_AFTER_START:CKEDITOR.POSITION_BEFORE_START),u&&(i.reset(),(i=i[e==CKEDITOR.SHRINK_ELEMENT?"lastBackward":"previous"]())&&this.setEndAt(i,t?CKEDITOR.POSITION_BEFORE_END:CKEDITOR.POSITION_AFTER_END)),!(!l&&!u)}},insertNode:function(e){this.optimizeBookmark(),this.trim(!1,!0);var t=this.startContainer,n=t.getChild(this.startOffset);n?e.insertBefore(n):t.append(e),e.getParent()&&e.getParent().equals(this.endContainer)&&this.endOffset++,this.setStartBefore(e)},moveToPosition:function(e,t){this.setStartAt(e,t),this.collapse(!0)},moveToRange:function(e){this.setStart(e.startContainer,e.startOffset),this.setEnd(e.endContainer,e.endOffset)},selectNodeContents:function(e){this.setStart(e,0),this.setEnd(e,e.type==CKEDITOR.NODE_TEXT?e.getLength():e.getChildCount())},setStart:function(t,n){t.type==CKEDITOR.NODE_ELEMENT&&CKEDITOR.dtd.$empty[t.getName()]&&(n=t.getIndex(),t=t.getParent()),this._setStartContainer(t),this.startOffset=n,this.endContainer||(this._setEndContainer(t),this.endOffset=n),e(this)},setEnd:function(t,n){t.type==CKEDITOR.NODE_ELEMENT&&CKEDITOR.dtd.$empty[t.getName()]&&(n=t.getIndex()+1,t=t.getParent()),this._setEndContainer(t),this.endOffset=n,this.startContainer||(this._setStartContainer(t),this.startOffset=n),e(this)},setStartAfter:function(e){this.setStart(e.getParent(),e.getIndex()+1)},setStartBefore:function(e){this.setStart(e.getParent(),e.getIndex())},setEndAfter:function(e){this.setEnd(e.getParent(),e.getIndex()+1)},setEndBefore:function(e){this.setEnd(e.getParent(),e.getIndex())},setStartAt:function(t,n){switch(n){case CKEDITOR.POSITION_AFTER_START:this.setStart(t,0);break;case CKEDITOR.POSITION_BEFORE_END:t.type==CKEDITOR.NODE_TEXT?this.setStart(t,t.getLength()):this.setStart(t,t.getChildCount());break;case CKEDITOR.POSITION_BEFORE_START:this.setStartBefore(t);break;case CKEDITOR.POSITION_AFTER_END:this.setStartAfter(t)}e(this)},setEndAt:function(t,n){switch(n){case CKEDITOR.POSITION_AFTER_START:this.setEnd(t,0);break;case CKEDITOR.POSITION_BEFORE_END:t.type==CKEDITOR.NODE_TEXT?this.setEnd(t,t.getLength()):this.setEnd(t,t.getChildCount());break;case CKEDITOR.POSITION_BEFORE_START:this.setEndBefore(t);break;case CKEDITOR.POSITION_AFTER_END:this.setEndAfter(t)}e(this)},fixBlock:function(e,t){var n=this.createBookmark(),i=this.document.createElement(t);this.collapse(e),this.enlarge(CKEDITOR.ENLARGE_BLOCK_CONTENTS),this.extractContents().appendTo(i),i.trim(),this.insertNode(i);var o=i.getBogus();return o&&o.remove(),i.appendBogus(),this.moveToBookmark(n),i},splitBlock:function(e,t){var n=new CKEDITOR.dom.elementPath(this.startContainer,this.root),i=new CKEDITOR.dom.elementPath(this.endContainer,this.root),o=n.block,r=i.block,s=null;return n.blockLimit.equals(i.blockLimit)?("br"!=e&&(o||(o=this.fixBlock(!0,e),r=new CKEDITOR.dom.elementPath(this.endContainer,this.root).block),r||(r=this.fixBlock(!1,e))),n=o&&this.checkStartOfBlock(),i=r&&this.checkEndOfBlock(),this.deleteContents(),o&&o.equals(r)&&(i?(s=new CKEDITOR.dom.elementPath(this.startContainer,this.root),this.moveToPosition(r,CKEDITOR.POSITION_AFTER_END),r=null):n?(s=new CKEDITOR.dom.elementPath(this.startContainer,this.root),this.moveToPosition(o,CKEDITOR.POSITION_BEFORE_START),o=null):(r=this.splitElement(o,t||!1),o.is("ul","ol")||o.appendBogus())),{previousBlock:o,nextBlock:r,wasStartOfBlock:n,wasEndOfBlock:i,elementPath:s}):null},splitElement:function(e,t){if(!this.collapsed)return null;this.setEndAt(e,CKEDITOR.POSITION_BEFORE_END);var n=this.extractContents(!1,t||!1),i=e.clone(!1,t||!1);return n.appendTo(i),i.insertAfter(e),this.moveToPosition(e,CKEDITOR.POSITION_AFTER_END),i},removeEmptyBlocksAtEnd:function(){function e(e){return function(i){return!(t(i)||n(i)||i.type==CKEDITOR.NODE_ELEMENT&&i.isEmptyInlineRemoveable()||e.is("table")&&i.is("caption"))}}
1var t=CKEDITOR.dom.walker.whitespaces(),n=CKEDITOR.dom.walker.bookmark(!1);return function(t){for(var n,i=this.createBookmark(),o=this[t?"endPath":"startPath"](),r=o.block||o.blockLimit;r&&!r.equals(o.root)&&!r.getFirst(e(r));)n=r.getParent(),this[t?"setEndAt":"setStartAt"](r,CKEDITOR.POSITION_AFTER_END),r.remove(1),r=n;this.moveToBookmark(i)}}(),startPath:function(){return new CKEDITOR.dom.elementPath(this.startContainer,this.root)},endPath:function(){return new CKEDITOR.dom.elementPath(this.endContainer,this.root)},checkBoundaryOfElement:function(e,t){var n=t==CKEDITOR.START,i=this.clone();return i.collapse(n),i[n?"setStartAt":"setEndAt"](e,n?CKEDITOR.POSITION_AFTER_START:CKEDITOR.POSITION_BEFORE_END),(i=new CKEDITOR.dom.walker(i)).evaluator=function(e){var t=CKEDITOR.dom.walker.whitespaces(),n=CKEDITOR.dom.walker.bookmark(1);return function(i){return!(!n(i)&&!t(i))||!e&&r(i)||i.type==CKEDITOR.NODE_ELEMENT&&i.is(CKEDITOR.dtd.$removeEmpty)}}(n),i[n?"checkBackward":"checkForward"]()},checkStartOfBlock:function(){var e=this.startContainer,t=this.startOffset;return CKEDITOR.env.ie&&t&&e.type==CKEDITOR.NODE_TEXT&&(e=CKEDITOR.tools.ltrim(e.substring(0,t)),s.test(e)&&this.trim(0,1)),this.trim(),e=new CKEDITOR.dom.elementPath(this.startContainer,this.root),(t=this.clone()).collapse(!0),t.setStartAt(e.block||e.blockLimit,CKEDITOR.POSITION_AFTER_START),(e=new CKEDITOR.dom.walker(t)).evaluator=n(),e.checkBackward()},checkEndOfBlock:function(){var e=this.endContainer,t=this.endOffset;return CKEDITOR.env.ie&&e.type==CKEDITOR.NODE_TEXT&&(e=CKEDITOR.tools.rtrim(e.substring(t)),s.test(e)&&this.trim(1,0)),this.trim(),e=new CKEDITOR.dom.elementPath(this.endContainer,this.root),(t=this.clone()).collapse(!1),t.setEndAt(e.block||e.blockLimit,CKEDITOR.POSITION_BEFORE_END),(e=new CKEDITOR.dom.walker(t)).evaluator=n(),e.checkForward()},getPreviousNode:function(e,t,n){var i=this.clone();return i.collapse(1),i.setStartAt(n||this.root,CKEDITOR.POSITION_AFTER_START),(n=new CKEDITOR.dom.walker(i)).evaluator=e,n.guard=t,n.previous()},getNextNode:function(e,t,n){var i=this.clone();return i.collapse(),i.setEndAt(n||this.root,CKEDITOR.POSITION_BEFORE_END),(n=new CKEDITOR.dom.walker(i)).evaluator=e,n.guard=t,n.next()},checkReadOnly:function(){function e(e,t){for(;e;){if(e.type==CKEDITOR.NODE_ELEMENT){if("false"==e.getAttribute("contentEditable")&&!e.data("cke-editable"))return 0;if(e.is("html")||"true"==e.getAttribute("contentEditable")&&(e.contains(t)||e.equals(t)))break}e=e.getParent()}return 1}return function(){var t=this.startContainer,n=this.endContainer;return!(e(t,n)&&e(n,t))}}(),moveToElementEditablePosition:function(e,t){if(e.type==CKEDITOR.NODE_ELEMENT&&!e.isEditable(!1))return this.moveToPosition(e,t?CKEDITOR.POSITION_AFTER_END:CKEDITOR.POSITION_BEFORE_START),!0;for(var n=0;e;){if(e.type==CKEDITOR.NODE_TEXT){t&&this.endContainer&&this.checkEndOfBlock()&&s.test(e.getText())?this.moveToPosition(e,CKEDITOR.POSITION_BEFORE_START):this.moveToPosition(e,t?CKEDITOR.POSITION_AFTER_END:CKEDITOR.POSITION_BEFORE_START),n=1;break}if(e.type==CKEDITOR.NODE_ELEMENT)if(e.isEditable())this.moveToPosition(e,t?CKEDITOR.POSITION_BEFORE_END:CKEDITOR.POSITION_AFTER_START),n=1;else if(t&&e.is("br")&&this.endContainer&&this.checkEndOfBlock())this.moveToPosition(e,CKEDITOR.POSITION_BEFORE_START);else if("false"==e.getAttribute("contenteditable")&&e.is(CKEDITOR.dtd.$block))return this.setStartBefore(e),this.setEndAfter(e),!0;var i=e,o=n,r=void 0;i.type==CKEDITOR.NODE_ELEMENT&&i.isEditable(!1)&&(r=i[t?"getLast":"getFirst"](l)),o||r||(r=i[t?"getPrevious":"getNext"](l)),e=r}return!!n},moveToClosestEditablePosition:function(e,t){var n,i,o,r=0,s=[CKEDITOR.POSITION_AFTER_END,CKEDITOR.POSITION_BEFORE_START];return e?(n=new CKEDITOR.dom.range(this.root)).moveToPosition(e,s[t?0:1]):n=this.clone(),e&&!e.is(CKEDITOR.dtd.$block)?r=1:(i=n[t?"getNextEditableNode":"getPreviousEditableNode"]())&&(r=1,(o=i.type==CKEDITOR.NODE_ELEMENT)&&i.is(CKEDITOR.dtd.$block)&&"false"==i.getAttribute("contenteditable")?(n.setStartAt(i,CKEDITOR.POSITION_BEFORE_START),n.setEndAt(i,CKEDITOR.POSITION_AFTER_END)):!CKEDITOR.env.needsBrFiller&&o&&i.is(CKEDITOR.dom.walker.validEmptyBlockContainers
1)?(n.setEnd(i,0),n.collapse()):n.moveToPosition(i,s[t?1:0])),r&&this.moveToRange(n),!!r},moveToElementEditStart:function(e){return this.moveToElementEditablePosition(e)},moveToElementEditEnd:function(e){return this.moveToElementEditablePosition(e,!0)},getEnclosedNode:function(){if((e=this.clone()).optimize(),e.startContainer.type!=CKEDITOR.NODE_ELEMENT||e.endContainer.type!=CKEDITOR.NODE_ELEMENT)return null;var e=new CKEDITOR.dom.walker(e),t=CKEDITOR.dom.walker.bookmark(!1,!0),n=CKEDITOR.dom.walker.whitespaces(!0);e.evaluator=function(e){return n(e)&&t(e)};var i=e.next();return e.reset(),i&&i.equals(e.previous())?i:null},getTouchedStartNode:function(){var e=this.startContainer;return this.collapsed||e.type!=CKEDITOR.NODE_ELEMENT?e:e.getChild(this.startOffset)||e},getTouchedEndNode:function(){var e=this.endContainer;return this.collapsed||e.type!=CKEDITOR.NODE_ELEMENT?e:e.getChild(this.endOffset-1)||e},getNextEditableNode:i(),getPreviousEditableNode:i(1),scrollIntoView:function(){var e,t,n,i=new CKEDITOR.dom.element.createFromHtml("<span> </span>",this.document),o=this.clone();o.optimize(),(n=o.startContainer.type==CKEDITOR.NODE_TEXT)?(t=o.startContainer.getText(),e=o.startContainer.split(o.startOffset),i.insertAfter(o.startContainer)):o.insertNode(i),i.scrollIntoView(),n&&(o.startContainer.setText(t),e.remove()),i.remove()},_setStartContainer:function(e){this.startContainer=e},_setEndContainer:function(e){this.endContainer=e},_find:function(e,t){var n,i,o,r,s=this.getCommonAncestor(),a=this.getBoundaryNodes(),l=[];if(s&&s.find)for(i=s.find(e),n=0;n<i.count();n++)s=i.getItem(n),(t||!s.isReadOnly())&&(o=s.getPosition(a.startNode)&CKEDITOR.POSITION_FOLLOWING||a.startNode.equals(s),r=s.getPosition(a.endNode)&CKEDITOR.POSITION_PRECEDING+CKEDITOR.POSITION_IS_CONTAINED,o&&r&&l.push(s));return l}}}(),CKEDITOR.POSITION_AFTER_START=1,CKEDITOR.POSITION_BEFORE_END=2,CKEDITOR.POSITION_BEFORE_START=3,CKEDITOR.POSITION_AFTER_END=4,CKEDITOR.ENLARGE_ELEMENT=1,CKEDITOR.ENLARGE_BLOCK_CONTENTS=2,CKEDITOR.ENLARGE_LIST_ITEM_CONTENTS=3,CKEDITOR.ENLARGE_INLINE=4,CKEDITOR.START=1,CKEDITOR.END=2,CKEDITOR.SHRINK_ELEMENT=1,CKEDITOR.SHRINK_TEXT=2,function(){function e(e){1>arguments.length||(this.range=e,this.forceBrBreak=0,this.enlargeBr=1,this.enforceRealBlocks=0,this._||(this._={}))}function t(e,n,i,o){e:{null==o&&(o=function(e){var t=[];return e.forEach(function(e){if("true"==e.getAttribute("contenteditable"))return t.push(e),!1},CKEDITOR.NODE_ELEMENT,!0),t}(i));for(var r;r=o.shift();)if(r.getDtd().p){o={element:r,remaining:o};break e}o=null}return o?(r=CKEDITOR.filter.instances[o.element.data("cke-filter")])&&!r.check(n)?t(e,n,i,o.remaining):((n=new CKEDITOR.dom.range(o.element)).selectNodeContents(o.element),(n=n.createIterator()).enlargeBr=e.enlargeBr,n.enforceRealBlocks=e.enforceRealBlocks,n.activeFilter=n.filter=r,e._.nestedEditable={element:o.element,container:i,remaining:o.remaining,iterator:n},1):0}function n(e,t,n){return!!t&&((e=e.clone()).collapse(!n),e.checkBoundaryOfElement(t,n?CKEDITOR.START:CKEDITOR.END))}var i=/^[\r\n\t ]+$/,o=CKEDITOR.dom.walker.bookmark(!1,!0),r=CKEDITOR.dom.walker.whitespaces(!0),s=function(e){return o(e)&&r(e)},a={dd:1,dt:1,li:1};e.prototype={getNextParagraph:function(e){var r,l,u,c,d;if(e=e||"p",this._.nestedEditable){if(r=this._.nestedEditable.iterator.getNextParagraph(e))return this.activeFilter=this._.nestedEditable.iterator.activeFilter,r;if(this.activeFilter=this.filter,t(this,e,this._.nestedEditable.container,this._.nestedEditable.remaining))return this.activeFilter=this._.nestedEditable.iterator.activeFilter,this._.nestedEditable.iterator.getNextParagraph(e);this._.nestedEditable=null}if(!this.range.root.getDtd()[e])return null;if(!this._.started){var h=this.range.clone();l=h.startPath();var f=h.endPath(),p=!h.collapsed&&n(h,l.block),g=!h.collapsed&&n(h,f.block,1);h.shrink(CKEDITOR.SHRINK_ELEMENT,!0),p&&h.setStartAt(l.block,CKEDITOR.POSITION_BEFORE_END),g&&h.setEndAt(f.block,CKEDITOR.POSITION_AFTER_START),l=h.endContainer.hasAscendant("pre",!0)||h.startContainer.hasAscendant("pre",!0),h.enlarge(this.forceBrBreak&&!l||!this.enlargeBr?CKEDITOR.ENLARGE_LIST_ITEM_CONTENTS:CKEDITOR.ENLARGE_BLOCK_CONTENTS),h.collapsed||(l=new CKEDITOR.dom.walker(h.clone()),f=CKEDITOR.dom.walker.bookmark(!0,!0),l.evaluator=f,this._.nextNode=l.next(),(l=new CKEDITOR.dom.walker(h.clone())).evaluator=f,l=l.previous(),this._.lastNode=l.getNextSourceNode(!0,null,h.root),this._.lastNode&&this._.lastNode.type==CKEDITOR.NODE_TEXT&&!CKEDITOR.tools.trim(this._.lastNode.getText())&&this._.lastNode.getParent().isBlockBoundary()&&((f=this.range.clone()).moveToPosition(this._.lastNode,CKEDITOR.POSITION_AFTER_END),f.checkEndOfBlock()&&(f=new CKEDITOR.dom.elementPath(f.endContainer,f.root),this._.lastNode=(f.block||f.blockLimit).getNextSourceNode(!0))),this._.lastNode&&h.root.contains(this._.lastNode)||(this._.lastNode=this._.docEndMarker=h.document.createText(""),this._.lastNode.insertAfter(l)),h=null),this._.started=1,l=h}for(f=this._.nextNode,h=this._.lastNode,this._.nextNode=null;f;){p=0,g=f.hasAscendant("pre");var m=f.type!=CKEDITOR.NODE_ELEMENT,v=0;
1if(m)f.type==CKEDITOR.NODE_TEXT&&i.test(f.getText())&&(m=0);else{var E=f.getName();if(CKEDITOR.dtd.$block[E]&&"false"==f.getAttribute("contenteditable")){t(this,e,r=f);break}if(f.isBlockBoundary(this.forceBrBreak&&!g&&{br:1})){if("br"==E)m=1;else if(!l&&!f.getChildCount()&&"hr"!=E){r=f,u=f.equals(h);break}l&&(l.setEndAt(f,CKEDITOR.POSITION_BEFORE_START),"br"!=E&&(this._.nextNode=f)),p=1}else{if(f.getFirst()){l||(l=this.range.clone()).setStartAt(f,CKEDITOR.POSITION_BEFORE_START),f=f.getFirst();continue}m=1}}if(m&&!l&&(l=this.range.clone()).setStartAt(f,CKEDITOR.POSITION_BEFORE_START),u=(!p||m)&&f.equals(h),l&&!p)for(;!f.getNext(s)&&!u;){if((E=f.getParent()).isBlockBoundary(this.forceBrBreak&&!g&&{br:1})){p=1,m=0,u||E.equals(h),l.setEndAt(E,CKEDITOR.POSITION_BEFORE_END);break}m=1,u=(f=E).equals(h),v=1}if(m&&l.setEndAt(f,CKEDITOR.POSITION_AFTER_END),(u=!(f=this._getNextSourceNode(f,v,h)))||p&&l)break}if(!r){if(!l)return this._.docEndMarker&&this._.docEndMarker.remove(),this._.nextNode=null;f=(r=new CKEDITOR.dom.elementPath(l.startContainer,l.root)).blockLimit,p={div:1,th:1,td:1},!(r=r.block)&&f&&!this.enforceRealBlocks&&p[f.getName()]&&l.checkStartOfBlock()&&l.checkEndOfBlock()&&!f.equals(l.root)?r=f:!r||this.enforceRealBlocks&&r.is(a)?(r=this.range.document.createElement(e),l.extractContents().appendTo(r),r.trim(),l.insertNode(r),c=d=!0):"li"!=r.getName()?l.checkStartOfBlock()&&l.checkEndOfBlock()||(r=r.clone(!1),l.extractContents().appendTo(r),r.trim(),c=!(d=l.splitBlock()).wasStartOfBlock,d=!d.wasEndOfBlock,l.insertNode(r)):u||(this._.nextNode=r.equals(h)?null:this._getNextSourceNode(l.getBoundaryNodes().endNode,1,h))}return c&&(c=r.getPrevious())&&c.type==CKEDITOR.NODE_ELEMENT&&("br"==c.getName()?c.remove():c.getLast()&&"br"==c.getLast().$.nodeName.toLowerCase()&&c.getLast().remove()),d&&(c=r.getLast())&&c.type==CKEDITOR.NODE_ELEMENT&&"br"==c.getName()&&(!CKEDITOR.env.needsBrFiller||c.getPrevious(o)||c.getNext(o))&&c.remove(),this._.nextNode||(this._.nextNode=u||r.equals(h)||!h?null:this._getNextSourceNode(r,1,h)),r},_getNextSourceNode:function(e,t,n){function i(e){return!(e.equals(n)||e.equals(r))}var r=this.range.root;for(e=e.getNextSourceNode(t,null,i);!o(e);)e=e.getNextSourceNode(t,null,i);return e}},CKEDITOR.dom.range.prototype.createIterator=function(){return new e(this)}}(),CKEDITOR.command=function(e,t){var n;this.uiItems=[],this.exec=function(n){return!(this.state==CKEDITOR.TRISTATE_DISABLED||!this.checkAllowed())&&(this.editorFocus&&e.focus(),!1===this.fire("exec")||!1!==t.exec.call(this,e,n))},this.refresh=function(e,n){return!(this.readOnly||!e.readOnly)||(this.context&&!n.isContextFor(this.context)||!this.checkAllowed(!0)?(this.disable(),!0):(this.startDisabled||this.enable(),this.modes&&!this.modes[e.mode]&&this.disable(),!1===this.fire("refresh",{editor:e,path:n})||t.refresh&&!1!==t.refresh.apply(this,arguments)))},this.checkAllowed=function(t){return t||"boolean"!=typeof n?n=e.activeFilter.checkFeature(this):n},CKEDITOR.tools.extend(this,t,{modes:{wysiwyg:1},editorFocus:1,contextSensitive:!!t.context,state:CKEDITOR.TRISTATE_DISABLED}),CKEDITOR.event.call(this)},CKEDITOR.command.prototype={enable:function(){this.state==CKEDITOR.TRISTATE_DISABLED&&this.checkAllowed()&&this.setState(this.preserveState&&"undefined"!=typeof this.previousState?this.previousState:CKEDITOR.TRISTATE_OFF)},disable:function(){this.setState(CKEDITOR.TRISTATE_DISABLED)},setState:function(e){return!(this.state==e||e!=CKEDITOR.TRISTATE_DISABLED&&!this.checkAllowed())&&(this.previousState=this.state,this.state=e,this.fire("state"),!0)},toggleState:function(){this.state==CKEDITOR.TRISTATE_OFF?this.setState(CKEDITOR.TRISTATE_ON):this.state==CKEDITOR.TRISTATE_ON&&this.setState(CKEDITOR.TRISTATE_OFF)}},CKEDITOR.event.implementOn(CKEDITOR.command.prototype),CKEDITOR.ENTER_P=1,CKEDITOR.ENTER_BR=2,CKEDITOR.ENTER_DIV=3,CKEDITOR.config={customConfig:"config.js",autoUpdateElement:!0,language:"",defaultLanguage:"en",contentsLangDirection:"",enterMode:CKEDITOR.ENTER_P,forceEnterMode:!1,shiftEnterMode:CKEDITOR.ENTER_BR,docType:"<!DOCTYPE html>",bodyId:"",bodyClass:"",fullPage:!1,height:200,contentsCss:CKEDITOR.getUrl("contents.css"),extraPlugins:"",removePlugins:"",protectedSource:[],tabIndex:0,width:"",baseFloatZIndex:1e4,blockedKeystrokes:[CKEDITOR.CTRL+66,CKEDITOR.CTRL+73,CKEDITOR.CTRL+85]},function(){function e(e,t,n,i,o){var r,a,l;for(r in e=[],t){a="boolean"==typeof(a=t[r])?{}:"function"==typeof a?{match:a}:O(a),"$"!=r.charAt(0)&&(a.elements=r),n&&(a.featureName=n.toLowerCase());var u=a;u.elements=s(u.elements,/\s+/)||null,u.propertiesOnly=u.propertiesOnly||!0===u.elements;var c=/\s*,\s*/,d=void 0;for(d in k){u[d]=s(u[d],c)||null;var h=u,f=K[d],p=s(u[K[d]],c),m=u[d],v=[],E=!0,T=void 0;for(T in p?E=!1:p={},m)"!"==T.charAt(0)&&(T=T.slice(1),v.push(T),p[T]=!0,E=!1);for(;T=v.pop();)m[T]=m["!"+T],delete m["!"+T];h[f]=!E&&p||null}u.match=u.match||null,i.push(a),e.push(a)}for(t=o.elements,o=o.generic,n=0,i=e.length;n<i;
1++n){for(c in a=!0===(r=O(e[n])).classes||!0===r.styles||!0===r.attributes,u=r,d=f=c=void 0,k)u[c]=g(u[c]);for(d in h=!0,K){for(m in p=[],m=void 0,f=u[c=K[d]])-1<m.indexOf("*")?p.push(new RegExp("^"+m.replace(/\*/g,".*")+"$")):p.push(m);(f=p).length&&(u[c]=f,h=!1)}if(u.nothingRequired=h,u.noProperties=!(u.attributes||u.classes||u.styles),!0===r.elements||null===r.elements)o[a?"unshift":"push"](r);else for(l in u=r.elements,delete r.elements,u)t[l]?t[l][a?"unshift":"push"](r):t[l]=[r]}}function t(e,t,i,o){if((!e.match||e.match(t))&&(o||function(e,t){if(e.nothingRequired)return!0;var n,i,o,r;if(o=e.requiredClasses)for(r=t.classes,n=0;n<o.length;++n)if("string"==typeof(i=o[n])){if(-1==CKEDITOR.tools.indexOf(r,i))return!1}else if(!CKEDITOR.tools.checkIfAnyArrayItemMatches(r,i))return!1;return a(t.styles,e.requiredStyles)&&a(t.attributes,e.requiredAttributes)}(e,t))&&(e.propertiesOnly||(i.valid=!0),i.allAttributes||(i.allAttributes=n(e.attributes,t.attributes,i.validAttributes)),i.allStyles||(i.allStyles=n(e.styles,t.styles,i.validStyles)),!i.allClasses)){if(e=e.classes,t=t.classes,o=i.validClasses,e)if(!0===e)e=!0;else{for(var r,s=0,l=t.length;s<l;++s)o[r=t[s]]||(o[r]=e(r));e=!1}else e=!1;i.allClasses=e}}function n(e,t,n){if(!e)return!1;if(!0===e)return!0;for(var i in t)n[i]||(n[i]=e(i));return!1}function i(e,t,n){if(!e.match||e.match(t)){if(e.noProperties)return!1;if(n.hadInvalidAttribute=o(e.attributes,t.attributes)||n.hadInvalidAttribute,n.hadInvalidStyle=o(e.styles,t.styles)||n.hadInvalidStyle,e=e.classes,t=t.classes,e){for(var i=!1,r=!0===e,s=t.length;s--;)(r||e(t[s]))&&(t.splice(s,1),i=!0);e=i}else e=!1;n.hadInvalidClass=e||n.hadInvalidClass}}function o(e,t){if(!e)return!1;var n,i=!1,o=!0===e;for(n in t)(o||e(n))&&(delete t[n],i=!0);return i}function r(e,t,n){return!(e.disabled||e.customConfig&&!n||!t)&&(e._.cachedChecks={},!0)}function s(e,t){if(!e)return!1;if(!0===e)return e;if("string"==typeof e)return"*"==(e=R(e))||CKEDITOR.tools.convertArrayToObject(e.split(t));if(CKEDITOR.tools.isArray(e))return!!e.length&&CKEDITOR.tools.convertArrayToObject(e);var n,i={},o=0;for(n in e)i[n]=e[n],o++;return!!o&&i}function a(e,t){if(!t)return!0;for(var n,i=0;i<t.length;++i)if("string"==typeof(n=t[i])){if(!(n in e))return!1}else if(!CKEDITOR.tools.checkIfAnyObjectPropertyMatches(e,n))return!1;return!0}function l(e){if(!e)return{};e=e.split(/\s*,\s*/).sort();for(var t={};e.length;)t[e.shift()]="cke-test";return t}function u(e){var t,n,i,o,r={},s=1;for(e=R(e);t=e.match(S);)(n=t[2])?(i=c(n,"styles"),o=c(n,"attrs"),n=c(n,"classes")):i=o=n=null,r["$"+s++]={elements:t[1],classes:n,styles:i,attributes:o},e=e.slice(t[0].length);return r}function c(e,t){var n=e.match(x[t]);return n?R(n[1]):null}function d(e){var t=e.styleBackup=e.attributes.style,n=e.classBackup=e.attributes.class;e.styles||(e.styles=CKEDITOR.tools.parseCssText(t||"",1)),e.classes||(e.classes=n?n.split(/\s+/):[])}function h(e,n,o,r){var s,a=0;if(r.toHtml&&(n.name=n.name.replace(N,"$1")),r.doCallbacks&&e.elementCallbacks){e:{for(var l,u=0,c=(s=e.elementCallbacks).length;u<c;++u)if(l=s[u](n)){s=l;break e}s=void 0}if(s)return s}if(r.doTransform&&(s=e._.transformations[n.name])){for(d(n),u=0;u<s.length;++u)T(e,n,s[u]);f(n)}if(r.doFilter){e:{u=n.name,e=(c=e._).allowedRules.elements[u],s=c.allowedRules.generic,u=c.disallowedRules.elements[u],c=c.disallowedRules.generic,l=r.skipRequired;var h,g,m={valid:!1,validAttributes:{},validClasses:{},validStyles:{},allAttributes:!1,allClasses:!1,allStyles:!1,hadInvalidAttribute:!1,hadInvalidClass:!1,hadInvalidStyle:!1};if(e||s){if(d(n),u)for(h=0,g=u.length;h<g;++h)if(!1===i(u[h],n,m)){e=null;break e}if(c)for(h=0,g=c.length;h<g;++h)i(c[h],n,m);if(e)for(h=0,g=e.length;h<g;++h)t(e[h],n,m,l);if(s)for(h=0,g=s.length;h<g;++h)t(s[h],n,m,l);e=m}else e=null}if(!e||!e.valid)return o.push(n),1;g=e.validAttributes;var v=e.validStyles;s=e.validClasses;u=n.attributes;var E=n.styles;c=n.classes;l=n.classBackup;var y,C,b=n.styleBackup,D=[],I=(m=[],/^data-cke-/);if(h=!1,delete u.style,delete u.class,delete n.classBackup,delete n.styleBackup,!e.allAttributes)for(y in u)g[y]||I.test(y)&&(y==(C=y.replace(/^data-cke-saved-/,""))||g[C])||(delete u[y],h=!0);if(!e.allStyles||e.hadInvalidStyle){for(y in E)e.allStyles||v[y]?D.push(y+":"+E[y]):h=!0;D.length&&(u.style=D.sort().join("; "))}else b&&(u.style=b);if(!e.allClasses||e.hadInvalidClass){for(y=0;y<c.length;++y)(e.allClasses||s[c[y]])&&m.push(c[y]);m.length&&(u.class=m.sort().join(" ")),l&&m.length<l.split(/\s+/).length&&(h=!0)}else l&&(u.class=l);if(h&&(a=1),!r.skipFinalValidation&&!p(n))return o.push(n),1}return r.toHtml&&(n.name=n.name.replace(A,"cke:$1")),a}function f(e){var t,n=e.attributes;delete n.style,delete n.class,(t=CKEDITOR.tools.writeCssText(e.styles,!0))&&(n.style=t),e.classes.length&&(n.class=e.classes.sort().join(" "))}function p(e){switch(e.name){case"a":if(!(e.children.length||e.attributes.name||e.attributes.id))return!1;break;case"img":if(!e.attributes.src)return!1}return!0}function g(e){if(!e)return!1;if(!0===e)return!0;var t=function(e){var t,n=[];for(t in e)-1<t.indexOf("*")&&n.push(t.replace(/\*/g,".*"));return n.length?new RegExp("^(?:"+n.join("|")+")$"):null}(e);return function(n){return n in e||t&&n.match(t)}}function m(){return new CKEDITOR.htmlParser.element("br")}function v(e){return e.type==CKEDITOR.NODE_ELEMENT&&("br"==e.name||I.$block[e.name])}function E(e,t,n){var i=e.name;if(I.$empty[i]||!e.children.length)"hr"==i&&"br"==t?e.replaceWith(m()):(e.parent&&n.push({check:"it",el:e.parent}),e.remove());else if(I.$block[i]||"tr"==i)if("br"==t)e.previous&&!v(e.previous)&&(t=m()).insertBefore(e),e.next&&!v(e.next)&&(t=m()).insertAfter(e),e.replaceWithChildren();else{var o;i=e.children;e:{o=I[t];for(var r,s=0,a=i.length;s<a;++s)if((r=i[s]).type==CKEDITOR.NODE_ELEMENT&&!o[r.name]){o=!1;break e}o=!0}if(o)e.name=t,e.attributes={},n.push({check:"parent-down",el:e});else{var l,u;for(s=(o=e.parent).type==CKEDITOR.NODE_DOCUMENT_FRAGMENT||"body"==o.name,a=i.length;0<a;)r=i[--a],s&&(r.type==CKEDITOR.NODE_TEXT||r.type==CKEDITOR.NODE_ELEMENT&&I.$inline[r.name])?(l||((l=new CKEDITOR.htmlParser.element(t)).insertAfter(e),n.push({check:"parent-down",el:l})),l.add(r,0)):(l=null,u=I[o.name]||I.span,r.insertAfter(e),o.type==CKEDITOR.NODE_DOCUMENT_FRAGMENT||r.type!=CKEDITOR.NODE_ELEMENT||u[r.name]||n.push({check:"el-up",el:r}));e.remove()}}else i in{style:1,script:1}?e.remove():(e.parent&&n.push({check:"it",el:e.parent}),e.replaceWithChildren())}function T(e,t,n){var i,o;for(i=0;i<n.length;
1++i)if(!((o=n[i]).check&&!e.check(o.check,!1)||o.left&&!o.left(t))){o.right(t,w);break}}function y(e,t){var n,i,o,r,s=t.getDefinition(),a=s.attributes,l=s.styles;if(e.name!=s.element)return!1;for(n in a)if("class"==n){for(s=a[n].split(/\s+/),o=e.classes.join("|");r=s.pop();)if(-1==o.indexOf(r))return!1}else if(e.attributes[n]!=a[n])return!1;for(i in l)if(e.styles[i]!=l[i])return!1;return!0}function C(e,t){var n,i;return"string"==typeof e?n=e:e instanceof CKEDITOR.style?i=e:(n=e[0],i=e[1]),[{element:n,left:i,right:function(e,n){n.transform(e,t)}}]}function b(e){return function(t){return y(t,e)}}function D(e){return function(t,n){n[e](t)}}var I=CKEDITOR.dtd,O=CKEDITOR.tools.copy,R=CKEDITOR.tools.trim,_=["","p","br","div"];CKEDITOR.FILTER_SKIP_TREE=2,CKEDITOR.filter=function(e){if(this.allowedContent=[],this.disallowedContent=[],this.elementCallbacks=null,this.disabled=!1,this.editor=null,this.id=CKEDITOR.tools.getNextNumber(),this._={allowedRules:{elements:{},generic:[]},disallowedRules:{elements:{},generic:[]},transformations:{},cachedTests:{}},CKEDITOR.filter.instances[this.id]=this,e instanceof CKEDITOR.editor){e=this.editor=e,this.customConfig=!0;var t=e.config.allowedContent;!0===t?this.disabled=!0:(t||(this.customConfig=!1),this.allow(t,"config",1),this.allow(e.config.extraAllowedContent,"extra",1),this.allow(_[e.enterMode]+" "+_[e.shiftEnterMode],"default",1),this.disallow(e.config.disallowedContent))}else this.customConfig=!1,this.allow(e,"default",1)},CKEDITOR.filter.instances={},CKEDITOR.filter.prototype={allow:function(t,n,i){if(!r(this,t,i))return!1;var o,s;if("string"==typeof t)t=u(t);else if(t instanceof CKEDITOR.style){if(t.toAllowedContentRules)return this.allow(t.toAllowedContentRules(this.editor),n,i);o=t.getDefinition(),t={},i=o.attributes,t[o.element]=o={styles:o.styles,requiredStyles:o.styles&&CKEDITOR.tools.objectKeys(o.styles)},i&&(i=O(i),o.classes=i.class?i.class.split(/\s+/):null,o.requiredClasses=o.classes,delete i.class,o.attributes=i,o.requiredAttributes=i&&CKEDITOR.tools.objectKeys(i))}else if(CKEDITOR.tools.isArray(t)){for(o=0;o<t.length;++o)s=this.allow(t[o],n,i);return s}return e(this,t,n,this.allowedContent,this._.allowedRules),!0},applyTo:function(e,t,n,i){if(this.disabled)return!1;var o,r,s,a=this,l=[],u=this.editor&&this.editor.config.protectedSource,c=!1,d={doFilter:!n,doTransform:!0,doCallbacks:!0,toHtml:t};for(e.forEach(function(e){if(e.type==CKEDITOR.NODE_ELEMENT){if("off"==e.attributes["data-cke-filter"])return!1;if(!t||"span"!=e.name||!~CKEDITOR.tools.objectKeys(e.attributes).join("|").indexOf("data-cke-"))if(1&(o=h(a,e,l,d)))c=!0;else if(2&o)return!1}else if(e.type==CKEDITOR.NODE_COMMENT&&e.value.match(/^\{cke_protected\}(?!\{C\})/)){var n;e:{var i,r,s,f=decodeURIComponent(e.value.replace(/^\{cke_protected\}/,""));if(n=[],u)for(r=0;r<u.length;++r)if((s=f.match(u[r]))&&s[0].length==f.length){n=!0;break e}1==(f=CKEDITOR.htmlParser.fragment.fromHtml(f)).children.length&&(i=f.children[0]).type==CKEDITOR.NODE_ELEMENT&&h(a,i,n,d),n=!n.length}n||l.push(e)}},null,!0),l.length&&(c=!0),e=[],i=_[i||(this.editor?this.editor.enterMode:CKEDITOR.ENTER_P)];n=l.pop();)n.type==CKEDITOR.NODE_ELEMENT?E(n,i,e):n.remove();for(;r=e.pop();)if((n=r.el).parent)switch(s=I[n.parent.name]||I.span,r.check){case"it":I.$removeEmpty[n.name]&&!n.children.length?E(n,i,e):p(n)||E(n,i,e);break;case"el-up":n.parent.type==CKEDITOR.NODE_DOCUMENT_FRAGMENT||s[n.name]||E(n,i,e);break;case"parent-down":n.parent.type==CKEDITOR.NODE_DOCUMENT_FRAGMENT||s[n.name]||E(n.parent,i,e)}return c},checkFeature:function(e){return!(!this.disabled&&e)||(e.toFeature&&(e=e.toFeature(this.editor)),!e.requiredContent||this.check(e.requiredContent))},disable:function(){this.disabled=!0},disallow:function(t){return!!r(this,t,!0)&&("string"==typeof t&&(t=u(t)),e(this,t,null,this.disallowedContent,this._.disallowedRules),!0)},addContentForms:function(e){if(!this.disabled&&e){var t,n,i,o=[];for(t=0;t<e.length&&!i;++t)("string"==typeof(n=e[t])||n instanceof CKEDITOR.style)&&this.check(n)&&(i=n);if(i){for(t=0;t<e.length;++t)o.push(C(e[t],i));this.addTransformations(o)}}},addElementCallback:function(e){this.elementCallbacks||(this.elementCallbacks=[]),this.elementCallbacks.push(e)},addFeature:function(e){return!(!this.disabled&&e)||(e.toFeature&&(e=e.toFeature(this.editor)),this.allow(e.allowedContent,e.name),this.addTransformations(e.contentTransformations),this.addContentForms(e.contentForms),!e.requiredContent||!this.customConfig&&!this.disallowedContent.length||this.check(e.requiredContent))},addTransformations:function(e){var t,n;if(!this.disabled&&e){var i,o=this._.transformations;for(i=0;i<e.length;++i){t=e[i];var r=void 0,s=void 0,a=void 0,l=void 0,u=void 0,c=void 0;for(n=[],s=0;s<t.length;
1++s)"string"==typeof(a=t[s])?(l=(a=a.split(/\s*:\s*/))[0],u=null,c=a[1]):(l=a.check,u=a.left,c=a.right),r||(r=(r=a).element?r.element:l?l.match(/^([a-z0-9]+)/i)[0]:r.left.getDefinition().element),u instanceof CKEDITOR.style&&(u=b(u)),n.push({check:l==r?null:l,left:u,right:"string"==typeof c?D(c):c});o[t=r]||(o[t]=[]),o[t].push(n)}}},check:function(e,t,n){if(this.disabled)return!0;if(CKEDITOR.tools.isArray(e)){for(var i=e.length;i--;)if(this.check(e[i],t,n))return!0;return!1}var o,r;if("string"==typeof e){if((r=e+"<"+(!1===t?"0":"1")+(n?"1":"0")+">")in this._.cachedChecks)return this._.cachedChecks[r];o=(i=u(e).$1).styles;var s=i.classes;i.name=i.elements,i.classes=s=s?s.split(/\s*,\s*/):[],i.styles=l(o),i.attributes=l(i.attributes),i.children=[],s.length&&(i.attributes.class=s.join(" ")),o&&(i.attributes.style=CKEDITOR.tools.writeCssText(i.styles)),o=i}else o=(i=e.getDefinition()).styles,s=i.attributes||{},o&&!CKEDITOR.tools.isEmpty(o)?(o=O(o),s.style=CKEDITOR.tools.writeCssText(o,!0)):o={},o={name:i.element,attributes:s,classes:s.class?s.class.split(/\s+/):[],styles:o,children:[]};s=CKEDITOR.tools.clone(o);var a,c=[];if(!1!==t&&(a=this._.transformations[o.name])){for(i=0;i<a.length;++i)T(this,o,a[i]);f(o)}return h(this,s,c,{doFilter:!0,doTransform:!1!==t,skipRequired:!n,skipFinalValidation:!n}),t=!(0<c.length)&&!!CKEDITOR.tools.objectCompare(o.attributes,s.attributes,!0),"string"==typeof e&&(this._.cachedChecks[r]=t),t},getAllowedEnterMode:function(){var e=["p","div","br"],t={p:CKEDITOR.ENTER_P,div:CKEDITOR.ENTER_DIV,br:CKEDITOR.ENTER_BR};return function(n,i){var o,r=e.slice();if(this.check(_[n]))return n;for(i||(r=r.reverse());o=r.pop();)if(this.check(o))return t[o];return CKEDITOR.ENTER_BR}}(),destroy:function(){delete CKEDITOR.filter.instances[this.id],delete this._,delete this.allowedContent,delete this.disallowedContent}};var w,k={styles:1,attributes:1,classes:1},K={styles:"requiredStyles",attributes:"requiredAttributes",classes:"requiredClasses"},S=/^([a-z0-9\-*\s]+)((?:\s*\{[!\w\-,\s\*]+\}\s*|\s*\[[!\w\-,\s\*]+\]\s*|\s*\([!\w\-,\s\*]+\)\s*){0,3})(?:;\s*|$)/i,x={styles:/{([^}]+)}/,attrs:/\[([^\]]+)\]/,classes:/\(([^\)]+)\)/},N=/^cke:(object|embed|param)$/,A=/^(object|embed|param)$/;w=CKEDITOR.filter.transformationsTools={sizeToStyle:function(e){this.lengthToStyle(e,"width"),this.lengthToStyle(e,"height")},sizeToAttribute:function(e){this.lengthToAttribute(e,"width"),this.lengthToAttribute(e,"height")},lengthToStyle:function(e,t,n){if(!((n=n||t)in e.styles)){var i=e.attributes[t];i&&(/^\d+$/.test(i)&&(i+="px"),e.styles[n]=i)}delete e.attributes[t]},lengthToAttribute:function(e,t,n){if(!((n=n||t)in e.attributes)){var i=e.styles[t],o=i&&i.match(/^(\d+)(?:\.\d*)?px$/);o?e.attributes[n]=o[1]:"cke-test"==i&&(e.attributes[n]="cke-test")}delete e.styles[t]},alignmentToStyle:function(e){if(!("float"in e.styles)){var t=e.attributes.align;"left"!=t&&"right"!=t||(e.styles.float=t)}delete e.attributes.align},alignmentToAttribute:function(e){if(!("align"in e.attributes)){var t=e.styles.float;"left"!=t&&"right"!=t||(e.attributes.align=t)}delete e.styles.float},splitBorderShorthand:function(e){function t(t){e.styles["border-top-width"]=n[t[0]],e.styles["border-right-width"]=n[t[1]],e.styles["border-bottom-width"]=n[t[2]],e.styles["border-left-width"]=n[t[3]]}if(e.styles.border){var n=e.styles.border.match(/([\.\d]+\w+)/g)||["0px"];switch(n.length){case 1:e.styles["border-width"]=n[0];break;case 2:t([0,1,0,1]);break;case 3:t([0,1,2,1]);break;case 4:t([0,1,2,3])}e.styles["border-style"]=e.styles["border-style"]||(e.styles.border.match(/(none|hidden|dotted|dashed|solid|double|groove|ridge|inset|outset|initial|inherit)/)||[])[0],e.styles["border-style"]||delete e.styles["border-style"],delete e.styles.border}},listTypeToStyle:function(e){if(e.attributes.type)switch(e.attributes.type){case"a":e.styles["list-style-type"]="lower-alpha";break;case"A":e.styles["list-style-type"]="upper-alpha";break;case"i":e.styles["list-style-type"]="lower-roman";break;case"I":e.styles["list-style-type"]="upper-roman";break;case"1":e.styles["list-style-type"]="decimal";break;default:e.styles["list-style-type"]=e.attributes.type}},splitMarginShorthand:function(e){function t(t){e.styles["margin-top"]=n[t[0]],e.styles["margin-right"]=n[t[1]],e.styles["margin-bottom"]=n[t[2]],e.styles["margin-left"]=n[t[3]]}if(e.styles.margin){var n=e.styles.margin.match(/(\-?[\.\d]+\w+)/g)||["0px"];switch(n.length){case 1:e.styles.margin=n[0];break;case 2:t([0,1,0,1]);break;case 3:t([0,1,2,1]);break;case 4:t([0,1,2,3])}delete e.styles.margin}},matchesStyle:y,transform:function(e,t){if("string"==typeof t)e.name=t;else{var n,i,o,r,s=t.getDefinition(),a=s.styles,l=s.attributes;for(n in e.name=s.element,l)if("class"==n)for(s=e.classes.join("|"),o=l[n].split(/\s+/);
1r=o.pop();)-1==s.indexOf(r)&&e.classes.push(r);else e.attributes[n]=l[n];for(i in a)e.styles[i]=a[i]}}}}(),CKEDITOR.focusManager=function(e){return e.focusManager?e.focusManager:(this.hasFocus=!1,this.currentActive=null,this._={editor:e},this)},CKEDITOR.focusManager._={blurDelay:200},CKEDITOR.focusManager.prototype={focus:function(e){this._.timer&&clearTimeout(this._.timer),e&&(this.currentActive=e),this.hasFocus||this._.locked||((e=CKEDITOR.currentInstance)&&e.focusManager.blur(1),this.hasFocus=!0,(e=this._.editor.container)&&e.addClass("cke_focus"),this._.editor.fire("focus"))},lock:function(){this._.locked=1},unlock:function(){delete this._.locked},blur:function(e){function t(){var e=this._.editor;this.hasFocus&&(this.hasFocus=!1,CKEDITOR.env.chrome&&e.editable()&&e.editable().isInline()&&e.window.$.getSelection().removeAllRanges(),(e=this._.editor.container)&&e.removeClass("cke_focus"),this._.editor.fire("blur"))}if(!this._.locked){this._.timer&&clearTimeout(this._.timer);var n=CKEDITOR.focusManager._.blurDelay;e||!n?t.call(this):this._.timer=CKEDITOR.tools.setTimeout(function(){delete this._.timer,t.call(this)},n,this)}},add:function(e,t){if(!(n=e.getCustomData("focusmanager"))||n!=this){n&&n.remove(e);var n="focus",i="blur";t&&(CKEDITOR.env.ie?(n="focusin",i="focusout"):CKEDITOR.event.useCapture=1);var o={blur:function(){e.equals(this.currentActive)&&this.blur()},focus:function(){this.focus(e)}};e.on(n,o.focus,this),e.on(i,o.blur,this),t&&(CKEDITOR.event.useCapture=0),e.setCustomData("focusmanager",this),e.setCustomData("focusmanager_handlers",o)}},remove:function(e){e.removeCustomData("focusmanager");var t=e.removeCustomData("focusmanager_handlers");e.removeListener("blur",t.blur),e.removeListener("focus",t.focus)}},CKEDITOR.keystrokeHandler=function(e){return e.keystrokeHandler?e.keystrokeHandler:(this.keystrokes={},this.blockedKeystrokes={},this._={editor:e},this)},function(){var e,t=function(t){var n=(t=t.data).getKeystroke(),i=this.keystrokes[n],o=this._.editor;return(e=!1===o.fire("key",{keyCode:n,domEvent:t}))||(i&&(e=!1!==o.execCommand(i,{from:"keystrokeHandler"})),e||(e=!!this.blockedKeystrokes[n])),e&&t.preventDefault(!0),!e},n=function(t){e&&(e=!1,t.data.preventDefault(!0))};CKEDITOR.keystrokeHandler.prototype={attach:function(e){e.on("keydown",t,this),CKEDITOR.env.gecko&&CKEDITOR.env.mac&&e.on("keypress",n,this)}}}(),CKEDITOR.lang={languages:{af:1,ar:1,az:1,bg:1,bn:1,bs:1,ca:1,cs:1,cy:1,da:1,de:1,"de-ch":1,el:1,"en-au":1,"en-ca":1,"en-gb":1,en:1,eo:1,es:1,et:1,eu:1,fa:1,fi:1,fo:1,"fr-ca":1,fr:1,gl:1,gu:1,he:1,hi:1,hr:1,hu:1,id:1,is:1,it:1,ja:1,ka:1,km:1,ko:1,ku:1,lt:1,lv:1,mk:1,mn:1,ms:1,nb:1,nl:1,no:1,oc:1,pl:1,"pt-br":1,pt:1,ro:1,ru:1,si:1,sk:1,sl:1,sq:1,"sr-latn":1,sr:1,sv:1,th:1,tr:1,tt:1,ug:1,uk:1,vi:1,"zh-cn":1,zh:1},rtl:{ar:1,fa:1,he:1,ku:1,ug:1},load:function(e,t,n){e&&CKEDITOR.lang.languages[e]||(e=this.detect(t,e));var i=this;t=function(){i[e].dir=i.rtl[e]?"rtl":"ltr",n(e,i[e])},this[e]?t():CKEDITOR.scriptLoader.load(CKEDITOR.getUrl("lang/"+e+".js"),t,this)},detect:function(e,t){var n=this.languages,i=(o=(t=t||navigator.userLanguage||navigator.language||e).toLowerCase().match(/([a-z]+)(?:-([a-z]+))?/))[1],o=o[2];return n[i+"-"+o]?i=i+"-"+o:n[i]||(i=null),CKEDITOR.lang.detect=i?function(){return i}:function(e){return e},i||e}},CKEDITOR.scriptLoader=function(){var e={},t={};return{load:function(n,i,o,r){var s="string"==typeof n;s&&(n=[n]),o||(o=CKEDITOR);var a=n.length,l=[],u=[],c=function(e){i&&(s?i.call(o,e):i.call(o,l,u))};if(0===a)c(!0);else{var d=function(e,t){(t?l:u).push(e),0>=--a&&(r&&CKEDITOR.document.getDocumentElement().removeStyle("cursor"),c(t))},h=function(n,i){e[n]=1;var o=t[n];delete t[n];for(var r=0;r<o.length;r++)o[r](n,i)},f=function(n){if(e[n])d(n,!0);else{var o=t[n]||(t[n]=[]);if(o.push(d),!(1<o.length)){var r=new CKEDITOR.dom.element("script");r.setAttributes({type:"text/javascript",src:n}),i&&(CKEDITOR.env.ie&&(8>=CKEDITOR.env.version||CKEDITOR.env.ie9Compat)?r.$.onreadystatechange=function(){"loaded"!=r.$.readyState&&"complete"!=r.$.readyState||(r.$.onreadystatechange=null,h(n,!0))}:(r.$.onload=function(){setTimeout(function(){h(n,!0)},0)},r.$.onerror=function(){h(n,!1)})),r.appendTo(CKEDITOR.document.getHead())}}};r&&CKEDITOR.document.getDocumentElement().setStyle("cursor","wait");for(var p=0;p<a;p++)f(n[p])}},queue:function(){function e(){var e;(e=t[0])&&this.load(e.scriptUrl,e.callback,CKEDITOR,0)}var t=[];return function(n,i){var o=this;t.push({scriptUrl:n,callback:function(){i&&i.apply(this,arguments),t.shift(),e.call(o)}}),1==t.length&&e.call(this)}}()}}(),CKEDITOR.resourceManager=function(e,t){this.basePath=e,this.fileName=t,this.registered={},this.loaded={},this.externals={},this._={waitingList:{}}},CKEDITOR.resourceManager.prototype={add:function(e,t){if(this.registered[e])throw Error('[CKEDITOR.resourceManager.add] The resource name "'+e+'" is already registered.');var n=this.registered[e]=t||{};return n.name=e,n.path=this.getPath(e),CKEDITOR.fire(e+CKEDITOR.tools.capitalize(this.fileName)+"Ready",n),this.get(e)},get:function(e){return this.registered[e]||null},getPath:function(e){var t=this.externals[e];return CKEDITOR.getUrl(t&&t.dir||this.basePath+e+"/")},getFilePath:function(e){var t=this.externals[e];return CKEDITOR.getUrl(this.getPath(e)+(t?t.file:this.fileName+".js"))},addExternal:function(e,t,n){e=e.split(",");for(var i=0;i<e.length;i++){var o=e[i];n||(t=t.replace(/[^\/]+$/,function(e){return n=e,""})),this.externals[o]={dir:t,file:n||this.fileName+".js"}}},load:function(e,t,n){CKEDITOR.tools.isArray(e)||(e=e?[e]:[]);for(var i=this.loaded,o=this.registered,r=[],s={},a={},l=0;l<e.length;l++){var u=e[l];if(u)if(i[u]||o[u])a[u]=this.get(u);else{var c=this.getFilePath(u);r.push(c),c in s||(s[c]=[]),s[c].push(u)}}CKEDITOR.scriptLoader.load(r,function(e,o){if(o.length)throw Error('[CKEDITOR.resourceManager.load] Resource name "'+s[o[0]].join(",")+'" was not found at "'+o[0]+'".');for(var r=0;r<e.length;r++)for(var l=s[e[r]],u=0;u<l.length;u++){var c=l[u];a[c]=this.get(c),i[c]=1}t.call(n,a)},this)}},CKEDITOR.plugins=new CKEDITOR.resourceManager("plugins/","plugin"),CKEDITOR.plugins.load=CKEDITOR.tools.override(CKEDITOR.plugins.load,function(e){var t={};return function(n,i,o){var r={},s=function(n){e.call(this,n,function(e){CKEDITOR.tools.extend(r,e);var n,a=[];for(n in e){var l=e[n],u=l&&l.requires;if(!t[n]){if(l.icons)for(var c=l.icons.split(","),d=c.length;d--;)CKEDITOR.skin.addIcon(c[d],l.path+"icons/"+(CKEDITOR.env.hidpi&&l.hidpi?"hidpi/":"")+c[d]+".png");t[n]=1}if(u)for(u.split&&(u=u.split(",")),l=0;l<u.length;l++)r[u[l]]||a.push(u[l])}if(a.length)s.call(this,a);
1else{for(n in r)(l=r[n]).onLoad&&!l.onLoad._called&&(!1===l.onLoad()&&delete r[n],l.onLoad._called=1);i&&i.call(o||window,r)}},this)};s.call(this,n)}}),CKEDITOR.plugins.setLang=function(e,t,n){var i=this.get(e);e=i.langEntries||(i.langEntries={}),(i=i.lang||(i.lang=[])).split&&(i=i.split(",")),-1==CKEDITOR.tools.indexOf(i,t)&&i.push(t),e[t]=n},CKEDITOR.ui=function(e){return e.ui?e.ui:(this.items={},this.instances={},this.editor=e,this._={handlers:{}},this)},CKEDITOR.ui.prototype={add:function(e,t,n){n.name=e.toLowerCase();var i=this.items[e]={type:t,command:n.command||null,args:Array.prototype.slice.call(arguments,2)};CKEDITOR.tools.extend(i,n)},get:function(e){return this.instances[e]},create:function(e){var t=this.items[e],n=t&&this._.handlers[t.type],i=t&&t.command&&this.editor.getCommand(t.command);n=n&&n.create.apply(this,t.args);return this.instances[e]=n,i&&i.uiItems.push(n),n&&!n.type&&(n.type=t.type),n},addHandler:function(e,t){this._.handlers[e]=t},space:function(e){return CKEDITOR.document.getById(this.spaceId(e))},spaceId:function(e){return this.editor.id+"_"+e}},CKEDITOR.event.implementOn(CKEDITOR.ui),function(){function e(e,n,o){if(CKEDITOR.event.call(this),e=e&&CKEDITOR.tools.clone(e),void 0!==n){if(!(n instanceof CKEDITOR.dom.element))throw Error("Expect element of type CKEDITOR.dom.element.");if(!o)throw Error("One of the element modes must be specified.");if(CKEDITOR.env.ie&&CKEDITOR.env.quirks&&o==CKEDITOR.ELEMENT_MODE_INLINE)throw Error("Inline element mode is not supported on IE quirks.");if(!function(e,t){return t==CKEDITOR.ELEMENT_MODE_INLINE?e.is(CKEDITOR.dtd.$editable)||e.is("textarea"):t==CKEDITOR.ELEMENT_MODE_REPLACE?!e.is(CKEDITOR.dtd.$nonBodyContent):1}(n,o))throw Error('The specified element mode is not supported on element: "'+n.getName()+'".');this.element=n,this.elementMode=o,this.name=this.elementMode!=CKEDITOR.ELEMENT_MODE_APPENDTO&&(n.getId()||n.getNameAtt())}else this.elementMode=CKEDITOR.ELEMENT_MODE_NONE;this._={},this.commands={},this.templates={},this.name=this.name||function(){do{var e="editor"+ ++r}while(CKEDITOR.instances[e]);return e}(),this.id=CKEDITOR.tools.getNextId(),this.status="unloaded",this.config=CKEDITOR.tools.prototypedCopy(CKEDITOR.config),this.ui=new CKEDITOR.ui(this),this.focusManager=new CKEDITOR.focusManager(this),this.keystrokeHandler=new CKEDITOR.keystrokeHandler(this),this.on("readOnly",t),this.on("selectionChange",function(e){i(this,e.data.path)}),this.on("activeFilterChange",function(){i(this,this.elementPath(),!0)}),this.on("mode",t),this.on("instanceReady",function(){this.config.startupFocus&&this.focus()}),CKEDITOR.fire("instanceCreated",null,this),CKEDITOR.add(this),CKEDITOR.tools.setTimeout(function(){"destroyed"!==this.status?function(e,t){e.on("customConfigLoaded",function(){if(t){if(t.on)for(var n in t.on)e.on(n,t.on[n]);CKEDITOR.tools.extend(e.config,t,!0),delete e.config.on}n=e.config,e.readOnly=!!n.readOnly||(e.elementMode==CKEDITOR.ELEMENT_MODE_INLINE?e.element.is("textarea")?e.element.hasAttribute("disabled")||e.element.hasAttribute("readonly"):e.element.isReadOnly():e.elementMode==CKEDITOR.ELEMENT_MODE_REPLACE&&(e.element.hasAttribute("disabled")||e.element.hasAttribute("readonly"))),e.blockless=e.elementMode==CKEDITOR.ELEMENT_MODE_INLINE&&!(e.element.is("textarea")||CKEDITOR.dtd[e.element.getName()].p),e.tabIndex=n.tabIndex||e.element&&e.element.getAttribute("tabindex")||0,e.activeEnterMode=e.enterMode=e.blockless?CKEDITOR.ENTER_BR:n.enterMode,e.activeShiftEnterMode=e.shiftEnterMode=e.blockless?CKEDITOR.ENTER_BR:n.shiftEnterMode,n.skin&&(CKEDITOR.skinName=n.skin),e.fireOnce("configLoaded"),e.dataProcessor=new CKEDITOR.htmlDataProcessor(e),e.filter=e.activeFilter=new CKEDITOR.filter(e),function(e){CKEDITOR.skin.loadPart("editor",function(){!function(e){CKEDITOR.lang.load(e.config.language,e.config.defaultLanguage,function(t,n){var i=e.config.title;e.langCode=t,e.lang=CKEDITOR.tools.prototypedCopy(n),e.title="string"==typeof i||!1===i?i:[e.lang.editor,e.name].join(", "),e.config.contentsLangDirection||(e.config.contentsLangDirection=e.elementMode==CKEDITOR.ELEMENT_MODE_INLINE?e.element.getDirection(1):e.lang.dir),e.fire("langLoaded"),function(e){e.getStylesSet(function(t){e.once("loaded",function(){e.fire("stylesSet",{styles:t})},null,null,1),function(e){var t=e.config,n=t.plugins,i=t.extraPlugins,o=t.removePlugins;
1if(i)var r=new RegExp("(?:^|,)(?:"+i.replace(/\s*,\s*/g,"|")+")(?=,|$)","g"),n=(n=n.replace(r,""))+","+i;if(o)var s=new RegExp("(?:^|,)(?:"+o.replace(/\s*,\s*/g,"|")+")(?=,|$)","g"),n=n.replace(s,"");CKEDITOR.env.air&&(n+=",adobeair"),CKEDITOR.plugins.load(n.split(","),function(n){var i=[],o=[],r=[];for(var a in e.plugins=n,n){var l,u=n[a],c=u.lang,d=null,h=u.requires;if(CKEDITOR.tools.isArray(h)&&(h=h.join(",")),h&&(l=h.match(s)))for(;h=l.pop();)CKEDITOR.error("editor-plugin-required",{plugin:h.replace(",",""),requiredBy:a});c&&!e.lang[a]&&(c.split&&(c=c.split(",")),0<=CKEDITOR.tools.indexOf(c,e.langCode)?d=e.langCode:d=(d=e.langCode.replace(/-.*/,""))!=e.langCode&&0<=CKEDITOR.tools.indexOf(c,d)?d:0<=CKEDITOR.tools.indexOf(c,"en")?"en":c[0],u.langEntries&&u.langEntries[d]?(e.lang[a]=u.langEntries[d],d=null):r.push(CKEDITOR.getUrl(u.path+"lang/"+d+".js"))),o.push(d),i.push(u)}CKEDITOR.scriptLoader.load(r,function(){for(var n=["beforeInit","init","afterInit"],r=0;r<n.length;r++)for(var s=0;s<i.length;s++){var a=i[s];0===r&&o[s]&&a.lang&&a.langEntries&&(e.lang[a.name]=a.langEntries[o[s]]),a[n[r]]&&a[n[r]](e)}for(e.fireOnce("pluginsLoaded"),t.keystrokes&&e.setKeystroke(e.config.keystrokes),s=0;s<e.config.blockedKeystrokes.length;s++)e.keystrokeHandler.blockedKeystrokes[e.config.blockedKeystrokes[s]]=1;e.status="loaded",e.fireOnce("loaded"),CKEDITOR.fire("instanceLoaded",null,e)})})}(e)})}(e)})}(e)})}(e)}),t&&null!=t.customConfig&&(e.config.customConfig=t.customConfig),function e(t){var n=t.config.customConfig;if(!n)return!1;var n=CKEDITOR.getUrl(n),i=s[n]||(s[n]={});i.fn?(i.fn.call(t,t.config),CKEDITOR.getUrl(t.config.customConfig)!=n&&e(t)||t.fireOnce("customConfigLoaded")):CKEDITOR.scriptLoader.queue(n,function(){i.fn=CKEDITOR.editorConfig?CKEDITOR.editorConfig:function(){},e(t)});return!0}(e)||e.fireOnce("customConfigLoaded")}(this,e):CKEDITOR.warn("editor-incorrect-destroy")},0,this)}function t(){var e,t=this.commands;for(e in t)n(this,t[e])}function n(e,t){t[t.startDisabled?"disable":e.readOnly&&!t.readOnly?"disable":t.modes[e.mode]?"enable":"disable"]()}function i(e,t,n){if(t){var i,o,r=e.commands;for(o in r)i=r[o],(n||i.contextSensitive)&&i.refresh(e,t)}}function o(){var e=this.element;if(e&&this.elementMode!=CKEDITOR.ELEMENT_MODE_APPENDTO){var t=this.getData();return this.config.htmlEncodeOutput&&(t=CKEDITOR.tools.htmlEncode(t)),e.is("textarea")?e.setValue(t):e.setHtml(t),!0}return!1}e.prototype=CKEDITOR.editor.prototype,CKEDITOR.editor=e;var r=0,s={};CKEDITOR.tools.extend(CKEDITOR.editor.prototype,{addCommand:function(e,t){t.name=e.toLowerCase();var i=new CKEDITOR.command(this,t);return this.mode&&n(this,i),this.commands[e]=i},_attachToForm:function(){function e(e){t.updateElement(),t._.required&&!n.getValue()&&!1===t.fire("required")&&e.data.preventDefault()}var t=this,n=t.element,i=new CKEDITOR.dom.element(n.$.form);n.is("textarea")&&i&&(i.on("submit",e),function(e){return!!(e&&e.call&&e.apply)}(i.$.submit)&&(i.$.submit=CKEDITOR.tools.override(i.$.submit,function(t){return function(){e(),t.apply?t.apply(this):t()}})),t.on("destroy",function(){i.removeListener("submit",e)}))},destroy:function(e){this.fire("beforeDestroy"),!e&&o.call(this),this.editable(null),this.filter&&(this.filter.destroy(),delete this.filter),delete this.activeFilter,this.status="destroyed",this.fire("destroy"),this.removeAllListeners(),CKEDITOR.remove(this),CKEDITOR.fire("instanceDestroyed",null,this)},elementPath:function(e){if(!e){if(!(e=this.getSelection()))return null;e=e.getStartElement()}return e?new CKEDITOR.dom.elementPath(e,this.editable()):null},createRange:function(){var e=this.editable();return e?new CKEDITOR.dom.range(e):null},execCommand:function(e,t){var n=this.getCommand(e),i={name:e,commandData:t,command:n};return!(!n||n.state==CKEDITOR.TRISTATE_DISABLED||!1===this.fire("beforeCommandExec",i)||(i.returnValue=n.exec(i.commandData),n.async||!1===this.fire("afterCommandExec",i)))&&i.returnValue},getCommand:function(e){return this.commands[e]},getData:function(e){!e&&this.fire("beforeGetData");var t=this._.data;return"string"!=typeof t&&(t=(t=this.element)&&this.elementMode==CKEDITOR.ELEMENT_MODE_REPLACE?t.is("textarea")?t.getValue():t.getHtml():""),t={dataValue:t},!e&&this.fire("getData",t),t.dataValue},getSnapshot:function(){var e=this.fire("getSnapshot");return"string"!=typeof e&&(e=(e=this.element)&&this.elementMode==CKEDITOR.ELEMENT_MODE_REPLACE?e.is("textarea")?e.getValue():e.getHtml():""),e}
1,loadSnapshot:function(e){this.fire("loadSnapshot",e)},setData:function(e,t,n){var i=!0,o=t;t&&"object"==typeof t&&(n=t.internal,o=t.callback,i=!t.noSnapshot),!n&&i&&this.fire("saveSnapshot"),!o&&n||this.once("dataReady",function(e){!n&&i&&this.fire("saveSnapshot"),o&&o.call(e.editor)}),e={dataValue:e},!n&&this.fire("setData",e),this._.data=e.dataValue,!n&&this.fire("afterSetData",e)},setReadOnly:function(e){e=null==e||e,this.readOnly!=e&&(this.readOnly=e,this.keystrokeHandler.blockedKeystrokes[8]=+e,this.editable().setReadOnly(e),this.fire("readOnly"))},insertHtml:function(e,t,n){this.fire("insertHtml",{dataValue:e,mode:t,range:n})},insertText:function(e){this.fire("insertText",e)},insertElement:function(e){this.fire("insertElement",e)},getSelectedHtml:function(e){var t=this.editable(),n=(n=this.getSelection())&&n.getRanges();if(!t||!n||0===n.length)return null;for(var i,o,r,s=new CKEDITOR.dom.documentFragment,a=0;a<n.length;a++){var l=n[a],u=l.startContainer;u.getName&&"tr"==u.getName()?(i||((i=u.getAscendant("table").clone()).append(u.getAscendant("tbody").clone()),s.append(i),i=i.findOne("tbody")),o&&o.equals(u)||(o=u,r=u.clone(),i.append(r)),r.append(l.cloneContents())):s.append(l.cloneContents())}return t=i?s:t.getHtmlFromRange(n[0]),e?t.getHtml():t},extractSelectedHtml:function(e,t){var n=this.editable(),i=this.getSelection().getRanges();return n&&0!==i.length?(i=i[0],n=n.extractHtmlFromRange(i,t),t||this.getSelection().selectRanges([i]),e?n.getHtml():n):null},focus:function(){this.fire("beforeFocus")},checkDirty:function(){return"ready"==this.status&&this._.previousValue!==this.getSnapshot()},resetDirty:function(){this._.previousValue=this.getSnapshot()},updateElement:function(){return o.call(this)},setKeystroke:function(){for(var e,t,n=this.keystrokeHandler.keystrokes,i=CKEDITOR.tools.isArray(arguments[0])?arguments[0]:[[].slice.call(arguments,0)],o=i.length;o--;)e=i[o],t=0,CKEDITOR.tools.isArray(e)&&(t=e[1],e=e[0]),t?n[e]=t:delete n[e]},getCommandKeystroke:function(e){var t,n=e.name,i=this.keystrokeHandler.keystrokes;if(e.fakeKeystroke)return e.fakeKeystroke;for(t in i)if(i.hasOwnProperty(t)&&i[t]==n)return t;return null},addFeature:function(e){return this.filter.addFeature(e)},setActiveFilter:function(e){e||(e=this.filter),this.activeFilter!==e&&(this.activeFilter=e,this.fire("activeFilterChange"),e===this.filter?this.setActiveEnterMode(null,null):this.setActiveEnterMode(e.getAllowedEnterMode(this.enterMode),e.getAllowedEnterMode(this.shiftEnterMode,!0)))},setActiveEnterMode:function(e,t){e=e?this.blockless?CKEDITOR.ENTER_BR:e:this.enterMode,t=t?this.blockless?CKEDITOR.ENTER_BR:t:this.shiftEnterMode,this.activeEnterMode==e&&this.activeShiftEnterMode==t||(this.activeEnterMode=e,this.activeShiftEnterMode=t,this.fire("activeEnterModeChange"))},showNotification:function(e){alert(e)}})}(),CKEDITOR.ELEMENT_MODE_NONE=0,CKEDITOR.ELEMENT_MODE_REPLACE=1,CKEDITOR.ELEMENT_MODE_APPENDTO=2,CKEDITOR.ELEMENT_MODE_INLINE=3,CKEDITOR.htmlParser=function(){this._={htmlPartsRegex:/<(?:(?:\/([^>]+)>)|(?:!--([\S|\s]*?)--\x3e)|(?:([^\/\s>]+)((?:\s+[\w\-:.]+(?:\s*=\s*?(?:(?:"[^"]*")|(?:'[^']*')|[^\s"'\/>]+))?)*)[\S\s]*?(\/?)>))/g}},function(){var e=/([\w\-:.]+)(?:(?:\s*=\s*(?:(?:"([^"]*)")|(?:'([^']*)')|([^\s>]+)))|(?=\s|$))/g,t={checked:1,compact:1,declare:1,defer:1,disabled:1,ismap:1,multiple:1,nohref:1,noresize:1,noshade:1,nowrap:1,readonly:1,selected:1};CKEDITOR.htmlParser.prototype={onTagOpen:function(){},onTagClose:function(){},onText:function(){},onCDATA:function(){},onComment:function(){},parse:function(n){for(var i,o,r,s=0;i=this._.htmlPartsRegex.exec(n);)if((o=i.index)>s&&(s=n.substring(s,o),r?r.push(s):this.onText(s)),s=this._.htmlPartsRegex.lastIndex,!(o=i[1])||(o=o.toLowerCase(),r&&CKEDITOR.dtd.$cdata[o]&&(this.onCDATA(r.join("")),r=null),r))if(r)r.push(i[0]);else if(o=i[3]){if(o=o.toLowerCase(),!/="/.test(o)){var a,l={},u=i[4];if(i=!!i[5],u)for(;a=e.exec(u);){var c=a[1].toLowerCase();a=a[2]||a[3]||a[4]||"",l[c]=!a&&t[c]?c:CKEDITOR.tools.htmlDecodeAttr(a)}this.onTagOpen(o,l,i),!r&&CKEDITOR.dtd.$cdata[o]&&(r=[])}}else(o=i[2])&&this.onComment(o);else this.onTagClose(o);n.length>s&&this.onText(n.substring(s,n.length))}}}(),CKEDITOR.htmlParser.basicWriter=CKEDITOR.tools.createClass({$:function(){this._={output:[]}},proto:{openTag:function(e){this._.output.push("<",e)},openTagClose:function(e,t){t?this._.output.push(" />"):this._.output.push(">")},attribute:function(e,t){"string"==typeof t&&(t=CKEDITOR.tools.htmlEncodeAttr(t)),this._.output.push(" ",e,'="',t,'"')},closeTag:function(e){this._.output.push("</",e,">")},text:function(e){this._.output.push(e)},comment:function(e){this._.output.push("\x3c!--",e,"--\x3e")},write:function(e){this._.output.push(e)},reset:function(){this._.output=[],this._.indent=!1},getHtml:function(e){var t=this._.output.join("");return e&&this.reset(),t}}}),CKEDITOR.htmlParser.node=function(){},CKEDITOR.htmlParser.node.prototype={remove:function(){var e=this.parent.children,t=CKEDITOR.tools.indexOf(e,this),n=this.previous,i=this.next;n&&(n.next=i),i&&(i.previous=n),e.splice(t,1),this.parent=null},replaceWith:function(e){var t=this.parent.children,n=CKEDITOR.tools.indexOf(t,this),i=e.previous=this.previous,o=e.next=this.next;i&&(i.next=e),o&&(o.previous=e),t[n]=e,e.parent=this.parent,this.parent=null},insertAfter:function(e){var t=e.parent.children,n=CKEDITOR.tools.indexOf(t,e),i=e.next;t.splice(n+1,0,this),this.next=e.next,this.previous=e,e.next=this,i&&(i.previous=this),this.parent=e.parent},insertBefore:function(e){var t=e.parent.children,n=CKEDITOR.tools.indexOf(t,e);t.splice(n,0,this),this.next=e,(this.previous=e.previous)&&(e.previous.next=this),e.previous=this,this.parent=e.parent},getAscendant:function(e){for(var t="function"==typeof e?e:"string"==typeof e?function(t){return t.name==e}:function(t){return t.name in e},n=this.parent;n&&n.type==CKEDITOR.NODE_ELEMENT;){if(t(n))return n;n=n.parent}return null},wrapWith:function(e){return this.replaceWith(e),e.add(this),e},getIndex:function(){return CKEDITOR.tools.indexOf(this.parent.children,this)},getFilterContext:function(e){return e||{}}},CKEDITOR.htmlParser.comment=function(e){this.value=e,this._={isBlockLike:!1}},CKEDITOR.htmlParser.comment.prototype=CKEDITOR.tools.extend(new CKEDITOR.htmlParser.node,{type:CKEDITOR.NODE_COMMENT,filter:function(e,t){var n=this.value;return(n=e.onComment(t,n,this))?"string"!=typeof n?(this.replaceWith(n),!1):(this.value=n,!0):(this.remove(),!1)},writeHtml:function(e,t){t&&this.filter(t),e.comment(this.value)}}),CKEDITOR.htmlParser.text=function(e){this.value=e,this._={isBlockLike:!1}},CKEDITOR.htmlParser.text.prototype=CKEDITOR.tools.extend(new CKEDITOR.htmlParser.node,{type:CKEDITOR.NODE_TEXT,filter:function(e,t){if(!(this.value=e.onText(t,this.value,this)))return this.remove(),!1},writeHtml:function(e,t){t&&this.filter(t),e.text(this.value)}}),CKEDITOR.htmlParser.cdata=function(e){this.value=e},CKEDITOR.htmlParser.cdata.prototype=CKEDITOR.tools.extend(new CKEDITOR.htmlParser.node,{type:CKEDITOR.NODE_TEXT,filter:function(){},writeHtml:function(e){e.write(this.value)}}),CKEDITOR.htmlParser.fragment=function(){this.children=[],this.parent=null,this._={isBlockLike:!0,hasInlineStarted:!1}},function(){function e(e){return!e.attributes["data-cke-survive"]&&("a"==e.name&&e.attributes.href||CKEDITOR.dtd.$removeEmpty[e.name])}var t=CKEDITOR.tools.extend({table:1,ul:1,ol:1,dl:1},CKEDITOR.dtd.table,CKEDITOR.dtd.ul,CKEDITOR.dtd.ol,CKEDITOR.dtd.dl),n={ol:1,ul:1},i=CKEDITOR.tools.extend({},{html:1},CKEDITOR.dtd.html,CKEDITOR.dtd.body,CKEDITOR.dtd.head,{style:1,script:1}),o={ul:"li",ol:"li",dl:"dd",table:"tbody",tbody:"tr",thead:"tr",tfoot:"tr",tr:"td"};CKEDITOR.htmlParser.fragment.fromHtml=function(r,s,a){function l(e){var t;if(0<m.length)for(var n=0;n<m.length;n++){var i=m[n],o=i.name,r=CKEDITOR.dtd[o],s=E.name&&CKEDITOR.dtd[E.name];s&&!s[o]||e&&r&&!r[e]&&CKEDITOR.dtd[e]?o==E.name&&(d(E,E.parent,1),n--):(t||(u(),t=1),(i=i.clone()).parent=E,E=i,m.splice(n,1),n--)}}function u(){for(;v.length;)d(v.shift(),E)}function c(e){if(e._.isBlockLike&&"pre"!=e.name&&"textarea"!=e.name){var t,n=e.children.length,i=e.children[n-1];i&&i.type==CKEDITOR.NODE_TEXT&&((t=CKEDITOR.tools.rtrim(i.value))?i.value=t:e.children.length=n-1)}}function d(t,n,i){n=n||E||g;var o=E;void 0===t.previous&&(h(n,t)&&(E=n,p.onTagOpen(a,{}),t.returnPoint=n=E),c(t),e(t)&&!t.children.length||n.add(t),"pre"==t.name&&(y=!1),"textarea"==t.name&&(T=!1)),t.returnPoint?(E=t.returnPoint,delete t.returnPoint):E=i?n:o}function h(e,t){var n,i;if((e==g||"body"==e.name)&&a&&(!e.name||CKEDITOR.dtd[e.name][a]))return(n=t.attributes&&(i=t.attributes["data-cke-real-element-type"])?i:t.name)&&n in CKEDITOR.dtd.$inline&&!(n in CKEDITOR.dtd.head)&&!t.isOrphan||t.type==CKEDITOR.NODE_TEXT}function f(e,t){return(e in CKEDITOR.dtd.$listItem||e in CKEDITOR.dtd.$tableContent)&&(e==t||"dt"==e&&"dd"==t||"dd"==e&&"dt"==t)}var p=new CKEDITOR.htmlParser,g=s instanceof CKEDITOR.htmlParser.element?s:"string"==typeof s?new CKEDITOR.htmlParser.element(s):new CKEDITOR.htmlParser.fragment,m=[],v=[],E=g,T="textarea"==g.name,y="pre"==g.name;
1for(p.onTagOpen=function(o,r,s,a){if((r=new CKEDITOR.htmlParser.element(o,r)).isUnknown&&s&&(r.isEmpty=!0),r.isOptionalClose=a,e(r))m.push(r);else{if("pre"==o)y=!0;else{if("br"==o&&y)return void E.add(new CKEDITOR.htmlParser.text("\n"));"textarea"==o&&(T=!0)}if("br"==o)v.push(r);else{for(;a=(s=E.name)?CKEDITOR.dtd[s]||(E._.isBlockLike?CKEDITOR.dtd.div:CKEDITOR.dtd.span):i,!(r.isUnknown||E.isUnknown||a[o]);)if(E.isOptionalClose)p.onTagClose(s);else if(o in n&&s in n)(s=(s=E.children)[s.length-1])&&"li"==s.name||d(s=new CKEDITOR.htmlParser.element("li"),E),!r.returnPoint&&(r.returnPoint=E),E=s;else if(o in CKEDITOR.dtd.$listItem&&!f(o,s))p.onTagOpen("li"==o?"ul":"dl",{},0,1);else if(s in t&&!f(o,s))!r.returnPoint&&(r.returnPoint=E),E=E.parent;else{if(s in CKEDITOR.dtd.$inline&&m.unshift(E),!E.parent){r.isOrphan=1;break}d(E,E.parent,1)}l(o),u(),r.parent=E,r.isEmpty?d(r):E=r}}},p.onTagClose=function(e){for(var t=m.length-1;0<=t;t--)if(e==m[t].name)return void m.splice(t,1);for(var n=[],i=[],o=E;o!=g&&o.name!=e;)o._.isBlockLike||i.unshift(o),n.push(o),o=o.returnPoint||o.parent;if(o!=g){for(t=0;t<n.length;t++){var r=n[t];d(r,r.parent)}E=o,o._.isBlockLike&&u(),d(o,o.parent),o==E&&(E=E.parent),m=m.concat(i)}"body"==e&&(a=!1)},p.onText=function(e){if(E._.hasInlineStarted&&!v.length||y||T||0!==(e=CKEDITOR.tools.ltrim(e)).length){var n=E.name,r=n?CKEDITOR.dtd[n]||(E._.isBlockLike?CKEDITOR.dtd.div:CKEDITOR.dtd.span):i;!T&&!r["#"]&&n in t?(p.onTagOpen(o[n]||""),p.onText(e)):(u(),l(),y||T||(e=e.replace(/[\t\r\n ]{2,}|[\t\r\n]/g," ")),e=new CKEDITOR.htmlParser.text(e),h(E,e)&&this.onTagOpen(a,{},0,1),E.add(e))}},p.onCDATA=function(e){E.add(new CKEDITOR.htmlParser.cdata(e))},p.onComment=function(e){u(),l(),E.add(new CKEDITOR.htmlParser.comment(e))},p.parse(r),u();E!=g;)d(E,E.parent,1);return c(g),g},CKEDITOR.htmlParser.fragment.prototype={type:CKEDITOR.NODE_DOCUMENT_FRAGMENT,add:function(e,t){isNaN(t)&&(t=this.children.length);var n=0<t?this.children[t-1]:null;if(n){if(e._.isBlockLike&&n.type==CKEDITOR.NODE_TEXT&&(n.value=CKEDITOR.tools.rtrim(n.value),0===n.value.length))return this.children.pop(),void this.add(e);n.next=e}e.previous=n,e.parent=this,this.children.splice(t,0,e),this._.hasInlineStarted||(this._.hasInlineStarted=e.type==CKEDITOR.NODE_TEXT||e.type==CKEDITOR.NODE_ELEMENT&&!e._.isBlockLike)},filter:function(e,t){t=this.getFilterContext(t),e.onRoot(t,this),this.filterChildren(e,!1,t)},filterChildren:function(e,t,n){if(this.childrenFilteredBy!=e.id)for(n=this.getFilterContext(n),t&&!this.parent&&e.onRoot(n,this),this.childrenFilteredBy=e.id,t=0;t<this.children.length;t++)!1===this.children[t].filter(e,n)&&t--},writeHtml:function(e,t){t&&this.filter(t),this.writeChildrenHtml(e)},writeChildrenHtml:function(e,t,n){var i=this.getFilterContext();for(n&&!this.parent&&t&&t.onRoot(i,this),t&&this.filterChildren(t,!1,i),t=0,i=(n=this.children).length;t<i;t++)n[t].writeHtml(e)},forEach:function(e,t,n){if(!(n||t&&this.type!=t))var i=e(this);if(!1!==i){n=this.children;for(var o=0;o<n.length;o++)(i=n[o]).type==CKEDITOR.NODE_ELEMENT?i.forEach(e,t):t&&i.type!=t||e(i)}},getFilterContext:function(e){return e||{}}}}(),function(){function e(){this.rules=[]}function t(t,n,i,o){var r,s;for(r in n)(s=t[r])||(s=t[r]=new e),s.add(n[r],i,o)}CKEDITOR.htmlParser.filter=CKEDITOR.tools.createClass({$:function(t){this.id=CKEDITOR.tools.getNextNumber(),this.elementNameRules=new e,this.attributeNameRules=new e,this.elementsRules={},this.attributesRules={},this.textRules=new e,this.commentRules=new e,this.rootRules=new e,t&&this.addRules(t,10)},proto:{addRules:function(e,n){var i;"number"==typeof n?i=n:n&&"priority"in n&&(i=n.priority),"number"!=typeof i&&(i=10),"object"!=typeof n&&(n={}),e.elementNames&&this.elementNameRules.addMany(e.elementNames,i,n),e.attributeNames&&this.attributeNameRules.addMany(e.attributeNames,i,n),e.elements&&t(this.elementsRules,e.elements,i,n),e.attributes&&t(this.attributesRules,e.attributes,i,n),e.text&&this.textRules.add(e.text,i,n),e.comment&&this.commentRules.add(e.comment,i,n),e.root&&this.rootRules.add(e.root,i,n)},applyTo:function(e){e.filter(this)},onElementName:function(e,t){return this.elementNameRules.execOnName(e,t)},onAttributeName:function(e,t){return this.attributeNameRules.execOnName(e,t)}
1,onText:function(e,t,n){return this.textRules.exec(e,t,n)},onComment:function(e,t,n){return this.commentRules.exec(e,t,n)},onRoot:function(e,t){return this.rootRules.exec(e,t)},onElement:function(e,t){for(var n,i=[this.elementsRules["^"],this.elementsRules[t.name],this.elementsRules.$],o=0;3>o;o++)if(n=i[o]){if(!1===(n=n.exec(e,t,this)))return null;if(n&&n!=t)return this.onNode(e,n);if(t.parent&&!t.name)break}return t},onNode:function(e,t){var n=t.type;return n==CKEDITOR.NODE_ELEMENT?this.onElement(e,t):n==CKEDITOR.NODE_TEXT?new CKEDITOR.htmlParser.text(this.onText(e,t.value)):n==CKEDITOR.NODE_COMMENT?new CKEDITOR.htmlParser.comment(this.onComment(e,t.value)):null},onAttribute:function(e,t,n,i){return(n=this.attributesRules[n])?n.exec(e,i,t,this):i}}}),CKEDITOR.htmlParser.filterRulesGroup=e,e.prototype={add:function(e,t,n){this.rules.splice(this.findIndex(t),0,{value:e,priority:t,options:n})},addMany:function(e,t,n){for(var i=[this.findIndex(t),0],o=0,r=e.length;o<r;o++)i.push({value:e[o],priority:t,options:n});this.rules.splice.apply(this.rules,i)},findIndex:function(e){for(var t=this.rules,n=t.length-1;0<=n&&e<t[n].priority;)n--;return n+1},exec:function(e,t){var n,i,o,r,s=t instanceof CKEDITOR.htmlParser.node||t instanceof CKEDITOR.htmlParser.fragment,a=Array.prototype.slice.call(arguments,1),l=this.rules,u=l.length;for(r=0;r<u;r++)if(s&&(n=t.type,i=t.name),o=l[r],!(e.nonEditable&&!o.options.applyToAll||e.nestedEditable&&o.options.excludeNestedEditable)){if(!1===(o=o.value.apply(null,a))||s&&o&&(o.name!=i||o.type!=n))return o;null!=o&&(a[0]=t=o)}return t},execOnName:function(e,t){for(var n,i=0,o=this.rules,r=o.length;t&&i<r;i++)n=o[i],e.nonEditable&&!n.options.applyToAll||e.nestedEditable&&n.options.excludeNestedEditable||(t=t.replace(n.value[0],n.value[1]));return t}}}(),function(){function e(e,t){function a(e){return e||CKEDITOR.env.needsNbspFiller?new CKEDITOR.htmlParser.text("\xa0"):new CKEDITOR.htmlParser.element("br",{"data-cke-bogus":1})}function l(e,t){return function(o){if(o.type!=CKEDITOR.NODE_DOCUMENT_FRAGMENT){var s,l,c=[],d=n(o);if(d)for(u(d,1)&&c.push(d);d;)r(d)&&(s=i(d))&&u(s)&&((l=i(s))&&!r(l)?c.push(s):(a(f).insertAfter(s),s.remove())),d=d.previous;for(d=0;d<c.length;d++)c[d].remove();(c=!e||!1!==("function"==typeof t?t(o):t))&&((f||CKEDITOR.env.needsBrFiller||o.type!=CKEDITOR.NODE_DOCUMENT_FRAGMENT)&&(f||CKEDITOR.env.needsBrFiller||!(7<document.documentMode||o.name in CKEDITOR.dtd.tr||o.name in CKEDITOR.dtd.$listItem))?c=!(c=n(o))||"form"==o.name&&"input"==c.name:c=!1),c&&o.add(a(e))}}}function u(e,t){return!(f&&!CKEDITOR.env.needsBrFiller||e.type!=CKEDITOR.NODE_ELEMENT||"br"!=e.name||e.attributes["data-cke-eol"])||!!(e.type==CKEDITOR.NODE_TEXT&&(n=e.value.match(h))&&(n.index&&(new CKEDITOR.htmlParser.text(e.value.substring(0,n.index)).insertBefore(e),e.value=n[0]),!CKEDITOR.env.needsBrFiller&&f&&(!t||e.parent.name in g)||!f&&((n=e.previous)&&"br"==n.name||!n||r(n))));var n}var c,d={elements:{}},f="html"==t,g=CKEDITOR.tools.extend({},m);for(c in g)"#"in p[c]||delete g[c];for(c in g)d.elements[c]=l(f,e.config.fillEmptyBlocks);return d.root=l(f,!1),d.elements.br=function(e){return function(t){if(t.parent.type!=CKEDITOR.NODE_DOCUMENT_FRAGMENT){var n=t.attributes;if("data-cke-bogus"in n||"data-cke-eol"in n)delete n["data-cke-bogus"];else{for(n=t.next;n&&o(n);)n=n.next;var l=i(t);!n&&r(t.parent)?s(t.parent,a(e)):r(n)&&l&&!r(l)&&a(e).insertBefore(n)}}}}(f),d}function t(e,t){return e!=CKEDITOR.ENTER_BR&&!1!==t&&(e==CKEDITOR.ENTER_DIV?"div":"p")}function n(e){for(e=e.children[e.children.length-1];e&&o(e);)e=e.previous;return e}function i(e){for(e=e.previous;e&&o(e);)e=e.previous;return e}function o(e){return e.type==CKEDITOR.NODE_TEXT&&!CKEDITOR.tools.trim(e.value)||e.type==CKEDITOR.NODE_ELEMENT&&e.attributes["data-cke-bookmark"]}function r(e){return e&&(e.type==CKEDITOR.NODE_ELEMENT&&e.name in m||e.type==CKEDITOR.NODE_DOCUMENT_FRAGMENT)}function s(e,t){var n=e.children[e.children.length-1];e.children.push(t),t.parent=e,n&&(n.next=t,t.previous=n)}function a(e){"false"!=(e=e.attributes).contenteditable&&(e["data-cke-editable"]=e.contenteditable?"true":1),e.contenteditable="false"}function l(e){switch((e=e.attributes)["data-cke-editable"]){case"true":e.contenteditable="true";break;case"1":delete e.contenteditable}}function u(e,t){return e.replace(t,function(e,t,n){return 0===e.indexOf("<textarea")&&(e=t+c(n).replace(/</g,"<").replace(/>/g,">")+"</textarea>"),"<cke:encoded>"+encodeURIComponent(e)+"</cke:encoded>"})}function c(e){return e.replace(/\x3c!--\{cke_protected\}\{C\}([\s\S]+?)--\x3e/g,function(e,t){return decodeURIComponent(t)})}function d(e,t){var n=t._.dataStore;return e.replace(/\x3c!--\{cke_protected\}([\s\S]+?)--\x3e/g,function(e,t){return decodeURIComponent(t)}
1).replace(/\{cke_protected_(\d+)\}/g,function(e,t){return n&&n[t]||""})}CKEDITOR.htmlDataProcessor=function(n){var i,o,r=this;this.editor=n,this.dataFilter=i=new CKEDITOR.htmlParser.filter,this.htmlFilter=o=new CKEDITOR.htmlParser.filter,this.writer=new CKEDITOR.htmlParser.basicWriter,i.addRules(v),i.addRules(E,{applyToAll:!0}),i.addRules(e(n,"data"),{applyToAll:!0}),o.addRules(T),o.addRules(y,{applyToAll:!0}),o.addRules(e(n,"html"),{applyToAll:!0}),n.on("toHtml",function(e){var i,o,r=function(e,t){var n=[],i=t.config.protectedSource,o=t._.dataStore||(t._.dataStore={id:1}),r=/<\!--\{cke_temp(comment)?\}(\d*?)--\x3e/g;i=[/<script[\s\S]*?(<\/script>|$)/gi,/<noscript[\s\S]*?<\/noscript>/gi,/<meta[\s\S]*?\/?>/gi].concat(i),e=e.replace(/\x3c!--[\s\S]*?--\x3e/g,function(e){return"\x3c!--{cke_tempcomment}"+(n.push(e)-1)+"--\x3e"});for(var s=0;s<i.length;s++)e=e.replace(i[s],function(e){return e=e.replace(r,function(e,t,i){return n[i]}),/cke_temp(comment)?/.test(e)?e:"\x3c!--{cke_temp}"+(n.push(e)-1)+"--\x3e"});return(e=(e=e.replace(r,function(e,t,i){return"\x3c!--"+f+(t?"{C}":"")+encodeURIComponent(n[i]).replace(/--/g,"%2D%2D")+"--\x3e"})).replace(/<\w+(?:\s+(?:(?:[^\s=>]+\s*=\s*(?:[^'"\s>]+|'[^']*'|"[^"]*"))|[^\s=\/>]+))+\s*\/?>/g,function(e){return e.replace(/\x3c!--\{cke_protected\}([^>]*)--\x3e/g,function(e,t){return o[o.id]=decodeURIComponent(t),"{cke_protected_"+o.id+++"}"})})).replace(/<(title|iframe|textarea)([^>]*)>([\s\S]*?)<\/\1>/g,function(e,n,i,o){return"<"+n+i+">"+d(c(o),t)+"</"+n+">"})}(r=(e=e.data).dataValue,n);r=(r=(r=(r=(r=u(r=function(e){return e.replace(C,function(e,t,n){return"<"+t+n.replace(b,function(e,t){return D.test(t)&&-1==n.indexOf("data-cke-saved-"+t)?" data-cke-saved-"+e+" data-cke-"+CKEDITOR.rnd+"-"+e:e})+">"})}(r=u(r,O)),I)).replace(_,"$1cke:$2")).replace(k,"<cke:$1$2></cke:$1>")).replace(/(<pre\b[^>]*>)(\r\n|\n)/g,"$1$2$2")).replace(/([^a-z0-9<\-])(on\w{3,})(?!>)/gi,"$1data-cke-"+CKEDITOR.rnd+"-$2");i=e.context||n.editable().getName(),CKEDITOR.env.ie&&9>CKEDITOR.env.version&&"pre"==i&&(i="div",r="<pre>"+r+"</pre>",o=1),(i=n.document.createElement(i)).setHtml("a"+r),r=(r=i.getHtml().substr(1)).replace(new RegExp("data-cke-"+CKEDITOR.rnd+"-","ig"),""),o&&(r=r.replace(/^<pre>|<\/pre>$/gi,"")),r=c(r=function(e){return e.replace(R,function(e,t){return decodeURIComponent(t)})}(r=r.replace(w,"$1$2"))),i=!1!==e.fixForBody&&t(e.enterMode,n.config.autoParagraph),r=CKEDITOR.htmlParser.fragment.fromHtml(r,e.context,i),i&&(!(o=r).children.length&&CKEDITOR.dtd[o.name][i]&&(i=new CKEDITOR.htmlParser.element(i),o.add(i))),e.dataValue=r},null,null,5),n.on("toHtml",function(e){e.data.filter.applyTo(e.data.dataValue,!0,e.data.dontFilter,e.data.enterMode)&&n.fire("dataFiltered")},null,null,6),n.on("toHtml",function(e){e.data.dataValue.filterChildren(r.dataFilter,!0)},null,null,10),n.on("toHtml",function(e){var t=(e=e.data).dataValue,n=new CKEDITOR.htmlParser.basicWriter;t.writeChildrenHtml(n),t=n.getHtml(!0),e.dataValue=function(e){return e.replace(/\x3c!--(?!{cke_protected})[\s\S]+?--\x3e/g,function(e){return"\x3c!--"+f+"{C}"+encodeURIComponent(e).replace(/--/g,"%2D%2D")+"--\x3e"})}(t)},null,null,15),n.on("toDataFormat",function(e){var i=e.data.dataValue;e.data.enterMode!=CKEDITOR.ENTER_BR&&(i=i.replace(/^<br *\/?>/i,"")),e.data.dataValue=CKEDITOR.htmlParser.fragment.fromHtml(i,e.data.context,t(e.data.enterMode,n.config.autoParagraph))},null,null,5),n.on("toDataFormat",function(e){e.data.dataValue.filterChildren(r.htmlFilter,!0)},null,null,10),n.on("toDataFormat",function(e){e.data.filter.applyTo(e.data.dataValue,!1,!0)},null,null,11),n.on("toDataFormat",function(e){var t=e.data.dataValue,i=r.writer;i.reset(),t.writeChildrenHtml(i),t=d(t=c(t=i.getHtml(!0)),n),e.data.dataValue=t},null,null,15)},CKEDITOR.htmlDataProcessor.prototype={toHtml:function(e,t,n,i){var o,r,s,a,l=this.editor;return t&&"object"==typeof t?(o=t.context,n=t.fixForBody,i=t.dontFilter,r=t.filter,s=t.enterMode,a=t.protectedWhitespaces):o=t,o||null===o||(o=l.editable().getName()),l.fire("toHtml",{dataValue:e,context:o,fixForBody:n,dontFilter:i,filter:r||l.filter,enterMode:s||l.enterMode,protectedWhitespace
1s:a}).dataValue},toDataFormat:function(e,t){var n,i,o;return t&&(n=t.context,i=t.filter,o=t.enterMode),n||null===n||(n=this.editor.editable().getName()),this.editor.fire("toDataFormat",{dataValue:e,filter:i||this.editor.filter,context:n,enterMode:o||this.editor.enterMode}).dataValue}};var h=/(?: |\xa0)$/,f="{cke_protected}",p=CKEDITOR.dtd,g="caption colgroup col thead tfoot tbody".split(" "),m=CKEDITOR.tools.extend({},p.$blockLimit,p.$block),v={elements:{input:a,textarea:a}},E={attributeNames:[[/^on/,"data-cke-pa-on"],[/^data-cke-expando$/,""]]},T={elements:{embed:function(e){if((n=e.parent)&&"object"==n.name){var t=n.attributes.width,n=n.attributes.height;t&&(e.attributes.width=t),n&&(e.attributes.height=n)}},a:function(e){var t=e.attributes;if(!(e.children.length||t.name||t.id||e.attributes["data-cke-saved-name"]))return!1}}},y={elementNames:[[/^cke:/,""],[/^\?xml:namespace$/,""]],attributeNames:[[/^data-cke-(saved|pa)-/,""],[/^data-cke-.*/,""],["hidefocus",""]],elements:{$:function(e){var t=e.attributes;if(t){if(t["data-cke-temp"])return!1;for(var n=["name","href","src"],i=0;i<n.length;i++)"data-cke-saved-"+n[i]in t&&delete t[n[i]]}return e},table:function(e){e.children.slice(0).sort(function(e,t){var n,i;return e.type==CKEDITOR.NODE_ELEMENT&&t.type==e.type&&(n=CKEDITOR.tools.indexOf(g,e.name),i=CKEDITOR.tools.indexOf(g,t.name)),-1<n&&-1<i&&n!=i||(n=e.parent?e.getIndex():-1,i=t.parent?t.getIndex():-1),n>i?1:-1})},param:function(e){return e.children=[],e.isEmpty=!0,e},span:function(e){"Apple-style-span"==e.attributes.class&&delete e.name},html:function(e){delete e.attributes.contenteditable,delete e.attributes.class},body:function(e){delete e.attributes.spellcheck,delete e.attributes.contenteditable},style:function(e){var t=e.children[0];t&&t.value&&(t.value=CKEDITOR.tools.trim(t.value)),e.attributes.type||(e.attributes.type="text/css")},title:function(e){var t=e.children[0];!t&&s(e,t=new CKEDITOR.htmlParser.text),t.value=e.attributes["data-cke-title"]||""},input:l,textarea:l},attributes:{class:function(e){return CKEDITOR.tools.ltrim(e.replace(/(?:^|\s+)cke_[^\s]*/g,""))||!1}}};CKEDITOR.env.ie&&(y.attributes.style=function(e){return e.replace(/(^|;)([^\:]+)/g,function(e){return e.toLowerCase()})});var C=/<(a|area|img|input|source)\b([^>]*)>/gi,b=/([\w-:]+)\s*=\s*(?:(?:"[^"]*")|(?:'[^']*')|(?:[^ "'>]+))/gi,D=/^(href|src|name)$/i,I=/(?:<style(?=[ >])[^>]*>[\s\S]*?<\/style>)|(?:<(:?link|meta|base)[^>]*>)/gi,O=/(<textarea(?=[ >])[^>]*>)([\s\S]*?)(?:<\/textarea>)/gi,R=/<cke:encoded>([^<]*)<\/cke:encoded>/gi,_=/(<\/?)((?:object|embed|param|html|body|head|title)[^>]*>)/gi,w=/(<\/?)cke:((?:html|body|head|title)[^>]*>)/gi,k=/<cke:(param|embed)([^>]*?)\/?>(?!\s*<\/cke:\1)/gi}(),CKEDITOR.htmlParser.element=function(e,t){this.name=e,this.attributes=t||{},this.children=[];var n=e||"",i=n.match(/^cke:(.*)/);i&&(n=i[1]),n=!!(CKEDITOR.dtd.$nonBodyContent[n]||CKEDITOR.dtd.$block[n]||CKEDITOR.dtd.$listItem[n]||CKEDITOR.dtd.$tableContent[n]||CKEDITOR.dtd.$nonEditable[n]||"br"==n),this.isEmpty=!!CKEDITOR.dtd.$empty[e],this.isUnknown=!CKEDITOR.dtd[e],this._={isBlockLike:n,hasInlineStarted:this.isEmpty||!n}},CKEDITOR.htmlParser.cssStyle=function(e){var t={};return((e instanceof CKEDITOR.htmlParser.element?e.attributes.style:e)||"").replace(/"/g,'"').replace(/\s*([^ :;]+)\s*:\s*([^;]+)\s*(?=;|$)/g,function(e,n,i){"font-family"==n&&(i=i.replace(/["']/g,"")),t[n.toLowerCase()]=i}),{rules:t,populate:function(e){var t=this.toString();t&&(e instanceof CKEDITOR.dom.element?e.setAttribute("style",t):e instanceof CKEDITOR.htmlParser.element?e.attributes.style=t:e.style=t)},toString:function(){var e,n=[];for(e in t)t[e]&&n.push(e,":",t[e],";");return n.join("")}}},function(){var e=function(e,t){return(e=e[0])<(t=t[0])?-1:e>t?1:0},t=CKEDITOR.htmlParser.fragment.prototype;CKEDITOR.htmlParser.element.prototype=CKEDITOR.tools.extend(new CKEDITOR.htmlParser.node,{type:CKEDITOR.NODE_ELEMENT,add:t.add,clone:function(){return new CKEDITOR.htmlParser.element(this.name,this.attributes)},filter:function(e,t){var n,i,o,r,s=this;if((t=s.getFilterContext(t)).off)return!0;for(s.parent||e.onRoot(t,s);;){if(n=s.name,!(i=e.onElementName(t,n)))return this.remove(),!1;if(s.name=i,!(s=e.onElement(t,s)))return this.remove(),!1;if(s!==this)return this.replaceWith(s),!1;if(s.name==n)break;if(s.type!=CKEDITOR.NODE_ELEMENT)return this.replaceWith(s),!1;if(!s.name)return this.replaceWithChildren(),!1}for(o in n=s.attributes){for(i=n[o];;){if(!(r=e.onAttributeName(t,o))){delete n[o];break}if(r==o)break;delete n[o],o=r}r&&(!1===(i=e.onAttribute(t,s,r,i))?delete n[r]:n[r]=i)}return s.isEmpty||this.filterChildren(e,!1,t),!0},filterChildren:t.filterChildren,writeHtml:function(t,n){n&&this.filter(n);var i,o,r=this.name,s=[],a=this.attributes;for(i in t.openTag(r,a),a)s.push([i,a[i]]);for(t.sortAttributes&&s.sort(e),i=0,o=s.length;i<o;i++)a=s[i],t.attribute(a[0],a[1]);t.openTagClose(r,this.isEmpty),this.writeChildrenHtml(t),this.isEmpty||t.closeTag(r)},writeChildrenHtml:t.writeChildrenHtml,replaceWithChildren:function(){for(var e=this.children,t=e.length;t;)e[--t].insertAfter(this);this.remove()}
1,forEach:t.forEach,getFirst:function(e){if(!e)return this.children.length?this.children[0]:null;"function"!=typeof e&&(e=function(e){return function(t){return t.type==CKEDITOR.NODE_ELEMENT&&("string"==typeof e?t.name==e:t.name in e)}}(e));for(var t=0,n=this.children.length;t<n;++t)if(e(this.children[t]))return this.children[t];return null},getHtml:function(){var e=new CKEDITOR.htmlParser.basicWriter;return this.writeChildrenHtml(e),e.getHtml()},setHtml:function(e){for(var t=0,n=(e=this.children=CKEDITOR.htmlParser.fragment.fromHtml(e).children).length;t<n;++t)e[t].parent=this},getOuterHtml:function(){var e=new CKEDITOR.htmlParser.basicWriter;return this.writeHtml(e),e.getHtml()},split:function(e){for(var t=this.children.splice(e,this.children.length-e),n=this.clone(),i=0;i<t.length;++i)t[i].parent=n;return n.children=t,t[0]&&(t[0].previous=null),0<e&&(this.children[e-1].next=null),this.parent.add(n,this.getIndex()+1),n},find:function(e,t){void 0===t&&(t=!1);var n,i=[];for(n=0;n<this.children.length;n++){var o=this.children[n];"function"==typeof e&&e(o)?i.push(o):"string"==typeof e&&o.name===e&&i.push(o),t&&o.find&&(i=i.concat(o.find(e,t)))}return i},addClass:function(e){if(!this.hasClass(e)){var t=this.attributes.class||"";this.attributes.class=t+(t?" ":"")+e}},removeClass:function(e){var t=this.attributes.class;t&&((t=CKEDITOR.tools.trim(t.replace(new RegExp("(?:\\s+|^)"+e+"(?:\\s+|$)")," ")))?this.attributes.class=t:delete this.attributes.class)},hasClass:function(e){var t=this.attributes.class;return!!t&&new RegExp("(?:^|\\s)"+e+"(?=\\s|$)").test(t)},getFilterContext:function(e){var t=[];if(e||(e={off:!1,nonEditable:!1,nestedEditable:!1}),e.off||"off"!=this.attributes["data-cke-processor"]||t.push("off",!0),e.nonEditable||"false"!=this.attributes.contenteditable?e.nonEditable&&!e.nestedEditable&&"true"==this.attributes.contenteditable&&t.push("nestedEditable",!0):t.push("nonEditable",!0),t.length){e=CKEDITOR.tools.copy(e);for(var n=0;n<t.length;n+=2)e[t[n]]=t[n+1]}return e}},!0)}(),function(){var e={},t=/{([^}]+)}/g,n=/([\\'])/g,i=/\n/g,o=/\r/g;CKEDITOR.template=function(r){if(e[r])this.output=e[r];else{var s=r.replace(n,"\\$1").replace(i,"\\n").replace(o,"\\r").replace(t,function(e,t){return"',data['"+t+"']==undefined?'{"+t+"}':data['"+t+"'],'"});this.output=e[r]=Function("data","buffer","return buffer?buffer.push('"+s+"'):['"+s+"'].join('');")}}}(),delete CKEDITOR.loadFullCore,CKEDITOR.instances={},CKEDITOR.document=new CKEDITOR.dom.document(document),CKEDITOR.add=function(e){CKEDITOR.instances[e.name]=e,e.on("focus",function(){CKEDITOR.currentInstance!=e&&(CKEDITOR.currentInstance=e,CKEDITOR.fire("currentInstance"))}),e.on("blur",function(){CKEDITOR.currentInstance==e&&(CKEDITOR.currentInstance=null,CKEDITOR.fire("currentInstance"))}),CKEDITOR.fire("instance",null,e)},CKEDITOR.remove=function(e){delete CKEDITOR.instances[e.name]},function(){var e={};CKEDITOR.addTemplate=function(t,n){var i=e[t];return i||(i={name:t,source:n},CKEDITOR.fire("template",i),e[t]=new CKEDITOR.template(i.source))},CKEDITOR.getTemplate=function(t){return e[t]}}(),function(){var e=[];CKEDITOR.addCss=function(t){e.push(t)},CKEDITOR.getCss=function(){return e.join("\n")}}(),CKEDITOR.on("instanceDestroyed",function(){CKEDITOR.tools.isEmpty(this.instances)&&CKEDITOR.fire("reset")}),CKEDITOR.TRISTATE_ON=1,CKEDITOR.TRISTATE_OFF=2,CKEDITOR.TRISTATE_DISABLED=0,CKEDITOR.inline=function(e,t){if(!CKEDITOR.env.isCompatible)return null;if((e=CKEDITOR.dom.element.get(e)).getEditor())throw'The editor instance "'+e.getEditor().name+'" is already attached to the provided element.';var n=new CKEDITOR.editor(t,e,CKEDITOR.ELEMENT_MODE_INLINE),i=e.is("textarea")?e:null;return i?(n.setData(i.getValue(),null,!0),(e=CKEDITOR.dom.element.createFromHtml('<div contenteditable="'+!!n.readOnly+'" class="cke_textarea_inline">'+i.getValue()+"</div>",CKEDITOR.document)).insertAfter(i),i.hide(),i.$.form&&n._attachToForm()):n.setData(e.getHtml(),null,!0),n.on("loaded",function(){n.fire("uiReady"),n.editable(e),n.container=e,n.ui.contentsElement=e,n.setData(n.getData(1)),n.resetDirty(),n.fire("contentDom"),n.mode="wysiwyg",n.fire("mode"),n.status="ready",n.fireO
1nce("instanceReady"),CKEDITOR.fire("instanceReady",null,n)},null,null,1e4),n.on("destroy",function(){i&&(n.container.clearCustomData(),n.container.remove(),i.show()),n.element.clearCustomData(),delete n.element}),n},CKEDITOR.inlineAll=function(){var e,t,n;for(n in CKEDITOR.dtd.$editable)for(var i=CKEDITOR.document.getElementsByTag(n),o=0,r=i.count();o<r;o++)"true"==(e=i.getItem(o)).getAttribute("contenteditable")&&(t={element:e,config:{}},!1!==CKEDITOR.fire("inline",t)&&CKEDITOR.inline(e,t.config))},CKEDITOR.domReady(function(){!CKEDITOR.disableAutoInline&&CKEDITOR.inlineAll()}),CKEDITOR.replaceClass="ckeditor",function(){function e(e,n,i,o){if(!CKEDITOR.env.isCompatible)return null;if((e=CKEDITOR.dom.element.get(e)).getEditor())throw'The editor instance "'+e.getEditor().name+'" is already attached to the provided element.';var r=new CKEDITOR.editor(n,e,o);return o==CKEDITOR.ELEMENT_MODE_REPLACE&&(e.setStyle("visibility","hidden"),r._.required=e.hasAttribute("required"),e.removeAttribute("required")),i&&r.setData(i,null,!0),r.on("loaded",function(){!function(e){var t=e.name,n=e.element,i=e.elementMode,o=e.fire("uiSpace",{space:"top",html:""}).html,r=e.fire("uiSpace",{space:"bottom",html:""}).html,s=new CKEDITOR.template('<{outerEl} id="cke_{name}" class="{id} cke cke_reset cke_chrome cke_editor_{name} cke_{langDir} '+CKEDITOR.env.cssClass+'" dir="{langDir}" lang="{langCode}" role="application"'+(e.title?' aria-labelledby="cke_{name}_arialbl"':"")+">"+(e.title?'<span id="cke_{name}_arialbl" class="cke_voice_label">{voiceLabel}</span>':"")+'<{outerEl} class="cke_inner cke_reset" role="presentation">{topHtml}<{outerEl} id="{contentId}" class="cke_contents cke_reset" role="presentation"></{outerEl}>{bottomHtml}</{outerEl}></{outerEl}>'),t=CKEDITOR.dom.element.createFromHtml(s.output({id:e.id,name:t,langDir:e.lang.dir,langCode:e.langCode,voiceLabel:e.title,topHtml:o?'<span id="'+e.ui.spaceId("top")+'" class="cke_top cke_reset_all" role="presentation" style="height:auto">'+o+"</span>":"",contentId:e.ui.spaceId("contents"),bottomHtml:r?'<span id="'+e.ui.spaceId("bottom")+'" class="cke_bottom cke_reset_all" role="presentation">'+r+"</span>":"",outerEl:CKEDITOR.env.ie?"span":"div"}));i==CKEDITOR.ELEMENT_MODE_REPLACE?(n.hide(),t.insertAfter(n)):n.append(t),e.container=t,e.ui.contentsElement=e.ui.space("contents"),o&&e.ui.space("top").unselectable(),r&&e.ui.space("bottom").unselectable(),n=e.config.width,i=e.config.height,n&&t.setStyle("width",CKEDITOR.tools.cssLength(n)),i&&e.ui.space("contents").setStyle("height",CKEDITOR.tools.cssLength(i)),t.disableContextMenu(),CKEDITOR.env.webkit&&t.on("focus",function(){e.focus()}),e.fireOnce("uiReady")}(r),o==CKEDITOR.ELEMENT_MODE_REPLACE&&r.config.autoUpdateElement&&e.$.form&&r._attachToForm(),r.setMode(r.config.startupMode,function(){r.resetDirty(),r.status="ready",r.fireOnce("instanceReady"),CKEDITOR.fire("instanceReady",null,r)})}),r.on("destroy",t),r}function t(){var e=this.container,t=this.element;e&&(e.clearCustomData(),e.remove()),t&&(t.clearCustomData(),this.elementMode==CKEDITOR.ELEMENT_MODE_REPLACE&&(t.show(),this._.required&&t.setAttribute("required","required")),delete this.element)}CKEDITOR.replace=function(t,n){return e(t,n,null,CKEDITOR.ELEMENT_MODE_REPLACE)},CKEDITOR.appendTo=function(t,n,i){return e(t,n,i,CKEDITOR.ELEMENT_MODE_APPENDTO)},CKEDITOR.replaceAll=function(){for(var e=document.getElementsByTagName("textarea"),t=0;t<e.length;t++){var n=null,i=e[t];if(i.name||i.id){if("string"==typeof arguments[0]){if(!new RegExp("(?:^|\\s)"+arguments[0]+"(?:$|\\s)").test(i.className))continue}else if("function"==typeof arguments[0]&&(n={},!1===arguments[0](i,n)))continue;this.replace(i,n)}}},CKEDITOR.editor.prototype.addMode=function(e,t){(this._.modes||(this._.modes={}))[e]=t},CKEDITOR.editor.prototype.setMode=function(e,t){var n=this,i=this._.modes;if(e!=n.mode&&i&&i[e]){if(n.fire("beforeSetMode",e),n.mode){var o,r=n.checkDirty(),s=(i=n._.previousModeData,0);n.fire("beforeModeUnload"),n.editable(0),n._.previousMode=n.mode,n._.previousModeData=o=n.getData(1),"source"==n.mode&&i==o&&(n.fire("lockSnapshot",{forceUpdate:!0}),s=1),n.ui.space("contents").setHtml(""),n.mode=""}else n._.previousModeData=n.getData(1);this._.modes[e](function(){n.mode=e,void 0!==r&&!r&&n.resetDirty(),s?n.fire("unlockSnapshot"):"wysiwyg"==e&&n.fire("saveSnapshot"),setTimeout(function(){n.fire("mode"),t&&t.call(n)},0)})}},CKEDITOR.editor.prototype.resize=function(e,t,n,i){var o=this.container,r=this.ui.space("contents"),s=CKEDITOR.env.webkit&&this.document&&this.document.getWindow().$.frameElement;(i=i?this.container.getFirst(function(e){return e.type==CKEDITOR.NODE_ELEMENT&&e.hasClass("cke_inner")}):o).setSize("width",e,!0),s&&(s.style.width="1%");var a=(i.$.offsetHeight||0)-(r.$.clientHeight||0);o=Math.max(t-(n?0:a),0);t=n?t+a:t,r.setStyle("height",o+"px"),s&&(s.style.width="100%"),this.fire("resize",{outerHeight:t,contentsHeight:o,outerWidth:e||i.getSize("width")})},CKEDITOR.editor.prototype.getResizable=function(e){return e?this.ui.space("contents"):this.container},CKEDITOR.domReady(function(){CKEDITOR.replaceClass&&CKEDITOR.replaceAll(CKEDITOR.replaceClass)})}(),CKEDITOR.config.startupMode="wysiwyg",function(){function e(e){var t,i=e.editor,r=e.data.path,s=r.blockLimit,a=e.data.selection,l=a.getRanges()[0];(CKEDITOR.env.gecko||CKEDITOR.env.ie&&CKEDITOR.env.needsBrFiller)&&(a=function(e,t){if(e.isFake)return 0;var i=t.block||t.blockLimit,o=i&&i.getLast(n);if(!(!i||!i.isBlockBoundary()||o&&o.type==CKEDITOR.NODE_ELEMENT&&o.isBlockBoundary()||i.is("pre")||i.getBogus()))return i}(a,r))&&(a.appendBogus(),t=CKEDITOR.env.ie),o(i,r.block,s)&&l.collapsed&&!l.getCommonAncestor().isReadOnly()&&((r=l.clone()).enlarge(CKEDITOR.ENLARGE_BLOCK_CONTENTS),(s=new CKEDITOR.dom.walker(r)).guard=function(e){return!n(e)||e.type==CKEDITOR.NODE_COMMENT||e.isReadOnly()},!s.checkForward()||r.checkStartOfBlock()&&r.checkEndOfBlock())&&(i=l.fixBlock(!0,i.activeEnterMode==CKEDITOR.ENTER_DIV?"div":"p"),CKEDITOR.env.needsBrFiller||(i=i.getFirst(n))&&i.type==CKEDITOR.NODE_TEXT&&CKEDITOR.tools.trim(i.getText()).match(/^(?: |\xa0)$/)&&i.remove(),t=1,e.cancel()),t&&l.select()}function t(e){var t=e.data.getTarget();t.is("input")&&("submit"!=(t=t.getAttribute("type"))&&"reset"!=t||e.data.preventDefault())}function n(e){return l(e)&&u(e)}function i(e){function t(e){return function(t,o){if(o&&t.type==CKEDITOR.NODE_ELEMENT&&t.is(r)&&(i=t),!(o||!n(t)||e&&d(t)))return!1}}var i,o=e.getRanges()[0];e=e.root;var r={table:1,ul:1,ol:1,dl:1};if(o.startPath().contains(r)){var s=o.clone();if(s.collapse(1),s.setStartAt(e,CKEDITOR.POSITION_AFTER_START),(e=new CKEDITOR.dom.walker(s)).guard=t(),e.checkBackward(),i)return(s=o.clone()).collapse(),s.setEndAt(i,CKEDITOR.POSITION_AFTER_END),(e=new CKEDITOR.dom.walker(s)).guard=t(!0),i=!1,e.checkForward(),i}return null}function o(e,t,n){return!1!==e.config.autoParagraph&&e.activeEnterMode!=CKEDITOR.ENTER_BR&&(e.editable().equals(n)&&!t||t&&"true"==t.getAttribute("contenteditable"))}function r(e){return e.activeEnterMode!=CKEDITOR.ENTER_BR&&!1!==e.config.autoParagraph&&(e.activeEnterMode==CKEDITOR.ENTER_DIV?"div":"p")}function s(e){var t=e.editor;t.getSelection().scrollIntoView(),setTimeout(function(){t.fire("saveSnapshot")},0)}function a(e,t,n){var i=e.getCommonAncestor(t);for(t=e=n?t:e;(e=e.getParent())&&!i.equals(e)&&1==e.getChildCount();)t=e;t.remove()}var l,u,c,d,h,f,p,g,m,v;CKEDITOR.editable=CKEDITOR.tools.createClass({base:CKEDITOR.dom.element,$:function(e,t){this.base(t.$||t),this.editor=e,this.status="unloaded",this.hasFocus=!1,this.setup()},proto:{focus:function(){var e;if(CKEDITOR.env.webkit&&!this.hasFocus&&(e=this.editor._.previousActive||this.getDocument().getActive(),this.contains(e)))e.focus();else{CKEDITOR.env.edge&&14<CKEDITOR.env.version&&!this.hasFocus&&this.getDocument().equals(CKEDITOR.document)&&(this.editor._.previousScrollTop=this.$.scrollTop);try{!CKEDITOR.env.ie||CKEDITOR.env.edge&&14<CKEDITOR.env.version||!this.getDocument().equals(CKEDITOR.document)?this.$.focu
1s():this.$.setActive()}catch(e){if(!CKEDITOR.env.ie)throw e}CKEDITOR.env.safari&&!this.isInline()&&((e=CKEDITOR.document.getActive()).equals(this.getWindow().getFrame())||this.getWindow().focus())}},on:function(e,t){var n=Array.prototype.slice.call(arguments,0);return CKEDITOR.env.ie&&/^focus|blur$/.exec(e)&&(e="focus"==e?"focusin":"focusout",t=function(e,t){return function(n){var i=n.data.$.toElement||n.data.$.fromElement||n.data.$.relatedTarget;(i=i&&i.nodeType==CKEDITOR.NODE_ELEMENT?new CKEDITOR.dom.element(i):null)&&(t.equals(i)||t.contains(i))||e.call(this,n)}}(t,this),n[0]=e,n[1]=t),CKEDITOR.dom.element.prototype.on.apply(this,n)},attachListener:function(e){!this._.listeners&&(this._.listeners=[]);var t=Array.prototype.slice.call(arguments,1);t=e.on.apply(e,t);return this._.listeners.push(t),t},clearListeners:function(){var e=this._.listeners;try{for(;e.length;)e.pop().removeListener()}catch(e){}},restoreAttrs:function(){var e,t,n=this._.attrChanges;for(t in n)n.hasOwnProperty(t)&&(null!==(e=n[t])?this.setAttribute(t,e):this.removeAttribute(t))},attachClass:function(e){var t=this.getCustomData("classes");this.hasClass(e)||(!t&&(t=[]),t.push(e),this.setCustomData("classes",t),this.addClass(e))},changeAttr:function(e,t){var n=this.getAttribute(e);t!==n&&(!this._.attrChanges&&(this._.attrChanges={}),e in this._.attrChanges||(this._.attrChanges[e]=n),this.setAttribute(e,t))},insertText:function(e){this.editor.focus(),this.insertHtml(this.transformPlainTextToHtml(e),"text")},transformPlainTextToHtml:function(e){var t=this.editor.getSelection().getStartElement().hasAscendant("pre",!0)?CKEDITOR.ENTER_BR:this.editor.activeEnterMode;return CKEDITOR.tools.transformPlainTextToHtml(e,t)},insertHtml:function(e,t,n){var i=this.editor;i.focus(),i.fire("saveSnapshot"),n||(n=i.getSelection().getRanges()[0]),f(this,t||"html",e,n),n.select(),s(this),this.editor.fire("afterInsertHtml",{})},insertHtmlIntoRange:function(e,t,n){f(this,n||"html",e,t),this.editor.fire("afterInsertHtml",{intoRange:t})},insertElement:function(e,t){(o=this.editor).focus(),o.fire("saveSnapshot");var i=o.activeEnterMode,o=o.getSelection(),r=e.getName();r=CKEDITOR.dtd.$block[r];t||(t=o.getRanges()[0]),this.insertElementIntoRange(e,t)&&(t.moveToPosition(e,CKEDITOR.POSITION_AFTER_END),r&&((r=e.getNext(function(e){return n(e)&&!d(e)}))&&r.type==CKEDITOR.NODE_ELEMENT&&r.is(CKEDITOR.dtd.$block)?r.getDtd()["#"]?t.moveToElementEditStart(r):t.moveToElementEditEnd(e):r||i==CKEDITOR.ENTER_BR||(r=t.fixBlock(!0,i==CKEDITOR.ENTER_DIV?"div":"p"),t.moveToElementEditStart(r)))),o.selectRanges([t]),s(this)},insertElementIntoSelection:function(e){this.insertElement(e)},insertElementIntoRange:function(e,t){var n,i,o=this.editor,r=o.config.enterMode,s=e.getName(),a=CKEDITOR.dtd.$block[s];if(t.checkReadOnly())return!1;if(t.deleteContents(1),t.startContainer.type==CKEDITOR.NODE_ELEMENT&&(t.startContainer.is({tr:1,table:1,tbody:1,thead:1,tfoot:1})?p(t):t.startContainer.is(CKEDITOR.dtd.$list)&&g(t)),a)for(;(n=t.getCommonAncestor(0,1))&&(i=CKEDITOR.dtd[n.getName()])&&(!i||!i[s]);)n.getName()in CKEDITOR.dtd.span?t.splitElement(n):t.checkStartOfBlock()&&t.checkEndOfBlock()?(t.setStartBefore(n),t.collapse(!0),n.remove()):t.splitBlock(r==CKEDITOR.ENTER_DIV?"div":"p",o.editable());return t.insertNode(e),!0},setData:function(e,t){t||(e=this.editor.dataProcessor.toHtml(e)),this.setHtml(e),this.fixInitialSelection(),"unloaded"==this.status&&(this.status="ready"),this.editor.fire("dataReady")},getData:function(e){var t=this.getHtml();return e||(t=this.editor.dataProcessor.toDataFormat(t)),t},setReadOnly:function(e){this.setAttribute("contenteditable",!e)},detach:function(){this.removeClass("cke_editable"),this.status="detached";var e=this.editor;this._.detach(),delete e.document,delete e.window},isInline:function(){return this.getDocument().equals(CKEDITOR.document)},fixInitialSelection:function(){function e(){var e,n=t.getDocument().$,i=n.getSelection();e:if(i.anchorNode&&i.anchorNode==t.$)e=!0;else{if(CKEDITOR.env.webkit&&(e=t.getDocument().getActive())&&e.equals(t)&&!i.anchorNode){e=!0;break e}e=void 0}e&&((e=new CKEDITOR.dom.range(t)).moveToElementEditStart(t),(n=n.createRange()).setStart(e.startContainer.$,e.startOffset),n.collapse(!0),i.removeAllRanges(),i.addRange(n))}var t=this;CKEDITOR.env.ie&&(9>CKEDITOR.env.version||CKEDITOR.env.quirks)?this.hasFocus&&(this.focus(),function(){var e=t.getDocument().$,n=e.selection,i=t.getDocument().getActive();"None"==n.type&&i.equals(t)&&(n=new CKEDITOR.dom.range(t),e=e.body.createTextRange(),n.moveToElementEditStart(t),(n=n.startContainer).type!=CKEDITOR.NODE_ELEMENT&&(n=n.getParent()),e.moveToElementText(n.$),e.collapse(!0),e.select())}()):this.hasFocus?(this.focus(),e()):this.once("focus",function(){e()},null,null,-999)},getHtmlFromRange:function(e){return e.collapsed?new CKEDITOR.dom.documentFragment(e.document):(e={doc:this.getDocument(),range:e.clone()},m.eol.detect(e,this),m.bogus.exclude(e),m.cell.shrink(e),e.fragment=e.range.cloneContents(),m.tree.rebuild(e,this),m.eol.fix(e,this),new CKEDITOR.dom.documentFragment(e.fragment.$))},extractHtmlFromRange:function(e,t){var n=v,i={range:e,doc:e.document},o=this.getHtmlFromRange(e);if(e.collapsed)return e.optimize(),o;if(e.enlarge(CKEDITOR.ENLARGE_INLINE,1),n.table.detectPurge(i),i.bookmark=e.createBookmark(),delete i.range,(s=this.editor.createRange()).moveToPosition(i.bookmark.startNode,CKEDITOR.POSITION_BEFORE_START),i.targetBookmark=s.createBookmark(),n.list.detectMerge(i,this),n.table.detectRanges(i,this),n.block.detectMerge(i,this),i.tableContentsRanges?(n.table.deleteRanges(i),e.moveToBookmark(i.bookmark),i.range=e):(e.moveToBookmark(i.bookmark),i.range=e,e.extractContents(n.detectExtractMerge(i))),e.moveToBookmark(i.targetBookmark),e.optimize(),n.fixUneditableRangePosition(e),n.list.merge(i,this),n.table.purge(i,this),n.block.merge(i,this),t){if(n=e.startPath(),i=e.checkStartOfBlock()&&e.checkEndOfBlock()&&n.block&&!e.root.equals(n.block)){e:{var r,s=0;if(i=n.block.getElementsByTag("span"))for(;r=i.getItem(s++);)if(!u(r)){i=!0;break e}i=!1}i=!i}i&&(e.moveToPosition(n.block,CKEDITOR.POSITION_BEFORE_START),n.block.remove())}else n.autoParagraph(this.editor,e),c(e.startContainer)&&e.startContainer.appendBogus();return e.startContainer.mergeSiblings(),o},setup:function(){var e=this.editor;if(this.attachListener(e,"beforeGetData",function(){var t=this.getData();this.is("textarea")||!1!==e.config.ignoreEmptyParagraph&&(t=t.replace(h,function(e,t){return t})),e.setData(t,null,1)},this),this.attachListener(e,"getSnapshot",function(e){e.data=this.getData(1)},this),this.attachListener(e,"afterSetData",function(){this.setData(e.getData(1))}
1,this),this.attachListener(e,"loadSnapshot",function(e){this.setData(e.data,1)},this),this.attachListener(e,"beforeFocus",function(){var t=e.getSelection();(t=t&&t.getNative())&&"Control"==t.type||this.focus()},this),this.attachListener(e,"insertHtml",function(e){this.insertHtml(e.data.dataValue,e.data.mode,e.data.range)},this),this.attachListener(e,"insertElement",function(e){this.insertElement(e.data)},this),this.attachListener(e,"insertText",function(e){this.insertText(e.data)},this),this.setReadOnly(e.readOnly),this.attachClass("cke_editable"),e.elementMode==CKEDITOR.ELEMENT_MODE_INLINE?this.attachClass("cke_editable_inline"):e.elementMode!=CKEDITOR.ELEMENT_MODE_REPLACE&&e.elementMode!=CKEDITOR.ELEMENT_MODE_APPENDTO||this.attachClass("cke_editable_themed"),this.attachClass("cke_contents_"+e.config.contentsLangDirection),e.keystrokeHandler.blockedKeystrokes[8]=+e.readOnly,e.keystrokeHandler.attach(this),this.on("blur",function(){this.hasFocus=!1},null,null,-1),this.on("focus",function(){this.hasFocus=!0},null,null,-1),CKEDITOR.env.webkit&&this.on("scroll",function(){e._.previousScrollTop=e.editable().$.scrollTop},null,null,-1),CKEDITOR.env.edge&&14<CKEDITOR.env.version){var o=function(){var t=e.editable();null!=e._.previousScrollTop&&t.getDocument().equals(CKEDITOR.document)&&(t.$.scrollTop=e._.previousScrollTop,e._.previousScrollTop=null,this.removeListener("scroll",o))};this.on("scroll",o)}if(e.focusManager.add(this),this.equals(CKEDITOR.document.getActive())&&(this.hasFocus=!0,e.once("contentDom",function(){e.focusManager.focus(this)},this)),this.isInline()&&this.changeAttr("tabindex",e.tabIndex),!this.is("textarea")){e.document=this.getDocument(),e.window=this.getWindow();var r=e.document;this.changeAttr("spellcheck",!e.config.disableNativeSpellChecker);var s=e.config.contentsLangDirection;this.getDirection(1)!=s&&this.changeAttr("dir",s);var u=CKEDITOR.getCss();if(u){var c=(s=r.getHead()).getCustomData("stylesheet");c?u!=c.getText()&&(CKEDITOR.env.ie&&9>CKEDITOR.env.version?c.$.styleSheet.cssText=u:c.setText(u)):(u=r.appendStyleText(u),u=new CKEDITOR.dom.element(u.ownerNode||u.owningElement),s.setCustomData("stylesheet",u),u.data("cke-temp",1))}s=r.getCustomData("stylesheet_ref")||0,r.setCustomData("stylesheet_ref",s+1),this.setCustomData("cke_includeReadonly",!e.config.disableReadonlyStyling),this.attachListener(this,"click",function(e){e=e.data;var t=new CKEDITOR.dom.elementPath(e.getTarget(),this).contains("a");t&&2!=e.$.button&&t.isReadOnly()&&e.preventDefault()});var d={8:1,46:1};this.attachListener(e,"key",function(t){if(e.readOnly)return!0;var n;if((h=t.data.domEvent.getKey())in d){var o,r,s,a,u=(t=e.getSelection()).getRanges()[0],c=u.startPath(),h=8==h;CKEDITOR.env.ie&&11>CKEDITOR.env.version&&(o=t.getSelectedElement())||(o=i(t))?(e.fire("saveSnapshot"),u.moveToPosition(o,CKEDITOR.POSITION_BEFORE_START),o.remove(),u.select(),e.fire("saveSnapshot"),n=1):u.collapsed&&((r=c.block)&&(a=r[h?"getPrevious":"getNext"](l))&&a.type==CKEDITOR.NODE_ELEMENT&&a.is("table")&&u[h?"checkStartOfBlock":"checkEndOfBlock"]()?(e.fire("saveSnapshot"),u[h?"checkEndOfBlock":"checkStartOfBlock"]()&&r.remove(),u["moveToElementEdit"+(h?"End":"Start")](a),u.select(),e.fire("saveSnapshot"),n=1):c.blockLimit&&c.blockLimit.is("td")&&(s=c.blockLimit.getAscendant("table"))&&u.checkBoundaryOfElement(s,h?CKEDITOR.START:CKEDITOR.END)&&(a=s[h?"getPrevious":"getNext"](l))?(e.fire("saveSnapshot"),u["moveToElementEdit"+(h?"End":"Start")](a),u.checkStartOfBlock()&&u.checkEndOfBlock()?a.remove():u.select(),e.fire("saveSnapshot"),n=1):(s=c.contains(["td","th","caption"]))&&u.checkBoundaryOfElement(s,h?CKEDITOR.START:CKEDITOR.END)&&(n=1))}return!n}),e.blockless&&CKEDITOR.env.ie&&CKEDITOR.env.needsBrFiller&&this.attachListener(this,"keyup",function(t){t.data.getKeystroke()in d&&!this.getFirst(n)&&(this.appendBogus(),(t=e.createRange()).moveToPosition(this,CKEDITOR.POSITION_AFTER_START),t.select())}),this.attachListener(this,"dblclick",function(t){if(e.readOnly)return!1;t={element:t.data.getTarget()},e.fire("doubleclick",t)}),CKEDITOR.env.ie&&this.attachListener(this,"click",t),CKEDITOR.env.ie&&!CKEDITOR.env.edge||this.attachListener(this,"mousedown",function(t){var n=t.data.getTarget();
1n.is("img","hr","input","textarea","select")&&!n.isReadOnly()&&(e.getSelection().selectElement(n),n.is("input","textarea","select")&&t.data.preventDefault())}),CKEDITOR.env.edge&&this.attachListener(this,"mouseup",function(t){(t=t.data.getTarget())&&t.is("img")&&e.getSelection().selectElement(t)}),CKEDITOR.env.gecko&&this.attachListener(this,"mouseup",function(t){if(2==t.data.$.button&&!(t=t.data.getTarget()).getOuterHtml().replace(h,"")){var n=e.createRange();n.moveToElementEditStart(t),n.select(!0)}}),CKEDITOR.env.webkit&&(this.attachListener(this,"click",function(e){e.data.getTarget().is("input","select")&&e.data.preventDefault()}),this.attachListener(this,"mouseup",function(e){e.data.getTarget().is("input","textarea")&&e.data.preventDefault()})),CKEDITOR.env.webkit&&this.attachListener(e,"key",function(t){if(e.readOnly)return!0;if((t=t.data.domEvent.getKey())in d){var n=8==t,i=e.getSelection().getRanges()[0];if(t=i.startPath(),i.collapsed)e:{var o=t.block;if(o&&i[n?"checkStartOfBlock":"checkEndOfBlock"]()&&i.moveToClosestEditablePosition(o,!n)&&i.collapsed){if(i.startContainer.type==CKEDITOR.NODE_ELEMENT){var r=i.startContainer.getChild(i.startOffset-(n?1:0));if(r&&r.type==CKEDITOR.NODE_ELEMENT&&r.is("hr")){e.fire("saveSnapshot"),r.remove(),t=!0;break e}}var s;if(!(i=i.startPath().block)||i&&i.contains(o))t=void 0;else e.fire("saveSnapshot"),(s=(n?i:o).getBogus())&&s.remove(),r=(s=e.getSelection()).createBookmarks(),(n?o:i).moveChildren(n?i:o,!1),t.lastElement.mergeSiblings(),a(o,i,!n),s.selectBookmarks(r),t=!0}else t=!1}else n=i,s=t.block,i=n.endPath().block,s&&i&&!s.equals(i)?(e.fire("saveSnapshot"),(o=s.getBogus())&&o.remove(),n.enlarge(CKEDITOR.ENLARGE_INLINE),n.deleteContents(),i.getParent()&&(i.moveChildren(s,!1),t.lastElement.mergeSiblings(),a(s,i,!0)),(n=e.getSelection().getRanges()[0]).collapse(1),n.optimize(),""===n.startContainer.getHtml()&&n.startContainer.appendBogus(),n.select(),t=!0):t=!1;if(!t)return;return e.getSelection().scrollIntoView(),e.fire("saveSnapshot"),!1}},this,null,100)}}},_:{detach:function(){var e;if(this.editor.setData(this.editor.getData(),0,1),this.clearListeners(),this.restoreAttrs(),e=this.removeCustomData("classes"))for(;e.length;)this.removeClass(e.pop());if(!this.is("textarea")){var t=(e=this.getDocument()).getHead();if(t.getCustomData("stylesheet")){var n=e.getCustomData("stylesheet_ref");--n?e.setCustomData("stylesheet_ref",n):(e.removeCustomData("stylesheet_ref"),t.removeCustomData("stylesheet").remove())}}this.editor.fire("contentDomUnload"),delete this.editor}}}),CKEDITOR.editor.prototype.editable=function(e){var t=this._.editable;return t&&e?0:(arguments.length&&(t=this._.editable=e?e instanceof CKEDITOR.editable?e:new CKEDITOR.editable(this,e):(t&&t.detach(),null)),t)},CKEDITOR.on("instanceLoaded",function(t){var n=t.editor;n.on("insertElement",function(e){(e=e.data).type==CKEDITOR.NODE_ELEMENT&&(e.is("input")||e.is("textarea"))&&("false"!=e.getAttribute("contentEditable")&&e.data("cke-editable",e.hasAttribute("contenteditable")?"true":"1"),e.setAttribute("contentEditable",!1))}),n.on("selectionChange",function(t){if(!n.readOnly){var i=n.getSelection();i&&!i.isLocked&&(i=n.checkDirty(),n.fire("lockSnapshot"),e(t),n.fire("unlockSnapshot"),!i&&n.resetDirty())}})}),CKEDITOR.on("instanceCreated",function(e){var t=e.editor;t.on("mode",function(){var e=t.editable();if(e&&e.isInline()){var n=t.title;if(e.changeAttr("role","textbox"),e.changeAttr("aria-label",n),n&&e.changeAttr("title",n),(o=t.fire("ariaEditorHelpLabel",{}).label)&&(n=this.ui.space(this.elementMode==CKEDITOR.ELEMENT_MODE_INLINE?"top":"contents"))){var i=CKEDITOR.tools.getNextId(),o=CKEDITOR.dom.element.createFromHtml('<span id="'+i+'" class="cke_voice_label">'+o+"</span>");n.append(o),e.changeAttr("aria-describedby",i)}}})}),CKEDITOR.addCss(".cke_editable{cursor:text}.cke_editable img,.cke_editable input,.cke_editable textarea{cursor:default}"),l=CKEDITOR.dom.walker.whitespaces(!0),u=CKEDITOR.dom.walker.bookmark(!1,!0),c=CKEDITOR.dom.walker.empty(),d=CKEDITOR.dom.walker.bogus(),h=/(^|<body\b[^>]*>)\s*<(p|div|address|h\d|center|pre)[^>]*>\s*(?:<br[^>]*>| |\u00A0| )?\s*(:?<\/\2>)?\s*(?=$|<\/body>)/gi,f=function(){function e(e){return e.type==CKEDITOR.NODE_ELEMENT}function t(n,i){var o,r=[],s=n.getChildren(),a=s.count(),u=0,c=l[i],d=!n.is(l.$inline)||n.is("br");for(d&&r.push(" ");u<a;u++)e(o=s.getItem(u))&&!o.is(c)?r=r.concat(t(o,i)):r.push(o);return d&&r.push(" "),r}function i(t){return e(t.startContainer)&&t.startContainer.getChild(t.startOffset-1)}function s(t){return t&&e(t)&&(t.is(l.$removeEmpty)||t.is("a")&&!t.isBlockBoundary())}function a(t,n,i,o){var r,s,l=t.clone();l.setEndAt(n,CKEDITOR.POSITION_BEFORE_END),(r=new CKEDITOR.dom.walker(l).next())&&e(r)&&u[r.getName()]&&(s=r.getPrevious())&&e(s)&&!s.getParent().equals(t.startContainer)&&i.contains(s)&&o.contains(r)&&r.isIdentical(s)&&(r.moveChildren(s),r.remove(),a(t,n,i,o))}var l=CKEDITOR.dtd,u={p:1,div:1,h1:1,h2:1,h3:1,h4:1,h5:1,h6:1,ul:1,ol:1,li:1,pre:1,dl:1,blockquote:1},c={p:1,div:1,h1:1,h2:1,h3:1,h4:1,h5:1,h6:1},d=CKEDITOR.tools.extend({},l.$inline);return delete d.br,function(u,h,f,p){var g=u.editor,m=!1;if("unfiltered_html"==h&&(h="html",m=!0),!p.checkReadOnly()){var v,E,T;if(h=(u={type:h,dontFilter:m,editable:u,editor:g,range:p,blockLimit:K=new CKEDITOR.dom.elementPath(p.startContainer,p.root).blockLimit||p.root,mergeCandidates:[],zombies:[]}).range,p=u.mergeCandidates,"text"==u.type&&h.shrink(CKEDITOR.SHRINK_ELEMENT,!0,!1)&&(v=CKEDITOR.dom.element.createFromHtml("<span> </span>",h.document),h.insertNode(v),h.setStartAfter(v)),m=new CKEDITOR.dom.elementPath(h.startContainer),u.endPath=K=new CKEDITOR.dom.elementPath(h.endContainer),!h.collapsed){g=K.block||K.blockLimit;var y=h.getCommonAncestor();g&&!g.equals(y)&&!g.contains(y)&&h.checkEndOfBlock()&&u.zombies.push(g),h.deleteContents()}for(;(E=i(h))&&e(E)&&E.isBlockBoundary()&&m.contains(E);)h.moveToPosition(E,CKEDITOR.POSITION_BEFORE_END);for(a(h,u.blockLimit,m,K),v&&(h.setEndBefore(v),h.collapse(),v.remove()),(g=(v=h.startPath()).contains(s,!1,1))&&(h.splitElement(g),u.inlineStylesRoot=g,u.inlineStylesPeak=v.lastElement),(g=(v=h.createBookmark()).startNode.getPrevious(n))&&e(g)&&s(g)&&p.push(g),(g=v.startNode.getNext(n))&&e(g)&&s(g)&&p.push(g),g=v.startNode;(g=g.getParent())&&s(g);)p.push(g);
1if(h.moveToBookmark(v),v=f){if(v=u.range,"text"==u.type&&u.inlineStylesRoot){for(h=(E=u.inlineStylesPeak).getDocument().createText("{cke-peak}"),p=u.inlineStylesRoot.getParent();!E.equals(p);)h=h.appendTo(E.clone()),E=E.getParent();f=h.getOuterHtml().split("{cke-peak}").join(f)}if(E=u.blockLimit.getName(),/^\s+|\s+$/.test(f)&&"span"in CKEDITOR.dtd[E])f=(w='<span data-cke-marker="1"> </span>')+f+w;if(f=u.editor.dataProcessor.toHtml(f,{context:null,fixForBody:!1,protectedWhitespaces:!!w,dontFilter:u.dontFilter,filter:u.editor.activeFilter,enterMode:u.editor.activeEnterMode}),(E=v.document.createElement("body")).setHtml(f),w&&(E.getFirst().remove(),E.getLast().remove()),(w=v.startPath().block)&&(1!=w.getChildCount()||!w.getBogus()))e:{var C;if(1==E.getChildCount()&&e(C=E.getFirst())&&C.is(c)&&!C.hasAttribute("contenteditable")){for(v=0,p=(w=C.getElementsByTag("*")).count();v<p;v++)if(!(h=w.getItem(v)).is(d))break e;C.moveChildren(C.getParent(1)),C.remove()}}u.dataWrapper=E,v=f}if(v){var b;v=(C=u.range).document,E=u.blockLimit,p=0;var D,I,O,R,_,w=[];f=g=0,h=C.startContainer;var k,K=(m=u.endPath.elements[0]).getPosition(h);y=!(!m.getCommonAncestor(h)||K==CKEDITOR.POSITION_IDENTICAL||K&CKEDITOR.POSITION_CONTAINS+CKEDITOR.POSITION_IS_CONTAINED);for(function(t,n){function i(t,n){if(n.isBlock&&n.isElement&&!n.node.is("br")&&e(t)&&t.is("br"))return t.remove(),1}var o=n.endContainer.getChild(n.endOffset),r=n.endContainer.getChild(n.endOffset-1);o&&i(o,t[t.length-1]),r&&i(r,t[0])&&(n.setEnd(n.endContainer,n.endOffset-1),n.collapse())}(h=function t(n,i){var o,r,s,a,u=[],c=i.range.startContainer;o=i.range.startPath();c=l[c.getName()];for(var d=0,h=n.getChildren(),f=h.count(),p=-1,g=-1,m=0,v=o.contains(l.$list);d<f;++d)e(o=h.getItem(d))?(s=o.getName(),v&&s in CKEDITOR.dtd.$list?u=u.concat(t(o,i)):(a=!!c[s],"br"!=s||!o.data("cke-eol")||d&&d!=f-1||(m=(r=d?u[d-1].node:h.getItem(d+1))&&(!e(r)||!r.is("br")),r=r&&e(r)&&l.$block[r.getName()]),-1!=p||a||(p=d),a||(g=d),u.push({isElement:1,isLineBreak:m,isBlock:o.isBlockBoundary(),hasBlockSibling:r,node:o,name:s,allowed:a}),r=m=0)):u.push({isElement:0,node:o,allowed:1});return-1<p&&(u[p].firstNotAllowed=1),-1<g&&(u[g].lastNotAllowed=1),u}(u.dataWrapper,u),C);p<h.length;p++){if(b=(K=h[p]).isLineBreak){b=C,R=E;var S=void 0,x=void 0;K.hasBlockSibling?b=1:(S=b.startContainer.getAscendant(l.$block,1))&&S.is({div:1,p:1})?(x=S.getPosition(R))==CKEDITOR.POSITION_IDENTICAL||x==CKEDITOR.POSITION_CONTAINS?b=0:(R=b.splitElement(S),b.moveToPosition(R,CKEDITOR.POSITION_AFTER_START),b=1):b=0}if(b)f=0<p;else{if(b=C.startPath(),!K.isBlock&&o(u.editor,b.block,b.blockLimit)&&(O=r(u.editor))&&((O=v.createElement(O)).appendBogus(),C.insertNode(O),CKEDITOR.env.needsBrFiller&&(D=O.getBogus())&&D.remove(),C.moveToPosition(O,CKEDITOR.POSITION_BEFORE_END)),(b=C.startPath().block)&&!b.equals(I)&&((D=b.getBogus())&&(D.remove(),w.push(b)),I=b),K.firstNotAllowed&&(g=1),g&&K.isElement){for(b=C.startContainer,R=null;b&&!l[b.getName()][K.name];){if(b.equals(E)){b=null;break}R=b,b=b.getParent()}if(b)R&&(_=C.splitElement(R),u.zombies.push(_),u.zombies.push(R));else{R=E.getName(),k=!p,b=p==h.length-1;S=[],x=(R=t(K.node,R)).length;for(var N=0,A=void 0,L=0,F=-1;N<x;N++)" "==(A=R[N])?(L||k&&!N||(S.push(new CKEDITOR.dom.text(" ")),F=S.length),L=1):(S.push(A),L=0);b&&F==S.length&&S.pop(),k=S}}if(k){for(;b=k.pop();)C.insertNode(b);k=0}else C.insertNode(K.node);K.lastNotAllowed&&p<h.length-1&&((_=y?m:_)&&C.setEndAt(_,CKEDITOR.POSITION_AFTER_START),g=0),C.collapse()}}1!=h.length?D=!1:D=(D=h[0]).isElement&&"false"==D.node.getAttribute("contenteditable"),D&&(f=!0,b=h[0].node,C.setStartAt(b,CKEDITOR.POSITION_BEFORE_START),C.setEndAt(b,CKEDITOR.POSITION_AFTER_END)),u.dontMoveCaret=f,u.bogusNeededBlocks=w}for(D=u.range,_=u.bogusNeededBlocks,k=D.createBookmark();I=u.zombies.pop();)I.getParent()&&((O=D.clone()).moveToElementEditStart(I),O.removeEmptyBlocksAtEnd());if(_)for(;I=_.pop();)CKEDITOR.env.needsBrFiller?I.appendBogus():I.append(D.document.createText("\xa0"));for(;I=u.mergeCandidates.pop();)I.mergeSiblings();if(D.moveToBookmark(k),!u.dontMoveCaret){for(I=i(D);I&&e(I)&&!I.is(l.$empty);){if(I.isBlockBoundary())D.moveToPosition(I,CKEDITOR.POSITION_BEFORE_END);else{if(s(I)&&I.getHtml().match(/(\s| )$/g)){T=null;break}(T=D.clone()).moveToPosition(I,CKEDITOR.POSITION_BEFORE_END)}I=I.getLast(n)}T&&D.moveToRange(T)}}}}(),p=function(){function e(e){return(e=new CKEDITOR.dom.walker(e)).guard=function(e,t){return!t&&(e.type==CKEDITOR.NODE_ELEMENT?e.is(CKEDITOR.dtd.$tableContent):void 0)},e.evaluator=function(e){return e.type==CKEDITOR.NODE_ELEMENT},e}
1function t(e,t,n){return t=e.getDocument().createElement(t),e.append(t,n),t}function n(e){for(var t,n=e.count();0<n--;)t=e.getItem(n),CKEDITOR.tools.trim(t.getHtml())||(t.appendBogus(),CKEDITOR.env.ie&&9>CKEDITOR.env.version&&t.getChildCount()&&t.getFirst().remove())}return function(i){var o=i.startContainer,r=o.getAscendant("table",1),s=!1;n(r.getElementsByTag("td")),n(r.getElementsByTag("th")),(r=i.clone()).setStart(o,0),(r=e(r).lastBackward())||((r=i.clone()).setEndAt(o,CKEDITOR.POSITION_BEFORE_END),r=e(r).lastForward(),s=!0),r||(r=o),r.is("table")?(i.setStartAt(r,CKEDITOR.POSITION_BEFORE_START),i.collapse(!0),r.remove()):(r.is({tbody:1,thead:1,tfoot:1})&&(r=t(r,"tr",s)),r.is("tr")&&(r=t(r,r.getParent().is("thead")?"th":"td",s)),(o=r.getBogus())&&o.remove(),i.moveToPosition(r,s?CKEDITOR.POSITION_AFTER_START:CKEDITOR.POSITION_BEFORE_END))}}(),g=function(){function e(e){return(e=new CKEDITOR.dom.walker(e)).guard=function(e,t){return!t&&(e.type==CKEDITOR.NODE_ELEMENT?e.is(CKEDITOR.dtd.$list)||e.is(CKEDITOR.dtd.$listItem):void 0)},e.evaluator=function(e){return e.type==CKEDITOR.NODE_ELEMENT&&e.is(CKEDITOR.dtd.$listItem)},e}return function(t){var n,i=t.startContainer,o=!1;(n=t.clone()).setStart(i,0),(n=e(n).lastBackward())||((n=t.clone()).setEndAt(i,CKEDITOR.POSITION_BEFORE_END),n=e(n).lastForward(),o=!0),n||(n=i),n.is(CKEDITOR.dtd.$list)?(t.setStartAt(n,CKEDITOR.POSITION_BEFORE_START),t.collapse(!0),n.remove()):((i=n.getBogus())&&i.remove(),t.moveToPosition(n,o?CKEDITOR.POSITION_AFTER_START:CKEDITOR.POSITION_BEFORE_END),t.select())}}(),m={eol:{detect:function(e,t){var n=e.range,i=n.clone(),o=n.clone(),r=new CKEDITOR.dom.elementPath(n.startContainer,t),s=new CKEDITOR.dom.elementPath(n.endContainer,t);i.collapse(1),o.collapse(),r.block&&i.checkBoundaryOfElement(r.block,CKEDITOR.END)&&(n.setStartAfter(r.block),e.prependEolBr=1),s.block&&o.checkBoundaryOfElement(s.block,CKEDITOR.START)&&(n.setEndBefore(s.block),e.appendEolBr=1)},fix:function(e,t){var n,i=t.getDocument();e.appendEolBr&&(n=this.createEolBr(i),e.fragment.append(n)),!e.prependEolBr||n&&!n.getPrevious()||e.fragment.append(this.createEolBr(i),1)},createEolBr:function(e){return e.createElement("br",{attributes:{"data-cke-eol":1}})}},bogus:{exclude:function(e){var t,n=(t=e.range.getBoundaryNodes()).startNode;!(t=t.endNode)||!d(t)||n&&n.equals(t)||e.range.setEndBefore(t)}},tree:{rebuild:function(e,t){var n,i=(s=e.range).getCommonAncestor(),o=new CKEDITOR.dom.elementPath(i,t),r=new CKEDITOR.dom.elementPath(s.startContainer,t),s=new CKEDITOR.dom.elementPath(s.endContainer,t);if(i.type==CKEDITOR.NODE_TEXT&&(i=i.getParent()),o.blockLimit.is({tr:1,table:1})){var a=o.contains("table").getParent();n=function(e){return!e.equals(a)}}else if(o.block&&o.block.is(CKEDITOR.dtd.$listItem)&&(r=r.contains(CKEDITOR.dtd.$list),s=s.contains(CKEDITOR.dtd.$list),!r.equals(s))){var l=o.contains(CKEDITOR.dtd.$list).getParent();n=function(e){return!e.equals(l)}}n||(n=function(e){return!e.equals(o.block)&&!e.equals(o.blockLimit)}),this.rebuildFragment(e,t,i,n)},rebuildFragment:function(e,t,n,i){for(var o;n&&!n.equals(t)&&i(n);)o=n.clone(0,1),e.fragment.appendTo(o),e.fragment=o,n=n.getParent()}},cell:{shrink:function(e){var t=(e=e.range).startContainer,n=e.endContainer,i=e.startOffset,o=e.endOffset;t.type==CKEDITOR.NODE_ELEMENT&&t.equals(n)&&t.is("tr")&&++i==o&&e.shrink(CKEDITOR.SHRINK_TEXT)}}},v=function(){function e(e,t){var n=e.getParent();n.is(CKEDITOR.dtd.$inline)&&e[t?"insertBefore":"insertAfter"](n)}function t(t,n,i){e(n),e(i,1);for(var o;o=i.getNext();)o.insertAfter(n),n=o;c(t)&&t.remove()}function n(e,t){var n=new CKEDITOR.dom.range(e);return n.setStartAfter(t.startNode),n.setEndBefore(t.endNode),n}return{list:{detectMerge:function(e,t){var i=n(t,e.bookmark),o=i.startPath(),r=i.endPath(),s=o.contains(CKEDITOR.dtd.$list),a=r.contains(CKEDITOR.dtd.$list);e.mergeList=s&&a&&s.getParent().equals(a.getParent())&&!s.equals(a),e.mergeListItems=o.block&&r.block&&o.block.is(CKEDITOR.dtd.$listItem)&&r.block.is(CKEDITOR.dtd.$listItem),(e.mergeList||e.mergeListItems)&&((i=i.clone()).setStartBefore(e.bookmark.startNode),i.setEndAfter(e.bookmark.endNode),e.mergeListBookmark=i.createBookmark())},merge:function(e,n){if(e.mergeListBookmark){var i=e.mergeListBookmark.startNode,o=e.mergeListBookmark.endNode,r=new CKEDITOR.dom.elementPath(i,n),s=new CKEDITOR.dom.elementPath(o,n);if(e.mergeList){var a=r.contains(CKEDITOR.dtd.$list),l=s.contains(CKEDITOR.dtd.$list);a.equals(l)||(l.moveChildren(a),l.remove())}e.mergeListItems&&(r=r.contains(CKEDITOR.dtd.$listItem),s=s.contains(CKEDITOR.dtd.$listItem),r.equals(s)||t(s,i,o)),i.remove(),o.remove()}}},block:{detectMerge:function(e,t){if(!e.tableContentsRanges&&!e.mergeListBookmark){var n=new CKEDITOR.dom.range(t);n.setStartBefore(e.bookmark.startNode),n.setEndAfter(e.bookmark.endNode),e.mergeBlockBookmark=n.createBookmark()}},merge:function(e,n){if(e.mergeBlockBookmark&&!e.purgeTableBookmark){var i=e.mergeBlockBookmark.startNode,o=e.mergeBlockBookmark.endNode,r=new CKEDITOR.dom.elementPath(i,n),s=new CKEDITOR.dom.elementPath(o,n);r=r.block,s=s.block;r&&s&&!r.equals(s)&&t(s,i,o),i.remove(),o.remove()}}},table:function(){function e(e){var n,o=[],r=new CKEDITOR.dom.walker(e),s=e.startPath().contains(i),a=e.endPath().contains(i),l={};return r.guard=function(r,u){if(r.type==CKEDITOR.NODE_ELEMENT){var c="visited_"+(u?"out":"in");if(r.getCustomData(c))return;CKEDITOR.dom.element.setMarker(l,r,c,1)}u&&s&&r.equals(s)?((n=e.clone()).setEndAt(s,CKEDITOR.POSITION_BEFORE_END),o.push(n)):!u&&a&&r.equals(a)?((n=e.clone()).setStartAt(a,CKEDITOR.POSITION_AFTER_START),o.push(n)):((c=!u)&&(c=r.type==CKEDITOR.NODE_ELEMENT&&r.is(i)&&(!s||t(r,s))&&(!a||t(r,a))),c&&((n=e.clone()).selectNodeContents(r),o.push(n)))},r.lastForward(),CKEDITOR.dom.element.clearAllMarkers(l),o}function t(e,t){var n=CKEDITOR.POSITION_CONTAINS+CKEDITOR.POSITION_IS_CONTAINED,i=e.getPosition(t);return i!==CKEDITOR.POSITION_IDENTICAL&&0==(i&n)}var i={td:1,th:1,caption:1};return{detectPurge:function(e){var t=e.range;(o=t.clone()).enlarge(CKEDITOR.ENLARGE_ELEMENT);var n=0;if((o=new CKEDITOR.dom.walker(o)).evaluator=function(e){e.type==CKEDITOR.NODE_ELEMENT&&e.is(i)&&++n},o.checkForward(),1<n){var o=t.startPath().contains("table"),r=t.endPath().contains("table");o&&r&&t.checkBoundaryOfElement(o,CKEDITOR.START)&&t.checkBoundaryOfElement(r,CKEDITOR.END)&&((t=e.range.clone()).setStartBefore(o),t.setEndAfter(r),e.purgeTableBookmark=t.createBookmark())}},detectRanges:function(o,r){var s,a,l=n(r,o.bookmark),u=l.clone(),c=l.getCommonAncestor();c.is(CKEDITOR.dtd.$tableContent)&&!c.is(i)&&(c=c.getAscendant("table",!0)),a=c,
1c=new CKEDITOR.dom.elementPath(l.startContainer,a),a=new CKEDITOR.dom.elementPath(l.endContainer,a),c=c.contains("table"),a=a.contains("table"),(c||a)&&(c&&a&&t(c,a)?(o.tableSurroundingRange=u,u.setStartAt(c,CKEDITOR.POSITION_AFTER_END),u.setEndAt(a,CKEDITOR.POSITION_BEFORE_START),(u=l.clone()).setEndAt(c,CKEDITOR.POSITION_AFTER_END),(s=l.clone()).setStartAt(a,CKEDITOR.POSITION_BEFORE_START),s=e(u).concat(e(s))):c?a||(o.tableSurroundingRange=u,u.setStartAt(c,CKEDITOR.POSITION_AFTER_END),l.setEndAt(c,CKEDITOR.POSITION_AFTER_END)):(o.tableSurroundingRange=u,u.setEndAt(a,CKEDITOR.POSITION_BEFORE_START),l.setStartAt(a,CKEDITOR.POSITION_AFTER_START)),o.tableContentsRanges=s||e(l))},deleteRanges:function(e){for(var t;t=e.tableContentsRanges.pop();)t.extractContents(),c(t.startContainer)&&t.startContainer.appendBogus();e.tableSurroundingRange&&e.tableSurroundingRange.extractContents()},purge:function(e){if(e.purgeTableBookmark){var t=e.doc,n=e.range.clone();(t=t.createElement("p")).insertBefore(e.purgeTableBookmark.startNode),n.moveToBookmark(e.purgeTableBookmark),n.deleteContents(),e.range.moveToPosition(t,CKEDITOR.POSITION_AFTER_START)}}}}(),detectExtractMerge:function(e){return!(e.range.startPath().contains(CKEDITOR.dtd.$listItem)&&e.range.endPath().contains(CKEDITOR.dtd.$listItem))},fixUneditableRangePosition:function(e){e.startContainer.getDtd()["#"]||e.moveToClosestEditablePosition(null,!0)},autoParagraph:function(e,t){var n,i=t.startPath();o(e,i.block,i.blockLimit)&&(n=r(e))&&((n=t.document.createElement(n)).appendBogus(),t.insertN
1ode(n),t.moveToPosition(n,CKEDITOR.POSITION_AFTER_START))}}}()}(),function(){function e(){var e,t=this._.fakeSelection;if(t&&((e=this.getSelection(1))&&e.isHidden()||(t.reset(),t=0)),(t||(t=e||this.getSelection(1))&&t.getType()!=CKEDITOR.SELECTION_NONE)&&(this.fire("selectionCheck",t),!(e=this.elementPath()).compare(this._.selectionPreviousPath))){var n=this._.selectionPreviousPath&&this._.selectionPreviousPath.blockLimit.equals(e.blockLimit);CKEDITOR.env.webkit&&!n&&(this._.previousActive=this.document.getActive()),this._.selectionPreviousPath=e,this.fire("selectionChange",{selection:t,path:e})}}function t(){u=!0,l||(n.call(this),l=CKEDITOR.tools.setTimeout(n,200,this))}function n(){l=null,u&&(CKEDITOR.tools.setTimeout(e,0,this),u=!1)}function i(e){return!(!p(e)&&(e.type!=CKEDITOR.NODE_ELEMENT||e.is(CKEDITOR.dtd.$empty)))}function o(e){function t(t,n){return!(!t||t.type==CKEDITOR.NODE_TEXT)&&e.clone()["moveToElementEdit"+(n?"End":"Start")](t)}if(!(e.root instanceof CKEDITOR.editable))return!1;var n=e.startContainer,o=e.getPreviousNode(i,null,n),r=e.getNextNode(i,null,n);return!(!t(o)&&!t(r,1)&&(o||r||n.type==CKEDITOR.NODE_ELEMENT&&n.isBlockBoundary()&&n.getBogus()))}function r(e){s(e,!1);var t=e.getDocument().createText(h);return e.setCustomData("cke-fillingChar",t),t}function s(e,t){var n=e&&e.removeCustomData("cke-fillingChar");if(n){if(!1!==t){var i=e.getDocument().getSelection().getNative(),o=i&&"None"!=i.type&&i.getRangeAt(0),r=h.length;if(n.getLength()>r&&o&&o.intersectsNode(n.$)){var s=[{node:i.anchorNode,offset:i.anchorOffset},{node:i.focusNode,offset:i.focusOffset}];i.anchorNode==n.$&&i.anchorOffset>r&&(s[0].offset-=r),i.focusNode==n.$&&i.focusOffset>r&&(s[1].offset-=r)}}n.setText(a(n.getText(),1)),s&&(i=(n=e.getDocument().$).getSelection(),(n=n.createRange()).setStart(s[0].node,s[0].offset),n.collapse(!0),i.removeAllRanges(),i.addRange(n),i.extend(s[1].node,s[1].offset))}}function a(e,t){return t?e.replace(f,function(e,t){return t?"\xa0":""}):e.replace(h,"")}var l,u,c="function"!=typeof window.getSelection,d=1,h=CKEDITOR.tools.repeat("\u200b",7),f=new RegExp(h+"( )?","g"),p=CKEDITOR.dom.walker.invisible(1),g=function(){function e(e){return function(t){var n=t.editor.createRange();return n.moveToClosestEditablePosition(t.selected,e)&&t.editor.getSelection().selectRanges([n]),!1}}function t(e){return function(t){var n,i=t.editor,o=i.createRange();return(n=o.moveToClosestEditablePosition(t.selected,e))||(n=o.moveToClosestEditablePosition(t.selected,!e)),n&&i.getSelection().selectRanges([o]),i.fire("saveSnapshot"),t.selected.remove(),n||(o.moveToElementEditablePosition(i.editable()),i.getSelection().selectRanges([o])),i.fire("saveSnapshot"),!1}}var n=e(),i=e(1);return{37:n,38:n,39:i,40:i,8:t(),46:t(1)}}();CKEDITOR.on("instanceCreated",function(n){function i(){var e=o.getSelection();e&&e.removeAllRanges()}var o=n.editor;o.on("contentDom",function(){function n(){(a=new CKEDITOR.dom.selection(o.getSelection())).lock()}function i(){h.removeListener("mouseup",i),g.removeListener("mouseup",i);var e=CKEDITOR.document.$.selection,t=e.createRange();"None"!=e.type&&t.parentElement().ownerDocument==d.$&&t.select()}var r,a,l,u,d=o.document,h=CKEDITOR.document,f=o.editable(),p=d.getBody(),g=d.getDocumentElement(),m=f.isInline();if((CKEDITOR.env.gecko&&f.attachListener(f,"focus",function(e){e.removeListener(),0!==r&&(e=o.getSelection().getNative())&&e.isCollapsed&&e.anchorNode==f.$&&((e=o.createRange()).moveToElementEditStart(f),e.select())},null,null,-2),f.attachListener(f,CKEDITOR.env.webkit?"DOMFocusIn":"focus",function(){r&&CKEDITOR.env.webkit&&(r=o._.previousActive&&o._.previousActive.equals(d.getActive()))&&null!=o._.previousScrollTop&&o._.previousScrollTop!=f.$.scrollTop&&(f.$.scrollTop=o._.previousScrollTop),o.unlockSelection(r),r=0},null,null,-1),f.attachListener(f,"mousedown",function(){r=0}),(CKEDITOR.env.ie||m)&&(c?f.attachListener(f,"beforedeactivate",n,null,null,-1):f.attachListener(o,"selectionCheck",n,null,null,-1),f.attachListener(f,CKEDITOR.env.webkit?"DOMFocusOut":"blur",function(){o.lockSelection(a),r=1},null,null,-1),f.attachListener(f,"mousedown",function(){r=0})),CKEDITOR.env.ie&&!m)&&(f.attachListener(f,"mousedown",function(e){2==e.data.$.button&&((e=o.document.getSelection())&&e.getType()!=CKEDITOR.SELECTION_NONE||(l=o.window.getScrollPosition()))}),f.attachListener(f,"mouseup",function(e){2==e.data.$.button&&l&&(o.document.$.documentElement.scrollLeft=l.x,o.document.$.documentElement.scrollTop=l.y),l=null}),"BackCompat"!=d.$.compatMode)){var v,E;if(CKEDITOR.env.ie7Compat||CKEDITOR.env.ie6Compat)g.on("mousedown",function(e){function t(e){if(e=e.data.$,v){var t=p.$.createTextRange();try{t.moveToPoint(e.clientX,e.clientY)}catch(e){}v.setEndPoint(0>E.compareEndPoints("StartToStart",t)?"EndToEnd":"StartToStart",t),v.select()}}function n(){g.removeListener("mousemove",t),h.removeListener("mouseup",n),g.removeListener("mouseup",n),v.select()}if((e=e.data).getTarget().is("html")&&e.$.y<g.$.clientHeight&&e.$.x<g.$.clientWidth){v=p.$.createTextRange();try{v.moveToPoint(e.$.clientX,e.$.clientY)}catch(e){}E=v.duplicate(),g.on("mousemove",t),h.on("mouseup",n),g.on("mouseup",n)}});7<CKEDITOR.env.version&&11>CKEDITOR.env.version&&g.on("mousedown",function(e){e.data.getTarget().is("html")&&(h.on("mouseup",i),g.on("mouseup",i))})}(f.attachListener(f,"selectionchange",e,o),f.attachListener(f,"keyup",t,o),f.attachListener(f,CKEDITOR.env.webkit?"DOMFocusIn":"focus",function(){o.forceNextSelectionCheck(),o.selectionChange(1)}),m&&(CKEDITOR.env.webkit||CKEDITOR.env.gecko))?(f.attachListener(f,"mousedown",function(){u=1}),f.attachListener(d.getDocumentElement(),"mouseup",function(){u&&t.call(o),u=0})):f.attachListener(CKEDITOR.env.ie?f:d.getDocumentElement(),"mouseup",t,o);CKEDITOR.env.webkit&&f.attachListener(d,"keydown",function(e){switch(e.data.getKey()){case 13:case 33:case 34:case 35:case 36:case 37:case 39:case 8:case 45:case 46:s(f)}},null,null,-1),f.attachListener(f,"keydown",function(e){var t={37:1,39:1,8:1,46:1};return function(n){var i=n.data.getKeystroke();if(t[i]){var o=e.getSelection().getRanges(),r=o[0];1==o.length&&r.collapsed&&(i=r[38>i?"getPreviousEditableNode":"getNextEditableNode"]())&&i.type==CKEDITOR.NODE_ELEMENT&&"false"==i.getAttribute("contenteditable")&&(e.getSelection().fake(i),n.data.preventDefault(),n.cancel())}}}(o),null,null,-1)}),o.on("setData",function(){o.unlockSelection(),CKEDITOR.env.webkit&&i()}),o.on("contentDomUnload",function(){o.unlockSelection()}),CKEDITOR.env.ie9Compat&&o.on("beforeDestroy",i,null,null,9),o.on("dataReady",function(){delete o._.fakeSelection,delete o._.hiddenSelectionContainer,o.selectionChange(1)}
1),o.on("loadSnapshot",function(){var e=CKEDITOR.dom.walker.nodeType(CKEDITOR.NODE_ELEMENT),t=o.editable().getLast(e);t&&t.hasAttribute("data-cke-hidden-sel")&&(t.remove(),CKEDITOR.env.gecko&&(e=o.editable().getFirst(e))&&e.is("br")&&e.getAttribute("_moz_editor_bogus_node")&&e.remove())},null,null,100),o.on("key",function(e){if("wysiwyg"==o.mode){var t=o.getSelection();if(t.isFake){var n=g[e.data.keyCode];if(n)return n({editor:o,selected:t.getSelectedElement(),selection:t,keyEvent:e})}}})}),CKEDITOR.env.webkit&&CKEDITOR.on("instanceReady",function(e){var t=e.editor;t.on("selectionChange",function(){var e=t.editable(),n=e.getCustomData("cke-fillingChar");n&&(n.getCustomData("ready")?s(e):n.setCustomData("ready",1))},null,null,-1),t.on("beforeSetMode",function(){s(t.editable())},null,null,-1),t.on("getSnapshot",function(e){e.data&&(e.data=a(e.data))},t,null,20),t.on("toDataFormat",function(e){e.data.dataValue=a(e.data.dataValue)},null,null,0)}),CKEDITOR.editor.prototype.selectionChange=function(n){(n?e:t).call(this)},CKEDITOR.editor.prototype.getSelection=function(e){return!this._.savedSelection&&!this._.fakeSelection||e?(e=this.editable())&&"wysiwyg"==this.mode?new CKEDITOR.dom.selection(e):null:this._.savedSelection||this._.fakeSelection},CKEDITOR.editor.prototype.lockSelection=function(e){return(e=e||this.getSelection(1)).getType()!=CKEDITOR.SELECTION_NONE&&(!e.isLocked&&e.lock(),this._.savedSelection=e,!0)},CKEDITOR.editor.prototype.unlockSelection=function(e){var t=this._.savedSelection;return!!t&&(t.unlock(e),delete this._.savedSelection,!0)},CKEDITOR.editor.prototype.forceNextSelectionCheck=function(){delete this._.selectionPreviousPath},CKEDITOR.dom.document.prototype.getSelection=function(){return new CKEDITOR.dom.selection(this)},CKEDITOR.dom.range.prototype.select=function(){var e=this.root instanceof CKEDITOR.editable?this.root.editor.getSelection():new CKEDITOR.dom.selection(this.root);return e.selectRanges([this]),e},CKEDITOR.SELECTION_NONE=1,CKEDITOR.SELECTION_TEXT=2,CKEDITOR.SELECTION_ELEMENT=3,CKEDITOR.dom.selection=function(e){if(e instanceof CKEDITOR.dom.selection){var t=e;e=e.root}var n,i,o=e instanceof CKEDITOR.dom.element;if(this.rev=t?t.rev:d++,this.document=e instanceof CKEDITOR.dom.document?e:e.getDocument(),this.root=o?e:this.document.getBody(),this.isLocked=0,this._={cache:{}},t)return CKEDITOR.tools.extend(this._.cache,t._.cache),this.isFake=t.isFake,this.isLocked=t.isLocked,this;if(e=this.getNative())if(e.getRangeAt)n=(i=e.rangeCount&&e.getRangeAt(0))&&new CKEDITOR.dom.node(i.commonAncestorContainer);else{try{i=e.createRange()}catch(e){}n=i&&CKEDITOR.dom.element.get(i.item&&i.item(0)||i.parentElement())}return(!n||n.type!=CKEDITOR.NODE_ELEMENT&&n.type!=CKEDITOR.NODE_TEXT||!this.root.equals(n)&&!this.root.contains(n))&&(this._.cache.type=CKEDITOR.SELECTION_NONE,this._.cache.startElement=null,this._.cache.selectedElement=null,this._.cache.selectedText="",this._.cache.ranges=new CKEDITOR.dom.rangeList),this};var m={img:1,hr:1,li:1,table:1,tr:1,td:1,th:1,embed:1,object:1,ol:1,ul:1,a:1,input:1,form:1,select:1,textarea:1,button:1,fieldset:1,thead:1,tfoot:1};CKEDITOR.tools.extend(CKEDITOR.dom.selection,{_removeFillingCharSequenceString:a,_createFillingCharSequenceNode:r,FILLING_CHAR_SEQUENCE:h}),CKEDITOR.dom.selection.prototype={getNative:function(){return void 0!==this._.cache.nativeSel?this._.cache.nativeSel:this._.cache.nativeSel=c?this.document.$.selection:this.document.getWindow().$.getSelection()},getType:c?function(){var e=this._.cache;if(e.type)return e.type;var t=CKEDITOR.SELECTION_NONE;try{var n=this.getNative(),i=n.type;"Text"==i&&(t=CKEDITOR.SELECTION_TEXT),"Control"==i&&(t=CKEDITOR.SELECTION_ELEMENT),n.createRange().parentElement()&&(t=CKEDITOR.SELECTION_TEXT)}catch(e){}return e.type=t}:function(){var e=this._.cache;if(e.type)return e.type;var t=CKEDITOR.SELECTION_TEXT;if((n=this.getNative())&&n.rangeCount){if(1==n.rangeCount){var n,i=(n=n.getRangeAt(0)).startContainer;i==n.endContainer&&1==i.nodeType&&1==n.endOffset-n.startOffset&&m[i.childNodes[n.startOffset].nodeName.toLowerCase()]&&(t=CKEDITOR.SELECTION_ELEMENT)}}else t=CKEDITOR.SELECTION_NONE;return e.type=t},getRanges:function(){var e=c?function(){function e(e){return new CKEDITOR.dom.node(e).getIndex()}var t=function(t,n){(t=t.duplicate()).collapse(n);var i=t.parentElement();if(!i.hasChildNodes())return{container:i,offset:0};for(var o,r,s,a,l=i.children,u=t.duplicate(),c=0,d=l.length-1,h=-1;c<=d;)if(o=l[h=Math.floor((c+d)/2)],u.moveToElementText(o),0<(s=u.compareEndPoints("StartToStart",t)))d=h-1;else{if(!(0>s))return{container:i,offset:e(o)};c=h+1}if(-1==h||h==l.length-1&&0>s){if(u.moveToElementText(i),u.setEndPoint("StartToStart",t),u=u.text.replace(/(\r\n|\r)/g,"\n").length,l=i.childNodes,!u)return(o=l[l.length-1]).nodeType!=CKEDITOR.NODE_TEXT?{container:i,offset:l.length}:{container:o,offset:o.nodeValue.length};for(i=l.length;0<u&&0<i;)(r=l[--i]).nodeType==CKEDITOR.NODE_TEXT&&(a=r,u-=r.nodeValue.length);return{container:a,offset:-u}}if(u.collapse(0<s),u.setEndPoint(0<s?"StartToStart":"EndToStart",t),!(u=u.text.replace(/(\r\n|\r)/g,"\n").length))return{container:i,offset:e(o)+(0<s?0:1)};for(;0<u;)try{(r=o[0<s?"previousSibling":"nextSibling"]).nodeType==CKEDITOR.NODE_TEXT&&(u-=r.nodeValue.length,a=r),o=r}catch(t){return{container:i,offset:e(o)}}return{container:a,offset:0<s?-u:a.nodeValue.length+u}};return function(){var e=(a=this.getNative())&&a.createRange(),n=this.getType();if(!a)return[];if(n==CKEDITOR.SELECTION_TEXT)return a=new CKEDITOR.dom.range(this.root),n=t(e,!0),a.setStart(new CKEDITOR.dom.node(n.container),n.offset),n=t(e),a.setEnd(new CKEDITOR.dom.node(n.container),n.offset),a.endContainer.getPosition(a.startContainer)&CKEDITOR.POSITION_PRECEDING&&a.endOffset<=a.startContainer.getIndex()&&a.collapse(),[a];if(n==CKEDITOR.SELECTION_ELEMENT){n=[];for(var i=0;i<e.length;i++){for(var o=e.item(i),r=o.parentNode,s=0,a=new CKEDITOR.dom.range(this.root);s<r.childNodes.length&&r.childNodes[s]!=o;s++);a.setStart(new CKEDITOR.dom.node(r),s),a.setEnd(new CKEDITOR.dom.node(r),s+1),n.push(a)}return n}return[]}}():function(){var e,t=[],n=this.getNative();if(!n)return t;for(var i=0;i<n.rangeCount;i++){var o=n.getRangeAt(i);(e=new CKEDITOR.dom.range(this.root)).setStart(new CKEDITOR.dom.node(o.startContainer),o.startOffset),e.setEnd(new CKEDITOR.dom.node(o.endContainer),o.endOffset),t.push(e)}return t};return function(t){var n=this._.cache,i=n.ranges;
1return i||(n.ranges=i=new CKEDITOR.dom.rangeList(e.call(this))),t?function(e){for(var t=0;t<e.length;t++){var n=e[t];if(n.getCommonAncestor().isReadOnly()&&e.splice(t,1),!n.collapsed){if(n.startContainer.isReadOnly())for(var i,o=n.startContainer;o&&!((i=o.type==CKEDITOR.NODE_ELEMENT)&&o.is("body")||!o.isReadOnly());)i&&"false"==o.getAttribute("contentEditable")&&n.setStartAfter(o),o=o.getParent();o=n.startContainer,i=n.endContainer;var r=n.startOffset,s=n.endOffset,a=n.clone();o&&o.type==CKEDITOR.NODE_TEXT&&(r>=o.getLength()?a.setStartAfter(o):a.setStartBefore(o)),i&&i.type==CKEDITOR.NODE_TEXT&&(s?a.setEndAfter(i):a.setEndBefore(i)),(o=new CKEDITOR.dom.walker(a)).evaluator=function(i){if(i.type==CKEDITOR.NODE_ELEMENT&&i.isReadOnly()){var o=n.clone();return n.setEndBefore(i),n.collapsed&&e.splice(t--,1),i.getPosition(a.endContainer)&CKEDITOR.POSITION_CONTAINS||(o.setStartAfter(i),o.collapsed||e.splice(t+1,0,o)),!0}return!1},o.next()}}return e}(new CKEDITOR.dom.rangeList(i.slice())):i}}(),getStartElement:function(){var e,t=this._.cache;if(void 0!==t.startElement)return t.startElement;switch(this.getType()){case CKEDITOR.SELECTION_ELEMENT:return this.getSelectedElement();case CKEDITOR.SELECTION_TEXT:var n=this.getRanges()[0];if(n){if(n.collapsed)(e=n.startContainer).type!=CKEDITOR.NODE_ELEMENT&&(e=e.getParent());else{for(n.optimize();e=n.startContainer,n.startOffset==(e.getChildCount?e.getChildCount():e.getLength())&&!e.isBlockBoundary();)n.setStartAfter(e);if((e=n.startContainer).type!=CKEDITOR.NODE_ELEMENT)return e.getParent();if((e=e.getChild(n.startOffset))&&e.type==CKEDITOR.NODE_ELEMENT)for(n=e.getFirst();n&&n.type==CKEDITOR.NODE_ELEMENT;)e=n,n=n.getFirst();else e=n.startContainer}e=e.$}}return t.startElement=e?new CKEDITOR.dom.element(e):null},getSelectedElement:function(){var e=this._.cache;if(void 0!==e.selectedElement)return e.selectedElement;var t=this,n=CKEDITOR.tools.tryThese(function(){return t.getNative().createRange().item(0)},function(){for(var e,n,i=t.getRanges()[0].clone(),o=2;o&&!((e=i.getEnclosedNode())&&e.type==CKEDITOR.NODE_ELEMENT&&m[e.getName()]&&(n=e));o--)i.shrink(CKEDITOR.SHRINK_ELEMENT);return n&&n.$});return e.selectedElement=n?new CKEDITOR.dom.element(n):null},getSelectedText:function(){var e=this._.cache;if(void 0!==e.selectedText)return e.selectedText;var t=this.getNative();t=c?"Control"==t.type?"":t.createRange().text:t.toString();return e.selectedText=t},lock:function(){this.getRanges(),this.getStartElement(),this.getSelectedElement(),this.getSelectedText(),this._.cache.nativeSel=null,this.isLocked=1},unlock:function(e){if(this.isLocked){if(e)var t=this.getSelectedElement(),n=!t&&this.getRanges(),i=this.isFake;this.isLocked=0,this.reset(),e&&(e=t||n[0]&&n[0].getCommonAncestor())&&e.getAscendant("body",1)&&(i?this.fake(t):t?this.selectElement(t):this.selectRanges(n))}},reset:function(){this._.cache={},this.isFake=0;var e=this.root.editor;if(e&&e._.fakeSelection)if(this.rev==e._.fakeSelection.rev){delete e._.fakeSelection;var t=e._.hiddenSelectionContainer;if(t){var n=e.checkDirty();e.fire("lockSnapshot"),t.remove(),e.fire("unlockSnapshot"),!n&&e.resetDirty()}delete e._.hiddenSelectionContainer}else CKEDITOR.warn("selection-fake-reset");this.rev=d++},selectElement:function(e){var t=new CKEDITOR.dom.range(this.root);t.setStartBefore(e),t.setEndAfter(e),this.selectRanges([t])},selectRanges:function(e){var t=(t=this.root.editor)&&t._.hiddenSelectionContainer;if(this.reset(),t){t=this.root;for(var n,i=0;i<e.length;++i)(n=e[i]).endContainer.equals(t)&&(n.endOffset=Math.min(n.endOffset,t.getChildCount()))}if(e.length)if(this.isLocked){var a=CKEDITOR.document.getActive();this.unlock(),this.selectRanges(e),this.lock(),a&&!a.equals(this.root)&&a.focus()}else{var l,u,d;if(1==e.length&&!(d=e[0]).collapsed&&(l=d.getEnclosedNode())&&l.type==CKEDITOR.NODE_ELEMENT&&((d=d.clone()).shrink(CKEDITOR.SHRINK_ELEMENT,!0),(u=d.getEnclosedNode())&&u.type==CKEDITOR.NODE_ELEMENT&&(l=u),"false"==l.getAttribute("contenteditable"))||(l=void 0),l)this.fake(l);else{if(c){var h,f,p;if(d=CKEDITOR.dom.walker.whitespaces(!0),u=/\ufeff|\u00a0/,t={table:1,tbody:1,tr:1},1<e.length&&(l=e[e.length-1],e[0].setEnd(l.endContainer,l.endOffset)),e=(l=e[0]).collapsed,(n=l.getEnclosedNode())&&n.type==CKEDITOR.NODE_ELEMENT&&n.getName()in m&&(!n.is("a")||!n.getText()))try{return(p=n.$.createControlRange()).addElement(n.$),void p.select()}catch(e){}(l.startContainer.type==CKEDITOR.NODE_ELEMENT&&l.startContainer.getName()in t||l.endContainer.type==CKEDITOR.NODE_ELEMENT&&l.endContainer.getName()in t)&&(l.shrink(CKEDITOR.NODE_ELEMENT,!0),e=l.collapsed),t=(p=l.createBookmark()).startNode,e||(a=p.endNode),(p=l.document.$.body.createTextRange()).moveToElementText(t.$),p.moveStart("character",1),a?((u=l.document.$.body.createTextRange()).moveToElementText(a.$),p.setEndPoint("EndToEnd",u),p.moveEnd("character",-1)):(h=t.getNext(d),f=t.hasAscendant("pre"),h=!(h&&h.getText&&h.getText().match(u))&&(f||!t.hasPrevious()||t.getPrevious().is&&t.getPrevious().is("br")),(f=l.document.createElement("span")).setHtml(""),f.insertBefore(t),h&&l.document.createText("\ufeff").insertBefore(t)),l.setStartBefore(t),t.remove(),e?(h?(p.moveStart("character",-1),p.select(),l.document.$.selection.clear()):p.select(),l.moveToPosition(f,CKEDITOR.POSITION_BEFORE_START),f.remove()):(l.setEndBefore(a),a.remove(),p.select())}else{if(!(a=this.getNative()))return;for(this.removeAllRanges(),p=0;p<e.length;p++)if(p<e.length-1&&(h=e[p],f=e[p+1],(u=h.clone()).setStart(h.endContainer,h.endOffset),u.setEnd(f.startContainer,f.startOffset),!u.collapsed&&(u.shrink(CKEDITOR.NODE_ELEMENT,!0),l=u.getCommonAncestor(),u=u.getEnclosedNode(),l.isReadOnly()||u&&u.isReadOnly())))f.setStart(h.startContainer,h.startOffset),e.splice(p--,1);else{l=e[p],f=this.document.$.createRange(),l.collapsed&&CKEDITOR.env.webkit&&o(l)&&(u=r(this.root),l.insertN
1ode(u),(h=u.getNext())&&!u.getPrevious()&&h.type==CKEDITOR.NODE_ELEMENT&&"br"==h.getName()?(s(this.root),l.moveToPosition(h,CKEDITOR.POSITION_BEFORE_START)):l.moveToPosition(u,CKEDITOR.POSITION_AFTER_END)),f.setStart(l.startContainer.$,l.startOffset);try{f.setEnd(l.endContainer.$,l.endOffset)}catch(e){if(!(0<=e.toString().indexOf("NS_ERROR_ILLEGAL_VALUE")))throw e;l.collapse(1),f.setEnd(l.endContainer.$,l.endOffset)}a.addRange(f)}}this.reset(),this.root.fire("selectionchange")}}},fake:function(e,t){var n=this.root.editor;void 0===t&&e.hasAttribute("aria-label")&&(t=e.getAttribute("aria-label")),this.reset(),function(e,t){var n=CKEDITOR.dom.element.createFromHtml('<div data-cke-hidden-sel="1" data-cke-temp="1" style="'+(CKEDITOR.env.ie&&14>CKEDITOR.env.version?"display:none":"position:fixed;top:0;left:-1000px")+'">'+(t||" ")+"</div>",e.document);e.fire("lockSnapshot"),e.editable().append(n);var i=e.getSelection(1),o=e.createRange(),r=i.root.on("selectionchange",function(e){e.cancel()},null,null,0);o.setStartAt(n,CKEDITOR.POSITION_AFTER_START),o.setEndAt(n,CKEDITOR.POSITION_BEFORE_END),i.selectRanges([o]),r.removeListener(),e.fire("unlockSnapshot"),e._.hiddenSelectionContainer=n}(n,t);var i=this._.cache,o=new CKEDITOR.dom.range(this.root);o.setStartBefore(e),o.setEndAfter(e),i.ranges=new CKEDITOR.dom.rangeList(o),i.selectedElement=i.startElement=e,i.type=CKEDITOR.SELECTION_ELEMENT,i.selectedText=i.nativeSel=null,this.isFake=1,this.rev=d++,n._.fakeSelection=this,this.root.fire("selectionchange")},isHidden:function(){var e=this.getCommonAncestor();return e&&e.type==CKEDITOR.NODE_TEXT&&(e=e.getParent()),!(!e||!e.data("cke-hidden-sel"))},createBookmarks:function(e){return e=this.getRanges().createBookmarks(e),this.isFake&&(e.isFake=1),e},createBookmarks2:function(e){return e=this.getRanges().createBookmarks2(e),this.isFake&&(e.isFake=1),e},selectBookmarks:function(e){for(var t,n=[],i=0;i<e.length;i++){var o=new CKEDITOR.dom.range(this.root);o.moveToBookmark(e[i]),n.push(o)}return e.isFake&&((t=n[0].getEnclosedNode())&&t.type==CKEDITOR.NODE_ELEMENT||(CKEDITOR.warn("selection-not-fake"),e.isFake=0)),e.isFake?this.fake(t):this.selectRanges(n),this},getCommonAncestor:function(){var e=this.getRanges();return e.length?e[0].startContainer.getCommonAncestor(e[e.length-1].endContainer):null},scrollIntoView:function(){this.type!=CKEDITOR.SELECTION_NONE&&this.getRanges()[0].scrollIntoView()},removeAllRanges:function(){if(this.getType()!=CKEDITOR.SELECTION_NONE){var e=this.getNative();try{e&&e[c?"empty":"removeAllRanges"]()}catch(e){}this.reset()}}}}(),CKEDITOR.STYLE_BLOCK=1,CKEDITOR.STYLE_INLINE=2,CKEDITOR.STYLE_OBJECT=3,function(){function e(e,t){for(var n,i;(e=e.getParent())&&!e.equals(t);)if(e.getAttribute("data-nostyle"))n=e;else if(!i){var o=e.getAttribute("contentEditable");"false"==o?n=e:"true"==o&&(i=1)}return n}function t(e,t,n,i){return(e.getPosition(t)|i)==i&&(!n.childRule||n.childRule(e))}function n(i){var r=i.document;if(i.collapsed)r=g(this,r),i.insertNode(r),i.moveToPosition(r,CKEDITOR.POSITION_BEFORE_END);else{var s,a=this.element,l=this._.definition,u=(E=l.ignoreReadonly)||l.includeReadonly;null==u&&(u=i.root.getCustomData("cke_includeReadonly"));var c=CKEDITOR.dtd[a];c||(s=!0,c=CKEDITOR.dtd.span),i.enlarge(CKEDITOR.ENLARGE_INLINE,1),i.trim();var d,f=i.createBookmark(),p=f.startNode,m=f.endNode,v=p;if(!E){var E=e(p,T=i.getCommonAncestor()),T=e(m,T);E&&(v=E.getNextSourceNode(!0)),T&&(m=T)}for(v.getPosition(m)==CKEDITOR.POSITION_FOLLOWING&&(v=0);v;){if(E=!1,v.equals(m))v=null,E=!0;else{T=(_=v.type==CKEDITOR.NODE_ELEMENT?v.getName():null)&&"false"==v.getAttribute("contentEditable");var y=_&&v.getAttribute("data-nostyle");if(_&&v.data("cke-bookmark")){v=v.getNextSourceNode(!0);continue}if(T&&u&&CKEDITOR.dtd.$block[_])for(var C=void 0,b=0,D=(A=(N=o(D=v)).length)&&new CKEDITOR.dom.range(D.getDocument());b<A;++b){C=N[b];var I=CKEDITOR.filter.instances[C.data("cke-filter")];I&&!I.check(this)||(D.selectNodeContents(C),n.call(this,D))}if(N=_?!c[_]||y?0:T&&!u?0:t(v,m,l,w):1){if(N=l,A=a,b=s,!(C=v.getParent())||!(C.getDtd()||CKEDITOR.dtd.span)[A]&&!b||N.parentRule&&!N.parentRule(C))E=!0;else if(d||_&&CKEDITOR.dtd.$removeEmpty[_]&&(v.getPosition(m)|w)!=w||(d=i.clone()).setStartBefore(v),(_=v.type)==CKEDITOR.NODE_TEXT||T||_==CKEDITOR.NODE_ELEMENT&&!v.getChildCount()){for(var O,_=v;(E=!_.getNext(R))&&c[(O=_.getParent()).getName()]&&t(O,p,l,k);)_=O;d.setEndAfter(_)}}else E=!0;v=v.getNextSourceNode(y||T)}if(E&&d&&!d.collapsed){T=(E=g(this,r)).hasAttributes(),y=d.getCommonAncestor(),_={};for(var K,S,x,N={},A=(C={},{});E&&y;){if(y.getName()==a){for(K in l.attributes)!A[K]&&(x=y.getAttribute(S))&&(E.getAttribute(K)==x?N[K]=1:A[K]=1);
1for(S in l.styles)!C[S]&&(x=y.getStyle(S))&&(E.getStyle(S)==x?_[S]=1:C[S]=1)}y=y.getParent()}for(K in N)E.removeAttribute(K);for(S in _)E.removeStyle(S);T&&!E.hasAttributes()&&(E=null),E?(d.extractContents().appendTo(E),d.insertNode(E),h.call(this,E),E.mergeSiblings(),CKEDITOR.env.ie||E.$.normalize()):(E=new CKEDITOR.dom.element("span"),d.extractContents().appendTo(E),d.insertNode(E),h.call(this,E),E.remove(!0)),d=null}}i.moveToBookmark(f),i.shrink(CKEDITOR.SHRINK_TEXT),i.shrink(CKEDITOR.NODE_ELEMENT,!0)}}function i(e){function t(){for(var e=new CKEDITOR.dom.elementPath(i.getParent()),t=new CKEDITOR.dom.elementPath(u.getParent()),n=null,o=null,r=0;r<e.elements.length;r++){var s=e.elements[r];if(s==e.block||s==e.blockLimit)break;c.checkElementRemovable(s,!0)&&(n=s)}for(r=0;r<t.elements.length&&((s=t.elements[r])!=t.block&&s!=t.blockLimit);r++)c.checkElementRemovable(s,!0)&&(o=s);o&&u.breakParent(o),n&&i.breakParent(n)}e.enlarge(CKEDITOR.ENLARGE_INLINE,1);var n=e.createBookmark(),i=n.startNode;if(e.collapsed){for(var o,r,s=new CKEDITOR.dom.elementPath(i.getParent(),e.root),a=0;a<s.elements.length&&(r=s.elements[a])&&r!=s.block&&r!=s.blockLimit;a++)if(this.checkElementRemovable(r)){var l;e.collapsed&&(e.checkBoundaryOfElement(r,CKEDITOR.END)||(l=e.checkBoundaryOfElement(r,CKEDITOR.START)))?(o=r).match=l?"start":"end":(r.mergeSiblings(),r.is(this.element)?d.call(this,r):f(r,E(this)[r.getName()]))}if(o){for(r=i,a=0;!(l=s.elements[a]).equals(o);a++)l.match||((l=l.clone()).append(r),r=l);r["start"==o.match?"insertBefore":"insertAfter"](o)}}else{var u=n.endNode,c=this;for(t(),s=i;!s.equals(u);)o=s.getNextSourceNode(),s.type==CKEDITOR.NODE_ELEMENT&&this.checkElementRemovable(s)&&(s.getName()==this.element?d.call(this,s):f(s,E(this)[s.getName()]),o.type==CKEDITOR.NODE_ELEMENT&&o.contains(i)&&(t(),o=i.getNext())),s=o}e.moveToBookmark(n),e.shrink(CKEDITOR.NODE_ELEMENT,!0)}function o(e){var t=[];return e.forEach(function(e){if("true"==e.getAttribute("contenteditable"))return t.push(e),!1},CKEDITOR.NODE_ELEMENT,!0),t}function r(e){var t=e.getEnclosedNode()||e.getCommonAncestor(!1,!0);(e=new CKEDITOR.dom.elementPath(t,e.root).contains(this.element,1))&&!e.isReadOnly()&&m(e,this)}function s(e){var t=e.getCommonAncestor(!0,!0);if(e=new CKEDITOR.dom.elementPath(t,e.root).contains(this.element,1)){var n=(t=this._.definition).attributes;if(n)for(var i in n)e.removeAttribute(i,n[i]);if(t.styles)for(var o in t.styles)t.styles.hasOwnProperty(o)&&e.removeStyle(o)}}function a(e){var t=e.createBookmark(!0),n=e.createIterator();n.enforceRealBlocks=!0,this._.enterMode&&(n.enlargeBr=this._.enterMode!=CKEDITOR.ENTER_BR);for(var i,o=e.document;i=n.getNextParagraph();)!i.isReadOnly()&&(!n.activeFilter||n.activeFilter.check(this))&&u(i,g(this,o,i));e.moveToBookmark(t)}function l(e){var t,n,i=e.createBookmark(1),o=e.createIterator();for(o.enforceRealBlocks=!0,o.enlargeBr=this._.enterMode!=CKEDITOR.ENTER_BR;t=o.getNextParagraph();)this.checkElementRemovable(t)&&(t.is("pre")?((n=this._.enterMode==CKEDITOR.ENTER_BR?null:e.document.createElement(this._.enterMode==CKEDITOR.ENTER_P?"p":"div"))&&t.copyAttributes(n),u(t,n)):d.call(this,t));e.moveToBookmark(i)}function u(e,t){(n=!t)&&(t=e.getDocument().createElement("div"),e.copyAttributes(t));var n,i,o=t&&t.is("pre"),r=e.is("pre"),s=!o&&r;if(o&&!r){if(r=t,(s=e.getBogus())&&s.remove(),s=(s=(s=(s=c(s=e.getHtml(),/(?:^[ \t\n\r]+)|(?:[ \t\n\r]+$)/g,"")).replace(/[ \t\r\n]*(<br[^>]*>)[ \t\r\n]*/gi,"$1")).replace(/([ \t\n\r]+| )/g," ")).replace(/<br\b[^>]*>/gi,"\n"),CKEDITOR.env.ie){var a=e.getDocument().createElement("div");a.append(r),r.$.outerHTML="<pre>"+s+"</pre>",r.copyAttributes(a.getFirst()),r=a.getFirst().remove()}else r.setHtml(s);t=r}else s?t=function(e,t){var n;1<e.length&&(n=new CKEDITOR.dom.documentFragment(t.getDocument()));for(var i=0;i<e.length;i++){var o=e[i],o=o.replace(/(\r\n|\r)/g,"\n"),o=c(o,/^[ \t]*\n/,""),o=c(o,/\n$/,""),o=c(o,/^[ \t]+|[ \t]+$/g,function(e,t){return 1==e.length?" ":t?" "+CKEDITOR.tools.repeat(" ",e.length-1):CKEDITOR.tools.repeat(" ",e.length-1)+" "}),o=o.replace(/\n/g,"<br>"),o=o.replace(/[ \t]{2,}/g,function(e){return CKEDITOR.tools.repeat(" ",e.length-1)+" "});if(n){var r=t.clone();r.setHtml(o),n.append(r)}else t.setHtml(o)}return n||t}(n?[e.getHtml()]:function(e){var t=[];return c(e.getOuterHtml(),/(\S\s*)\n(?:\s|(<span[^>]+data-cke-bookmark.*?\/span>
1))*\n(?!$)/gi,function(e,t,n){return t+"</pre>"+n+"<pre>"}).replace(/<pre\b.*?>([\s\S]*?)<\/pre>/gi,function(e,n){t.push(n)}),t}(e),t):e.moveChildren(t);(t.replace(e),o)?(i=(n=t).getPrevious(_))&&i.type==CKEDITOR.NODE_ELEMENT&&i.is("pre")&&(o=c(i.getHtml(),/\n$/,"")+"\n\n"+c(n.getHtml(),/^\n/,""),CKEDITOR.env.ie?n.$.outerHTML="<pre>"+o+"</pre>":n.setHtml(o),i.remove()):n&&p(t)}function c(e,t,n){var i="",o="";return e=e.replace(/(^<span[^>]+data-cke-bookmark.*?\/span>)|(<span[^>]+data-cke-bookmark.*?\/span>$)/gi,function(e,t,n){return t&&(i=t),n&&(o=n),""}),i+e.replace(t,n)+o}function d(e,t){var n,i=(o=this._.definition).attributes,o=o.styles,r=E(this)[e.getName()],s=CKEDITOR.tools.isEmpty(i)&&CKEDITOR.tools.isEmpty(o);for(n in i)("class"!=n&&!this._.definition.fullMatch||e.getAttribute(n)==T(n,i[n]))&&(t&&"data-"==n.slice(0,5)||(s=e.hasAttribute(n),e.removeAttribute(n)));for(var a in o)this._.definition.fullMatch&&e.getStyle(a)!=T(a,o[a],!0)||(s=s||!!e.getStyle(a),e.removeStyle(a));f(e,r,b[e.getName()]),s&&(this._.definition.alwaysRemoveElement?p(e,1):!CKEDITOR.dtd.$block[e.getName()]||this._.enterMode==CKEDITOR.ENTER_BR&&!e.hasAttributes()?p(e):e.renameNode(this._.enterMode==CKEDITOR.ENTER_P?"p":"div"))}function h(e){for(var t,n=E(this),i=e.getElementsByTag(this.element),o=i.count();0<=--o;)(t=i.getItem(o)).isReadOnly()||d.call(this,t,!0);for(var r in n)if(r!=this.element)for(o=(i=e.getElementsByTag(r)).count()-1;0<=o;o--)(t=i.getItem(o)).isReadOnly()||f(t,n[r])}function f(e,t,n){if(t=t&&t.attributes)for(var i=0;i<t.length;i++){var o,r=t[i][0];if(o=e.getAttribute(r)){var s=t[i][1];(null===s||s.test&&s.test(o)||"string"==typeof s&&o==s)&&e.removeAttribute(r)}}n||p(e)}function p(e,t){if(!e.hasAttributes()||t)if(CKEDITOR.dtd.$block[e.getName()]){var n=e.getPrevious(_),i=e.getNext(_);!n||n.type!=CKEDITOR.NODE_TEXT&&n.isBlockBoundary({br:1})||e.append("br",1),!i||i.type!=CKEDITOR.NODE_TEXT&&i.isBlockBoundary({br:1})||e.append("br"),e.remove(!0)}else n=e.getFirst(),i=e.getLast(),e.remove(!0),n&&(n.type==CKEDITOR.NODE_ELEMENT&&n.mergeSiblings(),i&&!n.equals(i)&&i.type==CKEDITOR.NODE_ELEMENT&&i.mergeSiblings())}function g(e,t,n){var i;return"*"==(i=e.element)&&(i="span"),i=new CKEDITOR.dom.element(i,t),n&&n.copyAttributes(i),i=m(i,e),t.getCustomData("doc_processing_style")&&i.hasAttribute("id")?i.removeAttribute("id"):t.setCustomData("doc_processing_style",1),i}function m(e,t){var n=(i=t._.definition).attributes,i=CKEDITOR.style.getStyleText(i);if(n)for(var o in n)e.setAttribute(o,n[o]);return i&&e.setAttribute("style",i),e}function v(e,t){for(var n in e)e[n]=e[n].replace(O,function(e,n){return t[n]})}function E(e){if(e._.overrides)return e._.overrides;var t=e._.overrides={},n=e._.definition.overrides;if(n){CKEDITOR.tools.isArray(n)||(n=[n]);for(var i=0;i<n.length;i++){var o,r;if("string"==typeof(a=n[i])?o=a.toLowerCase():(o=a.element?a.element.toLowerCase():e.element,r=a.attributes),a=t[o]||(t[o]={}),r){var s,a=a.attributes=a.attributes||[];for(s in r)a.push([s.toLowerCase(),r[s]])}}}return t}function T(e,t,n){var i=new CKEDITOR.dom.element("span");return i[n?"setStyle":"setAttribute"](e,t),i[n?"getStyle":"getAttribute"](e)}function y(e,t){function n(e,t){return"font-family"==t.toLowerCase()?e.replace(/["']/g,""):e}for(var i in"string"==typeof e&&(e=CKEDITOR.tools.parseCssText(e)),"string"==typeof t&&(t=CKEDITOR.tools.parseCssText(t,!0)),e)if(!(i in t)||n(t[i],i)!=n(e[i],i)&&"inherit"!=e[i]&&"inherit"!=t[i])return!1;return!0}function C(e,t,n){var i=e.document,o=e.getRanges();t=t?this.removeFromRange:this.applyToRange;for(var r,s=o.createIterator();r=s.getNextRange();)t.call(this,r,n);e.selectRanges(o),i.removeCustomData("doc_processing_style")}var b={address:1,div:1,h1:1,h2:1,h3:1,h4:1,h5:1,h6:1,p:1,pre:1,section:1,header:1,footer:1,nav:1,article:1,aside:1,figure:1,dialog:1,hgroup:1,time:1,meter:1,menu:1,command:1,keygen:1,output:1,progress:1,details:1,datagrid:1,datalist:1},D={a:1,blockquote:1,embed:1,hr:1,img:1,li:1,object:1,ol:1,table:1,td:1,tr:1,th:1,ul:1,dl:1,dt:1,dd:1,form:1,audio:1,video:1},I=/\s*(?:;\s*|$)/,O=/#\((.+?)\)/g,R=CKEDITOR.dom.walker.bookmark(0,1),_=CKEDITOR.dom.walker.whitespace
1s(1);CKEDITOR.style=function(e,t){if("string"==typeof e.type)return new CKEDITOR.style.customHandlers[e.type](e);var n=e.attributes;n&&n.style&&(e.styles=CKEDITOR.tools.extend({},e.styles,CKEDITOR.tools.parseCssText(n.style)),delete n.style),t&&(v((e=CKEDITOR.tools.clone(e)).attributes,t),v(e.styles,t)),n=this.element=e.element?"string"==typeof e.element?e.element.toLowerCase():e.element:"*",this.type=e.type||(b[n]?CKEDITOR.STYLE_BLOCK:D[n]?CKEDITOR.STYLE_OBJECT:CKEDITOR.STYLE_INLINE),"object"==typeof this.element&&(this.type=CKEDITOR.STYLE_OBJECT),this._={definition:e}},CKEDITOR.style.prototype={apply:function(e){if(e instanceof CKEDITOR.dom.document)return C.call(this,e.getSelection());if(this.checkApplicable(e.elementPath(),e)){var t=this._.enterMode;t||(this._.enterMode=e.activeEnterMode),C.call(this,e.getSelection(),0,e),this._.enterMode=t}},remove:function(e){if(e instanceof CKEDITOR.dom.document)return C.call(this,e.getSelection(),1);if(this.checkApplicable(e.elementPath(),e)){var t=this._.enterMode;t||(this._.enterMode=e.activeEnterMode),C.call(this,e.getSelection(),1,e),this._.enterMode=t}},applyToRange:function(e){return this.applyToRange=this.type==CKEDITOR.STYLE_INLINE?n:this.type==CKEDITOR.STYLE_BLOCK?a:this.type==CKEDITOR.STYLE_OBJECT?r:null,this.applyToRange(e)},removeFromRange:function(e){return this.removeFromRange=this.type==CKEDITOR.STYLE_INLINE?i:this.type==CKEDITOR.STYLE_BLOCK?l:this.type==CKEDITOR.STYLE_OBJECT?s:null,this.removeFromRange(e)},applyToObject:function(e){m(e,this)},checkActive:function(e,t){switch(this.type){case CKEDITOR.STYLE_BLOCK:return this.checkElementRemovable(e.block||e.blockLimit,!0,t);case CKEDITOR.STYLE_OBJECT:case CKEDITOR.STYLE_INLINE:for(var n,i=e.elements,o=0;o<i.length;o++)if(n=i[o],this.type!=CKEDITOR.STYLE_INLINE||n!=e.block&&n!=e.blockLimit){if(this.type==CKEDITOR.STYLE_OBJECT){var r=n.getName();if(!("string"==typeof this.element?r==this.element:r in this.element))continue}if(this.checkElementRemovable(n,!0,t))return!0}}return!1},checkApplicable:function(e,t,n){if(t&&t instanceof CKEDITOR.filter&&(n=t),n&&!n.check(this))return!1;switch(this.type){case CKEDITOR.STYLE_OBJECT:return!!e.contains(this.element);case CKEDITOR.STYLE_BLOCK:return!!e.blockLimit.getDtd()[this.element]}return!0},checkElementMatch:function(e,t){var n=this._.definition;if(!e||!n.ignoreReadonly&&e.isReadOnly())return!1;var i=e.getName();if("string"==typeof this.element?i==this.element:i in this.element){if(!t&&!e.hasAttributes())return!0;if(i=n._AC)n=i;else{i={};var o=0,r=n.attributes;if(r)for(var s in r)o++,i[s]=r[s];(s=CKEDITOR.style.getStyleText(n))&&(i.style||o++,i.style=s),i._length=o,n=n._AC=i}if(!n._length)return!0;for(var a in n)if("_length"!=a)if(i=e.getAttribute(a)||"","style"==a?y(n[a],i):n[a]==i){if(!t)return!0}else if(t)return!1;if(t)return!0}return!1},checkElementRemovable:function(e,t,n){if(this.checkElementMatch(e,t,n))return!0;if(t=E(this)[e.getName()]){var i;if(!(t=t.attributes))return!0;for(n=0;n<t.length;n++)if(i=t[n][0],i=e.getAttribute(i)){var o=t[n][1];if(null===o)return!0;if("string"==typeof o){if(i==o)return!0}else if(o.test(i))return!0}}return!1},buildPreview:function(e){var t=this._.definition,n=[],i=t.element;"bdo"==i&&(i="span");n=["<",i];var o=t.attributes;if(o)for(var r in o)n.push(" ",r,'="',o[r],'"');return(o=CKEDITOR.style.getStyleText(t))&&n.push(' style="',o,'"'),n.push(">",e||t.name,"</",i,">"),n.join("")},getDefinition:function(){return this._.definition}},CKEDITOR.style.getStyleText=function(e){if(t=e._ST)return t;var t=e.styles,n=e.attributes&&e.attributes.style||"",i="";for(var o in n.length&&(n=n.replace(I,";")),t){var r=t[o],s=(o+":"+r).replace(I,";");"inherit"==r?i+=s:n+=s}return n.length&&(n=CKEDITOR.tools.normalizeCssText(n,!0)),e._ST=n+i},CKEDITOR.style.customHandlers={},CKEDITOR.style.addCustomHandler=function(e){var t=function(e){this._={definition:e},this.setup&&this.setup(e)};return t.prototype=CKEDITOR.tools.extend(CKEDITOR.tools.prototypedCopy(CKEDITOR.style.prototype),{assignedTo:CKEDITOR.STYLE_OBJECT},e,!0),this.customHandlers[e.type]=t};var w=CKEDITOR.POSITION_PRECEDING|CKEDITOR.POSITION_IDENTICAL|CKEDITOR.POSITION_IS_CONTAINED,k=CKEDITOR.POSITION_FOLLOWING|CKEDITOR.POSITION_IDENTICAL|CKEDITOR.POSITION_IS_CONTAINED}(),CKEDITOR.styleCommand=function(e,t){this.requiredContent=this.allowedContent=this.style=e,CKEDITOR.tools.extend(this,t,!0)},CKEDITOR.styleCommand.prototype.exec=function(e){e.focus(),this.state==CKEDITOR.TRISTATE_OFF?e.applyStyle(this.style):this.state==CKEDITOR.TRISTATE_ON&&e.removeStyle(this.style)},CKEDITOR.stylesSet=new CKEDITOR.resourceManager("","stylesSet"),CKEDITOR.addStylesSet=CKEDITOR.tools.bind(CKEDITOR.stylesSet.add,CKEDITOR.stylesSet),CKEDITOR.loadStylesSet=function(e,t,n){CKEDITOR.stylesSet.addExternal(e,t,""),CKEDITOR.stylesSet.load(e,n)},CKEDITOR.tools.extend(CKEDITOR.editor.prototype,{attachStyleStateChange:function(e,t){var n=this._.styleStateChangeCallbacks;n||(n=this._.styleStateChangeCallbacks=[],this.on("selectionChange",function(e){for(var t=0;t<n.length;t++){var i=n[t],o=i.style.checkActive(e.data.path,this)?CKEDITOR.TRISTATE_ON:CKEDITOR.TRISTATE_OFF;i.fn.call(this,o)}})),n.push({style:e,fn:t})},applyStyle:function(e){e.apply(this)},removeStyle:function(e){e.remove(this)},getStylesSet:function(e){if(this._.stylesDefinitions)e(this._.stylesDefinitions);else{var t=this;
1if(!1===(n=t.config.stylesCombo_stylesSet||t.config.stylesSet))e(null);else if(n instanceof Array)t._.stylesDefinitions=n,e(n);else{n||(n="default");var n,i=(n=n.split(":"))[0];CKEDITOR.stylesSet.addExternal(i,n[1]?n.slice(1).join(":"):CKEDITOR.getUrl("styles.js"),""),CKEDITOR.stylesSet.load(i,function(n){t._.stylesDefinitions=n[i],e(t._.stylesDefinitions)})}}}}),CKEDITOR.dom.comment=function(e,t){"string"==typeof e&&(e=(t?t.$:document).createComment(e)),CKEDITOR.dom.domObject.call(this,e)},CKEDITOR.dom.comment.prototype=new CKEDITOR.dom.node,CKEDITOR.tools.extend(CKEDITOR.dom.comment.prototype,{type:CKEDITOR.NODE_COMMENT,getOuterHtml:function(){return"\x3c!--"+this.$.nodeValue+"--\x3e"}}),function(){var e,t={},n={};for(e in CKEDITOR.dtd.$blockLimit)e in CKEDITOR.dtd.$list||(t[e]=1);for(e in CKEDITOR.dtd.$block)e in CKEDITOR.dtd.$blockLimit||e in CKEDITOR.dtd.$empty||(n[e]=1);CKEDITOR.dom.elementPath=function(e,i){var o,r=null,s=null,a=[],l=e;i=i||e.getDocument().getBody();do{if(l.type==CKEDITOR.NODE_ELEMENT){if(a.push(l),!this.lastElement&&(this.lastElement=l,l.is(CKEDITOR.dtd.$object)||"false"==l.getAttribute("contenteditable")))continue;if(l.equals(i))break;if(!s&&(o=l.getName(),"true"==l.getAttribute("contenteditable")?s=l:!r&&n[o]&&(r=l),t[o])){if(o=!r&&"div"==o){e:{for(var u=0,c=(o=l.getChildren()).count();u<c;u++){var d=o.getItem(u);if(d.type==CKEDITOR.NODE_ELEMENT&&CKEDITOR.dtd.$block[d.getName()]){o=!0;break e}}o=!1}o=!o}o?r=l:s=l}}}while(l=l.getParent());s||(s=i),this.block=r,this.blockLimit=s,this.root=i,this.elements=a}}(),CKEDITOR.dom.elementPath.prototype={compare:function(e){var t=this.elements;if(!(e=e&&e.elements)||t.length!=e.length)return!1;for(var n=0;n<t.length;n++)if(!t[n].equals(e[n]))return!1;return!0},contains:function(e,t,n){var i;"string"==typeof e&&(i=function(t){return t.getName()==e}),e instanceof CKEDITOR.dom.element?i=function(t){return t.equals(e)}:CKEDITOR.tools.isArray(e)?i=function(t){return-1<CKEDITOR.tools.indexOf(e,t.getName())}:"function"==typeof e?i=e:"object"==typeof e&&(i=function(t){return t.getName()in e});var o=this.elements,r=o.length;for(t&&r--,n&&(o=Array.prototype.slice.call(o,0)).reverse(),t=0;t<r;t++)if(i(o[t]))return o[t];return null},isContextFor:function(e){return!(e in CKEDITOR.dtd.$block)||!!(this.contains(CKEDITOR.dtd.$intermediate)||this.root.equals(this.block)&&this.block||this.blockLimit).getDtd()[e]},direction:function(){return(this.block||this.blockLimit||this.root).getDirection(1)}},CKEDITOR.dom.text=function(e,t){"string"==typeof e&&(e=(t?t.$:document).createTextNode(e)),this.$=e},CKEDITOR.dom.text.prototype=new CKEDITOR.dom.node,CKEDITOR.tools.extend(CKEDITOR.dom.text.prototype,{type:CKEDITOR.NODE_TEXT,getLength:function(){return this.$.nodeValue.length},getText:function(){return this.$.nodeValue},setText:function(e){this.$.nodeValue=e},split:function(e){var t=this.$.parentNode,n=t.childNodes.length,i=this.getLength(),o=this.getDocument(),r=new CKEDITOR.dom.text(this.$.splitText(e),o);return t.childNodes.length==n&&(e>=i?(r=o.createText("")).insertAfter(this):((e=o.createText("")).insertAfter(r),e.remove())),r},substring:function(e,t){return"number"!=typeof t?this.$.nodeValue.substr(e):this.$.nodeValue.substring(e,t)}}),function(){function e(e,t,n){var i=e.serializable,o=t[n?"endContainer":"startContainer"],r=n?"endOffset":"startOffset",s=i?t.document.getById(e.startNode):e.startNode;return e=i?t.document.getById(e.endNode):e.endNode,o.equals(s.getPrevious())?(t.startOffset=t.startOffset-o.getLength()-e.getPrevious().getLength(),o=e.getNext()):o.equals(e.getPrevious())&&(t.startOffset-=o.getLength(),o=e.getNext()),o.equals(s.getParent())&&t[r]++,o.equals(e.getParent())&&t[r]++,t[n?"endContainer":"startContainer"]=o,t}CKEDITOR.dom.rangeList=function(e){return e instanceof CKEDITOR.dom.rangeList?e:(e?e instanceof CKEDITOR.dom.range&&(e=[e]):e=[],CKEDITOR.tools.extend(e,t))};var t={createIterator:function(){var e,t=this,n=CKEDITOR.dom.walker.bookmark(),i=[];return{getNextRange:function(o){var r=t[e=void 0===e?0:e+1];if(r&&1<t.length){if(!e)for(var s=t.length-1;0<=s;s--)i.unshift(t[s].createBookmark(!0));if(o)for(var a=0;t[e+a+1];){var l=r.document;for(o=0,s=l.getById(i[a].endNode),l=l.getById(i[a+1].startNode);;){if(s=s.getNextSourceNode(!1),l.equals(s))o=1;else if(n(s)||s.type==CKEDITOR.NODE_ELEMENT&&s.isBlockBoundary())continue;break}if(!o)break;a++}for(r.moveToBookmark(i.shift());a--;)(s=t[++e]).moveToBookmark(i.shift()),r.setEnd(s.endContainer,s.endOffset)}return r}}},createBookmarks:function(t){for(var n,i=[],o=0;o<this.length;o++){i.push(n=this[o].createBookmark(t,!0));for(var r=o+1;r<this.length;r++)this[r]=e(n,this[r]),this[r]=e(n,this[r],!0)}return i},createBookmarks2:function(e){for(var t=[],n=0;n<this.length;n++)t.push(this[n].createBookmark2(e));return t},moveToBookmarks:function(e){for(var t=0;t<this.length;t++)this[t].moveToBookmark(e[t])}}}(),function(){function e(){return CKEDITOR.getUrl(CKEDITOR.skinName.split(",")[1]||"skins/"+CKEDITOR.skinName.split(",")[0]+"/")}function t(t){var n=CKEDITOR.skin["ua_"+t],i=CKEDITOR.env;if(n){n=n.split(",").sort(function(e,t){return e>t?-1:1});for(var o,r=0;r<n.length;
1r++)if(o=n[r],i.ie&&(o.replace(/^ie/,"")==i.version||i.quirks&&"iequirks"==o)&&(o="ie"),i[o]){t+="_"+n[r];break}}return CKEDITOR.getUrl(e()+t+".css")}function n(e,n){r[e]||(CKEDITOR.document.appendStyleSheet(t(e)),r[e]=1),n&&n()}function i(e){var t=e.getById(s);return t||((t=e.getHead().append("style")).setAttribute("id",s),t.setAttribute("type","text/css")),t}function o(e,t,n){var i,o,r;if(CKEDITOR.env.webkit)for(t=t.split("}").slice(0,-1),o=0;o<t.length;o++)t[o]=t[o].split("{");for(var s=0;s<e.length;s++)if(CKEDITOR.env.webkit)for(o=0;o<t.length;o++){for(r=t[o][1],i=0;i<n.length;i++)r=r.replace(n[i][0],n[i][1]);e[s].$.sheet.addRule(t[o][0],r)}else{for(r=t,i=0;i<n.length;i++)r=r.replace(n[i][0],n[i][1]);CKEDITOR.env.ie&&11>CKEDITOR.env.version?e[s].$.styleSheet.cssText+=r:e[s].$.innerHTML+=r}}var r={};CKEDITOR.skin={path:e,loadPart:function(t,i){CKEDITOR.skin.name!=CKEDITOR.skinName.split(",")[0]?CKEDITOR.scriptLoader.load(CKEDITOR.getUrl(e()+"skin.js"),function(){n(t,i)}):n(t,i)},getPath:function(e){return CKEDITOR.getUrl(t(e))},icons:{},addIcon:function(e,t,n,i){e=e.toLowerCase(),this.icons[e]||(this.icons[e]={path:t,offset:n||0,bgsize:i||"16px"})},getIconStyle:function(e,t,n,i,o){var r;return e&&(e=e.toLowerCase(),t&&(r=this.icons[e+"-rtl"]),r||(r=this.icons[e])),e=n||r&&r.path||"",i=i||r&&r.offset,o=o||r&&r.bgsize||"16px",e&&(e=e.replace(/'/g,"\\'")),e&&"background-image:url('"+CKEDITOR.getUrl(e)+"');background-position:0 "+i+"px;background-size:"+o+";"}},CKEDITOR.tools.extend(CKEDITOR.editor.prototype,{getUiColor:function(){return this.uiColor},setUiColor:function(e){var t=i(CKEDITOR.document);return(this.setUiColor=function(e){this.uiColor=e;var n=CKEDITOR.skin.chameleon,i="",r="";"function"==typeof n&&(i=n(this,"editor"),r=n(this,"panel")),o([t],i,e=[[l,e]]),o(a,r,e)}).call(this,e)}});var s="cke_ui_color",a=[],l=/\$color/g;CKEDITOR.on("instanceLoaded",function(e){if(!CKEDITOR.env.ie||!CKEDITOR.env.quirks){var t=e.editor;e=function(e){if(!(e=(e.data[0]||e.data).element.getElementsByTag("iframe").getItem(0).getFrameDocument()).getById("cke_ui_color")){e=i(e),a.push(e);var n=t.getUiColor();n&&o([e],CKEDITOR.skin.chameleon(t,"panel"),[[l,n]])}},t.on("panelShow",e),t.on("menuShow",e),t.config.uiColor&&t.setUiColor(t.config.uiColor)}})}(),function(){if(CKEDITOR.env.webkit)CKEDITOR.env.hc=!1;else{var e=CKEDITOR.dom.element.createFromHtml('<div style="width:0;height:0;position:absolute;left:-10000px;border:1px solid;border-color:red blue"></div>',CKEDITOR.document);e.appendTo(CKEDITOR.document.getHead());try{var t=e.getComputedStyle("border-top-color"),n=e.getComputedStyle("border-right-color");CKEDITOR.env.hc=!(!t||t!=n)}catch(e){CKEDITOR.env.hc=!1}e.remove()}if(CKEDITOR.env.hc&&(CKEDITOR.env.cssClass+=" cke_hc"),CKEDITOR.document.appendStyleText(".cke{visibility:hidden;}"),CKEDITOR.status="loaded",CKEDITOR.fireOnce("loaded"),e=CKEDITOR._.pending)for(delete CKEDITOR._.pending,t=0;t<e.length;t++)CKEDITOR.editor.prototype.constructor.apply(e[t][0],e[t][1]),CKEDITOR.add(e[t][0])}(),CKEDITOR.skin.name="moono-lisa",CKEDITOR.skin.ua_editor="ie,iequirks,ie8,gecko",CKEDITOR.skin.ua_dialog="ie,iequirks,ie8",CKEDITOR.skin.chameleon=function(){var e=function(e,t){for(var n=e.match(/[^#]./g),i=0;3>i;i++){var o,r=i;o=parseInt(n[i],16),o=("0"+(0>t?0|o*(1+t):0|o+(255-o)*t).toString(16)).slice(-2),n[r]=o}return"#"+n.join("")},t
vendor: 2,821 bytes, line 1
1={editor:new CKEDITOR.template("{id}.cke_chrome [border-color:{defaultBorder};] {id} .cke_top [ background-color:{defaultBackground};border-bottom-color:{defaultBorder};] {id} .cke_bottom [background-color:{defaultBackground};border-top-color:{defaultBorder};] {id} .cke_resizer [border-right-color:{ckeResizer}] {id} .cke_dialog_title [background-color:{defaultBackground};border-bottom-color:{defaultBorder};] {id} .cke_dialog_footer [background-color:{defaultBackground};outline-color:{defaultBorder};] {id} .cke_dialog_tab [background-color:{dialogTab};border-color:{defaultBorder};] {id} .cke_dialog_tab:hover [background-color:{lightBackground};] {id} .cke_dialog_contents [border-top-color:{defaultBorder};] {id} .cke_dialog_tab_selected, {id} .cke_dialog_tab_selected:hover [background:{dialogTabSelected};border-bottom-color:{dialogTabSelectedBorder};] {id} .cke_dialog_body [background:{dialogBody};border-color:{defaultBorder};] {id} a.cke_button_off:hover,{id} a.cke_button_off:focus,{id} a.cke_button_off:active [background-color:{darkBackground};border-color:{toolbarElementsBorder};] {id} .cke_button_on [background-color:{ckeButtonOn};border-color:{toolbarElementsBorder};] {id} .cke_toolbar_separator,{id} .cke_toolgroup a.cke_button:last-child:after,{id} .cke_toolgroup a.cke_button.cke_button_disabled:hover:last-child:after [background-color: {toolbarElementsBorder};border-color: {toolbarElementsBorder};] {id} a.cke_combo_button:hover,{id} a.cke_combo_button:focus,{id} .cke_combo_on a.cke_combo_button [border-color:{toolbarElementsBorder};background-color:{darkBackground};] {id} .cke_combo:after [border-color:{toolbarElementsBorder};] {id} .cke_path_item [color:{elementsPathColor};] {id} a.cke_path_item:hover,{id} a.cke_path_item:focus,{id} a.cke_path_item:active [background-color:{darkBackground};] {id}.cke_panel [border-color:{defaultBorder};] "),panel:new CKEDITOR.template(".cke_panel_grouptitle [background-color:{lightBackground};border-color:{defaultBorder};] .cke_menubutton_icon [background-color:{menubuttonIcon};] .cke_menubutton:hover,.cke_menubutton:focus,.cke_menubutton:active [background-color:{menubuttonHover};] .cke_menubutton:hover .cke_menubutton_icon, .cke_menubutton:focus .cke_menubutton_icon, .cke_menubutton:active .cke_menubutton_icon [background-color:{menubuttonIconHover};] .cke_menubutton_disabled:hover .cke_menubutton_icon,.cke_menubutton_disabled:focus .cke_menubutton_icon,.cke_menubutton_disabled:active .cke_menubutton_icon [background-color:{menubuttonIcon};] .cke_menuseparator [background-color:{menubuttonIcon};] a:hover.cke_colorbox, a:active.cke_colorbox [border-color:{defaultBorder};] a:hover.cke_colorauto, a:hover.cke_colormore, a:active.cke_colorauto, a:active.cke_colormore [background-color:{ckeColorauto};border-color:{defaultBorder};] ")};
1return function(n,i){var o=e(n.uiColor,.4);o={id:"."+n.id,defaultBorder:e(o,-.2),toolbarElementsBorder:e(o,-.25),defaultBackground:o,lightBackground:e(o,.8),darkBackground:e(o,-.15),ckeButtonOn:e(o,.4),ckeResizer:e(o,-.4),ckeColorauto:e(o,.8),dialogBody:e(o,.7),dialogTab:e(o,.65),dialogTabSelected:"#FFF",dialogTabSelectedBorder:"#FFF",elementsPathColor:e(o,-.6),menubuttonHover:e(o,.1),menubuttonIcon:e(o,.5),menubuttonIconHover:e(o,.3)};return t[i].output(o).replace(/\[/g,"{").replace(/\]/g,"}")}}(),CKEDITOR.plugins.add("dialogui",{onLoad:function(){var e,t,n,i=function(e){this._||(this._={}),this._.default=this._.initValue=e.default||"",this._.required=e.required||!1;for(var t=[this._],n=1;n<arguments.length;n++)t.push(arguments[n]);return t.push(!0),CKEDITOR.tools.extend.apply(CKEDITOR.tools,t),this._},o={build:function(e,t,n){return new CKEDITOR.ui.dialog.textInput(e,t,n)}},r={build:function(e,t,n){return new CKEDITOR.ui.dialog[t.type](e,t,n)}},s={isChanged:function(){return this.getValue()!=this.getInitValue()},reset:function(e){this.setValue(this.getInitValue(),e)},setInitValue:function(){this._.initValue=this.getValue()},resetInitValue:function(){this._.initValue=this._.default},getInitValue:function(){return this._.initValue}},a=CKEDITOR.tools.extend({},CKEDITOR.ui.dialog.uiElement.prototype.eventProcessors,{onChange:function(e,t){this._.domOnChangeRegistered||(e.on("load",function(){this.getInputElement().on("change",function(){e.parts.dialog.isVisible()&&this.fire("change",{value:this.getValue()})},this)},this),this._.domOnChangeRegistered=!0),this.on("change",t)}},!0),l=/^on([A-Z]\w+)/,u=function(e){for(var t in e)(l.test(t)||"title"==t||"type"==t)&&delete e[t];return e},c=function(e){(e=e.data.getKeystroke())==CKEDITOR.SHIFT+CKEDITOR.ALT+36?this.setDirectionMarker("ltr"):e==CKEDITOR.SHIFT+CKEDITOR.ALT+35&&this.setDirectionMarker("rtl")};CKEDITOR.tools.extend(CKEDITOR.ui.dialog,{labeledElement:function(e,t,n,o){if(!(4>arguments.length)){var r=i.call(this,t);r.labelId=CKEDITOR.tools.getNextId()+"_label",this._.children=[];var s={role:t.role||"presentation"};t.includeLabel&&(s["aria-labelledby"]=r.labelId),CKEDITOR.ui.dialog.uiElement.call(this,e,t,n,"div",null,s,function(){var n=[],i=t.required?" cke_required":"";return"horizontal"!=t.labelLayout?n.push('<label class="cke_dialog_ui_labeled_label'+i+'" ',' id="'+r.labelId+'"',r.inputId?' for="'+r.inputId+'"':"",(t.labelStyle?' style="'+t.labelStyle+'"':"")+">",t.label,"</label>",'<div class="cke_dialog_ui_labeled_content"',t.controlStyle?' style="'+t.controlStyle+'"':"",' role="presentation">',o.call(this,e,t),"</div>"):(i={type:"hbox",widths:t.widths,padding:0,children:[{type:"html",html:'<label class="cke_dialog_ui_labeled_label'+i+'" id="'+r.labelId+'" for="'+r.inputId+'"'+(t.labelStyle?' style="'+t.labelStyle+'"':"")+">"+CKEDITOR.tools.htmlEncode(t.label)+"</label>"},{type:"html",html:'<span class="cke_dialog_ui_labeled_content"'+(t.controlStyle?' style="'+t.controlStyle+'"':"")+">"+o.call(this,e,t)+"</span>"}]},CKEDITOR.dialog._.uiElementBuilders.hbox.build(e,i,n)),n.join("")})}},textInput:function(e,t,n){if(!(3>arguments.length)){i.call(this,t);var o=this._.inputId=CKEDITOR.tools.getNextId()+"_textInput",r={class:"cke_dialog_ui_input_"+t.type,id:o,type:t.type};t.validate&&(this.validate=t.validate),t.maxLength&&(r.maxlength=t.maxLength),t.size&&(r.size=t.size),t.inputStyle&&(r.style=t.inputStyle);var s=this,a=!1;e.on("load",function(){s.getInputElement().on("keydown",function(e){13==e.data.getKeystroke()&&(a=!0)}),s.getInputElement().on("keyup",function(t){13==t.data.getKeystroke()&&a&&(e.getButton("ok")&&setTimeout(function(){e.getButton("ok").click()},0),a=!1),s.bidi&&c.call(s,t)},null,null,1e3)}
1),CKEDITOR.ui.dialog.labeledElement.call(this,e,t,n,function(){var e=['<div class="cke_dialog_ui_input_',t.type,'" role="presentation"'];for(var n in t.width&&e.push('style="width:'+t.width+'" '),e.push("><input "),r["aria-labelledby"]=this._.labelId,this._.required&&(r["aria-required"]=this._.required),r)e.push(n+'="'+r[n]+'" ');return e.push(" /></div>"),e.join("")})}},textarea:function(e,t,n){if(!(3>arguments.length)){i.call(this,t);var o=this,r=this._.inputId=CKEDITOR.tools.getNextId()+"_textarea",s={};t.validate&&(this.validate=t.validate),s.rows=t.rows||5,s.cols=t.cols||20,s.class="cke_dialog_ui_input_textarea "+(t.class||""),"undefined"!=typeof t.inputStyle&&(s.style=t.inputStyle),t.dir&&(s.dir=t.dir),o.bidi&&e.on("load",function(){o.getInputElement().on("keyup",c)},o),CKEDITOR.ui.dialog.labeledElement.call(this,e,t,n,function(){s["aria-labelledby"]=this._.labelId,this._.required&&(s["aria-required"]=this._.required);var e,t=['<div class="cke_dialog_ui_input_textarea" role="presentation"><textarea id="',r,'" '];for(e in s)t.push(e+'="'+CKEDITOR.tools.htmlEncode(s[e])+'" ');return t.push(">",CKEDITOR.tools.htmlEncode(o._.default),"</textarea></div>"),t.join("")})}},checkbox:function(e,t,n){if(!(3>arguments.length)){var o=i.call(this,t,{default:!!t.default});t.validate&&(this.validate=t.validate),CKEDITOR.ui.dialog.uiElement.call(this,e,t,n,"span",null,null,function(){var n=CKEDITOR.tools.extend({},t,{id:t.id?t.id+"_checkbox":CKEDITOR.tools.getNextId()+"_checkbox"},!0),i=[],r=CKEDITOR.tools.getNextId()+"_label",s={class:"cke_dialog_ui_checkbox_input",type:"checkbox","aria-labelledby":r};return u(n),t.default&&(s.checked="checked"),"undefined"!=typeof n.inputStyle&&(n.style=n.inputStyle),o.checkbox=new CKEDITOR.ui.dialog.uiElement(e,n,i,"input",null,s),i.push(' <label id="',r,'" for="',s.id,'"'+(t.labelStyle?' style="'+t.labelStyle+'"':"")+">",CKEDITOR.tools.htmlEncode(t.label),"</label>"),i.join("")})}},radio:function(e,t,n){if(!(3>arguments.length)){i.call(this,t),this._.default||(this._.default=this._.initValue=t.items[0][1]),t.validate&&(this.validate=t.validate);var o=[],r=this;t.role="radiogroup",t.includeLabel=!0,CKEDITOR.ui.dialog.labeledElement.call(this,e,t,n,function(){for(var n=[],i=[],s=(t.id?t.id:CKEDITOR.tools.getNextId())+"_radio",a=0;a<t.items.length;a++){var l=t.items[a],c=void 0!==l[2]?l[2]:l[0],d=void 0!==l[1]?l[1]:l[0],h=(f=CKEDITOR.tools.getNextId()+"_radio_input")+"_label",f=CKEDITOR.tools.extend({},t,{id:f,title:null,type:null},!0),p=(c=CKEDITOR.tools.extend({},f,{title:c},!0),{type:"radio",class:"cke_dialog_ui_radio_input",name:s,value:d,"aria-labelledby":h}),g=[];r._.default==d&&(p.checked="checked"),u(f),u(c),"undefined"!=typeof f.inputStyle&&(f.style=f.inputStyle),f.keyboardFocusable=!0,o.push(new CKEDITOR.ui.dialog.uiElement(e,f,g,"input",null,p)),g.push(" "),new CKEDITOR.ui.dialog.uiElement(e,c,g,"label",null,{id:h,for:p.id},l[0]),n.push(g.join(""))}return new CKEDITOR.ui.dialog.hbox(e,o,n,i),i.join("")}),this._.children=o}},button:function(e,t,n){if(arguments.length){"function"==typeof t&&(t=t(e.getParentEditor())),i.call(this,t,{disabled:t.disabled||!1}),CKEDITOR.event.implementOn(this);var o=this;e.on("load",function(){var e=this.getElement();e.on("click",function(e){o.click(),e.data.preventDefault()}),e.on("keydown",function(e){e.data.getKeystroke()in{32:1}&&(o.click(),e.data.preventDefault())}),e.unselectable()},this);var r=CKEDITOR.tools.extend({},t);delete r.style;var s=CKEDITOR.tools.getNextId()+"_label";CKEDITOR.ui.dialog.uiElement.call(this,e,r,n,"a",null,{style:t.style,href:"javascript:void(0)",title:t.label,hidefocus:"true",class:t.class,role:"button","aria-labelledby":s},'<span id="'+s+'" class="cke_dialog_ui_button">'+CKEDITOR.tools.htmlEncode(t.label)+"</span>")}},select:function(e,t,n){if(!(3>arguments.length)){var o=i.call(this,t);t.validate&&(this.validate=t.validate),o.inputId=CKEDITOR.tools.getNextId()+"_select",CKEDITOR.ui.dialog.labeledElement.call(this,e,t,n,function(){var n=CKEDITOR.tools.extend({},t,{id:t.id?t.id+"_select":CKEDITOR.tools.getNextId()+"_select"},!0),i=[],r=[],s={id:o.inputId,class:"cke_dialog_ui_input_select","aria-labelledby":this._.labelId};i.push('<div class="cke_dialog_ui_input_',t.type,'" role="presentation"'),t.width&&i.push('style="width:'+t.width+'" '),i.push(">"),void 0!==t.size&&(s.size=t.size),void 0!==t.multiple&&(s.multiple=t.multiple),u(n);for(var a,l=0;l<t.items.length&&(a=t.items[l]);l++)r.push('<option value="',CKEDITOR.tools.htmlEncode(void 0!==a[1]?a[1]:a[0]).replace(/"/g,"""),'" /> ',CKEDITOR.tools.htmlEncode(a[0]));return"undefined"!=typeof n.inputStyle&&(n.style=n.inputStyle),o.select=new CKEDITOR.ui.dialog.uiElement(e,n,i,"select",null,s,r.join("")),i.push("</div>"),i.join("")})}},file:function(e,t,n){if(!(3>arguments.length)){void 0===t.default&&(t.default="");var o=CKEDITOR.tools.extend(i.call(this,t),{definition:t,buttons:[]});t.validate&&(this.validate=t.validate),e.on("load",function(){CKEDITOR.document.getById(o.frameId).getParent().addClass("cke_dialog_ui_input_file")}),CKEDITOR.ui.dialog.labeledElement.call(this,e,t,n,function(){o.frameId=CKEDITOR.tools.getNextId()+"_fileInput";var e=['<iframe frameborder="0" allowtransparency="0" class="cke_dialog_ui_input_file" role="presentation" id="',o.frameId,'" title="',t.label,'" src="javascript:void('];return e.push(CKEDITOR.env.ie?"(function(){"+encodeURIComponent("document.open();("+CKEDITOR.tools.fixDomain+")();document.close();")+"})()":"0"),e.push(')"></iframe>'),e.join("")})}},fileButton:function(e,t,n){var o=this;if(!(3>arguments.length)){i.call(this,t),t.validate&&(this.validate=t.validate);var r=CKEDITOR.tools.extend({},t),s=r.onClick;r.className=(r.className?r.className+" ":"")+"cke_dialog_ui_button",r.onClick=function(n){var i=t.for;s&&!1===s.call(this,n)||(e.getContentElement(i[0],i[1]).submit(),this.disable())},e.on("load",function(){e.getContentElement(t.for[0],t.for[1])._.buttons.push(o)}),CKEDITOR.ui.dialog.button.call(this,e,r,n)}},html:(e=/^\s*<[\w:]+\s+([^>]*)?>/,t=/^(\s*<[\w:]+(?:\s+[^>]*)?)((?:.|\r|\n)+)$/,n=/\/$/,function(i,o,r){if(!(3>arguments.length)){var s=[],a=o.html;"<"!=a.charAt(0)&&(a="<span>"+a+"</span>");var l=o.focus;if(l){var u=this.focus;this.focus=function(){("function"==typeof l?l:u).call(this),this.fire("focus")},o.isFocusable&&(this.isFocusable=this.isFocusable),this.keyboardFocusable=!0}CKEDITOR.ui.dialog.uiElement.call(this,i,o,s,"span",null,null,""),s=s.join("").match(e),a=a.match(t)||["","",""],n.test(a[1])&&(a[1]=a[1].slice(0,-1),a[2]="/"+a[2]),r.push([a[1]," ",s[1]||"",a[2]].join(""))}}),fieldset:function(e,t,n,i,o){var r=o.label;this._={children:t},CKEDITOR.ui.dialog.uiElement.call(this,e,o,i,"fieldset",null,null,function(){var e=[];r&&e.push("<legend"+(o.labelStyle?' style="'+o.labelStyle+'"':"")+">"+r+"</legend>");for(var t=0;t<n.length;t++)e.push(n[t]);return e.join("")})}},!0),CKEDITOR.ui.dialog.html.prototype=new CKEDITOR.ui.dialog.uiElement,CKEDITOR.ui.dialog.labeledElement.prototype=CKEDITOR.tools.extend(new CKEDITOR.ui.dialog.uiElement,{set
1Label:function(e){var t=CKEDITOR.document.getById(this._.labelId);return 1>t.getChildCount()?new CKEDITOR.dom.text(e,CKEDITOR.document).appendTo(t):t.getChild(0).$.nodeValue=e,this},getLabel:function(){var e=CKEDITOR.document.getById(this._.labelId);return!e||1>e.getChildCount()?"":e.getChild(0).getText()},eventProcessors:a},!0),CKEDITOR.ui.dialog.button.prototype=CKEDITOR.tools.extend(new CKEDITOR.ui.dialog.uiElement,{click:function(){return!this._.disabled&&this.fire("click",{dialog:this._.dialog})},enable:function(){this._.disabled=!1;var e=this.getElement();e&&e.removeClass("cke_disabled")},disable:function(){this._.disabled=!0,this.getElement().addClass("cke_disabled")},isVisible:function(){return this.getElement().getFirst().isVisible()},isEnabled:function(){return!this._.disabled},eventProcessors:CKEDITOR.tools.extend({},CKEDITOR.ui.dialog.uiElement.prototype.eventProcessors,{onClick:function(e,t){this.on("click",function(){t.apply(this,arguments)})}},!0),accessKeyUp:function(){this.click()},accessKeyDown:function(){this.focus()},keyboardFocusable:!0},!0),CKEDITOR.ui.dialog.textInput.prototype=CKEDITOR.tools.extend(new CKEDITOR.ui.dialog.labeledElement,{getInputElement:function(){return CKEDITOR.document.getById(this._.inputId)},focus:function(){var e=this.selectParentTab();setTimeout(function(){var t=e.getInputElement();t&&t.$.focus()},0)},select:function(){var e=this.selectParentTab();setTimeout(function(){var t=e.getInputElement();t&&(t.$.focus(),t.$.select())},0)},accessKeyUp:function(){this.select()},setValue:function(e){if(this.bidi){var t=e&&e.charAt(0);(t="\u202a"==t?"ltr":"\u202b"==t?"rtl":null)&&(e=e.slice(1)),this.setDirectionMarker(t)}return e||(e=""),CKEDITOR.ui.dialog.uiElement.prototype.setValue.apply(this,arguments)},getValue:function(){var e=CKEDITOR.ui.dialog.uiElement.prototype.getValue.call(this);if(this.bidi&&e){var t=this.getDirectionMarker();t&&(e=("ltr"==t?"\u202a":"\u202b")+e)}return e},setDirectionMarker:function(e){var t=this.getInputElement();e?t.setAttributes({dir:e,"data-cke-dir-marker":e}):this.getDirectionMarker()&&t.removeAttributes(["dir","data-cke-dir-marker"])},getDirectionMarker:function(){return this.getInputElement().data("cke-dir-marker")},keyboardFocusable:!0},s,!0),CKEDITOR.ui.dialog.textarea.prototype=new CKEDITOR.ui.dialog.textInput,CKEDITOR.ui.dialog.select.prototype=CKEDITOR.tools.extend(new CKEDITOR.ui.dialog.labeledElement,{getInputElement:function(){return this._.select.getElement()},add:function(e,t,n){var i=new CKEDITOR.dom.element("option",this.getDialog().getParentEditor().document),o=this.getInputElement().$;return i.$.text=e,i.$.value=void 0===t||null===t?e:t,void 0===n||null===n?CKEDITOR.env.ie?o.add(i.$):o.add(i.$,null):o.add(i.$,n),this},remove:function(e){return this.getInputElement().$.remove(e),this},clear:function(){for(var e=this.getInputElement().$;0<e.length;)e.remove(0);return this},keyboardFocusable:!0},s,!0),CKEDITOR.ui.dialog.checkbox.prototype=CKEDITOR.tools.extend(new CKEDITOR.ui.dialog.uiElement,{getInputElement:function(){return this._.checkbox.getElement()},setValue:function(e,t){this.getInputElement().$.checked=e,!t&&this.fire("change",{value:e})},getValue:function(){return this.getInputElement().$.checked},accessKeyUp:function(){this.setValue(!this.getValue())},eventProcessors:{onChange:function(e,t){return!CKEDITOR.env.ie||8<CKEDITOR.env.version?a.onChange.apply(this,arguments):(e.on("load",function(){var e=this._.checkbox.getElement();e.on("propertychange",function(t){"checked"==(t=t.data.$).propertyName&&this.fire("change",{value:e.$.checked})},this)},this),this.on("change",t),null)}},keyboardFocusable:!0},s,!0),CKEDITOR.ui.dialog.radio.prototype=CKEDITOR.tools.extend(new CKEDITOR.ui.dialog.uiElement,{setValue:function(e,t){for(var n,i=this._.children,o=0;o<i.length&&(n=i[o]);o++)n.getElement().$.checked=n.getValue()==e;!t&&this.fire("change",{value:e})},getValue:function(){for(var e=this._.children,t=0;t<e.length;t++)if(e[t].getElement().$.checked)return e[t].getValue();return null},accessKeyUp:function(){var e,t=this._.children;for(e=0;e<t.length;e++)if(t[e].getElement().$.checked)return void t[e].getElement().focus();t[0].getElement().focus()},eventProcessors:{onChange:function(e,t){return!CKEDITOR.env.ie||8<CKEDITOR.env.version?a.onChange.apply(this,arguments):(e.on("load",function(){for(var e=this._.children,t=this,n=0;n<e.length;n++)e[n].getElement().on("propertychange",function(e){"checked"==(e=e.data.$).propertyName&&this.$.checked&&t.fire("change",{value:this.getAttribute("value")})})},this),this.on("change",t),null)}}},s,!0),CKEDITOR.ui.dialog.file.prototype=CKEDITOR.tools.extend(new CKEDITOR.ui.dialog.labeledElement,s,{getInputElement:function(){var e=CKEDITOR.document.getById(this._.frameId).getFrameDocument();return 0<e.$.forms.length?new CKEDITOR.dom.element(e.$.forms[0].elements[0]):this.getElement()},submit:function(){return this.getInputElement().getParent().$.submit(),this},getAction:function(){return this.getInputElement().getParent().$.action},registerEvents:function(e){var t,n,i=/^on([A-Z]\w+)/,o=function(e,t,n,i){e.on("formLoaded",function(){e.getIn
1putElement().on(n,i,e)})};for(n in e)(t=n.match(i))&&(this.eventProcessors[n]?this.eventProcessors[n].call(this,this._.dialog,e[n]):o(this,this._.dialog,t[1].toLowerCase(),e[n]));return this},reset:function(){function e(){n.$.open();var e="";i.size&&(e=i.size-(CKEDITOR.env.ie?7:0));var u=t.frameId+"_input";for(n.$.write(['<html dir="'+a+'" lang="'+l+'"><head><title></title></head><body style="margin: 0; overflow: hidden; background: transparent;">','<form enctype="multipart/form-data" method="POST" dir="'+a+'" lang="'+l+'" action="',CKEDITOR.tools.htmlEncode(i.action),'"><label id="',t.labelId,'" for="',u,'" style="display:none">',CKEDITOR.tools.htmlEncode(i.label),'</label><input style="width:100%" id="',u,'" aria-labelledby="',t.labelId,'" type="file" name="',CKEDITOR.tools.htmlEncode(i.id||"cke_upload"),'" size="',CKEDITOR.tools.htmlEncode(0<e?e:""),'" /></form></body></html><script>',CKEDITOR.env.ie?"("+CKEDITOR.tools.fixDomain+")();":"","window.parent.CKEDITOR.tools.callFunction("+r+");","window.onbeforeunload = function() {window.parent.CKEDITOR.tools.callFunction("+s+")}","<\/script>"].join("")),n.$.close(),e=0;e<o.length;e++)o[e].enable()}var t=this._,n=CKEDITOR.document.getById(t.frameId).getFrameDocument(),i=t.definition,o=t.buttons,r=this.formLoadedNumber,s=this.formUnloadNumber,a=t.dialog._.editor.lang.dir,l=t.dialog._.editor.langCode;r||(r=this.formLoadedNumber=CKEDITOR.tools.addFunction(function(){this.fire("formLoaded")},this),s=this.formUnloadNumber=CKEDITOR.tools.addFunction(function(){this.getInputElement().clearCustomData()},this),this.getDialog()._.editor.on("destroy",function(){CKEDITOR.tools.removeFunction(r),CKEDITOR.tools.removeFunction(s)})),CKEDITOR.env.gecko?setTimeout(e,500):e()},getValue:function(){return this.getInputElement().$.value||""},setInitValue:function(){this._.initValue=""},eventProcessors:{onChange:function(e,t){this._.domOnChangeRegistered||(this.on("formLoaded",function(){this.getInputElement().on("change",function(){this.fire("change",{value:this.getValue()})},this)},this),this._.domOnChangeRegistered=!0),this.on("change",t)}},keyboardFocusable:!0},!0),CKEDITOR.ui.dialog.fileButton.prototype=new CKEDITOR.ui.dialog.button,CKEDITOR.ui.dialog.fieldset.prototype=CKEDITOR.tools.clone(CKEDITOR.ui.dialog.hbox.prototype),CKEDITOR.dialog.addUIElement("text",o),CKEDITOR.dialog.addUIElement("password",o),CKEDITOR.dialog.addUIElement("textarea",r),CKEDITOR.dialog.addUIElement("checkbox",r),CKEDITOR.dialog.addUIElement("radio",r),CKEDITOR.dialog.addUIElement("button",r),CKEDITOR.dialog.addUIElement("select",r),CKEDITOR.dialog.addUIElement("file",r),CKEDITOR.dialog.addUIElement("fileButton",r),CKEDITOR.dialog.addUIElement("html",r),CKEDITOR.dialog.addUIElement("fieldset",{build:function(e,t,n){for(var i,o=t.children,r=[],s=[],a=0;a<o.length&&(i=o[a]);a++){var l=[];r.push(l),s.push(CKEDITOR.dialog._.uiElementBuilders[i.type].build(e,i,l))}return new CKEDITOR.ui.dialog[t.type](e,s,r,n,t)}})}}),CKEDITOR.DIALOG_RESIZE_NONE=0,CKEDITOR.DIALOG_RESIZE_WIDTH=1,CKEDITOR.DIALOG_RESIZE_HEIGHT=2,CKEDITOR.DIALOG_RESIZE_BOTH=3,CKEDITOR.DIALOG_STATE_IDLE=1,CKEDITOR.DIALOG_STATE_BUSY=2,function(){function e(){for(var e=this._.tabIdList.length,t=CKEDITOR.tools.indexOf(this._.tabIdList,this._.currentTabId)+e,n=t-1;n>t-e;n--)if(this._.tabs[this._.tabIdList[n%e]][0].$.offsetHeight)return this._.tabIdList[n%e];return null}function t(e,t){for(var n=e.$.getElementsByTagName("input"),i=0,o=n.length;i<o;i++){var r=new CKEDITOR.dom.element(n[i]);"text"==r.getAttribute("type").toLowerCase()&&(t?(r.setAttribute("value",r.getCustomData("fake_value")||""),r.removeCustomData("fake_value")):(r.setCustomData("fake_value",r.getAttribute("value")),r.setAttribute("value","")))}}function n(e,t,n){this.element=t,this.focusIndex=n,this.tabIndex=0,this.isFocusable=function(){return!t.getAttribute("disabled")&&t.isVisible()},this.focus=function(){e._.currentFocusIndex=this.focusIndex,this.element.focus()},t.on("keydown",function(e){e.data.getKeystroke()in{32:1,13:1}&&this.fire("click")}),t.on("focus",function(){this.fire("mouseover")}),t.on("blur",function(){this.fire("mouseout")})}function i(e,t){this._={dialog:e},CKEDITOR.tools.extend(this,t)}function o(e){e.data.preventDefault(1)}function r(e){var t=CKEDITOR.document.getWindow(),n=e.config,i=CKEDITOR.skinName||e.config.skin,r=n.dialog_backgroundCoverColor||("moono-lisa"==i?"black":"white"),s=(i=n.dialog_backgroundCoverOpacity,n.baseFloatZIndex),a=(n=CKEDITOR.tools.genKey(r,i,s),v[n]);a?a.show():(s=['<div tabIndex="-1" style="position: ',CKEDITOR.env.ie6Compat?"absolute":"fixed","; z-index: ",s,"; top: 0px; left: 0px; ",CKEDITOR.env.ie6Compat?"":"background-color: "+r,'" class="cke_dialog_background_cover">'],CKEDITOR.env.ie6Compat&&(r="<html><body style=\\'background-color:"+r+";\\'></body></html>",s.push('<iframe hidefocus="true" frameborder="0" id="cke_dialog_background_iframe" src="javascript:'),s.push("void((function(){"+encodeURIComponent("document.open();("+CKEDITOR.tools.fixDomain+")();document.write( '"+r+"' );document.close();")+"})())"),s.push('" style="position:absolute;
1left:0;top:0;width:100%;height: 100%;filter: progid:DXImageTransform.Microsoft.Alpha(opacity=0)"></iframe>')),s.push("</div>"),(a=CKEDITOR.dom.element.createFromHtml(s.join(""))).setOpacity(void 0!==i?i:.5),a.on("keydown",o),a.on("keypress",o),a.on("keyup",o),a.appendTo(CKEDITOR.document.getBody()),v[n]=a),e.focusManager.add(a),m=a;var l=function(){var e=t.getScrollPosition(),n=CKEDITOR.dialog._.currentTop;if(a.setStyles({left:e.x+"px",top:e.y+"px"}),n)do{e=n.getPosition(),n.move(e.x,e.y)}while(n=n._.parentDialog)};if(g=e=function(){var e=t.getViewPaneSize();a.setStyles({width:e.width+"px",height:e.height+"px"})},t.on("resize",e),e(),CKEDITOR.env.mac&&CKEDITOR.env.webkit||a.focus(),CKEDITOR.env.ie6Compat){var u=function(){l(),arguments.callee.prevScrollHandler.apply(this,arguments)};t.$.setTimeout(function(){u.prevScrollHandler=window.onscroll||function(){},window.onscroll=u},0),l()}}function s(e){m&&(e.focusManager.remove(m),e=CKEDITOR.document.getWindow(),m.hide(),e.removeListener("resize",g),CKEDITOR.env.ie6Compat&&e.$.setTimeout(function(){window.onscroll=window.onscroll&&window.onscroll.prevScrollHandler||null},0),g=null)}var a,l=CKEDITOR.tools.cssLength,u='<div class="cke_reset_all {editorId} {editorDialogClass} {hidpi}" dir="{langDir}" lang="{langCode}" role="dialog" aria-labelledby="cke_dialog_title_{id}"><table class="cke_dialog '+CKEDITOR.env.cssClass+' cke_{langDir}" style="position:absolute" role="presentation"><tr><td role="presentation"><div class="cke_dialog_body" role="presentation"><div id="cke_dialog_title_{id}" class="cke_dialog_title" role="presentation"></div><a id="cke_dialog_close_button_{id}" class="cke_dialog_close_button" href="javascript:void(0)" title="{closeTitle}" role="button"><span class="cke_label">X</span></a><div id="cke_dialog_tabs_{id}" class="cke_dialog_tabs" role="tablist"></div><table class="cke_dialog_contents" role="presentation"><tr><td id="cke_dialog_contents_{id}" class="cke_dialog_contents_body" role="presentation"></td></tr><tr><td id="cke_dialog_footer_{id}" class="cke_dialog_footer" role="presentation"></td></tr></table></div></td></tr></table></div>';CKEDITOR.dialog=function(t,n){function i(e){var t=E._.focusList;if(e=e||0,!(1>t.length)){var n=E._.currentFocusIndex;E._.tabBarMode&&0>e&&(n=0);try{t[n].getInputElement().$.blur()}catch(e){}var i=n,o=1<E._.pageCount;do{if(i+=e,o&&!E._.tabBarMode&&(i==t.length||-1==i))return E._.tabBarMode=!0,E._.tabs[E._.currentTabId][0].focus(),void(E._.currentFocusIndex=-1);if((i=(i+t.length)%t.length)==n)break}while(e&&!t[i].isFocusable());t[i].focus(),"text"==t[i].type&&t[i].select()}}function o(n){if(E==CKEDITOR.dialog._.currentTop){var o=n.data.getKeystroke(),l="rtl"==t.lang.dir;if(s=a=0,9==o||o==CKEDITOR.SHIFT+9)i(o==CKEDITOR.SHIFT+9?-1:1),s=1;else if(o==CKEDITOR.ALT+121&&!E._.tabBarMode&&1<E.getPageCount())E._.tabBarMode=!0,E._.tabs[E._.currentTabId][0].focus(),E._.currentFocusIndex=-1,s=1;else if(-1!=CKEDITOR.tools.indexOf([37,38,39,40],o)&&E._.tabBarMode)o=-1!=CKEDITOR.tools.indexOf([l?39:37,38],o)?e.call(E):(function(){for(var e=this._.tabIdList.length,t=CKEDITOR.tools.indexOf(this._.tabIdList,this._.currentTabId),n=t+1;n<t+e;n++)if(this._.tabs[this._.tabIdList[n%e]][0].$.offsetHeight)return this._.tabIdList[n%e];return null}).call(E),E.selectPage(o),E._.tabs[o][0].focus(),s=1;else if(13!=o&&32!=o||!E._.tabBarMode)if(13==o)(o=n.data.getTarget()).is("a","button","select","textarea")||o.is("input")&&"button"==o.$.type||((o=this.getButton("ok"))&&CKEDITOR.tools.setTimeout(o.click,0,o),s=1),a=1;else{if(27!=o)return;(o=this.getButton("cancel"))?CKEDITOR.tools.setTimeout(o.click,0,o):!1!==this.fire("cancel",{hide:!0}).hide&&this.hide(),a=1}else this.selectPage(this._.currentTabId),this._.tabBarMode=!1,this._.currentFocusIndex=-1,i(1),s=1;r(n)}}function r(e){s?e.data.preventDefault(1):a&&e.data.stopPropagation()}var s,a,l=CKEDITOR.dialog._.dialogDefinitions[n],d=CKEDITOR.tools.clone(c),h=t.config.dialog_buttonsOrder||"OS",f=t.lang.dir,g={};if(("OS"==h&&CKEDITOR.env.mac||"rtl"==h&&"ltr"==f||"ltr"==h&&"rtl"==f)&&d.buttons.reverse(),l=CKEDITOR.tools.extend(l(t),d),l=CKEDITOR.tools.clone(l),l=new p(this,l),d=function(e){var t=CKEDITOR.dom.element.createFromHtml(CKEDITOR.addTemplate("dialog",u).output({id:CKEDITOR.tools.getNextNumber(),editorId:e.id,langDir:e.lang.dir,langCode:e.langCode,editorDialogClass:"cke_editor_"+e.name.replace(/\./g,"\\.")+"_dialog",closeTitle:e.lang.common.close,hidpi:CKEDITOR.env.hidpi?"cke_hidpi":""})),n=t.getChild([0,0,0,0,0]),i=n.getChild(0),o=n.getChild(1);return e.plugins.clipboard&&CKEDITOR.plugins.clipboard.preventDefaultDropOnElement(n),!CKEDITOR.env.ie||CKEDITOR.env.quirks||CKEDITOR.env.edge||(e="javascript:void(function(){"+encodeURIComponent("document.open();("+CKEDITOR.tools.fixDomain+")();document.close();")+"}())",CKEDITOR.dom.element.createFromHtml('<iframe frameBorder="0" class="cke_iframe_shim" src="'+e+'" tabIndex="-1"></iframe>').appendTo(n.getParent())),i.unselectable(),o.unselectable(),{element:t,parts:{dialog:t.getChild(0),title:i,close:o,tabs:n.getChild(2),contents:n.getChild([3,0,0,0]),footer:n.getChild([3,0,1,0])}}}
1(t),this._={editor:t,element:d.element,name:n,contentSize:{width:0,height:0},size:{width:0,height:0},contents:{},buttons:{},accessKeyMap:{},tabs:{},tabIdList:[],currentTabId:null,currentTabIndex:null,pageCount:0,lastTab:null,tabBarMode:!1,focusList:[],currentFocusIndex:0,hasFocus:!1},this.parts=d.parts,CKEDITOR.tools.setTimeout(function(){t.fire("ariaWidget",this.parts.contents)},0,this),(d={position:CKEDITOR.env.ie6Compat?"absolute":"fixed",top:0,visibility:"hidden"})["rtl"==f?"right":"left"]=0,this.parts.dialog.setStyles(d),CKEDITOR.event.call(this),this.definition=l=CKEDITOR.fire("dialogDefinition",{name:n,definition:l},t).definition,!("removeDialogTabs"in t._)&&t.config.removeDialogTabs){for(d=t.config.removeDialogTabs.split(";"),f=0;f<d.length;f++)if(2==(h=d[f].split(":")).length){var v=h[0];g[v]||(g[v]=[]),g[v].push(h[1])}t._.removeDialogTabs=g}if(t._.removeDialogTabs&&(g=t._.removeDialogTabs[n]))for(f=0;f<g.length;f++)l.removeContents(g[f]);l.onLoad&&this.on("load",l.onLoad),l.onShow&&this.on("show",l.onShow),l.onHide&&this.on("hide",l.onHide),l.onOk&&this.on("ok",function(e){t.fire("saveSnapshot"),setTimeout(function(){t.fire("saveSnapshot")},0),!1===l.onOk.call(this,e)&&(e.data.hide=!1)}),this.state=CKEDITOR.DIALOG_STATE_IDLE,l.onCancel&&this.on("cancel",function(e){!1===l.onCancel.call(this,e)&&(e.data.hide=!1)});var E=this,T=function(e){var t,n=E._.contents;for(t in n)for(var i in n[t])if(e.call(this,n[t][i]))return};this.on("ok",function(e){T(function(t){if(t.validate){var n=t.validate(this),i="string"==typeof n||!1===n;return i&&(e.data.hide=!1,e.stop()),(function(e,t){var n=this.getInputElement();n&&(e?n.removeAttribute("aria-invalid"):n.setAttribute("aria-invalid",!0)),e||(this.select?this.select():this.focus()),t&&alert(t),this.fire("validated",{valid:e,msg:t})}).call(t,!i,"string"==typeof n?n:void 0),i}})},this,null,0),this.on("cancel",function(e){T(function(n){if(n.isChanged())return t.config.dialog_noConfirmCancel||confirm(t.lang.common.confirmCancel)||(e.data.hide=!1),!0})},this,null,0),this.parts.close.on("click",function(e){!1!==this.fire("cancel",{hide:!0}).hide&&this.hide(),e.data.preventDefault()},this),this.changeFocus=i;var y=this._.element;for(t.focusManager.add(y,1),this.on("show",function(){y.on("keydown",o,this),CKEDITOR.env.gecko&&y.on("keypress",r,this)}),this.on("hide",function(){y.removeListener("keydown",o),CKEDITOR.env.gecko&&y.removeListener("keypress",r),T(function(e){(function(){var e=this.getInputElement();e&&e.removeAttribute("aria-invalid")}).apply(e)})}),this.on("iframeAdded",function(e){new CKEDITOR.dom.document(e.data.iframe.$.contentWindow.document).on("keydown",o,this,null,0)}),this.on("show",function(){!function(){var e=E._.focusList;e.sort(function(e,t){return e.tabIndex!=t.tabIndex?t.tabIndex-e.tabIndex:e.focusIndex-t.focusIndex});for(var t=e.length,n=0;n<t;n++)e[n].focusIndex=n}();var e=1<E._.pageCount;t.config.dialog_startupFocusTab&&e?(E._.tabBarMode=!0,E._.tabs[E._.currentTabId][0].focus(),E._.currentFocusIndex=-1):this._.hasFocus||(this._.currentFocusIndex=e?-1:this._.focusList.length-1,l.onFocus?(e=l.onFocus.call(this))&&e.focus():i(1))},this,null,4294967295),CKEDITOR.env.ie6Compat&&this.on("load",function(){var e=this.getElement(),t=e.getFirst();t.remove(),t.appendTo(e)},this),function(e){function t(t){var n=e.getSize(),l=CKEDITOR.document.getWindow().getViewPaneSize(),u=t.data.$.screenX,c=t.data.$.screenY,d=u-i.x,h=c-i.y;i={x:u,y:c},o.x+=d,o.y+=h,e.move(o.x+a[3]<s?-a[3]:o.x-a[1]>l.width-n.width-s?l.width-n.width+("rtl"==r.lang.dir?0:a[1]):o.x,o.y+a[0]<s?-a[0]:o.y-a[2]>l.height-n.height-s?l.height-n.height+a[2]:o.y,1),t.data.preventDefault()}function n(){if(CKEDITOR.document.removeListener("mousemove",t),CKEDITOR.document.removeListener("mouseup",n),CKEDITOR.env.ie6Compat){var e=m.getChild(0).getFrameDocument();e.removeListener("mousemove",t),e.removeListener("mouseup",n)}}var i=null,o=null,r=e.getParentEditor(),s=r.config.dialog_magnetDistance,a=CKEDITOR.skin.margins||[0,0,0,0];"undefined"==typeof s&&(s=20),e.parts.title.on("mousedown",function(r){if(i={x:r.data.$.screenX,y:r.data.$.screenY},CKEDITOR.document.on("mousemove",t),CKEDITOR.document.on("mouseup",n),o=e.getPosition(),CKEDITOR.env.ie6Compat){var s=m.getChild(0).getFrameDocument();s.on("mousemove",t),s.on("mouseup",n)}r.data.preventDefault()},e)}(this),function(e){function t(t){var n="rtl"==d.lang.dir,c=u.width,h=u.height,f=c+(t.data.$.screenX-l.x)*(n?-1:1)*(e._.moved?1:2),p=h+(t.data.$.screenY-l.y)*(e._.moved?1:2),g=e._.element.getFirst(),m=(g=n&&g.getComputedStyle("right"),e.getPosition());m.y+p>a.height&&(p=a.height-m.y),(n?g:m.x)+f>a.width&&(f=a.width-(n?g:m.x)),o!=CKEDITOR.DIALOG_RESIZE_WIDTH&&o!=CKEDITOR.DIALOG_RESIZE_BOTH||(c=Math.max(i.minWidth||0,f-r)),o!=CKEDITOR.DIALOG_RESIZE_HEIGHT&&o!=CKEDITOR.DIALOG_RESIZE_BOTH||(h=Math.max(i.minHeight||0,p-s)),e.resize(c,h),e._.moved||e.layout(),t.data.preventDefault()}function n(){if(CKEDITOR.document.removeListener("mouseup",n),CKEDITOR.document.removeListener("mousemove",t),c&&(c.remove(),c=null),CKEDITOR.env.ie6Compat){var e=m.getChild(0).getFrameDocument();e.removeListener("mouseup",n),e.removeListener("mousemove",t)}}var i=e.definition,o=i.resizable;if(o!=CKEDITOR.DIALOG_RESIZE_NONE){var r,s,a,l,u,c,d=e.getParentEditor(),h=CKEDITOR.tools.addFunction(function(i){u=e.getSize();var o=e.parts.contents;o.$.getElementsByTagName("iframe").length&&(c=CKEDITOR.dom.element.createFromHtml('<div class="cke_dialog_resize_cover" style="height: 100%; position: absolute; width: 100%;"></div>'),o.append(c)),s=u.height-e.parts.contents.getSize("height",!(CKEDITOR.env.gecko||CKEDITOR.env.ie&&CKEDITOR.env.quirks)),r=u.width-e.parts.contents.getSize("width",1),l={x:i.screenX,y:i.screenY},a=CKEDITOR.document.getWindow().getViewPaneSize(),CKEDITOR.document.on("mousemove",t),CKEDITOR.document.on("mouseup",n),CKEDITOR.env.ie6Compat&&((o=m.getChild(0).getFrameDocument()).on("mousemove",t),o.on("mouseup",n)),i.preventDefault&&i.preventDefault()});e.on("load",function(){var t="";o==CKEDITOR.DIALOG_RESIZE_WIDTH?t=" cke_resizer_horizontal":o==CKEDITOR.DIALOG_RESIZE_HEIGHT&&(t=" cke_resizer_vertical"),t=CKEDITOR.dom.element.createFromHtml('<div class="cke_resizer'+t+" cke_resizer_"+d.lang.dir+'" title="'+CKEDITOR.tools.htmlEncode(d.lang.common.resize)+'" onmousedown="CKEDITOR.tools.callFunction('+h+', event )">'+("ltr"==d.lang.dir?"\u25e2":"\u25e3")+"</div>"),e.parts.footer.append(t,1)}),d.on("destroy",function(){CKEDITOR.tools.removeFunction(h)})}}(this),new CKEDITOR.dom.text(l.title,CKEDITOR.document).appendTo(this.parts.title),f=0;f<l.contents.length;f++)(g=l.contents[f])&&this.addPage(g);for(this.parts.tabs.on("click",function(e){var t=e.data.getTarget();t.hasClass("cke_dialog_tab")&&(t=t.$.id,this.selectPage(t.substring(4,t.lastIndexOf("_"))),this._.tabBarMode&&(this._.tabBarMode=!1,this._.currentFocusIndex=-1,i(1)),e.data.preventDefault())},this),f=[],g=CKEDITOR.dialog._.uiElementBuilders.hbox.build(this,{type:"hbox",className:"cke_dialog_footer_buttons",widths:[],children:l.buttons},f).getChild(),this.parts.footer.setHtml(f.join("")),f=0;f<g.length;f++)this._.buttons[g[f].id]=g[f]}
1,CKEDITOR.dialog.prototype={destroy:function(){this.hide(),this._.element.remove()},resize:function(e,t){this._.contentSize&&this._.contentSize.width==e&&this._.contentSize.height==t||(CKEDITOR.dialog.fire("resize",{dialog:this,width:e,height:t},this._.editor),this.fire("resize",{width:e,height:t},this._.editor),this.parts.contents.setStyles({width:e+"px",height:t+"px"}),"rtl"==this._.editor.lang.dir&&this._.position&&(this._.position.x=CKEDITOR.document.getWindow().getViewPaneSize().width-this._.contentSize.width-parseInt(this._.element.getFirst().getStyle("right"),10)),this._.contentSize={width:e,height:t})},getSize:function(){var e=this._.element.getFirst();return{width:e.$.offsetWidth||0,height:e.$.offsetHeight||0}},move:function(e,t,n){var i=this._.element.getFirst(),o="rtl"==this._.editor.lang.dir,r="fixed"==i.getComputedStyle("position");CKEDITOR.env.ie&&i.setStyle("zoom","100%"),r&&this._.position&&this._.position.x==e&&this._.position.y==t||(this._.position={x:e,y:t},r||(e+=(r=CKEDITOR.document.getWindow().getScrollPosition()).x,t+=r.y),o&&(r=this.getSize(),e=CKEDITOR.document.getWindow().getViewPaneSize().width-r.width-e),(t={top:(0<t?t:0)+"px"})[o?"right":"left"]=(0<e?e:0)+"px",i.setStyles(t),n&&(this._.moved=1))},getPosition:function(){return CKEDITOR.tools.extend({},this._.position)},show:function(){var e=this._.element,t=this.definition;for(var n in e.getParent()&&e.getParent().equals(CKEDITOR.document.getBody())?e.setStyle("display","block"):e.appendTo(CKEDITOR.document.getBody()),this.resize(this._.contentSize&&this._.contentSize.width||t.width||t.minWidth,this._.contentSize&&this._.contentSize.height||t.height||t.minHeight),this.reset(),this.selectPage(this.definition.contents[0].id),null===CKEDITOR.dialog._.currentZIndex&&(CKEDITOR.dialog._.currentZIndex=this._.editor.config.baseFloatZIndex),this._.element.getFirst().setStyle("z-index",CKEDITOR.dialog._.currentZIndex+=10),null===CKEDITOR.dialog._.currentTop?(CKEDITOR.dialog._.currentTop=this,this._.parentDialog=null,r(this._.editor)):(this._.parentDialog=CKEDITOR.dialog._.currentTop,this._.parentDialog.getElement().getFirst().$.style.zIndex-=Math.floor(this._.editor.config.baseFloatZIndex/2),CKEDITOR.dialog._.currentTop=this),e.on("keydown",T),e.on("keyup",y),this._.hasFocus=!1,t.contents)if(t.contents[n]){e=t.contents[n];var i=this._.tabs[e.id],o=e.requiredContent,s=0;if(i){for(var a in this._.contents[e.id]){var l=this._.contents[e.id][a];"hbox"!=l.type&&"vbox"!=l.type&&l.getInputElement()&&(l.requiredContent&&!this._.editor.activeFilter.check(l.requiredContent)?l.disable():(l.enable(),s++))}!s||o&&!this._.editor.activeFilter.check(o)?i[0].addClass("cke_dialog_tab_disabled"):i[0].removeClass("cke_dialog_tab_disabled")}}CKEDITOR.tools.setTimeout(function(){this.layout(),function(e){function t(){e.layout()}var n=CKEDITOR.document.getWindow();n.on("resize",t),e.on("hide",function(){n.removeListener("resize",t)})}(this),this.parts.dialog.setStyle("visibility",""),this.fireOnce("load",{}),CKEDITOR.ui.fire("ready",this),this.fire("show",{}),this._.editor.fire("dialogShow",this),this._.parentDialog||this._.editor.focusManager.lock(),this.foreach(function(e){e.setInitValue&&e.setInitValue()})},100,this)},layout:function(){var e=this.parts.dialog,t=this.getSize(),n=CKEDITOR.document.getWindow().getViewPaneSize(),i=(n.width-t.width)/2,o=(n.height-t.height)/2;CKEDITOR.env.ie6Compat||(t.height+(0<o?o:0)>n.height||t.width+(0<i?i:0)>n.width?e.setStyle("position","absolute"):e.setStyle("position","fixed")),this.move(this._.moved?this._.position.x:i,this._.moved?this._.position.y:o)},foreach:function(e){for(var t in this._.contents)for(var n in this._.contents[t])e.call(this,this._.contents[t][n]);return this},reset:(a=function(e){e.reset&&e.reset(1)},function(){return this.foreach(a),this}),setupContent:function(){var e=arguments;this.foreach(function(t){t.setup&&t.setup.apply(t,e)})},commitContent:function(){var e=arguments;this.foreach(function(t){CKEDITOR.env.ie&&this._.currentFocusIndex==t.focusIndex&&t.getInputElement().$.blur(),t.commit&&t.commit.apply(t,e)})},hide:function(){if(this.parts.dialog.isVisible()){this.fire("hide",{}),this._.editor.fire("dialogHide",this),this.selectPage(this._.tabIdList[0]);var e=this._.element;for(e.setStyle("display","none"),this.parts.dialog.setStyle("visibility","hidden"),b(this);CKEDITOR.dialog._.currentTop!=this;)CKEDITOR.dialog._.currentTop.hide();if(this._.parentDialog){var t=this._.parentDialog.getElement().getFirst();t.setStyle("z-index",parseInt(t.$.style.zIndex,10)+Math.floor(this._.editor.config.baseFloatZIndex/2))}else s(this._.editor);if(CKEDITOR.dialog._.currentTop=this._.parentDialog)CKEDITOR.dialog._.currentZIndex-=10;
1else{CKEDITOR.dialog._.currentZIndex=null,e.removeListener("keydown",T),e.removeListener("keyup",y);var n=this._.editor;n.focus(),setTimeout(function(){n.focusManager.unlock(),CKEDITOR.env.iOS&&n.window.focus()},0)}delete this._.parentDialog,this.foreach(function(e){e.resetInitValue&&e.resetInitValue()}),this.setState(CKEDITOR.DIALOG_STATE_IDLE)}},addPage:function(e){if(!e.requiredContent||this._.editor.filter.check(e.requiredContent)){for(var t=[],n=e.label?' title="'+CKEDITOR.tools.htmlEncode(e.label)+'"':"",i=CKEDITOR.dialog._.uiElementBuilders.vbox.build(this,{type:"vbox",className:"cke_dialog_page_contents",children:e.elements,expand:!!e.expand,padding:e.padding,style:e.style||"width: 100%;"},t),o=this._.contents[e.id]={},r=i.getChild(),s=0;i=r.shift();)i.notAllowed||"hbox"==i.type||"vbox"==i.type||s++,o[i.id]=i,"function"==typeof i.getChild&&r.push.apply(r,i.getChild());s||(e.hidden=!0),(t=CKEDITOR.dom.element.createFromHtml(t.join(""))).setAttribute("role","tabpanel"),i=CKEDITOR.env,o="cke_"+e.id+"_"+CKEDITOR.tools.getNextNumber(),n=CKEDITOR.dom.element.createFromHtml(['<a class="cke_dialog_tab"',0<this._.pageCount?" cke_last":"cke_first",n,e.hidden?' style="display:none"':"",' id="',o,'"',i.gecko&&!i.hc?"":' href="javascript:void(0)"',' tabIndex="-1" hidefocus="true" role="tab">',e.label,"</a>"].join("")),t.setAttribute("aria-labelledby",o),this._.tabs[e.id]=[n,t],this._.tabIdList.push(e.id),!e.hidden&&this._.pageCount++,this._.lastTab=n,this.updateStyle(),t.setAttribute("name",e.id),t.appendTo(this.parts.contents),n.unselectable(),this.parts.tabs.append(n),e.accessKey&&(C(this,this,"CTRL+"+e.accessKey,I,D),this._.accessKeyMap["CTRL+"+e.accessKey]=e.id)}},selectPage:function(e){if(this._.currentTabId!=e&&!this._.tabs[e][0].hasClass("cke_dialog_tab_disabled")&&!1!==this.fire("selectPage",{page:e,currentPage:this._.currentTabId})){for(var n in this._.tabs){var i=this._.tabs[n][0],o=this._.tabs[n][1];n!=e&&(i.removeClass("cke_dialog_tab_selected"),o.hide()),o.setAttribute("aria-hidden",n!=e)}var r=this._.tabs[e];r[0].addClass("cke_dialog_tab_selected"),CKEDITOR.env.ie6Compat||CKEDITOR.env.ie7Compat?(t(r[1]),r[1].show(),setTimeout(function(){t(r[1],1)},0)):r[1].show(),this._.currentTabId=e,this._.currentTabIndex=CKEDITOR.tools.indexOf(this._.tabIdList,e)}},updateStyle:function(){this.parts.dialog[(1===this._.pageCount?"add":"remove")+"Class"]("cke_single_page")},hidePage:function(t){var n=this._.tabs[t]&&this._.tabs[t][0];n&&1!=this._.pageCount&&n.isVisible()&&(t==this._.currentTabId&&this.selectPage(e.call(this)),n.hide(),this._.pageCount--,this.updateStyle())},showPage:function(e){(e=this._.tabs[e]&&this._.tabs[e][0])&&(e.show(),this._.pageCount++,this.updateStyle())},getElement:function(){return this._.element},getName:function(){return this._.name},getContentElement:function(e,t){var n=this._.contents[e];return n&&n[t]},getValueOf:function(e,t){return this.getContentElement(e,t).getValue()},setValueOf:function(e,t,n){return this.getContentElement(e,t).setValue(n)},getButton:function(e){return this._.buttons[e]},click:function(e){return this._.buttons[e].click()},disableButton:function(e){return this._.buttons[e].disable()},enableButton:function(e){return this._.buttons[e].enable()},getPageCount:function(){return this._.pageCount},getParentEditor:function(){return this._.editor},getSelectedElement:function(){return this.getParentEditor().getSelection().getSelectedElement()},addFocusable:function(e,t){if("undefined"==typeof t)t=this._.focusList.length,this._.focusList.push(new n(this,e,t));else{this._.focusList.splice(t,0,new n(this,e,t));for(var i=t+1;i<this._.focusList.length;i++)this._.focusList[i].focusIndex++}},setState:function(e){if(this.state!=e){if(this.state=e,e==CKEDITOR.DIALOG_STATE_BUSY){if(!this.parts.spinner){var t=this.getParentEditor().lang.dir,n={attributes:{class:"cke_dialog_spinner"},styles:{float:"rtl"==t?"right":"left"}};n.styles["margin-"+("rtl"==t?"left":"right")]="8px",this.parts.spinner=CKEDITOR.document.createElement("div",n),this.parts.spinner.setHtml("⌛"),this.parts.spinner.appendTo(this.parts.title,1)}this.parts.spinner.show(),this.getButton("ok").disable()}else e==CKEDITOR.DIALOG_STATE_IDLE&&(this.parts.spinner&&this.parts.spinner.hide(),this.getButton("ok").enable());this.fire("state",e)}}},CKEDITOR.tools.extend(CKEDITOR.dialog,{add:function(e,t){this._.dialogDefinitions[e]&&"function"!=typeof t||(this._.dialogDefinitions[e]=t)},exists:function(e){return!!this._.dialogDefinitions[e]},getCurrent:function(){return CKEDITOR.dialog._.currentTop},isTabEnabled:function(e,t,n){return!((e=e.config.removeDialogTabs)&&e.match(new RegExp("(?:^|;)"+t+":"+n+"(?:$|;)","i")))},okButton:function(){var e=function(e,t){return t=t||{},CKEDITOR.tools.extend({id:"ok",type:"button",label:e.lang.common.ok,class:"cke_dialog_ui_button_ok",onClick:function(e){!1!==(e=e.data.dialog).fire("ok",{hide:!0}).hide&&e.hide()}},t,!0)};return e.type="button",e.override=function(t){return CKEDITOR.tools.extend(function(n){return e(n,t)},{type:"button"},!0)},e}(),cancelButton:function(){var e=function(e,t){return t=t||{},CKEDITOR.tools.extend({id:"cancel",type:"button",label:e.lang.common.cancel,class:"cke_dialog_ui_button_cancel",onClick:function(e){!1!==(e=e.data.dialog).fire("cancel",{hide:!0}).hide&&e.hide()}},t,!0)};return e.type="button",e.override=function(t){return CKEDITOR.tools.extend(function(n){return e(n,t)},{type:"button"},!0)},e}(),addUIElement:function(e,t){this._.uiElementBuilders[e]=t}}),CKEDITOR.dialog._={uiElementBuilders:{},dialogDefinitions:{},currentTop:null,currentZIndex:null},CKEDITOR.event.implementOn(CKEDITOR.dialog),CKEDITOR.event.implementOn(CKEDITOR.dialog.prototype);var c={resizable:CKEDITOR.DIALOG_RESIZE_BOTH,minWidth:600,minHeight:400,buttons:[CKEDITOR.dialog.okButton,CKEDITOR.dialog.cancelButton]},d=function(e,t,n){for(var i,o=0;i=e[o];o++)if(i.id==t||n&&i[n]&&(i=d(i[n],t,n)))return i;return null},h=function(e,t,n,i,o){if(n){for(var r,s=0;r=e[s];s++){if(r.id==n)return e.splice(s,0,t),t;if(i&&r[i]&&(r=h(r[i],t,n,i,!0)))return r}if(o)return null}return e.push(t),t},f=function(e,t,n){for(var i,o=0;i=e[o];o++){if(i.id==t)return e.splice(o,1);if(n&&i[n]&&(i=f(i[n],t,n)))return i}return null},p=function(e,t){this.dialog=e;for(var n,o=t.contents,r=0;n=o[r];r++)o[r]=n&&new i(e,n);CKEDITOR.tools.extend(this,t)};p.prototype={getContents:function(e){return d(this.contents,e)},getButton:function(e){return d(this.buttons,e)},addContents:function(e,t){return h(this.contents,e,t)},addButton:function(e,t){return h(this.buttons,e,t)},removeContents:function(e){f(this.contents,e)},removeButton:function(e){f(this.buttons,e)}},i.prototype={get:function(e){return d(this.elements,e,"children")},add:function(e,t){return h(this.elements,e,t,"children")},remove:function(e){f(this.elements,e,"children")}};var g,m,v={},E={},T=function(e){var t=e.data.$.ctrlKey||e.data.$.metaKey,n=e.data.$.altKey,i=e.data.$.shiftKey,o=String.fromCharCode(e.data.$.keyCode);(t=E[(t?"CTRL+":"")+(n?"ALT+":"")+(i?"SHIFT+":"")+o])&&t.length&&((t=t[t.length-1]).keydown&&t.keydown.call(t.uiElement,t.dialog,t.key),e.data.preventDefault())},y=function(e){var t=e.data.$.ctrlKey||e.data.$.metaKey,n=e.data.$.altKey,i=e.data.$.shiftKey,o=String.fromCharCode(e.data.$.keyCode);(t=E[(t?"CTRL+":"")+(n?"ALT+":"")+(i?"SHIFT+":"")+o])&&t.length&&((t=t[t.length-1]).keyup&&(t.keyup.call(t.uiElement,t.dialog,t.key),e.data.preventDefault()))},C=function(e,t,n,i,o){(E[n]||(E[n]=[])).push({uiElement:e,dialog:t,key:n,keyup:o||e.accessKeyUp,keydown:i||e.accessKeyDown})},b=function(e){for(var t in E){for(var n=E[t],i=n.length-1;0<=i;i--)n[i].dialog!=e&&n[i].uiElement!=e||n.splice(i,1);0===n.length&&delete E[t]}},D=function(e,t){e._.accessKeyMap[t]&&e.selectPage(e._.accessKeyMap[t])},I=function(){};CKEDITOR.ui.dialog={uiElement:function(e,t,n,i,o,r,s){if(!(4>arguments.length)){var a=(i.call?i(t):i)||"div",l=["<",a," "],u=(o&&o.call?o(t):o)||{},c=(r&&r.call?r(t):r)||{},d=(s&&s.call?s.call(this,e,t):s)||"",h=this.domId=c.id||CKEDITOR.tools.getNextId()+"_uiElement";t.requiredContent&&!e.getParentEditor().filter.check(t.requiredContent)&&(u.display="none",this.notAllowed=!0),c.id=h;var f={};t.type&&(f["cke_dialog_ui_"+t.type]=1),t.className&&(f[t.className]=1),t.disabled&&(f.cke_disabled=1);var p=c.class&&c.class.split?c.class.split(" "):[];for(h=0;h<p.length;h++)p[h]&&(f[p[h]]=1);for(h in p=[],f)p.push(h);
1for(h in c.class=p.join(" "),t.title&&(c.title=t.title),f=(t.style||"").split(";"),t.align&&(p=t.align,u["margin-left"]="left"==p?0:"auto",u["margin-right"]="right"==p?0:"auto"),u)f.push(h+":"+u[h]);for(t.hidden&&f.push("display:none"),h=f.length-1;0<=h;h--)""===f[h]&&f.splice(h,1);for(h in 0<f.length&&(c.style=(c.style?c.style+"; ":"")+f.join("; ")),c)l.push(h+'="'+CKEDITOR.tools.htmlEncode(c[h])+'" ');l.push(">",d,"</",a,">"),n.push(l.join("")),(this._||(this._={})).dialog=e,"boolean"==typeof t.isChanged&&(this.isChanged=function(){return t.isChanged}),"function"==typeof t.isChanged&&(this.isChanged=t.isChanged),"function"==typeof t.setValue&&(this.setValue=CKEDITOR.tools.override(this.setValue,function(e){return function(n){e.call(this,t.setValue.call(this,n))}})),"function"==typeof t.getValue&&(this.getValue=CKEDITOR.tools.override(this.getValue,function(e){return function(){return t.getValue.call(this,e.call(this))}})),CKEDITOR.event.implementOn(this),this.registerEvents(t),this.accessKeyUp&&this.accessKeyDown&&t.accessKey&&C(this,e,"CTRL+"+t.accessKey);var g=this;e.on("load",function(){var t=g.getInputElement();if(t){var n=g.type in{checkbox:1,ratio:1}&&CKEDITOR.env.ie&&8>CKEDITOR.env.version?"cke_dialog_ui_focused":"";t.on("focus",function(){e._.tabBarMode=!1,e._.hasFocus=!0,g.fire("focus"),n&&this.addClass(n)}),t.on("blur",function(){g.fire("blur"),n&&this.removeClass(n)})}}),CKEDITOR.tools.extend(this,t),this.keyboardFocusable&&(this.tabIndex=t.tabIndex||0,this.focusIndex=e._.focusList.push(this)-1,this.on("focus",function(){e._.currentFocusIndex=g.focusIndex}))}},hbox:function(e,t,n,i,o){if(!(4>arguments.length)){this._||(this._={});var r,s=this._.children=t,a=o&&o.widths||null,u=o&&o.height||null,c={role:"presentation"};o&&o.align&&(c.align=o.align),CKEDITOR.ui.dialog.uiElement.call(this,e,o||{type:"hbox"},i,"table",{},c,function(){var e=['<tbody><tr class="cke_dialog_ui_hbox">'];for(r=0;r<n.length;r++){var t="cke_dialog_ui_hbox_child",i=[];0===r&&(t="cke_dialog_ui_hbox_first"),r==n.length-1&&(t="cke_dialog_ui_hbox_last"),e.push('<td class="',t,'" role="presentation" '),a?a[r]&&i.push("width:"+l(a[r])):i.push("width:"+Math.floor(100/n.length)+"%"),u&&i.push("height:"+l(u)),o&&void 0!==o.padding&&i.push("padding:"+l(o.padding)),CKEDITOR.env.ie&&CKEDITOR.env.quirks&&s[r].align&&i.push("text-align:"+s[r].align),0<i.length&&e.push('style="'+i.join("; ")+'" '),e.push(">",n[r],"</td>")}return e.push("</tr></tbody>"),e.join("")})}},vbox:function(e,t,n,i,o){if(!(3>arguments.length)){this._||(this._={});var r=this._.children=t,s=o&&o.width||null,a=o&&o.heights||null;CKEDITOR.ui.dialog.uiElement.call(this,e,o||{type:"vbox"},i,"div",null,{role:"presentation"},function(){var t=['<table role="presentation" cellspacing="0" border="0" '];t.push('style="'),o&&o.expand&&t.push("height:100%;"),t.push("width:"+l(s||"100%"),";"),CKEDITOR.env.webkit&&t.push("float:none;"),t.push('"'),t.push('align="',CKEDITOR.tools.htmlEncode(o&&o.align||("ltr"==e.getParentEditor().lang.dir?"left":"right")),'" '),t.push("><tbody>");for(var i=0;i<n.length;i++){var u=[];t.push('<tr><td role="presentation" '),s&&u.push("width:"+l(s||"100%")),a?u.push("height:"+l(a[i])):o&&o.expand&&u.push("height:"+Math.floor(100/n.length)+"%"),o&&void 0!==o.padding&&u.push("padding:"+l(o.padding)),CKEDITOR.env.ie&&CKEDITOR.env.quirks&&r[i].align&&u.push("text-align:"+r[i].align),0<u.length&&t.push('style="',u.join("; "),'" '),t.push(' class="cke_dialog_ui_vbox_child">',n[i],"</td></tr>")}return t.push("</tbody></table>"),t.join("")})}}},CKEDITOR.ui.dialog.uiElement.prototype={getElement:function(){return CKEDITOR.document.getById(this.domId)},getInputElement:function(){return this.getElement()},getDialog:function(){return this._.dialog},setValue:function(e,t){return this.getInputElement().setValue(e),!t&&this.fire("change",{value:e}),this},getValue:function(){return this.getInputElement().getValue()},isChanged:function(){return!1},selectParentTab:function(){for(var e=this.getInputElement();(e=e.getParent())&&-1==e.$.className.search("cke_dialog_page_contents"););return e?(e=e.getAttribute("name"),this._.dialog._.currentTabId!=e&&this._.dialog.selectPage(e),this):this}
1,focus:function(){return this.selectParentTab().getInputElement().focus(),this},registerEvents:function(e){var t,n,i=/^on([A-Z]\w+)/,o=function(e,t,n,i){t.on("load",function(){e.getInputElement().on(n,i,e)})};for(n in e)(t=n.match(i))&&(this.eventProcessors[n]?this.eventProcessors[n].call(this,this._.dialog,e[n]):o(this,this._.dialog,t[1].toLowerCase(),e[n]));return this},eventProcessors:{onLoad:function(e,t){e.on("load",t,this)},onShow:function(e,t){e.on("show",t,this)},onHide:function(e,t){e.on("hide",t,this)}},accessKeyDown:function(){this.focus()},accessKeyUp:function(){},disable:function(){var e=this.getElement();this.getInputElement().setAttribute("disabled","true"),e.addClass("cke_disabled")},enable:function(){var e=this.getElement();this.getInputElement().removeAttribute("disabled"),e.removeClass("cke_disabled")},isEnabled:function(){return!this.getElement().hasClass("cke_disabled")},isVisible:function(){return this.getInputElement().isVisible()},isFocusable:function(){return!(!this.isEnabled()||!this.isVisible())}},CKEDITOR.ui.dialog.hbox.prototype=CKEDITOR.tools.extend(new CKEDITOR.ui.dialog.uiElement,{getChild:function(e){return 1>arguments.length?this._.children.concat():(e.splice||(e=[e]),2>e.length?this._.children[e[0]]:this._.children[e[0]]&&this._.children[e[0]].getChild?this._.children[e[0]].getChild(e.slice(1,e.length)):null)}},!0),CKEDITOR.ui.dialog.vbox.prototype=new CKEDITOR.ui.dialog.hbox,function(){var e={build:function(e,t,n){for(var i,o=t.children,r=[],s=[],a=0;a<o.length&&(i=o[a]);a++){var l=[];r.push(l),s.push(CKEDITOR.dialog._.uiElementBuilders[i.type].build(e,i,l))}return new CKEDITOR.ui.dialog[t.type](e,s,r,n,t)}};CKEDITOR.dialog.addUIElement("hbox",e),CKEDITOR.dialog.addUIElement("vbox",e)}(),CKEDITOR.dialogCommand=function(e,t){this.dialogName=e,CKEDITOR.tools.extend(this,t,!0)},CKEDITOR.dialogCommand.prototype={exec:function(e){e.openDialog(this.dialogName)},canUndo:!1,editorFocus:1},function(){var e=/^([a]|[^a])+$/,t=/^\d*$/,n=/^\d*(?:\.\d+)?$/,i=/^(((\d*(\.\d+))|(\d*))(px|\%)?)?$/,o=/^(((\d*(\.\d+))|(\d*))(px|em|ex|in|cm|mm|pt|pc|\%)?)?$/i,r=/^(\s*[\w-]+\s*:\s*[^:;]+(?:;|$))*$/;CKEDITOR.VALIDATE_OR=1,CKEDITOR.VALIDATE_AND=2,CKEDITOR.dialog.validate={functions:function(){var e=arguments;return function(){var t,n,i=this&&this.getValue?this.getValue():e[0],o=CKEDITOR.VALIDATE_AND,r=[];for(n=0;n<e.length&&"function"==typeof e[n];n++)r.push(e[n]);n<e.length&&"string"==typeof e[n]&&(t=e[n],n++),n<e.length&&"number"==typeof e[n]&&(o=e[n]);var s=o==CKEDITOR.VALIDATE_AND;for(n=0;n<r.length;n++)s=o==CKEDITOR.VALIDATE_AND?s&&r[n](i):s||r[n](i);return!!s||t}},regex:function(e,t){return function(n){return n=this&&this.getValue?this.getValue():n,!!e.test(n)||t}},notEmpty:function(t){return this.regex(e,t)},integer:function(e){return this.regex(t,e)},number:function(e){return this.regex(n,e)},cssLength:function(e){return this.functions(function(e){return o.test(CKEDITOR.tools.trim(e))},e)},htmlLength:function(e){return this.functions(function(e){return i.test(CKEDITOR.tools.trim(e))},e)},inlineStyle:function(e){return this.functions(function(e){return r.test(CKEDITOR.tools.trim(e))},e)},equals:function(e,t){return this.functions(function(t){return t==e},t)},notEqual:function(e,t){return this.functions(function(t){return t!=e},t)}},CKEDITOR.on("instanceDestroyed",function(e){if(CKEDITOR.tools.isEmpty(CKEDITOR.instances)){for(var t;t=CKEDITOR.dialog._.currentTop;)t.hide();for(var n in v)v[n].remove();v={}}for(var i in e=e.editor._.storedDialogs)e[i].destroy()})}(),CKEDITOR.tools.extend(CKEDITOR.editor.prototype,{openDialog:function(e,t){var n=null,i=CKEDITOR.dialog._.dialogDefinitions[e];if(null===CKEDITOR.dialog._.currentTop&&r(this),"function"==typeof i)n=(n=this._.storedDialogs||(this._.storedDialogs={}))[e]||(n[e]=new CKEDITOR.dialog(this,e)),t&&t.call(n,n),n.show();else{if("failed"==i)throw s(this),Error('[CKEDITOR.dialog.openDialog] Dialog "'+e+'" failed when loading definition.');"string"==typeof i&&CKEDITOR.scriptLoader.load(CKEDITOR.getUrl(i),function(){"function"!=typeof CKEDITOR.dialog._.dialogDefinitions[e]&&(CKEDITOR.dialog._.dialogDefinitions[e]="failed"),this.openDialog(e,t)},this,0,1)}return CKEDITOR.skin.loadPart("dialog"),n}})}(),CKEDITOR.plugins.add("dialog",{requires:"dialogui",init:function(e){e.on("doubleclick",function(t){t.data.dialog&&e.openDialog(t.data.dialog)},null,null,999)}}),CKEDITOR.plugins.add("about",{requires:"dialog",init:function(e){var t=e.addCommand("about",new CKEDITOR.dialogCommand("about"));t.modes={wysiwyg:1,source:1},t.canUndo=!1,t.readOnly=1,e.ui.addButton&&e.ui.addButton("About",{label:e.lang.about.title,command:"about",toolbar:"about"}),CKEDITOR.dialog.add("about",this.path+"dialogs/about.js")}}),CKEDITOR.plugins.add("a11yhelp",{requires:"dialog",availableLangs:{af:1,ar:1,az:1,bg:1,ca:1,cs:1,cy:1,da:1,de:1,"de-ch":1,el:1,en:1,"en-gb":1,eo:1,es:1,et:1,eu:1,fa:1,fi:1,fo:1,fr:1,"fr-ca":1,gl:1,gu:1,he:1,hi:1,hr:1,hu:1,id:1,it:1,ja:1,km:1,ko:1,ku:1,lt:1,lv:1,mk:1,mn:1,nb:1,nl:1,no:1,oc:1,pl:1,pt:1,"pt-br":1,ro:1,ru:1,si:1,sk:1,sl:1,sq:1,sr:1,"sr-latn":1,sv:1,th:1,tr:1,tt:1,ug:1,uk:1,vi:1,zh:1,"zh-cn":1},init:function(e){var t=this;e.addCommand("a11yHelp",{exec:function(){var n=e.langCode;n=t.availableLangs[n]?n:t.availableLangs[n.replace(/-.*/,"")]?n.replace(/-.*/,""):"en",CKEDITOR.scriptLoader.load(CKEDITOR.getUrl(t.path+"dialogs/lang/"+n+".js"),function(){e.lang.a11yhelp=t.langEntries[n],e.openDialog("a11yHelp")})},modes:{wysiwyg:1,source:1},readOnly:1,canUndo:!1}),e.setKeystroke(CKEDITOR.ALT+48,"a11yHelp"),CKEDITOR.dialog.add("a11yHelp",this.path+"dialogs/a11yhelp.js"),e.on("ariaEditorHelpLabel",function(t){t.data.label=e.lang.common.editorHelp})}}),CKEDITOR.plugins.add("basicstyles",{init:function(e){var t=0,n=function(n,o,r,s){if(s){s=new CKEDITOR.style(s);var a=i[r];a.unshift(s),e.attachStyleStateChange(s,function(t){!e.readOnly&&e.getCommand(r).setState(t)}),e.addCommand(r,new CKEDITOR.styleCommand(s,{contentForms:a})),e.ui.addButton&&e.ui.addButton(n,{label:o,command:r,toolbar:"basicstyles,"+(t+=10)})}},i={bold:["strong","b",["span",function(e){return"bold"==(e=e.styles["font-weight"])||700<=+e}]],italic:["em","i",["span",function(e){return"italic"==e.styles["font-style"]}]],underline:["u",["span",function(e){return"underline"==e.styles["text-decoration"]}]],strike:["s","strike",["span",function(e){return"line-through"==e.styles["text-decoration"]}]],subscript:["sub"],superscript:["sup"]},o=e.config,r=e.lang.basicstyles;
1n("Bold",r.bold,"bold",o.coreStyles_bold),n("Italic",r.italic,"italic",o.coreStyles_italic),n("Underline",r.underline,"underline",o.coreStyles_underline),n("Strike",r.strike,"strike",o.coreStyles_strike),n("Subscript",r.subscript,"subscript",o.coreStyles_subscript),n("Superscript",r.superscript,"superscript",o.coreStyles_superscript),e.setKeystroke([[CKEDITOR.CTRL+66,"bold"],[CKEDITOR.CTRL+73,"italic"],[CKEDITOR.CTRL+85,"underline"]])}}),CKEDITOR.config.coreStyles_bold={element:"strong",overrides:"b"},CKEDITOR.config.coreStyles_italic={element:"em",overrides:"i"},CKEDITOR.config.coreStyles_underline={element:"u"},CKEDITOR.config.coreStyles_strike={element:"s",overrides:"strike"},CKEDITOR.config.coreStyles_subscript={element:"sub"},CKEDITOR.config.coreStyles_superscript={element:"sup"},u={exec:function(e){var t=e.getCommand("blockquote").state,n=e.getSelection(),i=n&&n.getRanges()[0];if(i){var o=n.createBookmarks();if(CKEDITOR.env.ie){var r,s=o[0].startNode,a=o[0].endNode;if(s&&"blockquote"==s.getParent().getName())for(r=s;r=r.getNext();)if(r.type==CKEDITOR.NODE_ELEMENT&&r.isBlockBoundary()){s.move(r,!0);break}if(a&&"blockquote"==a.getParent().getName())for(r=a;r=r.getPrevious();)if(r.type==CKEDITOR.NODE_ELEMENT&&r.isBlockBoundary()){a.move(r);break}}if((l=i.createIterator()).enlargeBr=e.config.enterMode!=CKEDITOR.ENTER_BR,t==CKEDITOR.TRISTATE_OFF){for(s=[];t=l.getNextParagraph();)s.push(t);for(1>s.length&&(t=e.document.createElement(e.config.enterMode==CKEDITOR.ENTER_P?"p":"div"),a=o.shift(),i.insertNode(t),t.append(new CKEDITOR.dom.text("\ufeff",e.document)),i.moveToBookmark(a),i.selectNodeContents(t),i.collapse(!0),a=i.createBookmark(),s.push(t),o.unshift(a)),r=s[0].getParent(),i=[],a=0;a<s.length;a++)t=s[a],r=r.getCommonAncestor(t.getParent());for(t={table:1,tbody:1,tr:1,ol:1,ul:1};t[r.getName()];)r=r.getParent();for(a=null;0<s.length;){for(t=s.shift();!t.getParent().equals(r);)t=t.getParent();t.equals(a)||i.push(t),a=t}for(;0<i.length;)if("blockquote"==(t=i.shift()).getName()){for(a=new CKEDITOR.dom.documentFragment(e.document);t.getFirst();)a.append(t.getFirst().remove()),s.push(a.getLast());a.replace(t)}else s.push(t);for((i=e.document.createElement("blockquote")).insertBefore(s[0]);0<s.length;)t=s.shift(),i.append(t)}else if(t==CKEDITOR.TRISTATE_ON){for(a=[],r={};t=l.getNextParagraph();){for(s=i=null;t.getParent();){if("blockquote"==t.getParent().getName()){i=t.getParent(),s=t;break}t=t.getParent()}i&&s&&!s.getCustomData("blockquote_moveout")&&(a.push(s),CKEDITOR.dom.element.setMarker(r,s,"blockquote_moveout",!0))}for(CKEDITOR.dom.element.clearAllMarkers(r),t=[],s=[],r={};0<a.length;)i=(l=a.shift()).getParent(),l.getPrevious()?l.getNext()?(l.breakParent(l.getParent()),s.push(l.getNext())):l.remove().insertAfter(i):l.remove().insertBefore(i),i.getCustomData("blockquote_processed")||(s.push(i),CKEDITOR.dom.element.setMarker(r,i,"blockquote_processed",!0)),t.push(l);for(CKEDITOR.dom.element.clearAllMarkers(r),a=s.length-1;0<=a;a--){i=s[a];e:{for(var l=0,u=(r=i).getChildCount(),c=void 0;l<u&&(c=r.getChild(l));l++)if(c.type==CKEDITOR.NODE_ELEMENT&&c.isBlockBoundary()){r=!1;break e}r=!0}r&&i.remove()}if(e.config.enterMode==CKEDITOR.ENTER_BR)for(i=!0;t.length;)if("div"==(l=t.shift()).getName()){for(a=new CKEDITOR.dom.documentFragment(e.document),!i||!l.getPrevious()||l.getPrevious().type==CKEDITOR.NODE_ELEMENT&&l.getPrevious().isBlockBoundary()||a.append(e.document.createElement("br")),i=l.getNext()&&!(l.getNext().type==CKEDITOR.NODE_ELEMENT&&l.getNext().isBlockBoundary());l.getFirst();)l.getFirst().remove().appendTo(a);i&&a.append(e.document.createElement("br")),a.replace(l),i=!1}}n.selectBookmarks(o),e.focus()}},refresh:function(e,t){this.setState(e.elementPath(t.block||t.blockLimit).contains("blockquote",1)?CKEDITOR.TRISTATE_ON:CKEDITOR.TRISTATE_OFF)},context:"blockquote",allowedContent:"blockquote",requiredContent:"blockquote"},CKEDITOR.plugins.add("blockquote",{init:function(e){e.blockless||(e.addCommand("blockquote",u),e.ui.addButton&&e.ui.addButton("Blockquote",{label:e.lang.blockquote.toolbar,command:"blockquote",toolbar:"blocks,10"}))}}),function(){function e(e,t,n){return t.type||(t.type="auto"),!(n&&!1===e.fire("beforePaste",t)||!t.dataValue&&t.dataTransfer.isEmpty())&&(t.dataValue||(t.dataValue=""),CKEDITOR.env.gecko&&"drop"==t.method&&e.toolbox&&e.once("afterPaste",function(){e.toolbox.focus()}),e.fire("paste",t))}function t(t){function n(){var e,n=t.editable();if(CKEDITOR.plugins.clipboard.isCustomCopyCutSupported){var i=function(e){t.readOnly&&"cut"==e.name||f.initPasteDataTransfer(e,t),e.data.preventDefault()};n.on("copy",i),n.on("cut",i),n.on("cut",function(){t.readOnly||t.extractSelectedHtml()},null,null,999)}n.on(f.mainPasteEvent,function(e){"beforepaste"==f.mainPasteEvent&&p||c(e)}),"beforepaste"==f.mainPasteEvent&&(n.on("paste",function(e){g||(o(),e.data.preventDefault(),c(e),s("paste")||t.openDialog("paste"))}),n.on("contextmenu",r,null,null,0),n.on("beforepaste",function(e){!e.data||e.data.$.ctrlKey||e.data.$.shiftKey||r()},null,null,0)),n.on("beforecut",function(){!p&&a()}),n.attachListener(CKEDITOR.env.ie?n:t.document.getDocumentElement(),"mouseup",function(){e=setTimeout(function(){d()},0)}),t.on("destroy",function(){clearTimeout(e)}),n.on("keyup",d)}function i(e){return{type:e,canUndo:"cut"==e,startDisabled:!0,fakeKeystroke:"cut"==e?CKEDITOR.CTRL+88:CKEDITOR.CTRL+67,exec:function(){var e;"cut"==this.type&&a();var n=this.type;if(CKEDITOR.env.ie)e=s(n);else try{e=t.document.$.execCommand(n,!1,null)}catch(t){e=!1}return e||t.showNotification(t.lang.clipboard[this.type+"Error"]),e}}}function o(){g=1,setTimeout(function(){g=0},100)}function r(){p=1,setTimeout(function(){p=0},10)}function s(e){var n=t.document,i=n.getBody(),o=!1,r=function(){o=!0};return i.on(e,r),7<CKEDITOR.env.version?n.$.execCommand(e):n.$.selection.createRange().execCommand(e),i.removeListener(e,r),o}function a(){if(CKEDITOR.env.ie&&!CKEDITOR.env.quirks){var e,n,i,o=t.getSelection();o.getType()==CKEDITOR.SELECTION_ELEMENT&&(e=o.getSelectedElement())&&(n=o.getRanges()[0],(i=t.document.createText("")).insertBefore(e),n.setStartBefore(i),n.setEndAfter(e),o.selectRanges([n]),setTimeout(function(){e.getParent()&&
1(i.remove(),o.selectElement(e))},0))}}function l(){if("paste"==f.mainPasteEvent)return t.fire("beforePaste",{type:"auto",method:"paste"}),!1;t.focus(),o();var e=t.focusManager;return e.lock(),t.editable().fire(f.mainPasteEvent)&&!s("paste")?(e.unlock(),!1):(e.unlock(),!0)}function u(e){if("wysiwyg"==t.mode)switch(e.data.keyCode){case CKEDITOR.CTRL+86:case CKEDITOR.SHIFT+45:e=t.editable(),o(),"paste"==f.mainPasteEvent&&e.fire("beforepaste");break;case CKEDITOR.CTRL+88:case CKEDITOR.SHIFT+46:t.fire("saveSnapshot"),setTimeout(function(){t.fire("saveSnapshot")},50)}}function c(n){var i={type:"auto",method:"paste",dataTransfer:f.initPasteDataTransfer(n)};i.dataTransfer.cacheData();var o=!1!==t.fire("beforePaste",i);o&&f.canClipboardApiBeTrusted(i.dataTransfer,t)?(n.data.preventDefault(),setTimeout(function(){e(t,i)},0)):function(e,n){var i,o=t.document,r=t.editable(),s=function(e){e.cancel()};if(!o.getById("cke_pastebin")){var a=t.getSelection(),l=a.createBookmarks();CKEDITOR.env.ie&&a.root.fire("selectionchange");var u=new CKEDITOR.dom.element(!CKEDITOR.env.webkit&&!r.is("body")||CKEDITOR.env.ie?"div":"body",o);u.setAttributes({id:"cke_pastebin","data-cke-temp":"1"});var c=0;o=o.getWindow(),CKEDITOR.env.webkit?(r.append(u),u.addClass("cke_editable"),r.is("body")||(c=(c="static"!=r.getComputedStyle("position")?r:CKEDITOR.dom.element.get(r.$.offsetParent)).getDocumentPosition().y)):r.getAscendant(CKEDITOR.env.ie?"body":"html",1).append(u),u.setStyles({position:"absolute",top:o.getScrollPosition().y-c+10+"px",width:"1px",height:Math.max(1,o.getViewPaneSize().height-20)+"px",overflow:"hidden",margin:0,padding:0}),CKEDITOR.env.safari&&u.setStyles(CKEDITOR.tools.cssVendorPrefix("user-select","text")),(c=u.getParent().isReadOnly())?(u.setOpacity(0),u.setAttribute("contenteditable",!0)):u.setStyle("ltr"==t.config.contentsLangDirection?"left":"right","-10000px"),t.on("selectionChange",s,null,null,0),(CKEDITOR.env.webkit||CKEDITOR.env.gecko)&&(i=r.once("blur",s,null,null,-100)),c&&u.focus(),(c=new CKEDITOR.dom.range(u)).selectNodeContents(u);var d=c.select();CKEDITOR.env.ie&&(i=r.once("blur",function(){t.lockSelection(d)}));var h=CKEDITOR.document.getWindow().getScrollPosition().y;setTimeout(function(){var e;CKEDITOR.env.webkit&&(CKEDITOR.document.getBody().$.scrollTop=h),i&&i.removeListener(),CKEDITOR.env.ie&&r.focus(),a.selectBookmarks(l),u.remove(),CKEDITOR.env.webkit&&(e=u.getFirst())&&e.is&&e.hasClass("Apple-style-span")&&(u=e),t.removeListener("selectionChange",s),n(u.getHtml())},0)}}(0,function(n){i.dataValue=n.replace(/<span[^>]+data-cke-bookmark[^<]*?<\/span>/gi,""),o&&e(t,i)})}function d(){if("wysiwyg"==t.mode){var e=h("paste");t.getCommand("cut").setState(h("cut")),t.getCommand("copy").setState(h("copy")),t.getCommand("paste").setState(e),t.fire("pasteState",e)}}function h(e){if(m&&e in{paste:1,cut:1})return CKEDITOR.TRISTATE_DISABLED;if("paste"==e)return CKEDITOR.TRISTATE_OFF;var n=(e=t.getSelection()).getRanges();return e.getType()==CKEDITOR.SELECTION_NONE||1==n.length&&n[0].collapsed?CKEDITOR.TRISTATE_DISABLED:CKEDITOR.TRISTATE_OFF}var f=CKEDITOR.plugins.clipboard,p=0,g=0,m=0;t.on("key",u),t.on("contentDom",n),t.on("selectionChange",function(e){m=e.data.selection.getRanges()[0].checkReadOnly(),d()}),t.contextMenu&&t.contextMenu.addListener(function(e,t){return m=t.getRanges()[0].checkReadOnly(),{cut:h("cut"),copy:h("copy"),paste:h("paste")}}),function(){function n(e,n,i,o,r){var s=t.lang.clipboard[n];t.addCommand(n,i),t.ui.addButton&&t.ui.addButton(e,{label:s,command:n,toolbar:"clipboard,"+o}),t.addMenuItems&&t.addMenuItem(n,{label:s,command:n,group:"clipboard",order:r})}n("Cut","cut",i("cut"),10,1),n("Copy","copy",i("copy"),20,4),n("Paste","paste",{canUndo:!1,async:!0,fakeKeystroke:CKEDITOR.CTRL+86,exec:function(t,n){var i=this,o=function(n,o){n&&e(t,n,!!o),t.fire("afterCommandExec",{name:"paste",command:i,returnValue:!!n})};"string"==typeof n?o({dataValue:n,method:"paste",dataTransfer:f.initPasteDataTransfer()},1):t.getClipboardData(o)}},30,8)}(),t.getClipboardData=function(e,n){function i(e){e.removeListener(),e.cancel(),n(e.data)}function o(e){e.removeListener(),e.cancel(),a=!0,n({type:s,dataValue:e.data.dataValue,dataTransfer:e.data.dataTransfer,method:"paste"})}
1var r=!1,s="auto",a=!1;n||(n=e,e=null),t.on("paste",i,null,null,0),t.on("beforePaste",function(e){e.removeListener(),r=!0,s=e.data.type},null,null,1e3),!1===l()&&(t.removeListener("paste",i),r&&t.fire("pasteDialog",function(){this.customTitle=e&&e.title})?(t.on("pasteDialogCommit",o),t.on("dialogHide",function(e){e.removeListener(),e.data.removeListener("pasteDialogCommit",o),setTimeout(function(){a||n(null)},10)})):n(null))}}function n(e,t){function n(e){return CKEDITOR.tools.repeat("</p><p>",~~(e/2))+(1==e%2?"<br>":"")}return(t=(t=t.replace(/\s+/g," ").replace(/> +</g,"><").replace(/<br ?\/>/gi,"<br>")).replace(/<\/?[A-Z]+>/g,function(e){return e.toLowerCase()})).match(/^[^<]$/)?t:(CKEDITOR.env.webkit&&-1<t.indexOf("<div>")&&((t=t.replace(/^(<div>(<br>|)<\/div>)(?!$|(<div>(<br>|)<\/div>))/g,"<br>").replace(/^(<div>(<br>|)<\/div>){2}(?!$)/g,"<div></div>")).match(/<div>(<br>|)<\/div>/)&&(t="<p>"+t.replace(/(<div>(<br>|)<\/div>)+/g,function(e){return n(e.split("</div><div>").length+1)})+"</p>"),t=(t=t.replace(/<\/div><div>/g,"<br>")).replace(/<\/?div>/g,"")),CKEDITOR.env.gecko&&e.enterMode!=CKEDITOR.ENTER_BR&&(CKEDITOR.env.gecko&&(t=t.replace(/^<br><br>$/,"<br>")),-1<t.indexOf("<br><br>")&&(t="<p>"+t.replace(/(<br>){2,}/g,function(e){return n(e.length/4)})+"</p>")),function(e,t){return e.enterMode==CKEDITOR.ENTER_BR?t=t.replace(/(<\/p><p>)+/g,function(e){return CKEDITOR.tools.repeat("<br>",e.length/7*2)}).replace(/<\/?p>/g,""):e.enterMode==CKEDITOR.ENTER_DIV&&(t=t.replace(/<(\/)?p>/g,"<$1div>")),t}(e,t))}function i(){var e={};return{get:function(t){return"plain-text"==t?e.plainText||(e.plainText=new CKEDITOR.filter("br")):"semantic-content"==t?((t=e.semanticContent)||((t=new CKEDITOR.filter).allow({$1:{elements:function(){var e,t={};for(e in CKEDITOR.dtd)"$"!=e.charAt(0)&&"div"!=e&&"span"!=e&&(t[e]=1);return t}(),attributes:!0,styles:!1,classes:!1}}),t=e.semanticContent=t),t):t?new CKEDITOR.filter(t):null}}}function o(e,t,n){t=CKEDITOR.htmlParser.fragment.fromHtml(t);var i=new CKEDITOR.htmlParser.basicWriter;return n.applyTo(t,!0,!1,e.activeEnterMode),t.writeHtml(i),i.getHtml()}function r(e){e.data.preventDefault(),e.data.$.dataTransfer.dropEffect="none"}function s(t){var n=CKEDITOR.plugins.clipboard;t.on("contentDom",function(){function i(e,n,i){var o={$:e.data.$,target:e.data.getTarget()};n&&(o.dragRange=n),i&&(o.dropRange=i),!1===t.fire(e.name,o)&&e.data.preventDefault()}function o(e){return e.type!=CKEDITOR.NODE_ELEMENT&&(e=e.getParent()),e.getChildCount()}var r=t.editable(),s=CKEDITOR.plugins.clipboard.getDropTarget(t),a=t.ui.space("top"),l=t.ui.space("bottom");n.preventDefaultDropOnElement(a),n.preventDefaultDropOnElement(l),r.attachListener(s,"dragstart",i),r.attachListener(t,"dragstart",n.resetDragDataTransfer,n,null,1),r.attachListener(t,"dragstart",function(e){n.initDragDataTransfer(e,t)},null,null,2),r.attachListener(t,"dragstart",function(){var e=n.dragRange=t.getSelection().getRanges()[0];CKEDITOR.env.ie&&10>CKEDITOR.env.version&&(n.dragStartContainerChildCount=e?o(e.startContainer):null,n.dragEndContainerChildCount=e?o(e.endContainer):null)},null,null,100),r.attachListener(s,"dragend",i),r.attachListener(t,"dragend",n.initDragDataTransfer,n,null,1),r.attachListener(t,"dragend",n.resetDragDataTransfer,n,null,100),r.attachListener(s,"dragover",function(e){var t=e.data.getTarget();t&&t.is&&t.is("html")?e.data.preventDefault():CKEDITOR.env.ie&&CKEDITOR.plugins.clipboard.isFileApiSupported&&e.data.$.dataTransfer.types.contains("Files")&&e.data.preventDefault()}),r.attachListener(s,"drop",function(e){if(!e.data.$.defaultPrevented&&(e.data.preventDefault(),!(o=e.data.getTarget()).isReadOnly()||o.type==CKEDITOR.NODE_ELEMENT&&o.is("html"))){var o=n.getRangeAtDropPosition(e,t),r=n.dragRange;o&&i(e,r,o)}},null,null,9999),r.attachListener(t,"drop",n.initDragDataTransfer,n,null,1),r.attachListener(t,"drop",function(i){if(i=i.data){var o=i.dropRange,r=i.dragRange,s=i.dataTransfer;s.getTransferType(t)==CKEDITOR.DATA_TRANSFER_INTERNAL?setTimeout(function(){n.internalDrop(r,o,s,t)},0):s.getTransferType(t)==CKEDITOR.DATA_TRANSFER_CROSS_EDITORS?function(n,i,o){i.select(),e(t,{dataTransfer:o,method:"drop"},1),o.sourceEditor.fire("saveSnapshot"),o.sourceEditor.editable().extractHtmlFromRange(n),o.sourceEditor.getSelection().selectRanges([n]),o.sourceEditor.fire("saveSnapshot")}(r,o,s):function(i,o){i.select(),e(t,{dataTransfer:o,method:"drop"},1),n.resetDragDataTransfer()}(o,s)}},null,null,9999)})}CKEDITOR.plugins.add("clipboard",{requires:"dialog",init:function(e){var r,a=i();if(e.config.forcePasteAsPlainText?r="plain-text":e.config.pasteFilter?r=e.config.pasteFilter:!CKEDITOR.env.webkit||"pasteFilter"in e.config||(r="semantic-content"),e.pasteFilter=a.get(r),t(e),s(e),CKEDITOR.dialog.add("paste",CKEDITOR.getUrl(this.path+"dialogs/paste.js")),CKEDITOR.env.gecko){var l,u=["image/png","image/jpeg","image/gif"];e.on("paste",function(t){var n=t.data,i=n.dataTransfer;if(!n.dataValue&&"paste"==n.method&&i&&1==i.getFilesCount()&&l!=i.id&&(i=i.getFile(0),-1!=CKEDITOR.tools.indexOf(u,i.type))){var o=new FileReader;o.addEventListener("load",function(){t.data.dataValue='<img src="'+o.result+'" />',e.fire("paste",t.data)},!1),o.addEventListener("abort",function(){e.fire("paste",t.data)},!1),o.addEventListener("error",function(){e.fire("paste",t.data)},!1),o.readAsDataURL(i),l=n.dataTransfer.id,t.stop()}},null,null,1)}e.on("paste",function(t){if(t.data.dataTransfer||(t.data.dataTransfer=new CKEDITOR.plugins.clipboard.dataTransfer),!t.data.dataValue){var n=t.data.dataTransfer,i=n.getData("text/html");i?(t.data.dataValue=i,t.data.type="html"):(i=n.getData("text/plain"))&&(t.data.dataValue=e.editable().transformPlainTextToHtml(i),t.data.type="text")}},null,null,1),e.on("paste",function(e){var t=e.data.dataValue,n=CKEDITOR.dtd.$block;if(-1<t.indexOf("Apple-")&&(t=t.replace(/<span class="Apple-converted-s
1pace"> <\/span>/gi," "),"html"!=e.data.type&&(t=t.replace(/<span class="Apple-tab-span"[^>]*>([^<]*)<\/span>/gi,function(e,t){return t.replace(/\t/g," ")})),-1<t.indexOf('<br class="Apple-interchange-newline">')&&(e.data.startsWithEOL=1,e.data.preSniffing="html",t=t.replace(/<br class="Apple-interchange-newline">/,"")),t=t.replace(/(<[^>]+) class="Apple-[^"]*"/gi,"$1")),t.match(/^<[^<]+cke_(editable|contents)/i)){var i,o,r=new CKEDITOR.dom.element("div");for(r.setHtml(t);1==r.getChildCount()&&(i=r.getFirst())&&i.type==CKEDITOR.NODE_ELEMENT&&(i.hasClass("cke_editable")||i.hasClass("cke_contents"));)r=o=i;o&&(t=o.getHtml().replace(/<br>$/i,""))}CKEDITOR.env.ie?t=t.replace(/^ (?: |\r\n)?<(\w+)/g,function(t,i){return i.toLowerCase()in n?(e.data.preSniffing="html","<"+i):t}):CKEDITOR.env.webkit?t=t.replace(/<\/(\w+)><div><br><\/div>$/,function(t,i){return i in n?(e.data.endsWithEOL=1,"</"+i+">"):t}):CKEDITOR.env.gecko&&(t=t.replace(/(\s)<br>$/,"$1")),e.data.dataValue=t},null,null,3),e.on("paste",function(t){var i,r=(t=t.data).type,s=t.dataValue,l=e.config.clipboard_defaultContentType||"html",u=t.dataTransfer.getTransferType(e);"htmlifiedtext"==(i="html"==r||"html"==t.preSniffing?"html":function(e){if(CKEDITOR.env.webkit){if(!e.match(/^[^<]*$/g)&&!e.match(/^(<div><br( ?\/)?><\/div>|<div>[^<]*<\/div>)*$/gi))return"html"}else if(CKEDITOR.env.ie){if(!e.match(/^([^<]|<br( ?\/)?>)*$/gi)&&!e.match(/^(<p>([^<]|<br( ?\/)?>)*<\/p>|(\r\n))*$/gi))return"html"}else{if(!CKEDITOR.env.gecko)return"html";if(!e.match(/^([^<]|<br( ?\/)?>)*$/gi))return"html"}return"htmlifiedtext"}(s))&&(s=n(e.config,s)),"text"==r&&"html"==i?s=o(e,s,a.get("plain-text")):u==CKEDITOR.DATA_TRANSFER_EXTERNAL&&e.pasteFilter&&!t.dontFilter&&(s=o(e,s,e.pasteFilter)),t.startsWithEOL&&(s='<br data-cke-eol="1">'+s),t.endsWithEOL&&(s+='<br data-cke-eol="1">'),"auto"==r&&(r="html"==i||"html"==l?"html":"text"),t.type=r,t.dataValue=s,delete t.preSniffing,delete t.startsWithEOL,delete t.endsWithEOL},null,null,6),e.on("paste",function(t){(t=t.data).dataValue&&(e.insertHtml(t.dataValue,t.type,t.range),setTimeout(function(){e.fire("afterPaste")},0))},null,null,1e3),e.on("pasteDialog",function(t){setTimeout(function(){e.openDialog("paste",t.data)},0)})}}),CKEDITOR.plugins.clipboard={isCustomCopyCutSupported:!CKEDITOR.env.ie&&!CKEDITOR.env.iOS,isCustomDataTypesSupported:!CKEDITOR.env.ie,isFileApiSupported:!CKEDITOR.env.ie||9<CKEDITOR.env.version,mainPasteEvent:CKEDITOR.env.ie&&!CKEDITOR.env.edge?"beforepaste":"paste",canClipboardApiBeTrusted:function(e,t){return!!(e.getTransferType(t)!=CKEDITOR.DATA_TRANSFER_EXTERNAL||CKEDITOR.env.chrome&&!e.isEmpty()||CKEDITOR.env.gecko&&(e.getData("text/html")||e.getFilesCount()))},getDropTarget:function(e){var t=e.editable();return CKEDITOR.env.ie&&9>CKEDITOR.env.version||t.isInline()?t:e.document},fixSplitNodesAfterDrop:function(e,t,n,i){function o(e,n,i){var o=e;if(o.type==CKEDITOR.NODE_TEXT&&(o=e.getParent()),o.equals(n)&&i!=n.getChildCount())return e=t.startContainer.getChild(t.startOffset-1),n=t.startContainer.getChild(t.startOffset),e&&e.type==CKEDITOR.NODE_TEXT&&n&&n.type==CKEDITOR.NODE_TEXT&&(i=e.getLength(),e.setText(e.getText()+n.getText()),n.remove(),t.setStart(e,i),t.collapse(!0)),!0}var r=t.startContainer;"number"==typeof i&&"number"==typeof n&&r.type==CKEDITOR.NODE_ELEMENT&&(o(e.startContainer,r,n)||o(e.endContainer,r,i))},isDropRangeAffectedByDragRange:function(e,t){var n=t.startContainer,i=t.endOffset;return!!(e.endContainer.equals(n)&&e.endOffset<=i||e.startContainer.getParent().equals(n)&&e.startContainer.getIndex()<i||e.endContainer.getParent().equals(n)&&e.endContainer.getIndex()<i)},internalDrop:function(t,n,i,o){var r,s,a=CKEDITOR.plugins.clipboard,l=o.editable();o.fire("saveSnapshot"),o.fire("lockSnapshot",{dontUpdate:1}),CKEDITOR.env.ie&&10>CKEDITOR.env.version&&this.fixSplitNodesAfterDrop(t,n,a.dragStartContainerChildCount,a.dragEndContainerChildCount),(s=this.isDropRangeAffectedByDragRange(t,n))||(r=t.createBookmark(!1)),a=n.clone().createBookmark(!1),s&&(r=t.createBookmark(!1)),t=r.startNode,n=r.endNode,s=a.startNode,n&&t.getPosition(s)&CKEDITOR.POSITION_PRECEDING&&n.getPosition(s)&CKEDITOR.POSITION_FOLLOWING&&s.insertBefore(t),(t=o.createRange()).moveToBookmark(r),l.extractHtmlFromRange(t,1),(n=o.createRange()).moveToBookmark(a),e(o,{dataTransfer:i,method:"drop",range:n},1),o.fire("unlockSnapshot")},getRangeAtDropPosition:function(e,t){var n=e.data.$,i=n.clientX,o=n.clientY,r=t.getSelection(!0).getRanges()[0],s=t.createRange();if(e.data.testRange)return e.data.testRange;if(document.caretRangeFromPoint)n=t.document.$.caretRangeFromPoint(i,o),s.setStart(CKEDITOR.dom.node(n.startContainer),n.startOffset),s.collapse(!0);else if(n.rangeParent)s.setStart(CKEDITOR.dom.node(n.rangeParent),n.rangeOffset),s.collapse(!0);else{if(CKEDITOR.env.ie&&8<CKEDITOR.env.version&&r&&t.editable().hasFocus)return r;if(!document.body.createTextRange)return null;t.focus(),n=t.document.getBody().$.createTextRange();try{for(var a=!1,l=0;20>l&&!a;l++){if(!a)try{n.moveToPoint(i,o-l),a=!0}catch(e){}if(!a)try{n.moveToPoint(i,o+l),a=!0}catch(e){}}if(a){var u="cke-temp-"+(new Date).getTime();n.pasteHTML('<span id="'+u+'">\u200b</span>');var c=t.document.getById(u);s.moveToPosition(c,CKEDITOR.POSITION_BEFORE_START),c.remove()}else{var d=t.document.$.elementFromPoint(i,o),h=new CKEDITOR.dom.element(d);if(h.equals(t.editable())||"html"==h.getName())return r&&r.startContainer&&!r.startContainer.equals(t.editable())?r:null;i<h.getClientRect().left?s.setStartAt(h,CKEDITOR.POSITION_AFTER_START):s.setStartAt(h,CKEDITOR.POSITION_BEFORE_END),s.collapse(!0)}}catch(e){return null}}return s},initDragDataTransfer:function(e,t){var n=e.data.$?e.data.$.dataTransfer:null,i=new this.dataTransfer(n,t);n?this.dragData&&i.id==this.dragData.id?i=this.dragData:this.dragData=i:this.dragData?i=this.dragData:this.dragData=i,e.data.dataTransfer=i},resetDragDataTransfer:function(){this.dragData=null}
1,initPasteDataTransfer:function(e,t){if(this.isCustomCopyCutSupported){if(e&&e.data&&e.data.$){var n=new this.dataTransfer(e.data.$.clipboardData,t);return this.copyCutData&&n.id==this.copyCutData.id?(n=this.copyCutData).$=e.data.$.clipboardData:this.copyCutData=n,n}return new this.dataTransfer(null,t)}return new this.dataTransfer(CKEDITOR.env.edge&&e&&e.data.$&&e.data.$.clipboardData||null,t)},preventDefaultDropOnElement:function(e){e&&e.on("dragover",r)}};var a=CKEDITOR.plugins.clipboard.isCustomDataTypesSupported?"cke/id":"Text";CKEDITOR.plugins.clipboard.dataTransfer=function(e,t){if(e&&(this.$=e),this._={metaRegExp:/^<meta.*?>/i,bodyRegExp:/<body(?:[\s\S]*?)>([\s\S]*)<\/body>/i,fragmentRegExp:/\x3c!--(?:Start|End)Fragment--\x3e/g,data:{},files:[],normalizeType:function(e){return"text"==(e=e.toLowerCase())||"text/plain"==e?"Text":"url"==e?"URL":e}},this.id=this.getData(a),this.id||(this.id="Text"==a?"":"cke-"+CKEDITOR.tools.getUniqueId()),"Text"!=a)try{this.$.setData(a,this.id)}catch(e){}t&&(this.sourceEditor=t,this.setData("text/html",t.getSelectedHtml(1)),"Text"==a||this.getData("text/plain")||this.setData("text/plain",t.getSelection().getSelectedText()))},CKEDITOR.DATA_TRANSFER_INTERNAL=1,CKEDITOR.DATA_TRANSFER_CROSS_EDITORS=2,CKEDITOR.DATA_TRANSFER_EXTERNAL=3,CKEDITOR.plugins.clipboard.dataTransfer.prototype={getData:function(e){e=this._.normalizeType(e);var t=this._.data[e];if(void 0===t||null===t||""===t)try{t=this.$.getData(e)}catch(e){}return void 0!==t&&null!==t&&""!==t||(t=""),"text/html"==e?(t=t.replace(this._.metaRegExp,""),(e=this._.bodyRegExp.exec(t))&&e.length&&(t=(t=e[1]).replace(this._.fragmentRegExp,""))):"Text"==e&&CKEDITOR.env.gecko&&this.getFilesCount()&&"file://"==t.substring(0,7)&&(t=""),t},setData:function(e,t){if(e=this._.normalizeType(e),this._.data[e]=t,CKEDITOR.plugins.clipboard.isCustomDataTypesSupported||"URL"==e||"Text"==e){"Text"==a&&"Text"==e&&(this.id=t);try{this.$.setData(e,t)}catch(e){}}},getTransferType:function(e){return this.sourceEditor?this.sourceEditor==e?CKEDITOR.DATA_TRANSFER_INTERNAL:CKEDITOR.DATA_TRANSFER_CROSS_EDITORS:CKEDITOR.DATA_TRANSFER_EXTERNAL},cacheData:function(){function e(e){e=i._.normalizeType(e);var t=i.getData(e);t&&(i._.data[e]=t)}if(this.$){var t,n,i=this;if(CKEDITOR.plugins.clipboard.isCustomDataTypesSupported){if(this.$.types)for(t=0;t<this.$.types.length;t++)e(this.$.types[t])}else e("Text"),e("URL");if(n=this._getImageFromClipboard(),this.$&&this.$.files||n){if(this._.files=[],this.$.files&&this.$.files.length)for(t=0;t<this.$.files.length;t++)this._.files.push(this.$.files[t]);0===this._.files.length&&n&&this._.files.push(n)}}},getFilesCount:function(){return this._.files.length?this._.files.length:this.$&&this.$.files&&this.$.files.length?this.$.files.length:this._getImageFromClipboard()?1:0},getFile:function(e){return this._.files.length?this._.files[e]:this.$&&this.$.files&&this.$.files.length?this.$.files[e]:0===e?this._getImageFromClipboard():void 0},isEmpty:function(){var e,t={};if(this.getFilesCount())return!1;for(e in this._.data)t[e]=1;if(this.$)if(CKEDITOR.plugins.clipboard.isCustomDataTypesSupported){if(this.$.types)for(var n=0;n<this.$.types.length;n++)t[this.$.types[n]]=1}else t.Text=1,t.URL=1;for(e in"Text"!=a&&(t[a]=0),t)if(t[e]&&""!==this.getData(e))return!1;return!0},_getImageFromClipboard:function(){var e;if(this.$&&this.$.items&&this.$.items[0])try{if((e=this.$.items[0].getAsFile())&&e.type)return e}catch(e){}}}}(),function(){CKEDITOR.plugins.add("panel",{beforeInit:function(e){e.ui.addHandler(CKEDITOR.UI_PANEL,CKEDITOR.ui.panel.handler)}}),CKEDITOR.UI_PANEL="panel",CKEDITOR.ui.panel=function(e,t){t&&CKEDITOR.tools.extend(this,t),CKEDITOR.tools.extend(this,{className:"",css:[]}),this.id=CKEDITOR.tools.getNextId(),this.document=e,this.isFramed=this.forceIFrame||this.css.length,this._={blocks:{}}},CKEDITOR.ui.panel.handler={create:function(e){return new CKEDITOR.ui.panel(e)}};var e=CKEDITOR.addTemplate("panel",'<div lang="{langCode}" id="{id}" dir={dir} class="cke cke_reset_all {editorId} cke_panel cke_panel {cls} cke_{dir}" style="z-index:{z-index}" role="presentation">{frame}</div>'),t=CKEDITOR.addTemplate("panel-frame",'<iframe id="{id}" class="cke_panel_frame" role="presentation" frameborder="0" src="{src}"></iframe>'),n=CKEDITOR.addTemplate("panel-frame-inner",'<!DOCTYPE html><html class="cke_panel_container {env}" dir="{dir}" lang="{langCode}"><head>{css}</head><body class="cke_{dir}" style="margin:0;padding:0" onload="{onload}"></body></html>');CKEDITOR.ui.panel.prototype={render:function(i,o){this.getHolderElement=function(){if(!(t=this._.holder)){if(this.isFramed){var e=(t=this.document.getById(this.id+"_frame")).getParent(),t=t.getFrameDocument();CKEDITOR.env.iOS&&e.setStyles({overflow:"scroll","-webkit-overflow-scrolling":"touch"}),e=CKEDITOR.tools.addFunction(CKEDITOR.tools.bind(function(){this.isLoaded=!0,this.onLoad&&this.onLoad()},this)),t.write(n.output(CKEDITOR.tools.extend({css:CKEDITOR.tools.buildStyleHtml(this.css),onload:"window.parent.CKEDITOR.tools.callFunction("+e+");"}
1,r))),t.getWindow().$.CKEDITOR=CKEDITOR,t.on("keydown",function(e){var t=e.data.getKeystroke(),n=this.document.getById(this.id).getAttribute("dir");this._.onKeyDown&&!1===this._.onKeyDown(t)?e.data.preventDefault():(27==t||t==("rtl"==n?39:37))&&this.onEscape&&!1===this.onEscape(t)&&e.data.preventDefault()},this),(t=t.getBody()).unselectable(),CKEDITOR.env.air&&CKEDITOR.tools.callFunction(e)}else t=this.document.getById(this.id);this._.holder=t}return t};var r={editorId:i.id,id:this.id,langCode:i.langCode,dir:i.lang.dir,cls:this.className,frame:"",env:CKEDITOR.env.cssClass,"z-index":i.config.baseFloatZIndex+1};if(this.isFramed){var s=CKEDITOR.env.air?"javascript:void(0)":CKEDITOR.env.ie?"javascript:void(function(){"+encodeURIComponent("document.open();("+CKEDITOR.tools.fixDomain+")();document.close();")+"}())":"";r.frame=t.output({id:this.id+"_frame",src:s})}return s=e.output(r),o&&o.push(s),s},addBlock:function(e,t){return t=this._.blocks[e]=t instanceof CKEDITOR.ui.panel.block?t:new CKEDITOR.ui.panel.block(this.getHolderElement(),t),this._.currentBlock||this.showBlock(e),t},getBlock:function(e){return this._.blocks[e]},showBlock:function(e){e=this._.blocks[e];var t=this._.currentBlock,n=!this.forceIFrame||CKEDITOR.env.ie?this._.holder:this.document.getById(this.id+"_frame");return t&&t.hide(),this._.currentBlock=e,CKEDITOR.fire("ariaWidget",n),e._.focusIndex=-1,this._.onKeyDown=e.onKeyDown&&CKEDITOR.tools.bind(e.onKeyDown,e),e.show(),e},destroy:function(){this.element&&this.element.remove()}},CKEDITOR.ui.panel.block=CKEDITOR.tools.createClass({$:function(e,t){this.element=e.append(e.getDocument().createElement("div",{attributes:{tabindex:-1,class:"cke_panel_block"},styles:{display:"none"}})),t&&CKEDITOR.tools.extend(this,t),this.element.setAttributes({role:this.attributes.role||"presentation","aria-label":this.attributes["aria-label"],title:this.attributes.title||this.attributes["aria-label"]}),this.keys={},this._.focusIndex=-1,this.element.disableContextMenu()},_:{markItem:function(e){-1!=e&&(e=this.element.getElementsByTag("a").getItem(this._.focusIndex=e),CKEDITOR.env.webkit&&e.getDocument().getWindow().focus(),e.focus(),this.onMark&&this.onMark(e))}},proto:{show:function(){this.element.setStyle("display","")},hide:function(){this.onHide&&!0===this.onHide.call(this)||this.element.setStyle("display","none")},onKeyDown:function(e,t){switch(o=this.keys[e]){case"next":for(var n,i=this._.focusIndex,o=this.element.getElementsByTag("a");n=o.getItem(++i);)if(n.getAttribute("_cke_focus")&&n.$.offsetWidth){this._.focusIndex=i,n.focus();break}return!n&&!t&&(this._.focusIndex=-1,this.onKeyDown(e,1));case"prev":for(i=this._.focusIndex,o=this.element.getElementsByTag("a");0<i&&(n=o.getItem(--i));){if(n.getAttribute("_cke_focus")&&n.$.offsetWidth){this._.focusIndex=i,n.focus();break}n=null}return!n&&!t&&(this._.focusIndex=o.count(),this.onKeyDown(e,1));case"click":case"mouseup":return(n=0<=(i=this._.focusIndex)&&this.element.getElementsByTag("a").getItem(i))&&(n.$[o]?n.$[o]():n.$["on"+o]()),!1}return!0}}})}(),CKEDITOR.plugins.add("floatpanel",{requires:"panel"}),function(){var e={};CKEDITOR.ui.floatPanel=CKEDITOR.tools.createClass({$:function(t,n,i,o){function r(){u.hide()}i.forceIFrame=1,i.toolbarRelated&&t.elementMode==CKEDITOR.ELEMENT_MODE_INLINE&&(n=CKEDITOR.document.getById("cke_"+t.name));var s=n.getDocument(),a=(o=function(t,n,i,o,r){r=CKEDITOR.tools.genKey(n.getUniqueId(),i.getUniqueId(),t.lang.dir,t.uiColor||"",o.css||"",r||"");var s=e[r];return s||((s=e[r]=new CKEDITOR.ui.panel(n,o)).element=i.append(CKEDITOR.dom.element.createFromHtml(s.render(t),n)),s.element.setStyles({display:"none",position:"absolute"})),s}(t,s,n,i,o||0)).element,l=a.getFirst(),u=this;a.disableContextMenu(),this.element=a,this._={editor:t,panel:o,parentElement:n,definition:i,document:s,iframe:l,children:[],dir:t.lang.dir,showBlockParams:null},t.on("mode",r),t.on("resize",r),s.getWindow().on("resize",function(){this.reposition()},this)},proto:{addBlock:function(e,t){return this._.panel.addBlock(e,t)},addListBlock:function(e,t){return this._.panel.addListBlock(e,t)},getBlock:function(e){return this._.panel.getBlock(e)},showBlock:function(e,t,n,i,o,r){var s=this._.panel,a=s.showBlock(e);this._.showBlockParams=[].slice.call(arguments),this.allowBlur(!1);var l=this._.editor.editable();this._.returnFocus=l.hasFocus?l:new CKEDITOR.dom.element(CKEDITOR.document.$.activeElement),this._.hideTimeout=0;var u=this.element,c=(l=this._.iframe,l=CKEDITOR.env.ie&&!CKEDITOR.env.edge?l:new CKEDITOR.dom.window(l.$.contentWindow),u.getDocument()),d=this._.parentElement.getPositionedAncestor(),h=t.getDocumentPosition(c),f=(c=d?d.getDocumentPosition(c):{x:0,y:0},"rtl"==this._.dir),p=h.x+(i||0)-c.x,g=h.y+(o||0)-c.y;!f||1!=n&&4!=n?f||2!=n&&3!=n||(p+=t.$.offsetWidth-1):p+=t.$.offsetWidth,3!=n&&4!=n||(g+=t.$.offsetHeight-1),this._.panel._.offsetParentId=t.getId(),u.setStyles({top:g+"px",left:0,display:""}),u.setOpacity(0),u.getFirst().removeStyle("width"),this._.editor.focusManager.add(l),this._.blurSet||(CKEDITOR.event.useCapture=!0,l.on("blur",function(e){function t(){delete this._.returnFocus,this.hide()}this.allowBlur()&&e.data.getPhase()==CKEDITOR.EVENT_PHASE_AT_TARGET&&this.visible&&!this._.activeChild&&(CKEDITOR.env.iOS?this._.hideTimeout||(this._.hideTimeout=CKEDITOR.tools.setTimeout(t,0,this)):t.call(this))},this),l.on("focus",function(){this._.focused=!0,this.hideChild(),this.allowBlur(!0)},this),CKEDITOR.env.iOS&&(l.on("touchstart",function(){clearTimeout(this._.hideTimeout)},this),l.on("touchend",function(){this._.hideTimeout=0,this.focus()},this)),CKEDITOR.event.useCapture=!1,this._.blurSet=1),s.onEscape=CKEDITOR.tools.bind(function(e){if(this.onEscape&&!1===this.onEscape(e))return!1},this),CKEDITOR.tools.setTimeout(function(){var e=CKEDITOR.tools.bind(function(){if((n=u).removeStyle("width"),a.autoSize){var e=a.element.getDocument();e=(CKEDITOR.env.webkit||CKEDITOR.env.edge?a.element:e.getBody()).$.scrollWidth;CKEDITOR.env.ie&&CKEDITOR.env.quirks&&0<e&&(e+=(n.$.offsetWidth||0)-(n.$.clientWidth||0)+3),n.setStyle("width",e+10+"px"),e=a.element.$.scrollHeight,CKEDITOR.env.ie&&CKEDITOR.env.quirks&&0<e&&(e+=(n.$.offsetHeight||0)-(n.$.clientHeight||0)+3),n.setStyle("height",e+"px"),s._.currentBlock.element.setStyle("display","none").removeStyle("display")}else n.removeStyle("height");f&&(p-=u.$.offsetWidth),u.setStyle("left",p+"px");e=s.element.getWindow();var t,n=u.$.getBoundingClientRect(),i=(e=e.getViewPaneSize(),n.width||n.right-n.left),o=n.height||n.bottom-n.top,l=f?n.right:e.width-n.left,c=f?e.width-n.right:n.left;f?l<i&&(p=c>i?p+i:e.width>i?p-n.left:p-n.right+e.width):l<i&&(p=c>i?p-i:e.width>i?p-n.right+e.width:p-n.left),i=n.top,e.height-n.top<o&&(g=i>o?g-o:e.height>o?g-n.bottom+e.height:g-n.top),CKEDITOR.env.ie&&("html"==(e=n=new CKEDITOR.dom.element(u.$.offsetParent)).getName()&&(e=e.getDocument().getBody()),"rtl"==e.getComputedStyle("direction")&&(p=CKEDITOR.env.ie8Compat?p-2*u.getDocument().getDocumentElement().$.scrollLeft:p-(n.$.scrollWidth-n.$.clientWidth))),(t=(n=u.getFirst()).getCustomData("activePanel"))&&t.onHide&&t.onHide.call(this,1),n.setCustomData("activePanel",this),u.setStyles({top:g+"px",left:p+"px"}),u.setOpacity(1),r&&r()},this);s.isLoaded?e():s.onLoad=e,CKEDITOR.tools.setTimeout(function(){var e=CKEDITOR.env.webkit&&CKEDITOR.document.getWindow().getScrollPosition().y;this.focus(),a.element.focus(),CKEDITOR.env.webkit&&(CKEDITOR.document.getBody().$.scrollTop=e),this.allowBlur(!0),this._.editor.fire("panelShow",this)},0,this)},CKEDITOR.env.air?200:0,this),this.visible=1,this.onShow&&this.onShow.call(this)},reposition:function(){var e=this._.showBlockParams;this.visible&&this._.showBlockParams&&(this.hide(),this.showBlock.apply(this,e))},focus:function(){if(CKEDITOR.env.webkit){var e=CKEDITOR.document.getActive();e&&!e.equals(this._.iframe)&&e.$.blur()}(this._.lastFocused||this._.iframe.getFrameDocument().getWindow()).focus()},blur:function(){var e=this._.iframe.getFrameDocument().getActive();e&&e.is("a")&&(this._.lastFocused=e)},hide:function(e){!this.visible||this.onHide&&!0===this.onHide.call(this)||(this.hideChild(),CKEDITOR.env.gecko&&this._.iframe.getFrameDocument().$.activeElement.blur(),this.element.setStyle("display","none"),this.visible=0,this.element.getFirst().removeCustomData("activePanel"),(e=e&&this._.returnFocus)&&(CKEDITOR.env.webkit&&e.type&&e.getWindow().$.focus(),e.focus()),delete this._.lastFocused,this._.showBlockParams=null,this._.editor.fire("panelHide",this))},allowBlur:function(e){var t=this._.panel;return void 0!==e&&(t.allowBlur=e),t.allowBlur},showAsChild:function(e,t,n,i,o,r){this._.activeChild==e&&e._.panel._.offsetParentId==n.getId()||(this.hideChild(),e.onHide=CKEDITOR.tools.bind(function(){CKEDITOR.tools.setTimeout(function(){this._.focused||this.hide()},0,this)},this),this._.activeChild=e,this._.focused=!1,e.showBlock(t,n,i,o,r),this.blur(),(CKEDITOR.env.ie7Compat||CKEDITOR.env.ie6Compat)&&setTimeout(function(){e.element.getChild(0).$.style.cssText+=""},100))},hideChild:function(e){var t=this._.activeChild;t&&(delete t.onHide,delete this._.activeChild,t.hide(),e&&this.focus())}}}),CKEDITOR.on("instanceDestroyed",function(){var t,n=CKEDITOR.tools.isEmpty(CKEDITOR.instances);for(t in e){var i=e[t];n?i.destroy():i.element.hide()}n&&(e={})})}(),CKEDITOR.plugins.add("menu",{requires:"floatpanel",beforeInit:function(e){for(var t=e.config.menu_groups.split(","),n=e._.menuGroups={},i=e._.menuItems={},o=0;o<t.length;o++)n[t[o]]=o+1;e.addMenuGroup=function(e,t){n[e]=t||100},e.addMenuItem=function(e,t){n[t.group]&&(i[e]=new CKEDITOR.menuItem(this,e,t))},e.addMenuItems=function(e){for(var t in e)this.addMenuItem(t,e[t])},e.getMenuItem=function(e){return i[e]},e.removeMenuItem=function(e){delete i[e]}}}),function(){var e='<span class="cke_menuitem"><a id="{id}" class="cke_menubutton cke_menubutton__{name} cke_menubutton_{state} {cls}" href="{href}" title="{title}" tabindex="-1" _cke_focus=1 hidefocus="true" role="{role}" aria-label="{label}" aria-describedby="{id}_description" aria-haspopup="{hasPopup}" aria-disabled="{disabled}" {ariaChecked} draggable="false"';CKEDITOR.env.gecko&&CKEDITOR.env.mac&&(e+=' onkeypress="return false;"'),CKEDITOR.env.gecko&&(e+=' onblur="this.style.cssText = this.style.cssText;" ondragstart="return false;"');e=e+' onmouseover="CKEDITOR.tools.callFunction({hoverFn},{index});" onmouseout="CKEDITOR.tools.callFunction({moveOutFn},{index});
1" '+(CKEDITOR.env.ie?'onclick="return false;" onmouseup':"onclick")+'="CKEDITOR.tools.callFunction({clickFn},{index}); return false;">';var t=CKEDITOR.addTemplate("menuItem",e+'<span class="cke_menubutton_inner"><span class="cke_menubutton_icon"><span class="cke_button_icon cke_button__{iconName}_icon" style="{iconStyle}"></span></span><span class="cke_menubutton_label">{label}</span>{shortcutHtml}{arrowHtml}</span></a><span id="{id}_description" class="cke_voice_label" aria-hidden="false">{ariaShortcut}</span></span>'),n=CKEDITOR.addTemplate("menuArrow",'<span class="cke_menuarrow"><span>{label}</span></span>'),i=CKEDITOR.addTemplate("menuShortcut",'<span class="cke_menubutton_label cke_menubutton_shortcut">{shortcut}</span>');CKEDITOR.menu=CKEDITOR.tools.createClass({$:function(e,t){t=this._.definition=t||{},this.id=CKEDITOR.tools.getNextId(),this.editor=e,this.items=[],this._.listeners=[],this._.level=t.level||1;var n=CKEDITOR.tools.extend({},t.panel,{css:[CKEDITOR.skin.getPath("editor")],level:this._.level-1,block:{}}),i=n.block.attributes=n.attributes||{};!i.role&&(i.role="menu"),this._.panelDefinition=n},_:{onShow:function(){var e=this.editor.getSelection(),t=e&&e.getStartElement(),n=this.editor.elementPath(),i=this._.listeners;this.removeAll();for(var o=0;o<i.length;o++){var r=i[o](t,e,n);if(r)for(var s in r){var a=this.editor.getMenuItem(s);!a||a.command&&!this.editor.getCommand(a.command).state||(a.state=r[s],this.add(a))}}},onClick:function(e){this.hide(),e.onClick?e.onClick():e.command&&this.editor.execCommand(e.command)},onEscape:function(e){var t=this.parent;return t?t._.panel.hideChild(1):27==e&&this.hide(1),!1},onHide:function(){this.onHide&&this.onHide()},showSubMenu:function(e){var t=this._.subMenu,n=this.items[e];if(n=n.getItems&&n.getItems()){for(var i in t?t.removeAll():((t=this._.subMenu=new CKEDITOR.menu(this.editor,CKEDITOR.tools.extend({},this._.definition,{level:this._.level+1},!0))).parent=this,t._.onClick=CKEDITOR.tools.bind(this._.onClick,this)),n){var o=this.editor.getMenuItem(i);o&&(o.state=n[i],t.add(o))}var r=this._.panel.getBlock(this.id).element.getDocument().getById(this.id+String(e));setTimeout(function(){t.show(r,2)},0)}else this._.panel.hideChild(1)}},proto:{add:function(e){e.order||(e.order=this.items.length),this.items.push(e)},removeAll:function(){this.items=[]},show:function(e,t,n,i){if(this.parent||(this._.onShow(),this.items.length)){t=t||("rtl"==this.editor.lang.dir?2:1);var o=this.items,r=this.editor,s=this._.panel,a=this._.element;if(!s)(s=this._.panel=new CKEDITOR.ui.floatPanel(this.editor,CKEDITOR.document.getBody(),this._.panelDefinition,this._.level)).onEscape=CKEDITOR.tools.bind(function(e){if(!1===this._.onEscape(e))return!1},this),s.onShow=function(){s._.panel.getHolderElement().getParent().addClass("cke").addClass("cke_reset_all")},s.onHide=CKEDITOR.tools.bind(function(){this._.onHide&&this._.onHide()},this),(a=s.addBlock(this.id,this._.panelDefinition.block)).autoSize=!0,(l=a.keys)[40]="next",l[9]="next",l[38]="prev",l[CKEDITOR.SH
1IFT+9]="prev",l["rtl"==r.lang.dir?37:39]=CKEDITOR.env.ie?"mouseup":"click",l[32]=CKEDITOR.env.ie?"mouseup":"click",CKEDITOR.env.ie&&(l[13]="mouseup"),(l=(a=this._.element=a.element).getDocument()).getBody().setStyle("overflow","hidden"),l.getElementsByTag("html").getItem(0).setStyle("overflow","hidden"),this._.itemOverFn=CKEDITOR.tools.addFunction(function(e){clearTimeout(this._.showSubTimeout),this._.showSubTimeout=CKEDITOR.tools.setTimeout(this._.showSubMenu,r.config.menu_subMenuDelay||400,this,[e])},this),this._.itemOutFn=CKEDITOR.tools.addFunction(function(){clearTimeout(this._.showSubTimeout)},this),this._.itemClickFn=CKEDITOR.tools.addFunction(function(e){var t=this.items[e];t.state==CKEDITOR.TRISTATE_DISABLED?this.hide(1):t.getItems?this._.showSubMenu(e):this._.onClick(t)},this);!function(e){e.sort(function(e,t){return e.group<t.group?-1:e.group>t.group?1:e.order<t.order?-1:e.order>t.order?1:0})}(o);for(var l=['<div class="cke_menu'+((l=r.elementPath())&&l.direction()!=r.lang.dir?" cke_mixed_dir_content":"")+'" role="presentation">'],u=o.length,c=u&&o[0].group,d=0;d<u;d++){var h=o[d];c!=h.group&&(l.push('<div class="cke_menuseparator" role="separator"></div>'),c=h.group),h.render(this,d,l)}l.push("</div>"),a.setHtml(l.join("")),CKEDITOR.ui.fire("ready",this),this.parent?this.parent._.panel.showAsChild(s,this.id,e,t,n,i):s.showBlock(this.id,e,t,n,i),r.fire("menuShow",[s])}},addListener:function(e){this._.listeners.push(e)},hide:function(e){this._.onHide&&this._.onHide(),this._.panel&&this._.panel.hide(e)}}}),CKEDITOR.menuItem=CKEDITOR.tools.createClass({$:function(e,t,n){CKEDITOR.tools.extend(this,n,{order:0,className:"cke_menubutton__"+t}),this.group=e._.menuGroups[this.group],this.editor=e,this.name=t},proto:{render:function(e,o,r){var s,a,l=e.id+String(o),u="undefined"==typeof this.state?CKEDITOR.TRISTATE_OFF:this.state,c="",d=this.editor,h=u==CKEDITOR.TRISTATE_ON?"on":u==CKEDITOR.TRISTATE_DISABLED?"disabled":"off";this.role in{menuitemcheckbox:1,menuitemradio:1}&&(c=' aria-checked="'+(u==CKEDITOR.TRISTATE_ON?"true":"false")+'"');var f=this.getItems,p="&#"+("rtl"==this.editor.lang.dir?"9668":"9658")+";",g=this.name;this.icon&&!/\./.test(this.icon)&&(g=this.icon),this.command&&(s=d.getCommand(this.command),(s=d.getCommandKeystroke(s))&&(a=CKEDITOR.tools.keystrokeToString(d.lang.common.keyboard,s))),e={id:l,name:this.name,iconName:g,label:this.label,cls:this.className||"",state:h,hasPopup:f?"true":"false",disabled:u==CKEDITOR.TRISTATE_DISABLED,title:this.label+(a?" ("+a.display+")":""),ariaShortcut:a?d.lang.common.keyboardShortcut+" "+a.aria:"",href:"javascript:void('"+(this.label||"").replace("'")+"')",hoverFn:e._.itemOverFn,moveOutFn:e._.itemOutFn,clickFn:e._.itemClickFn,index:o,iconStyle:CKEDITOR.skin.getIconStyle(g,"rtl"==this.editor.lang.dir,g==this.icon?null:this.icon,this.iconOffset),shortcutHtml:a?i.output({shortcut:a.display}):"",arrowHtml:f?n.output({label:p}):"",role:this.role?this.role:"menuitem",ariaChecked:c},t.output(e,r)}}})}(),CKEDITOR.config.menu_groups="clipboard,form,tablecell,tablecellproperties,tablerow,tablecolumn,table,anchor,link,image,flash,checkbox,radio,textfield,hiddenfield,imagebutton,button,select,textarea,div",CKEDITOR.plugins.add("contextmenu",{requires:"menu",onLoad:function(){CKEDITOR.plugins.contextMenu=CKEDITOR.tools.createClass({base:CKEDITOR.menu,$:function(e){this.base.call(this,e,{panel:{className:"cke_menu_panel",attributes:{"aria-label":e.lang.contextmenu.options}}})},proto:{addTarget:function(e,t){if(e.on("contextmenu",function(e){e=e.data;var i=CKEDITOR.env.webkit?n:CKEDITOR.env.mac?e.$.metaKey:e.$.ctrlKey;if(!t||!i){if(e.preventDefault(),CKEDITOR.env.mac&&CKEDITOR.env.webkit){i=this.editor;(o=new CKEDITOR.dom.elementPath(e.getTarget(),i.editable()).contains(function(e){return e.hasAttribute("contenteditable")},!0))&&"false"==o.getAttribute("contenteditable")&&i.getSelection().fake(o)}var o=e.getTarget().getDocument(),r=e.getTarget().getDocument().getDocumentElement(),s=(i=!o.equals(CKEDITOR.document),o=o.getWindow().getScrollPosition(),i?e.$.clientX:e.$.pageX||o.x+e.$.clientX),a=i?e.$.clientY:e.$.pageY||o.y+e.$.clientY;CKEDITOR.tools.setTimeout(function(){this.open(r,null,s,a)},CKEDITOR.env.ie?200:0,this)}},this),CKEDITOR.env.webkit){var n,i=function(){n=0};
1e.on("keydown",function(e){n=CKEDITOR.env.mac?e.data.$.metaKey:e.data.$.ctrlKey}),e.on("keyup",i),e.on("contextmenu",i)}},open:function(e,t,n,i){this.editor.focus(),e=e||CKEDITOR.document.getDocumentElement(),this.editor.selectionChange(1),this.show(e,t,n,i)}}})},beforeInit:function(e){var t=e.contextMenu=new CKEDITOR.plugins.contextMenu(e);e.on("contentDom",function(){t.addTarget(e.editable(),!1!==e.config.browserContextMenuOnCtrl)}),e.addCommand("contextMenu",{exec:function(){e.contextMenu.open(e.document.getBody())}}),e.setKeystroke(CKEDITOR.SHIFT+121,"contextMenu"),e.setKeystroke(CKEDITOR.CTRL+CKEDITOR.SHIFT+121,"contextMenu")}}),CKEDITOR.plugins.add("resize",{init:function(e){function t(t){var n=a.width,o=a.height,l=n+(t.data.$.screenX-s.x)*("rtl"==r?-1:1);t=o+(t.data.$.screenY-s.y),u&&(n=Math.max(i.resize_minWidth,Math.min(l,i.resize_maxWidth))),c&&(o=Math.max(i.resize_minHeight,Math.min(t,i.resize_maxHeight))),e.resize(u?n:null,o)}function n(){CKEDITOR.document.removeListener("mousemove",t),CKEDITOR.document.removeListener("mouseup",n),e.document&&(e.document.removeListener("mousemove",t),e.document.removeListener("mouseup",n))}var i=e.config,o=e.ui.spaceId("resizer"),r=e.element?e.element.getDirection(1):"ltr";if(!i.resize_dir&&(i.resize_dir="vertical"),void 0===i.resize_maxWidth&&(i.resize_maxWidth=3e3),void 0===i.resize_maxHeight&&(i.resize_maxHeight=3e3),void 0===i.resize_minWidth&&(i.resize_minWidth=750),void 0===i.resize_minHeight&&(i.resize_minHeight=250),!1!==i.resize_enabled){var s,a,l=null,u=("both"==i.resize_dir||"horizontal"==i.resize_dir)&&i.resize_minWidth!=i.resize_maxWidth,c=("both"==i.resize_dir||"vertical"==i.resize_dir)&&i.resize_minHeight!=i.resize_maxHeight,d=CKEDITOR.tools.addFunction(function(o){l||(l=e.getResizable()),a={width:l.$.offsetWidth||0,height:l.$.offsetHeight||0},s={x:o.screenX,y:o.screenY},i.resize_minWidth>a.width&&(i.resize_minWidth=a.width),i.resize_minHeight>a.height&&(i.resize_minHeight=a.height),CKEDITOR.document.on("mousemove",t),CKEDITOR.document.on("mouseup",n),e.document&&(e.document.on("mousemove",t),e.document.on("mouseup",n)),o.preventDefault&&o.preventDefault()});e.on("destroy",function(){CKEDITOR.tools.removeFunction(d)}),e.on("uiSpace",function(t){if("bottom"==t.data.space){var n="";u&&!c&&(n=" cke_resizer_horizontal"),!u&&c&&(n=" cke_resizer_vertical");var i='<span id="'+o+'" class="cke_resizer'+n+" cke_resizer_"+r+'" title="'+CKEDITOR.tools.htmlEncode(e.lang.common.resize)+'" onmousedown="CKEDITOR.tools.callFunction('+d+', event)">'+("ltr"==r?"\u25e2":"\u25e3")+"</span>";"ltr"==r&&"ltr"==n?t.data.html+=i:t.data.html=i+t.data.html}},e,null,100),e.on("maximize",function(t){e.ui.space("resizer")[t.data==CKEDITOR.TRISTATE_ON?"hide":"show"]()})}}}),function(){var e='<a id="{id}" class="cke_button cke_button__{name} cke_button_{state} {cls}"'+(CKEDITOR.env.gecko&&!CKEDITOR.env.hc?"":" href=\"javascript:void('{titleJs}')\"")+' title="{title}" tabindex="-1" hidefocus="true" role="button" aria-labelledby="{id}_label" aria-describedby="{id}_description" aria-haspopup="{hasArrow}" aria-disabled="{ariaDisabled}"';CKEDITOR.env.gecko&&CKEDITOR.env.mac&&(e+=' onkeypress="return false;"'),CKEDITOR.env.gecko&&(e+=' onblur="this.style.cssText = this.style.cssText;"');e=(e=e+' onkeydown="return CKEDITOR.tools.callFunction({keydownFn},event);" onfocus="return CKEDITOR.tools.callFunction({focusFn},event);" '+(CKEDITOR.env.ie?'onclick="return false;" onmouseup':"onclick")+'="CKEDITOR.tools.callFunction({clickFn},this);return false;"><span class="cke_button_icon cke_button__{iconName}_icon" style="{style}"')+'> </span><span id="{id}_label" class="cke_button_label cke_button__{name}_label" aria-hidden="false">{label}</span><span id="{id}_description" class="cke_button_label" aria-hidden="false">{ariaShortcut}</span>{arrowHtml}</a>';var t=CKEDITOR.addTemplate("buttonArrow",'<span class="cke_button_arrow">'+(CKEDITOR.env.hc?"▼":"")+"</span>"),n=CKEDITOR.addTemplate("button",e);CKEDITOR.plugins.add("button",{beforeInit:function(e){e.ui.addHandler(CKEDITOR.UI_BUTTON,CKEDITOR.ui.button.handler)}}),CKEDITOR.UI_BUTTON="button",CKEDITOR.ui.button=function(e){CKEDITOR.tools.extend(this,e,{title:e.label,click:e.click||function(t){t.execCommand(e.command)}}),this._={}}
1,CKEDITOR.ui.button.handler={create:function(e){return new CKEDITOR.ui.button(e)}},CKEDITOR.ui.button.prototype={render:function(e,i){function o(){var t=e.mode;t&&(t=this.modes[t]?void 0!==m[t]?m[t]:CKEDITOR.TRISTATE_OFF:CKEDITOR.TRISTATE_DISABLED,t=e.readOnly&&!this.readOnly?CKEDITOR.TRISTATE_DISABLED:t,this.setState(t),this.refresh&&this.refresh())}var r,s,a,l=CKEDITOR.env,u=this._.id=CKEDITOR.tools.getNextId(),c="",d=this.command;this._.editor=e;var h={id:u,button:this,editor:e,focus:function(){CKEDITOR.document.getById(u).focus()},execute:function(){this.button.click(e)},attach:function(e){this.button.attach(e)}},f=CKEDITOR.tools.addFunction(function(e){if(h.onkey)return e=new CKEDITOR.dom.event(e),!1!==h.onkey(h,e.getKeystroke())}),p=CKEDITOR.tools.addFunction(function(e){var t;return h.onfocus&&(t=!1!==h.onfocus(h,new CKEDITOR.dom.event(e))),t}),g=0;if(h.clickFn=r=CKEDITOR.tools.addFunction(function(){g&&(e.unlockSelection(1),g=0),h.execute(),l.iOS&&e.focus()}),this.modes){var m={};e.on("beforeModeUnload",function(){e.mode&&this._.state!=CKEDITOR.TRISTATE_DISABLED&&(m[e.mode]=this._.state)},this),e.on("activeFilterChange",o,this),e.on("mode",o,this),!this.readOnly&&e.on("readOnly",o,this)}else d&&(d=e.getCommand(d))&&(d.on("state",function(){this.setState(d.state)},this),c+=d.state==CKEDITOR.TRISTATE_ON?"on":d.state==CKEDITOR.TRISTATE_DISABLED?"disabled":"off");this.directional&&e.on("contentDirChanged",function(t){var n=CKEDITOR.document.getById(this._.id),i=n.getFirst();(t=t.data)!=e.lang.dir?n.addClass("cke_"+t):n.removeClass("cke_ltr").removeClass("cke_rtl"),i.setAttribute("style",CKEDITOR.skin.getIconStyle(v,"rtl"==t,this.icon,this.iconOffset))},this),d?(s=e.getCommandKeystroke(d))&&(a=CKEDITOR.tools.keystrokeToString(e.lang.common.keyboard,s)):c+="off";var v=s=this.name||this.command;return this.icon&&!/\./.test(this.icon)&&(v=this.icon,this.icon=null),c={id:u,name:s,iconName:v,label:this.label,cls:this.className||"",state:c,ariaDisabled:"disabled"==c?"true":"false",title:this.title+(a?" ("+a.display+")":""),ariaShortcut:a?e.lang.common.keyboardShortcut+" "+a.aria:"",titleJs:l.gecko&&!l.hc?"":(this.title||"").replace("'",""),hasArrow:this.hasArrow?"true":"false",keydownFn:f,focusFn:p,clickFn:r,style:CKEDITOR.skin.getIconStyle(v,"rtl"==e.lang.dir,this.icon,this.iconOffset),arrowHtml:this.hasArrow?t.output():""},n.output(c,i),this.onRender&&this.onRender(),h},setState:function(e){if(this._.state==e)return!1;this._.state=e;var t=CKEDITOR.document.getById(this._.id);return!!t&&(t.setState(e,"cke_button"),e==CKEDITOR.TRISTATE_DISABLED?t.setAttribute("aria-disabled",!0):t.removeAttribute("aria-disabled"),this.hasArrow?(e=e==CKEDITOR.TRISTATE_ON?this._.editor.lang.button.selectedLabel.replace(/%1/g,this.label):this.label,CKEDITOR.document.getById(this._.id+"_label").setText(e)):e==CKEDITOR.TRISTATE_ON?t.setAttribute("aria-pressed",!0):t.removeAttribute("aria-pressed"),!0)},getState:function(){return this._.state},toFeature:function(e){if(this._.feature)return this._.feature;var t=this;return this.allowedContent||this.requiredContent||!this.command||(t=e.getCommand(this.command)||t),this._.feature=t}},CKEDITOR.ui.prototype.addButton=function(e,t){this.add(e,CKEDITOR.UI_BUTTON,t)}}(),function(){function e(e){function n(t,n){if(n.length){t.items?t.items.push(e.ui.create("-")):t.items=[];for(var o;o=n.shift();)o="string"==typeof o?o:o.name,i&&-1!=CKEDITOR.tools.indexOf(i,o)||(o=e.ui.create(o))&&e.addFeature(o)&&t.items.push(o)}}var i=(i=e.config.removeButtons)&&i.split(","),o=e.config.toolbar;return"string"==typeof o&&(o=e.config["toolbar_"+o]),e.toolbar=o?function(e){var t,i,o,r=[];for(t=0;t<e.length;++t)o={},"/"==(i=e[t])?r.push(i):CKEDITOR.tools.isArray(i)?(n(o,CKEDITOR.tools.clone(i)),r.push(o)):i.items&&(n(o,CKEDITOR.tools.clone(i.items)),o.name=i.name,r.push(o));return r}(o):function(){for(var i=function(){var t,n,i,o={};for(t in e.ui.items)n=e.ui.items[t],i=(i=n.toolbar||"others").split(","),n=i[0],i=parseInt(i[1]||-1,10),o[n]||(o[n]=[]),o[n].push({name:t,order:i});for(n in o)o[n]=o[n].sort(function(e,t){return e.order==t.order?0:0>t.order?-1:0>e.order?1:e.order<t.order?-1:1});return o}(),o=CKEDITOR.tools.clone(e.config.toolbarGroups)||t(e),r=0;r<o.length;r++){var s=o[r];if("/"!=s){"string"==typeof s&&(s=o[r]={name:s});var a,l=s.groups;if(l)for(var u=0;u<l.length;u++)(a=i[a=l[u]])&&n(s,a);(a=i[s.name])&&n(s,a)}}return o}()}function t(e){return e._.toolbarGroups||(e._.toolbarGroups=[{name:"document",groups:["mode","document","doctools"]},{name:"clipboard",groups:["clipboard","undo"]},{name:"editing",groups:["find","selection","spellchecker"]},{name:"forms"},"/",{name:"basicstyles",groups:["basicstyles","cleanup"]},{name:"paragraph",groups:["list","indent","blocks","align","bidi"]},{name:"links"},{name:"insert"},"/",{name:"styles"},{name:"colors"},{name:"tools"},{name:"others"},{name:"about"}])}var n=function(){this.toolbars=[],this.focusCommandExecuted=!1};
1n.prototype.focus=function(){for(var e,t=0;e=this.toolbars[t++];)for(var n,i=0;n=e.items[i++];)if(n.focus)return void n.focus()};var i={modes:{wysiwyg:1,source:1},readOnly:1,exec:function(e){e.toolbox&&(e.toolbox.focusCommandExecuted=!0,CKEDITOR.env.ie||CKEDITOR.env.air?setTimeout(function(){e.toolbox.focus()},100):e.toolbox.focus())}};CKEDITOR.plugins.add("toolbar",{requires:"button",init:function(t){var o,r=function(e,n){var i,s="rtl"==t.lang.dir,a=t.config.toolbarGroupCycling,l=s?37:39;s=s?39:37,a=void 0===a||a;switch(n){case 9:case CKEDITOR.SHIFT+9:for(;!i||!i.items.length;)if((i=9==n?(i?i.next:e.toolbar.next)||t.toolbox.toolbars[0]:(i?i.previous:e.toolbar.previous)||t.toolbox.toolbars[t.toolbox.toolbars.length-1]).items.length)for(e=i.items[o?i.items.length-1:0];e&&!e.focus;)(e=o?e.previous:e.next)||(i=0);return e&&e.focus(),!1;case l:i=e;do{!(i=i.next)&&a&&(i=e.toolbar.items[0])}while(i&&!i.focus);return i?i.focus():r(e,9),!1;case 40:return e.button&&e.button.hasArrow?(t.once("panelShow",function(e){e.data._.panel._.currentBlock.onKeyDown(40)}),e.execute()):r(e,40==n?l:s),!1;case s:case 38:i=e;do{!(i=i.previous)&&a&&(i=e.toolbar.items[e.toolbar.items.length-1])}while(i&&!i.focus);
1return i?i.focus():(o=1,r(e,CKEDITOR.SHIFT+9),o=0),!1;case 27:return t.focus(),!1;case 13:case 32:return e.execute(),!1}return!0};t.on("uiSpace",function(i){if(i.data.space==t.config.toolbarLocation){i.removeListener(),t.toolbox=new n;var o,s,a=['<span id="',l=CKEDITOR.tools.getNextId(),'" class="cke_voice_label">',t.lang.toolbar.toolbars,"</span>",'<span id="'+t.ui.spaceId("toolbox")+'" class="cke_toolbox" role="group" aria-labelledby="',l,'" onmousedown="return false;">'],l=!1!==t.config.toolbarStartupExpanded;t.config.toolbarCanCollapse&&t.elementMode!=CKEDITOR.ELEMENT_MODE_INLINE&&a.push('<span class="cke_toolbox_main"'+(l?">":' style="display:none">'));for(var u=t.toolbox.toolbars,c=e(t),d=c.length,h=0;h<d;h++){var f,p,g,m=0,v=c[h],E="/"!==v&&("/"===c[h+1]||h==d-1);if(v)if(o&&(a.push("</span>"),s=o=0),"/"===v)a.push('<span class="cke_toolbar_break"></span>');else{g=v.items||v;for(var T=0;T<g.length;T++){var y,C=g[T];if(C){var b=function(e){e=e.render(t,a),0<(D=m.items.push(e)-1)&&(e.previous=m.items[D-1],e.previous.next=e),e.toolbar=m,e.onkey=r,e.onfocus=function(){t.toolbox.focusCommandExecuted||t.focus()}};if(C.type==CKEDITOR.UI_SEPARATOR)s=o&&C;else{if(y=!1!==C.canGroup,!m){f=CKEDITOR.tools.getNextId(),m={id:f,items:[]},p=v.name&&(t.lang.toolbar.toolbarGroups[v.name]||v.name),a.push('<span id="',f,'" class="cke_toolbar'+(E?' cke_toolbar_last"':'"'),p?' aria-labelledby="'+f+'_label"':"",' role="toolbar">'),p&&a.push('<span id="',f,'_label" class="cke_voice_label">',p,"</span>"),a.push('<span class="cke_toolbar_start"></span>');var D=u.push(m)-1;0<D&&(m.previous=u[D-1],m.previous.next=m)}y?o||(a.push('<span class="cke_toolgroup" role="presentation">'),o=1):o&&(a.push("</span>"),o=0),s&&(b(s),s=0),b(C)}}}o&&(a.push("</span>"),s=o=0),m&&a.push('<span class="cke_toolbar_end"></span></span>')}}if(t.config.toolbarCanCollapse&&a.push("</span>"),t.config.toolbarCanCollapse&&t.elementMode!=CKEDITOR.ELEMENT_MODE_INLINE){var I=CKEDITOR.tools.addFunction(function(){t.execCommand("toolbarCollapse")});t.on("destroy",function(){CKEDITOR.tools.removeFunction(I)}),t.addCommand("toolbarCollapse",{readOnly:1,exec:function(e){var t=e.ui.space("toolbar_collapser"),n=t.getPrevious(),i=e.ui.space("contents"),o=n.getParent(),r=parseInt(i.$.style.height,10),s=o.$.offsetHeight,a=t.hasClass("cke_toolbox_collapser_min");a?(n.show(),t.removeClass("cke_toolbox_collapser_min"),t.setAttribute("title",e.lang.toolbar.toolbarCollapse)):(n.hide(),t.addClass("cke_toolbox_collapser_min"),t.setAttribute("title",e.lang.toolbar.toolbarExpand)),t.getFirst().setText(a?"\u25b2":"\u25c0"),i.setStyle("height",r-(o.$.offsetHeight-s)+"px"),e.fire("resize",{outerHeight:e.container.$.offsetHeight,contentsHeight:i.$.offsetHeight,outerWidth:e.container.$.offsetWidth})},modes:{wysiwyg:1,source:1}}),t.setKeystroke(CKEDITOR.ALT+(CKEDITOR.env.ie||CKEDITOR.env.webkit?189:109),"toolbarCollapse"),a.push('<a title="'+(l?t.lang.toolbar.toolbarCollapse:t.lang.toolbar.toolbarExpand)+'" id="'+t.ui.spaceId("toolbar_collapser")+'" tabIndex="-1" class="cke_toolbox_collapser'),l||a.push(" cke_toolbox_collapser_min"),a.push('" onclick="CKEDITOR.tools.callFunction('+I+')">','<span class="cke_arrow">▲</span>',"</a>")}a.push("</span>"),i.data.html+=a.join("")}}),t.on("destroy",function(){if(this.toolbox){var e,t,n,i,o=0;for(e=this.toolbox.toolbars;o<e.length;o++)for(n=e[o].items,t=0;t<n.length;t++)(i=n[t]).clickFn&&CKEDITOR.tools.removeFunction(i.clickFn),i.keyDownFn&&CKEDITOR.tools.removeFunction(i.keyDownFn)}}),t.on("uiReady",function(){var e=t.ui.space("toolbox");e&&t.focusManager.add(e,1)}),t.addCommand("toolbarFocus",i),t.setKeystroke(CKEDITOR.ALT+121,"toolbarFocus"),t.ui.add("-",CKEDITOR.UI_SEPARATOR,{}),t.ui.addHandler(CKEDITOR.UI_SEPARATOR,{create:function(){return{render:function(e,t){return t.push('<span class="cke_toolbar_separator" role="separator"></span>'),{}}}}})}}),CKEDITOR.ui.prototype.addToolbarGroup=function(e,n,i){var o=t(this.editor),r=0===n,s={name:e};if(i){if(i=CKEDITOR.tools.search(o,function(e){return e.name==i}))return!i.groups&&(i.groups=[]),n&&0<=(n=CKEDITOR.tools.indexOf(i.groups,n))?void i.groups.splice(n+1,0,e):void(r?i.groups.splice(0,0,e):i.groups.push(e));n=null}n&&(n=CKEDITOR.tools.indexOf(o,function(e){return e.name==n})),r?o.splice(0,0,e):"number"==typeof n?o.splice(n+1,0,s):o.push(e)}}(),CKEDITOR.UI_SEPARATOR="separator",CKEDITOR.config.toolbarLocation="top",function(){var e={toolbarFocus:{editorFocus:!1,readOnly:1,exec:function(e){(e=CKEDITOR.document.getById(e._.elementsPath.idBase+"0"))&&e.focus(CKEDITOR.env.ie||CKEDITOR.env.air)}}},t="";CKEDITOR.env.gecko&&CKEDITOR.env.mac&&(t+=' onkeypress="return false;"'),CKEDITOR.env.gecko&&(t+=' onblur="this.style.cssText = this.style.cssText;"');var n=CKEDITOR.addTemplate("pathItem",'<a id="{id}" href="{jsTitle}" tabindex="-1" class="cke_path_item" title="{label}"'+t+' hidefocus="true" onkeydown="return CKEDITOR.tools.callFunction({keyDownFn},{index}, event );" onclick="CKEDITOR.tools.callFunction({clickFn},{index}); return false;" role="button" aria-label="{label}">{text}</a>');CKEDITOR.plugins.add("elementspath",{init:function(t){t._.elementsPath={idBase:"cke_elementspath_"+CKEDITOR.tools.getNextNumber()+"_",f
1ilters:[]},t.on("uiSpace",function(i){"bottom"==i.data.space&&function(t,i){function o(e){var n;(e=l.list[e]).equals(t.editable())||"true"==e.getAttribute("contenteditable")?((n=t.createRange()).selectNodeContents(e),n=n.select()):(n=t.getSelection()).selectElement(e),CKEDITOR.env.ie&&t.fire("selectionChange",{selection:n,path:new CKEDITOR.dom.elementPath(e)}),t.focus()}function r(){s&&s.setHtml('<span class="cke_path_empty"> </span>'),delete l.list}var s,a=t.ui.spaceId("path"),l=t._.elementsPath,u=l.idBase;i.html+='<span id="'+a+'_label" class="cke_voice_label">'+t.lang.elementspath.eleLabel+'</span><span id="'+a+'" class="cke_path" role="group" aria-labelledby="'+a+'_label"><span class="cke_path_empty"> </span></span>',t.on("uiReady",function(){var e=t.ui.space("path");e&&t.focusManager.add(e,1)}),l.onClick=o;var c=CKEDITOR.tools.addFunction(o),d=CKEDITOR.tools.addFunction(function(e,n){var i,r=l.idBase;switch(n=new CKEDITOR.dom.event(n),i="rtl"==t.lang.dir,n.getKeystroke()){case i?39:37:case 9:return(i=CKEDITOR.document.getById(r+(e+1)))||(i=CKEDITOR.document.getById(r+"0")),i.focus(),!1;case i?37:39:case CKEDITOR.SHIFT+9:return(i=CKEDITOR.document.getById(r+(e-1)))||(i=CKEDITOR.document.getById(r+(l.list.length-1))),i.focus(),!1;case 27:return t.focus(),!1;case 13:case 32:return o(e),!1}return!0});t.on("selectionChange",function(){for(var e,i=[],o=l.list=[],r=[],h=l.filters,f=!0,p=t.elementPath().elements,g=p.length;g--;){var m=p[g],v=0;e=m.data("cke-display-name")?m.data("cke-display-name"):m.data("cke-real-element-type")?m.data("cke-real-element-type"):m.getName(),(f=m.hasAttribute("contenteditable")?"true"==m.getAttribute("contenteditable"):f)||m.hasAttribute("contenteditable")||(v=1);for(var E=0;E<h.length;E++){var T=h[E](m,e);if(!1===T){v=1;break}e=T||e}v||(o.unshift(m),r.unshift(e))}for(o=o.length,h=0;h<o;h++)e=r[h],f=t.lang.elementspath.eleTitle.replace(/%1/,e),e=n.output({id:u+h,label:f,text:e,jsTitle:"javascript:void('"+e+"')",index:h,keyDownFn:d,clickFn:c}),i.unshift(e);s||(s=CKEDITOR.document.getById(a)),(r=s).setHtml(i.join("")+'<span class="cke_path_empty"> </span>'),t.fire("elementsPathUpdate",{space:r})}),t.on("readOnly",r),t.on("contentDomUnload",r),t.addCommand("elementsPathFocus",e.toolbarFocus),t.setKeystroke(CKEDITOR.ALT+122,"elementsPathFocus")}(t,i.data)})}})}(),function(){function e(e,t,n){n=e.config.forceEnterMode||n,"wysiwyg"==e.mode&&(t||(t=e.activeEnterMode),e.elementPath().isContextFor("p")||(t=CKEDITOR.ENTER_BR,n=1),e.fire("saveSnapshot"),t==CKEDITOR.ENTER_BR?r(e,t,null,n):s(e,t,null,n),e.fire("saveSnapshot"))}function t(e){for(var t=(e=e.getSelection().getRanges(!0)).length-1;0<t;t--)e[t].deleteContents();return e[0]}CKEDITOR.plugins.add("enterkey",{init:function(t){t.addCommand("enter",{modes:{wysiwyg:1},editorFocus:!1,exec:function(t){e(t)}}),t.addCommand("shiftEnter",{modes:{wysiwyg:1},editorFocus:!1,exec:function(t){e(t,t.activeShiftEnterMode,1)}}
1),t.setKeystroke([[13,"enter"],[CKEDITOR.SHIFT+13,"shiftEnter"]])}});var n=CKEDITOR.dom.walker.whitespaces(),i=CKEDITOR.dom.walker.bookmark();CKEDITOR.plugins.enterkey={enterBlock:function(e,o,s,l){if(s=s||t(e)){var u,c=(s=function(e){var t=e.startContainer.getAscendant(function(e){return e.type==CKEDITOR.NODE_ELEMENT&&"true"==e.getAttribute("contenteditable")},!0);return e.root.equals(t)?e:((t=new CKEDITOR.dom.range(t)).moveToRange(e),t)}(s)).document,d=s.checkStartOfBlock(),h=s.checkEndOfBlock(),f=e.elementPath(s.startContainer),p=f.block,g=o==CKEDITOR.ENTER_DIV?"div":"p";if(d&&h){if(p&&(p.is("li")||p.getParent().is("li"))){p.is("li")||(p=p.getParent()),u=(s=p.getParent()).getParent(),l=!p.hasPrevious();var m=!p.hasNext(),v=(g=e.getSelection()).createBookmarks(),E=(d=p.getDirection(1),h=p.getAttribute("class"),p.getAttribute("style")),T=u.getDirection(1)!=d;if(e=e.enterMode!=CKEDITOR.ENTER_BR||T||E||h,u.is("li"))l||m?(l&&m&&s.remove(),p[m?"insertAfter":"insertBefore"](u)):p.breakParent(u);else{if(e)f.block.is("li")?(u=c.createElement(o==CKEDITOR.ENTER_P?"p":"div"),T&&u.setAttribute("dir",d),E&&u.setAttribute("style",E),h&&u.setAttribute("class",h),p.moveChildren(u)):u=f.block,l||m?u[l?"insertBefore":"insertAfter"](s):(p.breakParent(s),u.insertAfter(s));else if(p.appendBogus(!0),l||m)for(;c=p[l?"getFirst":"getLast"]();)c[l?"insertBefore":"insertAfter"](s);else for(p.breakParent(s);c=p.getLast();)c.insertAfter(s);p.remove()}return void g.selectBookmarks(v)}if(p&&p.getParent().is("blockquote"))return p.breakParent(p.getParent()),p.getPrevious().getFirst(CKEDITOR.dom.walker.invisible(1))||p.getPrevious().remove(),p.getNext().getFirst(CKEDITOR.dom.walker.invisible(1))||p.getNext().remove(),s.moveToElementEditStart(p),void s.select()}else if(p&&p.is("pre")&&!h)return void r(e,o,s,l);if(d=s.splitBlock(g)){if(o=d.previousBlock,p=d.nextBlock,f=d.wasStartOfBlock,e=d.wasEndOfBlock,p?(v=p.getParent()).is("li")&&(p.breakParent(v),p.move(p.getNext(),1)):o&&(v=o.getParent())&&v.is("li")&&(o.breakParent(v),v=o.getNext(),s.moveToElementEditStart(v),o.move(o.getPrevious())),f||e){if(o?(o.is("li")||!a.test(o.getName())&&!o.is("pre"))&&(u=o.clone()):p&&(u=p.clone()),u?l&&!u.is("li")&&u.renameNode(g):v&&v.is("li")?u=v:(u=c.createElement(g),o&&(m=o.getDirection())&&u.setAttribute("dir",m)),c=d.elementPath)for(l=0,g=c.elements.length;l<g&&(!(v=c.elements[l]).equals(c.block)&&!v.equals(c.blockLimit));l++)CKEDITOR.dtd.$removeEmpty[v.getName()]&&(v=v.clone(),u.moveChildren(v),u.append(v));u.appendBogus(),u.getParent()||s.insertNode(u),u.is("li")&&u.removeAttribute("value"),!CKEDITOR.env.ie||!f||e&&o.getChildCount()||(s.moveToElementEditStart(e?o:u),s.select()),s.moveToElementEditStart(f&&!e?p:u)}else p.is("li")&&((u=s.clone()).selectNodeContents(p),(u=new CKEDITOR.dom.walker(u)).evaluator=function(e){return!(i(e)||n(e)||e.type==CKEDITOR.NODE_ELEMENT&&e.getName()in CKEDITOR.dtd.$inline&&!(e.getName()in CKEDITOR.dtd.$empty))},(v=u.next())&&v.type==CKEDITOR.NODE_ELEMENT&&v.is("ul","ol")&&(CKEDITOR.env.needsBrFiller?c.createElement("br"):c.createText("\xa0")).insertBefore(v)),p&&s.moveToElementEditStart(p);s.select(),s.scrollIntoView()}}},enterBr:function(e,n,i,o){if(i=i||t(e)){var r=i.document,l=i.checkEndOfBlock(),u=new CKEDITOR.dom.elementPath(e.getSelection().getStartElement()),c=u.block,d=c&&u.block.getName();o||"li"!=d?(!o&&l&&a.test(d)?(l=c.getDirection())?((r=r.createElement("div")).setAttribute("dir",l),r.insertAfter(c),i.setStart(r,0)):(r.createElement("br").insertAfter(c),CKEDITOR.env.gecko&&r.createText("").insertAfter(c),i.setStartAt(c.getNext(),CKEDITOR.env.ie?CKEDITOR.POSITION_BEFORE_START:CKEDITOR.POSITION_AFTER_START)):(e="pre"==d&&CKEDITOR.env.ie&&8>CKEDITOR.env.version?r.createText("\r"):r.createElement("br"),i.deleteContents(),i.insertNode(e),CKEDITOR.env.needsBrFiller?(r.createText("\ufeff").insertAfter(e),l&&(c||u.blockLimit).appendBogus(),e.getNext().$.nodeValue="",i.setStartAt(e.getNext(),CKEDITOR.POSITION_AFTER_START)):i.setStartAt(e,CKEDITOR.POSITION_AFTER_END)),i.collapse(!0),i.select(),i.scrollIntoView()):s(e,n,i,o)}}};var o=CKEDITOR.plugins.enterkey,r=o.enterBr,s=o.enterBlock,a=/^h[1-6]$/}(),function(){function e(e,t){var n={},i=[],o={nbsp:"\xa0",shy:"\xad",gt:">",lt:"<",amp:"&",apos:"'",quot:'"'};if(e=e.replace(/\b(nbsp|shy|gt|lt|amp|apos|quot)(?:,|$)/g,function(e,r){var s=t?"&"+r+";":o[r];return n[s]=t?o[r]:"&"+r+";",i.push(s),""}),!t&&e){e=e.split(",");var r,s=document.createElement("div");for(s.innerHTML="&"+e.join(";&")+";",r=s.innerHTML,s=null,s=0;s<r.length;s++){var a=r.charAt(s);n[a]="&"+e[s]+";",i.push(a)}}return n.regex=i.join(t?"|":""),n}CKEDITOR.plugins.add("entities",{afterInit:function(t){function n(e){return l[e]}function i(e){return"force"!=o.entities_processNumerical&&s[e]?s[e]:"&#"+e.charCodeAt(0)+";"}var o=t.config;if(t=(t=t.dataProcessor)&&t.htmlFilter){var r=[];!1!==o.basicEntities&&r.push("nbsp,gt,lt,amp"),o.entities&&(r.length&&r.push("quot,iexcl,cent,pound,curren,yen,brvbar,sect,uml,copy,ordf,laquo,not,shy,reg,macr,deg,plusmn,sup2,sup3,acute,micro,para,middot,cedil,sup1,ordm,raquo,frac14,frac12,frac34,iquest,times,divide,fnof,bull,hellip,prime,Prime,oline,frasl,weierp,image,real,trade,alefsym,larr,uarr,rarr,darr,harr,crarr,lArr,uArr,rArr,dArr,hArr,forall,part,exist,empty,nabla,isin,notin,ni,prod,sum,minus,lowast,radic,prop,infin,ang,and,or,cap,cup,int,there4,sim,cong,asymp,ne,equiv,le,ge,sub,sup,nsub,sube,supe,oplus,otimes,perp,sdot,lceil,rceil,lfloor,rfloor,lang,rang,loz,spades,clubs,hearts,diams,circ,tilde,ensp,emsp,thinsp,zwnj,zwj,lrm,rlm,ndash,mdash,lsquo,rsquo,sbquo,ldquo,rdquo,bdquo,dagger,Dagger,permil,lsaquo,rsaquo,euro"),o.entities_latin&&r.push("Agrave,Aacute,Acirc,Atilde,Auml,Aring,AElig,Ccedil,Egrave,Eacute,Ecirc,Euml,Igrave,Iacute,Icirc,Iuml,ETH,Ntilde,Ograve,Oacute,Ocirc,Otilde,Ouml,Oslash,Ugrave,Uacute,Ucirc,Uuml,Yacute,THORN,szlig,agrave,aacute,acirc,atilde,auml,aring,aelig,ccedil,egrave,eacute,ecirc,euml,igrave,iacute,icirc,iuml,eth,ntilde,ograve,oacute,ocirc,otilde,ouml,oslash,ugrave,uacute,ucirc,uuml,yacute,thorn,yuml,OElig,oelig,Scaron,scaron,Yuml"),o.entities_greek&&r.push("Alp
1ha,Beta,Gamma,Delta,Epsilon,Zeta,Eta,Theta,Iota,Kappa,Lambda,Mu,Nu,Xi,Omicron,Pi,Rho,Sigma,Tau,Upsilon,Phi,Chi,Psi,Omega,alpha,beta,gamma,delta,epsilon,zeta,eta,theta,iota,kappa,lambda,mu,nu,xi,omicron,pi,rho,sigmaf,sigma,tau,upsilon,phi,chi,psi,omega,thetasym,upsih,piv"),o.entities_additional&&r.push(o.entities_additional));var s=e(r.join(",")),a=s.regex?"["+s.regex+"]":"a^";delete s.regex,o.entities&&o.entities_processNumerical&&(a="[^ -~]|"+a);a=new RegExp(a,"g");var l=e("nbsp,gt,lt,amp,shy",!0),u=new RegExp(l.regex,"g");t.addRules({text:function(e){return e.replace(u,n).replace(a,i)}},{applyToAll:!0,excludeNestedEditable:!0})}}})}(),CKEDITOR.config.basicEntities=!0,CKEDITOR.config.entities=!0,CKEDITOR.config.entities_latin=!0,CKEDITOR.config.entities_greek=!0,CKEDITOR.config.entities_additional="#39",CKEDITOR.plugins.add("popup"),CKEDITOR.tools.extend(CKEDITOR.editor.prototype,{popup:function(e,t,n,i){t=t||"80%",n=n||"70%","string"==typeof t&&1<t.length&&"%"==t.substr(t.length-1,1)&&(t=parseInt(window.screen.width*parseInt(t,10)/100,10)),"string"==typeof n&&1<n.length&&"%"==n.substr(n.length-1,1)&&(n=parseInt(window.screen.height*parseInt(n,10)/100,10)),640>t&&(t=640),420>n&&(n=420);var o=parseInt((window.screen.height-n)/2,10),r=parseInt((window.screen.width-t)/2,10);i=(i||"location=no,menubar=no,toolbar=no,dependent=yes,minimizable=no,modal=yes,alwaysRaised=yes,resizable=yes,scrollbars=yes")+",width="+t+",height="+n+",top="+o+",left="+r;var s=window.open("",null,i,!0);if(!s)return!1;try{-1==navigator.userAgent.toLowerCase().indexOf(" chrome/")&&(s.moveTo(r,o),s.resizeTo(t,n)),s.focus(),s.location.href=e}catch(t){window.open(e,null,i,!0)}return!0}}),function(){function e(e,t){var n=[];if(!t)return e;for(var i in t)n.push(i+"="+encodeURIComponent(t[i]));return e+(-1!=e.indexOf("?")?"&":"?")+n.join("&")}function t(e){return(e+="").charAt(0).toUpperCase()+e.substr(1)}function n(){var n=(o=this.getDialog()).getParentEditor();n._.filebrowserSe=this;var i=n.config["filebrowser"+t(o.getName())+"WindowWidth"]||n.config.filebrowserWindowWidth||"80%",o=n.config["filebrowser"+t(o.getName())+"WindowHeight"]||n.config.filebrowserWindowHeight||"70%",r=this.filebrowser.params||{};r.CKEditor=n.name,r.CKEditorFuncNum=n._.filebrowserFn,r.langCode||(r.langCode=n.langCode),r=e(this.filebrowser.url,r),n.popup(r,i,o,n.config.filebrowserWindowFeatures||n.config.fileBrowserWindowFeatures)}function i(){var e=this.getDialog();return e.getParentEditor()._.filebrowserSe=this,!(!e.getContentElement(this.for[0],this.for[1]).getInputElement().$.value||!e.getContentElement(this.for[0],this.for[1]).getAction())}function o(t,n,i){var o=i.params||{};o.CKEditor=t.name,o.CKEditorFuncNum=t._.filebrowserFn,o.langCode||(o.langCode=t.langCode),n.action=e(i.url,o),n.filebrowser=i}function r(e,s,a,l){if(l&&l.length)for(var u,c=l.length;c--;)if("hbox"!=(u=l[c]).type&&"vbox"!=u.type&&"fieldset"!=u.type||r(e,s,a,u.children),u.filebrowser)if("string"==typeof u.filebrowser&&(u.filebrowser={action:"fileButton"==u.type?"QuickUpload":"Browse",target:u.filebrowser}),"Browse"==u.filebrowser.action){var d=u.filebrowser.url;void 0===d&&(void 0===(d=e.config["filebrowser"+t(s)+"BrowseUrl"])&&(d=e.config.filebrowserBrowseUrl)),d&&(u.onClick=n,u.filebrowser.url=d,u.hidden=!1)}else if("QuickUpload"==u.filebrowser.action&&u.for&&(void 0===(d=u.filebrowser.url)&&(void 0===(d=e.config["filebrowser"+t(s)+"UploadUrl"])&&(d=e.config.filebrowserUploadUrl)),d)){var h=u.onClick;u.onClick=function(e){var t=e.sender;return(!h||!1!==h.call(t,e))&&(!!i.call(t,e)&&(e=t.getDialog().getContentElement(this.for[0],this.for[1]).getInputElement(),(t=new CKEDITOR.dom.element(e.$.form))&&((e=t.$.elements.ckCsrfToken)?e=new CKEDITOR.dom.element(e):((e=new CKEDITOR.dom.element("input")).setAttributes({name:"ckCsrfToken",type:"hidden"}),t.append(e)),e.setAttribute("value",CKEDITOR.tools.getCsrfToken())),!0))},u.filebrowser.url=d,u.hidden=!1,o(e,a.getContents(u.for[0]).get(u.for[1]),u.filebrowser)}}function s(e,t,n){if(-1!==n.indexOf(";")){n=n.split(";");for(var i=0;i<n.length;i++)if(s(e,t,n[i]))return!0;return!1}return(e=e.getContents(t).get(n).filebrowser)&&e.url}function a(e,t){var n=this._.filebrowserSe.getDialog(),i=this._.filebrowserSe.for,o=this._.filebrowserSe.filebrowser.onSelect;i&&n.getContentElement(i[0],i[1]).reset(),"function"==typeof t&&!1===t.call(this._.filebrowserSe)||o&&!1===o.call(this._.filebrowserSe,e,t)||("string"==typeof t&&t&&alert(t),e&&(n=(i=this._.filebrowserSe).getDialog(),i=i.filebrowser.target||null)&&(i=i.split(":"),(o=n.getContentElement(i[0],i[1]))&&(o.setValue(e),n.selectPage(i[0]))))}CKEDITOR.plugins.add("filebrowser",{requires:"popup",init:function(e){e._.filebrowserFn=CKEDITOR.tools.addFunction(a,e),e.on("destroy",function(){CKEDITOR.tools.removeFunction(this._.filebrowserFn)})}}),CKEDITOR.on("dialogDefinition",function(e){if(e.editor.plugins.filebrowser)for(var t,n=e.data.definition,i=0;i<n.contents.length;++i)(t=n.contents[i])&&(r(e.editor,e.data.name,n,t.elements),t.hidden&&t.filebrowser&&(t.hidden=!s(n,t.id,t.filebrowser)))})}(),function(){var e=CKEDITOR.document.getWindow(),t=CKEDITOR.tools.cssLength;CKEDITOR.plugins.add("floatingspace",{init:function(n){n.on("loaded",function(){!function(n){var i=n.config,o=n.fire("uiSpace",{space:"top",html:""}).html,r=function(){function o(e,n,i){a.setStyle(n,t(i)),a.setStyle("position",e)}function s(e){var t=u.getDocumentPosition();switch(e){case"top":o("absolute","top",t.y-f-m);break;case"pin":o("fixed","top",E);break;case"bottom":o("absolute","top",t.y+(d.height||d.bottom-d.top)+m)}l=e}var l,u,c,d,h,f,p,g=i.floatSpaceDockedOffsetX||0,m=i.floatSpaceDockedOffsetY||0,v=i.floatSpacePinnedOffsetX||0,E=i.floatSpacePinnedOffsetY||0;
1return function(o){if(u=n.editable()){var E=o&&"focus"==o.name;E&&a.show(),n.fire("floatingSpaceLayout",{show:E}),a.removeStyle("left"),a.removeStyle("right"),c=a.getClientRect(),d=u.getClientRect(),h=e.getViewPaneSize(),f=c.height,p="pageXOffset"in e.$?e.$.pageXOffset:CKEDITOR.document.$.documentElement.scrollLeft,l?(f+m<=d.top?s("top"):f+m>h.height-d.bottom?s("pin"):s("bottom"),o=h.width/2,o=i.floatSpacePreferRight?"right":0<d.left&&d.right<h.width&&d.width>c.width?"rtl"==i.contentsLangDirection?"right":"left":o-d.left>d.right-o?"left":"right",c.width>h.width?(o="left",E=0):(E="left"==o?0<d.left?d.left:0:d.right<h.width?h.width-d.right:0)+c.width>h.width&&(o="left"==o?"right":"left",E=0),a.setStyle(o,t(("pin"==l?v:g)+E+("pin"==l?0:"left"==o?p:-p)))):(l="pin",s("pin"),r(o))}}}();if(o){var s=new CKEDITOR.template('<div id="cke_{name}" class="cke {id} cke_reset_all cke_chrome cke_editor_{name} cke_float cke_{langDir} '+CKEDITOR.env.cssClass+'" dir="{langDir}" title="'+(CKEDITOR.env.gecko?" ":"")+'" lang="{langCode}" role="application" style="{style}"'+(n.title?' aria-labelledby="cke_{name}_arialbl"':" ")+">"+(n.title?'<span id="cke_{name}_arialbl" class="cke_voice_label">{voiceLabel}</span>':" ")+'<div class="cke_inner"><div id="{topId}" class="cke_top" role="presentation">{content}</div></div></div>'),a=CKEDITOR.document.getBody().append(CKEDITOR.dom.element.createFromHtml(s.output({content:o,id:n.id,langDir:n.lang.dir,langCode:n.langCode,name:n.name,style:"display:none;z-index:"+(i.baseFloatZIndex-1),topId:n.ui.spaceId("top"),voiceLabel:n.title}))),l=CKEDITOR.tools.eventsBuffer(500,r),u=CKEDITOR.tools.eventsBuffer(100,r);a.unselectable(),a.on("mousedown",function(e){(e=e.data).getTarget().hasAscendant("a",1)||e.preventDefault()}),n.on("focus",function(t){r(t),n.on("change",l.input),e.on("scroll",u.input),e.on("resize",u.input)}),n.on("blur",function(){a.hide(),n.removeListener("change",l.input),e.removeListener("scroll",u.input),e.removeListener("resize",u.input)}),n.on("destroy",function(){e.removeListener("scroll",u.input),e.removeListener("resize",u.input),a.clearCustomData(),a.remove()}),n.focusManager.hasFocus&&a.show(),n.focusManager.add(a,1)}}(this)},null,null,20)}})}(),CKEDITOR.plugins.add("listblock",{requires:"panel",onLoad:function(){var e=CKEDITOR.addTemplate("panel-list",'<ul role="presentation" class="cke_panel_list">{items}</ul>'),t=CKEDITOR.addTemplate("panel-list-item",'<li id="{id}" class="cke_panel_listItem" role=presentation><a id="{id}_option" _cke_focus=1 hidefocus=true title="{title}" href="javascript:void(\'{val}\')" {onclick}="CKEDITOR.tools.callFunction({clickFn},\'{val}\'); return false;" role="option">{text}</a></li>'),n=CKEDITOR.addTemplate("panel-list-group",'<h1 id="{id}" class="cke_panel_grouptitle" role="presentation" >{label}</h1>'),i=/\'/g;CKEDITOR.ui.panel.prototype.addListBlock=function(e,t){return this.addBlock(e,new CKEDITOR.ui.listBlock(this.getHolderElement(),t))},CKEDITOR.ui.listBlock=CKEDITOR.tools.createClass({base:CKEDITOR.ui.panel.block,$:function(e,t){var n=(t=t||{}).attributes||(t.attributes={});(this.multiSelect=!!t.multiSelect)&&(n["aria-multiselectable"]=!0),!n.role&&(n.role="listbox"),this.base.apply(this,arguments),this.element.setAttribute("role",n.role),(n=this.keys)[40]="next",n[9]="next",n[38]="prev",n[CKEDITOR.SHIFT+9]="prev",n[32]=CKEDITOR.env.ie?"mouseup":"click",CKEDITOR.env.ie&&(n[13]="mouseup"),this._.pendingHtml=[],this._.pendingList=[],this._.items={},this._.groups={}},_:{close:function(){if(this._.started){var t=e.output({items:this._.pendingList.join("")});this._.pendingList=[],this._.pendingHtml.push(t),delete this._.started}},getClick:function(){return this._.click||(this._.click=CKEDITOR.tools.addFunction(function(e){var t=this.toggle(e);this.onClick&&this.onClick(e,t)},this)),this._.click}},proto:{add:function(e,n,o){var r=CKEDITOR.tools.getNextId();this._.started||(this._.started=1,this._.size=this._.size||0),this._.items[e]=r,e={id:r,val:CKEDITOR.tools.htmlEncodeAttr(e).replace(i,"\\'"),onclick:CKEDITOR.env.ie?'onclick="return false;" onmouseup':"onclick",clickFn:this._.getClick(),title:CKEDITOR.tools.htmlEncodeAttr(o||e),text:n||e},this._.pendingList.push(t.output(e))},startGroup:function(e){this._.close();var t=CKEDITOR.tools.getNextId();this._.groups[e]=t,this._.pendingHtml.push(n.output({id:t,label:e}))},commit:function(){this._.close(),this.element.appendHtml(this._.pendingHtml.join("")),delete this._.size,this._.pendingHtml=[]},toggle:function(e){var t=this.isMarked(e);return t?this.unmark(e):this.mark(e),!t},hideGroup:function(e){var t=(e=this.element.getDocument().getById(this._.groups[e]))&&e.getNext();e&&(e.setStyle("display","none"),t&&"ul"==t.getName()&&t.setStyle("display","none"))},hideItem:function(e){this.element.getDocument().getById(this._.items[e]).setStyle("display","none")},showAll:function(){var e,t=this._.items,n=this._.groups,i=this.element.getDocument();for(e in t)i.getById(t[e]).setStyle("display","");for(var o in n)e=(t=i.getById(n[o])).getNext(),t.setStyle("display",""),e&&"ul"==e.getName()&&e.setStyle("display","")},mark:function(e){this.multiSelect||this.unmarkAll(),e=this._.items[e];var t=this.element.getDocument().getById(e);t.addClass("cke_selected"),this.element.getDocument().getById(e+"_option").setAttribute("aria-selected",!0),this.onMark&&this.onMark(t)},unmark:function(e){var t=this.element.getDocument();e=this._.items[e];var n=t.getById(e);n.removeClass("cke_selected"),t.getById(e+"_option").removeAttribute("aria-selected"),this.onUnmark&&this.onUnmark(n)},unmarkAll:function(){var e,t=this._.items,n=this.element.getDocument();for(e in t){var i=t[e];n.getById(i).removeClass("cke_selected"),n.getById(i+"_option").removeAttribute("aria-selected")}this.onUnmark&&this.onUnmark()},isMarked:function(e){return this.element.getDocument().getById(this._.items[e]).hasClass("cke_selected")},focus:function(e){this._.focusIndex=-1;var t,n=this.element.getElementsByTag("a"),i=-1;
1if(e){for(t=this.element.getDocument().getById(this._.items[e]).getFirst();e=n.getItem(++i);)if(e.equals(t)){this._.focusIndex=i;break}}else this.element.focus();t&&setTimeout(function(){t.focus()},0)}}})}}),CKEDITOR.plugins.add("richcombo",{requires:"floatpanel,listblock,button",beforeInit:function(e){e.ui.addHandler(CKEDITOR.UI_RICHCOMBO,CKEDITOR.ui.richCombo.handler)}}),function(){var e='<span id="{id}" class="cke_combo cke_combo__{name} {cls}" role="presentation"><span id="{id}_label" class="cke_combo_label">{label}</span><a class="cke_combo_button" title="{title}" tabindex="-1"'+(CKEDITOR.env.gecko&&!CKEDITOR.env.hc?"":" href=\"javascript:void('{titleJs}')\"")+' hidefocus="true" role="button" aria-labelledby="{id}_label" aria-haspopup="true"';CKEDITOR.env.gecko&&CKEDITOR.env.mac&&(e+=' onkeypress="return false;"'),CKEDITOR.env.gecko&&(e+=' onblur="this.style.cssText = this.style.cssText;"');e=e+' onkeydown="return CKEDITOR.tools.callFunction({keydownFn},event,this);" onfocus="return CKEDITOR.tools.callFunction({focusFn},event);" '+(CKEDITOR.env.ie?'onclick="return false;" onmouseup':"onclick")+'="CKEDITOR.tools.callFunction({clickFn},this);return false;"><span id="{id}_text" class="cke_combo_text cke_combo_inlinelabel">{label}</span><span class="cke_combo_open"><span class="cke_combo_arrow">'+(CKEDITOR.env.hc?"▼":CKEDITOR.env.air?" ":"")+"</span></span></a></span>";var t=CKEDITOR.addTemplate("combo",e);CKEDITOR.UI_RICHCOMBO="richcombo",CKEDITOR.ui.richCombo=CKEDITOR.tools.createClass({$:function(e){CKEDITOR.tools.extend(this,e,{canGroup:!1,title:e.label,modes:{wysiwyg:1},editorFocus:1}),e=this.panel||{},delete this.panel,this.id=CKEDITOR.tools.getNextNumber(),this.document=e.parent&&e.parent.getDocument()||CKEDITOR.document,e.className="cke_combopanel",e.block={multiSelect:e.multiSelect,attributes:e.attributes},e.toolbarRelated=!0,this._={panelDefinition:e,items:{}}},proto:{renderHtml:function(e){var t=[];return this.render(e,t),t.join("")},render:function(e,n){function i(){if(this.getState()!=CKEDITOR.TRISTATE_ON){var t=this.modes[e.mode]?CKEDITOR.TRISTATE_OFF:CKEDITOR.TRISTATE_DISABLED;e.readOnly&&!this.readOnly&&(t=CKEDITOR.TRISTATE_DISABLED),this.setState(t),this.setValue(""),t!=CKEDITOR.TRISTATE_DISABLED&&this.refresh&&this.refresh()}}var o=CKEDITOR.env,r="cke_"+this.id,s=CKEDITOR.tools.addFunction(function(t){d&&(e.unlockSelection(1),d=0),l.execute(t)},this),a=this,l={id:r,combo:this,focus:function(){CKEDITOR.document.getById(r).getChild(1).focus()},execute:function(t){var n=a._;if(n.state!=CKEDITOR.TRISTATE_DISABLED)if(a.createPanel(e),n.on)n.panel.hide();else{a.commit();var i=a.getValue();i?n.list.mark(i):n.list.unmarkAll(),n.panel.showBlock(a.id,new CKEDITOR.dom.element(t),4)}},clickFn:s};e.on("activeFilterChange",i,this),e.on("mode",i,this),e.on("selectionChange",i,this),!this.readOnly&&e.on("readOnly",i,this);var u=CKEDITOR.tools.addFunction(function(t,n){var i=(t=new CKEDITOR.dom.event(t)).getKeystroke();switch(40==i&&e.once("panelShow",function(e){e.data._.panel._.currentBlock.onKeyDown(40)}),i){case 13:case 32:case 40:CKEDITOR.tools.callFunction(s,n);break;default:l.onkey(l,i)}t.preventDefault()}),c=CKEDITOR.tools.addFunction(function(){l.onfocus&&l.onfocus()}),d=0;return l.keyDownFn=u,o={id:r,name:this.name||this.command,label:this.label,title:this.title,cls:this.className||"",titleJs:o.gecko&&!o.hc?"":(this.title||"").replace("'",""),keydownFn:u,focusFn:c,clickFn:s},t.output(o,n),this.onRender&&this.onRender(),l},createPanel:function(e){if(!this._.panel){var t=this._.panelDefinition,n=this._.panelDefinition.block,i=t.parent||CKEDITOR.document.getBody(),o="cke_combopanel__"+this.name,r=new CKEDITOR.ui.floatPanel(e,i,t),s=r.addListBlock(this.id,n),a=this;r.onShow=function(){this.element.addClass(o),a.setState(CKEDITOR.TRISTATE_ON),a._.on=1,a.editorFocus&&!e.focusManager.hasFocus&&e.focus(),a.onOpen&&a.onOpen(),e.once("panelShow",function(){s.focus(!s.multiSelect&&a.getValue())})},r.onHide=function(t){this.element.removeClass(o),a.setState(a.modes&&a.modes[e.mode]?CKEDITOR.TRISTATE_OFF:CKEDITOR.TRISTATE_DISABLED),a._.on=0,!t&&a.onClose&&a.onClose()},r.onEscape=function(){r.hide(1)},s.onClick=function(e,t){a.onClick&&a.onClick.call(a,e,t),r.hide()},this._.panel=r,this._.list=s,r.getBlock(this.id).onHide=function(){a._.on=0,a.setState(CKEDITOR.TRISTATE_OFF)},this.init&&this.init()}},setValue:function(e,t){this._.value=e;var n=this.document.getById("cke_"+this.id+"_text");n&&(e||t?n.removeClass("cke_combo_inlinelabel"):(t=this.label,n.addClass("cke_combo_inlinelabel")),n.setText("undefined"!=typeof t?t:e))},getValue:function(){return this._.value||""},unmarkAll:function(){this._.list.unmarkAll()},mark:function(e){this._.list.mark(e)},hideItem:function(e){this._.list.hideItem(e)},hideGroup:function(e){this._.list.hideGroup(e)},showAll:function(){this._.list.showAll()},add:function(e,t,n){this._.items[e]=n||e,this._.list.add(e,t,n)},startGroup:function(e){this._.list.startGroup(e)},commit:function(){this._.committed||(this._.list.commit(),this._.committed=1,CKEDITOR.ui.fire("ready",this)),this._.committed=1},setState:function(e){if(this._.state!=e){var t=this.document.getById("cke_"+this.id
1);t.setState(e,"cke_combo"),e==CKEDITOR.TRISTATE_DISABLED?t.setAttribute("aria-disabled",!0):t.removeAttribute("aria-disabled"),this._.state=e}},getState:function(){return this._.state},enable:function(){this._.state==CKEDITOR.TRISTATE_DISABLED&&this.setState(this._.lastState)},disable:function(){this._.state!=CKEDITOR.TRISTATE_DISABLED&&(this._.lastState=this._.state,this.setState(CKEDITOR.TRISTATE_DISABLED))}},statics:{handler:{create:function(e){return new CKEDITOR.ui.richCombo(e)}}}}),CKEDITOR.ui.prototype.addRichCombo=function(e,t){this.add(e,CKEDITOR.UI_RICHCOMBO,t)}}(),CKEDITOR.plugins.add("format",{requires:"richcombo",init:function(e){if(!e.blockless){for(var t=e.config,n=e.lang.format,i=t.format_tags.split(";"),o={},r=0,s=[],a=0;a<i.length;a++){var l=i[a],u=new CKEDITOR.style(t["format_"+l]);e.filter.customConfig&&!e.filter.check(u)||(r++,o[l]=u,o[l]._.enterMode=e.config.enterMode,s.push(u))}0!==r&&e.ui.addRichCombo("Format",{label:n.label,title:n.panelTitle,toolbar:"styles,20",allowedContent:s,panel:{css:[CKEDITOR.skin.getPath("editor")].concat(t.contentsCss),multiSelect:!1,attributes:{"aria-label":n.panelTitle}},init:function(){for(var e in this.startGroup(n.panelTitle),o){var t=n["tag_"+e];this.add(e,o[e].buildPreview(t),t)}},onClick:function(t){e.focus(),e.fire("saveSnapshot"),t=o[t];var n=e.elementPath();e[t.checkActive(n,e)?"removeStyle":"applyStyle"](t),setTimeout(function(){e.fire("saveSnapshot")},0)},onRender:function(){e.on("selectionChange",function(t){var n=this.getValue();for(var i in t=t.data.path,this.refresh(),o)if(o[i].checkActive(t,e))return void(i!=n&&this.setValue(i,e.lang.format["tag_"+i]));this.setValue("")},this)},onOpen:function(){for(var t in this.showAll(),o)e.activeFilter.check(o[t])||this.hideItem(t)},refresh:function(){var t=e.elementPath();if(t){if(t.isContextFor("p"))for(var n in o)if(e.activeFilter.check(o[n]))return;this.setState(CKEDITOR.TRISTATE_DISABLED)}}})}}}),CKEDITOR.config.format_tags="p;h1;h2;h3;h4;h5;h6;pre;address;div",CKEDITOR.config.format_p={element:"p"},CKEDITOR.config.format_div={element:"div"},CKEDITOR.config.format_pre={element:"pre"},CKEDITOR.config.format_address={element:"address"},CKEDITOR.config.format_h1={element:"h1"},CKEDITOR.config.format_h2={element:"h2"},CKEDITOR.config.format_h3={element:"h3"},CKEDITOR.config.format_h4={element:"h4"},CKEDITOR.config.format_h5={element:"h5"},CKEDITOR.config.format_h6={element:"h6"},function(){var e={canUndo:!1,exec:function(e){var t=e.document.createElement("hr");e.insertElement(t)},allowedContent:"hr",requiredContent:"hr"};CKEDITOR.plugins.add("horizontalrule",{init:function(t){t.blockless||(t.addCommand("horizontalrule",e),t.ui.addButton&&t.ui.addButton("HorizontalRule",{label:t.lang.horizontalrule.toolbar,command:"horizontalrule",toolbar:"insert,40"}))}})}(),CKEDITOR.plugins.add("htmlwriter",{init:function(e){var t=new CKEDITOR.htmlWriter;t.forceSimpleAmpersand=e.config.forceSimpleAmpersand,t.indentationChars=e.config.dataIndentationChars||"\t",e.dataProcessor.writer=t}}),CKEDITOR.htmlWriter=CKEDITOR.tools.createClass({base:CKEDITOR.htmlParser.basicWriter,$:function(){this.base(),this.indentationChars="\t",this.selfClosingEnd=" />",this.lineBreakChars="\n",this.sortAttributes=1,this._.indent=0,this._.indentation="",this._.inPre=0,this._.rules={};var e,t=CKEDITOR.dtd;for(e in CKEDITOR.tools.extend({},t.$nonBodyContent,t.$block,t.$listItem,t.$tableContent))this.setRules(e,{indent:!t[e]["#"],breakBeforeOpen:1,breakBeforeClose:!t[e]["#"],breakAfterClose:1,needsSpace:e in t.$block&&!(e in{li:1,dt:1,dd:1})});this.setRules("br",{breakAfterOpen:1}),this.setRules("title",{indent:0,breakAfterOpen:0}),this.setRules("style",{indent:0,breakBeforeClose:1}),this.setRules("pre",{breakAfterOpen:1,indent:0})},proto:{openTag:function(e){var t=this._.rules[e];this._.afterCloser&&t&&t.needsSpace&&this._.needsSpace&&this._.output.push("\n"),this._.indent?this.indentation():t&&t.breakBeforeOpen&&(this.lineBreak(),this.indentation()),this._.output.push("<",e),this._.afterCloser=0},openTagClose:function(e,t){var n=this._.rules[e];t?(this._.output.push(this.selfClosingEnd),n&&n.breakAfterClose&&(this._.needsSpace=n.needsSpace)):(this._.output.push(">"),n&&n.indent&&(this._.indentation+=this.indentationChars)),n&&n.breakAfterOpen&&this.lineBreak(),"pre"==e&&(this._.inPre=1)},attribute:function(e,t){"string"==typeof t&&(this.forceSimpleAmpersand&&(t=t.replace(/&/g,"&")),t=CKEDITOR.tools.htmlEncodeAttr(t)),this._.output.push(" ",e,'="',t,'"')},closeTag:function(e){var t=this._.rules[e];t&&t.indent&&(this._.indentation=this._.indentation.substr(this.indentationChars.length)),this._.indent?this.indentation():t&&t.breakBeforeClose&&(this.lineBreak(),this.indentation()),this._.output.push("</",e,">"),"pre"==e&&(this._.inPre=0),t&&t.breakAfterClose&&(this.lineBreak(),this._.needsSpace=t.needsSpace),this._.afterCloser=1},text:function(e){this._.indent&&(this.indentation(),!this._.inPre&&(e=CKEDITOR.tools.ltrim(e))),this._.output.push(e)},comment:function(e){this._.indent&&this.indentation(),this._.output.push("\x3c!--",e,"--\x3e")},lineBreak:function(){!this._.inPre&&0<this._.output.length&&this._.output.push(this.lineBreakChars),this._.indent=1},indentation:function(){!this._.inPre&&this._.indentation&&this._.output.push(this._.indentation),this._.indent=0},reset:function(){this._.output=[],this._.indent=0,this._.indentation="",this._.afterCloser=0,this._.inPre=0,this._.needsSpace=0},setRules:function(e,t){var n=this._.rules[e];
1n?CKEDITOR.tools.extend(n,t,!0):this._.rules[e]=t}}}),function(){function e(e){function t(e){var t=!1;s.attachListener(s,"keydown",function(){var n=i.getBody().getElementsByTag(e);if(!t){for(var o=0;o<n.count();o++)n.getItem(o).setCustomData("retain",!0);t=!0}},null,null,1),s.attachListener(s,"keyup",function(){var n=i.getElementsByTag(e);t&&(1!=n.count()||n.getItem(0).getCustomData("retain")||n.getItem(0).hasAttribute("data-cke-temp")||n.getItem(0).remove(1),t=!1)})}var n=this.editor,i=e.document,o=i.body,r=i.getElementById("cke_actscrpt");r&&r.parentNode.removeChild(r),(r=i.getElementById("cke_shimscrpt"))&&r.parentNode.removeChild(r),(r=i.getElementById("cke_basetagscrpt"))&&r.parentNode.removeChild(r),o.contentEditable=!0,CKEDITOR.env.ie&&(o.hideFocus=!0,o.disabled=!0,o.removeAttribute("disabled")),delete this._.isLoadingData,this.$=o,i=new CKEDITOR.dom.document(i),this.setup(),this.fixInitialSelection();var s=this;CKEDITOR.env.ie&&!CKEDITOR.env.edge&&i.getDocumentElement().addClass(i.$.compatMode),CKEDITOR.env.ie&&!CKEDITOR.env.edge&&n.enterMode!=CKEDITOR.ENTER_P?t("p"):CKEDITOR.env.edge&&n.enterMode!=CKEDITOR.ENTER_DIV&&t("div"),(CKEDITOR.env.webkit||CKEDITOR.env.ie&&10<CKEDITOR.env.version)&&i.getDocumentElement().on("mousedown",function(e){e.data.getTarget().is("html")&&setTimeout(function(){n.editable().focus()})}),function(e){function t(e){e.returnValue=!1}if(CKEDITOR.env.gecko)try{var n=e.document.$;n.execCommand("enableObjectResizing",!1,!e.config.disableObjectResizing),n.execCommand("enableInlineTableEditing",!1,!e.config.disableNativeTableHandles)}catch(e){}else CKEDITOR.env.ie&&11>CKEDITOR.env.version&&e.config.disableObjectResizing&&function(){var n;e.editable().attachListener(e,"selectionChange",function(){var i=e.getSelection().getSelectedElement();i&&(n&&(n.detachEvent("onresizestart",t),n=null),i.$.attachEvent("onresizestart",t),n=i.$)})}()}(n);try{n.document.$.execCommand("2D-position",!1,!0)}catch(e){}(CKEDITOR.env.gecko||CKEDITOR.env.ie&&"CSS1Compat"==n.document.$.compatMode)&&this.attachListener(this,"keydown",function(e){var t=e.data.getKeystroke();if(33==t||34==t)if(CKEDITOR.env.ie)setTimeout(function(){n.getSelection().scrollIntoView()},0);else if(n.window.$.innerHeight>this.$.offsetHeight){var i=n.createRange();i[33==t?"moveToElementEditStart":"moveToElementEditEnd"](this),i.select(),e.data.preventDefault()}}),CKEDITOR.env.ie&&this.attachListener(i,"blur",function(){try{i.$.selection.empty()}catch(e){}}),CKEDITOR.env.iOS&&this.attachListener(i,"touchend",function(){e.focus()}),(o=n.document.getElementsByTag("title").getItem(0)).data("cke-title",o.getText()),CKEDITOR.env.ie&&(n.document.$.title=this._.docTitle),CKEDITOR.tools.setTimeout(function(){"unloaded"==this.status&&(this.status="ready"),n.fire("contentDom"),this._.isPendingFocus&&(n.focus(),this._.isPendingFocus=!1),setTimeout(function(){n.fire("dataReady")},0)},0,this)}var t;CKEDITOR.plugins.add("wysiwygarea",{init:function(e){e.config.fullPage&&e.addFeature({allowedContent:"html head title; style [media,type]; body (*)[id]; meta link [*]",requiredContent:"body"}),e.addMode("wysiwyg",function(n){function i(i){i&&i.removeListener(),e.editable(new t(e,r.$.contentWindow.document.body)),e.setData(e.getData(1),n)}var o="document.open();"+(CKEDITOR.env.ie?"("+CKEDITOR.tools.fixDomain+")();":"")+"document.close();",r=(o=CKEDITOR.env.air?"javascript:void(0)":CKEDITOR.env.ie&&!CKEDITOR.env.edge?"javascript:void(function(){"+encodeURIComponent(o)+"}())":"",CKEDITOR.dom.element.createFromHtml('<iframe src="'+o+'" frameBorder="0"></iframe>'));r.setStyles({width:"100%",height:"100%"}),r.addClass("cke_wysiwyg_frame").addClass("cke_reset"),(o=e.ui.space("contents")).append(r);var s=CKEDITOR.env.ie&&!CKEDITOR.env.edge||CKEDITOR.env.gecko;s&&r.on("load",i);var a=e.title,l=e.fire("ariaEditorHelpLabel",{}).label;if(a&&(CKEDITOR.env.ie&&l&&(a+=", "+l),r.setAttribute("title",a)),l){a=CKEDITOR.tools.getNextId();var u=CKEDITOR.dom.element.createFromHtml('<span id="'+a+'" class="cke_voice_label">'+l+"</span>");o.append(u,1),r.setAttribute("aria-describedby",a)}e.on("beforeModeUnload",function(e){e.removeListener(),u&&u.remove()}),r.setAttributes({tabIndex:e.tabIndex,allowTransparency:"true"}),!s&&i(),e.fire("ariaWidget",r)})}}),CKEDITOR.editor.prototype.addContentsCss=function(e){var t=this.config,n=t.contentsCss;CKEDITOR.tools.isArray(n)||(t.contentsCss=n?[n]:[]),t.contentsCss.push(e)},t=CKEDITOR.tools.createClass({$:function(){this.base.apply(this,arguments),this._.frameLoadedHandler=CKEDITOR.tools.addFunction(function(t){CKEDITOR.tools.setTimeout(e,0,this,t)},this),this._.docTitle=this.getWindow().getFrame().getAttribute("title")},base:CKEDITOR.editable,proto:{setData:function(e,t){var n=this.editor;if(t)this.setHtml(e),this.fixInitialSelection(),n.fire("dataReady");else{this._.isLoadingData=!0,n._.dataStore={id:1};var i=n.config,o=i.fullPage,r=i.docType,s=CKEDITOR.tools.buildStyleHtml(function(){var e=[];
1if(8<=CKEDITOR.document.$.documentMode){e.push("html.CSS1Compat [contenteditable=false]{min-height:0 !important}");var t,n=[];for(t in CKEDITOR.dtd.$removeEmpty)n.push("html.CSS1Compat "+t+"[contenteditable=false]");e.push(n.join(",")+"{display:inline-block}")}else CKEDITOR.env.gecko&&(e.push("html{height:100% !important}"),e.push("img:-moz-broken{-moz-force-broken-image-icon:1;min-width:24px;min-height:24px}"));return e.push("html{cursor:text;*cursor:auto}"),e.push("img,input,textarea{cursor:default}"),e.join("\n")}()).replace(/<style>/,'<style data-cke-temp="1">');o||(s+=CKEDITOR.tools.buildStyleHtml(n.config.contentsCss));var a=i.baseHref?'<base href="'+i.baseHref+'" data-cke-temp="1" />':"";o&&(e=e.replace(/<!DOCTYPE[^>]*>/i,function(e){return n.docType=r=e,""}).replace(/<\?xml\s[^\?]*\?>/i,function(e){return n.xmlDeclaration=e,""})),e=n.dataProcessor.toHtml(e),o?(/<body[\s|>]/.test(e)||(e="<body>"+e),/<html[\s|>]/.test(e)||(e="<html>"+e+"</html>"),/<head[\s|>]/.test(e)?/<title[\s|>]/.test(e)||(e=e.replace(/<head[^>]*>/,"$&<title></title>")):e=e.replace(/<html[^>]*>/,"$&<head><title></title></head>"),a&&(e=e.replace(/<head[^>]*?>/,"$&"+a)),e=e.replace(/<\/head\s*>/,s+"$&"),e=r+e):e=i.docType+'<html dir="'+i.contentsLangDirection+'" lang="'+(i.contentsLanguage||n.langCode)+'"><head><title>'+this._.docTitle+"</title>"+a+s+"</head><body"+(i.bodyId?' id="'+i.bodyId+'"':"")+(i.bodyClass?' class="'+i.bodyClass+'"':"")+">"+e+"</body></html>",CKEDITOR.env.gecko&&(e=e.replace(/<body/,'<body contenteditable="true" '),2e4>CKEDITOR.env.version&&(e=e.replace(/<body[^>]*>/,"$&\x3c!-- cke-content-start --\x3e"))),i='<script id="cke_actscrpt" type="text/javascript"'+(CKEDITOR.env.ie?' defer="defer" ':"")+">var wasLoaded=0;function onload(){if(!wasLoaded)window.parent.CKEDITOR.tools.callFunction("+this._.frameLoadedHandler+",window);wasLoaded=1;}"+(CKEDITOR.env.ie?"onload();":'document.addEventListener("DOMContentLoaded", onload, false );')+"<\/script>",CKEDITOR.env.ie&&9>CKEDITOR.env.version&&(i+='<script id="cke_shimscrpt">window.parent.CKEDITOR.tools.enableHtml5Elements(document)<\/script>'),a&&CKEDITOR.env.ie&&10>CKEDITOR.env.version&&(i+='<script id="cke_basetagscrpt">var baseTag = document.querySelector( "base" );baseTag.href = baseTag.href;<\/script>'),e=e.replace(/(?=\s*<\/(:?head)>)/,i),this.clearCustomData(),this.clearListeners(),n.fire("contentDomUnload");var l=this.getDocument();try{l.write(e)}catch(t){setTimeout(function(){l.write(e)},0)}}},getData:function(e){if(e)return this.getHtml();var t=(e=this.editor).config,n=(r=t.fullPage)&&e.docType,i=r&&e.xmlDeclaration,o=this.getDocument(),r=r?o.getDocumentElement().getOuterHtml():o.getBody().getHtml();return CKEDITOR.env.gecko&&t.enterMode!=CKEDITOR.ENTER_BR&&(r=r.replace(/<br>(?=\s*(:?$|<\/body>))/,"")),r=e.dataProcessor.toDataFormat(r),i&&(r=i+"\n"+r),n&&(r=n+"\n"+r),r},focus:function(){this._.isLoadingData?this._.isPendingFocus=!0:t.baseProto.focus.call(this)},detach:function(){var e,n=this.editor,i=n.document;try{e=n.window.getFrame()}catch(e){}t.baseProto.detach.call(this),this.clearCustomData(),i.getDocumentElement().clearCustomData(),CKEDITOR.tools.removeFunction(this._.frameLoadedHandler),e&&e.getParent()?(e.clearCustomData(),(n=e.removeCustomData("onResize"))&&n.removeListener(),e.remove()):CKEDITOR.warn("editor-destroy-iframe")}}})}(),CKEDITOR.config.disableObjectResizing=!1,CKEDITOR.config.disableNativeTableHandles=!0,CKEDITOR.config.disableNativeSpellChecker=!0,function(){function e(e,t){if(t||(t=e.getSelection().getSelectedElement()),t&&t.is("img")&&!t.data("cke-realelement")&&!t.isReadOnly())return t}function t(e){var t=e.getStyle("float");return"inherit"!=t&&"none"!=t||(t=0),t||(t=e.getAttribute("align")),t}CKEDITOR.plugins.add("image",{requires:"dialog",init:function(t){if(!t.plugins.image2){CKEDITOR.dialog.add("image",this.path+"dialogs/image.js");var n="img[alt,!src]{border-style,border-width,float,height,margin,margin-bottom,margin-left,margin-right,margin-top,width}";CKEDITOR.dialog.isTabEnabled(t,"image","advanced")&&(n="img[alt,dir,id,lang,longdesc,!src,title]{*}(*)"),t.addCommand("image",new CKEDITOR.dialogCommand("image",{allowedContent:n,requiredContent:"img[alt,src]",contentTransformations:[["img{width}
1: sizeToStyle","img[width]: sizeToAttribute"],["img{float}: alignmentToStyle","img[align]: alignmentToAttribute"]]})),t.ui.addButton&&t.ui.addButton("Image",{label:t.lang.common.image,command:"image",toolbar:"insert,10"}),t.on("doubleclick",function(e){var t=e.data.element;!t.is("img")||t.data("cke-realelement")||t.isReadOnly()||(e.data.dialog="image")}),t.addMenuItems&&t.addMenuItems({image:{label:t.lang.image.menu,command:"image",group:"image"}}),t.contextMenu&&t.contextMenu.addListener(function(n){if(e(t,n))return{image:CKEDITOR.TRISTATE_OFF}})}},afterInit:function(n){function i(i){var o=n.getCommand("justify"+i);o&&("left"!=i&&"right"!=i||o.on("exec",function(o){var r=e(n);r&&(t(r)==i?(r.removeStyle("float"),i==t(r)&&r.removeAttribute("align")):r.setStyle("float",i),o.cancel())}),o.on("refresh",function(o){var r=e(n);r&&(r=t(r),this.setState(r==i?CKEDITOR.TRISTATE_ON:"right"==i||"left"==i?CKEDITOR.TRISTATE_OFF:CKEDITOR.TRISTATE_DISABLED),o.cancel())}))}n.plugins.image2||(i("left"),i("right"),i("center"),i("block"))}})}(),CKEDITOR.config.image_removeLinkByEmptyURL=!0,function(){function e(e,i){var o,r;i.on("refresh",function(e){var i,o=[t];for(i in e.data.states)o.push(e.data.states[i]);this.setState(CKEDITOR.tools.search(o,n)?n:t)},i,null,100),i.on("exec",function(t){o=e.getSelection(),r=o.createBookmarks(1),t.data||(t.data={}),t.data.done=!1},i,null,0),i.on("exec",function(){e.forceNextSelectionCheck(),o.selectBookmarks(r)},i,null,100)}var t=CKEDITOR.TRISTATE_DISABLED,n=CKEDITOR.TRISTATE_OFF;CKEDITOR.plugins.add("indent",{init:function(t){var n=CKEDITOR.plugins.indent.genericDefinition;e(t,t.addCommand("indent",new n(!0))),e(t,t.addCommand("outdent",new n)),t.ui.addButton&&(t.ui.addButton("Indent",{label:t.lang.indent.indent,command:"indent",directional:!0,toolbar:"indent,20"}),t.ui.addButton("Outdent",{label:t.lang.indent.outdent,command:"outdent",directional:!0,toolbar:"indent,10"})),t.on("dirChanged",function(e){var n=t.createRange(),i=e.data.node;n.setStartBefore(i),n.setEndAfter(i);for(var o,r=new CKEDITOR.dom.walker(n);o=r.next();)if(o.type==CKEDITOR.NODE_ELEMENT)if(!o.equals(i)&&o.getDirection())n.setStartAfter(o),r=new CKEDITOR.dom.walker(n);else{var s=t.config.indentClasses;if(s)for(var a="ltr"==e.data.dir?["_rtl",""]:["","_rtl"],l=0;l<s.length;l++)o.hasClass(s[l]+a[0])&&(o.removeClass(s[l]+a[0]),o.addClass(s[l]+a[1]));s=o.getStyle("margin-right"),a=o.getStyle("margin-left"),s?o.setStyle("margin-left",s):o.removeStyle("margin-left"),a?o.setStyle("margin-right",a):o.removeStyle("margin-right")}})}}),CKEDITOR.plugins.indent={genericDefinition:function(e){this.isIndent=!!e,this.startDisabled=!this.isIndent},specificDefinition:function(e,t,n){this.name=t,this.editor=e,this.jobs={},this.enterBr=e.config.enterMode==CKEDITOR.ENTER_BR,this.isIndent=!!n,this.relatedGlobal=n?"indent":"outdent",this.indentKey=n?9:CKEDITOR.SHIFT+9,this.database={}},registerCommands:function(e,t){e.on("pluginsLoaded",function(){for(var e in t)!function(e,t){var n,i=e.getCommand(t.relatedGlobal);for(n in t.jobs)i.on("exec",function(i){i.data.done||(e.fire("lockSnapshot"),t.execJob(e,n)&&(i.data.done=!0),e.fire("unlockSnapshot"),CKEDITOR.dom.element.clearAllMarkers(t.database))},this,null,n),i.on("refresh",function(i){i.data.states||(i.data.states={}),i.data.states[t.name+"@"+n]=t.refreshJob(e,n,i.data.path)},this,null,n);e.addFeature(t)}(this,t[e])})}},CKEDITOR.plugins.indent.genericDefinition.prototype={context:"p",exec:function(){}},CKEDITOR.plugins.indent.specificDefinition.prototype={execJob:function(e,n){var i=this.jobs[n];if(i.state!=t)return i.exec.call(this,e)},refreshJob:function(e,n,i){return n=this.jobs[n],e.activeFilter.checkFeature(this)?n.state=n.refresh.call(this,e,i):n.state=t,n.state},getContext:function(e){return e.contains(this.context)}}}(),function(){function e(e){function i(t){for(var i=o.startContainer,l=o.endContainer;i&&!i.getParent().equals(t);)i=i.getParent();for(;l&&!l.getParent().equals(t);)l=l.getParent();if(!i||!l)return!1;for(var u=i,c=(i=[],!1);!c;)u.equals(l)&&(c=!0),i.push(u),u=u.getNext();if(1>i.length)return!1;for(u=t.getParents(!0),l=0;l<u.length;l++)if(u[l].getName&&a[u[l].getName()]){t=u[l];break}u=r.isIndent?1:-1,l=i[0],i=i[i.length-1];var d=(c=CKEDITOR.plugins.list.listToArray(t,s))[i.getCustomData("listarray_index")].indent;for(l=l.getCustomData("listarray_index");l<=i.getCustomData("listarray_index");l++)if(c[l].indent+=u,0<u){var h=c[l].parent;c[l].parent=new CKEDITOR.dom.element(h.getName(),h.getDocument())}for(l=i.getCustomData("listarray_index")+1;l<c.length&&c[l].indent>d;l++)c[l].indent+=u;var f;if((i=CKEDITOR.plugins.list.arrayToList(c,s,null,e.config.enterMode,t.getDirection()),!r.isIndent)&&((f=t.getParent())&&f.is("li"))){var p,g=[];for(l=(u=i.listNode.getChildren()).count()-1;0<=l;l--)(p=u.getItem(l))&&p.is&&p.is("li")&&g.push(p)}if(i&&i.listNode.replace(t),g&&g.length)for(l=0;l<g.length;l++){for(p=t=g[l];(p=p.getNext())&&p.is&&p.getName()in a;)CKEDITOR.env.needsNbspFiller&&!t.getFirst(n)&&t.append(o.document.createText("\xa0")),t.append(p);t.insertAfter(f)}return i&&e.fire("contentDomInvalidated"),!0}for(var o,r=this,s=this.database,a=this.context,l=((l=e.getSelection())&&l.getRanges()).createIterator();o=l.getNextRange();){for(var u=o.getCommonAncestor();u&&(u.type!=CKEDITOR.NODE_ELEMENT||!a[u.getName()]);){if(e.editable().equals(u)){u=!1;break}u=u.getParent()}if(u||(u=o.startPath().contains(a))&&o.setEndAt(u,CKEDITOR.POSITION_BEFORE_END),!u){var c=o.getEnclosedNode();c&&c.type==CKEDITOR.NODE_ELEMENT&&c.getName()in a&&(o.setStartAt(c,CKEDITOR.POSITION_AFTER_START),o.setEndAt(c,CKEDITOR.POSITION_BEFORE_END),u=c)}if(u&&o.startContainer.type==CKEDITOR.NODE_ELEMENT&&o.startContainer.getName()in a&&((c=new CKEDITOR.dom.walker(o)).evaluator=t,o.startContainer=c.next()),u&&o.endContainer.type==CKEDITOR.NODE_ELEMENT&&o.endContainer.getName()in a&&((c=new CKEDITOR.dom.walker(o)).evaluator=t,o.endContainer=c.previous()),u)return i(u)}return 0}function t(e){return e.type==CKEDITOR.NODE_ELEMENT&&e.is("li")}function n(e){return i(e)&&o(e)}
1var i=CKEDITOR.dom.walker.whitespaces(!0),o=CKEDITOR.dom.walker.bookmark(!1,!0),r=CKEDITOR.TRISTATE_DISABLED,s=CKEDITOR.TRISTATE_OFF;CKEDITOR.plugins.add("indentlist",{requires:"indent",init:function(t){function n(t){i.specificDefinition.apply(this,arguments),this.requiredContent=["ul","ol"],t.on("key",function(e){if("wysiwyg"==t.mode&&e.data.keyCode==this.indentKey){var n=this.getContext(t.elementPath());!n||this.isIndent&&CKEDITOR.plugins.indentList.firstItemInPath(this.context,t.elementPath(),n)||(t.execCommand(this.relatedGlobal),e.cancel())}},this),this.jobs[this.isIndent?10:30]={refresh:this.isIndent?function(e,t){var n=this.getContext(t),i=CKEDITOR.plugins.indentList.firstItemInPath(this.context,t,n);return n&&this.isIndent&&!i?s:r}:function(e,t){return!this.getContext(t)||this.isIndent?r:s},exec:CKEDITOR.tools.bind(e,this)}}var i=CKEDITOR.plugins.indent;i.registerCommands(t,{indentlist:new n(t,"indentlist",!0),outdentlist:new n(t,"outdentlist")}),CKEDITOR.tools.extend(n.prototype,i.specificDefinition.prototype,{context:{ol:1,ul:1}})}}),CKEDITOR.plugins.indentList={},CKEDITOR.plugins.indentList.firstItemInPath=function(e,n,i){var o=n.contains(t);return i||(i=n.contains(e)),i&&o&&o.equals(i.getFirst(t))}}(),function(){function e(e,t){var n=i.exec(e),o=i.exec(t);if(n){if(!n[2]&&"px"==o[2])return o[1];if("px"==n[2]&&!o[2])return o[1]+"px"}return t}var t=CKEDITOR.htmlParser.cssStyle,n=CKEDITOR.tools.cssLength,i=/^((?:\d*(?:\.\d+))|(?:\d+))(.*)?$/i,o={elements:{$:function(n){var i=n.attributes;if((i=(i=(i=i&&i["data-cke-realelement"])&&new CKEDITOR.htmlParser.fragment.fromHtml(decodeURIComponent(i)))&&i.children[0])&&n.attributes["data-cke-resizable"]){var o=new t(n).rules;n=i.attributes;var r=o.width;o=o.height;r&&(n.width=e(n.width,r)),o&&(n.height=e(n.height,o))}return i}}};CKEDITOR.plugins.add("fakeobjects",{init:function(e){e.filter.allow("img[!data-cke-realelement,src,alt,title](*){*}","fakeobjects")},afterInit:function(e){(e=(e=e.dataProcessor)&&e.htmlFilter)&&e.addRules(o,{applyToAll:!0})}}),CKEDITOR.editor.prototype.createFakeElement=function(e,i,o,r){var s=(s=this.lang.fakeobjects)[o]||s.unknown;return i={class:i,"data-cke-realelement":encodeURIComponent(e.getOuterHtml()),"data-cke-real-node-type":e.type,alt:s,title:s,align:e.getAttribute("align")||""},CKEDITOR.env.hc||(i.src=CKEDITOR.tools.transparentImageData),o&&(i["data-cke-real-element-type"]=o),r&&(i["data-cke-resizable"]=r,o=new t,r=e.getAttribute("width"),e=e.getAttribute("height"),r&&(o.rules.width=n(r)),e&&(o.rules.height=n(e)),o.populate(i)),this.document.createElement("img",{attributes:i})},CKEDITOR.editor.prototype.createFakeParserElement=function(e,i,o,r){var s,a=(a=this.lang.fakeobjects)[o]||a.unknown;return s=new CKEDITOR.htmlParser.basicWriter,e.writeHtml(s),s=s.getHtml(),i={class:i,"data-cke-realelement":encodeURIComponent(s),"data-cke-real-node-type":e.type,alt:a,title:a,align:e.attributes.align||""},CKEDITOR.env.hc||(i.src=CKEDITOR.tools.transparentImageData),o&&(i["data-cke-real-element-type"]=o),r&&(i["data-cke-resizable"]=r,r=e.attributes,e=new t,o=r.width,r=r.height,void 0!==o&&(e.rules.width=n(o)),void 0!==r&&(e.rules.height=n(r)),e.populate(i)),new CKEDITOR.htmlParser.element("img",i)},CKEDITOR.editor.prototype.restoreRealElement=function(t){if(t.data("cke-real-node-type")!=CKEDITOR.NODE_ELEMENT)return null;var n=CKEDITOR.dom.element.createFromHtml(decodeURIComponent(t.data("cke-realelement")),this.document);if(t.data("cke-resizable")){var i=t.getStyle("width");t=t.getStyle("height"),i&&n.setAttribute("width",e(n.getAttribute("width"),i)),t&&n.setAttribute("height",e(n.getAttribute("height"),t))}return n}}(),function(){function e(e){return e.replace(/'/g,"\\$&")}CKEDITOR.plugins.add("link",{requires:"dialog,fakeobjects",onLoad:function(){function e(e){return n.replace(/%1/g,"rtl"==e?"right":"left").replace(/%2/g,"cke_contents_"+e)}var t="background:url("+CKEDITOR.getUrl(this.path+"images"+(CKEDITOR.env.hidpi?"/hidpi":"")+"/anchor.png")+") no-repeat %1 center;border:1px dotted #00f;background-size:16px;",n=".%2 a.cke_anchor,.%2 a.cke_anchor_empty,.cke_editable.%2 a[name],.cke_editable.%2 a[data-cke-saved-name]{"+t+"padding-%1:18px;
1cursor:auto;}.%2 img.cke_anchor{"+t+"width:16px;min-height:15px;height:1.15em;vertical-align:text-bottom;}";CKEDITOR.addCss(e("ltr")+e("rtl"))},init:function(e){var t="a[!href]";CKEDITOR.dialog.isTabEnabled(e,"link","advanced")&&(t=t.replace("]",",accesskey,charset,dir,id,lang,name,rel,tabindex,title,type,download]{*}(*)")),CKEDITOR.dialog.isTabEnabled(e,"link","target")&&(t=t.replace("]",",target,onclick]")),e.addCommand("link",new CKEDITOR.dialogCommand("link",{allowedContent:t,requiredContent:"a[href]"})),e.addCommand("anchor",new CKEDITOR.dialogCommand("anchor",{allowedContent:"a[!name,id]",requiredContent:"a[name]"})),e.addCommand("unlink",new CKEDITOR.unlinkCommand),e.addCommand("removeAnchor",new CKEDITOR.removeAnchorCommand),e.setKeystroke(CKEDITOR.CTRL+76,"link"),e.ui.addButton&&(e.ui.addButton("Link",{label:e.lang.link.toolbar,command:"link",toolbar:"links,10"}),e.ui.addButton("Unlink",{label:e.lang.link.unlink,command:"unlink",toolbar:"links,20"}),e.ui.addButton("Anchor",{label:e.lang.link.anchor.toolbar,command:"anchor",toolbar:"links,30"})),CKEDITOR.dialog.add("link",this.path+"dialogs/link.js"),CKEDITOR.dialog.add("anchor",this.path+"dialogs/anchor.js"),e.on("doubleclick",function(t){var n=CKEDITOR.plugins.link.getSelectedLink(e)||t.data.element;n.isReadOnly()||(n.is("a")?(t.data.dialog=!n.getAttribute("name")||n.getAttribute("href")&&n.getChildCount()?"link":"anchor",t.data.link=n):CKEDITOR.plugins.link.tryRestoreFakeAnchor(e,n)&&(t.data.dialog="anchor"))},null,null,0),e.on("doubleclick",function(t){t.data.dialog in{link:1,anchor:1}&&t.data.link&&e.getSelection().selectElement(t.data.link)},null,null,20),e.addMenuItems&&e.addMenuItems({anchor:{label:e.lang.link.anchor.menu,command:"anchor",group:"anchor",order:1},removeAnchor:{label:e.lang.link.anchor.remove,command:"removeAnchor",group:"anchor",order:5},link:{label:e.lang.link.menu,command:"link",group:"link",order:1},unlink:{label:e.lang.link.unlink,command:"unlink",group:"link",order:5}}),e.contextMenu&&e.contextMenu.addListener(function(t){if(!t||t.isReadOnly())return null;if(!(t=CKEDITOR.plugins.link.tryRestoreFakeAnchor(e,t))&&!(t=CKEDITOR.plugins.link.getSelectedLink(e)))return null;var n={};return t.getAttribute("href")&&t.getChildCount()&&(n={link:CKEDITOR.TRISTATE_OFF,unlink:CKEDITOR.TRISTATE_OFF}),t&&t.hasAttribute("name")&&(n.anchor=n.removeAnchor=CKEDITOR.TRISTATE_OFF),n}),this.compiledProtectionFunction=function(e){var t;return(e=e.config.emailProtection||"")&&"encode"!=e&&(t={},e.replace(/^([^(]+)\(([^)]+)\)$/,function(e,n,i){t.name=n,t.params=[],i.replace(/[^,\s]+/g,function(e){t.params.push(e)})})),t}(e)},afterInit:function(e){e.dataProcessor.dataFilter.addRules({elements:{a:function(t){return t.attributes.name?t.children.length?null:e.createFakeParserElement(t,"cke_anchor","anchor"):null}}});var t=e._.elementsPath&&e._.elementsPath.filters;t&&t.push(function(t,n){if("a"==n&&(CKEDITOR.plugins.link.tryRestoreFakeAnchor(e,t)||t.getAttribute("name")&&(!t.getAttribute("href")||!t.getChildCount())))return"anchor"})}});var t=/^javascript:/,n=/^mailto:([^?]+)(?:\?(.+))?$/,i=/subject=([^;?:@&=$,\/]*)/i,o=/body=([^;?:@&=$,\/]*)/i,r=/^#(.*)$/,s=/^((?:http|https|ftp|news):\/\/)?(.*)$/,a=/^(_(?:self|top|parent|blank))$/,l=/^javascript:void\(location\.href='mailto:'\+String\.fromCharCode\(([^)]+)\)(?:\+'(.*)')?\)$/,u=/^javascript:([^(]+)\(([^)]+)\)$/,c=/\s*window.open\(\s*this\.href\s*,\s*(?:'([^']*)'|null)\s*,\s*'([^']*)'\s*\)\s*;\s*return\s*false;*\s*/,d=/(?:^|,)([^=]+)=(\d+|yes|no)/gi,h={id:"advId",dir:"advLangDir",accessKey:"advAccessKey",name:"advName",lang:"advLangCode",tabindex:"advTabIndex",title:"advTitle",type:"advContentType",class:"advCSSClasses",charset:"advCharset",style:"advStyles",rel:"advRel"};CKEDITOR.plugins.link={getSelectedLink:function(e){var t=e.getSelection(),n=t.getSelectedElement();return n&&n.is("a")?n:(t=t.getRanges()[0])?(t.shrink(CKEDITOR.SHRINK_TEXT),e.elementPath(t.getCommonAncestor()).contains("a",1)):null},getEditorAnchors:function(e){for(var t,n=(i=(n=e.editable()).isInline()&&!e.plugins.divarea?e.document:n).getElementsByTag("a"),i=i.getElementsByTag("img"),o=[],r=0;t=n.getItem(r++);)(t.data("cke-saved-name")||t.hasAttribute("name"))&&o.push({name:t.data("cke-saved-name")||t.getAttribute("name"),id:t.getAttribute("id")});for(r=0;t=i.getItem(r++);)(t=this.tryRestoreFakeAnchor(e,t))&&o.push({name:t.getAttribute("name"),id:t.getAttribute("id")});return o},fakeAnchor:!0,tryRestoreFakeAnchor:function(e,t){if(t&&t.data("cke-real-element-type")&&"anchor"==t.data("cke-real-element-type")){var n=e.restoreRealElement(t);if(n.data("cke-saved-name"))return n}},parseLinkAttributes:function(e,f){var p,g=f&&(f.data("cke-saved-href")||f.getAttribute("href"))||"",m=e.plugins.link.compiledProtectionFunction,v=e.config.emailProtection,E={};if(g.match(t)&&("encode"==v?g=g.replace(l,function(e,t,n){return n=n||"","mailto:"+String.fromCharCode.apply(String,t.split(","))+n.replace(/\\'/g,"'")}):v&&g.replace(u,function(e,t,n){if(t==m.name){E.type="email",e=E.email={},t=/(^')|('$)/g;for(var i,o=(n=n.match(/[^,\s]+/g)).length,r=0;r<o;r++)i=decodeURIComponent(i=n[r].replace(t,"").replace(/\\'/g,"'")),e[m.params[r].toLowerCase()]=i;e.address=[e.name,e.domain].join("@")}}
1)),!E.type)if(v=g.match(r))E.type="anchor",E.anchor={},E.anchor.name=E.anchor.id=v[1];else if(v=g.match(n)){p=g.match(i),g=g.match(o),E.type="email";var T=E.email={};T.address=v[1],p&&(T.subject=decodeURIComponent(p[1])),g&&(T.body=decodeURIComponent(g[1]))}else g&&(p=g.match(s))&&(E.type="url",E.url={},E.url.protocol=p[1],E.url.url=p[2]);if(f){if(g=f.getAttribute("target"))E.target={type:g.match(a)?g:"frame",name:g};else if(g=(g=f.data("cke-pa-onclick")||f.getAttribute("onclick"))&&g.match(c))for(E.target={type:"popup",name:g[1]};v=d.exec(g[2]);)"yes"!=v[2]&&"1"!=v[2]||v[1]in{height:1,width:1,top:1,left:1}?isFinite(v[2])&&(E.target[v[1]]=v[2]):E.target[v[1]]=!0;null!==f.getAttribute("download")&&(E.download=!0);var y;g={};for(y in h)(v=f.getAttribute(y))&&(g[h[y]]=v);(y=f.data("cke-saved-name")||g.advName)&&(g.advName=y),CKEDITOR.tools.isEmpty(g)||(E.advanced=g)}return E},getLinkAttributes:function(t,n){var i=t.config.emailProtection||"",o={};switch(n.type){case"url":i=n.url&&void 0!==n.url.protocol?n.url.protocol:"http://";var r=n.url&&CKEDITOR.tools.trim(n.url.url)||"";o["data-cke-saved-href"]=0===r.indexOf("/")?r:i+r;break;case"anchor":i=n.anchor&&n.anchor.id,o["data-cke-saved-href"]="#"+(n.anchor&&n.anchor.name||i||"");break;case"email":r=(l=n.email).address;switch(i){case"":case"encode":var s=encodeURIComponent(l.subject||""),a=encodeURIComponent(l.body||""),l=[];s&&l.push("subject="+s),a&&l.push("body="+a),l=l.length?"?"+l.join("&"):"","encode"==i?(i=["javascript:void(location.href='mailto:'+",function(e){for(var t,n=e.length,i=[],o=0;o<n;o++)t=e.charCodeAt(o),i.push(t);return"String.fromCharCode("+i.join(",")+")"}(r)],l&&i.push("+'",e(l),"'"),i.push(")")):i=["mailto:",r,l];break;default:i=r.split("@",2),l.name=i[0],l.domain=i[1],i=["javascript:",function(t,n){var i,o,r=t.plugins.link,s=r.compiledProtectionFunction.params;o=[r.compiledProtectionFunction.name,"("];for(var a=0;a<s.length;a++)i=n[r=s[a].toLowerCase()],0<a&&o.push(","),o.push("'",i?e(encodeURIComponent(n[r])):"","'");return o.push(")"),o.join("")}(t,l)]}o["data-cke-saved-href"]=i.join("")}if(n.target)if("popup"==n.target.type){i=["window.open(this.href, '",n.target.name||"","', '"];var u="resizable status location toolbar menubar fullscreen scrollbars dependent".split(" ");for(r=u.length,s=function(e){n.target[e]&&u.push(e+"="+n.target[e])},l=0;l<r;l++)u[l]+=n.target[u[l]]?"=yes":"=no";s("width"),s("left"),s("height"),s("top"),i.push(u.join(","),"'); return false;"),o["data-cke-pa-onclick"]=i.join("")}else"notSet"!=n.target.type&&n.target.name&&(o.target=n.target.name);if(n.download&&(o.download=""),n.advanced){for(var c in h)(i=n.advanced[h[c]])&&(o[c]=i);o.name&&(o["data-cke-saved-name"]=o.name)}for(var d in o["data-cke-saved-href"]&&(o.href=o["data-cke-saved-href"]),c={target:1,onclick:1,"data-cke-pa-onclick":1,"data-cke-saved-name":1,download:1},n.advanced&&CKEDITOR.tools.extend(c,h),o)delete c[d];return{set:o,removed:CKEDITOR.tools.objectKeys(c)}},showDisplayTextForElement:function(e,t){return(!t.widgets||!t.widgets.focused)&&(!e||!e.getName||!e.is({img:1,table:1,tbody:1,thead:1,tfoot:1,input:1,select:1,textarea:1}))}},CKEDITOR.unlinkCommand=function(){},CKEDITOR.unlinkCommand.prototype={exec:function(e){var t=new CKEDITOR.style({element:"a",type:CKEDITOR.STYLE_INLINE,alwaysRemoveElement:1});e.removeStyle(t)},refresh:function(e,t){var n=t.lastElement&&t.lastElement.getAscendant("a",!0);n&&"a"==n.getName()&&n.getAttribute("href")&&n.getChildCount()?this.setState(CKEDITOR.TRISTATE_OFF):this.setState(CKEDITOR.TRISTATE_DISABLED)},contextSensitive:1,startDisabled:1,requiredContent:"a[href]"},CKEDITOR.removeAnchorCommand=function(){},CKEDITOR.removeAnchorCommand.prototype={exec:function(e){var t,n=e.getSelection(),i=n.createBookmarks();n&&(t=n.getSelectedElement())&&(t.getChildCount()?t.is("a"):CKEDITOR.plugins.link.tryRestoreFakeAnchor(e,t))?t.remove(1):(t=CKEDITOR.plugins.link.getSelectedLink(e))&&(t.hasAttribute("href")?(t.removeAttributes({name:1,"data-cke-saved-name":1}),t.removeClass("cke_anchor")):t.remove(1)),n.selectBookmarks(i)},requiredContent:"a[name]"},CKEDITOR.tools.extend(CKEDITOR.config,{linkShowAdvancedTab:!0,linkShowTargetTab:!0})}(),function(){function e(e,t,n){function i(n){!(l=c[n?"getFirst":"getLast"]())||l.is&&l.isBlockBoundary()||!(u=t.root[n?"getPrevious":"getNext"](CKEDITOR.dom.walker.invisible(!0)))||u.is&&u.isBlockBoundary({br:1})||e.document.createElement("br")[n?"insertBefore":"insertAfter"](l)}for(var o=CKEDITOR.plugins.list.listToArray(t.root,n),r=[],s=0;s<t.contents.length;s++){var a=t.contents[s];(a=a.getAscendant("li",!0))&&!a.getCustomData("list_item_processed")&&(r.push(a),CKEDITOR.dom.element.setMarker(n,a,"list_item_processed",!0))}
1for(a=null,s=0;s<r.length;s++)o[a=r[s].getCustomData("listarray_index")].indent=-1;for(s=a+1;s<o.length;s++)if(o[s].indent>o[s-1].indent+1){for(r=o[s-1].indent+1-o[s].indent,a=o[s].indent;o[s]&&o[s].indent>=a;)o[s].indent+=r,s++;s--}var l,u,c=CKEDITOR.plugins.list.arrayToList(o,n,null,e.config.enterMode,t.root.getAttribute("dir")).listNode;i(!0),i(),c.replace(t.root),e.fire("contentDomInvalidated")}function t(e,t){this.name=e,this.context=this.type=t,this.allowedContent=t+" li",this.requiredContent=t}function n(e,t,n,i){for(var o,r;o=e[i?"getLast":"getFirst"](f);)(r=o.getDirection(1))!==t.getDirection(1)&&o.setAttribute("dir",r),o.remove(),n?o[i?"insertBefore":"insertAfter"](n):t.append(o,i)}function i(e){function t(t){var i=e[t?"getPrevious":"getNext"](c);i&&i.type==CKEDITOR.NODE_ELEMENT&&i.is(e.getName())&&(n(e,i,null,!t),e.remove(),e=i)}t(),t(1)}function o(e){return e.type==CKEDITOR.NODE_ELEMENT&&(e.getName()in CKEDITOR.dtd.$block||e.getName()in CKEDITOR.dtd.$listItem)&&CKEDITOR.dtd[e.getName()]["#"]}function r(e,t,o){e.fire("saveSnapshot"),o.enlarge(CKEDITOR.ENLARGE_LIST_ITEM_CONTENTS);var r=o.extractContents();t.trim(!1,!0);var a=t.createBookmark(),l=(u=new CKEDITOR.dom.elementPath(t.startContainer)).block,u=u.lastElement.getAscendant("li",1)||l,h=(f=new CKEDITOR.dom.elementPath(o.startContainer)).contains(CKEDITOR.dtd.$listItem),f=f.contains(CKEDITOR.dtd.$list);for(l?(l=l.getBogus())&&l.remove():f&&(l=f.getPrevious(c))&&d(l)&&l.remove(),(l=r.getLast())&&l.type==CKEDITOR.NODE_ELEMENT&&l.is("br")&&l.remove(),(l=t.startContainer.getChild(t.startOffset))?r.insertBefore(l):t.startContainer.append(r),h&&(r=s(h))&&(u.contains(h)?(n(r,h.getParent(),h),r.remove()):u.append(r));o.checkStartOfBlock()&&o.checkEndOfBlock()&&(r=(f=o.startPath()).block);)r.is("li")&&(u=r.getParent(),r.equals(u.getLast(c))&&r.equals(u.getFirst(c))&&(r=u)),o.moveToPosition(r,CKEDITOR.POSITION_BEFORE_START),r.remove();o=o.clone(),r=e.editable(),o.setEndAt(r,CKEDITOR.POSITION_BEFORE_END),(o=new CKEDITOR.dom.walker(o)).evaluator=function(e){return c(e)&&!d(e)},(o=o.next())&&o.type==CKEDITOR.NODE_ELEMENT&&o.getName()in CKEDITOR.dtd.$list&&i(o),t.moveToBookmark(a),t.select(),e.fire("saveSnapshot")}function s(e){return(e=e.getLast(c))&&e.type==CKEDITOR.NODE_ELEMENT&&e.getName()in a?e:null}var a={ol:1,ul:1},l=CKEDITOR.dom.walker.whitespaces(),u=CKEDITOR.dom.walker.bookmark(),c=function(e){return!(l(e)||u(e))},d=CKEDITOR.dom.walker.bogus();CKEDITOR.plugins.list={listToArray:function(e,t,n,i,o){if(!a[e.getName()])return[];i||(i=0),n||(n=[]);for(var r=0,s=e.getChildCount();r<s;r++){var l=e.getChild(r);if(l.type==CKEDITOR.NODE_ELEMENT&&l.getName()in CKEDITOR.dtd.$list&&CKEDITOR.plugins.list.listToArray(l,t,n,i+1),"li"==l.$.nodeName.toLowerCase()){var u={parent:e,indent:i,element:l,contents:[]};o?u.grandparent=o:(u.grandparent=e.getParent(),u.grandparent&&"li"==u.grandparent.$.nodeName.toLowerCase()&&(u.grandparent=u.grandparent.getParent())),t&&CKEDITOR.dom.element.setMarker(t,l,"listarray_index",n.length),n.push(u);for(var c,d=0,h=l.getChildCount();d<h;d++)(c=l.getChild(d)).type==CKEDITOR.NODE_ELEMENT&&a[c.getName()]?CKEDITOR.plugins.list.listToArray(c,t,n,i+1,u.grandparent):u.contents.push(c)}}return n},arrayToList:function(e,t,n,i,o){if(n||(n=0),!e||e.length<n+1)return null;for(var r,s,l,d=e[n].parent.getDocument(),h=new CKEDITOR.dom.documentFragment(d),f=null,p=n,g=Math.max(e[n].indent,0),m=null,v=i==CKEDITOR.ENTER_P?"p":"div";;){var E=e[p];if(r=E.grandparent,s=E.element.getDirection(1),E.indent==g){for(f&&e[p].parent.getName()==f.getName()||(f=e[p].parent.clone(!1,1),o&&f.setAttribute("dir",o),h.append(f)),m=f.append(E.element.clone(0,1)),s!=f.getDirection(1)&&m.setAttribute("dir",s),r=0;r<E.contents.length;r++)m.append(E.contents[r].clone(1,1));p++}else if(E.indent==Math.max(g,0)+1)E=e[p-1].element.getDirection(1),p=CKEDITOR.plugins.list.arrayToList(e,null,p,i,E!=s?s:null),!m.getChildCount()&&CKEDITOR.env.needsNbspFiller&&7>=d.$.documentMode&&m.append(d.createText("\xa0")),m.append(p.listNode),p=p.nextIndex;else{if(-1!=E.indent||n||!r)return null;a[r.getName()]?(m=E.element.clone(!1,!0),s!=r.getDirection(1)&&m.setAttribute("dir",s)):m=new CKEDITOR.dom.documentFragment(d);f=r.getDirection(1)!=s;var T,y,C=E.element,b=C.getAttribute("class"),D=C.getAttribute("style"),I=m.type==CKEDITOR.NODE_DOCUMENT_FRAGMENT&&(i!=CKEDITOR.ENTER_BR||f||D||b),O=E.contents.length;for(r=0;r<O;r++)if(T=E.contents[r],u(T)&&1<O)I?y=T.clone(1,1):m.append(T.clone(1,1));else if(T.type==CKEDITOR.NODE_ELEMENT&&T.isBlockBoundary()){f&&!T.getDirection()&&T.setAttribute("dir",s),l=T;var R=C.getAttribute("style");R&&l.setAttribute("style",R.replace(/([^;])$/,"$1;")+(l.getAttribute("style")||"")),b&&T.addClass(b),l=null,y&&(m.append(y),y=null),m.append(T.clone(1,1))}else I?(l||(l=d.createElement(v),m.append(l),f&&l.setAttribute("dir",s)),D&&l.setAttribute("style",D),b&&l.setAttribute("class",b),y&&(l.append(y),y=null),l.a
1ppend(T.clone(1,1))):m.append(T.clone(1,1));y&&((l||m).append(y),y=null),m.type==CKEDITOR.NODE_DOCUMENT_FRAGMENT&&p!=e.length-1&&(CKEDITOR.env.needsBrFiller&&(s=m.getLast())&&s.type==CKEDITOR.NODE_ELEMENT&&s.is("br")&&s.remove(),(s=m.getLast(c))&&s.type==CKEDITOR.NODE_ELEMENT&&s.is(CKEDITOR.dtd.$block)||m.append(d.createElement("br"))),"div"!=(s=m.$.nodeName.toLowerCase())&&"p"!=s||m.appendBogus(),h.append(m),f=null,p++}if(l=null,e.length<=p||Math.max(e[p].indent,0)<g)break}if(t)for(e=h.getFirst();e;){if(e.type==CKEDITOR.NODE_ELEMENT&&(CKEDITOR.dom.element.clearMarkers(t,e),e.getName()in CKEDITOR.dtd.$listItem&&(d=o=i=void 0,i=(n=e).getDirection()))){for(o=n.getParent();o&&!(d=o.getDirection());)o=o.getParent();i==d&&n.removeAttribute("dir")}e=e.getNextSourceNode()}return{listNode:h,nextIndex:p}}};var h=/^h[1-6]$/,f=CKEDITOR.dom.walker.nodeType(CKEDITOR.NODE_ELEMENT);t.prototype={exec:function(t){this.refresh(t,t.elementPath());var n=t.config,o=t.getSelection(),r=o&&o.getRanges();if(this.state==CKEDITOR.TRISTATE_OFF)if((l=t.editable()).getFirst(c)){var s=1==r.length&&r[0];(n=s&&s.getEnclosedNode())&&n.is&&this.type==n.getName()&&this.setState(CKEDITOR.TRISTATE_ON)}else n.enterMode==CKEDITOR.ENTER_BR?l.appendBogus():r[0].fixBlock(1,n.enterMode==CKEDITOR.ENTER_P?"p":"div"),o.selectRanges(r);n=o.createBookmarks(!0);for(var l=[],u={},d=(r=r.createIterator(),0);(s=r.getNextRange())&&++d;){var f=(y=s.getBoundaryNodes()).startNode,p=y.endNode;for(f.type==CKEDITOR.NODE_ELEMENT&&"td"==f.getName()&&s.setStartAt(y.startNode,CKEDITOR.POSITION_AFTER_START),p.type==CKEDITOR.NODE_ELEMENT&&"td"==p.getName()&&s.setEndAt(y.endNode,CKEDITOR.POSITION_BEFORE_END),(s=s.createIterator()).forceBrBreak=this.state==CKEDITOR.TRISTATE_OFF;y=s.getNextParagraph();)if(!y.getCustomData("list_block")){CKEDITOR.dom.element.setMarker(u,y,"list_block",1);f=(m=t.elementPath(y)).elements,p=0;for(var g,m=m.blockLimit,v=f.length-1;0<=v&&(g=f[v]);v--)if(a[g.getName()]&&m.contains(g)){m.removeCustomData("list_group_object_"+d),(f=g.getCustomData("list_group_object"))?f.contents.push(y):(f={root:g,contents:[y]},l.push(f),CKEDITOR.dom.element.setMarker(u,g,"list_group_object",f)),p=1;break}p||((p=m).getCustomData("list_group_object_"+d)?p.getCustomData("list_group_object_"+d).contents.push(y):(f={root:p,contents:[y]},CKEDITOR.dom.element.setMarker(u,p,"list_group_object_"+d,f),l.push(f)))}}for(g=[];0<l.length;)if(f=l.shift(),this.state==CKEDITOR.TRISTATE_OFF)if(a[f.root.getName()]){for(r=t,d=f,f=u,s=g,p=CKEDITOR.plugins.list.listToArray(d.root,f),m=[],y=0;y<d.contents.length;y++)(v=(v=d.contents[y]).getAscendant("li",!0))&&!v.getCustomData("list_item_processed")&&(m.push(v),CKEDITOR.dom.element.setMarker(f,v,"list_item_processed",!0));v=d.root.getDocument();for(var E=void 0,T=void 0,y=0;y<m.length;y++){var C=m[y].getCustomData("listarray_index");(E=p[C].parent).is(this.type)||(T=v.createElement(this.type),E.copyAttributes(T,{start:1,type:1}),T.removeStyle("list-style-type"),p[C].parent=T)}for(f=CKEDITOR.plugins.list.arrayToList(p,f,null,r.config.enterMode),p=void 0,m=f.listNode.getChildCount(),y=0;y<m&&(p=f.listNode.getChild(y));y++)p.getName()==this.type&&s.push(p);f.listNode.replace(d.root),r.fire("contentDomInvalidated")}else{for(p=t,y=g,m=(s=f).contents,r=s.root.getDocument(),d=[],1==m.length&&m[0].equals(s.root)&&(f=r.createElement("div"),m[0].moveChildren&&m[0].moveChildren(f),m[0].append(f),m[0]=f),s=s.contents[0].getParent(),v=0;v<m.length;v++)s=s.getCommonAncestor(m[v].getParent());for(E=p.config.useComputedState,p=f=void 0,E=void 0===E||E,v=0;v<m.length;v++)for(T=m[v];C=T.getParent();){if(C.equals(s)){d.push(T),!p&&T.getDirection()&&(p=1),T=T.getDirection(E),null!==f&&(f=f&&f!=T?null:T);break}T=C}if(!(1>d.length)){for(m=d[d.length-1].getNext(),v=r.createElement(this.type),y.push(v),E=y=void 0;d.length;)y=d.shift(),E=r.createElement("li"),(T=y).is("pre")||h.test(T.getName())||"false"==T.getAttribute("contenteditable")?y.appendTo(E):(y.copyAttributes(E),f&&y.getDirection()&&(E.removeStyle("direction"),E.removeAttribute("dir")),y.moveChildren(E),y.remove()),E.appendTo(v);f&&p&&v.setAttribute("dir",f),m?v.insertBefore(m):v.appendTo(s)}}else this.state==CKEDITOR.TRISTATE_ON&&a[f.root.getName()]&&e.call(this,t,f,u);for(v=0;v<g.length;v++)i(g[v]);CKEDITOR.dom.element.clearAllMarkers(u),o.selectBookmarks(n),t.focus()},refresh:function(e,t){var n=t.contains(a,1),i=t.blockLimit||t.root;n&&i.contains(n)?this.setState(n.is(this.type)?CKEDITOR.TRISTATE_ON:CKEDITOR.TRISTATE_OFF):this.setState(CKEDITOR.TRISTATE_OFF)}},CKEDITOR.plugins.add("list",{requires:"indentlist",init:function(e){e.blockless||(e.addCommand("numberedlist",new t("numberedlist","ol")),e.addCommand("bulletedlist",new t("bulletedlist","ul")),e.ui.addButton&&(e.ui.addButton("NumberedList",{label:e.lang.list.numberedlist,command:"numberedlist",directional:!0,toolbar:"list,10"}),e.ui.addButton("BulletedList",{label:e.lang.list.bulletedlist,command:"bulletedlist",directional:!0,toolbar:"list,20"})),e.on("key",function(t){var n,i=t.data.domEvent.getKey();if("wysiwyg"==e.mode&&i in{8:1,46:1}){var l=e.getSelection().getRanges()[0],u=l&&l.startPath();if(l&&l.collapsed){var h,f=8==i,p=e.editable(),g=new CKEDITOR.dom.walker(l.clone());
1if(g.evaluator=function(e){return c(e)&&!d(e)},g.guard=function(e,t){return!(t&&e.type==CKEDITOR.NODE_ELEMENT&&e.is("table"))},i=l.clone(),f)if((h=u.contains(a))&&l.checkBoundaryOfElement(h,CKEDITOR.START)&&(h=h.getParent())&&h.is("li")&&(h=s(h))?(n=h,h=h.getPrevious(c),i.moveToPosition(h&&d(h)?h:n,CKEDITOR.POSITION_BEFORE_START)):(g.range.setStartAt(p,CKEDITOR.POSITION_AFTER_START),g.range.setEnd(l.startContainer,l.startOffset),(h=g.previous())&&h.type==CKEDITOR.NODE_ELEMENT&&(h.getName()in a||h.is("li"))&&(h.is("li")||(g.range.selectNodeContents(h),g.reset(),g.evaluator=o,h=g.previous()),n=h,i.moveToElementEditEnd(n),i.moveToPosition(i.endPath().block,CKEDITOR.POSITION_BEFORE_END))),n)r(e,i,l),t.cancel();else{var m=u.contains(a);m&&l.checkBoundaryOfElement(m,CKEDITOR.START)&&(n=m.getFirst(c),l.checkBoundaryOfElement(n,CKEDITOR.START)&&(h=m.getPrevious(c),s(n)?h&&(l.moveToElementEditEnd(h),l.select()):e.execCommand("outdent"),t.cancel()))}else if(n=u.contains("li")){if(g.range.setEndAt(p,CKEDITOR.POSITION_BEFORE_END),f=(p=n.getLast(c))&&o(p)?p:n,u=0,(h=g.next())&&h.type==CKEDITOR.NODE_ELEMENT&&h.getName()in a&&h.equals(p)?(u=1,h=g.next()):l.checkBoundaryOfElement(f,CKEDITOR.END)&&(u=2),u&&h){if((l=l.clone()).moveToElementEditStart(h),1==u&&(i.optimize(),!i.startContainer.equals(n))){for(n=i.startContainer;n.is(CKEDITOR.dtd.$inline);)m=n,n=n.getParent();m&&i.moveToPosition(m,CKEDITOR.POSITION_AFTER_END)}2==u&&(i.moveToPosition(i.endPath().block,CKEDITOR.POSITION_BEFORE_END),l.endPath().block&&l.moveToPosition(l.endPath().block,CKEDITOR.POSITION_AFTER_START)),r(e,i,l),t.cancel()}}else g.range.setEndAt(p,CKEDITOR.POSITION_BEFORE_END),(h=g.next())&&h.type==CKEDITOR.NODE_ELEMENT&&h.is(a)&&(h=h.getFirst(c),u.block&&l.checkStartOfBlock()&&l.checkEndOfBlock()?(u.block.remove(),l.moveToElementEditStart(h),l.select()):s(h)?(l.moveToElementEditStart(h),l.select()):((l=l.clone()).moveToElementEditStart(h),r(e,i,l)),t.cancel());setTimeout(function(){e.selectionChange(1)})}}}))}})}(),function(){function e(e,t,n){return c(t)&&c(n)&&n.equals(t.getNext(function(e){return!(W(e)||V(e)||d(e))}))}function t(e){this.upper=e[0],this.lower=e[1],this.set.apply(this,e.slice(2))}function n(e){var t=e.element;if(t&&c(t)&&(t=t.getAscendant(e.triggers,!0))&&e.editable.contains(t)){var n=s(t);if("true"==n.getAttribute("contenteditable"))return t;if(n.is(e.triggers))return n}return null}function i(e,t,n){return E(e,t),E(e,n),e=t.size.bottom,n=n.size.top,e&&n?0|(e+n)/2:e||n}function o(e,t,n){return t[n?"getPrevious":"getNext"](function(t){return t&&t.type==CKEDITOR.NODE_TEXT&&!W(t)||c(t)&&!d(t)&&!u(e,t)})}function r(e,t,n){return e>t&&e<n}function s(e,t){if(e.data("cke-editable"))return null;for(t||(e=e.getParent());e&&!e.data("cke-editable");){if(e.hasAttribute("contenteditable"))return e;e=e.getParent()}return null}function a(e,t,n){var i,o=new CKEDITOR.dom.range(e.doc),r=e.editor;I.ie&&e.enterMode==CKEDITOR.ENTER_BR?i=e.doc.createText(L):(i=(i=s(e.element,!0))&&i.data("cke-enter-mode")||e.enterMode,(i=new b(_[i],e.doc)).is("br")||e.doc.createText(L).appendTo(i)),n&&r.fire("saveSnapshot"),t(i),o.moveToPosition(i,CKEDITOR.POSITION_AFTER_START),r.getSelection().selectRanges([o]),e.hotNode=i,n&&r.fire("saveSnapshot")}function l(e,t){return{canUndo:!0,modes:{wysiwyg:1},exec:function(){function i(n){var i=I.ie&&9>I.version?" ":L,o=e.hotNode&&e.hotNode.getText()==i&&e.element.equals(e.hotNode)&&e.lastCmdDirection===!!t;a(e,function(i){o&&e.hotNode&&e.hotNode.remove(),i[t?"insertAfter":"insertBefore"](n),i.setAttributes({"data-cke-magicline-hot":1,"data-cke-magicline-dir":!!t}),e.lastCmdDirection=!!t}),I.ie||e.enterMode==CKEDITOR.ENTER_BR||e.hotNode.scrollIntoView(),e.line.detach()}return function(r){var a,l;(r=(r=r.getSelection().getStartElement()).getAscendant(M,1),p(e,r)||!r||r.equals(e.editable)||r.contains(e.editable))||((a=s(r))&&"false"==a.getAttribute("contenteditable")&&(r=a),e.element=r,c(a=o(e,r,!t))&&a.is(e.triggers)&&a.is(B)&&(!o(e,a,!t)||(l=o(e,a,!t))&&c(l)&&l.is(e.triggers))?i(a):c(l=n(e))&&(o(e,l,!t)?(r=o(e,l,!t))&&c(r)&&r.is(e.triggers)&&i(l):i(l)))}}()}}function u(e,t){if(!t||t.type!=CKEDITOR.NODE_ELEMENT||!t.$)return!1;var n=e.line;return n.wrap.equals(t)||n.wrap.contains(t)}function c(e){return e&&e.type==CKEDITOR.NODE_ELEMENT&&e.$}function d(e){return!!c(e)&&((t=h(e))||(c(e)?t=!(!(t={left:1,right:1,center:1})[e.getComputedStyle("float")]&&!t[e.getAttribute("align")]):t=!1),t);var t}function h(e){return!!{absolute:1,fixed:1}[e.getComputedStyle("position")]}function f(e,t){return c(t)?t.is(e.triggers):null}function p(e,t){if(!t)return!1;for(var n=t.getParents(1),i=n.length;i--;)for(var o=e.tabuList.length;o--;)if(n[i].hasAttribute(e.tabuList[o]))return!0;return!1}function g(e){var n=e.editable,i=e.mouse,o=e.view,s=e.triggerOffset;T(e);var a=i.y>(e.inInlineMode?o.editable.top+o.editable.height/2:Math.min(o.editable.height,o.pane.height)/2);return(n=n[a?"getLast":"getFirst"](function(e){return!(W(e)||V(e))}))?(u(e,n)&&(n=e.line.wrap[a?"getPrevious":"getNext"](function(e){return!(W(e)||V(e))})),c(n)&&!d(n)&&f(e,n)?(E(e,n),!a&&0<=n.size.top&&r(i.y,0,n.size.top+s)?(e=e.inInlineMode||0===o.scroll.y?x:A,new t([null,n,w,S,e])):a&&n.size.bottom<=o.pane.height&&r(i.y,n.size.bottom-s,o.pane.height)?(e=e.inInlineMode||r(n.size.bottom,o.pane.height-s,o.pane.height)?N:A,new t([n,null,k,S,e])):null):null):null}function m(e){var i=e.mouse,s=e.view,a=e.triggerOffset,l=n(e);if(!l)return null;E(e,l);a=Math.min(a,0|l.size.outerHeight/2);var u,h,p=[];if(r(i.y,l.size.top-1,l.size.top+a))h=!1;else{if(!r(i.y,l.size.bottom-a,l.size.bottom+1))return null;h=!0}if(d(l)||function(e,t,n){return!!(t=t[n?"getLast":"getFirst"](function(t){return e.isRelevant(t)&&!t.is(P)}))&&(E(e,t),n?t.size.top>e.mouse.y:t.size.bottom<e.mouse.y)}(e,l,h)||l.getParent().is(F))return null;var g=o(e,l,!h);if(g){if(g&&g.type==CKEDITOR.NODE_TEXT)return null;if(c(g)){if(d(g)||!f(e,g)||g.getParent().is(F))return null;p=[g,l][h?"reverse":"concat"]().concat([K,S])}}else l.equals(e.editable[h?"getLast":"getFirst"](e.isRelevant))?(T(e),h&&r(i.y,l.size.bottom-a,s.pane.height)&&r(l.size.bottom,s.pane.height-a,s.pane.height)?u=N:r(i.y,0,l.size.top+a)&&(u=x)):u=A,p=[null,l][h?"reverse":"concat"]().concat([h?k:w,S,u,l.equals(e.editable[h?"getLast":"getFirst"](e.isRelevant))?h?N:x:A]);return 0 in p?new t(p):null}function v(e,t,n,i){for(var o=t.getDocumentPosition(),r={},s={},a={},l={},u=G.length;u--;)r[G[u]]=parseInt(t.getComputedStyle.call(t,"border-"+G[u]+"-width"),10)||0,a[G[u]]=parseInt(t.getComputedStyle.call(t,"padding-"+G[u]),10)||0,s[G[u]]=parseInt(t.getComputedStyle.call(t,"margin-"+G[u]),10)||0;return n&&!i||y(e,i),l.top=o.y-(n?0:e.view.scroll.y),l.left=o.x-(n?0:e.view.scroll.x),l.outerWidth=t.$.offsetWidth,l.outerHeight=t.$.offsetHeight,l.height=l.outerHeight-(a.top+a.bottom+r.top+r.bottom),l.width=l.outerWidth-(a.left+a.right+r.left+r.right),l.bottom=l.top+l.outerHeight,l.right=l.left+l.outerWidth,e.inInlineMode&&(l.scroll={top:t.$.scrollTop,left:t.$.scrollLeft}),C({border:r,padding:a,margin:s,ignoreScroll:n},l,!0)}function E(e,t,n){if(!c(t))return t.size=null;if(t.size){if(t.size.ignoreScroll==n&&t.size.date>new Date-$)return null}else t.size={};return C(t.size,v(e,t,n),{date:+new Date},!0)}function T(e,t){e.view.editable=v(e,e.editable,t,!0)}function y(e,t){e.view||(e.view={});var n=e.view;if(!(!t&&n&&n.date>new Date-$)){n=(i=e.win).getScrollPosition();var i=i.getViewPaneSize();C(e.view,{scroll:{x:n.x,y:n.y,width:e.doc.$.documentElement.scrollWidth-i.width,height:e.doc.$.documentElement.scrollHeight-i.height},pane:{width:i.width,height:i.height,bottom:i.height+n.y},date:+new Date},!0)}}CKEDITOR.plugins.add("magicline",{init:function(e){var i,s,f,_=e.config,k=_.magicline_triggerOffset||30,K={editor:e,enterMode:_.enterMode,triggerOffset:k,holdDistance:0|k*(_.magicline_holdDistance||.5),boxColor:_.magicline_color||"#ff0000",rtl:"rtl"==_.contentsLangDirection,tabuList:["data-cke-hidden-sel"].concat(_.magicline_tabuList||[]),triggers:_.magicline_everywhere?M:{table:1,hr:1,div:1,ul:1,ol:1,dl:1,form:1,blockquote:1}};K.isRelevant=function(e){return c(e)&&!u(K,e)&&!d(e)},e.on("contentDom",function(){var c=e.editable(),d=e.document,k=e.window;C(K,{editable:c,inInlineMode:c.isInline(),doc:d,win:k,hotNode:null},!0),K.boundary=K.inInlineMode?K.editable:K.doc.getDocumentElement(),c.is(R.$inline)||(K.inInlineMode&&!h(c)&&c.setStyles({position:"relative",top:null,left:null}),(function(e){var t=e.doc,n=D('<span contenteditable="false" style="'+H+"position:absolute;border-top:1px dashed "+e.boxColor+'"></span>',t),i=CKEDITOR.getUrl(this.path+"images/"+(I.hidpi?"hidpi/":"")+"icon"+(e.rtl?"-rtl":"")+".png");for(C(n,{attach:function(){return this.wrap.getParent()||this.wrap.appendTo(e.editable,!0),this},lineChildren:[C(D('<span title="'+e.editor.lang.magicline.title+'" contenteditable="false">↵</span>',t),{base:H+"height:17px;width:17px;"+(e.rtl?"left":"right")+":17px;background:url("+i+") center no-repeat "+e.boxColor+";cursor:pointer;"+(I.hc?"font-size: 15px;line-height:14px;border:1px solid #fff;text-align:center;":"")+(I.hidpi?"background-size: 9px 10px;":""),looks:["top:-8px; border-radius: 2px;
1","top:-17px; border-radius: 2px 2px 0px 0px;","top:-1px; border-radius: 0px 0px 2px 2px;"]}),C(D(q,t),{base:j+"left:0px;border-left-color:"+e.boxColor+";",looks:["border-width:8px 0 8px 8px;top:-8px","border-width:8px 0 0 8px;top:-8px","border-width:0 0 8px 8px;top:0px"]}),C(D(q,t),{base:j+"right:0px;border-right-color:"+e.boxColor+";",looks:["border-width:8px 8px 8px 0;top:-8px","border-width:8px 8px 0 0;top:-8px","border-width:0 8px 8px 0;top:0px"]})],detach:function(){return this.wrap.getParent()&&this.wrap.remove(),this},mouseNear:function(){E(e,this);var t=e.holdDistance,n=this.size;return!!(n&&r(e.mouse.y,n.top-t,n.bottom+t)&&r(e.mouse.x,n.left-t,n.right+t))},place:function(){var t=e.view,n=e.editable,i=e.trigger,o=i.upper,s=i.lower,a=o||s,l=a.getParent(),u={};for(var c in this.trigger=i,o&&E(e,o,!0),s&&E(e,s,!0),E(e,l,!0),e.inInlineMode&&T(e,!0),l.equals(n)?(u.left=t.scroll.x,u.right=-t.scroll.x,u.width=""):(u.left=a.size.left-a.size.margin.left+t.scroll.x-(e.inInlineMode?t.editable.left+t.editable.border.left:0),u.width=a.size.outerWidth+a.size.margin.left+a.size.margin.right+t.scroll.x,u.right=""),o&&s?u.top=o.size.margin.bottom===s.size.margin.top?0|o.size.bottom+o.size.margin.bottom/2:o.size.margin.bottom<s.size.margin.top?o.size.bottom+o.size.margin.bottom:o.size.bottom+o.size.margin.bottom-s.size.margin.top:o?s||(u.top=o.size.bottom+o.size.margin.bottom):u.top=s.size.top-s.size.margin.top,i.is(x)||r(u.top,t.scroll.y-15,t.scroll.y+5)?(u.top=e.inInlineMode?0:t.scroll.y,this.look(x)):i.is(N)||r(u.top,t.pane.bottom-5,t.pane.bottom+15)?(u.top=e.inInlineMode?t.editable.height+t.editable.padding.top+t.editable.padding.bottom:t.pane.bottom-1,this.look(N)):(e.inInlineMode&&(u.top-=t.editable.top+t.editable.border.top),this.look(A)),e.inInlineMode&&(u.top--,u.top+=t.editable.scroll.top,u.left+=t.editable.scroll.left),u)u[c]=CKEDITOR.tools.cssLength(u[c]);this.setStyles(u)},look:function(e){if(this.oldLook!=e){for(var t,n=this.lineChildren.length;n--;)(t=this.lineChildren[n]).setAttribute("style",t.base+t.looks[0|e/2]);this.oldLook=e}},wrap:new b("span",e.doc)}),t=n.lineChildren.length;t--;)n.lineChildren[t].appendTo(n);n.look(A),n.appendTo(n.wrap),n.unselectable(),n.lineChildren[0].on("mouseup",function(t){n.detach(),a(e,function(t){var n=e.line.trigger;t[n.is(w)?"insertBefore":"insertAfter"](n.is(w)?n.lower:n.upper)},!0),e.editor.focus(),I.ie||e.enterMode==CKEDITOR.ENTER_BR||e.hotNode.scrollIntoView(),t.data.preventDefault(!0)}),n.on("mousedown",function(e){e.data.preventDefault(!0)}),e.line=n}).call(this,K),y(K),c.attachListener(e,"beforeUndoImage",function(){K.line.detach()}),c.attachListener(e,"beforeGetData",function(){K.line.wrap.getParent()&&(K.line.detach(),e.once("getData",function(){K.line.attach()},null,null,1e3))},null,null,0),c.attachListener(K.inInlineMode?d:d.getWindow().getFrame(),"mouseout",function(t){if("wysiwyg"==e.mode)if(K.inInlineMode){var n=t.data.$.clientX;t=t.data.$.clientY,y(K),T(K,!0);var i=K.view.editable,o=K.view.scroll;n>i.left-o.x&&n<i.right-o.x&&t>i.top-o.y&&t<i.bottom-o.y||(clearTimeout(f),f=null,K.line.detach())}else clearTimeout(f),f=null,K.line.detach()}),c.attachListener(c,"keyup",function(){K.hiddenMode=0}),c.attachListener(c,"keydown",function(t){if("wysiwyg"==e.mode)switch(t.data.getKeystroke()){case 2228240:case 16:K.hiddenMode=1,K.line.detach()}}),c.attachListener(K.inInlineMode?c:d,"mousemove",function(t){if(s=!0,"wysiwyg"==e.mode&&!e.readOnly&&!f){var n={x:t.data.$.clientX,y:t.data.$.clientY};f=setTimeout(function(){K.mouse=n,f=K.trigger=null,y(K),s&&!K.hiddenMode&&e.focusManager.hasFocus&&!K.line.mouseNear()&&(K.element=z(K,!0))&&((K.trigger=g(K)||m(K)||U(K))&&!p(K,K.trigger.upper||K.trigger.lower)?K.line.attach().place():(K.trigger=null,K.line.detach()),s=!1)},30)}}),c.attachListener(k,"scroll",function(){"wysiwyg"==e.mode&&(K.line.detach(),I.webkit&&(K.hiddenMode=1,clearTimeout(i),i=setTimeout(function(){K.mouseDown||(K.hiddenMode=0)},50)))}),c.attachListener(O?d:k,"mousedown",function(){"wysiwyg"==e.mode&&(K.line.detach(),K.hiddenMode=1,K.mouseDown=1)}),c.attachListener(O?d:k,"mouseup",function(){K.hiddenMode=0,K.mouseDown=0}),e.addCommand("accessPreviousSpace",l(K)),e.addCommand("accessNextSpace",l(K,!0)),e.setKeystroke([[_.magicline_keystrokePrevious,"accessPreviousSpace"],[_.magicline_keystrokeNext,"accessNextSpace"]]),e.on("loadSnapsh
1ot",function(){var t,n,i,o;for(o in{p:1,br:1,div:1})for(i=(t=e.document.getElementsByTag(o)).count();i--;)if((n=t.getItem(i)).data("cke-magicline-hot"))return K.hotNode=n,void(K.lastCmdDirection="true"===n.data("cke-magicline-dir"))}),this.backdoor={accessFocusSpace:a,boxTrigger:t,isLine:u,getAscendantTrigger:n,getNonEmptyNeighbour:o,getSize:v,that:K,triggerEdge:m,triggerEditable:g,triggerExpand:U})},this)}});var C=CKEDITOR.tools.extend,b=CKEDITOR.dom.element,D=b.createFromHtml,I=CKEDITOR.env,O=CKEDITOR.env.ie&&9>CKEDITOR.env.version,R=CKEDITOR.dtd,_={},w=128,k=64,K=32,S=16,x=4,N=2,A=1,L="\xa0",F=R.$listItem,P=R.$tableContent,B=C({},R.$nonEditable,R.$empty),M=R.$block,$=100,H="width:0px;height:0px;padding:0px;margin:0px;display:block;z-index:9999;color:#fff;position:absolute;font-size: 0px;line-height:0px;",j=H+"border-color:transparent;display:block;border-style:solid;",q="<span>"+L+"</span>";_[CKEDITOR.ENTER_BR]="br",_[CKEDITOR.ENTER_P]="p",_[CKEDITOR.ENTER_DIV]="div",t.prototype={set:function(e,t,n){return this.properties=e+t+(n||A),this},is:function(e){return(this.properties&e)==e}};var z=function(){function e(e,t){var n=e.$.elementFromPoint(t.x,t.y);return n&&n.nodeType?new CKEDITOR.dom.element(n):null}return function(t,n,i){if(!t.mouse)return null;var o=t.doc,r=t.line.wrap,s=e(o,i=i||t.mouse);return n&&u(t,s)&&(r.hide(),s=e(o,i),r.show()),!s||s.type!=CKEDITOR.NODE_ELEMENT||!s.$||I.ie&&9>I.version&&!t.boundary.equals(s)&&!t.boundary.contains(s)?null:s}}(),W=CKEDITOR.dom.walker.whitespaces(),V=CKEDITOR.dom.walker.nodeType(CKEDITOR.NODE_COMMENT),U=function(){function n(n){var s,a,l;if(!c(p=n.element)||p.contains(n.editable)||p.isReadOnly())return null;if(l=function(e,n,i,o){for(var r=o,s=o,a=0,l=!1,u=!1,c=e.view.pane.height,d=e.mouse;d.y+a<c&&0<d.y-a&&(l||(l=n(r,o)),u||(u=n(s,o)),!l&&0<d.y-a&&(r=i(e,{x:d.x,y:d.y-a})),!u&&d.y+a<c&&(s=i(e,{x:d.x,y:d.y+a})),!l||!u);)a+=2;return new t([r,s,null,null])}(n,function(e,t){return!t.equals(e)},function(e,t){return z(e,!0,t)},p),e(0,s=l.upper,a=l.lower))return l.set(K,8);if(s&&p.contains(s))for(;!s.getParent().equals(p);)s=s.getParent();else s=p.getFirst(function(e){return o(n,e)});if(a&&p.contains(a))for(;!a.getParent().equals(p);)a=a.getParent();else a=p.getLast(function(e){return o(n,e)});if(!s||!a)return null;if(E(n,s),E(n,a),!r(n.mouse.y,s.size.top,a.size.bottom))return null;for(var u,d,h,f,p=Number.MAX_VALUE;a&&!a.equals(s)&&(d=s.getNext(n.isRelevant));)(u=Math.abs(i(n,s,d)-n.mouse.y))<p&&(p=u,h=s,f=d),E(n,s=d);return h&&f&&r(n.mouse.y,h.size.top,f.size.bottom)?(l.upper=h,l.lower=f,l.set(K,8)):null}function o(e,t){return!(t&&t.type==CKEDITOR.NODE_TEXT||V(t)||d(t)||u(e,t)||t.type==CKEDITOR.NODE_ELEMENT&&t.$&&t.is("br"))}return function(t){var i,o=n(t);if(i=o){i=o.upper;var r=o.lower;i=!(!i||!r||d(r)||d(i)||r.equals(i)||i.equals(r)||r.contains(i)||i.contains(r))&&!!(f(t,i)&&f(t,r)&&e(0,i,r))}return i?o:null}}(),G=["top","left","right","bottom"]}(),CKEDITOR.config.magicline_keystrokePrevious=CKEDITOR.CTRL+CKEDITOR.SHIFT+51,CKEDITOR.config.magicline_keystrokeNext=CKEDITOR.CTRL+CKEDITOR.SHIFT+52,function(){function e(e){if(!e||e.type!=CKEDITOR.NODE_ELEMENT||"form"!=e.getName())return[];for(var t=[],n=["style","className"],i=0;i<n.length;i++){var o=e.$.elements.namedItem(n[i]);o&&(o=new CKEDITOR.dom.element(o),t.push([o,o.nextSibling]),o.remove())}return t}function t(e,t){if(e&&e.type==CKEDITOR.NODE_ELEMENT&&"form"==e.getName()&&0<t.length)for(var n=t.length-1;0<=n;n--){var i=t[n][0],o=t[n][1];o?i.insertBefore(o):i.appendTo(e)}}function n(n,i){var o=e(n),r={},s=n.$;return i||(r.class=s.className||"",s.className=""),r.inline=s.style.cssText||"",i||(s.style.cssText="position: static; overflow: visible"),t(o),r}function i(n,i){var o=e(n),r=n.$;"class"in i&&(r.className=i.class),"inline"in i&&(r.style.cssText=i.inline),t(o)}function o(e){if(!e.editable().isInline()){var t,n=CKEDITOR.instances;for(t in n){var i=n[t];"wysiwyg"!=i.mode||i.readOnly||((i=i.document.getBody()).setAttribute("contentEditable",!1),i.setAttribute("contentEditable",!0))}e.editable().hasFocus&&(e.toolbox.focus(),e.focus())}}CKEDITOR.plugins.add("maximize",{init:function(e){function t(){var t=c.getViewPaneSize();e.resize(t.width,t.height,null,!0)}if(e.elementMode!=CKEDITOR.ELEMENT_MODE_INLINE){var r,s,a,l=e.lang,u=CKEDITOR.document,c=u.getWindow(),d=CKEDITOR.TRISTATE_OFF;e.addCommand("maximize",{modes:{wysiwyg:!CKEDITOR.env.iOS,source:!CKEDITOR.env.iOS},readOnly:1,editorFocus:!1,exec:function(){var h=e.container.getFirst(function(e){return e.type==CKEDITOR.NODE_ELEMENT&&e.hasClass("cke_inner")}),f=e.ui.space("contents");if("wysiwyg"==e.mode){var p=e.getSelection();r=p&&p.getRanges(),s=c.getScrollPosition()}else{var g=e.editable().$;r=!CKEDITOR.env.ie&&[g.selectionStart,g.selectionEnd],s=[g.scrollLeft,g.scrollTop]}if(this.state==CKEDITOR.TRISTATE_OFF){for(c.on("resize",t),a=c.getScrollPosition(),p=e.container;p=p.getParent();)p.setCustomData("maximize_saved_styles",n(p)),p.setStyle("z-index",e.config.baseFloatZIndex-5);f.setCustomData("maximize_saved_styles",n(f,!0)),h.setCustomData("maximize_saved_styles",n(h,!0)),f={overflow:CKEDITOR.env.webkit?"":"hidden",
1width:0,height:0},u.getDocumentElement().setStyles(f),!CKEDITOR.env.gecko&&u.getDocumentElement().setStyle("position","fixed"),CKEDITOR.env.gecko&&CKEDITOR.env.quirks||u.getBody().setStyles(f),CKEDITOR.env.ie?setTimeout(function(){c.$.scrollTo(0,0)},0):c.$.scrollTo(0,0),h.setStyle("position",CKEDITOR.env.gecko&&CKEDITOR.env.quirks?"fixed":"absolute"),h.$.offsetLeft,h.setStyles({"z-index":e.config.baseFloatZIndex-5,left:"0px",top:"0px"}),h.addClass("cke_maximized"),t(),f=h.getDocumentPosition(),h.setStyles({left:-1*f.x+"px",top:-1*f.y+"px"}),CKEDITOR.env.gecko&&o(e)}else if(this.state==CKEDITOR.TRISTATE_ON){c.removeListener("resize",t);p=[f,h];for(var m=0;m<p.length;m++)i(p[m],p[m].getCustomData("maximize_saved_styles")),p[m].removeCustomData("maximize_saved_styles");for(p=e.container;p=p.getParent();)i(p,p.getCustomData("maximize_saved_styles")),p.removeCustomData("maximize_saved_styles");CKEDITOR.env.ie?setTimeout(function(){c.$.scrollTo(a.x,a.y)},0):c.$.scrollTo(a.x,a.y),h.removeClass("cke_maximized"),CKEDITOR.env.webkit&&(h.setStyle("display","inline"),setTimeout(function(){h.setStyle("display","block")},0)),e.fire("resize",{outerHeight:e.container.$.offsetHeight,contentsHeight:f.$.offsetHeight,outerWidth:e.container.$.offsetWidth})}this.toggleState(),(p=this.uiItems[0])&&(f=this.state==CKEDITOR.TRISTATE_OFF?l.maximize.maximize:l.maximize.minimize,(p=CKEDITOR.document.getById(p._.id)).getChild(1).setHtml(f),p.setAttribute("title",f),p.setAttribute("href",'javascript:void("'+f+'");')),"wysiwyg"==e.mode?r?(CKEDITOR.env.gecko&&o(e),e.getSelection().selectRanges(r),(g=e.getSelection().getStartElement())&&g.scrollIntoView(!0)):c.$.scrollTo(s.x,s.y):(r&&(g.selectionStart=r[0],g.selectionEnd=r[1]),g.scrollLeft=s[0],g.scrollTop=s[1]),r=s=null,d=this.state,e.fire("maximize",this.state)},canUndo:!1}),e.ui.addButton&&e.ui.addButton("Maximize",{label:l.maximize.maximize,command:"maximize",toolbar:"tools,10"}),e.on("mode",function(){var t=e.getCommand("maximize");t.setState(t.state==CKEDITOR.TRISTATE_DISABLED?CKEDITOR.TRISTATE_DISABLED:d)},null,null,100)}}})}(),function(){var e={canUndo:!1,async:!0,exec:function(t){t.getClipboardData({title:t.lang.pastetext.title},function(n){n&&t.fire("paste",{type:"text",dataValue:n.dataValue,method:"paste",dataTransfer:CKEDITOR.plugins.clipboard.initPasteDataTransfer()}),t.fire("afterCommandExec",{name:"pastetext",command:e,returnValue:!!n})})}};CKEDITOR.plugins.add("pastetext",{requires:"clipboard",init:function(t){t.addCommand("pastetext",e),t.ui.addButton&&t.ui.addButton("PasteText",{label:t.lang.pastetext.button,command:"pastetext",toolbar:"clipboard,40"}),t.config.forcePasteAsPlainText&&t.on("beforePaste",function(e){"html"!=e.data.type&&(e.data.type="text")}),t.on("pasteState",function(e){t.getCommand("pastetext").setState(e.data)})}})}(),function(){function e(e){e.data.type="html"}CKEDITOR.plugins.add("pastefromword",{requires:"clipboard",init:function(t){var n=0,i=this.path;t.addCommand("pastefromword",{canUndo:!1,async:!0,exec:function(t){var i=this;n=1,t.once("beforePaste",e),t.getClipboardData({title:t.lang.pastefromword.title},function(e){e&&t.fire("paste",{type:"html",dataValue:e.dataValue,method:"paste",dataTransfer:CKEDITOR.plugins.clipboard.initPasteDataTransfer()}),t.fire("afterCommandExec",{name:"pastefromword",command:i,returnValue:!!e})})}}),t.ui.addButton&&t.ui.addButton("PasteFromWord",{label:t.lang.pastefromword.toolbar,command:"pastefromword",toolbar:"clipboard,50"}),t.on("pasteState",function(e){t.getCommand("pastefromword").setState(e.data)}),t.on("paste",function(e){var o=e.data,r=o.dataValue,s={dataValue:r};if(r&&(n||/(class=\"?Mso|style=\"[^\"]*\bmso\-|w:WordDocument|<o:\w+>|<\/font>)/.test(r))&&(!1!==t.fire("pasteFromWord",s)||n)){o.dontFilter=!0;var a=function(e,t,n){var i=CKEDITOR.cleanWord;return i?n():(e=CKEDITOR.getUrl(e.config.pasteFromWordCleanupFile||t+"filter/default.js"),CKEDITOR.scriptLoader.load(e,n,null,!0)),!i}(t,i,function(){a?t.fire("paste",o):(!t.config.pasteFromWordPromptCleanup||n||confirm(t.lang.pastefromword.confirmCleanup))&&(s.dataValue=CKEDITOR.cleanWord(s.dataValue,t),t.fire("afterPasteFromWord",s),o.dataValue=s.dataValue),n=0}
1);a&&e.cancel()}},null,null,3)}})}(),CKEDITOR.plugins.add("removeformat",{init:function(e){e.addCommand("removeFormat",CKEDITOR.plugins.removeformat.commands.removeformat),e.ui.addButton&&e.ui.addButton("RemoveFormat",{label:e.lang.removeformat.toolbar,command:"removeFormat",toolbar:"cleanup,10"})}}),CKEDITOR.plugins.removeformat={commands:{removeformat:{exec:function(e){for(var t,n=e._.removeFormatRegex||(e._.removeFormatRegex=new RegExp("^(?:"+e.config.removeFormatTags.replace(/,/g,"|")+")$","i")),i=e._.removeAttributes||(e._.removeAttributes=e.config.removeFormatAttributes.split(",")),o=CKEDITOR.plugins.removeformat.filter,r=e.getSelection().getRanges(),s=r.createIterator(),a=function(e){return e.type==CKEDITOR.NODE_ELEMENT};t=s.getNextRange();){t.collapsed||t.enlarge(CKEDITOR.ENLARGE_ELEMENT);var l=t.createBookmark(),u=l.startNode,c=l.endNode,d=function(t){for(var i,r=e.elementPath(t),s=r.elements,a=1;(i=s[a])&&!i.equals(r.block)&&!i.equals(r.blockLimit);a++)n.test(i.getName())&&o(e,i)&&t.breakParent(i)};if(d(u),c)for(d(c),u=u.getNextSourceNode(!0,CKEDITOR.NODE_ELEMENT);u&&!u.equals(c);)if(u.isReadOnly()){if(u.getPosition(c)&CKEDITOR.POSITION_CONTAINS)break;u=u.getNext(a)}else d=u.getNextSourceNode(!1,CKEDITOR.NODE_ELEMENT),"img"==u.getName()&&u.data("cke-realelement")||!o(e,u)||(n.test(u.getName())?u.remove(1):(u.removeAttributes(i),e.fire("removeFormatCleanup",u))),u=d;t.moveToBookmark(l)}e.forceNextSelectionCheck(),e.getSelection().selectRanges(r)}}},filter:function(e,t){for(var n=e._.removeFormatFilters||[],i=0;i<n.length;i++)if(!1===n[i](t))return!1;return!0}},CKEDITOR.editor.prototype.addRemoveFormatFilter=function(e){this._.removeFormatFilters||(this._.removeFormatFilters=[]),this._.removeFormatFilters.push(e)},CKEDITOR.config.removeFormatTags="b,big,cite,code,del,dfn,em,font,i,ins,kbd,q,s,samp,small,span,strike,strong,sub,sup,tt,u,var",CKEDITOR.config.removeFormatAttributes="class,style,lang,width,height,align,hspace,valign",c={preserveState:!0,editorFocus:!1,readOnly:1,exec:function(e){this.toggleState(),this.refresh(e)},refresh:function(e){if(e.document){var t=this.state==CKEDITOR.TRISTATE_ON?"attachClass":"removeClass";e.editable()[t]("cke_show_borders")}}},CKEDITOR.plugins.add("showborders",{modes:{wysiwyg:1},onLoad:function(){var e;e=(CKEDITOR.env.ie6Compat?[".%1 table.%2,",".%1 table.%2 td, .%1 table.%2 th","{","border : #d3d3d3 1px dotted","}"]:".%1 table.%2,;.%1 table.%2 > tr > td, .%1 table.%2 > tr > th,;.%1 table.%2 > tbody > tr > td, .%1 table.%2 > tbody > tr > th,;.%1 table.%2 > thead > tr > td, .%1 table.%2 > thead > tr > th,;.%1 table.%2 > tfoot > tr > td, .%1 table.%2 > tfoot > tr > th;{;border : #d3d3d3 1px dotted;}".split(";")).join("").replace(/%2/g,"cke_show_border").replace(/%1/g,"cke_show_borders "),CKEDITOR.addCss(e)},init:function(e){var t=e.addCommand("showborders",c);t.canUndo=!1,!1!==e.config.startupShowBorders&&t.setState(CKEDITOR.TRISTATE_ON),e.on("mode",function(){t.state!=CKEDITOR.TRISTATE_DISABLED&&t.refresh(e)},null,null,100),e.on("contentDom",function(){t.state!=CKEDITOR.TRISTATE_DISABLED&&t.refresh(e)}),e.on("removeFormatCleanup",function(t){t=t.data,e.getCommand("showborders").state==CKEDITOR.TRISTATE_ON&&t.is("table")&&(!t.hasAttribute("border")||0>=parseInt(t.getAttribute("border"),10))&&t.addClass("cke_show_border")})},afterInit:function(e){var t=e.dataProcessor;e=t&&t.dataFilter,t=t&&t.htmlFilter,e&&e.addRules({elements:{table:function(e){var t=(e=e.attributes).class,n=parseInt(e.border,10);n&&!(0>=n)||t&&-1!=t.indexOf("cke_show_border")||(e.class=(t||"")+" cke_show_border")}}}),t&&t.addRules({elements:{table:function(e){var t=(e=e.attributes).class;t&&(e.class=t.replace("cke_show_border","").replace(/\s{2}/," ").replace(/^\s+|\s+$/,""))}}})}}),CKEDITOR.on("dialogDefinition",function(e){var t=e.data.name;"table"!=t&&"tableProperties"!=t||((t=(e=e.data.definition).getContents("info").get("txtBorder")).commit=CKEDITOR.tools.override(t.commit,function(e){return function(t,n){e.apply(this,arguments);var i=parseInt(this.getValue(),10);n[!i||0>=i?"addClass":"removeClass"]("cke_show_border")}}
1),(e=(e=e.getContents("advanced"))&&e.get("advCSSClasses"))&&(e.setup=CKEDITOR.tools.override(e.setup,function(e){return function(){e.apply(this,arguments),this.setValue(this.getValue().replace(/cke_show_border/,""))}}),e.commit=CKEDITOR.tools.override(e.commit,function(e){return function(t,n){e.apply(this,arguments),parseInt(n.getAttribute("border"),10)||n.addClass("cke_show_border")}})))}),function(){CKEDITOR.plugins.add("sourcearea",{init:function(t){function n(){var e=o&&this.equals(CKEDITOR.document.getActive());this.hide(),this.setStyle("height",this.getParent().$.clientHeight+"px"),this.setStyle("width",this.getParent().$.clientWidth+"px"),this.show(),e&&this.focus()}if(t.elementMode!=CKEDITOR.ELEMENT_MODE_INLINE){var i=CKEDITOR.plugins.sourcearea;t.addMode("source",function(i){var o=t.ui.space("contents").getDocument().createElement("textarea");o.setStyles(CKEDITOR.tools.extend({width:CKEDITOR.env.ie7Compat?"99%":"100%",height:"100%",resize:"none",outline:"none","text-align":"left"},CKEDITOR.tools.cssVendorPrefix("tab-size",t.config.sourceAreaTabSize||4))),o.setAttribute("dir","ltr"),o.addClass("cke_source").addClass("cke_reset").addClass("cke_enable_context_menu"),t.ui.space("contents").append(o),(o=t.editable(new e(t,o))).setData(t.getData(1)),CKEDITOR.env.ie&&(o.attachListener(t,"resize",n,o),o.attachListener(CKEDITOR.document.getWindow(),"resize",n,o),CKEDITOR.tools.setTimeout(n,0,o)),t.fire("ariaWidget",this),i()}),t.addCommand("source",i.commands.source),t.ui.addButton&&t.ui.addButton("Source",{label:t.lang.sourcearea.toolbar,command:"source",toolbar:"mode,10"}),t.on("mode",function(){t.getCommand("source").setState("source"==t.mode?CKEDITOR.TRISTATE_ON:CKEDITOR.TRISTATE_OFF)});var o=CKEDITOR.env.ie&&9==CKEDITOR.env.version}}});var e=CKEDITOR.tools.createClass({base:CKEDITOR.editable,proto:{setData:function(e){this.setValue(e),this.status="ready",this.editor.fire("dataReady")},getData:function(){return this.getValue()},insertHtml:function(){},insertElement:function(){},insertText:function(){},setReadOnly:function(e){this[(e?"set":"remove")+"Attribute"]("readOnly","readonly")},detach:function(){e.baseProto.detach.call(this),this.clearCustomData(),this.remove()}}})}(),CKEDITOR.plugins.sourcearea={commands:{source:{modes:{wysiwyg:1,source:1},editorFocus:!1,readOnly:1,exec:function(e){"wysiwyg"==e.mode&&e.fire("saveSnapshot"),e.getCommand("source").setState(CKEDITOR.TRISTATE_DISABLED),e.setMode("source"==e.mode?"wysiwyg":"source")},canUndo:!1}}},CKEDITOR.plugins.add("specialchar",{availableLangs:{af:1,ar:1,az:1,bg:1,ca:1,cs:1,cy:1,da:1,de:1,"de-ch":1,el:1,en:1,"en-gb":1,eo:1,es:1,et:1,eu:1,fa:1,fi:1,fr:1,"fr-ca":1,gl:1,he:1,hr:1,hu:1,id:1,it:1,ja:1,km:1,ko:1,ku:1,lt:1,lv:1,nb:1,nl:1,no:1,oc:1,pl:1,pt:1,"pt-br":1,ru:1,si:1,sk:1,sl:1,sq:1,sv:1,th:1,tr:1,tt:1,ug:1,uk:1,vi:1,zh:1,"zh-cn":1},requires:"dialog",init:function(e){var t=this;CKEDITOR.dialog.add("specialchar",this.path+"dialogs/specialchar.js"),e.addCommand("specialchar",{exec:function(){var n=e.langCode;n=t.availableLangs[n]?n:t.availableLangs[n.replace(/-.*/,"")]?n.replace(/-.*/,""):"en";CKEDITOR.scriptLoader.load(CKEDITOR.getUrl(t.path+"dialogs/lang/"+n+".js"),function(){CKEDITOR.tools.extend(e.lang.specialchar,t.langEntries[n]),e.openDialog("specialchar")})},modes:{wysiwyg:1},canUndo:!1}),e.ui.addButton&&e.ui.addButton("SpecialChar",{label:e.lang.specialchar.toolbar,command:"specialchar",toolbar:"insert,50"})}}),CKEDITOR.config.specialChars="! " # $ % & ' ( ) * + - . / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B C D E F G H I J K L M N O P Q R S T U V W X Y Z [ ] ^ _ ` a b c d e f g h i j k l m n o p q r s t u v w x y z { | } ~ € ‘ ’ “ ” – — ¡ ¢ £ ¤ ¥ ¦ § ¨ © ª « ¬ ® ¯ ° ² ³ ´ µ ¶ · ¸ ¹ º » ¼ ½ ¾ ¿ À Á Â Ã Ä Å Æ Ç È É Ê Ë Ì Í Î Ï Ð Ñ Ò Ó Ô Õ Ö × Ø Ù Ú Û Ü Ý Þ ß à á â ã ä å æ ç è é ê ë ì í î ï ð ñ ò ó ô õ ö ÷ ø ù ú û ü ý þ ÿ Œ œ Ŵ Ŷ ŵ ŷ ‚ ‛ „ … ™ ► • → ⇒ ⇔ ♦ ≈".split(" "),CKEDITOR.plugins.add("menubutton",{requires:"button,menu",onLoad:function(){var e=function(e){var t=this._,n=t.menu;t.state!==CKEDITOR.TRISTATE_DISABLED&&(t.on&&n?n.hide():(t.previousState=t.state,n||((n=t.menu=new CKEDITOR.menu(e,{panel:{className:"cke_menu_panel",attributes:{"aria-label":e.lang.common.options}}})).onHide=CKEDITOR.tools.bind(function(){var n=this.command?e.getCommand(this.command).modes:this.modes;this.setState(!n||n[e.mode]?t.previousState:CKEDITOR.TRISTATE_DISABLED),t.on=0},this),this.onMenu&&n.addListener(this.onMenu)),this.setState(CKEDITOR.TRISTATE_ON),t.on=1,setTimeout(function(){n.show(CKEDITOR.document.getById(t.id),4)},0)))};CKEDITOR.ui.menuButton=CKEDITOR.tools.createClass({base:CKEDITOR.ui.button,$:function(t){delete t.panel,this.base(t),this.hasArrow=!0,this.click=e},statics:{handler:{create:function(e){return new CKEDITOR.ui.menuButton(e)}}}})},beforeInit:function(e){e.ui.addHandler(CKEDITOR.UI_MENUBUTTON,CKEDITOR.ui.menuButton.handler)}}),CKEDITOR.UI_MENUBUTTON="menubutton",CKEDITOR.plugins.add("scayt",{requires:"menubutton,dialog",tabToOpen:null,dialogName:"scaytDialog",onLoad:function(e){CKEDITOR.plugins.scayt.onLoadTimestamp=(new Date).getTime(),"moono-lisa"==(CKEDITOR.skinName||e.config.skin)&&CKEDITOR.document.appendStyleSheet(this.path+"skins/"+CKEDITOR.skin.name+"/scayt.css")},init:function(e){var t=this,n=CKEDITOR.plugins.scayt;this.bindEvents(e),this.parseConfig(e),this.addRule(e),CKEDITOR.dialog.add(this.dialogName,CKEDITOR.getUrl(this.path+"dialogs/options.js")),this.addMenuItems(e);var i=e.lang.scayt,o=CKEDITOR.env;e.ui.add("Scayt",CKEDITOR.UI_MENUBUTTON,{label:i.text_title,title:e.plugins.wsc?e.lang.wsc.title:i.text_title,modes:{wysiwyg:!(o.ie&&(8>o.version||o.quirks))},toolbar:"spellchecker,20",refresh:function(){var t=e.ui.instances.Scayt.getState();e.scayt&&(t=n.state.scayt[e.name]?CKEDITOR.TRISTATE_ON:CKEDITOR.TRISTATE_OFF),e.fire("scaytButtonState",t)},onRender:function(){var t=this;e.on("scaytButtonState",function(e){void 0!==typeof e.data&&t.setState(e.data)})},onMenu:function(){var t=e.scayt;return e.getMenuItem("scaytToggle").label=e.lang.scayt[t&&n.state.scayt[e.name]?"btn_disable":"btn_enable"],t={scaytToggle:CKEDITOR.TRISTATE_OFF,scaytOptions:t?CKEDITOR.TRISTATE_OFF:CKEDITOR.TRISTATE_DISABLED,scaytLangs:t?CKEDITOR.TRISTATE_OFF:CKEDITOR.TRISTATE_DISABLED,scaytDict:t?CKEDITOR.TRISTATE_OFF:CKEDITOR.TRISTATE_DISABLED,scaytAbout:t?CKEDITOR.TRISTATE_OFF:CKEDITOR.TRISTATE_DISABLED,WSC:e.plugins.wsc?CKEDITOR.TRISTATE_OFF:CKEDITOR.TRISTATE_DISABLED},e.config.scayt_uiTabs[0]||delete t.scaytOptions,e.config.scayt_uiTabs[1]||delete t.scaytLangs,e.config.scayt_uiTabs[2]||delete t.scaytDict,t}}),e.contextMenu&&e.addMenuItems&&(e.contextMenu.addListener(function(n,i){var o,r,s=e.scayt;return s&&(r=s.getSelectionNode())&&(o=t.menuGenerator(e,r),s.showBanner("."+e.contextMenu._.definition.panel.className.split(" ").join(" ."))),o}),e.contextMenu._.onHide=CKEDITOR.tools.override(e.contextMenu._.onHide,function(t){return function(){var n=e.scayt;return n&&n.hideBanner(),t.apply(this)}}))},addMenuItems:function(e){var t=this,n=CKEDITOR.plugins.scayt;e.addMenuGroup("scaytButton");for(var i=e.config.scayt_contextMenuItemsOrder.split("|"),o=0;o<i.length;o++)i[o]="scayt_"+i[o];if((i=["grayt_description","grayt_suggest","grayt_control"].concat(i))&&i.length)for(o=0;o<i.length;o++)e.addMenuGroup(i[o],o-10);e.addCommand("scaytToggle",{exec:function(e){var t=e.scayt;n.state.scayt[e.name]=!n.state.scayt[e.name],!0===n.state.scayt[e.name]?t||n.createScayt(e):t&&n.destroy(e)}}),e.addCommand("scaytAbout",{exec:function(e){e.scayt.tabToOpen="about",e.lockSelection(),e.openDialog(t.dialogName)}}),e.addCommand("scaytOptions",{exec:function(e){e.scayt.tabToOpen="options",e.lockSelection(),e.openDialog(t.dialogName)}}),e.addCommand("scaytLangs",{exec:function(e){e.scayt.tabToOpen="langs",e.lockSelection(),e.openDialog(t.dialogName)}}),e.addCommand("scaytDict",{exec:function(e){e.scayt.tabToOpen="dictionaries",e.lockSelection(),e.openDialog(t.dialogName)}}),i={scaytToggle:{label:e.lang.scayt.btn_enable,group:"scaytButton",command:"scaytToggle"},scaytAbout:{label:e.lang.scayt.btn_about,group:"scaytButton",command:"scaytAbout"},scaytOptions:{label:e.lang.scayt.btn_options,group:"scaytButton",command:"scaytOptions"},scaytLangs:{label:e.lang.scayt.btn_langs,group:"scaytButton",command:"scaytLangs"},scaytDict:{label:e.lang.scayt.btn_dictionaries,group:"scaytButton",command:"scaytDict"}},e.plugins.wsc&&(i.WSC={label:e.lang.wsc.toolbar,group:"scaytButton",onClick:function(){var t=CKEDITOR.plugins.scayt,n=e.scayt,i=e.elementMode==CKEDITOR.ELEMENT_MODE_INLINE?e.container.getText():e.document.getBody().getText();(i=i.replace(/\s/g,""))?(n&&t.state.scayt[e.name]&&n.setMarkupPaused&&n.setMarkupPaused(!0),e.lockSelection(),e.execCommand("checkspell")):alert("Nothing to check!")}}),e.addMenuItems(i)},bindEvents:function(e){var t=CKEDITOR.plugins.scayt,n=e.elementMode==CKEDITOR.ELEMENT_MODE_INLINE,i=function(){t.destroy(e)},o=function(){!t.state.scayt[e.name]||e.readOnly||e.scayt||t.createScayt(e)},r=function(){n?e.config.scayt_inlineModeImmediateMarkup?o():(e.on("blur",function(){setTimeout(i,0)}),e.on("focus",o),e.focusManager.hasFocus&&o()):o(),function(){var t=e.editable();t.attachListener(t,"focus",function(t){var i,r;if(CKEDITOR.plugins.scayt&&!e.scayt&&setTimeout(o,0),t=CKEDITOR.plugins.scayt&&CKEDITOR.plugins.scayt.state.scayt[e.name]&&e.scayt,(n||t)&&e._.savedSelection){t=!(t=e._.savedSelection.getSelectedElement())&&e._.savedSelection.getRanges();for(var s=0;s<t.length;s++)"string"==typeof(r=t[s]).startContainer.$.nodeValue&&((i=r.startContainer.getText().length)<r.startOffset||i<r.endOffset)&&e.unlockSelection(!1)}},this,null,-10)}();var t=e.editable();t.attachListener(t,"mousedown",function(t){t=t.data.getTarget();var n=e.widgets&&e.widgets.getByElement(t);n&&(n.wrapper=t.getAscendant(function(e){return e.hasAttribute("data-cke-widget-wrapper")},!0))},this,null,-10)};e.on("contentDom",r),e.on("beforeCommandExec",function(n){var i=e.scayt,o=null,r=!1,s=!0;n.data.name in t.options.disablingCommandExec&&"wysiwyg"==e.mode?i&&(t.destroy(e),e.fire("scaytButtonState",CKEDITOR.TRISTATE_DISABLED)):"bold"!==n.data.name&&"italic"!==n.data.name&&"underline"!==n.data.name&&"strike"!==n.data.name&&"subscript"!==n.data.name&&"superscript"!==n.data.name&&"enter"!==n.data.name&&"cut"!==n.data.name&&"language"!==n.data.name||!i||("cut"===n.data.name&&(s=!1,r=!0),"language"===n.data.name&&(o=(o=e.plugins.language.getCurrentLangElement(e))&&o.$,r=!0),e.fire("reloadMarkupScayt",{removeOptions:{removeInside:s,forceBookmark:r,selectionNode:o},timeout:0}))}),e.on("beforeSetMode",function(n){"source"==n.data&&((n=e.scayt)&&(t.destroy(e),e.fire("scaytButtonState",CKEDITOR.TRISTATE_DISABLED)),e.document&&e.document.getBody().removeAttribute("_jquid"))}),e.on("afterCommandExec",function(n){"wysiwyg"!=e.mode||"undo"!=n.data.name&&"redo"!=n.data.name||setTimeout(function(){t.reloadMarkup(e.scayt)},250)}),e.on("readOnly",function(n){var i;n&&(i=e.scayt,!0===n.editor.readOnly?i&&i.fire("removeMarkupInDocument",{}):i?t.reloadMarkup(i):"wysiwyg"==n.editor.mode&&!0===t.state.scayt[n.editor.name]&&(t.createScayt(e),n.editor.fire("scaytButtonState",CKEDITOR.TRISTATE_ON)))}),e.on("beforeDestroy",i),e.on("setData",function(){i(),(e.elementMode==CKEDITOR.ELEMENT_MODE_INLINE||e.plugins.divarea)&&r()},this,null,50),e.on("reloadMarkupScayt",function(n){var i=n.data&&n.data.removeOptions;n=n.data&&n.data.timeout;var o=e.scayt;o&&setTimeout(function(){o.removeMarkupInSelectionNode(i),t.reloadMarkup(o)},n||0)}),e.on("insertElement",function(){e.fire("reloadMarkupScayt",{removeOptions:{forceBookmark:!0}})},this,null,50),e.on("insertHtml",function(){e.fire("reloadMarkupScayt")},this,null,50),e.on("insertText",function(){e.fire("reloadMarkupScayt")},this,null,50),e.on("scaytDialogShown",function(t){t.data.selectPage(e.scayt.tabToOpen)})},parseConfig:function(e){if((i=CKEDITOR.plugins.scayt).replaceOldOptionsNames(e.config),"boolean"!=typeof e.config.scayt_autoStartup&&(e.config.scayt_autoStartup=!1),i.state.scayt[e.name]=e.config.scayt_autoStartup,"boolean"!=typeof e.config.grayt_autoStartup&&(e.config.grayt_autoStartup=!1),"boolean"!=typeof e.config.scayt_inlineModeImmediateMarkup&&(e.config.scayt_inlineModeImmediateMarkup=!1),i.state.grayt[e.name]=e.config.grayt_autoStartup,e.config.scayt_contextCommands||(e.config.scayt_contextCommands="ignore|ignoreall|add"),e.config.scayt_contextMenuItemsOrder||(e.config.scayt_contextMenuItemsOrder="suggest|moresuggest|control"),e.config.scayt_sLang||(e.config.scayt_sLang="en_US"),(void 0===e.config.scayt_maxSuggestions||"number"!=typeof e.config.scayt_maxSuggestions||0>e.config.scayt_maxSuggestions)&&(e.config.scayt_maxSuggestions=5),(void 0===e.config.scayt_minWordLength||"number"!=typeof e.config.scayt_minWordLength||1>e.config.scayt_minWordLength)&&(e.config.scayt_minWordLength=4),void 0!==e.config.scayt_customDictionaryIds&&"string"==typeof e.config.scayt_customDictionaryIds||(e.config.scayt_customDictionaryIds=""),void 0!==e.config.scayt_userDictionaryName&&"string"==typeof e.config.scayt_userDictionaryName||(e.config.scayt_userDictionaryName=null),"string"==typeof e.config.scayt_uiTabs&&3===e.config.scayt_uiTabs.split(",").length){var t=[],n=[];e.config.scayt_uiTabs=e.config.scayt_uiTabs.split(","),CKEDITOR.tools.search(e.config.scayt_uiTabs,function(e){1===Number(e)||0===Number(e)?(n.push(!0),t.push(Number(e))):n.push(!1)}),null===CKEDITOR.tools.search(n,!1)?e.config.scayt_uiTabs=t:e.config.scayt_uiTabs=[1,1,1]}else e.config.scayt_uiTabs=[1,1,1];if("string"!=typeof e.config.scayt_serviceProtocol&&(e.config.scayt_serviceProtocol=null),"string"!=typeof e.config.scayt_serviceHost&&(e.config.scayt_serviceHost=null),"string"!=typeof e.config.scayt_servicePort&&(e.config.scayt_servicePort=null),"string"!=typeof e.config.scayt_servicePath&&(e.config.scayt_servicePath=null),e.config.scayt_moreSuggestions||(e.config.scayt_moreSuggestions="on"),"string"!=typeof e.config.scayt_customerId&&(e.config.scayt_customerId="1:WvF0D4-UtPqN1-43nkD4-NKvUm2-daQqk3-LmNiI-z7Ysb4-mwry24-T8YrS3-Q2tpq2"),"string"!=typeof e.config.scayt_srcUrl&&(i=-1!=(i=document.location.protocol).search(/https?:/)?i:"http:",e.config.scayt_srcUrl=i+"//svc.webspellchecker.net/spellcheck31/lf/scayt3/ckscayt/ckscayt.js"),"boolean"!=typeof CKEDITOR.config.scayt_handleCheckDirty&&(CKEDITOR.config.scayt_handleCheckDirty=!0),"boolean"!=typeof CKEDITOR.config.scayt_handleUndoRedo&&(CKEDITOR.config.scayt_handleUndoRedo=!0),CKEDITOR.config.scayt_handleUndoRedo=!!CKEDITOR.plugins.undo&&CKEDITOR.config.scayt_handleUndoRedo,"boolean"!=typeof e.config.scayt_multiLanguageMode&&(e.config.scayt_multiLanguageMode=!1),"object"!=typeof e.config.scayt_multiLanguageStyles&&(e.config.scayt_multiLanguageStyles={}),e.config.scayt_ignoreAllCapsWords&&"boolean"!=typeof e.config.scayt_ignoreAllCapsWords&&(e.config.scayt_ignoreAllCapsWords=!1),e.config.scayt_ignoreDomainNames&&"boolean"!=typeof e.config.scayt_ignoreDomainNames&&(e.config.scayt_ignoreDomainNames=!1),e.config.scayt_ignoreWordsWithMixedCases&&"boolean"!=typeof e.config.scayt_ignoreWordsWithMixedCases&&
1(e.config.scayt_ignoreWordsWithMixedCases=!1),e.config.scayt_ignoreWordsWithNumbers&&"boolean"!=typeof e.config.scayt_ignoreWordsWithNumbers&&(e.config.scayt_ignoreWordsWithNumbers=!1),e.config.scayt_disableOptionsStorage){var i=CKEDITOR.tools.isArray(e.config.scayt_disableOptionsStorage)?e.config.scayt_disableOptionsStorage:"string"==typeof e.config.scayt_disableOptionsStorage?[e.config.scayt_disableOptionsStorage]:void 0,o="all options lang ignore-all-caps-words ignore-domain-names ignore-words-with-mixed-cases ignore-words-with-numbers".split(" "),r=["lang","ignore-all-caps-words","ignore-domain-names","ignore-words-with-mixed-cases","ignore-words-with-numbers"],s=CKEDITOR.tools.search,a=CKEDITOR.tools.indexOf;e.config.scayt_disableOptionsStorage=function(e){for(var t=[],n=0;n<e.length;n++){var i=e[n],l=!!s(e,"options");if(!s(o,i)||l&&s(r,function(e){if("lang"===e)return!1}))return;if(s(r,i)&&r.splice(a(r,i),1),"all"===i||l&&s(e,"lang"))return[];"options"===i&&(r=["lang"])}return t.concat(r)}(i)}},addRule:function(e){var t=CKEDITOR.plugins.scayt,n=(o=e.dataProcessor)&&o.htmlFilter,i=e._.elementsPath&&e._.elementsPath.filters,o=o&&o.dataFilter,r=e.addRemoveFormatFilter;i&&i.push(function(n){if(e.scayt&&(n.hasAttribute(t.options.data_attribute_name)||n.hasAttribute(t.options.problem_grammar_data_attribute)))return!1}),o&&o.addRules({elements:{span:function(e){var n=e.hasClass(t.options.misspelled_word_class)&&e.attributes[t.options.data_attribute_name],i=e.hasClass(t.options.problem_grammar_class)&&e.attributes[t.options.problem_grammar_data_attribute];return t&&(n||i)&&delete e.name,e}}}),n&&n.addRules({elements:{span:function(e){var n=e.hasClass(t.options.misspelled_word_class)&&e.attributes[t.options.data_attribute_name],i=e.hasClass(t.options.problem_grammar_class)&&e.attributes[t.options.problem_grammar_data_attribute];return t&&(n||i)&&delete e.name,e}}}),r&&r.call(e,function(n){var i=!0;return e.scayt&&(n.hasAttribute(t.options.data_attribute_name)||n.hasAttribute(t.options.problem_grammar_data_attribute))&&(i=!1),i})},scaytMenuDefinition:function(e){var t=this;return{scayt:{scayt_ignore:{label:(e=e.scayt).getLocal("btn_ignore"),group:"scayt_control",order:1,exec:function(e){e.scayt.ignoreWord()}},scayt_ignoreall:{label:e.getLocal("btn_ignoreAll"),group:"scayt_control",order:2,exec:function(e){e.scayt.ignoreAllWords()}},scayt_add:{label:e.getLocal("btn_addWord"),group:"scayt_control",order:3,exec:function(e){var t=e.scayt;setTimeout(function(){t.addWordToUserDictionary()},10)}},scayt_option:{label:e.getLocal("btn_options"),group:"scayt_control",order:4,exec:function(e){e.scayt.tabToOpen="options",e.lockSelection(),e.openDialog(t.dialogName)},verification:function(e){return 1==e.config.scayt_uiTabs[0]}},scayt_language:{label:e.getLocal("btn_langs"),group:"scayt_control",order:5,exec:function(e){e.scayt.tabToOpen="langs",e.lockSelection(),e.openDialog(t.dialogName)},verification:function(e){return 1==e.config.scayt_uiTabs[1]}},scayt_dictionary:{label:e.getLocal("btn_dictionaries"),group:"scayt_control",order:6,exec:function(e){e.scayt.tabToOpen="dictionaries",e.lockSelection(),e.openDialog(t.dialogName)},verification:function(e){return 1==e.config.scayt_uiTabs[2]}},scayt_about:{label:e.getLocal("btn_about"),group:"scayt_control",order:7,exec:function(e){e.scayt.tabToOpen="about",e.lockSelection(),e.openDialog(t.dialogName)}}},grayt:{grayt_problemdescription:{label:"Grammar problem description",group:"grayt_description",order:1,state:CKEDITOR.TRISTATE_DISABLED,exec:function(e){}},grayt_ignore:{label:e.getLocal("btn_ignore"),group:"grayt_control",order:2,exec:function(e){e.scayt.ignorePhrase()}}}}},buildSuggestionMenuItems:function(e,t,n){var i={},o={},r=n?"word":"phrase",s=n?"startGrammarCheck":"startSpellCheck",a=e.scayt;if(0<t.length&&"no_any_suggestions"!==t[0])if(n)for(n=0;n<t.length;n++){var l="scayt_suggest_"+CKEDITOR.plugins.scayt.suggestions[n].replace(" ","_");e.addCommand(l,this.createCommand(CKEDITOR.plugins.scayt.suggestions[n],r,s)),n<e.config.scayt_maxSuggestions?(e.addMenuItem(l,{label:t[n],command:l,group:"scayt_suggest",order:n+1}),i[l]=CKEDITOR.TRISTATE_OFF):(e.addMenuItem(l,{label:t[n],command:l,group:"scayt_moresuggest",order:n+1}),o[l]=CKEDITOR.TRISTATE_OFF,"on"===e.config.scayt_moreSuggestions&&(e.addMenuItem("scayt_moresuggest",{label:a.getLocal("btn_moreSuggestions"),group:"scayt_moresuggest",order:10,getItems:function(){return o}}),i.scayt_moresuggest=CKEDITOR.TRISTATE_OFF))}else for(n=0;n<t.length;n++)l="grayt_suggest_"+CKEDITOR.plugins.scayt.suggestions[n].replace(" ","_"),e.addCommand(l,this.createCommand(CKEDITOR.plugins.scayt.suggestions[n],r,s)),e.addMenuItem(l,{label:t[n],command:l,group:"grayt_suggest",order:n+1}),i[l]=CKEDITOR.TRISTATE_OFF;else i.no_scayt_suggest=CKEDITOR.TRISTATE_DISABLED,e.addCommand("no_scayt_suggest",{exec:function(){}}),e.addMenuItem("no_scayt_suggest",{label:a.getLocal("btn_noSuggestions")||"no_scayt_suggest",command:"no_scayt_suggest",group:"scayt_suggest",order:0});return i},menuGenerator:function(e,t){var n,i,o=e.scayt,r=this.scaytMenuDefinition(e),s={},a=e.config.scayt_contextCommands.split("|"),l=t.getAttribute(o.getLangAttribute())||o.getLang();if(n=o.isScaytNode(t),i=o.isGraytNode(t),n?(r=r.scayt,s=t.getAttribute(o.getScaytNodeAttributeName()),o.fire("getSuggestionsList",{lang:l,word:s}),s=this.buildSuggestionMenuItems(e,CKEDITOR.plugins.scayt.suggestions,n)):i&&(r=r.grayt,s=t.getAttribute(o.getGraytNodeAttributeName()),i=o.getProblemDescriptionText(s,l),r.grayt_problemdescription&&i&&(r.grayt_problemdescription.label=i),o.fire("getGrammarSuggestionsList",{lang:l,phrase:s}),s=this.buildSuggestionMenuItems(e,CKEDITOR.plugins.scayt.suggestions,n)),n&&"off"==e.config.scayt_contextCommands)return s;for(var u in r)n&&-1==CKEDITOR.tools.indexOf(a,u.replace("scayt_",""))&&"all"!=e.config.scayt_contextCommands||(s[u]="undefined"!=typeof r[u].state?r[u].state:CKEDITOR.TRISTATE_OFF,"function"!=typeof r[u].verification||r[u].verification(e)||delete s[u],e.addCommand(u,{exec:r[u].exec}),e.addMenuItem(u,{label:e.lang.scayt[r[u].label]||r[u].label,command:u,group:r[u].group,order:r[u].order}));return s},createCommand:function(e,t,n){return{exec:function(i){i=i.scayt;var o={};o[t]=e,i.replaceSelectionNode(o),"startGrammarCheck"===n&&i.removeMarkupInSelectionNode({grammarOnly:!0}),i.fire(n)}}}}),CKEDITOR.plugins.scayt={charsToObserve:[{charName:"cke-fillingChar",charCode:function(){var e;if(n=(n=CKEDITOR.version.match(/^\d(\.\d*)*/))&&n[0]){e="4.5.7";var t,n=n.replace(/\./g,"");e=e.replace(/\./g,""),t=0<=(t=n.length-e.length)?t:0,e=parseInt(n)>=parseInt(e)*Math.pow(10,t)}return e?Array(7).join(String.fromCharCode(8203)):String.fromCharCode(8203)}()}],onLoadTimestamp:"",state:{scayt:{},grayt:{}},warningCounter:0,suggestions:[],options:{disablingCommandExec:{source:!0,newpage:!0,templates:!0},data_attribute_name:"data-scayt-word",misspelled_word_class:"scayt-misspell-word",problem_grammar_data_attribute:"data-grayt-phrase",problem_grammar_class:"gramm-problem"},backCompatibilityMap:{scayt_service_protocol:"scayt_serviceProtocol",scayt_service_host:"scayt_serviceHost",scayt_service_port:"scayt_servicePort",scayt_service_path:"scayt_servicePath",scayt_customerid:"scayt_customerId"},alarmCompatibilityMessage:function(){5>this.warningCounter&&(console.warn("Note: You are using latest version of SCAYT plug-in. It is recommended to upgrade WebSpell
1Checker.net application to version v4.8.3.Contact us by e-mail at [email protected]."),this.warningCounter+=1)},reloadMarkup:function(e){var t;e&&(t=e.getScaytLangList(),e.reloadMarkup?e.reloadMarkup():(this.alarmCompatibilityMessage(),t&&t.ltr&&t.rtl&&e.fire("startSpellCheck, startGrammarCheck")))},replaceOldOptionsNames:function(e){for(var t in e)t in this.backCompatibilityMap&&(e[this.backCompatibilityMap[t]]=e[t],delete e[t])},createScayt:function(e){var t=this,n=CKEDITOR.plugins.scayt;this.loadScaytLibrary(e,function(e){function i(e){return new SCAYT.CKSCAYT(e,function(){},function(){})}var o=e.window&&e.window.getFrame()||e.editable();if(o){var r;o={lang:e.config.scayt_sLang,container:o.$,customDictionary:e.config.scayt_customDictionaryIds,userDictionaryName:e.config.scayt_userDictionaryName,localization:e.langCode,customer_id:e.config.scayt_customerId,debug:e.config.scayt_debug,data_attribute_name:t.options.data_attribute_name,misspelled_word_class:t.options.misspelled_word_class,problem_grammar_data_attribute:t.options.problem_grammar_data_attribute,problem_grammar_class:t.options.problem_grammar_class,"options-to-restore":e.config.scayt_disableOptionsStorage,focused:e.editable().hasFocus,ignoreElementsRegex:e.config.scayt_elementsToIgnore,minWordLength:e.config.scayt_minWordLength,multiLanguageMode:e.config.scayt_multiLanguageMode,multiLanguageStyles:e.config.scayt_multiLanguageStyles,graytAutoStartup:n.state.grayt[e.name],charsToObserve:n.charsToObserve},e.config.scayt_serviceProtocol&&(o.service_protocol=e.config.scayt_serviceProtocol),e.config.scayt_serviceHost&&(o.service_host=e.config.scayt_serviceHost),e.config.scayt_servicePort&&(o.service_port=e.config.scayt_servicePort),e.config.scayt_servicePath&&(o.service_path=e.config.scayt_servicePath),"boolean"==typeof e.config.scayt_ignoreAllCapsWords&&(o["ignore-all-caps-words"]=e.config.scayt_ignoreAllCapsWords),"boolean"==typeof e.config.scayt_ignoreDomainNames&&(o["ignore-domain-names"]=e.config.scayt_ignoreDomainNames),"boolean"==typeof e.config.scayt_ignoreWordsWithMixedCases&&(o["ignore-words-with-mixed-cases"]=e.config.scayt_ignoreWordsWithMixedCases),"boolean"==typeof e.config.scayt_ignoreWordsWithNumbers&&(o["ignore-words-with-numbers"]=e.config.scayt_ignoreWordsWithNumbers);try{r=i(o)}catch(e){t.alarmCompatibilityMessage(),delete o.charsToObserve,r=i(o)}r.subscribe("suggestionListSend",function(e){for(var t={},n=[],i=0;i<e.suggestionList.length;i++)t["word_"+e.suggestionList[i]]||(t["word_"+e.suggestionList[i]]=e.suggestionList[i],n.push(e.suggestionList[i]));CKEDITOR.plugins.scayt.suggestions=n}),r.subscribe("selectionIsChanged",function(t){e.getSelection().isLocked&&e.lockSelection()}),r.subscribe("graytStateChanged",function(t){n.state.grayt[e.name]=t.state}),r.addMarkupHandler&&r.addMarkupHandler(function(t){var n=e.editable(),i=n.getCustomData(t.charName);i&&(i.$=t.node,n.setCustomData(t.charName,i))}),e.scayt=r,e.fire("scaytButtonState",e.readOnly?CKEDITOR.TRISTATE_DISABLED:CKEDITOR.TRISTATE_ON)}else n.state.scayt[e.name]=!1})},destroy:function(e){e.scayt&&e.scayt.destroy(),delete e.scayt,e.fire("scaytButtonState",CKEDITOR.TRISTATE_OFF)},loadScaytLibrary:function(e,t){var n,i=function(){CKEDITOR.fireOnce("scaytReady"),e.scayt||"function"==typeof t&&t(e)};"undefined"==typeof window.SCAYT||"function"!=typeof window.SCAYT.CKSCAYT?(n=e.config.scayt_srcUrl+"?"+this.onLoadTimestamp,CKEDITOR.scriptLoader.load(n,function(e){e&&i()})):window.SCAYT&&"function"==typeof window.SCAYT.CKSCAYT&&i()}},CKEDITOR.on("dialogDefinition",function(e){var t=e.data.name;e=e.data.definition.dialog,"scaytDialog"===t&&e.on("cancel",function(e){return!1},this,null,-1),"checkspell"===t&&e.on("cancel",function(e){e=e.sender&&e.sender.getParentEditor();var t=CKEDITOR.plugins.scayt,n=e.scayt;n&&t.state.scayt[e.name]&&n.setMarkupPaused&&n.setMarkupPaused(!1),e.unlockSelection()},this,null,-2),"link"===t&&e.on("ok",function(e){var t=e.sender&&e.sender.getParentEditor();t&&setTimeout(function(){t.fire("reloadMarkupScayt",{removeOptions:{removeInside:!0,forceBookmark:!0},timeout:0})},0)})}),CKEDITOR.on("scaytReady",function(){!0===CKEDITOR.config.scayt_handleCheckDirty&&((e
1=CKEDITOR.editor.prototype).checkDirty=CKEDITOR.tools.override(e.checkDirty,function(e){return function(){var t=null,n=this.scayt;if(CKEDITOR.plugins.scayt&&CKEDITOR.plugins.scayt.state.scayt[this.name]&&this.scayt){if(t="ready"==this.status){var i=n.removeMarkupFromString(this.getSnapshot());n=n.removeMarkupFromString(this._.previousValue),t=t&&n!==i}}else t=e.call(this);return t}}),e.resetDirty=CKEDITOR.tools.override(e.resetDirty,function(e){return function(){var t=this.scayt;CKEDITOR.plugins.scayt&&CKEDITOR.plugins.scayt.state.scayt[this.name]&&this.scayt?this._.previousValue=t.removeMarkupFromString(this.getSnapshot()):e.call(this)}}));if(!0===CKEDITOR.config.scayt_handleUndoRedo){var e,t="function"==typeof(e=CKEDITOR.plugins.undo.Image.prototype).equalsContent?"equalsContent":"equals";e[t]=CKEDITOR.tools.override(e[t],function(e){return function(t){var n,i=t.editor.scayt,o=this.contents,r=t.contents;return CKEDITOR.plugins.scayt&&CKEDITOR.plugins.scayt.state.scayt[t.editor.name]&&t.editor.scayt&&(this.contents=i.removeMarkupFromString(o)||"",t.contents=i.removeMarkupFromString(r)||""),n=e.apply(this,arguments),this.contents=o,t.contents=r,n}})}}),CKEDITOR.plugins.add("stylescombo",{requires:"richcombo",init:function(e){var t=e.config,n=e.lang.stylescombo,i={},o=[],r=[];e.on("stylesSet",function(n){if(n=n.data.styles){for(var s,a,l,u=0,c=n.length;u<c;u++)s=n[u],e.blockless&&s.element in CKEDITOR.dtd.$block||"string"==typeof s.type&&!CKEDITOR.style.customHandlers[s.type]||(a=s.name,s=new CKEDITOR.style(s),e.filter.customConfig&&!e.filter.check(s))||(s._name=a,s._.enterMode=t.enterMode,s._.type=l=s.assignedTo||s.type,s._.weight=u+1e3*(l==CKEDITOR.STYLE_OBJECT?1:l==CKEDITOR.STYLE_BLOCK?2:3),i[a]=s,o.push(s),r.push(s));o.sort(function(e,t){return e._.weight-t._.weight})}}),e.ui.addRichCombo("Styles",{label:n.label,title:n.panelTitle,toolbar:"styles,10",allowedContent:r,panel:{css:[CKEDITOR.skin.getPath("editor")].concat(t.contentsCss),multiSelect:!0,attributes:{"aria-label":n.panelTitle}},init:function(){var e,t,i,r,s,a;for(s=0,a=o.length;s<a;s++)t=(e=o[s])._name,(r=e._.type)!=i&&(this.startGroup(n["panelTitle"+String(r)]),i=r),this.add(t,e.type==CKEDITOR.STYLE_OBJECT?t:e.buildPreview(),t);this.commit()},onClick:function(t){e.focus(),e.fire("saveSnapshot"),t=i[t];var n=e.elementPath();t.group&&t.removeStylesFromSameGroup(e)?e.applyStyle(t):e[t.checkActive(n,e)?"removeStyle":"applyStyle"](t),e.fire("saveSnapshot")},onRender:function(){e.on("selectionChange",function(t){for(var n,o=this.getValue(),r=0,s=(t=t.data.path.elements).length;r<s;r++)for(var a in n=t[r],i)if(i[a].checkElementRemovable(n,!0,e))return void(a!=o&&this.setValue(a));this.setValue("")},this)},onOpen:function(){var t=e.getSelection().getSelectedElement(),o=(t=e.elementPath(t),[0,0,0,0]);for(var r in this.showAll(),this.unmarkAll(),i){var s=i[r],a=s._.type;s.checkApplicable(t,e,e.activeFilter)?o[a]++:this.hideItem(r),s.checkActive(t,e)&&this.mark(r)}o[CKEDITOR.STYLE_BLOCK]||this.hideGroup(n["panelTitle"+String(CKEDITOR.STYLE_BLOCK)]),o[CKEDITOR.STYLE_INLINE]||this.hideGroup(n["panelTitle"+String(CKEDITOR.STYLE_INLINE)]),o[CKEDITOR.STYLE_OBJECT]||this.hideGroup(n["panelTitle"+String(CKEDITOR.STYLE_OBJECT)])},refresh:function(){var t=e.elementPath();if(t){for(var n in i)if(i[n].checkApplicable(t,e,e.activeFilter))return;this.setState(CKEDITOR.TRISTATE_DISABLED)}},reset:function(){i={},o=[]}})}}),function(){function e(e){return{editorFocus:!1,canUndo:!1,modes:{wysiwyg:1},exec:function(t){if(t.editable().hasFocus){var n,i=t.getSelection();if(n=new CKEDITOR.dom.elementPath(i.getCommonAncestor(),i.root).contains({td:1,th:1},1)){i=t.createRange();if((r=CKEDITOR.tools.tryThese(function(){var t=n.getParent().$.cells[n.$.cellIndex+(e?-1:1)];return t.parentNode.parentNode,t},function(){var t;return(t=(t=n.getParent()).getAscendant("table").$.rows[t.$.rowIndex+(e?-1:1)]).cells[e?t.cells.length-1:0]}))||e){if(!r)return!0;r=new CKEDITOR.dom.element(r),i.moveToElementEditStart(r),i.checkStartOfBlock()&&i.checkEndOfBlock()||i.selectNodeContents(r)}else{for(var o=n.getAscendant("table").$,r=n.getParent().$.cells,s=(o=new CKEDITOR.dom.element(o.insertRow(-1),t.document),0),a=r.length;s<a;s++)o.append(new CKEDITOR.dom.element(r[s],t.document).clone(!1,!1)).appendBogus();i.moveToElementEditStart(o)}return i.select(!0),!0}}return!1}}}var t={editorFocus:!1,modes:{wysiwyg:1,source:1}},n={exec:function(e){e.container.focusNext(!0,e.tabIndex)}},i={exec:function(e){e.container.focusPrevious(!0,e.tabIndex)}};CKEDITOR.plugins.add("tab",{init:function(o){for(var r=!1!==o.config.enableTabKeyTools,s=o.config.tabSpaces||0,a="";s--;)a+="\xa0";a&&o.on("key",function(e){9==e.data.keyCode&&(o.insertText(a),e.cancel())}),r&&o.on("key",function(e){(9==e.data.keyCode&&o.execCommand("selectNextCell")||e.data.keyCode==CKEDITOR.SH
1IFT+9&&o.execCommand("selectPreviousCell"))&&e.cancel()}),o.addCommand("blur",CKEDITOR.tools.extend(n,t)),o.addCommand("blurBack",CKEDITOR.tools.extend(i,t)),o.addCommand("selectNextCell",e()),o.addCommand("selectPreviousCell",e(!0))}})}(),CKEDITOR.dom.element.prototype.focusNext=function(e,t){var n,i,o,r,s,a,l=void 0===t?this.getTabIndex():t;if(0>=l)for(s=this.getNextSourceNode(e,CKEDITOR.NODE_ELEMENT);s;){if(s.isVisible()&&0===s.getTabIndex()){o=s;break}s=s.getNextSourceNode(!1,CKEDITOR.NODE_ELEMENT)}else for(s=this.getDocument().getBody().getFirst();s=s.getNextSourceNode(!1,CKEDITOR.NODE_ELEMENT);){if(!n)if(!i&&s.equals(this)){if(i=!0,e){if(!(s=s.getNextSourceNode(!0,CKEDITOR.NODE_ELEMENT)))break;n=1}}else i&&!this.contains(s)&&(n=1);if(s.isVisible()&&!(0>(a=s.getTabIndex()))){if(n&&a==l){o=s;break}a>l&&(!o||!r||a<r)?(o=s,r=a):o||0!==a||(o=s,r=a)}}o&&o.focus()},CKEDITOR.dom.element.prototype.focusPrevious=function(e,t){for(var n,i,o,r,s=void 0===t?this.getTabIndex():t,a=0,l=this.getDocument().getBody().getLast();l=l.getPreviousSourceNode(!1,CKEDITOR.NODE_ELEMENT);){if(!n)if(!i&&l.equals(this)){if(i=!0,e){if(!(l=l.getPreviousSourceNode(!0,CKEDITOR.NODE_ELEMENT)))break;n=1}}else i&&!this.contains(l)&&(n=1);if(l.isVisible()&&!(0>(r=l.getTabIndex())))if(0>=s){if(n&&0===r){o=l;break}r>a&&(o=l,a=r)}else{if(n&&r==s){o=l;break}r<s&&(!o||r>a)&&(o=l,a=r)}}o&&o.focus()},CKEDITOR.plugins.add("table",{requires:"dialog",init:function(e){function t(e){return CKEDITOR.tools.extend(e||{},{contextSensitive:1,refresh:function(e,t){this.setState(t.contains("table",1)?CKEDITOR.TRISTATE_OFF:CKEDITOR.TRISTATE_DISABLED)}})}if(!e.blockless){var n=e.lang.table;e.addCommand("table",new CKEDITOR.dialogCommand("table",{context:"table",allowedContent:"table{width,height}[align,border,cellpadding,cellspacing,summary];caption tbody thead tfoot;th td tr[scope];"+(e.plugins.dialogadvtab?"table"+e.plugins.dialogadvtab.allowedContent():""),requiredContent:"table",contentTransformations:[["table{width}: sizeToStyle","table[width]: sizeToAttribute"],["td: splitBorderShorthand"],[{element:"table",right:function(e){e.styles&&(e.styles.border&&e.styles.border.match(/solid/)&&(e.attributes.border=1),"collapse"==e.styles["border-collapse"]&&(e.attributes.cellspacing=0))}}]]})),e.addCommand("tableProperties",new CKEDITOR.dialogCommand("tableProperties",t())),e.addCommand("tableDelete",t({exec:function(e){var t=e.elementPath().contains("table",1);if(t){var n=t.getParent(),i=e.editable();1!=n.getChildCount()||n.is("td","th")||n.equals(i)||(t=n),(e=e.createRange()).moveToPosition(t,CKEDITOR.POSITION_BEFORE_START),t.remove(),e.select()}}})),e.ui.addButton&&e.ui.addButton("Table",{label:n.toolbar,command:"table",toolbar:"insert,30"}),CKEDITOR.dialog.add("table",this.path+"dialogs/table.js"),CKEDITOR.dialog.add("tableProperties",this.path+"dialogs/table.js"),e.addMenuItems&&e.addMenuItems({table:{label:n.menu,command:"tableProperties",group:"table",order:5},tabledelete:{label:n.deleteTable,command:"tableDelete",group:"table",order:1}}),e.on("doubleclick",function(e){e.data.element.is("table")&&(e.data.dialog="tableProperties")}),e.contextMenu&&e.contextMenu.addListener(function(){return{tabledelete:CKEDITOR.TRISTATE_OFF,table:CKEDITOR.TRISTATE_OFF}})}}}),function(){function e(e){function t(e){0<n.length||e.type!=CKEDITOR.NODE_ELEMENT||!c.test(e.getName())||e.getCustomData("selected_cell")||(CKEDITOR.dom.element.setMarker(i,e,"selected_cell",!0),n.push(e))}e=e.getRanges();for(var n=[],i={},o=0;o<e.length;o++){var r,s;if((r=e[o]).collapsed)(r=(r=r.getCommonAncestor()).getAscendant("td",!0)||r.getAscendant("th",!0))&&n.push(r);else for((r=new CKEDITOR.dom.walker(r)).guard=t;s=r.next();)s.type==CKEDITOR.NODE_ELEMENT&&s.is(CKEDITOR.dtd.table)||(s=s.getAscendant("td",!0)||s.getAscendant("th",!0))&&!s.getCustomData("selected_cell")&&(CKEDITOR.dom.element.setMarker(i,s,"selected_cell",!0),n.push(s))}return CKEDITOR.dom.element.clearAllMarkers(i),n}function t(t,n){var i=(o=(a=e(t))[0]).getAscendant("table"),o=o.getDocument(),r=(l=a[0].getParent()).$.rowIndex,s=(a=a[a.length-1]).getParent().$.rowIndex+a.$.rowSpan-1,a=new CKEDITOR.dom.element(i.$.rows[s]),l=(r=n?r:s,n?l:a);for(i=(a=CKEDITOR.tools.buildTableMap(i))[r],r=n?a[r-1]:a[r+1],a=a[0].length,o=o.createElement("tr"),s=0;i[s]&&s<a;s++){var u;1<i[s].rowSpan&&r&&i[s]==r[s]?(u=i[s]).rowSpan+=1:((u=new CKEDITOR.dom.element(i[s]).clone()).removeAttribute("rowSpan"),u.appendBogus(),o.append(u),u=u.$),s+=u.colSpan-1}n?o.insertBefore(l):o.insertAfter(l)}function n(e,t){for(var n=t?1/0:0,i=0;i<e.length;i++){for(var o,r=t,s=(o=e[i]).getParent().$.cells,a=0,l=0;l<s.length;l++){var u=s[l];a=a+(r?1:u.colSpan);if(u==o.$)break}o=a-1,(t?o<n:o>n)&&(n=o)}return n}function i(t,i){for(var o=(s=e(t))[0].getAscendant("table"),r=n(s,1),s=n(s),a=(r=i?r:s,CKEDITOR.tools.buildTableMap(o)),l=(o=[],s=[],a.length),u=0;u<l;u++)o.push(a[u][r]),s.push(i?a[u][r-1]:a[u][r+1]);for(u=0;
1u<l;u++)o[u]&&(1<o[u].colSpan&&s[u]==o[u]?(r=o[u]).colSpan+=1:((r=new CKEDITOR.dom.element(o[u]).clone()).removeAttribute("colSpan"),r.appendBogus(),r[i?"insertBefore":"insertAfter"].call(r,new CKEDITOR.dom.element(o[u])),r=r.$),u+=r.rowSpan-1)}function o(e,t){var n=e.getStartElement();if(n=n.getAscendant("td",1)||n.getAscendant("th",1)){var i=n.clone();i.appendBogus(),t?i.insertBefore(n):i.insertAfter(n)}}function r(e,t){var n=e.getDocument(),i=CKEDITOR.document;CKEDITOR.env.ie&&10==CKEDITOR.env.version&&(i.focus(),n.focus()),(n=new CKEDITOR.dom.range(n))["moveToElementEdit"+(t?"End":"Start")](e)||(n.selectNodeContents(e),n.collapse(!t)),n.select(!0)}function s(e,t,n){if(e=e[t],"undefined"==typeof n)return e;for(t=0;e&&t<e.length;t++){if(n.is&&e[t]==n.$)return t;if(t==n)return new CKEDITOR.dom.element(e[t])}return n.is?-1:null}function a(t,n,i){var o,r,a=e(t);if((n?1!=a.length:2>a.length)||(o=t.getCommonAncestor())&&o.type==CKEDITOR.NODE_ELEMENT&&o.is("table"))return!1;o=(t=a[0]).getAscendant("table");var l=CKEDITOR.tools.buildTableMap(o),u=l.length,c=l[0].length,d=t.getParent().$.rowIndex,h=s(l,d,t);if(n){var f;try{var p=parseInt(t.getAttribute("rowspan"),10)||1;r=parseInt(t.getAttribute("colspan"),10)||1,f=l["up"==n?d-p:"down"==n?d+p:d]["left"==n?h-r:"right"==n?h+r:h]}catch(e){return!1}if(!f||t.$==f)return!1;a["up"==n||"left"==n?"unshift":"push"](new CKEDITOR.dom.element(f))}n=t.getDocument();var g=d,m=(p=f=0,!i&&new CKEDITOR.dom.documentFragment(n)),v=0;for(n=0;n<a.length;n++){var E=(r=a[n]).getParent(),T=r.getFirst(),y=r.$.colSpan,C=r.$.rowSpan,b=s(l,E=E.$.rowIndex,r);v=v+y*C,p=Math.max(p,b-h+y);f=Math.max(f,E-d+C),i||((C=(y=r).getBogus())&&C.remove(),y.trim(),r.getChildren().count()&&(E==g||!T||T.isBlockBoundary&&T.isBlockBoundary({br:1})||(!(g=m.getLast(CKEDITOR.dom.walker.whitespaces(!0)))||g.is&&g.is("br")||m.append("br")),r.moveChildren(m)),n?r.remove():r.setHtml("")),g=E}if(i)return f*p==v;for(m.moveChildren(t),t.appendBogus(),p>=c?t.removeAttribute("rowSpan"):t.$.rowSpan=f,f>=u?t.removeAttribute("colSpan"):t.$.colSpan=p,n=(a=(i=new CKEDITOR.dom.nodeList(o.$.rows)).count())-1;0<=n;n--)(o=i.getItem(n)).$.cells.length||(o.remove(),a++);return t}function l(t,n){if(1<(i=e(t)).length)return!1;if(n)return!0;var i,o,r=(c=(i=i[0]).getParent()).getAscendant("table"),a=s(d=CKEDITOR.tools.buildTableMap(r),h=c.$.rowIndex,i);if(1<(u=i.$.rowSpan)){o=Math.ceil(u/2);for(var l,u=Math.floor(u/2),c=h+o,d=(r=new CKEDITOR.dom.element(r.$.rows[c]),s(d,c)),h=(c=i.clone(),0);h<d.length;h++){if((l=d[h]).parentNode==r.$&&h>a){c.insertBefore(new CKEDITOR.dom.element(l));break}l=null}l||r.append(c)}else for(u=o=1,(r=c.clone()).insertAfter(c),r.append(c=i.clone()),l=s(d,h),a=0;a<l.length;a++)l[a].rowSpan++;return c.appendBogus(),i.$.rowSpan=o,c.$.rowSpan=u,1==o&&i.removeAttribute("rowSpan"),1==u&&c.removeAttribute("rowSpan"),c}function u(t,n){if(1<(i=e(t)).length)return!1;if(n)return!0;var i,o=(i=i[0]).getParent(),r=o.getAscendant("table"),a=s(r=CKEDITOR.tools.buildTableMap(r),o.$.rowIndex,i);if(1<(l=i.$.colSpan))o=Math.ceil(l/2),l=Math.floor(l/2);else{for(var l=o=1,u=[],c=0;c<r.length;c++){var d=r[c];u.push(d[a]),1<d[a].rowSpan&&(c+=d[a].rowSpan-1)}for(r=0;r<u.length;r++)u[r].colSpan++}return(r=i.clone()).insertAfter(i),r.appendBogus(),i.$.colSpan=o,r.$.colSpan=l,1==o&&i.removeAttribute("colSpan"),1==l&&r.removeAttribute("colSpan"),r}var c=/^(?:td|th)$/;CKEDITOR.plugins.tabletools={requires:"table,dialog,contextmenu",init:function(n){function s(e){return CKEDITOR.tools.extend(e||{},{contextSensitive:1,refresh:function(e,t){this.setState(t.contains({td:1,th:1},1)?CKEDITOR.TRISTATE_OFF:CKEDITOR.TRISTATE_DISABLED)}})}function c(e,t){var i=n.addCommand(e,t);n.addFeature(i)}var d=n.lang.table;c("cellProperties",new CKEDITOR.dialogCommand("cellProperties",s({allowedContent:"td th{width,height,border-color,background-color,white-space,vertical-align,text-align}[colspan,rowspan]",requiredContent:"table",contentTransformations:[[{element:"td",left:function(e){return e.styles.background&&e.styles.background.match(/^(#[a-fA-F0-9]{3,6}|rgb\([\d, ]+\)|\w+)$/)},right:function(e){e.styles["background-color"]=e.styles.background}}]]}))),CKEDITOR.dialog.add("cellProperties",this.path+"dialogs/tableCell.js"),c("rowDelete",s({requiredContent:"table",exec:function(t){r(function t(n){if(n instanceof CKEDITOR.dom.selection){var i=(s=e(n))[0].getAscendant("table"),o=CKEDITOR.tools.buildTableMap(i);n=s[0].getParent().$.rowIndex;for(var r=(s=s[s.length-1]).getParent().$.rowIndex+s.$.rowSpan-1,s=[],a=n;a<=r;a++){for(var l=o[a],u=new CKEDITOR.dom.element(i.$.rows[a]),c=0;c<l.length;c++){var d=new CKEDITOR.dom.element(l[c]),h=d.getParent().$.rowIndex;1==d.$.rowSpan?d.remove():(--d.$.rowSpan,h==a&&((h=o[a+1])[c-1]?d.insertAfter(new CKEDITOR.dom.element(h[c-1])):new CKEDITOR.dom.element(i.$.rows[a+1]).append(d,1))),c+=d.$.colSpan-1}s.push(u)}for(o=i.$.rows,i=new CKEDITOR.dom.element(o[r+1]||(0<n?o[n-1]:null)||i.$.parentNode),a=s.length;0<=a;a--)t(s[a]);return i}return n instanceof CKEDITOR.dom.element&&(1==(i=n.getAscendant("table")).$.rows.length?i.remove():n.remove()),null}(t=t.getSelection()))}})),c("rowInsertBefore",s({requiredContent:"table",exec:function(e){t(e=e.getSelection(),!0)}})),c("rowInsertAfter",s({requiredContent:"table",exec:function(e){t(e=e.getSelection())}})),c("columnDelete",s({requiredContent:"table",exec:function(t){var n=(t=e(t=t.getSelection()))[0],i=t[t.length-1];t=n.getAscendant("table");for(var o,s,a=CKEDITOR.tools.buildTableMap(t),l=[],u=0,c=a.length;u<c;u++)for(var d=0,h=a[u].length;d<h;d++)a[u][d]==n.$&&(o=d),a[u][d]==i.$&&(s=d);for(u=o;u<=s;u++)for(d=0;d<a.length;d++)i=a[d],n=new CKEDITOR.dom.element(t.$.rows[d]),(i=new CKEDITOR.dom.element(i[u])).$&&(1==i.$.colSpan?i.remove():--i.$.colSpan,d+=i.$.rowSpan-1,n.$.cells.length||l.push(n));s=t.$.rows[0]&&t.$.rows[0].cells,o=new CKEDITOR.dom.element(s[o]||(o?s[o-1]:t.$.parentNode)),l.length==c&&t.remove(),o&&r(o,!0)}})),c("columnInsertBefore",s({requiredContent:"table",exec:function(e){i(e=e.getSelection(),!0)}})),c("columnInsertAfter",s({requiredContent:"table",exec:function(e){i(e=e.getSelection())}})),c("cellDelete",s({requiredContent:"table",exec:function(t){(function t(n){if(n instanceof CKEDITOR.dom.selection){var i,o=(n=e(n))[0]&&n[0].getAscendant("table");e:{var s=0;i=n.length-1;for(var a,l,u={};a=n[s++];)CKEDITOR.dom.element.setMarker(u,a,"delete_cell",!0);for(s=0;a=n[s++];)if((l=a.getPrevious())&&!l.getCustomData("delete_cell")||(l=a.getNext())&&!l.getCustomData("delete_cell")){CKEDITOR.dom.element.clearAllMarkers(u),i=l;break e}CKEDITOR.dom.element.clearAllMarkers(u),i=(l=(l=n[0].getParent()).getPrevious())?l.getLast():(l=(l=n[i].getParent()).getNext())?l.getChild(0):null}for(l=n.length-1;0<=l;l--)t(n[l]);i?r(i,!0):o&&o.remove()}else n instanceof CKEDITOR.dom.element&&(1==(o=n.getParent()).getChildCount()?o.remove():n.remove())})(t=t.getSelection())}})),c("cellMerge",s({allowedContent:"td[colspan,rowspan]",requiredContent:"td[colspan,rowspan]",exec:function(e){r(a(e.getSelection()),!0)}})),c("cellMergeRight",s({allowedContent:"td[colspan]",requiredContent:"td[colspan]",exec:function(e){r(a(e.getSelection(),"right"),!0)}})),c("cellMergeDown",s({allowedContent:"td[rowspan]",requiredContent:"td[rowspan]",exec:function(e){r(a(e.getSelection(),"down"),!0)}})),c("cellVerticalSplit",s({allowedContent:"td[rowspan]",requiredContent:"td[rowspan]",exec:function(e){r(u(e.getSelection()))}})),c("cellHorizontalSplit",s({allowedContent:"td[colspan]",requiredContent:"td[colspan]",exec:function(e){r(l(e.getSelection()))}})),c("cellInsertBefore",s({requiredContent:"table",exec:function(e){o(e=e.getSelection(),!0)}})),c("cellInsertAfter",s({requiredContent:"table",exec:function(e){o(e=e.getSelection())}})),n.addMenuItems&&n.addMenuItems({tablecell:{label:d.cell.menu,group:"tablecell",order:1,getItems:function(){var t=n.getSelection(),i=e(t);return{tablecell_insertBefore:CKEDITOR.TRISTATE_OFF,tablecell_insertAfter:CKEDITOR.TRISTATE_OFF,tablecell_delete:CKEDITOR.TRISTATE_OFF,tablecell_merge:a(t,null,!0)?CKEDITOR.TRISTATE_OFF:CKEDITOR.TRISTATE_DISABLED,tablecell_merge_right:a(t,"right",!0)?CKEDITOR.TRISTATE_OFF:CKEDITOR.TRISTATE_DISABLED,tablecell_merge_down:a(t,"down",!0)?CKEDITOR.TRISTATE_OFF:CKEDITOR.TRISTATE_DISABLED,tablecell_split_vertical:u(t,!0)?CKEDITOR.TRISTATE_OFF:CKEDITOR.TRISTATE_DISABLED,tablecell_split_horizontal:l(t,!0)?CKEDITOR.TRISTATE_OFF:CKEDITOR.TRISTATE_DISABLED,tablecell_properties:0<i.length?CKEDITOR.TRISTATE_OFF:CKEDITOR.TRISTATE_DISABLED}}},tablecell_insertBefore:{label:d.cell.insertBefore,group:"tablecell",command:"cellInsertBefore",order:5},tablecell_insertAfter:{label:d.cell.insertAfter,group:"tablecell",command:"cellInsertAfter",order:10},tablecell_delete:{label:d.cell.deleteCell,group:"tablecell",command:"cellDelete",order:15},tablecell_merge:{label:d.cell.merge,group:"tablecell",command:"cellMerge",order:16},tablecell_merge_right:{label:d.cell.mergeRight,group:"tablecell",command:"cellMergeRight",order:17},tablecell_merge_down:{label:d.cell.mergeDown,group:"tablecell",command:"cellMergeDown",order:18},tablecell_split_horizontal:{label:d.cell.splitHorizontal,group:"tablecell",command:"cellHorizontalSplit",order:19},tablecell_split_vertical:{label:d.cell.splitVertical,group:"tablecell",command:"cellVerticalSplit",order:20},tablecell_properties:{label:d.cell.title,group:"tablecellproperties",command:"cellProperties",order:21},tablerow:{label:d.row.menu,group:"tablerow",order:1,getItems:function(){return{tablerow_insertBefore:CKEDITOR.TRISTATE_OFF,tablerow_insertAfter:CKEDITOR.TRISTATE_OFF,tablerow_delete:CKEDITOR.TRISTATE_OFF}}},tablerow_insertBefore:{label:d.row.insertBefore,group:"tablerow",command:"rowInsertBefore",order:5},tablerow_insertAfter:{label:d.row.insertAfter,group:"tablerow",command:"rowInsertAfter",order:10},tablerow_delete:{label:d.row.deleteRow,group:"tablerow",command:"rowDelete",order:15},tablecolumn:{label:d.column.menu,group:"tablecolumn",order:1,getItems:function(){return{tablecolumn_insertBefore:CKEDITOR.TRISTATE_OFF,tablecolumn_insertAfter:CKEDITOR.TRISTATE_OFF,tablecolumn_delete:CKEDITOR.TRISTATE_OFF}}},tablecolumn_insertBefore:{label:d.column.insertBefore,group:"tablecolumn",command:"columnInsertBefore",order:5},tablecolumn_insertAfter:{label:d.column.insertAfter,group:"tablecolumn",command:"columnInsertAfter",order:10},tablecolumn_delete:{label:d.column.deleteColumn,group:"tablecolumn",command:"columnDelete",order:15}}),n.contextMenu&&n.contextMenu.addListener(function(e,t,n){return(e=n.contains({td:1,th:1},1))&&!e.isReadOnly()?{tablecell:CKEDITOR.TRISTATE_OFF,tablerow:CKEDITOR.TRISTATE_OFF,tablecolumn:CKEDITOR.TRISTATE_OFF}:null})},getSelectedCells:e},CKEDITOR.plugins.add("tabletools",CKEDITOR.plugins.tabletools)}(),CKEDITOR.tools.buildTableMap=function(e){e=e.$.rows;for(var t=-1,n=[],i=0;i<e.length;i++){!n[++t]&&(n[t]=[]);for(var o=-1,r=0;r<e[i].cells.length;r++){var s=e[i].cells[r];for(o++;n[t][o];)o++;for(var a=isNaN(s.colSpan)?1:s.colSpan,l=(s=isNaN(s.rowSpan)?1:s.rowSpan,0);l<s;l++){n[t+l]||(n[t+l]=[]);for(var u=0;u<a;u++)n[t+l][o+u]=e[i].cells[r]}o+=a-1}}return n},function(){var e=[CKEDITOR.CTRL+90,CKEDITOR.CTRL+89,CKEDITOR.CTRL+CKEDITOR.SH
1IFT+90],t={8:1,46:1};CKEDITOR.plugins.add("undo",{init:function(t){function i(e){s.enabled&&!1!==e.data.command.canUndo&&s.save()}function o(){s.enabled=!t.readOnly&&"wysiwyg"==t.mode,s.onChange()}var s=t.undoManager=new n(t),a=s.editingHandler=new r(s),l=t.addCommand("undo",{exec:function(){s.undo()&&(t.selectionChange(),this.fire("afterUndo"))},startDisabled:!0,canUndo:!1}),u=t.addCommand("redo",{exec:function(){s.redo()&&(t.selectionChange(),this.fire("afterRedo"))},startDisabled:!0,canUndo:!1});t.setKeystroke([[e[0],"undo"],[e[1],"redo"],[e[2],"redo"]]),s.onChange=function(){l.setState(s.undoable()?CKEDITOR.TRISTATE_OFF:CKEDITOR.TRISTATE_DISABLED),u.setState(s.redoable()?CKEDITOR.TRISTATE_OFF:CKEDITOR.TRISTATE_DISABLED)},t.on("beforeCommandExec",i),t.on("afterCommandExec",i),t.on("saveSnapshot",function(e){s.save(e.data&&e.data.contentOnly)}),t.on("contentDom",a.attachListeners,a),t.on("instanceReady",function(){t.fire("saveSnapshot")}),t.on("beforeModeUnload",function(){"wysiwyg"==t.mode&&s.save(!0)}),t.on("mode",o),t.on("readOnly",o),t.ui.addButton&&(t.ui.addButton("Undo",{label:t.lang.undo.undo,command:"und
1o",toolbar:"undo,10"}),t.ui.addButton("Redo",{label:t.lang.undo.redo,command:"redo",toolbar:"undo,20"})),t.resetUndo=function(){s.reset(),t.fire("saveSnapshot")},t.on("updateSnapshot",function(){s.currentImage&&s.update()}),t.on("lockSnapshot",function(e){e=e.data,s.lock(e&&e.dontUpdate,e&&e.forceUpdate)}),t.on("unlockSnapshot",s.unlock,s)}}),CKEDITOR.plugins.undo={};var n=CKEDITOR.plugins.undo.UndoManager=function(e){this.strokesRecorded=[0,0],this.locked=null,this.previousKeyGroup=-1,this.limit=e.config.undoStackSize||20,this.strokesLimit=25,this.editor=e,this.reset()};n.prototype={type:function(e,t){var i=n.getKeyGroup(e),o=this.strokesRecorded[i]+1;t=t||o>=this.strokesLimit,this.typing||(this.hasUndo=this.typing=!0,this.hasRedo=!1,this.onChange()),t?(o=0,this.editor.fire("saveSnapshot")):this.editor.fire("change"),this.strokesRecorded[i]=o,this.previousKeyGroup=i},keyGroupChanged:function(e){return n.getKeyGroup(e)!=this.previousKeyGroup},reset:function(){this.snapshots=[],this.index=-1,this.currentImage=null,this.hasRedo=this.hasUndo=!1,this.locked=null,this.resetType()},resetType:function(){this.strokesRecorded=[0,0],this.typing=!1,this.previousKeyGroup=-1},refreshState:function(){this.hasUndo=!!this.getNextImage(!0),this.hasRedo=!!this.getNextImage(!1),this.resetType(),this.onChange()},save:function(e,t,n){var o=this.editor;if(this.locked||"ready"!=o.status||"wysiwyg"!=o.mode)return!1;var r=o.editable();if(!r||"ready"!=r.status)return!1;if(r=this.snapshots,t||(t=new i(o)),!1===t.contents)return!1;if(this.currentImage)if(t.equalsContent(this.currentImage)){if(e||t.equalsSelection(this.currentImage))return!1}else!1!==n&&o.fire("change");return r.splice(this.index+1,r.length-this.index-1),r.length==this.limit&&r.shift(),this.index=r.push(t)-1,this.currentImage=t,!1!==n&&this.refreshState(),!0},restoreImage:function(e){var t,n=this.editor;e.bookmarks&&(n.focus(),t=n.getSelection()),this.locked={level:999},this.editor.loadSnapshot(e.contents),e.bookmarks?t.selectBookmarks(e.bookmarks):CKEDITOR.env.ie&&((t=this.editor.document.getBody().$.createTextRange()).collapse(!0),t.select()),this.locked=null,this.index=e.index,this.currentImage=this.snapshots[this.index],this.update(),this.refreshState(),n.fire("change")},getNextImage:function(e){var t,n=this.snapshots,i=this.currentImage;if(i)if(e){for(t=this.index-1;0<=t;t--)if(e=n[t],!i.equalsContent(e))return e.index=t,e}else for(t=this.index+1;t<n.length;t++)if(e=n[t],!i.equalsContent(e))return e.index=t,e;return null},redoable:function(){return this.enabled&&this.hasRedo},undoable:function(){return this.enabled&&this.hasUndo},undo:function(){if(this.undoable()){this.save(!0);var e=this.getNextImage(!0);if(e)return this.restoreImage(e),!0}return!1},redo:function(){if(this.redoable()&&(this.save(!0),this.redoable())){var e=this.getNextImage(!1);if(e)return this.restoreImage(e),!0}return!1},update:function(e){if(!this.locked){e||(e=new i(this.editor));for(var t=this.index,n=this.snapshots;0<t&&this.currentImage.equalsContent(n[t-1]);)--t;n.splice(t,this.index-t+1,e),this.index=t,this.currentImage=e}},updateSelection:function(e){if(!this.snapshots.length)return!1;var t=this.snapshots,n=t[t.length-1];return!(!n.equalsContent(e)||n.equalsSelection(e))&&(this.currentImage=t[t.length-1]=e,!0)},lock:function(e,t){if(this.locked)this.locked.level++;else if(e)this.locked={level:1};else{var n=null;if(t)n=!0;else{var o=new i(this.editor,!0);this.currentImage&&this.currentImage.equalsContent(o)&&(n=o)}this.locked={update:n,level:1}}},unlock:function(){if(this.locked&&!--this.locked.level){var e=this.locked.update;if(this.locked=null,!0===e)this.update();else if(e){var t=new i(this.editor,!0);e.equalsContent(t)||this.update()}}}},n.navigationKeyCodes={37:1,38:1,39:1,40:1,36:1,35:1,33:1,34:1},n.keyGroups={PRINTABLE:0,FUNCTIONAL:1},n.isNavigationKey=function(e){return!!n.navigationKeyCodes[e]},n.getKeyGroup=function(e){var i=n.keyGroups;return t[e]?i.FUNCTIONAL:i.PRINTABLE},n.getOppositeKeyGroup=function(e){var t=n.keyGroups;return e==t.FUNCTIONAL?t.PRINTABLE:t.FUNCTIONAL},n.ieFunctionalKeysBug=function(e){return CKEDITOR.env.ie&&n.getKeyGroup(e)==n.keyGroups.FUNCTIONAL};var i=CKEDITOR.plugins.undo.Image=function(e,t){this.editor=e,e.fire("beforeUndoImage");var n=e.getSnapshot();CKEDITOR.env.ie&&n&&(n=n.replace(/\s+data-cke-expando=".*?"/g,"")),this.contents=n,t||(this.bookmarks=(n=n&&e.getSelection())&&n.createBookmarks2(!0)),e.fire("afterUndoImage")},o=/\b(?:href|src|name)="[^"]*?"/gi;i.prototype={equalsContent:function(e){var t=this.contents;return e=e.contents,CKEDITOR.env.ie&&(CKEDITOR.env.ie7Compat||CKEDITOR.env.quirks)&&(t=t.replace(o,""),e=e.replace(o,"")),t==e},equalsSelection:function(e){var t=this.bookmarks;if(e=e.bookmarks,t||e){if(!t||!e||t.length!=e.length)return!1;for(var n=0;n<t.length;n++){var i=t[n],o=e[n];if(i.startOffset!=o.startOffset||i.endOffset!=o.endOffset||!CKEDITOR.tools.arrayCompare(i.start,o.start)||!CKEDITOR.tools.arrayCompare(i.end,o.end))return!1}}return!0}};var r=CKEDITOR.plugins.undo.NativeEditingHandler=function(e){this.undoManager=e,this.ignoreInputEvent=!1,this.keyEventsStack=new s,this.lastKeydownImage=null};r.prototype={onKeydown:function(t){var o=t.data.getKey();229!==o&&(-1<CKEDITOR.tools.indexOf(e,t.data.getKeystroke())?t.data.preventDefault():(this.keyEventsStack.cleanUp(t),t=this.undoManager,this.keyEventsStack.getLast(o)||this.keyEventsStack.push(o),this.lastKeydownImage=new i(t.editor),(n.isNavigationKey(o)||this.undoManager.keyGroupChanged(o))&&(t.strokesRecorded[0]||t.strokesRecorded[1])&&(t.save(!1,this.lastKeydownImage,!1),t.resetType())))},onInput:function(){if(this.ignoreInputEvent)this.ignoreInputEvent=!1;else{var e=this.keyEventsStack.getLast();e||(e=this.keyEventsStack.push(0)),this.keyEventsStack.increment(e.keyCode),this.keyEventsStack.getTotalInputs()>=this.undoManager.strokesLimit&&(this.undoManager.type(e.keyCode,!0),this.keyEventsStack.resetInputs())}},onKeyup:function(e){var t=this.undoManager;e=e.data.getKey();var o=this.keyEventsStack.getTotalInputs();this.keyEventsStack.remove(e),n.ieFunctionalKeysBug(e)&&this.lastKeydownImage&&this.lastKeydownImage.equalsContent(new i(t.editor,!0))||(0<o?t.type(e):n.isNavigationKey(e)&&this.onNavigationKey(!0))},onNavigationKey:function(e){var t=this.undoManager;!e&&t.save(!0,null,!1)||t.updateSelection(new i(t.editor)),t.resetType()},ignoreInputEventListener:function(){this.ignoreInputEvent=!0},attachListeners:function(){var e=this.undoManager.editor,t=e.editable(),i=this;t.attachListener(t,"keydown",function(e){i.onKeydown(e),n.ieFunctionalKeysBug(e.data.getKey())&&i.onInput()},null,null,999),t.attachListener(t,CKEDITOR.env.ie?"keypress":"input",i.onInput,i,null,999),t.attachListener(t,"keyup",i.onKeyup,i,null,999),t.attachListener(t,"paste",i.ignoreInputEventListener,i,null,999),t.attachListener(t,"drop",i.ignoreInputEventListener,i,null,999),t.attachListener(t.isInline()?t:e.document.getDocumentElement(),"click",function(){i.onNavigationKey()},null,null,999),t.attachListener(this.undoManager.editor,"blur",function(){i.keyEventsStack.remove(9)},null,null,999)}};var s=CKEDITOR.plugins.undo.KeyEventsStack=function(){this.stack=[]};s.prototype={push:function(e){return e=this.stack.push({keyCode:e,inputs:0}),this.stack[e-1]},getLastIndex:function(e){if("number"!=typeof e)return this.stack.length-1;for(var t=this.stack.length;t--;)if(this.stack[t].keyCode==e)return t;return-1},getLast:function(e){return-1!=(e=this.getLastIndex(e))?this.stack[e]:null},increment:function(e){this.getLast(e).inputs++},remove:function(e){-1!=(e=this.getLastIndex(e))&&this.stack.splice(e,1)},resetInputs:function(e){if("number"==typeof e)this.getLast(e).inputs=0;else for(e=this.stack.length;e--;)this.stack[e].inputs=0},getTotalInputs:function(){for(var e=this.stack.length,t=0;e--;)t+=this.stack[e].inputs;return t},cleanUp:function(e){(e=e.data.$).ctrlKey||e.metaKey||this.remove(17),e.shiftKey||this.remove(16),e.altKey||this.remove(18)}}}(),CKEDITOR.plugins.add("wsc",{requires:"dialog",parseApi:function(e){e.config.wsc_onFinish="function"==typeof e.config.wsc_onFinish?e.config.wsc_onFinish:function(){},e.config.wsc_onClose="function"==typeof e.config.wsc_onClose?e.config.wsc_onClose:function(){}},parseConfig:function(e){e.config.wsc_customerId=e.config.wsc_customerId||CKEDITOR.config.wsc_customerId||"1:ua3xw1-2XyGJ3-GWruD3-6OFNT1-oXcuB1-nR6Bp4-hgQHc-EcYng3-sdRXG3-NOfFk",e.config.wsc_customDictionaryIds=e.config.wsc_customDictionaryIds||CKEDITOR.config.wsc_customDictionaryIds||"",e.config.wsc_userDictionaryName=e.config.wsc_userDictionaryName||CKEDITOR.config.wsc_userDictionaryName||"",e.config.wsc_customLoaderScript=e.config.wsc_customLoaderScript||CKEDITOR.config.wsc_customLoaderScript,e.config.wsc_interfaceLang=e.config.wsc_interfaceLang,CKEDITOR.config.wsc_cmd=e.config.wsc_cmd||CKEDITOR.config.wsc_cmd||"spell",CKEDITOR.config.wsc_version="v4.3.0-master-d769233",CKEDITOR.config.wsc_removeGlobalVariable=!0},onLoad:function(e){"moono-lisa"==(CKEDITOR.skinName||e.config.skin)&&CKEDITOR.document.appendStyleSheet(this.path+"skins/"+CKEDITOR.skin.name+"/wsc.css")},init:function(e){var t=CKEDITOR.env;this.parseConfig(e),this.parseApi(e),e.addCommand("checkspell",new CKEDITOR.dialogCommand("checkspell")).modes={wysiwyg:!(CKEDITOR.env.opera||CKEDITOR.env.air||document.domain!=window.location.hostname||t.ie&&(8>
1t.version||t.quirks))},"undefined"==typeof e.plugins.scayt&&e.ui.addButton&&e.ui.addButton("SpellChecker",{label:e.lang.wsc.toolbar,click:function(e){var t=e.elementMode==CKEDITOR.ELEMENT_MODE_INLINE?e.container.getText():e.document.getBody().getText();(t=t.replace(/\s/g,""))?e.execCommand("checkspell"):alert("Nothing to check!")},toolbar:"spellchecker,10"}),CKEDITOR.dialog.add("checkspell",this.path+(CKEDITOR.env.ie&&7>=CKEDITOR.env.version?"dialogs/wsc_ie.js":window.postMessage?"dialogs/wsc.js":"dialogs/wsc_ie.js"))}}),CKEDITOR.plugins.add("panelbutton",{requires:"button",onLoad:function(){function e(e){var t=this._;t.state!=CKEDITOR.TRISTATE_DISABLED&&(this.createPanel(e),t.on?t.panel.hide():t.panel.showBlock(this._.id,this.document.getById(this._.id),4))}CKEDITOR.ui.panelButton=CKEDITOR.tools.createClass({base:CKEDITOR.ui.button,$:function(t){var n=t.panel||{};delete t.panel,this.base(t),this.document=n.parent&&n.parent.getDocument()||CKEDITOR.document,n.block={attributes:n.attributes},this.hasArrow=n.toolbarRelated=!0,this.click=e,this._={panelDefinition:n}},statics:{handler:{create:function(e){return new CKEDITOR.ui.panelButton(e)}}},proto:{createPanel:function(e){var t=this._;if(!t.panel){var n=this._.panelDefinition,i=this._.panelDefinition.block,o=n.parent||CKEDITOR.document.getBody(),r=this._.panel=new CKEDITOR.ui.floatPanel(e,o,n),s=(n=r.addBlock(t.id,i),this);r.onShow=function(){s.className&&this.element.addClass(s.className+"_panel"),s.setState(CKEDITOR.TRISTATE_ON),t.on=1,s.editorFocus&&e.focus(),s.onOpen&&s.onOpen()},r.onHide=function(n){s.className&&this.element.getFirst().removeClass(s.className+"_panel"),s.setState(s.modes&&s.modes[e.mode]?CKEDITOR.TRISTATE_OFF:CKEDITOR.TRISTATE_DISABLED),t.on=0,!n&&s.onClose&&s.onClose()},r.onEscape=function(){r.hide(1),s.document.getById(t.id).focus()},this.onBlock&&this.onBlock(r,n),n.onHide=function(){t.on=0,s.setState(CKEDITOR.TRISTATE_OFF)}}}}})},beforeInit:function(e){e.ui.addHandler(CKEDITOR.UI_PANELBUTTON,CKEDITOR.ui.panelButton.handler)}}),CKEDITOR.UI_PANELBUTTON="panelbutton",function(){function e(e,t,n,i,o,r,s,a){var l=e.config,u=new CKEDITOR.style(s),c=o.split(";");o=[];for(var d={},h=0;h<c.length;h++){if(f=c[h]){var f=f.split("/"),p={},g=c[h]=f[0];p[n]=o[h]=f[1]||g,d[g]=new CKEDITOR.style(s,p),d[g]._.definition.name=g}else c.splice(h--,1)}e.ui.addRichCombo(t,{label:i.label,title:i.panelTitle,toolbar:"styles,"+a,allowedContent:u,requiredContent:u,contentTransformations:[[{element:"font",check:"span",left:function(e){return!!e.attributes.size||!!e.attributes.align||!!e.attributes.face},right:function(e){var t=" x-small small medium large x-large xx-large 48px".split(" ");e.name="span",e.attributes.size&&(e.styles["font-size"]=t[e.attributes.size],delete e.attributes.size),e.attributes.align&&(e.styles["text-align"]=e.attributes.align,delete e.attributes.align),e.attributes.face&&(e.styles["font-family"]=e.attributes.face,delete e.attributes.face)}}]],panel:{css:[CKEDITOR.skin.getPath("editor")].concat(l.contentsCss),multiSelect:!1,attributes:{"aria-label":i.panelTitle}},init:function(){this.startGroup(i.panelTitle);for(var e=0;e<c.length;e++){var t=c[e];this.add(t,d[t].buildPreview(),t)}},onClick:function(t){e.focus(),e.fire("saveSnapshot");var n=this.getValue(),i=d[t];if(n&&t!=n){var o=d[n],r=e.getSelection().getRanges()[0];if(r.collapsed){var s=e.elementPath(),a=s.contains(function(e){return o.checkElementRemovable(e)});if(a){var l=r.checkBoundaryOfElement(a,CKEDITOR.START),u=r.checkBoundaryOfElement(a,CKEDITOR.END);if(l&&u){for(l=r.createBookmark();s=a.getFirst();)s.insertBefore(a);a.remove(),r.moveToBookmark(l)}else l||u?r.moveToPosition(a,l?CKEDITOR.POSITION_BEFORE_START:CKEDITOR.POSITION_AFTER_END):(r.splitElement(a),r.moveToPosition(a,CKEDITOR.POSITION_AFTER_END)),function e(t,n,i){var o=n.pop();if(o){if(i)return e(t,n,o.equals(i)?null:i);i=o.clone(),t.insertNode(i),t.moveToPosition(i,CKEDITOR.POSITION_AFTER_START),e(t,n)}}(r,s.elements.slice(),a);e.getSelection().selectRanges([r])}}else e.removeStyle(o)}e[n==t?"removeStyle":"applyStyle"](i),e.fire("saveSnapshot")},onRender:function(){e.on("selectionChange",function(t){var n=this.getValue();t=t.data.path.elements;for(var i,o=0;o<t.length;o++)for(var s in i=t[o],d)if(d[s].checkElementMatch(i,!0,e))return void(s!=n&&this.setValue(s));this.setValue("",r)},this)},refresh:function(){e.activeFilter.check(u)||this.setState(CKEDITOR.TRISTATE_DISABLED)}})}CKEDITOR.plugins.add("font",{requires:"richcombo",init:function(t){var n=t.config;e(t,"Font","family",t.lang.font,n.font_names,n.font_defaultLabel,n.font_style,30),e(t,"FontSize","size",t.lang.font.fontSize,n.fontSize_sizes,n.fontSize_defaultLabel,n.fontSize_style,40)}})}(),CKEDITOR.config.font_names="Arial/Arial, Helvetica, sans-serif;Comic Sans MS/Comic Sans MS, cursive;Courier New/Courier New, Courier, monospace;Georgia/Georgia, serif;Lucida Sans Unicode/Lucida Sans Unicode, Lucida Grande, sans-serif;Tahoma/Tahoma, Geneva, sans-serif;Times New Roman/Times New Roman, Times, serif;Trebuchet MS/Trebuchet MS, Helvetica, sans-serif;Verdana/Verdana, Geneva, sans-serif",CKEDITOR.config.font_defaultLabel="",CKEDITOR.config.font_style={element:"span",styles:{"font-family":"#(family)"},overrides:[{element:"font",attributes:{face:null}}]},CKEDITOR.config.fontSize_sizes="8/8px;9/9px;10/10px;11/11px;12/12px;14/14px;16/16px;18/18px;20/20px;22/22px;24/24px;26/26px;28/28px;36/36px;48/48px;72/72px",CKEDITOR.config.fontSize_defaultLabel="",CKEDITOR.config.fontSize_style={element:"span",styles:{"font-size":"#(size)"},overrides:[{element:"font",attributes:{size:null}}]},function(){function e(e,t){var n;if(t=void 0===t||t)n=e.getComputedStyle("text-align");else{for(;(!e.hasAttribute||!e.hasAttribute("align")&&!e.getStyle("text-align"))&&(n=e.getParent());)e=n;n=e.getStyle("text-align")||e.getAttribute("align")||""}return n&&(n=n.replace(/(?:-(?:moz|webkit)-)?(?:start|auto)/i,"")),!n&&t&&(n="rtl"==e.getComputedStyle("direction")?"right":"left"),n}function t(e,t,n){this.editor=e,this.name=t,this.value=n,this.context="p",t=e.config.justifyClasses;var i=e.config.enterMode==CKEDITOR.ENTER_P?"p":"div";if(t){switch(n){case"left":this.cssClassName=t[0];break;case"center":this.cssClassName=t[1];break;case"right":this.cssClassName=t[2];break;case"justify":this.cssClassName=t[3]}this.cssClassRegex=new RegExp("(?:^|\\s+)(?:"+t.join("|")+")(?=$|\\s)"),this.requiredContent=i+"("+this.cssClassName+")"}else this.requiredContent=i+"{text-align}";this.allowedContent={"caption div h1 h2 h3 h4 h5 h6 p pre td th li":{propertiesOnly:!0,styles:this.cssClassName?null:"text-align",classes:this.cssClassName||null}},e.config.enterMode==CKEDITOR.ENTER_BR&&(this.allowedContent.div=!0)}function n(e){var t=e.editor,n=t.createRange();n.setStartBefore(e.data.node),n.setEndAfter(e.data.node);for(var i,o=new CKEDITOR.dom.walker(n);i=o.next();)if(i.type==CKEDITOR.NODE_ELEMENT)if(!i.equals(e.data.node)&&i.getDirection())n.setStartAfter(i),o=new CKEDITOR.dom.walker(n);else{var r=t.config.justifyClasses;r&&(i.hasClass(r[0])?(i.removeClass(r[0]),i.addClass(r[2])):i.hasClass(r[2])&&(i.removeClass(r[2]),i.addClass(r[0]))),"left"==(r=i.getStyle("text-align"))?i.setStyle("text-align","right"):"right"==r&&i.setStyle("text-align","left")}}t.prototype={exec:function(t){var n=t.getSelection(),i=t.config.enterMode;if(n){for(var o,r,s=n.createBookmarks(),a=n.getRanges(),l=this.cssClassName,u=void 0===(u=t.config.useComputedState)||u,c=a.length-1;0<=c;c--)for((o=a[c].createIterator()).enlargeBr=i!=CKEDITOR.ENTER_BR;r=o.getNextParagraph(i==CKEDITOR.ENTER_P?"p":"div");)if(!r.isReadOnly()){r.removeAttribute("align"),r.removeStyle("text-align");var d=l&&(r.$.className=CKEDITOR.tools.ltrim(r.$.className.replace(this.cssClassRegex,""))),h=this.state==CKEDITOR.TRISTATE_OFF&&(!u||e(r,!0)!=this.value);l?h?r.addClass(l):d||r.removeAttribute("class"):h&&r.setStyle("text-align",this.value)}t.focus(),t.forceNextSelectionCheck(),n.selectBookmarks(s)}},refresh:function(t,n){var i=n.block||n.blockLimit;this.setState("body"!=i.getName()&&e(i,this.editor.config.useComputedState)==this.value?CKEDITOR.TRISTATE_ON:CKEDITOR.TRISTATE_OFF)}},CKEDITOR.plugins.add("justify",{init:function(e){if(!e.blockless){var i=new t(e,"justifyleft","left"),o=new t(e,"justifycenter","center"),r=new t(e,"justifyright","right"),s=new t(e,"justifyblock","justify");e.addCommand("justifyleft",i),e.addCommand("justifycenter",o),e.addCommand("justifyright",r),e.addCommand("justifyblock",s),e.ui.addButton&&(e.ui.addButton("JustifyLeft",{label:e.lang.justify.left,command:"justifyleft",toolbar:"align,10"}),e.ui.addButton("JustifyCenter",{label:e.lang.justify.center,command:"justifycenter",toolbar:"align,20"}),e.ui.addButton("JustifyRight",{label:e.lang.justify.right,command:"justifyright",toolbar:"align,30"}),e.ui.addButton("JustifyBlock",{label:e.lang.justify.block,command:"justifyblock",toolbar:"align,40"})),e.on("dirChanged",n)}}})}(),CKEDITOR.plugins.add("divarea",{afterInit:function(e){e.addMode("wysiwyg",function(t){var n=CKEDITOR.dom.element.createFromHtml('<div class="cke_wysiwyg_div cke_reset cke_enable_context_menu" hidefocus="true"></div>');e.ui.space("contents").append(n),(n=e.editable(n)).detach=CKEDITOR.tools.override(n.detach,function(e){return function(){e.apply(this,arguments),this.remove()}}),e.setData(e.getData(1),t),e.fire("contentDom")})}}),CKEDITOR.config.plugins="dialogui,dialog,about,a11yhelp,basicstyles,blockquote,clipboard,panel,floatpanel,menu,contextmenu,resize,button,toolbar,elementspath,enterkey,entities,popup,filebrowser,floatingspace,listblock,richcombo,format,horizontalrule,htmlwriter,wysiwygarea,image,indent,indentlist,fakeobjects,link,list,magicline,maximize,pastetext,pastefromword,removeformat,showborders,sourcearea,specialchar,menubutton,scayt,stylescombo,tab,table,tabletools,undo,wsc,panelbutton,font,justify,divarea",CKEDITOR.config.skin="moono-lisa",d=function(e,t){var n=CKEDITOR.getUrl("plugins/"+t);e=e.split(",");for(var i=0;i<e.length;i++)CKEDITOR.skin.icons[e[i]]={path:n,offset:-e[++i],bgsize:e[++i]}},CKEDITOR.env.hidpi?d("about,0,,bold,24,,italic,48,,strike,72,,subscript,96,,superscript,120,,underline,144,,blockquote,168,,copy-rtl,192,,copy,216,,cut-rtl,240,,cut,264,,paste-rtl,288,,paste,312,,horizontalrule,336,,image,360,,indent-rtl,384,,indent,408,,outdent-rtl,432,,outdent,456,,anchor-rtl,480,,anchor,504,,link,528,,unlink,552,,bulletedlist-rtl,576,,bulletedlist,600,,numberedlist-rtl,624,,numberedlist,648,,maximize,672,,pastetext-rtl,696,,pastetext,720,,pastefromword-rtl,744,,pastefromword,768,,removeformat,792,,source-rtl,816,,source,840,,specialchar,864,,scayt,888,,table,912,,redo-rtl,936,,redo,960,,undo-rtl,984,,undo,1008,,spellchecker,1032,,justifyblock,1056,,justifycenter,1080,,justifyleft,1104,,justifyright,1128,","icons_hidpi.png"):d("about,0,auto,bold,24,auto,italic,48,auto,strike,72,auto,subscript,96,auto,superscript,120,auto,underline,144,auto,blockquote,168,auto,copy-rtl,192,auto,copy,216,auto,cut-rtl,240,auto,cut,264,auto,paste-rtl,288,auto,paste,312,auto,horizontalrule,336,auto,image,360,auto,indent-rtl,384,auto,indent,408,auto,outdent-rtl,432,auto,outdent,456,auto,anch
1or-rtl,480,auto,anchor,504,auto,link,528,auto,unlink,552,auto,bulletedlist-rtl,576,auto,bulletedlist,600,auto,numberedlist-rtl,624,auto,numberedlist,648,auto,maximize,672,auto,pastetext-rtl,696,auto,pastetext,720,auto,pastefromword-rtl,744,auto,pastefromword,768,auto,removeformat,792,auto,source-rtl,816,auto,source,840,auto,specialchar,864,auto,scayt,888,auto,table,912,auto,redo-rtl,936,auto,redo,960,auto,undo-rtl,984,auto,undo,1008,auto,spellchecker,1032,auto,justifyblock,1056,auto,justifycenter,1080,auto,justifyleft,1104,auto,justifyright,1128,auto","icons.png"),CKEDITOR.lang.languages={en:1})}(),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):e.moment=t()}(this,function(){"use strict";var e;function t(){return e.apply(null,arguments)}function n(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function i(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function o(e){return void 0===e}function r(e){return"number"==typeof e||"[object Number]"===Object.prototype.toString.call(e)}function s(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function a(e,t){var n,i=[];for(n=0;n<e.length;++n)i.push(t(e[n],n));return i}function l(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function u(e,t){for(var n in t)l(t,n)&&(e[n]=t[n]);return l(t,"toString")&&(e.toString=t.toString),l(t,"valueOf")&&(e.valueOf=t.valueOf),e}function c(e,t,n,i){return Ot(e,t,n,i,!0).utc()}function d(e){return null==e._pf&&(e._pf={empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],meridiem:null,rfc2822:!1,weekdayMismatch:!1}),e._pf}var h=Array.prototype.some?Array.prototype.some:function(e){for(var t=Object(this),n=t.length>>>0,i=0;i<n;i++)if(i in t&&e.call(this,t[i],i,t))return!0;return!1};function f(e){if(null==e._isValid){var t=d(e),n=h.call(t.parsedDateParts,function(e){return null!=e}),i=!isNaN(e._d.getTime())&&t.overflow<0&&!t.empty&&!t.invalidMonth&&!t.invalidWeekday&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&n);if(e._strict&&(i=i&&0===t.charsLeftOver&&0===t.unusedTokens.length&&void 0===t.bigHour),null!=Object.isFrozen&&Object.isFrozen(e))return i;e._isValid=i}return e._isValid}function p(e){var t=c(NaN);return null!=e?u(d(t),e):d(t).userInvalidated=!0,t}var g=t.momentProperties=[];function m(e,t){var n,i,r;if(o(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),o(t._i)||(e._i=t._i),o(t._f)||(e._f=t._f),o(t._l)||(e._l=t._l),o(t._strict)||(e._strict=t._strict),o(t._tzm)||(e._tzm=t._tzm),o(t._isUTC)||(e._isUTC=t._isUTC),o(t._offset)||(e._offset=t._offset),o(t._pf)||(e._pf=d(t)),o(t._locale)||(e._locale=t._locale),g.length>0)for(n=0;n<g.length;n++)o(r=t[i=g[n]])||(e[i]=r);return e}var v=!1;function E(e){m(this,e),this._d=new Date(null!=e._d?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===v&&(v=!0,t.updateOffset(this),v=!1)}function T(e){return e instanceof E||null!=e&&null!=e._isAMomentObject}function y(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function C(e){var t=+e,n=0;return 0!==t&&isFinite(t)&&(n=y(t)),n}function b(e,t,n){var i,o=Math.min(e.length,t.length),r=Math.abs(e.length-t.length),s=0;for(i=0;i<o;i++)(n&&e[i]!==t[i]||!n&&C(e[i])!==C(t[i]))&&s++;return s+r}function D(e){!1===t.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+e)}function I(e,n){var i=!0;return u(function(){if(null!=t.deprecationHandler&&t.deprecationHandler(null,e),i){for(var o,r=[],s=0;s<arguments.length;s++){if(o="","object"==typeof arguments[s]){for(var a in o+="\n["+s+"] ",arguments[0])o+=a+": "+arguments[0][a]+", ";o=o.slice(0,-2)}else o=arguments[s];r.push(o)}D(e+"\nArguments: "+Array.prototype.slice.call(r).join("")+"\n"+(new Error).stack),i=!1}return n.apply(this,arguments)},n)}var O={};function R(e,n){null!=t.deprecationHandler&&t.deprecationHandler(e,n),O[e]||(D(n),O[e]=!0)}function _(e){return e instanceof Function||"[object Function]"===Object.prototype.toString.call(e)}function w(e,t){var n,o=u({},e);for(n in t)l(t,n)&&(i(e[n])&&i(t[n])?(o[n]={},u(o[n],e[n]),u(o[n],t[n])):null!=t[n]?o[n]=t[n]:delete o[n]);for(n in e)l(e,n)&&!l(t,n)&&i(e[n])&&(o[n]=u({},o[n]));return o}function k(e){null!=e&&this.set(e)}t.suppressDeprecationWarnings=!1,t.deprecationHandler=null;var K=Object.keys?Object.keys:function(e){var t,n=[];for(t in e)l(e,t)&&n.push(t);return n};var S={};function x(e,t){var n=e.toLowerCase();S[n]=S[n+"s"]=S[t]=e}function N(e){return"string"==typeof e?S[e]||S[e.toLowerCase()]:void 0}function A(e){var t,n,i={};for(n in e)l(e,n)&&(t=N(n))&&(i[t]=e[n]);return i}var L={};function F(e,t){L[e]=t}function P(e,n){return function(i){return null!=i?(M(this,e,i),t.updateOffset(this,n),this):B(this,e)}}function B(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN}function M(e,t,n){e.isValid()&&e._d["set"+(e._isUTC?"UTC":"")+t](n)}function $(e,t,n){var i=""+Math.abs(e),o=t-i.length;return(e>=0?n?"+":"":"-")+Math.pow(10,Math.max(0,o)).toString().substr(1)+i}var H=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}
vendor: 4,028 bytes, line 1
1|x|X|zz?|ZZ?|.)/g,j=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,q={},z={};function W(e,t,n,i){var o=i;"string"==typeof i&&(o=function(){return this[i]()}),e&&(z[e]=o),t&&(z[t[0]]=function(){return $(o.apply(this,arguments),t[1],t[2])}),n&&(z[n]=function(){return this.localeData().ordinal(o.apply(this,arguments),e)})}function V(e,t){return e.isValid()?(t=U(t,e.localeData()),q[t]=q[t]||function(e){var t,n,i,o=e.match(H);for(t=0,n=o.length;t<n;t++)z[o[t]]?o[t]=z[o[t]]:o[t]=(i=o[t]).match(/\[[\s\S]/)?i.replace(/^\[|\]$/g,""):i.replace(/\\/g,"");return function(t){var i,r="";for(i=0;i<n;i++)r+=_(o[i])?o[i].call(t,e):o[i];return r}}(t),q[t](e)):e.localeData().invalidDate()}function U(e,t){var n=5;function i(e){return t.longDateFormat(e)||e}for(j.lastIndex=0;n>=0&&j.test(e);)e=e.replace(j,i),j.lastIndex=0,n-=1;return e}var G=/\d/,Y=/\d\d/,X=/\d{3}/,Z=/\d{4}/,Q=/[+-]?\d{6}/,J=/\d\d?/,ee=/\d\d\d\d?/,te=/\d\d\d\d\d\d?/,ne=/\d{1,3}/,ie=/\d{1,4}/,oe=/[+-]?\d{1,6}/,re=/\d+/,se=/[+-]?\d+/,ae=/Z|[+-]\d\d:?\d\d/gi,le=/Z|[+-]\d\d(?::?\d\d)?/gi,ue=/[0-9]*['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+|[\u0600-\u06FF\/]+(\s*?[\u0600-\u06FF]+){1,2}/i,ce={};function de(e,t,n){ce[e]=_(t)?t:function(e,i){return e&&n?n:t}}function he(e,t){return l(ce,e)?ce[e](t._strict,t._locale):new RegExp(fe(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(e,t,n,i,o){return t||n||i||o})))}function fe(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}var pe={};function ge(e,t){var n,i=t;for("string"==typeof e&&(e=[e]),r(t)&&(i=function(e,n){n[t]=C(e)}),n=0;n<e.length;n++)pe[e[n]]=i}function me(e,t){ge(e,function(e,n,i,o){i._w=i._w||{},t(e,i._w,i,o)})}function ve(e,t,n){null!=t&&l(pe,e)&&pe[e](t,n._a,n,e)}var Ee=0,Te=1,ye=2,Ce=3,be=4,De=5,Ie=6,Oe=7,Re=8,_e=Array.prototype.indexOf?Array.prototype.indexOf:function(e){var t;for(t=0;t<this.length;++t)if(this[t]===e)return t;return-1};function we(e,t){return new Date(Date.UTC(e,t+1,0)).getUTCDate()}W("M",["MM",2],"Mo",function(){return this.month()+1}),W("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)}),W("MMMM",0,0,function(e){return this.localeData().months(this,e)}),x("month","M"),F("month",8),de("M",J),de("MM",J,Y),de("MMM",function(e,t){return t.monthsShortRegex(e)}),de("MMMM",function(e,t){return t.monthsRegex(e)}),ge(["M","MM"],function(e,t){t[Te]=C(e)-1}),ge(["MMM","MMMM"],function(e,t,n,i){var o=n._locale.monthsParse(e,i,n._strict);null!=o?t[Te]=o:d(n).invalidMonth=e});var ke=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,Ke="January_February_March_April_May_June_July_August_September_October_November_December".split("_");var Se="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_");function xe(e,t){var n;if(!e.isValid())return e;if("string"==typeof t)if(/^\d+$/.test(t))t=C(t);else if(!r(t=e.localeData().monthsParse(t)))return e;return n=Math.min(e.date(),we(e.year(),t)),e._d["set"+(e._isUTC?"UTC":"")+"Month"](t,n),e}function Ne(e){return null!=e?(xe(this,e),t.updateOffset(this,!0),this):B(this,"Month")}var Ae=ue;var Le=ue;function Fe(){function e(e,t){return t.length-e.length}var t,n,i=[],o=[],r=[];for(t=0;t<12;t++)n=c([2e3,t]),i.push(this.monthsShort(n,"")),o.push(this.months(n,"")),r.push(this.months(n,"")),r.push(this.monthsShort(n,""));for(i.sort(e),o.sort(e),r.sort(e),t=0;t<12;t++)i[t]=fe(i[t]),o[t]=fe(o[t]);for(t=0;t<24;t++)r[t]=fe(r[t]);this._monthsRegex=new RegExp("^("+r.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+o.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+i.join("|")+")","i")}function Pe(e){return Be(e)?366:365}function Be(e){return e%4==0&&e%100!=0||e%400==0}W("Y",0,0,function(){var e=this.year();return e<=9999?""+e:"+"+e}),W(0,["YY",2],0,function(){return this.year()%100}),W(0,["YYYY",4],0,"year"),W(0,["YYYYY",5],0,"year"),W(0,["YYYYYY",6,!0],0,"year"),x("year","y"),F("year",1),de("Y",se),de("YY",J,Y),de("YYYY",ie,Z),de("YYYYY",oe,Q),de("YYYYYY",oe,Q),ge(["YYYYY","YYYYYY"],Ee),ge("YYYY",function(e,n){
vendor: 11,998 bytes, line 1
1n[Ee]=2===e.length?t.parseTwoDigitYear(e):C(e)}),ge("YY",function(e,n){n[Ee]=t.parseTwoDigitYear(e)}),ge("Y",function(e,t){t[Ee]=parseInt(e,10)}),t.parseTwoDigitYear=function(e){return C(e)+(C(e)>68?1900:2e3)};var Me=P("FullYear",!0);function $e(e){var t=new Date(Date.UTC.apply(null,arguments));return e<100&&e>=0&&isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e),t}function He(e,t,n){var i=7+t-n;return-((7+$e(e,0,i).getUTCDay()-t)%7)+i-1}function je(e,t,n,i,o){var r,s,a=1+7*(t-1)+(7+n-i)%7+He(e,i,o);return a<=0?s=Pe(r=e-1)+a:a>Pe(e)?(r=e+1,s=a-Pe(e)):(r=e,s=a),{year:r,dayOfYear:s}}function qe(e,t,n){var i,o,r=He(e.year(),t,n),s=Math.floor((e.dayOfYear()-r-1)/7)+1;return s<1?i=s+ze(o=e.year()-1,t,n):s>ze(e.year(),t,n)?(i=s-ze(e.year(),t,n),o=e.year()+1):(o=e.year(),i=s),{week:i,year:o}}function ze(e,t,n){var i=He(e,t,n),o=He(e+1,t,n);return(Pe(e)-i+o)/7}W("w",["ww",2],"wo","week"),W("W",["WW",2],"Wo","isoWeek"),x("week","w"),x("isoWeek","W"),F("week",5),F("isoWeek",5),de("w",J),de("ww",J,Y),de("W",J),de("WW",J,Y),me(["w","ww","W","WW"],function(e,t,n,i){t[i.substr(0,1)]=C(e)});W("d",0,"do","day"),W("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),W("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),W("dddd",0,0,function(e){return this.localeData().weekdays(this,e)}),W("e",0,0,"weekday"),W("E",0,0,"isoWeekday"),x("day","d"),x("weekday","e"),x("isoWeekday","E"),F("day",11),F("weekday",11),F("isoWeekday",11),de("d",J),de("e",J),de("E",J),de("dd",function(e,t){return t.weekdaysMinRegex(e)}),de("ddd",function(e,t){return t.weekdaysShortRegex(e)}),de("dddd",function(e,t){return t.weekdaysRegex(e)}),me(["dd","ddd","dddd"],function(e,t,n,i){var o=n._locale.weekdaysParse(e,i,n._strict);null!=o?t.d=o:d(n).invalidWeekday=e}),me(["d","e","E"],function(e,t,n,i){t[i]=C(e)});var We="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_");var Ve="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_");var Ue="Su_Mo_Tu_We_Th_Fr_Sa".split("_");var Ge=ue;var Ye=ue;var Xe=ue;function Ze(){function e(e,t){return t.length-e.length}var t,n,i,o,r,s=[],a=[],l=[],u=[];for(t=0;t<7;t++)n=c([2e3,1]).day(t),i=this.weekdaysMin(n,""),o=this.weekdaysShort(n,""),r=this.weekdays(n,""),s.push(i),a.push(o),l.push(r),u.push(i),u.push(o),u.push(r);for(s.sort(e),a.sort(e),l.sort(e),u.sort(e),t=0;t<7;t++)a[t]=fe(a[t]),l[t]=fe(l[t]),u[t]=fe(u[t]);this._weekdaysRegex=new RegExp("^("+u.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+a.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+s.join("|")+")","i")}function Qe(){return this.hours()%12||12}function Je(e,t){W(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}function et(e,t){return t._meridiemParse}W("H",["HH",2],0,"hour"),W("h",["hh",2],0,Qe),W("k",["kk",2],0,function(){return this.hours()||24}),W("hmm",0,0,function(){return""+Qe.apply(this)+$(this.minutes(),2)}),W("hmmss",0,0,function(){return""+Qe.apply(this)+$(this.minutes(),2)+$(this.seconds(),2)}),W("Hmm",0,0,function(){return""+this.hours()+$(this.minutes(),2)}),W("Hmmss",0,0,function(){return""+this.hours()+$(this.minutes(),2)+$(this.seconds(),2)}),Je("a",!0),Je("A",!1),x("hour","h"),F("hour",13),de("a",et),de("A",et),de("H",J),de("h",J),de("k",J),de("HH",J,Y),de("hh",J,Y),de("kk",J,Y),de("hmm",ee),de("hmmss",te),de("Hmm",ee),de("Hmmss",te),ge(["H","HH"],Ce),ge(["k","kk"],function(e,t,n){var i=C(e);t[Ce]=24===i?0:i}),ge(["a","A"],function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e}),ge(["h","hh"],function(e,t,n){t[Ce]=C(e),d(n).bigHour=!0}),ge("hmm",function(e,t,n){var i=e.length-2;t[Ce]=C(e.substr(0,i)),t[be]=C(e.substr(i)),d(n).bigHour=!0}),ge("hmmss",function(e,t,n){var i=e.length-4,o=e.length-2;t[Ce]=C(e.substr(0,i)),t[be]=C(e.substr(i,2)),t[De]=C(e.substr(o)),d(n).bigHour=!0}),ge("Hmm",function(e,t,n){var i=e.length-2;t[Ce]=C(e.substr(0,i)),t[be]=C(e.substr(i))}),ge("Hmmss",function(e,t,n){var i=e.length-4,o=e.length-2;t[Ce]=C(e.substr(0,i)),t[be]=C(e.substr(i,2)),t[De]=C(e.substr(o))});var tt,nt=P("Hours",!0),it={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:Ke,monthsShort:Se,week:{dow:0,doy:6},weekdays:We,weekdaysMin:Ue,weekdaysShort:Ve,meridiemParse:/[ap]\.?m?\.?/i},ot={},rt={};function st(e){return e?e.toLowerCase().replace("_","-"):e}function at(e){var t=null;if(!ot[e]&&"undefined"!=typeof module&&module&&module.exports)try{t=tt._abbr,require("./locale/"+e),lt(t)}catch(e){}return ot[e]}function lt(e,t){var n;return e&&(n=o(t)?ct(e):ut(e,t))&&(tt=n),tt._abbr}function ut(e,t){if(null!==t){var n=it;if(t.abbr=e,null!=ot[e])R("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),n=ot[e]._config;else if(null!=t.parentLocale){if(null==ot[t.parentLocale])return rt[t.parentLocale]||(rt[t.parentLocale]=[]),rt[t.parentLocale].push({name:e,config:t}),null;n=ot[t.parentLocale]._config}return ot[e]=new k(w(n,t)),rt[e]&&rt[e].forEach(function(e){ut(e.name,e.config)}),lt(e),ot[e]}return delete ot[e],null}function ct(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return tt;if(!n(e)){if(t=at(e))return t;e=[e]}return function(e){for(var t,n,i,o,r=0;r<e.length;){for(t=(o=st(e[r]).split("-")).length,n=(n=st(e[r+1]))?n.split("-"):null;t>0;){if(i=at(o.slice(0,t).join("-")))return i;if(n&&n.length>=t&&b(o,n,!0)>=t-1)break;t--}r++}return null}(e)}function dt(e){var t,n=e._a;return n&&-2===d(e).overflow&&(t=n[Te]<0||n[Te]>11?Te:n[ye]<1||n[ye]>we(n[Ee],n[Te])?ye:n[Ce]<0||n[Ce]>24||24===n[Ce]&&(0!==n[be]||0!==n[De]||0!==n[Ie])?Ce:n[be]<0||n[be]>59?be:n[De]<0||n[De]>59?De:n[Ie]<0||n[Ie]>999?Ie:-1,d(e)._overflowDayOfYear&&(t<Ee||t>ye)&&(t=ye),d(e)._overflowWeeks&&-1===t&&(t=Oe),d(e)._overflowWeekday&&-1===t&&(t=Re),d(e).overflow=t),e}var ht=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,ft=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,pt=/Z|[+-]\d\d(?::?\d\d)?/,gt=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/]],mt=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],vt=/^\/?Date\((\-?\d+)/i;function Et(e){var t,n,i,o,r,s,a=e._i,l=ht.exec(a)||ft.exec(a);if(l){for(d(e).iso=!0,t=0,n=gt.length;t<n;t++)if(gt[t][1].exec(l[1])){o=gt[t][0],i=!1!==gt[t][2];break}if(null==o)return void(e._isValid=!1);if(l[3]){for(t=0,n=mt.length;t<n;t++)if(mt[t][1].exec(l[3])){r=(l[2]||" ")+mt[t][0];break}if(null==r)return void(e._isValid=!1)}if(!i&&null!=r)return void(e._isValid=!1);if(l[4]){if(!pt.exec(l[4]))return void(e._isValid=!1);s="Z"}e._f=o+(r||"")+(s||""),Dt(e)}else e._isValid=!1}var Tt=/^((?:Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d?\d\s(?:Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(?:\d\d)?\d\d\s)(\d\d:\d\d)(\:\d\d)?(\s(?:UT|GMT|[ECMP][SD]T|[A-IK-Za-ik-z]|[+-]\d{4}))$/;function yt(e){var t,n,i,o,r,s,a,l,u={" GMT":" +0000"," EDT":" -0400"," EST":" -0500"," CDT":" -0500"," CST":" -0600"," MDT":" -0600"," MST":" -0700"," PDT":" -0700"," PST":" -0800"};if(t=e._i.replace(/\([^\)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s|\s$/g,""),n=Tt.exec(t)){if(i=n[1]?"ddd"+(5===n[1].length?", ":" "):"",o="D MMM "+(n[2].length>10?"YYYY ":"YY "),r="HH:mm"+(n[4]?":ss":""),n[1]){var c=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"][new Date(n[2]).getDay()];if(n[1].substr(0,3)!==c)return d(e).weekdayMismatch=!0,void(e._isValid=!1)}switch(n[5].length){case 2:a=0===l?" +0000":((l="YXWVUTSRQPONZABCDEFGHIKLM".indexOf(n[5][1].toUpperCase())-12)<0?" -":" +")+(""+l).replace(/^-?/,"0").match(/..$/)[0]+"00";break;case 4:a=u[n[5]];break;default:a=u[" GMT"]}n[5]=a,e._i=n.splice(1).join(""),s=" ZZ",e._f=i+o+r+s,Dt(e),d(e).rfc2822=!0}else e._isValid=!1}function Ct(e,t,n){return null!=e?e:null!=t?t:n}function bt(e){var n,i,o,r,s=[];if(!e._d){for(o=function(e){var n=new Date(t.now());return e._useUTC?[n.getUTCFullYear(),n.getUTCMonth(),n.getUTCDate()]:[n.getFullYear(),n.getMonth(),n.getDate()]}(e),e._w&&null==e._a[ye]&&null==e._a[Te]&&function(e){var t,n,i,o,r,s,a,l;if(null!=(t=e._w).GG||null!=t.W||null!=t.E)r=1,s=4,n=Ct(t.GG,e._a[Ee],qe(Rt(),1,4).year),i=Ct(t.W,1),((o=Ct(t.E,1))<1||o>7)&&(l=!0);else{r=e._locale._week.dow,s=e._locale._week.doy;var u=qe(Rt(),r,s);n=Ct(t.gg,e._a[Ee],u.year),i=Ct(t.w,u.week),null!=t.d?((o=t.d)<0||o>6)&&(l=!0):null!=t.e?(o=t.e+r,(t.e<0||t.e>6)&&(l=!0)):o=r}i<1||i>ze(n,r,s)?d(e)._overflowWeeks=!0:null!=l?d(e)._overflowWeekday=!0:(a=je(n,i,o,r,s),e._a[Ee]=a.year,e._dayOfYear=a.dayOfYear)}(e),null!=e._dayOfYear&&(r=Ct(e._a[Ee],o[Ee]),(e._dayOfYear>Pe(r)||0===e._dayOfYear)&&(d(e)._overflowDayOfYear=!0),i=$e(r,0,e._dayOfYear),e._a[Te]=i.getUTCMonth(),e._a[ye]=i.getUTCDate()),n=0;n<3&&null==e._a[n];++n)e._a[n]=s[n]=o[n];for(;n<7;n++)e._a[n]=s[n]=null==e._a[n]?2===n?1:0:e._a[n];24===e._a[Ce]&&0===e._a[be]&&0===e._a[De]&&0===e._a[Ie]&&(e._nextDay=!0,e._a[Ce]=0),e._d=(e._useUTC?$e:function(e,t,n,i,o,r,s){var a=new Date(e,t,n,i,o,r,s);return e<100&&e>=0&&isFinite(a.getFullYear())&&a.setFullYear(e),a}).apply(null,s),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[Ce]=24)}}function Dt(e){if(e._f!==t.ISO_8601)if(e._f!==t.RFC_2822){e._a=[],d(e).empty=!0;var n,i,o,r,s,a=""+e._i,l=a.length,u=0;for(o=U(e._f,e._locale).match(H)||[],n=0;n<o.length;n++)r=o[n],(i=(a.match(he(r,e))||[])[0])&&((s=a.substr(0,a.indexOf(i))).length>0&&d(e).unusedInput.push(s),a=a.slice(a.indexOf(i)+i.length),u+=i.length),z[r]?(i?d(e).empty=!1:d(e).unusedTokens.push(r),ve(r,i,e)):e._strict&&!i&&d(e).unusedTokens.push(r);d(e).charsLeftOver=l-u,a.length>0&&d(e).unusedInput.push(a),e._a[Ce]<=12&&!0===d(e).bigHour&&e._a[Ce]>0&&(d(e).bigHour=void 0),d(e).parsedDateParts=e._a.slice(0),d(e).meridiem=e._meridiem,e._a[Ce]=function(e,t,n){var i;if(null==n)return t;return null!=e.meridiemHour?e.meridiemHour(t,n):null!=e.isPM?((i=e.isPM(n))&&t<12&&(t+=12),i||12!==t||(t=0),t):t}(e._locale,e._a[Ce],e._meridiem),bt(e),dt(e)}else yt(e);else Et(e)}function It(e){var l=e._i,c=e._f;return e._locale=e._locale||ct(e._l),null===l||void 0===c&&""===l?p({nullInput:!0}):("string"==typeof l&&(e._i=l=e._locale.preparse(l)),T(l)?new E(dt(l)):(s(l)?e._d=l:n(c)?function(e){var t,n,i,o,r;if(0===e._f.length)return d(e).invalidFormat=!0,void(e._d=new Date(NaN));for(o=0;o<e._f.length;o++)r=0,t=m({},e),null!=e._useUTC&&(t._useUTC=e._useUTC),t._f=e._f[o],Dt(t),f(t)&&(r+=d(t).charsLeftOver,r+=10*d(t).unusedTokens.length,d(t).score=r,(null==i||r<i)&&(i=r,n=t));u(e,n||t)}(e):c?Dt(e):function(e){var l=e._i;o(l)?e._d=new Date(t.now()):s(l)?e._d=new Date(l.valueOf()):"string"==typeof l?function(e){var n=vt.exec(e._i);
vendor: 2,397 bytes, line 1
1null===n?(Et(e),!1===e._isValid&&(delete e._isValid,yt(e),!1===e._isValid&&(delete e._isValid,t.createFromInputFallback(e)))):e._d=new Date(+n[1])}(e):n(l)?(e._a=a(l.slice(0),function(e){return parseInt(e,10)}),bt(e)):i(l)?function(e){if(!e._d){var t=A(e._i);e._a=a([t.year,t.month,t.day||t.date,t.hour,t.minute,t.second,t.millisecond],function(e){return e&&parseInt(e,10)}),bt(e)}}(e):r(l)?e._d=new Date(l):t.createFromInputFallback(e)}(e),f(e)||(e._d=null),e))}function Ot(e,t,o,r,s){var a,l={};return!0!==o&&!1!==o||(r=o,o=void 0),(i(e)&&function(e){var t;for(t in e)return!1;return!0}(e)||n(e)&&0===e.length)&&(e=void 0),l._isAMomentObject=!0,l._useUTC=l._isUTC=s,l._l=o,l._i=e,l._f=t,l._strict=r,(a=new E(dt(It(l))))._nextDay&&(a.add(1,"d"),a._nextDay=void 0),a}function Rt(e,t,n,i){return Ot(e,t,n,i,!1)}t.createFromInputFallback=I("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged and will be removed in an upcoming major release. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))}),t.ISO_8601=function(){},t.RFC_2822=function(){};var _t=I("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=Rt.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:p()}),wt=I("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=Rt.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:p()});function kt(e,t){var i,o;if(1===t.length&&n(t[0])&&(t=t[0]),!t.length)return Rt();for(i=t[0],o=1;o<t.length;++o)t[o].isValid()&&!t[o][e](i)||(i=t[o]);return i}var Kt=["year","quarter","month","week","day","hour","minute","second","millisecond"];function St(e){var t=A(e),n=t.year||0,i=t.quarter||0,o=t.month||0,r=t.week||0,s=t.day||0,a=t.hour||0,l=t.minute||0,u=t.second||0,c=t.millisecond||0;this._isValid=function(e){for(var t in e)if(-1===Kt.indexOf(t)||null!=e[t]&&isNaN(e[t]))return!1;for(var n=!1,i=0;i<Kt.length;++i)if(e[Kt[i]]){if(n)return!1;parseFloat(e[Kt[i]])!==C(e[Kt[i]])&&(n=!0)}return!0}(t),this._milliseconds=+c+1e3*u+6e4*l+1e3*a*60*60,this._days=+s+7*r,this._months=+o+3*i+12*n,this._data={}
vendor: 4,538 bytes, line 1
1,this._locale=ct(),this._bubble()}function xt(e){return e instanceof St}function Nt(e){return e<0?-1*Math.round(-1*e):Math.round(e)}function At(e,t){W(e,0,0,function(){var e=this.utcOffset(),n="+";return e<0&&(e=-e,n="-"),n+$(~~(e/60),2)+t+$(~~e%60,2)})}At("Z",":"),At("ZZ",""),de("Z",le),de("ZZ",le),ge(["Z","ZZ"],function(e,t,n){n._useUTC=!0,n._tzm=Ft(le,e)});var Lt=/([\+\-]|\d\d)/gi;function Ft(e,t){var n=(t||"").match(e);if(null===n)return null;var i=((n[n.length-1]||[])+"").match(Lt)||["-",0,0],o=60*i[1]+C(i[2]);return 0===o?0:"+"===i[0]?o:-o}function Pt(e,n){var i,o;return n._isUTC?(i=n.clone(),o=(T(e)||s(e)?e.valueOf():Rt(e).valueOf())-i.valueOf(),i._d.setTime(i._d.valueOf()+o),t.updateOffset(i,!1),i):Rt(e).local()}function Bt(e){return 15*-Math.round(e._d.getTimezoneOffset()/15)}function Mt(){return!!this.isValid()&&(this._isUTC&&0===this._offset)}t.updateOffset=function(){};var $t=/^(\-)?(?:(\d*)[. ])?(\d+)\:(\d+)(?:\:(\d+)(\.\d*)?)?$/,Ht=/^(-)?P(?:(-?[0-9,.]*)Y)?(?:(-?[0-9,.]*)M)?(?:(-?[0-9,.]*)W)?(?:(-?[0-9,.]*)D)?(?:T(?:(-?[0-9,.]*)H)?(?:(-?[0-9,.]*)M)?(?:(-?[0-9,.]*)S)?)?$/;function jt(e,t){var n,i,o,s=e,a=null;return xt(e)?s={ms:e._milliseconds,d:e._days,M:e._months}:r(e)?(s={},t?s[t]=e:s.milliseconds=e):(a=$t.exec(e))?(n="-"===a[1]?-1:1,s={y:0,d:C(a[ye])*n,h:C(a[Ce])*n,m:C(a[be])*n,s:C(a[De])*n,ms:C(Nt(1e3*a[Ie]))*n}):(a=Ht.exec(e))?(n="-"===a[1]?-1:1,s={y:qt(a[2],n),M:qt(a[3],n),w:qt(a[4],n),d:qt(a[5],n),h:qt(a[6],n),m:qt(a[7],n),s:qt(a[8],n)}):null==s?s={}:"object"==typeof s&&("from"in s||"to"in s)&&(o=function(e,t){var n;if(!e.isValid()||!t.isValid())return{milliseconds:0,months:0};t=Pt(t,e),e.isBefore(t)?n=zt(e,t):((n=zt(t,e)).milliseconds=-n.milliseconds,n.months=-n.months);return n}(Rt(s.from),Rt(s.to)),(s={}).ms=o.milliseconds,s.M=o.months),i=new St(s),xt(e)&&l(e,"_locale")&&(i._locale=e._locale),i}function qt(e,t){var n=e&&parseFloat(e.replace(",","."));return(isNaN(n)?0:n)*t}function zt(e,t){var n={milliseconds:0,months:0};return n.months=t.month()-e.month()+12*(t.year()-e.year()),e.clone().add(n.months,"M").isAfter(t)&&--n.months,n.milliseconds=+t-+e.clone().add(n.months,"M"),n}function Wt(e,t){return function(n,i){var o;return null===i||isNaN(+i)||(R(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),o=n,n=i,i=o),Vt(this,jt(n="string"==typeof n?+n:n,i),e),this}}function Vt(e,n,i,o){var r=n._milliseconds,s=Nt(n._days),a=Nt(n._months);e.isValid()&&(o=null==o||o,r&&e._d.setTime(e._d.valueOf()+r*i),s&&M(e,"Date",B(e,"Date")+s*i),a&&xe(e,B(e,"Month")+a*i),o&&t.updateOffset(e,s||a))}jt.fn=St.prototype,jt.invalid=function(){return jt(NaN)};var Ut=Wt(1,"add"),Gt=Wt(-1,"subtract");function Yt(e){var t;return void 0===e?this._locale._abbr:(null!=(t=ct(e))&&(this._locale=t),this)}t.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",t.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var Xt=I("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(e){return void 0===e?this.localeData():this.locale(e)});function Zt(){return this._locale}function Qt(e,t){W(0,[e,e.length],0,t)}function Jt(e,t,n,i,o){var r;return null==e?qe(this,i,o).year:(t>(r=ze(e,i,o))&&(t=r),(function(e,t,n,i,o){var r=je(e,t,n,i,o),s=$e(r.year,0,r.dayOfYear);return this.year(s.getUTCFullYear()),this.month(s.getUTCMonth()),this.date(s.getUTCDate()),this}).call(this,e,t,n,i,o))}W(0,["gg",2],0,function(){return this.weekYear()%100}),W(0,["GG",2],0,function(){return this.isoWeekYear()%100}),Qt("gggg","weekYear"),Qt("ggggg","weekYear"),Qt("GGGG","isoWeekYear"),Qt("GGGGG","isoWeekYear"),x("weekYear","gg"),x("isoWeekYear","GG"),F("weekYear",1),F("isoWeekYear",1),de("G",se),de("g",se),de("GG",J,Y),de("gg",J,Y),de("GGGG",ie,Z),de("gggg",ie,Z),de("GGGGG",oe,Q),de("ggggg",oe,Q),me(["gggg","ggggg","GGGG","GGGGG"],function(e,t,n,i){t[i.substr(0,2)]=C(e)}),me(["gg","GG"],function(e,n,i,o){n[o]=t.parseTwoDigitYear(e)}),W("Q",0,"Qo","quarter"),x("quarter","Q"),F("quarter",7),de("Q",G),ge("Q",function(e,t){t[Te]=3*(C(e)-1)}),W("D",["DD",2],"Do","date"),x("date","D"),F("date",9),de("D",J),de("DD",J,Y),de("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient}),ge(["D","DD"],ye),ge("Do",function(e,t){t[ye]=C(e.match(J)[0])});var en=P("Date",!0);W("DDD",["DDDD",3],"DDDo","dayOfYear"),x("dayOfYear","DDD"),F("dayOfYear",4),de("DDD",ne),de("DDDD",X),ge(["DD
1D","DDDD"],function(e,t,n){n._dayOfYear=C(e)}),W("m",["mm",2],0,"minute"),x("minute","m"),F("minute",14),de("m",J),de("mm",J,Y),ge(["m","mm"],be);var tn=P("Minutes",!1);W("s",["ss",2],0,"second"),x("second","s"),F("second",15),de("s",J),de("ss",J,Y),ge(["s","ss"],De);var nn,on=P("Seconds",!1);for(W("S",0,0,function(){return~~(this.millisecond()/100)}),W(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),W(0,["SSS",3],0,"millisecond"),W(0,["SSSS",4],0,function(){return 10*this.millisecond()}),W(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),W(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),W(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),W(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),W(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),x("millisecond","ms"),F("millisecond",16),de("S",ne,G),de("SS",ne,Y),de("SSS",ne,X),nn="SSSS";nn.length<=9;nn+="S")de(nn,re);function rn(e,t){t[Ie]=C(1e3*("0."+e))}for(nn="S";nn.length<=9;nn+="S")ge(nn,rn);var sn=P("Milliseconds",!1);W("z",0,0,"zoneAbbr"),W("zz",0,0,"zoneName");var an=E.prototype;function ln(e){return e}an.add=Ut,an.calendar=function(e,n){var i=e||Rt(),o=Pt(i,this).startOf("day"),r=t.calendarFormat(this,o)||"sameElse",s=n&&(_(n[r])?n[r].call(this,i):n[r]);return this.format(s||this.localeData().calendar(r,this,Rt(i)))},an.clone=function(){return new E(this)},an.diff=function(e,t,n){var i,o,r,s;return this.isValid()&&(i=Pt(e,this)).isValid()?(o=6e4*(i.utcOffset()-this.utcOffset()),"year"===(t=N(t))||"month"===t||"quarter"===t?(a=this,l=i,d=12*(l.year()-a.year())+(l.month()-a.month()),h=a.clone().add(d,"months"),l-h<0?(u=a.clone().add(d-1,"months"),c=(l-h)/(h-u)):(u=a.clone().add(d+1,"months"),c=(l-h)/(u-h)),s=-(d+c)||0,"quarter"===t?s/=3:"year"===t&&(s/=12)):(r=this-i,s="second"===t?r/1e3:"minute"===t?r/6e4:"hour"===t?r/36e5:"day"===t?(r-o)/864e5:"week"===t?(r-o)/6048e5:r),n?s:y(s)):NaN;var a,l,u,c,d,h},an.endOf=function(e){return void 0===(e=N(e))||"millisecond"===e?this:("date"===e&&(e="day"),this.startOf(e).add(1,"isoWeek"===e?"week":e).subtract(1,"ms"))},an.format=function(e){e||(e=this.isUtc()?t.defaultFormatUtc:t.defaultFormat);var n=V(this,e);return this.localeData().postformat(n)},an.from=function(e,t){return this.isValid()&&(T(e)&&e.isValid()||Rt(e).isValid())?jt({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},an.fromNow=function(e){return this.from(Rt(),e)},an.to=function(e,t){return this.isValid()&&(T(e)&&e.isValid()||Rt(e).isValid())?jt({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},an.toNow=function(e){return this.to(Rt(),e)},an.get=function(e){return _(this[e=N(e)])?this[e]():this},an.invalidAt=function(){return d(this).overflow},an.isAfter=function(e,t){var n=T(e)?e:Rt(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=N(o(t)?"millisecond":t))?this.valueOf()>n.valueOf():n.valueOf()<this.clone().startOf(t).valueOf())},an.isBefore=function(e,t){var n=T(e)?e:Rt(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=N(o(t)?"millisecond":t))?this.valueOf()<n.valueOf():this.clone().endOf(t).valueOf()<n.valueOf())},an.isBetween=function(e,t,n,i){return("("===(i=i||"()")[0]?this.isAfter(e,n):!this.isBefore(e,n))&&(")"===i[1]?this.isBefore(t,n):!this.isAfter(t,n))},an.isSame=function(e,t){var n,i=T(e)?e:Rt(e);return!(!this.isValid()||!i.isValid())&&("millisecond"===(t=N(t||"millisecond"))?this.valueOf()===i.valueOf():(n=i.valueOf(),this.clone().startOf(t).valueOf()<=n&&n<=this.clone().endOf(t).valueOf()))},an.isSameOrAfter=function(e,t){return this.isSame(e,t)||this.isAfter(e,t)},an.isSameOrBefore=function(e,t){return this.isSame(e,t)||this.isBefore(e,t)},an.isValid=function(){return f(this)},an.lang=Xt,an.locale=Yt,an.localeData=Zt,an.max=wt,an.min=_t,an.parsingFlags=function(){return u({},d(this))},an.set=function(e,t){if("object"==typeof e)for(var n=function(e){var t=[];for(var n in e)t.push({unit:n,priority:L[n]});return t.sort(function(e,t){return e.priority-t.priority}),t}(e=A(e)),i=0;i<n.length;i++)this[n[i].unit](e[n[i].unit]);else if(_(this[e=N(e)]))return this[e](t);return this},an.startOf=function(e){switch(e=N(e)){case"year":this.month(0);case"quarter":case"month":this.date(1);case"week":case"isoWeek":case"day":case"date":this.hours(0);case"hour":this.minutes(0);case"minute":this.seconds(0);case"second":this.milliseconds(0)}return"week"===e&&this.weekday(0),"isoWeek"===e&&this.isoWeekday(1),"quarter"===e&&this.month(3*Math.floor(this.month()/3)),this},an.subtract=Gt,an.toArray=function(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]},an.toObject=function(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}},an.toDate=function(){return new Date(this.valueOf())},an.toISOString=function(){if(!this.isValid())return null;var e=this.clone().utc();return e.year()<0||e.year()>9999?V(e,"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]"):_(Date.prototype.toISOString)?this.toDate().toISOString():V(e,"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]")}
vendor: 15,893 bytes, line 1
1,an.inspect=function(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e="moment",t="";this.isLocal()||(e=0===this.utcOffset()?"moment.utc":"moment.parseZone",t="Z");var n="["+e+'("]',i=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",o=t+'[")]';return this.format(n+i+"-MM-DD[T]HH:mm:ss.SSS"+o)},an.toJSON=function(){return this.isValid()?this.toISOString():null},an.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},an.unix=function(){return Math.floor(this.valueOf()/1e3)},an.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},an.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},an.year=Me,an.isLeapYear=function(){return Be(this.year())},an.weekYear=function(e){return Jt.call(this,e,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)},an.isoWeekYear=function(e){return Jt.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)},an.quarter=an.quarters=function(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)},an.month=Ne,an.daysInMonth=function(){return we(this.year(),this.month())},an.week=an.weeks=function(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")},an.isoWeek=an.isoWeeks=function(e){var t=qe(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")},an.weeksInYear=function(){var e=this.localeData()._week;return ze(this.year(),e.dow,e.doy)},an.isoWeeksInYear=function(){return ze(this.year(),1,4)},an.date=en,an.day=an.days=function(e){if(!this.isValid())return null!=e?this:NaN;var t=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=e?(e=function(e,t){return"string"!=typeof e?e:isNaN(e)?"number"==typeof(e=t.weekdaysParse(e))?e:null:parseInt(e,10)}(e,this.localeData()),this.add(e-t,"d")):t},an.weekday=function(e){if(!this.isValid())return null!=e?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return null==e?t:this.add(e-t,"d")},an.isoWeekday=function(e){if(!this.isValid())return null!=e?this:NaN;if(null!=e){var t=function(e,t){return"string"==typeof e?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}(e,this.localeData());return this.day(this.day()%7?t:t-7)}return this.day()||7},an.dayOfYear=function(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==e?t:this.add(e-t,"d")},an.hour=an.hours=nt,an.minute=an.minutes=tn,an.second=an.seconds=on,an.millisecond=an.milliseconds=sn,an.utcOffset=function(e,n,i){var o,r=this._offset||0;if(!this.isValid())return null!=e?this:NaN;if(null!=e){if("string"==typeof e){if(null===(e=Ft(le,e)))return this}else Math.abs(e)<16&&!i&&(e*=60);return!this._isUTC&&n&&(o=Bt(this)),this._offset=e,this._isUTC=!0,null!=o&&this.add(o,"m"),r!==e&&(!n||this._changeInProgress?Vt(this,jt(e-r,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,t.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?r:Bt(this)},an.utc=function(e){return this.utcOffset(0,e)},an.local=function(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(Bt(this),"m")),this},an.parseZone=function(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var e=Ft(ae,this._i);null!=e?this.utcOffset(e):this.utcOffset(0,!0)}return this},an.hasAlignedHourOffset=function(e){return!!this.isValid()&&(e=e?Rt(e).utcOffset():0,(this.utcOffset()-e)%60==0)},an.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},an.isLocal=function(){return!!this.isValid()&&!this._isUTC},an.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},an.isUtc=Mt,an.isUTC=Mt,an.zoneAbbr=function(){return this._isUTC?"UTC":""},an.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},an.dates=I("dates accessor is deprecated. Use date instead.",en),an.months=I("months accessor is deprecated. Use month instead",Ne),an.years=I("years accessor is deprecated. Use year instead",Me),an.zone=I("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",function(e,t){return null!=e?("string"!=typeof e&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}),an.isDSTShifted=I("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",function(){if(!o(this._isDSTShifted))return this._isDSTShifted;var e={};if(m(e,this),(e=It(e))._a){var t=e._isUTC?c(e._a):Rt(e._a);this._isDSTShifted=this.isValid()&&b(e._a,t.toArray())>0}else this._isDSTShifted=!1;return this._isDSTShifted});var un=k.prototype;function cn(e,t,n,i){var o=ct(),r=c().set(i,t);return o[n](r,e)}function dn(e,t,n){if(r(e)&&(t=e,e=void 0),e=e||"",null!=t)return cn(e,t,n,"month");var i,o=[];for(i=0;i<12;i++)o[i]=cn(e,i,n,"month");return o}function hn(e,t,n,i){"boolean"==typeof e?(r(t)&&(n=t,t=void 0),t=t||""):(n=t=e,e=!1,r(t)&&(n=t,t=void 0),t=t||"");var o,s=ct(),a=e?s._week.dow:0;if(null!=n)return cn(t,(n+a)%7,i,"day");var l=[];for(o=0;o<7;o++)l[o]=cn(t,(o+a)%7,i,"day");return l}un.calendar=function(e,t,n){var i=this._calendar[e]||this._calendar.sameElse;return _(i)?i.call(t,n):i},un.longDateFormat=function(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.replace(/MMMM|MM|DD|dddd/g,function(e){return e.slice(1)}),this._longDateFormat[e])},un.invalidDate=function(){return this._invalidDate},un.ordinal=function(e){return this._ordinal.replace("%d",e)},un.preparse=ln,un.postformat=ln,un.relativeTime=function(e,t,n,i){var o=this._relativeTime[n];return _(o)?o(e,t,n,i):o.replace(/%d/i,e)},un.pastFuture=function(e,t){var n=this._relativeTime[e>0?"future":"past"];return _(n)?n(t):n.replace(/%s/i,t)},un.set=function(e){var t,n;for(n in e)_(t=e[n])?this[n]=t:this["_"+n]=t;this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},un.months=function(e,t){return e?n(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||ke).test(t)?"format":"standalone"][e.month()]:n(this._months)?this._months:this._months.standalone},un.monthsShort=function(e,t){return e?n(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[ke.test(t)?"format":"standalone"][e.month()]:n(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},un.monthsParse=function(e,t,n){var i,o,r;if(this._monthsParseExact)return(function(e,t,n){var i,o,r,s=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],i=0;i<12;++i)r=c([2e3,i]),this._shortMonthsParse[i]=this.monthsShort(r,"").toLocaleLowerCase(),this._longMonthsParse[i]=this.months(r,"").toLocaleLowerCase();return n?"MMM"===t?-1!==(o=_e.call(this._shortMonthsParse,s))?o:null:-1!==(o=_e.call(this._longMonthsParse,s))?o:null:"MMM"===t?-1!==(o=_e.call(this._shortMonthsParse,s))?o:-1!==(o=_e.call(this._longMonthsParse,s))?o:null:-1!==(o=_e.call(this._longMonthsParse,s))?o:-1!==(o=_e.call(this._shortMonthsParse,s))?o:null}).call(this,e,t,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),i=0;i<12;i++){if(o=c([2e3,i]),n&&!this._longMonthsParse[i]&&(this._longMonthsParse[i]=new RegExp("^"+this.months(o,"").replace(".","")+"$","i"),this._shortMonthsParse[i]=new RegExp("^"+this.monthsShort(o,"").replace(".","")+"$","i")),n||this._monthsParse[i]||(r="^"+this.months(o,"")+"|^"+this.monthsShort(o,""),this._monthsParse[i]=new RegExp(r.replace(".",""),"i")),n&&"MMMM"===t&&this._longMonthsParse[i].test(e))return i;if(n&&"MMM"===t&&this._shortMonthsParse[i].test(e))return i;if(!n&&this._monthsParse[i].test(e))return i}},un.monthsRegex=function(e){return this._monthsParseExact?(l(this,"_monthsRegex")||Fe.call(this),e?this._monthsStrictRegex:this._monthsRegex):(l(this,"_monthsRegex")||(this._monthsRegex=Le),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)},un.monthsShortRegex=function(e){return this._monthsParseExact?(l(this,"_monthsRegex")||Fe.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(l(this,"_monthsShortRegex")||(this._monthsShortRegex=Ae),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)},un.week=function(e){return qe(e,this._week.dow,this._week.doy).week},un.firstDayOfYear=function(){return this._week.doy},un.firstDayOfWeek=function(){return this._week.dow},un.weekdays=function(e,t){return e?n(this._weekdays)?this._weekdays[e.day()]:this._weekdays[this._weekdays.isFormat.test(t)?"format":"standalone"][e.day()]:n(this._weekdays)?this._weekdays:this._weekdays.standalone},un.weekdaysMin=function(e){return e?this._weekdaysMin[e.day()]:this._weekdaysMin},un.weekdaysShort=function(e){return e?this._weekdaysShort[e.day()]:this._weekdaysShort},un.weekdaysParse=function(e,t,n){var i,o,r;if(this._weekdaysParseExact)return(function(e,t,n){var i,o,r,s=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],i=0;i<7;++i)r=c([2e3,1]).day(i),this._minWeekdaysParse[i]=this.weekdaysMin(r,"").toLocaleLowerCase(),this._shortWeekdaysParse[i]=this.weekdaysShort(r,"").toLocaleLowerCase(),this._weekdaysParse[i]=this.weekdays(r,"").toLocaleLowerCase();return n?"dddd"===t?-1!==(o=_e.call(this._weekdaysParse,s))?o:null:"ddd"===t?-1!==(o=_e.call(this._shortWeekdaysParse,s))?o:null:-1!==(o=_e.call(this._minWeekdaysParse,s))?o:null:"dddd"===t?-1!==(o=_e.call(this._weekdaysParse,s))?o:-1!==(o=_e.call(this._shortWeekdaysParse,s))?o:-1!==(o=_e.call(this._minWeekdaysParse,s))?o:null:"ddd"===t?-1!==(o=_e.call(this._shortWeekdaysParse,s))?o:-1!==(o=_e.call(this._weekdaysParse,s))?o:-1!==(o=_e.call(this._minWeekdaysParse,s))?o:null:-1!==(o=_e.call(this._minWeekdaysParse,s))?o:-1!==(o=_e.call(this._weekdaysParse,s))?o:-1!==(o=_e.call(this._shortWeekdaysParse,s))?o:null}).call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),i=0;i<7;i++){if(o=c([2e3,1]).day(i),n&&!this._fullWeekdaysParse[i]&&(this._fullWeekdaysParse[i]=new RegExp("^"+this.weekdays(o,"").replace(".",".?")+"$","i"),this._shortWeekdaysParse[i]=new RegExp("^"+this.weekdaysShort(o,"").replace(".",".?")+"$","i"),this._minWeekdaysParse[i]=new RegExp("^"+this.weekdaysMin(o,"").replace(".",".?")+"$","i")),this._weekdaysParse[i]||(r="^"+this.weekdays(o,"")+"|^"+this.weekdaysShort(o,"")+"|^"+this.weekdaysMin(o,""),this._weekdaysParse[i]=new RegExp(r.replace(".",""),"i")),n&&"dddd"===t&&this._fullWeekdaysParse[i].test(e))return i;if(n&&"ddd"===t&&this._shortWeekdaysParse[i].test(e))return i;if(n&&"dd"===t&&this._minWeekdaysParse[i].test(e))return i;if(!n&&this._weekdaysParse[i].test(e))return i}},un.weekdaysRegex=function(e){return this._weekdaysParseExact?(l(this,"_weekdaysRegex")||Ze.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(l(this,"_weekdaysRegex")||(this._weekdaysRegex=Ge),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)},un.weekdaysShortRegex=function(e){return this._weekdaysParseExact?(l(this,"_weekdaysRegex")||Ze.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(l(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Ye),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},un.weekdaysMinRegex=function(e){return this._weekdaysParseExact?(l(this,"_weekdaysRegex")||Ze.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(l(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Xe),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},un.isPM=function(e){return"p"===(e+"").toLowerCase().charAt(0)},un.meridiem=function(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"},lt("en",{dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10;return e+(1===C(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}}),t.lang=I("moment.lang is deprecated. Use moment.locale instead.",lt),t.langData=I("moment.langData is deprecated. Use moment.localeData instead.",ct);var fn=Math.abs;function pn(e,t,n,i){var o=jt(t,n);return e._milliseconds+=i*o._milliseconds,e._days+=i*o._days,e._months+=i*o._months,e._bubble()}function gn(e){return e<0?Math.floor(e):Math.ceil(e)}function mn(e){return 4800*e/146097}function vn(e){return 146097*e/4800}function En(e){return function(){return this.as(e)}}var Tn=En("ms"),yn=En("s"),Cn=En("m"),bn=En("h"),Dn=En("d"),In=En("w"),On=En("M"),Rn=En("y");function _n(e){return function(){return this.isValid()?this._data[e]:NaN}}var wn=_n("milliseconds"),kn=_n("seconds"),Kn=_n("minutes"),Sn=_n("hours"),xn=_n("days"),Nn=_n("months"),An=_n("years");var Ln=Math.round,Fn={ss:44,s:45,m:45,h:22,d:26,M:11};var Pn=Math.abs;function Bn(){if(!this.isValid())return this.localeData().invalidDate();var e,t,n=Pn(this._milliseconds)/1e3,i=Pn(this._days),o=Pn(this._months);t=y((e=y(n/60))/60),n%=60,e%=60;var r=y(o/12),s=o%=12,a=i,l=t,u=e,c=n,d=this.asSeconds();return d?(d<0?"-":"")+"P"+(r?r+"Y":"")+(s?s+"M":"")+(a?a+"D":"")+(l||u||c?"T":"")+(l?l+"H":"")+(u?u+"M":"")+(c?c+"S":""):"P0D"}var Mn=St.prototype;return Mn.isValid=function(){return this._isValid},Mn.abs=function(){var e=this._data;return this._milliseconds=fn(this._milliseconds),this._days=fn(this._days),this._months=fn(this._months),e.milliseconds=fn(e.milliseconds),e.seconds=fn(e.seconds),e.minutes=fn(e.minutes),e.hours=fn(e.hours),e.months=fn(e.months),e.years=fn(e.years),this},Mn.add=function(e,t){return pn(this,e,t,1)},Mn.subtract=function(e,t){return pn(this,e,t,-1)},Mn.as=function(e){if(!this.isValid())return NaN;var t,n,i=this._milliseconds;if("month"===(e=N(e))||"year"===e)return t=this._days+i/864e5,n=this._months+mn(t),"month"===e?n:n/12;switch(t=this._days+Math.round(vn(this._months)),e){case"week":return t/7+i/6048e5;case"day":return t+i/864e5;case"hour":return 24*t+i/36e5;case"minute":return 1440*t+i/6e4;case"second":return 86400*t+i/1e3;case"millisecond":return Math.floor(864e5*t)+i;default:throw new Error("Unknown unit "+e)}},Mn.asMilliseconds=Tn,Mn.asSeconds=yn,Mn.asMinutes=Cn,Mn.asHours=bn,Mn.asDays=Dn,Mn.asWeeks=In,Mn.asMonths=On,Mn.asYears=Rn,Mn.valueOf=function(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*C(this._months/12):NaN},Mn._bubble=function(){var e,t,n,i,o,r=this._milliseconds,s=this._days,a=this._months,l=this._data;return r>=0&&s>=0&&a>=0||r<=0&&s<=0&&a<=0||(r+=864e5*gn(vn(a)+s),s=0,a=0),l.milliseconds=r%1e3,e=y(r/1e3),l.seconds=e%60,t=y(e/60),l.minutes=t%60,n=y(t/60),l.hours=n%24,a+=o=y(mn(s+=y(n/24))),s-=gn(vn(o)),i=y(a/12),a%=12,l.days=s,l.months=a,l.years=i,this},Mn.get=function(e){return e=N(e),this.isValid()?this[e+"s"]():NaN},Mn.milliseconds=wn,Mn.seconds=kn,Mn.minutes=Kn,Mn.hours=Sn,Mn.days=xn,Mn.weeks=function(){return y(this.days()/7)},Mn.months=Nn,Mn.years=An,Mn.humanize=function(e){if(!this.isValid())return this.localeData().invalidDate();var t=this.localeData(),n=function(e,t,n){var i=jt(e).abs(),o=Ln(i.as("s")),r=Ln(i.as("m")),s=Ln(i.as("h")),a=Ln(i.as("d")),l=Ln(i.as("M")),u=Ln(i.as("y")),c=o<=Fn.ss&&["s",o]||o<Fn.s&&["ss",o]||r<=1&&["m"]||r<Fn.m&&["mm",r]||s<=1&&["h"]||s<Fn.h&&["hh",s]||a<=1&&["d"]||a<Fn.d&&["dd",a]||l<=1&&["M"]||l<Fn.M&&["MM",l]||u<=1&&["y"]||["yy",u];return c[2]=t,c[3]=+e>0,c[4]=n,(function(e,t,n,i,o){return o.relativeTime(t||1,!!n,e,i)}).apply(null,c)}(this,!e,t);return e&&(n=t.pastFuture(+this,n)),t.postformat(n)},Mn.toISOString=Bn,Mn.toString=Bn,Mn.toJSON=Bn,Mn.locale=Yt,Mn.localeData=Zt,Mn.toIsoString=I("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Bn),Mn.lang=Xt,W("X",0,0,"unix"),W("x",0,0,"valueOf"),de("x",se),de("
1X",/[+-]?\d+(\.\d{1,3})?/),ge("X",function(e,t,n){n._d=new Date(1e3*parseFloat(e,10))}),ge("x",function(e,t,n){n._d=new Date(C(e))}),t.version="2.18.1",e=Rt,t.fn=an,t.min=function(){return kt("isBefore",[].slice.call(arguments,0))},t.max=function(){return kt("isAfter",[].slice.call(arguments,0))},t.now=function(){return Date.now?Date.now():+new Date},t.utc=c,t.unix=function(e){return Rt(1e3*e)},t.months=function(e,t){return dn(e,t,"months")},t.isDate=s,t.locale=lt,t.invalid=p,t.duration=jt,t.isMoment=T,t.weekdays=function(e,t,n){return hn(e,t,n,"weekdays")},t.parseZone=function(){return Rt.apply(null,arguments).parseZone()},t.localeData=ct,t.isDuration=xt,t.monthsShort=function(e,t){return dn(e,t,"monthsShort")},t.weekdaysMin=function(e,t,n){return hn(e,t,n,"weekdaysMin")},t.defineLocale=ut,t.updateLocale=function(e,t){if(null!=t){var n,i=it;null!=ot[e]&&(i=ot[e]._config),(n=new k(t=w(i,t))).parentLocale=ot[e],ot[e]=n,lt(e)}else null!=ot[e]&&(null!=ot[e].parentLocale?ot[e]=ot[e].parentLocale:null!=ot[e]&&delete ot[e]);return ot[e]},t.locales=function(){return K(ot)},t.weekdaysShort=function(e,t,n){return hn(e,t,n,"weekdaysShort")},t.normalizeUnits=N,t.relativeTimeRounding=function(e){return void 0===e?Ln:"function"==typeof e&&(Ln=e,!0)},t.relativeTimeThreshold=function(e,t){return void 0!==Fn[e]&&(void 0===t?Fn[e]:(Fn[e]=t,"s"===e&&(Fn.ss=t-1),!0))},t.calendarFormat=function(e,t){var n=e.diff(t,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"},t.prototype=an,t}),function(e){"function"==typeof define&&define.amd?define(["jquery","moment"],e):"object"==typeof exports?module.exports=e(require("jquery"),require("moment")):e(jQuery,moment)}(function(e,t){var n=e.fullCalendar={version:"3.3.1",internalApiVersion:9},i=n.views={};e.fn.fullCalendar=function(t){var n=Array.prototype.slice.call(arguments,1),i=this;return this.each(function(o,r){var s,a=e(r),l=a.data("fullCalendar");"string"==typeof t?l&&e.isFunction(l[t])&&(s=l[t].apply(l,n),o||(i=s),"destroy"===t&&a.removeData("fullCalendar")):l||(l=new Ze(a,t),a.data("fullCalendar",l),l.render())}),i};var o=["header","footer","buttonText","buttonIcons","themeButtonIcons"];function r(e){return Y(e,o)}function s(e,t){t.left&&e.css({"border-left-width":1,"margin-left":t.left-1}),t.right&&e.css({"border-right-width":1,"margin-right":t.right-1})}function a(e){e.css({"margin-left":"","margin-right":"","border-left-width":"","border-right-width":""})}function l(){e("body").addClass("fc-not-allowed")}function u(){e("body").removeClass("fc-not-allowed")}function c(t,n,i){var o=Math.floor(n/t.length),r=Math.floor(n-o*(t.length-1)),s=[],a=[],l=[],u=0;d(t),t.each(function(n,i){var c=n===t.length-1?r:o,d=e(i).outerHeight(!0);d<c?(s.push(i),a.push(d),l.push(e(i).height())):u+=d}),i&&(n-=u,o=Math.floor(n/s.length),r=Math.floor(n-o*(s.length-1))),e(s).each(function(t,n){var i=t===s.length-1?r:o,u=a[t],c=i-(u-l[t]);u<i&&e(n).height(c)})}function d(e){e.height("")}function h(t){var n=0;return t.find("> *").each(function(t,i){var o=e(i).outerWidth();o>n&&(n=o)}),n++,t.width(n),n}function f(e,t){var n,i=e.add(t);return i.css({position:"relative",left:-1}),n=e.outerHeight()-t.outerHeight(),i.css({position:"",left:""}),n}function p(t){var n=t.css("position"),i=t.parents().filter(function(){var t=e(this);return/(auto|scroll)/.test(t.css("overflow")+t.css("overflow-y")+t.css("overflow-x"))}).eq(0);return"fixed"!==n&&i.length?i:e(t[0].ownerDocument||document)}function g(e,t){var n=e.offset(),i=n.left-(t?t.left:0),o=n.top-(t?t.top:0);return{left:i,right:i+e.outerWidth(),top:o,bottom:o+e.outerHeight()}}function m(e,t){var n=e.offset(),i=v(e),o=n.left+y(e,"border-left-width")+i.left-(t?t.left:0),r=n.top+y(e,"border-top-width")+i.top-(t?t.top:0);return{left:o,right:o+e[0].clientWidth,top:r,bottom:r+e[0].clientHeight}}function v(t){var n,i=t[0].offsetWidth-t[0].clientWidth,o=t[0].offsetHeight-t[0].clientHeight;return i=E(i),n={left:0,right:0,top:0,bottom:o=E(o)},!function(){null===T&&(t=e("<div><div/></div>").css({position:"absolute",top:-1e3,left:0,border:0,padding:0,overflow:"scroll",direction:"rtl"}).appendTo("body"),n=t.children().offset().left>t.offset().left,t.remove(),T=n);var t,n;return T}()||"rtl"!=t.css("direction")?n.right=i:n.left=i,n}function E(e){return e=Math.max(0,e),e=Math.round(e)}n.intersectRanges=x,n.applyAll=J,n.debounce=le,n.isInt=se,n.htmlEscape=te,n.cssToStr=ie,n.proxy=ae,n.capitaliseFirstLetter=oe,n.getOuterRect=g,n.getClientRect=m,n.getContentRect=function(e,t){var n=e.offset(),i=n.left+y(e,"border-left-width")+y(e,"padding-left")-(t?t.left:0),o=n.top+y(e,"border-top-width")+y(e,"padding-top")-(t?t.top:0);return{left:i,right:i+e.width(),top:o,bottom:o+e.height()}},n.getScrollbarWidths=v;var T=null;function y(e,t){return parseFloat(e.css(t))||0}function C(e){return 1==e.which&&!e.ctrlKey}function b(e){var t=e.originalEvent.touches;return t&&t.length?t[0].pageX:e.pageX}function D(e){var t=e.originalEvent.touches;return t&&t.length?t[0].pageY:e.pageY}function I(e){return/^touch/.test(e.type)}function O(e){e.addClass("fc-unselectable").on("selectstart",R)}function R(e){e.preventDefault()}function _(e,t){var n={left:Math.max(e.left,t.left),right:Math.min(e.right,t.right),top:Math.max(e.top,t.top),bottom:Math.min(e.bottom,t.bottom)};return n.left<n.right&&n.top<n.bottom&&n}function w(t){var n,i,o=[],r=[];for("string"==typeof t?r=t.split(/\s*,\s*/):"function"==typeof t?r=[t]:e.isArray(t)&&(r=t),n=0;n<r.length;n++)"string"==typeof(i=r[n])?o.push("-"==i.charAt(0)?{field:i.substring(1),order:-1}:{field:i,order:1}):"function"==typeof i&&o.push({func:i});return o}
1function k(e,t,n){var i,o;for(i=0;i<n.length;i++)if(o=K(e,t,n[i]))return o;return 0}function K(e,t,n){return n.func?n.func(e,t):S(e[n.field],t[n.field])*(n.order||1)}function S(t,n){return t||n?null==n?-1:null==t?1:"string"===e.type(t)||"string"===e.type(n)?String(t).localeCompare(String(n)):t-n:0}function x(e,t){var n,i,o,r,s=e.start,a=e.end,l=t.start,u=t.end;if(a>l&&s<u)return s>=l?(n=s.clone(),o=!0):(n=l.clone(),o=!1),a<=u?(i=a.clone(),r=!0):(i=u.clone(),r=!1),{start:n,end:i,isStart:o,isEnd:r}}n.preventDefault=R,n.intersectRects=_,n.parseFieldSpecs=w,n.compareByFieldSpecs=k,n.compareByFieldSpec=K,n.flexibleCompare=S,n.computeGreatestUnit=P,n.divideRangeByDuration=function(e,t,n){var i;if(V(n))return(t-e)/n;if(i=n.asMonths(),Math.abs(i)>=1&&se(i))return t.diff(e,"months",!0)/i;return t.diff(e,"days",!0)/n.asDays()},n.divideDurationByDuration=$,n.multiplyDuration=function(e,n){var i;if(V(e))return t.duration(e*n);if(i=e.asMonths(),Math.abs(i)>=1&&se(i))return t.duration({months:i*n});return t.duration({days:e.asDays()*n})},n.durationHasTime=V;var N=["sun","mon","tue","wed","thu","fri","sat"],A=["year","month","week","day","hour","minute","second","millisecond"];function L(e,n){return t.duration({days:e.clone().stripTime().diff(n.clone().stripTime(),"days"),ms:e.time()-n.time()})}function F(e,n,i){return t.duration(Math.round(e.diff(n,i,!0)),i)}function P(e,t){var n,i,o;for(n=0;n<A.length&&!((o=M(i=A[n],e,t))>=1&&se(o));n++);return i}function B(e,t){var n=P(e);return"week"===n&&"object"==typeof t&&t.days&&(n="day"),n}function M(e,n,i){return null!=i?i.diff(n,e,!0):t.isDuration(n)?n.as(e):n.end.diff(n.start,e,!0)}function $(e,t){var n,i;return V(e)||V(t)?e/t:(n=e.asMonths(),i=t.asMonths(),Math.abs(n)>=1&&se(n)&&Math.abs(i)>=1&&se(i)?n/i:e.asDays()/t.asDays())}function H(e){return{start:e.start.clone(),end:e.end.clone()}}function j(e,t){var n,i;return e=H(e),t.start&&(e.start=q(e.start,t)),t.end&&(e.end=(n=e.end,i=t.end,(n.isBefore(i)?n:i).clone())),e}function q(e,t){var n,i;return e=e.clone(),t.start&&(n=e,i=t.start,e=(n.isAfter(i)?n:i).clone()),t.end&&e>=t.end&&(e=t.end.clone().subtract(1)),e}function z(e,t){return(!t.start||e>=t.start)&&(!t.end||e<t.end)}function W(e,t){return(!t.start||e.start>=t.start)&&(!t.end||e.end<=t.end)}function V(e){return Boolean(e.hours()||e.minutes()||e.seconds()||e.milliseconds())}function U(e){return/^\d+\:\d+(?:\:\d+\.?(?:\d{3})?)?$/.test(e)}n.log=function(){var e=window.console;if(e&&e.log)return e.log.apply(e,arguments)},n.warn=function(){var e=window.console;return e&&e.warn?e.warn.apply(e,arguments):n.log.apply(n,arguments)};var G={}.hasOwnProperty;function Y(e,t){var n,i,o,r,s,a,l={};if(t)for(n=0;n<t.length;n++){for(i=t[n],o=[],r=e.length-1;r>=0;r--)if("object"==typeof(s=e[r][i]))o.unshift(s);else if(void 0!==s){l[i]=s;break}o.length&&(l[i]=Y(o))}for(n=e.length-1;n>=0;n--)for(i in a=e[n])i in l||(l[i]=a[i]);return l}function X(e){var t=function(){};return t.prototype=e,new t}function Z(e,t){for(var n in e)Q(e,n)&&(t[n]=e[n])}function Q(e,t){return G.call(e,t)}function J(t,n,i){if(e.isFunction(t)&&(t=[t]),t){var o,r;for(o=0;o<t.length;o++)r=t[o].apply(n,i)||r;return r}}function ee(){for(var e=0;e<arguments.length;e++)if(void 0!==arguments[e])return arguments[e]}function te(e){return(e+"").replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/'/g,"'").replace(/"/g,""").replace(/\n/g,"<br />")}function ne(e){return e.replace(/&.*?;/g,"")}function ie(t){var n=[];return e.each(t,function(e,t){null!=t&&n.push(e+":"+t)}),n.join(";")}function oe(e){return e.charAt(0).toUpperCase()+e.slice(1)}function re(e,t){return e-t}function se(e){return e%1==0}function ae(e,t){var n=e[t];return function(){return n.apply(e,arguments)}}function le(e,t,n){var i,o,r,s,a,l=function(){var u=+new Date-s;u<t?i=setTimeout(l,t-u):(i=null,n||(a=e.apply(r,o),r=o=null))};return function(){r=this,o=arguments,s=+new Date;var u=n&&!i;return i||(i=setTimeout(l,t)),u&&(a=e.apply(r,o),r=o=null),a}}n.createObject=X;var ue=/^\s*\d{4}-\d\d$/,ce=/^\s*\d{4}-(?:(\d\d-\d\d)|(W\d\d$)|(W\d\d-\d)|(\d\d\d))((T| )(\d\d(:\d\d(:\d\d(\.\d+)?)?)?)?)?$/,de=t.fn,he=e.extend({},de),fe=t.momentProperties;function pe(n,i,o){var r,s,a,l,u=n[0],c=1==n.length&&"string"==typeof u;return t.isMoment(u)||function(e){return"[object Date]"===Object.prototype.toString.call(e)||e instanceof Date}(u)||void 0===u?l=t.apply(null,n):(r=!1,s=!1,c?ue.test(u)?(n=[u+="-01"],r=!0,s=!0):(a=ce.exec(u))&&(r=!a[5],s=!0):e.isArray(u)&&(s=!0),l=i||r?t.utc.apply(t,n):t.apply(null,n),r?(l._ambigTime=!0,l._ambigZone=!0):o&&(s?l._ambigZone=!0:c&&l.utcOffset(u))),l._fullCalendar=!0,l}fe.push("_fullCalendar"),fe.push("_ambigTime"),fe.push("_ambigZone"),n.moment=function(){return pe(arguments)},n.moment.utc=function(){var e=pe(arguments,!0);return e.hasTime()&&e.utc(),e},n.moment.parseZone=function(){return pe(arguments,!0,!0)},de.week=de.weeks=function(e){var t=this._locale._fullCalendar_weekCalc;return null==e&&"function"==typeof t?t(this):"ISO"===t?he.isoWeek.apply(this,arguments):he.week.apply(this,arguments)},de.time=function(e){if(!this._fullCalendar)return he.time.apply(this,arguments);if(null==e)return t.duration({hours:this.hours(),minutes:this.minutes(),seconds:this.seconds(),milliseconds:this.milliseconds()});this._ambigTime=!1,t.isDuration(e)||t.isMoment(e)||(e=t.duration(e));var n=0;return t.isDuration(e)&&(n=24*Math.floor(e.asDays())),this.hours(n+e.hours()).minutes(e.minutes()).seconds(e.seconds()).milliseconds(e.milliseconds())},de.stripTime=function(){return this._ambigTime||(this.utc(!0),this.set({hours:0,minutes:0,seconds:0,ms:0}),this._ambigTime=!0,this._ambigZone=!0),this},de.hasTime=function(){return!this._ambigTime},de.stripZone=function(){var e;return this._ambigZone||(e=this._ambigTime,this.utc(!0),this._ambigTime=e||!1,this._ambigZone=!0),this},de.hasZone=function(){return!this._ambigZone},de.local=function(e){return he.local.call(this,this._ambigZone||e),this._ambigTime=!1,this._ambigZone=!1,this},de.utc=function(e){return he.utc.call(this,e),this._ambigTime=!1,this._ambigZone=!1,this},de.utcOffset=function(e){return null!=e&&(this._ambigTime=!1,this._ambigZone=!1),he.utcOffset.apply(this,arguments)},de.format=function(){return this._fullCalendar&&arguments[0]?ge(this,arguments[0]):this._ambigTime?ve(this,"YYYY-MM-DD"):this._ambigZone?ve(this,"YYYY-MM-DD[T]HH:mm:ss"):he.format.apply(this,arguments)},de.toISOString=function(){return this._ambigTime?ve(this,"YYYY-MM-DD"):this._ambigZone?ve(this,"YYYY-MM-DD[T]HH:mm:ss"):he.toISOString.apply(this,arguments)},function(){n.formatDate=function(e,t){return function(e,t){return f(h(e,t).join(""))}(u(t).fakeFormatString,e)},n.formatRange=function(e,t,i,o,r){var s;return e=n.moment.parseZone(e),t=n.moment.parseZone(t),s=e.localeData(),function(e,t,n,i,o){var r,s,a,l=e.sameUnits,u=t.clone().stripZone(),c=n.clone().stripZone(),d=h(e.fakeFormatString,t),p=h(e.fakeFormatString,n),g="",m="",v="",E="",T="";for(r=0;r<l.length&&(!l[r]||u.isSame(c,l[r]));r++)g+=d[r];for(s=l.length-1;s>
1r&&(!l[s]||u.isSame(c,l[s]))&&(s-1!==r||"."!==d[s]);s--)m=d[s]+m;for(a=r;a<=s;a++)v+=d[a],E+=p[a];return(v||E)&&(T=o?E+i+v:v+i+E),f(g+T+m)}(u(i=s.longDateFormat(i)||i),e,t,o||" - ",r)},n.oldMomentFormat=a,n.queryMostGranularFormatUnit=function(e){var t,n,i,o,r=c(e);for(t=0;t<r.length;t++)(n=r[t]).token&&(i=s[n.token.charAt(0)])&&(!o||i.value>o.value)&&(o=i);if(o)return o.unit;return null};var e="\v",t="\x1f",i="\x1e",o=new RegExp(i+"([^"+i+"]*)"+i,"g"),r={t:function(e){return a(e,"a").charAt(0)},T:function(e){return a(e,"A").charAt(0)}},s={Y:{value:1,unit:"year"},M:{value:2,unit:"month"},W:{value:3,unit:"week"},w:{value:3,unit:"week"},D:{value:4,unit:"day"},d:{value:4,unit:"day"}};function a(e,t){return he.format.call(e,t)}var l={};function u(n){return l[n]||(l[n]=function(n){var o=c(n);return{fakeFormatString:function n(o){var s=[];var a,l;for(a=0;a<o.length;a++)"string"==typeof(l=o[a])?s.push("["+l+"]"):l.token?l.token in r?s.push(t+"["+l.token+"]"):s.push(l.token):l.maybe&&s.push(i+n(l.maybe)+i);return s.join(e)}(o),sameUnits:function e(t){var n=[];var i,o;var r;for(i=0;i<t.length;i++)(o=t[i]).token?(r=s[o.token.charAt(0)],n.push(r?r.unit:"second")):o.maybe?n.push.apply(n,e(o.maybe)):n.push(null);return n}(o)}}(n))}function c(e){for(var t,n=[],i=/\[([^\]]*)\]|\(([^\)]*)\)|(LTS|LT|(\w)\4*o?)|([^\w\[\(]+)/g;t=i.exec(e);)t[1]?n.push.apply(n,d(t[1])):t[2]?n.push({maybe:c(t[2])}):t[3]?n.push({token:t[3]}):t[5]&&n.push.apply(n,d(t[5]));return n}function d(e){return". "===e?["."," "]:[e]}function h(n,i){var o,s,l=[],u=a(i,n).split(e);for(o=0;o<u.length;o++)(s=u[o]).charAt(0)===t?l.push(r[s.substring(1)](i)):l.push(s);return l}function f(e){return e.replace(o,function(e,t){return t.match(/[1-9]/)?t:""})}}();var ge=n.formatDate,me=n.formatRange,ve=n.oldMomentFormat;function Ee(){}function Te(e,t){Z(t,e.prototype)}function ye(t){var n=e.Deferred(),i=n.promise();if("function"==typeof t&&t(function(e){ye.immediate&&(i._value=e),n.resolve(e)},function(){n.reject()}),ye.immediate){var o=i.then;i.then=function(e,t){var n=i.state();if("resolved"===n){if("function"==typeof e)return ye.resolve(e(i._value))}else if("rejected"===n&&"function"==typeof t)return t(),i;return o.call(i,e,t)}}return i}function Ce(e){var t=[];function n(e){return new ye(function(n){var i=function(){ye.resolve(e()).then(n).then(function(){t.shift(),t.length&&t[0]()})};t.push(i),1===t.length&&i()})}this.add="number"==typeof e?le(n,e):n,this.addQuickly=n}n.Class=Ee,Ee.extend=function(){var e,t,n=arguments.length;for(e=0;e<n;e++)t=arguments[e],e<n-1&&Te(this,t);return function(e,t){var n;Q(t,"constructor")&&(n=t.constructor);"function"!=typeof n&&(n=t.constructor=function(){e.apply(this,arguments)});return n.prototype=X(e.prototype),Z(t,n.prototype),Z(e,n),n}(this,t||{})},Ee.mixin=function(e){Te(this,e)},n.Promise=ye,ye.immediate=!0,ye.resolve=function(t){if(t&&"function"==typeof t.resolve)return t.promise();if(t&&"function"==typeof t.then)return t;var n=e.Deferred().resolve(t).promise();if(ye.immediate){var i=n.then;n._value=t,n.then=function(e,o){return"function"==typeof e?ye.resolve(e(t)):i.call(n,e,o)}}return n},ye.reject=function(){return e.Deferred().reject().promise()},ye.all=function(t){var n,i,o,r=!1;if(ye.immediate)for(r=!0,n=[],i=0;i<t.length;i++)if((o=t[i])&&"function"==typeof o.state&&"resolved"===o.state()&&"_value"in o)n.push(o._value);else{if(o&&"function"==typeof o.then){r=!1;break}n.push(o)}return r?ye.resolve(n):e.when.apply(e.when,t).then(function(){return e.when(e.makeArray(arguments))})},n.TaskQueue=Ce;var be,De=n.EmitterMixin={on:function(t,n){return e(this).on(t,this._prepareIntercept(n)),this},one:function(t,n){return e(this).one(t,this._prepareIntercept(n)),this},_prepareIntercept:function(t){var n=function(e,n){return t.apply(n.context||this,n.args||[])};return t.guid||(t.guid=e.guid++),n.guid=t.guid,n},off:function(t,n){return e(this).off(t,n),this},trigger:function(t){var n=Array.prototype.slice.call(arguments,1);return e(this).triggerHandler(t,{args:n}),this},triggerWith:function(t,n,i){return e(this).triggerHandler(t,{context:n,args:i}),this}},Ie=n.ListenerMixin=(be=0,{listenerId:null,listenTo:function(t,n,i){if("object"==typeof n)for(var o in n)n.hasOwnProperty(o)&&this.listenTo(t,o,n[o]);else"string"==typeof n&&t.on(n+"."+this.getListenerNamespace(),e.proxy(i,this))},stopListeningTo:function(e,t){e.off((t||"")+"."+this.getListenerNamespace())},getListenerNamespace:function(){return null==this.listenerId&&(this.listenerId=be++),"_listener"+this.listenerId}}),Oe=Ee.extend(Ie,{isHidden:!0,options:null,el:null,margin:10,constructor:function(e){this.options=e||{}},show:function(){this.isHidden&&(this.el||this.render(),this.el.show(),this.position(),this.isHidden=!1,this.trigger("show"))},hide:function(){this.isHidden||(this.el.hide(),this.isHidden=!0,this.trigger("hide"))},render:function(){var t=this,n=this.options;this.el=e('<div class="fc-popover"/>').addClass(n.className||"").css({top:0,left:0}).append(n.content).appendTo(n.parentEl),this.el.on("click",".fc-close",function(){t.hide()}),n.autoHide&&this.listenTo(e(document),"mousedown",this.documentMousedown)},documentMousedown:function(t){this.el&&!e(t.target).closest(this.el).length&&this.hide()},removeElement:function(){this.hide(),this.el&&(this.el.remove(),this.el=null),this.stopListeningTo(e(document),"mousedown")},position:function(){var t,n,i,o,r,s=this.options,a=this.el.offsetParent().offset(),l=this.el.outerWidth(),u=this.el.outerHeight(),c=e(window),d=p(this.el);o=s.top||0,r=void 0!==s.left?s.left:void 0!==s.right?s.right-l:0,d.is(window)||d.is(document)?(d=c,t=0,n=0):(t=(i=d.offset()).top,n=i.left),t+=c.scrollTop(),n+=c.scrollLeft(),!1!==s.viewportConstrain&&(o=Math.min(o,t+d.outerHeight()-u-this.margin),o=Math.max(o,t+this.margin),r=Math.min(r,n+d.outerWidth()-l-this.margin),r=Math.max(r,n+this.margin)),this.el.css({top:o-a.top,left
1:r-a.left})},trigger:function(e){this.options[e]&&this.options[e].apply(this,Array.prototype.slice.call(arguments,1))}}),Re=n.CoordCache=Ee.extend({els:null,forcedOffsetParentEl:null,origin:null,boundingRect:null,isHorizontal:!1,isVertical:!1,lefts:null,rights:null,tops:null,bottoms:null,constructor:function(t){this.els=e(t.els),this.isHorizontal=t.isHorizontal,this.isVertical=t.isVertical,this.forcedOffsetParentEl=t.offsetParent?e(t.offsetParent):null},build:function(){var e=this.forcedOffsetParentEl;!e&&this.els.length>0&&(e=this.els.eq(0).offsetParent()),this.origin=e?e.offset():null,this.boundingRect=this.queryBoundingRect(),this.isHorizontal&&this.buildElHorizontals(),this.isVertical&&this.buildElVerticals()},clear:function(){this.origin=null,this.boundingRect=null,this.lefts=null,this.rights=null,this.tops=null,this.bottoms=null},ensureBuilt:function(){this.origin||this.build()},buildElHorizontals:function(){var t=[],n=[];this.els.each(function(i,o){var r=e(o),s=r.offset().left,a=r.outerWidth();t.push(s),n.push(s+a)}),this.lefts=t,this.rights=n},buildElVerticals:function(){var t=[],n=[];this.els.each(function(i,o){var r=e(o),s=r.offset().top,a=r.outerHeight();t.push(s),n.push(s+a)}),this.tops=t,this.bottoms=n},getHorizontalIndex:function(e){this.ensureBuilt();var t,n=this.lefts,i=this.rights,o=n.length;for(t=0;t<o;t++)if(e>=n[t]&&e<i[t])return t},getVerticalIndex:function(e){this.ensureBuilt();var t,n=this.tops,i=this.bottoms,o=n.length;for(t=0;t<o;t++)if(e>=n[t]&&e<i[t])return t},getLeftOffset:function(e){return this.ensureBuilt(),this.lefts[e]},getLeftPosition:function(e){return this.ensureBuilt(),this.lefts[e]-this.origin.left},getRightOffset:function(e){return this.ensureBuilt(),this.rights[e]},getRightPosition:function(e){return this.ensureBuilt(),this.rights[e]-this.origin.left},getWidth:function(e){return this.ensureBuilt(),this.rights[e]-this.lefts[e]},getTopOffset:function(e){return this.ensureBuilt(),this.tops[e]},getTopPosition:function(e){return this.ensureBuilt(),this.tops[e]-this.origin.top},getBottomOffset:function(e){return this.ensureBuilt(),this.bottoms[e]},getBottomPosition:function(e){return this.ensureBuilt(),this.bottoms[e]-this.origin.top},getHeight:function(e){return this.ensureBuilt(),this.bottoms[e]-this.tops[e]},queryBoundingRect:function(){var e;return this.els.length>0&&!(e=p(this.els.eq(0))).is(document)?m(e):null},isPointInBounds:function(e,t){return this.isLeftInBounds(e)&&this.isTopInBounds(t)},isLeftInBounds:function(e){return!this.boundingRect||e>=this.boundingRect.left&&e<this.boundingRect.right},isTopInBounds:function(e){return!this.boundingRect||e>=this.boundingRect.top&&e<this.boundingRect.bottom}}),_e=n.DragListener=Ee.extend(Ie,{options:null,subjectEl:null,originX:null,originY:null,scrollEl:null,isInteracting:!1,isDistanceSurpassed:!1,isDelayEnded:!1,isDragging:!1,isTouch:!1,isGeneric:!1,delay:null,delayTimeoutId:null,minDistance:null,shouldCancelTouchScroll:!0,scrollAlwaysKills:!1,constructor:function(e){this.options=e||{}},startInteraction:function(t,n){if("mousedown"===t.type){if(Ne.get().shouldIgnoreMouse())return;if(!C(t))return;t.preventDefault()}this.isInteracting||(n=n||{},this.delay=ee(n.delay,this.options.delay,0),this.minDistance=ee(n.distance,this.options.distance,0),this.subjectEl=this.options.subjectEl,O(e("body")),this.isInteracting=!0,this.isTouch=I(t),this.isGeneric="dragstart"===t.type,this.isDelayEnded=!1,this.isDistanceSurpassed=!1,this.originX=b(t),this.originY=D(t),this.scrollEl=p(e(t.target)),this.bindHandlers(),this.initAutoScroll(),this.handleInteractionStart(t),this.startDelay(t),this.minDistance||this.handleDistanceSurpassed(t))},handleInteractionStart:function(e){this.trigger("interactionStart",e)},endInteraction:function(t,n){this.isInteracting&&(this.endDrag(t),this.delayTimeoutId&&(clearTimeout(this.delayTimeoutId),this.delayTimeoutId=null),this.destroyAutoScroll(),this.unbindHandlers(),this.isInteracting=!1,this.handleInteractionEnd(t,n),e("body").removeClass("fc-unselectable").off("selectstart",R))},handleInteractionEnd:function(e,t){this.trigger("interactionEnd",e,t||!1)},bindHandlers:function(){var t=Ne.get();this.isGeneric?this.listenTo(e(document),{drag:this.handleMove,dragstop:this.endInteraction}):this.isTouch?this.listenTo(t,{touchmove:this.handleTouchMove,touchend:this.endInteraction,scroll:this.handleTouchScroll}):this.listenTo(t,{mousemove:this.handleMouseMove,mouseup:this.endInteraction}),this.listenTo(t,{selectstart:R,contextmenu:R})},unbindHandlers:function(){this.stopListeningTo(Ne.get()),this.stopListeningTo(e(document))},startDrag:function(e,t){this.startInteraction(e,t),this.isDragging||(this.isDragging=!0,this.handleDragStart(e))},handleDragStart:function(e){this.trigger("dragStart",e)},handleMove:function(e){var t=b(e)-this.originX,n=D(e)-this.originY,i=this.minDistance;this.isDistanceSurpassed||t*t+n*n>=i*i&&this.handleDistanceSurpassed(e),this.isDragging&&this.handleDrag(t,n,e)},handleDrag:function(e,t,n){this.trigger("drag",e,t,n),this.updateAutoScroll(n)},endDrag:function(e){this.isDragging&&(this.isDragging=!1,this.handleDragEnd(e))},handleDragEnd:function(e){this.trigger("dragEnd",e)},startDelay:function(e){var t=this;this.delay?this.delayTimeoutId=setTimeout(function(){t.handleDelayEnd(e)},this.delay):this.handleDelayEnd(e)},handleDelayEnd:function(e){this.isDelayEnded=!0,this.isDistanceSurpassed&&this.startDrag(e)},handleDistanceSurpassed:function(e){this.isDistanceSurpassed=!0,this.isDelayEnded&&this.startDrag(e)},handleTouchMove:function(e){this.isDragging&&this.shouldCancelTouchScroll&&e.preventDefault(),this.handleMove(e)},handleMouseMove:function(e){this.handleMove(e)},handleTouchScroll:function(e){this.isDragging&&!this.scrollAlwaysKills||this.endInteraction(e,!0)},trigger:function(e){this.options[e]&&this.options[e].apply(this,Array.prototype.slice.call(arguments,1
1)),this["_"+e]&&this["_"+e].apply(this,Array.prototype.slice.call(arguments,1))}});_e.mixin({isAutoScroll:!1,scrollBounds:null,scrollTopVel:null,scrollLeftVel:null,scrollIntervalId:null,scrollSensitivity:30,scrollSpeed:200,scrollIntervalMs:50,initAutoScroll:function(){var e=this.scrollEl;this.isAutoScroll=this.options.scroll&&e&&!e.is(window)&&!e.is(document),this.isAutoScroll&&this.listenTo(e,"scroll",le(this.handleDebouncedScroll,100))},destroyAutoScroll:function(){this.endAutoScroll(),this.isAutoScroll&&this.stopListeningTo(this.scrollEl,"scroll")},computeScrollBounds:function(){this.isAutoScroll&&(this.scrollBounds=g(this.scrollEl))},updateAutoScroll:function(e){var t,n,i,o,r=this.scrollSensitivity,s=this.scrollBounds,a=0,l=0;s&&(t=(r-(D(e)-s.top))/r,n=(r-(s.bottom-D(e)))/r,i=(r-(b(e)-s.left))/r,o=(r-(s.right-b(e)))/r,t>=0&&t<=1?a=t*this.scrollSpeed*-1:n>=0&&n<=1&&(a=n*this.scrollSpeed),i>=0&&i<=1?l=i*this.scrollSpeed*-1:o>=0&&o<=1&&(l=o*this.scrollSpeed)),this.setScrollVel(a,l)},setScrollVel:function(e,t){this.scrollTopVel=e,this.scrollLeftVel=t,this.constrainScrollVel(),!this.scrollTopVel&&!this.scrollLeftVel||this.scrollIntervalId||(this.scrollIntervalId=setInterval(ae(this,"scrollIntervalFunc"),this.scrollIntervalMs))},constrainScrollVel:function(){var e=this.scrollEl;this.scrollTopVel<0?e.scrollTop()<=0&&(this.scrollTopVel=0):this.scrollTopVel>0&&e.scrollTop()+e[0].clientHeight>=e[0].scrollHeight&&(this.scrollTopVel=0),this.scrollLeftVel<0?e.scrollLeft()<=0&&(this.scrollLeftVel=0):this.scrollLeftVel>0&&e.scrollLeft()+e[0].clientWidth>=e[0].scrollWidth&&(this.scrollLeftVel=0)},scrollIntervalFunc:function(){var e=this.scrollEl,t=this.scrollIntervalMs/1e3;this.scrollTopVel&&e.scrollTop(e.scrollTop()+this.scrollTopVel*t),this.scrollLeftVel&&e.scrollLeft(e.scrollLeft()+this.scrollLeftVel*t),this.constrainScrollVel(),this.scrollTopVel||this.scrollLeftVel||this.endAutoScroll()},endAutoScroll:function(){this.scrollIntervalId&&(clearInterval(this.scrollIntervalId),this.scrollIntervalId=null,this.handleScrollEnd())},handleDebouncedScroll:function(){this.scrollIntervalId||this.handleScrollEnd()},handleScrollEnd:function(){}});var we=_e.extend({component:null,origHit:null,hit:null,coordAdjust:null,constructor:function(e,t){_e.call(this,t),this.component=e},handleInteractionStart:function(e){var t,n,i,o,r,s,a=this.subjectEl;this.component.hitsNeeded(),this.computeScrollBounds(),e?(i=n={left:b(e),top:D(e)},a&&(i=function(e,t){return{left:Math.min(Math.max(e.left,t.left),t.right),top:Math.min(Math.max(e.top,t.top),t.bottom)}}(i,t=g(a))),this.origHit=this.queryHit(i.left,i.top),a&&this.options.subjectCenter&&(this.origHit&&(t=_(this.origHit,t)||t),i={left:((s=t).left+s.right)/2,top:(s.top+s.bottom)/2}),this.coordAdjust=(r=n,{left:(o=i).left-r.left,top:o.top-r.top})):(this.origHit=null,this.coordAdjust=null),_e.prototype.handleInteractionStart.apply(this,arguments)},handleDragStart:function(e){var t;_e.prototype.handleDragStart.apply(this,arguments),(t=this.queryHit(b(e),D(e)))&&this.handleHitOver(t)},handleDrag:function(e,t,n){var i;_e.prototype.handleDrag.apply(this,arguments),ke(i=this.queryHit(b(n),D(n)),this.hit)||(this.hit&&this.handleHitOut(),i&&this.handleHitOver(i))},handleDragEnd:function(){this.handleHitDone(),_e.prototype.handleDragEnd.apply(this,arguments)},handleHitOver:function(e){var t=ke(e,this.origHit);this.hit=e,this.trigger("hitOver",this.hit,t,this.origHit)},handleHitOut:function(){this.hit&&(this.trigger("hitOut",this.hit),this.handleHitDone(),this.hit=null)},handleHitDone:function(){this.hit&&this.trigger("hitDone",this.hit)},handleInteractionEnd:function(){_e.prototype.handleInteractionEnd.apply(this,arguments),this.origHit=null,this.hit=null,this.component.hitsNotNeeded()},handleScrollEnd:function(){_e.prototype.handleScrollEnd.apply(this,arguments),this.isDragging&&(this.component.releaseHits(),this.component.prepareHits())},queryHit:function(e,t){return this.coordAdjust&&(e+=this.coordAdjust.left,t+=this.coordAdjust.top),this.component.queryHit(e,t)}});function ke(e,t){return!e&&!t||!(!e||!t)&&(e.component===t.component&&Ke(e,t)&&Ke(t,e))}function Ke(e,t){for(var n in e)if(!/^(component|left|right|top|bottom)$/.test(n)&&e[n]!==t[n])return!1;return!0}n.touchMouseIgnoreWait=500;var Se,xe,Ne=Ee.extend(Ie,De,{isTouching:!1,mouseIgnoreDepth:0,handleScrollProxy:null,bind:function(){var t=this;this.listenTo(e(document),{touchstart:this.handleTouchStart,touchcancel:this.handleTouchCancel,touchend:this.handleTouchEnd,mousedown:this.handleMouseDown,mousemove:this.handleMouseMove,mouseup:this.handleMouseUp,click:this.handleClick,selectstart:this.handleSelectStart,contextmenu:this.handleContextMenu}),window.addEventListener("touchmove",this.handleTouchMoveProxy=function(n){t.handleTouchMove(e.Event(n))},{passive:!1}),window.addEventListener("scroll",this.handleScrollProxy=function(n){t.handleScroll(e.Event(n))},!0)},unbind:function(){this.stopListeningTo(e(document)),window.removeEventListener("touchmove",this.handleTouchMoveProxy),window.removeEventListener("scroll",this.handleScrollProxy,!0)},handleTouchStart:function(e){this.stopTouch(e,!0),this.isTouching=!0,this.trigger("touchstart",e)},handleTouchMove:function(e){this.isTouching&&this.trigger("touchmove",e)},handleTouchCancel:function(e){this.isTouching&&(this.trigger("touchcancel",e),this.stopTouch(e))},handleTouchEnd:function(e){this.stopTouch(e)},handleMouseDown:function(e){this.shouldIgnoreMouse()||this.trigger("mousedown",e)},handleMouseMove:function(e){this.shouldIgnoreMouse()||this.trigger("mousemove",e)},handleMouseUp:function(e){this.shouldIgnoreMouse()||this.trigger("mouseup",e)},handleClick:function(e){this.shouldIgnoreMouse()||this.trigger("click",e)},handleSelectStart:function(e){this.trigger("selectstart",e)},handleContextMenu:function(e){this.trigger("contextmenu",e)},handleScroll:function(e){this.trigger("scroll",e)},stopTouch:function(e,t){this.isTouching&&(this.isTouching=!1,this.trigger("touchend",e),t||this.startTouchMouseIgnore())},startTouchMouseIgnore:function(){var e=this,t=n.touchMouseIgnoreWait;t&&(this.mouseIgnoreDepth++,setTimeout(function(){e.mouseIgnoreDepth--},t))},shouldIgnoreMouse:function(){return this.isTouching||Boolean(this.mouseIgnoreDepth)}});Se=null,xe=0,Ne.get=function(){return Se||(Se=new Ne).bind(),Se},Ne.needed=function(){Ne.get(),xe++},Ne.unneeded=function(){--xe||(Se.unbind(),Se=null)};var Ae=Ee.extend(Ie,{options:null,sourceEl:null,el:null,parentEl:null,top0:null,left0:null,y0:null,x0:null,topDelta:null,leftDelta:null,isFollowing:!1,isHidden:!1,isAnimating:!1,constructor:function(t,n){this.options=n=n||{},this.sourceEl=t,this.parentEl=n.parentEl?e(n.parentEl):t.parent()},start:function(t){this.isFollowing||(this.isFollowing=!0,this.y0=D(t),this.x0=b(t),this.topDelta=0,this.leftDelta=0,this.isHidden||this.updatePosition(),I(t)?this.listenTo(e(document),"touchmove",this.handleMove):this.listenTo(e(document),"mousemove",this.handleMove))},stop:function(t,n){var i=this,o=this.options.revertDuration;
1function r(){i.isAnimating=!1,i.removeElement(),i.top0=i.left0=null,n&&n()}this.isFollowing&&!this.isAnimating&&(this.isFollowing=!1,this.stopListeningTo(e(document)),t&&o&&!this.isHidden?(this.isAnimating=!0,this.el.animate({top:this.top0,left:this.left0},{duration:o,complete:r})):r())},getEl:function(){var e=this.el;return e||((e=this.el=this.sourceEl.clone().addClass(this.options.additionalClass||"").css({position:"absolute",visibility:"",display:this.isHidden?"none":"",margin:0,right:"auto",bottom:"auto",width:this.sourceEl.width(),height:this.sourceEl.height(),opacity:this.options.opacity||"",zIndex:this.options.zIndex})).addClass("fc-unselectable"),e.appendTo(this.parentEl)),e},removeElement:function(){this.el&&(this.el.remove(),this.el=null)},updatePosition:function(){var e,t;this.getEl(),null===this.top0&&(e=this.sourceEl.offset(),t=this.el.offsetParent().offset(),this.top0=e.top-t.top,this.left0=e.left-t.left),this.el.css({top:this.top0+this.topDelta,left:this.left0+this.leftDelta})},handleMove:function(e){this.topDelta=D(e)-this.y0,this.leftDelta=b(e)-this.x0,this.isHidden||this.updatePosition()},hide:function(){this.isHidden||(this.isHidden=!0,this.el&&this.el.hide())},show:function(){this.isHidden&&(this.isHidden=!1,this.updatePosition(),this.getEl().show())}}),Le=n.Grid=Ee.extend(Ie,{hasDayInteractions:!0,view:null,isRTL:null,start:null,end:null,el:null,elsByFill:null,eventTimeFormat:null,displayEventTime:null,displayEventEnd:null,minResizeDuration:null,largeUnit:null,dayClickListener:null,daySelectListener:null,segDragListener:null,segResizeListener:null,externalDragListener:null,constructor:function(e){this.view=e,this.isRTL=e.opt("isRTL"),this.elsByFill={}
1,this.dayClickListener=this.buildDayClickListener(),this.daySelectListener=this.buildDaySelectListener()},computeEventTimeFormat:function(){return this.view.opt("smallTimeFormat")},computeDisplayEventTime:function(){return!0},computeDisplayEventEnd:function(){return!0},setRange:function(e){this.start=e.start.clone(),this.end=e.end.clone(),this.rangeUpdated(),this.processRangeOptions()},rangeUpdated:function(){},processRangeOptions:function(){var e,t,n=this.view;this.eventTimeFormat=n.opt("eventTimeFormat")||n.opt("timeFormat")||this.computeEventTimeFormat(),null==(e=n.opt("displayEventTime"))&&(e=this.computeDisplayEventTime()),null==(t=n.opt("displayEventEnd"))&&(t=this.computeDisplayEventEnd()),this.displayEventTime=e,this.displayEventEnd=t},spanToSegs:function(e){},diffDates:function(e,t){return this.largeUnit?F(e,t,this.largeUnit):L(e,t)},hitsNeededDepth:0,hitsNeeded:function(){this.hitsNeededDepth++||this.prepareHits()},hitsNotNeeded:function(){this.hitsNeededDepth&&!--this.hitsNeededDepth&&this.releaseHits()},prepareHits:function(){},releaseHits:function(){},queryHit:function(e,t){},getSafeHitSpan:function(e){var t=this.getHitSpan(e);return W(t,this.view.activeRange)?t:null},getHitSpan:function(e){},getHitEl:function(e){},setElement:function(e){this.el=e,this.hasDayInteractions&&(O(e),this.bindDayHandler("touchstart",this.dayTouchStart),this.bindDayHandler("mousedown",this.dayMousedown)),this.bindSegHandlers(),this.bindGlobalHandlers()},bindDayHandler:function(t,n){var i=this;this.el.on(t,function(t){if(!e(t.target).is(i.segSelector+","+i.segSelector+" *,.fc-more,a[data-goto]"))return n.call(i,t)})},removeElement:function(){this.unbindGlobalHandlers(),this.clearDragListeners(),this.el.remove()},renderSkeleton:function(){},renderDates:function(){},unrenderDates:function(){},bindGlobalHandlers:function(){this.listenTo(e(document),{dragstart:this.externalDragStart,sortstart:this.externalDragStart})},unbindGlobalHandlers:function(){this.stopListeningTo(e(document))},dayMousedown:function(e){var t=this.view;Ne.get().shouldIgnoreMouse()||(this.dayClickListener.startInteraction(e),t.opt("selectable")&&this.daySelectListener.startInteraction(e,{distance:t.opt("selectMinDistance")}))},dayTouchStart:function(e){var t,n=this.view;n.isSelected||n.selectedEvent||(null==(t=n.opt("selectLongPressDelay"))&&(t=n.opt("longPressDelay")),this.dayClickListener.startInteraction(e),n.opt("selectable")&&this.daySelectListener.startInteraction(e,{delay:t}))},buildDayClickListener:function(){var e,t=this,n=this.view,i=new we(this,{scroll:n.opt("dragScroll"),interactionStart:function(){e=i.origHit},hitOver:function(t,n,i){n||(e=null)},hitOut:function(){e=null},interactionEnd:function(i,o){var r;!o&&e&&(r=t.getSafeHitSpan(e))&&n.triggerDayClick(r,t.getHitEl(e),i)}});return i.shouldCancelTouchScroll=!1,i.scrollAlwaysKills=!0,i},buildDaySelectListener:function(){var e,t=this,n=this.view;return new we(this,{scroll:n.opt("dragScroll"),interactionStart:function(){e=null},dragStart:function(){n.unselect()},hitOver:function(n,i,o){var r,s;o&&(r=t.getSafeHitSpan(o),s=t.getSafeHitSpan(n),(e=r&&s?t.computeSelection(r,s):null)?t.renderSelection(e):!1===e&&l())},hitOut:function(){e=null,t.unrenderSelection()},hitDone:function(){u()},interactionEnd:function(t,i){!i&&e&&n.reportSelection(e,t)}})},clearDragListeners:function(){this.dayClickListener.endInteraction(),this.daySelectListener.endInteraction(),this.segDragListener&&this.segDragListener.endInteraction(),this.segResizeListener&&this.segResizeListener.endInteraction(),this.externalDragListener&&this.externalDragListener.endInteraction()},renderEventLocationHelper:function(e,t){var n=this.fabricateHelperEvent(e,t);return this.renderHelper(n,t)},fabricateHelperEvent:function(e,t){var n=t?X(t.event):{};return n.start=e.start.clone(),n.end=e.end?e.end.clone():null,n.allDay=null,this.view.calendar.normalizeEventDates(n),n.className=(n.className||[]).concat("fc-helper"),t||(n.editable=!1),n},renderHelper:function(e,t){},unrenderHelper:function(){},renderSelection:function(e){this.renderHighlight(e)},unrenderSelection:function(){this.unrenderHighlight()},computeSelection:function(e,t){var n=this.computeSelectionSpan(e,t);return!(n&&!this.view.calendar.isSelectionSpanAllowed(n))&&n},computeSelectionSpan:function(e,t){var n=[e.start,e.end,t.start,t.end];return n.sort(re),{start:n[0].clone(),end:n[3].clone()}},renderHighlight:function(e){this.renderFill("highlight",this.spanToSegs(e))},unrenderHighlight:function(){this.unrenderFill("highlight")},highlightSegClasses:function(){return["fc-highlight"]},renderBusinessHours:function(){},unrenderBusinessHours:function(){},getNowIndicatorUnit:function(){},renderNowIndicator:function(e){},unrenderNowIndicator:function(){},renderFill:function(e,t){},unrenderFill:function(e){var t=this.elsByFill[e];t&&(t.remove(),delete this.elsByFill[e])},renderFillSegEls:function(t,n){var i,o=this,r=this[t+"SegEl"],s="",a=[];if(n.length){for(i=0;i<n.length;i++)s+=this.fillSegHtml(t,n[i]);e(s).each(function(t,i){var s=n[t],l=e(i);r&&(l=r.call(o,s,l)),l&&(l=e(l)).is(o.fillSegTag)&&(s.el=l,a.push(s))})}return a},fillSegTag:"div",fillSegHtml:function(e,t){var n=this[e+"SegClasses"],i=this[e+"SegCss"],o=n?n.call(this,t):[],r=ie(i?i.call(this,t):{});return"<"+this.fillSegTag+(o.length?' class="'+o.join(" ")+'"':"")+(r?' style="'+r+'"':"")+" />"},getDayClasses:function(e,t){var n,i=this.view,o=[];return z(e,i.activeRange)?(o.push("fc-"+N[e.day()]),1==i.currentRangeAs("months")&&e.month()!=i.currentRange.start.month()&&o.push("fc-other-month"),n=i.calendar.getNow(),e.isSame(n,"day")?(o.push("fc-today"),!0!==t&&o.push(i.highlightStateClass)):e<n?o.push("fc-past"):o.push("fc-future")):o.push("fc-disabled-day"),o}});function Fe(e){return{start:e.start.clone(),end:e.end?e.end.clone():null,allDay:e.allDay}}function Pe(e){var t=Be(e);return"background"===t||"inverse-background"===t}function Be(e){return ee((e.source||{}).rendering,e.rendering)}function Me(e,t){return e.start-t.start}Le.mixin({segSelector:".fc-event-container > *",mousedOverSeg:null,isDraggingSeg:!1,isResizingSeg:!1,isDraggingExter
1nal:!1,segs:null,renderEvents:function(e){var t,n=[],i=[];for(t=0;t<e.length;t++)(Pe(e[t])?n:i).push(e[t]);this.segs=[].concat(this.renderBgEvents(n),this.renderFgEvents(i))},renderBgEvents:function(e){var t=this.eventsToSegs(e);return this.renderBgSegs(t)||t},renderFgEvents:function(e){var t=this.eventsToSegs(e);return this.renderFgSegs(t)||t},unrenderEvents:function(){this.handleSegMouseout(),this.clearDragListeners(),this.unrenderFgSegs(),this.unrenderBgSegs(),this.segs=null},getEventSegs:function(){return this.segs||[]},renderFgSegs:function(e){},unrenderFgSegs:function(){},renderFgSegEls:function(t,n){var i,o=this.view,r="",s=[];if(t.length){for(i=0;i<t.length;i++)r+=this.fgSegHtml(t[i],n);e(r).each(function(n,i){var r=t[n],a=o.resolveEventEl(r.event,e(i));a&&(a.data("fc-seg",r),r.el=a,s.push(r))})}return s},fgSegHtml:function(e,t){},renderBgSegs:function(e){return this.renderFill("bgEvent",e)},unrenderBgSegs:function(){this.unrenderFill("bgEvent")},bgEventSegEl:function(e,t){return this.view.resolveEventEl(e.event,t)},bgEventSegClasses:function(e){var t=e.event,n=t.source||{};return["fc-bgevent"].concat(t.className,n.className||[])},bgEventSegCss:function(e){return{"background-color":this.getSegSkinCss(e)["background-color"]}},businessHoursSegClasses:function(e){return["fc-nonbusiness","fc-bgevent"]},buildBusinessHourSegs:function(e,t){return this.eventsToSegs(this.buildBusinessHourEvents(e,t))},buildBusinessHourEvents:function(t,n){var i,o=this.view.calendar;return null==n&&(n=o.options.businessHours),!(i=o.computeBusinessHourEvents(t,n)).length&&n&&(i=[e.extend({},at,{start:this.view.activeRange.end,end:this.view.activeRange.end,dow:null})]),i},bindSegHandlers:function(){this.bindSegHandlersToEl(this.el)},bindSegHandlersToEl:function(e){this.bindSegHandlerToEl(e,"touchstart",this.handleSegTouchStart),this.bindSegHandlerToEl(e,"mouseenter",this.handleSegMouseover),this.bindSegHandlerToEl(e,"mouseleave",this.handleSegMouseout),this.bindSegHandlerToEl(e,"mousedown",this.handleSegMousedown),this.bindSegHandlerToEl(e,"click",this.handleSegClick)},bindSegHandlerToEl:function(t,n,i){var o=this;t.on(n,this.segSelector,function(t){var n=e(this).data("fc-seg");if(n&&!o.isDraggingSeg&&!o.isResizingSeg)return i.call(o,n,t)})},handleSegClick:function(e,t){!1===this.view.publiclyTrigger("eventClick",e.el[0],e.event,t)&&t.preventDefault()},handleSegMouseover:function(e,t){Ne.get().shouldIgnoreMouse()||this.mousedOverSeg||(this.mousedOverSeg=e,this.view.isEventResizable(e.event)&&e.el.addClass("fc-allow-mouse-resize"),this.view.publiclyTrigger("eventMouseover",e.el[0],e.event,t))},handleSegMouseout:function(e,t){t=t||{},this.mousedOverSeg&&(e=e||this.mousedOverSeg,this.mousedOverSeg=null,this.view.isEventResizable(e.event)&&e.el.removeClass("fc-allow-mouse-resize"),this.view.publiclyTrigger("eventMouseout",e.el[0],e.event,t))},handleSegMousedown:function(e,t){!this.startSegResize(e,t,{distance:5})&&this.view.isEventDraggable(e.event)&&this.buildSegDragListener(e).startInteraction(t,{distance:5})},handleSegTouchStart:function(e,t){var n,i=this.view,o=e.event,r=i.isEventSelected(o),s=i.isEventDraggable(o),a=i.isEventResizable(o),l=!1;r&&a&&(l=this.startSegResize(e,t)),l||!s&&!a||(null==(n=i.opt("eventLongPressDelay"))&&(n=i.opt("longPressDelay")),(s?this.buildSegDragListener(e):this.buildSegSelectListener(e)).startInteraction(t,{delay:r?0:n}))},startSegResize:function(t,n,i){return!!e(n.target).is(".fc-resizer")&&(this.buildSegResizeListener(t,e(n.target).is(".fc-start-resizer")).startInteraction(n,i),!0)},buildSegDragListener:function(e){var t,n,i,o=this,r=this.view,s=e.el,a=e.event;if(this.segDragListener)return this.segDragListener;var c=this.segDragListener=new we(r,{scroll:r.opt("dragScroll"),subjectEl:s,subjectCenter:!0,interactionStart:function(i){e.component=o,t=!1,(n=new Ae(e.el,{additionalClass:"fc-dragging",parentEl:r.el,opacity:c.isTouch?null:r.opt("dragOpacity"),revertDuration:r.opt("dragRevertDuration"),zIndex:2})).hide(),n.start(i)},dragStart:function(n){c.isTouch&&!r.isEventSelected(a)&&r.selectEvent(a),t=!0,o.handleSegMouseout(e,n),o.segDragStart(e,n),r.hideEvent(a)},hitOver:function(t,s,u){var d,h,f;e.hit&&(u=e.hit),d=u.component.getSafeHitSpan(u),h=t.component.getSafeHitSpan(t),!(!d||!h)&&((i=o.computeEventDrop(d,h,a))&&o.isEventLocationAllowed(i,a))||(i=null,l()),i&&(f=r.renderDrag(i,e))?(f.addClass("fc-dragging"),c.isTouch||o.applyDragOpacity(f),n.hide()):n.show(),s&&(i=null)},hitOut:function(){r.unrenderDrag(),n.show(),i=null},hitDone:function(){u()},interactionEnd:function(l){delete e.component,n.stop(!i,function(){t&&(r.unrenderDrag(),o.segDragStop(e,l)),i?r.reportSegDrop(e,i,o.largeUnit,s,l):r.showEvent(a)}),o.segDragListener=null}});return c},buildSegSelectListener:function(e){var t=this,n=this.view,i=e.event;if(this.segDragListener)return this.segDragListener;var o=this.segDragListener=new _e({dragStart:function(e){o.isTouch&&!n.isEventSelected(i)&&n.selectEvent(i)},interactionEnd:function(e){t.segDragListener=null}});return o},segDragStart:function(e,t){this.isDraggingSeg=!0,this.view.publiclyTrigger("eventDragStart",e.el[0],e.event,t,{})},segDragStop:function(e,t){this.isDraggingSeg=!1,this.view.publiclyTrigger("eventDragStop",e.el[0],e.event,t,{})},computeEventDrop:function(e,t,n){var i,o,r=this.view.calendar,s=e.start,a=t.start;return s.hasTime()===a.hasTime()?(i=this.diffDates(a,s),n.allDay&&V(i)?(o={start:n.start.clone(),end:r.getEventEnd(n),allDay:!1}
1,r.normalizeEventTimes(o)):o=Fe(n),o.start.add(i),o.end&&o.end.add(i)):o={start:a.clone(),end:null,allDay:!a.hasTime()},o},applyDragOpacity:function(e){var t=this.view.opt("dragOpacity");null!=t&&e.css("opacity",t)},externalDragStart:function(t,n){var i,o,r=this.view;r.opt("droppable")&&(i=e((n?n.item:null)||t.target),o=r.opt("dropAccept"),(e.isFunction(o)?o.call(i[0],i):i.is(o))&&(this.isDraggingExternal||this.listenToExternalDrag(i,t,n)))},listenToExternalDrag:function(i,o,r){var s,a=this,c=this.view,d=function(i){var o,r,s,a,l=n.dataAttrPrefix;l&&(l+="-");(o=i.data(l+"event")||null)&&(o="object"==typeof o?e.extend({},o):{},null==(r=o.start)&&(r=o.time),s=o.duration,a=o.stick,delete o.start,delete o.time,delete o.duration,delete o.stick);null==r&&(r=i.data(l+"start"));null==r&&(r=i.data(l+"time"));null==s&&(s=i.data(l+"duration"));null==a&&(a=i.data(l+"stick"));return r=null!=r?t.duration(r):null,s=null!=s?t.duration(s):null,a=Boolean(a),{eventProps:o,startTime:r,duration:s,stick:a}}(i);(a.externalDragListener=new we(this,{interactionStart:function(){a.isDraggingExter
1nal=!0},hitOver:function(e){var t=e.component.getSafeHitSpan(e);!!t&&((s=a.computeExternalDrop(t,d))&&a.isExternalLocationAllowed(s,d.eventProps))||(s=null,l()),s&&a.renderDrag(s)},hitOut:function(){s=null},hitDone:function(){u(),a.unrenderDrag()},interactionEnd:function(e){s&&c.reportExternalDrop(d,s,i,e,r),a.isDraggingExternal=!1,a.externalDragListener=null}})).startDrag(o)},computeExternalDrop:function(e,t){var n={start:this.view.calendar.applyTimezone(e.start),end:null};return t.startTime&&!n.start.hasTime()&&n.start.time(t.startTime),t.duration&&(n.end=n.start.clone().add(t.duration)),n},renderDrag:function(e,t){},unrenderDrag:function(){},buildSegResizeListener:function(e,t){var n,i,o=this,r=this.view,s=r.calendar,a=e.el,c=e.event,d=s.getEventEnd(c);return this.segResizeListener=new we(this,{scroll:r.opt("dragScroll"),subjectEl:a,interactionStart:function(){n=!1},dragStart:function(t){n=!0,o.handleSegMouseout(e,t),o.segResizeStart(e,t)},hitOver:function(n,s,a){var u=o.getSafeHitSpan(a),h=o.getSafeHitSpan(n);!(!u||!h)&&((i=t?o.computeEventStartResize(u,h,c):o.computeEventEndResize(u,h,c))&&o.isEventLocationAllowed(i,c))?i.start.isSame(c.start.clone().stripZone())&&i.end.isSame(d.clone().stripZone())&&(i=null):(i=null,l()),i&&(r.hideEvent(c),o.renderEventResize(i,e))},hitOut:function(){i=null,r.showEvent(c)},hitDone:function(){o.unrenderEventResize(),u()},interactionEnd:function(t){n&&o.segResizeStop(e,t),i?r.reportSegResize(e,i,o.largeUnit,a,t):r.showEvent(c),o.segResizeListener=null}})},segResizeStart:function(e,t){this.isResizingSeg=!0,this.view.publiclyTrigger("eventResizeStart",e.el[0],e.event,t,{})},segResizeStop:function(e,t){this.isResizingSeg=!1,this.view.publiclyTrigger("eventResizeStop",e.el[0],e.event,t,{})},computeEventStartResize:function(e,t,n){return this.computeEventResize("start",e,t,n)},computeEventEndResize:function(e,t,n){return this.computeEventResize("end",e,t,n)},computeEventResize:function(e,t,n,i){var o,r,s=this.view.calendar,a=this.diffDates(n[e],t[e]);return(o={start:i.start.clone(),end:s.getEventEnd(i),allDay:i.allDay}).allDay&&V(a)&&(o.allDay=!1,s.normalizeEventTimes(o)),o[e].add(a),o.start.isBefore(o.end)||(r=this.minResizeDuration||(i.allDay?s.defaultAllDayEventDuration:s.defaultTimedEventDuration),"start"==e?o.start=o.end.clone().subtract(r):o.end=o.start.clone().add(r)),o},renderEventResize:function(e,t){},unrenderEventResize:function(){},getEventTimeText:function(e,t,n){return null==t&&(t=this.eventTimeFormat),null==n&&(n=this.displayEventEnd),this.displayEventTime&&e.start.hasTime()?n&&e.end?this.view.formatRange(e,t):e.start.format(t):""},getSegClasses:function(e,t,n){var i=this.view,o=["fc-event",e.isStart?"fc-start":"fc-not-start",e.isEnd?"fc-end":"fc-not-end"].concat(this.getSegCustomClasses(e));return t&&o.push("fc-draggable"),n&&o.push("fc-resizable"),i.isEventSelected(e.event)&&o.push("fc-selected"),o},getSegCustomClasses:function(e){var t=e.event;return[].concat(t.className,t.source?t.source.className:[])},getSegSkinCss:function(e){return{"background-color":this.getSegBackgroundColor(e),"border-color":this.getSegBorderColor(e),color:this.getSegTextColor(e)}},getSegBackgroundColor:function(e){return e.event.backgroundColor||e.event.color||this.getSegDefaultBackgroundColor(e)},getSegDefaultBackgroundColor:function(e){var t=e.event.source||{};return t.backgroundColor||t.color||this.view.opt("eventBackgroundColor")||this.view.opt("eventColor")},getSegBorderColor:function(e){return e.event.borderColor||e.event.color||this.getSegDefaultBorderColor(e)},getSegDefaultBorderColor:function(e){var t=e.event.source||{};return t.borderColor||t.color||this.view.opt("eventBorderColor")||this.view.opt("eventColor")},getSegTextColor:function(e){return e.event.textColor||this.getSegDefaultTextColor(e)},getSegDefaultTextColor:function(e){return(e.event.source||{}).textColor||this.view.opt("eventTextColor")},isEventLocationAllowed:function(e,t){if(this.isEventLocationInRange(e)){var n,i=this.view.calendar,o=this.eventToSpans(e);if(o.length){for(n=0;n<o.length;n++)if(!i.isEventSpanAllowed(o[n],t))return!1;return!0}}return!1},isExternalLocationAllowed:function(e,t){if(this.isEventLocationInRange(e)){var n,i=this.view.calendar,o=this.eventToSpans(e);if(o.length){for(n=0;n<o.length;n++)if(!i.isExternalSpanAllowed(o[n],e,t))return!1;return!0}}return!1},isEventLocationInRange:function(e){return W(this.eventToRawRange(e),this.view.validRange)},eventToSegs:function(e){return this.eventsToSegs([e])},eventToSpans:function(e){var t=this.eventToRange(e);return t?this.eventRangeToSpans(t,e):[]},eventsToSegs:function(t,n){var i=this,o=function(e){var t,n,i={};for(t=0;t<e.length;t++)n=e[t],(i[n._id]||(i[n._id]=[])).push(n);return i}(t),r=[];return e.each(o,function(e,t){var o,s,a=[],l=[];for(s=0;s<t.length;s++)(o=i.eventToRange(t[s]))&&(l.push(o),a.push(t[s]));if("inverse-background"===Be(t[0]))for(l=i.invertRanges(l),s=0;s<l.length;
1s++)r.push.apply(r,i.eventRangeToSegs(l[s],t[0],n));else for(s=0;s<l.length;s++)r.push.apply(r,i.eventRangeToSegs(l[s],a[s],n))}),r},eventToRange:function(e){return this.refineRawEventRange(this.eventToRawRange(e))},refineRawEventRange:function(e){var t=this.view,n=t.calendar,i=x(e,t.activeRange);if(i)return n.localizeMoment(i.start),n.localizeMoment(i.end),i},eventToRawRange:function(e){var t=this.view.calendar;return{start:e.start.clone().stripZone(),end:(e.end?e.end.clone():t.getDefaultEventEnd(null!=e.allDay?e.allDay:!e.start.hasTime(),e.start)).stripZone()}},eventRangeToSegs:function(e,t,n){var i,o=this.eventRangeToSpans(e,t),r=[];for(i=0;i<o.length;i++)r.push.apply(r,this.eventSpanToSegs(o[i],t,n));return r},eventRangeToSpans:function(t,n){return[e.extend({},t)]},eventSpanToSegs:function(e,t,n){var i,o,r=n?n(e):this.spanToSegs(e);for(i=0;i<r.length;i++)o=r[i],e.isStart||(o.isStart=!1),e.isEnd||(o.isEnd=!1),o.event=t,o.eventStartMS=+e.start,o.eventDurationMS=e.end-e.start;return r},invertRanges:function(e){var t,n,i=this.view,o=i.activeRange.start.clone(),r=i.activeRange.end.clone(),s=[],a=o;for(e.sort(Me),t=0;t<e.length;t++)(n=e[t]).start>a&&s.push({start:a,end:n.start}),a=n.end;return a<r&&s.push({start:a,end:r}),s},sortEventSegs:function(e){e.sort(ae(this,"compareEventSegs"))},compareEventSegs:function(e,t){return e.eventStartMS-t.eventStartMS||t.eventDurationMS-e.eventDurationMS||t.event.allDay-e.event.allDay||k(e.event,t.event,this.view.eventOrderSpecs)}}),n.pluckEventDateProps=Fe,n.isBgEvent=Pe,n.dataAttrPrefix="";var $e=n.DayTableMixin={breakOnWeeks:!1,dayDates:null,dayIndices:null,daysPerRow:null,rowCnt:null,colCnt:null,colHeadFormat:null,updateDayTable:function(){for(var e,t,n,i=this.view,o=this.start.clone(),r=-1,s=[],a=[];o.isBefore(this.end);)i.isHiddenDay(o)?s.push(r+.5):(r++,s.push(r),a.push(o.clone())),o.add(1,"days");if(this.breakOnWeeks){for(t=a[0].day(),e=1;e<a.length&&a[e].day()!=t;e++);n=Math.ceil(a.length/e)}else n=1,e=a.length;this.dayDates=a,this.dayIndices=s,this.daysPerRow=e,this.rowCnt=n,this.updateDayTableCols()},updateDayTableCols:function(){this.colCnt=this.computeColCnt(),this.colHeadFormat=this.view.opt("columnFormat")||this.computeColHeadFormat()},computeColCnt:function(){return this.daysPerRow},getCellDate:function(e,t){return this.dayDates[this.getCellDayIndex(e,t)].clone()},getCellRange:function(e,t){var n=this.getCellDate(e,t);return{start:n,end:n.clone().add(1,"days")}},getCellDayIndex:function(e,t){return e*this.daysPerRow+this.getColDayIndex(t)},getColDayIndex:function(e){return this.isRTL?this.colCnt-1-e:e},getDateDayIndex:function(e){var t=this.dayIndices,n=e.diff(this.start,"days");return n<0?t[0]-1:n>=t.length?t[t.length-1]+1:t[n]},computeColHeadFormat:function(){return this.rowCnt>1||this.colCnt>10?"ddd":this.colCnt>1?this.view.opt("dayOfMonthFormat"):"dddd"},sliceRangeByRow:function(e){var t,n,i,o,r,s=this.daysPerRow,a=this.view.computeDayRange(e),l=this.getDateDayIndex(a.start),u=this.getDateDayIndex(a.end.clone().subtract(1,"days")),c=[];for(t=0;t<this.rowCnt;t++)i=(n=t*s)+s-1,o=Math.max(l,n),r=Math.min(u,i),(o=Math.ceil(o))<=(r=Math.floor(r))&&c.push({row:t,firstRowDayIndex:o-n,lastRowDayIndex:r-n,isStart:o===l,isEnd:r===u});return c},sliceRangeByDay:function(e){var t,n,i,o,r,s,a=this.daysPerRow,l=this.view.computeDayRange(e),u=this.getDateDayIndex(l.start),c=this.getDateDayIndex(l.end.clone().subtract(1,"days")),d=[];for(t=0;t<this.rowCnt;t++)for(i=(n=t*a)+a-1,o=n;o<=i;o++)r=Math.max(u,o),s=Math.min(c,o),(r=Math.ceil(r))<=(s=Math.floor(s))&&d.push({row:t,firstRowDayIndex:r-n,lastRowDayIndex:s-n,isStart:r===u,isEnd:s===c});return d},renderHeadHtml:function(){return'<div class="fc-row '+this.view.widgetHeaderClass+'"><table><thead>'+this.renderHeadTrHtml()+"</thead></table></div>"},renderHeadIntroHtml:function(){return this.renderIntroHtml()},renderHeadTrHtml:function(){return"<tr>"+(this.isRTL?"":this.renderHeadIntroHtml())+this.renderHeadDateCellsHtml()+(this.isRTL?this.renderHeadIntroHtml():"")+"</tr>"},renderHeadDateCellsHtml:function(){var e,t,n=[];for(e=0;e<this.colCnt;e++)t=this.getCellDate(0,e),n.push(this.renderHeadDateCellHtml(t));return n.join("")},renderHeadDateCellHtml:function(e,t,n){var i=this.view,o=z(e,i.activeRange),r=["fc-day-header",i.widgetHeaderClass],s=te(e.format(this.colHeadFormat));return 1===this.rowCnt?r=r.concat(this.getDayClasses(e,!0)):r.push("fc-"+N[e.day()]),'<th class="'+r.join(" ")+'"'+(1===(o&&this.rowCnt)?' data-date="'+e.format("YYYY-MM-DD")+'"':"")+(t>1?' colspan="'+t+'"':"")+(n?" "+n:"")+">"+(o?i.buildGotoAnchorHtml({date:e,forceOff:this.rowCnt>1||1===this.colCnt},s):s)+"</th>"},renderBgTrHtml:function(e){return"<tr>"+(this.isRTL?"":this.renderBgIntroHtml(e))+this.renderBgCellsHtml(e)+(this.isRTL?this.renderBgIntroHtml(e):"")+"</tr>"},renderBgIntroHtml:function(e){return this.renderIntroHtml()},renderBgCellsHtml:function(e){var t,n,i=[];for(t=0;t<this.colCnt;t++)n=this.getCellDate(e,t),i.push(this.renderBgCellHtml(n));return i.join("")},renderBgCellHtml:function(e,t){var n=this.view,i=z(e,n.activeRange),o=this.getDayClasses(e);return o.unshift("fc-day",n.widgetContentClass),'<td class="'+o.join(" ")+'"'+(i?' data-date="'+e.format("YYYY-MM-DD")+'"':"")+(t?" "+t:"")+"></td>"},renderIntroHtml:function(){},bookendCells:function(e){var t=this.renderIntroHtml();t&&(this.isRTL?e.append(t):e.prepend(t))}},He=n.DayGrid=Le.extend($e,{numbersVisible:!1,bottomCoordPadding:0,rowEls:null,cellEls:null,helperEls:null,rowCoordCache:null,colCoordCache:null,renderDates:function(e){var t,n,i=this.view,o=this.rowCnt,r=this.colCnt,s="";for(t=0;t<o;t++)s+=this.renderDayRowHtml(t,e);for(this.el.html(s),this.rowEls=this.el.find(".fc-row"),this.cellEls=this.el.find(".fc-day, .fc-disabled-day"),this.rowCoordCache=new Re({els:this.rowEls,isVertical:!0}),this.colCoordCache=new Re({els:this.cellEls.slice(0,this.colCnt),isHorizontal:!0}),t=0;t<o;t++)for(n=0;n<r;n++)i.publiclyTrigger("dayRender",null,this.getCellDate(t,n),this.getCellEl(t,n))},unrenderDates:function(){this.removeSegPopover()},renderBusinessHours:function(){var e=this.buildBusinessHourSegs(!0);this.renderFill("businessHours",e,"bgevent")},unrenderBusinessHours:function(){this.unrenderFill("businessHours")},renderDayRowHtml:function(e,t){var n=["fc-row","fc-week",this.view.widgetContentClass];return t&&n.push("fc-rigid"),'<div class="'+n.join(" ")+'"><div class="fc-bg"><table>'+this.renderBgTrHtml(e)+'</table></div><div class="fc-content-skeleton"><table>'+(this.numbersVisible?"<thead>"+this.renderNumberTrHtml(e)+"</thead>":"")+"</table></div></div>"},renderNumberTrHtml:function(e){return"<tr>"+(this.isRTL?"":this.renderNumberIntroHtml(e))+this.renderNumberCellsHtml(e)+(this.isRTL?this.renderNumberIntroHtml(e):"")+"</tr>"},renderNumberIntroHtml:function(e){return this.renderIntroHtml()},renderNumberCellsHtml:function(e){var t,n,i=[];for(t=0;t<this.colCnt;t++)n=this.getCellDate(e,t),i.push(this.renderNumberCellHtml(n));return i.join("")},renderNumberCellHtml:function(e){var t,n,i=this.view,o="",r=z(e,i.activeRange),s=i.dayNumbersVisible&&r;return s||i.cellWeekNumbersVisible?((t=this.getDayClasses(e)).unshift("fc-day-top"),i.cellWeekNumbersVisible&&(n="ISO"===e._locale._fullCalendar_weekCalc?1:e._locale.firstDayOfWeek()),o+='<td class="'+t.join(" ")+'"'+(r?' data-date="'+e.format()+'"':"")+">",i.cellWeekNumbersVisible&&e.day()==n&&(o+=i.buildGotoAnchorHtml({date:e,type:"week"},{class:"fc-week-number"},e.format("w"))),s&&(o+=i.buildGotoAnchorHtml(e,{class:"fc-day-number"},e.date())),o+="</td>"):"<td/>"},computeEventTimeFormat:function(){return this.view.opt("extraSmallTimeFormat")},computeDisplayEventEnd:function(){return 1==this.colCnt},rangeUpdated:function(){this.updateDayTable()},spanToSegs:function(e){var t,n,i=this.sliceRangeByRow(e);for(t=0;t<i.length;t++)n=i[t],this.isRTL?(n.leftCol=this.daysPerRow-1-n.lastRowDayIndex,n.rightCol=this.daysPerRow-1-n.firstRowDayIndex):(n.leftCol=n.firstRowDayIndex,n.rightCol=n.lastRowDayIndex);return i},prepareHits:function(){this.colCoordCache.build(),this.rowCoordCache.build(),this.rowCoordCache.bottoms[this.rowCnt-1]+=this.bottomCoordPadding},releaseHits:function(){this.colCoordCache.clear(),this.rowCoordCache.clear()},queryHit:function(e,t){if(this.colCoordCache.isLeftInBounds(e)&&this.rowCoordCache.isTopInBounds(t)){var n=this.colCoordCache.getHorizontalIndex(e),i=this.rowCoordCache.getVerticalIndex(t);if(null!=i&&null!=n)return this.getCellHit(i,n)}},getHitSpan:function(e){return this.getCellRange(e.row,e.col)},getHitEl:function(e){return this.getCellEl(e.row,e.col)},getCellHit:function(e,t){return{row:e,col:t,component:this,left:this.colCoordCache.getLeftOffset(t),right:this.colCoordCache.getRightOffset(t),top:this.rowCoordCache.getTopOffset(e),bottom:this.rowCoordCache.getBottomOffset(e)}},getCellEl:function(e,t){return this.cellEls.eq(e*this.colCnt+t)},renderDrag:function(e,t){var n,i=this.eventToSpans(e);for(n=0;n<i.length;n++)this.renderHighlight(i[n]);if(t&&t.component!==this)return this.renderEventLocationHelper(e,t)},unrenderDrag:function(){this.unrenderHighlight(),this.unrenderHelper()},renderEventResize:function(e,t){var n,i=this.eventToSpans(e);for(n=0;n<i.length;n++)this.renderHighlight(i[n]);return this.renderEventLocationHelper(e,t)},unrenderEventResize:function(){this.unrenderHighlight(),this.unrenderHelper()},renderHelper:function(t,n){var i,o=[],r=this.eventToSegs(t);return r=this.renderFgSegEls(r),i=this.renderSegRows(r),this.rowEls.each(function(t,r){var s,a=e(r),l=e('<div class="fc-helper-skeleton"><table/></div>');s=n&&n.row===t?n.el.position().top:a.find(".fc-content-skeleton tbody").position().top,l.css("top",s).find("table").append(i[t].tbodyEl),a.append(l),o.push(l[0])}),this.helperEls=e(o)},unrenderHelper:function(){this.helperEls&&(this.helperEls.remove(),this.helperEls=null)},fillSegTag:"td",renderFill:function(t,n,i){var o,r,s,a=[];for(n=this.renderFillSegEls(t,n),o=0;o<n.length;o++)r=n[o],s=this.renderFillRow(t,r,i),this.rowEls.eq(r.row).append(s),a.push(s[0]);
1return this.elsByFill[t]=e(a),n},renderFillRow:function(t,n,i){var o,r,s=this.colCnt,a=n.leftCol,l=n.rightCol+1;return i=i||t.toLowerCase(),r=(o=e('<div class="fc-'+i+'-skeleton"><table><tr/></table></div>')).find("tr"),a>0&&r.append('<td colspan="'+a+'"/>'),r.append(n.el.attr("colspan",l-a)),l<s&&r.append('<td colspan="'+(s-l)+'"/>'),this.bookendCells(r),o}});function je(e,t){var n,i;for(n=0;n<t.length;n++)if((i=t[n]).leftCol<=e.rightCol&&i.rightCol>=e.leftCol)return!0;return!1}function qe(e,t){return e.leftCol-t.leftCol}He.mixin({rowStructs:null,unrenderEvents:function(){this.removeSegPopover(),Le.prototype.unrenderEvents.apply(this,arguments)},getEventSegs:function(){return Le.prototype.getEventSegs.call(this).concat(this.popoverSegs||[])},renderBgSegs:function(t){var n=e.grep(t,function(e){return e.event.allDay});return Le.prototype.renderBgSegs.call(this,n)},renderFgSegs:function(t){var n;return t=this.renderFgSegEls(t),n=this.rowStructs=this.renderSegRows(t),this.rowEls.each(function(t,i){e(i).find(".fc-content-skeleton > table").append(n[t].tbodyEl)}),t},unrenderFgSegs:function(){for(var e,t=this.rowStructs||[];e=t.pop();)e.tbodyEl.remove();this.rowStructs=null},renderSegRows:function(e){var t,n,i=[];for(t=this.groupSegRows(e),n=0;n<t.length;n++)i.push(this.renderSegRow(n,t[n]));return i},fgSegHtml:function(e,t){var n,i,o=this.view,r=e.event,s=o.isEventDraggable(r),a=!t&&r.allDay&&e.isStart&&o.isEventResizableFromStart(r),l=!t&&r.allDay&&e.isEnd&&o.isEventResizableFromEnd(r),u=this.getSegClasses(e,s,a||l),c=ie(this.getSegSkinCss(e)),d="";return u.unshift("fc-day-grid-event","fc-h-event"),e.isStart&&(n=this.getEventTimeText(r))&&(d='<span class="fc-time">'+te(n)+"</span>"),i='<span class="fc-title">'+(te(r.title||"")||" ")+"</span>",'<a class="'+u.join(" ")+'"'+(r.url?' href="'+te(r.url)+'"':"")+(c?' style="'+c+'"':"")+'><div class="fc-content">'+(this.isRTL?i+" "+d:d+" "+i)+"</div>"+(a?'<div class="fc-resizer fc-start-resizer" />':"")+(l?'<div class="fc-resizer fc-end-resizer" />':"")+"</a>"},renderSegRow:function(t,n){var i,o,r,s,a,l,u,c=this.colCnt,d=this.buildSegLevels(n),h=Math.max(1,d.length),f=e("<tbody/>"),p=[],g=[],m=[];function v(t){for(;r<t;)(u=(m[i-1]||[])[r])?u.attr("rowspan",parseInt(u.attr("rowspan")||1,10)+1):(u=e("<td/>"),s.append(u)),g[i][r]=u,m[i][r]=u,r++}for(i=0;i<h;i++){if(o=d[i],r=0,s=e("<tr/>"),p.push([]),g.push([]),m.push([]),o)for(a=0;a<o.length;a++){for(v((l=o[a]).leftCol),u=e('<td class="fc-event-container"/>').append(l.el),l.leftCol!=l.rightCol?u.attr("colspan",l.rightCol-l.leftCol+1):m[i][r]=u;r<=l.rightCol;)g[i][r]=u,p[i][r]=l,r++;s.append(u)}v(c),this.bookendCells(s),f.append(s)}return{row:t,tbodyEl:f,cellMatrix:g,segMatrix:p,segLevels:d,segs:n}},buildSegLevels:function(e){var t,n,i,o=[];for(this.sortEventSegs(e),t=0;t<e.length;t++){for(n=e[t],i=0;i<o.length&&je(n,o[i]);i++);n.level=i,(o[i]||(o[i]=[])).push(n)}for(i=0;i<o.length;i++)o[i].sort(qe);return o},groupSegRows:function(e){var t,n=[];for(t=0;t<this.rowCnt;t++)n.push([]);for(t=0;t<e.length;t++)n[e[t].row].push(e[t]);return n}}),He.mixin({segPopover:null,popoverSegs:null,removeSegPopover:function(){this.segPopover&&this.segPopover.hide()},limitRows:function(e){var t,n,i=this.rowStructs||[];for(t=0;t<i.length;t++)this.unlimitRow(t),!1!==(n=!!e&&("number"==typeof e?e:this.computeRowLevelLimit(t)))&&this.limitRow(t,n)},computeRowLevelLimit:function(t){var n,i,o,r=this.rowEls.eq(t).height(),s=this.rowStructs[t].tbodyEl.children();function a(t,n){o=Math.max(o,e(n).outerHeight())}for(n=0;n<s.length;n++)if(i=s.eq(n).removeClass("fc-limited"),o=0,i.find("> td > :first-child").each(a),i.position().top+o>r)return n;return!1},limitRow:function(t,n){var i,o,r,s,a,l,u,c,d,h,f,p,g,m,v,E=this,T=this.rowStructs[t],y=[],C=0;function b(i){for(;C<i;)(l=E.getCellSegs(t,C,n)).length&&(d=o[n-1][C],v=E.renderMoreLink(t,C,l),m=e("<div/>").append(v),d.append(m),y.push(m[0])),C++}if(n&&n<T.segLevels.length){for(i=T.segLevels[n-1],o=T.cellMatrix,r=T.tbodyEl.children().slice(n).addClass("fc-limited").get(),s=0;s<i.length;s++){for(b((a=i[s]).leftCol),c=[],u=0;C<=a.rightCol;)l=this.getCellSegs(t,C,n),c.push(l),u+=l.length,C++;if(u){for(h=(d=o[n-1][a.leftCol]).attr("rowspan")||1,f=[],p=0;p<c.length;p++)g=e('<td class="fc-more-cell"/>').attr("rowspan",h),l=c[p],v=this.renderMoreLink(t,a.leftCol+p,[a].concat(l)),m=e("
1<div/>").append(v),g.append(m),f.push(g[0]),y.push(g[0]);d.addClass("fc-limited").after(e(f)),r.push(d[0])}}b(this.colCnt),T.moreEls=e(y),T.limitedEls=e(r)}},unlimitRow:function(e){var t=this.rowStructs[e];t.moreEls&&(t.moreEls.remove(),t.moreEls=null),t.limitedEls&&(t.limitedEls.removeClass("fc-limited"),t.limitedEls=null)},renderMoreLink:function(t,n,i){var o=this,r=this.view;return e('<a class="fc-more"/>').text(this.getMoreLinkText(i.length)).on("click",function(s){var a=r.opt("eventLimitClick"),l=o.getCellDate(t,n),u=e(this),c=o.getCellEl(t,n),d=o.getCellSegs(t,n),h=o.resliceDaySegs(d,l),f=o.resliceDaySegs(i,l);"function"==typeof a&&(a=r.publiclyTrigger("eventLimitClick",null,{date:l,dayEl:c,moreEl:u,segs:h,hiddenSegs:f},s)),"popover"===a?o.showSegPopover(t,n,u,h):"string"==typeof a&&r.calendar.zoomTo(l,a)})},showSegPopover:function(e,t,n,i){var o,r,s=this,a=this.view,l=n.parent();o=1==this.rowCnt?a.el:this.rowEls.eq(e),r={className:"fc-more-popover",content:this.renderSegPopoverContent(e,t,i),parentEl:this.view.el,top:o.offset().top,autoHide:!0,viewportConstrain:a.opt("popoverViewportConstrain"),hide:function(){if(s.popoverSegs)for(var e,t=0;t<s.popoverSegs.length;++t)e=s.popoverSegs[t],a.publiclyTrigger("eventDestroy",e.event,e.event,e.el);s.segPopover.removeElement(),s.segPopover=null,s.popoverSegs=null}},this.isRTL?r.right=l.offset().left+l.outerWidth()+1:r.left=l.offset().left-1,this.segPopover=new Oe(r),this.segPopover.show(),this.bindSegHandlersToEl(this.segPopover.el)},renderSegPopoverContent:function(t,n,i){var o,r=this.view,s=r.opt("theme"),a=this.getCellDate(t,n).format(r.opt("dayPopoverFormat")),l=e('<div class="fc-header '+r.widgetHeaderClass+'"><span class="fc-close '+(s?"ui-icon ui-icon-closethick":"fc-icon fc-icon-x")+'"></span><span class="fc-title">'+te(a)+'</span><div class="fc-clear"/></div><div class="fc-body '+r.widgetContentClass+'"><div class="fc-event-container"></div></div>'),u=l.find(".fc-event-container");for(i=this.renderFgSegEls(i,!0),this.popoverSegs=i,o=0;o<i.length;o++)this.hitsNeeded(),i[o].hit=this.getCellHit(t,n),this.hitsNotNeeded(),u.append(i[o].el);return l},resliceDaySegs:function(t,n){var i=e.map(t,function(e){return e.event}),o=n.clone(),r={start:o,end:o.clone().add(1,"days")};return t=this.eventsToSegs(i,function(e){var t=x(e,r);return t?[t]:[]}),this.sortEventSegs(t),t},getMoreLinkText:function(e){var t=this.view.opt("eventLimitText");return"function"==typeof t?t(e):"+"+e+" "+t},getCellSegs:function(e,t,n){for(var i,o=this.rowStructs[e].segMatrix,r=n||0,s=[];r<o.length;)(i=o[r][t])&&s.push(i),r++;return s}});var ze=n.TimeGrid=Le.extend($e,{slotDuration:null,snapDuration:null,snapsPerSlot:null,labelFormat:null,labelInterval:null,colEls:null,slatContainerEl:null,slatEls:null,nowIndicatorEls:null,colCoordCache:null,slatCoordCache:null,constructor:function(){Le.apply(this,arguments),this.processOptions()},renderDates:function(){this.el.html(this.renderHtml()),this.colEls=this.el.find(".fc-day, .fc-disabled-day"),this.slatContainerEl=this.el.find(".fc-slats"),this.slatEls=this.slatContainerEl.find("tr"),this.colCoordCache=new Re({els:this.colEls,isHorizontal:!0}),this.slatCoordCache=new Re({els:this.slatEls,isVertical:!0}),this.renderContentSkeleton()},renderHtml:function(){return'<div class="fc-bg"><table>'+this.renderBgTrHtml(0)+'</table></div><div class="fc-slats"><table>'+this.renderSlatRowHtml()+"</table></div>"},renderSlatRowHtml:function(){for(var e,n,i,o=this.view,r=this.isRTL,s="",a=t.duration(+this.view.minTime);a<this.view.maxTime;)e=this.start.clone().time(a),n=se($(a,this.labelInterval)),i='<td class="fc-axis fc-time '+o.widgetContentClass+'" '+o.axisStyleAttr()+">"+(n?"<span>"+te(e.format(this.labelFormat))+"</span>":"")+"</td>",s+='<tr data-time="'+e.format("HH:mm:ss")+'"'+(n?"":' class="fc-minor"')+">"+(r?"":i)+'<td class="'+o.widgetContentClass+'"/>'+(r?i:"")+"</tr>",a.add(this.slotDuration);return s},processOptions:function(){var n,i=this.view,o=i.opt("slotDuration"),r=i.opt("snapDuration");o=t.duration(o),r=r?t.duration(r):o,this.slotDuration=o,this.snapDuration=r,this.snapsPerSlot=o/r,this.minResizeDuration=r,n=i.opt("slotLabelFormat"),e.isArray(n)&&(n=n[n.length-1]),this.labelFormat=n||i.opt("smallTimeFormat"),n=i.opt("slotLabelInterval"),this.labelInterval=n?t.duration(n):this.computeLabelInterval(o)},computeLabelInterval:function(e){var n,i,o;for(n=gt.length-1;n>=0;n--)if(se(o=$(i=t.duration(gt[n]),e))&&o>1)return i;return t.duration(e)},computeEventTimeFormat:function(){return this.view.opt("noMeridiemTimeFormat")},computeDisplayEventEnd:function(){return!0}
1,prepareHits:function(){this.colCoordCache.build(),this.slatCoordCache.build()},releaseHits:function(){this.colCoordCache.clear()},queryHit:function(e,t){var n=this.snapsPerSlot,i=this.colCoordCache,o=this.slatCoordCache;if(i.isLeftInBounds(e)&&o.isTopInBounds(t)){var r=i.getHorizontalIndex(e),s=o.getVerticalIndex(t);if(null!=r&&null!=s){var a=o.getTopOffset(s),l=o.getHeight(s),u=(t-a)/l,c=Math.floor(u*n),d=a+c/n*l,h=a+(c+1)/n*l;return{col:r,snap:s*n+c,component:this,left:i.getLeftOffset(r),right:i.getRightOffset(r),top:d,bottom:h}}}},getHitSpan:function(e){var t=this.getCellDate(0,e.col),n=this.computeSnapTime(e.snap);return t.time(n),{start:t,end:t.clone().add(this.snapDuration)}},getHitEl:function(e){return this.colEls.eq(e.col)},rangeUpdated:function(){this.updateDayTable()},computeSnapTime:function(e){return t.duration(this.view.minTime+this.snapDuration*e)},spanToSegs:function(e){var t,n=this.sliceRangeByTimes(e);for(t=0;t<n.length;t++)this.isRTL?n[t].col=this.daysPerRow-1-n[t].dayIndex:n[t].col=n[t].dayIndex;return n},sliceRangeByTimes:function(e){var t,n,i,o=[];for(n=0;n<this.daysPerRow;n++)(t=x(e,{start:(i=this.dayDates[n].clone().time(0)).clone().add(this.view.minTime),end:i.clone().add(this.view.maxTime)}))&&(t.dayIndex=n,o.push(t));return o},updateSize:function(e){this.slatCoordCache.build(),e&&this.updateSegVerticals([].concat(this.fgSegs||[],this.bgSegs||[],this.businessSegs||[]))}
1,getTotalSlatHeight:function(){return this.slatContainerEl.outerHeight()},computeDateTop:function(e,n){return this.computeTimeTop(t.duration(e-n.clone().stripTime()))},computeTimeTop:function(e){var t,n,i=this.slatEls.length,o=(e-this.view.minTime)/this.slotDuration;return o=Math.max(0,o),o=Math.min(i,o),t=Math.floor(o),n=o-(t=Math.min(t,i-1)),this.slatCoordCache.getTopPosition(t)+this.slatCoordCache.getHeight(t)*n},renderDrag:function(e,t){var n,i;if(t)return this.renderEventLocationHelper(e,t);for(n=this.eventToSpans(e),i=0;i<n.length;i++)this.renderHighlight(n[i])},unrenderDrag:function(){this.unrenderHelper(),this.unrenderHighlight()},renderEventResize:function(e,t){return this.renderEventLocationHelper(e,t)},unrenderEventResize:function(){this.unrenderHelper()},renderHelper:function(e,t){return this.renderHelperSegs(this.eventToSegs(e),t)},unrenderHelper:function(){this.unrenderHelperSegs()},renderBusinessHours:function(){this.renderBusinessSegs(this.buildBusinessHourSegs())},unrenderBusinessHours:function(){this.unrenderBusinessSegs()},getNowIndicatorUnit:function(){return"minute"},renderNowIndicator:function(t){var n,i=this.spanToSegs({start:t,end:t}),o=this.computeDateTop(t,t),r=[];for(n=0;n<i.length;n++)r.push(e('<div class="fc-now-indicator fc-now-indicator-line"></div>').css("top",o).appendTo(this.colContainerEls.eq(i[n].col))[0]);i.length>0&&r.push(e('<div class="fc-now-indicator fc-now-indicator-arrow"></div>').css("top",o).appendTo(this.el.find(".fc-content-skeleton"))[0]),this.nowIndicatorEls=e(r)},unrenderNowIndicator:function(){this.nowIndicatorEls&&(this.nowIndicatorEls.remove(),this.nowIndicatorEls=null)},renderSelection:function(e){this.view.opt("selectHelper")?this.renderEventLocationHelper(e):this.renderHighlight(e)},unrenderSelection:function(){this.unrenderHelper(),this.unrenderHighlight()},renderHighlight:function(e){this.renderHighlightSegs(this.spanToSegs(e))},unrenderHighlight:function(){this.unrenderHighlightSegs()}});function We(e){var t,n,i=e.forwardSegs,o=0;if(void 0===e.forwardPressure){for(t=0;t<i.length;t++)We(n=i[t]),o=Math.max(o,1+n.forwardPressure);e.forwardPressure=o}}function Ve(e,t,n){n=n||[];for(var i=0;i<t.length;i++)o=e,r=t[i],o.bottom>r.top&&o.top<r.bottom&&n.push(t[i]);var o,r;return n}ze.mixin({colContainerEls:null,fgContainerEls:null,bgContainerEls:null,helperContainerEls:null,highlightContainerEls:null,businessContainerEls:null,fgSegs:null,bgSegs:null,helperSegs:null,highlightSegs:null,businessSegs:null,renderContentSkeleton:function(){var t,n,i="";for(t=0;t<this.colCnt;t++)i+='<td><div class="fc-content-col"><div class="fc-event-container fc-helper-container"></div><div class="fc-event-container"></div><div class="fc-highlight-container"></div><div class="fc-bgevent-container"></div><div class="fc-business-container"></div></div></td>';n=e('<div class="fc-content-skeleton"><table><tr>'+i+"</tr></table></div>"),this.colContainerEls=n.find(".fc-content-col"),this.helperContainerEls=n.find(".fc-helper-container"),this.fgContainerEls=n.find(".fc-event-container:not(.fc-helper-container)"),this.bgContainerEls=n.find(".fc-bgevent-container"),this.highlightContainerEls=n.find(".fc-highlight-container"),this.businessContainerEls=n.find(".fc-business-container"),this.bookendCells(n.find("tr")),this.el.append(n)},renderFgSegs:function(e){return e=this.renderFgSegsIntoContainers(e,this.fgContainerEls),this.fgSegs=e,e},unrenderFgSegs:function(){this.unrenderNamedSegs("fgSegs")},renderHelperSegs:function(t,n){var i,o,r,s=[];for(t=this.renderFgSegsIntoContainers(t,this.helperContainerEls),i=0;i<t.length;i++)o=t[i],n&&n.col===o.col&&(r=n.el,o.el.css({left:r.css("left"),right:r.css("right"),"margin-left":r.css("margin-left"),"margin-right":r.css("margin-right")})),s.push(o.el[0]);return this.helperSegs=t,e(s)},unrenderHelperSegs:function(){this.unrenderNamedSegs("helperSegs")},renderBgSegs:function(e){return e=this.renderFillSegEls("bgEvent",e),this.updateSegVerticals(e),this.attachSegsByCol(this.groupSegsByCol(e),this.bgContainerEls),this.bgSegs=e,e},unrenderBgSegs:function(){this.unrenderNamedSegs("bgSegs")},renderHighlightSegs:function(e){e=this.renderFillSegEls("highlight",e),this.updateSegVerticals(e),this.attachSegsByCol(this.groupSegsByCol(e),this.highlightContainerEls),this.highlightSegs=e},unrenderHighlightSegs:function(){this.unrenderNamedSegs("highlightSegs")}
1,renderBusinessSegs:function(e){e=this.renderFillSegEls("businessHours",e),this.updateSegVerticals(e),this.attachSegsByCol(this.groupSegsByCol(e),this.businessContainerEls),this.businessSegs=e},unrenderBusinessSegs:function(){this.unrenderNamedSegs("businessSegs")},groupSegsByCol:function(e){var t,n=[];for(t=0;t<this.colCnt;t++)n.push([]);for(t=0;t<e.length;t++)n[e[t].col].push(e[t]);return n},attachSegsByCol:function(e,t){var n,i,o;for(n=0;n<this.colCnt;n++)for(i=e[n],o=0;o<i.length;o++)t.eq(n).append(i[o].el)},unrenderNamedSegs:function(e){var t,n=this[e];if(n){for(t=0;t<n.length;t++)n[t].el.remove();this[e]=null}},renderFgSegsIntoContainers:function(e,t){var n,i;for(e=this.renderFgSegEls(e),n=this.groupSegsByCol(e),i=0;i<this.colCnt;i++)this.updateFgSegCoords(n[i]);return this.attachSegsByCol(n,t),e},fgSegHtml:function(e,t){var n,i,o,r=this.view,s=e.event,a=r.isEventDraggable(s),l=!t&&e.isStart&&r.isEventResizableFromStart(s),u=!t&&e.isEnd&&r.isEventResizableFromEnd(s),c=this.getSegClasses(e,a,l||u),d=ie(this.getSegSkinCss(e));return c.unshift("fc-time-grid-event","fc-v-event"),r.isMultiDayEvent(s)?(e.isStart||e.isEnd)&&(n=this.getEventTimeText(e),i=this.getEventTimeText(e,"LT"),o=this.getEventTimeText(e,null,!1)):(n=this.getEventTimeText(s),i=this.getEventTimeText(s,"LT"),o=this.getEventTimeText(s,null,!1)),'<a class="'+c.join(" ")+'"'+(s.url?' href="'+te(s.url)+'"':"")+(d?' style="'+d+'"':"")+'><div class="fc-content">'+(n?'<div class="fc-time" data-start="'+te(o)+'" data-full="'+te(i)+'"><span>'+te(n)+"</span></div>":"")+(s.title?'<div class="fc-title">'+te(s.title)+"</div>":"")+'</div><div class="fc-bg"/>'+(u?'<div class="fc-resizer fc-end-resizer" />':"")+"</a>"},updateSegVerticals:function(e){this.computeSegVerticals(e),this.assignSegVerticals(e)},computeSegVerticals:function(e){var t,n,i;for(t=0;t<e.length;t++)n=e[t],i=this.dayDates[n.dayIndex],n.top=this.computeDateTop(n.start,i),n.bottom=this.computeDateTop(n.end,i)},assignSegVerticals:function(e){var t,n;for(t=0;t<e.length;t++)(n=e[t]).el.css(this.generateSegVerticalCss(n))},generateSegVerticalCss:function(e){return{top:e.top,bottom:-e.bottom}},updateFgSegCoords:function(e){this.computeSegVerticals(e),this.computeFgSegHorizontals(e),this.assignSegVerticals(e),this.assignFgSegHorizontals(e)},computeFgSegHorizontals:function(e){var t,n,i;if(this.sortEventSegs(e),function(e){var t,n,i,o,r;for(t=0;t<e.length;t++)for(n=e[t],i=0;i<n.length;i++)for((o=n[i]).forwardSegs=[],r=t+1;r<e.length;r++)Ve(o,e[r],o.forwardSegs)}(t=function(e){var t,n,i,o=[];for(t=0;t<e.length;t++){for(n=e[t],i=0;i<o.length&&Ve(n,o[i]).length;i++);n.level=i,(o[i]||(o[i]=[])).push(n)}return o}(e)),n=t[0]){for(i=0;i<n.length;i++)We(n[i]);for(i=0;i<n.length;i++)this.computeFgSegForwardBack(n[i],0,0)}},computeFgSegForwardBack:function(e,t,n){var i,o=e.forwardSegs;if(void 0===e.forwardCoord)for(o.length?(this.sortForwardSegs(o),this.computeFgSegForwardBack(o[0],t+1,n),e.forwardCoord=o[0].backwardCoord):e.forwardCoord=1,e.backwardCoord=e.forwardCoord-(e.forwardCoord-n)/(t+1),i=0;i<o.length;i++)this.computeFgSegForwardBack(o[i],0,e.forwardCoord)},sortForwardSegs:function(e){e.sort(ae(this,"compareForwardSegs"))},compareForwardSegs:function(e,t){return t.forwardPressure-e.forwardPressure||(e.backwardCoord||0)-(t.backwardCoord||0)||this.compareEventSegs(e,t)},assignFgSegHorizontals:function(e){var t,n;for(t=0;t<e.length;t++)(n=e[t]).el.css(this.generateFgSegHorizontalCss(n)),n.bottom-n.top<30&&n.el.addClass("fc-short")},generateFgSegHorizontalCss:function(e){var t,n,i=this.view.opt("slotEventOverlap"),o=e.backwardCoord,r=e.forwardCoord,s=this.generateSegVerticalCss(e);return i&&(r=Math.min(1,o+2*(r-o))),this.isRTL?(t=1-r,n=o):(t=o,n=1-r),s.zIndex=e.level+1,s.left=100*t+"%",s.right=100*n+"%",i&&e.forwardPressure&&(s[this.isRTL?"marginLeft":"marginRight"]=20),s}});var Ue=n.View=Ee.extend(De,Ie,{type:null,name:null,title:null,calendar:null,viewSpec:null,options:null,el:null,isDateSet:!1,isDateRendered:!1,dateRenderQueue:null,isEventsBound:!1,isEventsSet:!1,isEventsRendered:!1,eventRenderQueue:null,isRTL:!1,isSelected:!1,selectedEvent:null,eventOrderSpecs:null,widgetHeaderClass:null,widgetContentClass:null,highlightStateClass:null,nextDayThreshold:null,isHiddenD
1ayHash:null,isNowIndicatorRendered:null,initialNowDate:null,initialNowQueriedMs:null,nowIndicatorTimeoutID:null,nowIndicatorIntervalID:null,constructor:function(e,n){this.calendar=e,this.viewSpec=n,this.type=n.type,this.options=n.options,this.name=this.type,this.nextDayThreshold=t.duration(this.opt("nextDayThreshold")),this.initThemingProps(),this.initHiddenDays(),this.isRTL=this.opt("isRTL"),this.eventOrderSpecs=w(this.opt("eventOrder")),this.dateRenderQueue=new Ce,this.eventRenderQueue=new Ce(this.opt("eventRenderWait")),this.initialize()},initialize:function(){},opt:function(e){return this.options[e]},publiclyTrigger:function(e,t){var n=this.calendar;return n.publiclyTrigger.apply(n,[e,t||this].concat(Array.prototype.slice.call(arguments,2),[this]))},rejectOn:function(e,t){var n=this;return new ye(function(i,o){function r(){n.off(e,o)}n.one(e,o),t.then(function(e){r(),i(e)},function(){r(),o()})})},updateTitle:function(){this.title=this.computeTitle(),this.calendar.setToolbarsTitle(this.title)},computeTitle:function(){var e;return e=/^(year|month)$/.test(this.currentRangeUnit)?this.currentRange:this.activeRange,this.formatRange({start:this.calendar.applyTimezone(e.start),end:this.calendar.applyTimezone(e.end)},this.opt("titleFormat")||this.computeTitleFormat(),this.opt("titleRangeSeparator"))},computeTitleFormat:function(){return"year"==this.currentRangeUnit?"YYYY":"month"==this.currentRangeUnit?this.opt("monthYearFormat"):this.currentRangeAs("days")>1?"ll":"LL"},formatRange:function(e,t,n){var i=e.end;return i.hasTime()||(i=i.clone().subtract(1)),me(e.start,i,t,n,this.opt("isRTL"))},getAllDayHtml:function(){return this.opt("allDayHtml")||te(this.opt("allDayText"))},buildGotoAnchorHtml:function(t,i,o){var r,s,a,l;return e.isPlainObject(t)?(r=t.date,s=t.type,a=t.forceOff):r=t,l={date:(r=n.moment(r)).format("YYYY-MM-DD"),type:s||"day"},"string"==typeof i&&(o=i,i=null),i=i?" "+function(t){var n=[];return e.each(t,function(e,t){null!=t&&n.push(e+'="'+te(t)+'"')}),n.join(" ")}(i):"",o=o||"",!a&&this.opt("navLinks")?"<a"+i+' data-goto="'+te(JSON.stringify(l))+'">'+o+"</a>":"<span"+i+">"+o+"</span>"},setElement:function(e){this.el=e,this.bindGlobalHandlers(),this.renderSkeleton()},removeElement:function(){this.unsetDate(),this.unrenderSkeleton(),this.unbindGlobalHandlers(),this.el.remove()},renderSkeleton:function(){},unrenderSkeleton:function(){},setDate:function(e){var t=this.isDateSet;this.isDateSet=!0,this.handleRawDate(e),this.trigger(t?"dateReset":"dateSet",e)},unsetDate:function(){this.isDateSet&&(this.isDateSet=!1,this.handleDateUnset(),this.trigger("dateUnset"))},handleRawDate:function(e){var t=this,n=this.buildDateProfile(e,null,!0);this.isSameDateProfile(n)?this.dateRenderQueue.add(function(){t.isDateRendered||t.handleDate(n)}):this.handleDate(n)},handleDate:function(e){var t=this;this.unbindEvents(),this.requestDateRender(e).then(function(){t.bindEvents()})},handleDateUnset:function(){this.unbindEvents(),this.requestDateUnrender()},requestDateRender:function(e){var t=this;return this.dateRenderQueue.add(function(){return t.executeDateRender(e)})},requestDateUnrender:function(){var e=this;return this.dateRenderQueue.add(function(){return e.executeDateUnrender()})},executeDateRender:function(e){var t=this;return e&&t.setDateProfile(e),this.updateTitle(),this.calendar.updateToolbarButtons(),e?this.captureInitialScroll():this.captureScroll(),this.freezeHeight(),this.executeDateUnrender().then(function(){t.render&&t.render(),t.renderDates(),t.updateSize(),t.renderBusinessHours(),t.startNowIndicator(),t.thawHeight(),t.releaseScroll(),t.isDateRendered=!0,t.onDateRender(),t.trigger("dateRender")})},executeDateUnrender:function(){var e=this;return e.isDateRendered?this.requestEventsUnrender().then(function(){e.unselect(),e.stopNowIndicator(),e.triggerUnrender(),e.unrenderBusinessHours(),e.unrenderDates(),e.destroy&&e.destroy(),e.isDateRendered=!1,e.trigger("dateUnrender")}):ye.resolve()},onDateRender:function(){this.triggerRender()},renderDates:function(){},unrenderDates:function(){},triggerRender:function(){this.publiclyTrigger("viewRender",this,this,this.el)},triggerUnrender:function(){this.publiclyTrigger("viewDestroy",this,this,this.el)},bindGlobalHandlers:function(){this.listenTo(Ne.get(),{touchstart:this.processUnselect,mousedown:this.handleDocumentMousedown})},unbindGlobalHandlers:function(){this.stopListeningTo(Ne.get())},initThemingProps:function(){var e=this.opt("theme")?"ui":"fc";this.widgetHeaderClass=e+"-widget-header",this.widgetContentClass=e+"-widget-content",this.highlightStateClass=e+"-state-highlight"},renderBusinessHours:function(){},unrenderBusinessHours:function(){},startNowIndicator:function(){var e,n,i,o=this;
1this.opt("nowIndicator")&&(e=this.getNowIndicatorUnit())&&(n=ae(this,"updateNowIndicator"),this.initialNowDate=this.calendar.getNow(),this.initialNowQueriedMs=+new Date,this.renderNowIndicator(this.initialNowDate),this.isNowIndicatorRendered=!0,i=this.initialNowDate.clone().startOf(e).add(1,e)-this.initialNowDate,this.nowIndicatorTimeoutID=setTimeout(function(){o.nowIndicatorTimeoutID=null,n(),i=+t.duration(1,e),i=Math.max(100,i),o.nowIndicatorIntervalID=setInterval(n,i)},i))},updateNowIndicator:function(){this.isNowIndicatorRendered&&(this.unrenderNowIndicator(),this.renderNowIndicator(this.initialNowDate.clone().add(new Date-this.initialNowQueriedMs)))},stopNowIndicator:function(){this.isNowIndicatorRendered&&(this.nowIndicatorTimeoutID&&(clearTimeout(this.nowIndicatorTimeoutID),this.nowIndicatorTimeoutID=null),this.nowIndicatorIntervalID&&(clearTimeout(this.nowIndicatorIntervalID),this.nowIndicatorIntervalID=null),this.unrenderNowIndicator(),this.isNowIndicatorRendered=!1)},getNowIndicatorUnit:function(){},renderNowIndicator:function(e){},unrenderNowIndicator:function(){},updateSize:function(e){e&&this.captureScroll(),this.updateHeight(e),this.updateWidth(e),this.updateNowIndicator(),e&&this.releaseScroll()},updateWidth:function(e){},updateHeight:function(e){var t=this.calendar;this.setHeight(t.getSuggestedViewHeight(),t.isHeightAuto())},setHeight:function(e,t){},capturedScroll:null,capturedScrollDepth:0,captureScroll:function(){return!this.capturedScrollDepth++&&(this.capturedScroll=this.isDateRendered?this.queryScroll():{},!0)},captureInitialScroll:function(t){this.captureScroll()&&(this.capturedScroll.isInitial=!0,t?e.extend(this.capturedScroll,t):this.capturedScroll.isComputed=!0)},releaseScroll:function(){var t=this.capturedScroll,n=this.discardScroll();t.isComputed&&(n?e.extend(t,this.computeInitialScroll()):t=null),t&&(t.isInitial?this.hardSetScroll(t):this.setScroll(t))},discardScroll:function(){return!--this.capturedScrollDepth&&(this.capturedScroll=null,!0)},computeInitialScroll:function(){return{}},queryScroll:function(){return{}},hardSetScroll:function(e){var t=this,n=function(){t.setScroll(e)};n(),setTimeout(n,0)},setScroll:function(e){},freezeHeight:function(){this.calendar.freezeContentHeight()},thawHeight:function(){this.calendar.thawContentHeight()},bindEvents:function(){var e=this;this.isEventsBound||(this.isEventsBound=!0,this.rejectOn("eventsUnbind",this.requestEvents()).then(function(t){e.listenTo(e.calendar,"eventsReset",e.setEvents),e.setEvents(t)}))},unbindEvents:function(){this.isEventsBound&&(this.isEventsBound=!1,this.stopListeningTo(this.calendar,"eventsReset"),this.unsetEvents(),this.trigger("eventsUnbind"))},setEvents:function(e){var t=this.isEventSet;this.isEventsSet=!0,this.handleEvents(e,t),this.trigger(t?"eventsReset":"eventsSet",e)},unsetEvents:function(){this.isEventsSet&&(this.isEventsSet=!1,this.handleEventsUnset(),this.trigger("eventsUnset"))},whenEventsSet:function(){var e=this;return this.isEventsSet?ye.resolve(this.getCurrentEvents()):new ye(function(t){e.one("eventsSet",t)})},handleEvents:function(e,t){this.requestEventsRender(e)},handleEventsUnset:function(){this.requestEventsUnrender()},requestEventsRender:function(e){var t=this;return this.eventRenderQueue.add(function(){return t.executeEventsRender(e)})},requestEventsUnrender:function(){var e=this;return this.isEventsRendered?this.eventRenderQueue.addQuickly(function(){return e.executeEventsUnrender()}):ye.resolve()},requestCurrentEventsRender:function(){if(!this.isEventsSet)return ye.reject();this.requestEventsRender(this.getCurrentEvents())},executeEventsRender:function(e){var t=this;return this.captureScroll(),this.freezeHeight(),this.executeEventsUnrender().then(function(){t.renderEvents(e),t.thawHeight(),t.releaseScroll(),t.isEventsRendered=!0,t.onEventsRender(),t.trigger("eventsRender")})},executeEventsUnrender:function(){return this.isEventsRendered&&(this.onBeforeEventsUnrender(),this.captureScroll(),this.freezeHeight(),this.destroyEvents&&this.destroyEvents(),this.unrenderEvents(),this.thawHeight(),this.releaseScroll(),this.isEventsRendered=!1,this.trigger("eventsUnrender")),ye.resolve()},onEventsRender:function(){this.renderedEventSegEach(function(e){this.publiclyTrigger("eventAfterRender",e.event,e.event,e.el)}),this.publiclyTrigger("eventAfterAllRender")},onBeforeEventsUnrender:function(){this.renderedEventSegEach(function(e){this.publiclyTrigger("eventDestroy",e.event,e.event,e.el)})},renderEvents:function(e){},unrenderEvents:function(){},requestEvents:function(){return this.calendar.requestEvents(this.activeRange.start,this.activeRange.end)},getCurrentEvents:function(){return this.calendar.getPrunedEventCache()},resolveEventEl:function(t,n){var i=this.publiclyTrigger("eventRender",t,t,n
1);return!1===i?n=null:i&&!0!==i&&(n=e(i)),n},showEvent:function(e){this.renderedEventSegEach(function(e){e.el.css("visibility","")},e)},hideEvent:function(e){this.renderedEventSegEach(function(e){e.el.css("visibility","hidden")},e)},renderedEventSegEach:function(e,t){var n,i=this.getEventSegs();for(n=0;n<i.length;n++)t&&i[n].event._id!==t._id||i[n].el&&e.call(this,i[n])},getEventSegs:function(){return[]},isEventDraggable:function(e){return this.isEventStartEditable(e)},isEventStartEditable:function(e){return ee(e.startEditable,(e.source||{}).startEditable,this.opt("eventStartEditable"),this.isEventGenerallyEditable(e))},isEventGenerallyEditable:function(e){return ee(e.editable,(e.source||{}).editable,this.opt("editable"))},reportSegDrop:function(e,t,n,i,o){var r=this.calendar,s=r.mutateSeg(e,t,n);this.triggerEventDrop(e.event,s.dateDelta,function(){s.undo(),r.reportEventChange()},i,o),r.reportEventChange()},triggerEventDrop:function(e,t,n,i,o){this.publiclyTrigger("eventDrop",i[0],e,t,n,o,{})},reportExternalDrop:function(t,n,i,o,r){var s,a,l=t.eventProps;l&&(s=e.extend({},l,n),a=this.calendar.renderEvent(s,t.stick)[0]),this.triggerExternalDrop(a,n,i,o,r)},triggerExternalDrop:function(e,t,n,i,o){this.publiclyTrigger("drop",n[0],t.start,i,o),e&&this.publiclyTrigger("eventReceive",null,e)},renderDrag:function(e,t){},unrenderDrag:function(){},isEventResizableFromStart:function(e){return this.opt("eventResizableFromStart")&&this.isEventResizable(e)},isEventResizableFromEnd:function(e){return this.isEventResizable(e)},isEventResizable:function(e){var t=e.source||{};return ee(e.durationEditable,t.durationEditable,this.opt("eventDurationEditable"),e.editable,t.editable,this.opt("editable"))},reportSegResize:function(e,t,n,i,o){var r=this.calendar,s=r.mutateSeg(e,t,n);this.triggerEventResize(e.event,s.durationDelta,function(){s.undo(),r.reportEventChange()},i,o),r.reportEventChange()},triggerEventResize:function(e,t,n,i,o){this.publiclyTrigger("eventResize",i[0],e,t,n,o,{})},select:function(e,t){this.unselect(t),this.renderSelection(e),this.reportSelection(e,t)},renderSelection:function(e){},reportSelection:function(e,t){this.isSelected=!0,this.triggerSelect(e,t)},triggerSelect:function(e,t){this.publiclyTrigger("select",null,this.calendar.applyTimezone(e.start),this.calendar.applyTimezone(e.end),t)},unselect:function(e){this.isSelected&&(this.isSelected=!1,this.destroySelection&&this.destroySelection(),this.unrenderSelection(),this.publiclyTrigger("unselect",null,e))},unrenderSelection:function(){},selectEvent:function(e){this.selectedEvent&&this.selectedEvent===e||(this.unselectEvent(),this.renderedEventSegEach(function(e){e.el.addClass("fc-selected")},e),this.selectedEvent=e)},unselectEvent:function(){this.selectedEvent&&(this.renderedEventSegEach(function(e){e.el.removeClass("fc-selected")},this.selectedEvent),this.selectedEvent=null)},isEventSelected:function(e){return this.selectedEvent&&this.selectedEvent._id===e._id},handleDocumentMousedown:function(e){C(e)&&this.processUnselect(e)},processUnselect:function(e){this.processRangeUnselect(e),this.processEventUnselect(e)},processRangeUnselect:function(t){var n;this.isSelected&&this.opt("unselectAuto")&&((n=this.opt("unselectCancel"))&&e(t.target).closest(n).length||this.unselect(t))},processEventUnselect:function(t){this.selectedEvent&&(e(t.target).closest(".fc-selected").length||this.unselectEvent())},triggerDayClick:function(e,t,n){this.publiclyTrigger("dayClick",t,this.calendar.applyTimezone(e.start),n)},computeDayRange:function(e){var t,n=e.start.clone().stripTime(),i=e.end,o=null;return i&&(o=i.clone().stripTime(),(t=+i.time())&&t>=this.nextDayThreshold&&o.add(1,"days")),(!i||o<=n)&&(o=n.clone().add(1,"days")),{start:n,end:o}},isMultiDayEvent:function(e){var t=this.computeDayRange(e);return t.end.diff(t.start,"days")>1}});Ue.mixin({currentRange:null,currentRangeUnit:null,renderRange:null,activeRange:null,validRange:null,dateIncrement:null,currentDate:null,minTime:null,maxTime:null,usesMinMaxTime:!1,start:null,end:null,intervalStart:null,intervalEnd:null,isSameDateProfile:function(e){return this.activeRange&&(t=this.activeRange,n=e.activeRange,(t.start&&n.start&&t.start.isSame(n.start)||!t.start&&!n.start)&&(t.end&&n.end&&t.end.isSame(n.end)||!t.end&&!n.end));var t,n},setDateProfile:function(e){this.currentRange=e.currentRange,this.currentRangeUnit=e.currentRangeUnit,this.renderRange=e.renderRange,this.activeRange=e.activeRange,this.validRange=e.validRange,this.dateIncrement=e.dateIncrement,this.currentDate=e.date,this.minTime=e.minTime,this.maxTime=e.maxTime,this.start=e.activeRange.start,this.end=e.activeRange.end,this.intervalStart=e.currentRange.start,this.intervalEnd=e.currentRange.end},buildPrevDateProfile:function(e){var t=e.clone().startOf(this.currentRangeUnit).subtract(this.dateIncrement);return this.buildDateProfile(t,-1)},buildNextDateProfile:function(e){var t=e.clone().startOf(this.currentRangeUnit).add(this.dateIncrement);return this.buildDateProfile(t,1)},buildDateProfile:function(e,n,i){var o,r,s,a,l,u,c,d,h=this.buildValidRange();return i&&(e=q(e,h)),s=this.buildCurrentRangeInfo(e,n),l=H(a=this.buildRenderRange(s.range,s.unit)),this.opt("showNonCurrentDates")||(l=j(l,s.range)),o=t.duration(this.opt("minTime")),r=t.duration(this.opt("maxTime")),this.adjustActiveRange(l,o,r),e=q(e,l=j(l,h)),c=s.range,u=(!(d=h).start||c.end>=d.start)&&(!d.end||c.start<d.end),{validRange:h,currentRange:s.range,currentRangeUnit:s.unit,activeRange:l,renderRange:a,minTime:o,maxTime:r,isValid:u,date:e,dateIncrement:this.buildDateIncrement(s.duration)}},buildValidRange:function(){return this.getRangeOption("validRange",this.calendar.getNow())||{}},buildCurrentRangeInfo:function(e,t){var n,i=null,o=null,r=null;return this.viewSpec.duration?(i=this.viewSpec.duration,o=this.viewSpec.durationUnit,r=this.buildRangeFromDuration(e,t,i,o)):(n=this.opt("dayCount"))?(o="day",r=this.buildRangeFromDayCount(e,t,n)):(r=this.buildCustomVisibleRange(e))?o=P(r.start,r.end):(o=P(i=this.getFallbackDuration()),r=this.buildRangeFromDuration(e,t,i,o)),this.normalizeCurrentRange(r,o),{duration:i,unit:o,range:r}},getFallbackDuration:function(){return t.duration({days:1})},normalizeCurrentRange:function(e,t){/^(year|month|week|day)$/.test(t)?(e.start.stripTime(),e.end.stripTime()):(e.start.hasTime()||e.start.time(0),e.end.hasTime()||e.end.time(0))},adjustActiveRange:function(e,t,n){var i=!1;this.usesMinMaxTime&&(t<0&&(e.start.time(0).add(t),i=!0),n>864e5&&(e.end.time(n-864e5),i=!0),i&&(e.start.hasTime()||e.start.time(0),e.end.hasTime()||e.end.time(0)))},buildRangeFromDuration:function(e,n,i,o){var r,s,a=this.opt("dateAlignment"),l=e.clone();
1return i.as("days")<=1&&this.isHiddenDay(l)&&(l=this.skipHiddenDays(l,n)).startOf("day"),a||(a=(r=this.opt("dateIncrement"))&&(s=t.duration(r))<i?B(s,r):o),l.startOf(a),{start:l,end:l.clone().add(i)}},buildRangeFromDayCount:function(e,t,n){var i,o=this.opt("dateAlignment"),r=0,s=e.clone();o&&s.startOf(o),s.startOf("day"),i=(s=this.skipHiddenDays(s,t)).clone();do{i.add(1,"day"),this.isHiddenDay(i)||r++}while(r<n);return{start:s,end:i}},buildCustomVisibleRange:function(e){var t=this.getRangeOption("visibleRange",this.calendar.moment(e));return!t||t.start&&t.end?t:null},buildRenderRange:function(e,t){return this.trimHiddenDays(e)},buildDateIncrement:function(e){var n,i=this.opt("dateIncrement");return i?t.duration(i):(n=this.opt("dateAlignment"))?t.duration(1,n):e||t.duration({days:1})},trimHiddenDays:function(e){return{start:this.skipHiddenDays(e.start),end:this.skipHiddenDays(e.end,-1,!0)}},currentRangeAs:function(e){var t=this.currentRange;return t.end.diff(t.start,e,!0)},getRangeOption:function(e){var t=this.opt(e);if("function"==typeof t&&(t=t.apply(null,Array.prototype.slice.call(arguments,1))),t)return this.calendar.parseRange(t)},initHiddenDays:function(){var t,n=this.opt("hiddenDays")||[],i=[],o=0;for(!1===this.opt("weekends")&&n.push(0,6),t=0;t<7;t++)(i[t]=-1!==e.inArray(t,n))||o++;if(!o)throw"invalid hiddenDays";this.isHiddenDayHash=i},isHiddenDay:function(e){return t.isMoment(e)&&(e=e.day()),this.isHiddenDayHash[e]},skipHiddenDays:function(e,t,n){var i=e.clone();for(t=t||1;this.isHiddenDayHash[(i.day()+(n?t:0)+7)%7];)i.add(t,"days");return i}});var Ge=n.Scroller=Ee.extend({el:null,scrollEl:null,overflowX:null,overflowY:null,constructor:function(e){e=e||{},this.overflowX=e.overflowX||e.overflow||"auto",this.overflowY=e.overflowY||e.overflow||"auto"},render:function(){this.el=this.renderEl(),this.applyOverflow()},renderEl:function(){return this.scrollEl=e('<div class="fc-scroller"></div>')},clear:function(){this.setHeight("auto"),this.applyOverflow()},destroy:function(){this.el.remove()},applyOverflow:function(){this.scrollEl.css({"overflow-x":this.overflowX,"overflow-y":this.overflowY})},lockOverflow:function(e){var t=this.overflowX,n=this.overflowY;e=e||this.getScrollbarWidths(),"auto"===t&&(t=e.top||e.bottom||this.scrollEl[0].scrollWidth-1>this.scrollEl[0].clientWidth?"scroll":"hidden"),"auto"===n&&(n=e.left||e.right||this.scrollEl[0].scrollHeight-1>this.scrollEl[0].clientHeight?"scroll":"hidden"),this.scrollEl.css({"overflow-x":t,"overflow-y":n})},setHeight:function(e){this.scrollEl.height(e)},getScrollTop:function(){return this.scrollEl.scrollTop()},setScrollTop:function(e){this.scrollEl.scrollTop(e)},getClientWidth:function(){return this.scrollEl[0].clientWidth},getClientHeight:function(){return this.scrollEl[0].clientHeight},getScrollbarWidths:function(){return v(this.scrollEl)}});function Ye(e){this.items=e||[]}function Xe(t,n){var i,o=this;o.setToolbarOptions=function(e){n=e},o.render=function(){var o=n.layout;r=t.options.theme?"ui":"fc",o?(i?i.empty():i=this.el=e("<div class='fc-toolbar "+n.extraClasses+"'/>"),i.append(l("left")).append(l("right")).append(l("center")).append('<div class="fc-clear"/>')):a()},o.removeElement=a,o.updateTitle=function(e){i&&i.find("h2").text(e)},o.activateButton=function(e){i&&i.find(".fc-"+e+"-button").addClass(r+"-state-active")},o.deactivateButton=function(e){i&&i.find(".fc-"+e+"-button").removeClass(r+"-state-active")},o.disableButton=function(e){i&&i.find(".fc-"+e+"-button").prop("disabled",!0).addClass(r+"-state-disabled")},o.enableButton=function(e){i&&i.find(".fc-"+e+"-button").prop("disabled",!1).removeClass(r+"-state-disabled")},o.getViewsWithButtons=function(){return s},o.el=null;var r,s=[];function a(){i&&(i.remove(),i=o.el=null)}function l(i){var o=e('<div class="fc-'+i+'"/>'),a=n.layout[i];return a&&e.each(a.split(" "),function(n){var i,a=e(),l=!0;e.each(this.split(","),function(n,i){var o,u,c,d,h,f,p,g,m;"title"==i?(a=a.add(e("<h2> </h2>")),l=!1):((o=(t.options.customButtons||{})[i])?(c=function(e){o.click&&o.click.call(m[0],e)},d="",h=o.text):(u=t.getViewSpec(i))?(c=function(){t.changeView(i)},s.push(i),d=u.buttonTextOverride,h=u.buttonTextDefault):t[i]&&(c=function(){t[i]()},d=(t.overrides.buttonText||{})[i],h=t.options.buttonText[i]),c&&(f=o?o.themeIcon:t.options.themeButtonIcons[i],p=o?o.icon:t.options.buttonIcons[i],g=d?te(d):f&&t.options.theme?"<span class='ui-icon ui-icon-"+f+"'></span>":p&&!t.options.theme?"<span class='fc-icon fc-icon-"+p+"'></span>":te(h),m=e('<button type="button" class="'+["fc-"+i+"-button",r+"-button",r+"-state-default"].join(" ")+'">'+g+"</button>").click(function(e){m.hasClass(r+"-state-disabled")||(c(e),(m.hasClass(r+"-state-active")||m.hasClass(r+"-state-disabled"))&&m.removeClass(r+"-state-hover"))}).mousedown(function(){m.not("."+r+"-state-active").not("."+r+"-state-disabled").addClass(r+"-state-down")}).mouseup(function(){m.removeClass(r+"-state-down")}).hover(function(){m.not("."+r+"-state-active").not("."+r+"-state-disabled").addClass(r+"-state-hover")},function(){m.removeClass(r+"-state-hover").removeClass(r+"-state-down")}),a=a.add(m)))}
1),l&&a.first().addClass(r+"-corner-left").end().last().addClass(r+"-corner-right").end(),a.length>1?(i=e("<div/>"),l&&i.addClass("fc-button-group"),i.append(a),o.append(i)):o.append(a)}),o}}Ye.prototype.proxyCall=function(e){var t=Array.prototype.slice.call(arguments,1),n=[];return this.items.forEach(function(i){n.push(i[e].apply(i,t))}),n};var Ze=n.Calendar=Ee.extend({dirDefaults:null,localeDefaults:null,overrides:null,dynamicOverrides:null,options:null,viewSpecCache:null,view:null,currentDate:null,header:null,footer:null,loadingLevel:0,constructor:function(i,o){var r,s=this;function a(e){e._locale=r}Ne.needed(),s.render=function(){d?E()&&(b(),T()):function(){i.addClass("fc"),i.on("click.fc","a[data-goto]",function(t){var n=e(this),i=n.data("goto"),o=s.moment(i.date),r=i.type,a=h.opt("navLink"+oe(r)+"Click");"function"==typeof a?a(o,t):("string"==typeof a&&(r=a),K(o,r))}),s.bindOption("theme",function(e){e?"ui":"fc",i.toggleClass("ui-widget",e),i.toggleClass("fc-unthemed",!e)}),s.bindOptions(["isRTL","locale"],function(e){i.toggleClass("fc-ltr",!e),i.toggleClass("fc-rtl",e)}),d=e("<div class='fc-view-container'/>").prependTo(i);var t=[new Xe(s,R()),new Xe(s,_())];l=new Ye(t),u=s.header=t[0],c=s.footer=t[1],w(),k(),T(s.options.defaultView),s.options.handleWindowResize&&(p=le(O,s.options.windowResizeDelay),e(window).resize(p))}()},s.destroy=function(){h&&h.removeElement();l.proxyCall("removeElement"),d.remove(),i.removeClass("fc fc-ltr fc-rtl fc-unthemed ui-widget"),i.off(".fc"),p&&e(window).unbind("resize",p);Ne.unneeded()},s.rerenderEvents=function(){E()&&s.reportEventChange()},s.select=function(e,t){h.select(s.buildSelectSpan.apply(s,arguments))},s.unselect=function(){h&&h.unselect()},s.zoomTo=K,s.getCalendar=function(){return s},s.getView=function(){return h},s.option=function(e,t){var n;if("string"==typeof e){if(void 0===t)return s.options[e];(n={})[e]=t,A(n)}else"object"==typeof e&&A(e)},s.recordOptionOverrides=P,s.publiclyTrigger=function(e,t){var n=Array.prototype.slice.call(arguments,2);if(t=t||g,this.triggerWith(e,t,n),s.options[e])return s.options[e].apply(t,n)},s.dynamicOverrides={},s.viewSpecCache={},s.optionHandlers={},s.overrides=e.extend({},o),s.populateOptionsHash(),s.bindOptions(["locale","monthNames","monthNamesShort","dayNames","dayNamesShort","firstDay","weekNumberCalculation"],function(e,t,n,i,o,l,u){if("iso"===u&&(u="ISO"),r=X(it(e)),t&&(r._months=t),n&&(r._monthsShort=n),i&&(r._weekdays=i),o&&(r._weekdaysShort=o),null==l&&"ISO"===u&&(l=1),null!=l){var c=X(r._week);c.dow=l,r._week=c}"ISO"!==u&&"local"!==u&&"function"!=typeof u||(r._fullCalendar_weekCalc=u),s.currentDate&&a(s.currentDate)}),s.defaultAllDayEventDuration=t.duration(s.options.defaultAllDayEventDuration),s.defaultTimedEventDuration=t.duration(s.options.defaultTimedEventDuration),s.moment=function(){var e;return"local"===s.options.timezone?(e=n.moment.apply(null,arguments)).hasTime()&&e.local():e="UTC"===s.options.timezone?n.moment.utc.apply(null,arguments):n.moment.parseZone.apply(null,arguments),a(e),e},s.localizeMoment=a,s.getIsAmbigTimezone=function(){return"local"!==s.options.timezone&&"UTC"!==s.options.timezone},s.applyTimezone=function(e){if(!e.hasTime())return e.clone();var t,n=s.moment(e.toArray()),i=e.time()-n.time();return i&&(t=n.clone().add(i),e.time()-t.time()==0&&(n=t)),n},s.getNow=function(){var e=s.options.now;return"function"==typeof e&&(e=e()),s.moment(e).stripZone()},s.getEventEnd=function(e){return e.end?e.end.clone():s.getDefaultEventEnd(e.allDay,e.start)},s.getDefaultEventEnd=function(e,t){var n=t.clone();return e?n.stripTime().add(s.defaultAllDayEventDuration):n.add(s.defaultTimedEventDuration),s.getIsAmbigTimezone()&&n.stripZone(),n},s.humanizeDuration=function(e){return e.locale(s.options.locale).humanize()},(function(){var i=this;i.requestEvents=function(e,t){return!i.options.lazyFetching||h(e,t)?f(e,t):ye.resolve(s)},i.reportEventChange=d,i.isFetchNeeded=h,i.fetchEvents=f,i.fetchEventSources=g,i.refetchEvents=p,i.refetchEventSources=function(e){return g(b(e))},i.getEventSources=function(){return l.slice(1)},i.getEventSourceById=C,i.addEventSource=function(e){var t=T(e);t&&(l.push(t),g([t],"add"))},i.removeEventSource=function(e){y(D(e))},i.removeEventSources=function(e){null==e?y(l,!0):y(b(e))},i.updateEvent=function(e){R([e])},i.updateEvents=R,i.renderEvent=function(e,t){return k([e],t)},i.renderEvents=k,i.removeEvents=function(t){var n,i;null==t?t=function(){return!0}:e.isFunction(t)||(n=t+"",t=function(e){return e._id==n});for(c=e.grep(c,t,!0),i=0;i<l.length;i++)e.isArray(l[i].events)&&(l[i].events=e.grep(l[i].events,t,!0));d()},i.clientEvents=K,i.mutateEvent=M,i.normalizeEventDates=A,i.normalizeEventTimes=P;var o,r,s,a={events:[]},l=[a],u=0,c=[];function d(){s=function(e){var t,n,s=[];for(t=0;t<e.length;t++)(n=e[t]).start.clone().stripZone()<r&&i.getEventEnd(n).stripZone()>o&&s.push(n);return s}(c),i.trigger("eventsReset",s)}function h(e,t){return!o||e<o||t>r}function f(e,t){return o=e,r=t,p()}function p(){return g(l,"reset")}function g(e,t){var n,o;for("reset"===t?c=[]:"add"!==t&&(c=O(c,e)),n=0;n<e.length;n++)"pending"!==(o=e[n])._status&&u++,o._fetchId=(o._fetchId||0)+1,o._status="pending";for(n=0;n<e.length;n++)m(o=e[n],o._fetchId);return u?new ye(function(e){i.one("eventsReceived",e)}):ye.resolve(s)}function m(t,s){!function t(s,a){var l;var u=n.sourceFetchers;var c;for(l=0;l<u.length;l++){if(!0===(c=u[l].call(i,s,o.clone(),r.clone(),i.options.timezone,a)))return;if("object"==typeof c)return void t(c,a)}var d=s.events;if(d)e.isFunction(d)?(i.pushLoading(),d.call(i,o.clone(),r.clone(),i.options.timezone,function(e){a(e),i.popLoading()})):e.isArray(d)?a(d):a();else{var h=s.url;if(h){var f,p=s.success,g=s.error,m=s.complete;f=e.isFunction(s.data)?s.data():s.data;var v=e.extend({},f||{}),E=ee(s.startParam,i.options.startParam),T=ee(s.endParam,i.options.endParam),y=ee(s.timezoneParam,i.options.timezoneParam);E&&(v[E]=o.format()),T&&(v[T]=r.format()),i.options.timezone&&"local"!=i.options.timezone&&(v[y]=i.options.timezone),i.pushLoading(),e.ajax(e.extend({},ot,s,{data:v,success:function(t){t=t||[];var n=J(p,this,arguments);e.isArray(n)&&(t=n),a(t)},error:function(){J(g,this,arguments),a()},complete:function(){J(m,this,arguments),i.popLoading()}}))}else a()}}(t,function(n){var i,o,r,a=e.isArray(t.events);if(s===t._fetchId&&"rejected"!==t._status){if(t._status="resolved",n)for(i=0;i<n.length;i++)o=n[i],(r=a?o:x(o,t))&&c.push.apply(c,B(r));E()}})}function v(e){var t="pending"===e._status;e._status="rejected",t&&E()}function E(){--u||(d(),i.trigger("eventsReceived",s))}function T(t){var o,r,s=n.sourceNormalizers;if(e.isFunction(t)||e.isArray(t)?o={events:t}
1:"string"==typeof t?o={url:t}:"object"==typeof t&&(o=e.extend({},t)),o){for(o.className?"string"==typeof o.className&&(o.className=o.className.split(/\s+/)):o.className=[],e.isArray(o.events)&&(o.origArray=o.events,o.events=e.map(o.events,function(e){return x(e,o)})),r=0;r<s.length;r++)s[r].call(i,o);return o}}function y(t,n){var i;for(i=0;i<t.length;i++)v(t[i]);n?(l=[],c=[]):(l=e.grep(l,function(e){for(i=0;i<t.length;i++)if(e===t[i])return!1;return!0}),c=O(c,t)),d()}function C(t){return e.grep(l,function(e){return e.id&&e.id===t})[0]}function b(t){t?e.isArray(t)||(t=[t]):t=[];var n,i=[];for(n=0;n<t.length;n++)i.push.apply(i,D(t[n]));return i}function D(t){var n,i;for(n=0;n<l.length;n++)if((i=l[n])===t)return[i];return(i=C(t))?[i]:e.grep(l,function(e){return i=e,(n=t)&&i&&I(n)==I(i);var n,i})}function I(e){return("object"==typeof e?e.origArray||e.googleCalendarId||e.url||e.events:null)||e}function O(t,n){return e.grep(t,function(e){for(var t=0;t<n.length;t++)if(e.source===n[t])return!1;return!0})}function R(e){var t,n;for(t=0;t<e.length;t++)(n=e[t]).start=i.moment(n.start),n.end?n.end=i.moment(n.end):n.end=null,M(n,_(n));d()}function _(t){var n={};return e.each(t,function(t,i){w(t)&&void 0!==i&&function(t){return/undefined|null|boolean|number|string/.test(e.type(t))}(i)&&(n[t]=i)}),n}function w(e){return!/^_|^(id|allDay|start|end)$/.test(e)}function k(e,t){var n,i,o,r,s,l=[];for(o=0;o<e.length;o++)if(i=x(e[o])){for(n=B(i),r=0;r<n.length;r++)(s=n[r]).source||(t&&(a.events.push(s),s.source=a),c.push(s));l=l.concat(n)}return l.length&&d(),l}function K(t){return e.isFunction(t)?e.grep(c,t):null!=t?(t+="",e.grep(c,function(e){return e._id==t})):c}function S(e){e.start=i.moment(e.start),e.end&&(e.end=i.moment(e.end)),st(e)}function x(n,o){var r,s,a,l={};if(i.options.eventDataTransform&&(n=i.options.eventDataTransform(n)),o&&o.eventDataTransform&&(n=o.eventDataTransform(n)),e.extend(l,n),o&&(l.source=o),l._id=n._id||(void 0===n.id?"_fc"+rt++:n.id+""),n.className?"string"==typeof n.className?l.className=n.className.split(/\s+/):l.className=n.className:l.className=[],r=n.start||n.date,s=n.end,U(r)&&(r=t.duration(r)),U(s)&&(s=t.duration(s)),n.dow||t.isDuration(r)||t.isDuration(s))l.start=r?t.duration(r):null,l.end=s?t.duration(s):null,l._recurring=!0;else{if(r&&!(r=i.moment(r)).isValid())return!1;s&&((s=i.moment(s)).isValid()||(s=null)),void 0===(a=n.allDay)&&(a=ee(o?o.allDayDefault:void 0,i.options.allDayDefault)),N(r,s,a,l)}return i.normalizeEvent(l),l}function N(e,t,n,i){i.start=e,i.end=t,i.allDay=n,A(i),st(i)}function A(e){P(e),e.end&&!e.end.isAfter(e.start)&&(e.end=null),e.end||(i.options.forceEventDuration?e.end=i.getDefaultEventEnd(e.allDay,e.start):e.end=null)}function P(e){null==e.allDay&&(e.allDay=!(e.start.hasTime()||e.end&&e.end.hasTime())),e.allDay?(e.start.stripTime(),e.end&&e.end.stripTime()):(e.start.hasTime()||(e.start=i.applyTimezone(e.start.time(0))),e.end&&!e.end.hasTime()&&(e.end=i.applyTimezone(e.end.time(0))))}function B(t,n,i){var s,a,l,u,c,d,h,f,p,g=[];if(n=n||o,i=i||r,t)if(t._recurring){if(a=t.dow)for(s={},l=0;l<a.length;l++)s[a[l]]=!0;for(u=n.clone().stripTime();u.isBefore(i);)s&&!s[u.day()]||(c=t.start,d=t.end,h=u.clone(),f=null,c&&(h=h.time(c)),d&&(f=u.clone().time(d)),p=e.extend({},t),N(h,f,!c&&!d,p),g.push(p)),u.add(1,"days")}else g.push(t);return g}function M(n,o,r){var s,a,l,u,c,d,h={};function f(e,n){return r?F(e,n,r):o.allDay?(i=e,s=n,t.duration({days:i.clone().stripTime().diff(s.clone().stripTime(),"days")})):L(e,n);var i,s}return(o=o||{}).start||(o.start=n.start.clone()),void 0===o.end&&(o.end=n.end?n.end.clone():null),null==o.allDay&&(o.allDay=n.allDay),A(o),A(s={start:n._start.clone(),end:n._end?n._end.clone():i.getDefaultEventEnd(n._allDay,n._start),allDay:o.allDay}),a=null!==n._end&&null===o.end,l=f(o.start,s.start),o.end?(u=f(o.end,s.end),c=u.subtract(l)):c=null,e.each(o,function(e,t){w(e)&&void 0!==t&&(h[e]=t)}),d=function(t,n,o,r,s,a){var l=i.getIsAmbigTimezone(),u=[];r&&!r.valueOf()&&(r=null);s&&!s.valueOf()&&(s=null);return e.each(t,function(t,c){var d,h;d={start:c.start.clone(),end:c.end?c.end.clone():null,allDay:c.allDay},e.each(a,function(e){d[e]=c[e]}),A(h={start:c._start,end:c._end,allDay:o}),n?h.end=null:s&&!h.end&&(h.end=i.getDefaultEventEnd(h.allDay,h.start)),r&&(h.start.add(r),h.end&&h.end.add(r)),s&&h.end.add(s),l&&!h.allDay&&(r||s)&&(h.start.stripZone(),h.end&&h.end.stripZone()),e.extend(c,a,h),st(c),u.push(function(){e.extend(c,d),st(c)})}),function(){for(var e=0;e<u.length;e++)u[e]()}}(K(n._id),a,o.allDay,l,c,h),{dateDelta:l,durationDelta:c,undo:d}}e.each((i.options.events?[i.options.events]:[]).concat(i.options.eventSources||[]),function(e,t){var n=T(t);n&&l.push(n)}),i.getEventCache=function(){return c},i.getPrunedEventCache=function(){return s},i.rezoneArrayEventSources=function(){var t,n,i;for(t=0;t<l.length;t++)if(n=l[t].events,e.isArray(n))for(i=0;i<n.length;i++)S(n[i])},i.buildEventFromInput=x,i.expandEvent=B}).call(s);var l,u,c,d,h,f,p,g=i[0],m={},v=0;function E(){return i.is(":visible")}function T(t,n){v++;var i=h&&t&&h.type!==t;i&&(x(),y()),!h&&t&&((h=s.view=m[t]||(m[t]=s.instantiateView(t))).setElement(e("<div class='fc-view fc-"+t+"-view' />").appendTo(d)),l.proxyCall("activateButton",t)),h&&E()&&(n&&h.captureInitialScroll(n),h.setDate(s.currentDate),s.currentDate=h.currentDate,n&&h.releaseScroll()),i&&N(),v--}function y(){l.proxyCall("deactivateButton",h.type),h.removeElement(),h=s.view=null}function C(e){if(E())return e&&D(),v++,h.updateSize(!0),v--,!0}function b(){E()&&D()}function D(){var e=s.options.contentHeight,t=s.options.height;f="number"==typeof e?e:"function"==typeof e?e():"number"==typeof t?t-I():"function"==typeof t?t()-I():"parent"===t?i.parent().height()-I():Math.round(d.width()/Math.max(s.options.aspectRatio,.5))}function I(){return l.items.reduce(function(e,t){var n=t.el?t.el.outerHeight(!0):0;return e+n},0)}function O(e){!v&&e.target===window&&h.renderRange&&C(!0)&&h.publiclyTrigger("windowResize",g)}
1function R(){return{extraClasses:"fc-header-toolbar",layout:s.options.header}}function _(){return{extraClasses:"fc-footer-toolbar",layout:s.options.footer}}function w(){u.setToolbarOptions(R()),u.render(),u.el&&i.prepend(u.el)}function k(){c.setToolbarOptions(_()),c.render(),c.el&&i.append(c.el)}function K(e,t){var n;t=t||"day",n=s.getViewSpec(t)||s.getUnitViewSpec(t),s.currentDate=e.clone(),T(n?n.type:null)}this.initCurrentDate(),s.renderView=T,s.getSuggestedViewHeight=function(){return void 0===f&&b(),f},s.isHeightAuto=function(){return"auto"===s.options.contentHeight||"auto"===s.options.height},s.setToolbarsTitle=function(e){l.proxyCall("updateTitle",e)},s.updateToolbarButtons=function(){var e=s.getNow(),t=h.buildDateProfile(e),n=h.buildPrevDateProfile(s.currentDate),i=h.buildNextDateProfile(s.currentDate);l.proxyCall(t.isValid&&!z(e,h.currentRange)?"enableButton":"disableButton","today"),l.proxyCall(n.isValid?"enableButton":"disableButton","prev"),l.proxyCall(i.isValid?"enableButton":"disableButton","next")},s.freezeContentHeight=x,s.thawContentHeight=N;var S=0;function x(){S++||d.css({width:"100%",height:d.height(),overflow:"hidden"})}function N(){--S||d.css({width:"",height:"",overflow:""})}function A(e){var t,n=0;for(t in P(e),e)n++;if(1===n){if("height"===t||"contentHeight"===t||"aspectRatio"===t)return void C(!0);if("defaultDate"===t)return;if("businessHours"===t)return void(h&&(h.unrenderBusinessHours(),h.renderBusinessHours()));if("timezone"===t)return s.rezoneArrayEventSources(),void s.refetchEvents()}w(),k(),m={},function(){v++,x();var e=h.type,t=h.queryScroll();y(),b(),T(e,t),N(),v--}()}function P(e){var t;for(t in e)s.dynamicOverrides[t]=e[t];for(t in s.viewSpecCache={},s.populateOptionsHash(),e)s.triggerOptionHandlers(t)}s.initialize()},initialize:function(){},populateOptionsHash:function(){var e,t,n;e=ee(this.dynamicOverrides.locale,this.overrides.locale),(t=Qe[e])||(e=Ze.defaults.locale,t=Qe[e]||{}),n=ee(this.dynamicOverrides.isRTL,this.overrides.isRTL,t.isRTL,Ze.defaults.isRTL)?Ze.rtlDefaults:{},this.dirDefaults=n,this.localeDefaults=t,this.options=r([Ze.defaults,n,t,this.overrides,this.dynamicOverrides]),nt(this.options)},getViewSpec:function(e){var t=this.viewSpecCache;return t[e]||(t[e]=this.buildViewSpec(e))},getUnitViewSpec:function(t){var i,o,r;if(-1!=e.inArray(t,A))for(i=this.header.getViewsWithButtons(),e.each(n.views,function(e){i.push(e)}),o=0;o<i.length;o++)if((r=this.getViewSpec(i[o]))&&r.singleUnit==t)return r},buildViewSpec:function(e){for(var n,o,s,a,l,u=this.overrides.views||{},c=[],d=[],h=[],f=e;f;)n=i[f],o=u[f],f=null,"function"==typeof n&&(n={class:n}),n&&(c.unshift(n),d.unshift(n.defaults||{}),s=s||n.duration,f=f||n.type),o&&(h.unshift(o),s=s||o.duration,f=f||o.type);return(n=Y(c)).type=e,!!n.class&&((s=s||this.dynamicOverrides.duration||this.overrides.duration)&&(a=t.duration(s)).valueOf()&&(l=B(a,s),n.duration=a,n.durationUnit=l,1===a.as(l)&&(n.singleUnit=l,h.unshift(u[l]||{}))),n.defaults=r(d),n.overrides=r(h),this.buildViewSpecOptions(n),this.buildViewSpecButtonText(n,e),n)},buildViewSpecOptions:function(e){e.options=r([Ze.defaults,e.defaults,this.dirDefaults,this.localeDefaults,this.overrides,e.overrides,this.dynamicOverrides]),nt(e.options)},buildViewSpecButtonText:function(e,t){function n(n){var i=n.buttonText||{};return i[t]||(e.buttonTextKey?i[e.buttonTextKey]:null)||(e.singleUnit?i[e.singleUnit]:null)}e.buttonTextOverride=n(this.dynamicOverrides)||n(this.overrides)||e.overrides.buttonText,e.buttonTextDefault=n(this.localeDefaults)||n(this.dirDefaults)||e.defaults.buttonText||n(Ze.defaults)||(e.duration?this.humanizeDuration(e.duration):null)||t},instantiateView:function(e){var t=this.getViewSpec(e);return new t.class(this,t)},isValidViewType:function(e){return Boolean(this.getViewSpec(e))},pushLoading:function(){this.loadingLevel++||this.publiclyTrigger("loading",null,!0,this.view)},popLoading:function(){--this.loadingLevel||this.publiclyTrigger("loading",null,!1,this.view)},buildSelectSpan:function(e,t){var n=this.moment(e).stripZone();return{start:n,end:t?this.moment(t).stripZone():n.hasTime()?n.clone().add(this.defaultTimedEventDuration):n.clone().add(this.defaultAllDayEventDuration)}},initCurrentDate:function(){null!=this.options.defaultDate?this.currentDate=this.moment(this.options.defaultDate).stripZone():this.currentDate=this.getNow()},changeView:function(e,t){t&&(t.start&&t.end?this.recordOptionOverrides({visibleRange:t}):this.currentDate=this.moment(t).stripZone()),this.renderView(e)},prev:function(){var e=this.view.buildPrevDateProfile(this.currentDate);
1e.isValid&&(this.currentDate=e.date,this.renderView())},next:function(){var e=this.view.buildNextDateProfile(this.currentDate);e.isValid&&(this.currentDate=e.date,this.renderView())},prevYear:function(){this.currentDate.add(-1,"years"),this.renderView()},nextYear:function(){this.currentDate.add(1,"years"),this.renderView()},today:function(){this.currentDate=this.getNow(),this.renderView()},gotoDate:function(e){this.currentDate=this.moment(e).stripZone(),this.renderView()},incrementDate:function(e){this.currentDate.add(t.duration(e)),this.renderView()},getDate:function(){return this.applyTimezone(this.currentDate)},parseRange:function(e){var t=null,n=null;return e.start&&(t=this.moment(e.start).stripZone()),e.end&&(n=this.moment(e.end).stripZone()),t||n?t&&n&&n.isBefore(t)?null:{start:t,end:n}:null}});Ze.mixin(De),Ze.mixin({optionHandlers:null,bindOption:function(e,t){this.bindOptions([e],t)},bindOptions:function(e,t){var n,i={func:t,names:e};for(n=0;n<e.length;n++)this.registerOptionHandlerObj(e[n],i);this.triggerOptionHandlerObj(i)},registerOptionHandlerObj:function(e,t){(this.optionHandlers[e]||(this.optionHandlers[e]=[])).push(t)},triggerOptionHandlers:function(e){var t,n=this.optionHandlers[e]||[];for(t=0;t<n.length;t++)this.triggerOptionHandlerObj(n[t])},triggerOptionHandlerObj:function(e){var t,n=e.names,i=[];for(t=0;t<n.length;t++)i.push(this.options[n[t]]);e.func.apply(this,i)}}),Ze.defaults={titleRangeSeparator:" \u2013 ",monthYearFormat:"MMMM YYYY",defaultTimedEventDuration:"02:00:00",defaultAllDayEventDuration:{days:1},forceEventDuration:!1,nextDayThreshold:"09:00:00",defaultView:"month",aspectRatio:1.35,header:{left:"title",center:"",right:"today prev,next"},weekends:!0,weekNumbers:!1,weekNumberTitle:"W",weekNumberCalculation:"local",scrollTime:"06:00:00",minTime:"00:00:00",maxTime:"24:00:00",showNonCurrentDates:!0,lazyFetching:!0,startParam:"start",endParam:"end",timezoneParam:"timezone",timezone:!1,isRTL:!1,buttonText:{prev:"prev",next:"next",prevYear:"prev year",nextYear:"next year",year:"year",today:"today",month:"month",week:"week",day:"day"},buttonIcons:{prev:"left-single-arrow",next:"right-single-arrow",prevYear:"left-double-arrow",nextYear:"right-double-arrow"},allDayText:"all-day",theme:!1,themeButtonIcons:{prev:"circle-triangle-w",next:"circle-triangle-e",prevYear:"seek-prev",nextYear:"seek-next"},dragOpacity:.75,dragRevertDuration:500,dragScroll:!0,unselectAuto:!0,dropAccept:"*",eventOrder:"title",eventLimit:!1,eventLimitText:"more",eventLimitClick:"popover",dayPopoverFormat:"LL",handleWindowResize:!0,windowResizeDelay:100,longPressDelay:1e3},Ze.englishDefaults={dayPopoverFormat:"dddd, MMMM D"},Ze.rtlDefaults={header:{left:"next,prev today",center:"",right:"title"},buttonIcons:{prev:"right-single-arrow",next:"left-single-arrow",prevYear:"right-double-arrow",nextYear:"left-double-arrow"},themeButtonIcons:{prev:"circle-triangle-e",next:"circle-triangle-w",nextYear:"seek-prev",prevYear:"seek-next"}};var Qe=n.locales={};n.datepickerLocale=function(t,n,i){var o=Qe[t]||(Qe[t]={});o.isRTL=i.isRTL,o.weekNumberTitle=i.weekHeader,e.each(Je,function(e,t){o[e]=t(i)}),e.datepicker&&(e.datepicker.regional[n]=e.datepicker.regional[t]=i,e.datepicker.regional.en=e.datepicker.regional[""],e.datepicker.setDefaults(i))},n.locale=function(t,n){var i,o;i=Qe[t]||(Qe[t]={}),n&&(i=Qe[t]=r([i,n])),o=it(t),e.each(et,function(e,t){null==i[e]&&(i[e]=t(o,i))}),Ze.defaults.locale=t};var Je={buttonText:function(e){return{prev:ne(e.prevText),next:ne(e.nextText),today:ne(e.currentText)}},monthYearFormat:function(e){return e.showMonthAfterYear?"YYYY["+e.yearSuffix+"] MMMM":"MMMM YYYY["+e.yearSuffix+"]"}},et={dayOfMonthFormat:function(e,t){var n=e.longDateFormat("l");return n=n.replace(/^Y+[^\w\s]*|[^\w\s]*Y+$/g,""),t.isRTL?n+=" ddd":n="ddd "+n,n},mediumTimeFormat:function(e){return e.longDateFormat("LT").replace(/\s*a$/i,"a")},smallTimeFormat:function(e){return e.longDateFormat("LT").replace(":mm","(:mm)").replace(/(\Wmm)$/,"($1)").replace(/\s*a$/i,"a")},extraSmallTimeFormat:function(e){return e.longDateFormat("LT").replace(":mm","(:mm)").replace(/(\Wmm)$/,"($1)").replace(/\s*a$/i,"t")},hourFormat:function(e){return e.longDateFormat("LT").replace(":mm","").replace(/(\Wmm)$/,"").replace(/\s*a$/i,"a")},noMeridiemTimeFormat:function(e){return e.longDateFormat("LT").replace(/\s*a$/i,"")}},tt={smallDayDateFormat:function(e){return e.isRTL?"D dd":"dd D"},weekFormat:function(e){return e.isRTL?"w[ "+e.weekNumberTitle+"]":"["+e.weekNumberTitle+" ]w"},smallWeekFormat:function(e){return e.isRTL?"w["+e.weekNumberTitle+"]":"["+e.weekNumberTitle+"]w"}};
1function nt(t){e.each(tt,function(e,n){null==t[e]&&(t[e]=n(t))})}function it(e){return t.localeData(e)||t.localeData("en")}n.locale("en",Ze.englishDefaults),n.sourceNormalizers=[],n.sourceFetchers=[];var ot={dataType:"json",cache:!1},rt=1;function st(e){e._allDay=e.allDay,e._start=e.start.clone(),e._end=e.end?e.end.clone():null}Ze.prototype.mutateSeg=function(e,t){return this.mutateEvent(e.event,t)},Ze.prototype.normalizeEvent=function(e){},Ze.prototype.spanContainsSpan=function(e,t){var n=e.start.clone().stripZone(),i=this.getEventEnd(e).stripZone();return t.start>=n&&t.end<=i},Ze.prototype.getPeerEvents=function(e,t){var n,i,o=this.getEventCache(),r=[];for(n=0;n<o.length;n++)i=o[n],t&&t._id===i._id||r.push(i);return r},Ze.prototype.isEventSpanAllowed=function(e,t){var n=t.source||{},i=ee(t.constraint,n.constraint,this.options.eventConstraint),o=ee(t.overlap,n.overlap,this.options.eventOverlap);return this.isSpanAllowed(e,i,o,t)&&(!this.options.eventAllow||!1!==this.options.eventAllow(e,t))},Ze.prototype.isExternalSpanAllowed=function(t,n,i){var o,r;return i&&(o=e.extend({},i,n),r=this.expandEvent(this.buildEventFromInput(o))[0]),r?this.isEventSpanAllowed(t,r):this.isSelectionSpanAllowed(t)},Ze.prototype.isSelectionSpanAllowed=function(e){return this.isSpanAllowed(e,this.options.selectConstraint,this.options.selectOverlap)&&(!this.options.selectAllow||!1!==this.options.selectAllow(e))},Ze.prototype.isSpanAllowed=function(e,t,n,i){var o,r,s,a,l,u;if(null!=t&&(o=this.constraintToEvents(t))){for(r=!1,a=0;a<o.length;a++)if(this.spanContainsSpan(o[a],e)){r=!0;break}if(!r)return!1}for(s=this.getPeerEvents(e,i),a=0;a<s.length;a++)if(l=s[a],this.eventIntersectsRange(l,e)){if(!1===n)return!1;if("function"==typeof n&&!n(l,i))return!1;if(i){if(!1===(u=ee(l.overlap,(l.source||{}).overlap)))return!1;if("function"==typeof u&&!u(i,l))return!1}}return!0},Ze.prototype.constraintToEvents=function(e){return"businessHours"===e?this.getCurrentBusinessHourEvents():"object"==typeof e?null!=e.start?this.expandEvent(this.buildEventFromInput(e)):null:this.clientEvents(e)},Ze.prototype.eventIntersectsRange=function(e,t){var n=e.start.clone().stripZone(),i=this.getEventEnd(e).stripZone();return t.start<i&&t.end>n};var at={id:"_fcBusinessHours",start:"09:00",end:"17:00",dow:[1,2,3,4,5],rendering:"inverse-background"};Ze.prototype.getCurrentBusinessHourEvents=function(e){return this.computeBusinessHourEvents(e,this.options.businessHours)},Ze.prototype.computeBusinessHourEvents=function(t,n){return!0===n?this.expandBusinessHourEvents(t,[{}]):e.isPlainObject(n)?this.expandBusinessHourEvents(t,[n]):e.isArray(n)?this.expandBusinessHourEvents(t,n,!0):[]},Ze.prototype.expandBusinessHourEvents=function(t,n,i){var o,r,s=this.getView(),a=[];for(o=0;o<n.length;o++)r=n[o],i&&!r.dow||(r=e.extend({},at,r),t&&(r.start=null,r.end=null),a.push.apply(a,this.expandEvent(this.buildEventFromInput(r),s.activeRange.start,s.activeRange.end)));return a};var lt=n.BasicView=Ue.extend({scroller:null,dayGridClass:He,dayGrid:null,dayNumbersVisible:!1,colWeekNumbersVisible:!1,cellWeekNumbersVisible:!1,weekNumberWidth:null,headContainerEl:null,headRowEl:null,initialize:function(){this.dayGrid=this.instantiateDayGrid(),this.scroller=new Ge({overflowX:"hidden",overflowY:"auto"})},instantiateDayGrid:function(){return new(this.dayGridClass.extend(ut))(this)},buildRenderRange:function(e,t){var n=Ue.prototype.buildRenderRange.apply(this,arguments);return/^(year|month)$/.test(t)&&(n.start.startOf("week"),n.end.weekday()&&n.end.add(1,"week").startOf("week")),this.trimHiddenDays(n)},renderDates:function(){this.dayGrid.breakOnWeeks=/year|month|week/.test(this.currentRangeUnit),this.dayGrid.setRange(this.renderRange),this.dayNumbersVisible=this.dayGrid.rowCnt>1,this.opt("weekNumbers")&&(this.opt("weekNumbersWithinDays")?(this.cellWeekNumbersVisible=!0,this.colWeekNumbersVisible=!1):(this.cellWeekNumbersVisible=!1,this.colWeekNumbersVisible=!0)),this.dayGrid.numbersVisible=this.dayNumbersVisible||this.cellWeekNumbersVisible||this.colWeekNumbersVisible,this.el.addClass("fc-basic-view").html(this.renderSkeletonHtml()),this.renderHead(),this.scroller.render();var t=this.scroller.el.addClass("fc-day-grid-container"),n=e('<div class="fc-day-grid" />').appendTo(t);this.el.find(".fc-body > tr > td").append(t),this.dayGrid.setElement(n),this.dayGrid.renderDates(this.hasRigidRows())},renderHead:function(){this.headContainerEl=this.el.find(".fc-head-container").html(this.dayGrid.renderHeadHtml()),this.headRowEl=this.headContainerEl.find(".fc-row")},unrenderDates:function(){this.dayGrid.unrenderDates(),this.dayGrid.removeElement(),this.scroller.destroy()},renderBusinessHours:function(){this.dayGrid.renderBusinessHours()},unrenderBusinessHours:function(){this.dayGrid.unrenderBusinessHours()},renderSkeletonHtml:function(){return'<table><thead class="fc-head"><tr><td class="fc-head-container '+this.widgetHeaderClass+'"></td></tr></thead><tbody class="fc-body"><tr><td class="'+this.widgetContentClass+'"></td></tr></tbody></table>'},weekNumberStyleAttr:function(){return null!==this.weekNumberWidth?'style="width:'+this.weekNumberWidth+'px"':""},hasRigidRows:function(){var e=this.opt("eventLimit");return e&&"number"!=typeof e},updateWidth:function(){this.colWeekNumbersVisible&&(this.weekNumberWidth=h(this.el.find(".fc-week-number")))},setHeight:function(e,t){var n,i,o=this.opt("eventLimit");this.scroller.clear(),a(this.headRowEl),this.dayGrid.removeSegPopover(),o&&"number"==typeof o&&this.dayGrid.limitRows(o),n=this.computeScrollerHeight(e),this.setGridHeight(n,t),o&&"number"!=typeof o&&this.dayGrid.limitRows(o),t||(this.scroller.setHeight(n),((i=this.scroller.getScrollbarWidths()).left||i.right)&&(s(this.headRowEl,i),n=this.computeScrollerHeight(e),this.scroller.setHeight(n)),this.scroller.lockOverflow(i))},computeScrollerHeight:function(e){return e-f(this.el,this.scroller.el)},setGridHeight:function(e,t){t?d(this.dayGrid.rowEls):c(this.dayGrid.rowEls,e,!0)},computeInitialScroll:function(){return{top:0}},queryScroll:function(){return{top:this.scroller.getScrollTop()}},setScroll:function(e){this.scroller.setScrollTop(e.top)},hitsNeeded:function(){this.dayGrid.hitsNeeded()},hitsNotNeeded:function(){this.dayGrid.hitsNotNeeded()},prepareHits:function(){this.dayGrid.prepareHits()},releaseHits:function(){this.dayGrid.releaseHits()},queryHit:function(e,t){return this.dayGrid.queryHit(e,t)},getHitSpan:function(e){return this.dayGrid.getHitSpan(e)},getHitEl:function(e){return this.dayGrid.getHitEl(e)},renderEvents:function(e){this.dayGrid.renderEvents(e),this.updateHeight()},getEventSegs:function(){return this.dayGrid.getEventSegs()},unrenderEvents:function(){this.dayGrid.unrenderEvents()},renderDrag:function(e,t){return this.dayGrid.renderDrag(e,t)},unrenderDrag:function(){this.dayGrid.unrenderDrag()},renderSelection:function(e){this.dayGrid.renderSelection(e)},unrenderSelection:function(){this.dayGrid.unrenderSelection()}}),ut={renderHeadIntroHtml:function(){var e=this.view;return e.colWeekNumbersVisible?'<th class="fc-week-number '+e.widgetHeaderClass+'" '+e.weekNumberStyleAttr()+"><span>"+te(e.opt("weekNumberTitle"))+"</span></th>":""},renderNumberIntroHtml:function(e){var t=this.view,n=this.getCellDate(e,0);return t.colWeekNumbersVisible?'<td class="fc-week-number" '+t.weekNumberStyleAttr()+">"+t.buildGotoAnchorHtml({date:n,type:"week",forceOff:1===this.colCnt},n.format("w"))+"</td>":""},renderBgIntroHtml:function(){var e=this.view;return e.colWeekNumbersVisible?'<td class="fc-week-number '+e.widgetContentClass+'" '+e.weekNumberStyleAttr()+"></td>":""},renderIntroHtml:function(){var e=this.view;return e.colWeekNumbersVisible?'<td class="fc-week-number" '+e.weekNumberStyleAttr()+"></td>":""}},ct=n.MonthView=lt.extend({buildRenderRange:function(){var e,t=lt.prototype.buildRenderRange.apply(this,arguments);return this.isFixedWeeks()&&(e=Math.ceil(t.end.diff(t.start,"weeks",!0)),t.end.add(6-e,"weeks")),t},setGridHeight:function(e,t){t&&(e*=this.rowCnt/6),c(this.dayGrid.rowEls,e,!t)},isFixedWeeks:function(){return this.opt("fixedWeekCount")}});i.basic={class:lt},i.basicDay={type:"basic",duration:{days:1}},i.basicWeek={type:"basic",duration:{weeks:1}},i.month={class:ct,duration:{months:1},defaults:{fixedWeekCount:!0}};var dt=n.AgendaView=Ue.extend({scroller:null,timeGridClass:ze,timeGrid:null,dayGridClass:He,dayGrid:null,axisWidth:null,headContainerEl:null,noScrollRowEls:null,bottomRuleEl:null,usesMinMaxTime:!0,initialize:function(){this.timeGrid=this.instantiateTimeGrid(),this.opt("allDaySlot")&&(this.dayGrid=this.instantiateDayGrid()),this.scroller=new Ge({overflowX:"hidden",overflowY:"auto"})},instantiateTimeGrid:function(){return new(this.timeGridClass.extend(ht))(this)},instantiateDayGrid:function(){return new(this.dayGridClass.extend(ft))(this)},renderDates:function(){this.timeGrid.setRange(this.renderRange),this.dayGrid&&this.dayGrid.setRange(this.renderRange),this.el.addClass("fc-agenda-view").html(this.renderSkeletonHtml()),this.renderHead(),this.scroller.render();var t=this.scroller.el.addClass("fc-time-grid-container"),n=e('<div class="fc-time-grid" />').appendTo(t);this.el.find(".fc-body > tr > td").append(t),this.timeGrid.setElement(n),this.timeGrid.renderDates(),this.bottomRuleEl=e('<hr class="fc-divider '+this.widgetHeaderClass+'"/>').appendTo(this.timeGrid.el),this.dayGrid&&(this.dayGrid.setElement(this.el.find(".fc-day-grid")),this.dayGrid.renderDates(),this.dayGrid.bottomCoordPadding=this.dayGrid.el.next("hr").outerHeight()),this.noScrollRowEls=this.el.find(".fc-row:not(.fc-scroller *)")},renderHead:function(){this.headContainerEl=this.el.find(".fc-head-container").html(this.timeGrid.renderHeadHtml())},unrenderDates:function(){this.timeGrid.unrenderDates(),this.timeGrid.removeElement(),this.dayGrid&&(this.dayGrid.unrenderDates(),this.dayGrid.removeElement()),this.scroller.destroy()},renderSkeletonHtml:function(){return'<table><thead class="fc-head"><tr><td class="fc-head-container '+this.widgetHeaderClass+'"></td></tr></thead><tbody class="fc-body"><tr><td class="'+this.widgetContentClass+'">'+(this.dayGrid?'<div class="fc-day-grid"/><hr class="fc-divider '+this.widgetHeaderClass+'"/>':"")+"</td></tr></tbody></table>"},axisStyleAttr:function(){return null!==this.axisWidth?'style="width:'+this.axisWidth+'px"':""},renderBusinessHours:function(){this.timeGrid.renderBusinessHours(),this.dayGrid&&this.dayGrid.renderBusinessHours()},unrenderBusinessHours:function(){this.timeGrid.unrenderBusinessHours(),this.dayGrid&&this.dayGrid.unrenderBusinessHours()},getNowIndicatorUnit:function(){return this.timeGrid.getNowIndicatorUnit()},renderNowIndicator:function(e){this.timeGrid.renderNowIndicator(e)},unrenderNowIndicator:function(){this.timeGrid.unrenderNowIndicator()},updateSize:function(e){this.timeGrid.updateSize(e),Ue.prototype.updateSize.call(this,e)},updateWidth:function(){this.axisWidth=h(this.el.find(".fc-axis"))},setHeight:function(e,t){var n,i,o;this.bottomRuleEl.hide(),this.scroller.clear(),a(this.noScrollRowEls),this.dayGrid&&(this.dayGrid.removeSegPopover(),(n=this.opt("eventLimit"))&&"number"!=typeof n&&(n=pt),n&&this.dayGrid.limitRows(n)),t||(i=this.computeScrollerHeight(e),this.scroller.setHeight(i),((o=this.scroller.getScrollbarWidths()).left||o.right)&&(s(this.noScrollRowEls,o),i=this.computeScrollerHeight(e),this.scroller.setHeight(i)),this.scroller.lockOverflow(o),this.timeGrid.getTotalSlatHeight()<i&&this.bottomRuleEl.show())},computeScrollerHeight:function(e){return e-f(this.el,this.scroller.el)},computeInitialScroll:function(){var e=t.duration(this.opt("scrollTime")),n=this.timeGrid.computeTimeTop(e);return(n=Math.ceil(n))&&n++,{top:n}},queryScroll:function(){return{top:this.scroller.getScrollTop()}},setScroll:function(e){this.scroller.setScrollTop(e.top)},hitsNeeded:function(){this.timeGrid.hitsNeeded(),this.dayGrid&&this.dayGrid.hitsNeeded()},hitsNotNeeded:function(){this.timeGrid.hitsNotNeeded(),this.dayGrid&&this.dayGrid.hitsNotNeeded()},prepareHits:function(){this.timeGrid.prepareHits(),this.dayGrid&&this.dayGrid.prepareHits()},releaseHits:function(){this.timeGrid.releaseHits(),this.dayGrid&&this.dayGrid.releaseHits()},queryHit:function(e,t){var n=this.timeGrid.queryHit(e,t);return!n&&this.dayGrid&&(n=this.dayGrid.queryHit(e,t)),n},getHitSpan:function(e){return e.component.getHitSpan(e)},getHitEl:function(e){return e.component.getHitEl(e)},renderEvents:function(e){var t,n=[],i=[];for(t=0;t<e.length;t++)e[t].allDay?n.push(e[t]):i.push(e[t]);this.timeGrid.renderEvents(i),this.dayGrid&&this.dayGrid.renderEvents(n),this.updateHeight()},getEventSegs:function(){return this.timeGrid.getEventSegs().concat(this.dayGrid?this.dayGrid.getEventSegs():[])},unrenderEvents:function(){this.timeGrid.unrenderEvents(),this.dayGrid&&this.dayGrid.unrenderEvents()},renderDrag:function(e,t){return e.start.hasTime()?this.timeGrid.renderDrag(e,t):this.dayGrid?this.dayGrid.renderDrag(e,t):void 0},unrenderDrag:function(){this.timeGrid.unrenderDrag(),this.dayGrid&&this.dayGrid.unrenderDrag()},renderSelection:function(e){e.start.hasTime()||e.end.hasTime()?this.timeGrid.renderSelection(e):this.dayGrid&&this.dayGrid.renderSelection(e)},unrenderSelection:function(){this.timeGrid.unrenderSelection(),this.dayGrid&&this.dayGrid.unrenderSelection()}}),ht={renderHeadIntroHtml:function(){var e,t=this.view;return t.opt("weekNumbers")?(e=this.start.format(t.opt("smallWeekFormat")),'<th class="fc-axis fc-week-number '+t.widgetHeaderClass+'" '+t.axisStyleAttr()+">"+t.buildGotoAnchorHtml({date:this.start,type:"week",forceOff:this.colCnt>1},te(e))+"</th>"):'<th class="fc-axis '+t.widgetHeaderClass+'" '+t.axisStyleAttr()+"></th>"},renderBgIntroHtml:function(){var e=this.view;return'<td class="fc-axis '+e.widgetContentClass+'" '+e.axisStyleAttr()+"></td>"},renderIntroHtml:function(){return'<td class="fc-axis" '+this.view.axisStyleAttr()+"></td>"}},ft={renderBgIntroHtml:function(){var e=this.view;return'<td class="fc-axis '+e.widgetContentClass+'" '+e.axisStyleAttr()+"><span>"+e.getAllDayHtml()+"</span></td>"},renderIntroHtml:function(){return'<td class="fc-axis" '+this.view.axisStyleAttr()+"></td>"}},pt=5,gt=[{hours:1},{minutes:30},{minutes:15},{seconds:30},{seconds:15}];i.agenda={class:dt,defaults:{allDaySlot:!0,slotDuration:"00:30:00",slotEventOverlap:!0}},i.agendaDay={type:"agenda",duration:{days:1}},i.agendaWeek={type:"agenda",duration:{weeks:1}};
1var mt=Ue.extend({grid:null,scroller:null,initialize:function(){this.grid=new vt(this),this.scroller=new Ge({overflowX:"hidden",overflowY:"auto"})},renderSkeleton:function(){this.el.addClass("fc-list-view "+this.widgetContentClass),this.scroller.render(),this.scroller.el.appendTo(this.el),this.grid.setElement(this.scroller.scrollEl)},unrenderSkeleton:function(){this.scroller.destroy()},setHeight:function(e,t){this.scroller.setHeight(this.computeScrollerHeight(e))},computeScrollerHeight:function(e){return e-f(this.el,this.scroller.el)},renderDates:function(){this.grid.setRange(this.renderRange)},renderEvents:function(e){this.grid.renderEvents(e)},unrenderEvents:function(){this.grid.unrenderEvents()},isEventResizable:function(e){return!1},isEventDraggable:function(e){return!1}}),vt=Le.extend({segSelector:".fc-list-item",hasDayInteractions:!1,spanToSegs:function(e){for(var t,n=this.view,i=n.renderRange.start.clone().time(0),o=0,r=[];i<n.renderRange.end;)if((t=x(e,{start:i,end:i.clone().add(1,"day")}))&&(t.dayIndex=o,r.push(t)),i.add(1,"day"),o++,t&&!t.isEnd&&e.end.hasTime()&&e.end<i.clone().add(this.view.nextDayThreshold)){t.end=e.end.clone(),t.isEnd=!0;break}return r},computeEventTimeFormat:function(){return this.view.opt("mediumTimeFormat")},handleSegClick:function(t,n){var i;Le.prototype.handleSegClick.apply(this,arguments),e(n.target).closest("a[href]").length||(i=t.event.url)&&!n.isDefaultPrevented()&&(window.location.href=i)},renderFgSegs:function(e){return(e=this.renderFgSegEls(e)).length?this.renderSegList(e):this.renderEmptyMessage(),e},renderEmptyMessage:function(){this.el.html('<div class="fc-list-empty-wrap2"><div class="fc-list-empty-wrap1"><div class="fc-list-empty">'+te(this.view.opt("noEventsMessage"))+"</div></div></div>")},renderSegList:function(t){var n,i,o,r=this.groupSegsByDay(t),s=e('<table class="fc-list-table"><tbody/></table>'),a=s.find("tbody");for(n=0;n<r.length;n++)if(i=r[n])for(a.append(this.dayHeaderHtml(this.view.renderRange.start.clone().add(n,"days"))),this.sortEventSegs(i),o=0;o<i.length;o++)a.append(i[o].el);this.el.empty().append(s)},groupSegsByDay:function(e){var t,n,i=[];for(t=0;t<e.length;t++)(i[(n=e[t]).dayIndex]||(i[n.dayIndex]=[])).push(n);return i},dayHeaderHtml:function(e){var t=this.view,n=t.opt("listDayFormat"),i=t.opt("listDayAltFormat");return'<tr class="fc-list-heading" data-date="'+e.format("YYYY-MM-DD")+'"><td class="'+t.widgetHeaderClass+'" colspan="3">'+(n?t.buildGotoAnchorHtml(e,{class:"fc-list-heading-main"},te(e.format(n))):"")+(i?t.buildGotoAnchorHtml(e,{class:"fc-list-heading-alt"},te(e.format(i))):"")+"</td></tr>"},fgSegHtml:function(e){var t,n=this.view,i=["fc-list-item"].concat(this.getSegCustomClasses(e)),o=this.getSegBackgroundColor(e),r=e.event,s=r.url;return t=r.allDay?n.getAllDayHtml():n.isMultiDayEvent(r)?e.isStart||e.isEnd?te(this.getEventTimeText(e)):n.getAllDayHtml():te(this.getEventTimeText(r)),s&&i.push("fc-has-url"),'<tr class="'+i.join(" ")+'">'+(this.displayEventTime?'<td class="fc-list-item-time '+n.widgetContentClass+'">'+(t||"")+"</td>":"")+'<td class="fc-list-item-marker '+n.widgetContentClass+'"><span class="fc-event-dot"'+(o?' style="background-color:'+o+'"':"")+'></span></td><td class="fc-list-item-title '+n.widgetContentClass+'"><a'+(s?' href="'+te(s)+'"':"")+">"+te(e.event.title||"")+"</a></td></tr>"}});return i.list={class:mt,buttonTextKey:"list",defaults:{buttonText:"list",listDayFormat:"LL",noEventsMessage:"No events to display"}},i.listDay={type:"list",duration:{days:1},defaults:{listDayFormat:"dddd"}},i.listWeek={type:"list",duration:{weeks:1},defaults:{listDayFormat:"dddd",listDayAltFormat:"LL"}},i.listMonth={type:"list",duration:{month:1},defaults:{listDayAltFormat:"dddd"}},i.listYear={type:"list",duration:{year:1},defaults:{listDayAltFormat:"dddd"}},n}),function(e,t,n){!function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery"],e):jQuery&&!jQuery.fn.qtip&&e(jQuery)}(function(i){"use strict";function o(e,t,n,o){this.id=n,this.target=e,this.tooltip=K,this.elements={target:e},this._id=q+"-"+n,this.timers={img:{}},this.options=t,this.plugins={},this.cache={event:{},target:i(),disabled:k,attr:o,onTooltip:k,lastClass:""},this.rendered=this.destroyed=this.disabled=this.waiting=this.hiddenDuringWait=this.positioning=this.triggering=k}function r(e){return e===K||"object"!==i.type(e)}function s(e){return!(i.isFunction(e)||e&&e.attr||e.length||"object"===i.type(e)&&(e.jquery||e.then))}function a(e){var t,n,o,a;return r(e)?k:(r(e.metadata)&&(e.metadata={type:e.metadata}),"content"in e&&(r(t=e.content)||t.jquery||t.done?(n=s(t)?k:t,t=e.content={text:n}):n=t.text,"ajax"in t&&(o=t.ajax,a=o&&o.once!==k,delete t.ajax,t.text=function(e,t){var r=n||i(this).attr(t.options.content.attr)||"Loading...",s=i.ajax(i.extend({},o,{context:t})).then(o.success,K,o.error).then(function(e){return e&&a&&t.set("content.text",e),e}
vendor: 4,353 bytes, line 1
1,function(e,n,i){t.destroyed||0===e.status||t.set("content.text",n+": "+i)});return a?r:(t.set("content.text",r),s)}),"title"in t&&(i.isPlainObject(t.title)&&(t.button=t.title.button,t.title=t.title.text),s(t.title||k)&&(t.title=k))),"position"in e&&r(e.position)&&(e.position={my:e.position,at:e.position}),"show"in e&&r(e.show)&&(e.show=e.show.jquery?{target:e.show}:e.show===w?{ready:w}:{event:e.show}),"hide"in e&&r(e.hide)&&(e.hide=e.hide.jquery?{target:e.hide}:{event:e.hide}),"style"in e&&r(e.style)&&(e.style={classes:e.style}),i.each(j,function(){this.sanitize&&this.sanitize(e)}),e)}function l(e,t){for(var n,i=0,o=e,r=t.split(".");o=o[r[i++]];)i<r.length&&(n=o);return[n||e,r.pop()]}function u(e,t){var n,i,o;for(n in this.checks)if(this.checks.hasOwnProperty(n))for(i in this.checks[n])this.checks[n].hasOwnProperty(i)&&(o=new RegExp(i,"i").exec(e))&&(t.push(o),("builtin"===n||this.plugins[n])&&this.checks[n][i].apply(this.plugins[n]||this,t))}function c(e){return V.concat("").join(e?"-"+e+" ":" ")}function d(e,t){return t>0?setTimeout(i.proxy(e,this),t):void e.call(this)}function h(e){this.tooltip.hasClass(J)||(clearTimeout(this.timers.show),clearTimeout(this.timers.hide),this.timers.show=d.call(this,function(){this.toggle(w,e)},this.options.show.delay))}function f(e){if(!this.tooltip.hasClass(J)&&!this.destroyed){var t=i(e.relatedTarget),n=t.closest(U)[0]===this.tooltip[0],o=t[0]===this.options.show.target[0];if(clearTimeout(this.timers.show),clearTimeout(this.timers.hide),this!==t[0]&&"mouse"===this.options.position.target&&n||this.options.hide.fixed&&/mouse(out|leave|move)/.test(e.type)&&(n||o))try{e.preventDefault(),e.stopImmediatePropagation()}catch(e){}else this.timers.hide=d.call(this,function(){this.toggle(k,e)},this.options.hide.delay,this)}}function p(e){!this.tooltip.hasClass(J)&&this.options.hide.inactive&&(clearTimeout(this.timers.inactive),this.timers.inactive=d.call(this,function(){this.hide(e)},this.options.hide.inactive))}function g(e){this.rendered&&this.tooltip[0].offsetWidth>0&&this.reposition(e)}function m(e,n,o){i(t.body).delegate(e,(n.split?n:n.join("."+q+" "))+"."+q,function(){var e=D.api[i.attr(this,W)];e&&!e.disabled&&o.apply(e,arguments)})}function v(e,n,r){var s,l,u,c,d,h=i(t.body),f=e[0]===t?h:e,p=e.metadata?e.metadata(r.metadata):K,g="html5"===r.metadata.type&&p?p[r.metadata.name]:K,m=e.data(r.metadata.name||"qtipopts");try{m="string"==typeof m?i.parseJSON(m):m}catch(e){}if(l=(c=i.extend(w,{},D.defaults,r,"object"==typeof m?a(m):K,a(g||p))).position,c.id=n,"boolean"==typeof c.content.text){if(u=e.attr(c.content.attr),c.content.attr===k||!u)return k;c.content.text=u}if(l.container.length||(l.container=h),l.target===k&&(l.target=f),c.show.target===k&&(c.show.target=f),c.show.solo===w&&(c.show.solo=l.container.closest("body")),c.hide.target===k&&(c.hide.target=f),c.position.viewport===w&&(c.position.viewport=l.container),l.container=l.container.eq(0),l.at=new O(l.at,w),l.my=new O(l.my),e.data(q))if(c.overwrite)e.qtip("destroy",!0);else if(c.overwrite===k)return k;return e.attr(z,n),c.suppress&&(d=e.attr("title"))&&e.removeAttr("title").attr(te,d).attr("title",""),s=new o(e,c,n,!!u),e.data(q,s),s}function E(e){return e.charAt(0).toUpperCase()+e.slice(1)}function T(e,t){return Math.ceil(parseFloat(function(e,t){var i,o,r=t.charAt(0).toUpperCase()+t.slice(1),s=(t+" "+ye.join(r+" ")+r).split(" "),a=0;if(Te[t])return e.css(Te[t]);for(;i=s[a++];)if((o=e.css(i))!==n)return Te[t]=i,o}(e,t)))}function y(e,t){this._ns="tip",this.options=t,this.offset=t.offset,this.size=[t.width,t.height],this.qtip=e,this.init(e)}function C(e,t){this.options=t,this._ns="-modal",this.qtip=e,this.init(e)}function b(e){this._ns="ie6",this.qtip=e,this.init(e)}var D,I,O,R,_,w=!0,k=!1,K=null,S="x",x="y",N="width",A="height",L="top",F="left",P="bottom",B="right",M="center",$="flipinvert",H="shift",j={},q="qtip",z="data-hasqtip",W="data-qtip-id",V=["ui-widget","ui-tooltip"],U="."+q,G="click dblclick mousedown mouseup mousemove mouseleave mouseenter".split(" "),Y=q+"-fixed",X=q+"-default",Z=q+"-focus",Q=q+"-hover",J=q+"-disabled",ee="_replacedByqTip",te="oldtitle",ne={ie:function(){var e,n;for(e=4,n=t.createElement("div");(n.innerHTML="\x3c!--[if gt IE "+e+"]><i></i><![endif]--\x3e")&&n.getElementsByTagName("i")[0];e+=1);return e>4?e:NaN}(),iOS:parseFloat((""+(/CPU.*OS ([0-9_]{1,5}
vendor: 5,795 bytes, line 1
1)|(CPU like).*AppleWebKit.*Mobile/i.exec(navigator.userAgent)||[0,""])[1]).replace("undefined","3_2").replace("_",".").replace("_",""))||k};(I=o.prototype)._when=function(e){return i.when.apply(i,e)},I.render=function(e){if(this.rendered||this.destroyed)return this;var t=this,n=this.options,o=this.cache,r=this.elements,s=n.content.text,a=n.content.title,l=n.content.button,u=n.position,c=[];return i.attr(this.target[0],"aria-describedby",this._id),o.posClass=this._createPosClass((this.position={my:u.my,at:u.at}).my),this.tooltip=r.tooltip=i("<div/>",{id:this._id,class:[q,X,n.style.classes,o.posClass].join(" "),width:n.style.width||"",height:n.style.height||"",tracking:"mouse"===u.target&&u.adjust.mouse,role:"alert","aria-live":"polite","aria-atomic":k,"aria-describedby":this._id+"-content","aria-hidden":w}).toggleClass(J,this.disabled).attr(W,this.id).data(q,this).appendTo(u.container).append(r.content=i("<div />",{class:q+"-content",id:this._id+"-content","aria-atomic":w})),this.rendered=-1,this.positioning=w,a&&(this._createTitle(),i.isFunction(a)||c.push(this._updateTitle(a,k))),l&&this._createButton(),i.isFunction(s)||c.push(this._updateContent(s,k)),this.rendered=w,this._setWidget(),i.each(j,function(e){var n;"render"===this.initialize&&(n=this(t))&&(t.plugins[e]=n)}),this._unassignEvents(),this._assignEvents(),this._when(c).then(function(){t._trigger("render"),t.positioning=k,t.hiddenDuringWait||!n.show.ready&&!e||t.toggle(w,o.event,k),t.hiddenDuringWait=k}),D.api[this.id]=this,this},I.destroy=function(e){function t(){if(!this.destroyed){this.destroyed=w;var e,t=this.target,n=t.attr(te);for(e in this.rendered&&this.tooltip.stop(1,0).find("*").remove().end().remove(),i.each(this.plugins,function(){this.destroy&&this.destroy()}),this.timers)this.timers.hasOwnProperty(e)&&clearTimeout(this.timers[e]);t.removeData(q).removeAttr(W).removeAttr(z).removeAttr("aria-describedby"),this.options.suppress&&n&&t.attr("title",n).removeAttr(te),this._unassignEvents(),this.options=this.elements=this.cache=this.timers=this.plugins=this.mouse=K,delete D.api[this.id]}}return this.destroyed?this.target:(e===w&&"hide"!==this.triggering||!this.rendered?t.call(this):(this.tooltip.one("tooltiphidden",i.proxy(t,this)),!this.triggering&&this.hide()),this.target)},R=I.checks={builtin:{"^id$":function(e,t,n,o){var r=n===w?D.nextid:n,s=q+"-"+r;r!==k&&r.length>0&&!i("#"+s).length?(this._id=s,this.rendered&&(this.tooltip[0].id=this._id,this.elements.content[0].id=this._id+"-content",this.elements.title[0].id=this._id+"-title")):e[t]=o},"^prerender":function(e,t,n){n&&!this.rendered&&this.render(this.options.show.ready)},"^content.text$":function(e,t,n){this._updateContent(n)},"^content.attr$":function(e,t,n,i){this.options.content.text===this.target.attr(i)&&this._updateContent(this.target.attr(n))},"^content.title$":function(e,t,n){return n?(n&&!this.elements.title&&this._createTitle(),void this._updateTitle(n)):this._removeTitle()},"^content.button$":function(e,t,n){this._updateButton(n)},"^content.title.(text|button)$":function(e,t,n){this.set("content."+t,n)},"^position.(my|at)$":function(e,t,n){"string"==typeof n&&(this.position[t]=e[t]=new O(n,"at"===t))},"^position.container$":function(e,t,n){this.rendered&&this.tooltip.appendTo(n)},"^show.ready$":function(e,t,n){n&&(!this.rendered&&this.render(w)||this.toggle(w))},"^style.classes$":function(e,t,n,i){this.rendered&&this.tooltip.removeClass(i).addClass(n)},"^style.(width|height)":function(e,t,n){this.rendered&&this.tooltip.css(t,n)},"^style.widget|content.title":function(){this.rendered&&this._setWidget()},"^style.def":function(e,t,n){this.rendered&&this.tooltip.toggleClass(X,!!n)},"^events.(render|show|move|hide|focus|blur)$":function(e,t,n){this.rendered&&this.tooltip[(i.isFunction(n)?"":"un")+"bind"]("tooltip"+t,n)},"^(show|hide|position).(event|target|fixed|inactive|leave|distance|viewport|adjust)":function(){if(this.rendered){var e=this.options.position;this.tooltip.attr("tracking","mouse"===e.target&&e.adjust.mouse),this._unassignEvents(),this._assignEvents()}}}},I.get=function(e){if(this.destroyed)return this;var t=l(this.options,e.toLowerCase()),n=t[0][t[1]];return n.precedance?n.string():n};var ie=/^position\.(my|at|adjust|target|container|viewport)|style|content|show\.ready/i,oe=/^prerender|show\.ready/i;I.set=function(e,t){if(this.destroyed)return this;var n,o=this.rendered,r=k,s=this.options;return"string"==typeof e?(n=e,(e={})[n]=t):e=i.extend({},e),i.each(e,function(t,n){if(o&&oe.test(t))delete e[t];else{var a,u=l(s,t.toLowerCase());a=u[0][u[1]],u[0][u[1]]=n&&n.nodeType?i(n):n,r=ie.test(t)||r,e[t]=[u[0],u[1],n,a]}}),a(s),this.positioning=w,i.each(e,i.proxy(u,this)),this.positioning=k,this.rendered&&this.tooltip[0].offsetWidth>0&&r&&this.reposition("mouse"===s.position.target?K:this.cache.event),this},I._update=function(e,t){var n=this,o=this.cache;return this.rendered&&e?(i.isFunction(e)&&(e=e.call(this.elements.target,o.event,this)||""),i.isFunction(e.then)?(o.waiting=w,e.then(function(e){return o.waiting=k,n._update(e,t)},K,function(e){return n._update(e,t)})):e===k||!e&&""!==e?k:(e.jquery&&e.length>0?t.empty().append(e.css({display:"block",visibility:"visible"})):t.html(e),this._waitForContent(t).then(function(e){n.rendered&&n.tooltip[0].offsetWidth>0&&n.reposition(o.event,!e.length)}))):k},I._waitForContent=function(e){var t=this.cache;return t.waiting=w,(i.fn.imagesLoaded?e.imagesLoaded():(new i.Deferred).resolve([])).done(function(){t.waiting=k}).promise()},I._updateContent=function(e,t){this._update(e,this.elements.content,t)},I._updateTitle=function(e,t){this._update(e,this.elements.title,t)===k&&this._removeTitle(k)},I._createTitle=function(){var e=this.elements,t=this._id+"-title";e.titlebar&&this._removeTitle(),e.titlebar=i("<div />
1",{class:q+"-titlebar "+(this.options.style.widget?c("header"):"")}).append(e.title=i("<div />",{id:t,class:q+"-title","aria-atomic":w})).insertBefore(e.content).delegate(".qtip-close","mousedown keydown mouseup keyup mouseout",function(e){i(this).toggleClass("ui-state-active ui-state-focus","down"===e.type.substr(-4))}).delegate(".qtip-close","mouseover mouseout",function(e){i(this).toggleClass("ui-state-hover","mouseover"===e.type)}),this.options.content.button&&this._createButton()},I._removeTitle=function(e){var t=this.elements;t.title&&(t.titlebar.remove(),t.titlebar=t.title=t.button=K,e!==k&&this.reposition())},I._createPosClass=function(e){return q+"-pos-"+(e||this.options.position.my).abbrev()},I.reposition=function(n,o){if(!this.rendered||this.positioning||this.destroyed)return this;this.positioning=w;var r,s,a,l,u=this.cache,c=this.tooltip,d=this.options.position,h=d.target,f=d.my,p=d.at,g=d.viewport,m=d.container,v=d.adjust,E=v.method.split(" "),T=c.outerWidth(k),y=c.outerHeight(k),C=0,b=0,D=c.css("position"),I={left:0,top:0},O=c[0].offsetWidth>0,R=n&&"scroll"===n.type,_=i(e),K=m[0].ownerDocument,S=this.mouse;if(i.isArray(h)&&2===h.length)p={x:F,y:L},I={left:h[0],top:h[1]};else if("mouse"===h)p={x:F,y:L},(!v.mouse||this.options.hide.distance)&&u.origin&&u.origin.pageX?n=u.origin:!n||n&&("resize"===n.type||"scroll"===n.type)?n=u.event:S&&S.pageX&&(n=S),"static"!==D&&(I=m.offset()),K.body.offsetWidth!==(e.innerWidth||K.documentElement.clientWidth)&&(s=i(t.body).offset()),I={left:n.pageX-I.left+(s&&s.left||0),top:n.pageY-I.top+(s&&s.top||0)},v.mouse&&R&&S&&(I.left-=(S.scrollX||0)-_.scrollLeft(),I.top-=(S.scrollY||0)-_.scrollTop());else{if("event"===h?n&&n.target&&"scroll"!==n.type&&"resize"!==n.type?u.target=i(n.target):n.target||(u.target=this.elements.target):"event"!==h&&(u.target=i(h.jquery?h:this.elements.target)),h=u.target,0===(h=i(h).eq(0)).length)return this;h[0]===t||h[0]===e?(C=ne.iOS?e.innerWidth:h.width(),b=ne.iOS?e.innerHeight:h.height(),h[0]===e&&(I={top:(g||h).scrollTop(),left:(g||h).scrollLeft()})):j.imagemap&&h.is("area")?r=j.imagemap(this,h,p,j.viewport?E:k):j.svg&&h&&h[0].ownerSVGElement?r=j.svg(this,h,p,j.viewport?E:k):(C=h.outerWidth(k),b=h.outerHeight(k),I=h.offset()),r&&(C=r.width,b=r.height,s=r.offset,I=r.position),I=this.reposition.offset(h,I,m),(ne.iOS>3.1&&ne.iOS<4.1||ne.iOS>=4.3&&ne.iOS<4.33||!ne.iOS&&"fixed"===D)&&(I.left-=_.scrollLeft(),I.top-=_.scrollTop()),(!r||r&&r.adjustable!==k)&&(I.left+=p.x===B?C:p.x===M?C/2:0,I.top+=p.y===P?b:p.y===M?b/2:0)}return I.left+=v.x+(f.x===B?-T:f.x===M?-T/2:0),I.top+=v.y+(f.y===P?-y:f.y===M?-y/2:0),j.viewport?(a=I.adjusted=j.viewport(this,I,d,C,b,T,y),s&&a.left&&(I.left+=s.left),s&&a.top&&(I.top+=s.top),a.my&&(this.position.my=a.my)):I.adjusted={left:0,top:0},u.posClass!==(l=this._createPosClass(this.position.my))&&(u.posClass=l,c.removeClass(u.posClass).addClass(l)),this._trigger("move",[I,g.elem||g],n)?(delete I.adjusted,o===k||!O||isNaN(I.left)||isNaN(I.top)||"mouse"===h||!i.isFunction(d.effect)?c.css(I):i.isFunction(d.effect)&&(d.effect.call(c,this,i.extend({},I)),c.queue(function(e){i(this).css({opacity:"",height:""}),ne.ie&&this.style.removeAttribute("filter"),e()})),this.positioning=k,this):this},I.reposition.offset=function(e,n,o){function r(e,t){n.left+=t*e.scrollLeft(),n.top+=t*e.scrollTop()}if(!o[0])return n;var s,a,l,u,c=i(e[0].ownerDocument),d=!!ne.ie&&"CSS1Compat"!==t.compatMode,h=o[0];do{"static"!==(a=i.css(h,"position"))&&("fixed"===a?(l=h.getBoundingClientRect(),r(c,-1)):((l=i(h).position()).left+=parseFloat(i.css(h,"borderLeftWidth"))||0,l.top+=parseFloat(i.css(h,"borderTopWidth"))||0),n.left-=l.left+(parseFloat(i.css(h,"marginLeft"))||0),n.top-=l.top+(parseFloat(i.css(h,"marginTop"))||0),s||"hidden"===(u=i.css(h,"overflow"))||"visible"===u||(s=i(h)))}while(h=h.offsetParent);return s&&(s[0]!==c[0]||d)&&r(s,1),n};var re=(O=I.reposition.Corner=function(e,t){e=(""+e).replace(/([A-Z])/," $1").replace(/middle/gi,M).toLowerCase(),this.x=(e.match(/left|right/i)||e.match(/center/)||["inherit"])[0].toLowerCase(),this.y=(e.match(/top|bottom|center/i)||["
1inherit"])[0].toLowerCase(),this.forceY=!!t;var n=e.charAt(0);this.precedance="t"===n||"b"===n?x:S}).prototype;re.invert=function(e,t){this[e]=this[e]===F?B:this[e]===B?F:t||this[e]},re.string=function(e){var t=this.x,n=this.y,i=t!==n?"center"===t||"center"!==n&&(this.precedance===x||this.forceY)?[n,t]:[t,n]:[t];return!1!==e?i.join(" "):i},re.abbrev=function(){var e=this.string(!1);return e[0].charAt(0)+(e[1]&&e[1].charAt(0)||"")},re.clone=function(){return new O(this.string(),this.forceY)},I.toggle=function(e,n){var o=this.cache,r=this.options,s=this.tooltip;if(n){if(/over|enter/.test(n.type)&&o.event&&/out|leave/.test(o.event.type)&&r.show.target.add(n.target).length===r.show.target.length&&s.has(n.relatedTarget).length)return this;o.event=i.event.fix(n)}if(this.waiting&&!e&&(this.hiddenDuringWait=w),!this.rendered)return e?this.render(1):this;if(this.destroyed||this.disabled)return this;var a,l,u,c=e?"show":"hide",d=this.options[c],h=this.options.position,f=this.options.content,p=this.tooltip.css("width"),g=this.tooltip.is(":visible"),m=e||1===d.target.length,v=!n||d.target.length<2||o.target[0]===n.target;return(typeof e).search("boolean|number")&&(e=!g),l=(a=!s.is(":animated")&&g===e&&v)?K:!!this._trigger(c,[90]),this.destroyed?this:(l!==k&&e&&this.focus(n),!l||a?this:(i.attr(s[0],"aria-hidden",!e),e?(this.mouse&&(o.origin=i.event.fix(this.mouse)),i.isFunction(f.text)&&this._updateContent(f.text,k),i.isFunction(f.title)&&this._updateTitle(f.title,k),!_&&"mouse"===h.target&&h.adjust.mouse&&(i(t).bind("mousemove."+q,this._storeMouse),_=w),p||s.css("width",s.outerWidth(k)),this.reposition(n,arguments[2]),p||s.css("width",""),d.solo&&("string"==typeof d.solo?i(d.solo):i(U,d.solo)).not(s).not(d.target).qtip("hide",new i.Event("tooltipsolo"))):(clearTimeout(this.timers.show),delete o.origin,_&&!i(U+'[tracking="true"]:visible',d.solo).not(s).length&&(i(t).unbind("mousemove."+q),_=k),this.blur(n)),u=i.proxy(function(){e?(ne.ie&&s[0].style.removeAttribute("filter"),s.css("overflow",""),"string"==typeof d.autofocus&&i(this.options.show.autofocus,s).focus(),this.options.show.target.trigger("qtip-"+this.id+"-inactive")):s.css({display:"",visibility:"",opacity:"",left:"",top:""}),this._trigger(e?"visible":"hidden")},this),d.effect===k||m===k?(s[c](),u()):i.isFunction(d.effect)?(s.stop(1,1),d.effect.call(s,this),s.queue("fx",function(e){u(),e()})):s.fadeTo(90,e?1:0,u),e&&d.target.trigger("qtip-"+this.id+"-inactive"),this))},I.show=function(e){return this.toggle(w,e)},I.hide=function(e){return this.toggle(k,e)},I.focus=function(e){if(!this.rendered||this.destroyed)return this;var t=i(U),n=this.tooltip,o=parseInt(n[0].style.zIndex,10),r=D.zindex+t.length;return n.hasClass(Z)||this._trigger("focus",[r],e)&&(o!==r&&(t.each(function(){this.style.zIndex>o&&(this.style.zIndex=this.style.zIndex-1)}),t.filter("."+Z).qtip("blur",e)),n.addClass(Z)[0].style.zIndex=r),this},I.blur=function(e){return!this.rendered||this.destroyed?this:(this.tooltip.removeClass(Z),this._trigger("blur",[this.tooltip.css("zIndex")],e),this)},I.disable=function(e){return this.destroyed?this:("toggle"===e?e=!(this.rendered?this.tooltip.hasClass(J):this.disabled):"boolean"!=typeof e&&(e=w),this.rendered&&this.tooltip.toggleClass(J,e).attr("aria-disabled",e),this.disabled=!!e,this)},I.enable=function(){return this.disable(k)},I._createButton=function(){var e=this,t=this.elements,n=t.tooltip,o=this.options.content.button,r="string"==typeof o?o:"Close tooltip";t.button&&t.button.remove(),o.jquery?t.button=o:t.button=i("<a />",{class:"qtip-close "+(this.options.style.widget?"":q+"-icon"),title:r,"aria-label":r}).prepend(i("<span />",{class:"ui-icon ui-icon-close",html:"×"})),t.button.appendTo(t.titlebar||n).attr("role","button").click(function(t){return n.hasClass(J)||e.hide(t),k})},I._updateButton=function(e){if(!this.rendered)return k;var t=this.elements.button;e?this._createButton():t.remove()},I._setWidget=function(){var e=this.options.style.widget,t=this.elements,n=t.tooltip,i=n.hasClass(J);n.removeClass(J),J=e?"ui-state-disabled":"qtip-disabled",n.toggleClass(J,i),n.toggleClass("ui-helper-reset "+c(),e).toggleClass(X,this.options.style.def&&!e),t.content&&t.content.toggleClass(c("content"),e),t.titlebar&&t.titlebar.toggleClass(c("header"),e),t.button&&t.button.toggleClass(q+"-icon",!e)},I._storeMouse=function(e){return(this.mouse=i.event.fix(e)).type="mousemove",this},I._bind=function(e,t,n,o,r){if(e&&n&&t.length){var s="."+this._id+(o?"-"+o:"");return i(e).bind((t.split?t:t.join(s+" "))+s,i.proxy(n,r||this)),this}},I._unbind=function(e,t){return e&&i(e).unbind("."+this._id+(t?"-"+t:"")),this},I._trigger=function(e,t,n){var o=new i.Event("tooltip"+e);return o.originalEvent=n&&i.extend({},n)||this.cache.event||K,this.triggering=e,this.tooltip.trigger(o,[this].concat(t||[])),this.triggering=k,!o.isDefaultPrevented()},I._bindEvents=function(e,t,n,o,r,s){var a=n.filter(o).add(o.filter(n)),l=[];a.length&&(i.each(t,function(t,n){var o=i.inArray(n,e);o>-1&&l.push(e.splice(o,1)[0])}),l.length&&(this._bind(a,l,function(e){(!!this.rendered&&this.tooltip[0].offsetWidth>0?s:r).call(this,e)}),n=n.not(a),o=o.not(a))),this._bind(n,e,r),this._bind(o,t,s)},I._assignInitialEvents=function(e){function t(e){return this.disabled||this.destroyed?k:(this.cache.event=e&&i.event.fix(e),this.cache.target=e&&i(e.target),clearTimeout(this.timers.show),void(this.timers.show=d.call(this,function(){this.render("object"==typeof e||n.show.ready)},n.prerender?0:n.show.delay)))}var n=this.options,o=n.show.target,r=n.hide.target,s=n.show.event?i.trim(""+n.show.event).split(" "):[],a=n.hide.event?i.trim(""+n.hide.event).split(" "):[];this._bind(this.elements.target,["remove","removeqtip"],function(){this.destroy(!0)},"destroy"),/mouse(over|enter)/i.test(n.show.event)&&!/mouse(out|leave)/i.test(n.hide.event)&&a.push("mouseleave"),this._bind(o,"mousemove",function(e){this._storeMouse(e),this.cache.onTarget=w}),this._bindEvents(s,a,o,r,t,function(){return this.timers?void clearTimeout(this.timers.show):k}),(n.show.ready||n.prerender)&&t.call(this,e)},I._assignEvents=function(){var n=this,o=this.options,r=o.position,s=this.tooltip,a=o.show.target,l=o.hide.target,u=r.container,c=r.viewport,d=i(t),m=i(e),v=o.show.event?i.trim(""+o.show.event).split(" "):[],E=o.hide.event?i.trim(""+o.hide.event).split(" "):[];i.each(o.events,function(e,t){n._bind(s,"toggle"===e?["tooltipshow","tooltiphide"]:["tooltip"+e],t,null,s)}),/mouse(out|leave)/i.test(o.hide.event)&&"window"===o.hide.leave&&this._bind(d,["mouseout","blur"],function(e){/select|option/.test(e.target.nodeName)||e.relatedTarget||this.hide(e)}),o.hide.fixed?l=l.add(s.addClass(Y)):/mouse(over|enter)/i.test(o.show.event)&&this._bind(l,"mouseleave",function(){clearTimeout(this.timers.show)}),(""+o.hide.event).indexOf("unfocus")>-1&&this._bind(u.closest("html"),["mousedown","touchstart"],function(e){var t=i(e.target),n=this.rendered&&!this.tooltip.hasClass(J)&&this.tooltip[0].offsetWidth>0,o=t.parents(U).filter(this.tooltip[0]).length>0;t[0]===this.target[0]||t[0]===this.tooltip[0]||o||this.target.has(t[0]).length||!n||this.hide(e)}),"number"==typeof o.hide.inactive&&(this._bind(a,"qtip-"+this.id+"-inactive",p,"inactive"),this._bind(l.add(s),D.inactiveEvents,p)),this._bindEvents(v,E,a,l,h,f),this._bind(a.add(s),"mousemove",function(e){if("number"==typeof o.hide.distance){var t=this.cache.origin||{},n=this.options.hide.distance,i=Math.abs;(i(e.pageX-t.pageX)>=n||i(e.pageY-t.pageY)>=n)&&this.hide(e)}this._storeMouse(e)}),"mouse"===r.target&&r.adjust.mouse&&(o.hide.event&&this._bind(a,["mouseenter","mouseleave"],function(e){return this.cache?void(this.cache.onTarget="mouseenter"
vendor: 4,304 bytes, line 1
1===e.type):k}),this._bind(d,"mousemove",function(e){this.rendered&&this.cache.onTarget&&!this.tooltip.hasClass(J)&&this.tooltip[0].offsetWidth>0&&this.reposition(e)})),(r.adjust.resize||c.length)&&this._bind(i.event.special.resize?c:m,"resize",g),r.adjust.scroll&&this._bind(m.add(r.container),"scroll",g)},I._unassignEvents=function(){var n=this.options,o=n.show.target,r=n.hide.target,s=i.grep([this.elements.target[0],this.rendered&&this.tooltip[0],n.position.container[0],n.position.viewport[0],n.position.container.closest("html")[0],e,t],function(e){return"object"==typeof e});o&&o.toArray&&(s=s.concat(o.toArray())),r&&r.toArray&&(s=s.concat(r.toArray())),this._unbind(s)._unbind(s,"destroy")._unbind(s,"inactive")},i(function(){m(U,["mouseenter","mouseleave"],function(e){var t="mouseenter"===e.type,n=i(e.currentTarget),o=i(e.relatedTarget||e.target),r=this.options;t?(this.focus(e),n.hasClass(Y)&&!n.hasClass(J)&&clearTimeout(this.timers.hide)):"mouse"===r.position.target&&r.position.adjust.mouse&&r.hide.event&&r.show.target&&!o.closest(r.show.target[0]).length&&this.hide(e),n.toggleClass(Q,t)}),m("["+W+"]",G,p)}),D=i.fn.qtip=function(e,t,o){var r=(""+e).toLowerCase(),s=K,l=i.makeArray(arguments).slice(1),u=l[l.length-1],c=this[0]?i.data(this[0],q):K;return!arguments.length&&c||"api"===r?c:"string"==typeof e?(this.each(function(){var e=i.data(this,q);if(!e)return w;if(u&&u.timeStamp&&(e.cache.event=u),!t||"option"!==r&&"options"!==r)e[r]&&e[r].apply(e,l);else{if(o===n&&!i.isPlainObject(t))return s=e.get(t),k;e.set(t,o)}}),s!==K?s:this):"object"!=typeof e&&arguments.length?void 0:(c=a(i.extend(w,{},e)),this.each(function(e){var t,n;return n=!(n=i.isArray(c.id)?c.id[e]:c.id)||n===k||n.length<1||D.api[n]?D.nextid++:n,(t=v(i(this),n,c))===k?w:(D.api[n]=t,i.each(j,function(){"initialize"===this.initialize&&this(t)}),void t._assignInitialEvents(u))}))},i.qtip=o,D.api={},i.each({attr:function(e,t){if(this.length){var n=this[0],o="title",r=i.data(n,"qtip");if(e===o&&r&&r.options&&"object"==typeof r&&"object"==typeof r.options&&r.options.suppress)return arguments.length<2?i.attr(n,te):(r&&r.options.content.attr===o&&r.cache.attr&&r.set("content.text",t),this.attr(te,t))}return i.fn["attr"+ee].apply(this,arguments)},clone:function(e){var t=i.fn["clone"+ee].apply(this,arguments);return e||t.filter("["+te+"]").attr("title",function(){return i.attr(this,te)}).removeAttr(te),t}},function(e,t){if(!t||i.fn[e+ee])return w;var n=i.fn[e+ee]=i.fn[e];i.fn[e]=function(){return t.apply(this,arguments)||n.apply(this,arguments)}}),i.ui||(i["cleanData"+ee]=i.cleanData,i.cleanData=function(e){for(var t,n=0;(t=i(e[n])).length;n++)if(t.attr(z))try{t.triggerHandler("removeqtip")}catch(e){}i["cleanData"+ee].apply(this,arguments)}),D.version="3.0.3",D.nextid=0,D.inactiveEvents=G,D.zindex=15e3,D.defaults={prerender:k,id:k,overwrite:w,suppress:w,content:{text:w,attr:"title",title:k,button:k},position:{my:"top left",at:"bottom right",target:k,container:k,viewport:k,adjust:{x:0,y:0,mouse:w,scroll:w,resize:w,method:"flipinvert flipinvert"},effect:function(e,t){i(this).animate(t,{duration:200,queue:k})}},show:{target:k,event:"mouseenter",effect:w,delay:90,solo:k,ready:k,autofocus:k},hide:{target:k,event:"mouseleave",effect:w,delay:0,fixed:k,inactive:k,leave:"window",distance:k},style:{classes:"",widget:k,width:k,height:k,def:w},events:{render:K,move:K,show:K,hide:K,toggle:K,visible:K,hidden:K,focus:K,blur:K}};var se,ae,le,ue,ce,de="margin",he="border",fe="color",pe="background-color",ge="transparent",me=" !important",ve=!!t.createElement("canvas").getContext,Ee=/rgba?\(0, 0, 0(, 0)?\)|transparent|#123456/i,Te={},ye=["Webkit","O","Moz","ms"];ve?(ue=e.devicePixelRatio||1,ce=function(){var e=t.createElement("canvas").getContext("2d");return e.backingStorePixelRatio||e.webkitBackingStorePixelRatio||e.mozBackingStorePixelRatio||e.msBackingStorePixelRatio||e.oBackingStorePixelRatio||1}(),le=ue/ce):ae=function(e,t,n){return"<qtipvml:"+e+' xmlns="urn:schemas-microsoft.com:vml" class="qtip-vml" '+(t||"")+' style="behavior: url(#default#VML); '+(n||"")+'" />'},i.extend(y.prototype,{init:function(e){var t,n;n=this.element=e.elements.tip=i("<div />",{class:q+"-tip"}).prependTo(e.tooltip),ve?((t=i("<canvas />").appendTo(this.element)[0].getContext("2d")).lineJoin="miter",t.miter
vendor: 5,777 bytes, line 1
1Limit=1e5,t.save()):(t=ae("shape",'coordorigin="0,0"',"position:absolute;"),this.element.html(t+t),e._bind(i("*",n).add(n),["click","mousedown"],function(e){e.stopPropagation()},this._ns)),e._bind(e.tooltip,"tooltipmove",this.reposition,this._ns,this),this.create()},_swapDimensions:function(){this.size[0]=this.options.height,this.size[1]=this.options.width},_resetDimensions:function(){this.size[0]=this.options.width,this.size[1]=this.options.height},_useTitle:function(e){var t=this.qtip.elements.titlebar;return t&&(e.y===L||e.y===M&&this.element.position().top+this.size[1]/2+this.options.offset<t.outerHeight(w))},_parseCorner:function(e){var t=this.qtip.options.position.my;return e===k||t===k?e=k:e===w?e=new O(t.string()):e.string||((e=new O(e)).fixed=w),e},_parseWidth:function(e,t,n){var i=this.qtip.elements,o=he+E(t)+"Width";return(n?T(n,o):T(i.content,o)||T(this._useTitle(e)&&i.titlebar||i.content,o)||T(i.tooltip,o))||0},_parseRadius:function(e){var t=this.qtip.elements,n=he+E(e.y)+E(e.x)+"Radius";return ne.ie<9?0:T(this._useTitle(e)&&t.titlebar||t.content,n)||T(t.tooltip,n)||0},_invalidColour:function(e,t,n){var i=e.css(t);return!i||n&&i===e.css(n)||Ee.test(i)?k:i},_parseColours:function(e){var t=this.qtip.elements,n=this.element.css("cssText",""),o=he+E(e[e.precedance])+E(fe),r=this._useTitle(e)&&t.titlebar||t.content,s=this._invalidColour,a=[];return a[0]=s(n,pe)||s(r,pe)||s(t.content,pe)||s(t.tooltip,pe)||n.css(pe),a[1]=s(n,o,fe)||s(r,o,fe)||s(t.content,o,fe)||s(t.tooltip,o,fe)||t.tooltip.css(o),i("*",n).add(n).css("cssText",pe+":"+ge+me+";"+he+":0"+me+";"),a},_calculateSize:function(e){var t,n,i=e.precedance===x,o=this.options.width,r=this.options.height,s="c"===e.abbrev(),a=(i?o:r)*(s?.5:1),l=Math.pow,u=Math.round,c=Math.sqrt(l(a,2)+l(r,2)),d=[this.border/a*c,this.border/r*c];return d[2]=Math.sqrt(l(d[0],2)-l(this.border,2)),d[3]=Math.sqrt(l(d[1],2)-l(this.border,2)),n=[u((t=(c+d[2]+d[3]+(s?0:d[0]))/c)*o),u(t*r)],i?n:n.reverse()},_calculateTip:function(e,t,n){n=n||1;var i=(t=t||this.size)[0]*n,o=t[1]*n,r=Math.ceil(i/2),s=Math.ceil(o/2),a={br:[0,0,i,o,i,0],bl:[0,0,i,0,0,o],tr:[0,o,i,0,i,o],tl:[0,0,0,o,i,o],tc:[0,o,r,0,i,o],bc:[0,0,i,0,r,o],rc:[0,0,i,s,0,o],lc:[i,0,i,o,0,s]};return a.lt=a.br,a.rt=a.bl,a.lb=a.tr,a.rb=a.tl,a[e.abbrev()]},_drawCoords:function(e,t){e.beginPath(),e.moveTo(t[0],t[1]),e.lineTo(t[2],t[3]),e.lineTo(t[4],t[5]),e.closePath()},create:function(){var e=this.corner=(ve||ne.ie)&&this._parseCorner(this.options.corner);return this.enabled=!!this.corner&&"c"!==this.corner.abbrev(),this.enabled&&(this.qtip.cache.corner=e.clone(),this.update()),this.element.toggle(this.enabled),this.corner},update:function(t,n){if(!this.enabled)return this;var o,r,s,a,l,u,c,d,h=this.qtip.elements,f=this.element,p=f.children(),g=this.options,m=this.size,v=g.mimic,E=Math.round;t||(t=this.qtip.cache.corner||this.corner),v===k?v=t:((v=new O(v)).precedance=t.precedance,"inherit"===v.x?v.x=t.x:"inherit"===v.y?v.y=t.y:v.x===v.y&&(v[t.precedance]=t[t.precedance])),r=v.precedance,t.precedance===S?this._swapDimensions():this._resetDimensions(),(o=this.color=this._parseColours(t))[1]!==ge?(d=this.border=this._parseWidth(t,t[t.precedance]),g.border&&1>d&&!Ee.test(o[1])&&(o[0]=o[1]),this.border=d=g.border!==w?g.border:d):this.border=d=0,c=this.size=this._calculateSize(t),f.css({width:c[0],height:c[1],lineHeight:c[1]+"px"}),u=t.precedance===x?[E(v.x===F?d:v.x===B?c[0]-m[0]-d:(c[0]-m[0])/2),E(v.y===L?c[1]-m[1]:0)]:[E(v.x===F?c[0]-m[0]:0),E(v.y===L?d:v.y===P?c[1]-m[1]-d:(c[1]-m[1])/2)],ve?((s=p[0].getContext("2d")).restore(),s.save(),s.clearRect(0,0,6e3,6e3),a=this._calculateTip(v,m,le),l=this._calculateTip(v,this.size,le),p.attr(N,c[0]*le).attr(A,c[1]*le),p.css(N,c[0]).css(A,c[1]),this._drawCoords(s,l),s.fillStyle=o[1],s.fill(),s.translate(u[0]*le,u[1]*le),this._drawCoords(s,a),s.fillStyle=o[0],s.fill()):(a="m"+(a=this._calculateTip(v))[0]+","+a[1]+" l"+a[2]+","+a[3]+" "+a[4]+","+a[5]+" xe",u[2]=d&&/^(r|b)/i.test(t.string())?8===ne.ie?2:1:0,p.css({coordsize:c[0]+d+" "+c[1]+d,antialias:""+(v.string().indexOf(M)>-1),left:u[0]-u[2]*Number(r===S),top:u[1]-u[2]*Number(r===x),width:c[0]+d,height:c[1]+d}).each(function(e){var t=i(this);t[t.prop?"prop":"attr"]({coordsize:c[0]+d+" "+c[1]+d,path:a,fillcolor:o[0],filled:!!e,stroked:!e}).toggle(!(!d&&!e)),!e&&t.html(ae("stroke",'weight="'+2*d+'px" color="'+o[1]+'" miterlimit="1000" joinstyle="miter"'))})),e.opera&&setTimeout(function(){h.tip.css({display:"inline-block",visibility:"visible"})},1),n!==k&&this.calculate(t,c)},calculate:function(e,t){if(!this.enabled)return k;var n,o,r=this,s=this.qtip.elements,a=this.element,l=this.options.offset,u={};return e=e||this.corner,n=e.precedance,t=t||this._calculateSize(e),o=[e.x,e.y],n===S&&o.reverse(),i.each(o,function(i,o){var a,c,d;o===M?(u[a=n===x?F:L]="50%",u[de+"-"+a]=-Math.round(t[n===x?0:1]/2)+l):(a=r._parseWidth(e,o,s.tooltip),c=r._parseWidth(e,o,s.content),d=r._parseRadius(e),u[o]=Math.max(-r.border,i?c:l+(d>a?d:-a)))}),u[e[n]]-=t[n===S?0:1],a.css({margin:"",top:"",bottom:"",left:"",right:""}).css(u),u},reposition:function(e,t,i){function o(e,t,n,i,o){e===H&&u.precedance===t&&c[i]&&u[n]!==M?u.precedance=u.precedance===S?x:S:e!==H&&c[i]&&(u[t]=u[t]===M?c[i]>0?i:o:u[t]===i?o:i)}function r(e,t,o){u[e]===M?g[de+"-"+t]=p[e]=s[de+"-"+t]-c[t]:(a=s[o]!==n?[c[t],-s[t]]:[-c[t],s[t]],(p[e]=Math.max(a[0],a[1]))>a[0]&&(i[t]-=c[t],p[t]=k),g[s[o]!==n?o:t]=p[e])}if(this.enabled){var s,a,l=t.cache,u=this.corner.clone(),c=i.adjusted,d=t.options.position.adjust.method.split(" "),h=d[0],f=d[1]||d[0],p={left:k,top:k,x:0,y:0},g={};this.corner.fixed!==w&&(o(h,S,x,F,B),o(f,x,S,L,P),u.string()===l.corner.string()&&l.cornerTop===c.top&&l.cornerLeft===c.left||this.update(u,k)),(s=this.calculate(u)).right!==n&&(s.left
vendor: 4,957 bytes, line 1
1=-s.right),s.bottom!==n&&(s.top=-s.bottom),s.user=this.offset,p.left=h===H&&!!c.left,p.left&&r(S,F,B),p.top=f===H&&!!c.top,p.top&&r(x,L,P),this.element.css(g).toggle(!(p.x&&p.y||u.x===M&&p.y||u.y===M&&p.x)),i.left-=s.left.charAt?s.user:h!==H||p.top||!p.left&&!p.top?s.left+this.border:0,i.top-=s.top.charAt?s.user:f!==H||p.left||!p.left&&!p.top?s.top+this.border:0,l.cornerLeft=c.left,l.cornerTop=c.top,l.corner=u.clone()}},destroy:function(){this.qtip._unbind(this.qtip.tooltip,this._ns),this.qtip.elements.tip&&this.qtip.elements.tip.find("*").remove().end().remove()}}),(se=j.tip=function(e){return new y(e,e.options.style.tip)}).initialize="render",se.sanitize=function(e){if(e.style&&"tip"in e.style){var t=e.style.tip;"object"!=typeof t&&(t=e.style.tip={corner:t}),/string|boolean/i.test(typeof t.corner)||(t.corner=w)}},R.tip={"^position.my|style.tip.(corner|mimic|border)$":function(){this.create(),this.qtip.reposition()},"^style.tip.(height|width)$":function(e){this.size=[e.width,e.height],this.update(),this.qtip.reposition()},"^content.title|style.(classes|widget)$":function(){this.update()}},i.extend(w,D.defaults,{style:{tip:{corner:w,mimic:k,width:6,height:6,border:w,offset:0}}});var Ce,be,De="qtip-modal",Ie="."+De;be=new(be=function(){function e(e){l.length<1&&e.length?e.not("body").blur():l.first().focus()}function n(t){if(s.is(":visible")){var n=i(t.target),r=o.tooltip,a=n.closest(U);(a.length<1?k:parseInt(a[0].style.zIndex,10)>parseInt(r[0].style.zIndex,10))||n.closest(U)[0]===r[0]||e(n)}}var o,r,s,a=this,l={};i.extend(a,{init:function(){return s=a.elem=i("<div />",{id:"qtip-overlay",html:"<div></div>",mousedown:function(){return k}}).hide(),i(t.body).bind("focusin"+Ie,n),i(t).bind("keydown"+Ie,function(e){o&&o.options.show.modal.escape&&27===e.keyCode&&o.hide(e)}),s.bind("click"+Ie,function(e){o&&o.options.show.modal.blur&&o.hide(e)}),a},update:function(e){o=e,l=e.options.show.modal.stealfocus!==k?e.tooltip.find("*").filter(function(){return function(e){if(i.expr[":"].focusable)return i.expr[":"].focusable;var t,n,o,r=!isNaN(i.attr(e,"tabindex")),s=e.nodeName&&e.nodeName.toLowerCase();return"area"===s?(n=(t=e.parentNode).name,!(!e.href||!n||"map"!==t.nodeName.toLowerCase())&&!!(o=i("img[usemap=#"+n+"]")[0])&&o.is(":visible")):/input|select|textarea|button|object/.test(s)?!e.disabled:"a"===s&&e.href||r}(this)}):[]},toggle:function(n,l,u){var c=n.tooltip,d=n.options.show.modal,h=d.effect,f=l?"show":"hide",p=s.is(":visible"),g=i(Ie).filter(":visible:not(:animated)").not(c);return a.update(n),l&&d.stealfocus!==k&&e(i(":focus")),s.toggleClass("blurs",d.blur),l&&s.appendTo(t.body),s.is(":animated")&&p===l&&r!==k||!l&&g.length?a:(s.stop(w,k),i.isFunction(h)?h.call(s,l):h===k?s[f]():s.fadeTo(parseInt(u,10)||90,l?1:0,function(){l||s.hide()}),l||s.queue(function(e){s.css({left:"",top:""}),i(Ie).length||s.detach(),e()}),r=l,o.destroyed&&(o=K),a)}}),a.init()}),i.extend(C.prototype,{init:function(e){var t=e.tooltip;return this.options.on?(e.elements.overlay=be.elem,t.addClass(De).css("z-index",D.modal_zindex+i(Ie).length),e._bind(t,["tooltipshow","tooltiphide"],function(e,n,o){var r=e.originalEvent;if(e.target===t[0])if(r&&"tooltiphide"===e.type&&/mouse(leave|enter)/.test(r.type)&&i(r.relatedTarget).closest(be.elem[0]).length)try{e.preventDefault()}catch(e){}else(!r||r&&"tooltipsolo"!==r.type)&&this.toggle(e,"tooltipshow"===e.type,o)},this._ns,this),e._bind(t,"tooltipfocus",function(e,n){if(!e.isDefaultPrevented()&&e.target===t[0]){var o=i(Ie),r=D.modal_zindex+o.length,s=parseInt(t[0].style.zIndex,10);be.elem[0].style.zIndex=r-1,o.each(function(){this.style.zIndex>s&&(this.style.zIndex-=1)}),o.filter("."+Z).qtip("blur",e.originalEvent),t.addClass(Z)[0].style.zIndex=r,be.update(n);try{e.preventDefault()}catch(e){}}},this._ns,this),void e._bind(t,"tooltiphide",function(e){e.target===t[0]&&i(Ie).filter(":visible").not(t).last().qtip("focus",e)},this._ns,this)):this},toggle:function(e,t,n){return e&&e.isDefaultPrevented()?this:void be.toggle(this.qtip,!!t,n)},destroy:function(){this.qtip.tooltip.removeClass(De),this.qtip._unbind(this.qtip.tooltip,this._ns),be.toggle(this.qtip,k),delete this.qtip.elements.overlay}}),(Ce=j.modal=function(e){return new C(e,e.options.show.modal)}).sanitize=function(e){e.show&&("object"!=typeof e.show.modal?e.show.modal={on:!!e.show.modal}:"undefined"==typeof e.show.modal.on&&(e.show.modal.on=w))},D.modal_zindex=D.zindex-200,Ce.initialize="render",R.modal={"^show.modal.(on|blur)$":function(){this.destroy(),this.init(),this.qtip.elems.overlay.toggle(this.qtip.tooltip[0].offsetWidth>0)}},i.extend(w,D.defaults,{show:{modal:{on:k,effect:w,blur:w,stealfocus:w,escape:w}}}),j.viewport=function(n,i,o,r,s,a,l){function u(e,t,n,o,r,s,a,l,u){var c=i[r],E=y[e],T=C[e],b=n===H,D=E===r?u:E===s?-u:-u/2,I=T===r?l:T===s?-l:-l/2,O=m[r]+v[r]-(f?0:h[r]),R=O-c,_=c+u-(a===N?p:g)-O,w=D-(y.precedance===e||E===y[t]?I:0)-(T===M?l/2:0);return b?(w=(E===r?1:-1)*D,i[r]+=R>0?R:_>
vendor: 5,957 bytes, line 1
10?-_:0,i[r]=Math.max(-h[r]+v[r],c-w,Math.min(Math.max(-h[r]+v[r]+(a===N?p:g),c+w),i[r],"center"===E?c-D:1e9))):(o*=n===$?2:0,R>0&&(E!==r||_>0)?(i[r]-=w+o,d.invert(e,r)):_>0&&(E!==s||R>0)&&(i[r]-=(E===M?-w:w)+o,d.invert(e,s)),i[r]<m[r]&&-i[r]>_&&(i[r]=c,d=y.clone())),i[r]-c}var c,d,h,f,p,g,m,v,E=o.target,T=n.elements.tooltip,y=o.my,C=o.at,b=o.adjust,D=b.method.split(" "),I=D[0],O=D[1]||D[0],R=o.viewport,_=o.container,w={left:0,top:0};return R.jquery&&E[0]!==e&&E[0]!==t.body&&"none"!==b.method?(h=_.offset()||w,f="static"===_.css("position"),c="fixed"===T.css("position"),p=R[0]===e?R.width():R.outerWidth(k),g=R[0]===e?R.height():R.outerHeight(k),m={left:c?0:R.scrollLeft(),top:c?0:R.scrollTop()},v=R.offset()||w,"shift"===I&&"shift"===O||(d=y.clone()),w={left:"none"!==I?u(S,x,I,b.x,F,B,N,r,a):0,top:"none"!==O?u(x,S,O,b.y,L,P,A,s,l):0,my:d}):w},j.polys={polygon:function(e,t){var n,i,o,r={width:0,height:0,position:{top:1e10,right:0,bottom:0,left:1e10},adjustable:k},s=0,a=[],l=1,u=1,c=0,d=0;for(s=e.length;s--;)(n=[parseInt(e[--s],10),parseInt(e[s+1],10)])[0]>r.position.right&&(r.position.right=n[0]),n[0]<r.position.left&&(r.position.left=n[0]),n[1]>r.position.bottom&&(r.position.bottom=n[1]),n[1]<r.position.top&&(r.position.top=n[1]),a.push(n);if(i=r.width=Math.abs(r.position.right-r.position.left),o=r.height=Math.abs(r.position.bottom-r.position.top),"c"===t.abbrev())r.position={left:r.position.left+r.width/2,top:r.position.top+r.height/2};else{for(;i>0&&o>0&&l>0&&u>0;)for(i=Math.floor(i/2),o=Math.floor(o/2),t.x===F?l=i:t.x===B?l=r.width-i:l+=Math.floor(i/2),t.y===L?u=o:t.y===P?u=r.height-o:u+=Math.floor(o/2),s=a.length;s--&&!(a.length<2);)c=a[s][0]-r.position.left,d=a[s][1]-r.position.top,(t.x===F&&c>=l||t.x===B&&l>=c||t.x===M&&(l>c||c>r.width-l)||t.y===L&&d>=u||t.y===P&&u>=d||t.y===M&&(u>d||d>r.height-u))&&a.splice(s,1);r.position={left:a[0][0],top:a[0][1]}}return r},rect:function(e,t,n,i){return{width:Math.abs(n-e),height:Math.abs(i-t),position:{left:Math.min(e,n),top:Math.min(t,i)}}},_angles:{tc:1.5,tr:7/4,tl:5/4,bc:.5,br:.25,bl:.75,rc:2,lc:1,c:0},ellipse:function(e,t,n,i,o){var r=j.polys._angles[o.abbrev()],s=0===r?0:n*Math.cos(r*Math.PI),a=i*Math.sin(r*Math.PI);return{width:2*n-Math.abs(s),height:2*i-Math.abs(a),position:{left:e+s,top:t+a},adjustable:k}},circle:function(e,t,n,i){return j.polys.ellipse(e,t,n,n,i)}},j.svg=function(e,n,o){for(var r,s,a,l,u,c,d,h,f,p=n[0],g=i(p.ownerSVGElement),m=p.ownerDocument,v=(parseInt(n.css("stroke-width"),10)||0)/2;!p.getBBox;)p=p.parentNode;if(!p.getBBox||!p.parentNode)return k;switch(p.nodeName){case"ellipse":case"circle":h=j.polys.ellipse(p.cx.baseVal.value,p.cy.baseVal.value,(p.rx||p.r).baseVal.value+v,(p.ry||p.r).baseVal.value+v,o);break;case"line":case"polygon":case"polyline":for(h=[],c=-1,l=(d=p.points||[{x:p.x1.baseVal.value,y:p.y1.baseVal.value},{x:p.x2.baseVal.value,y:p.y2.baseVal.value}]).numberOfItems||d.length;++c<l;)u=d.getItem?d.getItem(c):d[c],h.push.apply(h,[u.x,u.y]);h=j.polys.polygon(h,o);break;default:h={width:(h=p.getBBox()).width,height:h.height,position:{left:h.x,top:h.y}}}return f=h.position,(g=g[0]).createSVGPoint&&(s=p.getScreenCTM(),(d=g.createSVGPoint()).x=f.left,d.y=f.top,a=d.matrixTransform(s),f.left=a.x,f.top=a.y),m!==t&&"mouse"!==e.position.target&&((r=i((m.defaultView||m.parentWindow).frameElement).offset())&&(f.left+=r.left,f.top+=r.top)),m=i(m),f.left+=m.scrollLeft(),f.top+=m.scrollTop(),h},j.imagemap=function(e,t,n){t.jquery||(t=i(t));var o,r,s,a,l,u=(t.attr("shape")||"rect").toLowerCase().replace("poly","polygon"),c=i('img[usemap="#'+t.parent("map").attr("name")+'"]'),d=i.trim(t.attr("coords")).replace(/,$/,"").split(",");if(!c.length)return k;if("polygon"===u)a=j.polys.polygon(d,n);else{if(!j.polys[u])return k;for(s=-1,l=d.length,r=[];++s<l;)r.push(parseInt(d[s],10));a=j.polys[u].apply(this,r.concat(n))}return(o=c.offset()).left+=Math.ceil((c.outerWidth(k)-c.width())/2),o.top+=Math.ceil((c.outerHeight(k)-c.height())/2),a.position.left+=o.left,a.position.top+=o.top,a};i.extend(b.prototype,{_scroll:function(){var t=this.qtip.elements.overlay;t&&(t[0].style.top=i(e).scrollTop()+"px")},init:function(n){var o=n.tooltip;i("select, object").length<1&&(this.bgiframe=n.elements.bgiframe=i('<iframe class="qtip-bgiframe" frameborder="0" tabindex="-1" src="javascript:\'\';" style="display:block; position:absolute; z-index:-1; filter:alpha(opacity=0); -ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=0)";"></iframe>').appendTo(o),n._bind(o,"tooltipmove",this.adjustBGIFrame,this._ns,this)),this.redrawContainer=i("<div/>",{id:q+"-rcontainer"}).appendTo(t.body),n.elements.overlay&&n.elements.overlay.addClass("qtipmodal-ie6fix")&&(n._bind(e,["scroll","resize"],this._scroll,this._ns,this),n._bind(o,["tooltipshow"],this._scroll,this._ns,this)),this.redraw()},adjustBGIFrame:function(){var e,t,n=this.qtip.tooltip,i={height:n.outerHeight(k),width:n.outerWidth(k)},o=this.qtip.plugins.tip,r=this.qtip.elements.tip;t={left:-(t=parseInt(n.css("borderLeftWidth"),10)||0),top:-t},o&&r&&(t[(e="x"===o.corner.precedance?[N,F]:[A,L])[1]]-=r[e[0]]()),this.bgiframe.css(t).css(i)},redraw:function(){if(this.qtip.rendered<1||this.drawing)return this;var e,t,n,i,o=this.qtip.tooltip,r=this.qtip.options.style,s=this.qtip.options.position.container;return this.qtip.drawing=1,r.height&&o.css(A,r.height),r.width?o.css(N,r.width):(o.css(N,"").appendTo(this.redrawContainer),1>(t=o.width())%2&&(t+=1),e=((n=o.css("maxWidth")||"")+(i=o.css("minWidth")||"")).indexOf("%")>-1?s.width()/100:0,t=(n=(n.indexOf("%")>-1?e:1*parseInt(n,10))||t)+(i=(i.indexOf("%")>-1?e:1*parseInt(i,10))||0)?Math.min(Math.max(t,i),n):t,o.css(N,Math.round(t)).appendTo(s)),this.drawing=0,this},destroy:function(){this.bgiframe&&this.bgiframe.remove(),this.qtip._unbind([e,this.qtip.tooltip],this._ns)}}),(j.ie6=function(e){return 6===ne.ie?new b(e):k}).initialize="render",R.ie6={"^content|style$":function(){this.redraw()}}})}(window,document);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.