/** * Copyright (c) Tiny Technologies, Inc. All rights reserved. * Licensed under the LGPL or a commercial license. * For LGPL see License.txt in the project root for license information. * For commercial licenses see https://www.tiny.cloud/ * * Version: 5.0.9 (2019-06-26) */ !function(j){"use strict";var i=function(){},q=function(n,r){return function(){for(var e=[],t=0;tu[0]&&e[1]+~]|"+Ct+")"+Ct+"*"),kt=new RegExp("="+Ct+"*([^\\]'\"]*?)"+Ct+"*\\]","g"),Tt=new RegExp(zt),At=new RegExp("^"+wt+"$"),Mt={ID:new RegExp("^#("+wt+")"),CLASS:new RegExp("^\\.("+wt+")"),TAG:new RegExp("^("+wt+"|[*])"),ATTR:new RegExp("^"+xt),PSEUDO:new RegExp("^"+zt),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+Ct+"*(even|odd|(([+-]|)(\\d*)n|)"+Ct+"*(?:([+-]|)"+Ct+"*(\\d+)|))"+Ct+"*\\)|)","i"),bool:new RegExp("^(?:checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped)$","i"),needsContext:new RegExp("^"+Ct+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+Ct+"*((?:-\\d)?\\d*)"+Ct+"*\\)|)(?=[^-]|$)","i")},Rt=/^(?:input|select|textarea|button)$/i,Dt=/^h\d$/i,Ot=/^[^{]+\{\s*\[native \w/,Bt=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,Ht=/[+~]/,_t=/'|\\/g,Pt=new RegExp("\\\\([\\da-f]{1,6}"+Ct+"?|("+Ct+")|.)","ig"),Lt=function(e,t,n){var r="0x"+t-65536;return r!=r||n?t:r<0?String.fromCharCode(r+65536):String.fromCharCode(r>>10|55296,1023&r|56320)};try{vt.apply(mt=yt.call(it.childNodes),it.childNodes),mt[it.childNodes.length].nodeType}catch(zE){vt={apply:mt.length?function(e,t){pt.apply(e,yt.call(t))}:function(e,t){for(var n=e.length,r=0;e[n++]=t[r++];);e.length=n-1}}}var Vt=function(e,t,n,r){var o,i,a,u,s,l,c,f,d,h;if((t?t.ownerDocument||t:it)!==Pe&&_e(t),n=n||[],!e||"string"!=typeof e)return n;if(1!==(u=(t=t||Pe).nodeType)&&9!==u)return[];if(Ve&&!r){if(o=Bt.exec(e))if(a=o[1]){if(9===u){if(!(i=t.getElementById(a))||!i.parentNode)return n;if(i.id===a)return n.push(i),n}else if(t.ownerDocument&&(i=t.ownerDocument.getElementById(a))&&Ue(t,i)&&i.id===a)return n.push(i),n}else{if(o[2])return vt.apply(n,t.getElementsByTagName(e)),n;if((a=o[3])&&Se.getElementsByClassName)return vt.apply(n,t.getElementsByClassName(a)),n}if(Se.qsa&&(!Ie||!Ie.test(e))){if(f=c=ot,d=t,h=9===u&&e,1===u&&"object"!==t.nodeName.toLowerCase()){for(l=Me(e),(c=t.getAttribute("id"))?f=c.replace(_t,"\\$&"):t.setAttribute("id",f),f="[id='"+f+"'] ",s=l.length;s--;)l[s]=f+Xt(l[s]);d=Ht.test(e)&&Wt(t.parentNode)||t,h=l.join(",")}if(h)try{return vt.apply(n,d.querySelectorAll(h)),n}catch(m){}finally{c||t.removeAttribute("id")}}}return De(e.replace(Nt,"$1"),t,n,r)};function It(){var n=[];return function r(e,t){return n.push(e+" ")>ke.cacheLength&&delete r[n.shift()],r[e+" "]=t}}function Ft(e){return e[ot]=!0,e}function Ut(e,t){var n=t&&e,r=n&&1===e.nodeType&&1===t.nodeType&&(~t.sourceIndex||1<<31)-(~e.sourceIndex||1<<31);if(r)return r;if(n)for(;n=n.nextSibling;)if(n===t)return-1;return e?1:-1}function jt(t){return function(e){return"input"===e.nodeName.toLowerCase()&&e.type===t}}function qt(n){return function(e){var t=e.nodeName.toLowerCase();return("input"===t||"button"===t)&&e.type===n}}function $t(a){return Ft(function(i){return i=+i,Ft(function(e,t){for(var n,r=a([],e.length,i),o=r.length;o--;)e[n=r[o]]&&(e[n]=!(t[n]=e[n]))})})}function Wt(e){return e&&typeof e.getElementsByTagName!==dt&&e}for(Ee in Se=Vt.support={},Ae=Vt.isXML=function(e){var t=e&&(e.ownerDocument||e).documentElement;return!!t&&"HTML"!==t.nodeName},_e=Vt.setDocument=function(e){var t,s=e?e.ownerDocument||e:it,n=s.defaultView;return s!==Pe&&9===s.nodeType&&s.documentElement?(Le=(Pe=s).documentElement,Ve=!Ae(s),n&&n!==function r(e){try{return e.top}catch(t){}return null}(n)&&(n.addEventListener?n.addEventListener("unload",function(){_e()},!1):n.attachEvent&&n.attachEvent("onunload",function(){_e()})),Se.attributes=!0,Se.getElementsByTagName=!0,Se.getElementsByClassName=Ot.test(s.getElementsByClassName),Se.getById=!0,ke.find.ID=function(e,t){if(typeof t.getElementById!==dt&&Ve){var n=t.getElementById(e);return n&&n.parentNode?[n]:[]}},ke.filter.ID=function(e){var t=e.replace(Pt,Lt);return function(e){return e.getAttribute("id")===t}},ke.find.TAG=Se.getElementsByTagName?function(e,t){if(typeof t.getElementsByTagName!==dt)return t.getElementsByTagName(e)}:function(e,t){var n,r=[],o=0,i=t.getElementsByTagName(e);if("*"!==e)return i;for(;n=i[o++];)1===n.nodeType&&r.push(n);return r},ke.find.CLASS=Se.getElementsByClassName&&function(e,t){if(Ve)return t.getElementsByClassName(e)},Fe=[],Ie=[],Se.disconnectedMatch=!0,Ie=Ie.length&&new RegExp(Ie.join("|")),Fe=Fe.length&&new RegExp(Fe.join("|")),t=Ot.test(Le.compareDocumentPosition),Ue=t||Ot.test(Le.contains)?function(e,t){var n=9===e.nodeType?e.documentElement:e,r=t&&t.parentNode;return e===r||!(!r||1!==r.nodeType||!(n.contains?n.contains(r):e.compareDocumentPosition&&16&e.compareDocumentPosition(r)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},ft=t?function(e,t){if(e===t)return He=!0,0;var n=!e.compareDocumentPosition-!t.compareDocumentPosition;return n||(1&(n=(e.ownerDocument||e)===(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!Se.sortDetached&&t.compareDocumentPosition(e)===n?e===s||e.ownerDocument===it&&Ue(it,e)?-1:t===s||t.ownerDocument===it&&Ue(it,t)?1:Be?bt.call(Be,e)-bt.call(Be,t):0:4&n?-1:1)}:function(e,t){if(e===t)return He=!0,0;var n,r=0,o=e.parentNode,i=t.parentNode,a=[e],u=[t];if(!o||!i)return e===s?-1:t===s?1:o?-1:i?1:Be?bt.call(Be,e)-bt.call(Be,t):0;if(o===i)return Ut(e,t);for(n=e;n=n.parentNode;)a.unshift(n);for(n=t;n=n.parentNode;)u.unshift(n);for(;a[r]===u[r];)r++;return r?Ut(a[r],u[r]):a[r]===it?-1:u[r]===it?1:0},s):Pe},Vt.matches=function(e,t){return Vt(e,null,null,t)},Vt.matchesSelector=function(e,t){if((e.ownerDocument||e)!==Pe&&_e(e),t=t.replace(kt,"='$1']"),Se.matchesSelector&&Ve&&(!Fe||!Fe.test(t))&&(!Ie||!Ie.test(t)))try{var n=(void 0).call(e,t);if(n||Se.disconnectedMatch||e.document&&11!==e.document.nodeType)return n}catch(zE){}return 0":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(Pt,Lt),e[3]=(e[3]||e[4]||e[5]||"").replace(Pt,Lt),"~="===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]||Vt.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]&&Vt.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return Mt.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&Tt.test(n)&&(t=Me(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(Pt,Lt).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=st[e+" "];return t||(t=new RegExp("(^|"+Ct+")"+e+"("+Ct+"|$)"))&&st(e,function(e){return t.test("string"==typeof e.className&&e.className||typeof e.getAttribute!==dt&&e.getAttribute("class")||"")})},ATTR:function(n,r,o){return function(e){var t=Vt.attr(e,n);return null==t?"!="===r:!r||(t+="","="===r?t===o:"!="===r?t!==o:"^="===r?o&&0===t.indexOf(o):"*="===r?o&&-1)[^>]*$|#([\w\-]*)$)/,mn=rt.Event,gn=ln.makeMap("children,contents,next,prev"),pn=function(e){return void 0!==e},vn=function(e){return"string"==typeof e},yn=function(e,t){var n,r,o;for(o=(t=t||cn).createElement("div"),n=t.createDocumentFragment(),o.innerHTML=e;r=o.firstChild;)n.appendChild(r);return n},bn=function(e,t,n,r){var o;if(vn(t))t=yn(t,On(e[0]));else if(t.length&&!t.nodeType){if(t=Fn.makeArray(t),r)for(o=t.length-1;0<=o;o--)bn(e,t[o],n,r);else for(o=0;o"===e.charAt(e.length-1)&&3<=e.length?[null,e,null]:hn.exec(e)))return Fn(t).find(e);if(n[1])for(r=yn(e,On(t)).firstChild;r;)fn.call(o,r),r=r.nextSibling;else{if(!(r=On(t).getElementById(n[2])))return o;if(r.id!==n[2])return o.find(e);o.length=1,o[0]=r}}else this.add(e,!1);return o},toArray:function(){return ln.toArray(this)},add:function(e,t){var n,r,o=this;if(vn(e))return o.add(Fn(e));if(!1!==t)for(n=Fn.unique(o.toArray().concat(Fn.makeArray(e))),o.length=n.length,r=0;r=a.length&&r(o)}))})})},No=function(e){return zo(e,xo.nu)},Eo=function(n){return{is:function(e){return n===e},isValue:u,isError:l,getOr:$(n),getOrThunk:$(n),getOrDie:$(n),or:function(e){return Eo(n)},orThunk:function(e){return Eo(n)},fold:function(e,t){return t(n)},map:function(e){return Eo(e(n))},mapError:function(e){return Eo(n)},each:function(e){e(n)},bind:function(e){return e(n)},exists:function(e){return e(n)},forall:function(e){return e(n)},toOption:function(){return T.some(n)}}},So=function(n){return{is:l,isValue:l,isError:u,getOr:W,getOrThunk:function(e){return e()},getOrDie:function(){return a(String(n))()},or:function(e){return e},orThunk:function(e){return e()},fold:function(e,t){return e(n)},map:function(e){return So(n)},mapError:function(e){return So(e(n))},each:i,bind:function(e){return So(n)},exists:l,forall:u,toOption:T.none}},ko={value:Eo,error:So,fromOption:function(e,t){return e.fold(function(){return So(t)},Eo)}};var To,Ao,Mo,Ro=function(t){return function(e){return!!e&&e.nodeType===t}},Do=Ro(1),Oo=function(e){var r=e.toLowerCase().split(" ");return function(e){var t,n;if(e&&e.nodeType)for(n=e.nodeName.toLowerCase(),t=0;t\"\u0060\u007E-\uD7FF\uE000-\uFFEF]|[\uD800-\uDBFF][\uDC00-\uDFFF]/g,ui=/[<>&\u007E-\uD7FF\uE000-\uFFEF]|[\uD800-\uDBFF][\uDC00-\uDFFF]/g,si=/[<>&\"\']/g,li=/&#([a-z0-9]+);?|&([a-z0-9]+);/gi,ci={128:"\u20ac",130:"\u201a",131:"\u0192",132:"\u201e",133:"\u2026",134:"\u2020",135:"\u2021",136:"\u02c6",137:"\u2030",138:"\u0160",139:"\u2039",140:"\u0152",142:"\u017d",145:"\u2018",146:"\u2019",147:"\u201c",148:"\u201d",149:"\u2022",150:"\u2013",151:"\u2014",152:"\u02dc",153:"\u2122",154:"\u0161",155:"\u203a",156:"\u0153",158:"\u017e",159:"\u0178"};Ao={'"':""","'":"'","<":"<",">":">","&":"&","`":"`"},Mo={"<":"<",">":">","&":"&",""":'"',"'":"'"};var fi=function(e,t){var n,r,o,i={};if(e){for(e=e.split(","),t=t||10,n=0;n>10),56320+(1023&t))):ci[t]||String.fromCharCode(t):Mo[e]||To[e]||(n=e,(r=vr.fromTag("div").dom()).innerHTML=n,r.textContent||r.innerText||n);var n,r})}},pi={},vi={},yi=ln.makeMap,bi=ln.each,Ci=ln.extend,wi=ln.explode,xi=ln.inArray,zi=function(e,t){return(e=ln.trim(e))?e.split(t||" "):[]},Ni=function(e){var u,t,n,r,o,i,s={},a=function(e,t,n){var r,o,i,a=function(e,t){var n,r,o={};for(n=0,r=e.length;n