(window.webpackJsonp=window.webpackJsonp||[]).push([[1],[function(un,cn,e){var fn;!function(e,t){"use strict";"object"==typeof un.exports?un.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(k,e){"use strict";function g(e,t,n){var r,i,o=(n=n||Bt).createElement("script");if(o.text=e,t)for(r in nn)(i=t[r]||t.getAttribute&&t.getAttribute(r))&&o.setAttribute(r,i);n.head.appendChild(o).parentNode.removeChild(o)}function v(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?Kt[$t.call(e)]||"object":typeof e}function s(e){var t=!!e&&"length"in e&&e.length,n=v(e);return!en(e)&&!tn(e)&&("array"===n||0===t||"number"==typeof t&&0S.cacheLength&&delete e[r.shift()],e[t+" "]=n}}function l(e){return e[W]=!0,e}function i(e){var t=N.createElement("fieldset");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function t(e,t){for(var n=e.split("|"),r=n.length;r--;)S.attrHandle[n[r]]=t}function u(e,t){var n=t&&e,r=n&&1===e.nodeType&&1===t.nodeType&&e.sourceIndex-t.sourceIndex;if(r)return r;if(n)for(;n=n.nextSibling;)if(n===t)return-1;return e?1:-1}function r(t){return function(e){return"input"===e.nodeName.toLowerCase()&&e.type===t}}function o(n){return function(e){var t=e.nodeName.toLowerCase();return("input"===t||"button"===t)&&e.type===n}}function a(t){return function(e){return"form"in e?e.parentNode&&!1===e.disabled?"label"in e?"label"in e.parentNode?e.parentNode.disabled===t:e.disabled===t:e.isDisabled===t||e.isDisabled!==!t&&Ce(e)===t:e.disabled===t:"label"in e&&e.disabled===t}}function s(a){return l(function(o){return o=+o,l(function(e,t){for(var n,r=a([],e.length,o),i=r.length;i--;)e[n=r[i]]&&(e[n]=!(t[n]=e[n]))})})}function d(e){return e&&void 0!==e.getElementsByTagName&&e}function c(){}function p(e){for(var t=0,n=e.length,r="";t>10|55296,1023&r|56320)}function b(){P()}var _,k,S,C,T,O,E,M,D,A,L,P,N,I,j,R,F,z,H,W="sizzle"+1*new Date,B=n.document,U=0,q=0,G=e(),Y=e(),V=e(),K=e(),$=function(e,t){return e===t&&(L=!0),0},X={}.hasOwnProperty,J=[],Q=J.pop,Z=J.push,ee=J.push,te=J.slice,ne=function(e,t){for(var n=0,r=e.length;n+~]|"+ie+")"+ie+"*"),he=new RegExp(ie+"|>"),de=new RegExp(se),pe=new RegExp("^"+oe+"$"),ge={ID:new RegExp("^#("+oe+")"),CLASS:new RegExp("^\\.("+oe+")"),TAG:new RegExp("^("+oe+"|[*])"),ATTR:new RegExp("^"+ae),PSEUDO:new RegExp("^"+se),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+ie+"*(even|odd|(([+-]|)(\\d*)n|)"+ie+"*(?:([+-]|)"+ie+"*(\\d+)|))"+ie+"*\\)|)","i"),bool:new RegExp("^(?:"+re+")$","i"),needsContext:new RegExp("^"+ie+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+ie+"*((?:-\\d)?\\d*)"+ie+"*\\)|)(?=[^-]|$)","i")},ve=/HTML$/i,me=/^(?:input|select|textarea|button)$/i,ye=/^h\d$/i,be=/^[^{]+\{\s*\[native \w/,we=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,xe=/[+~]/,_e=new RegExp("\\\\([\\da-f]{1,6}"+ie+"?|("+ie+")|.)","ig"),ke=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,Se=function(e,t){return t?"\0"===e?"�":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e},Ce=f(function(e){return!0===e.disabled&&"fieldset"===e.nodeName.toLowerCase()},{dir:"parentNode",next:"legend"});try{ee.apply(J=te.call(B.childNodes),B.childNodes),J[B.childNodes.length].nodeType}catch(e){ee={apply:J.length?function(e,t){Z.apply(e,te.call(t))}:function(e,t){for(var n=e.length,r=0;e[n++]=t[r++];);e.length=n-1}}}for(_ in k=w.support={},T=w.isXML=function(e){var t=e.namespaceURI,n=(e.ownerDocument||e).documentElement;return!ve.test(t||n&&n.nodeName||"HTML")},P=w.setDocument=function(e){var t,n,r=e?e.ownerDocument||e:B;return r!==N&&9===r.nodeType&&r.documentElement&&(I=(N=r).documentElement,j=!T(N),B!==N&&(n=N.defaultView)&&n.top!==n&&(n.addEventListener?n.addEventListener("unload",b,!1):n.attachEvent&&n.attachEvent("onunload",b)),k.attributes=i(function(e){return e.className="i",!e.getAttribute("className")}),k.getElementsByTagName=i(function(e){return e.appendChild(N.createComment("")),!e.getElementsByTagName("*").length}),k.getElementsByClassName=be.test(N.getElementsByClassName),k.getById=i(function(e){return I.appendChild(e).id=W,!N.getElementsByName||!N.getElementsByName(W).length}),k.getById?(S.filter.ID=function(e){var t=e.replace(_e,m);return function(e){return e.getAttribute("id")===t}},S.find.ID=function(e,t){if(void 0!==t.getElementById&&j){var n=t.getElementById(e);return n?[n]:[]}}):(S.filter.ID=function(e){var n=e.replace(_e,m);return function(e){var t=void 0!==e.getAttributeNode&&e.getAttributeNode("id");return t&&t.value===n}},S.find.ID=function(e,t){if(void 0!==t.getElementById&&j){var n,r,i,o=t.getElementById(e);if(o){if((n=o.getAttributeNode("id"))&&n.value===e)return[o];for(i=t.getElementsByName(e),r=0;o=i[r++];)if((n=o.getAttributeNode("id"))&&n.value===e)return[o]}return[]}}),S.find.TAG=k.getElementsByTagName?function(e,t){return void 0!==t.getElementsByTagName?t.getElementsByTagName(e):k.qsa?t.querySelectorAll(e):void 0}:function(e,t){var n,r=[],i=0,o=t.getElementsByTagName(e);if("*"!==e)return o;for(;n=o[i++];)1===n.nodeType&&r.push(n);return r},S.find.CLASS=k.getElementsByClassName&&function(e,t){if(void 0!==t.getElementsByClassName&&j)return t.getElementsByClassName(e)},F=[],R=[],(k.qsa=be.test(N.querySelectorAll))&&(i(function(e){I.appendChild(e).innerHTML="",e.querySelectorAll("[msallowcapture^='']").length&&R.push("[*^$]="+ie+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||R.push("\\["+ie+"*(?:value|"+re+")"),e.querySelectorAll("[id~="+W+"-]").length||R.push("~="),e.querySelectorAll(":checked").length||R.push(":checked"),e.querySelectorAll("a#"+W+"+*").length||R.push(".#.+[+~]")}),i(function(e){e.innerHTML="";var t=N.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&R.push("name"+ie+"*[*^$|!~]?="),2!==e.querySelectorAll(":enabled").length&&R.push(":enabled",":disabled"),I.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&R.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),R.push(",.*:")})),(k.matchesSelector=be.test(z=I.matches||I.webkitMatchesSelector||I.mozMatchesSelector||I.oMatchesSelector||I.msMatchesSelector))&&i(function(e){k.disconnectedMatch=z.call(e,"*"),z.call(e,"[s!='']:x"),F.push("!=",se)}),R=R.length&&new RegExp(R.join("|")),F=F.length&&new RegExp(F.join("|")),t=be.test(I.compareDocumentPosition),H=t||be.test(I.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},$=t?function(e,t){if(e===t)return L=!0,0;var n=!e.compareDocumentPosition-!t.compareDocumentPosition;return n||(1&(n=(e.ownerDocument||e)===(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!k.sortDetached&&t.compareDocumentPosition(e)===n?e===N||e.ownerDocument===B&&H(B,e)?-1:t===N||t.ownerDocument===B&&H(B,t)?1:A?ne(A,e)-ne(A,t):0:4&n?-1:1)}:function(e,t){if(e===t)return L=!0,0;var n,r=0,i=e.parentNode,o=t.parentNode,a=[e],s=[t];if(!i||!o)return e===N?-1:t===N?1:i?-1:o?1:A?ne(A,e)-ne(A,t):0;if(i===o)return u(e,t);for(n=e;n=n.parentNode;)a.unshift(n);for(n=t;n=n.parentNode;)s.unshift(n);for(;a[r]===s[r];)r++;return r?u(a[r],s[r]):a[r]===B?-1:s[r]===B?1:0}),N},w.matches=function(e,t){return w(e,null,null,t)},w.matchesSelector=function(e,t){if((e.ownerDocument||e)!==N&&P(e),k.matchesSelector&&j&&!K[t+" "]&&(!F||!F.test(t))&&(!R||!R.test(t)))try{var n=z.call(e,t);if(n||k.disconnectedMatch||e.document&&11!==e.document.nodeType)return n}catch(e){K(t,!0)}return 0":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(_e,m),e[3]=(e[3]||e[4]||e[5]||"").replace(_e,m),"~="===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]||w.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]&&w.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return ge.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&de.test(n)&&(t=O(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(_e,m).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=G[e+" "];return t||(t=new RegExp("(^|"+ie+")"+e+"("+ie+"|$)"))&&G(e,function(e){return t.test("string"==typeof e.className&&e.className||void 0!==e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(n,r,i){return function(e){var t=w.attr(e,n);return null==t?"!="===r:!r||(t+="","="===r?t===i:"!="===r?t!==i:"^="===r?i&&0===t.indexOf(i):"*="===r?i&&-1:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i,on.filter=function(e,t,n){var r=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===r.nodeType?on.find.matchesSelector(r,e)?[r]:[]:on.find.matches(e,on.grep(t,function(e){return 1===e.nodeType}))},on.fn.extend({find:function(e){var t,n,r=this.length,i=this;if("string"!=typeof e)return this.pushStack(on(e).filter(function(){for(t=0;t)[^>]*|#([\w-]+))$/,(on.fn.init=function(e,t,n){var r,i;if(!e)return this;if(n=n||ne,"string"!=typeof e)return e.nodeType?(this[0]=e,this.length=1,this):en(e)?void 0!==n.ready?n.ready(e):e(on):on.makeArray(e,this);if(!(r="<"===e[0]&&">"===e[e.length-1]&&3<=e.length?[null,e,null]:re.exec(e))||!r[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(r[1]){if(t=t instanceof on?t[0]:t,on.merge(this,on.parseHTML(r[1],t&&t.nodeType?t.ownerDocument||t:Bt,!0)),te.test(r[1])&&on.isPlainObject(t))for(r in t)en(this[r])?this[r](t[r]):this.attr(r,t[r]);return this}return(i=Bt.getElementById(r[2]))&&(this[0]=i,this.length=1),this}).prototype=on.fn,ne=on(Bt),ie=/^(?:parents|prev(?:Until|All))/,oe={children:!0,contents:!0,next:!0,prev:!0},on.fn.extend({has:function(e){var t=on(e,this),n=t.length;return this.filter(function(){for(var e=0;e\x20\t\r\n\f]*)/i,Ee=/^$|^module$|\/(?:java|ecma)script/i,(Me={option:[1,""],thead:[1,"","
"],col:[2,"","
"],tr:[2,"","
"],td:[3,"","
"],_default:[0,"",""]}).optgroup=Me.option,Me.tbody=Me.tfoot=Me.colgroup=Me.caption=Me.thead,Me.th=Me.td,De=/<|&#?\w+;/,Mt=Bt.createDocumentFragment().appendChild(Bt.createElement("div")),(Dt=Bt.createElement("input")).setAttribute("type","radio"),Dt.setAttribute("checked","checked"),Dt.setAttribute("name","t"),Mt.appendChild(Dt),Zt.checkClone=Mt.cloneNode(!0).cloneNode(!0).lastChild.checked,Mt.innerHTML="",Zt.noCloneChecked=!!Mt.cloneNode(!0).lastChild.defaultValue,Ae=/^key/,Le=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Pe=/^([^.]*)(?:\.(.+)|)/,on.event={global:{},add:function(t,e,n,r,i){var o,a,s,l,u,c,f,h,d,p,g,v=de.get(t);if(v)for(n.handler&&(n=(o=n).handler,i=o.selector),i&&on.find.matchesSelector(we,i),n.guid||(n.guid=on.guid++),(l=v.events)||(l=v.events={}),(a=v.handle)||(a=v.handle=function(e){return void 0!==on&&on.event.triggered!==e.type?on.event.dispatch.apply(t,arguments):void 0}),u=(e=(e||"").match(ae)||[""]).length;u--;)d=g=(s=Pe.exec(e[u])||[])[1],p=(s[2]||"").split(".").sort(),d&&(f=on.event.special[d]||{},d=(i?f.delegateType:f.bindType)||d,f=on.event.special[d]||{},c=on.extend({type:d,origType:g,data:r,handler:n,guid:n.guid,selector:i,needsContext:i&&on.expr.match.needsContext.test(i),namespace:p.join(".")},o),(h=l[d])||((h=l[d]=[]).delegateCount=0,f.setup&&!1!==f.setup.call(t,r,p,a)||t.addEventListener&&t.addEventListener(d,a)),f.add&&(f.add.call(t,c),c.handler.guid||(c.handler.guid=n.guid)),i?h.splice(h.delegateCount++,0,c):h.push(c),on.event.global[d]=!0)},remove:function(e,t,n,r,i){var o,a,s,l,u,c,f,h,d,p,g,v=de.hasData(e)&&de.get(e);if(v&&(l=v.events)){for(u=(t=(t||"").match(ae)||[""]).length;u--;)if(d=g=(s=Pe.exec(t[u])||[])[1],p=(s[2]||"").split(".").sort(),d){for(f=on.event.special[d]||{},h=l[d=(r?f.delegateType:f.bindType)||d]||[],s=s[2]&&new RegExp("(^|\\.)"+p.join("\\.(?:.*\\.|)")+"(\\.|$)"),a=o=h.length;o--;)c=h[o],!i&&g!==c.origType||n&&n.guid!==c.guid||s&&!s.test(c.namespace)||r&&r!==c.selector&&("**"!==r||!c.selector)||(h.splice(o,1),c.selector&&h.delegateCount--,f.remove&&f.remove.call(e,c));a&&!h.length&&(f.teardown&&!1!==f.teardown.call(e,p,v.handle)||on.removeEvent(e,d,v.handle),delete l[d])}else for(d in l)on.event.remove(e,d+t[u],n,r,!0);on.isEmptyObject(l)&&de.remove(e,"handle events")}},dispatch:function(e){var t,n,r,i,o,a,s=on.event.fix(e),l=new Array(arguments.length),u=(de.get(this,"events")||{})[s.type]||[],c=on.event.special[s.type]||{};for(l[0]=s,t=1;t\x20\t\r\n\f]*)[^>]*)\/>/gi,Ie=/\s*$/g,on.extend({htmlPrefilter:function(e){return e.replace(Ne,"<$1>")},clone:function(e,t,n){var r,i,o,a,s,l,u,c=e.cloneNode(!0),f=xe(e);if(!(Zt.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||on.isXMLDoc(e)))for(a=y(c),r=0,i=(o=y(e)).length;r").attr(n.scriptAttrs||{}).prop({charset:n.scriptCharset,src:n.url}).on("load error",i=function(e){r.remove(),i=null,e&&t("error"===e.type?404:200,e.type)}),Bt.head.appendChild(r[0])},abort:function(){i&&i()}}}),Ct=[],Tt=/(=)\?(?=&|$)|\?\?/,on.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=Ct.pop()||on.expando+"_"+at++;return this[e]=!0,e}}),on.ajaxPrefilter("json jsonp",function(e,t,n){var r,i,o,a=!1!==e.jsonp&&(Tt.test(e.url)?"url":"string"==typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&Tt.test(e.data)&&"data");if(a||"jsonp"===e.dataTypes[0])return r=e.jsonpCallback=en(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,a?e[a]=e[a].replace(Tt,"$1"+r):!1!==e.jsonp&&(e.url+=(st.test(e.url)?"&":"?")+e.jsonp+"="+r),e.converters["script json"]=function(){return o||on.error(r+" was not called"),o[0]},e.dataTypes[0]="json",i=k[r],k[r]=function(){o=arguments},n.always(function(){void 0===i?on(k).removeProp(r):k[r]=i,e[r]&&(e.jsonpCallback=t.jsonpCallback,Ct.push(r)),o&&en(i)&&i(o[0]),o=i=void 0}),"script"}),Zt.createHTMLDocument=((Ht=Bt.implementation.createHTMLDocument("").body).innerHTML="
",2===Ht.childNodes.length),on.parseHTML=function(e,t,n){return"string"!=typeof e?[]:("boolean"==typeof t&&(n=t,t=!1),t||(Zt.createHTMLDocument?((r=(t=Bt.implementation.createHTMLDocument("")).createElement("base")).href=Bt.location.href,t.head.appendChild(r)):t=Bt),o=!n&&[],(i=te.exec(e))?[t.createElement(i[1])]:(i=w([e],t,o),o&&o.length&&on(o).remove(),on.merge([],i.childNodes)));var r,i,o},on.fn.load=function(e,t,n){var r,i,o,a=this,s=e.indexOf(" ");return-1").append(on.parseHTML(e)).find(r):e)}).always(n&&function(e,t){a.each(function(){n.apply(this,o||[e.responseText,t,e])})}),this},on.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){on.fn[t]=function(e){return this.on(t,e)}}),on.expr.pseudos.animated=function(t){return on.grep(on.timers,function(e){return t===e.elem}).length},on.offset={setOffset:function(e,t,n){var r,i,o,a,s,l,u=on.css(e,"position"),c=on(e),f={};"static"===u&&(e.style.position="relative"),s=c.offset(),o=on.css(e,"top"),l=on.css(e,"left"),i=("absolute"===u||"fixed"===u)&&-1<(o+l).indexOf("auto")?(a=(r=c.position()).top,r.left):(a=parseFloat(o)||0,parseFloat(l)||0),en(t)&&(t=t.call(e,n,on.extend({},s))),null!=t.top&&(f.top=t.top-s.top+a),null!=t.left&&(f.left=t.left-s.left+i),"using"in t?t.using.call(e,f):c.css(f)}},on.fn.extend({offset:function(t){if(arguments.length)return void 0===t?this:this.each(function(e){on.offset.setOffset(this,t,e)});var e,n,r=this[0];return r?r.getClientRects().length?(e=r.getBoundingClientRect(),n=r.ownerDocument.defaultView,{top:e.top+n.pageYOffset,left:e.left+n.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var e,t,n,r=this[0],i={top:0,left:0};if("fixed"===on.css(r,"position"))t=r.getBoundingClientRect();else{for(t=this.offset(),n=r.ownerDocument,e=r.offsetParent||n.documentElement;e&&(e===n.body||e===n.documentElement)&&"static"===on.css(e,"position");)e=e.parentNode;e&&e!==r&&1===e.nodeType&&((i=on(e).offset()).top+=on.css(e,"borderTopWidth",!0),i.left+=on.css(e,"borderLeftWidth",!0))}return{top:t.top-i.top-on.css(r,"marginTop",!0),left:t.left-i.left-on.css(r,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var e=this.offsetParent;e&&"static"===on.css(e,"position");)e=e.offsetParent;return e||we})}}),on.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(t,i){var o="pageYOffset"===i;on.fn[t]=function(e){return ue(this,function(e,t,n){var r;if(tn(e)?r=e:9===e.nodeType&&(r=e.defaultView),void 0===n)return r?r[i]:e[t];r?r.scrollTo(o?r.pageXOffset:n,o?n:r.pageYOffset):e[t]=n},t,e,arguments.length)}}),on.each(["top","left"],function(e,n){on.cssHooks[n]=P(Zt.pixelPosition,function(e,t){if(t)return t=L(e,n),Fe.test(t)?on(e).position()[n]+"px":t})}),on.each({Height:"height",Width:"width"},function(a,s){on.each({padding:"inner"+a,content:s,"":"outer"+a},function(r,o){on.fn[o]=function(e,t){var n=arguments.length&&(r||"boolean"!=typeof e),i=r||(!0===e||!0===t?"margin":"border");return ue(this,function(e,t,n){var r;return tn(e)?0===o.indexOf("outer")?e["inner"+a]:e.document.documentElement["client"+a]:9===e.nodeType?(r=e.documentElement,Math.max(e.body["scroll"+a],r["scroll"+a],e.body["offset"+a],r["offset"+a],r["client"+a])):void 0===n?on.css(e,t,i):on.style(e,t,n,i)},s,n?e:void 0,n)}})}),on.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(e,n){on.fn[n]=function(e,t){return 0"+i+""};e.exports=function(t,e){var n={};n[t]=e(o),r(r.P+r.F*i(function(){var e=""[t]('"');return e!==e.toLowerCase()||3=15){m=false;v=true}var w=y&&(o||m&&(b==null||b<12.11)),k=g||x&&_>=9;function S(e){return new RegExp("(^|\\s)"+e+"(?:$|\\s)\\s*")}var C=function(e,t){var n=e.className;var r=S(t).exec(n);if(r){var i=n.slice(r.index+r[0].length);e.className=n.slice(0,r.index)+(i?r[1]+i:"")}},T;function O(e){for(var t=e.childNodes.length;t>0;--t){e.removeChild(e.firstChild)}return e}function E(e,t){return O(e).appendChild(t)}function A(e,t,n,r){var i=document.createElement(e);if(n){i.className=n}if(r){i.style.cssText=r}if(typeof t=="string"){i.appendChild(document.createTextNode(t))}else if(t){for(var o=0;o=t){return a+(t-o)}a+=s-o;a+=n-a%n;o=s+1}}var z=function(){this.id=null};function H(e,t){for(var n=0;n=t){return r+Math.min(a,t-i)}i+=o-r;i+=n-i%n;r=o+1;if(i>=t){return r}}}var V=[""];function K(e){while(V.length<=e){V.push($(V)+" ")}return V[e]}function $(e){return e[e.length-1]}function X(e,t){var n=[];for(var r=0;r"€"&&(e.toUpperCase()!=e.toLowerCase()||ee.test(e))}function ne(e,t){if(!t){return te(e)}if(t.source.indexOf("\\w")>-1&&te(e)){return true}return t.test(e)}function re(e){for(var t in e){if(e.hasOwnProperty(t)&&e[t]){return false}}return true}var ie=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;function oe(e){return e.charCodeAt(0)>=768&&ie.test(e)}function ae(e,t,n){while((n<0?t>0:tn?-1:1;for(;;){if(t==n){return t}var i=(t+n)/2,o=r<0?Math.ceil(i):Math.floor(i);if(o==t){return e(o)?t:n}if(e(o)){n=o}else{t=o+r}}}function le(e,t,n){var r=this;this.input=n;r.scrollbarFiller=A("div",null,"CodeMirror-scrollbar-filler");r.scrollbarFiller.setAttribute("cm-not-content","true");r.gutterFiller=A("div",null,"CodeMirror-gutter-filler");r.gutterFiller.setAttribute("cm-not-content","true");r.lineDiv=M("div",null,"CodeMirror-code");r.selectionDiv=A("div",null,null,"position: relative; z-index: 1");r.cursorDiv=A("div",null,"CodeMirror-cursors");r.measure=A("div",null,"CodeMirror-measure");r.lineMeasure=A("div",null,"CodeMirror-measure");r.lineSpace=M("div",[r.measure,r.lineMeasure,r.selectionDiv,r.cursorDiv,r.lineDiv],null,"position: relative; outline: none");var i=M("div",[r.lineSpace],"CodeMirror-lines");r.mover=A("div",[i],null,"position: relative");r.sizer=A("div",[r.mover],"CodeMirror-sizer");r.sizerWidth=null;r.heightForcer=A("div",null,null,"position: absolute; height: "+W+"px; width: 1px;");r.gutters=A("div",null,"CodeMirror-gutters");r.lineGutter=null;r.scroller=A("div",[r.sizer,r.heightForcer,r.gutters],"CodeMirror-scroll");r.scroller.setAttribute("tabIndex","-1");r.wrapper=A("div",[r.scrollbarFiller,r.gutterFiller,r.scroller],"CodeMirror");if(x&&_<8){r.gutters.style.zIndex=-1;r.scroller.style.paddingRight=0}if(!v&&!(g&&h)){r.scroller.draggable=true}if(e){if(e.appendChild){e.appendChild(r.wrapper)}else{e(r.wrapper)}}r.viewFrom=r.viewTo=t.first;r.reportedViewFrom=r.reportedViewTo=t.first;r.view=[];r.renderedView=null;r.externalMeasured=null;r.viewOffset=0;r.lastWrapHeight=r.lastWrapWidth=0;r.updateLineNumbers=null;r.nativeBarWidth=r.barHeight=r.barWidth=0;r.scrollbarsClipped=false;r.lineNumWidth=r.lineNumInnerWidth=r.lineNumChars=null;r.alignWidgets=false;r.cachedCharWidth=r.cachedTextHeight=r.cachedPaddingH=null;r.maxLine=null;r.maxLineLength=0;r.maxLineChanged=false;r.wheelDX=r.wheelDY=r.wheelStartX=r.wheelStartY=null;r.shift=false;r.selForContextMenu=null;r.activeTouch=null;n.init(r)}function ue(e,t){t-=e.first;if(t<0||t>=e.size){throw new Error("There is no line "+(t+e.first)+" in the document.")}var n=e;while(!n.lines){for(var r=0;;++r){var i=n.children[r],o=i.chunkSize();if(t=e.first&&tn){return me(n,ue(e,n).text.length)}return Ce(t,ue(e,t.line).text.length)}function Ce(e,t){var n=e.ch;if(n==null||n>t){return me(e.line,t)}else if(n<0){return me(e.line,0)}else{return e}}function Te(e,t){var n=[];for(var r=0;r=t:o.to>t);(r||(r=[])).push(new Ae(a,o.from,l?null:o.to))}}}return r}function je(e,t,n){var r;if(e){for(var i=0;i=t:o.to>t);if(s||o.from==t&&a.type=="bookmark"&&(!n||o.marker.insertLeft)){var l=o.from==null||(a.inclusiveLeft?o.from<=t:o.from0&&s){for(var w=0;w0){continue}var c=[l,1],f=ye(u.from,s.from),h=ye(u.to,s.to);if(f<0||!a.inclusiveLeft&&!f){c.push({from:u.from,to:s.from})}if(h>0||!a.inclusiveRight&&!h){c.push({from:s.to,to:u.to})}i.splice.apply(i,c);l+=c.length-3}}return i}function He(e){var t=e.markedSpans;if(!t){return}for(var n=0;n=0&&f<=0||c<=0&&f>=0){continue}if(c<=0&&(l.marker.inclusiveRight&&i.inclusiveLeft?ye(u.to,n)>=0:ye(u.to,n)>0)||c>=0&&(l.marker.inclusiveRight&&i.inclusiveLeft?ye(u.from,r)<=0:ye(u.from,r)<0)){return true}}}}function $e(e){var t;while(t=Ye(e)){e=t.find(-1,true).line}return e}function Xe(e){var t;while(t=Ve(e)){e=t.find(1,true).line}return e}function Je(e){var t,n;while(t=Ve(e)){e=t.find(1,true).line;(n||(n=[])).push(e)}return n}function Qe(e,t){var n=ue(e,t),r=$e(n);if(n==r){return t}return de(r)}function Ze(e,t){if(t>e.lastLine()){return t}var n=ue(e,t),r;if(!et(e,n)){return t}while(r=Ve(n)){n=r.find(1,true).line}return de(n)+1}function et(e,t){var n=Ee&&t.markedSpans;if(n){for(var r=void 0,i=0;in.maxLineLength){n.maxLineLength=t;n.maxLine=e}})}function ot(e,t,n,r){if(!e){return r(t,n,"ltr",0)}var i=false;for(var o=0;ot||t==n&&a.to==t){r(Math.max(a.from,t),Math.min(a.to,n),a.level==1?"rtl":"ltr",o);i=true}}if(!i){r(t,n,"ltr")}}var at=null;function st(e,t,n){var r;at=null;for(var i=0;it){return i}if(o.to==t){if(o.from!=o.to&&n=="before"){r=i}else{at=i}}if(o.from==t){if(o.from!=o.to&&n!="before"){r=i}else{at=i}}}return r!=null?r:at}var lt=function(){var t="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN";var n="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function R(e){if(e<=247){return t.charAt(e)}else if(1424<=e&&e<=1524){return"R"}else if(1536<=e&&e<=1785){return n.charAt(e-1536)}else if(1774<=e&&e<=2220){return"r"}else if(8192<=e&&e<=8203){return"w"}else if(e==8204){return"b"}else{return"L"}}var F=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/;var z=/[stwN]/,H=/[LRr]/,W=/[Lb1n]/,B=/[1n]/;function U(e,t,n){this.level=e;this.from=t;this.to=n}return function(e,t){var n=t=="ltr"?"L":"R";if(e.length==0||t=="ltr"&&!F.test(e)){return false}var r=e.length,i=[];for(var o=0;o-1){r[t]=i.slice(0,o).concat(i.slice(o+1))}}}}function pt(e,t){var n=ht(e,t);if(!n.length){return}var r=Array.prototype.slice.call(arguments,2);for(var i=0;i0}function yt(e){e.prototype.on=function(e,t){ft(this,e,t)};e.prototype.off=function(e,t){dt(this,e,t)}}function bt(e){if(e.preventDefault){e.preventDefault()}else{e.returnValue=false}}function wt(e){if(e.stopPropagation){e.stopPropagation()}else{e.cancelBubble=true}}function xt(e){return e.defaultPrevented!=null?e.defaultPrevented:e.returnValue==false}function _t(e){bt(e);wt(e)}function kt(e){return e.target||e.srcElement}function St(e){var t=e.which;if(t==null){if(e.button&1){t=1}else if(e.button&2){t=3}else if(e.button&4){t=2}}if(y&&e.ctrlKey&&t==1){t=3}return t}var Ct=function(){if(x&&_<9){return false}var e=A("div");return"draggable"in e||"dragDrop"in e}(),Tt,Ot;function Et(e){if(Tt==null){var t=A("span","​");E(e,A("span",[t,document.createTextNode("x")]));if(e.firstChild.offsetHeight!=0){Tt=t.offsetWidth<=1&&t.offsetHeight>2&&!(x&&_<8)}}var n=Tt?A("span","​"):A("span"," ",null,"display: inline-block; width: 1px; margin-right: -1px");n.setAttribute("cm-text","");return n}function Mt(e){if(Ot!=null){return Ot}var t=E(e,document.createTextNode("AخA"));var n=T(t,0,1).getBoundingClientRect();var r=T(t,1,2).getBoundingClientRect();O(e);if(!n||n.left==n.right){return false}return Ot=r.right-n.right<3}var Dt="\n\nb".split(/\n/).length!=3?function(e){var t=0,n=[],r=e.length;while(t<=r){var i=e.indexOf("\n",t);if(i==-1){i=e.length}var o=e.slice(t,e.charAt(i-1)=="\r"?i-1:i);var a=o.indexOf("\r");if(a!=-1){n.push(o.slice(0,a));t+=a+1}else{n.push(o);t=i+1}}return n}:function(e){return e.split(/\r\n?|\n/)},At=window.getSelection?function(e){try{return e.selectionStart!=e.selectionEnd}catch(e){return false}}:function(e){var t;try{t=e.ownerDocument.selection.createRange()}catch(e){}if(!t||t.parentElement()!=e){return false}return t.compareEndPoints("StartToEnd",t)!=0},Lt=function(){var e=A("div");if("oncopy"in e){return true}e.setAttribute("oncopy","return;");return typeof e.oncopy=="function"}(),Pt=null;function Nt(e){if(Pt!=null){return Pt}var t=E(e,A("span","x"));var n=t.getBoundingClientRect();var r=T(t,0,1).getBoundingClientRect();return Pt=Math.abs(n.left-r.left)>1}var It={},jt={};function Rt(e,t){if(2=this.string.length},Yt.prototype.sol=function(){return this.pos==this.lineStart},Yt.prototype.peek=function(){return this.string.charAt(this.pos)||undefined},Yt.prototype.next=function(){if(this.post},Yt.prototype.eatSpace=function(){var e=this;var t=this.pos;while(/[\s\u00a0]/.test(this.string.charAt(this.pos))){++e.pos}return this.pos>t},Yt.prototype.skipToEnd=function(){this.pos=this.string.length},Yt.prototype.skipTo=function(e){var t=this.string.indexOf(e,this.pos);if(t>-1){this.pos=t;return true}},Yt.prototype.backUp=function(e){this.pos-=e},Yt.prototype.column=function(){if(this.lastColumnPos0){return null}if(o&&t!==false){this.pos+=o[0].length}return o}},Yt.prototype.current=function(){return this.string.slice(this.start,this.pos)},Yt.prototype.hideFirstChars=function(e,t){this.lineStart+=e;try{return t()}finally{this.lineStart-=e}},Yt.prototype.lookAhead=function(e){var t=this.lineOracle;return t&&t.lookAhead(e)},Yt.prototype.baseToken=function(){var e=this.lineOracle;return e&&e.baseToken(this.pos)};var Vt=function(e,t){this.state=e;this.lookAhead=t},Kt=function(e,t,n,r){this.state=t;this.doc=e;this.line=n;this.maxLookAhead=r||0;this.baseTokens=null;this.baseTokenPos=1};function $t(t,n,r,e){var l=[t.state.modeGen],i={};on(t,n.text,t.doc.mode,r,function(e,t){return l.push(e,t)},i,e);var u=r.state;var o=function(e){r.baseTokens=l;var o=t.state.overlays[e],a=1,s=0;r.state=true;on(t,n.text,o.mode,r,function(e,t){var n=a;while(se){l.splice(a,1,e,l[a+1],r)}a+=2;s=Math.min(e,r)}if(!t){return}if(o.opaque){l.splice(n,a-n,e,"overlay "+t);a=n+2}else{for(;ne.options.maxHighlightLength&&Ut(e.doc.mode,r.state);var o=$t(e,t,r);if(i){r.state=i}t.stateAfter=r.save(!i);t.styles=o.styles;if(o.classes){t.styleClasses=o.classes}else if(t.styleClasses){t.styleClasses=null}if(n===e.doc.highlightFrontier){e.doc.modeFrontier=Math.max(e.doc.modeFrontier,++e.doc.highlightFrontier)}}return t.styles}function Jt(n,r,e){var t=n.doc,i=n.display;if(!t.mode.startState){return new Kt(t,true,r)}var o=an(n,r,e);var a=o>t.first&&ue(t,o-1).stateAfter;var s=a?Kt.fromSaved(t,a,o):new Kt(t,Gt(t.mode),o);t.iter(o,r,function(e){Qt(n,e.text,s);var t=s.line;e.stateAfter=t==r-1||t%5==0||t>=i.viewFrom&&tt.start){return o}}throw new Error("Mode "+e.name+" failed to advance stream.")}Kt.prototype.lookAhead=function(e){var t=this.doc.getLine(this.line+e);if(t!=null&&e>this.maxLookAhead){this.maxLookAhead=e}return t},Kt.prototype.baseToken=function(e){var t=this;if(!this.baseTokens){return null}while(this.baseTokens[this.baseTokenPos]<=e){t.baseTokenPos+=2}var n=this.baseTokens[this.baseTokenPos+1];return{type:n&&n.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-e}},Kt.prototype.nextLine=function(){this.line++;if(this.maxLookAhead>0){this.maxLookAhead--}},Kt.fromSaved=function(e,t,n){if(t instanceof Vt){return new Kt(e,Ut(e.mode,t.state),n,t.lookAhead)}else{return new Kt(e,Ut(e.mode,t),n)}},Kt.prototype.save=function(e){var t=e!==false?Ut(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new Vt(t,this.maxLookAhead):t};var tn=function(e,t,n){this.start=e.start;this.end=e.pos;this.string=e.current();this.type=t||null;this.state=n};function nn(e,t,n,r){var i=e.doc,o=i.mode,a;t=Se(i,t);var s=ue(i,t.line),l=Jt(e,t.line,n);var u=new Yt(s.text,e.options.tabSize,l),c;if(r){c=[]}while((r||u.pose.options.maxHighlightLength){s=false;if(a){Qt(e,t,r,c.pos)}c.pos=t.length;f=null}else{f=rn(en(n,c,r.state,h),o)}if(h){var d=h[0].name;if(d){f="m-"+(f?d+" "+f:d)}}if(!s||u!=f){while(la;--s){if(s<=o.first){return o.first}var l=ue(o,s-1),u=l.stateAfter;if(u&&(!n||s+(u instanceof Vt?u.lookAhead:0)<=o.modeFrontier)){return s}var c=F(l.text,null,e.options.tabSize);if(i==null||r>c){i=s-1;r=c}}return i}function sn(e,t){e.modeFrontier=Math.min(e.modeFrontier,t);if(e.highlightFrontiern;r--){var i=ue(e,r).stateAfter;if(i&&(!(i instanceof Vt)||r+i.lookAhead1&&!/ /.test(e)){return e}var n=t,r="";for(var i=0;is&&u.from<=s){break}}if(u.to>=l){return f(e,t,n,r,i,o,a)}f(e,t.slice(0,u.to-s),n,r,null,o,a);r=null;t=t.slice(u.to-s);s=u.to}}}function bn(e,t,n,r){var i=!r&&n.widgetNode;if(i){e.map.push(e.pos,e.pos+t,i)}if(!r&&e.cm.display.input.needsContentAttribute){if(!i){i=e.content.appendChild(document.createElement("span"))}i.setAttribute("cm-marker",n.id)}if(i){e.cm.display.input.setUneditable(i);e.content.appendChild(i)}e.pos+=t;e.trailingSpace=false}function wn(e,t,n){var r=e.markedSpans,i=e.text,o=0;if(!r){for(var a=1;al||k.collapsed&&_.to==l&&_.from==l)){if(_.to!=null&&_.to!=l&&d>_.to){d=_.to;g=""}if(k.className){p+=" "+k.className}if(k.css){h=(h?h+";":"")+k.css}if(k.startStyle&&_.from==l){v+=" "+k.startStyle}if(k.endStyle&&_.to==d){(w||(w=[])).push(k.endStyle,_.to)}if(k.title&&!m){m=k.title}if(k.collapsed&&(!y||qe(y.marker,k)<0)){y=_}}else if(_.from>l&&d>_.from){d=_.from}}if(w){for(var S=0;S=s){break}var T=Math.min(s,d);while(true){if(c){var O=l+c.length;if(!y){var E=O>T?c.slice(0,T-l):c;t.addToken(t,E,f?f+p:p,v,l+E.length==d?g:"",m,h)}if(O>=T){c=c.slice(T-l);l=T;break}l=O;v=""}c=i.slice(o,o=n[u++]);f=dn(n[u++],t.cm.options)}}}function xn(e,t,n){this.line=t;this.rest=Je(t);this.size=this.rest?de($(this.rest))-n+1:1;this.node=this.text=null;this.hidden=et(e,t)}function _n(e,t,n){var r=[],i;for(var o=t;o2){o.push((l.bottom+u.top)/2-n.top)}}}o.push(n.bottom-n.top)}}function Jn(e,t,n){if(e.line==t){return{map:e.measure.map,cache:e.measure.cache}}for(var r=0;rn){return{map:e.measure.maps[i],cache:e.measure.caches[i],before:true}}}}function Qn(e,t){t=$e(t);var n=de(t);var r=e.display.externalMeasured=new xn(e.doc,t,n);r.lineN=n;var i=r.built=pn(e,r);r.text=i.pre;E(e.display.lineMeasure,i.pre);return r}function Zn(e,t,n,r){return nr(e,tr(e,t),n,r)}function er(e,t){if(t>=e.display.viewFrom&&t=n.lineN&&tt){o=l-s;i=o-1;if(t>=l){a="right"}}if(i!=null){r=e[u+2];if(s==l&&n==(r.insertLeft?"left":"right")){a=n}if(n=="left"&&i==0){while(u&&e[u-2]==e[u-3]&&e[u-1].insertLeft){r=e[(u-=3)+2];a="left"}}if(n=="right"&&i==l-s){while(u=0;i--){if((n=e[i]).left!=n.right){break}}}return n}function sr(e,t,n,r){var i=or(t.map,n,r);var o=i.node,a=i.start,s=i.end,l=i.collapse;var u;if(o.nodeType==3){for(var c=0;c<4;c++){while(a&&oe(t.line.text.charAt(i.coverStart+a))){--a}while(i.coverStart+s0){l=r="right"}var f;if(e.options.lineWrapping&&(f=o.getClientRects()).length>1){u=f[r=="right"?f.length-1:0]}else{u=o.getBoundingClientRect()}}if(x&&_<9&&!a&&(!u||!u.left&&!u.right)){var h=o.parentNode.getClientRects()[0];if(h){u={left:h.left,right:h.left+Mr(e.display),top:h.top,bottom:h.bottom}}else{u=rr}}var d=u.top-t.rect.top,p=u.bottom-t.rect.top;var g=(d+p)/2;var v=t.view.measure.heights;var m=0;for(;m=o.text.length){t=o.text.length;n="before"}else if(t<=0){t=0;n="after"}if(!u){return l(n=="before"?t-1:t,n=="before")}function c(e,t,n){var r=u[t],i=r.level==1;return l(n?e-1:e,i!=n)}var f=st(u,t,n);var h=at;var d=c(t,f,n=="before");if(h!=null){d.other=c(t,h,n!="before")}return d}function br(e,t){var n=0;t=Se(e.doc,t);if(!e.options.lineWrapping){n=Mr(e.display)*t.ch}var r=ue(e.doc,t.line);var i=nt(r)+qn(e.display);return{left:n,right:n,top:i,bottom:i+r.height}}function wr(e,t,n,r,i){var o=me(e,t,n);o.xRel=i;if(r){o.outside=true}return o}function xr(e,t,n){var r=e.doc;n+=e.display.viewOffset;if(n<0){return wr(r.first,0,null,true,-1)}var i=pe(r,n),o=r.first+r.size-1;if(i>o){return wr(r.first+r.size-1,ue(r,o).text.length,null,true,1)}if(t<0){t=0}var a=ue(r,i);for(;;){var s=Cr(e,a,i,t,n);var l=Ve(a);var u=l&&l.find(0,true);if(l&&(s.ch>u.from.ch||s.ch==u.from.ch&&s.xRel>0)){i=de(a=u.to.line)}else{return s}}}function _r(t,e,n,r){r-=pr(e);var i=e.text.length;var o=se(function(e){return nr(t,n,e-1).bottom<=r},i,0);i=se(function(e){return nr(t,n,e).top>r},o,i);return{begin:o,end:i}}function kr(e,t,n,r){if(!n){n=tr(e,t)}var i=gr(e,t,nr(e,n,r),"line").top;return _r(e,t,n,i)}function Sr(e,t,n,r){return e.bottom<=n?false:e.top>n?true:(r?e.left:e.right)>t}function Cr(n,e,t,r,i){i-=nt(e);var o=tr(n,e);var a=pr(e);var s=0,l=e.text.length,u=true;var c=ut(e,n.doc.direction);if(c){var f=(n.options.lineWrapping?Or:Tr)(n,e,t,o,c,r,i);u=f.level!=1;s=u?f.from:f.to-1;l=u?f.to:f.from-1}var h=null,d=null;var p=se(function(e){var t=nr(n,o,e);t.top+=a;t.bottom+=a;if(!Sr(t,r,i,false)){return false}if(t.top<=i&&t.left<=r){h=e;d=t}return true},s,l);var g,v,m=false;if(d){var y=r-d.left=w.bottom}p=ae(e.text,p,1);return wr(t,p,v,m,r-g)}function Tr(r,i,o,a,s,l,u){var e=se(function(e){var t=s[e],n=t.level!=1;return Sr(yr(r,me(o,n?t.to:t.from,n?"before":"after"),"line",i,a),l,u,true)},0,s.length-1);var t=s[e];if(e>0){var n=t.level!=1;var c=yr(r,me(o,n?t.from:t.to,n?"after":"before"),"line",i,a);if(Sr(c,l,u,true)&&c.top>u){t=s[e-1]}}return t}function Or(e,t,n,r,i,o,a){var s=_r(e,t,r,a);var l=s.begin;var u=s.end;if(/\s/.test(t.text.charAt(u-1))){u--}var c=null,f=null;for(var h=0;h=u||d.to<=l){continue}var p=d.level!=1;var g=nr(e,r,p?Math.min(u,d.to)-1:Math.max(l,d.from)).right;var v=gv){c=d;f=v}}if(!c){c=i[i.length-1]}if(c.fromu){c={from:c.from,to:u,level:c.level}}return c}function Er(e){if(e.cachedTextHeight!=null){return e.cachedTextHeight}if(ir==null){ir=A("pre");for(var t=0;t<49;++t){ir.appendChild(document.createTextNode("x"));ir.appendChild(A("br"))}ir.appendChild(document.createTextNode("x"))}E(e.measure,ir);var n=ir.offsetHeight/50;if(n>3){e.cachedTextHeight=n}O(e.measure);return n||1}function Mr(e){if(e.cachedCharWidth!=null){return e.cachedCharWidth}var t=A("span","xxxxxxxxxx");var n=A("pre",[t]);E(e.measure,n);var r=t.getBoundingClientRect(),i=(r.right-r.left)/10;if(i>2){e.cachedCharWidth=i}return i||10}function Dr(e){var t=e.display,n={},r={};var i=t.gutters.clientLeft;for(var o=t.gutters.firstChild,a=0;o;o=o.nextSibling,++a){n[e.options.gutters[a]]=o.offsetLeft+o.clientLeft+i;r[e.options.gutters[a]]=o.clientWidth}return{fixedPos:Ar(t),gutterTotalWidth:t.gutters.offsetWidth,gutterLeft:n,gutterWidth:r,wrapperWidth:t.wrapper.clientWidth}}function Ar(e){return e.scroller.getBoundingClientRect().left-e.sizer.getBoundingClientRect().left}function Lr(r){var i=Er(r.display),o=r.options.lineWrapping;var a=o&&Math.max(5,r.display.scroller.clientWidth/Mr(r.display)-3);return function(e){if(et(r.doc,e)){return 0}var t=0;if(e.widgets){for(var n=0;n=e.display.viewTo){return null}t-=e.display.viewFrom;if(t<0){return null}var n=e.display.view;for(var r=0;r=e.display.viewTo||s.to().line0){t.blinker=setInterval(function(){return t.cursorDiv.style.visibility=(n=!n)?"":"hidden"},e.options.cursorBlinkRate)}else if(e.options.cursorBlinkRate<0){t.cursorDiv.style.visibility="hidden"}}function Br(e){if(!e.state.focused){e.display.input.focus();qr(e)}}function Ur(e){e.state.delayingBlurEvent=true;setTimeout(function(){if(e.state.delayingBlurEvent){e.state.delayingBlurEvent=false;Gr(e)}},100)}function qr(e,t){if(e.state.delayingBlurEvent){e.state.delayingBlurEvent=false}if(e.options.readOnly=="nocursor"){return}if(!e.state.focused){pt(e,"focus",e,t);e.state.focused=true;P(e.display.wrapper,"CodeMirror-focused");if(!e.curOp&&e.display.selForContextMenu!=e.doc.sel){e.display.input.reset();if(v){setTimeout(function(){return e.display.input.reset(true)},20)}}e.display.input.receivedFocus()}Wr(e)}function Gr(e,t){if(e.state.delayingBlurEvent){return}if(e.state.focused){pt(e,"blur",e,t);e.state.focused=false;C(e.display.wrapper,"CodeMirror-focused")}clearInterval(e.display.blinker);setTimeout(function(){if(!e.state.focused){e.display.shift=false}},150)}function Yr(e){var t=e.display;var n=t.lineDiv.offsetTop;for(var r=0;r.005||l<-.005){he(i.line,o);Vr(i.line);if(i.rest){for(var u=0;u=a){o=pe(t,nt(ue(t,l))-e.wrapper.clientHeight);a=l}}return{from:o,to:Math.max(a,o+1)}}function $r(e){var t=e.display,n=t.view;if(!t.alignWidgets&&(!t.gutters.firstChild||!e.options.fixedGutter)){return}var r=Ar(t)-t.scroller.scrollLeft+e.doc.scrollLeft;var i=t.gutters.offsetWidth,o=r+"px";for(var a=0;a(window.innerHeight||document.documentElement.clientHeight)){i=false}if(i!=null&&!u){var o=A("div","​",null,"position: absolute;\n top: "+(t.top-n.viewOffset-qn(e.display))+"px;\n height: "+(t.bottom-t.top+Vn(e)+n.barHeight)+"px;\n left: "+t.left+"px; width: "+Math.max(2,t.right-t.left)+"px;");e.display.lineSpace.appendChild(o);o.scrollIntoView(i);e.display.lineSpace.removeChild(o)}}function Qr(e,t,n,r){if(r==null){r=0}var i;if(!e.options.lineWrapping&&t==n){t=t.ch?me(t.line,t.sticky=="before"?t.ch-1:t.ch,"after"):t;n=t.sticky=="before"?me(t.line,t.ch+1,"before"):t}for(var o=0;o<5;o++){var a=false;var s=yr(e,t);var l=!n||n==t?s:yr(e,n);i={left:Math.min(s.left,l.left),top:Math.min(s.top,l.top)-r,right:Math.max(s.left,l.left),bottom:Math.max(s.bottom,l.bottom)+r};var u=ei(e,i);var c=e.doc.scrollTop,f=e.doc.scrollLeft;if(u.scrollTop!=null){si(e,u.scrollTop);if(Math.abs(e.doc.scrollTop-c)>1){a=true}}if(u.scrollLeft!=null){ui(e,u.scrollLeft);if(Math.abs(e.doc.scrollLeft-f)>1){a=true}}if(!a){break}}return i}function Zr(e,t){var n=ei(e,t);if(n.scrollTop!=null){si(e,n.scrollTop)}if(n.scrollLeft!=null){ui(e,n.scrollLeft)}}function ei(e,t){var n=e.display,r=Er(e.display);if(t.top<0){t.top=0}var i=e.curOp&&e.curOp.scrollTop!=null?e.curOp.scrollTop:n.scroller.scrollTop;var o=$n(e),a={};if(t.bottom-t.top>o){t.bottom=t.top+o}var s=e.doc.height+Gn(n);var l=t.tops-r;if(t.topi+o){var c=Math.min(t.top,(u?s:t.bottom)-o);if(c!=i){a.scrollTop=c}}var f=e.curOp&&e.curOp.scrollLeft!=null?e.curOp.scrollLeft:n.scroller.scrollLeft;var h=Kn(e)-(e.options.fixedGutter?n.gutters.offsetWidth:0);var d=t.right-t.left>h;if(d){t.right=t.left+h}if(t.left<10){a.scrollLeft=0}else if(t.lefth+f-3){a.scrollLeft=t.right+(d?0:10)-h}return a}function ti(e,t){if(t==null){return}oi(e);e.curOp.scrollTop=(e.curOp.scrollTop==null?e.doc.scrollTop:e.curOp.scrollTop)+t}function ni(e){oi(e);var t=e.getCursor();e.curOp.scrollToPos={from:t,to:t,margin:e.options.cursorScrollMargin}}function ri(e,t,n){if(t!=null||n!=null){oi(e)}if(t!=null){e.curOp.scrollLeft=t}if(n!=null){e.curOp.scrollTop=n}}function ii(e,t){oi(e);e.curOp.scrollToPos=t}function oi(e){var t=e.curOp.scrollToPos;if(t){e.curOp.scrollToPos=null;var n=br(e,t.from),r=br(e,t.to);ai(e,n,r,t.margin)}}function ai(e,t,n,r){var i=ei(e,{left:Math.min(t.left,n.left),top:Math.min(t.top,n.top)-r,right:Math.max(t.right,n.right),bottom:Math.max(t.bottom,n.bottom)+r});ri(e,i.scrollLeft,i.scrollTop)}function si(e,t){if(Math.abs(e.doc.scrollTop-t)<2){return}if(!g){qi(e,{top:t})}li(e,t,true);if(g){qi(e)}ji(e,100)}function li(e,t,n){t=Math.min(e.display.scroller.scrollHeight-e.display.scroller.clientHeight,t);if(e.display.scroller.scrollTop==t&&!n){return}e.doc.scrollTop=t;e.display.scrollbars.setScrollTop(t);if(e.display.scroller.scrollTop!=t){e.display.scroller.scrollTop=t}}function ui(e,t,n,r){t=Math.min(t,e.display.scroller.scrollWidth-e.display.scroller.clientWidth);if((n?t==e.doc.scrollLeft:Math.abs(e.doc.scrollLeft-t)<2)&&!r){return}e.doc.scrollLeft=t;$r(e);if(e.display.scroller.scrollLeft!=t){e.display.scroller.scrollLeft=t}e.display.scrollbars.setScrollLeft(t)}function ci(e){var t=e.display,n=t.gutters.offsetWidth;var r=Math.round(e.doc.height+Gn(e.display));return{clientHeight:t.scroller.clientHeight,viewHeight:t.wrapper.clientHeight,scrollWidth:t.scroller.scrollWidth,clientWidth:t.scroller.clientWidth,viewWidth:t.wrapper.clientWidth,barLeft:e.options.fixedGutter?n:0,docHeight:r,scrollHeight:r+Vn(e)+t.barHeight,nativeBarWidth:t.nativeBarWidth,gutterWidth:n}}var fi=function(e,t,n){this.cm=n;var r=this.vert=A("div",[A("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar");var i=this.horiz=A("div",[A("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");e(r);e(i);ft(r,"scroll",function(){if(r.clientHeight){t(r.scrollTop,"vertical")}});ft(i,"scroll",function(){if(i.clientWidth){t(i.scrollLeft,"horizontal")}});this.checkedZeroWidth=false;if(x&&_<8){this.horiz.style.minHeight=this.vert.style.minWidth="18px"}};fi.prototype.update=function(e){var t=e.scrollWidth>e.clientWidth+1;var n=e.scrollHeight>e.clientHeight+1;var r=e.nativeBarWidth;if(n){this.vert.style.display="block";this.vert.style.bottom=t?r+"px":"0";var i=e.viewHeight-(t?r:0);this.vert.firstChild.style.height=Math.max(0,e.scrollHeight-e.clientHeight+i)+"px"}else{this.vert.style.display="";this.vert.firstChild.style.height="0"}if(t){this.horiz.style.display="block";this.horiz.style.right=n?r+"px":"0";this.horiz.style.left=e.barLeft+"px";var o=e.viewWidth-e.barLeft-(n?r:0);this.horiz.firstChild.style.width=Math.max(0,e.scrollWidth-e.clientWidth+o)+"px"}else{this.horiz.style.display="";this.horiz.firstChild.style.width="0"}if(!this.checkedZeroWidth&&e.clientHeight>0){if(r==0){this.zeroWidthHack()}this.checkedZeroWidth=true}return{right:n?r:0,bottom:t?r:0}},fi.prototype.setScrollLeft=function(e){if(this.horiz.scrollLeft!=e){this.horiz.scrollLeft=e}if(this.disableHoriz){this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")}},fi.prototype.setScrollTop=function(e){if(this.vert.scrollTop!=e){this.vert.scrollTop=e}if(this.disableVert){this.enableZeroWidthBar(this.vert,this.disableVert,"vert")}},fi.prototype.zeroWidthHack=function(){var e=y&&!l?"12px":"18px";this.horiz.style.height=this.vert.style.width=e;this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none";this.disableHoriz=new z;this.disableVert=new z},fi.prototype.enableZeroWidthBar=function(n,r,i){n.style.pointerEvents="auto";function o(){var e=n.getBoundingClientRect();var t=i=="vert"?document.elementFromPoint(e.right-1,(e.top+e.bottom)/2):document.elementFromPoint((e.right+e.left)/2,e.bottom-1);if(t!=n){n.style.pointerEvents="none"}else{r.set(1e3,o)}}r.set(1e3,o)},fi.prototype.clear=function(){var e=this.horiz.parentNode;e.removeChild(this.horiz);e.removeChild(this.vert)};var hi=function(){};function di(e,t){if(!t){t=ci(e)}var n=e.display.barWidth,r=e.display.barHeight;pi(e,t);for(var i=0;i<4&&n!=e.display.barWidth||r!=e.display.barHeight;i++){if(n!=e.display.barWidth&&e.options.lineWrapping){Yr(e)}pi(e,ci(e));n=e.display.barWidth;r=e.display.barHeight}}function pi(e,t){var n=e.display;var r=n.scrollbars.update(t);n.sizer.style.paddingRight=(n.barWidth=r.right)+"px";n.sizer.style.paddingBottom=(n.barHeight=r.bottom)+"px";n.heightForcer.style.borderBottom=r.bottom+"px solid transparent";if(r.right&&r.bottom){n.scrollbarFiller.style.display="block";n.scrollbarFiller.style.height=r.bottom+"px";n.scrollbarFiller.style.width=r.right+"px"}else{n.scrollbarFiller.style.display=""}if(r.bottom&&e.options.coverGutterNextToScrollbar&&e.options.fixedGutter){n.gutterFiller.style.display="block";n.gutterFiller.style.height=r.bottom+"px";n.gutterFiller.style.width=t.gutterWidth+"px"}else{n.gutterFiller.style.display=""}}hi.prototype.update=function(){return{bottom:0,right:0}},hi.prototype.setScrollLeft=function(){},hi.prototype.setScrollTop=function(){},hi.prototype.clear=function(){};var gi={native:fi,null:hi};function vi(n){if(n.display.scrollbars){n.display.scrollbars.clear();if(n.display.scrollbars.addClass){C(n.display.wrapper,n.display.scrollbars.addClass)}}n.display.scrollbars=new gi[n.options.scrollbarStyle](function(e){n.display.wrapper.insertBefore(e,n.display.scrollbarFiller);ft(e,"mousedown",function(){if(n.state.focused){setTimeout(function(){return n.display.input.focus()},0)}});e.setAttribute("cm-not-content","true")},function(e,t){if(t=="horizontal"){ui(n,e)}else{si(n,e)}},n);if(n.display.scrollbars.addClass){P(n.display.wrapper,n.display.scrollbars.addClass)}}var mi=0;function yi(e){e.curOp={cm:e,viewChanged:false,startHeight:e.doc.height,forceUpdate:false,updateInput:null,typing:false,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:false,updateMaxLine:false,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:false,id:++mi};Sn(e.curOp)}function bi(e){var t=e.curOp;Tn(t,function(e){for(var t=0;t=n.viewTo)||n.maxLineChanged&&t.options.lineWrapping;e.update=e.mustUpdate&&new Fi(t,e.mustUpdate&&{top:e.scrollTop,ensure:e.scrollToPos},e.forceUpdate)}function _i(e){e.updatedDisplay=e.mustUpdate&&Bi(e.cm,e.update)}function ki(e){var t=e.cm,n=t.display;if(e.updatedDisplay){Yr(t)}e.barMeasure=ci(t);if(n.maxLineChanged&&!t.options.lineWrapping){e.adjustWidthTo=Zn(t,n.maxLine,n.maxLine.text.length).left+3;t.display.sizerWidth=e.adjustWidthTo;e.barMeasure.scrollWidth=Math.max(n.scroller.clientWidth,n.sizer.offsetLeft+e.adjustWidthTo+Vn(t)+t.display.barWidth);e.maxScrollLeft=Math.max(0,n.sizer.offsetLeft+e.adjustWidthTo-Kn(t))}if(e.updatedDisplay||e.selectionChanged){e.preparedSelection=n.input.prepareSelection()}}function Si(e){var t=e.cm;if(e.adjustWidthTo!=null){t.display.sizer.style.minWidth=e.adjustWidthTo+"px";if(e.maxScrollLeftt)){i.updateLineNumbers=t}e.curOp.viewChanged=true;if(t>=i.viewTo){if(Ee&&Qe(e.doc,t)i.viewFrom){Li(e)}else{i.viewFrom+=r;i.viewTo+=r}}else if(t<=i.viewFrom&&n>=i.viewTo){Li(e)}else if(t<=i.viewFrom){var o=Pi(e,n,n+r,1);if(o){i.view=i.view.slice(o.index);i.viewFrom=o.lineN;i.viewTo+=r}else{Li(e)}}else if(n>=i.viewTo){var a=Pi(e,t,t,-1);if(a){i.view=i.view.slice(0,a.index);i.viewTo=a.lineN}else{Li(e)}}else{var s=Pi(e,t,t,-1);var l=Pi(e,n,n+r,1);if(s&&l){i.view=i.view.slice(0,s.index).concat(_n(e,s.lineN,l.lineN)).concat(i.view.slice(l.index));i.viewTo+=r}else{Li(e)}}var u=i.externalMeasured;if(u){if(n=i.lineN&&t=r.viewTo){return}var o=r.view[Ir(e,t)];if(o.node==null){return}var a=o.changes||(o.changes=[]);if(H(a,n)==-1){a.push(n)}}function Li(e){e.display.viewFrom=e.display.viewTo=e.doc.first;e.display.view=[];e.display.viewOffset=0}function Pi(e,t,n,r){var i=Ir(e,t),o,a=e.display.view;if(!Ee||n==e.doc.first+e.doc.size){return{index:i,lineN:n}}var s=e.display.viewFrom;for(var l=0;l0){if(i==a.length-1){return null}o=s+a[i].size-t;i++}else{o=s-t}t+=o;n+=o}while(Qe(e.doc,n)!=n){if(i==(r<0?0:a.length-1)){return null}n+=r*a[i-(r<0?1:0)].size;i+=r}return{index:i,lineN:n}}function Ni(e,t,n){var r=e.display,i=r.view;if(i.length==0||t>=r.viewTo||n<=r.viewFrom){r.view=_n(e,t,n);r.viewFrom=t}else{if(r.viewFrom>t){r.view=_n(e,t,r.viewFrom).concat(r.view)}else if(r.viewFromn){r.view=r.view.slice(0,Ir(e,n))}}r.viewTo=n}function Ii(e){var t=e.display.view,n=0;for(var r=0;r=l.display.viewTo){return}var c=+new Date+l.options.workTime;var f=Jt(l,u.highlightFrontier);var h=[];u.iter(f.line,Math.min(u.first+u.size,l.display.viewTo+500),function(e){if(f.line>=l.display.viewFrom){var t=e.styles;var n=e.text.length>l.options.maxHighlightLength?Ut(u.mode,f.state):null;var r=$t(l,e,f,true);if(n){f.state=n}e.styles=r.styles;var i=e.styleClasses,o=r.classes;if(o){e.styleClasses=o}else if(i){e.styleClasses=null}var a=!t||t.length!=e.styles.length||i!=o&&(!i||!o||i.bgClass!=o.bgClass||i.textClass!=o.textClass);for(var s=0;!a&&sc){ji(l,l.options.workDelay);return true}});u.highlightFrontier=f.line;u.modeFrontier=Math.max(u.modeFrontier,f.line);if(h.length){Ti(l,function(){for(var e=0;e=n.viewFrom&&t.visible.to<=n.viewTo&&(n.updateLineNumbers==null||n.updateLineNumbers>=n.viewTo)&&n.renderedView==n.view&&Ii(e)==0){return false}if(Xr(e)){Li(e);t.dims=Dr(e)}var i=r.first+r.size;var o=Math.max(t.visible.from-e.options.viewportMargin,r.first);var a=Math.min(i,t.visible.to+e.options.viewportMargin);if(n.viewFroma&&n.viewTo-a<20){a=Math.min(i,n.viewTo)}if(Ee){o=Qe(e.doc,o);a=Ze(e.doc,a)}var s=o!=n.viewFrom||a!=n.viewTo||n.lastWrapHeight!=t.wrapperHeight||n.lastWrapWidth!=t.wrapperWidth;Ni(e,o,a);n.viewOffset=nt(ue(e.doc,n.viewFrom));e.display.mover.style.top=n.viewOffset+"px";var l=Ii(e);if(!s&&l==0&&!t.force&&n.renderedView==n.view&&(n.updateLineNumbers==null||n.updateLineNumbers>=n.viewTo)){return false}var u=Hi(e);if(l>4){n.lineDiv.style.display="none"}Gi(e,n.updateLineNumbers,t.dims);if(l>4){n.lineDiv.style.display=""}n.renderedView=n.view;Wi(u);O(n.cursorDiv);O(n.selectionDiv);n.gutters.style.height=n.sizer.style.minHeight=0;if(s){n.lastWrapHeight=t.wrapperHeight;n.lastWrapWidth=t.wrapperWidth;ji(e,400)}n.updateLineNumbers=null;return true}function Ui(e,t){var n=t.viewport;for(var r=true;;r=false){if(!r||!e.options.lineWrapping||t.oldDisplayWidth==Kn(e)){if(n&&n.top!=null){n={top:Math.min(e.doc.height+Gn(e.display)-$n(e),n.top)}}t.visible=Kr(e.display,e.doc,n);if(t.visible.from>=e.display.viewFrom&&t.visible.to<=e.display.viewTo){break}}if(!Bi(e,t)){break}Yr(e);var i=ci(e);jr(e);di(e,i);Vi(e,i);t.force=false}t.signal(e,"update",e);if(e.display.viewFrom!=e.display.reportedViewFrom||e.display.viewTo!=e.display.reportedViewTo){t.signal(e,"viewportChange",e,e.display.viewFrom,e.display.viewTo);e.display.reportedViewFrom=e.display.viewFrom;e.display.reportedViewTo=e.display.viewTo}}function qi(e,t){var n=new Fi(e,t);if(Bi(e,n)){Yr(e);Ui(e,n);var r=ci(e);jr(e);di(e,r);Vi(e,r);n.finish()}}function Gi(n,e,t){var r=n.display,i=n.options.lineNumbers;var o=r.lineDiv,a=o.firstChild;function s(e){var t=e.nextSibling;if(v&&y&&n.display.currentWheelTarget==e){e.style.display="none"}else{e.parentNode.removeChild(e)}return t}var l=r.view,u=r.viewFrom;for(var c=0;c-1){d=false}Dn(n,f,u,t)}if(d){O(f.lineNumber);f.lineNumber.appendChild(document.createTextNode(ve(n.options,u)))}a=f.node.nextSibling}u+=f.size}while(a){a=s(a)}}function Yi(e){var t=e.display.gutters.offsetWidth;e.display.sizer.style.marginLeft=t+"px"}function Vi(e,t){e.display.sizer.style.minHeight=t.docHeight+"px";e.display.heightForcer.style.top=t.docHeight+"px";e.display.gutters.style.height=t.docHeight+e.display.barHeight+Vn(e)+"px"}function Ki(e){var t=e.display.gutters,n=e.options.gutters;O(t);var r=0;for(;r-1&&!e.lineNumbers){e.gutters=e.gutters.slice(0);e.gutters.splice(t,1)}}Fi.prototype.signal=function(e,t){if(mt(e,t)){this.events.push(arguments)}},Fi.prototype.finish=function(){var e=this;for(var t=0;ta.clientWidth;var l=a.scrollHeight>a.clientHeight;if(!(r&&s||i&&l)){return}if(i&&y&&v){e:for(var u=t.target,c=o.view;u!=a;u=u.parentNode){for(var f=0;f=0&&ye(e,i.to())<=0){return r}}return-1};var no=function(e,t){this.anchor=e;this.head=t};function ro(e,t){var n=e[t];e.sort(function(e,t){return ye(e.from(),t.from())});t=H(e,n);for(var r=1;r=0){var a=_e(o.from(),i.from()),s=xe(o.to(),i.to());var l=o.empty()?i.from()==i.head:o.from()==o.head;if(r<=t){--t}e.splice(--r,2,new no(l?s:a,l?a:s))}}return new to(e,t)}function io(e,t){return new to([new no(e,t||e)],0)}function oo(e){if(!e.text){return e.to}return me(e.from.line+e.text.length-1,$(e.text).length+(e.text.length==1?e.from.ch:0))}function ao(e,t){if(ye(e,t.from)<0){return e}if(ye(e,t.to)<=0){return oo(t)}var n=e.line+t.text.length-(t.to.line-t.from.line)-1,r=e.ch;if(e.line==t.to.line){r+=oo(t).ch-t.to.ch}return me(n,r)}function so(e,t){var n=[];for(var r=0;r1){e.remove(s.line+1,p-1)}e.insert(s.line+1,m)}En(e,"change",e,r)}function go(e,a,s){function l(e,t,n){if(e.linked){for(var r=0;r1&&!e.done[e.done.length-2].ranges){e.done.pop();return $(e.done)}}function ko(e,t,n,r){var i=e.history;i.undone.length=0;var o=+new Date,a;var s;if((i.lastOp==r||i.lastOrigin==t.origin&&t.origin&&(t.origin.charAt(0)=="+"&&e.cm&&i.lastModTime>o-e.cm.options.historyEventDelay||t.origin.charAt(0)=="*"))&&(a=_o(i,i.lastOp==r))){s=$(a.changes);if(ye(t.from,t.to)==0&&ye(t.from,s.to)==0){s.to=oo(t)}else{a.changes.push(wo(e,t))}}else{var l=$(i.done);if(!l||!l.ranges){To(e.sel,i.done)}a={changes:[wo(e,t)],generation:i.generation};i.done.push(a);while(i.done.length>i.undoDepth){i.done.shift();if(!i.done[0].ranges){i.done.shift()}}}i.done.push(n);i.generation=++i.maxGeneration;i.lastModTime=i.lastSelTime=o;i.lastOp=i.lastSelOp=r;i.lastOrigin=i.lastSelOrigin=t.origin;if(!s){pt(e,"historyAdded")}}function So(e,t,n,r){var i=t.charAt(0);return i=="*"||i=="+"&&n.ranges.length==r.ranges.length&&n.somethingSelected()==r.somethingSelected()&&new Date-e.history.lastSelTime<=(e.cm?e.cm.options.historyEventDelay:500)}function Co(e,t,n,r){var i=e.history,o=r&&r.origin;if(n==i.lastSelOp||o&&i.lastSelOrigin==o&&(i.lastModTime==i.lastSelTime&&i.lastOrigin==o||So(e,o,$(i.done),t))){i.done[i.done.length-1]=t}else{To(t,i.done)}i.lastSelTime=+new Date;i.lastSelOrigin=o;i.lastSelOp=n;if(r&&r.clearRedo!==false){xo(i.undone)}}function To(e,t){var n=$(t);if(!(n&&n.ranges&&n.equals(e))){t.push(e)}}function Oo(t,n,e,r){var i=n["spans_"+t.id],o=0;t.iter(Math.max(t.first,e),Math.min(t.first+t.size,r),function(e){if(e.markedSpans){(i||(i=n["spans_"+t.id]={}))[o]=e.markedSpans}++o})}function Eo(e){if(!e){return null}var t;for(var n=0;n-1){$(s)[f]=u[f];delete u[f]}}}}}}return r}function Lo(e,t,n,r){if(r){var i=e.anchor;if(n){var o=ye(t,i)<0;if(o!=ye(n,i)<0){i=t;t=n}else if(o!=ye(t,n)<0){t=n}}return new no(i,t)}else{return new no(n||t,t)}}function Po(e,t,n,r,i){if(i==null){i=e.cm&&(e.cm.display.shift||e.extend)}zo(e,new to([Lo(e.sel.primary(),t,n,i)],0),r)}function No(e,t,n){var r=[];var i=e.cm&&(e.cm.display.shift||e.extend);for(var o=0;o=t.ch:s.to>t.ch))){if(i){pt(l,"beforeCursorEnter");if(l.explicitlyCleared){if(!o.markedSpans){break}else{--a;continue}}}if(!l.atomic){continue}if(n){var u=l.find(r<0?1:-1),c=void 0;if(r<0?l.inclusiveRight:l.inclusiveLeft){u=Yo(e,u,-r,u&&u.line==t.line?o:null)}if(u&&u.line==t.line&&(c=ye(u,n))&&(r<0?c<0:c>0)){return qo(e,u,t,r,i)}}var f=l.find(r<0?-1:1);if(r<0?l.inclusiveLeft:l.inclusiveRight){f=Yo(e,f,r,f.line==t.line?o:null)}return f?qo(e,f,t,r,i):null}}}return t}function Go(e,t,n,r,i){var o=r||1;var a=qo(e,t,n,o,i)||!i&&qo(e,t,n,o,true)||qo(e,t,n,-o,i)||!i&&qo(e,t,n,-o,true);if(!a){e.cantEdit=true;return me(e.first,0)}return a}function Yo(e,t,n,r){if(n<0&&t.ch==0){if(t.line>e.first){return Se(e,me(t.line-1))}else{return null}}else if(n>0&&t.ch==(r||ue(e,t.line)).text.length){if(t.line=0;--i){Xo(e,{from:r[i].from,to:r[i].to,text:i?[""]:t.text,origin:t.origin})}}else{Xo(e,t)}}function Xo(e,n){if(n.text.length==1&&n.text[0]==""&&ye(n.from,n.to)==0){return}var t=so(e,n);ko(e,n,t,e.cm?e.cm.curOp.id:NaN);Zo(e,n,t,Re(e,n));var r=[];go(e,function(e,t){if(!t&&H(r,e.history)==-1){ia(e.history,n);r.push(e.history)}Zo(e,n,null,Re(e,n))})}function Jo(i,o,e){if(i.cm&&i.cm.state.suppressEdits&&!e){return}var t=i.history,a,n=i.sel;var s=o=="undo"?t.done:t.undone,r=o=="undo"?t.undone:t.done;var l=0;for(;l=0;--h){var d=f(h);if(d)return d.v}}function Qo(e,t){if(t==0){return}e.first+=t;e.sel=new to(X(e.sel.ranges,function(e){return new no(me(e.anchor.line+t,e.anchor.ch),me(e.head.line+t,e.head.ch))}),e.sel.primIndex);if(e.cm){Di(e.cm,e.first,e.first-t,t);for(var n=e.cm.display,r=n.viewFrom;re.lastLine()){return}if(t.from.lineo){t={from:t.from,to:me(o,ue(e,o).text.length),text:[t.text[0]],origin:t.origin}}t.removed=ce(e,t.from,t.to);if(!n){n=so(e,t)}if(e.cm){ea(e.cm,t,r)}else{po(e,t,r)}Ho(e,n,U)}function ea(e,t,n){var r=e.doc,i=e.display,o=t.from,a=t.to;var s=false,l=o.line;if(!e.options.lineWrapping){l=de($e(ue(r,o.line)));r.iter(l,a.line+1,function(e){if(e==i.maxLine){s=true;return true}})}if(r.sel.contains(t.from,t.to)>-1){vt(e)}po(r,t,n,Lr(e));if(!e.options.lineWrapping){r.iter(l,o.line+t.text.length,function(e){var t=rt(e);if(t>i.maxLineLength){i.maxLine=e;i.maxLineLength=t;i.maxLineChanged=true;s=false}});if(s){e.curOp.updateMaxLine=true}}sn(r,o.line);ji(e,400);var u=t.text.length-(a.line-o.line)-1;if(t.full){Di(e)}else if(o.line==a.line&&t.text.length==1&&!ho(e.doc,t)){Ai(e,o.line,"text")}else{Di(e,o.line,a.line+1,u)}var c=mt(e,"changes"),f=mt(e,"change");if(f||c){var h={from:o,to:a,text:t.text,removed:t.removed,origin:t.origin};if(f){En(e,"change",e,h)}if(c){(e.curOp.changeObjs||(e.curOp.changeObjs=[])).push(h)}}e.display.selForContextMenu=null}function ta(e,t,n,r,i){if(!r){r=n}if(ye(r,n)<0){var o;o=[r,n],n=o[0],r=o[1],o}if(typeof t=="string"){t=e.splitLines(t)}$o(e,{from:n,to:r,text:t,origin:i})}function na(e,t,n,r){if(n1||!(this.children[0]instanceof aa))){var u=[];this.collapse(u);this.children=[new aa(u)];this.children[0].parent=this}},collapse:function e(t){var n=this;for(var r=0;r50){var l=a.lines.length%25+25;for(var u=l;u10);t.parent.maybeSpill()},iterN:function e(t,n,r){var i=this;for(var o=0;o0||a==0&&o.clearWhenEmpty!==false){return o}if(o.replacedWith){o.collapsed=true;o.widgetNode=M("span",[o.replacedWith],"CodeMirror-widget");if(!e.handleMouseEvents){o.widgetNode.setAttribute("cm-ignore-events","true")}if(e.insertLeft){o.widgetNode.insertLeft=true}}if(o.collapsed){if(Ke(t,n.line,n,r,o)||n.line!=r.line&&Ke(t,r.line,n,r,o)){throw new Error("Inserting collapsed marker partially overlapping an existing one")}De()}if(o.addToHistory){ko(t,{from:n,to:r,origin:"markText"},t.sel,NaN)}var s=n.line,l=t.cm,u;t.iter(s,r.line+1,function(e){if(l&&o.collapsed&&!l.options.lineWrapping&&$e(e)==l.display.maxLine){u=true}if(o.collapsed&&s!=n.line){he(e,0)}Ne(e,new Ae(o,s==n.line?n.ch:null,s==r.line?r.ch:null));++s});if(o.collapsed){t.iter(n.line,r.line+1,function(e){if(et(t,e)){he(e,0)}})}if(o.clearOnEnter){ft(o,"beforeCursorEnter",function(){return o.clear()})}if(o.readOnly){Me();if(t.history.done.length||t.history.undone.length){t.clearHistory()}}if(o.collapsed){o.id=++fa;o.atomic=true}if(l){if(u){l.curOp.updateMaxLine=true}if(o.collapsed){Di(l,n.line,r.line+1)}else if(o.className||o.title||o.startStyle||o.endStyle||o.css){for(var c=n.line;c<=r.line;c++){Ai(l,c,"text")}}if(o.atomic){Bo(l.doc)}En(l,"markerAdded",l,o)}return o}ha.prototype.clear=function(){var e=this;if(this.explicitlyCleared){return}var t=this.doc.cm,n=t&&!t.curOp;if(n){yi(t)}if(mt(this,"clear")){var r=this.find();if(r){En(this,"clear",r.from,r.to)}}var i=null,o=null;for(var a=0;at.display.maxLineLength){t.display.maxLine=c;t.display.maxLineLength=f;t.display.maxLineChanged=true}}}if(i!=null&&t&&this.collapsed){Di(t,i,o+1)}this.lines.length=0;this.explicitlyCleared=true;if(this.atomic&&this.doc.cantEdit){this.doc.cantEdit=false;if(t){Bo(t.doc)}}if(t){En(t,"markerCleared",t,this,i,o)}if(n){bi(t)}if(this.parent){this.parent.clear()}},ha.prototype.find=function(e,t){var n=this;if(e==null&&this.type=="bookmark"){e=1}var r,i;for(var o=0;o=0;u--){$o(r,i[u])}if(l){Fo(this,l)}else if(this.cm){ni(this.cm)}}),undo:Mi(function(){Jo(this,"undo")}),redo:Mi(function(){Jo(this,"redo")}),undoSelection:Mi(function(){Jo(this,"undo",true)}),redoSelection:Mi(function(){Jo(this,"redo",true)}),setExtending:function(e){this.extend=e},getExtending:function(){return this.extend},historySize:function(){var e=this.history,t=0,n=0;for(var r=0;r=e.ch)){t.push(i.marker.parent||i.marker)}}}return t},findMarks:function(i,o,a){i=Se(this,i);o=Se(this,o);var s=[],l=i.line;this.iter(i.line,o.line+1,function(e){var t=e.markedSpans;if(t){for(var n=0;n=r.to||r.from==null&&l!=i.line||r.from!=null&&l==o.line&&r.from>=o.ch)&&(!a||a(r.marker))){s.push(r.marker.parent||r.marker)}}}++l});return s},getAllMarks:function(){var r=[];this.iter(function(e){var t=e.markedSpans;if(t){for(var n=0;nn){r=n;return true}n-=t;++i});return Se(this,me(i,r))},indexFromPos:function(e){e=Se(this,e);var t=e.ch;if(e.linet){t=e.from}if(e.to!=null&&e.to-1){i.state.draggingText(e);setTimeout(function(){return i.display.input.focus()},20);return}try{var u=e.dataTransfer.getData("Text");if(u){var c;if(i.state.draggingText&&!i.state.draggingText.copy){c=i.listSelections()}Ho(i.doc,io(o,o));if(c){for(var f=0;f=0;e--){ta(t.doc,"",r[e].from,r[e].to,"+delete")}ni(t)})}function qa(e,t,n){var r=ae(e.text,t+n,n);return r<0||r>e.text.length?null:r}function Ga(e,t,n){var r=qa(e,t.ch,n);return r==null?null:new me(t.line,r,n<0?"after":"before")}function Ya(e,t,n,r,i){if(e){var o=ut(n,t.doc.direction);if(o){var a=i<0?$(o):o[0];var s=i<0==(a.level==1);var l=s?"after":"before";var u;if(a.level>0||t.doc.direction=="rtl"){var c=tr(t,n);u=i<0?n.text.length-1:0;var f=nr(t,c,u).top;u=se(function(e){return nr(t,c,e).top==f},i<0==(a.level==1)?a.from:a.to-1,u);if(l=="before"){u=qa(n,u,1)}}else{u=i<0?a.to:a.from}return new me(r,u,l)}}return new me(r,i<0?n.text.length:0,i<0?"before":"after")}function Va(t,n,s,e){var l=ut(n,t.doc.direction);if(!l){return Ga(n,s,e)}if(s.ch>=n.text.length){s.ch=n.text.length;s.sticky="before"}else if(s.ch<=0){s.ch=0;s.sticky="after"}var r=st(l,s.ch,s.sticky),i=l[r];if(t.doc.direction=="ltr"&&i.level%2==0&&(e>0?i.to>s.ch:i.from=i.from&&h>=c.begin:h<=i.to&&h<=c.end)){var d=f?"before":"after";return new me(s.line,h,d)}}var p=function(e,t,n){var r=function(e,t){return t?new me(s.line,u(e,1),"before"):new me(s.line,e,"after")};for(;e>=0&&e0==(i.level!=1);var a=o?n.begin:u(n.end,-1);if(i.from<=a&&a0?c.end:u(c.begin,-1);if(v!=null&&!(e>0&&v==n.text.length)){g=p(e>0?0:l.length-1,e,a(v));if(g){return g}}return null}Ia.basic={Left:"goCharLeft",Right:"goCharRight",Up:"goLineUp",Down:"goLineDown",End:"goLineEnd",Home:"goLineStartSmart",PageUp:"goPageUp",PageDown:"goPageDown",Delete:"delCharAfter",Backspace:"delCharBefore","Shift-Backspace":"delCharBefore",Tab:"defaultTab","Shift-Tab":"indentAuto",Enter:"newlineAndIndent",Insert:"toggleOverwrite",Esc:"singleSelection"},Ia.pcDefault={"Ctrl-A":"selectAll","Ctrl-D":"deleteLine","Ctrl-Z":"undo","Shift-Ctrl-Z":"redo","Ctrl-Y":"redo","Ctrl-Home":"goDocStart","Ctrl-End":"goDocEnd","Ctrl-Up":"goLineUp","Ctrl-Down":"goLineDown","Ctrl-Left":"goGroupLeft","Ctrl-Right":"goGroupRight","Alt-Left":"goLineStart","Alt-Right":"goLineEnd","Ctrl-Backspace":"delGroupBefore","Ctrl-Delete":"delGroupAfter","Ctrl-S":"save","Ctrl-F":"find","Ctrl-G":"findNext","Shift-Ctrl-G":"findPrev","Shift-Ctrl-F":"replace","Shift-Ctrl-R":"replaceAll","Ctrl-[":"indentLess","Ctrl-]":"indentMore","Ctrl-U":"undoSelection","Shift-Ctrl-U":"redoSelection","Alt-U":"redoSelection",fallthrough:"basic"},Ia.emacsy={"Ctrl-F":"goCharRight","Ctrl-B":"goCharLeft","Ctrl-P":"goLineUp","Ctrl-N":"goLineDown","Alt-F":"goWordRight","Alt-B":"goWordLeft","Ctrl-A":"goLineStart","Ctrl-E":"goLineEnd","Ctrl-V":"goPageDown","Shift-Ctrl-V":"goPageUp","Ctrl-D":"delCharAfter","Ctrl-H":"delCharBefore","Alt-D":"delWordAfter","Alt-Backspace":"delWordBefore","Ctrl-K":"killLine","Ctrl-T":"transposeChars","Ctrl-O":"openLine"},Ia.macDefault={"Cmd-A":"selectAll","Cmd-D":"deleteLine","Cmd-Z":"undo","Shift-Cmd-Z":"redo","Cmd-Y":"redo","Cmd-Home":"goDocStart","Cmd-Up":"goDocStart","Cmd-End":"goDocEnd","Cmd-Down":"goDocEnd","Alt-Left":"goGroupLeft","Alt-Right":"goGroupRight","Cmd-Left":"goLineLeft","Cmd-Right":"goLineRight","Alt-Backspace":"delGroupBefore","Ctrl-Alt-Backspace":"delGroupAfter","Alt-Delete":"delGroupAfter","Cmd-S":"save","Cmd-F":"find","Cmd-G":"findNext","Shift-Cmd-G":"findPrev","Cmd-Alt-F":"replace","Shift-Cmd-Alt-F":"replaceAll","Cmd-[":"indentLess","Cmd-]":"indentMore","Cmd-Backspace":"delWrappedLineLeft","Cmd-Delete":"delWrappedLineRight","Cmd-U":"undoSelection","Shift-Cmd-U":"redoSelection","Ctrl-Up":"goDocStart","Ctrl-Down":"goDocEnd",fallthrough:["basic","emacsy"]},Ia["default"]=y?Ia.macDefault:Ia.pcDefault;var Ka={selectAll:Vo,singleSelection:function(e){return e.setSelection(e.getCursor("anchor"),e.getCursor("head"),U)},killLine:function(n){return Ua(n,function(e){if(e.empty()){var t=ue(n.doc,e.head.line).text.length;if(e.head.ch==t&&e.head.line0){r=new me(r.line,r.ch+1);a.replaceRange(i.charAt(r.ch-1)+i.charAt(r.ch-2),me(r.line,r.ch-2),r,"+transpose")}else if(r.line>a.doc.first){var o=ue(a.doc,r.line-1).text;if(o){r=new me(r.line,1);a.replaceRange(i.charAt(0)+a.doc.lineSeparator()+o.charAt(o.length-1),me(r.line-1,o.length-1),r,"+transpose")}}}t.push(new no(r,r))}a.setSelections(t)})},newlineAndIndent:function(r){return Ti(r,function(){var e=r.listSelections();for(var t=e.length-1;t>=0;t--){r.replaceRange(r.doc.lineSeparator(),e[t].anchor,e[t].head,"+input")}e=r.listSelections();for(var n=0;n-1&&(ye((a=o.ranges[a]).from(),t)<0||t.xRel>0)&&(ye(a.to(),t)>0||t.xRel<0)){bs(e,r,t,i)}else{xs(e,r,t,i)}}function bs(t,n,r,i){var o=t.display,a=false;var s=Oi(t,function(e){if(v){o.scroller.draggable=false}t.state.draggingText=false;dt(document,"mouseup",s);dt(document,"mousemove",l);dt(o.scroller,"dragstart",u);dt(o.scroller,"drop",s);if(!a){bt(e);if(!i.addNew){Po(t.doc,r,null,null,i.extend)}if(v||x&&_==9){setTimeout(function(){document.body.focus();o.input.focus()},20)}else{o.input.focus()}}});var l=function(e){a=a||Math.abs(n.clientX-e.clientX)+Math.abs(n.clientY-e.clientY)>=10};var u=function(){return a=true};if(v){o.scroller.draggable=true}t.state.draggingText=s;s.copy=!i.moveOnDrag;if(o.scroller.dragDrop){o.scroller.dragDrop()}ft(document,"mouseup",s);ft(document,"mousemove",l);ft(o.scroller,"dragstart",u);ft(o.scroller,"drop",s);Ur(t);setTimeout(function(){return o.input.focus()},20)}function ws(e,t,n){if(n=="char"){return new no(t,t)}if(n=="word"){return e.findWordAt(t)}if(n=="line"){return new no(me(t.line,0),Se(e.doc,me(t.line+1,0)))}var r=n(e,t);return new no(r.from,r.to)}function xs(v,e,m,y){var o=v.display,b=v.doc;bt(e);var w,x,_=b.sel,t=_.ranges;if(y.addNew&&!y.extend){x=b.sel.contains(m);if(x>-1){w=t[x]}else{w=new no(m,m)}}else{w=b.sel.primary();x=b.sel.primIndex}if(y.unit=="rectangle"){if(!y.addNew){w=new no(m,m)}m=Nr(v,e,true,true);x=-1}else{var n=ws(v,m,y.unit);if(y.extend){w=Lo(w,n.anchor,n.head,y.extend)}else{w=n}}if(!y.addNew){x=0;zo(b,new to([w],0),q);_=b.sel}else if(x==-1){x=t.length;zo(b,ro(t.concat([w]),x),{scroll:false,origin:"*mouse"})}else if(t.length>1&&t[x].empty()&&y.unit=="char"&&!y.extend){zo(b,ro(t.slice(0,x).concat(t.slice(x+1)),0),{scroll:false,origin:"*mouse"});_=b.sel}else{Io(b,x,w,q)}var k=m;function a(e){if(ye(k,e)==0){return}k=e;if(y.unit=="rectangle"){var t=[],n=v.options.tabSize;var r=F(ue(b,m.line).text,m.ch,n);var i=F(ue(b,e.line).text,e.ch,n);var o=Math.min(r,i),a=Math.max(r,i);for(var s=Math.min(m.line,e.line),l=Math.min(v.lastLine(),Math.max(m.line,e.line));s<=l;s++){var u=ue(b,s).text,c=Y(u,o,n);if(o==a){t.push(new no(me(s,c),me(s,c)))}else if(u.length>c){t.push(new no(me(s,c),me(s,Y(u,a,n))))}}if(!t.length){t.push(new no(m,m))}zo(b,ro(_.ranges.slice(0,x).concat(t),x),{origin:"*mouse",scroll:false});v.scrollIntoView(e)}else{var f=w;var h=ws(v,e,y.unit);var d=f.anchor,p;if(ye(h.anchor,d)>0){p=h.head;d=_e(f.from(),h.anchor)}else{p=h.anchor;d=xe(f.to(),h.head)}var g=_.ranges.slice(0);g[x]=_s(v,new no(Se(b,d),p));zo(b,ro(g,x),q)}}var s=o.wrapper.getBoundingClientRect();var l=0;function u(e){var t=++l;var n=Nr(v,e,true,y.unit=="rectangle");if(!n){return}if(ye(n,k)!=0){v.curOp.focus=L();a(n);var r=Kr(o,b);if(n.line>=r.to||n.lines.bottom?20:0;if(i){setTimeout(Oi(v,function(){if(l!=t){return}o.scroller.scrollTop+=i;u(e)}),50)}}}function r(e){v.state.selectingText=false;l=Infinity;bt(e);o.input.focus();dt(document,"mousemove",i);dt(document,"mouseup",c);b.history.lastSelOrigin=null}var i=Oi(v,function(e){if(!St(e)){r(e)}else{u(e)}});var c=Oi(v,r);v.state.selectingText=c;ft(document,"mousemove",i);ft(document,"mouseup",c)}function _s(e,t){var n=t.anchor;var r=t.head;var i=ue(e.doc,n.line);if(ye(n,r)==0&&n.sticky==r.sticky){return t}var o=ut(i);if(!o){return t}var a=st(o,n.ch,n.sticky),s=o[a];if(s.from!=n.ch&&s.to!=n.ch){return t}var l=a+(s.from==n.ch==(s.level!=1)?0:1);if(l==0||l==o.length){return t}var u;if(r.line!=n.line){u=(r.line-n.line)*(e.doc.direction=="ltr"?1:-1)>0}else{var c=st(o,r.ch,r.sticky);var f=c-a||(r.ch-n.ch)*(s.level==1?-1:1);if(c==l-1||c==l){u=f<0}else{u=f>0}}var h=o[l+(u?-1:0)];var d=u==(h.level==1);var p=d?h.from:h.to,g=d?"after":"before";return n.ch==p&&n.sticky==g?t:new no(new me(n.line,p,g),r)}function ks(e,t,n,r){var i,o;if(t.touches){i=t.touches[0].clientX;o=t.touches[0].clientY}else{try{i=t.clientX;o=t.clientY}catch(t){return false}}if(i>=Math.floor(e.display.gutters.getBoundingClientRect().right)){return false}if(r){bt(t)}var a=e.display;var s=a.lineDiv.getBoundingClientRect();if(o>s.bottom||!mt(e,n)){return xt(t)}o-=s.top-a.viewOffset;for(var l=0;l=i){var c=pe(e.doc,o);var f=e.options.gutters[l];pt(e,n,e,c,f,t);return xt(t)}}}function Ss(e,t){return ks(e,t,"gutterClick",true)}function Cs(e,t){if(Un(e.display,t)||Ts(e,t)){return}if(gt(e,t,"contextmenu")){return}e.display.input.onContextMenu(t)}function Ts(e,t){if(!mt(e,"gutterContextMenu")){return false}return ks(e,t,"gutterContextMenu",false)}function Os(e){e.display.wrapper.className=e.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+e.options.theme.replace(/(^|\s)\s*/g," cm-s-");fr(e)}fs.prototype.compare=function(e,t,n){return this.time+cs>e&&ye(t,this.pos)==0&&n==this.button};var Es={toString:function(){return"CodeMirror.Init"}},Ms={},Ds={};function As(i){var o=i.optionHandlers;function e(e,t,r,n){i.defaults[e]=t;if(r){o[e]=n?function(e,t,n){if(n!=Es){r(e,t,n)}}:r}}i.defineOption=e;i.Init=Es;e("value","",function(e,t){return e.setValue(t)},true);e("mode",null,function(e,t){e.doc.modeOption=t;co(e)},true);e("indentUnit",2,co,true);e("indentWithTabs",false);e("smartIndent",true);e("tabSize",4,function(e){fo(e);fr(e);Di(e)},true);e("lineSeparator",null,function(e,r){e.doc.lineSep=r;if(!r){return}var i=[],o=e.doc.first;e.doc.iter(function(e){for(var t=0;;){var n=e.text.indexOf(r,t);if(n==-1){break}t=n+r.length;i.push(me(o,n))}o++});for(var t=i.length-1;t>=0;t--){ta(e.doc,r,i[t],me(i[t].line,i[t].ch+r.length))}});e("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b-\u200f\u2028\u2029\ufeff]/g,function(e,t,n){e.state.specialChars=new RegExp(t.source+(t.test("\t")?"":"|\t"),"g");if(n!=Es){e.refresh()}});e("specialCharPlaceholder",gn,function(e){return e.refresh()},true);e("electricChars",true);e("inputStyle",h?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},true);e("spellcheck",false,function(e,t){return e.getInputField().spellcheck=t},true);e("rtlMoveVisually",!p);e("wholeLineUpdateBefore",true);e("theme","default",function(e){Os(e);Ls(e)},true);e("keyMap","default",function(e,t,n){var r=Ba(t);var i=n!=Es&&Ba(n);if(i&&i.detach){i.detach(e,r)}if(r.attach){r.attach(e,i||null)}});e("extraKeys",null);e("configureMouse",null);e("lineWrapping",false,Ns,true);e("gutters",[],function(e){$i(e.options);Ls(e)},true);e("fixedGutter",true,function(e,t){e.display.gutters.style.left=t?Ar(e.display)+"px":"0";e.refresh()},true);e("coverGutterNextToScrollbar",false,function(e){return di(e)},true);e("scrollbarStyle","native",function(e){vi(e);di(e);e.display.scrollbars.setScrollTop(e.doc.scrollTop);e.display.scrollbars.setScrollLeft(e.doc.scrollLeft)},true);e("lineNumbers",false,function(e){$i(e.options);Ls(e)},true);e("firstLineNumber",1,Ls,true);e("lineNumberFormatter",function(e){return e},Ls,true);e("showCursorWhenSelecting",false,jr,true);e("resetSelectionOnContextMenu",true);e("lineWiseCopyCut",true);e("pasteLinesPerSelection",true);e("readOnly",false,function(e,t){if(t=="nocursor"){Gr(e);e.display.input.blur()}e.display.input.readOnlyChanged(t)});e("disableInput",false,function(e,t){if(!t){e.display.input.reset()}},true);e("dragDrop",true,Ps);e("allowDropFileTypes",null);e("cursorBlinkRate",530);e("cursorScrollMargin",0);e("cursorHeight",1,jr,true);e("singleCursorHeightPerLine",true,jr,true);e("workTime",100);e("workDelay",100);e("flattenSpans",true,fo,true);e("addModeClass",false,fo,true);e("pollInterval",100);e("undoDepth",200,function(e,t){return e.doc.history.undoDepth=t});e("historyEventDelay",1250);e("viewportMargin",10,function(e){return e.refresh()},true);e("maxHighlightLength",1e4,fo,true);e("moveInputWithCursor",true,function(e,t){if(!t){e.display.input.resetPosition()}});e("tabindex",null,function(e,t){return e.display.input.getField().tabIndex=t||""});e("autofocus",null);e("direction","ltr",function(e,t){return e.doc.setDirection(t)},true)}function Ls(e){Ki(e);Di(e);$r(e)}function Ps(e,t,n){var r=n&&n!=Es;if(!t!=!r){var i=e.display.dragFunctions;var o=t?ft:dt;o(e.display.scroller,"dragstart",i.start);o(e.display.scroller,"dragenter",i.enter);o(e.display.scroller,"dragover",i.over);o(e.display.scroller,"dragleave",i.leave);o(e.display.scroller,"drop",i.drop)}}function Ns(e){if(e.options.lineWrapping){P(e.display.wrapper,"CodeMirror-wrap");e.display.sizer.style.minWidth="";e.display.sizerWidth=null}else{C(e.display.wrapper,"CodeMirror-wrap");it(e)}Pr(e);Di(e);fr(e);setTimeout(function(){return di(e)},100)}function Is(e,t){var n=this;if(!(this instanceof Is)){return new Is(e,t)}this.options=t=t?R(t):{};R(Ms,t,false);$i(t);var r=t.value;if(typeof r=="string"){r=new wa(r,t.mode,null,t.lineSeparator,t.direction)}this.doc=r;var i=new Is.inputStyles[t.inputStyle](this);var o=this.display=new le(e,r,i);o.wrapper.CodeMirror=this;Ki(this);Os(this);if(t.lineWrapping){this.display.wrapper.className+=" CodeMirror-wrap"}vi(this);this.state={keyMaps:[],overlays:[],modeGen:0,overwrite:false,delayingBlurEvent:false,focused:false,suppressEdits:false,pasteIncoming:false,cutIncoming:false,selectingText:false,draggingText:false,highlight:new z,keySeq:null,specialChars:null};if(t.autofocus&&!h){o.input.focus()}if(x&&_<11){setTimeout(function(){return n.display.input.reset(true)},20)}js(this);Ea();yi(this);this.curOp.forceUpdate=true;vo(this,r);if(t.autofocus&&!h||this.hasFocus()){setTimeout(j(qr,this),20)}else{Gr(this)}for(var a in Ds){if(Ds.hasOwnProperty(a)){Ds[a](n,t[a],Es)}}Xr(this);if(t.finishInit){t.finishInit(this)}for(var s=0;s20*20}ft(o.scroller,"touchstart",function(e){if(!gt(i,e)&&!s(e)&&!Ss(i,e)){o.input.ensurePolled();clearTimeout(n);var t=+new Date;o.activeTouch={start:t,moved:false,prev:t-r.end<=300?r:null};if(e.touches.length==1){o.activeTouch.left=e.touches[0].pageX;o.activeTouch.top=e.touches[0].pageY}}});ft(o.scroller,"touchmove",function(){if(o.activeTouch){o.activeTouch.moved=true}});ft(o.scroller,"touchend",function(e){var t=o.activeTouch;if(t&&!Un(o,e)&&t.left!=null&&!t.moved&&new Date-t.start<300){var n=i.coordsChar(o.activeTouch,"page"),r;if(!t.prev||l(t,t.prev)){r=new no(n,n)}else if(!t.prev.prev||l(t,t.prev.prev)){r=i.findWordAt(n)}else{r=new no(me(n.line,0),Se(i.doc,me(n.line+1,0)))}i.setSelection(r.anchor,r.head);i.focus();bt(e)}a()});ft(o.scroller,"touchcancel",a);ft(o.scroller,"scroll",function(){if(o.scroller.clientHeight){si(i,o.scroller.scrollTop);ui(i,o.scroller.scrollLeft,true);pt(i,"scroll",i)}});ft(o.scroller,"mousewheel",function(e){return eo(i,e)});ft(o.scroller,"DOMMouseScroll",function(e){return eo(i,e)});ft(o.wrapper,"scroll",function(){return o.wrapper.scrollTop=o.wrapper.scrollLeft=0});o.dragFunctions={enter:function(e){if(!gt(i,e)){_t(e)}},over:function(e){if(!gt(i,e)){Sa(i,e);_t(e)}},start:function(e){return ka(i,e)},drop:Oi(i,_a),leave:function(e){if(!gt(i,e)){Ca(i)}}};var e=o.input.getField();ft(e,"keyup",function(e){return ls.call(i,e)});ft(e,"keydown",Oi(i,as));ft(e,"keypress",Oi(i,us));ft(e,"focus",function(e){return qr(i,e)});ft(e,"blur",function(e){return Gr(i,e)})}Is.defaults=Ms,Is.optionHandlers=Ds;var Rs=[];function Fs(e,t,n,r){var i=e.doc,o;if(n==null){n="add"}if(n=="smart"){if(!i.mode.indent){n="prev"}else{o=Jt(e,t).state}}var a=e.options.tabSize;var s=ue(i,t),l=F(s.text,null,a);if(s.stateAfter){s.stateAfter=null}var u=s.text.match(/^\s*/)[0],c;if(!r&&!/\S/.test(s.text)){c=0;n="not"}else if(n=="smart"){c=i.mode.indent(o,s.text.slice(u.length),s.text);if(c==B||c>150){if(!r){return}n="prev"}}if(n=="prev"){if(t>i.first){c=F(ue(i,t-1).text,null,a)}else{c=0}}else if(n=="add"){c=l+e.options.indentUnit}else if(n=="subtract"){c=l-e.options.indentUnit}else if(typeof n=="number"){c=l+n}c=Math.max(0,c);var f="",h=0;if(e.options.indentWithTabs){for(var d=Math.floor(c/a);d;--d){h+=a;f+="\t"}}if(h1){if(zs&&zs.text.join("\n")==t){if(r.ranges.length%zs.text.length==0){l=[];for(var u=0;u=0;f--){var h=r.ranges[f];var d=h.from(),p=h.to();if(h.empty()){if(n&&n>0){d=me(d.line,d.ch-n)}else if(e.state.overwrite&&!a){p=me(p.line,Math.min(ue(o,p.line).text.length,p.ch+$(s).length))}else if(zs&&zs.lineWise&&zs.text.join("\n")==t){d=p=me(d.line,0)}}c=e.curOp.updateInput;var g={from:d,to:p,text:l?l[f%l.length]:s,origin:i||(a?"paste":e.state.cutIncoming?"cut":"+input")};$o(e.doc,g);En(e,"inputRead",e,g)}if(t&&!a){Us(e,t)}ni(e);e.curOp.updateInput=c;e.curOp.typing=true;e.state.pasteIncoming=e.state.cutIncoming=false}function Bs(e,t){var n=e.clipboardData&&e.clipboardData.getData("Text");if(n){e.preventDefault();if(!t.isReadOnly()&&!t.options.disableInput){Ti(t,function(){return Ws(t,n,0,null,"paste")})}return true}}function Us(e,t){if(!e.options.electricChars||!e.options.smartIndent){return}var n=e.doc.sel;for(var r=n.ranges.length-1;r>=0;r--){var i=n.ranges[r];if(i.head.ch>100||r&&n.ranges[r-1].head.line==i.head.line){continue}var o=e.getModeAt(i.head);var a=false;if(o.electricChars){for(var s=0;s-1){a=Fs(e,i.head.line,"smart");break}}}else if(o.electricInput){if(o.electricInput.test(ue(e.doc,i.head.line).text.slice(0,i.head.ch))){a=Fs(e,i.head.line,"smart")}}if(a){En(e,"electricInput",e,i.head.line)}}}function qs(e){var t=[],n=[];for(var r=0;r0){Io(t.doc,i,new no(a,c[i].to()),U)}}else if(o.head.line>r){Fs(t,o.head.line,e,true);r=o.head.line;if(i==t.doc.sel.primIndex){ni(t)}}}}),getTokenAt:function(e,t){return nn(this,e,t)},getLineTokens:function(e,t){return nn(this,me(e),t,true)},getTokenTypeAt:function(e){e=Se(this.doc,e);var t=Xt(this,ue(this.doc,e.line));var n=0,r=(t.length-1)/2,i=e.ch;var o;if(i==0){o=t[2]}else{for(;;){var a=n+r>>1;if((a?t[a*2-1]:0)>=i){r=a}else if(t[a*2+1]o){e=o;r=true}i=ue(this.doc,e)}else{i=e}return gr(this,i,{top:0,left:0},t||"page",n||r).top+(r?this.doc.height-nt(i):0)},defaultTextHeight:function(){return Er(this.display)},defaultCharWidth:function(){return Mr(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(e,t,n,r,i){var o=this.display;e=yr(this,Se(this.doc,e));var a=e.bottom,s=e.left;t.style.position="absolute";t.setAttribute("cm-ignore-events","true");this.display.input.setUneditable(t);o.sizer.appendChild(t);if(r=="over"){a=e.top}else if(r=="above"||r=="near"){var l=Math.max(o.wrapper.clientHeight,this.doc.height),u=Math.max(o.sizer.clientWidth,o.lineSpace.clientWidth);if((r=="above"||e.bottom+t.offsetHeight>l)&&e.top>t.offsetHeight){a=e.top-t.offsetHeight}else if(e.bottom+t.offsetHeight<=l){a=e.bottom}if(s+t.offsetWidth>u){s=u-t.offsetWidth}}t.style.top=a+"px";t.style.left=t.style.right="";if(i=="right"){s=o.sizer.clientWidth-t.offsetWidth;t.style.right="0px"}else{if(i=="left"){s=0}else if(i=="middle"){s=(o.sizer.clientWidth-t.offsetWidth)/2}t.style.left=s+"px"}if(n){Zr(this,{left:s,top:a,right:s+t.offsetWidth,bottom:a+t.offsetHeight})}},triggerOnKeyDown:Ei(as),triggerOnKeyPress:Ei(us),triggerOnKeyUp:ls,triggerOnMouseDown:Ei(gs),execCommand:function(e){if(Ka.hasOwnProperty(e)){return Ka[e].call(null,this)}},triggerElectric:Ei(function(e){Us(this,e)}),findPosH:function(e,t,n,r){var i=this;var o=1;if(t<0){o=-1;t=-t}var a=Se(this.doc,e);for(var s=0;s0&&s(n.charAt(r-1))){--r}while(i.5){Pr(this)}pt(this,"refresh",this)}),swapDoc:Ei(function(e){var t=this.doc;t.cm=null;vo(this,e);fr(this);this.display.input.reset();ri(this,e.scrollLeft,e.scrollTop);this.curOp.forceScroll=true;En(this,"swapDoc",this,t);return t}),getInputField:function(){return this.display.input.getField()},getWrapperElement:function(){return this.display.wrapper},getScrollerElement:function(){return this.display.scroller},getGutterElement:function(){return this.display.gutters}};yt(i);i.registerHelper=function(e,t,n){if(!c.hasOwnProperty(e)){c[e]=i[e]={_global:[]}}c[e][t]=n};i.registerGlobalHelper=function(e,t,n,r){i.registerHelper(e,t,r);c[e]._global.push({pred:n,val:r})}};function Ks(n,r,i,e,o){var t=r;var a=i;var s=ue(n,r.line);function l(){var e=r.line+i;if(e=n.first+n.size){return false}r=new me(e,r.ch,r.sticky);return s=ue(n,e)}function u(e){var t;if(o){t=Va(n.cm,s,r,i)}else{t=Ga(s,r,i)}if(t==null){if(!e&&l()){r=Ya(o,n.cm,s,r.line,i)}else{return false}}else{r=t}return true}if(e=="char"){u()}else if(e=="column"){u(true)}else if(e=="word"||e=="group"){var c=null,f=e=="group";var h=n.cm&&n.cm.getHelper(r,"wordChars");for(var d=true;;d=false){if(i<0&&!u(!d)){break}var p=s.text.charAt(r.ch)||"\n";var g=ne(p,h)?"w":f&&p=="\n"?"n":!f||/\s/.test(p)?null:"p";if(f&&!d&&!g){g="s"}if(c&&c!=g){if(i<0){i=1;u();r.sticky="after"}break}if(g){c=g}if(i>0&&!u(!d)){break}}}var v=Go(n,r,t,a,true);if(be(t,v)){v.hitSide=true}return v}function $s(e,t,n,r){var i=e.doc,o=t.left,a;if(r=="page"){var s=Math.min(e.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight);var l=Math.max(s-.5*Er(e.display),3);a=(n>0?t.bottom:t.top)+n*l}else if(r=="line"){a=n>0?t.bottom+3:t.top-3}var u;for(;;){u=xr(e,o,a);if(!u.outside){break}if(n<0?a<=0:a>=i.height){u.hitSide=true;break}a+=n*5}return u}var Xs=function(e){this.cm=e;this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null;this.polling=new z;this.composing=null;this.gracePeriod=false;this.readDOMTimeout=null};function Js(e,t){var n=er(e,t.line);if(!n||n.hidden){return null}var r=ue(e.doc,t.line);var i=Jn(n,r,t.line);var o=ut(r,e.doc.direction),a="left";if(o){var s=st(o,t.ch);a=s%2?"right":"left"}var l=or(i.map,t.ch,a);l.offset=l.collapse=="right"?l.end:l.start;return l}function Qs(e){for(var t=e;t;t=t.parentNode){if(/CodeMirror-gutter-wrapper/.test(t.className)){return true}}return false}function Zs(e,t){if(t){e.bad=true}return e}function el(s,e,t,l,u){var n="",c=false,f=s.doc.lineSeparator();function h(t){return function(e){return e.id==t}}function d(){if(c){n+=f;c=false}}function p(e){if(e){d();n+=e}}function g(e){if(e.nodeType==1){var t=e.getAttribute("cm-text");if(t!=null){p(t||e.textContent.replace(/\u200b/g,""));return}var n=e.getAttribute("cm-marker"),r;if(n){var i=s.findMarks(me(l,0),me(u+1,0),h(+n));if(i.length&&(r=i[0].find(0))){p(ce(s.doc,r.from,r.to).join(f))}return}if(e.getAttribute("contenteditable")=="false"){return}var o=/^(pre|div|p)$/i.test(e.nodeName);if(o){d()}for(var a=0;a=t.display.viewTo||i.line=t.display.viewFrom&&Js(t,r)||{node:s[0].measure.map[2],offset:0};var u=i.linee.firstLine()){r=me(r.line-1,ue(e.doc,r.line-1).length)}if(i.ch==ue(e.doc,i.line).text.length&&i.linet.viewTo-1){return false}var o,a,s;if(r.line==t.viewFrom||(o=Ir(e,r.line))==0){a=de(t.view[0].line);s=t.view[0].node}else{a=de(t.view[o].line);s=t.view[o-1].node.nextSibling}var l=Ir(e,i.line);var u,c;if(l==t.view.length-1){u=t.viewTo-1;c=t.lineDiv.lastChild}else{u=de(t.view[l+1].line)-1;c=t.view[l+1].node.previousSibling}if(!s){return false}var f=e.doc.splitLines(el(e,s,c,a,u));var h=ce(e.doc,me(a,0),me(u,ue(e.doc,u).text.length));while(f.length>1&&h.length>1){if($(f)==$(h)){f.pop();h.pop();u--}else if(f[0]==h[0]){f.shift();h.shift();a++}else{break}}var d=0,p=0;var g=f[0],v=h[0],m=Math.min(g.length,v.length);while(dr.ch&&y.charCodeAt(y.length-p-1)==b.charCodeAt(b.length-p-1)){d--;p++}}f[f.length-1]=y.slice(0,y.length-p).replace(/^\u200b+/,"");f[0]=f[0].slice(d).replace(/\u200b+$/,"");var x=me(a,d);var _=me(u,h.length?$(h).length-p:0);if(f.length>1||f[0]||ye(x,_)){ta(e.doc,f,x,_,"+input");return true}},Xs.prototype.ensurePolled=function(){this.forceCompositionEnd()},Xs.prototype.reset=function(){this.forceCompositionEnd()},Xs.prototype.forceCompositionEnd=function(){if(!this.composing){return}clearTimeout(this.readDOMTimeout);this.composing=null;this.updateFromDOM();this.div.blur();this.div.focus()},Xs.prototype.readFromDOMSoon=function(){var e=this;if(this.readDOMTimeout!=null){return}this.readDOMTimeout=setTimeout(function(){e.readDOMTimeout=null;if(e.composing){if(e.composing.done){e.composing=null}else{return}}e.updateFromDOM()},80)},Xs.prototype.updateFromDOM=function(){var e=this;if(this.cm.isReadOnly()||!this.pollContent()){Ti(this.cm,function(){return Di(e.cm)})}},Xs.prototype.setUneditable=function(e){e.contentEditable="false"},Xs.prototype.onKeyPress=function(e){if(e.charCode==0){return}e.preventDefault();if(!this.cm.isReadOnly()){Oi(this.cm,Ws)(this.cm,String.fromCharCode(e.charCode==null?e.keyCode:e.charCode),0)}},Xs.prototype.readOnlyChanged=function(e){this.div.contentEditable=String(e!="nocursor")},Xs.prototype.onContextMenu=function(){},Xs.prototype.resetPosition=function(){},Xs.prototype.needsContentAttribute=true;var rl=function(e){this.cm=e;this.prevInput="";this.pollingFast=false;this.polling=new z;this.hasSelection=false;this.composing=null};function il(t,e){if((e=e?R(e):{}).value=t.value,!e.tabindex&&t.tabIndex)e.tabindex=t.tabIndex;if(!e.placeholder&&t.placeholder)e.placeholder=t.placeholder;if(null==e.autofocus)r=L(),e.autofocus=r==t||null!=t.getAttribute("autofocus")&&r==document.body;function n(){t.value=s.getValue()}var i;if(t.form)if(ft(t.form,"submit",n),!e.leaveSubmitMethodAlone){o=t.form,i=o.submit;try{a=o.submit=function(){n(),o.submit=i,o.submit(),o.submit=a}}catch(e){}}e.finishInit=function(e){e.save=n,e.getTextArea=function(){return t},e.toTextArea=function(){e.toTextArea=isNaN,n(),t.parentNode.removeChild(e.getWrapperElement()),t.style.display="",t.form&&(dt(t.form,"submit",n),"function"==typeof t.form.submit&&(t.form.submit=i))}},t.style.display="none";var s=Is(function(e){return t.parentNode.insertBefore(e,t.nextSibling)},e);return s}function ol(e){e.off=dt,e.on=ft,e.wheelEventPixels=Zi,e.Doc=wa,e.splitLines=Dt,e.countColumn=F,e.findColumn=Y,e.isWordChar=te,e.Pass=B,e.signal=pt,e.Line=ln,e.changeEnd=oo,e.scrollbarModel=gi,e.Pos=me,e.cmpPos=ye,e.modes=It,e.mimeModes=jt,e.resolveMode=zt,e.getMode=Ht,e.modeExtensions=Wt,e.extendMode=Bt,e.copyState=Ut,e.startState=Gt,e.innerMode=qt,e.commands=Ka,e.keyMap=Ia,e.keyName=Wa,e.isModifierKey=za,e.lookupKey=Fa,e.normalizeKeyMap=Ra,e.StringStream=Yt,e.SharedTextMarker=pa,e.TextMarker=ha,e.LineWidget=la,e.e_preventDefault=bt,e.e_stopPropagation=wt,e.e_stop=_t,e.addClass=P,e.contains=D,e.rmClass=C,e.keyNames=Aa}rl.prototype.init=function(t){var e=this;var n=this,r=this.cm;var i=this.wrapper=Ys();var o=this.textarea=i.firstChild;t.wrapper.insertBefore(i,t.wrapper.firstChild);if(c){o.style.width="0px"}ft(o,"input",function(){if(x&&_>=9&&e.hasSelection){e.hasSelection=null}n.poll()});ft(o,"paste",function(e){if(gt(r,e)||Bs(e,r)){return}r.state.pasteIncoming=true;n.fastPoll()});function a(e){if(gt(r,e)){return}if(r.somethingSelected()){Hs({lineWise:false,text:r.getSelections()})}else if(!r.options.lineWiseCopyCut){return}else{var t=qs(r);Hs({lineWise:true,text:t.text});if(e.type=="cut"){r.setSelections(t.ranges,null,U)}else{n.prevInput="";o.value=t.text.join("\n");I(o)}}if(e.type=="cut"){r.state.cutIncoming=true}}ft(o,"cut",a);ft(o,"copy",a);ft(t.scroller,"paste",function(e){if(Un(t,e)||gt(r,e)){return}r.state.pasteIncoming=true;n.focus()});ft(t.lineSpace,"selectstart",function(e){if(!Un(t,e)){bt(e)}});ft(o,"compositionstart",function(){var e=r.getCursor("from");if(n.composing){n.composing.range.clear()}n.composing={start:e,range:r.markText(e,r.getCursor("to"),{className:"CodeMirror-composing"})}});ft(o,"compositionend",function(){if(n.composing){n.poll();n.composing.range.clear();n.composing=null}})},rl.prototype.prepareSelection=function(){var e=this.cm,t=e.display,n=e.doc;var r=Rr(e);if(e.options.moveInputWithCursor){var i=yr(e,n.sel.primary().head,"div");var o=t.wrapper.getBoundingClientRect(),a=t.lineDiv.getBoundingClientRect();r.teTop=Math.max(0,Math.min(t.wrapper.clientHeight-10,i.top+a.top-o.top));r.teLeft=Math.max(0,Math.min(t.wrapper.clientWidth-10,i.left+a.left-o.left))}return r},rl.prototype.showSelection=function(e){var t=this.cm,n=t.display;E(n.cursorDiv,e.cursors);E(n.selectionDiv,e.selection);if(e.teTop!=null){this.wrapper.style.top=e.teTop+"px";this.wrapper.style.left=e.teLeft+"px"}},rl.prototype.reset=function(e){if(this.contextMenuPending||this.composing){return}var t=this.cm;if(t.somethingSelected()){this.prevInput="";var n=t.getSelection();this.textarea.value=n;if(t.state.focused){I(this.textarea)}if(x&&_>=9){this.hasSelection=n}}else if(!e){this.prevInput=this.textarea.value="";if(x&&_>=9){this.hasSelection=null}}},rl.prototype.getField=function(){return this.textarea},rl.prototype.supportsTouch=function(){return false},rl.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!h||L()!=this.textarea)){try{this.textarea.focus()}catch(e){}}},rl.prototype.blur=function(){this.textarea.blur()},rl.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},rl.prototype.receivedFocus=function(){this.slowPoll()},rl.prototype.slowPoll=function(){var e=this;if(this.pollingFast){return}this.polling.set(this.cm.options.pollInterval,function(){e.poll();if(e.cm.state.focused){e.slowPoll()}})},rl.prototype.fastPoll=function(){var t=false,n=this;n.pollingFast=true;function r(){var e=n.poll();if(!e&&!t){t=true;n.polling.set(60,r)}else{n.pollingFast=false;n.slowPoll()}}n.polling.set(20,r)},rl.prototype.poll=function(){var e=this;var t=this.cm,n=this.textarea,r=this.prevInput;if(this.contextMenuPending||!t.state.focused||At(n)&&!r&&!this.composing||t.isReadOnly()||t.options.disableInput||t.state.keySeq){return false}var i=n.value;if(i==r&&!t.somethingSelected()){return false}if(x&&_>=9&&this.hasSelection===i||y&&/[\uf700-\uf7ff]/.test(i)){t.display.input.reset();return false}if(t.doc.sel==t.display.selForContextMenu){var o=i.charCodeAt(0);if(o==8203&&!r){r="​"}if(o==8666){this.reset();return this.cm.execCommand("undo")}}var a=0,s=Math.min(r.length,i.length);while(a1e3||i.indexOf("\n")>-1){n.value=e.prevInput=""}else{e.prevInput=i}if(e.composing){e.composing.range.clear();e.composing.range=t.markText(e.composing.start,t.getCursor("to"),{className:"CodeMirror-composing"})}});return true},rl.prototype.ensurePolled=function(){if(this.pollingFast&&this.poll()){this.pollingFast=false}},rl.prototype.onKeyPress=function(){if(x&&_>=9){this.hasSelection=null}this.fastPoll()},rl.prototype.onContextMenu=function(e){var n=this,r=n.cm,i=r.display,o=n.textarea;var t=Nr(r,e),a=i.scroller.scrollTop;if(!t||m){return}var s=r.options.resetSelectionOnContextMenu;if(s&&r.doc.sel.contains(t)==-1){Oi(r,zo)(r.doc,io(t),U)}var l=o.style.cssText,u=n.wrapper.style.cssText;n.wrapper.style.cssText="position: absolute";var c=n.wrapper.getBoundingClientRect();o.style.cssText="position: absolute; width: 30px; height: 30px;\n top: "+(e.clientY-c.top-5)+"px; left: "+(e.clientX-c.left-5)+"px;\n z-index: 1000; background: "+(x?"rgba(255, 255, 255, .05)":"transparent")+";\n outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);";var f;if(v){f=window.scrollY}i.input.focus();if(v){window.scrollTo(null,f)}i.input.reset();if(!r.somethingSelected()){o.value=n.prevInput=" "}n.contextMenuPending=true;i.selForContextMenu=r.doc.sel;clearTimeout(i.detectingSelectAll);function h(){if(o.selectionStart!=null){var e=r.somethingSelected();var t="​"+(e?o.value:"");o.value="⇚";o.value=t;n.prevInput=e?"":"​";o.selectionStart=1;o.selectionEnd=t.length;i.selForContextMenu=r.doc.sel}}function d(){n.contextMenuPending=false;n.wrapper.style.cssText=u;o.style.cssText=l;if(x&&_<9){i.scrollbars.setScrollTop(i.scroller.scrollTop=a)}if(o.selectionStart!=null){if(!x||x&&_<9){h()}var e=0,t=function(){if(i.selForContextMenu==r.doc.sel&&o.selectionStart==0&&o.selectionEnd>0&&n.prevInput=="​"){Oi(r,Vo)(r)}else if(e++<10){i.detectingSelectAll=setTimeout(t,500)}else{i.selForContextMenu=null;i.input.reset()}};i.detectingSelectAll=setTimeout(t,200)}}if(x&&_>=9){h()}if(k){_t(e);var p=function(){dt(window,"mouseup",p);setTimeout(d,20)};ft(window,"mouseup",p)}else{setTimeout(d,50)}},rl.prototype.readOnlyChanged=function(e){if(!e){this.reset()}this.textarea.disabled=e=="nocursor"},rl.prototype.setUneditable=function(){},rl.prototype.needsContentAttribute=false,As(Is),Vs(Is);var al="iter insert remove copy getEditor constructor".split(" ");for(var sl in wa.prototype){if(wa.prototype.hasOwnProperty(sl)&&H(al,sl)<0){Is.prototype[sl]=function(e){return function(){return e.apply(this.doc,arguments)}}(wa.prototype[sl])}}return yt(wa),Is.inputStyles={textarea:rl,contenteditable:Xs},Is.defineMode=function(e){Is.defaults.mode||"null"==e||(Is.defaults.mode=e),function(e,t){2=43)}})["catch"](function(){return false})}function _(e){if(typeof g==="boolean"){return h.resolve(g)}return x(e).then(function(e){g=e;return g})}function k(e){var t=v[e.name];var n={};n.promise=new h(function(e,t){n.resolve=e;n.reject=t});t.deferredOperations.push(n);if(!t.dbReady){t.dbReady=n.promise}else{t.dbReady=t.dbReady.then(function(){return n.promise})}}function S(e){var t=v[e.name];var n=t.deferredOperations.pop();if(n){n.resolve();return n.promise}}function C(e,t){var n=v[e.name];var r=n.deferredOperations.pop();if(r){r.reject(t);return r.promise}}function T(i,o){return new h(function(e,t){v[i.name]=v[i.name]||j();if(i.db){if(o){k(i);i.db.close()}else{return e(i.db)}}var n=[i.name];if(o){n.push(i.version)}var r=l.open.apply(l,n);if(o){r.onupgradeneeded=function(t){var e=r.result;try{e.createObjectStore(i.storeName);if(t.oldVersion<=1){e.createObjectStore(p)}}catch(e){if(e.name==="ConstraintError"){console.warn('The database "'+i.name+'"'+" has been upgraded from version "+t.oldVersion+" to version "+t.newVersion+', but the storage "'+i.storeName+'" already exists.')}else{throw e}}}}r.onerror=function(e){e.preventDefault();t(r.error)};r.onsuccess=function(){e(r.result);S(i)}})}function O(e){return T(e,false)}function E(e){return T(e,true)}function M(e,t){if(!e.db){return true}var n=!e.db.objectStoreNames.contains(e.storeName);var r=e.versione.db.version;if(r){if(e.version!==t){console.warn('The database "'+e.name+'"'+" can't be downgraded from version "+e.db.version+" to version "+e.version+".")}e.version=e.db.version}if(i||n){if(n){var o=e.db.version+1;if(o>e.version){e.version=o}}return true}return false}function D(r){return new h(function(n,e){var t=new FileReader;t.onerror=e;t.onloadend=function(e){var t=btoa(e.target.result||"");n({__local_forage_encoded_blob:true,data:t,type:r.type})};t.readAsBinaryString(r)})}function A(e){var t=w(atob(e.data));return s([t],{type:e.type})}function L(e){return e&&e.__local_forage_encoded_blob}function P(e){var t=this;var n=t._initReady().then(function(){var e=v[t._dbInfo.name];if(e&&e.dbReady){return e.dbReady}});c(n,e,e);return n}function N(n){k(n);var r=v[n.name];var i=r.forages;for(var e=0;e0&&(!t.db||e.name==="InvalidStateError"||e.name==="NotFoundError")){return h.resolve().then(function(){if(!t.db||e.name==="NotFoundError"&&!t.db.objectStoreNames.contains(t.storeName)&&t.version<=t.db.version){if(t.db){t.version=t.db.version+1}return E(t)}}).then(function(){return N(t).then(function(){I(t,n,r,i-1)})})["catch"](r)}r(e)}}function j(){return{forages:[],db:null,dbReady:null,deferredOperations:[]}}function R(e){var r=this;var i={db:null};if(e){for(var t in e){i[t]=e[t]}}var o=v[i.name];if(!o){o=j();v[i.name]=o}o.forages.push(r);if(!r._initReady){r._initReady=r.ready;r.ready=P}var n=[];function a(){return h.resolve()}for(var s=0;s>4;c[i++]=(a&15)<<4|s>>2;c[i++]=(s&3)<<6|l&63}return u}function pe(e){var t=new Uint8Array(e);var n="";var r;for(r=0;r>2];n+=$[(t[r]&3)<<4|t[r+1]>>4];n+=$[(t[r+1]&15)<<2|t[r+2]>>6];n+=$[t[r+2]&63]}if(t.length%3===2){n=n.substring(0,n.length-1)+"="}else if(t.length%3===1){n=n.substring(0,n.length-2)+"=="}return n}function ge(t,n){var e="";if(t){e=he.call(t)}if(t&&(e==="[object ArrayBuffer]"||t.buffer&&he.call(t.buffer)==="[object ArrayBuffer]")){var r;var i=Q;if(t instanceof ArrayBuffer){r=t;i+=ee}else{r=t.buffer;if(e==="[object Int8Array]"){i+=ne}else if(e==="[object Uint8Array]"){i+=re}else if(e==="[object Uint8ClampedArray]"){i+=ie}else if(e==="[object Int16Array]"){i+=oe}else if(e==="[object Uint16Array]"){i+=se}else if(e==="[object Int32Array]"){i+=ae}else if(e==="[object Uint32Array]"){i+=le}else if(e==="[object Float32Array]"){i+=ue}else if(e==="[object Float64Array]"){i+=ce}else{n(new Error("Failed to get type for BinaryArray"))}}n(i+pe(r))}else if(e==="[object Blob]"){var o=new FileReader;o.onload=function(){var e=X+t.type+"~"+pe(this.result);n(Q+te+e)};o.readAsArrayBuffer(t)}else{try{n(JSON.stringify(t))}catch(e){console.error("Couldn't convert value into a JSON string: ",t);n(null,e)}}}function ve(e){if(e.substring(0,Z)!==Q){return JSON.parse(e)}var t=e.substring(fe);var n=e.substring(Z,fe);var r;if(n===te&&J.test(t)){var i=t.match(J);r=i[1];t=t.substring(i[0].length)}var o=de(t);switch(n){case ee:return o;case te:return s([o],{type:r});case ne:return new Int8Array(o);case re:return new Uint8Array(o);case ie:return new Uint8ClampedArray(o);case oe:return new Int16Array(o);case se:return new Uint16Array(o);case ae:return new Int32Array(o);case le:return new Uint32Array(o);case ue:return new Float32Array(o);case ce:return new Float64Array(o);default:throw new Error("Unkown type: "+n)}}var me={serialize:ge,deserialize:ve,stringToBuffer:de,bufferToString:pe};function ye(e,t,n,r){e.executeSql("CREATE TABLE IF NOT EXISTS "+t.storeName+" "+"(id INTEGER PRIMARY KEY, key unique, value)",[],n,r)}function be(e){var r=this;var i={db:null};if(e){for(var t in e){i[t]=typeof e[t]!=="string"?e[t].toString():e[t]}}var n=new h(function(t,n){try{i.db=openDatabase(i.name,String(i.version),i.description,i.size)}catch(e){return n(e)}i.db.transaction(function(e){ye(e,i,function(){r._dbInfo=i;t()},function(e,t){n(t)})},n)});i.serializer=me;return n}function we(e,r,i,o,a,s){e.executeSql(i,o,a,function(e,n){if(n.code===n.SYNTAX_ERR){e.executeSql("SELECT name FROM sqlite_master "+"WHERE type='table' AND name = ?",[r.storeName],function(e,t){if(!t.rows.length){ye(e,r,function(){e.executeSql(i,o,a,s)},s)}else{s(e,n)}},s)}else{s(e,n)}},s)}function xe(t,e){var o=this;t=f(t);var n=new h(function(i,n){o.ready().then(function(){var r=o._dbInfo;r.db.transaction(function(e){we(e,r,"SELECT * FROM "+r.storeName+" WHERE key = ? LIMIT 1",[t],function(e,t){var n=t.rows.length?t.rows.item(0).value:null;if(n){n=r.serializer.deserialize(n)}i(n)},function(e,t){n(t)})})})["catch"](n)});d(n,e);return n}function _e(u,e){var t=this;var n=new h(function(l,n){t.ready().then(function(){var s=t._dbInfo;s.db.transaction(function(e){we(e,s,"SELECT * FROM "+s.storeName,[],function(e,t){var n=t.rows;var r=n.length;for(var i=0;i0){i(ke.apply(u,[a,n,s,l-1]));return}o(e)}})}})})["catch"](o)});d(t,s);return t}function Se(e,t,n){return ke.apply(this,[e,t,n,1])}function Ce(i,e){var o=this;i=f(i);var t=new h(function(n,r){o.ready().then(function(){var t=o._dbInfo;t.db.transaction(function(e){we(e,t,"DELETE FROM "+t.storeName+" WHERE key = ?",[i],function(){n()},function(e,t){r(t)})})})["catch"](r)});d(t,e);return t}function Te(e){var i=this;var t=new h(function(n,r){i.ready().then(function(){var t=i._dbInfo;t.db.transaction(function(e){we(e,t,"DELETE FROM "+t.storeName,[],function(){n()},function(e,t){r(t)})})})["catch"](r)});d(t,e);return t}function Oe(e){var i=this;var t=new h(function(r,n){i.ready().then(function(){var t=i._dbInfo;t.db.transaction(function(e){we(e,t,"SELECT COUNT(key) as c FROM "+t.storeName,[],function(e,t){var n=t.rows.item(0).c;r(n)},function(e,t){n(t)})})})["catch"](n)});d(t,e);return t}function Ee(i,e){var o=this;var t=new h(function(r,n){o.ready().then(function(){var t=o._dbInfo;t.db.transaction(function(e){we(e,t,"SELECT key FROM "+t.storeName+" WHERE id = ? LIMIT 1",[i+1],function(e,t){var n=t.rows.length?t.rows.item(0).key:null;r(n)},function(e,t){n(t)})})})["catch"](n)});d(t,e);return t}function Me(e){var r=this;var t=new h(function(i,n){r.ready().then(function(){var t=r._dbInfo;t.db.transaction(function(e){we(e,t,"SELECT key FROM "+t.storeName,[],function(e,t){var n=[];for(var r=0;r '__WebKitDatabaseInfoTable__'",[],function(e,t){var n=[];for(var r=0;r0}function Re(e){var t=this;var n={};if(e){for(var r in e){n[r]=e[r]}}n.keyPrefix=Ne(e,t._defaultConfig);if(!je()){return h.reject()}t._dbInfo=n;n.serializer=me;return h.resolve()}function Fe(e){var r=this;var t=r.ready().then(function(){var e=r._dbInfo.keyPrefix;for(var t=localStorage.length-1;t>=0;t--){var n=localStorage.key(t);if(n.indexOf(e)===0){localStorage.removeItem(n)}}});d(t,e);return t}function ze(n,e){var r=this;n=f(n);var t=r.ready().then(function(){var e=r._dbInfo;var t=localStorage.getItem(e.keyPrefix+n);if(t){t=e.serializer.deserialize(t)}return t});d(t,e);return t}function He(l,e){var u=this;var t=u.ready().then(function(){var e=u._dbInfo;var t=e.keyPrefix;var n=t.length;var r=localStorage.length;var i=1;for(var o=0;o=0;t--){var n=localStorage.key(t);if(n.indexOf(e)===0){localStorage.removeItem(n)}}})}d(i,e);return i}var Ve={_driver:"localStorageWrapper",_initStorage:Re,_support:Pe(),iterate:He,getItem:ze,setItem:Ge,removeItem:qe,clear:Fe,length:Ue,key:We,keys:Be,dropInstance:Ye};var Ke=function e(t,n){return t===n||typeof t==="number"&&typeof n==="number"&&isNaN(t)&&isNaN(n)};var $e=function e(t,n){var r=t.length;var i=0;while(idocument.F=Object<\/script>"),e.close(),c=e.F;n--;)delete c[u][a[n]];return c()};e.exports=Object.create||function(e,t){var n;return null!==e?(l[u]=i(e),n=new l,l[u]=null,n[s]=e):n=c(),void 0===t?n:o(n,t)}},function(e,t,n){var r=n(262),i=n(208).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,i)}},function(e,t,n){"use strict";var r=n(20),i=n(37),o=n(36),a=n(28)("species");e.exports=function(e){var t=r[e];o&&t&&!t[a]&&i.f(t,a,{configurable:!0,get:function(){return this}})}},function(e,t){e.exports=function(e,t,n,r){if(!(e instanceof t)||void 0!==r&&r in e)throw TypeError(n+": incorrect invocation!");return e}},function(e,t,n){var i=n(54);e.exports=function(e,t,n){for(var r in t)i(e,r,t[r],n);return e}},,,,,,,,,,,,,,,,,,,,function(e,t,n){var r=n(37).f,i=n(49),o=n(28)("toStringTag");e.exports=function(e,t,n){e&&!i(e=n?e:e.prototype,o)&&r(e,o,{configurable:!0,value:t})}},function(e,t,n){var a=n(9),r=n(67),s=n(21),l=n(212),i="["+l+"]",u="​…",o=RegExp("^"+i+i+"*"),c=RegExp(i+i+"*$"),f=function(e,t,n){var r={},i=s(function(){return!!l[e]()||u[e]()!=u}),o=r[e]=i?t(h):l[e];n&&(r[n]=o),a(a.P+a.F*i,"String",r)},h=f.trim=function(e,t){return e=String(r(e)),1&t&&(e=e.replace(o,"")),2&t&&(e=e.replace(c,"")),e};e.exports=f},function(e,t){e.exports={}},function(e,t,n){var r=n(28)("unscopables"),i=Array.prototype;null==i[r]&&n(53)(i,r,{}),e.exports=function(e){i[r][e]=!0}},function(e,t,n){var h=n(80),d=n(273),p=n(222),g=n(19),v=n(40),m=n(224),y={},b={};(t=e.exports=function(e,t,n,r,i){var o,a,s,l,u=i?function(){return e}:m(e),c=h(n,r,t?2:1),f=0;if("function"!=typeof u)throw TypeError(e+" is not iterable!");if(p(u)){for(o=v(e.length);f=e.w?Y()&&V(e,n,r)&&(null===e.u||e.u.hasOwnProperty(e.a.c))?$(e,e.v):$(e,e.B):function(e){setTimeout(b(function(){K(this)},e),50)}(e):$(e,e.v)}function $(e,t){setTimeout(b(function(){k(this.g.a),k(this.h.a),k(this.j.a),k(this.m.a),t(this.a)},e),0)}function X(e,t,n){this.c=e,this.a=t,this.f=0,this.m=this.j=!1,this.s=n}function J(e){0==--e.f&&e.j&&(e.m?((e=e.a).g&&S(e.f,[e.a.c("wf","active")],[e.a.c("wf","loading"),e.a.c("wf","inactive")]),z(e,"active")):F(e.a))}function Q(e){this.j=e,this.a=new H,this.h=0,this.f=this.g=!0}function Z(i,e,t){var o,n=[],r=t.timeout;for(!function(e){e.g&&S(e.f,[e.a.c("wf","loading")]),z(e,"loading")}(e),n=function(e,t,n){var r,i,o=[];for(r in t)t.hasOwnProperty(r)&&(i=e.c[r])&&o.push(i(t[r],n));return o}(i.a,t,i.c),o=new X(i.c,e,r),i.h=n.length,e=0,t=n.length;e=i.f?e():r.fonts.load(function(e){return j(e)+" "+e.f+"00 300px "+N(e.c)}(i.a),i.h).then(function(e){1<=e.length?n():setTimeout(t,25)},function(){e()})}()}),n=null,t=new Promise(function(e,t){n=setTimeout(t,i.f)});Promise.race([t,e]).then(function(){n&&(clearTimeout(n),n=null),i.g(i.a)},function(){i.j(i.a)})},i={D:"serif",C:"sans-serif"},o=null,G.prototype.start=function(){this.f.serif=this.j.a.offsetWidth,this.f["sans-serif"]=this.m.a.offsetWidth,this.A=c(),K(this)},p=null,X.prototype.g=function(e){var t=this.a;t.g&&S(t.f,[t.a.c("wf",e.c,I(e).toString(),"active")],[t.a.c("wf",e.c,I(e).toString(),"loading"),t.a.c("wf",e.c,I(e).toString(),"inactive")]),z(t,"fontactive",e),this.m=!0,J(this)},X.prototype.h=function(e){var t,n,r,i=this.a;i.g&&(t=C(i.f,i.a.c("wf",e.c,I(e).toString(),"active")),n=[],r=[i.a.c("wf",e.c,I(e).toString(),"loading")],t||n.push(i.a.c("wf",e.c,I(e).toString(),"inactive")),S(i.f,n,r)),z(i,"fontinactive",e),J(this)},Q.prototype.load=function(e){this.c=new w(this.j,e.context||this.j),this.g=!1!==e.events,this.f=!1!==e.classes,Z(this,new R(this.c,e),e)},ee.prototype.load=function(a){var s,t=this,l=t.a.projectId,e=t.a.version;l?(s=t.c.o,O(this.c,(t.a.api||"https://fast.fonts.net/jsapi")+"/"+l+".js"+(e?"?v="+e:""),function(e){e?a([]):(s["__MonotypeConfiguration__"+l]=function(){return t.a},function e(){var t,n,r,i,o;if(s["__mti_fntLst"+l]){if(n=[],t=s["__mti_fntLst"+l]())for(i=0;i=o;r--,i=-1){var a=e.getLine(r);if(i>-1)a=a.slice(0,i);var s=w(a,t);if(s)return{from:m(r,s.index),to:m(r,s.index+s[0].length),match:s}}}function s(e,t,n){t=p(t);var r,i=1;for(var o=n.line,a=e.firstLine();o>=a;){for(var s=0;s>1;var s=r(e.slice(0,a)).length;if(s==n)return a;else if(s>n)o=a;else i=a+1}}function l(e,t,n,r){if(!t.length)return null;var i=r?y:b;var o=i(t).split(/\r|\n\r?/);e:for(var a=n.line,s=n.ch,l=e.lastLine()+1-o.length;a<=l;a++,s=0){var u=e.getLine(a).slice(s),c=i(u);if(o.length==1){var f=c.indexOf(o[0]);if(f==-1)continue e;var n=x(u,c,f,i)+s;return{from:m(a,x(u,c,f,i)+s),to:m(a,x(u,c,f+o[0].length,i)+s)}}else{var h=c.length-o[0].length;if(c.slice(h)!=o[0])continue e;for(var d=1;d=l;a--,s=-1){var u=e.getLine(a);if(s>-1)u=u.slice(0,s);var c=i(u);if(o.length==1){var f=c.lastIndexOf(o[0]);if(f==-1)continue e;return{from:m(a,x(u,c,f,i)),to:m(a,x(u,c,f+o[0].length,i))}}else{var h=o[o.length-1];if(c.slice(0,h.length)!=h)continue e;for(var d=1,n=a-o.length+1;d0)break;n.push({anchor:r.from(),head:r.to()})}if(n.length)this.setSelections(n,0)})}(n(58))},function(e,t,n){var r,i,o;i=[n(0),n(52)],void 0===(o="function"==typeof(r=function(c){var n=0,s=Array.prototype.slice;return c.cleanData=function(i){return function(e){var t,n,r;for(r=0;null!=(n=e[r]);r++)try{(t=c._data(n,"events"))&&t.remove&&c(n).triggerHandler("remove")}catch(e){}i(e)}}(c.cleanData),c.widget=function(e,n,t){var r,i,o,a,s={},l=e.split(".")[0];return e=e.split(".")[1],a=l+"-"+e,t||(t=n,n=c.Widget),c.isArray(t)&&(t=c.extend.apply(null,[{}].concat(t))),c.expr[":"][a.toLowerCase()]=function(e){return!!c.data(e,a)},c[l]=c[l]||{},r=c[l][e],i=c[l][e]=function(e,t){if(!this._createWidget)return new i(e,t);arguments.length&&this._createWidget(e,t)},c.extend(i,r,{version:t.version,_proto:c.extend({},t),_childConstructors:[]}),(o=new n).options=c.widget.extend({},o.options),c.each(t,function(t,r){function i(){return n.prototype[t].apply(this,arguments)}function o(e){return n.prototype[t].apply(this,e)}c.isFunction(r)?s[t]=function(){var e,t=this._super,n=this._superApply;return this._super=i,this._superApply=o,e=r.apply(this,arguments),this._super=t,this._superApply=n,e}:s[t]=r}),i.prototype=c.widget.extend(o,{widgetEventPrefix:r&&o.widgetEventPrefix||e},s,{constructor:i,namespace:l,widgetName:e,widgetFullName:a}),r?(c.each(r._childConstructors,function(e,t){var n=t.prototype;c.widget(n.namespace+"."+n.widgetName,i,t._proto)}),delete r._childConstructors):n._childConstructors.push(i),c.widget.bridge(e,i),i},c.widget.extend=function(e){for(var t,n,r=s.call(arguments,1),i=0,o=r.length;i",options:{classes:{},disabled:!1,create:null},_createWidget:function(e,t){t=c(t||this.defaultElement||this)[0],this.element=c(t),this.uuid=n++,this.eventNamespace="."+this.widgetName+this.uuid,this.bindings=c(),this.hoverable=c(),this.focusable=c(),this.classesElementLookup={},t!==this&&(c.data(t,this.widgetFullName,this),this._on(!0,this.element,{remove:function(e){e.target===t&&this.destroy()}}),this.document=c(t.style?t.ownerDocument:t.document||t),this.window=c(this.document[0].defaultView||this.document[0].parentWindow)),this.options=c.widget.extend({},this.options,this._getCreateOptions(),e),this._create(),this.options.disabled&&this._setOptionDisabled(this.options.disabled),this._trigger("create",null,this._getCreateEventData()),this._init()},_getCreateOptions:function(){return{}},_getCreateEventData:c.noop,_create:c.noop,_init:c.noop,destroy:function(){var n=this;this._destroy(),c.each(this.classesElementLookup,function(e,t){n._removeClass(t,e)}),this.element.off(this.eventNamespace).removeData(this.widgetFullName),this.widget().off(this.eventNamespace).removeAttr("aria-disabled"),this.bindings.off(this.eventNamespace)},_destroy:c.noop,widget:function(){return this.element},option:function(e,t){var n,r,i,o=e;if(0===arguments.length)return c.widget.extend({},this.options);if("string"==typeof e)if(o={},e=(n=e.split(".")).shift(),n.length){for(r=o[e]=c.widget.extend({},this.options[e]),i=0;i>>=1)&&(t+=t))1&r&&(n+=t);return n}},function(e,t){e.exports=Math.sign||function(e){return 0==(e=+e)||e!=e?e:e<0?-1:1}},function(e,t){var n=Math.expm1;e.exports=!n||22025.465794806718=e.length?(this._t=void 0,i(1)):i(0,"keys"==t?n:"values"==t?e[n]:[n,e[n]])},"values"),o.Arguments=o.Array,r("keys"),r("values"),r("entries")},function(e,t,n){var i=n(19),o=n(55),a=n(28)("species");e.exports=function(e,t){var n,r=i(e).constructor;return void 0===r||null==(n=i(r)[a])?t:o(n)}},function(e,t,n){var r,i,o,a=n(80),s=n(182),l=n(210),u=n(205),c=n(20),f=c.process,h=c.setImmediate,d=c.clearImmediate,p=c.MessageChannel,g=0,v={},m="onreadystatechange",y=function(){var e,t=+this;v.hasOwnProperty(t)&&(e=v[t],delete v[t],e())},b=function(e){y.call(e.data)};h&&d||(h=function(e){for(var t=[],n=1;n>1,c=23===t?I(2,-24)-I(2,-77):0,f=0,h=e<0||0===e&&1/e<0?1:0;for((e=N(e))!=e||e===L?(i=e!=e?1:0,r=l):(r=j(R(e)/F),e*(o=I(2,-r))<1&&(r--,o*=2),2<=(e+=1<=r+u?c/o:c*I(2,1-u))*o&&(r++,o/=2),l<=r+u?(i=0,r=l):1<=r+u?(i=(e*o-1)*I(2,t),r+=u):(i=e*I(2,u-1)*I(2,t),r=0));8<=t;a[f++]=255&i,i/=256,t-=8);for(r=r<>1,s=i-7,l=n-1,u=e[l--],c=127&u;for(u>>=7;0>=-s,s+=t;0>8&255]},X=function(e){return[255&e,e>>8&255,e>>16&255,e>>24&255]},J=function(e){return G(e,52,8)},Q=function(e){return G(e,23,4)},Z=function(e,t,n){w(e[C],t,{get:function(){return this[n]}})},ee=function(e,t,n,r){var i,o,a,s=+n,l=m(s);if(s!=l||l<0||l+t>e[U])throw A(O);return i=e[B]._b,o=l+e[q],a=i.slice(o,o+t),r?a:a.reverse()},te=function(e,t,n,r,i,o){var a,s,l,u,c=+n,f=m(c);if(c!=f||f<0||f+t>e[U])throw A(O);for(a=e[B]._b,s=f+e[q],l=r(+i),u=0;uo;)(a=i[o++])in E||d(E,a,P[a]);f||(r.constructor=E)}s=new M(new E(2)),l=M[C].setInt8,s.setInt8(0,2147483648),s.setInt8(1,2147483649),!s.getInt8(0)&&s.getInt8(1)||p(M[C],{setInt8:function(e,t){l.call(this,e,t<<24>>24)},setUint8:function(e,t){l.call(this,e,t<<24>>24)}},!0)}else E=function(e){var t=ne(this,e);this._b=x.call(Array(t),0),this[U]=t},M=function(e,t,n){v(this,M,S),v(e,E,S);var r=e[U],i=m(t);if(i<0||r>24},getUint8:function(e){return ee(this,1,e)[0]},getInt16:function(e,t){var n=ee(this,2,e,t);return(n[1]<<8|n[0])<<16>>16},getUint16:function(e,t){var n=ee(this,2,e,t);return n[1]<<8|n[0]},getInt32:function(e,t){return V(ee(this,4,e,t))},getUint32:function(e,t){return V(ee(this,4,e,t))>>>0},getFloat32:function(e,t){return Y(ee(this,4,e,t),23,4)},getFloat64:function(e,t){return Y(ee(this,8,e,t),52,8)},setInt8:function(e,t){te(this,1,e,K,t)},setUint8:function(e,t){te(this,1,e,K,t)},setInt16:function(e,t,n){te(this,2,e,$,t,n)},setUint16:function(e,t,n){te(this,2,e,$,t,n)},setInt32:function(e,t,n){te(this,4,e,X,t,n)},setUint32:function(e,t,n){te(this,4,e,X,t,n)},setFloat32:function(e,t,n){te(this,4,e,Q,t,n)},setFloat64:function(e,t,n){te(this,8,e,J,t,n)}});_(E,k),_(M,S),d(M[C],h.VIEW,!0),t[k]=E,t[S]=M},,,,,,,,,,,,,,,function(e,t,n){},function(e,t,n){var r,i,o;!function(){"use strict";i=[n(0)],void 0===(o="function"==typeof(r=function(Fe,ze){"use strict";var r={beforeShow:e,move:e,change:e,show:e,hide:e,color:false,flat:false,showInput:false,allowEmpty:false,showButtons:true,clickoutFiresChange:true,showInitial:false,showPalette:false,showPaletteOnly:false,hideAfterPaletteSelect:false,togglePaletteOnly:false,showSelectionPalette:true,localStorageKey:false,appendTo:"body",maxSelectionSize:7,cancelText:"cancel",chooseText:"choose",togglePaletteMoreText:"more",togglePaletteLessText:"less",clearText:"Clear Color Selection",noColorSelectedText:"No Color Selected",preferredFormat:false,className:"",containerClassName:"",replacerClassName:"",showAlpha:false,theme:"sp-light",palette:[["#ffffff","#000000","#ff0000","#ff8000","#ffff00","#008000","#0000ff","#4b0082","#9400d3"]],selectionPalette:[],disabled:false,offset:null},He=[],We=!!/msie/i.exec(window.navigator.userAgent),Be=function(){function e(e,t){return!!~(""+e).indexOf(t)}var t=document.createElement("div");var n=t.style;n.cssText="background-color:rgba(0,0,0,.5)";return e(n.backgroundColor,"rgba")||e(n.backgroundColor,"hsla")}(),Ue=["
","
","
","
"].join(""),qe=function(){var e="";if(We){for(var t=1;t<=6;t++){e+="
"}}return["
","
","
","
","","
","
","
","
","
","
","
","
","
","
","
","
","
","
","
","
","
",e,"
","
","
","
","
","","
","
","
","","","
","
","
"].join("")}();function Ge(e,t,n,r){var i=[];for(var o=0;o')}else{var f="sp-clear-display";i.push(Fe("
").append(Fe('').attr("title",r.noColorSelectedText)).html())}}return"
"+i.join("")+"
"}function Ye(){for(var e=0;eMath.abs(t-i);M=o?"x":"y"}var a=!M||M==="x";var s=!M||M==="y";if(a){w=parseFloat(e/f)}if(s){x=parseFloat((h-t)/h)}ae=false;if(!u.showAlpha){_=1}Oe()},ge,ve);if(!!ne){Se(ne);Ee();ie=u.preferredFormat||tinycolor(ne).format;fe(ne)}else{Ee()}if(r){be()}function t(e){if(e.data&&e.data.ignore){Se(Fe(e.target).closest(".sp-thumb-el").data("color"));Oe()}else{Se(Fe(e.target).closest(".sp-thumb-el").data("color"));Oe();De(true);if(u.hideAfterPaletteSelect){_e()}}return false}var n=We?"mousedown.spectrum":"click.spectrum touchstart.spectrum";q.delegate(".sp-thumb-el",n,t);G.delegate(".sp-thumb-el:nth-child(1)",n,{ignore:true},t)}function ce(){if(i&&window.localStorage){try{var e=window.localStorage[i].split(",#");if(e.length>1){delete window.localStorage[i];Fe.each(e,function(e,t){fe(t)})}}catch(e){}try{T=window.localStorage[i].split(";")}catch(e){}}}function fe(e){if(n){var t=tinycolor(e).toRgbString();if(!C[t]&&Fe.inArray(t,T)===-1){T.push(t);while(T.length>O){T.shift()}}if(i&&window.localStorage){try{window.localStorage[i]=T.join(";")}catch(e){}}}}function he(){var e=[];if(u.showPalette){for(var t=0;tl&&l>r?Math.abs(c.left+r-l):0);c.top-=Math.min(c.top,c.top+i>u&&u>i?Math.abs(i+o-n):n);return c}function e(){}function $e(e){e.stopPropagation()}function i(e,t){var n=Array.prototype.slice;var r=n.call(arguments,2);return function(){return e.apply(t,r.concat(n.call(arguments)))}}function Xe(a,s,n,e){s=s||function(){};n=n||function(){};e=e||function(){};var l=document;var u=false;var c={};var f=0;var h=0;var d="ontouchstart"in window;var r={};r["selectstart"]=p;r["dragstart"]=p;r["touchmove mousemove"]=i;r["touchend mouseup"]=g;function p(e){if(e.stopPropagation){e.stopPropagation()}if(e.preventDefault){e.preventDefault()}e.returnValue=false}function i(e){if(u){if(We&&l.documentMode<9&&!e.button){return g()}var t=e.originalEvent&&e.originalEvent.touches&&e.originalEvent.touches[0];var n=t&&t.pageX||e.pageX;var r=t&&t.pageY||e.pageY;var i=Math.max(0,Math.min(n-c.left,h));var o=Math.max(0,Math.min(r-c.top,f));if(d){p(e)}s.apply(a,[i,o,e])}}function t(e){var t=e.which?e.which==3:e.button==2;if(!t&&!u){if(n.apply(a,arguments)!==false){u=true;f=Fe(a).height();h=Fe(a).width();c=Fe(a).offset();Fe(l).bind(r);Fe(l.body).addClass("sp-dragging");i(e);p(e)}}}function g(){if(u){Fe(l).unbind(r);Fe(l.body).removeClass("sp-dragging");setTimeout(function(){e.apply(a,arguments)},0)}u=false}Fe(a).bind("touchstart mousedown",t)}function Je(r,i,o){var a;return function(){var e=this,t=arguments;var n=function(){a=null;r.apply(e,t)};if(o)clearTimeout(a);if(o||!a)a=setTimeout(n,i)}}function Qe(){return Fe.fn.spectrum.inputTypeColorSupport()}var a="spectrum.id";Fe.fn.spectrum=function(n,e){if(typeof n=="string"){var r=this;var i=Array.prototype.slice.call(arguments,1);this.each(function(){var e=He[Fe(this).data(a)];if(e){var t=e[n];if(!t){throw new Error("Spectrum: no such method: '"+n+"'")}if(n=="get"){r=e.get()}else if(n=="container"){r=e.container}else if(n=="option"){r=e.option.apply(e,i)}else if(n=="destroy"){e.destroy();Fe(this).removeData(a)}else{t.apply(e,i)}}});return r}return this.spectrum("destroy").each(function(){var e=Fe.extend({},n,Fe(this).data());var t=o(this,e);Fe(this).data(a,t.id)})},Fe.fn.spectrum.load=true,Fe.fn.spectrum.loadOpts={},Fe.fn.spectrum.draggable=Xe,Fe.fn.spectrum.defaults=r,Fe.fn.spectrum.inputTypeColorSupport=function e(){if(typeof e._cachedResult==="undefined"){var t=Fe("")[0];e._cachedResult=t.type==="color"&&t.value!==""}return e._cachedResult},Fe.spectrum={},Fe.spectrum.localization={},Fe.spectrum.palettes={},Fe.fn.spectrum.processNativeColorInputs=function(){var e=Fe("input[type=color]");if(e.length&&!Qe()){e.spectrum({preferredFormat:"hex6"})}},function(){var r=/^[\s,#]+/,i=/\s+$/,o=0,h=Math,a=h.round,u=h.min,c=h.max,e=h.random;var f=function(e,t){e=e?e:"";t=t||{};if(e instanceof f){return e}if(!(this instanceof f)){return new f(e,t)}var n=s(e);this._originalInput=e,this._r=n.r,this._g=n.g,this._b=n.b,this._a=n.a,this._roundA=a(100*this._a)/100,this._format=t.format||n.format;this._gradientType=t.gradientType;if(this._r<1){this._r=a(this._r)}if(this._g<1){this._g=a(this._g)}if(this._b<1){this._b=a(this._b)}this._ok=n.ok;this._tc_id=o++};f.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var e=this.toRgb();return(e.r*299+e.g*587+e.b*114)/1e3},setAlpha:function(e){this._a=P(e);this._roundA=a(100*this._a)/100;return this},toHsv:function(){var e=g(this._r,this._g,this._b);return{h:e.h*360,s:e.s,v:e.v,a:this._a}},toHsvString:function(){var e=g(this._r,this._g,this._b);var t=a(e.h*360),n=a(e.s*100),r=a(e.v*100);return this._a==1?"hsv("+t+", "+n+"%, "+r+"%)":"hsva("+t+", "+n+"%, "+r+"%, "+this._roundA+")"},toHsl:function(){var e=d(this._r,this._g,this._b);return{h:e.h*360,s:e.s,l:e.l,a:this._a}},toHslString:function(){var e=d(this._r,this._g,this._b);var t=a(e.h*360),n=a(e.s*100),r=a(e.l*100);return this._a==1?"hsl("+t+", "+n+"%, "+r+"%)":"hsla("+t+", "+n+"%, "+r+"%, "+this._roundA+")"},toHex:function(e){return t(this._r,this._g,this._b,e)},toHexString:function(e){return"#"+this.toHex(e)},toHex8:function(){return m(this._r,this._g,this._b,this._a)},toHex8String:function(){return"#"+this.toHex8()},toRgb:function(){return{r:a(this._r),g:a(this._g),b:a(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+a(this._r)+", "+a(this._g)+", "+a(this._b)+")":"rgba("+a(this._r)+", "+a(this._g)+", "+a(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:a(N(this._r,255)*100)+"%",g:a(N(this._g,255)*100)+"%",b:a(N(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+a(N(this._r,255)*100)+"%, "+a(N(this._g,255)*100)+"%, "+a(N(this._b,255)*100)+"%)":"rgba("+a(N(this._r,255)*100)+"%, "+a(N(this._g,255)*100)+"%, "+a(N(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){if(this._a===0){return"transparent"}if(this._a<1){return false}return A[t(this._r,this._g,this._b,true)]||false},toFilter:function(e){var t="#"+m(this._r,this._g,this._b,this._a);var n=t;var r=this._gradientType?"GradientType = 1, ":"";if(e){var i=f(e);n=i.toHex8String()}return"progid:DXImageTransform.Microsoft.gradient("+r+"startColorstr="+t+",endColorstr="+n+")"},toString:function(e){var t=!!e;e=e||this._format;var n=false;var r=this._a<1&&this._a>=0;var i=!t&&r&&(e==="hex"||e==="hex6"||e==="hex3"||e==="name");if(i){if(e==="name"&&this._a===0){return this.toName()}return this.toRgbString()}if(e==="rgb"){n=this.toRgbString()}if(e==="prgb"){n=this.toPercentageRgbString()}if(e==="hex"||e==="hex6"){n=this.toHexString()}if(e==="hex3"){n=this.toHexString(true)}if(e==="hex8"){n=this.toHex8String()}if(e==="name"){n=this.toName()}if(e==="hsl"){n=this.toHslString()}if(e==="hsv"){n=this.toHsvString()}return n||this.toHexString()},_applyModification:function(e,t){var n=e.apply(null,[this].concat([].slice.call(t)));this._r=n._r;this._g=n._g;this._b=n._b;this.setAlpha(n._a);return this},lighten:function(){return this._applyModification(w,arguments)},brighten:function(){return this._applyModification(x,arguments)},darken:function(){return this._applyModification(_,arguments)},desaturate:function(){return this._applyModification(n,arguments)},saturate:function(){return this._applyModification(y,arguments)},greyscale:function(){return this._applyModification(b,arguments)},spin:function(){return this._applyModification(k,arguments)},_applyCombination:function(e,t){return e.apply(null,[this].concat([].slice.call(t)))},analogous:function(){return this._applyCombination(E,arguments)},complement:function(){return this._applyCombination(S,arguments)},monochromatic:function(){return this._applyCombination(M,arguments)},splitcomplement:function(){return this._applyCombination(O,arguments)},triad:function(){return this._applyCombination(C,arguments)},tetrad:function(){return this._applyCombination(T,arguments)}};f.fromRatio=function(e,t){if(typeof e=="object"){var n={};for(var r in e){if(e.hasOwnProperty(r)){if(r==="a"){n[r]=e[r]}else{n[r]=H(e[r])}}}e=n}return f(e,t)};function s(e){var t={r:0,g:0,b:0};var n=1;var r=false;var i=false;if(typeof e=="string"){e=q(e)}if(typeof e=="object"){if(e.hasOwnProperty("r")&&e.hasOwnProperty("g")&&e.hasOwnProperty("b")){t=l(e.r,e.g,e.b);r=true;i=String(e.r).substr(-1)==="%"?"prgb":"rgb"}else if(e.hasOwnProperty("h")&&e.hasOwnProperty("s")&&e.hasOwnProperty("v")){e.s=H(e.s);e.v=H(e.v);t=v(e.h,e.s,e.v);r=true;i="hsv"}else if(e.hasOwnProperty("h")&&e.hasOwnProperty("s")&&e.hasOwnProperty("l")){e.s=H(e.s);e.l=H(e.l);t=p(e.h,e.s,e.l);r=true;i="hsl"}if(e.hasOwnProperty("a")){n=e.a}}n=P(n);return{ok:r,format:e.format||i,r:u(255,c(t.r,0)),g:u(255,c(t.g,0)),b:u(255,c(t.b,0)),a:n}}function l(e,t,n){return{r:N(e,255)*255,g:N(t,255)*255,b:N(n,255)*255}}function d(e,t,n){e=N(e,255);t=N(t,255);n=N(n,255);var r=c(e,t,n),i=u(e,t,n);var o,a,s=(r+i)/2;if(r==i){o=a=0}else{var l=r-i;a=s>.5?l/(2-r-i):l/(r+i);switch(r){case e:o=(t-n)/l+(t1)n-=1;if(n<1/6)return e+(t-e)*6*n;if(n<1/2)return t;if(n<2/3)return e+(t-e)*(2/3-n)*6;return e}if(t===0){r=i=o=n}else{var s=n<.5?n*(1+t):n+t-n*t;var l=2*n-s;r=a(l,s,e+1/3);i=a(l,s,e);o=a(l,s,e-1/3)}return{r:r*255,g:i*255,b:o*255}}function g(e,t,n){e=N(e,255);t=N(t,255);n=N(n,255);var r=c(e,t,n),i=u(e,t,n);var o,a,s=r;var l=r-i;a=r===0?0:l/r;if(r==i){o=0}else{switch(r){case e:o=(t-n)/l+(t>1)+720)%360;--t;){r.h=(r.h+i)%360;o.push(f(r))}return o}function M(e,t){t=t||6;var n=f(e).toHsv();var r=n.h,i=n.s,o=n.v;var a=[];var s=1/t;while(t--){a.push(f({h:r,s:i,v:o}));o=(o+s)%1}return a}f.mix=function(e,t,n){n=n===0?0:n||50;var r=f(e).toRgb();var i=f(t).toRgb();var o=n/100;var a=o*2-1;var s=i.a-r.a;var l;if(a*s==-1){l=a}else{l=(a+s)/(1+a*s)}l=(l+1)/2;var u=1-l;var c={r:i.r*l+r.r*u,g:i.g*l+r.g*u,b:i.b*l+r.b*u,a:i.a*o+r.a*(1-o)};return f(c)};f.readability=function(e,t){var n=f(e);var r=f(t);var i=n.toRgb();var o=r.toRgb();var a=n.getBrightness();var s=r.getBrightness();var l=Math.max(i.r,o.r)-Math.min(i.r,o.r)+Math.max(i.g,o.g)-Math.min(i.g,o.g)+Math.max(i.b,o.b)-Math.min(i.b,o.b);return{brightness:Math.abs(a-s),color:l}};f.isReadable=function(e,t){var n=f.readability(e,t);return n.brightness>125&&n.color>500};f.mostReadable=function(e,t){var n=null;var r=0;var i=false;for(var o=0;o125&&a.color>500;var l=3*(a.brightness/125)+a.color/500;if(s&&!i||s&&i&&l>r||!s&&!i&&l>r){i=s;r=l;n=f(t[o])}}return n};var D=f.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",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:"f0f",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:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",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:"f00",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:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"};var A=f.hexNames=L(D);function L(e){var t={};for(var n in e){if(e.hasOwnProperty(n)){t[e[n]]=n}}return t}function P(e){e=parseFloat(e);if(isNaN(e)||e<0||e>1){e=1}return e}function N(e,t){if(R(e)){e="100%"}var n=F(e);e=u(t,c(0,parseFloat(e)));if(n){e=parseInt(e*t,10)/100}if(h.abs(e-t)<1e-6){return 1}return e%t/parseFloat(t)}function I(e){return u(1,c(0,e))}function j(e){return parseInt(e,16)}function R(e){return typeof e=="string"&&e.indexOf(".")!=-1&&parseFloat(e)===1}function F(e){return typeof e==="string"&&e.indexOf("%")!=-1}function z(e){return e.length==1?"0"+e:""+e}function H(e){if(e<=1){e=e*100+"%"}return e}function W(e){return Math.round(parseFloat(e)*255).toString(16)}function B(e){return j(e)/255}var U=function(){var e="[-\\+]?\\d+%?";var t="[-\\+]?\\d*\\.\\d+%?";var n="(?:"+t+")|(?:"+e+")";var r="[\\s|\\(]+("+n+")[,|\\s]+("+n+")[,|\\s]+("+n+")\\s*\\)?";var i="[\\s|\\(]+("+n+")[,|\\s]+("+n+")[,|\\s]+("+n+")[,|\\s]+("+n+")\\s*\\)?";return{rgb:new RegExp("rgb"+r),rgba:new RegExp("rgba"+i),hsl:new RegExp("hsl"+r),hsla:new RegExp("hsla"+i),hsv:new RegExp("hsv"+r),hsva:new RegExp("hsva"+i),hex3:/^([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex8:/^([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}}();function q(e){e=e.replace(r,"").replace(i,"").toLowerCase();var t=false;if(D[e]){e=D[e];t=true}else if(e=="transparent"){return{r:0,g:0,b:0,a:0,format:"name"}}var n;if(n=U.rgb.exec(e)){return{r:n[1],g:n[2],b:n[3]}}if(n=U.rgba.exec(e)){return{r:n[1],g:n[2],b:n[3],a:n[4]}}if(n=U.hsl.exec(e)){return{h:n[1],s:n[2],l:n[3]}}if(n=U.hsla.exec(e)){return{h:n[1],s:n[2],l:n[3],a:n[4]}}if(n=U.hsv.exec(e)){return{h:n[1],s:n[2],v:n[3]}}if(n=U.hsva.exec(e)){return{h:n[1],s:n[2],v:n[3],a:n[4]}}if(n=U.hex8.exec(e)){return{a:B(n[1]),r:j(n[2]),g:j(n[3]),b:j(n[4]),format:t?"name":"hex8"}}if(n=U.hex6.exec(e)){return{r:j(n[1]),g:j(n[2]),b:j(n[3]),format:t?"name":"hex"}}if(n=U.hex3.exec(e)){return{r:j(n[1]+""+n[1]),g:j(n[2]+""+n[2]),b:j(n[3]+""+n[3]),format:t?"name":"hex"}}return false}window.tinycolor=f}(),Fe(function(){if(Fe.fn.spectrum.load){Fe.fn.spectrum.processNativeColorInputs()}})})?r.apply(t,i):r)||(e.exports=o)}()},,function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var i,o,a,s,l;function u(e,t){var n,r;for(n=0;n10*t.width?10*t.width:t.fontSize,n.guardHeight=t.height+n.fontSize/2+t.textMargin,n}Object.defineProperty(t,"__esModule",{value:!0}),i=function(e,t,n){return t&&u(e.prototype,t),n&&u(e,n),e},o=n(145),a=n(146),s=r(a),function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(c,r(n(62)).default),i(c,[{key:"encode",value:function(){return this.options.flat?this.encodeFlat():this.encodeGuarded()}},{key:"leftText",value:function(e,t){return this.text.substr(e,t)}},{key:"leftEncode",value:function(e,t){return(0,s.default)(e,t)}},{key:"rightText",value:function(e,t){return this.text.substr(e,t)}},{key:"rightEncode",value:function(e,t){return(0,s.default)(e,t)}},{key:"encodeGuarded",value:function(){var e={fontSize:this.fontSize},t={height:this.guardHeight};return[{data:o.SIDE_BIN,options:t},{data:this.leftEncode(),text:this.leftText(),options:e},{data:o.MIDDLE_BIN,options:t},{data:this.rightEncode(),text:this.rightText(),options:e},{data:o.SIDE_BIN,options:t}]}},{key:"encodeFlat",value:function(){return{data:[o.SIDE_BIN,this.leftEncode(),o.MIDDLE_BIN,this.rightEncode(),o.SIDE_BIN].join(""),text:this.text}}}]),l=c,t.default=l},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e){var t,n=0;for(t=1;t<11;t+=2)n+=parseInt(e[t]);for(t=0;t<11;t+=2)n+=3*parseInt(e[t]);return(10-n%10)%10}var o,a,s,l;function u(e,t){var n,r;for(n=0;n10*t.width?n.fontSize=10*t.width:n.fontSize=t.fontSize,n.guardHeight=t.height+n.fontSize/2+t.textMargin,n}Object.defineProperty(t,"__esModule",{value:!0}),o=function(e,t,n){return t&&u(e.prototype,t),n&&u(e,n),e},t.checksum=i,a=n(146),s=r(a),function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(c,r(n(62)).default),o(c,[{key:"valid",value:function(){return-1!==this.data.search(/^[0-9]{12}$/)&&this.data[11]==i(this.data)}},{key:"encode",value:function(){return this.options.flat?this.flatEncoding():this.guardedEncoding()}},{key:"flatEncoding",value:function(){var e="";return e+="101",e+=(0,s.default)(this.data.substr(0,6),"LLLLLL"),e+="01010",e+=(0,s.default)(this.data.substr(6,6),"RRRRRR"),{data:e+="101",text:this.text}}},{key:"guardedEncoding",value:function(){var e=[];return this.displayValue&&e.push({data:"00000000",text:this.text.substr(0,1),options:{textAlign:"left",fontSize:this.fontSize}}),e.push({data:"101"+(0,s.default)(this.data[0],"L"),options:{height:this.guardHeight}}),e.push({data:(0,s.default)(this.data.substr(1,5),"LLLLL"),text:this.text.substr(1,5),options:{fontSize:this.fontSize}}),e.push({data:"01010",options:{height:this.guardHeight}}),e.push({data:(0,s.default)(this.data.substr(6,5),"RRRRR"),text:this.text.substr(6,5),options:{fontSize:this.fontSize}}),e.push({data:(0,s.default)(this.data[11],"R")+"101",options:{height:this.guardHeight}}),this.displayValue&&e.push({data:"00000000",text:this.text.substr(11,1),options:{textAlign:"right",fontSize:this.fontSize}}),e}}]),l=c,t.default=l},function(e,t,n){"use strict";var r,i,o,a,s;function l(e,t){var n,r;for(n=0;nn&&(n=e[t].height);return n},t.getEncodingHeight=l,t.getBarcodePadding=u,t.calculateEncodingAttributes=function(e,t,n){var r,i,o,a,s;for(r=0;r=this.options.distance},_mouseDelayMet:function(){return this.mouseDelayMet},_mouseStart:function(){},_mouseDrag:function(){},_mouseStop:function(){},_mouseCapture:function(){return!0}})})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;i=[n(0),n(52)],void 0===(o="function"==typeof(r=function(o){return o.ui.plugin={add:function(e,t,n){var r,i=o.ui[e].prototype;for(r in n){i.plugins[r]=i.plugins[r]||[];i.plugins[r].push([t,n[r]])}},call:function(e,t,n,r){var i,o=e.plugins[t];if(!o){return}if(!r&&(!e.element[0].parentNode||e.element[0].parentNode.nodeType===11)){return}for(i=0;ii;)a(r,n=t[i++])&&(~l(o,n)||o.push(n));return o}},function(e,t,n){var a=n(37),s=n(19),l=n(105);e.exports=n(36)?Object.defineProperties:function(e,t){s(e);for(var n,r=l(t),i=r.length,o=0;o>>0||(a.test(n)?16:10))}:r},function(e,t,n){var r=n(20).parseFloat,i=n(132).trim;e.exports=1/r(n(212)+"-0")!=-1/0?function(e){var t=i(String(e),3),n=r(t);return 0===n&&"-"==t.charAt(0)?-0:n}:r},function(e,t,n){var r=n(66);e.exports=function(e,t){if("number"!=typeof e&&"Number"!=r(e))throw TypeError(t);return+e}},function(e,t,n){var r=n(24),i=Math.floor;e.exports=function(e){return!r(e)&&isFinite(e)&&i(e)===e}},function(e,t){e.exports=Math.log1p||function(e){return-1e-8<(e=+e)&&e<1e-8?e-e*e/2:Math.log(1+e)}},function(e,t,n){var o=n(19);e.exports=function(t,e,n,r){try{return r?e(o(n)[0],n[1]):e(n)}catch(e){var i=t.return;throw void 0!==i&&o(i.call(t)),e}}},function(e,t,n){var c=n(55),f=n(45),h=n(148),d=n(40);e.exports=function(e,t,n,r,i){c(t);var o=f(e),a=h(o),s=d(o.length),l=i?s-1:0,u=i?-1:1;if(n<2)for(;;){if(l in a){r=a[l],l+=u;break}if(l+=u,i?l<0:s<=l)throw TypeError("Reduce of empty array with no initial value")}for(;i?0<=l:li&&(o=o.slice(0,i)),r?o+a:a+o)}},function(e,t,n){var l=n(105),u=n(56),c=n(149).f;e.exports=function(s){return function(e){for(var t,n=u(e),r=l(n),i=r.length,o=0,a=[];o=l(e),n+String.fromCharCode(t?206:205)+o(e,t))}var s,i,l,u;Object.defineProperty(t,"__esModule",{value:!0}),s=n(144),i=function(e){return e.match(new RegExp("^"+s.A_CHARS+"*"))[0].length},l=function(e){return e.match(new RegExp("^"+s.B_CHARS+"*"))[0].length},u=function(e){return e.match(new RegExp("^"+s.C_CHARS+"*"))[0]},t.default=function(e){var t,n=u(e).length;return(2<=n?s.C_START_CHAR+a(e):((t=i(e)>l(e))?s.A_START_CHAR:s.B_START_CHAR)+o(e,t)).replace(/[\xCD\xCE]([^])[\xCD\xCE]/,function(e,t){return String.fromCharCode(203)+t})}},function(e,t,n){"use strict";var r,i,o,a,s,l;function u(e,t){var n,r;for(n=0;n10*t.width?n.fontSize=10*t.width:n.fontSize=t.fontSize,n.guardHeight=t.height+n.fontSize/2+t.textMargin,n}Object.defineProperty(t,"__esModule",{value:!0}),a=function(e,t,n){return t&&p(e.prototype,t),n&&p(e,n),e},s=n(146),l=r(s),u=r(n(62)),c=n(249),f=["XX00000XXX","XX10000XXX","XX20000XXX","XXX00000XX","XXXX00000X","XXXXX00005","XXXXX00006","XXXXX00007","XXXXX00008","XXXXX00009"],h=[["EEEOOO","OOOEEE"],["EEOEOO","OOEOEE"],["EEOOEO","OOEEOE"],["EEOOOE","OOEEEO"],["EOEEOO","OEOOEE"],["EOOEEO","OEEOOE"],["EOOOEE","OEEEOO"],["EOEOEO","OEOEOE"],["EOEOOE","OEOEEO"],["EOOEOE","OEEOEO"]],function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(g,u.default),a(g,[{key:"valid",value:function(){return this.isValid}},{key:"encode",value:function(){return this.options.flat?this.flatEncoding():this.guardedEncoding()}},{key:"flatEncoding",value:function(){var e="";return e+="101",e+=this.encodeMiddleDigits(),{data:e+="010101",text:this.text}}},{key:"guardedEncoding",value:function(){var e=[];return this.displayValue&&e.push({data:"00000000",text:this.text[0],options:{textAlign:"left",fontSize:this.fontSize}}),e.push({data:"101",options:{height:this.guardHeight}}),e.push({data:this.encodeMiddleDigits(),text:this.text.substring(1,7),options:{fontSize:this.fontSize}}),e.push({data:"010101",options:{height:this.guardHeight}}),this.displayValue&&e.push({data:"00000000",text:this.text[7],options:{textAlign:"right",fontSize:this.fontSize}}),e}},{key:"encodeMiddleDigits",value:function(){var e=this.upcA[0],t=this.upcA[this.upcA.length-1],n=h[parseInt(t)][parseInt(e)];return(0,l.default)(this.middleDigits,n)}}]),d=g,t.default=d},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var i,o;Object.defineProperty(t,"__esModule",{value:!0}),t.ITF14=t.ITF=void 0,i=r(n(250)),o=r(n(342)),t.ITF=i.default,t.ITF14=o.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.START_BIN="1010",t.END_BIN="11101",t.BINARIES=["00110","10001","01001","11000","00101","10100","01100","00011","10010","01010"]},function(e,t,n){"use strict";var r,i,o,a,s,l;function u(e,t){var n,r;for(n=0;n
"))}function n(e){var t="button, .ui-datepicker-prev, .ui-datepicker-next, .ui-datepicker-calendar td a";return e.on("mouseout",t,function(){k(this).removeClass("ui-state-hover");if(this.className.indexOf("ui-datepicker-prev")!==-1){k(this).removeClass("ui-datepicker-prev-hover")}if(this.className.indexOf("ui-datepicker-next")!==-1){k(this).removeClass("ui-datepicker-next-hover")}}).on("mouseover",t,a)}function a(){if(!k.datepicker._isDisabledDatepicker(o.inline?o.dpDiv.parent()[0]:o.input[0])){k(this).parents(".ui-datepicker-calendar").find("a").removeClass("ui-state-hover");k(this).addClass("ui-state-hover");if(this.className.indexOf("ui-datepicker-prev")!==-1){k(this).addClass("ui-datepicker-prev-hover")}if(this.className.indexOf("ui-datepicker-next")!==-1){k(this).addClass("ui-datepicker-next-hover")}}}function f(e,t){k.extend(e,t);for(var n in t){if(t[n]==null){e[n]=t[n]}}return e}return k.extend(k.ui,{datepicker:{version:"1.12.1"}}),k.extend(t.prototype,{markerClassName:"hasDatepicker",maxRows:4,_widgetDatepicker:function(){return this.dpDiv},setDefaults:function(e){return f(this._defaults,e||{}),this},_attachDatepicker:function(e,t){var n,r,i;r="div"===(n=e.nodeName.toLowerCase())||"span"===n,e.id||(this.uuid+=1,e.id="dp"+this.uuid),(i=this._newInst(k(e),r)).settings=k.extend({},t||{}),"input"===n?this._connectDatepicker(e,i):r&&this._inlineDatepicker(e,i)},_newInst:function(e,t){return{id:e[0].id.replace(/([^A-Za-z0-9_\-])/g,"\\\\$1"),input:e,selectedDay:0,selectedMonth:0,selectedYear:0,drawMonth:0,drawYear:0,inline:t,dpDiv:t?n(k("
")):this.dpDiv}},_connectDatepicker:function(e,t){var n=k(e);t.append=k([]),t.trigger=k([]),n.hasClass(this.markerClassName)||(this._attachments(n,t),n.addClass(this.markerClassName).on("keydown",this._doKeyDown).on("keypress",this._doKeyPress).on("keyup",this._doKeyUp),this._autoSize(t),k.data(e,"datepicker",t),t.settings.disabled&&this._disableDatepicker(e))},_attachments:function(e,t){var n,r,i,o=this._get(t,"appendText"),a=this._get(t,"isRTL");t.append&&t.append.remove(),o&&(t.append=k(""+o+""),e[a?"before":"after"](t.append)),e.off("focus",this._showDatepicker),t.trigger&&t.trigger.remove(),"focus"!==(n=this._get(t,"showOn"))&&"both"!==n||e.on("focus",this._showDatepicker),"button"!==n&&"both"!==n||(r=this._get(t,"buttonText"),i=this._get(t,"buttonImage"),t.trigger=k(this._get(t,"buttonImageOnly")?k("").addClass(this._triggerClass).attr({src:i,alt:r,title:r}):k("").addClass(this._triggerClass).html(i?k("").attr({src:i,alt:r,title:r}):r)),e[a?"before":"after"](t.trigger),t.trigger.on("click",function(){return k.datepicker._datepickerShowing&&k.datepicker._lastInput===e[0]?k.datepicker._hideDatepicker():(k.datepicker._datepickerShowing&&k.datepicker._lastInput!==e[0]&&k.datepicker._hideDatepicker(),k.datepicker._showDatepicker(e[0])),!1}))},_autoSize:function(e){if(this._get(e,"autoSize")&&!e.inline){var t,n,r,i,o=new Date(2009,11,20),a=this._get(e,"dateFormat");a.match(/[DM]/)&&(t=function(e){for(i=r=n=0;in&&(n=e[i].length,r=i);return r},o.setMonth(t(this._get(e,a.match(/MM/)?"monthNames":"monthNamesShort"))),o.setDate(t(this._get(e,a.match(/DD/)?"dayNames":"dayNamesShort"))+20-o.getDay())),e.input.attr("size",this._formatDate(e,o).length)}},_inlineDatepicker:function(e,t){var n=k(e);n.hasClass(this.markerClassName)||(n.addClass(this.markerClassName).append(t.dpDiv),k.data(e,"datepicker",t),this._setDate(t,this._getDefaultDate(t),!0),this._updateDatepicker(t),this._updateAlternate(t),t.settings.disabled&&this._disableDatepicker(e),t.dpDiv.css("display","block"))},_dialogDatepicker:function(e,t,n,r,i){var o,a,s,l,u,c=this._dialogInst;return c||(this.uuid+=1,o="dp"+this.uuid,this._dialogInput=k(""),this._dialogInput.on("keydown",this._doKeyDown),k("body").append(this._dialogInput),(c=this._dialogInst=this._newInst(this._dialogInput,!1)).settings={},k.data(this._dialogInput[0],"datepicker",c)),f(c.settings,r||{}),t=t&&t.constructor===Date?this._formatDate(c,t):t,this._dialogInput.val(t),this._pos=i?i.length?i:[i.pageX,i.pageY]:null,this._pos||(a=document.documentElement.clientWidth,s=document.documentElement.clientHeight,l=document.documentElement.scrollLeft||document.body.scrollLeft,u=document.documentElement.scrollTop||document.body.scrollTop,this._pos=[a/2-100+l,s/2-150+u]),this._dialogInput.css("left",this._pos[0]+20+"px").css("top",this._pos[1]+"px"),c.settings.onSelect=n,this._inDialog=!0,this.dpDiv.addClass(this._dialogClass),this._showDatepicker(this._dialogInput[0]),k.blockUI&&k.blockUI(this.dpDiv),k.data(this._dialogInput[0],"datepicker",c),this},_destroyDatepicker:function(e){var t,n=k(e),r=k.data(e,"datepicker");n.hasClass(this.markerClassName)&&(t=e.nodeName.toLowerCase(),k.removeData(e,"datepicker"),"input"===t?(r.append.remove(),r.trigger.remove(),n.removeClass(this.markerClassName).off("focus",this._showDatepicker).off("keydown",this._doKeyDown).off("keypress",this._doKeyPress).off("keyup",this._doKeyUp)):"div"!==t&&"span"!==t||n.removeClass(this.markerClassName).empty(),o===r&&(o=null))},_enableDatepicker:function(t){var e,n,r=k(t),i=k.data(t,"datepicker");r.hasClass(this.markerClassName)&&("input"===(e=t.nodeName.toLowerCase())?(t.disabled=!1,i.trigger.filter("button").each(function(){this.disabled=!1}).end().filter("img").css({opacity:"1.0",cursor:""})):"div"!==e&&"span"!==e||((n=r.children("."+this._inlineClass)).children().removeClass("ui-state-disabled"),n.find("select.ui-datepicker-month, select.ui-datepicker-year").prop("disabled",!1)),this._disabledInputs=k.map(this._disabledInputs,function(e){return e===t?null:e}))},_disableDatepicker:function(t){var e,n,r=k(t),i=k.data(t,"datepicker");r.hasClass(this.markerClassName)&&("input"===(e=t.nodeName.toLowerCase())?(t.disabled=!0,i.trigger.filter("button").each(function(){this.disabled=!0}).end().filter("img").css({opacity:"0.5",cursor:"default"})):"div"!==e&&"span"!==e||((n=r.children("."+this._inlineClass)).children().addClass("ui-state-disabled"),n.find("select.ui-datepicker-month, select.ui-datepicker-year").prop("disabled",!0)),this._disabledInputs=k.map(this._disabledInputs,function(e){return e===t?null:e}),this._disabledInputs[this._disabledInputs.length]=t)},_isDisabledDatepicker:function(e){if(!e)return!1;for(var t=0;ts&&rl&&it;)--Z<0&&(Z=11,ee--);for(e.drawMonth=Z,e.drawYear=ee,n=this._get(e,"prevText"),n=G?this.formatDate(n,this._daylightSavingAdjust(new Date(ee,Z-K,1)),this._getFormatConfig(e)):n,r=this._canAdjustMonth(e,-1,ee,Z)?""+n+"":q?"":""+n+"",i=this._get(e,"nextText"),i=G?this.formatDate(i,this._daylightSavingAdjust(new Date(ee,Z+K,1)),this._getFormatConfig(e)):i,o=this._canAdjustMonth(e,1,ee,Z)?""+i+"":q?"":""+i+"",a=this._get(e,"currentText"),s=this._get(e,"gotoCurrent")&&e.currentDay?X:W,a=G?this.formatDate(a,s,this._getFormatConfig(e)):a,l=e.inline?"":"",u=U?"
"+(B?l:"")+(this._isInRange(e,s)?"":"")+(B?"":l)+"
":"",c=parseInt(this._get(e,"firstDay"),10),c=isNaN(c)?0:c,f=this._get(e,"showWeek"),h=this._get(e,"dayNames"),d=this._get(e,"dayNamesMin"),p=this._get(e,"monthNames"),g=this._get(e,"monthNamesShort"),v=this._get(e,"beforeShowDay"),m=this._get(e,"showOtherMonths"),y=this._get(e,"selectOtherMonths"),b=this._getDefaultDate(e),w="",_=0;_"+(/all|left/.test(T)&&0===_?B?o:r:"")+(/all|right/.test(T)&&0===_?B?r:o:"")+this._generateMonthYearHeader(e,Z,ee,J,Q,0<_||0",E=f?"":"",x=0;x<7;x++)E+="";for(O+=E+"",D=this._getDaysInMonth(ee,Z),ee===e.selectedYear&&Z===e.selectedMonth&&(e.selectedDay=Math.min(e.selectedDay,D)),A=(this._getFirstDayOfMonth(ee,Z)-c+7)%7,L=Math.ceil((A+D)/7),P=$&&this.maxRows>L?this.maxRows:L,this.maxRows=P,N=this._daylightSavingAdjust(new Date(ee,Z,1-A)),I=0;I",j=f?"":"",x=0;x<7;x++)R=v?v.apply(e.input?e.input[0]:null,[N]):[!0,""],z=(F=N.getMonth()!==Z)&&!y||!R[0]||J&&N"+(F&&!m?" ":z?""+N.getDate()+"":""+N.getDate()+"")+"",N.setDate(N.getDate()+1),N=this._daylightSavingAdjust(N);O+=j+""}11<++Z&&(Z=0,ee++),k+=O+="
"+this._get(e,"weekHeader")+""+d[M]+"
"+this._get(e,"calculateWeek")(N)+"
"+($?""+(0":""):"")}w+=k}return w+=u,e._keyEvent=!1,w},_generateMonthYearHeader:function(e,t,n,r,i,o,a,s){var l,u,c,f,h,d,p,g,v=this._get(e,"changeMonth"),m=this._get(e,"changeYear"),y=this._get(e,"showMonthAfterYear"),b="
",w="";if(o||!v)w+=""+a[t]+"";else{for(l=r&&r.getFullYear()===n,u=i&&i.getFullYear()===n,w+=""}if(y||(b+=w+(!o&&v&&m?"":" ")),!e.yearshtml)if(e.yearshtml="",o||!m)b+=""+n+"";else{for(f=this._get(e,"yearRange").split(":"),h=(new Date).getFullYear(),p=(d=function(e){var t=e.match(/c[+\-].*/)?n+parseInt(e.substring(1),10):e.match(/[+\-].*/)?h+parseInt(e,10):parseInt(e,10);return isNaN(t)?h:t})(f[0]),g=Math.max(p,d(f[1]||"")),p=r?Math.max(p,r.getFullYear()):p,g=i?Math.min(g,i.getFullYear()):g,e.yearshtml+="",b+=e.yearshtml,e.yearshtml=null}return b+=this._get(e,"yearSuffix"),y&&(b+=(!o&&v&&m?"":" ")+w),b+="
"},_adjustInstDate:function(e,t,n){var r=e.selectedYear+("Y"===n?t:0),i=e.selectedMonth+("M"===n?t:0),o=Math.min(e.selectedDay,this._getDaysInMonth(r,i))+("D"===n?t:0),a=this._restrictMinMax(e,this._daylightSavingAdjust(new Date(r,i,o)));e.selectedDay=a.getDate(),e.drawMonth=e.selectedMonth=a.getMonth(),e.drawYear=e.selectedYear=a.getFullYear(),"M"!==n&&"Y"!==n||this._notifyChange(e)},_restrictMinMax:function(e,t){var n=this._getMinMaxDate(e,"min"),r=this._getMinMaxDate(e,"max"),i=n&&t=i.getTime())&&(!o||t.getTime()<=o.getTime())&&(!a||t.getFullYear()>=a)&&(!s||t.getFullYear()<=s)},_getFormatConfig:function(e){var t=this._get(e,"shortYearCutoff");return{shortYearCutoff:t="string"!=typeof t?t:(new Date).getFullYear()%100+parseInt(t,10),dayNamesShort:this._get(e,"dayNamesShort"),dayNames:this._get(e,"dayNames"),monthNamesShort:this._get(e,"monthNamesShort"),monthNames:this._get(e,"monthNames")}},_formatDate:function(e,t,n,r){t||(e.currentDay=e.selectedDay,e.currentMonth=e.selectedMonth,e.currentYear=e.selectedYear);var i=t?"object"==typeof t?t:this._daylightSavingAdjust(new Date(r,n,t)):this._daylightSavingAdjust(new Date(e.currentYear,e.currentMonth,e.currentDay));return this.formatDate(this._get(e,"dateFormat"),i,this._getFormatConfig(e))}}),k.fn.datepicker=function(e){if(!this.length)return this;k.datepicker.initialized||(k(document).on("mousedown",k.datepicker._checkExternalClick),k.datepicker.initialized=!0),0===k("#"+k.datepicker._mainDivId).length&&k("body").append(k.datepicker.dpDiv);var t=Array.prototype.slice.call(arguments,1);return"string"!=typeof e||"isDisabled"!==e&&"getDate"!==e&&"widget"!==e?"option"===e&&2===arguments.length&&"string"==typeof arguments[1]?k.datepicker["_"+e+"Datepicker"].apply(k.datepicker,[this[0]].concat(t)):this.each(function(){"string"==typeof e?k.datepicker["_"+e+"Datepicker"].apply(k.datepicker,[this].concat(t)):k.datepicker._attachDatepicker(this,e)}):k.datepicker["_"+e+"Datepicker"].apply(k.datepicker,[this[0]].concat(t))},k.datepicker=new t,k.datepicker.initialized=!1,k.datepicker.uuid=(new Date).getTime(),k.datepicker.version="1.12.1",k.datepicker})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;i=[n(0),n(52)],void 0===(o="function"==typeof(r=function(e){return e.ui.keyCode={BACKSPACE:8,COMMA:188,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,LEFT:37,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SPACE:32,TAB:9,UP:38}})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){},function(e,t,n){},,function(e,t,n){},function(e,t,n){},,function(e,t,n){!function(D){"use strict";function A(e,t,n,r,i,o){this.indented=e;this.column=t;this.type=n;this.info=r;this.align=i;this.prev=o}function L(e,t,n,r){var i=e.indented;if(e.context&&e.context.type=="statement"&&n!="statement")i=e.context.indented;return e.context=new A(i,t,n,r,null,e.context)}function P(e){var t=e.context.type;if(t==")"||t=="]"||t=="}")e.indented=e.context.indented;return e.context=e.context.prev}function N(e,t,n){if(t.prevToken=="variable"||t.prevToken=="type")return true;if(/\S(?:[^- ]>|[*\]])\s*$|\*$/.test(e.string.slice(0,n)))return true;if(t.typeAtEndOfLine&&e.column()==e.indentation())return true}function I(e){for(;;){if(!e||e.type=="top")return true;if(e.type=="}"&&e.prev.info!="namespace")return false;e=e.prev}}function e(e){var t={},n=e.split(" ");for(var r=0;r!?|\/]/,k=s.isIdentifierChar||/[\w\$_\xa1-\uffff]/;var S,C;function T(e,t){var n=e.next();if(g[n]){var r=g[n](e,t);if(r!==false)return r}if(n=='"'||n=="'"){t.tokenize=O(n);return t.tokenize(e,t)}if(b.test(n)){S=n;return null}if(w.test(n)){e.backUp(1);if(e.match(x))return"number";e.next()}if(n=="/"){if(e.eat("*")){t.tokenize=E;return E(e,t)}if(e.eat("/")){e.skipToEnd();return"comment"}}if(_.test(n)){while(!e.match(/^\/[\/*]/,false)&&e.eat(_)){}return"operator"}e.eatWhile(k);if(y)while(e.match(y))e.eatWhile(k);var i=e.current();if(j(o,i)){if(j(h,i))S="newstatement";if(j(d,i))C=true;return"keyword"}if(j(a,i))return"type";if(j(f,i)){if(j(h,i))S="newstatement";return"builtin"}if(j(p,i))return"atom";return"variable"}function O(o){return function(e,t){var n=false,r,i=false;while((r=e.next())!=null){if(r==o&&!n){i=true;break}n=!n&&r=="\\"}if(i||!(n||v))t.tokenize=null;return"string"}}function E(e,t){var n=false,r;while(r=e.next()){if(r=="/"&&n){t.tokenize=null;break}n=r=="*"}return"comment"}function M(e,t){if(s.typeFirstDefinitions&&e.eol()&&I(t.context))t.typeAtEndOfLine=N(e,t,e.pos)}return{startState:function(e){return{tokenize:null,context:new A((e||0)-l,0,"top",null,false),indented:0,startOfLine:true,prevToken:null}},token:function(e,t){var n=t.context;if(e.sol()){if(n.align==null)n.align=false;t.indented=e.indentation();t.startOfLine=true}if(e.eatSpace()){M(e,t);return null}S=C=null;var r=(t.tokenize||T)(e,t);if(r=="comment"||r=="meta")return r;if(n.align==null)n.align=true;if(S==";"||S==":"||S==","&&e.match(/^\s*(?:\/\/.*)?$/,false))while(t.context.type=="statement")P(t);else if(S=="{")L(t,e.column(),"}");else if(S=="[")L(t,e.column(),"]");else if(S=="(")L(t,e.column(),")");else if(S=="}"){while(n.type=="statement")n=P(t);if(n.type=="}")n=P(t);while(n.type=="statement")n=P(t)}else if(S==n.type)P(t);else if(m&&((n.type=="}"||n.type=="top")&&S!=";"||n.type=="statement"&&S=="newstatement")){L(t,e.column(),"statement",e.current())}if(r=="variable"&&(t.prevToken=="def"||s.typeFirstDefinitions&&N(e,t,e.start)&&I(t.context)&&e.match(/^\s*\(/,false)))r="def";if(g.token){var i=g.token(e,t,r);if(i!==undefined)r=i}if(r=="def"&&s.styleDefs===false)r="variable";t.startOfLine=false;t.prevToken=C?"def":r||S;M(e,t);return r},indent:function(e,t){if(e.tokenize!=T&&e.tokenize!=null||e.typeAtEndOfLine)return D.Pass;var n=e.context,r=t&&t.charAt(0);if(n.type=="statement"&&r=="}")n=n.prev;if(s.dontIndentStatements)while(n.type=="statement"&&s.dontIndentStatements.test(n.info))n=n.prev;if(g.indent){var i=g.indent(e,n,t);if(typeof i=="number")return i}var o=r==n.type;var a=n.prev&&n.prev.info=="switch";if(s.allmanIndentation&&/[{(]/.test(r)){while(n.type!="top"&&n.type!="}")n=n.prev;return n.indented}if(n.type=="statement")return n.indented+(r=="{"?0:u);if(n.align&&(!c||n.type!=")"))return n.column+(o?0:1);if(n.type==")"&&!o)return n.indented+u;return n.indented+(o?0:l)+(!o&&a&&!/^(?:case|default)\b/.test(t)?l:0)},electricInput:t?/^\s*(?:case .*?:|default:|\{\}?|\})$/:/^\s*[{}]$/,blockCommentStart:"/*",blockCommentEnd:"*/",blockCommentContinue:" * ",lineComment:"//",fold:"brace"}});var t="auto if break case register continue return default do sizeof "+"static else struct switch extern typedef union for goto while enum const volatile",n="int long char short double float unsigned signed void size_t ptrdiff_t";function i(e,t){if(!t.startOfLine)return false;for(var n,r=null;n=e.peek();){if(n=="\\"&&e.match(/^.$/)){r=i;break}else if(n=="/"&&e.match(/^\/[\/\*]/,false)){break}e.next()}t.tokenize=r;return"meta"}function r(e,t){if(t.prevToken=="type")return"type";return false}function o(e){e.eatWhile(/[\w\.']/);return"number"}function a(e,t){e.backUp(1);if(e.match(/(R|u8R|uR|UR|LR)/)){var n=e.match(/"([^\s\\()]{0,16})\(/);if(!n){return false}t.cpp11RawStringDelim=n[1];t.tokenize=u;return u(e,t)}if(e.match(/(u8|u|U|L)/)){if(e.match(/["']/,false)){return"string"}return false}e.next();return false}function s(e){var t=/(\w+)::~?(\w+)$/.exec(e);return t&&t[1]==t[2]}function l(e,t){var n;while((n=e.next())!=null){if(n=='"'&&!e.eat('"')){t.tokenize=null;break}}return"string"}function u(e,t){var n=t.cpp11RawStringDelim.replace(/[^\w\s]/g,"\\$&");var r=e.match(new RegExp(".*?\\)"+n+'"'));if(r)t.tokenize=null;else e.skipToEnd();return"string"}function c(e,t){if(typeof e=="string")e=[e];var n=[];function r(e){if(e)for(var t in e)if(e.hasOwnProperty(t))n.push(t)}r(t.keywords);r(t.types);r(t.builtin);r(t.atoms);if(n.length){t.helperType=e[0];D.registerHelper("hintWords",e[0],n)}for(var i=0;i!?|\/#:@]/,hooks:{"@":function(e){e.eatWhile(/[\w\$_]/);return"meta"},'"':function(e,t){if(!e.match('""'))return false;t.tokenize=f;return t.tokenize(e,t)},"'":function(e){e.eatWhile(/[\w\$_\xa1-\uffff]/);return"atom"},"=":function(e,t){var n=t.context;if(n.type=="}"&&n.align&&e.eat(">")){t.context=new A(n.indented,n.column,n.type,n.info,null,n.prev);return"operator"}else{return false}},"/":function(e,t){if(!e.eat("*"))return false;t.tokenize=h(1);return t.tokenize(e,t)}},modeProps:{closeBrackets:{triples:'"'}}}),c("text/x-kotlin",{name:"clike",keywords:e("package as typealias class interface this super val "+"var fun for is in This throw return "+"break continue object if else while do try when !in !is as? "+"file import where by get set abstract enum open inner override private public internal "+"protected catch finally out final vararg reified dynamic companion constructor init "+"sealed field property receiver param sparam lateinit data inline noinline tailrec "+"external annotation crossinline const operator infix suspend actual expect"),types:e("Boolean Byte Character CharSequence Class ClassLoader Cloneable Comparable "+"Compiler Double Exception Float Integer Long Math Number Object Package Pair Process "+"Runtime Runnable SecurityManager Short StackTraceElement StrictMath String "+"StringBuffer System Thread ThreadGroup ThreadLocal Throwable Triple Void"),intendSwitch:false,indentStatements:false,multiLineStrings:true,number:/^(?:0x[a-f\d_]+|0b[01_]+|(?:[\d_]+(\.\d+)?|\.\d+)(?:e[-+]?[\d_]+)?)(u|ll?|l|f)?/i,blockKeywords:e("catch class do else finally for if where try while enum"),defKeywords:e("class val var object interface fun"),atoms:e("true false null this"),hooks:{'"':function(e,t){t.tokenize=d(e.match('""'));return t.tokenize(e,t)}},modeProps:{closeBrackets:{triples:'"'}}}),c(["x-shader/x-vertex","x-shader/x-fragment"],{name:"clike",keywords:e("sampler1D sampler2D sampler3D samplerCube "+"sampler1DShadow sampler2DShadow "+"const attribute uniform varying "+"break continue discard return "+"for while do if else struct "+"in out inout"),types:e("float int bool void "+"vec2 vec3 vec4 ivec2 ivec3 ivec4 bvec2 bvec3 bvec4 "+"mat2 mat3 mat4"),blockKeywords:e("for while do if else struct"),builtin:e("radians degrees sin cos tan asin acos atan "+"pow exp log exp2 sqrt inversesqrt "+"abs sign floor ceil fract mod min max clamp mix step smoothstep "+"length distance dot cross normalize ftransform faceforward "+"reflect refract matrixCompMult "+"lessThan lessThanEqual greaterThan greaterThanEqual "+"equal notEqual any all not "+"texture1D texture1DProj texture1DLod texture1DProjLod "+"texture2D texture2DProj texture2DLod texture2DProjLod "+"texture3D texture3DProj texture3DLod texture3DProjLod "+"textureCube textureCubeLod "+"shadow1D shadow2D shadow1DProj shadow2DProj "+"shadow1DLod shadow2DLod shadow1DProjLod shadow2DProjLod "+"dFdx dFdy fwidth "+"noise1 noise2 noise3 noise4"),atoms:e("true false "+"gl_FragColor gl_SecondaryColor gl_Normal gl_Vertex "+"gl_MultiTexCoord0 gl_MultiTexCoord1 gl_MultiTexCoord2 gl_MultiTexCoord3 "+"gl_MultiTexCoord4 gl_MultiTexCoord5 gl_MultiTexCoord6 gl_MultiTexCoord7 "+"gl_FogCoord gl_PointCoord "+"gl_Position gl_PointSize gl_ClipVertex "+"gl_FrontColor gl_BackColor gl_FrontSecondaryColor gl_BackSecondaryColor "+"gl_TexCoord gl_FogFragCoord "+"gl_FragCoord gl_FrontFacing "+"gl_FragData gl_FragDepth "+"gl_ModelViewMatrix gl_ProjectionMatrix gl_ModelViewProjectionMatrix "+"gl_TextureMatrix gl_NormalMatrix gl_ModelViewMatrixInverse "+"gl_ProjectionMatrixInverse gl_ModelViewProjectionMatrixInverse "+"gl_TexureMatrixTranspose gl_ModelViewMatrixInverseTranspose "+"gl_ProjectionMatrixInverseTranspose "+"gl_ModelViewProjectionMatrixInverseTranspose "+"gl_TextureMatrixInverseTranspose "+"gl_NormalScale gl_DepthRange gl_ClipPlane "+"gl_Point gl_FrontMaterial gl_BackMaterial gl_LightSource gl_LightModel "+"gl_FrontLightModelProduct gl_BackLightModelProduct "+"gl_TextureColor gl_EyePlaneS gl_EyePlaneT gl_EyePlaneR gl_EyePlaneQ "+"gl_FogParameters "+"gl_MaxLights gl_MaxClipPlanes gl_MaxTextureUnits gl_MaxTextureCoords "+"gl_MaxVertexAttribs gl_MaxVertexUniformComponents gl_MaxVaryingFloats "+"gl_MaxVertexTextureImageUnits gl_MaxTextureImageUnits "+"gl_MaxFragmentUniformComponents gl_MaxCombineTextureImageUnits "+"gl_MaxDrawBuffers"),indentSwitch:false,hooks:{"#":i},modeProps:{fold:["brace","include"]}}),c("text/x-nesc",{name:"clike",keywords:e(t+"as atomic async call command component components configuration event generic "+"implementation includes interface module new norace nx_struct nx_union post provides "+"signal task uses abstract extends"),types:e(n),blockKeywords:e("case do else for if switch while struct"),atoms:e("null true false"),hooks:{"#":i},modeProps:{fold:["brace","include"]}}),c("text/x-objectivec",{name:"clike",keywords:e(t+"inline restrict _Bool _Complex _Imaginary BOOL Class bycopy byref id IMP in "+"inout nil oneway out Protocol SEL self super atomic nonatomic retain copy readwrite readonly"),types:e(n),atoms:e("YES NO NULL NILL ON OFF true false"),hooks:{"@":function(e){e.eatWhile(/[\w\$]/);return"keyword"},"#":i,indent:function(e,t,n){if(t.type=="statement"&&/^@\w/.test(n))return t.indented}},modeProps:{fold:"brace"}}),c("text/x-squirrel",{name:"clike",keywords:e("base break clone continue const default delete enum extends function in class"+" foreach local resume return this throw typeof yield constructor instanceof static"),types:e(n),blockKeywords:e("case catch class else for foreach if switch try while"),defKeywords:e("function local class"),typeFirstDefinitions:true,atoms:e("true false null"),hooks:{"#":i},modeProps:{fold:["brace","include"]}});var p=null;function g(o){return function(e,t){var n=false,r,i=false;while(!e.eol()){if(!n&&e.match('"')&&(o=="single"||e.match('""'))){i=true;break}if(!n&&e.match("``")){p=g(o);i=true;break}r=e.next();n=o=="single"&&!n&&r=="\\"}if(i)t.tokenize=null;return"string"}}c("text/x-ceylon",{name:"clike",keywords:e("abstracts alias assembly assert assign break case catch class continue dynamic else"+" exists extends finally for function given if import in interface is let module new"+" nonempty object of out outer package return satisfies super switch then this throw"+" try value void while"),types:function(e){var t=e.charAt(0);return t===t.toUpperCase()&&t!==t.toLowerCase()},blockKeywords:e("case catch class dynamic else finally for function if interface module new object switch try while"),defKeywords:e("class dynamic function interface module object package value"),builtin:e("abstract actual aliased annotation by default deprecated doc final formal late license"+" native optional sealed see serializable shared suppressWarnings tagged throws variable"),isPunctuationChar:/[\[\]{}\(\),;\:\.`]/,isOperatorChar:/[+\-*&%=<>!?|^~:\/]/,numberStart:/[\d#$]/,number:/^(?:#[\da-fA-F_]+|\$[01_]+|[\d_]+[kMGTPmunpf]?|[\d_]+\.[\d_]+(?:[eE][-+]?\d+|[kMGTPmunpf]|)|)/i,multiLineStrings:true,typeFirstDefinitions:true,atoms:e("true false null larger smaller equal empty finished"),indentSwitch:false,styleDefs:false,hooks:{"@":function(e){e.eatWhile(/[\w\$_]/);return"meta"},'"':function(e,t){t.tokenize=g(e.match('""')?"triple":"single");return t.tokenize(e,t)},"`":function(e,t){if(!p||!e.match("`"))return false;t.tokenize=p;p=null;return t.tokenize(e,t)},"'":function(e){e.eatWhile(/[\w\$_\xa1-\uffff]/);return"atom"},token:function(e,t,n){if((n=="variable"||n=="type")&&t.prevToken=="."){return"variable-2"}}},modeProps:{fold:["brace","import"],closeBrackets:{triples:'"'}}})}(n(58))},function(e,t,n){!function(e){"use strict";e.defineMode("vbscript",function(r,o){var a="error";function e(e){return new RegExp("^(("+e.join(")|(")+"))\\b","i")}var s=new RegExp("^[\\+\\-\\*/&\\\\\\^<>=]");var l=new RegExp("^((<>)|(<=)|(>=))");var u=new RegExp("^[\\.,]");var c=new RegExp("^[\\(\\)]");var f=new RegExp("^[A-Za-z][_A-Za-z0-9]*");var t=["class","sub","select","while","if","function","property","with","for"];var n=["else","elseif","case"];var i=["next","loop","wend"];var h=e(["and","or","not","xor","is","mod","eqv","imp"]);var d=["dim","redim","then","until","randomize","byval","byref","new","property","exit","in","const","private","public","get","set","let","stop","on error resume next","on error goto 0","option explicit","call","me"];var p=["true","false","nothing","empty","null"];var g=["abs","array","asc","atn","cbool","cbyte","ccur","cdate","cdbl","chr","cint","clng","cos","csng","cstr","date","dateadd","datediff","datepart","dateserial","datevalue","day","escape","eval","execute","exp","filter","formatcurrency","formatdatetime","formatnumber","formatpercent","getlocale","getobject","getref","hex","hour","inputbox","instr","instrrev","int","fix","isarray","isdate","isempty","isnull","isnumeric","isobject","join","lbound","lcase","left","len","loadpicture","log","ltrim","rtrim","trim","maths","mid","minute","month","monthname","msgbox","now","oct","replace","rgb","right","rnd","round","scriptengine","scriptenginebuildversion","scriptenginemajorversion","scriptengineminorversion","second","setlocale","sgn","sin","space","split","sqr","strcomp","string","strreverse","tan","time","timer","timeserial","timevalue","typename","ubound","ucase","unescape","vartype","weekday","weekdayname","year"];var v=["vbBlack","vbRed","vbGreen","vbYellow","vbBlue","vbMagenta","vbCyan","vbWhite","vbBinaryCompare","vbTextCompare","vbSunday","vbMonday","vbTuesday","vbWednesday","vbThursday","vbFriday","vbSaturday","vbUseSystemDayOfWeek","vbFirstJan1","vbFirstFourDays","vbFirstFullWeek","vbGeneralDate","vbLongDate","vbShortDate","vbLongTime","vbShortTime","vbObjectError","vbOKOnly","vbOKCancel","vbAbortRetryIgnore","vbYesNoCancel","vbYesNo","vbRetryCancel","vbCritical","vbQuestion","vbExclamation","vbInformation","vbDefaultButton1","vbDefaultButton2","vbDefaultButton3","vbDefaultButton4","vbApplicationModal","vbSystemModal","vbOK","vbCancel","vbAbort","vbRetry","vbIgnore","vbYes","vbNo","vbCr","VbCrLf","vbFormFeed","vbLf","vbNewLine","vbNullChar","vbNullString","vbTab","vbVerticalTab","vbUseDefault","vbTrue","vbFalse","vbEmpty","vbNull","vbInteger","vbLong","vbSingle","vbDouble","vbCurrency","vbDate","vbString","vbObject","vbError","vbBoolean","vbVariant","vbDataObject","vbDecimal","vbByte","vbArray"];var m=["WScript","err","debug","RegExp"];var y=["description","firstindex","global","helpcontext","helpfile","ignorecase","length","number","pattern","source","value","count"];var b=["clear","execute","raise","replace","test","write","writeline","close","open","state","eof","update","addnew","end","createobject","quit"];var w=["server","response","request","session","application"];var x=["buffer","cachecontrol","charset","contenttype","expires","expiresabsolute","isclientconnected","pics","status","clientcertificate","cookies","form","querystring","servervariables","totalbytes","contents","staticobjects","codepage","lcid","sessionid","timeout","scripttimeout"];var _=["addheader","appendtolog","binarywrite","end","flush","redirect","binaryread","remove","removeall","lock","unlock","abandon","getlasterror","htmlencode","mappath","transfer","urlencode"];var k=b.concat(y);m=m.concat(v);if(r.isASP){m=m.concat(w);k=k.concat(_,x)}var S=e(d);var C=e(p);var T=e(g);var O=e(m);var E=e(k);var M='"';var D=e(t);var A=e(n);var L=e(i);var P=e(["end"]);var N=e(["do"]);var I=e(["on error resume next","exit"]);var j=e(["rem"]);function R(e,t){t.currentIndent++}function F(e,t){t.currentIndent--}function z(e,t){if(e.eatSpace()){return"space"}var n=e.peek();if(n==="'"){e.skipToEnd();return"comment"}if(e.match(j)){e.skipToEnd();return"comment"}if(e.match(/^((&H)|(&O))?[0-9\.]/i,false)&&!e.match(/^((&H)|(&O))?[0-9\.]+[a-z_]/i,false)){var r=false;if(e.match(/^\d*\.\d+/i)){r=true}else if(e.match(/^\d+\.\d*/)){r=true}else if(e.match(/^\.\d+/)){r=true}if(r){e.eat(/J/i);return"number"}var i=false;if(e.match(/^&H[0-9a-f]+/i)){i=true}else if(e.match(/^&O[0-7]+/i)){i=true}else if(e.match(/^[1-9]\d*F?/)){e.eat(/J/i);i=true}else if(e.match(/^0(?![\dx])/i)){i=true}if(i){e.eat(/L/i);return"number"}}if(e.match(M)){t.tokenize=H(e.current());return t.tokenize(e,t)}if(e.match(l)||e.match(s)||e.match(h)){return"operator"}if(e.match(u)){return null}if(e.match(c)){return"bracket"}if(e.match(I)){t.doInCurrentLine=true;return"keyword"}if(e.match(N)){R(e,t);t.doInCurrentLine=true;return"keyword"}if(e.match(D)){if(!t.doInCurrentLine)R(e,t);else t.doInCurrentLine=false;return"keyword"}if(e.match(A)){return"keyword"}if(e.match(P)){F(e,t);F(e,t);return"keyword"}if(e.match(L)){if(!t.doInCurrentLine)F(e,t);else t.doInCurrentLine=false;return"keyword"}if(e.match(S)){return"keyword"}if(e.match(C)){return"atom"}if(e.match(E)){return"variable-2"}if(e.match(T)){return"builtin"}if(e.match(O)){return"variable-2"}if(e.match(f)){return"variable"}e.next();return a}function H(n){var r=n.length==1;var i="string";return function(e,t){while(!e.eol()){e.eatWhile(/[^'"]/);if(e.match(n)){t.tokenize=z;return i}else{e.eat(/['"]/)}}if(r){if(o.singleLineStringErrors){return a}else{t.tokenize=z}}return i}}function W(e,t){var n=t.tokenize(e,t);var r=e.current();if(r==="."){n=t.tokenize(e,t);r=e.current();if(n&&(n.substr(0,8)==="variable"||n==="builtin"||n==="keyword")){if(n==="builtin"||n==="keyword")n="variable";if(k.indexOf(r.substr(1))>-1)n="variable-2";return n}else{return a}}return n}var B={electricChars:"dDpPtTfFeE ",startState:function(){return{tokenize:z,lastToken:null,currentIndent:0,nextLineIndent:0,doInCurrentLine:false,ignoreKeyword:false}},token:function(e,t){if(e.sol()){t.currentIndent+=t.nextLineIndent;t.nextLineIndent=0;t.doInCurrentLine=0}var n=W(e,t);t.lastToken={style:n,content:e.current()};if(n==="space")n=null;return n},indent:function(e,t){var n=t.replace(/^\s+|\s+$/g,"");if(n.match(L)||n.match(P)||n.match(A))return r.indentUnit*(e.currentIndent-1);if(e.currentIndent<0)return 0;return e.currentIndent*r.indentUnit}};return B}),e.defineMIME("text/vbscript","vbscript")}(n(58))},function(e,t,n){!function(e){"use strict";e.defineMode("pascal",function(){function e(e){var t={},n=e.split(" ");for(var r=0;r!?|\/]/;function r(e,t){var n=e.next();if(n=="#"&&t.startOfLine){e.skipToEnd();return"meta"}if(n=='"'||n=="'"){t.tokenize=s(n);return t.tokenize(e,t)}if(n=="("&&e.eat("*")){t.tokenize=l;return l(e,t)}if(/[\[\]{}\(\),;\:\.]/.test(n)){return null}if(/\d/.test(n)){e.eatWhile(/[\w\.]/);return"number"}if(n=="/"){if(e.eat("/")){e.skipToEnd();return"comment"}}if(a.test(n)){e.eatWhile(a);return"operator"}e.eatWhile(/[\w\$_]/);var r=e.current();if(i.propertyIsEnumerable(r))return"keyword";if(o.propertyIsEnumerable(r))return"atom";return"variable"}function s(o){return function(e,t){var n=false,r,i=false;while((r=e.next())!=null){if(r==o&&!n){i=true;break}n=!n&&r=="\\"}if(i||!n)t.tokenize=null;return"string"}}function l(e,t){var n=false,r;while(r=e.next()){if(r==")"&&n){t.tokenize=null;break}n=r=="*"}return"comment"}return{startState:function(){return{tokenize:null}},token:function(e,t){if(e.eatSpace())return null;var n=(t.tokenize||r)(e,t);if(n=="comment"||n=="meta")return n;return n},electricChars:"{}"}}),e.defineMIME("text/x-pascal","pascal")}(n(58))},function(e,t,n){function c(e,t,n){var r,i,o,a,s=e.getLineHandle(t.line),l=t.ch-1,u=n&&n.afterCursor;return null==u&&(u=/(^| )cm-fat-cursor($| )/.test(e.getWrapperElement().className)),(r=!u&&0<=l&&v[s.text.charAt(l)]||v[s.text.charAt(++l)])?(i=">"==r.charAt(1)?1:-1,n&&n.strict&&0c)))for(o==t.line&&(s=t.ch-(n<0?1:0));s!=l;s+=n)if(u=a.charAt(s),d.test(u)&&(void 0===r||e.getTokenTypeAt(g(o,s+1))==r))if(">"==v[u].charAt(1)==0",")":"(<","[":"]>","]":"[<","{":"}>","}":"{<"},o.defineOption("matchBrackets",!1,function(e,t,n){n&&n!=o.Init&&(e.off("cursorActivity",i),e.state.matchBrackets&&e.state.matchBrackets.currentlyHighlighted&&(e.state.matchBrackets.currentlyHighlighted(),e.state.matchBrackets.currentlyHighlighted=null)),t&&(e.state.matchBrackets="object"==typeof t?t:{},e.on("cursorActivity",i))}),o.defineExtension("matchBrackets",function(){r(this,!0)}),o.defineExtension("findMatchingBracket",function(e,t,n){return!n&&"boolean"!=typeof t||(t=n?(n.strict=t,n):t?{strict:!0}:null),c(this,e,t)}),o.defineExtension("scanForBracket",function(e,t,n,r){return f(this,e,t,n,r)})},function(e,t,n){!function(i){"use strict";var s="CodeMirror-activeline",l="CodeMirror-activeline-background",u="CodeMirror-activeline-gutter";function c(e){for(var t=0;to.cursorCoords(t,"window").top)(a=n).style.opacity=.4})};f(o,g,i,s,function(e,t){var n=l.keyName(e);var r=o.getOption("extraKeys"),i=r&&r[n]||l.keyMap[o.getOption("keyMap")][n];if(i=="findNext"||i=="findPrev"||i=="findPersistentNext"||i=="findPersistentPrev"){l.e_stop(e);v(o,u(o),t);o.execCommand(i)}else if(i=="find"||i=="findPersistent"){l.e_stop(e);s(t,e)}});if(n&&i){v(o,r,i);m(o,t)}}else{h(o,g,"Search for:",i,function(e){if(e&&!r.query)o.operation(function(){v(o,r,e);r.posFrom=r.posTo=o.getCursor();m(o,t)})})}}function m(n,r,i){n.operation(function(){var e=u(n);var t=c(n,e.query,r?e.posFrom:e.posTo);if(!t.find(r)){t=c(n,e.query,r?l.Pos(n.lastLine()):l.Pos(n.firstLine(),0));if(!t.find(r))return}n.setSelection(t.from(),t.to());n.scrollIntoView({from:t.from(),to:t.to()},20);e.posFrom=t.from();e.posTo=t.to();if(i)i(t.from(),t.to())})}function y(t){t.operation(function(){var e=u(t);e.lastQuery=e.query;if(!e.query)return;e.query=e.queryText=null;t.removeOverlay(e.overlay);if(e.annotate){e.annotate.clear();e.annotate=null}})}var a=' (Use /re/ syntax for regexp search)',b='With: ',w='Replace? ';function x(t,r,i){t.operation(function(){for(var e=c(t,r);e.findNext();){if(typeof r!="string"){var n=t.getRange(e.from(),e.to()).match(r);e.replace(i.replace(/\$(\d)/g,function(e,t){return n[t]}))}else e.replace(i)}})}function s(s,e){if(s.getOption("readOnly"))return;var t=s.getSelection()||u(s).lastQuery;var n=''+(e?"Replace all:":"Replace:")+"";h(s,n+a,n,t,function(a){if(!a)return;a=o(a);h(s,b,"Replace with:","",function(r){r=p(r);if(e){x(s,a,r)}else{y(s);var i=c(s,a,s.getCursor("from"));var o=function(){var e=i.from(),t;if(!(t=i.findNext())){i=c(s,a);if(!(t=i.findNext())||e&&i.from().line==e.line&&i.from().ch==e.ch)return}s.setSelection(i.from(),i.to());s.scrollIntoView({from:i.from(),to:i.to()});d(s,w,"Replace?",[function(){n(t)},o,function(){x(s,a,r)}])};var n=function(n){i.replace(typeof a=="string"?r:r.replace(/\$(\d)/g,function(e,t){return n[t]}));o()};o()}})})}l.commands.find=function(e){y(e);n(e)},l.commands.findPersistent=function(e){y(e);n(e,false,true)},l.commands.findPersistentNext=function(e){n(e,false,true,true)},l.commands.findPersistentPrev=function(e){n(e,true,true,true)},l.commands.findNext=n,l.commands.findPrev=function(e){n(e,true)},l.commands.clearSearch=y,l.commands.replace=s,l.commands.replaceAll=function(e){s(e,true)}}(n(58),n(203),n(375))},function(e,t,n){function f(e,t,n){var r=e.getWrapperElement(),i=r.appendChild(document.createElement("div"));return i.className=n?"CodeMirror-dialog CodeMirror-dialog-bottom":"CodeMirror-dialog CodeMirror-dialog-top","string"==typeof t?i.innerHTML=t:i.appendChild(t),i}function h(e,t){e.state.currentNotificationClose&&e.state.currentNotificationClose(),e.state.currentNotificationClose=t}var d;(d=n(58)).defineExtension("openDialog",function(e,t,n){function r(e){if("string"==typeof e)s.value=e;else{if(o)return;o=!0,i.parentNode.removeChild(i),a.focus(),n.onClose&&n.onClose(i)}}var i,o,a,s,l;return n=n||{},h(this,null),i=f(this,e,n.bottom),o=!1,a=this,(s=i.getElementsByTagName("input")[0])?(s.focus(),n.value&&(s.value=n.value,!1!==n.selectValueOnOpen&&s.select()),n.onInput&&d.on(s,"input",function(e){n.onInput(e,s.value,r)}),n.onKeyUp&&d.on(s,"keyup",function(e){n.onKeyUp(e,s.value,r)}),d.on(s,"keydown",function(e){n&&n.onKeyDown&&n.onKeyDown(e,s.value,r)||((27==e.keyCode||!1!==n.closeOnEnter&&13==e.keyCode)&&(s.blur(),d.e_stop(e),r()),13==e.keyCode&&t(s.value,e))}),!1!==n.closeOnBlur&&d.on(s,"blur",r)):(l=i.getElementsByTagName("button")[0])&&(d.on(l,"click",function(){r(),a.focus()}),!1!==n.closeOnBlur&&d.on(l,"blur",r),l.focus()),r}),d.defineExtension("openConfirm",function(e,t,n){function r(){a||(a=!0,i.parentNode.removeChild(i),s.focus())}var i,o,a,s,l,u,c;for(h(this,null),o=(i=f(this,e,n&&n.bottom)).getElementsByTagName("button"),a=!1,s=this,l=1,o[0].focus(),u=0;u=e.options.minChars)c(u,l,false,e.options.style)})}function h(e,t,n){var r=e.getRange(t,n);if(r.match(/^\w+$/)!==null){if(t.ch>0){var i={line:t.line,ch:t.ch-1};var o=e.getRange(i,t);if(o.match(/\W/)===null)return false}if(n.ch=this.gap.to)break;if(t.to.line>=this.gap.from)this.matches.splice(e--,1)}var n=this.cm.getSearchCursor(this.query,u.Pos(this.gap.from,0),this.caseFold);var r=this.options&&this.options.maxMatches||i;while(n.findNext()){var t={from:n.from(),to:n.to()};if(t.from.line>=this.gap.to)break;this.matches.splice(e++,0,t);if(this.matches.length>r)break}this.gap=null},r.prototype.onChange=function(e){var t=e.from.line;var n=u.changeEnd(e).line;var r=n-e.to.line;if(this.gap){this.gap.from=Math.min(c(this.gap.from,t,r),e.from.line);this.gap.to=Math.max(c(this.gap.to,t,r),e.from.line)}else{this.gap={from:e.from.line,to:n+1}}if(r)for(var i=0;ia)return r.charCoords(e,"local")[t?"top":"bottom"];var n=r.heightAtLine(l,"local");return n+(t?0:l.height)}var c=r.lastLine();if(r.display.barWidth)for(var f=0,h;fc)continue;var p=h||u(d.from,true)*t;var g=u(d.to,false)*t;while(fc)break;h=u(i[f+1].from,true)*t;if(h>g+.9)break;d=i[++f];g=u(d.to,false)*t}if(g==p)continue;var v=Math.max(g-p,3);var m=n.appendChild(document.createElement("div"));m.style.cssText="position: absolute; right: 0px; width: "+Math.max(r.display.barWidth-1,2)+"px; top: "+(p+this.buttonHeight)+"px; height: "+v+"px";m.className=this.options.className;if(d.id){m.setAttribute("annotation-id",d.id)}}this.div.textContent="";this.div.appendChild(n)},t.prototype.clear=function(){this.cm.off("refresh",this.resizeHandler);this.cm.off("markerAdded",this.resizeHandler);this.cm.off("markerCleared",this.resizeHandler);if(this.changeHandler)this.cm.off("change",this.changeHandler);this.div.parentNode.removeChild(this.div)}}(n(58))},,,,,,,function(e,t,n){var r,i,o;i=[n(0),n(258),n(387),n(259),n(388),n(389),n(390),n(52),n(204)],void 0===(o="function"==typeof(r=function(b){return b.widget("ui.draggable",b.ui.mouse,{version:"1.12.1",widgetEventPrefix:"drag",options:{addClasses:!0,appendTo:"parent",axis:!1,connectToSortable:!1,containment:!1,cursor:"auto",cursorAt:!1,grid:!1,handle:!1,helper:"original",iframeFix:!1,opacity:!1,refreshPositions:!1,revert:!1,revertDuration:500,scope:"default",scroll:!0,scrollSensitivity:20,scrollSpeed:20,snap:!1,snapMode:"both",snapTolerance:20,stack:!1,zIndex:!1,drag:null,start:null,stop:null},_create:function(){"original"===this.options.helper&&this._setPositionRelative(),this.options.addClasses&&this._addClass("ui-draggable"),this._setHandleClassName(),this._mouseInit()},_setOption:function(e,t){this._super(e,t),"handle"===e&&(this._removeHandleClassName(),this._setHandleClassName())},_destroy:function(){(this.helper||this.element).is(".ui-draggable-dragging")?this.destroyOnClear=!0:(this._removeHandleClassName(),this._mouseDestroy())},_mouseCapture:function(e){var t=this.options;return!(this.helper||t.disabled||0").css("position","absolute").appendTo(e.parent()).outerWidth(e.outerWidth()).outerHeight(e.outerHeight()).offset(e.offset())[0]})},_unblockFrames:function(){this.iframeBlocks&&(this.iframeBlocks.remove(),delete this.iframeBlocks)},_blurActiveElement:function(e){var t=b.ui.safeActiveElement(this.document[0]);b(e.target).closest(t).length||b.ui.safeBlur(t)},_mouseStart:function(e){var t=this.options;return this.helper=this._createHelper(e),this._addClass(this.helper,"ui-draggable-dragging"),this._cacheHelperProportions(),b.ui.ddmanager&&(b.ui.ddmanager.current=this),this._cacheMargins(),this.cssPosition=this.helper.css("position"),this.scrollParent=this.helper.scrollParent(!0),this.offsetParent=this.helper.offsetParent(),this.hasFixedAncestor=0n[2]&&(l=n[2]+this.offset.click.left),e.pageY-this.offset.click.top>n[3]&&(u=n[3]+this.offset.click.top)),a.grid&&(i=a.grid[1]?this.originalPageY+Math.round((u-this.originalPageY)/a.grid[1])*a.grid[1]:this.originalPageY,u=n?i-this.offset.click.top>=n[1]||i-this.offset.click.top>n[3]?i:i-this.offset.click.top>=n[1]?i-a.grid[1]:i+a.grid[1]:i,o=a.grid[0]?this.originalPageX+Math.round((l-this.originalPageX)/a.grid[0])*a.grid[0]:this.originalPageX,l=n?o-this.offset.click.left>=n[0]||o-this.offset.click.left>n[2]?o:o-this.offset.click.left>=n[0]?o-a.grid[0]:o+a.grid[0]:o),"y"===a.axis&&(l=this.originalPageX),"x"===a.axis&&(u=this.originalPageY)),{top:u-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+("fixed"===this.cssPosition?-this.offset.scroll.top:s?0:this.offset.scroll.top),left:l-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+("fixed"===this.cssPosition?-this.offset.scroll.left:s?0:this.offset.scroll.left)}},_clear:function(){this._removeClass(this.helper,"ui-draggable-dragging"),this.helper[0]===this.element[0]||this.cancelHelperRemoval||this.helper.remove(),this.helper=null,this.cancelHelperRemoval=!1,this.destroyOnClear&&this.destroy()},_trigger:function(e,t,n){return n=n||this._uiHash(),b.ui.plugin.call(this,e,[t,n,this],!0),/^(drag|start|stop)/.test(e)&&(this.positionAbs=this._convertPositionTo("absolute"),n.offset=this.positionAbs),b.Widget.prototype._trigger.call(this,e,t,n)},plugins:{},_uiHash:function(){return{helper:this.helper,position:this.position,originalPosition:this.originalPosition,offset:this.positionAbs}}}),b.ui.plugin.add("draggable","connectToSortable",{start:function(t,e,n){var r=b.extend({},e,{item:n.element});n.sortables=[],b(n.options.connectToSortable).each(function(){var e=b(this).sortable("instance");e&&!e.options.disabled&&(n.sortables.push(e),e.refreshPositions(),e._trigger("activate",t,r))})},stop:function(t,e,n){var r=b.extend({},e,{item:n.element});n.cancelHelperRemoval=!1,b.each(n.sortables,function(){var e=this;e.isOver?(e.isOver=0,n.cancelHelperRemoval=!0,e.cancelHelperRemoval=!1,e._storedCSS={position:e.placeholder.css("position"),top:e.placeholder.css("top"),left:e.placeholder.css("left")},e._mouseStop(t),e.options.helper=e.options._helper):(e.cancelHelperRemoval=!0,e._trigger("deactivate",t,r))})},drag:function(n,r,i){b.each(i.sortables,function(){var e=!1,t=this;t.positionAbs=i.positionAbs,t.helperProportions=i.helperProportions,t.offset.click=i.offset.click,t._intersectsWith(t.containerCache)&&(e=!0,b.each(i.sortables,function(){return this.positionAbs=i.positionAbs,this.helperProportions=i.helperProportions,this.offset.click=i.offset.click,this!==t&&this._intersectsWith(this.containerCache)&&b.contains(t.element[0],this.element[0])&&(e=!1),e})),e?(t.isOver||(t.isOver=1,i._parent=r.helper.parent(),t.currentItem=r.helper.appendTo(t.element).data("ui-sortable-item",!0),t.options._helper=t.options.helper,t.options.helper=function(){return r.helper[0]},n.target=t.currentItem[0],t._mouseCapture(n,!0),t._mouseStart(n,!0,!0),t.offset.click.top=i.offset.click.top,t.offset.click.left=i.offset.click.left,t.offset.parent.left-=i.offset.parent.left-t.offset.parent.left,t.offset.parent.top-=i.offset.parent.top-t.offset.parent.top,i._trigger("toSortable",n),i.dropped=t.element,b.each(i.sortables,function(){this.refreshPositions()}),i.currentItem=i.element,t.fromOutside=i),t.currentItem&&(t._mouseDrag(n),r.position=t.position)):t.isOver&&(t.isOver=0,t.cancelHelperRemoval=!0,t.options._revert=t.options.revert,t.options.revert=!1,t._trigger("out",n,t._uiHash(t)),t._mouseStop(n,!0),t.options.revert=t.options._revert,t.options.helper=t.options._helper,t.placeholder&&t.placeholder.remove(),r.helper.appendTo(i._parent),i._refreshOffsets(n),r.position=i._generatePosition(n,!0),i._trigger("fromSortable",n),i.dropped=!1,b.each(i.sortables,function(){this.refreshPositions()}))})}}),b.ui.plugin.add("draggable","cursor",{start:function(e,t,n){var r=b("body"),i=n.options;r.css("cursor")&&(i._cursor=r.css("cursor")),r.css("cursor",i.cursor)},stop:function(e,t,n){var r=n.options;r._cursor&&b("body").css("cursor",r._cursor)}}),b.ui.plugin.add("draggable","opacity",{start:function(e,t,n){var r=b(t.helper),i=n.options;r.css("opacity")&&(i._opacity=r.css("opacity")),r.css("opacity",i.opacity)},stop:function(e,t,n){var r=n.options;r._opacity&&b(t.helper).css("opacity",r._opacity)}}),b.ui.plugin.add("draggable","scroll",{start:function(e,t,n){n.scrollParentNotHidden||(n.scrollParentNotHidden=n.helper.scrollParent(!1)),n.scrollParentNotHidden[0]!==n.document[0]&&"HTML"!==n.scrollParentNotHidden[0].tagName&&(n.overflowOffset=n.scrollParentNotHidden.offset())},drag:function(e,t,n){var r=n.options,i=!1,o=n.scrollParentNotHidden[0],a=n.document[0];o!==a&&"HTML"!==o.tagName?(r.axis&&"x"===r.axis||(n.overflowOffset.top+o.offsetHeight-e.pageY").css({position:this.element.css("position"),width:this.element.outerWidth(),height:this.element.outerHeight(),top:this.element.css("top"),left:this.element.css("left")})),this.element=this.element.parent().data("ui-resizable",this.element.resizable("instance")),this.elementIsWrapper=!0,e={marginTop:this.originalElement.css("marginTop"),marginRight:this.originalElement.css("marginRight"),marginBottom:this.originalElement.css("marginBottom"),marginLeft:this.originalElement.css("marginLeft")},this.element.css(e),this.originalElement.css("margin",0),this.originalResizeStyle=this.originalElement.css("resize"),this.originalElement.css("resize","none"),this._proportionallyResizeElements.push(this.originalElement.css({position:"static",zoom:1,display:"block"})),this.originalElement.css(e),this._proportionallyResize()),this._setupHandles(),t.autoHide&&y(this.element).on("mouseenter",function(){t.disabled||(n._removeClass("ui-resizable-autohide"),n._handles.show())}).on("mouseleave",function(){t.disabled||n.resizing||(n._addClass("ui-resizable-autohide"),n._handles.hide())}),this._mouseInit()},_destroy:function(){this._mouseDestroy();function e(e){y(e).removeData("resizable").removeData("ui-resizable").off(".resizable").find(".ui-resizable-handle").remove()}var t;return this.elementIsWrapper&&(e(this.element),t=this.element,this.originalElement.css({position:t.css("position"),width:t.outerWidth(),height:t.outerHeight(),top:t.css("top"),left:t.css("left")}).insertAfter(t),t.remove()),this.originalElement.css("resize",this.originalResizeStyle),e(this.originalElement),this},_setOption:function(e,t){switch(this._super(e,t),e){case"handles":this._removeHandles(),this._setupHandles()}},_setupHandles:function(){var e,t,n,r,i,o=this.options,a=this;if(this.handles=o.handles||(y(".ui-resizable-handle",this.element).length?{n:".ui-resizable-n",e:".ui-resizable-e",s:".ui-resizable-s",w:".ui-resizable-w",se:".ui-resizable-se",sw:".ui-resizable-sw",ne:".ui-resizable-ne",nw:".ui-resizable-nw"}:"e,s,se"),this._handles=y(),this.handles.constructor===String)for("all"===this.handles&&(this.handles="n,e,s,w,se,sw,ne,nw"),n=this.handles.split(","),this.handles={},t=0;t"),this._addClass(i,"ui-resizable-handle "+r),i.css({zIndex:o.zIndex}),this.handles[e]=".ui-resizable-"+e,this.element.append(i);this._renderAxis=function(e){var t,n,r,i;for(t in e=e||this.element,this.handles)this.handles[t].constructor===String?this.handles[t]=this.element.children(this.handles[t]).first().show():(this.handles[t].jquery||this.handles[t].nodeType)&&(this.handles[t]=y(this.handles[t]),this._on(this.handles[t],{mousedown:a._mouseDown})),this.elementIsWrapper&&this.originalElement[0].nodeName.match(/^(textarea|input|select|button)$/i)&&(n=y(this.handles[t],this.element),i=/sw|ne|nw|se|n|s/.test(t)?n.outerHeight():n.outerWidth(),r=["padding",/ne|nw|n/.test(t)?"Top":/se|sw|s/.test(t)?"Bottom":/^e$/.test(t)?"Right":"Left"].join(""),e.css(r,i),this._proportionallyResize()),this._handles=this._handles.add(this.handles[t])},this._renderAxis(this.element),this._handles=this._handles.add(this.element.find(".ui-resizable-handle")),this._handles.disableSelection(),this._handles.on("mouseover",function(){a.resizing||(this.className&&(i=this.className.match(/ui-resizable-(se|sw|ne|nw|n|e|s|w)/i)),a.axis=i&&i[1]?i[1]:"se")}),o.autoHide&&(this._handles.hide(),this._addClass("ui-resizable-autohide"))},_removeHandles:function(){this._handles.remove()},_mouseCapture:function(e){var t,n,r=!1;for(t in this.handles)(n=y(this.handles[t])[0])!==e.target&&!y.contains(n,e.target)||(r=!0);return!this.options.disabled&&r},_mouseStart:function(e){var t,n,r,i=this.options,o=this.element;return this.resizing=!0,this._renderProxy(),t=this._num(this.helper.css("left")),n=this._num(this.helper.css("top")),i.containment&&(t+=y(i.containment).scrollLeft()||0,n+=y(i.containment).scrollTop()||0),this.offset=this.helper.offset(),this.position={left:t,top:n},this.size=this._helper?{width:this.helper.width(),height:this.helper.height()}:{width:o.width(),height:o.height()},this.originalSize=this._helper?{width:o.outerWidth(),height:o.outerHeight()}:{width:o.width(),height:o.height()},this.sizeDiff={width:o.outerWidth()-o.width(),height:o.outerHeight()-o.height()},this.originalPosition={left:t,top:n},this.originalMousePosition={left:e.pageX,top:e.pageY},this.aspectRatio="number"==typeof i.aspectRatio?i.aspectRatio:this.originalSize.width/this.originalSize.height||1,r=y(".ui-resizable-"+this.axis).css("cursor"),y("body").css("cursor","auto"===r?this.axis+"-resize":r),this._addClass("ui-resizable-resizing"),this._propagate("start",e),!0},_mouseDrag:function(e){var t,n,r=this.originalMousePosition,i=this.axis,o=e.pageX-r.left||0,a=e.pageY-r.top||0,s=this._change[i];return this._updatePrevProperties(),s&&(t=s.apply(this,[e,o,a]),this._updateVirtualBoundaries(e.shiftKey),(this._aspectRatio||e.shiftKey)&&(t=this._updateRatio(t,e)),t=this._respectSize(t,e),this._updateCache(t),this._propagate("resize",e),n=this._applyChanges(),!this._helper&&this._proportionallyResizeElements.length&&this._proportionallyResize(),y.isEmptyObject(n)||(this._updatePrevProperties(),this._trigger("resize",e,this.ui()),this._applyChanges())),!1},_mouseStop:function(e){this.resizing=!1;var t,n,r,i,o,a,s,l=this.options,u=this;return this._helper&&(r=(n=(t=this._proportionallyResizeElements).length&&/textarea/i.test(t[0].nodeName))&&this._hasScroll(t[0],"left")?0:u.sizeDiff.height,i=n?0:u.sizeDiff.width,o={width:u.helper.width()-i,height:u.helper.height()-r},a=parseFloat(u.element.css("left"))+(u.position.left-u.originalPosition.left)||null,s=parseFloat(u.element.css("top"))+(u.position.top-u.originalPosition.top)||null,l.animate||this.element.css(y.extend(o,{top:s,left:a})),u.helper.height(u.size.height),u.helper.width(u.size.width),this._helper&&!l.animate&&this._proportionallyResize()),y("body").css("cursor","auto"),this._removeClass("ui-resizable-resizing"),this._propagate("stop",e),this._helper&&this.helper.remove(),!1},_updatePrevProperties:function(){this.prevPosition={top:this.position.top,left:this.position.left},this.prevSize={width:this.size.width,height:this.size.height}},_applyChanges:function(){var e={};return this.position.top!==this.prevPosition.top&&(e.top=this.position.top+"px"),this.position.left!==this.prevPosition.left&&(e.left=this.position.left+"px"),this.size.width!==this.prevSize.width&&(e.width=this.size.width+"px"),this.size.height!==this.prevSize.height&&(e.height=this.size.height+"px"),this.helper.css(e),e},_updateVirtualBoundaries:function(e){var t,n,r,i,o,a=this.options;o={minWidth:this._isNumber(a.minWidth)?a.minWidth:0,maxWidth:this._isNumber(a.maxWidth)?a.maxWidth:1/0,minHeight:this._isNumber(a.minHeight)?a.minHeight:0,maxHeight:this._isNumber(a.maxHeight)?a.maxHeight:1/0},(this._aspectRatio||e)&&(t=o.minHeight*this.aspectRatio,r=o.minWidth/this.aspectRatio,n=o.maxHeight*this.aspectRatio,i=o.maxWidth/this.aspectRatio,t>o.minWidth&&(o.minWidth=t),r>o.minHeight&&(o.minHeight=r),ne.width,a=this._isNumber(e.height)&&t.minHeight&&t.minHeight>e.height,s=this.originalPosition.left+this.originalSize.width,l=this.originalPosition.top+this.originalSize.height,u=/sw|nw|w/.test(n),c=/nw|ne|n/.test(n);return o&&(e.width=t.minWidth),a&&(e.height=t.minHeight),r&&(e.width=t.maxWidth),i&&(e.height=t.maxHeight),o&&u&&(e.left=s-t.minWidth),r&&u&&(e.left=s-t.maxWidth),a&&c&&(e.top=l-t.minHeight),i&&c&&(e.top=l-t.maxHeight),e.width||e.height||e.left||!e.top?e.width||e.height||e.top||!e.left||(e.left=null):e.top=null,e},_getPaddingPlusBorderDimensions:function(e){for(var t=0,n=[],r=[e.css("borderTopWidth"),e.css("borderRightWidth"),e.css("borderBottomWidth"),e.css("borderLeftWidth")],i=[e.css("paddingTop"),e.css("paddingRight"),e.css("paddingBottom"),e.css("paddingLeft")];t<4;t++)n[t]=parseFloat(r[t])||0,n[t]+=parseFloat(i[t])||0;return{height:n[0]+n[2],width:n[1]+n[3]}},_proportionallyResize:function(){if(this._proportionallyResizeElements.length)for(var e,t=0,n=this.helper||this.element;t"),this._addClass(this.helper,this._helper),this.helper.css({width:this.element.outerWidth(),height:this.element.outerHeight(),position:"absolute",left:this.elementOffset.left+"px",top:this.elementOffset.top+"px",zIndex:++t.zIndex}),this.helper.appendTo("body").disableSelection()):this.helper=this.element},_change:{e:function(e,t){return{width:this.originalSize.width+t}},w:function(e,t){var n=this.originalSize;return{left:this.originalPosition.left+t,width:n.width-t}},n:function(e,t,n){var r=this.originalSize;return{top:this.originalPosition.top+n,height:r.height-n}},s:function(e,t,n){return{height:this.originalSize.height+n}},se:function(e,t,n){return y.extend(this._change.s.apply(this,arguments),this._change.e.apply(this,[e,t,n]))},sw:function(e,t,n){return y.extend(this._change.s.apply(this,arguments),this._change.w.apply(this,[e,t,n]))},ne:function(e,t,n){return y.extend(this._change.n.apply(this,arguments),this._change.e.apply(this,[e,t,n]))},nw:function(e,t,n){return y.extend(this._change.n.apply(this,arguments),this._change.w.apply(this,[e,t,n]))}},_propagate:function(e,t){y.ui.plugin.call(this,e,[t,this.ui()]),"resize"!==e&&this._trigger(e,t,this.ui())},plugins:{},ui:function(){return{originalElement:this.originalElement,element:this.element,helper:this.helper,position:this.position,size:this.size,originalSize:this.originalSize,originalPosition:this.originalPosition}}}),y.ui.plugin.add("resizable","animate",{stop:function(t){var n=y(this).resizable("instance"),e=n.options,r=n._proportionallyResizeElements,i=r.length&&/textarea/i.test(r[0].nodeName),o=i&&n._hasScroll(r[0],"left")?0:n.sizeDiff.height,a=i?0:n.sizeDiff.width,s={width:n.size.width-a,height:n.size.height-o},l=parseFloat(n.element.css("left"))+(n.position.left-n.originalPosition.left)||null,u=parseFloat(n.element.css("top"))+(n.position.top-n.originalPosition.top)||null;n.element.animate(y.extend(s,u&&l?{top:u,left:l}:{}),{duration:e.animateDuration,easing:e.animateEasing,step:function(){var e={width:parseFloat(n.element.css("width")),height:parseFloat(n.element.css("height")),top:parseFloat(n.element.css("top")),left:parseFloat(n.element.css("left"))};r&&r.length&&y(r[0]).css({width:e.width,height:e.height}),n._updateCache(e),n._propagate("resize",t)}})}}),y.ui.plugin.add("resizable","containment",{start:function(){var n,r,e,t,i,o,a,s=y(this).resizable("instance"),l=s.options,u=s.element,c=l.containment,f=c instanceof y?c.get(0):/parent/.test(c)?u.parent().get(0):c;f&&(s.containerElement=y(f),/document/.test(c)||c===document?(s.containerOffset={left:0,top:0},s.containerPosition={left:0,top:0},s.parentData={element:y(document),left:0,top:0,width:y(document).width(),height:y(document).height()||document.body.parentNode.scrollHeight}):(n=y(f),r=[],y(["Top","Right","Left","Bottom"]).each(function(e,t){r[e]=s._num(n.css("padding"+t))}),s.containerOffset=n.offset(),s.containerPosition=n.position(),s.containerSize={height:n.innerHeight()-r[3],width:n.innerWidth()-r[1]},e=s.containerOffset,t=s.containerSize.height,i=s.containerSize.width,o=s._hasScroll(f,"left")?f.scrollWidth:i,a=s._hasScroll(f)?f.scrollHeight:t,s.parentData={element:f,left:e.left,top:e.top,width:o,height:a}))},resize:function(e){var t,n,r,i,o=y(this).resizable("instance"),a=o.options,s=o.containerOffset,l=o.position,u=o._aspectRatio||e.shiftKey,c={top:0,left:0},f=o.containerElement,h=!0;f[0]!==document&&/static/.test(f.css("position"))&&(c=s),l.left<(o._helper?s.left:0)&&(o.size.width=o.size.width+(o._helper?o.position.left-s.left:o.position.left-c.left),u&&(o.size.height=o.size.width/o.aspectRatio,h=!1),o.position.left=a.helper?s.left:0),l.top<(o._helper?s.top:0)&&(o.size.height=o.size.height+(o._helper?o.position.top-s.top:o.position.top),u&&(o.size.width=o.size.height*o.aspectRatio,h=!1),o.position.top=o._helper?s.top:0),r=o.containerElement.get(0)===o.element.parent().get(0),i=/relative|absolute/.test(o.containerElement.css("position")),r&&i?(o.offset.left=o.parentData.left+o.position.left,o.offset.top=o.parentData.top+o.position.top):(o.offset.left=o.element.offset().left,o.offset.top=o.element.offset().top),t=Math.abs(o.sizeDiff.width+(o._helper?o.offset.left-c.left:o.offset.left-s.left)),n=Math.abs(o.sizeDiff.height+(o._helper?o.offset.top-c.top:o.offset.top-s.top)),t+o.size.width>=o.parentData.width&&(o.size.width=o.parentData.width-t,u&&(o.size.height=o.size.width/o.aspectRatio,h=!1)),n+o.size.height>=o.parentData.height&&(o.size.height=o.parentData.height-n,u&&(o.size.width=o.size.height*o.aspectRatio,h=!1)),h||(o.position.left=o.prevPosition.left,o.position.top=o.prevPosition.top,o.size.width=o.prevSize.width,o.size.height=o.prevSize.height)},stop:function(){var e=y(this).resizable("instance"),t=e.options,n=e.containerOffset,r=e.containerPosition,i=e.containerElement,o=y(e.helper),a=o.offset(),s=o.outerWidth()-e.sizeDiff.width,l=o.outerHeight()-e.sizeDiff.height;e._helper&&!t.animate&&/relative/.test(i.css("position"))&&y(this).css({left:a.left-r.left-n.left,width:s,height:l}),e._helper&&!t.animate&&/static/.test(i.css("position"))&&y(this).css({left:a.left-r.left-n.left,width:s,height:l})}}),y.ui.plugin.add("resizable","alsoResize",{start:function(){var e=y(this).resizable("instance").options;y(e.alsoResize).each(function(){var e=y(this);e.data("ui-resizable-alsoresize",{width:parseFloat(e.width()),height:parseFloat(e.height()),left:parseFloat(e.css("left")),top:parseFloat(e.css("top"))})})},resize:function(e,n){var t=y(this).resizable("instance"),r=t.options,i=t.originalSize,o=t.originalPosition,a={height:t.size.height-i.height||0,width:t.size.width-i.width||0,top:t.position.top-o.top||0,left:t.position.left-o.left||0};y(r.alsoResize).each(function(){var e=y(this),r=y(this).data("ui-resizable-alsoresize"),i={},t=e.parents(n.originalElement[0]).length?["width","height"]:["width","height","top","left"];y.each(t,function(e,t){var n=(r[t]||0)+(a[t]||0);n&&0<=n&&(i[t]=n||null)}),e.css(i)})},stop:function(){y(this).removeData("ui-resizable-alsoresize")}}),y.ui.plugin.add("resizable","ghost",{start:function(){var e=y(this).resizable("instance"),t=e.size;e.ghost=e.originalElement.clone(),e.ghost.css({opacity:.25,display:"block",position:"relative",height:t.height,width:t.width,margin:0,left:0,top:0}),e._addClass(e.ghost,"ui-resizable-ghost"),!1!==y.uiBackCompat&&"string"==typeof e.options.ghost&&e.ghost.addClass(this.options.ghost),e.ghost.appendTo(e.helper)},resize:function(){var e=y(this).resizable("instance");e.ghost&&e.ghost.css({position:"relative",height:e.size.height,width:e.size.width})},stop:function(){var e=y(this).resizable("instance");e.ghost&&e.helper&&e.helper.get(0).removeChild(e.ghost.get(0))}}),y.ui.plugin.add("resizable","grid",{resize:function(){var e,t=y(this).resizable("instance"),n=t.options,r=t.size,i=t.originalSize,o=t.originalPosition,a=t.axis,s="number"==typeof n.grid?[n.grid,n.grid]:n.grid,l=s[0]||1,u=s[1]||1,c=Math.round((r.width-i.width)/l)*l,f=Math.round((r.height-i.height)/u)*u,h=i.width+c,d=i.height+f,p=n.maxWidth&&n.maxWidthh,m=n.minHeight&&n.minHeight>d;n.grid=s,v&&(h+=l),m&&(d+=u),p&&(h-=l),g&&(d-=u),/^(se|s|e)$/.test(a)?(t.size.width=h,t.size.height=d):/^(ne)$/.test(a)?(t.size.width=h,t.size.height=d,t.position.top=o.top-f):/^(sw)$/.test(a)?(t.size.width=h,t.size.height=d,t.position.left=o.left-c):((d-u<=0||h-l<=0)&&(e=t._getPaddingPlusBorderDimensions(this)),0i;)a(W,t=n[i++])||t==R||t==c||r.push(t);return r},ne=function(e){for(var t,n=e===U,r=L(n?B:_(e)),i=[],o=0;r.length>o;)!a(W,t=r[o++])||n&&!a(U,t)||i.push(W[t]);return i};for(q||(u((P=function(e){var t,n;if(this instanceof P)throw TypeError("Symbol is not a constructor!");return t=p(0i;)g(r[i++]);for(r=M(g.store),i=0;r.length>i;)m(r[i++]);l(l.S+l.F*!q,"Symbol",{for:function(e){return a(H,e+="")?H[e]:H[e]=P(e)},keyFor:function(e){if($(e))return y(H,e);throw TypeError(e+" is not a symbol!")},useSetter:function(){Y=!0},useSimple:function(){Y=!1}}),l(l.S+l.F*!q,"Object",{create:Q,defineProperty:X,defineProperties:J,getOwnPropertyDescriptor:ee,getOwnPropertyNames:te,getOwnPropertySymbols:ne}),N&&l(l.S+l.F*(!q||f(function(){var e=P();return"[null]"!=I([e])||"{}"!=I({a:e})||"{}"!=I(Object(e))})),"JSON",{stringify:function(e){if(void 0!==e&&!$(e)){for(var t,n,r=[e],i=1;ir;)n.call(e,i=t[r++])&&o.push(i);return o}},function(e,t,n){var r=n(9);r(r.S,"Object",{create:n(107)})},function(e,t,n){var r=n(9);r(r.S+r.F*!n(36),"Object",{defineProperty:n(37).f})},function(e,t,n){var r=n(9);r(r.S+r.F*!n(36),"Object",{defineProperties:n(263)})},function(e,t,n){var r=n(56),i=n(63).f;n(73)("getOwnPropertyDescriptor",function(){return function(e,t){return i(r(e),t)}})},function(e,t,n){var r=n(45),i=n(64);n(73)("getPrototypeOf",function(){return function(e){return i(r(e))}})},function(e,t,n){var r=n(45),i=n(105);n(73)("keys",function(){return function(e){return i(r(e))}})},function(e,t,n){n(73)("getOwnPropertyNames",function(){return n(264).f})},function(e,t,n){var r=n(24),i=n(91).onFreeze;n(73)("freeze",function(t){return function(e){return t&&r(e)?t(i(e)):e}})},function(e,t,n){var r=n(24),i=n(91).onFreeze;n(73)("seal",function(t){return function(e){return t&&r(e)?t(i(e)):e}})},function(e,t,n){var r=n(24),i=n(91).onFreeze;n(73)("preventExtensions",function(t){return function(e){return t&&r(e)?t(i(e)):e}})},function(e,t,n){var r=n(24);n(73)("isFrozen",function(t){return function(e){return!r(e)||!!t&&t(e)}})},function(e,t,n){var r=n(24);n(73)("isSealed",function(t){return function(e){return!r(e)||!!t&&t(e)}})},function(e,t,n){var r=n(24);n(73)("isExtensible",function(t){return function(e){return!!r(e)&&(!t||t(e))}})},function(e,t,n){var r=n(9);r(r.S+r.F,"Object",{assign:n(265)})},function(e,t,n){var r=n(9);r(r.S,"Object",{is:n(266)})},function(e,t,n){var r=n(9);r(r.S,"Object",{setPrototypeOf:n(211).set})},function(e,t,n){"use strict";var r=n(150),i={};i[n(28)("toStringTag")]="z",i+""!="[object z]"&&n(54)(Object.prototype,"toString",function(){return"[object "+r(this)+"]"},!0)},function(e,t,n){var r=n(9);r(r.P,"Function",{bind:n(267)})},function(e,t,n){var r=n(37).f,i=n(90),o=n(49),a=Function.prototype,s=/^\s*function ([^ (]*)/,l="name",u=Object.isExtensible||function(){return!0};l in a||n(36)&&r(a,l,{configurable:!0,get:function(){try{var e=(""+this).match(s)[1];return o(this,l)||!u(this)||r(this,l,i(5,e)),e}catch(e){return""}}})},function(e,t,n){"use strict";var r=n(24),i=n(64),o=n(28)("hasInstance"),a=Function.prototype;o in a||n(37).f(a,o,{value:function(e){if("function"!=typeof this||!r(e))return!1;if(!r(this.prototype))return e instanceof this;for(;e=i(e);)if(this.prototype===e)return!0;return!1}})},function(e,t,n){var r=n(9),i=n(268);r(r.G+r.F*(parseInt!=i),{parseInt:i})},function(e,t,n){var r=n(9),i=n(269);r(r.G+r.F*(parseFloat!=i),{parseFloat:i})},function(e,t,n){"use strict";var r,i,o,a=n(20),s=n(49),l=n(66),u=n(213),c=n(72),f=n(21),h=n(108).f,d=n(63).f,p=n(37).f,g=n(132).trim,v="Number",m=a[v],y=m,b=m.prototype,w=l(n(107)(b))==v,x="trim"in String.prototype,_=function(e){var t,n,r,i,o,a,s,l,u=c(e,!1);if("string"==typeof u&&2i;i++)s(y,o=r[i])&&!s(m,o)&&p(m,o,d(y,o));(m.prototype=b).constructor=m,n(54)(a,v,m)}},function(e,t,n){"use strict";var r=n(9),u=n(92),c=n(270),f=n(214),i=1..toFixed,o=Math.floor,a=[0,0,0,0,0,0],h="Number.toFixed: incorrect invocation!",d="0",p=function(e,t){for(var n=-1,r=t;++n<6;)r+=e*a[n],a[n]=r%1e7,r=o(r/1e7)},g=function(e){for(var t=6,n=0;0<=--t;)n+=a[t],a[t]=o(n/e),n=n%e*1e7},v=function(){for(var e,t=6,n="";0<=--t;)""===n&&0!==t&&0===a[t]||(e=String(a[t]),n=""===n?e:n+f.call(d,7-e.length)+e);return n},m=function(e,t,n){return 0===t?n:t%2==1?m(e,t-1,n*e):m(e*e,t/2,n)},y=function(e){for(var t=0,n=e;4096<=n;)t+=12,n/=4096;for(;2<=n;)t+=1,n/=2;return t};r(r.P+r.F*(!!i&&("0.000"!==8e-5.toFixed(3)||"1"!==.9.toFixed(0)||"1.25"!==1.255.toFixed(2)||"1000000000000000128"!==(0xde0b6b3a7640080).toFixed(0))||!n(21)(function(){i.call({})})),"Number",{toFixed:function(e){var t,n,r,i,o=c(this,h),a=u(e),s="",l=d;if(a<0||20>>=0)?31-Math.floor(Math.log(e+.5)*Math.LOG2E):32}})},function(e,t,n){var r=n(9),i=Math.exp;r(r.S,"Math",{cosh:function(e){return(i(e=+e)+i(-e))/2}})},function(e,t,n){var r=n(9),i=n(216);r(r.S+r.F*(i!=Math.expm1),"Math",{expm1:i})},function(e,t,n){var r=n(9),o=n(215),i=Math.pow,a=i(2,-52),s=i(2,-23),l=i(2,127)*(2-s),u=i(2,-126),c=function(e){return e+1/a-1/a};r(r.S,"Math",{fround:function(e){var t,n,r=Math.abs(e),i=o(e);return r>>16)*o+i*(65535&r>>>16)<<16>>>0)}})},function(e,t,n){var r=n(9);r(r.S,"Math",{log10:function(e){return Math.log(e)/Math.LN10}})},function(e,t,n){var r=n(9);r(r.S,"Math",{log1p:n(272)})},function(e,t,n){var r=n(9);r(r.S,"Math",{log2:function(e){return Math.log(e)/Math.LN2}})},function(e,t,n){var r=n(9);r(r.S,"Math",{sign:n(215)})},function(e,t,n){var r=n(9),i=n(216),o=Math.exp;r(r.S+r.F*n(21)(function(){return-2e-17!=!Math.sinh(-2e-17)}),"Math",{sinh:function(e){return Math.abs(e=+e)<1?(i(e)-i(-e))/2:(o(e-1)-o(-e-1))*(Math.E/2)}})},function(e,t,n){var r=n(9),i=n(216),o=Math.exp;r(r.S,"Math",{tanh:function(e){var t=i(e=+e),n=i(-e);return t==1/0?1:n==1/0?-1:(t-n)/(o(e)+o(-e))}})},function(e,t,n){var r=n(9);r(r.S,"Math",{trunc:function(e){return(0>10),t%1024+56320))}return n.join("")}})},function(e,t,n){var r=n(9),a=n(56),s=n(40);r(r.S,"String",{raw:function(e){for(var t=a(e.raw),n=s(t.length),r=arguments.length,i=[],o=0;o=t.length?{value:void 0,done:!0}:(e=r(t,n),this._i+=e.length,{value:e,done:!1})})},function(e,t,n){"use strict";var r=n(9),i=n(217)(!1);r(r.P,"String",{codePointAt:function(e){return i(this,e)}})},function(e,t,n){"use strict";var r=n(9),s=n(40),l=n(220),u="endsWith",c=""[u];r(r.P+r.F*n(221)(u),"String",{endsWith:function(e,t){var n=l(this,e,u),r=1o;)r(i[o++]);(p.constructor=h).prototype=p,n(54)(a,"RegExp",h)}n(109)("RegExp")},function(e,t,n){"use strict";var r,i,o,a,s,l;n(277),r=n(19),i=n(185),o=n(36),s=/./[a="toString"],l=function(e){n(54)(RegExp.prototype,a,e,!0)},n(21)(function(){return"/a/b"!=s.call({source:"a",flags:"b"})})?l(function(){var e=r(this);return"/".concat(e.source,"/","flags"in e?e.flags:!o&&e instanceof RegExp?i.call(e):void 0)}):s.name!=a&&l(function(){return s.call(this)})},function(e,t,n){n(186)("match",1,function(r,i,e){return[function(e){"use strict";var t=r(this),n=null==e?void 0:e[i];return void 0!==n?n.call(e,t):new RegExp(e)[i](String(t))},e]})},function(e,t,n){n(186)("replace",2,function(i,o,a){return[function(e,t){"use strict";var n=i(this),r=null==e?void 0:e[o];return void 0!==r?r.call(e,n,t):a.call(String(n),e,t)},a]})},function(e,t,n){n(186)("search",1,function(r,i,e){return[function(e){"use strict";var t=r(this),n=null==e?void 0:e[i];return void 0!==n?n.call(e,t):new RegExp(e)[i](String(t))},e]})},function(e,t,n){n(186)("split",2,function(i,o,a){"use strict";var d,p=n(183),g=a,v=[].push,e="split",m="length",y="lastIndex";return"c"=="abbc"[e](/(b)*/)[1]||4!="test"[e](/(?:)/,-1)[m]||2!="ab"[e](/(?:ab)*/)[m]||4!="."[e](/(.?)(.?)/)[m]||1<"."[e](/()()/)[m]||""[e](/.?/)[m]?(d=void 0===/()??/.exec("")[1],a=function(e,t){var n,r,i,o,a,s,l,u,c,f,h=String(this);if(void 0===e&&0===t)return[];if(!p(e))return g.call(h,e,t);for(n=[],r=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),o=void(i=0)===t?4294967295:t>>>0,a=new RegExp(e.source,r+"g"),d||(s=new RegExp("^"+a.source+"$(?!\\s)",r));(l=a.exec(h))&&!(i<(u=l.index+l[0][m])&&(n.push(h.slice(i,l.index)),!d&&1=o));)a[y]===l.index&&a[y]++;return i===h[m]?!c&&a.test("")||n.push(""):n.push(h.slice(i)),n[m]>o?n.slice(0,o):n}):"0"[e](void 0,0)[m]&&(a=function(e,t){return void 0===e&&0===t?[]:g.call(this,e,t)}),[function(e,t){var n=i(this),r=null==e?void 0:e[o];return void 0!==r?r.call(e,n,t):a.call(String(n),e,t)},a]})},function(e,t,n){"use strict";var o,r,i,a,s,l,u,c,f,h,d,p,g,v,m,y,b,w=n(104),x=n(20),_=n(80),k=n(150),S=n(9),C=n(24),T=n(55),O=n(110),E=n(135),M=n(227),D=n(228).set,A=n(229)(),L="Promise",P=x.TypeError,N=x.process,I=x[L];N=x.process,o="process"==k(N),r=function(){},l=!!function(){try{var e=I.resolve(1),t=(e.constructor={})[n(28)("species")]=function(e){e(r,r)};return(o||"function"==typeof PromiseRejectionEvent)&&e.then(r)instanceof t}catch(e){}}(),u=function(e,t){return e===t||e===I&&t===s},c=function(e){var t;return!(!C(e)||"function"!=typeof(t=e.then))&&t},f=function(e){return u(I,e)?new h(e):new a(e)},h=a=function(e){var n,r;this.promise=new e(function(e,t){if(void 0!==n||void 0!==r)throw P("Bad Promise constructor");n=e,r=t}),this.resolve=T(n),this.reject=T(r)},d=function(e){try{e()}catch(e){return{error:e}}},p=function(u,n){if(!u._n){u._n=!0;var r=u._c;A(function(){for(var s=u._v,l=1==u._s,e=0,t=function(e){var t,n,r=l?e.ok:e.fail,i=e.resolve,o=e.reject,a=e.domain;try{r?(l||(2==u._h&&m(u),u._h=1),!0===r?t=s:(a&&a.enter(),t=r(s),a&&a.exit()),t===e.promise?o(P("Promise-chain cycle")):(n=c(t))?n.call(t,i,o):i(t)):o(s)}catch(e){o(e)}};r.length>e;)t(r[e++]);u._c=[],u._n=!1,n&&!u._h&&g(u)})}},g=function(i){D.call(x,function(){var e,t,n,r=i._v;if(v(i)&&(e=d(function(){o?N.emit("unhandledRejection",r,i):(t=x.onunhandledrejection)?t({promise:i,reason:r}):(n=x.console)&&n.error&&n.error("Unhandled promise rejection",r)}),i._h=o||v(i)?2:1),i._a=void 0,e)throw e.error})},v=function(e){if(1==e._h)return!1;for(var t,n=e._a||e._c,r=0;n.length>r;)if((t=n[r++]).fail||!v(t.promise))return!1;return!0},m=function(t){D.call(x,function(){var e;o?N.emit("rejectionHandled",t):(e=x.onrejectionhandled)&&e({promise:t,reason:t._v})})},y=function(e){var t=this;t._d||(t._d=!0,(t=t._w||t)._v=e,t._s=2,t._a||(t._a=t._c.slice()),p(t,!0))},b=function(e){var n,r=this;if(!r._d){r._d=!0,r=r._w||r;try{if(r===e)throw P("Promise can't be resolved itself");(n=c(e))?A(function(){var t={_w:r,_d:!1};try{n.call(e,_(b,t,1),_(y,t,1))}catch(e){y.call(t,e)}}):(r._v=e,r._s=1,p(r,!1))}catch(e){y.call({_w:r,_d:!1},e)}}},l||(I=function(e){O(this,I,L,"_h"),T(e),i.call(this);try{e(_(b,this,1),_(y,this,1))}catch(e){y.call(this,e)}},(i=function(){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1}).prototype=n(111)(I.prototype,{then:function(e,t){var n=f(M(this,I));return n.ok="function"!=typeof e||e,n.fail="function"==typeof t&&t,n.domain=o?N.domain:void 0,this._c.push(n),this._a&&this._a.push(n),this._s&&p(this,!1),n.promise},catch:function(e){return this.then(void 0,e)}}),h=function(){var e=new i;this.promise=e,this.resolve=_(b,e,1),this.reject=_(y,e,1)}),S(S.G+S.W+S.F*!l,{Promise:I}),n(131)(I,L),n(109)(L),s=n(79)[L],S(S.S+S.F*!l,L,{reject:function(e){var t=f(this);return(0,t.reject)(e),t.promise}}),S(S.S+S.F*(w||!l),L,{resolve:function(e){if(e instanceof I&&u(e.constructor,this))return e;var t=f(this);return(0,t.resolve)(e),t.promise}}),S(S.S+S.F*!(l&&n(184)(function(e){I.all(e).catch(r)})),L,{all:function(e){var a=this,t=f(a),s=t.resolve,l=t.reject,n=d(function(){var r=[],i=0,o=1;E(e,!1,function(e){var t=i++,n=!1;r.push(void 0),o++,a.resolve(e).then(function(e){n||(n=!0,r[t]=e,--o||s(r))},l)}),--o||s(r)});return n&&l(n.error),t.promise},race:function(e){var t=this,n=f(t),r=n.reject,i=d(function(){E(e,!1,function(e){t.resolve(e).then(n.resolve,r)})});return i&&r(i.error),n.promise}})},function(e,t,n){"use strict";var r=n(282);n(187)("WeakSet",function(t){return function(e){return t(this,0=t.length)return{value:void 0,done:!0}}while(!((e=t[this._i++])in this._t));return{value:e,done:!1}}),r(r.S,"Reflect",{enumerate:function(e){return new o(e)}})},function(e,t,n){var a=n(63),s=n(64),l=n(49),r=n(9),u=n(24),c=n(19);r(r.S,"Reflect",{get:function e(t,n){var r,i,o=arguments.length<3?t:arguments[2];return c(t)===o?t[n]:(r=a.f(t,n))?l(r,"value")?r.value:void 0!==r.get?r.get.call(o):void 0:u(i=s(t))?e(i,n,o):void 0}})},function(e,t,n){var r=n(63),i=n(9),o=n(19);i(i.S,"Reflect",{getOwnPropertyDescriptor:function(e,t){return r.f(o(e),t)}})},function(e,t,n){var r=n(9),i=n(64),o=n(19);r(r.S,"Reflect",{getPrototypeOf:function(e){return i(o(e))}})},function(e,t,n){var r=n(9);r(r.S,"Reflect",{has:function(e,t){return t in e}})},function(e,t,n){var r=n(9),i=n(19),o=Object.isExtensible;r(r.S,"Reflect",{isExtensible:function(e){return i(e),!o||o(e)}})},function(e,t,n){var r=n(9);r(r.S,"Reflect",{ownKeys:n(283)})},function(e,t,n){var r=n(9),i=n(19),o=Object.preventExtensions;r(r.S,"Reflect",{preventExtensions:function(e){i(e);try{return o&&o(e),!0}catch(e){return!1}}})},function(e,t,n){var l=n(37),u=n(63),c=n(64),f=n(49),r=n(9),h=n(90),d=n(19),p=n(24);r(r.S,"Reflect",{set:function e(t,n,r){var i,o,a=arguments.length<4?t:arguments[3],s=u.f(d(t),n);if(!s){if(p(o=c(t)))return e(o,n,r,a);s=h(0)}return f(s,"value")?!(!1===s.writable||!p(a)||((i=u.f(a,n)||h(0)).value=r,l.f(a,n,i),0)):void 0!==s.set&&(s.set.call(a,r),!0)}})},function(e,t,n){var r=n(9),i=n(211);i&&r(r.S,"Reflect",{setPrototypeOf:function(e,t){i.check(e,t);try{return i.set(e,t),!0}catch(e){return!1}}})},function(e,t,n){"use strict";var r=n(9),i=n(180)(!0);r(r.P,"Array",{includes:function(e,t){return i(this,e,1a;)c(o,t=i[a++],r(n,t));return o}})},function(e,t,n){var r=n(9),i=n(285)(!1);r(r.S,"Object",{values:function(e){return i(e)}})},function(e,t,n){var r=n(9),i=n(285)(!0);r(r.S,"Object",{entries:function(e){return i(e)}})},function(e,t,n){"use strict";var r=n(9),i=n(45),o=n(55),a=n(37);n(36)&&r(r.P+n(189),"Object",{__defineGetter__:function(e,t){a.f(i(this),e,{get:o(t),enumerable:!0,configurable:!0})}})},function(e,t,n){"use strict";var r=n(9),i=n(45),o=n(55),a=n(37);n(36)&&r(r.P+n(189),"Object",{__defineSetter__:function(e,t){a.f(i(this),e,{set:o(t),enumerable:!0,configurable:!0})}})},function(e,t,n){"use strict";var r=n(9),i=n(45),o=n(72),a=n(64),s=n(63).f;n(36)&&r(r.P+n(189),"Object",{__lookupGetter__:function(e){var t,n=i(this),r=o(e,!0);do{if(t=s(n,r))return t.get}while(n=a(n))}})},function(e,t,n){"use strict";var r=n(9),i=n(45),o=n(72),a=n(64),s=n(63).f;n(36)&&r(r.P+n(189),"Object",{__lookupSetter__:function(e){var t,n=i(this),r=o(e,!0);do{if(t=s(n,r))return t.set}while(n=a(n))}})},function(e,t,n){var r=n(9);r(r.P+r.R,"Map",{toJSON:n(286)("Map")})},function(e,t,n){var r=n(9);r(r.P+r.R,"Set",{toJSON:n(286)("Set")})},function(e,t,n){var r=n(9);r(r.S,"System",{global:n(20)})},function(e,t,n){var r=n(9),i=n(66);r(r.S,"Error",{isError:function(e){return"Error"===i(e)}})},function(e,t,n){var r=n(9);r(r.S,"Math",{iaddh:function(e,t,n,r){var i=e>>>0,o=n>>>0;return(t>>>0)+(r>>>0)+((i&o|(i|o)&~(i+o>>>0))>>>31)|0}})},function(e,t,n){var r=n(9);r(r.S,"Math",{isubh:function(e,t,n,r){var i=e>>>0,o=n>>>0;return(t>>>0)-(r>>>0)-((~i&o|~(i^o)&i-o>>>0)>>>31)|0}})},function(e,t,n){var r=n(9);r(r.S,"Math",{imulh:function(e,t){var n=+e,r=+t,i=65535&n,o=65535&r,a=n>>16,s=r>>16,l=(a*o>>>0)+(i*o>>>16);return a*s+(l>>16)+((i*s>>>0)+(65535&l)>>16)}})},function(e,t,n){var r=n(9);r(r.S,"Math",{umulh:function(e,t){var n=+e,r=+t,i=65535&n,o=65535&r,a=n>>>16,s=r>>>16,l=(a*o>>>0)+(i*o>>>16);return a*s+(l>>>16)+((i*s>>>0)+(65535&l)>>>16)}})},function(e,t,n){var r=n(82),i=n(19),o=r.key,a=r.set;r.exp({defineMetadata:function(e,t,n,r){a(e,t,i(n),o(r))}})},function(e,t,n){var r=n(82),a=n(19),s=r.key,l=r.map,u=r.store;r.exp({deleteMetadata:function(e,t,n){var r,i=arguments.length<3?void 0:s(n),o=l(a(t),i,!1);return!(void 0===o||!o.delete(e))&&(!!o.size||((r=u.get(t)).delete(i),!!r.size||u.delete(t)))}})},function(e,t,n){var r=n(82),i=n(19),o=n(64),a=r.has,s=r.get,l=r.key,u=function(e,t,n){var r,i=a(e,t,n);return i?s(e,t,n):null!==(r=o(t))?u(e,r,n):void 0};r.exp({getMetadata:function(e,t,n){return u(e,i(t),arguments.length<3?void 0:l(n))}})},function(e,t,n){var o=n(280),a=n(287),r=n(82),i=n(19),s=n(64),l=r.keys,u=r.key,c=function(e,t){var n,r=l(e,t),i=s(e);return null===i?r:(n=c(i,t)).length?r.length?a(new o(r.concat(n))):n:r};r.exp({getMetadataKeys:function(e,t){return c(i(e),arguments.length<2?void 0:u(t))}})},function(e,t,n){var r=n(82),i=n(19),o=r.get,a=r.key;r.exp({getOwnMetadata:function(e,t,n){return o(e,i(t),arguments.length<3?void 0:a(n))}})},function(e,t,n){var r=n(82),i=n(19),o=r.keys,a=r.key;r.exp({getOwnMetadataKeys:function(e,t){return o(i(e),arguments.length<2?void 0:a(t))}})},function(e,t,n){var r=n(82),i=n(19),o=n(64),a=r.has,s=r.key,l=function(e,t,n){var r,i=a(e,t,n);return!!i||null!==(r=o(t))&&l(e,r,n)};r.exp({hasMetadata:function(e,t,n){return l(e,i(t),arguments.length<3?void 0:s(n))}})},function(e,t,n){var r=n(82),i=n(19),o=r.has,a=r.key;r.exp({hasOwnMetadata:function(e,t,n){return o(e,i(t),arguments.length<3?void 0:a(n))}})},function(e,t,n){var r=n(82),i=n(19),o=n(55),a=r.key,s=r.set;r.exp({metadata:function(n,r){return function(e,t){s(n,r,(void 0!==t?i:o)(e),a(t))}}})},function(e,t,n){var r=n(9),i=n(229)(),o=n(20).process,a="process"==n(66)(o);r(r.G,{asap:function(e){var t=a&&o.domain;i(t?t.bind(e):e)}})},function(e,t,n){"use strict";var i,o,r=n(9),a=n(20),s=n(79),l=n(229)(),u=n(28)("observable"),c=n(55),f=n(19),h=n(110),d=n(111),p=n(53),g=n(135),v=g.RETURN,m=function(e){return null==e?void 0:c(e)},y=function(e){var t=e._c;t&&(e._c=void 0,t())},b=function(e){return void 0===e._o},w=function(e){b(e)||(e._o=void 0,y(e))},x=function(t,e){f(t),this._c=void 0,this._o=t,t=new i(this);try{var n=e(t),r=n;null!=n&&("function"==typeof n.unsubscribe?n=function(){r.unsubscribe()}:c(n),this._c=n)}catch(e){return void t.error(e)}b(this)&&y(this)};x.prototype=d({},{unsubscribe:function(){w(this)}}),(i=function(e){this._s=e}).prototype=d({},{next:function(e){var t,n,r=this._s;if(!b(r)){t=r._o;try{if(n=m(t.next))return n.call(t,e)}catch(e){try{w(r)}finally{throw e}}}},error:function(e){var t,n,r=this._s;if(b(r))throw e;t=r._o,r._o=void 0;try{if(!(n=m(t.error)))throw e;e=n.call(t,e)}catch(e){try{y(r)}finally{throw e}}return y(r),e},complete:function(e){var t,n,r=this._s;if(!b(r)){t=r._o,r._o=void 0;try{e=(n=m(t.complete))?n.call(t,e):void 0}catch(e){try{y(r)}finally{throw e}}return y(r),e}}}),d((o=function(e){h(this,o,"Observable","_f")._f=c(e)}).prototype,{subscribe:function(e){return new x(e,this._f)},forEach:function(r){var i=this;return new(s.Promise||a.Promise)(function(e,t){c(r);var n=i.subscribe({next:function(e){try{return r(e)}catch(e){t(e),n.unsubscribe()}},error:t,complete:e})})}}),d(o,{from:function(e){var t,n="function"==typeof this?this:o,r=m(f(e)[u]);return r?(t=f(r.call(e))).constructor===n?t:new n(function(e){return t.subscribe(e)}):new n(function(t){var n=!1;return l(function(){if(!n){try{if(g(e,!1,function(e){if(t.next(e),n)return v})===v)return}catch(e){if(n)throw e;return void t.error(e)}t.complete()}}),function(){n=!0}})},of:function(){for(var e=0,t=arguments.length,r=Array(t);e