var Events=function(){function ti(ni,oi){oi===void 0&&(oi=[]),this._eventType=ni,this._eventFunctions=oi}return ti.prototype.init=function(){var ni=this;this._eventFunctions.forEach(function(oi){typeof window<"u"&&window.addEventListener(ni._eventType,oi)})},ti}(),Instances=function(){function ti(){this._instances={Accordion:{},Carousel:{},Collapse:{},Dial:{},Dismiss:{},Drawer:{},Dropdown:{},Modal:{},Popover:{},Tabs:{},Tooltip:{},InputCounter:{},CopyClipboard:{}}}return ti.prototype.addInstance=function(ni,oi,ui,fi){if(fi===void 0&&(fi=!1),!this._instances[ni])return console.warn("Flowbite: Component ".concat(ni," does not exist.")),!1;if(this._instances[ni][ui]&&!fi){console.warn("Flowbite: Instance with ID ".concat(ui," already exists."));return}fi&&this._instances[ni][ui]&&this._instances[ni][ui].destroyAndRemoveInstance(),this._instances[ni][ui||this._generateRandomId()]=oi},ti.prototype.getAllInstances=function(){return this._instances},ti.prototype.getInstances=function(ni){return this._instances[ni]?this._instances[ni]:(console.warn("Flowbite: Component ".concat(ni," does not exist.")),!1)},ti.prototype.getInstance=function(ni,oi){if(this._componentAndInstanceCheck(ni,oi)){if(!this._instances[ni][oi]){console.warn("Flowbite: Instance with ID ".concat(oi," does not exist."));return}return this._instances[ni][oi]}},ti.prototype.destroyAndRemoveInstance=function(ni,oi){this._componentAndInstanceCheck(ni,oi)&&(this.destroyInstanceObject(ni,oi),this.removeInstance(ni,oi))},ti.prototype.removeInstance=function(ni,oi){this._componentAndInstanceCheck(ni,oi)&&delete this._instances[ni][oi]},ti.prototype.destroyInstanceObject=function(ni,oi){this._componentAndInstanceCheck(ni,oi)&&this._instances[ni][oi].destroy()},ti.prototype.instanceExists=function(ni,oi){return!(!this._instances[ni]||!this._instances[ni][oi])},ti.prototype._generateRandomId=function(){return Math.random().toString(36).substr(2,9)},ti.prototype._componentAndInstanceCheck=function(ni,oi){return this._instances[ni]?this._instances[ni][oi]?!0:(console.warn("Flowbite: Instance with ID ".concat(oi," does not exist.")),!1):(console.warn("Flowbite: Component ".concat(ni," does not exist.")),!1)},ti}(),instances=new Instances;typeof window<"u"&&(window.FlowbiteInstances=instances);var __assign$c=globalThis&&globalThis.__assign||function(){return __assign$c=Object.assign||function(ti){for(var ni,oi=1,ui=arguments.length;oi"u")return!1;var ni=getWindow(ti).ShadowRoot;return ti instanceof ni||ti instanceof ShadowRoot}function applyStyles(ti){var ni=ti.state;Object.keys(ni.elements).forEach(function(oi){var ui=ni.styles[oi]||{},fi=ni.attributes[oi]||{},mi=ni.elements[oi];!isHTMLElement(mi)||!getNodeName(mi)||(Object.assign(mi.style,ui),Object.keys(fi).forEach(function(gi){var di=fi[gi];di===!1?mi.removeAttribute(gi):mi.setAttribute(gi,di===!0?"":di)}))})}function effect$3(ti){var ni=ti.state,oi={popper:{position:ni.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(ni.elements.popper.style,oi.popper),ni.styles=oi,ni.elements.arrow&&Object.assign(ni.elements.arrow.style,oi.arrow),function(){Object.keys(ni.elements).forEach(function(ui){var fi=ni.elements[ui],mi=ni.attributes[ui]||{},gi=Object.keys(ni.styles.hasOwnProperty(ui)?ni.styles[ui]:oi[ui]),di=gi.reduce(function(li,ci){return li[ci]="",li},{});!isHTMLElement(fi)||!getNodeName(fi)||(Object.assign(fi.style,di),Object.keys(mi).forEach(function(li){fi.removeAttribute(li)}))})}}const applyStyles$1={name:"applyStyles",enabled:!0,phase:"write",fn:applyStyles,effect:effect$3,requires:["computeStyles"]};function getBasePlacement$1(ti){return ti.split("-")[0]}var max=Math.max,min=Math.min,round=Math.round;function getUAString(){var ti=navigator.userAgentData;return ti!=null&&ti.brands&&Array.isArray(ti.brands)?ti.brands.map(function(ni){return ni.brand+"/"+ni.version}).join(" "):navigator.userAgent}function isLayoutViewport(){return!/^((?!chrome|android).)*safari/i.test(getUAString())}function getBoundingClientRect(ti,ni,oi){ni===void 0&&(ni=!1),oi===void 0&&(oi=!1);var ui=ti.getBoundingClientRect(),fi=1,mi=1;ni&&isHTMLElement(ti)&&(fi=ti.offsetWidth>0&&round(ui.width)/ti.offsetWidth||1,mi=ti.offsetHeight>0&&round(ui.height)/ti.offsetHeight||1);var gi=isElement$1(ti)?getWindow(ti):window,di=gi.visualViewport,li=!isLayoutViewport()&&oi,ci=(ui.left+(li&&di?di.offsetLeft:0))/fi,pi=(ui.top+(li&&di?di.offsetTop:0))/mi,bi=ui.width/fi,vi=ui.height/mi;return{width:bi,height:vi,top:pi,right:ci+bi,bottom:pi+vi,left:ci,x:ci,y:pi}}function getLayoutRect(ti){var ni=getBoundingClientRect(ti),oi=ti.offsetWidth,ui=ti.offsetHeight;return Math.abs(ni.width-oi)<=1&&(oi=ni.width),Math.abs(ni.height-ui)<=1&&(ui=ni.height),{x:ti.offsetLeft,y:ti.offsetTop,width:oi,height:ui}}function contains(ti,ni){var oi=ni.getRootNode&&ni.getRootNode();if(ti.contains(ni))return!0;if(oi&&isShadowRoot(oi)){var ui=ni;do{if(ui&&ti.isSameNode(ui))return!0;ui=ui.parentNode||ui.host}while(ui)}return!1}function getComputedStyle$1(ti){return getWindow(ti).getComputedStyle(ti)}function isTableElement(ti){return["table","td","th"].indexOf(getNodeName(ti))>=0}function getDocumentElement(ti){return((isElement$1(ti)?ti.ownerDocument:ti.document)||window.document).documentElement}function getParentNode(ti){return getNodeName(ti)==="html"?ti:ti.assignedSlot||ti.parentNode||(isShadowRoot(ti)?ti.host:null)||getDocumentElement(ti)}function getTrueOffsetParent(ti){return!isHTMLElement(ti)||getComputedStyle$1(ti).position==="fixed"?null:ti.offsetParent}function getContainingBlock(ti){var ni=/firefox/i.test(getUAString()),oi=/Trident/i.test(getUAString());if(oi&&isHTMLElement(ti)){var ui=getComputedStyle$1(ti);if(ui.position==="fixed")return null}var fi=getParentNode(ti);for(isShadowRoot(fi)&&(fi=fi.host);isHTMLElement(fi)&&["html","body"].indexOf(getNodeName(fi))<0;){var mi=getComputedStyle$1(fi);if(mi.transform!=="none"||mi.perspective!=="none"||mi.contain==="paint"||["transform","perspective"].indexOf(mi.willChange)!==-1||ni&&mi.willChange==="filter"||ni&&mi.filter&&mi.filter!=="none")return fi;fi=fi.parentNode}return null}function getOffsetParent(ti){for(var ni=getWindow(ti),oi=getTrueOffsetParent(ti);oi&&isTableElement(oi)&&getComputedStyle$1(oi).position==="static";)oi=getTrueOffsetParent(oi);return oi&&(getNodeName(oi)==="html"||getNodeName(oi)==="body"&&getComputedStyle$1(oi).position==="static")?ni:oi||getContainingBlock(ti)||ni}function getMainAxisFromPlacement(ti){return["top","bottom"].indexOf(ti)>=0?"x":"y"}function within(ti,ni,oi){return max(ti,min(ni,oi))}function withinMaxClamp(ti,ni,oi){var ui=within(ti,ni,oi);return ui>oi?oi:ui}function getFreshSideObject(){return{top:0,right:0,bottom:0,left:0}}function mergePaddingObject(ti){return Object.assign({},getFreshSideObject(),ti)}function expandToHashMap(ti,ni){return ni.reduce(function(oi,ui){return oi[ui]=ti,oi},{})}var toPaddingObject=function(ni,oi){return ni=typeof ni=="function"?ni(Object.assign({},oi.rects,{placement:oi.placement})):ni,mergePaddingObject(typeof ni!="number"?ni:expandToHashMap(ni,basePlacements))};function arrow(ti){var ni,oi=ti.state,ui=ti.name,fi=ti.options,mi=oi.elements.arrow,gi=oi.modifiersData.popperOffsets,di=getBasePlacement$1(oi.placement),li=getMainAxisFromPlacement(di),ci=[left,right].indexOf(di)>=0,pi=ci?"height":"width";if(!(!mi||!gi)){var bi=toPaddingObject(fi.padding,oi),vi=getLayoutRect(mi),Ai=li==="y"?top:left,Li=li==="y"?bottom:right,Bi=oi.rects.reference[pi]+oi.rects.reference[li]-gi[li]-oi.rects.popper[pi],Ri=gi[li]-oi.rects.reference[li],zi=getOffsetParent(mi),Ei=zi?li==="y"?zi.clientHeight||0:zi.clientWidth||0:0,Ii=Bi/2-Ri/2,ki=bi[Ai],Ti=Ei-vi[pi]-bi[Li],Pi=Ei/2-vi[pi]/2+Ii,ji=within(ki,Pi,Ti),Di=li;oi.modifiersData[ui]=(ni={},ni[Di]=ji,ni.centerOffset=ji-Pi,ni)}}function effect$2(ti){var ni=ti.state,oi=ti.options,ui=oi.element,fi=ui===void 0?"[data-popper-arrow]":ui;fi!=null&&(typeof fi=="string"&&(fi=ni.elements.popper.querySelector(fi),!fi)||contains(ni.elements.popper,fi)&&(ni.elements.arrow=fi))}const arrow$1={name:"arrow",enabled:!0,phase:"main",fn:arrow,effect:effect$2,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function getVariation(ti){return ti.split("-")[1]}var unsetSides={top:"auto",right:"auto",bottom:"auto",left:"auto"};function roundOffsetsByDPR(ti,ni){var oi=ti.x,ui=ti.y,fi=ni.devicePixelRatio||1;return{x:round(oi*fi)/fi||0,y:round(ui*fi)/fi||0}}function mapToStyles(ti){var ni,oi=ti.popper,ui=ti.popperRect,fi=ti.placement,mi=ti.variation,gi=ti.offsets,di=ti.position,li=ti.gpuAcceleration,ci=ti.adaptive,pi=ti.roundOffsets,bi=ti.isFixed,vi=gi.x,Ai=vi===void 0?0:vi,Li=gi.y,Bi=Li===void 0?0:Li,Ri=typeof pi=="function"?pi({x:Ai,y:Bi}):{x:Ai,y:Bi};Ai=Ri.x,Bi=Ri.y;var zi=gi.hasOwnProperty("x"),Ei=gi.hasOwnProperty("y"),Ii=left,ki=top,Ti=window;if(ci){var Pi=getOffsetParent(oi),ji="clientHeight",Di="clientWidth";if(Pi===getWindow(oi)&&(Pi=getDocumentElement(oi),getComputedStyle$1(Pi).position!=="static"&&di==="absolute"&&(ji="scrollHeight",Di="scrollWidth")),Pi=Pi,fi===top||(fi===left||fi===right)&&mi===end){ki=bottom;var Ni=bi&&Pi===Ti&&Ti.visualViewport?Ti.visualViewport.height:Pi[ji];Bi-=Ni-ui.height,Bi*=li?1:-1}if(fi===left||(fi===top||fi===bottom)&&mi===end){Ii=right;var qi=bi&&Pi===Ti&&Ti.visualViewport?Ti.visualViewport.width:Pi[Di];Ai-=qi-ui.width,Ai*=li?1:-1}}var Ji=Object.assign({position:di},ci&&unsetSides),sn=pi===!0?roundOffsetsByDPR({x:Ai,y:Bi},getWindow(oi)):{x:Ai,y:Bi};if(Ai=sn.x,Bi=sn.y,li){var en;return Object.assign({},Ji,(en={},en[ki]=Ei?"0":"",en[Ii]=zi?"0":"",en.transform=(Ti.devicePixelRatio||1)<=1?"translate("+Ai+"px, "+Bi+"px)":"translate3d("+Ai+"px, "+Bi+"px, 0)",en))}return Object.assign({},Ji,(ni={},ni[ki]=Ei?Bi+"px":"",ni[Ii]=zi?Ai+"px":"",ni.transform="",ni))}function computeStyles(ti){var ni=ti.state,oi=ti.options,ui=oi.gpuAcceleration,fi=ui===void 0?!0:ui,mi=oi.adaptive,gi=mi===void 0?!0:mi,di=oi.roundOffsets,li=di===void 0?!0:di,ci={placement:getBasePlacement$1(ni.placement),variation:getVariation(ni.placement),popper:ni.elements.popper,popperRect:ni.rects.popper,gpuAcceleration:fi,isFixed:ni.options.strategy==="fixed"};ni.modifiersData.popperOffsets!=null&&(ni.styles.popper=Object.assign({},ni.styles.popper,mapToStyles(Object.assign({},ci,{offsets:ni.modifiersData.popperOffsets,position:ni.options.strategy,adaptive:gi,roundOffsets:li})))),ni.modifiersData.arrow!=null&&(ni.styles.arrow=Object.assign({},ni.styles.arrow,mapToStyles(Object.assign({},ci,{offsets:ni.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:li})))),ni.attributes.popper=Object.assign({},ni.attributes.popper,{"data-popper-placement":ni.placement})}const computeStyles$1={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:computeStyles,data:{}};var passive={passive:!0};function effect$1(ti){var ni=ti.state,oi=ti.instance,ui=ti.options,fi=ui.scroll,mi=fi===void 0?!0:fi,gi=ui.resize,di=gi===void 0?!0:gi,li=getWindow(ni.elements.popper),ci=[].concat(ni.scrollParents.reference,ni.scrollParents.popper);return mi&&ci.forEach(function(pi){pi.addEventListener("scroll",oi.update,passive)}),di&&li.addEventListener("resize",oi.update,passive),function(){mi&&ci.forEach(function(pi){pi.removeEventListener("scroll",oi.update,passive)}),di&&li.removeEventListener("resize",oi.update,passive)}}const eventListeners={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:effect$1,data:{}};var hash$1={left:"right",right:"left",bottom:"top",top:"bottom"};function getOppositePlacement(ti){return ti.replace(/left|right|bottom|top/g,function(ni){return hash$1[ni]})}var hash={start:"end",end:"start"};function getOppositeVariationPlacement(ti){return ti.replace(/start|end/g,function(ni){return hash[ni]})}function getWindowScroll(ti){var ni=getWindow(ti),oi=ni.pageXOffset,ui=ni.pageYOffset;return{scrollLeft:oi,scrollTop:ui}}function getWindowScrollBarX(ti){return getBoundingClientRect(getDocumentElement(ti)).left+getWindowScroll(ti).scrollLeft}function getViewportRect(ti,ni){var oi=getWindow(ti),ui=getDocumentElement(ti),fi=oi.visualViewport,mi=ui.clientWidth,gi=ui.clientHeight,di=0,li=0;if(fi){mi=fi.width,gi=fi.height;var ci=isLayoutViewport();(ci||!ci&&ni==="fixed")&&(di=fi.offsetLeft,li=fi.offsetTop)}return{width:mi,height:gi,x:di+getWindowScrollBarX(ti),y:li}}function getDocumentRect(ti){var ni,oi=getDocumentElement(ti),ui=getWindowScroll(ti),fi=(ni=ti.ownerDocument)==null?void 0:ni.body,mi=max(oi.scrollWidth,oi.clientWidth,fi?fi.scrollWidth:0,fi?fi.clientWidth:0),gi=max(oi.scrollHeight,oi.clientHeight,fi?fi.scrollHeight:0,fi?fi.clientHeight:0),di=-ui.scrollLeft+getWindowScrollBarX(ti),li=-ui.scrollTop;return getComputedStyle$1(fi||oi).direction==="rtl"&&(di+=max(oi.clientWidth,fi?fi.clientWidth:0)-mi),{width:mi,height:gi,x:di,y:li}}function isScrollParent(ti){var ni=getComputedStyle$1(ti),oi=ni.overflow,ui=ni.overflowX,fi=ni.overflowY;return/auto|scroll|overlay|hidden/.test(oi+fi+ui)}function getScrollParent(ti){return["html","body","#document"].indexOf(getNodeName(ti))>=0?ti.ownerDocument.body:isHTMLElement(ti)&&isScrollParent(ti)?ti:getScrollParent(getParentNode(ti))}function listScrollParents(ti,ni){var oi;ni===void 0&&(ni=[]);var ui=getScrollParent(ti),fi=ui===((oi=ti.ownerDocument)==null?void 0:oi.body),mi=getWindow(ui),gi=fi?[mi].concat(mi.visualViewport||[],isScrollParent(ui)?ui:[]):ui,di=ni.concat(gi);return fi?di:di.concat(listScrollParents(getParentNode(gi)))}function rectToClientRect(ti){return Object.assign({},ti,{left:ti.x,top:ti.y,right:ti.x+ti.width,bottom:ti.y+ti.height})}function getInnerBoundingClientRect(ti,ni){var oi=getBoundingClientRect(ti,!1,ni==="fixed");return oi.top=oi.top+ti.clientTop,oi.left=oi.left+ti.clientLeft,oi.bottom=oi.top+ti.clientHeight,oi.right=oi.left+ti.clientWidth,oi.width=ti.clientWidth,oi.height=ti.clientHeight,oi.x=oi.left,oi.y=oi.top,oi}function getClientRectFromMixedType(ti,ni,oi){return ni===viewport?rectToClientRect(getViewportRect(ti,oi)):isElement$1(ni)?getInnerBoundingClientRect(ni,oi):rectToClientRect(getDocumentRect(getDocumentElement(ti)))}function getClippingParents(ti){var ni=listScrollParents(getParentNode(ti)),oi=["absolute","fixed"].indexOf(getComputedStyle$1(ti).position)>=0,ui=oi&&isHTMLElement(ti)?getOffsetParent(ti):ti;return isElement$1(ui)?ni.filter(function(fi){return isElement$1(fi)&&contains(fi,ui)&&getNodeName(fi)!=="body"}):[]}function getClippingRect(ti,ni,oi,ui){var fi=ni==="clippingParents"?getClippingParents(ti):[].concat(ni),mi=[].concat(fi,[oi]),gi=mi[0],di=mi.reduce(function(li,ci){var pi=getClientRectFromMixedType(ti,ci,ui);return li.top=max(pi.top,li.top),li.right=min(pi.right,li.right),li.bottom=min(pi.bottom,li.bottom),li.left=max(pi.left,li.left),li},getClientRectFromMixedType(ti,gi,ui));return di.width=di.right-di.left,di.height=di.bottom-di.top,di.x=di.left,di.y=di.top,di}function computeOffsets(ti){var ni=ti.reference,oi=ti.element,ui=ti.placement,fi=ui?getBasePlacement$1(ui):null,mi=ui?getVariation(ui):null,gi=ni.x+ni.width/2-oi.width/2,di=ni.y+ni.height/2-oi.height/2,li;switch(fi){case top:li={x:gi,y:ni.y-oi.height};break;case bottom:li={x:gi,y:ni.y+ni.height};break;case right:li={x:ni.x+ni.width,y:di};break;case left:li={x:ni.x-oi.width,y:di};break;default:li={x:ni.x,y:ni.y}}var ci=fi?getMainAxisFromPlacement(fi):null;if(ci!=null){var pi=ci==="y"?"height":"width";switch(mi){case start$1:li[ci]=li[ci]-(ni[pi]/2-oi[pi]/2);break;case end:li[ci]=li[ci]+(ni[pi]/2-oi[pi]/2);break}}return li}function detectOverflow(ti,ni){ni===void 0&&(ni={});var oi=ni,ui=oi.placement,fi=ui===void 0?ti.placement:ui,mi=oi.strategy,gi=mi===void 0?ti.strategy:mi,di=oi.boundary,li=di===void 0?clippingParents:di,ci=oi.rootBoundary,pi=ci===void 0?viewport:ci,bi=oi.elementContext,vi=bi===void 0?popper:bi,Ai=oi.altBoundary,Li=Ai===void 0?!1:Ai,Bi=oi.padding,Ri=Bi===void 0?0:Bi,zi=mergePaddingObject(typeof Ri!="number"?Ri:expandToHashMap(Ri,basePlacements)),Ei=vi===popper?reference:popper,Ii=ti.rects.popper,ki=ti.elements[Li?Ei:vi],Ti=getClippingRect(isElement$1(ki)?ki:ki.contextElement||getDocumentElement(ti.elements.popper),li,pi,gi),Pi=getBoundingClientRect(ti.elements.reference),ji=computeOffsets({reference:Pi,element:Ii,strategy:"absolute",placement:fi}),Di=rectToClientRect(Object.assign({},Ii,ji)),Ni=vi===popper?Di:Pi,qi={top:Ti.top-Ni.top+zi.top,bottom:Ni.bottom-Ti.bottom+zi.bottom,left:Ti.left-Ni.left+zi.left,right:Ni.right-Ti.right+zi.right},Ji=ti.modifiersData.offset;if(vi===popper&&Ji){var sn=Ji[fi];Object.keys(qi).forEach(function(en){var rn=[right,bottom].indexOf(en)>=0?1:-1,fn=[top,bottom].indexOf(en)>=0?"y":"x";qi[en]+=sn[fn]*rn})}return qi}function computeAutoPlacement(ti,ni){ni===void 0&&(ni={});var oi=ni,ui=oi.placement,fi=oi.boundary,mi=oi.rootBoundary,gi=oi.padding,di=oi.flipVariations,li=oi.allowedAutoPlacements,ci=li===void 0?placements:li,pi=getVariation(ui),bi=pi?di?variationPlacements:variationPlacements.filter(function(Li){return getVariation(Li)===pi}):basePlacements,vi=bi.filter(function(Li){return ci.indexOf(Li)>=0});vi.length===0&&(vi=bi);var Ai=vi.reduce(function(Li,Bi){return Li[Bi]=detectOverflow(ti,{placement:Bi,boundary:fi,rootBoundary:mi,padding:gi})[getBasePlacement$1(Bi)],Li},{});return Object.keys(Ai).sort(function(Li,Bi){return Ai[Li]-Ai[Bi]})}function getExpandedFallbackPlacements(ti){if(getBasePlacement$1(ti)===auto)return[];var ni=getOppositePlacement(ti);return[getOppositeVariationPlacement(ti),ni,getOppositeVariationPlacement(ni)]}function flip(ti){var ni=ti.state,oi=ti.options,ui=ti.name;if(!ni.modifiersData[ui]._skip){for(var fi=oi.mainAxis,mi=fi===void 0?!0:fi,gi=oi.altAxis,di=gi===void 0?!0:gi,li=oi.fallbackPlacements,ci=oi.padding,pi=oi.boundary,bi=oi.rootBoundary,vi=oi.altBoundary,Ai=oi.flipVariations,Li=Ai===void 0?!0:Ai,Bi=oi.allowedAutoPlacements,Ri=ni.options.placement,zi=getBasePlacement$1(Ri),Ei=zi===Ri,Ii=li||(Ei||!Li?[getOppositePlacement(Ri)]:getExpandedFallbackPlacements(Ri)),ki=[Ri].concat(Ii).reduce(function(gn,wn){return gn.concat(getBasePlacement$1(wn)===auto?computeAutoPlacement(ni,{placement:wn,boundary:pi,rootBoundary:bi,padding:ci,flipVariations:Li,allowedAutoPlacements:Bi}):wn)},[]),Ti=ni.rects.reference,Pi=ni.rects.popper,ji=new Map,Di=!0,Ni=ki[0],qi=0;qi=0,fn=rn?"width":"height",vn=detectOverflow(ni,{placement:Ji,boundary:pi,rootBoundary:bi,altBoundary:vi,padding:ci}),bn=rn?en?right:left:en?bottom:top;Ti[fn]>Pi[fn]&&(bn=getOppositePlacement(bn));var An=getOppositePlacement(bn),_n=[];if(mi&&_n.push(vn[sn]<=0),di&&_n.push(vn[bn]<=0,vn[An]<=0),_n.every(function(gn){return gn})){Ni=Ji,Di=!1;break}ji.set(Ji,_n)}if(Di)for(var dn=Li?3:1,tn=function(wn){var Sn=ki.find(function(pn){var Ln=ji.get(pn);if(Ln)return Ln.slice(0,wn).every(function(Rn){return Rn})});if(Sn)return Ni=Sn,"break"},cn=dn;cn>0;cn--){var un=tn(cn);if(un==="break")break}ni.placement!==Ni&&(ni.modifiersData[ui]._skip=!0,ni.placement=Ni,ni.reset=!0)}}const flip$1={name:"flip",enabled:!0,phase:"main",fn:flip,requiresIfExists:["offset"],data:{_skip:!1}};function getSideOffsets(ti,ni,oi){return oi===void 0&&(oi={x:0,y:0}),{top:ti.top-ni.height-oi.y,right:ti.right-ni.width+oi.x,bottom:ti.bottom-ni.height+oi.y,left:ti.left-ni.width-oi.x}}function isAnySideFullyClipped(ti){return[top,right,bottom,left].some(function(ni){return ti[ni]>=0})}function hide(ti){var ni=ti.state,oi=ti.name,ui=ni.rects.reference,fi=ni.rects.popper,mi=ni.modifiersData.preventOverflow,gi=detectOverflow(ni,{elementContext:"reference"}),di=detectOverflow(ni,{altBoundary:!0}),li=getSideOffsets(gi,ui),ci=getSideOffsets(di,fi,mi),pi=isAnySideFullyClipped(li),bi=isAnySideFullyClipped(ci);ni.modifiersData[oi]={referenceClippingOffsets:li,popperEscapeOffsets:ci,isReferenceHidden:pi,hasPopperEscaped:bi},ni.attributes.popper=Object.assign({},ni.attributes.popper,{"data-popper-reference-hidden":pi,"data-popper-escaped":bi})}const hide$1={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:hide};function distanceAndSkiddingToXY(ti,ni,oi){var ui=getBasePlacement$1(ti),fi=[left,top].indexOf(ui)>=0?-1:1,mi=typeof oi=="function"?oi(Object.assign({},ni,{placement:ti})):oi,gi=mi[0],di=mi[1];return gi=gi||0,di=(di||0)*fi,[left,right].indexOf(ui)>=0?{x:di,y:gi}:{x:gi,y:di}}function offset(ti){var ni=ti.state,oi=ti.options,ui=ti.name,fi=oi.offset,mi=fi===void 0?[0,0]:fi,gi=placements.reduce(function(pi,bi){return pi[bi]=distanceAndSkiddingToXY(bi,ni.rects,mi),pi},{}),di=gi[ni.placement],li=di.x,ci=di.y;ni.modifiersData.popperOffsets!=null&&(ni.modifiersData.popperOffsets.x+=li,ni.modifiersData.popperOffsets.y+=ci),ni.modifiersData[ui]=gi}const offset$1={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:offset};function popperOffsets(ti){var ni=ti.state,oi=ti.name;ni.modifiersData[oi]=computeOffsets({reference:ni.rects.reference,element:ni.rects.popper,strategy:"absolute",placement:ni.placement})}const popperOffsets$1={name:"popperOffsets",enabled:!0,phase:"read",fn:popperOffsets,data:{}};function getAltAxis(ti){return ti==="x"?"y":"x"}function preventOverflow(ti){var ni=ti.state,oi=ti.options,ui=ti.name,fi=oi.mainAxis,mi=fi===void 0?!0:fi,gi=oi.altAxis,di=gi===void 0?!1:gi,li=oi.boundary,ci=oi.rootBoundary,pi=oi.altBoundary,bi=oi.padding,vi=oi.tether,Ai=vi===void 0?!0:vi,Li=oi.tetherOffset,Bi=Li===void 0?0:Li,Ri=detectOverflow(ni,{boundary:li,rootBoundary:ci,padding:bi,altBoundary:pi}),zi=getBasePlacement$1(ni.placement),Ei=getVariation(ni.placement),Ii=!Ei,ki=getMainAxisFromPlacement(zi),Ti=getAltAxis(ki),Pi=ni.modifiersData.popperOffsets,ji=ni.rects.reference,Di=ni.rects.popper,Ni=typeof Bi=="function"?Bi(Object.assign({},ni.rects,{placement:ni.placement})):Bi,qi=typeof Ni=="number"?{mainAxis:Ni,altAxis:Ni}:Object.assign({mainAxis:0,altAxis:0},Ni),Ji=ni.modifiersData.offset?ni.modifiersData.offset[ni.placement]:null,sn={x:0,y:0};if(Pi){if(mi){var en,rn=ki==="y"?top:left,fn=ki==="y"?bottom:right,vn=ki==="y"?"height":"width",bn=Pi[ki],An=bn+Ri[rn],_n=bn-Ri[fn],dn=Ai?-Di[vn]/2:0,tn=Ei===start$1?ji[vn]:Di[vn],cn=Ei===start$1?-Di[vn]:-ji[vn],un=ni.elements.arrow,gn=Ai&&un?getLayoutRect(un):{width:0,height:0},wn=ni.modifiersData["arrow#persistent"]?ni.modifiersData["arrow#persistent"].padding:getFreshSideObject(),Sn=wn[rn],pn=wn[fn],Ln=within(0,ji[vn],gn[vn]),Rn=Ii?ji[vn]/2-dn-Ln-Sn-qi.mainAxis:tn-Ln-Sn-qi.mainAxis,Hn=Ii?-ji[vn]/2+dn+Ln+pn+qi.mainAxis:cn+Ln+pn+qi.mainAxis,zn=ni.elements.arrow&&getOffsetParent(ni.elements.arrow),Tn=zn?ki==="y"?zn.clientTop||0:zn.clientLeft||0:0,Dn=(en=Ji==null?void 0:Ji[ki])!=null?en:0,Wn=bn+Rn-Dn-Tn,Yr=bn+Hn-Dn,Gr=within(Ai?min(An,Wn):An,bn,Ai?max(_n,Yr):_n);Pi[ki]=Gr,sn[ki]=Gr-bn}if(di){var Jn,Zr=ki==="x"?top:left,ns=ki==="x"?bottom:right,es=Pi[Ti],cs=Ti==="y"?"height":"width",xs=es+Ri[Zr],gs=es-Ri[ns],ps=[top,left].indexOf(zi)!==-1,Cs=(Jn=Ji==null?void 0:Ji[Ti])!=null?Jn:0,ms=ps?xs:es-ji[cs]-Di[cs]-Cs+qi.altAxis,Es=ps?es+ji[cs]+Di[cs]-Cs-qi.altAxis:gs,ys=Ai&&ps?withinMaxClamp(ms,es,Es):within(Ai?ms:xs,es,Ai?Es:gs);Pi[Ti]=ys,sn[Ti]=ys-es}ni.modifiersData[ui]=sn}}const preventOverflow$1={name:"preventOverflow",enabled:!0,phase:"main",fn:preventOverflow,requiresIfExists:["offset"]};function getHTMLElementScroll(ti){return{scrollLeft:ti.scrollLeft,scrollTop:ti.scrollTop}}function getNodeScroll(ti){return ti===getWindow(ti)||!isHTMLElement(ti)?getWindowScroll(ti):getHTMLElementScroll(ti)}function isElementScaled(ti){var ni=ti.getBoundingClientRect(),oi=round(ni.width)/ti.offsetWidth||1,ui=round(ni.height)/ti.offsetHeight||1;return oi!==1||ui!==1}function getCompositeRect(ti,ni,oi){oi===void 0&&(oi=!1);var ui=isHTMLElement(ni),fi=isHTMLElement(ni)&&isElementScaled(ni),mi=getDocumentElement(ni),gi=getBoundingClientRect(ti,fi,oi),di={scrollLeft:0,scrollTop:0},li={x:0,y:0};return(ui||!ui&&!oi)&&((getNodeName(ni)!=="body"||isScrollParent(mi))&&(di=getNodeScroll(ni)),isHTMLElement(ni)?(li=getBoundingClientRect(ni,!0),li.x+=ni.clientLeft,li.y+=ni.clientTop):mi&&(li.x=getWindowScrollBarX(mi))),{x:gi.left+di.scrollLeft-li.x,y:gi.top+di.scrollTop-li.y,width:gi.width,height:gi.height}}function order(ti){var ni=new Map,oi=new Set,ui=[];ti.forEach(function(mi){ni.set(mi.name,mi)});function fi(mi){oi.add(mi.name);var gi=[].concat(mi.requires||[],mi.requiresIfExists||[]);gi.forEach(function(di){if(!oi.has(di)){var li=ni.get(di);li&&fi(li)}}),ui.push(mi)}return ti.forEach(function(mi){oi.has(mi.name)||fi(mi)}),ui}function orderModifiers(ti){var ni=order(ti);return modifierPhases.reduce(function(oi,ui){return oi.concat(ni.filter(function(fi){return fi.phase===ui}))},[])}function debounce$2(ti){var ni;return function(){return ni||(ni=new Promise(function(oi){Promise.resolve().then(function(){ni=void 0,oi(ti())})})),ni}}function mergeByName(ti){var ni=ti.reduce(function(oi,ui){var fi=oi[ui.name];return oi[ui.name]=fi?Object.assign({},fi,ui,{options:Object.assign({},fi.options,ui.options),data:Object.assign({},fi.data,ui.data)}):ui,oi},{});return Object.keys(ni).map(function(oi){return ni[oi]})}var DEFAULT_OPTIONS={placement:"bottom",modifiers:[],strategy:"absolute"};function areValidElements(){for(var ti=arguments.length,ni=new Array(ti),oi=0;oini._options.maxValue&&(ui.value=ni._options.maxValue.toString()),ni._options.minValue!==null&&parseInt(ui.value)=this._options.maxValue||(this._targetEl.value=(this.getCurrentValue()+1).toString(),this._options.onIncrement(this))},ti.prototype.decrement=function(){this._options.minValue!==null&&this.getCurrentValue()<=this._options.minValue||(this._targetEl.value=(this.getCurrentValue()-1).toString(),this._options.onDecrement(this))},ti.prototype.updateOnIncrement=function(ni){this._options.onIncrement=ni},ti.prototype.updateOnDecrement=function(ni){this._options.onDecrement=ni},ti}();function initInputCounters(){document.querySelectorAll("[data-input-counter]").forEach(function(ti){var ni=ti.id,oi=document.querySelector('[data-input-counter-increment="'+ni+'"]'),ui=document.querySelector('[data-input-counter-decrement="'+ni+'"]'),fi=ti.getAttribute("data-input-counter-min"),mi=ti.getAttribute("data-input-counter-max");ti?instances.instanceExists("InputCounter",ti.getAttribute("id"))||new InputCounter(ti,oi||null,ui||null,{minValue:fi?parseInt(fi):null,maxValue:mi?parseInt(mi):null}):console.error('The target element with id "'.concat(ni,'" does not exist. Please check the data-input-counter attribute.'))})}typeof window<"u"&&(window.InputCounter=InputCounter,window.initInputCounters=initInputCounters);var __assign=globalThis&&globalThis.__assign||function(){return __assign=Object.assign||function(ti){for(var ni,oi=1,ui=arguments.length;oiDi?(Ii[0].setDate(Di,ki),Ii[1].setDate(ji,ki)):Ti===1&&ji0?Li(this,{target:this.inputs[0]}):Pi[1].dates.length>0&&Li(this,{target:this.inputs[1]})}get dates(){return this.datepickers.length===2?[this.datepickers[0].dates[0],this.datepickers[1].dates[0]]:void 0}setOptions(zi){this.allowOneSidedRange=!!zi.allowOneSidedRange;const Ei=vi(zi);this.datepickers[0].setOptions(Ei),this.datepickers[1].setOptions(Ei)}destroy(){this.datepickers[0].destroy(),this.datepickers[1].destroy(),(0,ci.uV)(this),delete this.element.rangepicker}getDates(zi=void 0){const Ei=zi?Ii=>(0,pi.p6)(Ii,zi,this.datepickers[0].config.locale):Ii=>new Date(Ii);return this.dates.map(Ii=>Ii===void 0?Ii:Ei(Ii))}setDates(zi,Ei){const[Ii,ki]=this.datepickers,Ti=this.dates;this._updating=!0,Ii.setDate(zi),ki.setDate(Ei),delete this._updating,ki.dates[0]!==Ti[1]?Li(this,{target:this.inputs[1]}):Ii.dates[0]!==Ti[0]&&Li(this,{target:this.inputs[0]})}}},770:function(gi,di,li){li.d(di,{Z:function(){return Pn}});var ci=li(105),pi=li(560),bi=li(963),vi=li(698);const Ai={en:{days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],daysShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],daysMin:["Su","Mo","Tu","We","Th","Fr","Sa"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],monthsShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],today:"Today",clear:"Clear",titleFormat:"MM y"}};var Bi={autohide:!1,beforeShowDay:null,beforeShowDecade:null,beforeShowMonth:null,beforeShowYear:null,calendarWeeks:!1,clearBtn:!1,dateDelimiter:",",datesDisabled:[],daysOfWeekDisabled:[],daysOfWeekHighlighted:[],defaultViewDate:void 0,disableTouchKeyboard:!1,format:"mm/dd/yyyy",language:"en",maxDate:null,maxNumberOfDates:1,maxView:3,minDate:null,nextArrow:'',orientation:"auto",pickLevel:0,prevArrow:'',showDaysOfWeek:!0,showOnClick:!0,showOnFocus:!0,startView:0,title:"",todayBtn:!1,todayBtnMode:0,todayHighlight:!1,updateOnBlur:!0,weekStart:0};const Ri=document.createRange();function zi(ln){return Ri.createContextualFragment(ln)}function Ei(ln){ln.style.display!=="none"&&(ln.style.display&&(ln.dataset.styleDisplay=ln.style.display),ln.style.display="none")}function Ii(ln){ln.style.display==="none"&&(ln.dataset.styleDisplay?(ln.style.display=ln.dataset.styleDisplay,delete ln.dataset.styleDisplay):ln.style.display="")}function ki(ln){ln.firstChild&&(ln.removeChild(ln.firstChild),ki(ln))}function Ti(ln,Ki){ki(ln),Ki instanceof DocumentFragment?ln.appendChild(Ki):typeof Ki=="string"?ln.appendChild(zi(Ki)):typeof Ki.forEach=="function"&&Ki.forEach(Qi=>{ln.appendChild(Qi)})}const{language:Pi,format:ji,weekStart:Di}=Bi;function Ni(ln,Ki){return ln.length<6&&Ki>=0&&Ki<7?(0,ci.$C)(ln,Ki):ln}function qi(ln){return(ln+6)%7}function Ji(ln,Ki,Qi,hn){const mn=(0,bi.sG)(ln,Ki,Qi);return mn!==void 0?mn:hn}function sn(ln,Ki,Qi=3){const hn=parseInt(ln,10);return hn>=0&&hn<=Qi?hn:Ki}function en(ln,Ki){const Qi=Object.assign({},ln),hn={},mn=Ki.constructor.locales;let{format:En,language:Bn,locale:Mn,maxDate:jn,maxView:Un,minDate:Xn,pickLevel:qn,startView:as,weekStart:Qr}=Ki.config||{};if(Qi.language){let Vn;if(Qi.language!==Bn&&(mn[Qi.language]?Vn=Qi.language:(Vn=Qi.language.split("-")[0],mn[Vn]===void 0&&(Vn=!1))),delete Qi.language,Vn){Bn=hn.language=Vn;const ts=Mn||mn[Pi];Mn=Object.assign({format:ji,weekStart:Di},mn[Pi]),Bn!==Pi&&Object.assign(Mn,mn[Bn]),hn.locale=Mn,En===ts.format&&(En=hn.format=Mn.format),Qr===ts.weekStart&&(Qr=hn.weekStart=Mn.weekStart,hn.weekEnd=qi(Mn.weekStart))}}if(Qi.format){const Vn=typeof Qi.format.toDisplay=="function",ts=typeof Qi.format.toValue=="function",As=bi.CL.test(Qi.format);(Vn&&ts||As)&&(En=hn.format=Qi.format),delete Qi.format}let us=Xn,os=jn;if(Qi.minDate!==void 0&&(us=Qi.minDate===null?(0,pi.by)(0,0,1):Ji(Qi.minDate,En,Mn,us),delete Qi.minDate),Qi.maxDate!==void 0&&(os=Qi.maxDate===null?void 0:Ji(Qi.maxDate,En,Mn,os),delete Qi.maxDate),os{const As=(0,bi.sG)(ts,En,Mn);return As!==void 0?(0,ci.$C)(Vn,As):Vn},[]),delete Qi.datesDisabled),Qi.defaultViewDate!==void 0){const Vn=(0,bi.sG)(Qi.defaultViewDate,En,Mn);Vn!==void 0&&(hn.defaultViewDate=Vn),delete Qi.defaultViewDate}if(Qi.weekStart!==void 0){const Vn=Number(Qi.weekStart)%7;isNaN(Vn)||(Qr=hn.weekStart=Vn,hn.weekEnd=qi(Vn)),delete Qi.weekStart}if(Qi.daysOfWeekDisabled&&(hn.daysOfWeekDisabled=Qi.daysOfWeekDisabled.reduce(Ni,[]),delete Qi.daysOfWeekDisabled),Qi.daysOfWeekHighlighted&&(hn.daysOfWeekHighlighted=Qi.daysOfWeekHighlighted.reduce(Ni,[]),delete Qi.daysOfWeekHighlighted),Qi.maxNumberOfDates!==void 0){const Vn=parseInt(Qi.maxNumberOfDates,10);Vn>=0&&(hn.maxNumberOfDates=Vn,hn.multidate=Vn!==1),delete Qi.maxNumberOfDates}Qi.dateDelimiter&&(hn.dateDelimiter=String(Qi.dateDelimiter),delete Qi.dateDelimiter);let bs=qn;Qi.pickLevel!==void 0&&(bs=sn(Qi.pickLevel,2),delete Qi.pickLevel),bs!==qn&&(qn=hn.pickLevel=bs);let hs=Un;Qi.maxView!==void 0&&(hs=sn(Qi.maxView,Un),delete Qi.maxView),hs=qn>hs?qn:hs,hs!==Un&&(Un=hn.maxView=hs);let Jr=as;if(Qi.startView!==void 0&&(Jr=sn(Qi.startView,Jr),delete Qi.startView),JrUn&&(Jr=Un),Jr!==as&&(hn.startView=Jr),Qi.prevArrow){const Vn=zi(Qi.prevArrow);Vn.childNodes.length>0&&(hn.prevArrow=Vn.childNodes),delete Qi.prevArrow}if(Qi.nextArrow){const Vn=zi(Qi.nextArrow);Vn.childNodes.length>0&&(hn.nextArrow=Vn.childNodes),delete Qi.nextArrow}if(Qi.disableTouchKeyboard!==void 0&&(hn.disableTouchKeyboard="ontouchstart"in document&&!!Qi.disableTouchKeyboard,delete Qi.disableTouchKeyboard),Qi.orientation){const Vn=Qi.orientation.toLowerCase().split(/\s+/g);hn.orientation={x:Vn.find(ts=>ts==="left"||ts==="right")||"auto",y:Vn.find(ts=>ts==="top"||ts==="bottom")||"auto"},delete Qi.orientation}if(Qi.todayBtnMode!==void 0){switch(Qi.todayBtnMode){case 0:case 1:hn.todayBtnMode=Qi.todayBtnMode}delete Qi.todayBtnMode}return Object.keys(Qi).forEach(Vn=>{Qi[Vn]!==void 0&&(0,ci.l$)(Bi,Vn)&&(hn[Vn]=Qi[Vn])}),hn}var fn=(0,ci.zh)(``),bn=(0,ci.zh)(`
${(0,ci.em)("span",7,{class:"dow block flex-1 leading-9 border-0 rounded-lg cursor-default text-center text-gray-900 font-semibold text-sm"})}
${(0,ci.em)("span",42,{class:"block flex-1 leading-9 border-0 rounded-lg cursor-default text-center text-gray-900 font-semibold text-sm h-6 leading-6 text-sm font-medium text-gray-500 dark:text-gray-400"})}
`),_n=(0,ci.zh)(`
${(0,ci.em)("span",6,{class:"week block flex-1 leading-9 border-0 rounded-lg cursor-default text-center text-gray-900 font-semibold text-sm"})}
`);class dn{constructor(Ki,Qi){Object.assign(this,Qi,{picker:Ki,element:zi('
').firstChild,selected:[]}),this.init(this.picker.datepicker.config)}init(Ki){Ki.pickLevel!==void 0&&(this.isMinView=this.id===Ki.pickLevel),this.setOptions(Ki),this.updateFocus(),this.updateSelection()}performBeforeHook(Ki,Qi,hn){let mn=this.beforeShow(new Date(hn));switch(typeof mn){case"boolean":mn={enabled:mn};break;case"string":mn={classes:mn}}if(mn){if(mn.enabled===!1&&(Ki.classList.add("disabled"),(0,ci.$C)(this.disabled,Qi)),mn.classes){const En=mn.classes.split(/\s+/);Ki.classList.add(...En),En.includes("disabled")&&(0,ci.$C)(this.disabled,Qi)}mn.content&&Ti(Ki,mn.content)}}}class tn extends dn{constructor(Ki){super(Ki,{id:0,name:"days",cellClass:"day"})}init(Ki,Qi=!0){if(Qi){const hn=zi(bn).firstChild;this.dow=hn.firstChild,this.grid=hn.lastChild,this.element.appendChild(hn)}super.init(Ki)}setOptions(Ki){let Qi;if((0,ci.l$)(Ki,"minDate")&&(this.minDate=Ki.minDate),(0,ci.l$)(Ki,"maxDate")&&(this.maxDate=Ki.maxDate),Ki.datesDisabled&&(this.datesDisabled=Ki.datesDisabled),Ki.daysOfWeekDisabled&&(this.daysOfWeekDisabled=Ki.daysOfWeekDisabled,Qi=!0),Ki.daysOfWeekHighlighted&&(this.daysOfWeekHighlighted=Ki.daysOfWeekHighlighted),Ki.todayHighlight!==void 0&&(this.todayHighlight=Ki.todayHighlight),Ki.weekStart!==void 0&&(this.weekStart=Ki.weekStart,this.weekEnd=Ki.weekEnd,Qi=!0),Ki.locale){const hn=this.locale=Ki.locale;this.dayNames=hn.daysMin,this.switchLabelFormat=hn.titleFormat,Qi=!0}if(Ki.beforeShowDay!==void 0&&(this.beforeShow=typeof Ki.beforeShowDay=="function"?Ki.beforeShowDay:void 0),Ki.calendarWeeks!==void 0)if(Ki.calendarWeeks&&!this.calendarWeeks){const hn=zi(_n).firstChild;this.calendarWeeks={element:hn,dow:hn.firstChild,weeks:hn.lastChild},this.element.insertBefore(hn,this.element.firstChild)}else this.calendarWeeks&&!Ki.calendarWeeks&&(this.element.removeChild(this.calendarWeeks.element),this.calendarWeeks=null);Ki.showDaysOfWeek!==void 0&&(Ki.showDaysOfWeek?(Ii(this.dow),this.calendarWeeks&&Ii(this.calendarWeeks.dow)):(Ei(this.dow),this.calendarWeeks&&Ei(this.calendarWeeks.dow))),Qi&&Array.from(this.dow.children).forEach((hn,mn)=>{const En=(this.weekStart+mn)%7;hn.textContent=this.dayNames[En],hn.className=this.daysOfWeekDisabled.includes(En)?"dow disabled text-center h-6 leading-6 text-sm font-medium text-gray-500 dark:text-gray-400 cursor-not-allowed":"dow text-center h-6 leading-6 text-sm font-medium text-gray-500 dark:text-gray-400"})}updateFocus(){const Ki=new Date(this.picker.viewDate),Qi=Ki.getFullYear(),hn=Ki.getMonth(),mn=(0,pi.by)(Qi,hn,1),En=(0,pi.fr)(mn,this.weekStart,this.weekStart);this.first=mn,this.last=(0,pi.by)(Qi,hn+1,0),this.start=En,this.focused=this.picker.viewDate}updateSelection(){const{dates:Ki,rangepicker:Qi}=this.picker.datepicker;this.selected=Ki,Qi&&(this.range=Qi.dates)}render(){this.today=this.todayHighlight?(0,pi.Lg)():void 0,this.disabled=[...this.datesDisabled];const Ki=(0,bi.p6)(this.focused,this.switchLabelFormat,this.locale);if(this.picker.setViewSwitchLabel(Ki),this.picker.setPrevBtnDisabled(this.first<=this.minDate),this.picker.setNextBtnDisabled(this.last>=this.maxDate),this.calendarWeeks){const Qi=(0,pi.fr)(this.first,1,1);Array.from(this.calendarWeeks.weeks.children).forEach((hn,mn)=>{hn.textContent=(0,pi.Qk)((0,pi.jh)(Qi,mn))})}Array.from(this.grid.children).forEach((Qi,hn)=>{const mn=Qi.classList,En=(0,pi.E4)(this.start,hn),Bn=new Date(En),Mn=Bn.getDay();if(Qi.className=`datepicker-cell hover:bg-gray-100 dark:hover:bg-gray-600 block flex-1 leading-9 border-0 rounded-lg cursor-pointer text-center text-gray-900 dark:text-white font-semibold text-sm ${this.cellClass}`,Qi.dataset.date=En,Qi.textContent=Bn.getDate(),Enthis.last&&mn.add("next","text-gray-500","dark:text-white"),this.today===En&&mn.add("today","bg-gray-100","dark:bg-gray-600"),(Enthis.maxDate||this.disabled.includes(En))&&mn.add("disabled","cursor-not-allowed"),this.daysOfWeekDisabled.includes(Mn)&&(mn.add("disabled","cursor-not-allowed"),(0,ci.$C)(this.disabled,En)),this.daysOfWeekHighlighted.includes(Mn)&&mn.add("highlighted"),this.range){const[jn,Un]=this.range;En>jn&&En{hn.classList.remove("range","range-start","range-end","selected","bg-blue-700","!bg-primary-700","text-white","dark:bg-blue-600","dark:!bg-primary-600","dark:text-white","focused"),hn.classList.add("text-gray-900","rounded-lg","dark:text-white")}),Array.from(this.grid.children).forEach(hn=>{const mn=Number(hn.dataset.date),En=hn.classList;En.remove("bg-gray-200","dark:bg-gray-600","rounded-l-lg","rounded-r-lg"),mn>Ki&&mn{Qi.classList.remove("focused")}),this.grid.children[Ki].classList.add("focused")}}function cn(ln,Ki){if(!ln||!ln[0]||!ln[1])return;const[[Qi,hn],[mn,En]]=ln;if(!(Qi>Ki||mnhn})))),super.init(Ki)}setOptions(Ki){if(Ki.locale&&(this.monthNames=Ki.locale.monthsShort),(0,ci.l$)(Ki,"minDate"))if(Ki.minDate===void 0)this.minYear=this.minMonth=this.minDate=void 0;else{const Qi=new Date(Ki.minDate);this.minYear=Qi.getFullYear(),this.minMonth=Qi.getMonth(),this.minDate=Qi.setDate(1)}if((0,ci.l$)(Ki,"maxDate"))if(Ki.maxDate===void 0)this.maxYear=this.maxMonth=this.maxDate=void 0;else{const Qi=new Date(Ki.maxDate);this.maxYear=Qi.getFullYear(),this.maxMonth=Qi.getMonth(),this.maxDate=(0,pi.by)(this.maxYear,this.maxMonth+1,0)}Ki.beforeShowMonth!==void 0&&(this.beforeShow=typeof Ki.beforeShowMonth=="function"?Ki.beforeShowMonth:void 0)}updateFocus(){const Ki=new Date(this.picker.viewDate);this.year=Ki.getFullYear(),this.focused=Ki.getMonth()}updateSelection(){const{dates:Ki,rangepicker:Qi}=this.picker.datepicker;this.selected=Ki.reduce((hn,mn)=>{const En=new Date(mn),Bn=En.getFullYear(),Mn=En.getMonth();return hn[Bn]===void 0?hn[Bn]=[Mn]:(0,ci.$C)(hn[Bn],Mn),hn},{}),Qi&&Qi.dates&&(this.range=Qi.dates.map(hn=>{const mn=new Date(hn);return isNaN(mn)?void 0:[mn.getFullYear(),mn.getMonth()]}))}render(){this.disabled=[],this.picker.setViewSwitchLabel(this.year),this.picker.setPrevBtnDisabled(this.year<=this.minYear),this.picker.setNextBtnDisabled(this.year>=this.maxYear);const Ki=this.selected[this.year]||[],Qi=this.yearthis.maxYear,hn=this.year===this.minYear,mn=this.year===this.maxYear,En=cn(this.range,this.year);Array.from(this.grid.children).forEach((Bn,Mn)=>{const jn=Bn.classList,Un=(0,pi.by)(this.year,Mn,1);if(Bn.className=`datepicker-cell hover:bg-gray-100 dark:hover:bg-gray-600 block flex-1 leading-9 border-0 rounded-lg cursor-pointer text-center text-gray-900 dark:text-white font-semibold text-sm ${this.cellClass}`,this.isMinView&&(Bn.dataset.date=Un),Bn.textContent=this.monthNames[Mn],(Qi||hn&&Mnthis.maxMonth)&&jn.add("disabled"),En){const[Xn,qn]=En;Mn>Xn&&Mn{mn.classList.remove("range","range-start","range-end","selected","bg-blue-700","!bg-primary-700","dark:bg-blue-600","dark:!bg-primary-700","dark:text-white","text-white","focused"),mn.classList.add("text-gray-900","hover:bg-gray-100","dark:text-white","dark:hover:bg-gray-600")}),Array.from(this.grid.children).forEach((mn,En)=>{const Bn=mn.classList;En>Qi&&En{Ki.classList.remove("focused")}),this.grid.children[this.focused].classList.add("focused")}}function gn(ln){return[...ln].reduce((Ki,Qi,hn)=>Ki+=hn?Qi:Qi.toUpperCase(),"")}class wn extends dn{constructor(Ki,Qi){super(Ki,Qi)}init(Ki,Qi=!0){Qi&&(this.navStep=this.step*10,this.beforeShowOption=`beforeShow${gn(this.cellClass)}`,this.grid=this.element,this.element.classList.add(this.name,"datepicker-grid","w-64","grid","grid-cols-4"),this.grid.appendChild(zi((0,ci.em)("span",12)))),super.init(Ki)}setOptions(Ki){if((0,ci.l$)(Ki,"minDate")&&(Ki.minDate===void 0?this.minYear=this.minDate=void 0:(this.minYear=(0,pi.ak)(Ki.minDate,this.step),this.minDate=(0,pi.by)(this.minYear,0,1))),(0,ci.l$)(Ki,"maxDate")&&(Ki.maxDate===void 0?this.maxYear=this.maxDate=void 0:(this.maxYear=(0,pi.ak)(Ki.maxDate,this.step),this.maxDate=(0,pi.by)(this.maxYear,11,31))),Ki[this.beforeShowOption]!==void 0){const Qi=Ki[this.beforeShowOption];this.beforeShow=typeof Qi=="function"?Qi:void 0}}updateFocus(){const Ki=new Date(this.picker.viewDate),Qi=(0,pi.ak)(Ki,this.navStep),hn=Qi+9*this.step;this.first=Qi,this.last=hn,this.start=Qi-this.step,this.focused=(0,pi.ak)(Ki,this.step)}updateSelection(){const{dates:Ki,rangepicker:Qi}=this.picker.datepicker;this.selected=Ki.reduce((hn,mn)=>(0,ci.$C)(hn,(0,pi.ak)(mn,this.step)),[]),Qi&&Qi.dates&&(this.range=Qi.dates.map(hn=>{if(hn!==void 0)return(0,pi.ak)(hn,this.step)}))}render(){this.disabled=[],this.picker.setViewSwitchLabel(`${this.first}-${this.last}`),this.picker.setPrevBtnDisabled(this.first<=this.minYear),this.picker.setNextBtnDisabled(this.last>=this.maxYear),Array.from(this.grid.children).forEach((Ki,Qi)=>{const hn=Ki.classList,mn=this.start+Qi*this.step,En=(0,pi.by)(mn,0,1);if(Ki.className=`datepicker-cell hover:bg-gray-100 dark:hover:bg-gray-600 block flex-1 leading-9 border-0 rounded-lg cursor-pointer text-center text-gray-900 dark:text-white font-semibold text-sm ${this.cellClass}`,this.isMinView&&(Ki.dataset.date=En),Ki.textContent=Ki.dataset.year=mn,Qi===0?hn.add("prev"):Qi===11&&hn.add("next"),(mnthis.maxYear)&&hn.add("disabled"),this.range){const[Bn,Mn]=this.range;mn>Bn&&mn{hn.classList.remove("range","range-start","range-end","selected","bg-blue-700","!bg-primary-700","text-white","dark:bg-blue-600","dark!bg-primary-600","dark:text-white","focused")}),Array.from(this.grid.children).forEach(hn=>{const mn=Number(hn.textContent),En=hn.classList;mn>Ki&&mn{Qi.classList.remove("focused")}),this.grid.children[Ki].classList.add("focused")}}function Sn(ln,Ki){const Qi={date:ln.getDate(),viewDate:new Date(ln.picker.viewDate),viewId:ln.picker.currentView.id,datepicker:ln};ln.element.dispatchEvent(new CustomEvent(Ki,{detail:Qi}))}function pn(ln,Ki){const{minDate:Qi,maxDate:hn}=ln.config,{currentView:mn,viewDate:En}=ln.picker;let Bn;switch(mn.id){case 0:Bn=(0,pi.zI)(En,Ki);break;case 1:Bn=(0,pi.Bc)(En,Ki);break;default:Bn=(0,pi.Bc)(En,Ki*mn.navStep)}Bn=(0,ci.jG)(Bn,Qi,hn),ln.picker.changeFocus(Bn).render()}function Ln(ln){const Ki=ln.picker.currentView.id;Ki!==ln.config.maxView&&ln.picker.changeView(Ki+1).render()}function Rn(ln){ln.config.updateOnBlur?ln.update({autohide:!0}):(ln.refresh("input"),ln.hide())}function Hn(ln,Ki){const Qi=ln.picker,hn=new Date(Qi.viewDate),mn=Qi.currentView.id,En=mn===1?(0,pi.zI)(hn,Ki-hn.getMonth()):(0,pi.Bc)(hn,Ki-hn.getFullYear());Qi.changeFocus(En).changeView(mn-1).render()}function zn(ln){const Ki=ln.picker,Qi=(0,pi.Lg)();if(ln.config.todayBtnMode===1){if(ln.config.autohide){ln.setDate(Qi);return}ln.setDate(Qi,{render:!1}),Ki.update()}Ki.viewDate!==Qi&&Ki.changeFocus(Qi),Ki.changeView(0).render()}function Tn(ln){ln.setDate({clear:!0})}function Dn(ln){Ln(ln)}function Wn(ln){pn(ln,-1)}function Yr(ln){pn(ln,1)}function Gr(ln,Ki){const Qi=(0,vi.He)(Ki,".datepicker-cell");if(!Qi||Qi.classList.contains("disabled"))return;const{id:hn,isMinView:mn}=ln.picker.currentView;mn?ln.setDate(Number(Qi.dataset.date)):hn===1?Hn(ln,Number(Qi.dataset.month)):Hn(ln,Number(Qi.dataset.year))}function Jn(ln){!ln.inline&&!ln.config.disableTouchKeyboard&&ln.inputField.focus()}function Zr(ln,Ki){if(Ki.title!==void 0&&(Ki.title?(ln.controls.title.textContent=Ki.title,Ii(ln.controls.title)):(ln.controls.title.textContent="",Ei(ln.controls.title))),Ki.prevArrow){const Qi=ln.controls.prevBtn;ki(Qi),Ki.prevArrow.forEach(hn=>{Qi.appendChild(hn.cloneNode(!0))})}if(Ki.nextArrow){const Qi=ln.controls.nextBtn;ki(Qi),Ki.nextArrow.forEach(hn=>{Qi.appendChild(hn.cloneNode(!0))})}if(Ki.locale&&(ln.controls.todayBtn.textContent=Ki.locale.today,ln.controls.clearBtn.textContent=Ki.locale.clear),Ki.todayBtn!==void 0&&(Ki.todayBtn?Ii(ln.controls.todayBtn):Ei(ln.controls.todayBtn)),(0,ci.l$)(Ki,"minDate")||(0,ci.l$)(Ki,"maxDate")){const{minDate:Qi,maxDate:hn}=ln.datepicker.config;ln.controls.todayBtn.disabled=!(0,ci.mh)((0,pi.Lg)(),Qi,hn)}Ki.clearBtn!==void 0&&(Ki.clearBtn?Ii(ln.controls.clearBtn):Ei(ln.controls.clearBtn))}function ns(ln){const{dates:Ki,config:Qi}=ln,hn=Ki.length>0?(0,ci.Jm)(Ki):Qi.defaultViewDate;return(0,ci.jG)(hn,Qi.minDate,Qi.maxDate)}function es(ln,Ki){const Qi=new Date(ln.viewDate),hn=new Date(Ki),{id:mn,year:En,first:Bn,last:Mn}=ln.currentView,jn=hn.getFullYear();switch(ln.viewDate=Ki,jn!==Qi.getFullYear()&&Sn(ln.datepicker,"changeYear"),hn.getMonth()!==Qi.getMonth()&&Sn(ln.datepicker,"changeMonth"),mn){case 0:return KiMn;case 1:return jn!==En;default:return jnMn}}function cs(ln){return window.getComputedStyle(ln).direction}class xs{constructor(Ki){this.datepicker=Ki;const Qi=fn.replace(/%buttonClass%/g,Ki.config.buttonClass),hn=this.element=zi(Qi).firstChild,[mn,En,Bn]=hn.firstChild.children,Mn=mn.firstElementChild,[jn,Un,Xn]=mn.lastElementChild.children,[qn,as]=Bn.firstChild.children,Qr={title:Mn,prevBtn:jn,viewSwitch:Un,nextBtn:Xn,todayBtn:qn,clearBtn:as};this.main=En,this.controls=Qr;const us=Ki.inline?"inline":"dropdown";hn.classList.add(`datepicker-${us}`),us==="dropdown"&&hn.classList.add("dropdown","absolute","top-0","left-0","z-50","pt-2"),Zr(this,Ki.config),this.viewDate=ns(Ki),(0,vi.cF)(Ki,[[hn,"click",Jn.bind(null,Ki),{capture:!0}],[En,"click",Gr.bind(null,Ki)],[Qr.viewSwitch,"click",Dn.bind(null,Ki)],[Qr.prevBtn,"click",Wn.bind(null,Ki)],[Qr.nextBtn,"click",Yr.bind(null,Ki)],[Qr.todayBtn,"click",zn.bind(null,Ki)],[Qr.clearBtn,"click",Tn.bind(null,Ki)]]),this.views=[new tn(this),new un(this),new wn(this,{id:2,name:"years",cellClass:"year",step:1}),new wn(this,{id:3,name:"decades",cellClass:"decade",step:10})],this.currentView=this.views[Ki.config.startView],this.currentView.render(),this.main.appendChild(this.currentView.element),Ki.config.container.appendChild(this.element)}setOptions(Ki){Zr(this,Ki),this.views.forEach(Qi=>{Qi.init(Ki,!1)}),this.currentView.render()}detach(){this.datepicker.config.container.removeChild(this.element)}show(){if(this.active)return;this.element.classList.add("active","block"),this.element.classList.remove("hidden"),this.active=!0;const Ki=this.datepicker;if(!Ki.inline){const Qi=cs(Ki.inputField);Qi!==cs(Ki.config.container)?this.element.dir=Qi:this.element.dir&&this.element.removeAttribute("dir"),this.place(),Ki.config.disableTouchKeyboard&&Ki.inputField.blur()}Sn(Ki,"show")}hide(){this.active&&(this.datepicker.exitEditMode(),this.element.classList.remove("active","block"),this.element.classList.add("active","block","hidden"),this.active=!1,Sn(this.datepicker,"hide"))}place(){const{classList:Ki,style:Qi}=this.element,{config:hn,inputField:mn}=this.datepicker,En=hn.container,{width:Bn,height:Mn}=this.element.getBoundingClientRect(),{left:jn,top:Un,width:Xn}=En.getBoundingClientRect(),{left:qn,top:as,width:Qr,height:us}=mn.getBoundingClientRect();let{x:os,y:bs}=hn.orientation,hs,Jr,Vn;En===document.body?(hs=window.scrollY,Jr=qn+window.scrollX,Vn=as+hs):(hs=En.scrollTop,Jr=qn-jn,Vn=as-Un+hs),os==="auto"&&(Jr<0?(os="left",Jr=10):Jr+Bn>Xn?os="right":os=cs(mn)==="rtl"?"right":"left"),os==="right"&&(Jr-=Bn-Qr),bs==="auto"&&(bs=Vn-Mn{Qi.updateFocus()}),this}update(){const Ki=ns(this.datepicker);return this._renderMethod=es(this,Ki)?"render":"refresh",this.views.forEach(Qi=>{Qi.updateFocus(),Qi.updateSelection()}),this}render(Ki=!0){const Qi=Ki&&this._renderMethod||"render";delete this._renderMethod,this.currentView[Qi]()}}function gs(ln,Ki,Qi,hn,mn,En){if((0,ci.mh)(ln,mn,En)){if(hn(ln)){const Bn=Ki(ln,Qi);return gs(Bn,Ki,Qi,hn,mn,En)}return ln}}function ps(ln,Ki,Qi,hn){const mn=ln.picker,En=mn.currentView,Bn=En.step||1;let Mn=mn.viewDate,jn,Un;switch(En.id){case 0:hn?Mn=(0,pi.E4)(Mn,Qi*7):Ki.ctrlKey||Ki.metaKey?Mn=(0,pi.Bc)(Mn,Qi):Mn=(0,pi.E4)(Mn,Qi),jn=pi.E4,Un=Xn=>En.disabled.includes(Xn);break;case 1:Mn=(0,pi.zI)(Mn,hn?Qi*4:Qi),jn=pi.zI,Un=Xn=>{const qn=new Date(Xn),{year:as,disabled:Qr}=En;return qn.getFullYear()===as&&Qr.includes(qn.getMonth())};break;default:Mn=(0,pi.Bc)(Mn,Qi*(hn?4:1)*Bn),jn=pi.Bc,Un=Xn=>En.disabled.includes((0,pi.ak)(Xn,Bn))}Mn=gs(Mn,jn,Qi<0?-Bn:Bn,Un,En.minDate,En.maxDate),Mn!==void 0&&mn.changeFocus(Mn).render()}function Cs(ln,Ki){if(Ki.key==="Tab"){Rn(ln);return}const Qi=ln.picker,{id:hn,isMinView:mn}=Qi.currentView;if(Qi.active)if(ln.editMode)switch(Ki.key){case"Escape":Qi.hide();break;case"Enter":ln.exitEditMode({update:!0,autohide:ln.config.autohide});break;default:return}else switch(Ki.key){case"Escape":Qi.hide();break;case"ArrowLeft":if(Ki.ctrlKey||Ki.metaKey)pn(ln,-1);else if(Ki.shiftKey){ln.enterEditMode();return}else ps(ln,Ki,-1,!1);break;case"ArrowRight":if(Ki.ctrlKey||Ki.metaKey)pn(ln,1);else if(Ki.shiftKey){ln.enterEditMode();return}else ps(ln,Ki,1,!1);break;case"ArrowUp":if(Ki.ctrlKey||Ki.metaKey)Ln(ln);else if(Ki.shiftKey){ln.enterEditMode();return}else ps(ln,Ki,-1,!0);break;case"ArrowDown":if(Ki.shiftKey&&!Ki.ctrlKey&&!Ki.metaKey){ln.enterEditMode();return}ps(ln,Ki,1,!0);break;case"Enter":mn?ln.setDate(Qi.viewDate):Qi.changeView(hn-1).render();break;case"Backspace":case"Delete":ln.enterEditMode();return;default:Ki.key.length===1&&!Ki.ctrlKey&&!Ki.metaKey&&ln.enterEditMode();return}else switch(Ki.key){case"ArrowDown":case"Escape":Qi.show();break;case"Enter":ln.update();break;default:return}Ki.preventDefault(),Ki.stopPropagation()}function ms(ln){ln.config.showOnFocus&&!ln._showing&&ln.show()}function Es(ln,Ki){const Qi=Ki.target;(ln.picker.active||ln.config.showOnClick)&&(Qi._active=Qi===document.activeElement,Qi._clicking=setTimeout(()=>{delete Qi._active,delete Qi._clicking},2e3))}function ys(ln,Ki){const Qi=Ki.target;Qi._clicking&&(clearTimeout(Qi._clicking),delete Qi._clicking,Qi._active&&ln.enterEditMode(),delete Qi._active,ln.config.showOnClick&&ln.show())}function _s(ln,Ki){Ki.clipboardData.types.includes("text/plain")&&ln.enterEditMode()}function Ls(ln,Ki){const Qi=ln.element;if(Qi!==document.activeElement)return;const hn=ln.picker.element;(0,vi.He)(Ki,mn=>mn===Qi||mn===hn)||Rn(ln)}function Ss(ln,Ki){return ln.map(Qi=>(0,bi.p6)(Qi,Ki.format,Ki.locale)).join(Ki.dateDelimiter)}function Fs(ln,Ki,Qi=!1){const{config:hn,dates:mn,rangepicker:En}=ln;if(Ki.length===0)return Qi?[]:void 0;const Bn=En&&ln===En.datepickers[1];let Mn=Ki.reduce((jn,Un)=>{let Xn=(0,bi.sG)(Un,hn.format,hn.locale);if(Xn===void 0)return jn;if(hn.pickLevel>0){const qn=new Date(Xn);hn.pickLevel===1?Xn=Bn?qn.setMonth(qn.getMonth()+1,0):qn.setDate(1):Xn=Bn?qn.setFullYear(qn.getFullYear()+1,0,0):qn.setMonth(0,1)}return(0,ci.mh)(Xn,hn.minDate,hn.maxDate)&&!jn.includes(Xn)&&!hn.datesDisabled.includes(Xn)&&!hn.daysOfWeekDisabled.includes(new Date(Xn).getDay())&&jn.push(Xn),jn},[]);if(Mn.length!==0)return hn.multidate&&!Qi&&(Mn=Mn.reduce((jn,Un)=>(mn.includes(Un)||jn.push(Un),jn),mn.filter(jn=>!Mn.includes(jn)))),hn.maxNumberOfDates&&Mn.length>hn.maxNumberOfDates?Mn.slice(hn.maxNumberOfDates*-1):Mn}function ws(ln,Ki=3,Qi=!0){const{config:hn,picker:mn,inputField:En}=ln;if(Ki&2){const Bn=mn.active?hn.pickLevel:hn.startView;mn.update().changeView(Bn).render(Qi)}Ki&1&&En&&(En.value=Ss(ln.dates,hn))}function Cn(ln,Ki,Qi){let{clear:hn,render:mn,autohide:En}=Qi;mn===void 0&&(mn=!0),mn?En===void 0&&(En=ln.config.autohide):En=!1;const Bn=Fs(ln,Ki,hn);Bn&&(Bn.toString()!==ln.dates.toString()?(ln.dates=Bn,ws(ln,mn?3:1),Sn(ln,"changeDate")):ws(ln,1),En&&ln.hide())}class Pn{constructor(Ki,Qi={},hn=void 0){Ki.datepicker=this,this.element=Ki;const mn=this.config=Object.assign({buttonClass:Qi.buttonClass&&String(Qi.buttonClass)||"button",container:document.body,defaultViewDate:(0,pi.Lg)(),maxDate:void 0,minDate:void 0},en(Bi,this));this._options=Qi,Object.assign(mn,en(Qi,this));const En=this.inline=Ki.tagName!=="INPUT";let Bn,Mn;if(En)mn.container=Ki,Mn=(0,ci.W7)(Ki.dataset.date,mn.dateDelimiter),delete Ki.dataset.date;else{const Xn=Qi.container?document.querySelector(Qi.container):null;Xn&&(mn.container=Xn),Bn=this.inputField=Ki,Bn.classList.add("datepicker-input"),Mn=(0,ci.W7)(Bn.value,mn.dateDelimiter)}if(hn){const Xn=hn.inputs.indexOf(Bn),qn=hn.datepickers;if(Xn<0||Xn>1||!Array.isArray(qn))throw Error("Invalid rangepicker object.");qn[Xn]=this,Object.defineProperty(this,"rangepicker",{get(){return hn}})}this.dates=[];const jn=Fs(this,Mn);jn&&jn.length>0&&(this.dates=jn),Bn&&(Bn.value=Ss(this.dates,mn));const Un=this.picker=new xs(this);if(En)this.show();else{const Xn=Ls.bind(null,this),qn=[[Bn,"keydown",Cs.bind(null,this)],[Bn,"focus",ms.bind(null,this)],[Bn,"mousedown",Es.bind(null,this)],[Bn,"click",ys.bind(null,this)],[Bn,"paste",_s.bind(null,this)],[document,"mousedown",Xn],[document,"touchstart",Xn],[window,"resize",Un.place.bind(Un)]];(0,vi.cF)(this,qn)}}static formatDate(Ki,Qi,hn){return(0,bi.p6)(Ki,Qi,hn&&Ai[hn]||Ai.en)}static parseDate(Ki,Qi,hn){return(0,bi.sG)(Ki,Qi,hn&&Ai[hn]||Ai.en)}static get locales(){return Ai}get active(){return!!(this.picker&&this.picker.active)}get pickerElement(){return this.picker?this.picker.element:void 0}setOptions(Ki){const Qi=this.picker,hn=en(Ki,this);Object.assign(this._options,Ki),Object.assign(this.config,hn),Qi.setOptions(hn),ws(this,3)}show(){if(this.inputField){if(this.inputField.disabled)return;this.inputField!==document.activeElement&&(this._showing=!0,this.inputField.focus(),delete this._showing)}this.picker.show()}hide(){this.inline||(this.picker.hide(),this.picker.update().changeView(this.config.startView).render())}destroy(){return this.hide(),(0,vi.uV)(this),this.picker.detach(),this.inline||this.inputField.classList.remove("datepicker-input"),delete this.element.datepicker,this}getDate(Ki=void 0){const Qi=Ki?hn=>(0,bi.p6)(hn,Ki,this.config.locale):hn=>new Date(hn);if(this.config.multidate)return this.dates.map(Qi);if(this.dates.length>0)return Qi(this.dates[0])}setDate(...Ki){const Qi=[...Ki],hn={},mn=(0,ci.Jm)(Ki);typeof mn=="object"&&!Array.isArray(mn)&&!(mn instanceof Date)&&mn&&Object.assign(hn,Qi.pop());const En=Array.isArray(Qi[0])?Qi[0]:Qi;Cn(this,En,hn)}update(Ki=void 0){if(this.inline)return;const Qi={clear:!0,autohide:!!(Ki&&Ki.autohide)},hn=(0,ci.W7)(this.inputField.value,this.config.dateDelimiter);Cn(this,hn,Qi)}refresh(Ki=void 0,Qi=!1){Ki&&typeof Ki!="string"&&(Qi=Ki,Ki=void 0);let hn;Ki==="picker"?hn=2:Ki==="input"?hn=1:hn=3,ws(this,hn,!Qi)}enterEditMode(){this.inline||!this.picker.active||this.editMode||(this.editMode=!0,this.inputField.classList.add("in-edit","border-blue-700","!border-primary-700"))}exitEditMode(Ki=void 0){if(this.inline||!this.editMode)return;const Qi=Object.assign({update:!1},Ki);delete this.editMode,this.inputField.classList.remove("in-edit","border-blue-700","!border-primary-700"),Qi.update&&this.update(Qi)}}},963:function(gi,di,li){li.d(di,{CL:function(){return bi},p6:function(){return ki},sG:function(){return Ii}});var ci=li(560),pi=li(105);const bi=/dd?|DD?|mm?|MM?|yy?(?:yy)?/,vi=/[\s!-/:-@[-`{-~年月日]+/;let Ai={};const Li={y(Ti,Pi){return new Date(Ti).setFullYear(parseInt(Pi,10))},m(Ti,Pi,ji){const Di=new Date(Ti);let Ni=parseInt(Pi,10)-1;if(isNaN(Ni)){if(!Pi)return NaN;const qi=Pi.toLowerCase(),Ji=sn=>sn.toLowerCase().startsWith(qi);if(Ni=ji.monthsShort.findIndex(Ji),Ni<0&&(Ni=ji.months.findIndex(Ji)),Ni<0)return NaN}return Di.setMonth(Ni),Di.getMonth()!==Ri(Ni)?Di.setDate(0):Di.getTime()},d(Ti,Pi){return new Date(Ti).setDate(parseInt(Pi,10))}},Bi={d(Ti){return Ti.getDate()},dd(Ti){return zi(Ti.getDate(),2)},D(Ti,Pi){return Pi.daysShort[Ti.getDay()]},DD(Ti,Pi){return Pi.days[Ti.getDay()]},m(Ti){return Ti.getMonth()+1},mm(Ti){return zi(Ti.getMonth()+1,2)},M(Ti,Pi){return Pi.monthsShort[Ti.getMonth()]},MM(Ti,Pi){return Pi.months[Ti.getMonth()]},y(Ti){return Ti.getFullYear()},yy(Ti){return zi(Ti.getFullYear(),2).slice(-2)},yyyy(Ti){return zi(Ti.getFullYear(),4)}};function Ri(Ti){return Ti>-1?Ti%12:Ri(Ti+12)}function zi(Ti,Pi){return Ti.toString().padStart(Pi,"0")}function Ei(Ti){if(typeof Ti!="string")throw new Error("Invalid date format.");if(Ti in Ai)return Ai[Ti];const Pi=Ti.split(bi),ji=Ti.match(new RegExp(bi,"g"));if(Pi.length===0||!ji)throw new Error("Invalid date format.");const Di=ji.map(qi=>Bi[qi]),Ni=Object.keys(Li).reduce((qi,Ji)=>(ji.find(en=>en[0]!=="D"&&en[0].toLowerCase()===Ji)&&qi.push(Ji),qi),[]);return Ai[Ti]={parser(qi,Ji){const sn=qi.split(vi).reduce((en,rn,fn)=>{if(rn.length>0&&ji[fn]){const vn=ji[fn][0];vn==="M"?en.m=rn:vn!=="D"&&(en[vn]=rn)}return en},{});return Ni.reduce((en,rn)=>{const fn=Li[rn](en,sn[rn],Ji);return isNaN(fn)?en:fn},(0,ci.Lg)())},formatter(qi,Ji){let sn=Di.reduce((en,rn,fn)=>en+=`${Pi[fn]}${rn(qi,Ji)}`,"");return sn+=(0,pi.Jm)(Pi)}}}function Ii(Ti,Pi,ji){if(Ti instanceof Date||typeof Ti=="number"){const Di=(0,ci.xR)(Ti);return isNaN(Di)?void 0:Di}if(Ti){if(Ti==="today")return(0,ci.Lg)();if(Pi&&Pi.toValue){const Di=Pi.toValue(Ti,Pi,ji);return isNaN(Di)?void 0:(0,ci.xR)(Di)}return Ei(Pi).parser(Ti,ji)}}function ki(Ti,Pi,ji){if(isNaN(Ti)||!Ti&&Ti!==0)return"";const Di=typeof Ti=="number"?new Date(Ti):Ti;return Pi.toDisplay?Pi.toDisplay(Di,Pi,ji):Ei(Pi).formatter(Di,ji)}},560:function(gi,di,li){li.d(di,{Bc:function(){return Bi},E4:function(){return vi},Lg:function(){return pi},Qk:function(){return Ei},ak:function(){return Ii},by:function(){return bi},fr:function(){return zi},jh:function(){return Ai},xR:function(){return ci},zI:function(){return Li}});function ci(ki){return new Date(ki).setHours(0,0,0,0)}function pi(){return new Date().setHours(0,0,0,0)}function bi(...ki){switch(ki.length){case 0:return pi();case 1:return ci(ki[0])}const Ti=new Date(0);return Ti.setFullYear(...ki),Ti.setHours(0,0,0,0)}function vi(ki,Ti){const Pi=new Date(ki);return Pi.setDate(Pi.getDate()+Ti)}function Ai(ki,Ti){return vi(ki,Ti*7)}function Li(ki,Ti){const Pi=new Date(ki),ji=Pi.getMonth()+Ti;let Di=ji%12;Di<0&&(Di+=12);const Ni=Pi.setMonth(ji);return Pi.getMonth()!==Di?Pi.setDate(0):Ni}function Bi(ki,Ti){const Pi=new Date(ki),ji=Pi.getMonth(),Di=Pi.setFullYear(Pi.getFullYear()+Ti);return ji===1&&Pi.getMonth()===2?Pi.setDate(0):Di}function Ri(ki,Ti){return(ki-Ti+7)%7}function zi(ki,Ti,Pi=0){const ji=new Date(ki).getDay();return vi(ki,Ri(Ti,Pi)-Ri(ji,Pi))}function Ei(ki){const Ti=zi(ki,4,1),Pi=zi(new Date(Ti).setMonth(0,4),4,1);return Math.round((Ti-Pi)/6048e5)+1}function Ii(ki,Ti){const Pi=new Date(ki).getFullYear();return Math.floor(Pi/Ti)*Ti}},698:function(gi,di,li){li.d(di,{He:function(){return Bi},cF:function(){return vi},uV:function(){return Ai}});const ci=new WeakMap,{addEventListener:pi,removeEventListener:bi}=EventTarget.prototype;function vi(Ri,zi){let Ei=ci.get(Ri);Ei||(Ei=[],ci.set(Ri,Ei)),zi.forEach(Ii=>{pi.call(...Ii),Ei.push(Ii)})}function Ai(Ri){let zi=ci.get(Ri);zi&&(zi.forEach(Ei=>{bi.call(...Ei)}),ci.delete(Ri))}if(!Event.prototype.composedPath){const Ri=(zi,Ei=[])=>{Ei.push(zi);let Ii;return zi.parentNode?Ii=zi.parentNode:zi.host?Ii=zi.host:zi.defaultView&&(Ii=zi.defaultView),Ii?Ri(Ii,Ei):Ei};Event.prototype.composedPath=function(){return Ri(this.target)}}function Li(Ri,zi,Ei,Ii=0){const ki=Ri[Ii];return zi(ki)?ki:ki===Ei||!ki.parentElement?void 0:Li(Ri,zi,Ei,Ii+1)}function Bi(Ri,zi){const Ei=typeof zi=="function"?zi:Ii=>Ii.matches(zi);return Li(Ri.composedPath(),Ei,Ri.currentTarget)}},105:function(gi,di,li){li.d(di,{$C:function(){return bi},Jm:function(){return pi},W7:function(){return vi},em:function(){return Bi},jG:function(){return Li},l$:function(){return ci},mh:function(){return Ai},zh:function(){return Ri}});function ci(zi,Ei){return Object.prototype.hasOwnProperty.call(zi,Ei)}function pi(zi){return zi[zi.length-1]}function bi(zi,...Ei){return Ei.forEach(Ii=>{zi.includes(Ii)||zi.push(Ii)}),zi}function vi(zi,Ei){return zi?zi.split(Ei):[]}function Ai(zi,Ei,Ii){const ki=Ei===void 0||zi>=Ei,Ti=Ii===void 0||zi<=Ii;return ki&&Ti}function Li(zi,Ei,Ii){return ziIi?Ii:zi}function Bi(zi,Ei,Ii={},ki=0,Ti=""){const Pi=Object.keys(Ii).reduce((Di,Ni)=>{let qi=Ii[Ni];return typeof qi=="function"&&(qi=qi(ki)),`${Di} ${Ni}="${qi}"`},zi);Ti+=`<${Pi}>`;const ji=ki+1;return ji\s+/g,">").replace(/\s+1&&di(ci,"")>-1&&(bi=RegExp(this.source,ui.replace.call(gi(this),"g","")),ui.replace.call(li.slice(ci.index),bi,function(){for(var Ai=1;Aici.index&&this.lastIndex--}return ci},mi||(RegExp.prototype.test=function(li){var ci=ui.exec.call(this,li);return ci&&this.global&&!ci[0].length&&this.lastIndex>ci.index&&this.lastIndex--,!!ci});function gi(li){return(li.global?"g":"")+(li.ignoreCase?"i":"")+(li.multiline?"m":"")+(li.extended?"x":"")+(li.sticky?"y":"")}function di(li,ci,pi){if(Array.prototype.indexOf)return li.indexOf(ci,pi);for(var bi=pi||0;bi0?dn>cn&&(dn=cn):dn==null?dn=0:dn<0&&(dn=Math.max(cn+dn,0)),dn+tnpn)for(zn=Rn;zn--;)this[Ln+zn]=this[pn+zn];if(wn&&dn===Hn)this.length=Hn,this.push.apply(this,gn);else for(this.length=Hn+wn,zn=0;zn>>0;if(li(tn)!="[object Function]")throw new TypeError;for(;++wn>>0,wn=Array(gn),Sn=arguments[1];if(li(tn)!="[object Function]")throw new TypeError(tn+" is not a function");for(var pn=0;pn>>0,wn=[],Sn,pn=arguments[1];if(li(tn)!="[object Function]")throw new TypeError(tn+" is not a function");for(var Ln=0;Ln>>0,wn=arguments[1];if(li(tn)!="[object Function]")throw new TypeError(tn+" is not a function");for(var Sn=0;Sn>>0,wn=arguments[1];if(li(tn)!="[object Function]")throw new TypeError(tn+" is not a function");for(var Sn=0;Sn>>0;if(li(tn)!="[object Function]")throw new TypeError(tn+" is not a function");if(!gn&&arguments.length==1)throw new TypeError("reduce of empty array with no initial value");var wn=0,Sn;if(arguments.length>=2)Sn=arguments[1];else do{if(wn in un){Sn=un[wn++];break}if(++wn>=gn)throw new TypeError("reduce of empty array with no initial value")}while(!0);for(;wn>>0;if(li(tn)!="[object Function]")throw new TypeError(tn+" is not a function");if(!gn&&arguments.length==1)throw new TypeError("reduceRight of empty array with no initial value");var wn,Sn=gn-1;if(arguments.length>=2)wn=arguments[1];else do{if(Sn in un){wn=un[Sn--];break}if(--Sn<0)throw new TypeError("reduceRight of empty array with no initial value")}while(!0);do Sn in this&&(wn=tn.call(void 0,wn,un[Sn],Sn,cn));while(Sn--);return wn}),(!Array.prototype.indexOf||[0,1].indexOf(1,2)!=-1)&&(Array.prototype.indexOf=function(tn){var cn=zi&&li(this)=="[object String]"?this.split(""):_n(this),un=cn.length>>>0;if(!un)return-1;var gn=0;for(arguments.length>1&&(gn=An(arguments[1])),gn=gn>=0?gn:Math.max(0,un+gn);gn>>0;if(!un)return-1;var gn=un-1;for(arguments.length>1&&(gn=Math.min(gn,An(arguments[1]))),gn=gn>=0?gn:un-Math.abs(gn);gn>=0;gn--)if(gn in cn&&tn===cn[gn])return gn;return-1}),Object.getPrototypeOf||(Object.getPrototypeOf=function(tn){return tn.__proto__||(tn.constructor?tn.constructor.prototype:gi)}),!Object.getOwnPropertyDescriptor){var Ei="Object.getOwnPropertyDescriptor called on a non-object: ";Object.getOwnPropertyDescriptor=function(tn,cn){if(typeof tn!="object"&&typeof tn!="function"||tn===null)throw new TypeError(Ei+tn);if(ci(tn,cn)){var un,gn,wn;if(un={enumerable:!0,configurable:!0},Li){var Sn=tn.__proto__;tn.__proto__=gi;var gn=vi(tn,cn),wn=Ai(tn,cn);if(tn.__proto__=Sn,gn||wn)return gn&&(un.get=gn),wn&&(un.set=wn),un}return un.value=tn[cn],un}}}if(Object.getOwnPropertyNames||(Object.getOwnPropertyNames=function(tn){return Object.keys(tn)}),!Object.create){var Ii;Object.prototype.__proto__===null?Ii=function(){return{__proto__:null}}:Ii=function(){var dn={};for(var tn in dn)dn[tn]=null;return dn.constructor=dn.hasOwnProperty=dn.propertyIsEnumerable=dn.isPrototypeOf=dn.toLocaleString=dn.toString=dn.valueOf=dn.__proto__=null,dn},Object.create=function(tn,cn){var un;if(tn===null)un=Ii();else{if(typeof tn!="object")throw new TypeError("typeof prototype["+typeof tn+"] != 'object'");var gn=function(){};gn.prototype=tn,un=new gn,un.__proto__=tn}return cn!==void 0&&Object.defineProperties(un,cn),un}}function ki(dn){try{return Object.defineProperty(dn,"sentinel",{}),"sentinel"in dn}catch{}}if(Object.defineProperty){var Ti=ki({}),Pi=typeof document>"u"||ki(document.createElement("div"));if(!Ti||!Pi)var ji=Object.defineProperty}if(!Object.defineProperty||ji){var Di="Property description must be an object: ",Ni="Object.defineProperty called on non-object: ",qi="getters & setters can not be defined on this javascript engine";Object.defineProperty=function(tn,cn,un){if(typeof tn!="object"&&typeof tn!="function"||tn===null)throw new TypeError(Ni+tn);if(typeof un!="object"&&typeof un!="function"||un===null)throw new TypeError(Di+un);if(ji)try{return ji.call(Object,tn,cn,un)}catch{}if(ci(un,"value"))if(Li&&(vi(tn,cn)||Ai(tn,cn))){var gn=tn.__proto__;tn.__proto__=gi,delete tn[cn],tn[cn]=un.value,tn.__proto__=gn}else tn[cn]=un.value;else{if(!Li)throw new TypeError(qi);ci(un,"get")&&pi(tn,cn,un.get),ci(un,"set")&&bi(tn,cn,un.set)}return tn}}Object.defineProperties||(Object.defineProperties=function(tn,cn){for(var un in cn)ci(cn,un)&&Object.defineProperty(tn,un,cn[un]);return tn}),Object.seal||(Object.seal=function(tn){return tn}),Object.freeze||(Object.freeze=function(tn){return tn});try{Object.freeze(function(){})}catch{Object.freeze=function(cn){return function(gn){return typeof gn=="function"?gn:cn(gn)}}(Object.freeze)}if(Object.preventExtensions||(Object.preventExtensions=function(tn){return tn}),Object.isSealed||(Object.isSealed=function(tn){return!1}),Object.isFrozen||(Object.isFrozen=function(tn){return!1}),Object.isExtensible||(Object.isExtensible=function(tn){if(Object(tn)===tn)throw new TypeError;for(var cn="";ci(tn,cn);)cn+="?";tn[cn]=!0;var un=ci(tn,cn);return delete tn[cn],un}),!Object.keys){var Ji=!0,sn=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],en=sn.length;for(var rn in{toString:null})Ji=!1;Object.keys=function(tn){if(typeof tn!="object"&&typeof tn!="function"||tn===null)throw new TypeError("Object.keys called on a non-object");var cn=[];for(var un in tn)ci(tn,un)&&cn.push(un);if(Ji)for(var gn=0,wn=en;gn0||-1)*Math.floor(Math.abs(dn))),dn}var _n=function(dn){if(dn==null)throw new TypeError("can't convert "+dn+" to object");return Object(dn)}});ace.define("ace/lib/fixoldbrowsers",["require","exports","module","ace/lib/regexp","ace/lib/es5-shim"],function(ti,ni,oi){ti("./regexp"),ti("./es5-shim")});ace.define("ace/lib/dom",["require","exports","module"],function(ti,ni,oi){var ui="http://www.w3.org/1999/xhtml";if(ni.getDocumentHead=function(fi){return fi||(fi=document),fi.head||fi.getElementsByTagName("head")[0]||fi.documentElement},ni.createElement=function(fi,mi){return document.createElementNS?document.createElementNS(mi||ui,fi):document.createElement(fi)},ni.hasCssClass=function(fi,mi){var gi=(fi.className+"").split(/\s+/g);return gi.indexOf(mi)!==-1},ni.addCssClass=function(fi,mi){ni.hasCssClass(fi,mi)||(fi.className+=" "+mi)},ni.removeCssClass=function(fi,mi){for(var gi=fi.className.split(/\s+/g);;){var di=gi.indexOf(mi);if(di==-1)break;gi.splice(di,1)}fi.className=gi.join(" ")},ni.toggleCssClass=function(fi,mi){for(var gi=fi.className.split(/\s+/g),di=!0;;){var li=gi.indexOf(mi);if(li==-1)break;di=!1,gi.splice(li,1)}return di&&gi.push(mi),fi.className=gi.join(" "),di},ni.setCssClass=function(fi,mi,gi){gi?ni.addCssClass(fi,mi):ni.removeCssClass(fi,mi)},ni.hasCssString=function(fi,mi){var gi=0,di;if(mi=mi||document,mi.createStyleSheet&&(di=mi.styleSheets)){for(;gi"u"){ni.importCssString=function(){};return}window.pageYOffset!==void 0?(ni.getPageScrollTop=function(){return window.pageYOffset},ni.getPageScrollLeft=function(){return window.pageXOffset}):(ni.getPageScrollTop=function(){return document.body.scrollTop},ni.getPageScrollLeft=function(){return document.body.scrollLeft}),window.getComputedStyle?ni.computedStyle=function(fi,mi){return mi?(window.getComputedStyle(fi,"")||{})[mi]||"":window.getComputedStyle(fi,"")||{}}:ni.computedStyle=function(fi,mi){return mi?fi.currentStyle[mi]:fi.currentStyle},ni.setInnerHtml=function(fi,mi){var gi=fi.cloneNode(!1);return gi.innerHTML=mi,fi.parentNode.replaceChild(gi,fi),gi},"textContent"in document.documentElement?(ni.setInnerText=function(fi,mi){fi.textContent=mi},ni.getInnerText=function(fi){return fi.textContent}):(ni.setInnerText=function(fi,mi){fi.innerText=mi},ni.getInnerText=function(fi){return fi.innerText}),ni.getParentWindow=function(fi){return fi.defaultView||fi.parentWindow}});ace.define("ace/lib/oop",["require","exports","module"],function(ti,ni,oi){ni.inherits=function(ui,fi){ui.super_=fi,ui.prototype=Object.create(fi.prototype,{constructor:{value:ui,enumerable:!1,writable:!0,configurable:!0}})},ni.mixin=function(ui,fi){for(var mi in fi)ui[mi]=fi[mi];return ui},ni.implement=function(ui,fi){ni.mixin(ui,fi)}});ace.define("ace/lib/keys",["require","exports","module","ace/lib/fixoldbrowsers","ace/lib/oop"],function(ti,ni,oi){ti("./fixoldbrowsers");var ui=ti("./oop"),fi=function(){var mi={MODIFIER_KEYS:{16:"Shift",17:"Ctrl",18:"Alt",224:"Meta"},KEY_MODS:{ctrl:1,alt:2,option:2,shift:4,super:8,meta:8,command:8,cmd:8},FUNCTION_KEYS:{8:"Backspace",9:"Tab",13:"Return",19:"Pause",27:"Esc",32:"Space",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"Left",38:"Up",39:"Right",40:"Down",44:"Print",45:"Insert",46:"Delete",96:"Numpad0",97:"Numpad1",98:"Numpad2",99:"Numpad3",100:"Numpad4",101:"Numpad5",102:"Numpad6",103:"Numpad7",104:"Numpad8",105:"Numpad9","-13":"NumpadEnter",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"Numlock",145:"Scrolllock"},PRINTABLE_KEYS:{32:" ",48:"0",49:"1",50:"2",51:"3",52:"4",53:"5",54:"6",55:"7",56:"8",57:"9",59:";",61:"=",65:"a",66:"b",67:"c",68:"d",69:"e",70:"f",71:"g",72:"h",73:"i",74:"j",75:"k",76:"l",77:"m",78:"n",79:"o",80:"p",81:"q",82:"r",83:"s",84:"t",85:"u",86:"v",87:"w",88:"x",89:"y",90:"z",107:"+",109:"-",110:".",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'",111:"/",106:"*"}},gi,di;for(di in mi.FUNCTION_KEYS)gi=mi.FUNCTION_KEYS[di].toLowerCase(),mi[gi]=parseInt(di,10);for(di in mi.PRINTABLE_KEYS)gi=mi.PRINTABLE_KEYS[di].toLowerCase(),mi[gi]=parseInt(di,10);return ui.mixin(mi,mi.MODIFIER_KEYS),ui.mixin(mi,mi.PRINTABLE_KEYS),ui.mixin(mi,mi.FUNCTION_KEYS),mi.enter=mi.return,mi.escape=mi.esc,mi.del=mi.delete,mi[173]="-",function(){for(var li=["cmd","ctrl","alt","shift"],ci=Math.pow(2,li.length);ci--;)mi.KEY_MODS[ci]=li.filter(function(pi){return ci&mi.KEY_MODS[pi]}).join("-")+"-"}(),mi.KEY_MODS[0]="",mi.KEY_MODS[-1]="input-",mi}();ui.mixin(ni,fi),ni.keyCodeToString=function(mi){var gi=fi[mi];return typeof gi!="string"&&(gi=String.fromCharCode(mi)),gi.toLowerCase()}});ace.define("ace/lib/useragent",["require","exports","module"],function(ti,ni,oi){if(ni.OS={LINUX:"LINUX",MAC:"MAC",WINDOWS:"WINDOWS"},ni.getOS=function(){return ni.isMac?ni.OS.MAC:ni.isLinux?ni.OS.LINUX:ni.OS.WINDOWS},typeof navigator=="object"){var ui=(navigator.platform.match(/mac|win|linux/i)||["other"])[0].toLowerCase(),fi=navigator.userAgent;ni.isWin=ui=="win",ni.isMac=ui=="mac",ni.isLinux=ui=="linux",ni.isIE=navigator.appName=="Microsoft Internet Explorer"||navigator.appName.indexOf("MSAppHost")>=0?parseFloat((fi.match(/(?:MSIE |Trident\/[0-9]+[\.0-9]+;.*rv:)([0-9]+[\.0-9]+)/)||[])[1]):parseFloat((fi.match(/(?:Trident\/[0-9]+[\.0-9]+;.*rv:)([0-9]+[\.0-9]+)/)||[])[1]),ni.isOldIE=ni.isIE&&ni.isIE<9,ni.isGecko=ni.isMozilla=(window.Controllers||window.controllers)&&window.navigator.product==="Gecko",ni.isOldGecko=ni.isGecko&&parseInt((fi.match(/rv:(\d+)/)||[])[1],10)<4,ni.isOpera=window.opera&&Object.prototype.toString.call(window.opera)=="[object Opera]",ni.isWebKit=parseFloat(fi.split("WebKit/")[1])||void 0,ni.isChrome=parseFloat(fi.split(" Chrome/")[1])||void 0,ni.isAIR=fi.indexOf("AdobeAIR")>=0,ni.isIPad=fi.indexOf("iPad")>=0,ni.isChromeOS=fi.indexOf(" CrOS ")>=0,ni.isIOS=/iPad|iPhone|iPod/.test(fi)&&!window.MSStream,ni.isIOS&&(ni.isMac=!0)}});ace.define("ace/lib/event",["require","exports","module","ace/lib/keys","ace/lib/useragent"],function(ti,ni,oi){var ui=ti("./keys"),fi=ti("./useragent"),mi=null,gi=0;ni.addListener=function(bi,vi,Ai){if(bi.addEventListener)return bi.addEventListener(vi,Ai,!1);if(bi.attachEvent){var Li=function(){Ai.call(bi,window.event)};Ai._wrapper=Li,bi.attachEvent("on"+vi,Li)}},ni.removeListener=function(bi,vi,Ai){if(bi.removeEventListener)return bi.removeEventListener(vi,Ai,!1);bi.detachEvent&&bi.detachEvent("on"+vi,Ai._wrapper||Ai)},ni.stopEvent=function(bi){return ni.stopPropagation(bi),ni.preventDefault(bi),!1},ni.stopPropagation=function(bi){bi.stopPropagation?bi.stopPropagation():bi.cancelBubble=!0},ni.preventDefault=function(bi){bi.preventDefault?bi.preventDefault():bi.returnValue=!1},ni.getButton=function(bi){return bi.type=="dblclick"?0:bi.type=="contextmenu"||fi.isMac&&bi.ctrlKey&&!bi.altKey&&!bi.shiftKey?2:bi.preventDefault?bi.button:{1:0,2:2,4:1}[bi.button]},ni.capture=function(bi,vi,Ai){function Li(Bi){vi&&vi(Bi),Ai&&Ai(Bi),ni.removeListener(document,"mousemove",vi,!0),ni.removeListener(document,"mouseup",Li,!0),ni.removeListener(document,"dragstart",Li,!0)}return ni.addListener(document,"mousemove",vi,!0),ni.addListener(document,"mouseup",Li,!0),ni.addListener(document,"dragstart",Li,!0),Li},ni.addTouchMoveListener=function(bi,vi){var Ai,Li;ni.addListener(bi,"touchstart",function(Bi){var Ri=Bi.touches,zi=Ri[0];Ai=zi.clientX,Li=zi.clientY}),ni.addListener(bi,"touchmove",function(Bi){var Ri=Bi.touches;if(!(Ri.length>1)){var zi=Ri[0];Bi.wheelX=Ai-zi.clientX,Bi.wheelY=Li-zi.clientY,Ai=zi.clientX,Li=zi.clientY,vi(Bi)}})},ni.addMouseWheelListener=function(bi,vi){"onmousewheel"in bi?ni.addListener(bi,"mousewheel",function(Ai){var Li=8;Ai.wheelDeltaX!==void 0?(Ai.wheelX=-Ai.wheelDeltaX/Li,Ai.wheelY=-Ai.wheelDeltaY/Li):(Ai.wheelX=0,Ai.wheelY=-Ai.wheelDelta/Li),vi(Ai)}):"onwheel"in bi?ni.addListener(bi,"wheel",function(Ai){var Li=.35;switch(Ai.deltaMode){case Ai.DOM_DELTA_PIXEL:Ai.wheelX=Ai.deltaX*Li||0,Ai.wheelY=Ai.deltaY*Li||0;break;case Ai.DOM_DELTA_LINE:case Ai.DOM_DELTA_PAGE:Ai.wheelX=(Ai.deltaX||0)*5,Ai.wheelY=(Ai.deltaY||0)*5;break}vi(Ai)}):ni.addListener(bi,"DOMMouseScroll",function(Ai){Ai.axis&&Ai.axis==Ai.HORIZONTAL_AXIS?(Ai.wheelX=(Ai.detail||0)*5,Ai.wheelY=0):(Ai.wheelX=0,Ai.wheelY=(Ai.detail||0)*5),vi(Ai)})},ni.addMultiMouseDownListener=function(bi,vi,Ai,Li){var Bi=0,Ri,zi,Ei,Ii={2:"dblclick",3:"tripleclick",4:"quadclick"};function ki(Pi){if(ni.getButton(Pi)!==0?Bi=0:Pi.detail>1?(Bi++,Bi>4&&(Bi=1)):Bi=1,fi.isIE){var ji=Math.abs(Pi.clientX-Ri)>5||Math.abs(Pi.clientY-zi)>5;(!Ei||ji)&&(Bi=1),Ei&&clearTimeout(Ei),Ei=setTimeout(function(){Ei=null},vi[Bi-1]||600),Bi==1&&(Ri=Pi.clientX,zi=Pi.clientY)}if(Pi._clicks=Bi,Ai[Li]("mousedown",Pi),Bi>4)Bi=0;else if(Bi>1)return Ai[Li](Ii[Bi],Pi)}function Ti(Pi){Bi=2,Ei&&clearTimeout(Ei),Ei=setTimeout(function(){Ei=null},vi[Bi-1]||600),Ai[Li]("mousedown",Pi),Ai[Li](Ii[Bi],Pi)}Array.isArray(bi)||(bi=[bi]),bi.forEach(function(Pi){ni.addListener(Pi,"mousedown",ki),fi.isOldIE&&ni.addListener(Pi,"dblclick",Ti)})};var di=fi.isMac&&fi.isOpera&&!("KeyboardEvent"in window)?function(bi){return 0|(bi.metaKey?1:0)|(bi.altKey?2:0)|(bi.shiftKey?4:0)|(bi.ctrlKey?8:0)}:function(bi){return 0|(bi.ctrlKey?1:0)|(bi.altKey?2:0)|(bi.shiftKey?4:0)|(bi.metaKey?8:0)};ni.getModifierString=function(bi){return ui.KEY_MODS[di(bi)]};function li(bi,vi,Ai){var Li=di(vi);if(!fi.isMac&&mi){if(vi.getModifierState&&(vi.getModifierState("OS")||vi.getModifierState("Win"))&&(Li|=8),mi.altGr)if((3&Li)!=3)mi.altGr=0;else return;if(Ai===18||Ai===17){var Bi="location"in vi?vi.location:vi.keyLocation;if(Ai===17&&Bi===1)mi[Ai]==1&&(gi=vi.timeStamp);else if(Ai===18&&Li===3&&Bi===2){var Ri=vi.timeStamp-gi;Ri<50&&(mi.altGr=!0)}}}if(Ai in ui.MODIFIER_KEYS&&(Ai=-1),Li&8&&Ai>=91&&Ai<=93&&(Ai=-1),!Li&&Ai===13){var Bi="location"in vi?vi.location:vi.keyLocation;if(Bi===3&&(bi(vi,Li,-Ai),vi.defaultPrevented))return}if(fi.isChromeOS&&Li&8){if(bi(vi,Li,Ai),vi.defaultPrevented)return;Li&=-9}return!Li&&!(Ai in ui.FUNCTION_KEYS)&&!(Ai in ui.PRINTABLE_KEYS)?!1:bi(vi,Li,Ai)}ni.addCommandKeyListener=function(bi,vi){var Ai=ni.addListener;if(fi.isOldGecko||fi.isOpera&&!("KeyboardEvent"in window)){var Li=null;Ai(bi,"keydown",function(Ri){Li=Ri.keyCode}),Ai(bi,"keypress",function(Ri){return li(vi,Ri,Li)})}else{var Bi=null;Ai(bi,"keydown",function(Ri){mi[Ri.keyCode]=(mi[Ri.keyCode]||0)+1;var zi=li(vi,Ri,Ri.keyCode);return Bi=Ri.defaultPrevented,zi}),Ai(bi,"keypress",function(Ri){Bi&&(Ri.ctrlKey||Ri.altKey||Ri.shiftKey||Ri.metaKey)&&(ni.stopEvent(Ri),Bi=null)}),Ai(bi,"keyup",function(Ri){mi[Ri.keyCode]=null}),mi||(ci(),Ai(window,"focus",ci))}};function ci(){mi=Object.create(null)}if(typeof window=="object"&&window.postMessage&&!fi.isOldIE){var pi=1;ni.nextTick=function(bi,vi){vi=vi||window;var Ai="zero-timeout-message-"+pi;ni.addListener(vi,"message",function Li(Bi){Bi.data==Ai&&(ni.stopPropagation(Bi),ni.removeListener(vi,"message",Li),bi())}),vi.postMessage(Ai,"*")}}ni.nextFrame=typeof window=="object"&&(window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame||window.oRequestAnimationFrame),ni.nextFrame?ni.nextFrame=ni.nextFrame.bind(window):ni.nextFrame=function(bi){setTimeout(bi,17)}});ace.define("ace/lib/lang",["require","exports","module"],function(ti,ni,oi){ni.last=function(mi){return mi[mi.length-1]},ni.stringReverse=function(mi){return mi.split("").reverse().join("")},ni.stringRepeat=function(mi,gi){for(var di="";gi>0;)gi&1&&(di+=mi),(gi>>=1)&&(mi+=mi);return di};var ui=/^\s\s*/,fi=/\s\s*$/;ni.stringTrimLeft=function(mi){return mi.replace(ui,"")},ni.stringTrimRight=function(mi){return mi.replace(fi,"")},ni.copyObject=function(mi){var gi={};for(var di in mi)gi[di]=mi[di];return gi},ni.copyArray=function(mi){for(var gi=[],di=0,li=mi.length;diBi.length?Tn=Tn.substr(9):Tn.substr(0,4)==Bi.substr(0,4)?Tn=Tn.substr(4,Tn.length-Bi.length+1):Tn.charAt(Tn.length-1)==Bi.charAt(0)&&(Tn=Tn.slice(0,-1)),Tn==Bi.charAt(0)||Tn.charAt(Tn.length-1)==Bi.charAt(0)&&(Tn=Tn.slice(0,-1)),Tn&&Ai.onTextInput(Tn)),Ri&&(Ri=!1),rn&&(rn=!1))},vn=function(Tn){if(!Ii){var Dn=Li.value;fn(Dn),qi()}},bn=function(Tn,Dn,Wn){var Yr=Tn.clipboardData||window.clipboardData;if(!(!Yr||ci)){var Gr=pi||Wn?"Text":"text/plain";try{return Dn?Yr.setData(Gr,Dn)!==!1:Yr.getData(Gr)}catch(Jn){if(!Wn)return bn(Jn,Dn,!0)}}},An=function(Tn,Dn){var Wn=Ai.getCopyText();if(!Wn)return ui.preventDefault(Tn);bn(Tn,Wn)?(fi.isIOS&&(zi=Dn,Li.value=` aa`+Wn+`a a `,Li.setSelectionRange(4,4+Wn.length),Ri={value:Wn}),Dn?Ai.onCut():Ai.onCopy(),fi.isIOS||ui.preventDefault(Tn)):(Ri=!0,Li.value=Wn,Li.select(),setTimeout(function(){Ri=!1,qi(),Ni(),Dn?Ai.onCut():Ai.onCopy()}))},_n=function(Tn){An(Tn,!0)},dn=function(Tn){An(Tn,!1)},tn=function(Tn){var Dn=bn(Tn);typeof Dn=="string"?(Dn&&Ai.onPaste(Dn,Tn),fi.isIE&&setTimeout(Ni),ui.preventDefault(Tn)):(Li.value="",Ei=!0)};ui.addCommandKeyListener(Li,Ai.onCommandKey.bind(Ai)),ui.addListener(Li,"select",sn),ui.addListener(Li,"input",vn),ui.addListener(Li,"cut",_n),ui.addListener(Li,"copy",dn),ui.addListener(Li,"paste",tn);var cn=function(Tn){Ii||!Ai.onCompositionStart||Ai.$readOnly||(Ii={},Ii.canUndo=Ai.session.$undoManager,Ai.onCompositionStart(),setTimeout(un,0),Ai.on("mousedown",gn),Ii.canUndo&&!Ai.selection.isEmpty()&&(Ai.insert(""),Ai.session.markUndoGroup(),Ai.selection.clearSelection()),Ai.session.markUndoGroup())},un=function(){if(!(!Ii||!Ai.onCompositionUpdate||Ai.$readOnly)){var Tn=Li.value.replace(/\x01/g,"");if(Ii.lastValue!==Tn&&(Ai.onCompositionUpdate(Tn),Ii.lastValue&&Ai.undo(),Ii.canUndo&&(Ii.lastValue=Tn),Ii.lastValue)){var Dn=Ai.selection.getRange();Ai.insert(Ii.lastValue),Ai.session.markUndoGroup(),Ii.range=Ai.selection.getRange(),Ai.selection.setRange(Dn),Ai.selection.clearSelection()}}},gn=function(Tn){if(!(!Ai.onCompositionEnd||Ai.$readOnly)){var Dn=Ii;Ii=!1;var Wn=setTimeout(function(){Wn=null;var Gr=Li.value.replace(/\x01/g,"");Ii||(Gr==Dn.lastValue?qi():!Dn.lastValue&&Gr&&(qi(),fn(Gr)))});en=function(Jn){return Wn&&clearTimeout(Wn),Jn=Jn.replace(/\x01/g,""),Jn==Dn.lastValue?"":(Dn.lastValue&&Wn&&Ai.undo(),Jn)},Ai.onCompositionEnd(),Ai.removeListener("mousedown",gn),Tn.type=="compositionend"&&Dn.range&&Ai.selection.setRange(Dn.range);var Yr=!!fi.isChrome&&fi.isChrome>=53||!!fi.isWebKit&&fi.isWebKit>=603;Yr&&vn()}},wn=gi.delayedCall(un,50);ui.addListener(Li,"compositionstart",cn),fi.isGecko?ui.addListener(Li,"text",function(){wn.schedule()}):(ui.addListener(Li,"keyup",function(){wn.schedule()}),ui.addListener(Li,"keydown",function(){wn.schedule()})),ui.addListener(Li,"compositionend",gn),this.getElement=function(){return Li},this.setReadOnly=function(Tn){Li.readOnly=Tn},this.onContextMenu=function(Tn){rn=!0,Ni(Ai.selection.isEmpty()),Ai._emit("nativecontextmenu",{target:Ai,domEvent:Tn}),this.moveToMouse(Tn,!0)},this.moveToMouse=function(Tn,Dn){ki||(ki=Li.style.cssText),Li.style.cssText=(Dn?"z-index:100000;":"")+"height:"+Li.style.height+";"+(fi.isIE?"opacity:0.1;":"");var Wn=Ai.container.getBoundingClientRect(),Yr=mi.computedStyle(Ai.container),Gr=Wn.top+(parseInt(Yr.borderTopWidth)||0),Jn=Wn.left+(parseInt(Wn.borderLeftWidth)||0),Zr=Wn.bottom-Gr-Li.clientHeight-2,ns=function(es){Li.style.left=es.clientX-Jn-2+"px",Li.style.top=Math.min(es.clientY-Gr-2,Zr)+"px"};ns(Tn),Tn.type=="mousedown"&&(Ai.renderer.$keepTextAreaAtCursor&&(Ai.renderer.$keepTextAreaAtCursor=null),clearTimeout(Sn),fi.isWin&&ui.capture(Ai.container,ns,pn))},this.onContextMenuClose=pn;var Sn;function pn(){clearTimeout(Sn),Sn=setTimeout(function(){ki&&(Li.style.cssText=ki,ki=""),Ai.renderer.$keepTextAreaAtCursor==null&&(Ai.renderer.$keepTextAreaAtCursor=!0,Ai.renderer.$moveTextAreaToCursor())},0)}var Ln=function(Tn){Ai.textInput.onContextMenu(Tn),pn()};if(ui.addListener(Li,"mouseup",Ln),ui.addListener(Li,"mousedown",function(Tn){Tn.preventDefault(),pn()}),ui.addListener(Ai.renderer.scroller,"contextmenu",Ln),ui.addListener(Li,"contextmenu",Ln),fi.isIOS){var Rn=null,Hn=!1;vi.addEventListener("keydown",function(Tn){Rn&&clearTimeout(Rn),Hn=!0}),vi.addEventListener("keyup",function(Tn){Rn=setTimeout(function(){Hn=!1},100)});var zn=function(Tn){if(document.activeElement===Li&&!Hn){if(zi)return setTimeout(function(){zi=!1},100);var Dn=Li.selectionStart,Wn=Li.selectionEnd;if(Li.setSelectionRange(4,5),Dn==Wn)switch(Dn){case 0:Ai.onCommandKey(null,0,di.up);break;case 1:Ai.onCommandKey(null,0,di.home);break;case 2:Ai.onCommandKey(null,li.option,di.left);break;case 4:Ai.onCommandKey(null,0,di.left);break;case 5:Ai.onCommandKey(null,0,di.right);break;case 7:Ai.onCommandKey(null,li.option,di.right);break;case 8:Ai.onCommandKey(null,0,di.end);break;case 9:Ai.onCommandKey(null,0,di.down);break}else{switch(Wn){case 6:Ai.onCommandKey(null,li.shift,di.right);break;case 7:Ai.onCommandKey(null,li.shift|li.option,di.right);break;case 8:Ai.onCommandKey(null,li.shift,di.end);break;case 9:Ai.onCommandKey(null,li.shift,di.down);break}switch(Dn){case 0:Ai.onCommandKey(null,li.shift,di.up);break;case 1:Ai.onCommandKey(null,li.shift,di.home);break;case 2:Ai.onCommandKey(null,li.shift|li.option,di.left);break;case 3:Ai.onCommandKey(null,li.shift,di.left);break}}}};document.addEventListener("selectionchange",zn),Ai.on("destroy",function(){document.removeEventListener("selectionchange",zn)})}};ni.TextInput=bi});ace.define("ace/keyboard/textinput",["require","exports","module","ace/lib/event","ace/lib/useragent","ace/lib/dom","ace/lib/lang","ace/keyboard/textinput_ios"],function(ti,ni,oi){var ui=ti("../lib/event"),fi=ti("../lib/useragent"),mi=ti("../lib/dom"),gi=ti("../lib/lang"),di=fi.isChrome<18,li=fi.isIE,ci=ti("./textinput_ios").TextInput,pi=function(bi,vi){if(fi.isIOS)return ci.call(this,bi,vi);var Ai=mi.createElement("textarea");Ai.className="ace_text-input",Ai.setAttribute("wrap","off"),Ai.setAttribute("autocorrect","off"),Ai.setAttribute("autocapitalize","off"),Ai.setAttribute("spellcheck",!1),Ai.style.opacity="0",bi.insertBefore(Ai,bi.firstChild);var Li="\u2028\u2028",Bi=!1,Ri=!1,zi=!1,Ei="",Ii=!0;try{var ki=document.activeElement===Ai}catch{}ui.addListener(Ai,"blur",function(pn){vi.onBlur(pn),ki=!1}),ui.addListener(Ai,"focus",function(pn){ki=!0,vi.onFocus(pn),ji()}),this.focus=function(){if(Ei)return Ai.focus();var pn=Ai.style.top;Ai.style.position="fixed",Ai.style.top="0px",Ai.focus(),setTimeout(function(){Ai.style.position="",Ai.style.top=="0px"&&(Ai.style.top=pn)},0)},this.blur=function(){Ai.blur()},this.isFocused=function(){return ki};var Ti=gi.delayedCall(function(){ki&&ji(Ii)}),Pi=gi.delayedCall(function(){zi||(Ai.value=Li,ki&&ji())});function ji(pn){if(!zi){if(zi=!0,Ji)var Ln=0,Rn=pn?0:Ai.value.length-1;else var Ln=pn?2:1,Rn=2;try{Ai.setSelectionRange(Ln,Rn)}catch{}zi=!1}}function Di(){zi||(Ai.value=Li,fi.isWebKit&&Pi.schedule())}fi.isWebKit||vi.addEventListener("changeSelection",function(){vi.selection.isEmpty()!=Ii&&(Ii=!Ii,Ti.schedule())}),Di(),ki&&vi.onFocus();var Ni=function(pn){return pn.selectionStart===0&&pn.selectionEnd===pn.value.length},qi=function(pn){Bi?Bi=!1:Ni(Ai)?(vi.selectAll(),ji()):Ji&&ji(vi.selection.isEmpty())},Ji=null;this.setInputHandler=function(pn){Ji=pn},this.getInputHandler=function(){return Ji};var sn=!1,en=function(pn){Ji&&(pn=Ji(pn),Ji=null),Ri?(ji(),pn&&vi.onPaste(pn),Ri=!1):pn==Li.charAt(0)?sn?vi.execCommand("del",{source:"ace"}):vi.execCommand("backspace",{source:"ace"}):(pn.substring(0,2)==Li?pn=pn.substr(2):pn.charAt(0)==Li.charAt(0)?pn=pn.substr(1):pn.charAt(pn.length-1)==Li.charAt(0)&&(pn=pn.slice(0,-1)),pn.charAt(pn.length-1)==Li.charAt(0)&&(pn=pn.slice(0,-1)),pn&&vi.onTextInput(pn)),sn&&(sn=!1)},rn=function(pn){if(!zi){var Ln=Ai.value;en(Ln),Di()}},fn=function(pn,Ln,Rn){var Hn=pn.clipboardData||window.clipboardData;if(!(!Hn||di)){var zn=li||Rn?"Text":"text/plain";try{return Ln?Hn.setData(zn,Ln)!==!1:Hn.getData(zn)}catch(Tn){if(!Rn)return fn(Tn,Ln,!0)}}},vn=function(pn,Ln){var Rn=vi.getCopyText();if(!Rn)return ui.preventDefault(pn);fn(pn,Rn)?(Ln?vi.onCut():vi.onCopy(),ui.preventDefault(pn)):(Bi=!0,Ai.value=Rn,Ai.select(),setTimeout(function(){Bi=!1,Di(),ji(),Ln?vi.onCut():vi.onCopy()}))},bn=function(pn){vn(pn,!0)},An=function(pn){vn(pn,!1)},_n=function(pn){var Ln=fn(pn);typeof Ln=="string"?(Ln&&vi.onPaste(Ln,pn),fi.isIE&&setTimeout(ji),ui.preventDefault(pn)):(Ai.value="",Ri=!0)};ui.addCommandKeyListener(Ai,vi.onCommandKey.bind(vi)),ui.addListener(Ai,"select",qi),ui.addListener(Ai,"input",rn),ui.addListener(Ai,"cut",bn),ui.addListener(Ai,"copy",An),ui.addListener(Ai,"paste",_n),(!("oncut"in Ai)||!("oncopy"in Ai)||!("onpaste"in Ai))&&ui.addListener(bi,"keydown",function(pn){if(!(fi.isMac&&!pn.metaKey||!pn.ctrlKey))switch(pn.keyCode){case 67:An(pn);break;case 86:_n(pn);break;case 88:bn(pn);break}});var dn=function(pn){zi||!vi.onCompositionStart||vi.$readOnly||(zi={},zi.canUndo=vi.session.$undoManager,vi.onCompositionStart(),setTimeout(tn,0),vi.on("mousedown",cn),zi.canUndo&&!vi.selection.isEmpty()&&(vi.insert(""),vi.session.markUndoGroup(),vi.selection.clearSelection()),vi.session.markUndoGroup())},tn=function(){if(!(!zi||!vi.onCompositionUpdate||vi.$readOnly)){var pn=Ai.value.replace(/\u2028/g,"");if(zi.lastValue!==pn&&(vi.onCompositionUpdate(pn),zi.lastValue&&vi.undo(),zi.canUndo&&(zi.lastValue=pn),zi.lastValue)){var Ln=vi.selection.getRange();vi.insert(zi.lastValue),vi.session.markUndoGroup(),zi.range=vi.selection.getRange(),vi.selection.setRange(Ln),vi.selection.clearSelection()}}},cn=function(pn){if(!(!vi.onCompositionEnd||vi.$readOnly)){var Ln=zi;zi=!1;var Rn=setTimeout(function(){Rn=null;var zn=Ai.value.replace(/\u2028/g,"");zi||(zn==Ln.lastValue?Di():!Ln.lastValue&&zn&&(Di(),en(zn)))});Ji=function(Tn){return Rn&&clearTimeout(Rn),Tn=Tn.replace(/\u2028/g,""),Tn==Ln.lastValue?"":(Ln.lastValue&&Rn&&vi.undo(),Tn)},vi.onCompositionEnd(),vi.removeListener("mousedown",cn),pn.type=="compositionend"&&Ln.range&&vi.selection.setRange(Ln.range);var Hn=!!fi.isChrome&&fi.isChrome>=53||!!fi.isWebKit&&fi.isWebKit>=603;Hn&&rn()}},un=gi.delayedCall(tn,50);ui.addListener(Ai,"compositionstart",dn),fi.isGecko?ui.addListener(Ai,"text",function(){un.schedule()}):(ui.addListener(Ai,"keyup",function(){un.schedule()}),ui.addListener(Ai,"keydown",function(){un.schedule()})),ui.addListener(Ai,"compositionend",cn),this.getElement=function(){return Ai},this.setReadOnly=function(pn){Ai.readOnly=pn},this.onContextMenu=function(pn){sn=!0,ji(vi.selection.isEmpty()),vi._emit("nativecontextmenu",{target:vi,domEvent:pn}),this.moveToMouse(pn,!0)},this.moveToMouse=function(pn,Ln){Ei||(Ei=Ai.style.cssText),Ai.style.cssText=(Ln?"z-index:100000;":"")+"height:"+Ai.style.height+";"+(fi.isIE?"opacity:0.1;":"");var Rn=vi.container.getBoundingClientRect(),Hn=mi.computedStyle(vi.container),zn=Rn.top+(parseInt(Hn.borderTopWidth)||0),Tn=Rn.left+(parseInt(Rn.borderLeftWidth)||0),Dn=Rn.bottom-zn-Ai.clientHeight-2,Wn=function(Yr){Ai.style.left=Yr.clientX-Tn-2+"px",Ai.style.top=Math.min(Yr.clientY-zn-2,Dn)+"px"};Wn(pn),pn.type=="mousedown"&&(vi.renderer.$keepTextAreaAtCursor&&(vi.renderer.$keepTextAreaAtCursor=null),clearTimeout(gn),fi.isWin&&ui.capture(vi.container,Wn,wn))},this.onContextMenuClose=wn;var gn;function wn(){clearTimeout(gn),gn=setTimeout(function(){Ei&&(Ai.style.cssText=Ei,Ei=""),vi.renderer.$keepTextAreaAtCursor==null&&(vi.renderer.$keepTextAreaAtCursor=!0,vi.renderer.$moveTextAreaToCursor())},0)}var Sn=function(pn){vi.textInput.onContextMenu(pn),wn()};ui.addListener(Ai,"mouseup",Sn),ui.addListener(Ai,"mousedown",function(pn){pn.preventDefault(),wn()}),ui.addListener(vi.renderer.scroller,"contextmenu",Sn),ui.addListener(Ai,"contextmenu",Sn)};ni.TextInput=pi});ace.define("ace/mouse/default_handlers",["require","exports","module","ace/lib/dom","ace/lib/event","ace/lib/useragent"],function(ti,ni,oi){ti("../lib/dom"),ti("../lib/event");var ui=ti("../lib/useragent"),fi=0,mi=250;function gi(ci){ci.$clickSelection=null;var pi=ci.editor;pi.setDefaultHandler("mousedown",this.onMouseDown.bind(ci)),pi.setDefaultHandler("dblclick",this.onDoubleClick.bind(ci)),pi.setDefaultHandler("tripleclick",this.onTripleClick.bind(ci)),pi.setDefaultHandler("quadclick",this.onQuadClick.bind(ci)),pi.setDefaultHandler("mousewheel",this.onMouseWheel.bind(ci)),pi.setDefaultHandler("touchmove",this.onTouchMove.bind(ci));var bi=["select","startSelect","selectEnd","selectAllEnd","selectByWordsEnd","selectByLinesEnd","dragWait","dragWaitEnd","focusWait"];bi.forEach(function(vi){ci[vi]=this[vi]},this),ci.selectByLines=this.extendSelectionBy.bind(ci,"getLineRange"),ci.selectByWords=this.extendSelectionBy.bind(ci,"getWordRange")}(function(){this.onMouseDown=function(ci){var pi=ci.inSelection(),bi=ci.getDocumentPosition();this.mousedownEvent=ci;var vi=this.editor,Ai=ci.getButton();if(Ai!==0){var Li=vi.getSelectionRange(),Bi=Li.isEmpty();vi.$blockScrolling++,(Bi||Ai==1)&&vi.selection.moveToPosition(bi),vi.$blockScrolling--,Ai==2&&(vi.textInput.onContextMenu(ci.domEvent),ui.isMozilla||ci.preventDefault());return}if(this.mousedownEvent.time=Date.now(),pi&&!vi.isFocused()&&(vi.focus(),this.$focusTimout&&!this.$clickSelection&&!vi.inMultiSelectMode)){this.setState("focusWait"),this.captureMouse(ci);return}return this.captureMouse(ci),this.startSelect(bi,ci.domEvent._clicks>1),ci.preventDefault()},this.startSelect=function(ci,pi){ci=ci||this.editor.renderer.screenToTextCoordinates(this.x,this.y);var bi=this.editor;bi.$blockScrolling++,this.mousedownEvent.getShiftKey()?bi.selection.selectToPosition(ci):pi||bi.selection.moveToPosition(ci),pi||this.select(),bi.renderer.scroller.setCapture&&bi.renderer.scroller.setCapture(),bi.setStyle("ace_selecting"),this.setState("select"),bi.$blockScrolling--},this.select=function(){var ci,pi=this.editor,bi=pi.renderer.screenToTextCoordinates(this.x,this.y);if(pi.$blockScrolling++,this.$clickSelection){var vi=this.$clickSelection.comparePoint(bi);if(vi==-1)ci=this.$clickSelection.end;else if(vi==1)ci=this.$clickSelection.start;else{var Ai=li(this.$clickSelection,bi);bi=Ai.cursor,ci=Ai.anchor}pi.selection.setSelectionAnchor(ci.row,ci.column)}pi.selection.selectToPosition(bi),pi.$blockScrolling--,pi.renderer.scrollCursorIntoView()},this.extendSelectionBy=function(ci){var pi,bi=this.editor,vi=bi.renderer.screenToTextCoordinates(this.x,this.y),Ai=bi.selection[ci](vi.row,vi.column);if(bi.$blockScrolling++,this.$clickSelection){var Li=this.$clickSelection.comparePoint(Ai.start),Bi=this.$clickSelection.comparePoint(Ai.end);if(Li==-1&&Bi<=0)pi=this.$clickSelection.end,(Ai.end.row!=vi.row||Ai.end.column!=vi.column)&&(vi=Ai.start);else if(Bi==1&&Li>=0)pi=this.$clickSelection.start,(Ai.start.row!=vi.row||Ai.start.column!=vi.column)&&(vi=Ai.end);else if(Li==-1&&Bi==1)vi=Ai.end,pi=Ai.start;else{var Ri=li(this.$clickSelection,vi);vi=Ri.cursor,pi=Ri.anchor}bi.selection.setSelectionAnchor(pi.row,pi.column)}bi.selection.selectToPosition(vi),bi.$blockScrolling--,bi.renderer.scrollCursorIntoView()},this.selectEnd=this.selectAllEnd=this.selectByWordsEnd=this.selectByLinesEnd=function(){this.$clickSelection=null,this.editor.unsetStyle("ace_selecting"),this.editor.renderer.scroller.releaseCapture&&this.editor.renderer.scroller.releaseCapture()},this.focusWait=function(){var ci=di(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y),pi=Date.now();(ci>fi||pi-this.mousedownEvent.time>this.$focusTimout)&&this.startSelect(this.mousedownEvent.getDocumentPosition())},this.onDoubleClick=function(ci){var pi=ci.getDocumentPosition(),bi=this.editor,vi=bi.session,Ai=vi.getBracketRange(pi);Ai?(Ai.isEmpty()&&(Ai.start.column--,Ai.end.column++),this.setState("select")):(Ai=bi.selection.getWordRange(pi.row,pi.column),this.setState("selectByWords")),this.$clickSelection=Ai,this.select()},this.onTripleClick=function(ci){var pi=ci.getDocumentPosition(),bi=this.editor;this.setState("selectByLines");var vi=bi.getSelectionRange();vi.isMultiLine()&&vi.contains(pi.row,pi.column)?(this.$clickSelection=bi.selection.getLineRange(vi.start.row),this.$clickSelection.end=bi.selection.getLineRange(vi.end.row).end):this.$clickSelection=bi.selection.getLineRange(pi.row),this.select()},this.onQuadClick=function(ci){var pi=this.editor;pi.selectAll(),this.$clickSelection=pi.getSelectionRange(),this.setState("selectAll")},this.onMouseWheel=function(ci){if(!ci.getAccelKey()){ci.getShiftKey()&&ci.wheelY&&!ci.wheelX&&(ci.wheelX=ci.wheelY,ci.wheelY=0);var pi=this.editor;this.$lastScroll||(this.$lastScroll={t:0,vx:0,vy:0,allowed:0});var bi=this.$lastScroll,vi=ci.domEvent.timeStamp,Ai=vi-bi.t,Li=ci.wheelX/Ai,Bi=ci.wheelY/Ai;Ai=1&&pi.renderer.isScrollableBy(ci.wheelX*ci.speed,0)&&(zi=!0),Ri<=1&&pi.renderer.isScrollableBy(0,ci.wheelY*ci.speed)&&(zi=!0),zi)bi.allowed=vi;else if(vi-bi.allowedpi.session.documentToScreenRow(ji.row,ji.column))return zi()}if(Bi!=ki)if(Bi=ki.text.join("
"),vi.setHtml(Bi),vi.show(),pi._signal("showGutterTooltip",vi),pi.on("mousewheel",zi),ci.$tooltipFollowsMouse)Ei(Li);else{var Di=Li.domEvent.target,Ni=Di.getBoundingClientRect(),qi=vi.getElement().style;qi.left=Ni.right+"px",qi.top=Ni.bottom+"px"}}function zi(){Ai&&(Ai=clearTimeout(Ai)),Bi&&(vi.hide(),Bi=null,pi._signal("hideGutterTooltip",vi),pi.removeEventListener("mousewheel",zi))}function Ei(Ii){vi.setPosition(Ii.x,Ii.y)}ci.editor.setDefaultHandler("guttermousemove",function(Ii){var ki=Ii.domEvent.target||Ii.domEvent.srcElement;if(ui.hasCssClass(ki,"ace_fold-widget"))return zi();Bi&&ci.$tooltipFollowsMouse&&Ei(Ii),Li=Ii,!Ai&&(Ai=setTimeout(function(){Ai=null,Li&&!ci.isMousePressed?Ri():zi()},50))}),mi.addListener(pi.renderer.$gutter,"mouseout",function(Ii){Li=null,!(!Bi||Ai)&&(Ai=setTimeout(function(){Ai=null,zi()},50))}),pi.on("changeSession",zi)}function li(ci){gi.call(this,ci)}fi.inherits(li,gi),(function(){this.setPosition=function(ci,pi){var bi=window.innerWidth||document.documentElement.clientWidth,vi=window.innerHeight||document.documentElement.clientHeight,Ai=this.getWidth(),Li=this.getHeight();ci+=15,pi+=15,ci+Ai>bi&&(ci-=ci+Ai-bi),pi+Li>vi&&(pi-=20+Li),gi.prototype.setPosition.call(this,ci,pi)}}).call(li.prototype),ni.GutterHandler=di});ace.define("ace/mouse/mouse_event",["require","exports","module","ace/lib/event","ace/lib/useragent"],function(ti,ni,oi){var ui=ti("../lib/event"),fi=ti("../lib/useragent"),mi=ni.MouseEvent=function(gi,di){this.domEvent=gi,this.editor=di,this.x=this.clientX=gi.clientX,this.y=this.clientY=gi.clientY,this.$pos=null,this.$inSelection=null,this.propagationStopped=!1,this.defaultPrevented=!1};(function(){this.stopPropagation=function(){ui.stopPropagation(this.domEvent),this.propagationStopped=!0},this.preventDefault=function(){ui.preventDefault(this.domEvent),this.defaultPrevented=!0},this.stop=function(){this.stopPropagation(),this.preventDefault()},this.getDocumentPosition=function(){return this.$pos?this.$pos:(this.$pos=this.editor.renderer.screenToTextCoordinates(this.clientX,this.clientY),this.$pos)},this.inSelection=function(){if(this.$inSelection!==null)return this.$inSelection;var gi=this.editor,di=gi.getSelectionRange();if(di.isEmpty())this.$inSelection=!1;else{var li=this.getDocumentPosition();this.$inSelection=di.contains(li.row,li.column)}return this.$inSelection},this.getButton=function(){return ui.getButton(this.domEvent)},this.getShiftKey=function(){return this.domEvent.shiftKey},this.getAccelKey=fi.isMac?function(){return this.domEvent.metaKey}:function(){return this.domEvent.ctrlKey}}).call(mi.prototype)});ace.define("ace/mouse/dragdrop_handler",["require","exports","module","ace/lib/dom","ace/lib/event","ace/lib/useragent"],function(ti,ni,oi){var ui=ti("../lib/dom"),fi=ti("../lib/event"),mi=ti("../lib/useragent"),gi=200,di=200,li=5;function ci(bi){var vi=bi.editor,Ai=ui.createElement("img");Ai.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",mi.isOpera&&(Ai.style.cssText="width:1px;height:1px;position:fixed;top:0;left:0;z-index:2147483647;opacity:0;");var Li=["dragWait","dragWaitEnd","startDrag","dragReadyEnd","onMouseDrag"];Li.forEach(function(tn){bi[tn]=this[tn]},this),vi.addEventListener("mousedown",this.onMouseDown.bind(bi));var Bi=vi.container,Ri,zi,Ei,Ii,ki,Ti,Pi=0,ji,Di,Ni,qi,Ji;this.onDragStart=function(tn){if(this.cancelDrag||!Bi.draggable){var cn=this;return setTimeout(function(){cn.startSelect(),cn.captureMouse(tn)},0),tn.preventDefault()}ki=vi.getSelectionRange();var un=tn.dataTransfer;un.effectAllowed=vi.getReadOnly()?"copy":"copyMove",mi.isOpera&&(vi.container.appendChild(Ai),Ai.scrollTop=0),un.setDragImage&&un.setDragImage(Ai,0,0),mi.isOpera&&vi.container.removeChild(Ai),un.clearData(),un.setData("Text",vi.session.getTextRange()),Di=!0,this.setState("drag")},this.onDragEnd=function(tn){if(Bi.draggable=!1,Di=!1,this.setState(null),!vi.getReadOnly()){var cn=tn.dataTransfer.dropEffect;!ji&&cn=="move"&&vi.session.remove(vi.getSelectionRange()),vi.renderer.$cursorLayer.setBlinking(!0)}this.editor.unsetStyle("ace_dragging"),this.editor.renderer.setCursorStyle("")},this.onDragEnter=function(tn){if(!(vi.getReadOnly()||!_n(tn.dataTransfer)))return zi=tn.clientX,Ei=tn.clientY,Ri||fn(),Pi++,tn.dataTransfer.dropEffect=ji=dn(tn),fi.preventDefault(tn)},this.onDragOver=function(tn){if(!(vi.getReadOnly()||!_n(tn.dataTransfer)))return zi=tn.clientX,Ei=tn.clientY,Ri||(fn(),Pi++),bn!==null&&(bn=null),tn.dataTransfer.dropEffect=ji=dn(tn),fi.preventDefault(tn)},this.onDragLeave=function(tn){if(Pi--,Pi<=0&&Ri)return vn(),ji=null,fi.preventDefault(tn)},this.onDrop=function(tn){if(Ti){var cn=tn.dataTransfer;if(Di)switch(ji){case"move":ki.contains(Ti.row,Ti.column)?ki={start:Ti,end:Ti}:ki=vi.moveText(ki,Ti);break;case"copy":ki=vi.moveText(ki,Ti,!0);break}else{var un=cn.getData("Text");ki={start:Ti,end:vi.session.insert(Ti,un)},vi.focus(),ji=null}return vn(),fi.preventDefault(tn)}},fi.addListener(Bi,"dragstart",this.onDragStart.bind(bi)),fi.addListener(Bi,"dragend",this.onDragEnd.bind(bi)),fi.addListener(Bi,"dragenter",this.onDragEnter.bind(bi)),fi.addListener(Bi,"dragover",this.onDragOver.bind(bi)),fi.addListener(Bi,"dragleave",this.onDragLeave.bind(bi)),fi.addListener(Bi,"drop",this.onDrop.bind(bi));function sn(tn,cn){var un=Date.now(),gn=!cn||tn.row!=cn.row,wn=!cn||tn.column!=cn.column;if(!qi||gn||wn)vi.$blockScrolling+=1,vi.moveCursorToPosition(tn),vi.$blockScrolling-=1,qi=un,Ji={x:zi,y:Ei};else{var Sn=pi(Ji.x,Ji.y,zi,Ei);Sn>li?qi=null:un-qi>=di&&(vi.renderer.scrollCursorIntoView(),qi=null)}}function en(tn,cn){var un=Date.now(),gn=vi.renderer.layerConfig.lineHeight,wn=vi.renderer.layerConfig.characterWidth,Sn=vi.renderer.scroller.getBoundingClientRect(),pn={x:{left:zi-Sn.left,right:Sn.right-zi},y:{top:Ei-Sn.top,bottom:Sn.bottom-Ei}},Ln=Math.min(pn.x.left,pn.x.right),Rn=Math.min(pn.y.top,pn.y.bottom),Hn={row:tn.row,column:tn.column};Ln/wn<=2&&(Hn.column+=pn.x.left=gi&&vi.renderer.scrollCursorIntoView(Hn):Ni=un:Ni=null}function rn(){var tn=Ti;Ti=vi.renderer.screenToTextCoordinates(zi,Ei),sn(Ti,tn),en(Ti,tn)}function fn(){ki=vi.selection.toOrientedRange(),Ri=vi.session.addMarker(ki,"ace_selection",vi.getSelectionStyle()),vi.clearSelection(),vi.isFocused()&&vi.renderer.$cursorLayer.setBlinking(!1),clearInterval(Ii),rn(),Ii=setInterval(rn,20),Pi=0,fi.addListener(document,"mousemove",An)}function vn(){clearInterval(Ii),vi.session.removeMarker(Ri),Ri=null,vi.$blockScrolling+=1,vi.selection.fromOrientedRange(ki),vi.$blockScrolling-=1,vi.isFocused()&&!Di&&vi.renderer.$cursorLayer.setBlinking(!vi.getReadOnly()),ki=null,Ti=null,Pi=0,Ni=null,qi=null,fi.removeListener(document,"mousemove",An)}var bn=null;function An(){bn==null&&(bn=setTimeout(function(){bn!=null&&Ri&&vn()},20))}function _n(tn){var cn=tn.types;return!cn||Array.prototype.some.call(cn,function(un){return un=="text/plain"||un=="Text"})}function dn(tn){var cn=["copy","copymove","all","uninitialized"],un=["move","copymove","linkmove","all","uninitialized"],gn=mi.isMac?tn.altKey:tn.ctrlKey,wn="uninitialized";try{wn=tn.dataTransfer.effectAllowed.toLowerCase()}catch{}var Sn="none";return gn&&cn.indexOf(wn)>=0?Sn="copy":un.indexOf(wn)>=0?Sn="move":cn.indexOf(wn)>=0&&(Sn="copy"),Sn}}(function(){this.dragWait=function(){var bi=Date.now()-this.mousedownEvent.time;bi>this.editor.getDragDelay()&&this.startDrag()},this.dragWaitEnd=function(){var bi=this.editor.container;bi.draggable=!1,this.startSelect(this.mousedownEvent.getDocumentPosition()),this.selectEnd()},this.dragReadyEnd=function(bi){this.editor.renderer.$cursorLayer.setBlinking(!this.editor.getReadOnly()),this.editor.unsetStyle("ace_dragging"),this.editor.renderer.setCursorStyle(""),this.dragWaitEnd()},this.startDrag=function(){this.cancelDrag=!1;var bi=this.editor,vi=bi.container;vi.draggable=!0,bi.renderer.$cursorLayer.setBlinking(!1),bi.setStyle("ace_dragging");var Ai=mi.isWin?"default":"move";bi.renderer.setCursorStyle(Ai),this.setState("dragReady")},this.onMouseDrag=function(bi){var vi=this.editor.container;if(mi.isIE&&this.state=="dragReady"){var Ai=pi(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y);Ai>3&&vi.dragDrop()}if(this.state==="dragWait"){var Ai=pi(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y);Ai>0&&(vi.draggable=!1,this.startSelect(this.mousedownEvent.getDocumentPosition()))}},this.onMouseDown=function(bi){if(this.$dragEnabled){this.mousedownEvent=bi;var vi=this.editor,Ai=bi.inSelection(),Li=bi.getButton(),Bi=bi.domEvent.detail||1;if(Bi===1&&Li===0&&Ai){if(bi.editor.inMultiSelectMode&&(bi.getAccelKey()||bi.getShiftKey()))return;this.mousedownEvent.time=Date.now();var Ri=bi.domEvent.target||bi.domEvent.srcElement;if("unselectable"in Ri&&(Ri.unselectable="on"),vi.getDragDelay()){if(mi.isWebKit){this.cancelDrag=!0;var zi=vi.container;zi.draggable=!0}this.setState("dragWait")}else this.startDrag();this.captureMouse(bi,this.onMouseDrag.bind(this)),bi.defaultPrevented=!0}}}}).call(ci.prototype);function pi(bi,vi,Ai,Li){return Math.sqrt(Math.pow(Ai-bi,2)+Math.pow(Li-vi,2))}ni.DragdropHandler=ci});ace.define("ace/lib/net",["require","exports","module","ace/lib/dom"],function(ti,ni,oi){var ui=ti("./dom");ni.get=function(fi,mi){var gi=new XMLHttpRequest;gi.open("GET",fi,!0),gi.onreadystatechange=function(){gi.readyState===4&&mi(gi.responseText)},gi.send(null)},ni.loadScript=function(fi,mi){var gi=ui.getDocumentHead(),di=document.createElement("script");di.src=fi,gi.appendChild(di),di.onload=di.onreadystatechange=function(li,ci){(ci||!di.readyState||di.readyState=="loaded"||di.readyState=="complete")&&(di=di.onload=di.onreadystatechange=null,ci||mi())}},ni.qualifyURL=function(fi){var mi=document.createElement("a");return mi.href=fi,mi.href}});ace.define("ace/lib/event_emitter",["require","exports","module"],function(ti,ni,oi){var ui={},fi=function(){this.propagationStopped=!0},mi=function(){this.defaultPrevented=!0};ui._emit=ui._dispatchEvent=function(gi,di){this._eventRegistry||(this._eventRegistry={}),this._defaultHandlers||(this._defaultHandlers={});var li=this._eventRegistry[gi]||[],ci=this._defaultHandlers[gi];if(!(!li.length&&!ci)){(typeof di!="object"||!di)&&(di={}),di.type||(di.type=gi),di.stopPropagation||(di.stopPropagation=fi),di.preventDefault||(di.preventDefault=mi),li=li.slice();for(var pi=0;pi1&&(Li=vi[vi.length-2]);var Ri=di[bi+"Path"];return Ri==null?Ri=di.basePath:Ai=="/"&&(bi=Ai=""),Ri&&Ri.slice(-1)!="/"&&(Ri+="/"),Ri+bi+Ai+Li+this.get("suffix")},ni.setModuleUrl=function(pi,bi){return di.$moduleUrls[pi]=bi},ni.$loading={},ni.loadModule=function(pi,bi){var vi,Ai;Array.isArray(pi)&&(Ai=pi[0],pi=pi[1]);try{vi=ti(pi)}catch{}if(vi&&!ni.$loading[pi])return bi&&bi(vi);if(ni.$loading[pi]||(ni.$loading[pi]=[]),ni.$loading[pi].push(bi),!(ni.$loading[pi].length>1)){var Li=function(){ti([pi],function(Bi){ni._emit("load.module",{name:pi,module:Bi});var Ri=ni.$loading[pi];ni.$loading[pi]=null,Ri.forEach(function(zi){zi&&zi(Bi)})})};if(!ni.get("packaged"))return Li();fi.loadScript(ni.moduleUrl(pi,Ai),Li)}},li(!0);function li(pi){if(!(!gi||!gi.document)){di.packaged=pi||ti.packaged||oi.packaged||gi.define&&(void 0).packaged;for(var bi={},vi="",Ai=document.currentScript||document._currentScript,Li=Ai&&Ai.ownerDocument||document,Bi=Li.getElementsByTagName("script"),Ri=0;Ri0)if(Hn==16){for(Dn=Tn;Dn-1){for(Dn=Tn;Dn=0&&gn[Gr]==ki;Gr--)cn[Gr]=ui}}}function An(tn,cn,un){if(!(fi=tn){for(Sn=wn+1;Sn=tn;)Sn++;for(pn=wn,Ln=Sn-1;pn=cn.length||(Sn=un[gn-1])!=Li&&Sn!=Bi||(pn=cn[gn+1])!=Li&&pn!=Bi?Ri:(mi&&(pn=Bi),pn==Sn?pn:Ri);case Pi:return Sn=gn>0?un[gn-1]:zi,Sn==Li&&gn+10&&un[gn-1]==Li)return Li;if(mi)return Ri;for(Rn=gn+1,Ln=cn.length;Rn=1425&&Hn<=2303||Hn==64286;if(Sn=cn[Rn],zn&&(Sn==Ai||Sn==Ii))return Ai}return gn<1||(Sn=cn[gn-1])==zi?Ri:un[gn-1];case zi:return mi=!1,gi=!0,ui;case Ei:return di=!0,Ri;case Ni:case qi:case sn:case en:case Ji:mi=!1;case rn:return Ri}}function dn(tn){var cn=tn.charCodeAt(0),un=cn>>8;return un==0?cn>191?vi:fn[cn]:un==5?/[\u0591-\u05f4]/.test(tn)?Ai:vi:un==6?/[\u0610-\u061a\u064b-\u065f\u06d6-\u06e4\u06e7-\u06ed]/.test(tn)?Di:/[\u0660-\u0669\u066b-\u066c]/.test(tn)?Bi:cn==1642?ji:/[\u06f0-\u06f9]/.test(tn)?Li:Ii:un==32&&cn<=8287?vn[cn&255]:un==254&&cn>=65136?Ii:Ri}ni.L=vi,ni.R=Ai,ni.EN=Li,ni.ON_R=3,ni.AN=4,ni.R_H=5,ni.B=6,ni.DOT="·",ni.doBidiReorder=function(tn,cn,un){if(tn.length<2)return{};var gn=tn.split(""),wn=new Array(gn.length),Sn=new Array(gn.length),pn=[];ui=un?bi:pi,bn(gn,pn,gn.length,cn);for(var Ln=0;LnIi&&cn[Ln]0&&gn[Ln-1]==="ل"&&/\u0622|\u0623|\u0625|\u0627/.test(gn[Ln])&&(pn[Ln-1]=pn[Ln]=ni.R_H,Ln++);gn[gn.length-1]===ni.DOT&&(pn[gn.length-1]=ni.B);for(var Ln=0;Ln=0&&(li=this.session.$docRowCache[pi])}return li},this.getSplitIndex=function(){var li=0,ci=this.session.$screenRowCache;if(ci.length)for(var pi,bi=this.session.$getRowCacheIndex(ci,this.currentRow);this.currentRow-li>0&&(pi=this.session.$getRowCacheIndex(ci,this.currentRow-li-1),pi===bi);)bi=pi,li++;return li},this.updateRowLine=function(li,ci){if(li===void 0&&(li=this.getDocumentRow()),this.wrapIndent=0,this.isLastRow=li===this.session.getLength()-1,this.line=this.session.getLine(li),this.session.$useWrapMode){var pi=this.session.$wrapData[li];pi&&(ci===void 0&&(ci=this.getSplitIndex()),ci>0&&pi.length?(this.wrapIndent=pi.indent,this.line=ci0?li-1:0,this.bidiMap),pi=this.bidiMap.bidiLevels,bi=0;li===0&&pi[ci]%2!==0&&ci++;for(var vi=0;vi=Bi&&kibi+Li/2;){if(bi+=Li,vi===Ai.length-1){Li=0;break}Li=this.charWidths[Ai[++vi]]}return vi>0&&Ai[vi-1]%2!==0&&Ai[vi]%2===0?(pi0&&Ai[vi-1]%2===0&&Ai[vi]%2!==0?ci=1+(pi>bi?this.bidiMap.logicalFromVisual[vi]:this.bidiMap.logicalFromVisual[vi-1]):this.isRtlDir&&vi===Ai.length-1&&Li===0&&Ai[vi-1]%2===0||!this.isRtlDir&&vi===0&&Ai[vi]%2!==0?ci=1+this.bidiMap.logicalFromVisual[vi]:(vi>0&&Ai[vi-1]%2!==0&&Li!==0&&vi--,ci=this.bidiMap.logicalFromVisual[vi]),ci+this.wrapIndent}}).call(di.prototype),ni.BidiHandler=di});ace.define("ace/range",["require","exports","module"],function(ti,ni,oi){var ui=function(mi,gi){return mi.row-gi.row||mi.column-gi.column},fi=function(mi,gi,di,li){this.start={row:mi,column:gi},this.end={row:di,column:li}};(function(){this.isEqual=function(mi){return this.start.row===mi.start.row&&this.end.row===mi.end.row&&this.start.column===mi.start.column&&this.end.column===mi.end.column},this.toString=function(){return"Range: ["+this.start.row+"/"+this.start.column+"] -> ["+this.end.row+"/"+this.end.column+"]"},this.contains=function(mi,gi){return this.compare(mi,gi)==0},this.compareRange=function(mi){var gi,di=mi.end,li=mi.start;return gi=this.compare(di.row,di.column),gi==1?(gi=this.compare(li.row,li.column),gi==1?2:gi==0?1:0):gi==-1?-2:(gi=this.compare(li.row,li.column),gi==-1?-1:gi==1?42:0)},this.comparePoint=function(mi){return this.compare(mi.row,mi.column)},this.containsRange=function(mi){return this.comparePoint(mi.start)==0&&this.comparePoint(mi.end)==0},this.intersects=function(mi){var gi=this.compareRange(mi);return gi==-1||gi==0||gi==1},this.isEnd=function(mi,gi){return this.end.row==mi&&this.end.column==gi},this.isStart=function(mi,gi){return this.start.row==mi&&this.start.column==gi},this.setStart=function(mi,gi){typeof mi=="object"?(this.start.column=mi.column,this.start.row=mi.row):(this.start.row=mi,this.start.column=gi)},this.setEnd=function(mi,gi){typeof mi=="object"?(this.end.column=mi.column,this.end.row=mi.row):(this.end.row=mi,this.end.column=gi)},this.inside=function(mi,gi){return this.compare(mi,gi)==0?!(this.isEnd(mi,gi)||this.isStart(mi,gi)):!1},this.insideStart=function(mi,gi){return this.compare(mi,gi)==0?!this.isEnd(mi,gi):!1},this.insideEnd=function(mi,gi){return this.compare(mi,gi)==0?!this.isStart(mi,gi):!1},this.compare=function(mi,gi){return!this.isMultiLine()&&mi===this.start.row?githis.end.column?1:0:mithis.end.row?1:this.start.row===mi?gi>=this.start.column?0:-1:this.end.row===mi?gi<=this.end.column?0:1:0},this.compareStart=function(mi,gi){return this.start.row==mi&&this.start.column==gi?-1:this.compare(mi,gi)},this.compareEnd=function(mi,gi){return this.end.row==mi&&this.end.column==gi?1:this.compare(mi,gi)},this.compareInside=function(mi,gi){return this.end.row==mi&&this.end.column==gi?1:this.start.row==mi&&this.start.column==gi?-1:this.compare(mi,gi)},this.clipRows=function(mi,gi){if(this.end.row>gi)var di={row:gi+1,column:0};else if(this.end.rowgi)var li={row:gi+1,column:0};else if(this.start.rowci.row||li.row==ci.row&&li.column>ci.column},this.getRange=function(){var li=this.anchor,ci=this.lead;return this.isEmpty()?gi.fromPoints(ci,ci):this.isBackwards()?gi.fromPoints(ci,li):gi.fromPoints(li,ci)},this.clearSelection=function(){this.$isEmpty||(this.$isEmpty=!0,this._emit("changeSelection"))},this.selectAll=function(){var li=this.doc.getLength()-1;this.setSelectionAnchor(0,0),this.moveCursorTo(li,this.doc.getLine(li).length)},this.setRange=this.setSelectionRange=function(li,ci){ci?(this.setSelectionAnchor(li.end.row,li.end.column),this.selectTo(li.start.row,li.start.column)):(this.setSelectionAnchor(li.start.row,li.start.column),this.selectTo(li.end.row,li.end.column)),this.getRange().isEmpty()&&(this.$isEmpty=!0),this.$desiredColumn=null},this.$moveSelection=function(li){var ci=this.lead;this.$isEmpty&&this.setSelectionAnchor(ci.row,ci.column),li.call(this)},this.selectTo=function(li,ci){this.$moveSelection(function(){this.moveCursorTo(li,ci)})},this.selectToPosition=function(li){this.$moveSelection(function(){this.moveCursorToPosition(li)})},this.moveTo=function(li,ci){this.clearSelection(),this.moveCursorTo(li,ci)},this.moveToPosition=function(li){this.clearSelection(),this.moveCursorToPosition(li)},this.selectUp=function(){this.$moveSelection(this.moveCursorUp)},this.selectDown=function(){this.$moveSelection(this.moveCursorDown)},this.selectRight=function(){this.$moveSelection(this.moveCursorRight)},this.selectLeft=function(){this.$moveSelection(this.moveCursorLeft)},this.selectLineStart=function(){this.$moveSelection(this.moveCursorLineStart)},this.selectLineEnd=function(){this.$moveSelection(this.moveCursorLineEnd)},this.selectFileEnd=function(){this.$moveSelection(this.moveCursorFileEnd)},this.selectFileStart=function(){this.$moveSelection(this.moveCursorFileStart)},this.selectWordRight=function(){this.$moveSelection(this.moveCursorWordRight)},this.selectWordLeft=function(){this.$moveSelection(this.moveCursorWordLeft)},this.getWordRange=function(li,ci){if(typeof ci>"u"){var pi=li||this.lead;li=pi.row,ci=pi.column}return this.session.getWordRange(li,ci)},this.selectWord=function(){this.setSelectionRange(this.getWordRange())},this.selectAWord=function(){var li=this.getCursor(),ci=this.session.getAWordRange(li.row,li.column);this.setSelectionRange(ci)},this.getLineRange=function(li,ci){var pi=typeof li=="number"?li:this.lead.row,bi,vi=this.session.getFoldLine(pi);return vi?(pi=vi.start.row,bi=vi.end.row):bi=pi,ci===!0?new gi(pi,0,bi,this.session.getLine(bi).length):new gi(pi,0,bi+1,0)},this.selectLine=function(){this.setSelectionRange(this.getLineRange())},this.moveCursorUp=function(){this.moveCursorBy(-1,0)},this.moveCursorDown=function(){this.moveCursorBy(1,0)},this.wouldMoveIntoSoftTab=function(li,ci,pi){var bi=li.column,vi=li.column+ci;return pi<0&&(bi=li.column-ci,vi=li.column),this.session.isTabStop(li)&&this.doc.getLine(li.row).slice(bi,vi).split(" ").length-1==ci},this.moveCursorLeft=function(){var li=this.lead.getPosition(),ci;if(ci=this.session.getFoldAt(li.row,li.column,-1))this.moveCursorTo(ci.start.row,ci.start.column);else if(li.column===0)li.row>0&&this.moveCursorTo(li.row-1,this.doc.getLine(li.row-1).length);else{var pi=this.session.getTabSize();this.wouldMoveIntoSoftTab(li,pi,-1)&&!this.session.getNavigateWithinSoftTabs()?this.moveCursorBy(0,-pi):this.moveCursorBy(0,-1)}},this.moveCursorRight=function(){var li=this.lead.getPosition(),ci;if(ci=this.session.getFoldAt(li.row,li.column,1))this.moveCursorTo(ci.end.row,ci.end.column);else if(this.lead.column==this.doc.getLine(this.lead.row).length)this.lead.row0&&(ci.column=bi)}}this.moveCursorTo(ci.row,ci.column)},this.moveCursorFileEnd=function(){var li=this.doc.getLength()-1,ci=this.doc.getLine(li).length;this.moveCursorTo(li,ci)},this.moveCursorFileStart=function(){this.moveCursorTo(0,0)},this.moveCursorLongWordRight=function(){var li=this.lead.row,ci=this.lead.column,pi=this.doc.getLine(li),bi=pi.substring(ci);this.session.nonTokenRe.lastIndex=0,this.session.tokenRe.lastIndex=0;var vi=this.session.getFoldAt(li,ci,1);if(vi){this.moveCursorTo(vi.end.row,vi.end.column);return}if(this.session.nonTokenRe.exec(bi)&&(ci+=this.session.nonTokenRe.lastIndex,this.session.nonTokenRe.lastIndex=0,bi=pi.substring(ci)),ci>=pi.length){this.moveCursorTo(li,pi.length),this.moveCursorRight(),li0&&this.moveCursorWordLeft();return}this.session.tokenRe.exec(vi)&&(ci-=this.session.tokenRe.lastIndex,this.session.tokenRe.lastIndex=0),this.moveCursorTo(li,ci)},this.$shortWordEndIndex=function(li){var ci=0,pi,bi=/\s/,vi=this.session.tokenRe;if(vi.lastIndex=0,this.session.tokenRe.exec(li))ci=this.session.tokenRe.lastIndex;else{for(;(pi=li[ci])&&bi.test(pi);)ci++;if(ci<1){for(vi.lastIndex=0;(pi=li[ci])&&!vi.test(pi);)if(vi.lastIndex=0,ci++,bi.test(pi))if(ci>2){ci--;break}else{for(;(pi=li[ci])&&bi.test(pi);)ci++;if(ci>2)break}}}return vi.lastIndex=0,ci},this.moveCursorShortWordRight=function(){var li=this.lead.row,ci=this.lead.column,pi=this.doc.getLine(li),bi=pi.substring(ci),vi=this.session.getFoldAt(li,ci,1);if(vi)return this.moveCursorTo(vi.end.row,vi.end.column);if(ci==pi.length){var Ai=this.doc.getLength();do li++,bi=this.doc.getLine(li);while(li0&&/^\s*$/.test(bi));ci=bi.length,/\s+$/.test(bi)||(bi="")}var vi=fi.stringReverse(bi),Ai=this.$shortWordEndIndex(vi);return this.moveCursorTo(li,ci-Ai)},this.moveCursorWordRight=function(){this.session.$selectLongWords?this.moveCursorLongWordRight():this.moveCursorShortWordRight()},this.moveCursorWordLeft=function(){this.session.$selectLongWords?this.moveCursorLongWordLeft():this.moveCursorShortWordLeft()},this.moveCursorBy=function(li,ci){var pi=this.session.documentToScreenPosition(this.lead.row,this.lead.column),bi;ci===0&&(li!==0&&(this.session.$bidiHandler.isBidiRow(pi.row,this.lead.row)?(bi=this.session.$bidiHandler.getPosLeft(pi.column),pi.column=Math.round(bi/this.session.$bidiHandler.charWidths[0])):bi=pi.column*this.session.$bidiHandler.charWidths[0]),this.$desiredColumn?pi.column=this.$desiredColumn:this.$desiredColumn=pi.column);var vi=this.session.screenToDocumentPosition(pi.row+li,pi.column,bi);li!==0&&ci===0&&vi.row===this.lead.row&&vi.column===this.lead.column&&this.session.lineWidgets&&this.session.lineWidgets[vi.row]&&(vi.row>0||li>0)&&vi.row++,this.moveCursorTo(vi.row,vi.column+ci,ci===0)},this.moveCursorToPosition=function(li){this.moveCursorTo(li.row,li.column)},this.moveCursorTo=function(li,ci,pi){var bi=this.session.getFoldAt(li,ci,1);bi&&(li=bi.start.row,ci=bi.start.column),this.$keepDesiredColumnOnChange=!0;var vi=this.session.getLine(li);/[\uDC00-\uDFFF]/.test(vi.charAt(ci))&&vi.charAt(ci-1)&&(this.lead.row==li&&this.lead.column==ci+1?ci=ci-1:ci=ci+1),this.lead.setPosition(li,ci),this.$keepDesiredColumnOnChange=!1,pi||(this.$desiredColumn=null)},this.moveCursorToScreen=function(li,ci,pi){var bi=this.session.screenToDocumentPosition(li,ci);this.moveCursorTo(bi.row,bi.column,pi)},this.detach=function(){this.lead.detach(),this.anchor.detach(),this.session=this.doc=null},this.fromOrientedRange=function(li){this.setSelectionRange(li,li.cursor==li.start),this.$desiredColumn=li.desiredColumn||this.$desiredColumn},this.toOrientedRange=function(li){var ci=this.getRange();return li?(li.start.column=ci.start.column,li.start.row=ci.start.row,li.end.column=ci.end.column,li.end.row=ci.end.row):li=ci,li.cursor=this.isBackwards()?li.start:li.end,li.desiredColumn=this.$desiredColumn,li},this.getRangeOfMovements=function(li){var ci=this.getCursor();try{li(this);var pi=this.getCursor();return gi.fromPoints(ci,pi)}catch{return gi.fromPoints(ci,ci)}finally{this.moveCursorToPosition(ci)}},this.toJSON=function(){if(this.rangeCount)var li=this.ranges.map(function(ci){var pi=ci.clone();return pi.isBackwards=ci.cursor==ci.start,pi});else{var li=this.getRange();li.isBackwards=this.isBackwards()}return li},this.fromJSON=function(li){if(li.start==null)if(this.rangeList){this.toSingleRange(li[0]);for(var ci=li.length;ci--;){var pi=gi.fromPoints(li[ci].start,li[ci].end);li[ci].isBackwards&&(pi.cursor=pi.start),this.addRange(pi,!0)}return}else li=li[0];this.rangeList&&this.toSingleRange(li),this.setSelectionRange(li,li.isBackwards)},this.isEqual=function(li){if((li.length||this.rangeCount)&&li.length!=this.rangeCount)return!1;if(!li.length||!this.ranges)return this.getRange().isEqual(li);for(var ci=this.ranges.length;ci--;)if(!this.ranges[ci].isEqual(li[ci]))return!1;return!0}}).call(di.prototype),ni.Selection=di});ace.define("ace/tokenizer",["require","exports","module","ace/config"],function(ti,ni,oi){var ui=ti("./config"),fi=2e3,mi=function(gi){this.states=gi,this.regExps={},this.matchMappings={};for(var di in this.states){for(var li=this.states[di],ci=[],pi=0,bi=this.matchMappings[di]={defaultToken:"text"},vi="g",Ai=[],Li=0;Li1?Bi.onMatch=this.$applyToken:Bi.onMatch=Bi.token),zi>1&&(/\\\d/.test(Bi.regex)?Ri=Bi.regex.replace(/\\([0-9]+)/g,function(Ei,Ii){return"\\"+(parseInt(Ii,10)+pi+1)}):(zi=1,Ri=this.removeCapturingGroups(Bi.regex)),!Bi.splitRegex&&typeof Bi.token!="string"&&Ai.push(Bi)),bi[pi]=Li,pi+=zi,ci.push(Ri),Bi.onMatch||(Bi.onMatch=null)}}ci.length||(bi[0]=0,ci.push("$")),Ai.forEach(function(Ei){Ei.splitRegex=this.createSplitterRegexp(Ei.regex,vi)},this),this.regExps[di]=new RegExp("("+ci.join(")|(")+")|($)",vi)}};(function(){this.$setMaxTokenCount=function(gi){fi=gi|0},this.$applyToken=function(gi){var di=this.splitRegex.exec(gi).slice(1),li=this.token.apply(this,di);if(typeof li=="string")return[{type:li,value:gi}];for(var ci=[],pi=0,bi=li.length;piBi){var Pi=gi.substring(Bi,Ti-ki.length);zi.type==Ei?zi.value+=Pi:(zi.type&&Li.push(zi),zi={type:Ei,value:Pi})}for(var ji=0;jifi){for(Ri>2*gi.length&&this.reportError("infinite loop with in ace tokenizer",{startState:di,line:gi});Bi1&&li[0]!==ci&&li.unshift("#tmp",ci),{tokens:Li,state:li.length?li:ci}},this.reportError=ui.reportError}).call(mi.prototype),ni.Tokenizer=mi});ace.define("ace/mode/text_highlight_rules",["require","exports","module","ace/lib/lang"],function(ti,ni,oi){var ui=ti("../lib/lang"),fi=function(){this.$rules={start:[{token:"empty_line",regex:"^$"},{defaultToken:"text"}]}};(function(){this.addRules=function(di,li){if(!li){for(var ci in di)this.$rules[ci]=di[ci];return}for(var ci in di){for(var pi=di[ci],bi=0;bi=this.$rowTokens.length;){if(this.$row+=1,mi||(mi=this.$session.getLength()),this.$row>=mi)return this.$row=mi-1,null;this.$rowTokens=this.$session.getTokens(this.$row),this.$tokenIndex=0}return this.$rowTokens[this.$tokenIndex]},this.getCurrentToken=function(){return this.$rowTokens[this.$tokenIndex]},this.getCurrentTokenRow=function(){return this.$row},this.getCurrentTokenColumn=function(){var mi=this.$rowTokens,gi=this.$tokenIndex,di=mi[gi].start;if(di!==void 0)return di;for(di=0;gi>0;)gi-=1,di+=mi[gi].value.length;return di},this.getCurrentTokenPosition=function(){return{row:this.$row,column:this.getCurrentTokenColumn()}},this.getCurrentTokenRange=function(){var mi=this.$rowTokens[this.$tokenIndex],gi=this.getCurrentTokenColumn();return new ui(this.$row,gi,this.$row,gi+mi.value.length)}}).call(fi.prototype),ni.TokenIterator=fi});ace.define("ace/mode/behaviour/cstyle",["require","exports","module","ace/lib/oop","ace/mode/behaviour","ace/token_iterator","ace/lib/lang"],function(ti,ni,oi){var ui=ti("../../lib/oop"),fi=ti("../behaviour").Behaviour,mi=ti("../../token_iterator").TokenIterator,gi=ti("../../lib/lang"),di=["text","paren.rparen","punctuation.operator"],li=["text","paren.rparen","punctuation.operator","comment"],ci,pi={},bi={'"':'"',"'":"'"},vi=function(Bi){var Ri=-1;if(Bi.multiSelect&&(Ri=Bi.selection.index,pi.rangeCount!=Bi.multiSelect.rangeCount&&(pi={rangeCount:Bi.multiSelect.rangeCount})),pi[Ri])return ci=pi[Ri];ci=pi[Ri]={autoInsertedBrackets:0,autoInsertedRow:-1,autoInsertedLineEnd:"",maybeInsertedBrackets:0,maybeInsertedRow:-1,maybeInsertedLineStart:"",maybeInsertedLineEnd:""}},Ai=function(Bi,Ri,zi,Ei){var Ii=Bi.end.row-Bi.start.row;return{text:zi+Ri+Ei,selection:[0,Bi.start.column+1,Ii,Bi.end.column+(Ii?0:1)]}},Li=function(Bi){this.add("braces","insertion",function(Ri,zi,Ei,Ii,ki){var Ti=Ei.getCursorPosition(),Pi=Ii.doc.getLine(Ti.row);if(ki=="{"){vi(Ei);var ji=Ei.getSelectionRange(),Di=Ii.doc.getTextRange(ji);if(Di!==""&&Di!=="{"&&Ei.getWrapBehavioursEnabled())return Ai(ji,Di,"{","}");if(Li.isSaneInsertion(Ei,Ii))return/[\]\}\)]/.test(Pi[Ti.column])||Ei.inMultiSelectMode||Bi&&Bi.braces?(Li.recordAutoInsert(Ei,Ii,"}"),{text:"{}",selection:[1,1]}):(Li.recordMaybeInsert(Ei,Ii,"{"),{text:"{",selection:[1,1]})}else if(ki=="}"){vi(Ei);var Ni=Pi.substring(Ti.column,Ti.column+1);if(Ni=="}"){var qi=Ii.$findOpeningBracket("}",{column:Ti.column+1,row:Ti.row});if(qi!==null&&Li.isAutoInsertedClosing(Ti,Pi,ki))return Li.popAutoInsertedClosing(),{text:"",selection:[1,1]}}}else if(ki==` `||ki==`\r `){vi(Ei);var Ji="";Li.isMaybeInsertedClosing(Ti,Pi)&&(Ji=gi.stringRepeat("}",ci.maybeInsertedBrackets),Li.clearMaybeInsertedClosing());var Ni=Pi.substring(Ti.column,Ti.column+1);if(Ni==="}"){var sn=Ii.findMatchingBracket({row:Ti.row,column:Ti.column+1},"}");if(!sn)return null;var en=this.$getIndent(Ii.getLine(sn.row))}else if(Ji)var en=this.$getIndent(Pi);else{Li.clearMaybeInsertedClosing();return}var rn=en+Ii.getTabString();return{text:` `+rn+` `+en+Ji,selection:[1,rn.length,1,rn.length]}}else Li.clearMaybeInsertedClosing()}),this.add("braces","deletion",function(Ri,zi,Ei,Ii,ki){var Ti=Ii.doc.getTextRange(ki);if(!ki.isMultiLine()&&Ti=="{"){vi(Ei);var Pi=Ii.doc.getLine(ki.start.row),ji=Pi.substring(ki.end.column,ki.end.column+1);if(ji=="}")return ki.end.column++,ki;ci.maybeInsertedBrackets--}}),this.add("parens","insertion",function(Ri,zi,Ei,Ii,ki){if(ki=="("){vi(Ei);var Ti=Ei.getSelectionRange(),Pi=Ii.doc.getTextRange(Ti);if(Pi!==""&&Ei.getWrapBehavioursEnabled())return Ai(Ti,Pi,"(",")");if(Li.isSaneInsertion(Ei,Ii))return Li.recordAutoInsert(Ei,Ii,")"),{text:"()",selection:[1,1]}}else if(ki==")"){vi(Ei);var ji=Ei.getCursorPosition(),Di=Ii.doc.getLine(ji.row),Ni=Di.substring(ji.column,ji.column+1);if(Ni==")"){var qi=Ii.$findOpeningBracket(")",{column:ji.column+1,row:ji.row});if(qi!==null&&Li.isAutoInsertedClosing(ji,Di,ki))return Li.popAutoInsertedClosing(),{text:"",selection:[1,1]}}}}),this.add("parens","deletion",function(Ri,zi,Ei,Ii,ki){var Ti=Ii.doc.getTextRange(ki);if(!ki.isMultiLine()&&Ti=="("){vi(Ei);var Pi=Ii.doc.getLine(ki.start.row),ji=Pi.substring(ki.start.column+1,ki.start.column+2);if(ji==")")return ki.end.column++,ki}}),this.add("brackets","insertion",function(Ri,zi,Ei,Ii,ki){if(ki=="["){vi(Ei);var Ti=Ei.getSelectionRange(),Pi=Ii.doc.getTextRange(Ti);if(Pi!==""&&Ei.getWrapBehavioursEnabled())return Ai(Ti,Pi,"[","]");if(Li.isSaneInsertion(Ei,Ii))return Li.recordAutoInsert(Ei,Ii,"]"),{text:"[]",selection:[1,1]}}else if(ki=="]"){vi(Ei);var ji=Ei.getCursorPosition(),Di=Ii.doc.getLine(ji.row),Ni=Di.substring(ji.column,ji.column+1);if(Ni=="]"){var qi=Ii.$findOpeningBracket("]",{column:ji.column+1,row:ji.row});if(qi!==null&&Li.isAutoInsertedClosing(ji,Di,ki))return Li.popAutoInsertedClosing(),{text:"",selection:[1,1]}}}}),this.add("brackets","deletion",function(Ri,zi,Ei,Ii,ki){var Ti=Ii.doc.getTextRange(ki);if(!ki.isMultiLine()&&Ti=="["){vi(Ei);var Pi=Ii.doc.getLine(ki.start.row),ji=Pi.substring(ki.start.column+1,ki.start.column+2);if(ji=="]")return ki.end.column++,ki}}),this.add("string_dquotes","insertion",function(Ri,zi,Ei,Ii,ki){var Ti=Ii.$mode.$quotes||bi;if(ki.length==1&&Ti[ki]){if(this.lineCommentStart&&this.lineCommentStart.indexOf(ki)!=-1)return;vi(Ei);var Pi=ki,ji=Ei.getSelectionRange(),Di=Ii.doc.getTextRange(ji);if(Di!==""&&(Di.length!=1||!Ti[Di])&&Ei.getWrapBehavioursEnabled())return Ai(ji,Di,Pi,Pi);if(!Di){var Ni=Ei.getCursorPosition(),qi=Ii.doc.getLine(Ni.row),Ji=qi.substring(Ni.column-1,Ni.column),sn=qi.substring(Ni.column,Ni.column+1),en=Ii.getTokenAt(Ni.row,Ni.column),rn=Ii.getTokenAt(Ni.row,Ni.column+1);if(Ji=="\\"&&en&&/escape/.test(en.type))return null;var fn=en&&/string|escape/.test(en.type),vn=!rn||/string|escape/.test(rn.type),bn;if(sn==Pi)bn=fn!==vn,bn&&/string\.end/.test(rn.type)&&(bn=!1);else{if(fn&&!vn||fn&&vn)return null;var An=Ii.$mode.tokenRe;An.lastIndex=0;var _n=An.test(Ji);An.lastIndex=0;var dn=An.test(Ji);if(_n||dn||sn&&!/[\s;,.})\]\\]/.test(sn))return null;bn=!0}return{text:bn?Pi+Pi:"",selection:[1,1]}}}}),this.add("string_dquotes","deletion",function(Ri,zi,Ei,Ii,ki){var Ti=Ii.doc.getTextRange(ki);if(!ki.isMultiLine()&&(Ti=='"'||Ti=="'")){vi(Ei);var Pi=Ii.doc.getLine(ki.start.row),ji=Pi.substring(ki.start.column+1,ki.start.column+2);if(ji==Ti)return ki.end.column++,ki}})};Li.isSaneInsertion=function(Bi,Ri){var zi=Bi.getCursorPosition(),Ei=new mi(Ri,zi.row,zi.column);if(!this.$matchTokenType(Ei.getCurrentToken()||"text",di)){var Ii=new mi(Ri,zi.row,zi.column+1);if(!this.$matchTokenType(Ii.getCurrentToken()||"text",di))return!1}return Ei.stepForward(),Ei.getCurrentTokenRow()!==zi.row||this.$matchTokenType(Ei.getCurrentToken()||"text",li)},Li.$matchTokenType=function(Bi,Ri){return Ri.indexOf(Bi.type||Bi)>-1},Li.recordAutoInsert=function(Bi,Ri,zi){var Ei=Bi.getCursorPosition(),Ii=Ri.doc.getLine(Ei.row);this.isAutoInsertedClosing(Ei,Ii,ci.autoInsertedLineEnd[0])||(ci.autoInsertedBrackets=0),ci.autoInsertedRow=Ei.row,ci.autoInsertedLineEnd=zi+Ii.substr(Ei.column),ci.autoInsertedBrackets++},Li.recordMaybeInsert=function(Bi,Ri,zi){var Ei=Bi.getCursorPosition(),Ii=Ri.doc.getLine(Ei.row);this.isMaybeInsertedClosing(Ei,Ii)||(ci.maybeInsertedBrackets=0),ci.maybeInsertedRow=Ei.row,ci.maybeInsertedLineStart=Ii.substr(0,Ei.column)+zi,ci.maybeInsertedLineEnd=Ii.substr(Ei.column),ci.maybeInsertedBrackets++},Li.isAutoInsertedClosing=function(Bi,Ri,zi){return ci.autoInsertedBrackets>0&&Bi.row===ci.autoInsertedRow&&zi===ci.autoInsertedLineEnd[0]&&Ri.substr(Bi.column)===ci.autoInsertedLineEnd},Li.isMaybeInsertedClosing=function(Bi,Ri){return ci.maybeInsertedBrackets>0&&Bi.row===ci.maybeInsertedRow&&Ri.substr(Bi.column)===ci.maybeInsertedLineEnd&&Ri.substr(0,Bi.column)==ci.maybeInsertedLineStart},Li.popAutoInsertedClosing=function(){ci.autoInsertedLineEnd=ci.autoInsertedLineEnd.substr(1),ci.autoInsertedBrackets--},Li.clearMaybeInsertedClosing=function(){ci&&(ci.maybeInsertedBrackets=0,ci.maybeInsertedRow=-1)},ui.inherits(Li,fi),ni.CstyleBehaviour=Li});ace.define("ace/unicode",["require","exports","module"],function(ti,ni,oi){ni.packages={},ui({L:"0041-005A0061-007A00AA00B500BA00C0-00D600D8-00F600F8-02C102C6-02D102E0-02E402EC02EE0370-037403760377037A-037D03860388-038A038C038E-03A103A3-03F503F7-0481048A-05250531-055605590561-058705D0-05EA05F0-05F20621-064A066E066F0671-06D306D506E506E606EE06EF06FA-06FC06FF07100712-072F074D-07A507B107CA-07EA07F407F507FA0800-0815081A082408280904-0939093D09500958-0961097109720979-097F0985-098C098F09900993-09A809AA-09B009B209B6-09B909BD09CE09DC09DD09DF-09E109F009F10A05-0A0A0A0F0A100A13-0A280A2A-0A300A320A330A350A360A380A390A59-0A5C0A5E0A72-0A740A85-0A8D0A8F-0A910A93-0AA80AAA-0AB00AB20AB30AB5-0AB90ABD0AD00AE00AE10B05-0B0C0B0F0B100B13-0B280B2A-0B300B320B330B35-0B390B3D0B5C0B5D0B5F-0B610B710B830B85-0B8A0B8E-0B900B92-0B950B990B9A0B9C0B9E0B9F0BA30BA40BA8-0BAA0BAE-0BB90BD00C05-0C0C0C0E-0C100C12-0C280C2A-0C330C35-0C390C3D0C580C590C600C610C85-0C8C0C8E-0C900C92-0CA80CAA-0CB30CB5-0CB90CBD0CDE0CE00CE10D05-0D0C0D0E-0D100D12-0D280D2A-0D390D3D0D600D610D7A-0D7F0D85-0D960D9A-0DB10DB3-0DBB0DBD0DC0-0DC60E01-0E300E320E330E40-0E460E810E820E840E870E880E8A0E8D0E94-0E970E99-0E9F0EA1-0EA30EA50EA70EAA0EAB0EAD-0EB00EB20EB30EBD0EC0-0EC40EC60EDC0EDD0F000F40-0F470F49-0F6C0F88-0F8B1000-102A103F1050-1055105A-105D106110651066106E-10701075-1081108E10A0-10C510D0-10FA10FC1100-1248124A-124D1250-12561258125A-125D1260-1288128A-128D1290-12B012B2-12B512B8-12BE12C012C2-12C512C8-12D612D8-13101312-13151318-135A1380-138F13A0-13F41401-166C166F-167F1681-169A16A0-16EA1700-170C170E-17111720-17311740-17511760-176C176E-17701780-17B317D717DC1820-18771880-18A818AA18B0-18F51900-191C1950-196D1970-19741980-19AB19C1-19C71A00-1A161A20-1A541AA71B05-1B331B45-1B4B1B83-1BA01BAE1BAF1C00-1C231C4D-1C4F1C5A-1C7D1CE9-1CEC1CEE-1CF11D00-1DBF1E00-1F151F18-1F1D1F20-1F451F48-1F4D1F50-1F571F591F5B1F5D1F5F-1F7D1F80-1FB41FB6-1FBC1FBE1FC2-1FC41FC6-1FCC1FD0-1FD31FD6-1FDB1FE0-1FEC1FF2-1FF41FF6-1FFC2071207F2090-209421022107210A-211321152119-211D212421262128212A-212D212F-2139213C-213F2145-2149214E218321842C00-2C2E2C30-2C5E2C60-2CE42CEB-2CEE2D00-2D252D30-2D652D6F2D80-2D962DA0-2DA62DA8-2DAE2DB0-2DB62DB8-2DBE2DC0-2DC62DC8-2DCE2DD0-2DD62DD8-2DDE2E2F300530063031-3035303B303C3041-3096309D-309F30A1-30FA30FC-30FF3105-312D3131-318E31A0-31B731F0-31FF3400-4DB54E00-9FCBA000-A48CA4D0-A4FDA500-A60CA610-A61FA62AA62BA640-A65FA662-A66EA67F-A697A6A0-A6E5A717-A71FA722-A788A78BA78CA7FB-A801A803-A805A807-A80AA80C-A822A840-A873A882-A8B3A8F2-A8F7A8FBA90A-A925A930-A946A960-A97CA984-A9B2A9CFAA00-AA28AA40-AA42AA44-AA4BAA60-AA76AA7AAA80-AAAFAAB1AAB5AAB6AAB9-AABDAAC0AAC2AADB-AADDABC0-ABE2AC00-D7A3D7B0-D7C6D7CB-D7FBF900-FA2DFA30-FA6DFA70-FAD9FB00-FB06FB13-FB17FB1DFB1F-FB28FB2A-FB36FB38-FB3CFB3EFB40FB41FB43FB44FB46-FBB1FBD3-FD3DFD50-FD8FFD92-FDC7FDF0-FDFBFE70-FE74FE76-FEFCFF21-FF3AFF41-FF5AFF66-FFBEFFC2-FFC7FFCA-FFCFFFD2-FFD7FFDA-FFDC",Ll:"0061-007A00AA00B500BA00DF-00F600F8-00FF01010103010501070109010B010D010F01110113011501170119011B011D011F01210123012501270129012B012D012F01310133013501370138013A013C013E014001420144014601480149014B014D014F01510153015501570159015B015D015F01610163016501670169016B016D016F0171017301750177017A017C017E-0180018301850188018C018D019201950199-019B019E01A101A301A501A801AA01AB01AD01B001B401B601B901BA01BD-01BF01C601C901CC01CE01D001D201D401D601D801DA01DC01DD01DF01E101E301E501E701E901EB01ED01EF01F001F301F501F901FB01FD01FF02010203020502070209020B020D020F02110213021502170219021B021D021F02210223022502270229022B022D022F02310233-0239023C023F0240024202470249024B024D024F-02930295-02AF037103730377037B-037D039003AC-03CE03D003D103D5-03D703D903DB03DD03DF03E103E303E503E703E903EB03ED03EF-03F303F503F803FB03FC0430-045F04610463046504670469046B046D046F04710473047504770479047B047D047F0481048B048D048F04910493049504970499049B049D049F04A104A304A504A704A904AB04AD04AF04B104B304B504B704B904BB04BD04BF04C204C404C604C804CA04CC04CE04CF04D104D304D504D704D904DB04DD04DF04E104E304E504E704E904EB04ED04EF04F104F304F504F704F904FB04FD04FF05010503050505070509050B050D050F05110513051505170519051B051D051F0521052305250561-05871D00-1D2B1D62-1D771D79-1D9A1E011E031E051E071E091E0B1E0D1E0F1E111E131E151E171E191E1B1E1D1E1F1E211E231E251E271E291E2B1E2D1E2F1E311E331E351E371E391E3B1E3D1E3F1E411E431E451E471E491E4B1E4D1E4F1E511E531E551E571E591E5B1E5D1E5F1E611E631E651E671E691E6B1E6D1E6F1E711E731E751E771E791E7B1E7D1E7F1E811E831E851E871E891E8B1E8D1E8F1E911E931E95-1E9D1E9F1EA11EA31EA51EA71EA91EAB1EAD1EAF1EB11EB31EB51EB71EB91EBB1EBD1EBF1EC11EC31EC51EC71EC91ECB1ECD1ECF1ED11ED31ED51ED71ED91EDB1EDD1EDF1EE11EE31EE51EE71EE91EEB1EED1EEF1EF11EF31EF51EF71EF91EFB1EFD1EFF-1F071F10-1F151F20-1F271F30-1F371F40-1F451F50-1F571F60-1F671F70-1F7D1F80-1F871F90-1F971FA0-1FA71FB0-1FB41FB61FB71FBE1FC2-1FC41FC61FC71FD0-1FD31FD61FD71FE0-1FE71FF2-1FF41FF61FF7210A210E210F2113212F21342139213C213D2146-2149214E21842C30-2C5E2C612C652C662C682C6A2C6C2C712C732C742C76-2C7C2C812C832C852C872C892C8B2C8D2C8F2C912C932C952C972C992C9B2C9D2C9F2CA12CA32CA52CA72CA92CAB2CAD2CAF2CB12CB32CB52CB72CB92CBB2CBD2CBF2CC12CC32CC52CC72CC92CCB2CCD2CCF2CD12CD32CD52CD72CD92CDB2CDD2CDF2CE12CE32CE42CEC2CEE2D00-2D25A641A643A645A647A649A64BA64DA64FA651A653A655A657A659A65BA65DA65FA663A665A667A669A66BA66DA681A683A685A687A689A68BA68DA68FA691A693A695A697A723A725A727A729A72BA72DA72F-A731A733A735A737A739A73BA73DA73FA741A743A745A747A749A74BA74DA74FA751A753A755A757A759A75BA75DA75FA761A763A765A767A769A76BA76DA76FA771-A778A77AA77CA77FA781A783A785A787A78CFB00-FB06FB13-FB17FF41-FF5A",Lu:"0041-005A00C0-00D600D8-00DE01000102010401060108010A010C010E01100112011401160118011A011C011E01200122012401260128012A012C012E01300132013401360139013B013D013F0141014301450147014A014C014E01500152015401560158015A015C015E01600162016401660168016A016C016E017001720174017601780179017B017D018101820184018601870189-018B018E-0191019301940196-0198019C019D019F01A001A201A401A601A701A901AC01AE01AF01B1-01B301B501B701B801BC01C401C701CA01CD01CF01D101D301D501D701D901DB01DE01E001E201E401E601E801EA01EC01EE01F101F401F6-01F801FA01FC01FE02000202020402060208020A020C020E02100212021402160218021A021C021E02200222022402260228022A022C022E02300232023A023B023D023E02410243-02460248024A024C024E03700372037603860388-038A038C038E038F0391-03A103A3-03AB03CF03D2-03D403D803DA03DC03DE03E003E203E403E603E803EA03EC03EE03F403F703F903FA03FD-042F04600462046404660468046A046C046E04700472047404760478047A047C047E0480048A048C048E04900492049404960498049A049C049E04A004A204A404A604A804AA04AC04AE04B004B204B404B604B804BA04BC04BE04C004C104C304C504C704C904CB04CD04D004D204D404D604D804DA04DC04DE04E004E204E404E604E804EA04EC04EE04F004F204F404F604F804FA04FC04FE05000502050405060508050A050C050E05100512051405160518051A051C051E0520052205240531-055610A0-10C51E001E021E041E061E081E0A1E0C1E0E1E101E121E141E161E181E1A1E1C1E1E1E201E221E241E261E281E2A1E2C1E2E1E301E321E341E361E381E3A1E3C1E3E1E401E421E441E461E481E4A1E4C1E4E1E501E521E541E561E581E5A1E5C1E5E1E601E621E641E661E681E6A1E6C1E6E1E701E721E741E761E781E7A1E7C1E7E1E801E821E841E861E881E8A1E8C1E8E1E901E921E941E9E1EA01EA21EA41EA61EA81EAA1EAC1EAE1EB01EB21EB41EB61EB81EBA1EBC1EBE1EC01EC21EC41EC61EC81ECA1ECC1ECE1ED01ED21ED41ED61ED81EDA1EDC1EDE1EE01EE21EE41EE61EE81EEA1EEC1EEE1EF01EF21EF41EF61EF81EFA1EFC1EFE1F08-1F0F1F18-1F1D1F28-1F2F1F38-1F3F1F48-1F4D1F591F5B1F5D1F5F1F68-1F6F1FB8-1FBB1FC8-1FCB1FD8-1FDB1FE8-1FEC1FF8-1FFB21022107210B-210D2110-211221152119-211D212421262128212A-212D2130-2133213E213F214521832C00-2C2E2C602C62-2C642C672C692C6B2C6D-2C702C722C752C7E-2C802C822C842C862C882C8A2C8C2C8E2C902C922C942C962C982C9A2C9C2C9E2CA02CA22CA42CA62CA82CAA2CAC2CAE2CB02CB22CB42CB62CB82CBA2CBC2CBE2CC02CC22CC42CC62CC82CCA2CCC2CCE2CD02CD22CD42CD62CD82CDA2CDC2CDE2CE02CE22CEB2CEDA640A642A644A646A648A64AA64CA64EA650A652A654A656A658A65AA65CA65EA662A664A666A668A66AA66CA680A682A684A686A688A68AA68CA68EA690A692A694A696A722A724A726A728A72AA72CA72EA732A734A736A738A73AA73CA73EA740A742A744A746A748A74AA74CA74EA750A752A754A756A758A75AA75CA75EA760A762A764A766A768A76AA76CA76EA779A77BA77DA77EA780A782A784A786A78BFF21-FF3A",Lt:"01C501C801CB01F21F88-1F8F1F98-1F9F1FA8-1FAF1FBC1FCC1FFC",Lm:"02B0-02C102C6-02D102E0-02E402EC02EE0374037A0559064006E506E607F407F507FA081A0824082809710E460EC610FC17D718431AA71C78-1C7D1D2C-1D611D781D9B-1DBF2071207F2090-20942C7D2D6F2E2F30053031-3035303B309D309E30FC-30FEA015A4F8-A4FDA60CA67FA717-A71FA770A788A9CFAA70AADDFF70FF9EFF9F",Lo:"01BB01C0-01C3029405D0-05EA05F0-05F20621-063F0641-064A066E066F0671-06D306D506EE06EF06FA-06FC06FF07100712-072F074D-07A507B107CA-07EA0800-08150904-0939093D09500958-096109720979-097F0985-098C098F09900993-09A809AA-09B009B209B6-09B909BD09CE09DC09DD09DF-09E109F009F10A05-0A0A0A0F0A100A13-0A280A2A-0A300A320A330A350A360A380A390A59-0A5C0A5E0A72-0A740A85-0A8D0A8F-0A910A93-0AA80AAA-0AB00AB20AB30AB5-0AB90ABD0AD00AE00AE10B05-0B0C0B0F0B100B13-0B280B2A-0B300B320B330B35-0B390B3D0B5C0B5D0B5F-0B610B710B830B85-0B8A0B8E-0B900B92-0B950B990B9A0B9C0B9E0B9F0BA30BA40BA8-0BAA0BAE-0BB90BD00C05-0C0C0C0E-0C100C12-0C280C2A-0C330C35-0C390C3D0C580C590C600C610C85-0C8C0C8E-0C900C92-0CA80CAA-0CB30CB5-0CB90CBD0CDE0CE00CE10D05-0D0C0D0E-0D100D12-0D280D2A-0D390D3D0D600D610D7A-0D7F0D85-0D960D9A-0DB10DB3-0DBB0DBD0DC0-0DC60E01-0E300E320E330E40-0E450E810E820E840E870E880E8A0E8D0E94-0E970E99-0E9F0EA1-0EA30EA50EA70EAA0EAB0EAD-0EB00EB20EB30EBD0EC0-0EC40EDC0EDD0F000F40-0F470F49-0F6C0F88-0F8B1000-102A103F1050-1055105A-105D106110651066106E-10701075-1081108E10D0-10FA1100-1248124A-124D1250-12561258125A-125D1260-1288128A-128D1290-12B012B2-12B512B8-12BE12C012C2-12C512C8-12D612D8-13101312-13151318-135A1380-138F13A0-13F41401-166C166F-167F1681-169A16A0-16EA1700-170C170E-17111720-17311740-17511760-176C176E-17701780-17B317DC1820-18421844-18771880-18A818AA18B0-18F51900-191C1950-196D1970-19741980-19AB19C1-19C71A00-1A161A20-1A541B05-1B331B45-1B4B1B83-1BA01BAE1BAF1C00-1C231C4D-1C4F1C5A-1C771CE9-1CEC1CEE-1CF12135-21382D30-2D652D80-2D962DA0-2DA62DA8-2DAE2DB0-2DB62DB8-2DBE2DC0-2DC62DC8-2DCE2DD0-2DD62DD8-2DDE3006303C3041-3096309F30A1-30FA30FF3105-312D3131-318E31A0-31B731F0-31FF3400-4DB54E00-9FCBA000-A014A016-A48CA4D0-A4F7A500-A60BA610-A61FA62AA62BA66EA6A0-A6E5A7FB-A801A803-A805A807-A80AA80C-A822A840-A873A882-A8B3A8F2-A8F7A8FBA90A-A925A930-A946A960-A97CA984-A9B2AA00-AA28AA40-AA42AA44-AA4BAA60-AA6FAA71-AA76AA7AAA80-AAAFAAB1AAB5AAB6AAB9-AABDAAC0AAC2AADBAADCABC0-ABE2AC00-D7A3D7B0-D7C6D7CB-D7FBF900-FA2DFA30-FA6DFA70-FAD9FB1DFB1F-FB28FB2A-FB36FB38-FB3CFB3EFB40FB41FB43FB44FB46-FBB1FBD3-FD3DFD50-FD8FFD92-FDC7FDF0-FDFBFE70-FE74FE76-FEFCFF66-FF6FFF71-FF9DFFA0-FFBEFFC2-FFC7FFCA-FFCFFFD2-FFD7FFDA-FFDC",M:"0300-036F0483-04890591-05BD05BF05C105C205C405C505C70610-061A064B-065E067006D6-06DC06DE-06E406E706E806EA-06ED07110730-074A07A6-07B007EB-07F30816-0819081B-08230825-08270829-082D0900-0903093C093E-094E0951-0955096209630981-098309BC09BE-09C409C709C809CB-09CD09D709E209E30A01-0A030A3C0A3E-0A420A470A480A4B-0A4D0A510A700A710A750A81-0A830ABC0ABE-0AC50AC7-0AC90ACB-0ACD0AE20AE30B01-0B030B3C0B3E-0B440B470B480B4B-0B4D0B560B570B620B630B820BBE-0BC20BC6-0BC80BCA-0BCD0BD70C01-0C030C3E-0C440C46-0C480C4A-0C4D0C550C560C620C630C820C830CBC0CBE-0CC40CC6-0CC80CCA-0CCD0CD50CD60CE20CE30D020D030D3E-0D440D46-0D480D4A-0D4D0D570D620D630D820D830DCA0DCF-0DD40DD60DD8-0DDF0DF20DF30E310E34-0E3A0E47-0E4E0EB10EB4-0EB90EBB0EBC0EC8-0ECD0F180F190F350F370F390F3E0F3F0F71-0F840F860F870F90-0F970F99-0FBC0FC6102B-103E1056-1059105E-10601062-10641067-106D1071-10741082-108D108F109A-109D135F1712-17141732-1734175217531772177317B6-17D317DD180B-180D18A91920-192B1930-193B19B0-19C019C819C91A17-1A1B1A55-1A5E1A60-1A7C1A7F1B00-1B041B34-1B441B6B-1B731B80-1B821BA1-1BAA1C24-1C371CD0-1CD21CD4-1CE81CED1CF21DC0-1DE61DFD-1DFF20D0-20F02CEF-2CF12DE0-2DFF302A-302F3099309AA66F-A672A67CA67DA6F0A6F1A802A806A80BA823-A827A880A881A8B4-A8C4A8E0-A8F1A926-A92DA947-A953A980-A983A9B3-A9C0AA29-AA36AA43AA4CAA4DAA7BAAB0AAB2-AAB4AAB7AAB8AABEAABFAAC1ABE3-ABEAABECABEDFB1EFE00-FE0FFE20-FE26",Mn:"0300-036F0483-04870591-05BD05BF05C105C205C405C505C70610-061A064B-065E067006D6-06DC06DF-06E406E706E806EA-06ED07110730-074A07A6-07B007EB-07F30816-0819081B-08230825-08270829-082D0900-0902093C0941-0948094D0951-095509620963098109BC09C1-09C409CD09E209E30A010A020A3C0A410A420A470A480A4B-0A4D0A510A700A710A750A810A820ABC0AC1-0AC50AC70AC80ACD0AE20AE30B010B3C0B3F0B41-0B440B4D0B560B620B630B820BC00BCD0C3E-0C400C46-0C480C4A-0C4D0C550C560C620C630CBC0CBF0CC60CCC0CCD0CE20CE30D41-0D440D4D0D620D630DCA0DD2-0DD40DD60E310E34-0E3A0E47-0E4E0EB10EB4-0EB90EBB0EBC0EC8-0ECD0F180F190F350F370F390F71-0F7E0F80-0F840F860F870F90-0F970F99-0FBC0FC6102D-10301032-10371039103A103D103E10581059105E-10601071-1074108210851086108D109D135F1712-17141732-1734175217531772177317B7-17BD17C617C9-17D317DD180B-180D18A91920-19221927192819321939-193B1A171A181A561A58-1A5E1A601A621A65-1A6C1A73-1A7C1A7F1B00-1B031B341B36-1B3A1B3C1B421B6B-1B731B801B811BA2-1BA51BA81BA91C2C-1C331C361C371CD0-1CD21CD4-1CE01CE2-1CE81CED1DC0-1DE61DFD-1DFF20D0-20DC20E120E5-20F02CEF-2CF12DE0-2DFF302A-302F3099309AA66FA67CA67DA6F0A6F1A802A806A80BA825A826A8C4A8E0-A8F1A926-A92DA947-A951A980-A982A9B3A9B6-A9B9A9BCAA29-AA2EAA31AA32AA35AA36AA43AA4CAAB0AAB2-AAB4AAB7AAB8AABEAABFAAC1ABE5ABE8ABEDFB1EFE00-FE0FFE20-FE26",Mc:"0903093E-09400949-094C094E0982098309BE-09C009C709C809CB09CC09D70A030A3E-0A400A830ABE-0AC00AC90ACB0ACC0B020B030B3E0B400B470B480B4B0B4C0B570BBE0BBF0BC10BC20BC6-0BC80BCA-0BCC0BD70C01-0C030C41-0C440C820C830CBE0CC0-0CC40CC70CC80CCA0CCB0CD50CD60D020D030D3E-0D400D46-0D480D4A-0D4C0D570D820D830DCF-0DD10DD8-0DDF0DF20DF30F3E0F3F0F7F102B102C10311038103B103C105610571062-10641067-106D108310841087-108C108F109A-109C17B617BE-17C517C717C81923-19261929-192B193019311933-193819B0-19C019C819C91A19-1A1B1A551A571A611A631A641A6D-1A721B041B351B3B1B3D-1B411B431B441B821BA11BA61BA71BAA1C24-1C2B1C341C351CE11CF2A823A824A827A880A881A8B4-A8C3A952A953A983A9B4A9B5A9BAA9BBA9BD-A9C0AA2FAA30AA33AA34AA4DAA7BABE3ABE4ABE6ABE7ABE9ABEAABEC",Me:"0488048906DE20DD-20E020E2-20E4A670-A672",N:"0030-003900B200B300B900BC-00BE0660-066906F0-06F907C0-07C90966-096F09E6-09EF09F4-09F90A66-0A6F0AE6-0AEF0B66-0B6F0BE6-0BF20C66-0C6F0C78-0C7E0CE6-0CEF0D66-0D750E50-0E590ED0-0ED90F20-0F331040-10491090-10991369-137C16EE-16F017E0-17E917F0-17F91810-18191946-194F19D0-19DA1A80-1A891A90-1A991B50-1B591BB0-1BB91C40-1C491C50-1C5920702074-20792080-20892150-21822185-21892460-249B24EA-24FF2776-27932CFD30073021-30293038-303A3192-31953220-32293251-325F3280-328932B1-32BFA620-A629A6E6-A6EFA830-A835A8D0-A8D9A900-A909A9D0-A9D9AA50-AA59ABF0-ABF9FF10-FF19",Nd:"0030-00390660-066906F0-06F907C0-07C90966-096F09E6-09EF0A66-0A6F0AE6-0AEF0B66-0B6F0BE6-0BEF0C66-0C6F0CE6-0CEF0D66-0D6F0E50-0E590ED0-0ED90F20-0F291040-10491090-109917E0-17E91810-18191946-194F19D0-19DA1A80-1A891A90-1A991B50-1B591BB0-1BB91C40-1C491C50-1C59A620-A629A8D0-A8D9A900-A909A9D0-A9D9AA50-AA59ABF0-ABF9FF10-FF19",Nl:"16EE-16F02160-21822185-218830073021-30293038-303AA6E6-A6EF",No:"00B200B300B900BC-00BE09F4-09F90BF0-0BF20C78-0C7E0D70-0D750F2A-0F331369-137C17F0-17F920702074-20792080-20892150-215F21892460-249B24EA-24FF2776-27932CFD3192-31953220-32293251-325F3280-328932B1-32BFA830-A835",P:"0021-00230025-002A002C-002F003A003B003F0040005B-005D005F007B007D00A100AB00B700BB00BF037E0387055A-055F0589058A05BE05C005C305C605F305F40609060A060C060D061B061E061F066A-066D06D40700-070D07F7-07F90830-083E0964096509700DF40E4F0E5A0E5B0F04-0F120F3A-0F3D0F850FD0-0FD4104A-104F10FB1361-13681400166D166E169B169C16EB-16ED1735173617D4-17D617D8-17DA1800-180A1944194519DE19DF1A1E1A1F1AA0-1AA61AA8-1AAD1B5A-1B601C3B-1C3F1C7E1C7F1CD32010-20272030-20432045-20512053-205E207D207E208D208E2329232A2768-277527C527C627E6-27EF2983-299829D8-29DB29FC29FD2CF9-2CFC2CFE2CFF2E00-2E2E2E302E313001-30033008-30113014-301F3030303D30A030FBA4FEA4FFA60D-A60FA673A67EA6F2-A6F7A874-A877A8CEA8CFA8F8-A8FAA92EA92FA95FA9C1-A9CDA9DEA9DFAA5C-AA5FAADEAADFABEBFD3EFD3FFE10-FE19FE30-FE52FE54-FE61FE63FE68FE6AFE6BFF01-FF03FF05-FF0AFF0C-FF0FFF1AFF1BFF1FFF20FF3B-FF3DFF3FFF5BFF5DFF5F-FF65",Pd:"002D058A05BE140018062010-20152E172E1A301C303030A0FE31FE32FE58FE63FF0D",Ps:"0028005B007B0F3A0F3C169B201A201E2045207D208D23292768276A276C276E27702772277427C527E627E827EA27EC27EE2983298529872989298B298D298F299129932995299729D829DA29FC2E222E242E262E283008300A300C300E3010301430163018301A301DFD3EFE17FE35FE37FE39FE3BFE3DFE3FFE41FE43FE47FE59FE5BFE5DFF08FF3BFF5BFF5FFF62",Pe:"0029005D007D0F3B0F3D169C2046207E208E232A2769276B276D276F27712773277527C627E727E927EB27ED27EF298429862988298A298C298E2990299229942996299829D929DB29FD2E232E252E272E293009300B300D300F3011301530173019301B301E301FFD3FFE18FE36FE38FE3AFE3CFE3EFE40FE42FE44FE48FE5AFE5CFE5EFF09FF3DFF5DFF60FF63",Pi:"00AB2018201B201C201F20392E022E042E092E0C2E1C2E20",Pf:"00BB2019201D203A2E032E052E0A2E0D2E1D2E21",Pc:"005F203F20402054FE33FE34FE4D-FE4FFF3F",Po:"0021-00230025-0027002A002C002E002F003A003B003F0040005C00A100B700BF037E0387055A-055F058905C005C305C605F305F40609060A060C060D061B061E061F066A-066D06D40700-070D07F7-07F90830-083E0964096509700DF40E4F0E5A0E5B0F04-0F120F850FD0-0FD4104A-104F10FB1361-1368166D166E16EB-16ED1735173617D4-17D617D8-17DA1800-18051807-180A1944194519DE19DF1A1E1A1F1AA0-1AA61AA8-1AAD1B5A-1B601C3B-1C3F1C7E1C7F1CD3201620172020-20272030-2038203B-203E2041-20432047-205120532055-205E2CF9-2CFC2CFE2CFF2E002E012E06-2E082E0B2E0E-2E162E182E192E1B2E1E2E1F2E2A-2E2E2E302E313001-3003303D30FBA4FEA4FFA60D-A60FA673A67EA6F2-A6F7A874-A877A8CEA8CFA8F8-A8FAA92EA92FA95FA9C1-A9CDA9DEA9DFAA5C-AA5FAADEAADFABEBFE10-FE16FE19FE30FE45FE46FE49-FE4CFE50-FE52FE54-FE57FE5F-FE61FE68FE6AFE6BFF01-FF03FF05-FF07FF0AFF0CFF0EFF0FFF1AFF1BFF1FFF20FF3CFF61FF64FF65",S:"0024002B003C-003E005E0060007C007E00A2-00A900AC00AE-00B100B400B600B800D700F702C2-02C502D2-02DF02E5-02EB02ED02EF-02FF03750384038503F604820606-0608060B060E060F06E906FD06FE07F609F209F309FA09FB0AF10B700BF3-0BFA0C7F0CF10CF20D790E3F0F01-0F030F13-0F170F1A-0F1F0F340F360F380FBE-0FC50FC7-0FCC0FCE0FCF0FD5-0FD8109E109F13601390-139917DB194019E0-19FF1B61-1B6A1B74-1B7C1FBD1FBF-1FC11FCD-1FCF1FDD-1FDF1FED-1FEF1FFD1FFE20442052207A-207C208A-208C20A0-20B8210021012103-21062108210921142116-2118211E-2123212521272129212E213A213B2140-2144214A-214D214F2190-2328232B-23E82400-24262440-244A249C-24E92500-26CD26CF-26E126E326E8-26FF2701-27042706-2709270C-27272729-274B274D274F-27522756-275E2761-276727942798-27AF27B1-27BE27C0-27C427C7-27CA27CC27D0-27E527F0-29822999-29D729DC-29FB29FE-2B4C2B50-2B592CE5-2CEA2E80-2E992E9B-2EF32F00-2FD52FF0-2FFB300430123013302030363037303E303F309B309C319031913196-319F31C0-31E33200-321E322A-32503260-327F328A-32B032C0-32FE3300-33FF4DC0-4DFFA490-A4C6A700-A716A720A721A789A78AA828-A82BA836-A839AA77-AA79FB29FDFCFDFDFE62FE64-FE66FE69FF04FF0BFF1C-FF1EFF3EFF40FF5CFF5EFFE0-FFE6FFE8-FFEEFFFCFFFD",Sm:"002B003C-003E007C007E00AC00B100D700F703F60606-060820442052207A-207C208A-208C2140-2144214B2190-2194219A219B21A021A321A621AE21CE21CF21D221D421F4-22FF2308-230B23202321237C239B-23B323DC-23E125B725C125F8-25FF266F27C0-27C427C7-27CA27CC27D0-27E527F0-27FF2900-29822999-29D729DC-29FB29FE-2AFF2B30-2B442B47-2B4CFB29FE62FE64-FE66FF0BFF1C-FF1EFF5CFF5EFFE2FFE9-FFEC",Sc:"002400A2-00A5060B09F209F309FB0AF10BF90E3F17DB20A0-20B8A838FDFCFE69FF04FFE0FFE1FFE5FFE6",Sk:"005E006000A800AF00B400B802C2-02C502D2-02DF02E5-02EB02ED02EF-02FF0375038403851FBD1FBF-1FC11FCD-1FCF1FDD-1FDF1FED-1FEF1FFD1FFE309B309CA700-A716A720A721A789A78AFF3EFF40FFE3",So:"00A600A700A900AE00B000B60482060E060F06E906FD06FE07F609FA0B700BF3-0BF80BFA0C7F0CF10CF20D790F01-0F030F13-0F170F1A-0F1F0F340F360F380FBE-0FC50FC7-0FCC0FCE0FCF0FD5-0FD8109E109F13601390-1399194019E0-19FF1B61-1B6A1B74-1B7C210021012103-21062108210921142116-2118211E-2123212521272129212E213A213B214A214C214D214F2195-2199219C-219F21A121A221A421A521A7-21AD21AF-21CD21D021D121D321D5-21F32300-2307230C-231F2322-2328232B-237B237D-239A23B4-23DB23E2-23E82400-24262440-244A249C-24E92500-25B625B8-25C025C2-25F72600-266E2670-26CD26CF-26E126E326E8-26FF2701-27042706-2709270C-27272729-274B274D274F-27522756-275E2761-276727942798-27AF27B1-27BE2800-28FF2B00-2B2F2B452B462B50-2B592CE5-2CEA2E80-2E992E9B-2EF32F00-2FD52FF0-2FFB300430123013302030363037303E303F319031913196-319F31C0-31E33200-321E322A-32503260-327F328A-32B032C0-32FE3300-33FF4DC0-4DFFA490-A4C6A828-A82BA836A837A839AA77-AA79FDFDFFE4FFE8FFEDFFEEFFFCFFFD",Z:"002000A01680180E2000-200A20282029202F205F3000",Zs:"002000A01680180E2000-200A202F205F3000",Zl:"2028",Zp:"2029",C:"0000-001F007F-009F00AD03780379037F-0383038B038D03A20526-05300557055805600588058B-059005C8-05CF05EB-05EF05F5-0605061C061D0620065F06DD070E070F074B074C07B2-07BF07FB-07FF082E082F083F-08FF093A093B094F095609570973-097809800984098D098E0991099209A909B109B3-09B509BA09BB09C509C609C909CA09CF-09D609D8-09DB09DE09E409E509FC-0A000A040A0B-0A0E0A110A120A290A310A340A370A3A0A3B0A3D0A43-0A460A490A4A0A4E-0A500A52-0A580A5D0A5F-0A650A76-0A800A840A8E0A920AA90AB10AB40ABA0ABB0AC60ACA0ACE0ACF0AD1-0ADF0AE40AE50AF00AF2-0B000B040B0D0B0E0B110B120B290B310B340B3A0B3B0B450B460B490B4A0B4E-0B550B58-0B5B0B5E0B640B650B72-0B810B840B8B-0B8D0B910B96-0B980B9B0B9D0BA0-0BA20BA5-0BA70BAB-0BAD0BBA-0BBD0BC3-0BC50BC90BCE0BCF0BD1-0BD60BD8-0BE50BFB-0C000C040C0D0C110C290C340C3A-0C3C0C450C490C4E-0C540C570C5A-0C5F0C640C650C70-0C770C800C810C840C8D0C910CA90CB40CBA0CBB0CC50CC90CCE-0CD40CD7-0CDD0CDF0CE40CE50CF00CF3-0D010D040D0D0D110D290D3A-0D3C0D450D490D4E-0D560D58-0D5F0D640D650D76-0D780D800D810D840D97-0D990DB20DBC0DBE0DBF0DC7-0DC90DCB-0DCE0DD50DD70DE0-0DF10DF5-0E000E3B-0E3E0E5C-0E800E830E850E860E890E8B0E8C0E8E-0E930E980EA00EA40EA60EA80EA90EAC0EBA0EBE0EBF0EC50EC70ECE0ECF0EDA0EDB0EDE-0EFF0F480F6D-0F700F8C-0F8F0F980FBD0FCD0FD9-0FFF10C6-10CF10FD-10FF1249124E124F12571259125E125F1289128E128F12B112B612B712BF12C112C612C712D7131113161317135B-135E137D-137F139A-139F13F5-13FF169D-169F16F1-16FF170D1715-171F1737-173F1754-175F176D17711774-177F17B417B517DE17DF17EA-17EF17FA-17FF180F181A-181F1878-187F18AB-18AF18F6-18FF191D-191F192C-192F193C-193F1941-1943196E196F1975-197F19AC-19AF19CA-19CF19DB-19DD1A1C1A1D1A5F1A7D1A7E1A8A-1A8F1A9A-1A9F1AAE-1AFF1B4C-1B4F1B7D-1B7F1BAB-1BAD1BBA-1BFF1C38-1C3A1C4A-1C4C1C80-1CCF1CF3-1CFF1DE7-1DFC1F161F171F1E1F1F1F461F471F4E1F4F1F581F5A1F5C1F5E1F7E1F7F1FB51FC51FD41FD51FDC1FF01FF11FF51FFF200B-200F202A-202E2060-206F20722073208F2095-209F20B9-20CF20F1-20FF218A-218F23E9-23FF2427-243F244B-245F26CE26E226E4-26E727002705270A270B2728274C274E2753-2755275F27602795-279727B027BF27CB27CD-27CF2B4D-2B4F2B5A-2BFF2C2F2C5F2CF2-2CF82D26-2D2F2D66-2D6E2D70-2D7F2D97-2D9F2DA72DAF2DB72DBF2DC72DCF2DD72DDF2E32-2E7F2E9A2EF4-2EFF2FD6-2FEF2FFC-2FFF3040309730983100-3104312E-3130318F31B8-31BF31E4-31EF321F32FF4DB6-4DBF9FCC-9FFFA48D-A48FA4C7-A4CFA62C-A63FA660A661A674-A67BA698-A69FA6F8-A6FFA78D-A7FAA82C-A82FA83A-A83FA878-A87FA8C5-A8CDA8DA-A8DFA8FC-A8FFA954-A95EA97D-A97FA9CEA9DA-A9DDA9E0-A9FFAA37-AA3FAA4EAA4FAA5AAA5BAA7C-AA7FAAC3-AADAAAE0-ABBFABEEABEFABFA-ABFFD7A4-D7AFD7C7-D7CAD7FC-F8FFFA2EFA2FFA6EFA6FFADA-FAFFFB07-FB12FB18-FB1CFB37FB3DFB3FFB42FB45FBB2-FBD2FD40-FD4FFD90FD91FDC8-FDEFFDFEFDFFFE1A-FE1FFE27-FE2FFE53FE67FE6C-FE6FFE75FEFD-FF00FFBF-FFC1FFC8FFC9FFD0FFD1FFD8FFD9FFDD-FFDFFFE7FFEF-FFFBFFFEFFFF",Cc:"0000-001F007F-009F",Cf:"00AD0600-060306DD070F17B417B5200B-200F202A-202E2060-2064206A-206FFEFFFFF9-FFFB",Co:"E000-F8FF",Cs:"D800-DFFF",Cn:"03780379037F-0383038B038D03A20526-05300557055805600588058B-059005C8-05CF05EB-05EF05F5-05FF06040605061C061D0620065F070E074B074C07B2-07BF07FB-07FF082E082F083F-08FF093A093B094F095609570973-097809800984098D098E0991099209A909B109B3-09B509BA09BB09C509C609C909CA09CF-09D609D8-09DB09DE09E409E509FC-0A000A040A0B-0A0E0A110A120A290A310A340A370A3A0A3B0A3D0A43-0A460A490A4A0A4E-0A500A52-0A580A5D0A5F-0A650A76-0A800A840A8E0A920AA90AB10AB40ABA0ABB0AC60ACA0ACE0ACF0AD1-0ADF0AE40AE50AF00AF2-0B000B040B0D0B0E0B110B120B290B310B340B3A0B3B0B450B460B490B4A0B4E-0B550B58-0B5B0B5E0B640B650B72-0B810B840B8B-0B8D0B910B96-0B980B9B0B9D0BA0-0BA20BA5-0BA70BAB-0BAD0BBA-0BBD0BC3-0BC50BC90BCE0BCF0BD1-0BD60BD8-0BE50BFB-0C000C040C0D0C110C290C340C3A-0C3C0C450C490C4E-0C540C570C5A-0C5F0C640C650C70-0C770C800C810C840C8D0C910CA90CB40CBA0CBB0CC50CC90CCE-0CD40CD7-0CDD0CDF0CE40CE50CF00CF3-0D010D040D0D0D110D290D3A-0D3C0D450D490D4E-0D560D58-0D5F0D640D650D76-0D780D800D810D840D97-0D990DB20DBC0DBE0DBF0DC7-0DC90DCB-0DCE0DD50DD70DE0-0DF10DF5-0E000E3B-0E3E0E5C-0E800E830E850E860E890E8B0E8C0E8E-0E930E980EA00EA40EA60EA80EA90EAC0EBA0EBE0EBF0EC50EC70ECE0ECF0EDA0EDB0EDE-0EFF0F480F6D-0F700F8C-0F8F0F980FBD0FCD0FD9-0FFF10C6-10CF10FD-10FF1249124E124F12571259125E125F1289128E128F12B112B612B712BF12C112C612C712D7131113161317135B-135E137D-137F139A-139F13F5-13FF169D-169F16F1-16FF170D1715-171F1737-173F1754-175F176D17711774-177F17DE17DF17EA-17EF17FA-17FF180F181A-181F1878-187F18AB-18AF18F6-18FF191D-191F192C-192F193C-193F1941-1943196E196F1975-197F19AC-19AF19CA-19CF19DB-19DD1A1C1A1D1A5F1A7D1A7E1A8A-1A8F1A9A-1A9F1AAE-1AFF1B4C-1B4F1B7D-1B7F1BAB-1BAD1BBA-1BFF1C38-1C3A1C4A-1C4C1C80-1CCF1CF3-1CFF1DE7-1DFC1F161F171F1E1F1F1F461F471F4E1F4F1F581F5A1F5C1F5E1F7E1F7F1FB51FC51FD41FD51FDC1FF01FF11FF51FFF2065-206920722073208F2095-209F20B9-20CF20F1-20FF218A-218F23E9-23FF2427-243F244B-245F26CE26E226E4-26E727002705270A270B2728274C274E2753-2755275F27602795-279727B027BF27CB27CD-27CF2B4D-2B4F2B5A-2BFF2C2F2C5F2CF2-2CF82D26-2D2F2D66-2D6E2D70-2D7F2D97-2D9F2DA72DAF2DB72DBF2DC72DCF2DD72DDF2E32-2E7F2E9A2EF4-2EFF2FD6-2FEF2FFC-2FFF3040309730983100-3104312E-3130318F31B8-31BF31E4-31EF321F32FF4DB6-4DBF9FCC-9FFFA48D-A48FA4C7-A4CFA62C-A63FA660A661A674-A67BA698-A69FA6F8-A6FFA78D-A7FAA82C-A82FA83A-A83FA878-A87FA8C5-A8CDA8DA-A8DFA8FC-A8FFA954-A95EA97D-A97FA9CEA9DA-A9DDA9E0-A9FFAA37-AA3FAA4EAA4FAA5AAA5BAA7C-AA7FAAC3-AADAAAE0-ABBFABEEABEFABFA-ABFFD7A4-D7AFD7C7-D7CAD7FC-D7FFFA2EFA2FFA6EFA6FFADA-FAFFFB07-FB12FB18-FB1CFB37FB3DFB3FFB42FB45FBB2-FBD2FD40-FD4FFD90FD91FDC8-FDEFFDFEFDFFFE1A-FE1FFE27-FE2FFE53FE67FE6C-FE6FFE75FEFDFEFEFF00FFBF-FFC1FFC8FFC9FFD0FFD1FFD8FFD9FFDD-FFDFFFE7FFEF-FFF8FFFEFFFF"});function ui(fi){var mi=/\w{4}/g;for(var gi in fi)ni.packages[gi]=fi[gi].replace(mi,"\\u$&")}});ace.define("ace/mode/text",["require","exports","module","ace/tokenizer","ace/mode/text_highlight_rules","ace/mode/behaviour/cstyle","ace/unicode","ace/lib/lang","ace/token_iterator","ace/range"],function(ti,ni,oi){var ui=ti("../tokenizer").Tokenizer,fi=ti("./text_highlight_rules").TextHighlightRules,mi=ti("./behaviour/cstyle").CstyleBehaviour,gi=ti("../unicode"),di=ti("../lib/lang"),li=ti("../token_iterator").TokenIterator,ci=ti("../range").Range,pi=function(){this.HighlightRules=fi};(function(){this.$defaultBehaviour=new mi,this.tokenRe=new RegExp("^["+gi.packages.L+gi.packages.Mn+gi.packages.Mc+gi.packages.Nd+gi.packages.Pc+"\\$_]+","g"),this.nonTokenRe=new RegExp("^(?:[^"+gi.packages.L+gi.packages.Mn+gi.packages.Mc+gi.packages.Nd+gi.packages.Pc+"\\$_]|\\s])+","g"),this.getTokenizer=function(){return this.$tokenizer||(this.$highlightRules=this.$highlightRules||new this.HighlightRules(this.$highlightRuleConfig),this.$tokenizer=new ui(this.$highlightRules.getRules())),this.$tokenizer},this.lineCommentStart="",this.blockComment="",this.toggleCommentLines=function(bi,vi,Ai,Li){var Bi=vi.doc,Ri=!0,zi=!0,Ei=1/0,Ii=vi.getTabSize(),ki=!1;if(this.lineCommentStart){if(Array.isArray(this.lineCommentStart))var ji=this.lineCommentStart.map(di.escapeRegExp).join("|"),Ti=this.lineCommentStart[0];else var ji=di.escapeRegExp(this.lineCommentStart),Ti=this.lineCommentStart;ji=new RegExp("^(\\s*)(?:"+ji+") ?"),ki=vi.getUseSoftTabs();var qi=function(_n,dn){var tn=_n.match(ji);if(tn){var cn=tn[1].length,un=tn[0].length;!en(_n,cn,un)&&tn[0][un-1]==" "&&un--,Bi.removeInLine(dn,cn,un)}},sn=Ti+" ",Ni=function(_n,dn){(!Ri||/\S/.test(_n))&&(en(_n,Ei,Ei)?Bi.insertInLine({row:dn,column:Ei},sn):Bi.insertInLine({row:dn,column:Ei},Ti))},Ji=function(_n,dn){return ji.test(_n)},en=function(_n,dn,tn){for(var cn=0;dn--&&_n.charAt(dn)==" ";)cn++;if(cn%Ii!=0)return!1;for(var cn=0;_n.charAt(tn++)==" ";)cn++;return Ii>2?cn%Ii!=Ii-1:cn%Ii==0}}else{if(!this.blockComment)return!1;var Ti=this.blockComment.start,Pi=this.blockComment.end,ji=new RegExp("^(\\s*)(?:"+di.escapeRegExp(Ti)+")"),Di=new RegExp("(?:"+di.escapeRegExp(Pi)+")\\s*$"),Ni=function(vn,bn){Ji(vn,bn)||(!Ri||/\S/.test(vn))&&(Bi.insertInLine({row:bn,column:vn.length},Pi),Bi.insertInLine({row:bn,column:Ei},Ti))},qi=function(vn,bn){var An;(An=vn.match(Di))&&Bi.removeInLine(bn,vn.length-An[0].length,vn.length),(An=vn.match(ji))&&Bi.removeInLine(bn,An[1].length,An[0].length)},Ji=function(vn,bn){if(ji.test(vn))return!0;for(var An=vi.getTokens(bn),_n=0;_nvn.length&&(fn=vn.length)}),Ei==1/0&&(Ei=fn,Ri=!1,zi=!1),ki&&Ei%Ii!=0&&(Ei=Math.floor(Ei/Ii)*Ii),rn(zi?qi:Ni)},this.toggleBlockComment=function(bi,vi,Ai,Li){var Bi=this.blockComment;if(Bi){!Bi.start&&Bi[0]&&(Bi=Bi[0]);var Ri=new li(vi,Li.row,Li.column),zi=Ri.getCurrentToken();vi.selection;var Ei=vi.selection.toOrientedRange(),Ii,ki;if(zi&&/comment/.test(zi.type)){for(var Ti,Pi;zi&&/comment/.test(zi.type);){var ji=zi.value.indexOf(Bi.start);if(ji!=-1){var Di=Ri.getCurrentTokenRow(),Ni=Ri.getCurrentTokenColumn()+ji;Ti=new ci(Di,Ni,Di,Ni+Bi.start.length);break}zi=Ri.stepBackward()}for(var Ri=new li(vi,Li.row,Li.column),zi=Ri.getCurrentToken();zi&&/comment/.test(zi.type);){var ji=zi.value.indexOf(Bi.end);if(ji!=-1){var Di=Ri.getCurrentTokenRow(),Ni=Ri.getCurrentTokenColumn()+ji;Pi=new ci(Di,Ni,Di,Ni+Bi.end.length);break}zi=Ri.stepForward()}Pi&&vi.remove(Pi),Ti&&(vi.remove(Ti),Ii=Ti.start.row,ki=-Bi.start.length)}else ki=Bi.start.length,Ii=Ai.start.row,vi.insert(Ai.end,Bi.end),vi.insert(Ai.start,Bi.start);Ei.start.row==Ii&&(Ei.start.column+=ki),Ei.end.row==Ii&&(Ei.end.column+=ki),vi.selection.fromOrientedRange(Ei)}},this.getNextLineIndent=function(bi,vi,Ai){return this.$getIndent(vi)},this.checkOutdent=function(bi,vi,Ai){return!1},this.autoOutdent=function(bi,vi,Ai){},this.$getIndent=function(bi){return bi.match(/^\s*/)[0]},this.createWorker=function(bi){return null},this.createModeDelegates=function(bi){this.$embeds=[],this.$modes={};for(var vi in bi)bi[vi]&&(this.$embeds.push(vi),this.$modes[vi]=new bi[vi]);for(var Ai=["toggleBlockComment","toggleCommentLines","getNextLineIndent","checkOutdent","autoOutdent","transformAction","getCompletions"],vi=0;vi"u"?this.setPosition(di.row,di.column):this.setPosition(di,li)};(function(){ui.implement(this,fi),this.getPosition=function(){return this.$clipPositionToDocument(this.row,this.column)},this.getDocument=function(){return this.document},this.$insertRight=!1,this.onChange=function(li){if(!(li.start.row==li.end.row&&li.start.row!=this.row)&&!(li.start.row>this.row)){var ci=di(li,{row:this.row,column:this.column},this.$insertRight);this.setPosition(ci.row,ci.column,!0)}};function gi(li,ci,pi){var bi=pi?li.column<=ci.column:li.column=this.document.getLength()?(pi.row=Math.max(0,this.document.getLength()-1),pi.column=this.document.getLine(pi.row).length):li<0?(pi.row=0,pi.column=0):(pi.row=li,pi.column=Math.min(this.document.getLine(pi.row).length,Math.max(0,ci))),ci<0&&(pi.column=0),pi}}).call(mi.prototype)});ace.define("ace/document",["require","exports","module","ace/lib/oop","ace/apply_delta","ace/lib/event_emitter","ace/range","ace/anchor"],function(ti,ni,oi){var ui=ti("./lib/oop"),fi=ti("./apply_delta").applyDelta,mi=ti("./lib/event_emitter").EventEmitter,gi=ti("./range").Range,di=ti("./anchor").Anchor,li=function(ci){this.$lines=[""],ci.length===0?this.$lines=[""]:Array.isArray(ci)?this.insertMergedLines({row:0,column:0},ci):this.insert({row:0,column:0},ci)};(function(){ui.implement(this,mi),this.setValue=function(ci){var pi=this.getLength()-1;this.remove(new gi(0,0,pi,this.getLine(pi).length)),this.insert({row:0,column:0},ci)},this.getValue=function(){return this.getAllLines().join(this.getNewLineCharacter())},this.createAnchor=function(ci,pi){return new di(this,ci,pi)},"aaa".split(/a/).length===0?this.$split=function(ci){return ci.replace(/\r\n|\r/g,` `).split(` `)}:this.$split=function(ci){return ci.split(/\r\n|\r|\n/)},this.$detectNewLine=function(ci){var pi=ci.match(/^.*?(\r\n|\r|\n)/m);this.$autoNewLine=pi?pi[1]:` `,this._signal("changeNewLineMode")},this.getNewLineCharacter=function(){switch(this.$newLineMode){case"windows":return`\r `;case"unix":return` `;default:return this.$autoNewLine||` `}},this.$autoNewLine="",this.$newLineMode="auto",this.setNewLineMode=function(ci){this.$newLineMode!==ci&&(this.$newLineMode=ci,this._signal("changeNewLineMode"))},this.getNewLineMode=function(){return this.$newLineMode},this.isNewLine=function(ci){return ci==`\r `||ci=="\r"||ci==` `},this.getLine=function(ci){return this.$lines[ci]||""},this.getLines=function(ci,pi){return this.$lines.slice(ci,pi+1)},this.getAllLines=function(){return this.getLines(0,this.getLength())},this.getLength=function(){return this.$lines.length},this.getTextRange=function(ci){return this.getLinesForRange(ci).join(this.getNewLineCharacter())},this.getLinesForRange=function(ci){var pi;if(ci.start.row===ci.end.row)pi=[this.getLine(ci.start.row).substring(ci.start.column,ci.end.column)];else{pi=this.getLines(ci.start.row,ci.end.row),pi[0]=(pi[0]||"").substring(ci.start.column);var bi=pi.length-1;ci.end.row-ci.start.row==bi&&(pi[bi]=pi[bi].substring(0,ci.end.column))}return pi},this.insertLines=function(ci,pi){return console.warn("Use of document.insertLines is deprecated. Use the insertFullLines method instead."),this.insertFullLines(ci,pi)},this.removeLines=function(ci,pi){return console.warn("Use of document.removeLines is deprecated. Use the removeFullLines method instead."),this.removeFullLines(ci,pi)},this.insertNewLine=function(ci){return console.warn("Use of document.insertNewLine is deprecated. Use insertMergedLines(position, ['', '']) instead."),this.insertMergedLines(ci,["",""])},this.insert=function(ci,pi){return this.getLength()<=1&&this.$detectNewLine(pi),this.insertMergedLines(ci,this.$split(pi))},this.insertInLine=function(ci,pi){var bi=this.clippedPos(ci.row,ci.column),vi=this.pos(ci.row,ci.column+pi.length);return this.applyDelta({start:bi,end:vi,action:"insert",lines:[pi]},!0),this.clonePos(vi)},this.clippedPos=function(ci,pi){var bi=this.getLength();ci===void 0?ci=bi:ci<0?ci=0:ci>=bi&&(ci=bi-1,pi=void 0);var vi=this.getLine(ci);return pi==null&&(pi=vi.length),pi=Math.min(Math.max(pi,0),vi.length),{row:ci,column:pi}},this.clonePos=function(ci){return{row:ci.row,column:ci.column}},this.pos=function(ci,pi){return{row:ci,column:pi}},this.$clipPosition=function(ci){var pi=this.getLength();return ci.row>=pi?(ci.row=Math.max(0,pi-1),ci.column=this.getLine(pi-1).length):(ci.row=Math.max(0,ci.row),ci.column=Math.min(Math.max(ci.column,0),this.getLine(ci.row).length)),ci},this.insertFullLines=function(ci,pi){ci=Math.min(Math.max(ci,0),this.getLength());var bi=0;ci0,vi=pi=0&&this.applyDelta({start:this.pos(ci,this.getLine(ci).length),end:this.pos(ci+1,0),action:"remove",lines:["",""]})},this.replace=function(ci,pi){if(ci instanceof gi||(ci=gi.fromPoints(ci.start,ci.end)),pi.length===0&&ci.isEmpty())return ci.start;if(pi==this.getTextRange(ci))return ci.end;this.remove(ci);var bi;return pi?bi=this.insert(ci.start,pi):bi=ci.start,bi},this.applyDeltas=function(ci){for(var pi=0;pi=0;pi--)this.revertDelta(ci[pi])},this.applyDelta=function(ci,pi){var bi=ci.action=="insert";(bi?ci.lines.length<=1&&!ci.lines[0]:!gi.comparePoints(ci.start,ci.end))||(bi&&ci.lines.length>2e4&&this.$splitAndapplyLargeDelta(ci,2e4),fi(this.$lines,ci,pi),this._signal("change",ci))},this.$splitAndapplyLargeDelta=function(ci,pi){var bi=ci.lines,vi=bi.length,Ai=ci.start.row,Li=ci.start.column,Bi=0,Ri=0;do{Bi=Ri,Ri+=pi-1;var zi=bi.slice(Bi,Ri);if(Ri>vi){ci.lines=zi,ci.start.row=Ai+Bi,ci.start.column=Li;break}zi.push(""),this.applyDelta({start:this.pos(Ai+Bi,Li),end:this.pos(Ai+Ri,Li=0),action:ci.action,lines:zi},!0)}while(!0)},this.revertDelta=function(ci){this.applyDelta({start:this.clonePos(ci.start),end:this.clonePos(ci.end),action:ci.action=="insert"?"remove":"insert",lines:ci.lines.slice()})},this.indexToPosition=function(ci,pi){for(var bi=this.$lines||this.getAllLines(),vi=this.getNewLineCharacter().length,Ai=pi||0,Li=bi.length;Ai20){li.running=setTimeout(li.$worker,20);break}}li.currentLine=pi,bi==-1&&(bi=pi),Ai<=bi&&li.fireUpdateEvent(Ai,bi)}}};(function(){ui.implement(this,fi),this.setTokenizer=function(gi){this.tokenizer=gi,this.lines=[],this.states=[],this.start(0)},this.setDocument=function(gi){this.doc=gi,this.lines=[],this.states=[],this.stop()},this.fireUpdateEvent=function(gi,di){var li={first:gi,last:di};this._signal("update",{data:li})},this.start=function(gi){this.currentLine=Math.min(gi||0,this.currentLine,this.doc.getLength()),this.lines.splice(this.currentLine,this.lines.length),this.states.splice(this.currentLine,this.states.length),this.stop(),this.running=setTimeout(this.$worker,700)},this.scheduleStart=function(){this.running||(this.running=setTimeout(this.$worker,700))},this.$updateOnChange=function(gi){var di=gi.start.row,li=gi.end.row-di;if(li===0)this.lines[di]=null;else if(gi.action=="remove")this.lines.splice(di,li+1,null),this.states.splice(di,li+1,null);else{var ci=Array(li+1);ci.unshift(di,1),this.lines.splice.apply(this.lines,ci),this.states.splice.apply(this.states,ci)}this.currentLine=Math.min(di,this.currentLine,this.doc.getLength()),this.stop()},this.stop=function(){this.running&&clearTimeout(this.running),this.running=!1},this.getTokens=function(gi){return this.lines[gi]||this.$tokenizeRow(gi)},this.getState=function(gi){return this.currentLine==gi&&this.$tokenizeRow(gi),this.states[gi]||"start"},this.$tokenizeRow=function(gi){var di=this.doc.getLine(gi),li=this.states[gi-1],ci=this.tokenizer.getLineTokens(di,li,gi);return this.states[gi]+""!=ci.state+""?(this.states[gi]=ci.state,this.lines[gi+1]=null,this.currentLine>gi+1&&(this.currentLine=gi+1)):this.currentLine==gi&&(this.currentLine=gi+1),this.lines[gi]=ci.tokens}}).call(mi.prototype),ni.BackgroundTokenizer=mi});ace.define("ace/search_highlight",["require","exports","module","ace/lib/lang","ace/lib/oop","ace/range"],function(ti,ni,oi){var ui=ti("./lib/lang");ti("./lib/oop");var fi=ti("./range").Range,mi=function(gi,di,li){this.setRegexp(gi),this.clazz=di,this.type=li||"text"};(function(){this.MAX_RANGES=500,this.setRegexp=function(gi){this.regExp+""!=gi+""&&(this.regExp=gi,this.cache=[])},this.update=function(gi,di,li,ci){if(this.regExp)for(var pi=ci.firstRow,bi=ci.lastRow,vi=pi;vi<=bi;vi++){var Ai=this.cache[vi];Ai==null&&(Ai=ui.getMatchOffsets(li.getLine(vi),this.regExp),Ai.length>this.MAX_RANGES&&(Ai=Ai.slice(0,this.MAX_RANGES)),Ai=Ai.map(function(Bi){return new fi(vi,Bi.offset,vi,Bi.offset+Bi.length)}),this.cache[vi]=Ai.length?Ai:"");for(var Li=Ai.length;Li--;)di.drawSingleLineMarker(gi,Ai[Li].toScreenRange(li),this.clazz,ci)}}}).call(mi.prototype),ni.SearchHighlight=mi});ace.define("ace/edit_session/fold_line",["require","exports","module","ace/range"],function(ti,ni,oi){var ui=ti("../range").Range;function fi(mi,gi){this.foldData=mi,Array.isArray(gi)?this.folds=gi:gi=this.folds=[gi];var di=gi[gi.length-1];this.range=new ui(gi[0].start.row,gi[0].start.column,di.end.row,di.end.column),this.start=this.range.start,this.end=this.range.end,this.folds.forEach(function(li){li.setFoldLine(this)},this)}(function(){this.shiftRow=function(mi){this.start.row+=mi,this.end.row+=mi,this.folds.forEach(function(gi){gi.start.row+=mi,gi.end.row+=mi})},this.addFold=function(mi){if(mi.sameRow){if(mi.start.rowthis.endRow)throw new Error("Can't add a fold to this FoldLine as it has no connection");this.folds.push(mi),this.folds.sort(function(gi,di){return-gi.range.compareEnd(di.start.row,di.start.column)}),this.range.compareEnd(mi.start.row,mi.start.column)>0?(this.end.row=mi.end.row,this.end.column=mi.end.column):this.range.compareStart(mi.end.row,mi.end.column)<0&&(this.start.row=mi.start.row,this.start.column=mi.start.column)}else if(mi.start.row==this.end.row)this.folds.push(mi),this.end.row=mi.end.row,this.end.column=mi.end.column;else if(mi.end.row==this.start.row)this.folds.unshift(mi),this.start.row=mi.start.row,this.start.column=mi.start.column;else throw new Error("Trying to add fold to FoldRow that doesn't have a matching row");mi.foldLine=this},this.containsRow=function(mi){return mi>=this.start.row&&mi<=this.end.row},this.walk=function(mi,gi,di){var li=0,ci=this.folds,pi,bi,vi,Ai=!0;gi==null&&(gi=this.end.row,di=this.end.column);for(var Li=0;Li0)){var Ai=fi(gi,bi.start);return vi===0?di&&Ai!==0?-pi-2:pi:Ai>0||Ai===0&&!di?pi:-pi-1}}return-pi-1},this.add=function(gi){var di=!gi.isEmpty(),li=this.pointIndex(gi.start,di);li<0&&(li=-li-1);var ci=this.pointIndex(gi.end,di,li);return ci<0?ci=-ci-1:ci++,this.ranges.splice(li,ci-li,gi)},this.addList=function(gi){for(var di=[],li=gi.length;li--;)di.push.apply(di,this.add(gi[li]));return di},this.substractPoint=function(gi){var di=this.pointIndex(gi);if(di>=0)return this.ranges.splice(di,1)},this.merge=function(){var gi=[],di=this.ranges;di=di.sort(function(vi,Ai){return fi(vi.start,Ai.start)});for(var li=di[0],ci,pi=1;pi=0},this.containsPoint=function(gi){return this.pointIndex(gi)>=0},this.rangeAtPoint=function(gi){var di=this.pointIndex(gi);if(di>=0)return this.ranges[di]},this.clipRows=function(gi,di){var li=this.ranges;if(li[0].start.row>di||li[li.length-1].start.rowci)break;if(Ri.start.row==ci&&Ri.start.column>=di.column&&(Ri.start.column==di.column&&this.$insertRight||(Ri.start.column+=vi,Ri.start.row+=bi)),Ri.end.row==ci&&Ri.end.column>=di.column){if(Ri.end.column==di.column&&this.$insertRight)continue;Ri.end.column==di.column&&vi>0&&LiRi.start.column&&Ri.end.column==Ai[Li+1].start.column&&(Ri.end.column-=vi),Ri.end.column+=vi,Ri.end.row+=bi}}}if(bi!=0&&Li=li)return vi;if(vi.end.row>li)return null}return null},this.getNextFoldLine=function(li,ci){var pi=this.$foldData,bi=0;for(ci&&(bi=pi.indexOf(ci)),bi==-1&&(bi=0),bi;bi=li)return vi}return null},this.getFoldedRowCount=function(li,ci){for(var pi=this.$foldData,bi=ci-li+1,vi=0;vi=ci){Bi=li?bi-=ci-Bi:bi=0);break}else Li>=li&&(Bi>=li?bi-=Li-Bi:bi-=Li-li+1)}return bi},this.$addFoldLine=function(li){return this.$foldData.push(li),this.$foldData.sort(function(ci,pi){return ci.start.row-pi.start.row}),li},this.addFold=function(li,ci){var pi=this.$foldData,bi=!1,vi;li instanceof mi?vi=li:(vi=new mi(ci,li),vi.collapseChildren=ci.collapseChildren),this.$clipRangeToDocument(vi.range);var Ai=vi.start.row,Li=vi.start.column,Bi=vi.end.row,Ri=vi.end.column;if(!(Ai0&&(this.removeFolds(Ii),Ii.forEach(function(ji){vi.addSubFold(ji)}));for(var ki=0;ki0&&this.foldAll(li.start.row+1,li.end.row,li.collapseChildren-1),li.subFolds=[]},this.expandFolds=function(li){li.forEach(function(ci){this.expandFold(ci)},this)},this.unfold=function(li,ci){var pi,bi;if(li==null?(pi=new ui(0,0,this.getLength(),0),ci=!0):typeof li=="number"?pi=new ui(li,0,li,this.getLine(li).length):"row"in li?pi=ui.fromPoints(li,li):pi=li,bi=this.getFoldsInRangeList(pi),ci)this.removeFolds(bi);else for(var vi=bi;vi.length;)this.expandFolds(vi),vi=this.getFoldsInRangeList(pi);if(bi.length)return bi},this.isRowFolded=function(li,ci){return!!this.getFoldLine(li,ci)},this.getRowFoldEnd=function(li,ci){var pi=this.getFoldLine(li,ci);return pi?pi.end.row:li},this.getRowFoldStart=function(li,ci){var pi=this.getFoldLine(li,ci);return pi?pi.start.row:li},this.getFoldDisplayLine=function(li,ci,pi,bi,vi){bi==null&&(bi=li.start.row),vi==null&&(vi=0),ci==null&&(ci=li.end.row),pi==null&&(pi=this.getLine(ci).length);var Ai=this.doc,Li="";return li.walk(function(Bi,Ri,zi,Ei){if(!(RiRi)break;while(vi&&Li.test(vi.type));vi=bi.stepBackward()}else vi=bi.getCurrentToken();return Bi.end.row=bi.getCurrentTokenRow(),Bi.end.column=bi.getCurrentTokenColumn()+vi.value.length-2,Bi}},this.foldAll=function(li,ci,pi){pi==null&&(pi=1e5);var bi=this.foldWidgets;if(bi){ci=ci||this.getLength(),li=li||0;for(var vi=li;vi=li){vi=Ai.end.row;try{var Li=this.addFold("...",Ai);Li&&(Li.collapseChildren=pi)}catch{}}}}},this.$foldStyles={manual:1,markbegin:1,markbeginend:1},this.$foldStyle="markbegin",this.setFoldStyle=function(li){if(!this.$foldStyles[li])throw new Error("invalid fold style: "+li+"["+Object.keys(this.$foldStyles).join(", ")+"]");if(this.$foldStyle!=li){this.$foldStyle=li,li=="manual"&&this.unfold();var ci=this.$foldMode;this.$setFolding(null),this.$setFolding(ci)}},this.$setFolding=function(li){if(this.$foldMode!=li){if(this.$foldMode=li,this.off("change",this.$updateFoldWidgets),this.off("tokenizerUpdate",this.$tokenizerUpdateFoldWidgets),this._signal("changeAnnotation"),!li||this.$foldStyle=="manual"){this.foldWidgets=null;return}this.foldWidgets=[],this.getFoldWidget=li.getFoldWidget.bind(li,this,this.$foldStyle),this.getFoldWidgetRange=li.getFoldWidgetRange.bind(li,this,this.$foldStyle),this.$updateFoldWidgets=this.updateFoldWidgets.bind(this),this.$tokenizerUpdateFoldWidgets=this.tokenizerUpdateFoldWidgets.bind(this),this.on("change",this.$updateFoldWidgets),this.on("tokenizerUpdate",this.$tokenizerUpdateFoldWidgets)}},this.getParentFoldRangeData=function(li,ci){var pi=this.foldWidgets;if(!pi||ci&&pi[li])return{};for(var bi=li-1,vi;bi>=0;){var Ai=pi[bi];if(Ai==null&&(Ai=pi[bi]=this.getFoldWidget(bi)),Ai=="start"){var Li=this.getFoldWidgetRange(bi);if(vi||(vi=Li),Li&&Li.end.row>=li)break}bi--}return{range:bi!==-1&&Li,firstRange:vi}},this.onFoldWidgetClick=function(li,ci){ci=ci.domEvent;var pi={children:ci.shiftKey,all:ci.ctrlKey||ci.metaKey,siblings:ci.altKey},bi=this.$toggleFoldWidget(li,pi);if(!bi){var vi=ci.target||ci.srcElement;vi&&/ace_fold-widget/.test(vi.className)&&(vi.className+=" ace_invalid")}},this.$toggleFoldWidget=function(li,ci){if(this.getFoldWidget){var pi=this.getFoldWidget(li),bi=this.getLine(li),vi=pi==="end"?-1:1,Ai=this.getFoldAt(li,vi===-1?0:bi.length,vi);if(Ai)return ci.children||ci.all?this.removeFold(Ai):this.expandFold(Ai),Ai;var Li=this.getFoldWidgetRange(li,!0);if(Li&&!Li.isMultiLine()&&(Ai=this.getFoldAt(Li.start.row,Li.start.column,1),Ai&&Li.isEqual(Ai.range)))return this.removeFold(Ai),Ai;if(ci.siblings){var Bi=this.getParentFoldRangeData(li);if(Bi.range)var Ri=Bi.range.start.row+1,zi=Bi.range.end.row;this.foldAll(Ri,zi,ci.all?1e4:0)}else ci.children?(zi=Li?Li.end.row:this.getLength(),this.foldAll(li+1,zi,ci.all?1e4:0)):Li&&(ci.all&&(Li.collapseChildren=1e4),this.addFold("...",Li));return Li}},this.toggleFoldWidget=function(li){var ci=this.selection.getCursor().row;ci=this.getRowFoldStart(ci);var pi=this.$toggleFoldWidget(ci,{});if(!pi){var bi=this.getParentFoldRangeData(ci,!0);if(pi=bi.range||bi.firstRange,pi){ci=pi.start.row;var vi=this.getFoldAt(ci,this.getLine(ci).length,1);vi?this.removeFold(vi):this.addFold("...",pi)}}},this.updateFoldWidgets=function(li){var ci=li.start.row,pi=li.end.row-ci;if(pi===0)this.foldWidgets[ci]=null;else if(li.action=="remove")this.foldWidgets.splice(ci,pi+1,null);else{var bi=Array(pi+1);bi.unshift(ci,1),this.foldWidgets.splice.apply(this.foldWidgets,bi)}},this.tokenizerUpdateFoldWidgets=function(li){var ci=li.data;ci.first!=ci.last&&this.foldWidgets.length>ci.first&&this.foldWidgets.splice(ci.first,this.foldWidgets.length)}}ni.Folding=di});ace.define("ace/edit_session/bracket_match",["require","exports","module","ace/token_iterator","ace/range"],function(ti,ni,oi){var ui=ti("../token_iterator").TokenIterator,fi=ti("../range").Range;function mi(){this.findMatchingBracket=function(gi,di){if(gi.column==0)return null;var li=di||this.getLine(gi.row).charAt(gi.column-1);if(li=="")return null;var ci=li.match(/([\(\[\{])|([\)\]\}])/);return ci?ci[1]?this.$findClosingBracket(ci[1],gi):this.$findOpeningBracket(ci[2],gi):null},this.getBracketRange=function(gi){var di=this.getLine(gi.row),li=!0,ci,pi=di.charAt(gi.column-1),bi=pi&&pi.match(/([\(\[\{])|([\)\]\}])/);if(bi||(pi=di.charAt(gi.column),gi={row:gi.row,column:gi.column+1},bi=pi&&pi.match(/([\(\[\{])|([\)\]\}])/),li=!1),!bi)return null;if(bi[1]){var vi=this.$findClosingBracket(bi[1],gi);if(!vi)return null;ci=fi.fromPoints(gi,vi),li||(ci.end.column++,ci.start.column--),ci.cursor=ci.end}else{var vi=this.$findOpeningBracket(bi[2],gi);if(!vi)return null;ci=fi.fromPoints(vi,gi),li||(ci.start.column++,ci.end.column--),ci.cursor=ci.start}return ci},this.$brackets={")":"(","(":")","]":"[","[":"]","{":"}","}":"{"},this.$findOpeningBracket=function(gi,di,li){var ci=this.$brackets[gi],pi=1,bi=new ui(this,di.row,di.column),vi=bi.getCurrentToken();if(vi||(vi=bi.stepForward()),!!vi){li||(li=new RegExp("(\\.?"+vi.type.replace(".","\\.").replace("rparen",".paren").replace(/\b(?:end)\b/,"(?:start|begin|end)")+")+"));for(var Ai=di.column-bi.getCurrentTokenColumn()-2,Li=vi.value;;){for(;Ai>=0;){var Bi=Li.charAt(Ai);if(Bi==ci){if(pi-=1,pi==0)return{row:bi.getCurrentTokenRow(),column:Ai+bi.getCurrentTokenColumn()}}else Bi==gi&&(pi+=1);Ai-=1}do vi=bi.stepBackward();while(vi&&!li.test(vi.type));if(vi==null)break;Li=vi.value,Ai=Li.length-1}return null}},this.$findClosingBracket=function(gi,di,li){var ci=this.$brackets[gi],pi=1,bi=new ui(this,di.row,di.column),vi=bi.getCurrentToken();if(vi||(vi=bi.stepForward()),!!vi){li||(li=new RegExp("(\\.?"+vi.type.replace(".","\\.").replace("lparen",".paren").replace(/\b(?:start|begin)\b/,"(?:start|begin|end)")+")+"));for(var Ai=di.column-bi.getCurrentTokenColumn();;){for(var Li=vi.value,Bi=Li.length;Aiqi&&(this.$docRowCache.splice(qi,Ni),this.$screenRowCache.splice(qi,Ni))},this.$getRowCacheIndex=function(Di,Ni){for(var qi=0,Ji=Di.length-1;qi<=Ji;){var sn=qi+Ji>>1,en=Di[sn];if(Ni>en)qi=sn+1;else if(Ni=Ni));en++);return Ji=qi[en],Ji?(Ji.index=en,Ji.start=sn-Ji.value.length,Ji):null},this.setUndoManager=function(Di){if(this.$undoManager=Di,this.$deltas=[],this.$deltasDoc=[],this.$deltasFold=[],this.$informUndoManager&&this.$informUndoManager.cancel(),Di){var Ni=this;this.$syncInformUndoManager=function(){Ni.$informUndoManager.cancel(),Ni.$deltasFold.length&&(Ni.$deltas.push({group:"fold",deltas:Ni.$deltasFold}),Ni.$deltasFold=[]),Ni.$deltasDoc.length&&(Ni.$deltas.push({group:"doc",deltas:Ni.$deltasDoc}),Ni.$deltasDoc=[]),Ni.$deltas.length>0&&Di.execute({action:"aceupdate",args:[Ni.$deltas,Ni],merge:Ni.mergeUndoDeltas}),Ni.mergeUndoDeltas=!1,Ni.$deltas=[]},this.$informUndoManager=fi.delayedCall(this.$syncInformUndoManager)}},this.markUndoGroup=function(){this.$syncInformUndoManager&&this.$syncInformUndoManager()},this.$defaultUndoManager={undo:function(){},redo:function(){},reset:function(){}},this.getUndoManager=function(){return this.$undoManager||this.$defaultUndoManager},this.getTabString=function(){return this.getUseSoftTabs()?fi.stringRepeat(" ",this.getTabSize()):" "},this.setUseSoftTabs=function(Di){this.setOption("useSoftTabs",Di)},this.getUseSoftTabs=function(){return this.$useSoftTabs&&!this.$mode.$indentWithTabs},this.setTabSize=function(Di){this.setOption("tabSize",Di)},this.getTabSize=function(){return this.$tabSize},this.isTabStop=function(Di){return this.$useSoftTabs&&Di.column%this.$tabSize===0},this.setNavigateWithinSoftTabs=function(Di){this.setOption("navigateWithinSoftTabs",Di)},this.getNavigateWithinSoftTabs=function(){return this.$navigateWithinSoftTabs},this.$overwrite=!1,this.setOverwrite=function(Di){this.setOption("overwrite",Di)},this.getOverwrite=function(){return this.$overwrite},this.toggleOverwrite=function(){this.setOverwrite(!this.$overwrite)},this.addGutterDecoration=function(Di,Ni){this.$decorations[Di]||(this.$decorations[Di]=""),this.$decorations[Di]+=" "+Ni,this._signal("changeBreakpoint",{})},this.removeGutterDecoration=function(Di,Ni){this.$decorations[Di]=(this.$decorations[Di]||"").replace(" "+Ni,""),this._signal("changeBreakpoint",{})},this.getBreakpoints=function(){return this.$breakpoints},this.setBreakpoints=function(Di){this.$breakpoints=[];for(var Ni=0;Ni0&&(Ji=!!qi.charAt(Ni-1).match(this.tokenRe)),Ji||(Ji=!!qi.charAt(Ni).match(this.tokenRe)),Ji)var sn=this.tokenRe;else if(/^\s+$/.test(qi.slice(Ni-1,Ni+1)))var sn=/\s/;else var sn=this.nonTokenRe;var en=Ni;if(en>0){do en--;while(en>=0&&qi.charAt(en).match(sn));en++}for(var rn=Ni;rnDi&&(Di=Ni.screenWidth)}),this.lineWidgetWidth=Di},this.$computeWidth=function(Di){if(this.$modified||Di){if(this.$modified=!1,this.$useWrapMode)return this.screenWidth=this.$wrapLimit;for(var Ni=this.doc.getAllLines(),qi=this.$rowLengthCache,Ji=0,sn=0,en=this.$foldData[sn],rn=en?en.start.row:1/0,fn=Ni.length,vn=0;vnrn){if(vn=en.end.row+1,vn>=fn)break;en=this.$foldData[sn++],rn=en?en.start.row:1/0}qi[vn]==null&&(qi[vn]=this.$getStringScreenWidth(Ni[vn])[0]),qi[vn]>Ji&&(Ji=qi[vn])}this.screenWidth=Ji}},this.getLine=function(Di){return this.doc.getLine(Di)},this.getLines=function(Di,Ni){return this.doc.getLines(Di,Ni)},this.getLength=function(){return this.doc.getLength()},this.getTextRange=function(Di){return this.doc.getTextRange(Di||this.selection.getRange())},this.insert=function(Di,Ni){return this.doc.insert(Di,Ni)},this.remove=function(Di){return this.doc.remove(Di)},this.removeFullLines=function(Di,Ni){return this.doc.removeFullLines(Di,Ni)},this.undoChanges=function(Di,Ni){if(Di.length){this.$fromUndo=!0;for(var qi=null,Ji=Di.length-1;Ji!=-1;Ji--){var sn=Di[Ji];sn.group=="doc"?(this.doc.revertDeltas(sn.deltas),qi=this.$getUndoSelection(sn.deltas,!0,qi)):sn.deltas.forEach(function(en){this.addFolds(en.folds)},this)}return this.$fromUndo=!1,qi&&this.$undoSelect&&!Ni&&this.selection.setSelectionRange(qi),qi}},this.redoChanges=function(Di,Ni){if(Di.length){this.$fromUndo=!0;for(var qi=null,Ji=0;JiDi.end.column&&(en.start.column+=fn),en.end.row==Di.end.row&&en.end.column>Di.end.column&&(en.end.column+=fn)),rn&&en.start.row>=Di.end.row&&(en.start.row+=rn,en.end.row+=rn)}if(en.end=this.insert(en.start,Ji),sn.length){var vn=Di.start,bn=en.start,rn=bn.row-vn.row,fn=bn.column-vn.column;this.addFolds(sn.map(function(dn){return dn=dn.clone(),dn.start.row==vn.row&&(dn.start.column+=fn),dn.end.row==vn.row&&(dn.end.column+=fn),dn.start.row+=rn,dn.end.row+=rn,dn}))}return en},this.indentRows=function(Di,Ni,qi){qi=qi.replace(/\t/g,this.getTabString());for(var Ji=Di;Ji<=Ni;Ji++)this.doc.insertInLine({row:Ji,column:0},qi)},this.outdentRows=function(Di){for(var Ni=Di.collapseRows(),qi=new pi(0,0,0,0),Ji=this.getTabSize(),sn=Ni.start.row;sn<=Ni.end.row;++sn){var en=this.getLine(sn);qi.start.row=sn,qi.end.row=sn;for(var rn=0;rn0){var Ji=this.getRowFoldEnd(Ni+qi);if(Ji>this.doc.getLength()-1)return 0;var sn=Ji-Ni}else{Di=this.$clipRowToDocument(Di),Ni=this.$clipRowToDocument(Ni);var sn=Ni-Di+1}var en=new pi(Di,0,Ni,Number.MAX_VALUE),rn=this.getFoldsInRange(en).map(function(vn){return vn=vn.clone(),vn.start.row+=sn,vn.end.row+=sn,vn}),fn=qi==0?this.doc.getLines(Di,Ni):this.doc.removeFullLines(Di,Ni);return this.doc.insertFullLines(Di+sn,fn),rn.length&&this.addFolds(rn),sn},this.moveLinesUp=function(Di,Ni){return this.$moveLines(Di,Ni,-1)},this.moveLinesDown=function(Di,Ni){return this.$moveLines(Di,Ni,1)},this.duplicateLines=function(Di,Ni){return this.$moveLines(Di,Ni,0)},this.$clipRowToDocument=function(Di){return Math.max(0,Math.min(Di,this.doc.getLength()-1))},this.$clipColumnToRow=function(Di,Ni){return Ni<0?0:Math.min(this.doc.getLine(Di).length,Ni)},this.$clipPositionToDocument=function(Di,Ni){if(Ni=Math.max(0,Ni),Di<0)Di=0,Ni=0;else{var qi=this.doc.getLength();Di>=qi?(Di=qi-1,Ni=this.doc.getLine(qi-1).length):Ni=Math.min(this.doc.getLine(Di).length,Ni)}return{row:Di,column:Ni}},this.$clipRangeToDocument=function(Di){Di.start.row<0?(Di.start.row=0,Di.start.column=0):Di.start.column=this.$clipColumnToRow(Di.start.row,Di.start.column);var Ni=this.doc.getLength()-1;return Di.end.row>Ni?(Di.end.row=Ni,Di.end.column=this.doc.getLine(Ni).length):Di.end.column=this.$clipColumnToRow(Di.end.row,Di.end.column),Di},this.$wrapLimit=80,this.$useWrapMode=!1,this.$wrapLimitRange={min:null,max:null},this.setUseWrapMode=function(Di){if(Di!=this.$useWrapMode){if(this.$useWrapMode=Di,this.$modified=!0,this.$resetRowCache(0),Di){var Ni=this.getLength();this.$wrapData=Array(Ni),this.$updateWrapData(0,Ni-1)}this._signal("changeWrapMode")}},this.getUseWrapMode=function(){return this.$useWrapMode},this.setWrapLimitRange=function(Di,Ni){(this.$wrapLimitRange.min!==Di||this.$wrapLimitRange.max!==Ni)&&(this.$wrapLimitRange={min:Di,max:Ni},this.$modified=!0,this.$bidiHandler.markAsDirty(),this.$useWrapMode&&this._signal("changeWrapMode"))},this.adjustWrapLimit=function(Di,Ni){var qi=this.$wrapLimitRange;qi.max<0&&(qi={min:Ni,max:Ni});var Ji=this.$constrainWrapLimit(Di,qi.min,qi.max);return Ji!=this.$wrapLimit&&Ji>1?(this.$wrapLimit=Ji,this.$modified=!0,this.$useWrapMode&&(this.$updateWrapData(0,this.getLength()-1),this.$resetRowCache(0),this._signal("changeWrapLimit")),!0):!1},this.$constrainWrapLimit=function(Di,Ni,qi){return Ni&&(Di=Math.max(Ni,Di)),qi&&(Di=Math.min(qi,Di)),Di},this.getWrapLimit=function(){return this.$wrapLimit},this.setWrapLimit=function(Di){this.setWrapLimitRange(Di,Di)},this.getWrapLimitRange=function(){return{min:this.$wrapLimitRange.min,max:this.$wrapLimitRange.max}},this.$updateInternalDataOnChange=function(Di){var Ni=this.$useWrapMode,qi=Di.action,Ji=Di.start,sn=Di.end,en=Ji.row,rn=sn.row,fn=rn-en,vn=null;if(this.$updating=!0,fn!=0)if(qi==="remove"){this[Ni?"$wrapData":"$rowLengthCache"].splice(en,fn);var bn=this.$foldData;vn=this.getFoldsInRange(Di),this.removeFolds(vn);var An=this.getFoldLine(sn.row),_n=0;if(An){An.addRemoveChars(sn.row,sn.column,Ji.column-sn.column),An.shiftRow(-fn);var dn=this.getFoldLine(en);dn&&dn!==An&&(dn.merge(An),An=dn),_n=bn.indexOf(An)+1}for(_n;_n=sn.row&&An.shiftRow(-fn)}rn=en}else{var tn=Array(fn);tn.unshift(en,0);var cn=Ni?this.$wrapData:this.$rowLengthCache;cn.splice.apply(cn,tn);var bn=this.$foldData,An=this.getFoldLine(en),_n=0;if(An){var un=An.range.compareInside(Ji.row,Ji.column);un==0?(An=An.split(Ji.row,Ji.column),An&&(An.shiftRow(fn),An.addRemoveChars(rn,0,sn.column-Ji.column))):un==-1&&(An.addRemoveChars(en,0,sn.column-Ji.column),An.shiftRow(fn)),_n=bn.indexOf(An)+1}for(_n;_n=en&&An.shiftRow(fn)}}else{fn=Math.abs(Di.start.column-Di.end.column),qi==="remove"&&(vn=this.getFoldsInRange(Di),this.removeFolds(vn),fn=-fn);var An=this.getFoldLine(en);An&&An.addRemoveChars(en,Ji.column,fn)}return Ni&&this.$wrapData.length!=this.doc.getLength()&&console.error("doc.getLength() and $wrapData.length have to be the same!"),this.$updating=!1,Ni?this.$updateWrapData(en,rn):this.$updateRowLengthCache(en,rn),vn},this.$updateRowLengthCache=function(Di,Ni,qi){this.$rowLengthCache[Di]=null,this.$rowLengthCache[Ni]=null},this.$updateWrapData=function(Di,Ni){var qi=this.doc.getAllLines(),Ji=this.getTabSize(),sn=this.$wrapData,en=this.$wrapLimit,rn,fn,vn=Di;for(Ni=Math.min(Ni,qi.length-1);vn<=Ni;)fn=this.getFoldLine(vn,fn),fn?(rn=[],fn.walk((function(bn,An,_n,dn){var tn;if(bn!=null){tn=this.$getDisplayTokens(bn,rn.length),tn[0]=zi;for(var cn=1;cnNi-dn;){var tn=en+Ni-dn;if(Di[tn-1]>=ki&&Di[tn]>=ki){_n(tn);continue}if(Di[tn]==zi||Di[tn]==Ei){for(tn;tn!=en-1&&Di[tn]!=zi;tn--);if(tn>en){_n(tn);continue}for(tn=en+Ni,tn;tn>2)),en-1);tn>cn&&Di[tn]cn&&Di[tn]cn&&Di[tn]==Ii;)tn--}else for(;tn>cn&&Di[tn]cn){_n(++tn);continue}tn=en+Ni,Di[tn]==Ri&&tn--,_n(tn-dn)}return Ji},this.$getDisplayTokens=function(Di,Ni){var qi=[],Ji;Ni=Ni||0;for(var sn=0;sn39&&en<48||en>57&&en<64?qi.push(Ii):en>=4352&&ji(en)?qi.push(Bi,Ri):qi.push(Bi)}return qi},this.$getStringScreenWidth=function(Di,Ni,qi){if(Ni==0)return[0,0];Ni==null&&(Ni=1/0),qi=qi||0;var Ji,sn;for(sn=0;sn=4352&&ji(Ji)?qi+=2:qi+=1,!(qi>Ni));sn++);return[qi,sn]},this.lineWidgets=null,this.getRowLength=function(Di){if(this.lineWidgets)var Ni=this.lineWidgets[Di]&&this.lineWidgets[Di].rowCount||0;else Ni=0;return!this.$useWrapMode||!this.$wrapData[Di]?1+Ni:this.$wrapData[Di].length+1+Ni},this.getRowLineCount=function(Di){return!this.$useWrapMode||!this.$wrapData[Di]?1:this.$wrapData[Di].length+1},this.getRowWrapIndent=function(Di){if(this.$useWrapMode){var Ni=this.screenToDocumentPosition(Di,Number.MAX_VALUE),qi=this.$wrapData[Ni.row];return qi.length&&qi[0]=0)var fn=bn[An],sn=this.$docRowCache[An],dn=Di>bn[_n-1];else var dn=!_n;for(var tn=this.getLength()-1,cn=this.getNextFoldLine(sn),un=cn?cn.start.row:1/0;fn<=Di&&(vn=this.getRowLength(sn),!(fn+vn>Di||sn>=tn));)fn+=vn,sn++,sn>un&&(sn=cn.end.row+1,cn=this.getNextFoldLine(sn,cn),un=cn?cn.start.row:1/0),dn&&(this.$docRowCache.push(sn),this.$screenRowCache.push(fn));if(cn&&cn.start.row<=sn)Ji=this.getFoldDisplayLine(cn),sn=cn.start.row;else{if(fn+vn<=Di||sn>tn)return{row:tn,column:this.getLine(tn).length};Ji=this.getLine(sn),cn=null}var gn=0,wn=Math.floor(Di-fn);if(this.$useWrapMode){var Sn=this.$wrapData[sn];Sn&&(rn=Sn[wn],wn>0&&Sn.length&&(gn=Sn.indent,en=Sn[wn-1]||Sn[Sn.length-1],Ji=Ji.substring(en)))}return qi!==void 0&&this.$bidiHandler.isBidiRow(fn+wn,sn,wn)&&(Ni=this.$bidiHandler.offsetToCol(qi)),en+=this.$getStringScreenWidth(Ji,Ni-gn)[1],this.$useWrapMode&&en>=rn&&(en=rn-1),cn?cn.idxToPosition(en):{row:sn,column:en}},this.documentToScreenPosition=function(Di,Ni){if(typeof Ni>"u")var qi=this.$clipPositionToDocument(Di.row,Di.column);else qi=this.$clipPositionToDocument(Di,Ni);Di=qi.row,Ni=qi.column;var Ji=0,sn=null,en=null;en=this.getFoldAt(Di,Ni,1),en&&(Di=en.start.row,Ni=en.start.column);var rn,fn=0,vn=this.$docRowCache,bn=this.$getRowCacheIndex(vn,Di),An=vn.length;if(An&&bn>=0)var fn=vn[bn],Ji=this.$screenRowCache[bn],_n=Di>vn[An-1];else var _n=!An;for(var dn=this.getNextFoldLine(fn),tn=dn?dn.start.row:1/0;fn=tn){if(rn=dn.end.row+1,rn>Di)break;dn=this.getNextFoldLine(rn,dn),tn=dn?dn.start.row:1/0}else rn=fn+1;Ji+=this.getRowLength(fn),fn=rn,_n&&(this.$docRowCache.push(fn),this.$screenRowCache.push(Ji))}var cn="";dn&&fn>=tn?(cn=this.getFoldDisplayLine(dn,Di,Ni),sn=dn.start.row):(cn=this.getLine(Di).substring(0,Ni),sn=Di);var un=0;if(this.$useWrapMode){var gn=this.$wrapData[sn];if(gn){for(var wn=0;cn.length>=gn[wn];)Ji++,wn++;cn=cn.substring(gn[wn-1]||0,cn.length),un=wn>0?gn.indent:0}}return{row:Ji,column:un+this.$getStringScreenWidth(cn)[0]}},this.documentToScreenColumn=function(Di,Ni){return this.documentToScreenPosition(Di,Ni).column},this.documentToScreenRow=function(Di,Ni){return this.documentToScreenPosition(Di,Ni).row},this.getScreenLength=function(){var Di=0,Ni=null;if(this.$useWrapMode)for(var sn=this.$wrapData.length,en=0,Ji=0,Ni=this.$foldData[Ji++],rn=Ni?Ni.start.row:1/0;enrn&&(en=Ni.end.row+1,Ni=this.$foldData[Ji++],rn=Ni?Ni.start.row:1/0)}else{Di=this.getLength();for(var qi=this.$foldData,Ji=0;Jiqi));en++);return[Ji,en]})},this.destroy=function(){this.bgTokenizer&&(this.bgTokenizer.setDocument(null),this.bgTokenizer=null),this.$stopWorker()},this.isFullWidth=ji;function ji(Di){return Di<4352?!1:Di>=4352&&Di<=4447||Di>=4515&&Di<=4519||Di>=4602&&Di<=4607||Di>=9001&&Di<=9002||Di>=11904&&Di<=11929||Di>=11931&&Di<=12019||Di>=12032&&Di<=12245||Di>=12272&&Di<=12283||Di>=12288&&Di<=12350||Di>=12353&&Di<=12438||Di>=12441&&Di<=12543||Di>=12549&&Di<=12589||Di>=12593&&Di<=12686||Di>=12688&&Di<=12730||Di>=12736&&Di<=12771||Di>=12784&&Di<=12830||Di>=12832&&Di<=12871||Di>=12880&&Di<=13054||Di>=13056&&Di<=19903||Di>=19968&&Di<=42124||Di>=42128&&Di<=42182||Di>=43360&&Di<=43388||Di>=44032&&Di<=55203||Di>=55216&&Di<=55238||Di>=55243&&Di<=55291||Di>=63744&&Di<=64255||Di>=65040&&Di<=65049||Di>=65072&&Di<=65106||Di>=65108&&Di<=65126||Di>=65128&&Di<=65131||Di>=65281&&Di<=65376||Di>=65504&&Di<=65510}}).call(Li.prototype),ti("./edit_session/folding").Folding.call(Li.prototype),ti("./edit_session/bracket_match").BracketMatch.call(Li.prototype),gi.defineOptions(Li.prototype,"session",{wrap:{set:function(Bi){if(!Bi||Bi=="off"?Bi=!1:Bi=="free"?Bi=!0:Bi=="printMargin"?Bi=-1:typeof Bi=="string"&&(Bi=parseInt(Bi,10)||!1),this.$wrap!=Bi)if(this.$wrap=Bi,!Bi)this.setUseWrapMode(!1);else{var Ri=typeof Bi=="number"?Bi:null;this.setWrapLimitRange(Ri,Ri),this.setUseWrapMode(!0)}},get:function(){return this.getUseWrapMode()?this.$wrap==-1?"printMargin":this.getWrapLimitRange().min?this.$wrap:"free":"off"},handlesSet:!0},wrapMethod:{set:function(Bi){Bi=Bi=="auto"?this.$mode.type!="text":Bi!="text",Bi!=this.$wrapAsCode&&(this.$wrapAsCode=Bi,this.$useWrapMode&&(this.$modified=!0,this.$resetRowCache(0),this.$updateWrapData(0,this.getLength()-1)))},initialValue:"auto"},indentedSoftWrap:{initialValue:!0},firstLineNumber:{set:function(){this._signal("changeBreakpoint")},initialValue:1},useWorker:{set:function(Bi){this.$useWorker=Bi,this.$stopWorker(),Bi&&this.$startWorker()},initialValue:!0},useSoftTabs:{initialValue:!0},tabSize:{set:function(Bi){isNaN(Bi)||this.$tabSize===Bi||(this.$modified=!0,this.$rowLengthCache=[],this.$tabSize=Bi,this._signal("changeTabSize"))},initialValue:4,handlesSet:!0},navigateWithinSoftTabs:{initialValue:!1},overwrite:{set:function(Bi){this._signal("changeOverwrite")},initialValue:!1},newLineMode:{set:function(Bi){this.doc.setNewLineMode(Bi)},get:function(){return this.doc.getNewLineMode()},handlesSet:!0},mode:{set:function(Bi){this.setMode(Bi)},get:function(){return this.$modeId}}}),ni.EditSession=Li});ace.define("ace/search",["require","exports","module","ace/lib/lang","ace/lib/oop","ace/range"],function(ti,ni,oi){var ui=ti("./lib/lang"),fi=ti("./lib/oop"),mi=ti("./range").Range,gi=function(){this.$options={}};(function(){this.set=function(li){return fi.mixin(this.$options,li),this},this.getOptions=function(){return ui.copyObject(this.$options)},this.setOptions=function(li){this.$options=li},this.find=function(li){var ci=this.$options,pi=this.$matchIterator(li,ci);if(!pi)return!1;var bi=null;return pi.forEach(function(vi,Ai,Li,Bi){return bi=new mi(vi,Ai,Li,Bi),Ai==Bi&&ci.start&&ci.start.start&&ci.skipCurrent!=!1&&bi.isEqual(ci.start)?(bi=null,!1):!0}),bi},this.findAll=function(li){var ci=this.$options;if(!ci.needle)return[];this.$assembleRegExp(ci);var pi=ci.range,bi=pi?li.getLines(pi.start.row,pi.end.row):li.doc.getAllLines(),vi=[],Ai=ci.re;if(ci.$isMultiLine){var Li=Ai.length,Bi=bi.length-Li,Ri;e:for(var zi=Ai.offset||0;zi<=Bi;zi++){for(var Ei=0;EiTi||(vi.push(Ri=new mi(zi,Ti,zi+Li-1,Pi)),Li>2&&(zi=zi+Li-2))}}else for(var ji=0;jiJi&&vi[Ei].end.row==pi.end.row;)Ei--;for(vi=vi.slice(ji,Ei+1),ji=0,Ei=vi.length;ji=Bi;Ti--)if(Ii(Ti,Number.MAX_VALUE,ki))return;if(ci.wrap!=!1){for(Ti=Ri,Bi=Li.row;Ti>=Bi;Ti--)if(Ii(Ti,Number.MAX_VALUE,ki))return}}};else var zi=function(Ti){var Pi=Li.row;if(!Ii(Pi,Li.column,Ti)){for(Pi=Pi+1;Pi<=Ri;Pi++)if(Ii(Pi,0,Ti))return;if(ci.wrap!=!1){for(Pi=Bi,Ri=Li.row;Pi<=Ri;Pi++)if(Ii(Pi,0,Ti))return}}};if(ci.$isMultiLine)var Ei=pi.length,Ii=function(ki,Ti,Pi){var ji=bi?ki-Ei+1:ki;if(!(ji<0)){var Di=li.getLine(ji),Ni=Di.search(pi[0]);if(!(!bi&&NiTi)&&Pi(ji,Ni,ji+Ei-1,Ji))return!0}}};else if(bi)var Ii=function(Ti,Pi,ji){var Di=li.getLine(Ti),Ni=[],qi,Ji=0;for(pi.lastIndex=0;qi=pi.exec(Di);){var sn=qi[0].length;if(Ji=qi.index,!sn){if(Ji>=Di.length)break;pi.lastIndex=Ji+=1}if(qi.index+sn>Pi)break;Ni.push(qi.index,sn)}for(var en=Ni.length-1;en>=0;en-=2){var rn=Ni[en-1],sn=Ni[en];if(ji(Ti,rn,Ti,rn+sn))return!0}};else var Ii=function(Ti,Pi,ji){var Di=li.getLine(Ti),Ni,qi=Pi;for(pi.lastIndex=Pi;Ni=pi.exec(Di);){var Ji=Ni[0].length;if(qi=Ni.index,ji(Ti,qi,Ti,qi+Ji))return!0;if(!Ji&&(pi.lastIndex=qi+=1,qi>=Di.length))return!1}};return{forEach:zi}}}).call(gi.prototype);function di(li,ci){function pi(bi){return/\w/.test(bi)||ci.regExp?"\\b":""}return pi(li[0])+li+pi(li[li.length-1])}ni.Search=gi});ace.define("ace/keyboard/hash_handler",["require","exports","module","ace/lib/keys","ace/lib/useragent"],function(ti,ni,oi){var ui=ti("../lib/keys"),fi=ti("../lib/useragent"),mi=ui.KEY_MODS;function gi(li,ci){this.platform=ci||(fi.isMac?"mac":"win"),this.commands={},this.commandKeyBinding={},this.addCommands(li),this.$singleCommand=!0}function di(li,ci){gi.call(this,li,ci),this.$singleCommand=!1}di.prototype=gi.prototype,(function(){this.addCommand=function(ci){this.commands[ci.name]&&this.removeCommand(ci),this.commands[ci.name]=ci,ci.bindKey&&this._buildKeyHash(ci)},this.removeCommand=function(ci,pi){var bi=ci&&(typeof ci=="string"?ci:ci.name);ci=this.commands[bi],pi||delete this.commands[bi];var vi=this.commandKeyBinding;for(var Ai in vi){var Li=vi[Ai];if(Li==ci)delete vi[Ai];else if(Array.isArray(Li)){var Bi=Li.indexOf(ci);Bi!=-1&&(Li.splice(Bi,1),Li.length==1&&(vi[Ai]=Li[0]))}}},this.bindKey=function(ci,pi,bi){if(typeof ci=="object"&&ci&&(bi==null&&(bi=ci.position),ci=ci[this.platform]),!!ci){if(typeof pi=="function")return this.addCommand({exec:pi,bindKey:ci,name:pi.name||ci});ci.split("|").forEach(function(vi){var Ai="";if(vi.indexOf(" ")!=-1){var Li=vi.split(/\s+/);vi=Li.pop(),Li.forEach(function(zi){var Ei=this.parseKeys(zi),Ii=mi[Ei.hashId]+Ei.key;Ai+=(Ai?" ":"")+Ii,this._addCommandToBinding(Ai,"chainKeys")},this),Ai+=" "}var Bi=this.parseKeys(vi),Ri=mi[Bi.hashId]+Bi.key;this._addCommandToBinding(Ai+Ri,pi,bi)},this)}};function li(ci){return typeof ci=="object"&&ci.bindKey&&ci.bindKey.position||(ci.isDefault?-100:0)}this._addCommandToBinding=function(ci,pi,bi){var vi=this.commandKeyBinding,Ai;if(!pi)delete vi[ci];else if(!vi[ci]||this.$singleCommand)vi[ci]=pi;else{Array.isArray(vi[ci])?(Ai=vi[ci].indexOf(pi))!=-1&&vi[ci].splice(Ai,1):vi[ci]=[vi[ci]],typeof bi!="number"&&(bi=li(pi));var Li=vi[ci];for(Ai=0;Aibi)break}Li.splice(Ai,0,pi)}},this.addCommands=function(ci){ci&&Object.keys(ci).forEach(function(pi){var bi=ci[pi];if(bi){if(typeof bi=="string")return this.bindKey(bi,pi);typeof bi=="function"&&(bi={exec:bi}),typeof bi=="object"&&(bi.name||(bi.name=pi),this.addCommand(bi))}},this)},this.removeCommands=function(ci){Object.keys(ci).forEach(function(pi){this.removeCommand(ci[pi])},this)},this.bindKeys=function(ci){Object.keys(ci).forEach(function(pi){this.bindKey(pi,ci[pi])},this)},this._buildKeyHash=function(ci){this.bindKey(ci.bindKey,ci)},this.parseKeys=function(ci){var pi=ci.toLowerCase().split(/[\-\+]([\-\+])?/).filter(function(Ri){return Ri}),bi=pi.pop(),vi=ui[bi];if(ui.FUNCTION_KEYS[vi])bi=ui.FUNCTION_KEYS[vi].toLowerCase();else if(pi.length){if(pi.length==1&&pi[0]=="shift")return{key:bi.toUpperCase(),hashId:-1}}else return{key:bi,hashId:-1};for(var Ai=0,Li=pi.length;Li--;){var Bi=ui.KEY_MODS[pi[Li]];if(Bi==null)return typeof console<"u"&&console.error("invalid modifier "+pi[Li]+" in "+ci),!1;Ai|=Bi}return{key:bi,hashId:Ai}},this.findKeyCommand=function(pi,bi){var vi=mi[pi]+bi;return this.commandKeyBinding[vi]},this.handleKeyboard=function(ci,pi,bi,vi){if(!(vi<0)){var Ai=mi[pi]+bi,Li=this.commandKeyBinding[Ai];return ci.$keyChain&&(ci.$keyChain+=" "+Ai,Li=this.commandKeyBinding[ci.$keyChain]||Li),Li&&(Li=="chainKeys"||Li[Li.length-1]=="chainKeys")?(ci.$keyChain=ci.$keyChain||Ai,{command:"null"}):(ci.$keyChain&&((!pi||pi==4)&&bi.length==1?ci.$keyChain=ci.$keyChain.slice(0,-Ai.length-1):(pi==-1||vi>0)&&(ci.$keyChain="")),{command:Li})}},this.getStatusText=function(ci,pi){return pi.$keyChain||""}}).call(gi.prototype),ni.HashHandler=gi,ni.MultiHashHandler=di});ace.define("ace/commands/command_manager",["require","exports","module","ace/lib/oop","ace/keyboard/hash_handler","ace/lib/event_emitter"],function(ti,ni,oi){var ui=ti("../lib/oop"),fi=ti("../keyboard/hash_handler").MultiHashHandler,mi=ti("../lib/event_emitter").EventEmitter,gi=function(di,li){fi.call(this,li,di),this.byName=this.commands,this.setDefaultHandler("exec",function(ci){return ci.command.exec(ci.editor,ci.args||{})})};ui.inherits(gi,fi),(function(){ui.implement(this,mi),this.exec=function(di,li,ci){if(Array.isArray(di)){for(var pi=di.length;pi--;)if(this.exec(di[pi],li,ci))return!0;return!1}if(typeof di=="string"&&(di=this.commands[di]),!di||li&&li.$readOnly&&!di.readOnly||di.isAvailable&&!di.isAvailable(li))return!1;var bi={editor:li,command:di,args:ci};return bi.returnValue=this._emit("exec",bi),this._signal("afterExec",bi),bi.returnValue!==!1},this.toggleRecording=function(di){if(!this.$inReplay)return di&&di._emit("changeStatus"),this.recording?(this.macro.pop(),this.removeEventListener("exec",this.$addCommandToMacro),this.macro.length||(this.macro=this.oldMacro),this.recording=!1):(this.$addCommandToMacro||(this.$addCommandToMacro=(function(li){this.macro.push([li.command,li.args])}).bind(this)),this.oldMacro=this.macro,this.macro=[],this.on("exec",this.$addCommandToMacro),this.recording=!0)},this.replay=function(di){if(!(this.$inReplay||!this.macro)){if(this.recording)return this.toggleRecording(di);try{this.$inReplay=!0,this.macro.forEach(function(li){typeof li=="string"?this.exec(li,di):this.exec(li[0],di,li[1])},this)}finally{this.$inReplay=!1}}},this.trimMacro=function(di){return di.map(function(li){return typeof li[0]!="string"&&(li[0]=li[0].name),li[1]||(li=li[0]),li})}}).call(gi.prototype),ni.CommandManager=gi});ace.define("ace/commands/default_commands",["require","exports","module","ace/lib/lang","ace/config","ace/range"],function(ti,ni,oi){var ui=ti("../lib/lang"),fi=ti("../config"),mi=ti("../range").Range;function gi(di,li){return{win:di,mac:li}}ni.commands=[{name:"showSettingsMenu",bindKey:gi("Ctrl-,","Command-,"),exec:function(di){fi.loadModule("ace/ext/settings_menu",function(li){li.init(di),di.showSettingsMenu()})},readOnly:!0},{name:"goToNextError",bindKey:gi("Alt-E","F4"),exec:function(di){fi.loadModule("ace/ext/error_marker",function(li){li.showErrorMarker(di,1)})},scrollIntoView:"animate",readOnly:!0},{name:"goToPreviousError",bindKey:gi("Alt-Shift-E","Shift-F4"),exec:function(di){fi.loadModule("ace/ext/error_marker",function(li){li.showErrorMarker(di,-1)})},scrollIntoView:"animate",readOnly:!0},{name:"selectall",bindKey:gi("Ctrl-A","Command-A"),exec:function(di){di.selectAll()},readOnly:!0},{name:"centerselection",bindKey:gi(null,"Ctrl-L"),exec:function(di){di.centerSelection()},readOnly:!0},{name:"gotoline",bindKey:gi("Ctrl-L","Command-L"),exec:function(di){var li=parseInt(prompt("Enter line number:"),10);isNaN(li)||di.gotoLine(li)},readOnly:!0},{name:"fold",bindKey:gi("Alt-L|Ctrl-F1","Command-Alt-L|Command-F1"),exec:function(di){di.session.toggleFold(!1)},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"unfold",bindKey:gi("Alt-Shift-L|Ctrl-Shift-F1","Command-Alt-Shift-L|Command-Shift-F1"),exec:function(di){di.session.toggleFold(!0)},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"toggleFoldWidget",bindKey:gi("F2","F2"),exec:function(di){di.session.toggleFoldWidget()},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"toggleParentFoldWidget",bindKey:gi("Alt-F2","Alt-F2"),exec:function(di){di.session.toggleFoldWidget(!0)},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"foldall",bindKey:gi(null,"Ctrl-Command-Option-0"),exec:function(di){di.session.foldAll()},scrollIntoView:"center",readOnly:!0},{name:"foldOther",bindKey:gi("Alt-0","Command-Option-0"),exec:function(di){di.session.foldAll(),di.session.unfold(di.selection.getAllRanges())},scrollIntoView:"center",readOnly:!0},{name:"unfoldall",bindKey:gi("Alt-Shift-0","Command-Option-Shift-0"),exec:function(di){di.session.unfold()},scrollIntoView:"center",readOnly:!0},{name:"findnext",bindKey:gi("Ctrl-K","Command-G"),exec:function(di){di.findNext()},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"findprevious",bindKey:gi("Ctrl-Shift-K","Command-Shift-G"),exec:function(di){di.findPrevious()},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"selectOrFindNext",bindKey:gi("Alt-K","Ctrl-G"),exec:function(di){di.selection.isEmpty()?di.selection.selectWord():di.findNext()},readOnly:!0},{name:"selectOrFindPrevious",bindKey:gi("Alt-Shift-K","Ctrl-Shift-G"),exec:function(di){di.selection.isEmpty()?di.selection.selectWord():di.findPrevious()},readOnly:!0},{name:"find",bindKey:gi("Ctrl-F","Command-F"),exec:function(di){fi.loadModule("ace/ext/searchbox",function(li){li.Search(di)})},readOnly:!0},{name:"overwrite",bindKey:"Insert",exec:function(di){di.toggleOverwrite()},readOnly:!0},{name:"selecttostart",bindKey:gi("Ctrl-Shift-Home","Command-Shift-Home|Command-Shift-Up"),exec:function(di){di.getSelection().selectFileStart()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"gotostart",bindKey:gi("Ctrl-Home","Command-Home|Command-Up"),exec:function(di){di.navigateFileStart()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"selectup",bindKey:gi("Shift-Up","Shift-Up|Ctrl-Shift-P"),exec:function(di){di.getSelection().selectUp()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"golineup",bindKey:gi("Up","Up|Ctrl-P"),exec:function(di,li){di.navigateUp(li.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selecttoend",bindKey:gi("Ctrl-Shift-End","Command-Shift-End|Command-Shift-Down"),exec:function(di){di.getSelection().selectFileEnd()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"gotoend",bindKey:gi("Ctrl-End","Command-End|Command-Down"),exec:function(di){di.navigateFileEnd()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"selectdown",bindKey:gi("Shift-Down","Shift-Down|Ctrl-Shift-N"),exec:function(di){di.getSelection().selectDown()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"golinedown",bindKey:gi("Down","Down|Ctrl-N"),exec:function(di,li){di.navigateDown(li.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectwordleft",bindKey:gi("Ctrl-Shift-Left","Option-Shift-Left"),exec:function(di){di.getSelection().selectWordLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotowordleft",bindKey:gi("Ctrl-Left","Option-Left"),exec:function(di){di.navigateWordLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selecttolinestart",bindKey:gi("Alt-Shift-Left","Command-Shift-Left|Ctrl-Shift-A"),exec:function(di){di.getSelection().selectLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotolinestart",bindKey:gi("Alt-Left|Home","Command-Left|Home|Ctrl-A"),exec:function(di){di.navigateLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectleft",bindKey:gi("Shift-Left","Shift-Left|Ctrl-Shift-B"),exec:function(di){di.getSelection().selectLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotoleft",bindKey:gi("Left","Left|Ctrl-B"),exec:function(di,li){di.navigateLeft(li.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectwordright",bindKey:gi("Ctrl-Shift-Right","Option-Shift-Right"),exec:function(di){di.getSelection().selectWordRight()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotowordright",bindKey:gi("Ctrl-Right","Option-Right"),exec:function(di){di.navigateWordRight()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selecttolineend",bindKey:gi("Alt-Shift-Right","Command-Shift-Right|Shift-End|Ctrl-Shift-E"),exec:function(di){di.getSelection().selectLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotolineend",bindKey:gi("Alt-Right|End","Command-Right|End|Ctrl-E"),exec:function(di){di.navigateLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectright",bindKey:gi("Shift-Right","Shift-Right"),exec:function(di){di.getSelection().selectRight()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotoright",bindKey:gi("Right","Right|Ctrl-F"),exec:function(di,li){di.navigateRight(li.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectpagedown",bindKey:"Shift-PageDown",exec:function(di){di.selectPageDown()},readOnly:!0},{name:"pagedown",bindKey:gi(null,"Option-PageDown"),exec:function(di){di.scrollPageDown()},readOnly:!0},{name:"gotopagedown",bindKey:gi("PageDown","PageDown|Ctrl-V"),exec:function(di){di.gotoPageDown()},readOnly:!0},{name:"selectpageup",bindKey:"Shift-PageUp",exec:function(di){di.selectPageUp()},readOnly:!0},{name:"pageup",bindKey:gi(null,"Option-PageUp"),exec:function(di){di.scrollPageUp()},readOnly:!0},{name:"gotopageup",bindKey:"PageUp",exec:function(di){di.gotoPageUp()},readOnly:!0},{name:"scrollup",bindKey:gi("Ctrl-Up",null),exec:function(di){di.renderer.scrollBy(0,-2*di.renderer.layerConfig.lineHeight)},readOnly:!0},{name:"scrolldown",bindKey:gi("Ctrl-Down",null),exec:function(di){di.renderer.scrollBy(0,2*di.renderer.layerConfig.lineHeight)},readOnly:!0},{name:"selectlinestart",bindKey:"Shift-Home",exec:function(di){di.getSelection().selectLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectlineend",bindKey:"Shift-End",exec:function(di){di.getSelection().selectLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"togglerecording",bindKey:gi("Ctrl-Alt-E","Command-Option-E"),exec:function(di){di.commands.toggleRecording(di)},readOnly:!0},{name:"replaymacro",bindKey:gi("Ctrl-Shift-E","Command-Shift-E"),exec:function(di){di.commands.replay(di)},readOnly:!0},{name:"jumptomatching",bindKey:gi("Ctrl-P","Ctrl-P"),exec:function(di){di.jumpToMatching()},multiSelectAction:"forEach",scrollIntoView:"animate",readOnly:!0},{name:"selecttomatching",bindKey:gi("Ctrl-Shift-P","Ctrl-Shift-P"),exec:function(di){di.jumpToMatching(!0)},multiSelectAction:"forEach",scrollIntoView:"animate",readOnly:!0},{name:"expandToMatching",bindKey:gi("Ctrl-Shift-M","Ctrl-Shift-M"),exec:function(di){di.jumpToMatching(!0,!0)},multiSelectAction:"forEach",scrollIntoView:"animate",readOnly:!0},{name:"passKeysToBrowser",bindKey:gi(null,null),exec:function(){},passEvent:!0,readOnly:!0},{name:"copy",exec:function(di){},readOnly:!0},{name:"cut",exec:function(di){var li=di.getSelectionRange();di._emit("cut",li),di.selection.isEmpty()||(di.session.remove(li),di.clearSelection())},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"paste",exec:function(di,li){di.$handlePaste(li)},scrollIntoView:"cursor"},{name:"removeline",bindKey:gi("Ctrl-D","Command-D"),exec:function(di){di.removeLines()},scrollIntoView:"cursor",multiSelectAction:"forEachLine"},{name:"duplicateSelection",bindKey:gi("Ctrl-Shift-D","Command-Shift-D"),exec:function(di){di.duplicateSelection()},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"sortlines",bindKey:gi("Ctrl-Alt-S","Command-Alt-S"),exec:function(di){di.sortLines()},scrollIntoView:"selection",multiSelectAction:"forEachLine"},{name:"togglecomment",bindKey:gi("Ctrl-/","Command-/"),exec:function(di){di.toggleCommentLines()},multiSelectAction:"forEachLine",scrollIntoView:"selectionPart"},{name:"toggleBlockComment",bindKey:gi("Ctrl-Shift-/","Command-Shift-/"),exec:function(di){di.toggleBlockComment()},multiSelectAction:"forEach",scrollIntoView:"selectionPart"},{name:"modifyNumberUp",bindKey:gi("Ctrl-Shift-Up","Alt-Shift-Up"),exec:function(di){di.modifyNumber(1)},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"modifyNumberDown",bindKey:gi("Ctrl-Shift-Down","Alt-Shift-Down"),exec:function(di){di.modifyNumber(-1)},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"replace",bindKey:gi("Ctrl-H","Command-Option-F"),exec:function(di){fi.loadModule("ace/ext/searchbox",function(li){li.Search(di,!0)})}},{name:"undo",bindKey:gi("Ctrl-Z","Command-Z"),exec:function(di){di.undo()}},{name:"redo",bindKey:gi("Ctrl-Shift-Z|Ctrl-Y","Command-Shift-Z|Command-Y"),exec:function(di){di.redo()}},{name:"copylinesup",bindKey:gi("Alt-Shift-Up","Command-Option-Up"),exec:function(di){di.copyLinesUp()},scrollIntoView:"cursor"},{name:"movelinesup",bindKey:gi("Alt-Up","Option-Up"),exec:function(di){di.moveLinesUp()},scrollIntoView:"cursor"},{name:"copylinesdown",bindKey:gi("Alt-Shift-Down","Command-Option-Down"),exec:function(di){di.copyLinesDown()},scrollIntoView:"cursor"},{name:"movelinesdown",bindKey:gi("Alt-Down","Option-Down"),exec:function(di){di.moveLinesDown()},scrollIntoView:"cursor"},{name:"del",bindKey:gi("Delete","Delete|Ctrl-D|Shift-Delete"),exec:function(di){di.remove("right")},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"backspace",bindKey:gi("Shift-Backspace|Backspace","Ctrl-Backspace|Shift-Backspace|Backspace|Ctrl-H"),exec:function(di){di.remove("left")},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"cut_or_delete",bindKey:gi("Shift-Delete",null),exec:function(di){if(di.selection.isEmpty())di.remove("left");else return!1},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolinestart",bindKey:gi("Alt-Backspace","Command-Backspace"),exec:function(di){di.removeToLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolineend",bindKey:gi("Alt-Delete","Ctrl-K|Command-Delete"),exec:function(di){di.removeToLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolinestarthard",bindKey:gi("Ctrl-Shift-Backspace",null),exec:function(di){var li=di.selection.getRange();li.start.column=0,di.session.remove(li)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolineendhard",bindKey:gi("Ctrl-Shift-Delete",null),exec:function(di){var li=di.selection.getRange();li.end.column=Number.MAX_VALUE,di.session.remove(li)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removewordleft",bindKey:gi("Ctrl-Backspace","Alt-Backspace|Ctrl-Alt-Backspace"),exec:function(di){di.removeWordLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removewordright",bindKey:gi("Ctrl-Delete","Alt-Delete"),exec:function(di){di.removeWordRight()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"outdent",bindKey:gi("Shift-Tab","Shift-Tab"),exec:function(di){di.blockOutdent()},multiSelectAction:"forEach",scrollIntoView:"selectionPart"},{name:"indent",bindKey:gi("Tab","Tab"),exec:function(di){di.indent()},multiSelectAction:"forEach",scrollIntoView:"selectionPart"},{name:"blockoutdent",bindKey:gi("Ctrl-[","Ctrl-["),exec:function(di){di.blockOutdent()},multiSelectAction:"forEachLine",scrollIntoView:"selectionPart"},{name:"blockindent",bindKey:gi("Ctrl-]","Ctrl-]"),exec:function(di){di.blockIndent()},multiSelectAction:"forEachLine",scrollIntoView:"selectionPart"},{name:"insertstring",exec:function(di,li){di.insert(li)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"inserttext",exec:function(di,li){di.insert(ui.stringRepeat(li.text||"",li.times||1))},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"splitline",bindKey:gi(null,"Ctrl-O"),exec:function(di){di.splitLine()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"transposeletters",bindKey:gi("Alt-Shift-X","Ctrl-T"),exec:function(di){di.transposeLetters()},multiSelectAction:function(di){di.transposeSelections(1)},scrollIntoView:"cursor"},{name:"touppercase",bindKey:gi("Ctrl-U","Ctrl-U"),exec:function(di){di.toUpperCase()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"tolowercase",bindKey:gi("Ctrl-Shift-U","Ctrl-Shift-U"),exec:function(di){di.toLowerCase()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"expandtoline",bindKey:gi("Ctrl-Shift-L","Command-Shift-L"),exec:function(di){var li=di.selection.getRange();li.start.column=li.end.column=0,li.end.row++,di.selection.setRange(li,!1)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"joinlines",bindKey:gi(null,null),exec:function(di){for(var li=di.selection.isBackwards(),ci=li?di.selection.getSelectionLead():di.selection.getSelectionAnchor(),pi=li?di.selection.getSelectionAnchor():di.selection.getSelectionLead(),bi=di.session.doc.getLine(ci.row).length,vi=di.session.doc.getTextRange(di.selection.getRange()),Ai=vi.replace(/\n\s*/," ").length,Li=di.session.doc.getLine(ci.row),Bi=ci.row+1;Bi<=pi.row+1;Bi++){var Ri=ui.stringTrimLeft(ui.stringTrimRight(di.session.doc.getLine(Bi)));Ri.length!==0&&(Ri=" "+Ri),Li+=Ri}pi.row+10?(di.selection.moveCursorTo(ci.row,ci.column),di.selection.selectTo(ci.row,ci.column+Ai)):(bi=di.session.doc.getLine(ci.row).length>bi?bi+1:bi,di.selection.moveCursorTo(ci.row,bi))},multiSelectAction:"forEach",readOnly:!0},{name:"invertSelection",bindKey:gi(null,null),exec:function(di){var li=di.session.doc.getLength()-1,ci=di.session.doc.getLine(li).length,pi=di.selection.rangeList.ranges,bi=[];pi.length<1&&(pi=[di.selection.getRange()]);for(var vi=0;vi0&&this.$blockScrolling--;var Pi=Ti&&Ti.scrollIntoView;if(Pi){switch(Pi){case"center-animate":Pi="animate";case"center":this.renderer.scrollCursorIntoView(null,.5);break;case"animate":case"cursor":this.renderer.scrollCursorIntoView();break;case"selectionPart":var ji=this.selection.getRange(),Di=this.renderer.layerConfig;(ji.start.row>=Di.lastRow||ji.end.row<=Di.firstRow)&&this.renderer.scrollSelectionIntoView(this.selection.anchor,this.selection.lead);break}Pi=="animate"&&this.renderer.animateScrolling(this.curOp.scrollTop)}this.prevOp=this.curOp,this.curOp=null}},this.$mergeableCommands=["backspace","del","insertstring"],this.$historyTracker=function(ki){if(this.$mergeUndoDeltas){var Ti=this.prevOp,Pi=this.$mergeableCommands,ji=Ti.command&&ki.command.name==Ti.command.name;if(ki.command.name=="insertstring"){var Di=ki.args;this.mergeNextCommand===void 0&&(this.mergeNextCommand=!0),ji=ji&&this.mergeNextCommand&&(!/\s/.test(Di)||/\s/.test(Ti.args)),this.mergeNextCommand=!0}else ji=ji&&Pi.indexOf(ki.command.name)!==-1;this.$mergeUndoDeltas!="always"&&Date.now()-this.sequenceStartTime>2e3&&(ji=!1),ji?this.session.mergeUndoDeltas=!0:Pi.indexOf(ki.command.name)!==-1&&(this.sequenceStartTime=Date.now())}},this.setKeyboardHandler=function(ki,Ti){if(ki&&typeof ki=="string"){this.$keybindingId=ki;var Pi=this;zi.loadModule(["keybinding",ki],function(ji){Pi.$keybindingId==ki&&Pi.keyBinding.setKeyboardHandler(ji&&ji.handler),Ti&&Ti()})}else this.$keybindingId=null,this.keyBinding.setKeyboardHandler(ki),Ti&&Ti()},this.getKeyboardHandler=function(){return this.keyBinding.getKeyboardHandler()},this.setSession=function(ki){if(this.session!=ki){this.curOp&&this.endOperation(),this.curOp={};var Ti=this.session;if(Ti){this.session.off("change",this.$onDocumentChange),this.session.off("changeMode",this.$onChangeMode),this.session.off("tokenizerUpdate",this.$onTokenizerUpdate),this.session.off("changeTabSize",this.$onChangeTabSize),this.session.off("changeWrapLimit",this.$onChangeWrapLimit),this.session.off("changeWrapMode",this.$onChangeWrapMode),this.session.off("changeFold",this.$onChangeFold),this.session.off("changeFrontMarker",this.$onChangeFrontMarker),this.session.off("changeBackMarker",this.$onChangeBackMarker),this.session.off("changeBreakpoint",this.$onChangeBreakpoint),this.session.off("changeAnnotation",this.$onChangeAnnotation),this.session.off("changeOverwrite",this.$onCursorChange),this.session.off("changeScrollTop",this.$onScrollTopChange),this.session.off("changeScrollLeft",this.$onScrollLeftChange);var Pi=this.session.getSelection();Pi.off("changeCursor",this.$onCursorChange),Pi.off("changeSelection",this.$onSelectionChange)}this.session=ki,ki?(this.$onDocumentChange=this.onDocumentChange.bind(this),ki.on("change",this.$onDocumentChange),this.renderer.setSession(ki),this.$onChangeMode=this.onChangeMode.bind(this),ki.on("changeMode",this.$onChangeMode),this.$onTokenizerUpdate=this.onTokenizerUpdate.bind(this),ki.on("tokenizerUpdate",this.$onTokenizerUpdate),this.$onChangeTabSize=this.renderer.onChangeTabSize.bind(this.renderer),ki.on("changeTabSize",this.$onChangeTabSize),this.$onChangeWrapLimit=this.onChangeWrapLimit.bind(this),ki.on("changeWrapLimit",this.$onChangeWrapLimit),this.$onChangeWrapMode=this.onChangeWrapMode.bind(this),ki.on("changeWrapMode",this.$onChangeWrapMode),this.$onChangeFold=this.onChangeFold.bind(this),ki.on("changeFold",this.$onChangeFold),this.$onChangeFrontMarker=this.onChangeFrontMarker.bind(this),this.session.on("changeFrontMarker",this.$onChangeFrontMarker),this.$onChangeBackMarker=this.onChangeBackMarker.bind(this),this.session.on("changeBackMarker",this.$onChangeBackMarker),this.$onChangeBreakpoint=this.onChangeBreakpoint.bind(this),this.session.on("changeBreakpoint",this.$onChangeBreakpoint),this.$onChangeAnnotation=this.onChangeAnnotation.bind(this),this.session.on("changeAnnotation",this.$onChangeAnnotation),this.$onCursorChange=this.onCursorChange.bind(this),this.session.on("changeOverwrite",this.$onCursorChange),this.$onScrollTopChange=this.onScrollTopChange.bind(this),this.session.on("changeScrollTop",this.$onScrollTopChange),this.$onScrollLeftChange=this.onScrollLeftChange.bind(this),this.session.on("changeScrollLeft",this.$onScrollLeftChange),this.selection=ki.getSelection(),this.selection.on("changeCursor",this.$onCursorChange),this.$onSelectionChange=this.onSelectionChange.bind(this),this.selection.on("changeSelection",this.$onSelectionChange),this.onChangeMode(),this.$blockScrolling+=1,this.onCursorChange(),this.$blockScrolling-=1,this.onScrollTopChange(),this.onScrollLeftChange(),this.onSelectionChange(),this.onChangeFrontMarker(),this.onChangeBackMarker(),this.onChangeBreakpoint(),this.onChangeAnnotation(),this.session.getUseWrapMode()&&this.renderer.adjustWrapLimit(),this.renderer.updateFull()):(this.selection=null,this.renderer.setSession(ki)),this._signal("changeSession",{session:ki,oldSession:Ti}),this.curOp=null,Ti&&Ti._signal("changeEditor",{oldEditor:this}),ki&&ki._signal("changeEditor",{editor:this}),ki&&ki.bgTokenizer&&ki.bgTokenizer.scheduleStart()}},this.getSession=function(){return this.session},this.setValue=function(ki,Ti){return this.session.doc.setValue(ki),Ti?Ti==1?this.navigateFileEnd():Ti==-1&&this.navigateFileStart():this.selectAll(),ki},this.getValue=function(){return this.session.getValue()},this.getSelection=function(){return this.selection},this.resize=function(ki){this.renderer.onResize(ki)},this.setTheme=function(ki,Ti){this.renderer.setTheme(ki,Ti)},this.getTheme=function(){return this.renderer.getTheme()},this.setStyle=function(ki){this.renderer.setStyle(ki)},this.unsetStyle=function(ki){this.renderer.unsetStyle(ki)},this.getFontSize=function(){return this.getOption("fontSize")||fi.computedStyle(this.container,"fontSize")},this.setFontSize=function(ki){this.setOption("fontSize",ki)},this.$highlightBrackets=function(){if(this.session.$bracketHighlight&&(this.session.removeMarker(this.session.$bracketHighlight),this.session.$bracketHighlight=null),!this.$highlightPending){var ki=this;this.$highlightPending=!0,setTimeout(function(){ki.$highlightPending=!1;var Ti=ki.session;if(!(!Ti||!Ti.bgTokenizer)){var Pi=Ti.findMatchingBracket(ki.getCursorPosition());if(Pi)var ji=new Ai(Pi.row,Pi.column,Pi.row,Pi.column+1);else if(Ti.$mode.getMatching)var ji=Ti.$mode.getMatching(ki.session);ji&&(Ti.$bracketHighlight=Ti.addMarker(ji,"ace_bracket","text"))}},50)}},this.$highlightTags=function(){if(!this.$highlightTagPending){var ki=this;this.$highlightTagPending=!0,setTimeout(function(){ki.$highlightTagPending=!1;var Ti=ki.session;if(!(!Ti||!Ti.bgTokenizer)){var Pi=ki.getCursorPosition(),ji=new Ei(ki.session,Pi.row,Pi.column),Di=ji.getCurrentToken();if(!Di||!/\b(?:tag-open|tag-name)/.test(Di.type)){Ti.removeMarker(Ti.$tagHighlight),Ti.$tagHighlight=null;return}if(!(Di.type.indexOf("tag-open")!=-1&&(Di=ji.stepForward(),!Di))){var Ni=Di.value,qi=0,Ji=ji.stepBackward();if(Ji.value=="<")do Ji=Di,Di=ji.stepForward(),Di&&Di.value===Ni&&Di.type.indexOf("tag-name")!==-1&&(Ji.value==="<"?qi++:Ji.value==="=0);else{do Di=Ji,Ji=ji.stepBackward(),Di&&Di.value===Ni&&Di.type.indexOf("tag-name")!==-1&&(Ji.value==="<"?qi++:Ji.value==="1)&&(Ti=!1)),ki.$highlightLineMarker&&!Ti)ki.removeMarker(ki.$highlightLineMarker.id),ki.$highlightLineMarker=null;else if(!ki.$highlightLineMarker&&Ti){var Pi=new Ai(Ti.row,Ti.column,Ti.row,1/0);Pi.id=ki.addMarker(Pi,"ace_active-line","screenLine"),ki.$highlightLineMarker=Pi}else Ti&&(ki.$highlightLineMarker.start.row=Ti.row,ki.$highlightLineMarker.end.row=Ti.row,ki.$highlightLineMarker.start.column=Ti.column,ki._signal("changeBackMarker"))},this.onSelectionChange=function(ki){var Ti=this.session;if(Ti.$selectionMarker&&Ti.removeMarker(Ti.$selectionMarker),Ti.$selectionMarker=null,this.selection.isEmpty())this.$updateHighlightActiveLine();else{var Pi=this.selection.getRange(),ji=this.getSelectionStyle();Ti.$selectionMarker=Ti.addMarker(Pi,"ace_selection",ji)}var Di=this.$highlightSelectedWord&&this.$getSelectionHighLightRegexp();this.session.highlight(Di),this._signal("changeSelection")},this.$getSelectionHighLightRegexp=function(){var ki=this.session,Ti=this.getSelectionRange();if(!(Ti.isEmpty()||Ti.isMultiLine())){var Pi=Ti.start.column-1,ji=Ti.end.column+1,Di=ki.getLine(Ti.start.row),Ni=Di.length,qi=Di.substring(Math.max(Pi,0),Math.min(ji,Ni));if(!(Pi>=0&&/^[\w\d]/.test(qi)||ji<=Ni&&/[\w\d]$/.test(qi))&&(qi=Di.substring(Ti.start.column,Ti.end.column),!!/^[\w\d]+$/.test(qi))){var Ji=this.$search.$assembleRegExp({wholeWord:!0,caseSensitive:!0,needle:qi});return Ji}}},this.onChangeFrontMarker=function(){this.renderer.updateFrontMarkers()},this.onChangeBackMarker=function(){this.renderer.updateBackMarkers()},this.onChangeBreakpoint=function(){this.renderer.updateBreakpoints()},this.onChangeAnnotation=function(){this.renderer.setAnnotations(this.session.getAnnotations())},this.onChangeMode=function(ki){this.renderer.updateText(),this._emit("changeMode",ki)},this.onChangeWrapLimit=function(){this.renderer.updateFull()},this.onChangeWrapMode=function(){this.renderer.onResize(!0)},this.onChangeFold=function(){this.$updateHighlightActiveLine(),this.renderer.updateFull()},this.getSelectedText=function(){return this.session.getTextRange(this.getSelectionRange())},this.getCopyText=function(){var ki=this.getSelectedText();return this._signal("copy",ki),ki},this.onCopy=function(){this.commands.exec("copy",this)},this.onCut=function(){this.commands.exec("cut",this)},this.onPaste=function(ki,Ti){var Pi={text:ki,event:Ti};this.commands.exec("paste",this,Pi)},this.$handlePaste=function(ki){typeof ki=="string"&&(ki={text:ki}),this._signal("paste",ki);var Ti=ki.text;if(!this.inMultiSelectMode||this.inVirtualSelectionMode)this.insert(Ti);else{var Pi=Ti.split(/\r\n|\r|\n/),ji=this.selection.rangeList.ranges;if(Pi.length>ji.length||Pi.length<2||!Pi[1])return this.commands.exec("insertstring",this,Ti);for(var Di=ji.length;Di--;){var Ni=ji[Di];Ni.isEmpty()||this.session.remove(Ni),this.session.insert(Ni.start,Pi[Di])}}},this.execCommand=function(ki,Ti){return this.commands.exec(ki,this,Ti)},this.insert=function(ki,Ti){var Pi=this.session,ji=Pi.getMode(),Di=this.getCursorPosition();if(this.getBehavioursEnabled()&&!Ti){var Ni=ji.transformAction(Pi.getState(Di.row),"insertion",this,Pi,ki);Ni&&(ki!==Ni.text&&(this.session.mergeUndoDeltas=!1,this.$mergeNextCommand=!1),ki=Ni.text)}if(ki==" "&&(ki=this.session.getTabString()),this.selection.isEmpty()){if(this.session.getOverwrite()&&ki.indexOf(` `)==-1){var qi=new Ai.fromPoints(Di,Di);qi.end.column+=ki.length,this.session.remove(qi)}}else{var qi=this.getSelectionRange();Di=this.session.remove(qi),this.clearSelection()}if(ki==` `||ki==`\r `){var rn=Pi.getLine(Di.row);if(Di.column>rn.search(/\S|$/)){var Ji=rn.substr(Di.column).search(/\S|$/);Pi.doc.removeInLine(Di.row,Di.column,Di.column+Ji)}}this.clearSelection();var sn=Di.column,en=Pi.getState(Di.row),rn=Pi.getLine(Di.row),fn=ji.checkOutdent(en,rn,ki);if(Pi.insert(Di,ki),Ni&&Ni.selection&&(Ni.selection.length==2?this.selection.setSelectionRange(new Ai(Di.row,sn+Ni.selection[0],Di.row,sn+Ni.selection[1])):this.selection.setSelectionRange(new Ai(Di.row+Ni.selection[0],Ni.selection[1],Di.row+Ni.selection[2],Ni.selection[3]))),Pi.getDocument().isNewLine(ki)){var vn=ji.getNextLineIndent(en,rn.slice(0,Di.column),Pi.getTabString());Pi.insert({row:Di.row+1,column:0},vn)}fn&&ji.autoOutdent(en,Pi,Di.row)},this.onTextInput=function(ki){this.keyBinding.onTextInput(ki)},this.onCommandKey=function(ki,Ti,Pi){this.keyBinding.onCommandKey(ki,Ti,Pi)},this.setOverwrite=function(ki){this.session.setOverwrite(ki)},this.getOverwrite=function(){return this.session.getOverwrite()},this.toggleOverwrite=function(){this.session.toggleOverwrite()},this.setScrollSpeed=function(ki){this.setOption("scrollSpeed",ki)},this.getScrollSpeed=function(){return this.getOption("scrollSpeed")},this.setDragDelay=function(ki){this.setOption("dragDelay",ki)},this.getDragDelay=function(){return this.getOption("dragDelay")},this.setSelectionStyle=function(ki){this.setOption("selectionStyle",ki)},this.getSelectionStyle=function(){return this.getOption("selectionStyle")},this.setHighlightActiveLine=function(ki){this.setOption("highlightActiveLine",ki)},this.getHighlightActiveLine=function(){return this.getOption("highlightActiveLine")},this.setHighlightGutterLine=function(ki){this.setOption("highlightGutterLine",ki)},this.getHighlightGutterLine=function(){return this.getOption("highlightGutterLine")},this.setHighlightSelectedWord=function(ki){this.setOption("highlightSelectedWord",ki)},this.getHighlightSelectedWord=function(){return this.$highlightSelectedWord},this.setAnimatedScroll=function(ki){this.renderer.setAnimatedScroll(ki)},this.getAnimatedScroll=function(){return this.renderer.getAnimatedScroll()},this.setShowInvisibles=function(ki){this.renderer.setShowInvisibles(ki)},this.getShowInvisibles=function(){return this.renderer.getShowInvisibles()},this.setDisplayIndentGuides=function(ki){this.renderer.setDisplayIndentGuides(ki)},this.getDisplayIndentGuides=function(){return this.renderer.getDisplayIndentGuides()},this.setShowPrintMargin=function(ki){this.renderer.setShowPrintMargin(ki)},this.getShowPrintMargin=function(){return this.renderer.getShowPrintMargin()},this.setPrintMarginColumn=function(ki){this.renderer.setPrintMarginColumn(ki)},this.getPrintMarginColumn=function(){return this.renderer.getPrintMarginColumn()},this.setReadOnly=function(ki){this.setOption("readOnly",ki)},this.getReadOnly=function(){return this.getOption("readOnly")},this.setBehavioursEnabled=function(ki){this.setOption("behavioursEnabled",ki)},this.getBehavioursEnabled=function(){return this.getOption("behavioursEnabled")},this.setWrapBehavioursEnabled=function(ki){this.setOption("wrapBehavioursEnabled",ki)},this.getWrapBehavioursEnabled=function(){return this.getOption("wrapBehavioursEnabled")},this.setShowFoldWidgets=function(ki){this.setOption("showFoldWidgets",ki)},this.getShowFoldWidgets=function(){return this.getOption("showFoldWidgets")},this.setFadeFoldWidgets=function(ki){this.setOption("fadeFoldWidgets",ki)},this.getFadeFoldWidgets=function(){return this.getOption("fadeFoldWidgets")},this.remove=function(ki){this.selection.isEmpty()&&(ki=="left"?this.selection.selectLeft():this.selection.selectRight());var Ti=this.getSelectionRange();if(this.getBehavioursEnabled()){var Pi=this.session,ji=Pi.getState(Ti.start.row),Di=Pi.getMode().transformAction(ji,"deletion",this,Pi,Ti);if(Ti.end.column===0){var Ni=Pi.getTextRange(Ti);if(Ni[Ni.length-1]==` `){var qi=Pi.getLine(Ti.end.row);/^\s+$/.test(qi)&&(Ti.end.column=qi.length)}}Di&&(Ti=Di)}this.session.remove(Ti),this.clearSelection()},this.removeWordRight=function(){this.selection.isEmpty()&&this.selection.selectWordRight(),this.session.remove(this.getSelectionRange()),this.clearSelection()},this.removeWordLeft=function(){this.selection.isEmpty()&&this.selection.selectWordLeft(),this.session.remove(this.getSelectionRange()),this.clearSelection()},this.removeToLineStart=function(){this.selection.isEmpty()&&this.selection.selectLineStart(),this.session.remove(this.getSelectionRange()),this.clearSelection()},this.removeToLineEnd=function(){this.selection.isEmpty()&&this.selection.selectLineEnd();var ki=this.getSelectionRange();ki.start.column==ki.end.column&&ki.start.row==ki.end.row&&(ki.end.column=0,ki.end.row++),this.session.remove(ki),this.clearSelection()},this.splitLine=function(){this.selection.isEmpty()||(this.session.remove(this.getSelectionRange()),this.clearSelection());var ki=this.getCursorPosition();this.insert(` `),this.moveCursorToPosition(ki)},this.transposeLetters=function(){if(this.selection.isEmpty()){var ki=this.getCursorPosition(),Ti=ki.column;if(Ti!==0){var Pi=this.session.getLine(ki.row),ji,Di;TiJi.toLowerCase()?1:0});for(var Di=new Ai(0,0,0,0),ji=ki.first;ji<=ki.last;ji++){var Ni=Ti.getLine(ji);Di.start.row=ji,Di.end.row=ji,Di.end.column=Ni.length,Ti.replace(Di,Pi[ji-ki.first])}},this.toggleCommentLines=function(){var ki=this.session.getState(this.getCursorPosition().row),Ti=this.$getSelectedRows();this.session.getMode().toggleCommentLines(ki,this.session,Ti.first,Ti.last)},this.toggleBlockComment=function(){var ki=this.getCursorPosition(),Ti=this.session.getState(ki.row),Pi=this.getSelectionRange();this.session.getMode().toggleBlockComment(Ti,this.session,Pi,ki)},this.getNumberAt=function(ki,Ti){var Pi=/[\-]?[0-9]+(?:\.[0-9]+)?/g;Pi.lastIndex=0;for(var ji=this.session.getLine(ki);Pi.lastIndex=Ti){var Ni={value:Di[0],start:Di.index,end:Di.index+Di[0].length};return Ni}}return null},this.modifyNumber=function(ki){var Ti=this.selection.getCursor().row,Pi=this.selection.getCursor().column,ji=new Ai(Ti,Pi-1,Ti,Pi),Di=this.session.getTextRange(ji);if(!isNaN(parseFloat(Di))&&isFinite(Di)){var Ni=this.getNumberAt(Ti,Pi);if(Ni){var qi=Ni.value.indexOf(".")>=0?Ni.start+Ni.value.indexOf(".")+1:Ni.end,Ji=Ni.start+Ni.value.length-qi,sn=parseFloat(Ni.value);sn*=Math.pow(10,Ji),qi!==Ni.end&&Pibn+1)break;bn=An.last}for(rn--,Ji=this.session.$moveLines(vn,bn,Ti?0:ki),Ti&&ki==-1&&(fn=rn+1);fn<=rn;)qi[fn].moveBy(Ji,0),fn++;Ti||(Ji=0),sn+=Ji}Di.fromOrientedRange(Di.ranges[0]),Di.rangeList.attach(this.session),this.inVirtualSelectionMode=!1}},this.$getSelectedRows=function(ki){return ki=(ki||this.getSelectionRange()).collapseRows(),{first:this.session.getRowFoldStart(ki.start.row),last:this.session.getRowFoldEnd(ki.end.row)}},this.onCompositionStart=function(ki){this.renderer.showComposition(this.getCursorPosition())},this.onCompositionUpdate=function(ki){this.renderer.setCompositionText(ki)},this.onCompositionEnd=function(){this.renderer.hideComposition()},this.getFirstVisibleRow=function(){return this.renderer.getFirstVisibleRow()},this.getLastVisibleRow=function(){return this.renderer.getLastVisibleRow()},this.isRowVisible=function(ki){return ki>=this.getFirstVisibleRow()&&ki<=this.getLastVisibleRow()},this.isRowFullyVisible=function(ki){return ki>=this.renderer.getFirstFullyVisibleRow()&&ki<=this.renderer.getLastFullyVisibleRow()},this.$getVisibleRowCount=function(){return this.renderer.getScrollBottomRow()-this.renderer.getScrollTopRow()+1},this.$moveByPage=function(ki,Ti){var Pi=this.renderer,ji=this.renderer.layerConfig,Di=ki*Math.floor(ji.height/ji.lineHeight);this.$blockScrolling++,Ti===!0?this.selection.$moveSelection(function(){this.moveCursorBy(Di,0)}):Ti===!1&&(this.selection.moveCursorBy(Di,0),this.selection.clearSelection()),this.$blockScrolling--;var Ni=Pi.scrollTop;Pi.scrollBy(0,Di*ji.lineHeight),Ti!=null&&Pi.scrollCursorIntoView(null,.5),Pi.animateScrolling(Ni)},this.selectPageDown=function(){this.$moveByPage(1,!0)},this.selectPageUp=function(){this.$moveByPage(-1,!0)},this.gotoPageDown=function(){this.$moveByPage(1,!1)},this.gotoPageUp=function(){this.$moveByPage(-1,!1)},this.scrollPageDown=function(){this.$moveByPage(1)},this.scrollPageUp=function(){this.$moveByPage(-1)},this.scrollToRow=function(ki){this.renderer.scrollToRow(ki)},this.scrollToLine=function(ki,Ti,Pi,ji){this.renderer.scrollToLine(ki,Ti,Pi,ji)},this.centerSelection=function(){var ki=this.getSelectionRange(),Ti={row:Math.floor(ki.start.row+(ki.end.row-ki.start.row)/2),column:Math.floor(ki.start.column+(ki.end.column-ki.start.column)/2)};this.renderer.alignCursor(Ti,.5)},this.getCursorPosition=function(){return this.selection.getCursor()},this.getCursorPositionScreen=function(){return this.session.documentToScreenPosition(this.getCursorPosition())},this.getSelectionRange=function(){return this.selection.getRange()},this.selectAll=function(){this.$blockScrolling+=1,this.selection.selectAll(),this.$blockScrolling-=1},this.clearSelection=function(){this.selection.clearSelection()},this.moveCursorTo=function(ki,Ti){this.selection.moveCursorTo(ki,Ti)},this.moveCursorToPosition=function(ki){this.selection.moveCursorToPosition(ki)},this.jumpToMatching=function(ki,Ti){var Pi=this.getCursorPosition(),ji=new Ei(this.session,Pi.row,Pi.column),Di=ji.getCurrentToken(),Ni=Di||ji.stepForward();if(Ni){var qi,Ji=!1,sn={},en=Pi.column-Ni.start,rn,fn={")":"(","(":"(","]":"[","[":"[","{":"{","}":"{"};do{if(Ni.value.match(/[{}()\[\]]/g)){for(;en=0;--Ni)this.$tryReplace(Pi[Ni],ki)&&ji++;return this.selection.setSelectionRange(Di),this.$blockScrolling-=1,ji},this.$tryReplace=function(ki,Ti){var Pi=this.session.getTextRange(ki);return Ti=this.$search.replace(Pi,Ti),Ti!==null?(ki.end=this.session.replace(ki,Ti),ki):null},this.getLastSearchOptions=function(){return this.$search.getOptions()},this.find=function(ki,Ti,Pi){Ti||(Ti={}),typeof ki=="string"||ki instanceof RegExp?Ti.needle=ki:typeof ki=="object"&&ui.mixin(Ti,ki);var ji=this.selection.getRange();Ti.needle==null&&(ki=this.session.getTextRange(ji)||this.$search.$options.needle,ki||(ji=this.session.getWordRange(ji.start.row,ji.start.column),ki=this.session.getTextRange(ji)),this.$search.set({needle:ki})),this.$search.set(Ti),Ti.start||this.$search.set({start:ji});var Di=this.$search.find(this.session);if(Ti.preventScroll)return Di;if(Di)return this.revealRange(Di,Pi),Di;Ti.backwards?ji.start=ji.end:ji.end=ji.start,this.selection.setRange(ji)},this.findNext=function(ki,Ti){this.find({skipCurrent:!0,backwards:!1},ki,Ti)},this.findPrevious=function(ki,Ti){this.find(ki,{skipCurrent:!0,backwards:!0},Ti)},this.revealRange=function(ki,Ti){this.$blockScrolling+=1,this.session.unfold(ki),this.selection.setSelectionRange(ki),this.$blockScrolling-=1;var Pi=this.renderer.scrollTop;this.renderer.scrollSelectionIntoView(ki.start,ki.end,.5),Ti!==!1&&this.renderer.animateScrolling(Pi)},this.undo=function(){this.$blockScrolling++,this.session.getUndoManager().undo(),this.$blockScrolling--,this.renderer.scrollCursorIntoView(null,.5)},this.redo=function(){this.$blockScrolling++,this.session.getUndoManager().redo(),this.$blockScrolling--,this.renderer.scrollCursorIntoView(null,.5)},this.destroy=function(){this.renderer.destroy(),this._signal("destroy",this),this.session&&this.session.destroy()},this.setAutoScrollEditorIntoView=function(ki){if(ki){var Ti,Pi=this,ji=!1;this.$scrollAnchor||(this.$scrollAnchor=document.createElement("div"));var Di=this.$scrollAnchor;Di.style.cssText="position:absolute",this.container.insertBefore(Di,this.container.firstChild);var Ni=this.on("changeSelection",function(){ji=!0}),qi=this.renderer.on("beforeRender",function(){ji&&(Ti=Pi.renderer.container.getBoundingClientRect())}),Ji=this.renderer.on("afterRender",function(){if(ji&&Ti&&(Pi.isFocused()||Pi.searchBox&&Pi.searchBox.isFocused())){var sn=Pi.renderer,en=sn.$cursorLayer.$pixelPos,rn=sn.layerConfig,fn=en.top-rn.offset;en.top>=0&&fn+Ti.top<0?ji=!0:en.topwindow.innerHeight?ji=!1:ji=null,ji!=null&&(Di.style.top=fn+"px",Di.style.left=en.left+"px",Di.style.height=rn.lineHeight+"px",Di.scrollIntoView(ji)),ji=Ti=null}});this.setAutoScrollEditorIntoView=function(sn){sn||(delete this.setAutoScrollEditorIntoView,this.off("changeSelection",Ni),this.renderer.off("afterRender",Ji),this.renderer.off("beforeRender",qi))}}},this.$resetCursorStyle=function(){var ki=this.$cursorStyle||"ace",Ti=this.renderer.$cursorLayer;Ti&&(Ti.setSmoothBlinking(/smooth/.test(ki)),Ti.isBlinking=!this.$readOnly&&ki!="wide",fi.setCssClass(Ti.element,"ace_slim-cursors",/slim/.test(ki)))}}).call(Ii.prototype),zi.defineOptions(Ii.prototype,"editor",{selectionStyle:{set:function(ki){this.onSelectionChange(),this._signal("changeSelectionStyle",{data:ki})},initialValue:"line"},highlightActiveLine:{set:function(){this.$updateHighlightActiveLine()},initialValue:!0},highlightSelectedWord:{set:function(ki){this.$onSelectionChange()},initialValue:!0},readOnly:{set:function(ki){this.$resetCursorStyle()},initialValue:!1},cursorStyle:{set:function(ki){this.$resetCursorStyle()},values:["ace","slim","smooth","wide"],initialValue:"ace"},mergeUndoDeltas:{values:[!1,!0,"always"],initialValue:!0},behavioursEnabled:{initialValue:!0},wrapBehavioursEnabled:{initialValue:!0},autoScrollEditorIntoView:{set:function(ki){this.setAutoScrollEditorIntoView(ki)}},keyboardHandler:{set:function(ki){this.setKeyboardHandler(ki)},get:function(){return this.keybindingId},handlesSet:!0},hScrollBarAlwaysVisible:"renderer",vScrollBarAlwaysVisible:"renderer",highlightGutterLine:"renderer",animatedScroll:"renderer",showInvisibles:"renderer",showPrintMargin:"renderer",printMarginColumn:"renderer",printMargin:"renderer",fadeFoldWidgets:"renderer",showFoldWidgets:"renderer",showLineNumbers:"renderer",showGutter:"renderer",displayIndentGuides:"renderer",fontSize:"renderer",fontFamily:"renderer",maxLines:"renderer",minLines:"renderer",scrollPastEnd:"renderer",fixedWidthGutter:"renderer",theme:"renderer",scrollSpeed:"$mouseHandler",dragDelay:"$mouseHandler",dragEnabled:"$mouseHandler",focusTimout:"$mouseHandler",tooltipFollowsMouse:"$mouseHandler",firstLineNumber:"session",overwrite:"session",newLineMode:"session",useWorker:"session",useSoftTabs:"session",tabSize:"session",wrap:"session",indentedSoftWrap:"session",foldStyle:"session",mode:"session"}),ni.Editor=Ii});ace.define("ace/undomanager",["require","exports","module"],function(ti,ni,oi){var ui=function(){this.reset()};(function(){this.execute=function(di){var li=di.args[0];this.$doc=di.args[1],di.merge&&this.hasUndo()&&(this.dirtyCounter--,li=this.$undoStack.pop().concat(li)),this.$undoStack.push(li),this.$redoStack=[],this.dirtyCounter<0&&(this.dirtyCounter=NaN),this.dirtyCounter++},this.undo=function(di){var li=this.$undoStack.pop(),ci=null;return li&&(ci=this.$doc.undoChanges(li,di),this.$redoStack.push(li),this.dirtyCounter--),ci},this.redo=function(di){var li=this.$redoStack.pop(),ci=null;return li&&(ci=this.$doc.redoChanges(this.$deserializeDeltas(li),di),this.$undoStack.push(li),this.dirtyCounter++),ci},this.reset=function(){this.$undoStack=[],this.$redoStack=[],this.dirtyCounter=0},this.hasUndo=function(){return this.$undoStack.length>0},this.hasRedo=function(){return this.$redoStack.length>0},this.markClean=function(){this.dirtyCounter=0},this.isClean=function(){return this.dirtyCounter===0},this.$serializeDeltas=function(di){return gi(di,fi)},this.$deserializeDeltas=function(di){return gi(di,mi)};function fi(di){return{action:di.action,start:di.start,end:di.end,lines:di.lines.length==1?null:di.lines,text:di.lines.length==1?di.lines[0]:null}}function mi(di){return{action:di.action,start:di.start,end:di.end,lines:di.lines||[di.text]}}function gi(di,li){for(var ci=new Array(di.length),pi=0;piAi&&(Pi=vi.end.row+1,vi=ci.getNextFoldLine(Pi,vi),Ai=vi?vi.start.row:1/0),Pi>bi){for(;this.$cells.length>Ti+1;)ki=this.$cells.pop(),this.element.removeChild(ki.element);break}ki=this.$cells[++Ti],ki||(ki={element:null,textNode:null,foldWidget:null},ki.element=ui.createElement("div"),ki.textNode=document.createTextNode(""),ki.element.appendChild(ki.textNode),this.element.appendChild(ki.element),this.$cells[Ti]=ki);var ji="ace_gutter-cell ";Bi[Pi]&&(ji+=Bi[Pi]),Ri[Pi]&&(ji+=Ri[Pi]),this.$annotations[Pi]&&(ji+=this.$annotations[Pi].className),ki.element.className!=ji&&(ki.element.className=ji);var Di=ci.getRowLength(Pi)*li.lineHeight+"px";if(Di!=ki.element.style.height&&(ki.element.style.height=Di),Li){var Ni=Li[Pi];Ni==null&&(Ni=Li[Pi]=ci.getFoldWidget(Pi))}if(Ni){ki.foldWidget||(ki.foldWidget=ui.createElement("span"),ki.element.appendChild(ki.foldWidget));var ji="ace_fold-widget ace_"+Ni;Ni=="start"&&Pi==Ai&&Pipi.right-ci.right)return"foldWidgets"}}).call(di.prototype),ni.Gutter=di});ace.define("ace/layer/marker",["require","exports","module","ace/range","ace/lib/dom"],function(ti,ni,oi){var ui=ti("../range").Range,fi=ti("../lib/dom"),mi=function(gi){this.element=fi.createElement("div"),this.element.className="ace_layer ace_marker-layer",gi.appendChild(this.element)};(function(){this.$padding=0,this.setPadding=function(di){this.$padding=di},this.setSession=function(di){this.session=di},this.setMarkers=function(di){this.markers=di},this.update=function(di){if(di){this.config=di;var li=[];for(var ci in this.markers){var pi=this.markers[ci];if(!pi.range){pi.update(li,this,this.session,di);continue}var bi=pi.range.clipRows(di.firstRow,di.lastRow);if(!bi.isEmpty())if(bi=bi.toScreenRange(this.session),pi.renderer){var vi=this.$getTop(bi.start.row,di),Ai=this.$padding+(this.session.$bidiHandler.isBidiRow(bi.start.row)?this.session.$bidiHandler.getPosLeft(bi.start.column):bi.start.column*di.characterWidth);pi.renderer(li,bi,Ai,vi,di)}else pi.type=="fullLine"?this.drawFullLineMarker(li,bi,pi.clazz,di):pi.type=="screenLine"?this.drawScreenLineMarker(li,bi,pi.clazz,di):bi.isMultiLine()?pi.type=="text"?this.drawTextMarker(li,bi,pi.clazz,di):this.drawMultiLineMarker(li,bi,pi.clazz,di):this.session.$bidiHandler.isBidiRow(bi.start.row)?this.drawBidiSingleLineMarker(li,bi,pi.clazz+" ace_start ace_br15",di):this.drawSingleLineMarker(li,bi,pi.clazz+" ace_start ace_br15",di)}this.element.innerHTML=li.join("")}},this.$getTop=function(di,li){return(di-li.firstRowScreen)*li.lineHeight};function gi(di,li,ci,pi){return(di?1:0)|(li?2:0)|(ci?4:0)|(pi?8:0)}this.drawTextMarker=function(di,li,ci,pi,bi){for(var vi=this.session,Ai=li.start.row,Li=li.end.row,Bi=Ai,Ri=0,zi=0,Ei=vi.getScreenLastRowColumn(Bi),Ii=null,ki=new ui(Bi,li.start.column,Bi,zi);Bi<=Li;Bi++)ki.start.row=ki.end.row=Bi,ki.start.column=Bi==Ai?li.start.column:vi.getRowWrapIndent(Bi),ki.end.column=Ei,Ri=zi,zi=Ei,Ei=Bi+1Ei,Bi==Li),this.session.$bidiHandler.isBidiRow(Bi)?this.drawBidiSingleLineMarker(di,ki,Ii,pi,Bi==Li?0:1,bi):this.drawSingleLineMarker(di,ki,Ii,pi,Bi==Li?0:1,bi)},this.drawMultiLineMarker=function(di,li,ci,pi,bi){var vi=this.$padding,Ai,Li,Bi;if(bi=bi||"",this.session.$bidiHandler.isBidiRow(li.start.row)){var Ri=li.clone();Ri.end.row=Ri.start.row,Ri.end.column=this.session.getLine(Ri.start.row).length,this.drawBidiSingleLineMarker(di,Ri,ci+" ace_br1 ace_start",pi,null,bi)}else Ai=pi.lineHeight,Li=this.$getTop(li.start.row,pi),Bi=vi+li.start.column*pi.characterWidth,di.push("
");if(this.session.$bidiHandler.isBidiRow(li.end.row)){var Ri=li.clone();Ri.start.row=Ri.end.row,Ri.start.column=0,this.drawBidiSingleLineMarker(di,Ri,ci+" ace_br12",pi,null,bi)}else{var zi=li.end.column*pi.characterWidth;Ai=pi.lineHeight,Li=this.$getTop(li.end.row,pi),di.push("
")}if(Ai=(li.end.row-li.start.row-1)*pi.lineHeight,!(Ai<=0)){Li=this.$getTop(li.start.row+1,pi);var Ei=(li.start.column?1:0)|(li.end.column?0:8);di.push("
")}},this.drawSingleLineMarker=function(di,li,ci,pi,bi,vi){var Ai=pi.lineHeight,Li=(li.end.column+(bi||0)-li.start.column)*pi.characterWidth,Bi=this.$getTop(li.start.row,pi),Ri=this.$padding+li.start.column*pi.characterWidth;di.push("
")},this.drawBidiSingleLineMarker=function(di,li,ci,pi,bi,vi){var Ai=pi.lineHeight,Li=this.$getTop(li.start.row,pi),Bi=this.$padding,Ri=this.session.$bidiHandler.getSelections(li.start.column,li.end.column);Ri.forEach(function(zi){di.push("
")})},this.drawFullLineMarker=function(di,li,ci,pi,bi){var vi=this.$getTop(li.start.row,pi),Ai=pi.lineHeight;li.start.row!=li.end.row&&(Ai+=this.$getTop(li.end.row,pi)-vi),di.push("
")},this.drawScreenLineMarker=function(di,li,ci,pi,bi){var vi=this.$getTop(li.start.row,pi),Ai=pi.lineHeight;di.push("
")}}).call(mi.prototype),ni.Marker=mi});ace.define("ace/layer/text",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/lang","ace/lib/useragent","ace/lib/event_emitter"],function(ti,ni,oi){var ui=ti("../lib/oop"),fi=ti("../lib/dom"),mi=ti("../lib/lang");ti("../lib/useragent");var gi=ti("../lib/event_emitter").EventEmitter,di=function(li){this.element=fi.createElement("div"),this.element.className="ace_layer ace_text-layer",li.appendChild(this.element),this.$updateEolChar=this.$updateEolChar.bind(this)};(function(){ui.implement(this,gi),this.EOF_CHAR="¶",this.EOL_CHAR_LF="¬",this.EOL_CHAR_CRLF="¤",this.EOL_CHAR=this.EOL_CHAR_LF,this.TAB_CHAR="—",this.SPACE_CHAR="·",this.$padding=0,this.$updateEolChar=function(){var li=this.session.doc.getNewLineCharacter()==` `?this.EOL_CHAR_LF:this.EOL_CHAR_CRLF;if(this.EOL_CHAR!=li)return this.EOL_CHAR=li,!0},this.setPadding=function(li){this.$padding=li,this.element.style.padding="0 "+li+"px"},this.getLineHeight=function(){return this.$fontMetrics.$characterSize.height||0},this.getCharacterWidth=function(){return this.$fontMetrics.$characterSize.width||0},this.$setFontMetrics=function(li){this.$fontMetrics=li,this.$fontMetrics.on("changeCharacterSize",(function(ci){this._signal("changeCharacterSize",ci)}).bind(this)),this.$pollSizeChanges()},this.checkForSizeChanges=function(){this.$fontMetrics.checkForSizeChanges()},this.$pollSizeChanges=function(){return this.$pollSizeChangesTimer=this.$fontMetrics.$pollSizeChanges()},this.setSession=function(li){this.session=li,li&&this.$computeTabString()},this.showInvisibles=!1,this.setShowInvisibles=function(li){return this.showInvisibles==li?!1:(this.showInvisibles=li,this.$computeTabString(),!0)},this.displayIndentGuides=!0,this.setDisplayIndentGuides=function(li){return this.displayIndentGuides==li?!1:(this.displayIndentGuides=li,this.$computeTabString(),!0)},this.$tabStrings=[],this.onChangeTabSize=this.$computeTabString=function(){var li=this.session.getTabSize();this.tabSize=li;for(var ci=this.$tabStrings=[0],pi=1;pi"+mi.stringRepeat(this.TAB_CHAR,pi)+""):ci.push(mi.stringRepeat(" ",pi));if(this.displayIndentGuides){this.$indentGuideRe=/\s\S| \t|\t |\s$/;var bi="ace_indent-guide",vi="",Ai="";if(this.showInvisibles){bi+=" ace_invisible",vi=" ace_invisible_space",Ai=" ace_invisible_tab";var Li=mi.stringRepeat(this.SPACE_CHAR,this.tabSize),Bi=mi.stringRepeat(this.TAB_CHAR,this.tabSize)}else var Li=mi.stringRepeat(" ",this.tabSize),Bi=Li;this.$tabStrings[" "]=""+Li+"",this.$tabStrings[" "]=""+Bi+""}},this.updateLines=function(li,ci,pi){(this.config.lastRow!=li.lastRow||this.config.firstRow!=li.firstRow)&&this.scrollLines(li),this.config=li;for(var bi=Math.max(ci,li.firstRow),vi=Math.min(pi,li.lastRow),Ai=this.element.childNodes,Li=0,Bi=li.firstRow;Bizi&&(Bi=Ri.end.row+1,Ri=this.session.getNextFoldLine(Bi,Ri),zi=Ri?Ri.start.row:1/0),!(Bi>vi);){var Ei=Ai[Li++];if(Ei){var Ii=[];this.$renderLine(Ii,Bi,!this.$useLineGroups(),Bi==zi?Ri:!1),Ei.style.height=li.lineHeight*this.session.getRowLength(Bi)+"px",Ei.innerHTML=Ii.join("")}Bi++}},this.scrollLines=function(li){var ci=this.config;if(this.config=li,!ci||ci.lastRow0;bi--)pi.removeChild(pi.firstChild);if(ci.lastRow>li.lastRow)for(var bi=this.session.getFoldedRowCount(li.lastRow+1,ci.lastRow);bi>0;bi--)pi.removeChild(pi.lastChild);if(li.firstRowci.lastRow){var vi=this.$renderLinesFragment(li,ci.lastRow+1,li.lastRow);pi.appendChild(vi)}},this.$renderLinesFragment=function(li,ci,pi){for(var bi=this.element.ownerDocument.createDocumentFragment(),vi=ci,Ai=this.session.getNextFoldLine(vi),Li=Ai?Ai.start.row:1/0;vi>Li&&(vi=Ai.end.row+1,Ai=this.session.getNextFoldLine(vi,Ai),Li=Ai?Ai.start.row:1/0),!(vi>pi);){var Bi=fi.createElement("div"),Ri=[];if(this.$renderLine(Ri,vi,!1,vi==Li?Ai:!1),Bi.innerHTML=Ri.join(""),this.$useLineGroups())Bi.className="ace_line_group",bi.appendChild(Bi),Bi.style.height=li.lineHeight*this.session.getRowLength(vi)+"px";else for(;Bi.firstChild;)bi.appendChild(Bi.firstChild);vi++}return bi},this.update=function(li){this.config=li;for(var ci=[],pi=li.firstRow,bi=li.lastRow,vi=pi,Ai=this.session.getNextFoldLine(vi),Li=Ai?Ai.start.row:1/0;vi>Li&&(vi=Ai.end.row+1,Ai=this.session.getNextFoldLine(vi,Ai),Li=Ai?Ai.start.row:1/0),!(vi>bi);)this.$useLineGroups()&&ci.push("
"),this.$renderLine(ci,vi,!1,vi==Li?Ai:!1),this.$useLineGroups()&&ci.push("
"),vi++;this.element.innerHTML=ci.join("")},this.$textToken={text:!0,rparen:!0,lparen:!0},this.$renderToken=function(li,ci,pi,bi){var vi=this,Ai=/\t|&|<|>|( +)|([\x00-\x1f\x80-\xa0\xad\u1680\u180E\u2000-\u200f\u2028\u2029\u202F\u205F\u3000\uFEFF\uFFF9-\uFFFC])|[\u1100-\u115F\u11A3-\u11A7\u11FA-\u11FF\u2329-\u232A\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFB\u3000-\u303E\u3041-\u3096\u3099-\u30FF\u3105-\u312D\u3131-\u318E\u3190-\u31BA\u31C0-\u31E3\u31F0-\u321E\u3220-\u3247\u3250-\u32FE\u3300-\u4DBF\u4E00-\uA48C\uA490-\uA4C6\uA960-\uA97C\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFAFF\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE66\uFE68-\uFE6B\uFF01-\uFF60\uFFE0-\uFFE6]|[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Li=function(Ei,Ii,ki,Ti,Pi){if(Ii)return vi.showInvisibles?""+mi.stringRepeat(vi.SPACE_CHAR,Ei.length)+"":Ei;if(Ei=="&")return"&";if(Ei=="<")return"<";if(Ei==">")return">";if(Ei==" "){var ji=vi.session.getScreenTabSize(ci+Ti);return ci+=ji-1,vi.$tabStrings[ji]}else if(Ei==" "){var Di=vi.showInvisibles?"ace_cjk ace_invisible ace_invisible_space":"ace_cjk",Ni=vi.showInvisibles?vi.SPACE_CHAR:"";return ci+=1,""+Ni+""}else return ki?""+vi.SPACE_CHAR+"":(ci+=1,""+Ei+"")},Bi=bi.replace(Ai,Li);if(this.$textToken[pi.type])li.push(Bi);else{var Ri="ace_"+pi.type.replace(/\./g," ace_"),zi="";pi.type=="fold"&&(zi=" style='width:"+pi.value.length*this.config.characterWidth+"px;' "),li.push("",Bi,"")}return ci+bi.length},this.renderIndentGuide=function(li,ci,pi){var bi=ci.search(this.$indentGuideRe);return bi<=0||bi>=pi?ci:ci[0]==" "?(bi-=bi%this.tabSize,li.push(mi.stringRepeat(this.$tabStrings[" "],bi/this.tabSize)),ci.substr(bi)):ci[0]==" "?(li.push(mi.stringRepeat(this.$tabStrings[" "],bi)),ci.substr(bi)):ci},this.$renderWrappedLine=function(li,ci,pi,bi){for(var vi=0,Ai=0,Li=pi[0],Bi=0,Ri=0;Ri=Li;)Bi=this.$renderToken(li,Bi,zi,Ei.substring(0,Li-vi)),Ei=Ei.substring(Li-vi),vi=Li,bi||li.push("","
"),li.push(mi.stringRepeat(" ",pi.indent)),Ai++,Bi=0,Li=pi[Ai]||Number.MAX_VALUE;Ei.length!=0&&(vi+=Ei.length,Bi=this.$renderToken(li,Bi,zi,Ei))}}},this.$renderSimpleLine=function(li,ci){var pi=0,bi=ci[0],vi=bi.value;this.displayIndentGuides&&(vi=this.renderIndentGuide(li,vi)),vi&&(pi=this.$renderToken(li,pi,bi,vi));for(var Ai=1;Ai"),vi.length){var Ai=this.session.getRowSplitData(ci);Ai&&Ai.length?this.$renderWrappedLine(li,vi,Ai,pi):this.$renderSimpleLine(li,vi)}this.showInvisibles&&(bi&&(ci=bi.end.row),li.push("",ci==this.session.getLength()-1?this.EOF_CHAR:this.EOL_CHAR,"")),pi||li.push("
")},this.$getFoldLineTokens=function(li,ci){var pi=this.session,bi=[];function vi(Li,Bi,Ri){for(var zi=0,Ei=0;Ei+Li[zi].value.lengthRi-Bi&&(Ii=Ii.substring(0,Ri-Bi)),bi.push({type:Li[zi].type,value:Ii}),Ei=Bi+Ii.length,zi+=1}for(;EiRi?bi.push({type:Li[zi].type,value:Ii.substring(0,Ri-Ei)}):bi.push(Li[zi]),Ei+=Ii.length,zi+=1}}var Ai=pi.getTokens(li);return ci.walk(function(Li,Bi,Ri,zi,Ei){Li!=null?bi.push({type:"fold",value:Li}):(Ei&&(Ai=pi.getTokens(Bi)),Ai.length&&vi(Ai,zi,Ri))},ci.end.row,this.session.getLine(ci.end.row).length),bi},this.$useLineGroups=function(){return this.session.getUseWrapMode()},this.destroy=function(){clearInterval(this.$pollSizeChangesTimer),this.$measureNode&&this.$measureNode.parentNode.removeChild(this.$measureNode),delete this.$measureNode}}).call(di.prototype),ni.Text=di});ace.define("ace/layer/cursor",["require","exports","module","ace/lib/dom"],function(ti,ni,oi){var ui=ti("../lib/dom"),fi,mi=function(gi){this.element=ui.createElement("div"),this.element.className="ace_layer ace_cursor-layer",gi.appendChild(this.element),fi===void 0&&(fi=!("opacity"in this.element.style)),this.isVisible=!1,this.isBlinking=!0,this.blinkInterval=1e3,this.smoothBlinking=!1,this.cursors=[],this.cursor=this.addCursor(),ui.addCssClass(this.element,"ace_hidden-cursors"),this.$updateCursors=(fi?this.$updateVisibility:this.$updateOpacity).bind(this)};(function(){this.$updateVisibility=function(gi){for(var di=this.cursors,li=di.length;li--;)di[li].style.visibility=gi?"":"hidden"},this.$updateOpacity=function(gi){for(var di=this.cursors,li=di.length;li--;)di[li].style.opacity=gi?"":"0"},this.$padding=0,this.setPadding=function(gi){this.$padding=gi},this.setSession=function(gi){this.session=gi},this.setBlinking=function(gi){gi!=this.isBlinking&&(this.isBlinking=gi,this.restartTimer())},this.setBlinkInterval=function(gi){gi!=this.blinkInterval&&(this.blinkInterval=gi,this.restartTimer())},this.setSmoothBlinking=function(gi){gi!=this.smoothBlinking&&!fi&&(this.smoothBlinking=gi,ui.setCssClass(this.element,"ace_smooth-blinking",gi),this.$updateCursors(!0),this.$updateCursors=this.$updateOpacity.bind(this),this.restartTimer())},this.addCursor=function(){var gi=ui.createElement("div");return gi.className="ace_cursor",this.element.appendChild(gi),this.cursors.push(gi),gi},this.removeCursor=function(){if(this.cursors.length>1){var gi=this.cursors.pop();return gi.parentNode.removeChild(gi),gi}},this.hideCursor=function(){this.isVisible=!1,ui.addCssClass(this.element,"ace_hidden-cursors"),this.restartTimer()},this.showCursor=function(){this.isVisible=!0,ui.removeCssClass(this.element,"ace_hidden-cursors"),this.restartTimer()},this.restartTimer=function(){var gi=this.$updateCursors;if(clearInterval(this.intervalId),clearTimeout(this.timeoutId),this.smoothBlinking&&ui.removeCssClass(this.element,"ace_smooth-blinking"),gi(!0),!(!this.isBlinking||!this.blinkInterval||!this.isVisible)){this.smoothBlinking&&setTimeout((function(){ui.addCssClass(this.element,"ace_smooth-blinking")}).bind(this));var di=(function(){this.timeoutId=setTimeout(function(){gi(!1)},.6*this.blinkInterval)}).bind(this);this.intervalId=setInterval(function(){gi(!0),di()},this.blinkInterval),di()}},this.getPixelPosition=function(gi,di){if(!this.config||!this.session)return{left:0,top:0};gi||(gi=this.session.selection.getCursor());var li=this.session.documentToScreenPosition(gi),ci=this.$padding+(this.session.$bidiHandler.isBidiRow(li.row,gi.row)?this.session.$bidiHandler.getPosLeft(li.column):li.column*this.config.characterWidth),pi=(li.row-(di?this.config.firstRowScreen:0))*this.config.lineHeight;return{left:ci,top:pi}},this.update=function(gi){this.config=gi;var di=this.session.$selectionMarkers,li=0,ci=0;(di===void 0||di.length===0)&&(di=[{cursor:null}]);for(var li=0,pi=di.length;ligi.height+gi.offset||bi.top<0)&&li>1)){var vi=(this.cursors[ci++]||this.addCursor()).style;this.drawCursor?this.drawCursor(vi,bi,gi,di[li],this.session):(vi.left=bi.left+"px",vi.top=bi.top+"px",vi.width=gi.characterWidth+"px",vi.height=gi.lineHeight+"px")}}for(;this.cursors.length>ci;)this.removeCursor();var Ai=this.session.getOverwrite();this.$setOverwrite(Ai),this.$pixelPos=bi,this.restartTimer()},this.drawCursor=null,this.$setOverwrite=function(gi){gi!=this.overwrite&&(this.overwrite=gi,gi?ui.addCssClass(this.element,"ace_overwrite-cursors"):ui.removeCssClass(this.element,"ace_overwrite-cursors"))},this.destroy=function(){clearInterval(this.intervalId),clearTimeout(this.timeoutId)}}).call(mi.prototype),ni.Cursor=mi});ace.define("ace/scrollbar",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/event","ace/lib/event_emitter"],function(ti,ni,oi){var ui=ti("./lib/oop"),fi=ti("./lib/dom"),mi=ti("./lib/event"),gi=ti("./lib/event_emitter").EventEmitter,di=32768,li=function(bi){this.element=fi.createElement("div"),this.element.className="ace_scrollbar ace_scrollbar"+this.classSuffix,this.inner=fi.createElement("div"),this.inner.className="ace_scrollbar-inner",this.element.appendChild(this.inner),bi.appendChild(this.element),this.setVisible(!1),this.skipEvent=!1,mi.addListener(this.element,"scroll",this.onScroll.bind(this)),mi.addListener(this.element,"mousedown",mi.preventDefault)};(function(){ui.implement(this,gi),this.setVisible=function(bi){this.element.style.display=bi?"":"none",this.isVisible=bi,this.coeff=1}}).call(li.prototype);var ci=function(bi,vi){li.call(this,bi),this.scrollTop=0,this.scrollHeight=0,vi.$scrollbarWidth=this.width=fi.scrollbarWidth(bi.ownerDocument),this.inner.style.width=this.element.style.width=(this.width||15)+5+"px",this.$minWidth=0};ui.inherits(ci,li),(function(){this.classSuffix="-v",this.onScroll=function(){if(!this.skipEvent){if(this.scrollTop=this.element.scrollTop,this.coeff!=1){var bi=this.element.clientHeight/this.scrollHeight;this.scrollTop=this.scrollTop*(1-bi)/(this.coeff-bi)}this._emit("scroll",{data:this.scrollTop})}this.skipEvent=!1},this.getWidth=function(){return Math.max(this.isVisible?this.width:0,this.$minWidth||0)},this.setHeight=function(bi){this.element.style.height=bi+"px"},this.setInnerHeight=this.setScrollHeight=function(bi){this.scrollHeight=bi,bi>di?(this.coeff=di/bi,bi=di):this.coeff!=1&&(this.coeff=1),this.inner.style.height=bi+"px"},this.setScrollTop=function(bi){this.scrollTop!=bi&&(this.skipEvent=!0,this.scrollTop=bi,this.element.scrollTop=bi*this.coeff)}}).call(ci.prototype);var pi=function(bi,vi){li.call(this,bi),this.scrollLeft=0,this.height=vi.$scrollbarWidth,this.inner.style.height=this.element.style.height=(this.height||15)+5+"px"};ui.inherits(pi,li),(function(){this.classSuffix="-h",this.onScroll=function(){this.skipEvent||(this.scrollLeft=this.element.scrollLeft,this._emit("scroll",{data:this.scrollLeft})),this.skipEvent=!1},this.getHeight=function(){return this.isVisible?this.height:0},this.setWidth=function(bi){this.element.style.width=bi+"px"},this.setInnerWidth=function(bi){this.inner.style.width=bi+"px"},this.setScrollWidth=function(bi){this.inner.style.width=bi+"px"},this.setScrollLeft=function(bi){this.scrollLeft!=bi&&(this.skipEvent=!0,this.scrollLeft=this.element.scrollLeft=bi)}}).call(pi.prototype),ni.ScrollBar=ci,ni.ScrollBarV=ci,ni.ScrollBarH=pi,ni.VScrollBar=ci,ni.HScrollBar=pi});ace.define("ace/renderloop",["require","exports","module","ace/lib/event"],function(ti,ni,oi){var ui=ti("./lib/event"),fi=function(mi,gi){this.onRender=mi,this.pending=!1,this.changes=0,this.window=gi||window};(function(){this.schedule=function(mi){if(this.changes=this.changes|mi,!this.pending&&this.changes){this.pending=!0;var gi=this;ui.nextFrame(function(){gi.pending=!1;for(var di;di=gi.changes;)gi.changes=0,gi.onRender(di)},this.window)}}}).call(fi.prototype),ni.RenderLoop=fi});ace.define("ace/layer/font_metrics",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/lang","ace/lib/useragent","ace/lib/event_emitter"],function(ti,ni,oi){var ui=ti("../lib/oop"),fi=ti("../lib/dom"),mi=ti("../lib/lang"),gi=ti("../lib/useragent"),di=ti("../lib/event_emitter").EventEmitter,li=0,ci=ni.FontMetrics=function(pi){this.el=fi.createElement("div"),this.$setMeasureNodeStyles(this.el.style,!0),this.$main=fi.createElement("div"),this.$setMeasureNodeStyles(this.$main.style),this.$measureNode=fi.createElement("div"),this.$setMeasureNodeStyles(this.$measureNode.style),this.el.appendChild(this.$main),this.el.appendChild(this.$measureNode),pi.appendChild(this.el),li||this.$testFractionalRect(),this.$measureNode.innerHTML=mi.stringRepeat("X",li),this.$characterSize={width:0,height:0},this.checkForSizeChanges()};(function(){ui.implement(this,di),this.$characterSize={width:0,height:0},this.$testFractionalRect=function(){var pi=fi.createElement("div");this.$setMeasureNodeStyles(pi.style),pi.style.width="0.2px",document.documentElement.appendChild(pi);var bi=pi.getBoundingClientRect().width;bi>0&&bi<1?li=50:li=100,pi.parentNode.removeChild(pi)},this.$setMeasureNodeStyles=function(pi,bi){pi.width=pi.height="auto",pi.left=pi.top="0px",pi.visibility="hidden",pi.position="absolute",pi.whiteSpace="pre",gi.isIE<8?pi["font-family"]="inherit":pi.font="inherit",pi.overflow=bi?"hidden":"visible"},this.checkForSizeChanges=function(){var pi=this.$measureSizes();if(pi&&(this.$characterSize.width!==pi.width||this.$characterSize.height!==pi.height)){this.$measureNode.style.fontWeight="bold";var bi=this.$measureSizes();this.$measureNode.style.fontWeight="",this.$characterSize=pi,this.charSizes=Object.create(null),this.allowBoldFonts=bi&&bi.width===pi.width&&bi.height===pi.height,this._emit("changeCharacterSize",{data:pi})}},this.$pollSizeChanges=function(){if(this.$pollSizeChangesTimer)return this.$pollSizeChangesTimer;var pi=this;return this.$pollSizeChangesTimer=setInterval(function(){pi.checkForSizeChanges()},500)},this.setPolling=function(pi){pi?this.$pollSizeChanges():this.$pollSizeChangesTimer&&(clearInterval(this.$pollSizeChangesTimer),this.$pollSizeChangesTimer=0)},this.$measureSizes=function(){if(li===50){var pi=null;try{pi=this.$measureNode.getBoundingClientRect()}catch{pi={width:0,height:0}}var bi={height:pi.height,width:pi.width/li}}else var bi={height:this.$measureNode.clientHeight,width:this.$measureNode.clientWidth/li};return bi.width===0||bi.height===0?null:bi},this.$measureCharWidth=function(pi){this.$main.innerHTML=mi.stringRepeat(pi,li);var bi=this.$main.getBoundingClientRect();return bi.width/li},this.getCharacterWidth=function(pi){var bi=this.charSizes[pi];return bi===void 0&&(bi=this.charSizes[pi]=this.$measureCharWidth(pi)/this.$characterSize.width),bi},this.destroy=function(){clearInterval(this.$pollSizeChangesTimer),this.el&&this.el.parentNode&&this.el.parentNode.removeChild(this.el)}}).call(ci.prototype)});ace.define("ace/virtual_renderer",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/config","ace/lib/useragent","ace/layer/gutter","ace/layer/marker","ace/layer/text","ace/layer/cursor","ace/scrollbar","ace/scrollbar","ace/renderloop","ace/layer/font_metrics","ace/lib/event_emitter"],function(ti,ni,oi){var ui=ti("./lib/oop"),fi=ti("./lib/dom"),mi=ti("./config"),gi=ti("./lib/useragent"),di=ti("./layer/gutter").Gutter,li=ti("./layer/marker").Marker,ci=ti("./layer/text").Text,pi=ti("./layer/cursor").Cursor,bi=ti("./scrollbar").HScrollBar,vi=ti("./scrollbar").VScrollBar,Ai=ti("./renderloop").RenderLoop,Li=ti("./layer/font_metrics").FontMetrics,Bi=ti("./lib/event_emitter").EventEmitter,Ri=`.ace_editor {position: relative;overflow: hidden;font: 12px/normal 'Monaco', 'Menlo', 'Ubuntu Mono', 'Consolas', 'source-code-pro', monospace;direction: ltr;text-align: left;-webkit-tap-highlight-color: rgba(0, 0, 0, 0);}.ace_scroller {position: absolute;overflow: hidden;top: 0;bottom: 0;background-color: inherit;-ms-user-select: none;-moz-user-select: none;-webkit-user-select: none;user-select: none;cursor: text;}.ace_content {position: absolute;-moz-box-sizing: border-box;-webkit-box-sizing: border-box;box-sizing: border-box;min-width: 100%;}.ace_dragging .ace_scroller:before{position: absolute;top: 0;left: 0;right: 0;bottom: 0;content: '';background: rgba(250, 250, 250, 0.01);z-index: 1000;}.ace_dragging.ace_dark .ace_scroller:before{background: rgba(0, 0, 0, 0.01);}.ace_selecting, .ace_selecting * {cursor: text !important;}.ace_gutter {position: absolute;overflow : hidden;width: auto;top: 0;bottom: 0;left: 0;cursor: default;z-index: 4;-ms-user-select: none;-moz-user-select: none;-webkit-user-select: none;user-select: none;}.ace_gutter-active-line {position: absolute;left: 0;right: 0;}.ace_scroller.ace_scroll-left {box-shadow: 17px 0 16px -16px rgba(0, 0, 0, 0.4) inset;}.ace_gutter-cell {padding-left: 19px;padding-right: 6px;background-repeat: no-repeat;}.ace_gutter-cell.ace_error {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAABOFBMVEX/////////QRswFAb/Ui4wFAYwFAYwFAaWGAfDRymzOSH/PxswFAb/SiUwFAYwFAbUPRvjQiDllog5HhHdRybsTi3/Tyv9Tir+Syj/UC3////XurebMBIwFAb/RSHbPx/gUzfdwL3kzMivKBAwFAbbvbnhPx66NhowFAYwFAaZJg8wFAaxKBDZurf/RB6mMxb/SCMwFAYwFAbxQB3+RB4wFAb/Qhy4Oh+4QifbNRcwFAYwFAYwFAb/QRzdNhgwFAYwFAbav7v/Uy7oaE68MBK5LxLewr/r2NXewLswFAaxJw4wFAbkPRy2PyYwFAaxKhLm1tMwFAazPiQwFAaUGAb/QBrfOx3bvrv/VC/maE4wFAbRPBq6MRO8Qynew8Dp2tjfwb0wFAbx6eju5+by6uns4uH9/f36+vr/GkHjAAAAYnRSTlMAGt+64rnWu/bo8eAA4InH3+DwoN7j4eLi4xP99Nfg4+b+/u9B/eDs1MD1mO7+4PHg2MXa347g7vDizMLN4eG+Pv7i5evs/v79yu7S3/DV7/498Yv24eH+4ufQ3Ozu/v7+y13sRqwAAADLSURBVHjaZc/XDsFgGIBhtDrshlitmk2IrbHFqL2pvXf/+78DPokj7+Fz9qpU/9UXJIlhmPaTaQ6QPaz0mm+5gwkgovcV6GZzd5JtCQwgsxoHOvJO15kleRLAnMgHFIESUEPmawB9ngmelTtipwwfASilxOLyiV5UVUyVAfbG0cCPHig+GBkzAENHS0AstVF6bacZIOzgLmxsHbt2OecNgJC83JERmePUYq8ARGkJx6XtFsdddBQgZE2nPR6CICZhawjA4Fb/chv+399kfR+MMMDGOQAAAABJRU5ErkJggg==");background-repeat: no-repeat;background-position: 2px center;}.ace_gutter-cell.ace_warning {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAAAmVBMVEX///8AAAD///8AAAAAAABPSzb/5sAAAAB/blH/73z/ulkAAAAAAAD85pkAAAAAAAACAgP/vGz/rkDerGbGrV7/pkQICAf////e0IsAAAD/oED/qTvhrnUAAAD/yHD/njcAAADuv2r/nz//oTj/p064oGf/zHAAAAA9Nir/tFIAAAD/tlTiuWf/tkIAAACynXEAAAAAAAAtIRW7zBpBAAAAM3RSTlMAABR1m7RXO8Ln31Z36zT+neXe5OzooRDfn+TZ4p3h2hTf4t3k3ucyrN1K5+Xaks52Sfs9CXgrAAAAjklEQVR42o3PbQ+CIBQFYEwboPhSYgoYunIqqLn6/z8uYdH8Vmdnu9vz4WwXgN/xTPRD2+sgOcZjsge/whXZgUaYYvT8QnuJaUrjrHUQreGczuEafQCO/SJTufTbroWsPgsllVhq3wJEk2jUSzX3CUEDJC84707djRc5MTAQxoLgupWRwW6UB5fS++NV8AbOZgnsC7BpEAAAAABJRU5ErkJggg==");background-position: 2px center;}.ace_gutter-cell.ace_info {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAAAAAA6mKC9AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAAJ0Uk5TAAB2k804AAAAPklEQVQY02NgIB68QuO3tiLznjAwpKTgNyDbMegwisCHZUETUZV0ZqOquBpXj2rtnpSJT1AEnnRmL2OgGgAAIKkRQap2htgAAAAASUVORK5CYII=");background-position: 2px center;}.ace_dark .ace_gutter-cell.ace_info {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQBAMAAADt3eJSAAAAJFBMVEUAAAChoaGAgIAqKiq+vr6tra1ZWVmUlJSbm5s8PDxubm56enrdgzg3AAAAAXRSTlMAQObYZgAAAClJREFUeNpjYMAPdsMYHegyJZFQBlsUlMFVCWUYKkAZMxZAGdxlDMQBAG+TBP4B6RyJAAAAAElFTkSuQmCC");}.ace_scrollbar {position: absolute;right: 0;bottom: 0;z-index: 6;}.ace_scrollbar-inner {position: absolute;cursor: text;left: 0;top: 0;}.ace_scrollbar-v{overflow-x: hidden;overflow-y: scroll;top: 0;}.ace_scrollbar-h {overflow-x: scroll;overflow-y: hidden;left: 0;}.ace_print-margin {position: absolute;height: 100%;}.ace_text-input {position: absolute;z-index: 0;width: 0.5em;height: 1em;opacity: 0;background: transparent;-moz-appearance: none;appearance: none;border: none;resize: none;outline: none;overflow: hidden;font: inherit;padding: 0 1px;margin: 0 -1px;text-indent: -1em;-ms-user-select: text;-moz-user-select: text;-webkit-user-select: text;user-select: text;white-space: pre!important;}.ace_text-input.ace_composition {background: inherit;color: inherit;z-index: 1000;opacity: 1;text-indent: 0;}.ace_layer {z-index: 1;position: absolute;overflow: hidden;word-wrap: normal;white-space: pre;height: 100%;width: 100%;-moz-box-sizing: border-box;-webkit-box-sizing: border-box;box-sizing: border-box;pointer-events: none;}.ace_gutter-layer {position: relative;width: auto;text-align: right;pointer-events: auto;}.ace_text-layer {font: inherit !important;}.ace_cjk {display: inline-block;text-align: center;}.ace_cursor-layer {z-index: 4;}.ace_cursor {z-index: 4;position: absolute;-moz-box-sizing: border-box;-webkit-box-sizing: border-box;box-sizing: border-box;border-left: 2px solid;transform: translatez(0);}.ace_multiselect .ace_cursor {border-left-width: 1px;}.ace_slim-cursors .ace_cursor {border-left-width: 1px;}.ace_overwrite-cursors .ace_cursor {border-left-width: 0;border-bottom: 1px solid;}.ace_hidden-cursors .ace_cursor {opacity: 0.2;}.ace_smooth-blinking .ace_cursor {-webkit-transition: opacity 0.18s;transition: opacity 0.18s;}.ace_marker-layer .ace_step, .ace_marker-layer .ace_stack {position: absolute;z-index: 3;}.ace_marker-layer .ace_selection {position: absolute;z-index: 5;}.ace_marker-layer .ace_bracket {position: absolute;z-index: 6;}.ace_marker-layer .ace_active-line {position: absolute;z-index: 2;}.ace_marker-layer .ace_selected-word {position: absolute;z-index: 4;-moz-box-sizing: border-box;-webkit-box-sizing: border-box;box-sizing: border-box;}.ace_line .ace_fold {-moz-box-sizing: border-box;-webkit-box-sizing: border-box;box-sizing: border-box;display: inline-block;height: 11px;margin-top: -2px;vertical-align: middle;background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABEAAAAJCAYAAADU6McMAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAJpJREFUeNpi/P//PwOlgAXGYGRklAVSokD8GmjwY1wasKljQpYACtpCFeADcHVQfQyMQAwzwAZI3wJKvCLkfKBaMSClBlR7BOQikCFGQEErIH0VqkabiGCAqwUadAzZJRxQr/0gwiXIal8zQQPnNVTgJ1TdawL0T5gBIP1MUJNhBv2HKoQHHjqNrA4WO4zY0glyNKLT2KIfIMAAQsdgGiXvgnYAAAAASUVORK5CYII="),url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAA3CAYAAADNNiA5AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAACJJREFUeNpi+P//fxgTAwPDBxDxD078RSX+YeEyDFMCIMAAI3INmXiwf2YAAAAASUVORK5CYII=");background-repeat: no-repeat, repeat-x;background-position: center center, top left;color: transparent;border: 1px solid black;border-radius: 2px;cursor: pointer;pointer-events: auto;}.ace_dark .ace_fold {}.ace_fold:hover{background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABEAAAAJCAYAAADU6McMAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAJpJREFUeNpi/P//PwOlgAXGYGRklAVSokD8GmjwY1wasKljQpYACtpCFeADcHVQfQyMQAwzwAZI3wJKvCLkfKBaMSClBlR7BOQikCFGQEErIH0VqkabiGCAqwUadAzZJRxQr/0gwiXIal8zQQPnNVTgJ1TdawL0T5gBIP1MUJNhBv2HKoQHHjqNrA4WO4zY0glyNKLT2KIfIMAAQsdgGiXvgnYAAAAASUVORK5CYII="),url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAA3CAYAAADNNiA5AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAACBJREFUeNpi+P//fz4TAwPDZxDxD5X4i5fLMEwJgAADAEPVDbjNw87ZAAAAAElFTkSuQmCC");}.ace_tooltip {background-color: #FFF;background-image: -webkit-linear-gradient(top, transparent, rgba(0, 0, 0, 0.1));background-image: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.1));border: 1px solid gray;border-radius: 1px;box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);color: black;max-width: 100%;padding: 3px 4px;position: fixed;z-index: 999999;-moz-box-sizing: border-box;-webkit-box-sizing: border-box;box-sizing: border-box;cursor: default;white-space: pre;word-wrap: break-word;line-height: normal;font-style: normal;font-weight: normal;letter-spacing: normal;pointer-events: none;}.ace_folding-enabled > .ace_gutter-cell {padding-right: 13px;}.ace_fold-widget {-moz-box-sizing: border-box;-webkit-box-sizing: border-box;box-sizing: border-box;margin: 0 -12px 0 1px;display: none;width: 11px;vertical-align: top;background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAANElEQVR42mWKsQ0AMAzC8ixLlrzQjzmBiEjp0A6WwBCSPgKAXoLkqSot7nN3yMwR7pZ32NzpKkVoDBUxKAAAAABJRU5ErkJggg==");background-repeat: no-repeat;background-position: center;border-radius: 3px;border: 1px solid transparent;cursor: pointer;}.ace_folding-enabled .ace_fold-widget {display: inline-block; }.ace_fold-widget.ace_end {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAANElEQVR42m3HwQkAMAhD0YzsRchFKI7sAikeWkrxwScEB0nh5e7KTPWimZki4tYfVbX+MNl4pyZXejUO1QAAAABJRU5ErkJggg==");}.ace_fold-widget.ace_closed {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAMAAAAGCAYAAAAG5SQMAAAAOUlEQVR42jXKwQkAMAgDwKwqKD4EwQ26sSOkVWjgIIHAzPiCgaqiqnJHZnKICBERHN194O5b9vbLuAVRL+l0YWnZAAAAAElFTkSuQmCCXA==");}.ace_fold-widget:hover {border: 1px solid rgba(0, 0, 0, 0.3);background-color: rgba(255, 255, 255, 0.2);box-shadow: 0 1px 1px rgba(255, 255, 255, 0.7);}.ace_fold-widget:active {border: 1px solid rgba(0, 0, 0, 0.4);background-color: rgba(0, 0, 0, 0.05);box-shadow: 0 1px 1px rgba(255, 255, 255, 0.8);}.ace_dark .ace_fold-widget {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHklEQVQIW2P4//8/AzoGEQ7oGCaLLAhWiSwB146BAQCSTPYocqT0AAAAAElFTkSuQmCC");}.ace_dark .ace_fold-widget.ace_end {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAH0lEQVQIW2P4//8/AxQ7wNjIAjDMgC4AxjCVKBirIAAF0kz2rlhxpAAAAABJRU5ErkJggg==");}.ace_dark .ace_fold-widget.ace_closed {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAMAAAAFCAYAAACAcVaiAAAAHElEQVQIW2P4//+/AxAzgDADlOOAznHAKgPWAwARji8UIDTfQQAAAABJRU5ErkJggg==");}.ace_dark .ace_fold-widget:hover {box-shadow: 0 1px 1px rgba(255, 255, 255, 0.2);background-color: rgba(255, 255, 255, 0.1);}.ace_dark .ace_fold-widget:active {box-shadow: 0 1px 1px rgba(255, 255, 255, 0.2);}.ace_fold-widget.ace_invalid {background-color: #FFB4B4;border-color: #DE5555;}.ace_fade-fold-widgets .ace_fold-widget {-webkit-transition: opacity 0.4s ease 0.05s;transition: opacity 0.4s ease 0.05s;opacity: 0;}.ace_fade-fold-widgets:hover .ace_fold-widget {-webkit-transition: opacity 0.05s ease 0.05s;transition: opacity 0.05s ease 0.05s;opacity:1;}.ace_underline {text-decoration: underline;}.ace_bold {font-weight: bold;}.ace_nobold .ace_bold {font-weight: normal;}.ace_italic {font-style: italic;}.ace_error-marker {background-color: rgba(255, 0, 0,0.2);position: absolute;z-index: 9;}.ace_highlight-marker {background-color: rgba(255, 255, 0,0.2);position: absolute;z-index: 8;}.ace_br1 {border-top-left-radius : 3px;}.ace_br2 {border-top-right-radius : 3px;}.ace_br3 {border-top-left-radius : 3px; border-top-right-radius: 3px;}.ace_br4 {border-bottom-right-radius: 3px;}.ace_br5 {border-top-left-radius : 3px; border-bottom-right-radius: 3px;}.ace_br6 {border-top-right-radius : 3px; border-bottom-right-radius: 3px;}.ace_br7 {border-top-left-radius : 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px;}.ace_br8 {border-bottom-left-radius : 3px;}.ace_br9 {border-top-left-radius : 3px; border-bottom-left-radius: 3px;}.ace_br10{border-top-right-radius : 3px; border-bottom-left-radius: 3px;}.ace_br11{border-top-left-radius : 3px; border-top-right-radius: 3px; border-bottom-left-radius: 3px;}.ace_br12{border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}.ace_br13{border-top-left-radius : 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}.ace_br14{border-top-right-radius : 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}.ace_br15{border-top-left-radius : 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}.ace_text-input-ios {position: absolute !important;top: -100000px !important;left: -100000px !important;}`;fi.importCssString(Ri,"ace_editor.css");var zi=function(Ei,Ii){var ki=this;this.container=Ei||fi.createElement("div"),this.$keepTextAreaAtCursor=!gi.isOldIE,fi.addCssClass(this.container,"ace_editor"),this.setTheme(Ii),this.$gutter=fi.createElement("div"),this.$gutter.className="ace_gutter",this.container.appendChild(this.$gutter),this.$gutter.setAttribute("aria-hidden",!0),this.scroller=fi.createElement("div"),this.scroller.className="ace_scroller",this.container.appendChild(this.scroller),this.content=fi.createElement("div"),this.content.className="ace_content",this.scroller.appendChild(this.content),this.$gutterLayer=new di(this.$gutter),this.$gutterLayer.on("changeGutterWidth",this.onGutterResize.bind(this)),this.$markerBack=new li(this.content);var Ti=this.$textLayer=new ci(this.content);this.canvas=Ti.element,this.$markerFront=new li(this.content),this.$cursorLayer=new pi(this.content),this.$horizScroll=!1,this.$vScroll=!1,this.scrollBar=this.scrollBarV=new vi(this.container,this),this.scrollBarH=new bi(this.container,this),this.scrollBarV.addEventListener("scroll",function(Pi){ki.$scrollAnimation||ki.session.setScrollTop(Pi.data-ki.scrollMargin.top)}),this.scrollBarH.addEventListener("scroll",function(Pi){ki.$scrollAnimation||ki.session.setScrollLeft(Pi.data-ki.scrollMargin.left)}),this.scrollTop=0,this.scrollLeft=0,this.cursorPos={row:0,column:0},this.$fontMetrics=new Li(this.container),this.$textLayer.$setFontMetrics(this.$fontMetrics),this.$textLayer.addEventListener("changeCharacterSize",function(Pi){ki.updateCharacterSize(),ki.onResize(!0,ki.gutterWidth,ki.$size.width,ki.$size.height),ki._signal("changeCharacterSize",Pi)}),this.$size={width:0,height:0,scrollerHeight:0,scrollerWidth:0,$dirty:!0},this.layerConfig={width:1,padding:0,firstRow:0,firstRowScreen:0,lastRow:0,lineHeight:0,characterWidth:0,minHeight:1,maxHeight:1,offset:0,height:1,gutterOffset:1},this.scrollMargin={left:0,right:0,top:0,bottom:0,v:0,h:0},this.$loop=new Ai(this.$renderChanges.bind(this),this.container.ownerDocument.defaultView),this.$loop.schedule(this.CHANGE_FULL),this.updateCharacterSize(),this.setPadding(4),mi.resetOptions(this),mi._emit("renderer",this)};(function(){this.CHANGE_CURSOR=1,this.CHANGE_MARKER=2,this.CHANGE_GUTTER=4,this.CHANGE_SCROLL=8,this.CHANGE_LINES=16,this.CHANGE_TEXT=32,this.CHANGE_SIZE=64,this.CHANGE_MARKER_BACK=128,this.CHANGE_MARKER_FRONT=256,this.CHANGE_FULL=512,this.CHANGE_H_SCROLL=1024,ui.implement(this,Bi),this.updateCharacterSize=function(){this.$textLayer.allowBoldFonts!=this.$allowBoldFonts&&(this.$allowBoldFonts=this.$textLayer.allowBoldFonts,this.setStyle("ace_nobold",!this.$allowBoldFonts)),this.layerConfig.characterWidth=this.characterWidth=this.$textLayer.getCharacterWidth(),this.layerConfig.lineHeight=this.lineHeight=this.$textLayer.getLineHeight(),this.$updatePrintMargin()},this.setSession=function(Ei){this.session&&this.session.doc.off("changeNewLineMode",this.onChangeNewLineMode),this.session=Ei,Ei&&this.scrollMargin.top&&Ei.getScrollTop()<=0&&Ei.setScrollTop(-this.scrollMargin.top),this.$cursorLayer.setSession(Ei),this.$markerBack.setSession(Ei),this.$markerFront.setSession(Ei),this.$gutterLayer.setSession(Ei),this.$textLayer.setSession(Ei),Ei&&(this.$loop.schedule(this.CHANGE_FULL),this.session.$setFontMetrics(this.$fontMetrics),this.scrollBarH.scrollLeft=this.scrollBarV.scrollTop=null,this.onChangeNewLineMode=this.onChangeNewLineMode.bind(this),this.onChangeNewLineMode(),this.session.doc.on("changeNewLineMode",this.onChangeNewLineMode))},this.updateLines=function(Ei,Ii,ki){if(Ii===void 0&&(Ii=1/0),this.$changedLines?(this.$changedLines.firstRow>Ei&&(this.$changedLines.firstRow=Ei),this.$changedLines.lastRowthis.layerConfig.lastRow||this.$loop.schedule(this.CHANGE_LINES)},this.onChangeNewLineMode=function(){this.$loop.schedule(this.CHANGE_TEXT),this.$textLayer.$updateEolChar(),this.session.$bidiHandler.setEolChar(this.$textLayer.EOL_CHAR)},this.onChangeTabSize=function(){this.$loop.schedule(this.CHANGE_TEXT|this.CHANGE_MARKER),this.$textLayer.onChangeTabSize()},this.updateText=function(){this.$loop.schedule(this.CHANGE_TEXT)},this.updateFull=function(Ei){Ei?this.$renderChanges(this.CHANGE_FULL,!0):this.$loop.schedule(this.CHANGE_FULL)},this.updateFontSize=function(){this.$textLayer.checkForSizeChanges()},this.$changes=0,this.$updateSizeAsync=function(){this.$loop.pending?this.$size.$dirty=!0:this.onResize()},this.onResize=function(Ei,Ii,ki,Ti){if(!(this.resizing>2)){this.resizing>0?this.resizing++:this.resizing=Ei?1:0;var Pi=this.container;Ti||(Ti=Pi.clientHeight||Pi.scrollHeight),ki||(ki=Pi.clientWidth||Pi.scrollWidth);var ji=this.$updateCachedSize(Ei,Ii,ki,Ti);if(!this.$size.scrollerHeight||!ki&&!Ti)return this.resizing=0;Ei&&(this.$gutterLayer.$padding=null),Ei?this.$renderChanges(ji|this.$changes,!0):this.$loop.schedule(ji|this.$changes),this.resizing&&(this.resizing=0),this.scrollBarV.scrollLeft=this.scrollBarV.scrollTop=null}},this.$updateCachedSize=function(Ei,Ii,ki,Ti){Ti-=this.$extraHeight||0;var Pi=0,ji=this.$size,Di={width:ji.width,height:ji.height,scrollerHeight:ji.scrollerHeight,scrollerWidth:ji.scrollerWidth};return Ti&&(Ei||ji.height!=Ti)&&(ji.height=Ti,Pi|=this.CHANGE_SIZE,ji.scrollerHeight=ji.height,this.$horizScroll&&(ji.scrollerHeight-=this.scrollBarH.getHeight()),this.scrollBarV.element.style.bottom=this.scrollBarH.getHeight()+"px",Pi=Pi|this.CHANGE_SCROLL),ki&&(Ei||ji.width!=ki)&&(Pi|=this.CHANGE_SIZE,ji.width=ki,Ii==null&&(Ii=this.$showGutter?this.$gutter.offsetWidth:0),this.gutterWidth=Ii,this.scrollBarH.element.style.left=this.scroller.style.left=Ii+"px",ji.scrollerWidth=Math.max(0,ki-Ii-this.scrollBarV.getWidth()),this.scrollBarH.element.style.right=this.scroller.style.right=this.scrollBarV.getWidth()+"px",this.scroller.style.bottom=this.scrollBarH.getHeight()+"px",(this.session&&this.session.getUseWrapMode()&&this.adjustWrapLimit()||Ei)&&(Pi|=this.CHANGE_FULL)),ji.$dirty=!ki||!Ti,Pi&&this._signal("resize",Di),Pi},this.onGutterResize=function(){var Ei=this.$showGutter?this.$gutter.offsetWidth:0;Ei!=this.gutterWidth&&(this.$changes|=this.$updateCachedSize(!0,Ei,this.$size.width,this.$size.height)),this.session.getUseWrapMode()&&this.adjustWrapLimit()?this.$loop.schedule(this.CHANGE_FULL):this.$size.$dirty?this.$loop.schedule(this.CHANGE_FULL):(this.$computeLayerConfig(),this.$loop.schedule(this.CHANGE_MARKER))},this.adjustWrapLimit=function(){var Ei=this.$size.scrollerWidth-this.$padding*2,Ii=Math.floor(Ei/this.characterWidth);return this.session.adjustWrapLimit(Ii,this.$showPrintMargin&&this.$printMarginColumn)},this.setAnimatedScroll=function(Ei){this.setOption("animatedScroll",Ei)},this.getAnimatedScroll=function(){return this.$animatedScroll},this.setShowInvisibles=function(Ei){this.setOption("showInvisibles",Ei),this.session.$bidiHandler.setShowInvisibles(Ei)},this.getShowInvisibles=function(){return this.getOption("showInvisibles")},this.getDisplayIndentGuides=function(){return this.getOption("displayIndentGuides")},this.setDisplayIndentGuides=function(Ei){this.setOption("displayIndentGuides",Ei)},this.setShowPrintMargin=function(Ei){this.setOption("showPrintMargin",Ei)},this.getShowPrintMargin=function(){return this.getOption("showPrintMargin")},this.setPrintMarginColumn=function(Ei){this.setOption("printMarginColumn",Ei)},this.getPrintMarginColumn=function(){return this.getOption("printMarginColumn")},this.getShowGutter=function(){return this.getOption("showGutter")},this.setShowGutter=function(Ei){return this.setOption("showGutter",Ei)},this.getFadeFoldWidgets=function(){return this.getOption("fadeFoldWidgets")},this.setFadeFoldWidgets=function(Ei){this.setOption("fadeFoldWidgets",Ei)},this.setHighlightGutterLine=function(Ei){this.setOption("highlightGutterLine",Ei)},this.getHighlightGutterLine=function(){return this.getOption("highlightGutterLine")},this.$updateGutterLineHighlight=function(){var Ei=this.$cursorLayer.$pixelPos,Ii=this.layerConfig.lineHeight;if(this.session.getUseWrapMode()){var ki=this.session.selection.getCursor();ki.column=0,Ei=this.$cursorLayer.getPixelPosition(ki,!0),Ii*=this.session.getRowLength(ki.row)}this.$gutterLineHighlight.style.top=Ei.top-this.layerConfig.offset+"px",this.$gutterLineHighlight.style.height=Ii+"px"},this.$updatePrintMargin=function(){if(!(!this.$showPrintMargin&&!this.$printMarginEl)){if(!this.$printMarginEl){var Ei=fi.createElement("div");Ei.className="ace_layer ace_print-margin-layer",this.$printMarginEl=fi.createElement("div"),this.$printMarginEl.className="ace_print-margin",Ei.appendChild(this.$printMarginEl),this.content.insertBefore(Ei,this.content.firstChild)}var Ii=this.$printMarginEl.style;Ii.left=this.characterWidth*this.$printMarginColumn+this.$padding+"px",Ii.visibility=this.$showPrintMargin?"visible":"hidden",this.session&&this.session.$wrap==-1&&this.adjustWrapLimit()}},this.getContainerElement=function(){return this.container},this.getMouseEventTarget=function(){return this.scroller},this.getTextAreaContainer=function(){return this.container},this.$moveTextAreaToCursor=function(){if(this.$keepTextAreaAtCursor){var Ei=this.layerConfig,Ii=this.$cursorLayer.$pixelPos.top,ki=this.$cursorLayer.$pixelPos.left;Ii-=Ei.offset;var Ti=this.textarea.style,Pi=this.lineHeight;if(Ii<0||Ii>Ei.height-Pi){Ti.top=Ti.left="0";return}var ji=this.characterWidth;if(this.$composition){var Di=this.textarea.value.replace(/^\x01+/,"");ji*=this.session.$getStringScreenWidth(Di)[0]+2,Pi+=2}ki-=this.scrollLeft,ki>this.$size.scrollerWidth-ji&&(ki=this.$size.scrollerWidth-ji),ki+=this.gutterWidth,Ti.height=Pi+"px",Ti.width=ji+"px",Ti.left=Math.min(ki,this.$size.scrollerWidth-ji)+"px",Ti.top=Math.min(Ii,this.$size.height-Pi)+"px"}},this.getFirstVisibleRow=function(){return this.layerConfig.firstRow},this.getFirstFullyVisibleRow=function(){return this.layerConfig.firstRow+(this.layerConfig.offset===0?0:1)},this.getLastFullyVisibleRow=function(){var Ei=this.layerConfig,Ii=Ei.lastRow,ki=this.session.documentToScreenRow(Ii,0)*Ei.lineHeight;return ki-this.session.getScrollTop()>Ei.height-Ei.lineHeight?Ii-1:Ii},this.getLastVisibleRow=function(){return this.layerConfig.lastRow},this.$padding=null,this.setPadding=function(Ei){this.$padding=Ei,this.$textLayer.setPadding(Ei),this.$cursorLayer.setPadding(Ei),this.$markerFront.setPadding(Ei),this.$markerBack.setPadding(Ei),this.$loop.schedule(this.CHANGE_FULL),this.$updatePrintMargin()},this.setScrollMargin=function(Ei,Ii,ki,Ti){var Pi=this.scrollMargin;Pi.top=Ei|0,Pi.bottom=Ii|0,Pi.right=Ti|0,Pi.left=ki|0,Pi.v=Pi.top+Pi.bottom,Pi.h=Pi.left+Pi.right,Pi.top&&this.scrollTop<=0&&this.session&&this.session.setScrollTop(-Pi.top),this.updateFull()},this.getHScrollBarAlwaysVisible=function(){return this.$hScrollBarAlwaysVisible},this.setHScrollBarAlwaysVisible=function(Ei){this.setOption("hScrollBarAlwaysVisible",Ei)},this.getVScrollBarAlwaysVisible=function(){return this.$vScrollBarAlwaysVisible},this.setVScrollBarAlwaysVisible=function(Ei){this.setOption("vScrollBarAlwaysVisible",Ei)},this.$updateScrollBarV=function(){var Ei=this.layerConfig.maxHeight,Ii=this.$size.scrollerHeight;!this.$maxLines&&this.$scrollPastEnd&&(Ei-=(Ii-this.lineHeight)*this.$scrollPastEnd,this.scrollTop>Ei-Ii&&(Ei=this.scrollTop+Ii,this.scrollBarV.scrollTop=null)),this.scrollBarV.setScrollHeight(Ei+this.scrollMargin.v),this.scrollBarV.setScrollTop(this.scrollTop+this.scrollMargin.top)},this.$updateScrollBarH=function(){this.scrollBarH.setScrollWidth(this.layerConfig.width+2*this.$padding+this.scrollMargin.h),this.scrollBarH.setScrollLeft(this.scrollLeft+this.scrollMargin.left)},this.$frozen=!1,this.freeze=function(){this.$frozen=!0},this.unfreeze=function(){this.$frozen=!1},this.$renderChanges=function(Ei,Ii){if(this.$changes&&(Ei|=this.$changes,this.$changes=0),!this.session||!this.container.offsetWidth||this.$frozen||!Ei&&!Ii){this.$changes|=Ei;return}if(this.$size.$dirty)return this.$changes|=Ei,this.onResize(!0);this.lineHeight||this.$textLayer.checkForSizeChanges(),this._signal("beforeRender"),this.session&&this.session.$bidiHandler&&this.session.$bidiHandler.updateCharacterWidths(this.$fontMetrics);var ki=this.layerConfig;if(Ei&this.CHANGE_FULL||Ei&this.CHANGE_SIZE||Ei&this.CHANGE_TEXT||Ei&this.CHANGE_LINES||Ei&this.CHANGE_SCROLL||Ei&this.CHANGE_H_SCROLL){if(Ei|=this.$computeLayerConfig(),ki.firstRow!=this.layerConfig.firstRow&&ki.firstRowScreen==this.layerConfig.firstRowScreen){var Ti=this.scrollTop+(ki.firstRow-this.layerConfig.firstRow)*this.lineHeight;Ti>0&&(this.scrollTop=Ti,Ei=Ei|this.CHANGE_SCROLL,Ei|=this.$computeLayerConfig())}ki=this.layerConfig,this.$updateScrollBarV(),Ei&this.CHANGE_H_SCROLL&&this.$updateScrollBarH(),this.$gutterLayer.element.style.marginTop=-ki.offset+"px",this.content.style.marginTop=-ki.offset+"px",this.content.style.width=ki.width+2*this.$padding+"px",this.content.style.height=ki.minHeight+"px"}if(Ei&this.CHANGE_H_SCROLL&&(this.content.style.marginLeft=-this.scrollLeft+"px",this.scroller.className=this.scrollLeft<=0?"ace_scroller":"ace_scroller ace_scroll-left"),Ei&this.CHANGE_FULL){this.$textLayer.update(ki),this.$showGutter&&this.$gutterLayer.update(ki),this.$markerBack.update(ki),this.$markerFront.update(ki),this.$cursorLayer.update(ki),this.$moveTextAreaToCursor(),this.$highlightGutterLine&&this.$updateGutterLineHighlight(),this._signal("afterRender");return}if(Ei&this.CHANGE_SCROLL){Ei&this.CHANGE_TEXT||Ei&this.CHANGE_LINES?this.$textLayer.update(ki):this.$textLayer.scrollLines(ki),this.$showGutter&&this.$gutterLayer.update(ki),this.$markerBack.update(ki),this.$markerFront.update(ki),this.$cursorLayer.update(ki),this.$highlightGutterLine&&this.$updateGutterLineHighlight(),this.$moveTextAreaToCursor(),this._signal("afterRender");return}Ei&this.CHANGE_TEXT?(this.$textLayer.update(ki),this.$showGutter&&this.$gutterLayer.update(ki)):Ei&this.CHANGE_LINES?(this.$updateLines()||Ei&this.CHANGE_GUTTER&&this.$showGutter)&&this.$gutterLayer.update(ki):(Ei&this.CHANGE_TEXT||Ei&this.CHANGE_GUTTER)&&this.$showGutter&&this.$gutterLayer.update(ki),Ei&this.CHANGE_CURSOR&&(this.$cursorLayer.update(ki),this.$moveTextAreaToCursor(),this.$highlightGutterLine&&this.$updateGutterLineHighlight()),Ei&(this.CHANGE_MARKER|this.CHANGE_MARKER_FRONT)&&this.$markerFront.update(ki),Ei&(this.CHANGE_MARKER|this.CHANGE_MARKER_BACK)&&this.$markerBack.update(ki),this._signal("afterRender")},this.$autosize=function(){var Ei=this.session.getScreenLength()*this.lineHeight,Ii=this.$maxLines*this.lineHeight,ki=Math.min(Ii,Math.max((this.$minLines||1)*this.lineHeight,Ei))+this.scrollMargin.v+(this.$extraHeight||0);this.$horizScroll&&(ki+=this.scrollBarH.getHeight()),this.$maxPixelHeight&&ki>this.$maxPixelHeight&&(ki=this.$maxPixelHeight);var Ti=Ei>Ii;if(ki!=this.desiredHeight||this.$size.height!=this.desiredHeight||Ti!=this.$vScroll){Ti!=this.$vScroll&&(this.$vScroll=Ti,this.scrollBarV.setVisible(Ti));var Pi=this.container.clientWidth;this.container.style.height=ki+"px",this.$updateCachedSize(!0,this.$gutterWidth,Pi,ki),this.desiredHeight=ki,this._signal("autosize")}},this.$computeLayerConfig=function(){var Ei=this.session,Ii=this.$size,ki=Ii.height<=2*this.lineHeight,Ti=this.session.getScreenLength(),Pi=Ti*this.lineHeight,ji=this.$getLongestLine(),Di=!ki&&(this.$hScrollBarAlwaysVisible||Ii.scrollerWidth-ji-2*this.$padding<0),Ni=this.$horizScroll!==Di;Ni&&(this.$horizScroll=Di,this.scrollBarH.setVisible(Di));var qi=this.$vScroll;this.$maxLines&&this.lineHeight>1&&this.$autosize();var Ji=this.scrollTop%this.lineHeight,sn=Ii.scrollerHeight+this.lineHeight,en=!this.$maxLines&&this.$scrollPastEnd?(Ii.scrollerHeight-this.lineHeight)*this.$scrollPastEnd:0;Pi+=en;var rn=this.scrollMargin;this.session.setScrollTop(Math.max(-rn.top,Math.min(this.scrollTop,Pi-Ii.scrollerHeight+rn.bottom))),this.session.setScrollLeft(Math.max(-rn.left,Math.min(this.scrollLeft,ji+2*this.$padding-Ii.scrollerWidth+rn.right)));var fn=!ki&&(this.$vScrollBarAlwaysVisible||Ii.scrollerHeight-Pi+en<0||this.scrollTop>rn.top),vn=qi!==fn;vn&&(this.$vScroll=fn,this.scrollBarV.setVisible(fn));var bn=Math.ceil(sn/this.lineHeight)-1,An=Math.max(0,Math.round((this.scrollTop-Ji)/this.lineHeight)),_n=An+bn,dn,tn,cn=this.lineHeight;An=Ei.screenToDocumentRow(An,0);var un=Ei.getFoldLine(An);un&&(An=un.start.row),dn=Ei.documentToScreenRow(An,0),tn=Ei.getRowLength(An)*cn,_n=Math.min(Ei.screenToDocumentRow(_n,0),Ei.getLength()-1),sn=Ii.scrollerHeight+Ei.getRowLength(_n)*cn+tn,Ji=this.scrollTop-dn*cn;var gn=0;return this.layerConfig.width!=ji&&(gn=this.CHANGE_H_SCROLL),(Ni||vn)&&(gn=this.$updateCachedSize(!0,this.gutterWidth,Ii.width,Ii.height),this._signal("scrollbarVisibilityChanged"),vn&&(ji=this.$getLongestLine())),this.layerConfig={width:ji,padding:this.$padding,firstRow:An,firstRowScreen:dn,lastRow:_n,lineHeight:cn,characterWidth:this.characterWidth,minHeight:sn,maxHeight:Pi,offset:Ji,gutterOffset:cn?Math.max(0,Math.ceil((Ji+Ii.height-Ii.scrollerHeight)/cn)):0,height:this.$size.scrollerHeight},gn},this.$updateLines=function(){if(this.$changedLines){var Ei=this.$changedLines.firstRow,Ii=this.$changedLines.lastRow;this.$changedLines=null;var ki=this.layerConfig;if(!(Ei>ki.lastRow+1)&&!(Iiji?(Ii&&qi+Di>ji+this.lineHeight&&(ji-=Ii*this.$size.scrollerHeight),ji===0&&(ji=-this.scrollMargin.top),this.session.setScrollTop(ji)):qi+this.$size.scrollerHeight-NiPi?(Pi=1-this.scrollMargin.top||Ii>0&&this.session.getScrollTop()+this.$size.scrollerHeight-this.layerConfig.maxHeight<-1+this.scrollMargin.bottom||Ei<0&&this.session.getScrollLeft()>=1-this.scrollMargin.left||Ei>0&&this.session.getScrollLeft()+this.$size.scrollerWidth-this.layerConfig.width<-1+this.scrollMargin.right)return!0},this.pixelToScreenCoordinates=function(Ei,Ii){var ki=this.scroller.getBoundingClientRect(),Ti=Ei+this.scrollLeft-ki.left-this.$padding,Pi=Ti/this.characterWidth,ji=Math.floor((Ii+this.scrollTop-ki.top)/this.lineHeight),Di=Math.round(Pi);return{row:ji,column:Di,side:Pi-Di>0?1:-1,offsetX:Ti}},this.screenToTextCoordinates=function(Ei,Ii){var ki=this.scroller.getBoundingClientRect(),Ti=Ei+this.scrollLeft-ki.left-this.$padding,Pi=Math.round(Ti/this.characterWidth),ji=(Ii+this.scrollTop-ki.top)/this.lineHeight;return this.session.screenToDocumentPosition(ji,Math.max(Pi,0),Ti)},this.textToScreenCoordinates=function(Ei,Ii){var ki=this.scroller.getBoundingClientRect(),Ti=this.session.documentToScreenPosition(Ei,Ii),Pi=this.$padding+(this.session.$bidiHandler.isBidiRow(Ti.row,Ei)?this.session.$bidiHandler.getPosLeft(Ti.column):Math.round(Ti.column*this.characterWidth)),ji=Ti.row*this.lineHeight;return{pageX:ki.left+Pi-this.scrollLeft,pageY:ki.top+ji-this.scrollTop}},this.visualizeFocus=function(){fi.addCssClass(this.container,"ace_focus")},this.visualizeBlur=function(){fi.removeCssClass(this.container,"ace_focus")},this.showComposition=function(Ei){this.$composition||(this.$composition={keepTextAreaAtCursor:this.$keepTextAreaAtCursor,cssText:this.textarea.style.cssText}),this.$keepTextAreaAtCursor=!0,fi.addCssClass(this.textarea,"ace_composition"),this.textarea.style.cssText="",this.$moveTextAreaToCursor()},this.setCompositionText=function(Ei){this.$moveTextAreaToCursor()},this.hideComposition=function(){this.$composition&&(fi.removeCssClass(this.textarea,"ace_composition"),this.$keepTextAreaAtCursor=this.$composition.keepTextAreaAtCursor,this.textarea.style.cssText=this.$composition.cssText,this.$composition=null)},this.setTheme=function(Ei,Ii){var ki=this;if(this.$themeId=Ei,ki._dispatchEvent("themeChange",{theme:Ei}),!Ei||typeof Ei=="string"){var Ti=Ei||this.$options.theme.initialValue;mi.loadModule(["theme",Ti],Pi)}else Pi(Ei);function Pi(ji){if(ki.$themeId!=Ei)return Ii&&Ii();if(!ji||!ji.cssClass)throw new Error("couldn't load module "+Ei+" or it didn't call define");fi.importCssString(ji.cssText,ji.cssClass,ki.container.ownerDocument),ki.theme&&fi.removeCssClass(ki.container,ki.theme.cssClass);var Di="padding"in ji?ji.padding:"padding"in(ki.theme||{})?4:ki.$padding;ki.$padding&&Di!=ki.$padding&&ki.setPadding(Di),ki.$theme=ji.cssClass,ki.theme=ji,fi.addCssClass(ki.container,ji.cssClass),fi.setCssClass(ki.container,"ace_dark",ji.isDark),ki.$size&&(ki.$size.width=0,ki.$updateSizeAsync()),ki._dispatchEvent("themeLoaded",{theme:ji}),Ii&&Ii()}},this.getTheme=function(){return this.$themeId},this.setStyle=function(Ei,Ii){fi.setCssClass(this.container,Ei,Ii!==!1)},this.unsetStyle=function(Ei){fi.removeCssClass(this.container,Ei)},this.setCursorStyle=function(Ei){this.scroller.style.cursor!=Ei&&(this.scroller.style.cursor=Ei)},this.setMouseCursor=function(Ei){this.scroller.style.cursor=Ei},this.destroy=function(){this.$textLayer.destroy(),this.$cursorLayer.destroy()}}).call(zi.prototype),mi.defineOptions(zi.prototype,"renderer",{animatedScroll:{initialValue:!1},showInvisibles:{set:function(Ei){this.$textLayer.setShowInvisibles(Ei)&&this.$loop.schedule(this.CHANGE_TEXT)},initialValue:!1},showPrintMargin:{set:function(){this.$updatePrintMargin()},initialValue:!0},printMarginColumn:{set:function(){this.$updatePrintMargin()},initialValue:80},printMargin:{set:function(Ei){typeof Ei=="number"&&(this.$printMarginColumn=Ei),this.$showPrintMargin=!!Ei,this.$updatePrintMargin()},get:function(){return this.$showPrintMargin&&this.$printMarginColumn}},showGutter:{set:function(Ei){this.$gutter.style.display=Ei?"block":"none",this.$loop.schedule(this.CHANGE_FULL),this.onGutterResize()},initialValue:!0},fadeFoldWidgets:{set:function(Ei){fi.setCssClass(this.$gutter,"ace_fade-fold-widgets",Ei)},initialValue:!1},showFoldWidgets:{set:function(Ei){this.$gutterLayer.setShowFoldWidgets(Ei)},initialValue:!0},showLineNumbers:{set:function(Ei){this.$gutterLayer.setShowLineNumbers(Ei),this.$loop.schedule(this.CHANGE_GUTTER)},initialValue:!0},displayIndentGuides:{set:function(Ei){this.$textLayer.setDisplayIndentGuides(Ei)&&this.$loop.schedule(this.CHANGE_TEXT)},initialValue:!0},highlightGutterLine:{set:function(Ei){if(!this.$gutterLineHighlight){this.$gutterLineHighlight=fi.createElement("div"),this.$gutterLineHighlight.className="ace_gutter-active-line",this.$gutter.appendChild(this.$gutterLineHighlight);return}this.$gutterLineHighlight.style.display=Ei?"":"none",this.$cursorLayer.$pixelPos&&this.$updateGutterLineHighlight()},initialValue:!1,value:!0},hScrollBarAlwaysVisible:{set:function(Ei){(!this.$hScrollBarAlwaysVisible||!this.$horizScroll)&&this.$loop.schedule(this.CHANGE_SCROLL)},initialValue:!1},vScrollBarAlwaysVisible:{set:function(Ei){(!this.$vScrollBarAlwaysVisible||!this.$vScroll)&&this.$loop.schedule(this.CHANGE_SCROLL)},initialValue:!1},fontSize:{set:function(Ei){typeof Ei=="number"&&(Ei=Ei+"px"),this.container.style.fontSize=Ei,this.updateFontSize()},initialValue:12},fontFamily:{set:function(Ei){this.container.style.fontFamily=Ei,this.updateFontSize()}},maxLines:{set:function(Ei){this.updateFull()}},minLines:{set:function(Ei){this.updateFull()}},maxPixelHeight:{set:function(Ei){this.updateFull()},initialValue:0},scrollPastEnd:{set:function(Ei){Ei=+Ei||0,this.$scrollPastEnd!=Ei&&(this.$scrollPastEnd=Ei,this.$loop.schedule(this.CHANGE_SCROLL))},initialValue:0,handlesSet:!0},fixedWidthGutter:{set:function(Ei){this.$gutterLayer.$fixedWidth=!!Ei,this.$loop.schedule(this.CHANGE_GUTTER)}},theme:{set:function(Ei){this.setTheme(Ei)},get:function(){return this.$themeId||this.theme},initialValue:"./theme/textmate",handlesSet:!0}}),ni.VirtualRenderer=zi});ace.define("ace/worker/worker_client",["require","exports","module","ace/lib/oop","ace/lib/net","ace/lib/event_emitter","ace/config"],function(ti,ni,oi){var ui=ti("../lib/oop"),fi=ti("../lib/net"),mi=ti("../lib/event_emitter").EventEmitter,gi=ti("../config");function di(bi,vi){var Ai=vi.src;""+fi.qualifyURL(bi);try{return new Blob([Ai],{type:"application/javascript"})}catch{var Li=window.BlobBuilder||window.WebKitBlobBuilder||window.MozBlobBuilder,Bi=new Li;return Bi.append(Ai),Bi.getBlob("application/javascript")}}function li(bi,vi){var Ai=di(bi,vi),Li=window.URL||window.webkitURL,Bi=Li.createObjectURL(Ai);return new Worker(Bi)}var ci=function(bi,vi,Ai,Li,Bi){if(this.$sendDeltaQueue=this.$sendDeltaQueue.bind(this),this.changeListener=this.changeListener.bind(this),this.onMessage=this.onMessage.bind(this),ti.nameToUrl&&!ti.toUrl&&(ti.toUrl=ti.nameToUrl),gi.get("packaged")||!ti.toUrl)Li=Li||gi.moduleUrl(vi.id,"worker");else{var Ri=this.$normalizePath;Li=Li||Ri(ti.toUrl("ace/worker/worker.js",null,"_"));var zi={};bi.forEach(function(Ei){zi[Ei]=Ri(ti.toUrl(Ei,null,"_").replace(/(\.js)?(\?.*)?$/,""))})}this.$worker=li(Li,vi),Bi&&this.send("importScripts",Bi),this.$worker.postMessage({init:!0,tlns:zi,module:vi.id,classname:Ai}),this.callbackId=1,this.callbacks={},this.$worker.onmessage=this.onMessage};(function(){ui.implement(this,mi),this.onMessage=function(bi){var vi=bi.data;switch(vi.type){case"event":this._signal(vi.name,{data:vi.data});break;case"call":var Ai=this.callbacks[vi.id];Ai&&(Ai(vi.data),delete this.callbacks[vi.id]);break;case"error":this.reportError(vi.data);break;case"log":window.console&&console.log&&console.log.apply(console,vi.data);break}},this.reportError=function(bi){window.console&&console.error&&console.error(bi)},this.$normalizePath=function(bi){return fi.qualifyURL(bi)},this.terminate=function(){this._signal("terminate",{}),this.deltaQueue=null,this.$worker.terminate(),this.$worker=null,this.$doc&&this.$doc.off("change",this.changeListener),this.$doc=null},this.send=function(bi,vi){this.$worker.postMessage({command:bi,args:vi})},this.call=function(bi,vi,Ai){if(Ai){var Li=this.callbackId++;this.callbacks[Li]=Ai,vi.push(Li)}this.send(bi,vi)},this.emit=function(bi,vi){try{this.$worker.postMessage({event:bi,data:{data:vi.data}})}catch(Ai){console.error(Ai.stack)}},this.attachToDocument=function(bi){this.$doc&&this.terminate(),this.$doc=bi,this.call("setValue",[bi.getValue()]),bi.on("change",this.changeListener)},this.changeListener=function(bi){this.deltaQueue||(this.deltaQueue=[],setTimeout(this.$sendDeltaQueue,0)),bi.action=="insert"?this.deltaQueue.push(bi.start,bi.lines):this.deltaQueue.push(bi.start,bi.end)},this.$sendDeltaQueue=function(){var bi=this.deltaQueue;bi&&(this.deltaQueue=null,bi.length>50&&bi.length>this.$doc.getLength()>>1?this.call("setValue",[this.$doc.getValue()]):this.emit("change",{data:bi}))}}).call(ci.prototype);var pi=function(bi,vi,Ai){this.$sendDeltaQueue=this.$sendDeltaQueue.bind(this),this.changeListener=this.changeListener.bind(this),this.callbackId=1,this.callbacks={},this.messageBuffer=[];var Li=null,Bi=!1,Ri=Object.create(mi),zi=this;this.$worker={},this.$worker.terminate=function(){},this.$worker.postMessage=function(Ii){zi.messageBuffer.push(Ii),Li&&(Bi?setTimeout(Ei):Ei())},this.setEmitSync=function(Ii){Bi=Ii};var Ei=function(){var Ii=zi.messageBuffer.shift();Ii.command?Li[Ii.command].apply(Li,Ii.args):Ii.event&&Ri._signal(Ii.event,Ii.data)};Ri.postMessage=function(Ii){zi.onMessage({data:Ii})},Ri.callback=function(Ii,ki){this.postMessage({type:"call",id:ki,data:Ii})},Ri.emit=function(Ii,ki){this.postMessage({type:"event",name:Ii,data:ki})},gi.loadModule(["worker",vi],function(Ii){for(Li=new Ii[Ai](Ri);zi.messageBuffer.length;)Ei()})};pi.prototype=ci.prototype,ni.UIWorkerClient=pi,ni.WorkerClient=ci,ni.createWorker=li});ace.define("ace/placeholder",["require","exports","module","ace/range","ace/lib/event_emitter","ace/lib/oop"],function(ti,ni,oi){var ui=ti("./range").Range,fi=ti("./lib/event_emitter").EventEmitter,mi=ti("./lib/oop"),gi=function(di,li,ci,pi,bi,vi){var Ai=this;this.length=li,this.session=di,this.doc=di.getDocument(),this.mainClass=bi,this.othersClass=vi,this.$onUpdate=this.onUpdate.bind(this),this.doc.on("change",this.$onUpdate),this.$others=pi,this.$onCursorChange=function(){setTimeout(function(){Ai.onCursorChange()})},this.$pos=ci;var Li=di.getUndoManager().$undoStack||di.getUndoManager().$undostack||{length:-1};this.$undoStackDepth=Li.length,this.setup(),di.selection.on("changeCursor",this.$onCursorChange)};(function(){mi.implement(this,fi),this.setup=function(){var di=this,li=this.doc,ci=this.session;this.selectionBefore=ci.selection.toJSON(),ci.selection.inMultiSelectMode&&ci.selection.toSingleRange(),this.pos=li.createAnchor(this.$pos.row,this.$pos.column);var pi=this.pos;pi.$insertRight=!0,pi.detach(),pi.markerId=ci.addMarker(new ui(pi.row,pi.column,pi.row,pi.column+this.length),this.mainClass,null,!1),this.others=[],this.$others.forEach(function(bi){var vi=li.createAnchor(bi.row,bi.column);vi.$insertRight=!0,vi.detach(),di.others.push(vi)}),ci.setUndoSelect(!1)},this.showOtherMarkers=function(){if(!this.othersActive){var di=this.session,li=this;this.othersActive=!0,this.others.forEach(function(ci){ci.markerId=di.addMarker(new ui(ci.row,ci.column,ci.row,ci.column+li.length),li.othersClass,null,!1)})}},this.hideOtherMarkers=function(){if(this.othersActive){this.othersActive=!1;for(var di=0;di=this.pos.column&&li.start.column<=this.pos.column+this.length+1,bi=li.start.column-this.pos.column;if(this.updateAnchors(di),pi&&(this.length+=ci),pi&&!this.session.$fromUndo){if(di.action==="insert")for(var vi=this.others.length-1;vi>=0;vi--){var Ai=this.others[vi],Li={row:Ai.row,column:Ai.column+bi};this.doc.insertMergedLines(Li,di.lines)}else if(di.action==="remove")for(var vi=this.others.length-1;vi>=0;vi--){var Ai=this.others[vi],Li={row:Ai.row,column:Ai.column+bi};this.doc.remove(new ui(Li.row,Li.column,Li.row,Li.column-ci))}}this.$updating=!1,this.updateMarkers()}},this.updateAnchors=function(di){this.pos.onChange(di);for(var li=this.others.length;li--;)this.others[li].onChange(di);this.updateMarkers()},this.updateMarkers=function(){if(!this.$updating){var di=this,li=this.session,ci=function(bi,vi){li.removeMarker(bi.markerId),bi.markerId=li.addMarker(new ui(bi.row,bi.column,bi.row,bi.column+di.length),vi,null,!1)};ci(this.pos,this.mainClass);for(var pi=this.others.length;pi--;)ci(this.others[pi],this.othersClass)}},this.onCursorChange=function(di){if(!(this.$updating||!this.session)){var li=this.session.selection.getCursor();li.row===this.pos.row&&li.column>=this.pos.column&&li.column<=this.pos.column+this.length?(this.showOtherMarkers(),this._emit("cursorEnter",di)):(this.hideOtherMarkers(),this._emit("cursorLeave",di))}},this.detach=function(){this.session.removeMarker(this.pos&&this.pos.markerId),this.hideOtherMarkers(),this.doc.removeEventListener("change",this.$onUpdate),this.session.selection.removeEventListener("changeCursor",this.$onCursorChange),this.session.setUndoSelect(!0),this.session=null},this.cancel=function(){if(this.$undoStackDepth!==-1){for(var di=this.session.getUndoManager(),li=(di.$undoStack||di.$undostack).length-this.$undoStackDepth,ci=0;ci1&&!this.inMultiSelectMode&&(this._signal("multiSelect"),this.inMultiSelectMode=!0,this.session.$undoSelect=!1,this.rangeList.attach(this.session)),Ii||this.fromOrientedRange(Ei)}},this.toSingleRange=function(Ei){Ei=Ei||this.ranges[0];var Ii=this.rangeList.removeAll();Ii.length&&this.$onRemoveRange(Ii),Ei&&this.fromOrientedRange(Ei)},this.substractPoint=function(Ei){var Ii=this.rangeList.substractPoint(Ei);if(Ii)return this.$onRemoveRange(Ii),Ii[0]},this.mergeOverlappingRanges=function(){var Ei=this.rangeList.merge();Ei.length?this.$onRemoveRange(Ei):this.ranges[0]&&this.fromOrientedRange(this.ranges[0])},this.$onAddRange=function(Ei){this.rangeCount=this.rangeList.ranges.length,this.ranges.unshift(Ei),this._signal("addRange",{range:Ei})},this.$onRemoveRange=function(Ei){if(this.rangeCount=this.rangeList.ranges.length,this.rangeCount==1&&this.inMultiSelectMode){var Ii=this.rangeList.ranges.pop();Ei.push(Ii),this.rangeCount=0}for(var ki=Ei.length;ki--;){var Ti=this.ranges.indexOf(Ei[ki]);this.ranges.splice(Ti,1)}this._signal("removeRange",{ranges:Ei}),this.rangeCount===0&&this.inMultiSelectMode&&(this.inMultiSelectMode=!1,this._signal("singleSelect"),this.session.$undoSelect=!0,this.rangeList.detach(this.session)),Ii=Ii||this.ranges[0],Ii&&!Ii.isEqual(this.getRange())&&this.fromOrientedRange(Ii)},this.$initRangeList=function(){this.rangeList||(this.rangeList=new ui,this.ranges=[],this.rangeCount=0)},this.getAllRanges=function(){return this.rangeCount?this.rangeList.ranges.concat():[this.getRange()]},this.splitIntoLines=function(){if(this.rangeCount>1){var Ei=this.rangeList.ranges,Ii=Ei[Ei.length-1],ki=fi.fromPoints(Ei[0].start,Ii.end);this.toSingleRange(),this.setSelectionRange(ki,Ii.cursor==Ii.start)}else{var ki=this.getRange(),Ti=this.isBackwards(),Pi=ki.start.row,ji=ki.end.row;if(Pi==ji){if(Ti)var Di=ki.end,Ni=ki.start;else var Di=ki.start,Ni=ki.end;this.addRange(fi.fromPoints(Ni,Ni)),this.addRange(fi.fromPoints(Di,Di));return}var qi=[],Ji=this.getLineRange(Pi,!0);Ji.start.column=ki.start.column,qi.push(Ji);for(var sn=Pi+1;sn1){var Ei=this.rangeList.ranges,Ii=Ei[Ei.length-1],ki=fi.fromPoints(Ei[0].start,Ii.end);this.toSingleRange(),this.setSelectionRange(ki,Ii.cursor==Ii.start)}else{var Ti=this.session.documentToScreenPosition(this.selectionLead),Pi=this.session.documentToScreenPosition(this.selectionAnchor),ji=this.rectangularRangeBlock(Ti,Pi);ji.forEach(this.addRange,this)}},this.rectangularRangeBlock=function(Ei,Ii,ki){var Ti=[],Pi=Ei.column0;)bn--;if(bn>0)for(var An=0;Ti[An].isEmpty();)An++;for(var _n=bn;_n>=An;_n--)Ti[_n].isEmpty()&&Ti.splice(_n,1)}return Ti}}).call(mi.prototype);var Li=ti("./editor").Editor;(function(){this.updateSelectionMarkers=function(){this.renderer.updateCursor(),this.renderer.updateBackMarkers()},this.addSelectionMarker=function(Ei){Ei.cursor||(Ei.cursor=Ei.end);var Ii=this.getSelectionStyle();return Ei.marker=this.session.addMarker(Ei,"ace_selection",Ii),this.session.$selectionMarkers.push(Ei),this.session.selectionMarkerCount=this.session.$selectionMarkers.length,Ei},this.removeSelectionMarker=function(Ei){if(Ei.marker){this.session.removeMarker(Ei.marker);var Ii=this.session.$selectionMarkers.indexOf(Ei);Ii!=-1&&this.session.$selectionMarkers.splice(Ii,1),this.session.selectionMarkerCount=this.session.$selectionMarkers.length}},this.removeSelectionMarkers=function(Ei){for(var Ii=this.session.$selectionMarkers,ki=Ei.length;ki--;){var Ti=Ei[ki];if(Ti.marker){this.session.removeMarker(Ti.marker);var Pi=Ii.indexOf(Ti);Pi!=-1&&Ii.splice(Pi,1)}}this.session.selectionMarkerCount=Ii.length},this.$onAddRange=function(Ei){this.addSelectionMarker(Ei.range),this.renderer.updateCursor(),this.renderer.updateBackMarkers()},this.$onRemoveRange=function(Ei){this.removeSelectionMarkers(Ei.ranges),this.renderer.updateCursor(),this.renderer.updateBackMarkers()},this.$onMultiSelect=function(Ei){this.inMultiSelectMode||(this.inMultiSelectMode=!0,this.setStyle("ace_multiselect"),this.keyBinding.addKeyboardHandler(ci.keyboardHandler),this.commands.setDefaultHandler("exec",this.$onMultiSelectExec),this.renderer.updateCursor(),this.renderer.updateBackMarkers())},this.$onSingleSelect=function(Ei){this.session.multiSelect.inVirtualMode||(this.inMultiSelectMode=!1,this.unsetStyle("ace_multiselect"),this.keyBinding.removeKeyboardHandler(ci.keyboardHandler),this.commands.removeDefaultHandler("exec",this.$onMultiSelectExec),this.renderer.updateCursor(),this.renderer.updateBackMarkers(),this._emit("changeSelection"))},this.$onMultiSelectExec=function(Ei){var Ii=Ei.command,ki=Ei.editor;if(ki.multiSelect){if(Ii.multiSelectAction)Ii.multiSelectAction=="forEach"?Ti=ki.forEachSelection(Ii,Ei.args):Ii.multiSelectAction=="forEachLine"?Ti=ki.forEachSelection(Ii,Ei.args,!0):Ii.multiSelectAction=="single"?(ki.exitMultiSelectMode(),Ti=Ii.exec(ki,Ei.args||{})):Ti=Ii.multiSelectAction(ki,Ei.args||{});else{var Ti=Ii.exec(ki,Ei.args||{});ki.multiSelect.addRange(ki.multiSelect.toOrientedRange()),ki.multiSelect.mergeOverlappingRanges()}return Ti}},this.forEachSelection=function(Ei,Ii,ki){if(!this.inVirtualSelectionMode){var Ti=ki&&ki.keepOrder,Pi=ki==!0||ki&&ki.$byLines,ji=this.session,Di=this.selection,Ni=Di.rangeList,qi=(Ti?Di:Ni).ranges,Ji;if(!qi.length)return Ei.exec?Ei.exec(this,Ii||{}):Ei(this,Ii||{});var sn=Di._eventRegistry;Di._eventRegistry={};var en=new mi(ji);this.inVirtualSelectionMode=!0;for(var rn=qi.length;rn--;){if(Pi)for(;rn>0&&qi[rn].start.row==qi[rn-1].end.row;)rn--;en.fromOrientedRange(qi[rn]),en.index=rn,this.selection=ji.selection=en;var fn=Ei.exec?Ei.exec(this,Ii||{}):Ei(this,Ii||{});!Ji&&fn!==void 0&&(Ji=fn),en.toOrientedRange(qi[rn])}en.detach(),this.selection=ji.selection=Di,this.inVirtualSelectionMode=!1,Di._eventRegistry=sn,Di.mergeOverlappingRanges();var vn=this.renderer.$scrollAnimation;return this.onCursorChange(),this.onSelectionChange(),vn&&vn.from==vn.to&&this.renderer.animateScrolling(vn.from),Ji}},this.exitMultiSelectMode=function(){!this.inMultiSelectMode||this.inVirtualSelectionMode||this.multiSelect.toSingleRange()},this.getSelectedText=function(){var Ei="";if(this.inMultiSelectMode&&!this.inVirtualSelectionMode){for(var Ii=this.multiSelect.rangeList.ranges,ki=[],Ti=0;Ti0);Di<0&&(Di=0),Ni>=Ji&&(Ni=Ji-1)}var en=this.session.removeFullLines(Di,Ni);en=this.$reAlignText(en,qi),this.session.insert({row:Di,column:0},en.join(` `)+` `),qi||(ji.start.column=0,ji.end.column=en[en.length-1].length),this.selection.setRange(ji)}else{Pi.forEach(function(bn){Ii.substractPoint(bn.cursor)});var rn=0,fn=1/0,vn=ki.map(function(bn){var An=bn.cursor,_n=Ei.getLine(An.row),dn=_n.substr(An.column).search(/\S/g);return dn==-1&&(dn=0),An.column>rn&&(rn=An.column),dntn?Ei.insert(_n,li.stringRepeat(" ",dn-tn)):Ei.remove(new fi(_n.row,_n.column,_n.row,_n.column-dn+tn)),bn.start.column=bn.end.column=rn,bn.start.row=bn.end.row=_n.row,bn.cursor=bn.end}),Ii.fromOrientedRange(ki[0]),this.renderer.updateCursor(),this.renderer.updateBackMarkers()}},this.$reAlignText=function(Ei,Ii){var ki=!0,Ti=!0,Pi,ji,Di;return Ei.map(function(en){var rn=en.match(/(\s*)(.*?)(\s*)([=:].*)/);return rn?Pi==null?(Pi=rn[1].length,ji=rn[2].length,Di=rn[3].length,rn):(Pi+ji+Di!=rn[1].length+rn[2].length+rn[3].length&&(Ti=!1),Pi!=rn[1].length&&(ki=!1),Pi>rn[1].length&&(Pi=rn[1].length),jirn[3].length&&(Di=rn[3].length),rn):[en]}).map(Ii?qi:ki?Ti?Ji:qi:sn);function Ni(en){return li.stringRepeat(" ",en)}function qi(en){return en[2]?Ni(Pi)+en[2]+Ni(ji-en[2].length+Di)+en[4].replace(/^([=:])\s+/,"$1 "):en[0]}function Ji(en){return en[2]?Ni(Pi+ji-en[2].length)+en[2]+Ni(Di)+en[4].replace(/^([=:])\s+/,"$1 "):en[0]}function sn(en){return en[2]?Ni(Pi)+en[2]+Ni(Di)+en[4].replace(/^([=:])\s+/,"$1 "):en[0]}}}).call(Li.prototype);function Bi(Ei,Ii){return Ei.row==Ii.row&&Ei.column==Ii.column}ni.onSessionChange=function(Ei){var Ii=Ei.session;Ii&&!Ii.multiSelect&&(Ii.$selectionMarkers=[],Ii.selection.$initRangeList(),Ii.multiSelect=Ii.selection),this.multiSelect=Ii&&Ii.multiSelect;var ki=Ei.oldSession;ki&&(ki.multiSelect.off("addRange",this.$onAddRange),ki.multiSelect.off("removeRange",this.$onRemoveRange),ki.multiSelect.off("multiSelect",this.$onMultiSelect),ki.multiSelect.off("singleSelect",this.$onSingleSelect),ki.multiSelect.lead.off("change",this.$checkMultiselectChange),ki.multiSelect.anchor.off("change",this.$checkMultiselectChange)),Ii&&(Ii.multiSelect.on("addRange",this.$onAddRange),Ii.multiSelect.on("removeRange",this.$onRemoveRange),Ii.multiSelect.on("multiSelect",this.$onMultiSelect),Ii.multiSelect.on("singleSelect",this.$onSingleSelect),Ii.multiSelect.lead.on("change",this.$checkMultiselectChange),Ii.multiSelect.anchor.on("change",this.$checkMultiselectChange)),Ii&&this.inMultiSelectMode!=Ii.selection.inMultiSelectMode&&(Ii.selection.inMultiSelectMode?this.$onMultiSelect():this.$onSingleSelect())};function Ri(Ei){Ei.$multiselectOnSessionChange||(Ei.$onAddRange=Ei.$onAddRange.bind(Ei),Ei.$onRemoveRange=Ei.$onRemoveRange.bind(Ei),Ei.$onMultiSelect=Ei.$onMultiSelect.bind(Ei),Ei.$onSingleSelect=Ei.$onSingleSelect.bind(Ei),Ei.$multiselectOnSessionChange=ni.onSessionChange.bind(Ei),Ei.$checkMultiselectChange=Ei.$checkMultiselectChange.bind(Ei),Ei.$multiselectOnSessionChange(Ei),Ei.on("changeSession",Ei.$multiselectOnSessionChange),Ei.on("mousedown",gi),Ei.commands.addCommands(ci.defaultCommands),zi(Ei))}function zi(Ei){var Ii=Ei.textInput.getElement(),ki=!1;di.addListener(Ii,"keydown",function(Pi){var ji=Pi.keyCode==18&&!(Pi.ctrlKey||Pi.shiftKey||Pi.metaKey);Ei.$blockSelectEnabled&&ji?ki||(Ei.renderer.setMouseCursor("crosshair"),ki=!0):ki&&Ti()}),di.addListener(Ii,"keyup",Ti),di.addListener(Ii,"blur",Ti);function Ti(Pi){ki&&(Ei.renderer.setMouseCursor(""),ki=!1)}}ni.MultiSelect=Ri,ti("./config").defineOptions(Li.prototype,"editor",{enableMultiselect:{set:function(Ei){Ri(this),Ei?(this.on("changeSession",this.$multiselectOnSessionChange),this.on("mousedown",gi)):(this.off("changeSession",this.$multiselectOnSessionChange),this.off("mousedown",gi))},value:!0},enableBlockSelect:{set:function(Ei){this.$blockSelectEnabled=Ei},value:!0}})});ace.define("ace/mode/folding/fold_mode",["require","exports","module","ace/range"],function(ti,ni,oi){var ui=ti("../../range").Range,fi=ni.FoldMode=function(){};(function(){this.foldingStartMarker=null,this.foldingStopMarker=null,this.getFoldWidget=function(mi,gi,di){var li=mi.getLine(di);return this.foldingStartMarker.test(li)?"start":gi=="markbeginend"&&this.foldingStopMarker&&this.foldingStopMarker.test(li)?"end":""},this.getFoldWidgetRange=function(mi,gi,di){return null},this.indentationBlock=function(mi,gi,di){var li=/\S/,ci=mi.getLine(gi),pi=ci.search(li);if(pi!=-1){for(var bi=di||ci.length,vi=mi.getLength(),Ai=gi,Li=gi;++giAi){var Ri=mi.getLine(Li).length;return new ui(Ai,bi,Li,Ri)}}},this.openingBracketBlock=function(mi,gi,di,li,ci){var pi={row:di,column:li+1},bi=mi.$findClosingBracket(gi,pi,ci);if(bi){var vi=mi.foldWidgets[bi.row];return vi==null&&(vi=mi.getFoldWidget(bi.row)),vi=="start"&&bi.row>pi.row&&(bi.row--,bi.column=mi.getLine(bi.row).length),ui.fromPoints(pi,bi)}},this.closingBracketBlock=function(mi,gi,di,li,ci){var pi={row:di,column:li},bi=mi.$findOpeningBracket(gi,pi);if(bi)return bi.column++,pi.column--,ui.fromPoints(bi,pi)}}).call(fi.prototype)});ace.define("ace/theme/textmate",["require","exports","module","ace/lib/dom"],function(ti,ni,oi){ni.isDark=!1,ni.cssClass="ace-tm",ni.cssText='.ace-tm .ace_gutter {background: #f0f0f0;color: #333;}.ace-tm .ace_print-margin {width: 1px;background: #e8e8e8;}.ace-tm .ace_fold {background-color: #6B72E6;}.ace-tm {background-color: #FFFFFF;color: black;}.ace-tm .ace_cursor {color: black;}.ace-tm .ace_invisible {color: rgb(191, 191, 191);}.ace-tm .ace_storage,.ace-tm .ace_keyword {color: blue;}.ace-tm .ace_constant {color: rgb(197, 6, 11);}.ace-tm .ace_constant.ace_buildin {color: rgb(88, 72, 246);}.ace-tm .ace_constant.ace_language {color: rgb(88, 92, 246);}.ace-tm .ace_constant.ace_library {color: rgb(6, 150, 14);}.ace-tm .ace_invalid {background-color: rgba(255, 0, 0, 0.1);color: red;}.ace-tm .ace_support.ace_function {color: rgb(60, 76, 114);}.ace-tm .ace_support.ace_constant {color: rgb(6, 150, 14);}.ace-tm .ace_support.ace_type,.ace-tm .ace_support.ace_class {color: rgb(109, 121, 222);}.ace-tm .ace_keyword.ace_operator {color: rgb(104, 118, 135);}.ace-tm .ace_string {color: rgb(3, 106, 7);}.ace-tm .ace_comment {color: rgb(76, 136, 107);}.ace-tm .ace_comment.ace_doc {color: rgb(0, 102, 255);}.ace-tm .ace_comment.ace_doc.ace_tag {color: rgb(128, 159, 191);}.ace-tm .ace_constant.ace_numeric {color: rgb(0, 0, 205);}.ace-tm .ace_variable {color: rgb(49, 132, 149);}.ace-tm .ace_xml-pe {color: rgb(104, 104, 91);}.ace-tm .ace_entity.ace_name.ace_function {color: #0000A2;}.ace-tm .ace_heading {color: rgb(12, 7, 255);}.ace-tm .ace_list {color:rgb(185, 6, 144);}.ace-tm .ace_meta.ace_tag {color:rgb(0, 22, 142);}.ace-tm .ace_string.ace_regex {color: rgb(255, 0, 0)}.ace-tm .ace_marker-layer .ace_selection {background: rgb(181, 213, 255);}.ace-tm.ace_multiselect .ace_selection.ace_start {box-shadow: 0 0 3px 0px white;}.ace-tm .ace_marker-layer .ace_step {background: rgb(252, 255, 0);}.ace-tm .ace_marker-layer .ace_stack {background: rgb(164, 229, 101);}.ace-tm .ace_marker-layer .ace_bracket {margin: -1px 0 0 -1px;border: 1px solid rgb(192, 192, 192);}.ace-tm .ace_marker-layer .ace_active-line {background: rgba(0, 0, 0, 0.07);}.ace-tm .ace_gutter-active-line {background-color : #dcdcdc;}.ace-tm .ace_marker-layer .ace_selected-word {background: rgb(250, 250, 255);border: 1px solid rgb(200, 200, 250);}.ace-tm .ace_indent-guide {background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAE0lEQVQImWP4////f4bLly//BwAmVgd1/w11/gAAAABJRU5ErkJggg==") right repeat-y;}';var ui=ti("../lib/dom");ui.importCssString(ni.cssText,ni.cssClass)});ace.define("ace/line_widgets",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/range"],function(ti,ni,oi){ti("./lib/oop");var ui=ti("./lib/dom");ti("./range").Range;function fi(mi){this.session=mi,this.session.widgetManager=this,this.session.getRowLength=this.getRowLength,this.session.$getWidgetScreenLength=this.$getWidgetScreenLength,this.updateOnChange=this.updateOnChange.bind(this),this.renderWidgets=this.renderWidgets.bind(this),this.measureWidgets=this.measureWidgets.bind(this),this.session._changedWidgets=[],this.$onChangeEditor=this.$onChangeEditor.bind(this),this.session.on("change",this.updateOnChange),this.session.on("changeFold",this.updateOnFold),this.session.on("changeEditor",this.$onChangeEditor)}(function(){this.getRowLength=function(mi){var gi;return this.lineWidgets?gi=this.lineWidgets[mi]&&this.lineWidgets[mi].rowCount||0:gi=0,!this.$useWrapMode||!this.$wrapData[mi]?1+gi:this.$wrapData[mi].length+1+gi},this.$getWidgetScreenLength=function(){var mi=0;return this.lineWidgets.forEach(function(gi){gi&&gi.rowCount&&!gi.hidden&&(mi+=gi.rowCount)}),mi},this.$onChangeEditor=function(mi){this.attach(mi.editor)},this.attach=function(mi){mi&&mi.widgetManager&&mi.widgetManager!=this&&mi.widgetManager.detach(),this.editor!=mi&&(this.detach(),this.editor=mi,mi&&(mi.widgetManager=this,mi.renderer.on("beforeRender",this.measureWidgets),mi.renderer.on("afterRender",this.renderWidgets)))},this.detach=function(mi){var gi=this.editor;if(gi){this.editor=null,gi.widgetManager=null,gi.renderer.off("beforeRender",this.measureWidgets),gi.renderer.off("afterRender",this.renderWidgets);var di=this.session.lineWidgets;di&&di.forEach(function(li){li&&li.el&&li.el.parentNode&&(li._inDocument=!1,li.el.parentNode.removeChild(li.el))})}},this.updateOnFold=function(mi,gi){var di=gi.lineWidgets;if(!(!di||!mi.action)){for(var li=mi.data,ci=li.start.row,pi=li.end.row,bi=mi.action=="add",vi=ci+1;vi0&&!li[ci];)ci--;this.firstRow=di.firstRow,this.lastRow=di.lastRow,gi.$cursorLayer.config=di;for(var bi=ci;bi<=pi;bi++){var vi=li[bi];if(!(!vi||!vi.el)){if(vi.hidden){vi.el.style.top=-100-(vi.pixelHeight||0)+"px";continue}vi._inDocument||(vi._inDocument=!0,gi.container.appendChild(vi.el));var Ai=gi.$cursorLayer.getPixelPosition({row:bi,column:0},!0).top;vi.coverLine||(Ai+=di.lineHeight*this.session.getRowLineCount(vi.row)),vi.el.style.top=Ai-di.offset+"px";var Li=vi.coverGutter?0:gi.gutterWidth;vi.fixedWidth||(Li-=gi.scrollLeft),vi.el.style.left=Li+"px",vi.fullWidth&&vi.screenWidth&&(vi.el.style.minWidth=di.width+2*di.padding+"px"),vi.fixedWidth?vi.el.style.right=gi.scrollBar.getWidth()+"px":vi.el.style.right=""}}}}}).call(fi.prototype),ni.LineWidgets=fi});ace.define("ace/ext/error_marker",["require","exports","module","ace/line_widgets","ace/lib/dom","ace/range"],function(ti,ni,oi){var ui=ti("../line_widgets").LineWidgets,fi=ti("../lib/dom"),mi=ti("../range").Range;function gi(li,ci,pi){for(var bi=0,vi=li.length-1;bi<=vi;){var Ai=bi+vi>>1,Li=pi(ci,li[Ai]);if(Li>0)bi=Ai+1;else if(Li<0)vi=Ai-1;else return Ai}return-(bi+1)}function di(li,ci,pi){var bi=li.getAnnotations().sort(mi.comparePoints);if(bi.length){var vi=gi(bi,{row:ci,column:-1},mi.comparePoints);vi<0&&(vi=-vi-1),vi>=bi.length?vi=pi>0?0:bi.length-1:vi===0&&pi<0&&(vi=bi.length-1);var Ai=bi[vi];if(!(!Ai||!pi)){if(Ai.row===ci){do Ai=bi[vi+=pi];while(Ai&&Ai.row===ci);if(!Ai)return bi.slice()}var Li=[];ci=Ai.row;do Li[pi<0?"unshift":"push"](Ai),Ai=bi[vi+=pi];while(Ai&&Ai.row==ci);return Li.length&&Li}}}ni.showErrorMarker=function(li,ci){var pi=li.session;pi.widgetManager||(pi.widgetManager=new ui(pi),pi.widgetManager.attach(li));var bi=li.getCursorPosition(),vi=bi.row,Ai=pi.widgetManager.getWidgetsAtRow(vi).filter(function(Pi){return Pi.type=="errorMarker"})[0];Ai?Ai.destroy():vi-=ci;var Li=di(pi,vi,ci),Bi;if(Li){var Ri=Li[0];bi.column=(Ri.pos&&typeof Ri.column!="number"?Ri.pos.sc:Ri.column)||0,bi.row=Ri.row,Bi=li.renderer.$gutterLayer.$annotations[bi.row]}else{if(Ai)return;Bi={text:["Looks good!"],className:"ace_ok"}}li.session.unfold(bi.row),li.selection.moveToPosition(bi);var zi={row:bi.row,fixedWidth:!0,coverGutter:!0,el:fi.createElement("div"),type:"errorMarker"},Ei=zi.el.appendChild(fi.createElement("div")),Ii=zi.el.appendChild(fi.createElement("div"));Ii.className="error_widget_arrow "+Bi.className;var ki=li.renderer.$cursorLayer.getPixelPosition(bi).left;Ii.style.left=ki+li.renderer.gutterWidth-5+"px",zi.el.className="error_widget_wrapper",Ei.className="error_widget "+Bi.className,Ei.innerHTML=Bi.text.join("
"),Ei.appendChild(fi.createElement("div"));var Ti=function(Pi,ji,Di){if(ji===0&&(Di==="esc"||Di==="return"))return zi.destroy(),{command:"null"}};zi.destroy=function(){li.$mouseHandler.isMousePressed||(li.keyBinding.removeKeyboardHandler(Ti),pi.widgetManager.removeLineWidget(zi),li.off("changeSelection",zi.destroy),li.off("changeSession",zi.destroy),li.off("mouseup",zi.destroy),li.off("change",zi.destroy))},li.keyBinding.addKeyboardHandler(Ti),li.on("changeSelection",zi.destroy),li.on("changeSession",zi.destroy),li.on("mouseup",zi.destroy),li.on("change",zi.destroy),li.session.widgetManager.addLineWidget(zi),zi.el.onmousedown=li.focus.bind(li),li.renderer.scrollCursorIntoView(null,.5,{bottom:zi.el.offsetHeight})},fi.importCssString(" .error_widget_wrapper { background: inherit; color: inherit; border:none } .error_widget { border-top: solid 2px; border-bottom: solid 2px; margin: 5px 0; padding: 10px 40px; white-space: pre-wrap; } .error_widget.ace_error, .error_widget_arrow.ace_error{ border-color: #ff5a5a } .error_widget.ace_warning, .error_widget_arrow.ace_warning{ border-color: #F1D817 } .error_widget.ace_info, .error_widget_arrow.ace_info{ border-color: #5a5a5a } .error_widget.ace_ok, .error_widget_arrow.ace_ok{ border-color: #5aaa5a } .error_widget_arrow { position: absolute; border: solid 5px; border-top-color: transparent!important; border-right-color: transparent!important; border-left-color: transparent!important; top: -5px; }","")});ace.define("ace/ace",["require","exports","module","ace/lib/fixoldbrowsers","ace/lib/dom","ace/lib/event","ace/editor","ace/edit_session","ace/undomanager","ace/virtual_renderer","ace/worker/worker_client","ace/keyboard/hash_handler","ace/placeholder","ace/multi_select","ace/mode/folding/fold_mode","ace/theme/textmate","ace/ext/error_marker","ace/config"],function(ti,ni,oi){ti("./lib/fixoldbrowsers");var ui=ti("./lib/dom"),fi=ti("./lib/event"),mi=ti("./editor").Editor,gi=ti("./edit_session").EditSession,di=ti("./undomanager").UndoManager,li=ti("./virtual_renderer").VirtualRenderer;ti("./worker/worker_client"),ti("./keyboard/hash_handler"),ti("./placeholder"),ti("./multi_select"),ti("./mode/folding/fold_mode"),ti("./theme/textmate"),ti("./ext/error_marker"),ni.config=ti("./config"),ni.acequire=ti,ni.edit=function(ci){if(typeof ci=="string"){var pi=ci;if(ci=document.getElementById(pi),!ci)throw new Error("ace.edit can't find div #"+pi)}if(ci&&ci.env&&ci.env.editor instanceof mi)return ci.env.editor;var bi="";if(ci&&/input|textarea/i.test(ci.tagName)){var vi=ci;bi=vi.value,ci=ui.createElement("pre"),vi.parentNode.replaceChild(ci,vi)}else ci&&(bi=ui.getInnerText(ci),ci.innerHTML="");var Ai=ni.createEditSession(bi),Li=new mi(new li(ci));Li.setSession(Ai);var Bi={document:Ai,editor:Li,onResize:Li.resize.bind(Li,null)};return vi&&(Bi.textarea=vi),fi.addListener(window,"resize",Bi.onResize),Li.on("destroy",function(){fi.removeListener(window,"resize",Bi.onResize),Bi.editor.container.env=null}),Li.container.env=Li.env=Bi,Li},ni.createEditSession=function(ci,pi){var bi=new gi(ci,pi);return bi.setUndoManager(new di),bi},ni.EditSession=gi,ni.UndoManager=di,ni.version="1.2.9"});(function(){ace.acequire(["ace/ace"],function(ti){ti&&(ti.config.init(!0),ti.define=ace.define),window.ace||(window.ace=ti);for(var ni in ti)ti.hasOwnProperty(ni)&&(window.ace[ni]=ti[ni])})})();var brace=window.ace.acequire("ace/ace");const ace$1=getDefaultExportFromCjs(brace);var javascript={},hasRequiredJavascript;function requireJavascript(){return hasRequiredJavascript||(hasRequiredJavascript=1,javascript.id="ace/mode/javascript_worker",javascript.src=`"no use strict";!function(window){function resolveModuleId(id,paths){for(var testPath=id,tail="";testPath;){var alias=paths[testPath];if("string"==typeof alias)return alias+tail;if(alias)return alias.location.replace(/\\/*$/,"/")+(tail||alias.main||alias.name);if(alias===!1)return"";var i=testPath.lastIndexOf("/");if(-1===i)break;tail=testPath.substr(i)+tail,testPath=testPath.slice(0,i)}return id}if(!(void 0!==window.window&&window.document||window.acequire&&window.define)){window.console||(window.console=function(){var msgs=Array.prototype.slice.call(arguments,0);postMessage({type:"log",data:msgs})},window.console.error=window.console.warn=window.console.log=window.console.trace=window.console),window.window=window,window.ace=window,window.onerror=function(message,file,line,col,err){postMessage({type:"error",data:{message:message,data:err.data,file:file,line:line,col:col,stack:err.stack}})},window.normalizeModule=function(parentId,moduleName){if(-1!==moduleName.indexOf("!")){var chunks=moduleName.split("!");return window.normalizeModule(parentId,chunks[0])+"!"+window.normalizeModule(parentId,chunks[1])}if("."==moduleName.charAt(0)){var base=parentId.split("/").slice(0,-1).join("/");for(moduleName=(base?base+"/":"")+moduleName;-1!==moduleName.indexOf(".")&&previous!=moduleName;){var previous=moduleName;moduleName=moduleName.replace(/^\\.\\//,"").replace(/\\/\\.\\//,"/").replace(/[^\\/]+\\/\\.\\.\\//,"")}}return moduleName},window.acequire=function acequire(parentId,id){if(id||(id=parentId,parentId=null),!id.charAt)throw Error("worker.js acequire() accepts only (parentId, id) as arguments");id=window.normalizeModule(parentId,id);var module=window.acequire.modules[id];if(module)return module.initialized||(module.initialized=!0,module.exports=module.factory().exports),module.exports;if(!window.acequire.tlns)return console.log("unable to load "+id);var path=resolveModuleId(id,window.acequire.tlns);return".js"!=path.slice(-3)&&(path+=".js"),window.acequire.id=id,window.acequire.modules[id]={},importScripts(path),window.acequire(parentId,id)},window.acequire.modules={},window.acequire.tlns={},window.define=function(id,deps,factory){if(2==arguments.length?(factory=deps,"string"!=typeof id&&(deps=id,id=window.acequire.id)):1==arguments.length&&(factory=id,deps=[],id=window.acequire.id),"function"!=typeof factory)return window.acequire.modules[id]={exports:factory,initialized:!0},void 0;deps.length||(deps=["require","exports","module"]);var req=function(childId){return window.acequire(id,childId)};window.acequire.modules[id]={exports:{},factory:function(){var module=this,returnExports=factory.apply(this,deps.map(function(dep){switch(dep){case"require":return req;case"exports":return module.exports;case"module":return module;default:return req(dep)}}));return returnExports&&(module.exports=returnExports),module}}},window.define.amd={},acequire.tlns={},window.initBaseUrls=function(topLevelNamespaces){for(var i in topLevelNamespaces)acequire.tlns[i]=topLevelNamespaces[i]},window.initSender=function(){var EventEmitter=window.acequire("ace/lib/event_emitter").EventEmitter,oop=window.acequire("ace/lib/oop"),Sender=function(){};return function(){oop.implement(this,EventEmitter),this.callback=function(data,callbackId){postMessage({type:"call",id:callbackId,data:data})},this.emit=function(name,data){postMessage({type:"event",name:name,data:data})}}.call(Sender.prototype),new Sender};var main=window.main=null,sender=window.sender=null;window.onmessage=function(e){var msg=e.data;if(msg.event&&sender)sender._signal(msg.event,msg.data);else if(msg.command)if(main[msg.command])main[msg.command].apply(main,msg.args);else{if(!window[msg.command])throw Error("Unknown command:"+msg.command);window[msg.command].apply(window,msg.args)}else if(msg.init){window.initBaseUrls(msg.tlns),acequire("ace/lib/es5-shim"),sender=window.sender=window.initSender();var clazz=acequire(msg.module)[msg.classname];main=window.main=new clazz(sender)}}}}(this),ace.define("ace/lib/oop",["require","exports","module"],function(acequire,exports){"use strict";exports.inherits=function(ctor,superCtor){ctor.super_=superCtor,ctor.prototype=Object.create(superCtor.prototype,{constructor:{value:ctor,enumerable:!1,writable:!0,configurable:!0}})},exports.mixin=function(obj,mixin){for(var key in mixin)obj[key]=mixin[key];return obj},exports.implement=function(proto,mixin){exports.mixin(proto,mixin)}}),ace.define("ace/range",["require","exports","module"],function(acequire,exports){"use strict";var comparePoints=function(p1,p2){return p1.row-p2.row||p1.column-p2.column},Range=function(startRow,startColumn,endRow,endColumn){this.start={row:startRow,column:startColumn},this.end={row:endRow,column:endColumn}};(function(){this.isEqual=function(range){return this.start.row===range.start.row&&this.end.row===range.end.row&&this.start.column===range.start.column&&this.end.column===range.end.column},this.toString=function(){return"Range: ["+this.start.row+"/"+this.start.column+"] -> ["+this.end.row+"/"+this.end.column+"]"},this.contains=function(row,column){return 0==this.compare(row,column)},this.compareRange=function(range){var cmp,end=range.end,start=range.start;return cmp=this.compare(end.row,end.column),1==cmp?(cmp=this.compare(start.row,start.column),1==cmp?2:0==cmp?1:0):-1==cmp?-2:(cmp=this.compare(start.row,start.column),-1==cmp?-1:1==cmp?42:0)},this.comparePoint=function(p){return this.compare(p.row,p.column)},this.containsRange=function(range){return 0==this.comparePoint(range.start)&&0==this.comparePoint(range.end)},this.intersects=function(range){var cmp=this.compareRange(range);return-1==cmp||0==cmp||1==cmp},this.isEnd=function(row,column){return this.end.row==row&&this.end.column==column},this.isStart=function(row,column){return this.start.row==row&&this.start.column==column},this.setStart=function(row,column){"object"==typeof row?(this.start.column=row.column,this.start.row=row.row):(this.start.row=row,this.start.column=column)},this.setEnd=function(row,column){"object"==typeof row?(this.end.column=row.column,this.end.row=row.row):(this.end.row=row,this.end.column=column)},this.inside=function(row,column){return 0==this.compare(row,column)?this.isEnd(row,column)||this.isStart(row,column)?!1:!0:!1},this.insideStart=function(row,column){return 0==this.compare(row,column)?this.isEnd(row,column)?!1:!0:!1},this.insideEnd=function(row,column){return 0==this.compare(row,column)?this.isStart(row,column)?!1:!0:!1},this.compare=function(row,column){return this.isMultiLine()||row!==this.start.row?this.start.row>row?-1:row>this.end.row?1:this.start.row===row?column>=this.start.column?0:-1:this.end.row===row?this.end.column>=column?0:1:0:this.start.column>column?-1:column>this.end.column?1:0},this.compareStart=function(row,column){return this.start.row==row&&this.start.column==column?-1:this.compare(row,column)},this.compareEnd=function(row,column){return this.end.row==row&&this.end.column==column?1:this.compare(row,column)},this.compareInside=function(row,column){return this.end.row==row&&this.end.column==column?1:this.start.row==row&&this.start.column==column?-1:this.compare(row,column)},this.clipRows=function(firstRow,lastRow){if(this.end.row>lastRow)var end={row:lastRow+1,column:0};else if(firstRow>this.end.row)var end={row:firstRow,column:0};if(this.start.row>lastRow)var start={row:lastRow+1,column:0};else if(firstRow>this.start.row)var start={row:firstRow,column:0};return Range.fromPoints(start||this.start,end||this.end)},this.extend=function(row,column){var cmp=this.compare(row,column);if(0==cmp)return this;if(-1==cmp)var start={row:row,column:column};else var end={row:row,column:column};return Range.fromPoints(start||this.start,end||this.end)},this.isEmpty=function(){return this.start.row===this.end.row&&this.start.column===this.end.column},this.isMultiLine=function(){return this.start.row!==this.end.row},this.clone=function(){return Range.fromPoints(this.start,this.end)},this.collapseRows=function(){return 0==this.end.column?new Range(this.start.row,0,Math.max(this.start.row,this.end.row-1),0):new Range(this.start.row,0,this.end.row,0)},this.toScreenRange=function(session){var screenPosStart=session.documentToScreenPosition(this.start),screenPosEnd=session.documentToScreenPosition(this.end);return new Range(screenPosStart.row,screenPosStart.column,screenPosEnd.row,screenPosEnd.column)},this.moveBy=function(row,column){this.start.row+=row,this.start.column+=column,this.end.row+=row,this.end.column+=column}}).call(Range.prototype),Range.fromPoints=function(start,end){return new Range(start.row,start.column,end.row,end.column)},Range.comparePoints=comparePoints,Range.comparePoints=function(p1,p2){return p1.row-p2.row||p1.column-p2.column},exports.Range=Range}),ace.define("ace/apply_delta",["require","exports","module"],function(acequire,exports){"use strict";exports.applyDelta=function(docLines,delta){var row=delta.start.row,startColumn=delta.start.column,line=docLines[row]||"";switch(delta.action){case"insert":var lines=delta.lines;if(1===lines.length)docLines[row]=line.substring(0,startColumn)+delta.lines[0]+line.substring(startColumn);else{var args=[row,1].concat(delta.lines);docLines.splice.apply(docLines,args),docLines[row]=line.substring(0,startColumn)+docLines[row],docLines[row+delta.lines.length-1]+=line.substring(startColumn)}break;case"remove":var endColumn=delta.end.column,endRow=delta.end.row;row===endRow?docLines[row]=line.substring(0,startColumn)+line.substring(endColumn):docLines.splice(row,endRow-row+1,line.substring(0,startColumn)+docLines[endRow].substring(endColumn))}}}),ace.define("ace/lib/event_emitter",["require","exports","module"],function(acequire,exports){"use strict";var EventEmitter={},stopPropagation=function(){this.propagationStopped=!0},preventDefault=function(){this.defaultPrevented=!0};EventEmitter._emit=EventEmitter._dispatchEvent=function(eventName,e){this._eventRegistry||(this._eventRegistry={}),this._defaultHandlers||(this._defaultHandlers={});var listeners=this._eventRegistry[eventName]||[],defaultHandler=this._defaultHandlers[eventName];if(listeners.length||defaultHandler){"object"==typeof e&&e||(e={}),e.type||(e.type=eventName),e.stopPropagation||(e.stopPropagation=stopPropagation),e.preventDefault||(e.preventDefault=preventDefault),listeners=listeners.slice();for(var i=0;listeners.length>i&&(listeners[i](e,this),!e.propagationStopped);i++);return defaultHandler&&!e.defaultPrevented?defaultHandler(e,this):void 0}},EventEmitter._signal=function(eventName,e){var listeners=(this._eventRegistry||{})[eventName];if(listeners){listeners=listeners.slice();for(var i=0;listeners.length>i;i++)listeners[i](e,this)}},EventEmitter.once=function(eventName,callback){var _self=this;callback&&this.addEventListener(eventName,function newCallback(){_self.removeEventListener(eventName,newCallback),callback.apply(null,arguments)})},EventEmitter.setDefaultHandler=function(eventName,callback){var handlers=this._defaultHandlers;if(handlers||(handlers=this._defaultHandlers={_disabled_:{}}),handlers[eventName]){var old=handlers[eventName],disabled=handlers._disabled_[eventName];disabled||(handlers._disabled_[eventName]=disabled=[]),disabled.push(old);var i=disabled.indexOf(callback);-1!=i&&disabled.splice(i,1)}handlers[eventName]=callback},EventEmitter.removeDefaultHandler=function(eventName,callback){var handlers=this._defaultHandlers;if(handlers){var disabled=handlers._disabled_[eventName];if(handlers[eventName]==callback)handlers[eventName],disabled&&this.setDefaultHandler(eventName,disabled.pop());else if(disabled){var i=disabled.indexOf(callback);-1!=i&&disabled.splice(i,1)}}},EventEmitter.on=EventEmitter.addEventListener=function(eventName,callback,capturing){this._eventRegistry=this._eventRegistry||{};var listeners=this._eventRegistry[eventName];return listeners||(listeners=this._eventRegistry[eventName]=[]),-1==listeners.indexOf(callback)&&listeners[capturing?"unshift":"push"](callback),callback},EventEmitter.off=EventEmitter.removeListener=EventEmitter.removeEventListener=function(eventName,callback){this._eventRegistry=this._eventRegistry||{};var listeners=this._eventRegistry[eventName];if(listeners){var index=listeners.indexOf(callback);-1!==index&&listeners.splice(index,1)}},EventEmitter.removeAllListeners=function(eventName){this._eventRegistry&&(this._eventRegistry[eventName]=[])},exports.EventEmitter=EventEmitter}),ace.define("ace/anchor",["require","exports","module","ace/lib/oop","ace/lib/event_emitter"],function(acequire,exports){"use strict";var oop=acequire("./lib/oop"),EventEmitter=acequire("./lib/event_emitter").EventEmitter,Anchor=exports.Anchor=function(doc,row,column){this.$onChange=this.onChange.bind(this),this.attach(doc),column===void 0?this.setPosition(row.row,row.column):this.setPosition(row,column)};(function(){function $pointsInOrder(point1,point2,equalPointsInOrder){var bColIsAfter=equalPointsInOrder?point1.column<=point2.column:point1.columnthis.row)){var point=$getTransformedPoint(delta,{row:this.row,column:this.column},this.$insertRight);this.setPosition(point.row,point.column,!0)}},this.setPosition=function(row,column,noClip){var pos;if(pos=noClip?{row:row,column:column}:this.$clipPositionToDocument(row,column),this.row!=pos.row||this.column!=pos.column){var old={row:this.row,column:this.column};this.row=pos.row,this.column=pos.column,this._signal("change",{old:old,value:pos})}},this.detach=function(){this.document.removeEventListener("change",this.$onChange)},this.attach=function(doc){this.document=doc||this.document,this.document.on("change",this.$onChange)},this.$clipPositionToDocument=function(row,column){var pos={};return row>=this.document.getLength()?(pos.row=Math.max(0,this.document.getLength()-1),pos.column=this.document.getLine(pos.row).length):0>row?(pos.row=0,pos.column=0):(pos.row=row,pos.column=Math.min(this.document.getLine(pos.row).length,Math.max(0,column))),0>column&&(pos.column=0),pos}}).call(Anchor.prototype)}),ace.define("ace/document",["require","exports","module","ace/lib/oop","ace/apply_delta","ace/lib/event_emitter","ace/range","ace/anchor"],function(acequire,exports){"use strict";var oop=acequire("./lib/oop"),applyDelta=acequire("./apply_delta").applyDelta,EventEmitter=acequire("./lib/event_emitter").EventEmitter,Range=acequire("./range").Range,Anchor=acequire("./anchor").Anchor,Document=function(textOrLines){this.$lines=[""],0===textOrLines.length?this.$lines=[""]:Array.isArray(textOrLines)?this.insertMergedLines({row:0,column:0},textOrLines):this.insert({row:0,column:0},textOrLines)};(function(){oop.implement(this,EventEmitter),this.setValue=function(text){var len=this.getLength()-1;this.remove(new Range(0,0,len,this.getLine(len).length)),this.insert({row:0,column:0},text)},this.getValue=function(){return this.getAllLines().join(this.getNewLineCharacter())},this.createAnchor=function(row,column){return new Anchor(this,row,column)},this.$split=0==="aaa".split(/a/).length?function(text){return text.replace(/\\r\\n|\\r/g,"\\n").split("\\n")}:function(text){return text.split(/\\r\\n|\\r|\\n/)},this.$detectNewLine=function(text){var match=text.match(/^.*?(\\r\\n|\\r|\\n)/m);this.$autoNewLine=match?match[1]:"\\n",this._signal("changeNewLineMode")},this.getNewLineCharacter=function(){switch(this.$newLineMode){case"windows":return"\\r\\n";case"unix":return"\\n";default:return this.$autoNewLine||"\\n"}},this.$autoNewLine="",this.$newLineMode="auto",this.setNewLineMode=function(newLineMode){this.$newLineMode!==newLineMode&&(this.$newLineMode=newLineMode,this._signal("changeNewLineMode"))},this.getNewLineMode=function(){return this.$newLineMode},this.isNewLine=function(text){return"\\r\\n"==text||"\\r"==text||"\\n"==text},this.getLine=function(row){return this.$lines[row]||""},this.getLines=function(firstRow,lastRow){return this.$lines.slice(firstRow,lastRow+1)},this.getAllLines=function(){return this.getLines(0,this.getLength())},this.getLength=function(){return this.$lines.length},this.getTextRange=function(range){return this.getLinesForRange(range).join(this.getNewLineCharacter())},this.getLinesForRange=function(range){var lines;if(range.start.row===range.end.row)lines=[this.getLine(range.start.row).substring(range.start.column,range.end.column)];else{lines=this.getLines(range.start.row,range.end.row),lines[0]=(lines[0]||"").substring(range.start.column);var l=lines.length-1;range.end.row-range.start.row==l&&(lines[l]=lines[l].substring(0,range.end.column))}return lines},this.insertLines=function(row,lines){return console.warn("Use of document.insertLines is deprecated. Use the insertFullLines method instead."),this.insertFullLines(row,lines)},this.removeLines=function(firstRow,lastRow){return console.warn("Use of document.removeLines is deprecated. Use the removeFullLines method instead."),this.removeFullLines(firstRow,lastRow)},this.insertNewLine=function(position){return console.warn("Use of document.insertNewLine is deprecated. Use insertMergedLines(position, ['', '']) instead."),this.insertMergedLines(position,["",""])},this.insert=function(position,text){return 1>=this.getLength()&&this.$detectNewLine(text),this.insertMergedLines(position,this.$split(text))},this.insertInLine=function(position,text){var start=this.clippedPos(position.row,position.column),end=this.pos(position.row,position.column+text.length);return this.applyDelta({start:start,end:end,action:"insert",lines:[text]},!0),this.clonePos(end)},this.clippedPos=function(row,column){var length=this.getLength();void 0===row?row=length:0>row?row=0:row>=length&&(row=length-1,column=void 0);var line=this.getLine(row);return void 0==column&&(column=line.length),column=Math.min(Math.max(column,0),line.length),{row:row,column:column}},this.clonePos=function(pos){return{row:pos.row,column:pos.column}},this.pos=function(row,column){return{row:row,column:column}},this.$clipPosition=function(position){var length=this.getLength();return position.row>=length?(position.row=Math.max(0,length-1),position.column=this.getLine(length-1).length):(position.row=Math.max(0,position.row),position.column=Math.min(Math.max(position.column,0),this.getLine(position.row).length)),position},this.insertFullLines=function(row,lines){row=Math.min(Math.max(row,0),this.getLength());var column=0;this.getLength()>row?(lines=lines.concat([""]),column=0):(lines=[""].concat(lines),row--,column=this.$lines[row].length),this.insertMergedLines({row:row,column:column},lines)},this.insertMergedLines=function(position,lines){var start=this.clippedPos(position.row,position.column),end={row:start.row+lines.length-1,column:(1==lines.length?start.column:0)+lines[lines.length-1].length};return this.applyDelta({start:start,end:end,action:"insert",lines:lines}),this.clonePos(end)},this.remove=function(range){var start=this.clippedPos(range.start.row,range.start.column),end=this.clippedPos(range.end.row,range.end.column);return this.applyDelta({start:start,end:end,action:"remove",lines:this.getLinesForRange({start:start,end:end})}),this.clonePos(start)},this.removeInLine=function(row,startColumn,endColumn){var start=this.clippedPos(row,startColumn),end=this.clippedPos(row,endColumn);return this.applyDelta({start:start,end:end,action:"remove",lines:this.getLinesForRange({start:start,end:end})},!0),this.clonePos(start)},this.removeFullLines=function(firstRow,lastRow){firstRow=Math.min(Math.max(0,firstRow),this.getLength()-1),lastRow=Math.min(Math.max(0,lastRow),this.getLength()-1);var deleteFirstNewLine=lastRow==this.getLength()-1&&firstRow>0,deleteLastNewLine=this.getLength()-1>lastRow,startRow=deleteFirstNewLine?firstRow-1:firstRow,startCol=deleteFirstNewLine?this.getLine(startRow).length:0,endRow=deleteLastNewLine?lastRow+1:lastRow,endCol=deleteLastNewLine?0:this.getLine(endRow).length,range=new Range(startRow,startCol,endRow,endCol),deletedLines=this.$lines.slice(firstRow,lastRow+1);return this.applyDelta({start:range.start,end:range.end,action:"remove",lines:this.getLinesForRange(range)}),deletedLines},this.removeNewLine=function(row){this.getLength()-1>row&&row>=0&&this.applyDelta({start:this.pos(row,this.getLine(row).length),end:this.pos(row+1,0),action:"remove",lines:["",""]})},this.replace=function(range,text){if(range instanceof Range||(range=Range.fromPoints(range.start,range.end)),0===text.length&&range.isEmpty())return range.start;if(text==this.getTextRange(range))return range.end;this.remove(range);var end;return end=text?this.insert(range.start,text):range.start},this.applyDeltas=function(deltas){for(var i=0;deltas.length>i;i++)this.applyDelta(deltas[i])},this.revertDeltas=function(deltas){for(var i=deltas.length-1;i>=0;i--)this.revertDelta(deltas[i])},this.applyDelta=function(delta,doNotValidate){var isInsert="insert"==delta.action;(isInsert?1>=delta.lines.length&&!delta.lines[0]:!Range.comparePoints(delta.start,delta.end))||(isInsert&&delta.lines.length>2e4&&this.$splitAndapplyLargeDelta(delta,2e4),applyDelta(this.$lines,delta,doNotValidate),this._signal("change",delta))},this.$splitAndapplyLargeDelta=function(delta,MAX){for(var lines=delta.lines,l=lines.length,row=delta.start.row,column=delta.start.column,from=0,to=0;;){from=to,to+=MAX-1;var chunk=lines.slice(from,to);if(to>l){delta.lines=chunk,delta.start.row=row+from,delta.start.column=column;break}chunk.push(""),this.applyDelta({start:this.pos(row+from,column),end:this.pos(row+to,column=0),action:delta.action,lines:chunk},!0)}},this.revertDelta=function(delta){this.applyDelta({start:this.clonePos(delta.start),end:this.clonePos(delta.end),action:"insert"==delta.action?"remove":"insert",lines:delta.lines.slice()})},this.indexToPosition=function(index,startRow){for(var lines=this.$lines||this.getAllLines(),newlineLength=this.getNewLineCharacter().length,i=startRow||0,l=lines.length;l>i;i++)if(index-=lines[i].length+newlineLength,0>index)return{row:i,column:index+lines[i].length+newlineLength};return{row:l-1,column:lines[l-1].length}},this.positionToIndex=function(pos,startRow){for(var lines=this.$lines||this.getAllLines(),newlineLength=this.getNewLineCharacter().length,index=0,row=Math.min(pos.row,lines.length),i=startRow||0;row>i;++i)index+=lines[i].length+newlineLength;return index+pos.column}}).call(Document.prototype),exports.Document=Document}),ace.define("ace/lib/lang",["require","exports","module"],function(acequire,exports){"use strict";exports.last=function(a){return a[a.length-1]},exports.stringReverse=function(string){return string.split("").reverse().join("")},exports.stringRepeat=function(string,count){for(var result="";count>0;)1&count&&(result+=string),(count>>=1)&&(string+=string);return result};var trimBeginRegexp=/^\\s\\s*/,trimEndRegexp=/\\s\\s*$/;exports.stringTrimLeft=function(string){return string.replace(trimBeginRegexp,"")},exports.stringTrimRight=function(string){return string.replace(trimEndRegexp,"")},exports.copyObject=function(obj){var copy={};for(var key in obj)copy[key]=obj[key];return copy},exports.copyArray=function(array){for(var copy=[],i=0,l=array.length;l>i;i++)copy[i]=array[i]&&"object"==typeof array[i]?this.copyObject(array[i]):array[i];return copy},exports.deepCopy=function deepCopy(obj){if("object"!=typeof obj||!obj)return obj;var copy;if(Array.isArray(obj)){copy=[];for(var key=0;obj.length>key;key++)copy[key]=deepCopy(obj[key]);return copy}if("[object Object]"!==Object.prototype.toString.call(obj))return obj;copy={};for(var key in obj)copy[key]=deepCopy(obj[key]);return copy},exports.arrayToMap=function(arr){for(var map={},i=0;arr.length>i;i++)map[arr[i]]=1;return map},exports.createMap=function(props){var map=Object.create(null);for(var i in props)map[i]=props[i];return map},exports.arrayRemove=function(array,value){for(var i=0;array.length>=i;i++)value===array[i]&&array.splice(i,1)},exports.escapeRegExp=function(str){return str.replace(/([.*+?^\${}()|[\\]\\/\\\\])/g,"\\\\$1")},exports.escapeHTML=function(str){return str.replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(/i;i+=2){if(Array.isArray(data[i+1]))var d={action:"insert",start:data[i],lines:data[i+1]};else var d={action:"remove",start:data[i],end:data[i+1]};doc.applyDelta(d,!0)}return _self.$timeout?deferredUpdate.schedule(_self.$timeout):(_self.onUpdate(),void 0)})};(function(){this.$timeout=500,this.setTimeout=function(timeout){this.$timeout=timeout},this.setValue=function(value){this.doc.setValue(value),this.deferredUpdate.schedule(this.$timeout)},this.getValue=function(callbackId){this.sender.callback(this.doc.getValue(),callbackId)},this.onUpdate=function(){},this.isPending=function(){return this.deferredUpdate.isPending()}}).call(Mirror.prototype)}),ace.define("ace/mode/javascript/jshint",["require","exports","module"],function(acequire,exports,module){module.exports=function outer(modules,cache,entry){function newRequire(name,jumped){if(!cache[name]){if(!modules[name]){var currentRequire="function"==typeof acequire&&acequire;if(!jumped&¤tRequire)return currentRequire(name,!0);if(previousRequire)return previousRequire(name,!0);var err=Error("Cannot find module '"+name+"'");throw err.code="MODULE_NOT_FOUND",err}var m=cache[name]={exports:{}};modules[name][0].call(m.exports,function(x){var id=modules[name][1][x];return newRequire(id?id:x)},m,m.exports,outer,modules,cache,entry)}return cache[name].exports}for(var previousRequire="function"==typeof acequire&&acequire,i=0;entry.length>i;i++)newRequire(entry[i]);return newRequire(entry[0])}({"/node_modules/browserify/node_modules/events/events.js":[function(_dereq_,module){function EventEmitter(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}function isFunction(arg){return"function"==typeof arg}function isNumber(arg){return"number"==typeof arg}function isObject(arg){return"object"==typeof arg&&null!==arg}function isUndefined(arg){return void 0===arg}module.exports=EventEmitter,EventEmitter.EventEmitter=EventEmitter,EventEmitter.prototype._events=void 0,EventEmitter.prototype._maxListeners=void 0,EventEmitter.defaultMaxListeners=10,EventEmitter.prototype.setMaxListeners=function(n){if(!isNumber(n)||0>n||isNaN(n))throw TypeError("n must be a positive number");return this._maxListeners=n,this},EventEmitter.prototype.emit=function(type){var er,handler,len,args,i,listeners;if(this._events||(this._events={}),"error"===type&&(!this._events.error||isObject(this._events.error)&&!this._events.error.length)){if(er=arguments[1],er instanceof Error)throw er;throw TypeError('Uncaught, unspecified "error" event.')}if(handler=this._events[type],isUndefined(handler))return!1;if(isFunction(handler))switch(arguments.length){case 1:handler.call(this);break;case 2:handler.call(this,arguments[1]);break;case 3:handler.call(this,arguments[1],arguments[2]);break;default:for(len=arguments.length,args=Array(len-1),i=1;len>i;i++)args[i-1]=arguments[i];handler.apply(this,args)}else if(isObject(handler)){for(len=arguments.length,args=Array(len-1),i=1;len>i;i++)args[i-1]=arguments[i];for(listeners=handler.slice(),len=listeners.length,i=0;len>i;i++)listeners[i].apply(this,args)}return!0},EventEmitter.prototype.addListener=function(type,listener){var m;if(!isFunction(listener))throw TypeError("listener must be a function");if(this._events||(this._events={}),this._events.newListener&&this.emit("newListener",type,isFunction(listener.listener)?listener.listener:listener),this._events[type]?isObject(this._events[type])?this._events[type].push(listener):this._events[type]=[this._events[type],listener]:this._events[type]=listener,isObject(this._events[type])&&!this._events[type].warned){var m;m=isUndefined(this._maxListeners)?EventEmitter.defaultMaxListeners:this._maxListeners,m&&m>0&&this._events[type].length>m&&(this._events[type].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[type].length),"function"==typeof console.trace&&console.trace())}return this},EventEmitter.prototype.on=EventEmitter.prototype.addListener,EventEmitter.prototype.once=function(type,listener){function g(){this.removeListener(type,g),fired||(fired=!0,listener.apply(this,arguments))}if(!isFunction(listener))throw TypeError("listener must be a function");var fired=!1;return g.listener=listener,this.on(type,g),this},EventEmitter.prototype.removeListener=function(type,listener){var list,position,length,i;if(!isFunction(listener))throw TypeError("listener must be a function");if(!this._events||!this._events[type])return this;if(list=this._events[type],length=list.length,position=-1,list===listener||isFunction(list.listener)&&list.listener===listener)delete this._events[type],this._events.removeListener&&this.emit("removeListener",type,listener);else if(isObject(list)){for(i=length;i-->0;)if(list[i]===listener||list[i].listener&&list[i].listener===listener){position=i;break}if(0>position)return this;1===list.length?(list.length=0,delete this._events[type]):list.splice(position,1),this._events.removeListener&&this.emit("removeListener",type,listener)}return this},EventEmitter.prototype.removeAllListeners=function(type){var key,listeners;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[type]&&delete this._events[type],this;if(0===arguments.length){for(key in this._events)"removeListener"!==key&&this.removeAllListeners(key);return this.removeAllListeners("removeListener"),this._events={},this }if(listeners=this._events[type],isFunction(listeners))this.removeListener(type,listeners);else for(;listeners.length;)this.removeListener(type,listeners[listeners.length-1]);return delete this._events[type],this},EventEmitter.prototype.listeners=function(type){var ret;return ret=this._events&&this._events[type]?isFunction(this._events[type])?[this._events[type]]:this._events[type].slice():[]},EventEmitter.listenerCount=function(emitter,type){var ret;return ret=emitter._events&&emitter._events[type]?isFunction(emitter._events[type])?1:emitter._events[type].length:0}},{}],"/node_modules/jshint/data/ascii-identifier-data.js":[function(_dereq_,module){for(var identifierStartTable=[],i=0;128>i;i++)identifierStartTable[i]=36===i||i>=65&&90>=i||95===i||i>=97&&122>=i;for(var identifierPartTable=[],i=0;128>i;i++)identifierPartTable[i]=identifierStartTable[i]||i>=48&&57>=i;module.exports={asciiIdentifierStartTable:identifierStartTable,asciiIdentifierPartTable:identifierPartTable}},{}],"/node_modules/jshint/lodash.js":[function(_dereq_,module,exports){(function(global){(function(){function baseFindIndex(array,predicate,fromRight){for(var length=array.length,index=fromRight?length:-1;fromRight?index--:length>++index;)if(predicate(array[index],index,array))return index;return-1}function baseIndexOf(array,value,fromIndex){if(value!==value)return indexOfNaN(array,fromIndex);for(var index=fromIndex-1,length=array.length;length>++index;)if(array[index]===value)return index;return-1}function baseIsFunction(value){return"function"==typeof value||!1}function baseToString(value){return"string"==typeof value?value:null==value?"":value+""}function indexOfNaN(array,fromIndex,fromRight){for(var length=array.length,index=fromIndex+(fromRight?0:-1);fromRight?index--:length>++index;){var other=array[index];if(other!==other)return index}return-1}function isObjectLike(value){return!!value&&"object"==typeof value}function lodash(){}function arrayCopy(source,array){var index=-1,length=source.length;for(array||(array=Array(length));length>++index;)array[index]=source[index];return array}function arrayEach(array,iteratee){for(var index=-1,length=array.length;length>++index&&iteratee(array[index],index,array)!==!1;);return array}function arrayFilter(array,predicate){for(var index=-1,length=array.length,resIndex=-1,result=[];length>++index;){var value=array[index];predicate(value,index,array)&&(result[++resIndex]=value)}return result}function arrayMap(array,iteratee){for(var index=-1,length=array.length,result=Array(length);length>++index;)result[index]=iteratee(array[index],index,array);return result}function arrayMax(array){for(var index=-1,length=array.length,result=NEGATIVE_INFINITY;length>++index;){var value=array[index];value>result&&(result=value)}return result}function arraySome(array,predicate){for(var index=-1,length=array.length;length>++index;)if(predicate(array[index],index,array))return!0;return!1}function assignWith(object,source,customizer){var props=keys(source);push.apply(props,getSymbols(source));for(var index=-1,length=props.length;length>++index;){var key=props[index],value=object[key],result=customizer(value,source[key],key,object,source);(result===result?result===value:value!==value)&&(value!==undefined||key in object)||(object[key]=result)}return object}function baseCopy(source,props,object){object||(object={});for(var index=-1,length=props.length;length>++index;){var key=props[index];object[key]=source[key]}return object}function baseCallback(func,thisArg,argCount){var type=typeof func;return"function"==type?thisArg===undefined?func:bindCallback(func,thisArg,argCount):null==func?identity:"object"==type?baseMatches(func):thisArg===undefined?property(func):baseMatchesProperty(func,thisArg)}function baseClone(value,isDeep,customizer,key,object,stackA,stackB){var result;if(customizer&&(result=object?customizer(value,key,object):customizer(value)),result!==undefined)return result;if(!isObject(value))return value;var isArr=isArray(value);if(isArr){if(result=initCloneArray(value),!isDeep)return arrayCopy(value,result)}else{var tag=objToString.call(value),isFunc=tag==funcTag;if(tag!=objectTag&&tag!=argsTag&&(!isFunc||object))return cloneableTags[tag]?initCloneByTag(value,tag,isDeep):object?value:{};if(result=initCloneObject(isFunc?{}:value),!isDeep)return baseAssign(result,value)}stackA||(stackA=[]),stackB||(stackB=[]);for(var length=stackA.length;length--;)if(stackA[length]==value)return stackB[length];return stackA.push(value),stackB.push(result),(isArr?arrayEach:baseForOwn)(value,function(subValue,key){result[key]=baseClone(subValue,isDeep,customizer,key,value,stackA,stackB)}),result}function baseFilter(collection,predicate){var result=[];return baseEach(collection,function(value,index,collection){predicate(value,index,collection)&&result.push(value)}),result}function baseForIn(object,iteratee){return baseFor(object,iteratee,keysIn)}function baseForOwn(object,iteratee){return baseFor(object,iteratee,keys)}function baseGet(object,path,pathKey){if(null!=object){pathKey!==undefined&&pathKey in toObject(object)&&(path=[pathKey]);for(var index=-1,length=path.length;null!=object&&length>++index;)var result=object=object[path[index]];return result}}function baseIsEqual(value,other,customizer,isLoose,stackA,stackB){if(value===other)return 0!==value||1/value==1/other;var valType=typeof value,othType=typeof other;return"function"!=valType&&"object"!=valType&&"function"!=othType&&"object"!=othType||null==value||null==other?value!==value&&other!==other:baseIsEqualDeep(value,other,baseIsEqual,customizer,isLoose,stackA,stackB)}function baseIsEqualDeep(object,other,equalFunc,customizer,isLoose,stackA,stackB){var objIsArr=isArray(object),othIsArr=isArray(other),objTag=arrayTag,othTag=arrayTag;objIsArr||(objTag=objToString.call(object),objTag==argsTag?objTag=objectTag:objTag!=objectTag&&(objIsArr=isTypedArray(object))),othIsArr||(othTag=objToString.call(other),othTag==argsTag?othTag=objectTag:othTag!=objectTag&&(othIsArr=isTypedArray(other)));var objIsObj=objTag==objectTag,othIsObj=othTag==objectTag,isSameTag=objTag==othTag;if(isSameTag&&!objIsArr&&!objIsObj)return equalByTag(object,other,objTag);if(!isLoose){var valWrapped=objIsObj&&hasOwnProperty.call(object,"__wrapped__"),othWrapped=othIsObj&&hasOwnProperty.call(other,"__wrapped__");if(valWrapped||othWrapped)return equalFunc(valWrapped?object.value():object,othWrapped?other.value():other,customizer,isLoose,stackA,stackB)}if(!isSameTag)return!1;stackA||(stackA=[]),stackB||(stackB=[]);for(var length=stackA.length;length--;)if(stackA[length]==object)return stackB[length]==other;stackA.push(object),stackB.push(other);var result=(objIsArr?equalArrays:equalObjects)(object,other,equalFunc,customizer,isLoose,stackA,stackB);return stackA.pop(),stackB.pop(),result}function baseIsMatch(object,props,values,strictCompareFlags,customizer){for(var index=-1,length=props.length,noCustomizer=!customizer;length>++index;)if(noCustomizer&&strictCompareFlags[index]?values[index]!==object[props[index]]:!(props[index]in object))return!1;for(index=-1;length>++index;){var key=props[index],objValue=object[key],srcValue=values[index];if(noCustomizer&&strictCompareFlags[index])var result=objValue!==undefined||key in object;else result=customizer?customizer(objValue,srcValue,key):undefined,result===undefined&&(result=baseIsEqual(srcValue,objValue,customizer,!0));if(!result)return!1}return!0}function baseMatches(source){var props=keys(source),length=props.length;if(!length)return constant(!0);if(1==length){var key=props[0],value=source[key];if(isStrictComparable(value))return function(object){return null==object?!1:object[key]===value&&(value!==undefined||key in toObject(object))}}for(var values=Array(length),strictCompareFlags=Array(length);length--;)value=source[props[length]],values[length]=value,strictCompareFlags[length]=isStrictComparable(value);return function(object){return null!=object&&baseIsMatch(toObject(object),props,values,strictCompareFlags)}}function baseMatchesProperty(path,value){var isArr=isArray(path),isCommon=isKey(path)&&isStrictComparable(value),pathKey=path+"";return path=toPath(path),function(object){if(null==object)return!1;var key=pathKey;if(object=toObject(object),!(!isArr&&isCommon||key in object)){if(object=1==path.length?object:baseGet(object,baseSlice(path,0,-1)),null==object)return!1;key=last(path),object=toObject(object)}return object[key]===value?value!==undefined||key in object:baseIsEqual(value,object[key],null,!0)}}function baseMerge(object,source,customizer,stackA,stackB){if(!isObject(object))return object;var isSrcArr=isLength(source.length)&&(isArray(source)||isTypedArray(source));if(!isSrcArr){var props=keys(source);push.apply(props,getSymbols(source))}return arrayEach(props||source,function(srcValue,key){if(props&&(key=srcValue,srcValue=source[key]),isObjectLike(srcValue))stackA||(stackA=[]),stackB||(stackB=[]),baseMergeDeep(object,source,key,baseMerge,customizer,stackA,stackB);else{var value=object[key],result=customizer?customizer(value,srcValue,key,object,source):undefined,isCommon=result===undefined;isCommon&&(result=srcValue),!isSrcArr&&result===undefined||!isCommon&&(result===result?result===value:value!==value)||(object[key]=result)}}),object}function baseMergeDeep(object,source,key,mergeFunc,customizer,stackA,stackB){for(var length=stackA.length,srcValue=source[key];length--;)if(stackA[length]==srcValue)return object[key]=stackB[length],undefined;var value=object[key],result=customizer?customizer(value,srcValue,key,object,source):undefined,isCommon=result===undefined;isCommon&&(result=srcValue,isLength(srcValue.length)&&(isArray(srcValue)||isTypedArray(srcValue))?result=isArray(value)?value:getLength(value)?arrayCopy(value):[]:isPlainObject(srcValue)||isArguments(srcValue)?result=isArguments(value)?toPlainObject(value):isPlainObject(value)?value:{}:isCommon=!1),stackA.push(srcValue),stackB.push(result),isCommon?object[key]=mergeFunc(result,srcValue,customizer,stackA,stackB):(result===result?result!==value:value===value)&&(object[key]=result)}function baseProperty(key){return function(object){return null==object?undefined:object[key]}}function basePropertyDeep(path){var pathKey=path+"";return path=toPath(path),function(object){return baseGet(object,path,pathKey)}}function baseSlice(array,start,end){var index=-1,length=array.length;start=null==start?0:+start||0,0>start&&(start=-start>length?0:length+start),end=end===undefined||end>length?length:+end||0,0>end&&(end+=length),length=start>end?0:end-start>>>0,start>>>=0;for(var result=Array(length);length>++index;)result[index]=array[index+start];return result}function baseSome(collection,predicate){var result;return baseEach(collection,function(value,index,collection){return result=predicate(value,index,collection),!result}),!!result}function baseValues(object,props){for(var index=-1,length=props.length,result=Array(length);length>++index;)result[index]=object[props[index]];return result}function binaryIndex(array,value,retHighest){var low=0,high=array?array.length:low;if("number"==typeof value&&value===value&&HALF_MAX_ARRAY_LENGTH>=high){for(;high>low;){var mid=low+high>>>1,computed=array[mid];(retHighest?value>=computed:value>computed)?low=mid+1:high=mid}return high}return binaryIndexBy(array,value,identity,retHighest)}function binaryIndexBy(array,value,iteratee,retHighest){value=iteratee(value);for(var low=0,high=array?array.length:0,valIsNaN=value!==value,valIsUndef=value===undefined;high>low;){var mid=floor((low+high)/2),computed=iteratee(array[mid]),isReflexive=computed===computed;if(valIsNaN)var setLow=isReflexive||retHighest;else setLow=valIsUndef?isReflexive&&(retHighest||computed!==undefined):retHighest?value>=computed:value>computed;setLow?low=mid+1:high=mid}return nativeMin(high,MAX_ARRAY_INDEX)}function bindCallback(func,thisArg,argCount){if("function"!=typeof func)return identity;if(thisArg===undefined)return func;switch(argCount){case 1:return function(value){return func.call(thisArg,value)};case 3:return function(value,index,collection){return func.call(thisArg,value,index,collection)};case 4:return function(accumulator,value,index,collection){return func.call(thisArg,accumulator,value,index,collection)};case 5:return function(value,other,key,object,source){return func.call(thisArg,value,other,key,object,source)}}return function(){return func.apply(thisArg,arguments)}}function bufferClone(buffer){return bufferSlice.call(buffer,0)}function createAssigner(assigner){return restParam(function(object,sources){var index=-1,length=null==object?0:sources.length,customizer=length>2&&sources[length-2],guard=length>2&&sources[2],thisArg=length>1&&sources[length-1];for("function"==typeof customizer?(customizer=bindCallback(customizer,thisArg,5),length-=2):(customizer="function"==typeof thisArg?thisArg:null,length-=customizer?1:0),guard&&isIterateeCall(sources[0],sources[1],guard)&&(customizer=3>length?null:customizer,length=1);length>++index;){var source=sources[index];source&&assigner(object,source,customizer)}return object})}function createBaseEach(eachFunc,fromRight){return function(collection,iteratee){var length=collection?getLength(collection):0;if(!isLength(length))return eachFunc(collection,iteratee);for(var index=fromRight?length:-1,iterable=toObject(collection);(fromRight?index--:length>++index)&&iteratee(iterable[index],index,iterable)!==!1;);return collection}}function createBaseFor(fromRight){return function(object,iteratee,keysFunc){for(var iterable=toObject(object),props=keysFunc(object),length=props.length,index=fromRight?length:-1;fromRight?index--:length>++index;){var key=props[index];if(iteratee(iterable[key],key,iterable)===!1)break}return object}}function createFindIndex(fromRight){return function(array,predicate,thisArg){return array&&array.length?(predicate=getCallback(predicate,thisArg,3),baseFindIndex(array,predicate,fromRight)):-1}}function createForEach(arrayFunc,eachFunc){return function(collection,iteratee,thisArg){return"function"==typeof iteratee&&thisArg===undefined&&isArray(collection)?arrayFunc(collection,iteratee):eachFunc(collection,bindCallback(iteratee,thisArg,3))}}function equalArrays(array,other,equalFunc,customizer,isLoose,stackA,stackB){var index=-1,arrLength=array.length,othLength=other.length,result=!0;if(arrLength!=othLength&&!(isLoose&&othLength>arrLength))return!1;for(;result&&arrLength>++index;){var arrValue=array[index],othValue=other[index];if(result=undefined,customizer&&(result=isLoose?customizer(othValue,arrValue,index):customizer(arrValue,othValue,index)),result===undefined)if(isLoose)for(var othIndex=othLength;othIndex--&&(othValue=other[othIndex],!(result=arrValue&&arrValue===othValue||equalFunc(arrValue,othValue,customizer,isLoose,stackA,stackB))););else result=arrValue&&arrValue===othValue||equalFunc(arrValue,othValue,customizer,isLoose,stackA,stackB)}return!!result}function equalByTag(object,other,tag){switch(tag){case boolTag:case dateTag:return+object==+other;case errorTag:return object.name==other.name&&object.message==other.message;case numberTag:return object!=+object?other!=+other:0==object?1/object==1/other:object==+other;case regexpTag:case stringTag:return object==other+""}return!1}function equalObjects(object,other,equalFunc,customizer,isLoose,stackA,stackB){var objProps=keys(object),objLength=objProps.length,othProps=keys(other),othLength=othProps.length;if(objLength!=othLength&&!isLoose)return!1;for(var skipCtor=isLoose,index=-1;objLength>++index;){var key=objProps[index],result=isLoose?key in other:hasOwnProperty.call(other,key);if(result){var objValue=object[key],othValue=other[key];result=undefined,customizer&&(result=isLoose?customizer(othValue,objValue,key):customizer(objValue,othValue,key)),result===undefined&&(result=objValue&&objValue===othValue||equalFunc(objValue,othValue,customizer,isLoose,stackA,stackB))}if(!result)return!1;skipCtor||(skipCtor="constructor"==key)}if(!skipCtor){var objCtor=object.constructor,othCtor=other.constructor;if(objCtor!=othCtor&&"constructor"in object&&"constructor"in other&&!("function"==typeof objCtor&&objCtor instanceof objCtor&&"function"==typeof othCtor&&othCtor instanceof othCtor))return!1}return!0}function getCallback(func,thisArg,argCount){var result=lodash.callback||callback;return result=result===callback?baseCallback:result,argCount?result(func,thisArg,argCount):result}function getIndexOf(collection,target,fromIndex){var result=lodash.indexOf||indexOf;return result=result===indexOf?baseIndexOf:result,collection?result(collection,target,fromIndex):result}function initCloneArray(array){var length=array.length,result=new array.constructor(length);return length&&"string"==typeof array[0]&&hasOwnProperty.call(array,"index")&&(result.index=array.index,result.input=array.input),result}function initCloneObject(object){var Ctor=object.constructor;return"function"==typeof Ctor&&Ctor instanceof Ctor||(Ctor=Object),new Ctor}function initCloneByTag(object,tag,isDeep){var Ctor=object.constructor;switch(tag){case arrayBufferTag:return bufferClone(object);case boolTag:case dateTag:return new Ctor(+object);case float32Tag:case float64Tag:case int8Tag:case int16Tag:case int32Tag:case uint8Tag:case uint8ClampedTag:case uint16Tag:case uint32Tag:var buffer=object.buffer;return new Ctor(isDeep?bufferClone(buffer):buffer,object.byteOffset,object.length);case numberTag:case stringTag:return new Ctor(object);case regexpTag:var result=new Ctor(object.source,reFlags.exec(object));result.lastIndex=object.lastIndex}return result}function isIndex(value,length){return value=+value,length=null==length?MAX_SAFE_INTEGER:length,value>-1&&0==value%1&&length>value}function isIterateeCall(value,index,object){if(!isObject(object))return!1;var type=typeof index;if("number"==type)var length=getLength(object),prereq=isLength(length)&&isIndex(index,length);else prereq="string"==type&&index in object;if(prereq){var other=object[index];return value===value?value===other:other!==other}return!1}function isKey(value,object){var type=typeof value;if("string"==type&&reIsPlainProp.test(value)||"number"==type)return!0;if(isArray(value))return!1;var result=!reIsDeepProp.test(value);return result||null!=object&&value in toObject(object)}function isLength(value){return"number"==typeof value&&value>-1&&0==value%1&&MAX_SAFE_INTEGER>=value}function isStrictComparable(value){return value===value&&(0===value?1/value>0:!isObject(value))}function shimIsPlainObject(value){var Ctor;if(lodash.support,!isObjectLike(value)||objToString.call(value)!=objectTag||!hasOwnProperty.call(value,"constructor")&&(Ctor=value.constructor,"function"==typeof Ctor&&!(Ctor instanceof Ctor)))return!1;var result;return baseForIn(value,function(subValue,key){result=key}),result===undefined||hasOwnProperty.call(value,result)}function shimKeys(object){for(var props=keysIn(object),propsLength=props.length,length=propsLength&&object.length,support=lodash.support,allowIndexes=length&&isLength(length)&&(isArray(object)||support.nonEnumArgs&&isArguments(object)),index=-1,result=[];propsLength>++index;){var key=props[index];(allowIndexes&&isIndex(key,length)||hasOwnProperty.call(object,key))&&result.push(key)}return result}function toObject(value){return isObject(value)?value:Object(value)}function toPath(value){if(isArray(value))return value;var result=[];return baseToString(value).replace(rePropName,function(match,number,quote,string){result.push(quote?string.replace(reEscapeChar,"$1"):number||match)}),result}function indexOf(array,value,fromIndex){var length=array?array.length:0;if(!length)return-1;if("number"==typeof fromIndex)fromIndex=0>fromIndex?nativeMax(length+fromIndex,0):fromIndex;else if(fromIndex){var index=binaryIndex(array,value),other=array[index];return(value===value?value===other:other!==other)?index:-1}return baseIndexOf(array,value,fromIndex||0)}function last(array){var length=array?array.length:0;return length?array[length-1]:undefined}function slice(array,start,end){var length=array?array.length:0;return length?(end&&"number"!=typeof end&&isIterateeCall(array,start,end)&&(start=0,end=length),baseSlice(array,start,end)):[]}function unzip(array){for(var index=-1,length=(array&&array.length&&arrayMax(arrayMap(array,getLength)))>>>0,result=Array(length);length>++index;)result[index]=arrayMap(array,baseProperty(index));return result}function includes(collection,target,fromIndex,guard){var length=collection?getLength(collection):0;return isLength(length)||(collection=values(collection),length=collection.length),length?(fromIndex="number"!=typeof fromIndex||guard&&isIterateeCall(target,fromIndex,guard)?0:0>fromIndex?nativeMax(length+fromIndex,0):fromIndex||0,"string"==typeof collection||!isArray(collection)&&isString(collection)?length>fromIndex&&collection.indexOf(target,fromIndex)>-1:getIndexOf(collection,target,fromIndex)>-1):!1}function reject(collection,predicate,thisArg){var func=isArray(collection)?arrayFilter:baseFilter;return predicate=getCallback(predicate,thisArg,3),func(collection,function(value,index,collection){return!predicate(value,index,collection)})}function some(collection,predicate,thisArg){var func=isArray(collection)?arraySome:baseSome;return thisArg&&isIterateeCall(collection,predicate,thisArg)&&(predicate=null),("function"!=typeof predicate||thisArg!==undefined)&&(predicate=getCallback(predicate,thisArg,3)),func(collection,predicate)}function restParam(func,start){if("function"!=typeof func)throw new TypeError(FUNC_ERROR_TEXT);return start=nativeMax(start===undefined?func.length-1:+start||0,0),function(){for(var args=arguments,index=-1,length=nativeMax(args.length-start,0),rest=Array(length);length>++index;)rest[index]=args[start+index];switch(start){case 0:return func.call(this,rest);case 1:return func.call(this,args[0],rest);case 2:return func.call(this,args[0],args[1],rest)}var otherArgs=Array(start+1);for(index=-1;start>++index;)otherArgs[index]=args[index];return otherArgs[start]=rest,func.apply(this,otherArgs)}}function clone(value,isDeep,customizer,thisArg){return isDeep&&"boolean"!=typeof isDeep&&isIterateeCall(value,isDeep,customizer)?isDeep=!1:"function"==typeof isDeep&&(thisArg=customizer,customizer=isDeep,isDeep=!1),customizer="function"==typeof customizer&&bindCallback(customizer,thisArg,1),baseClone(value,isDeep,customizer)}function isArguments(value){var length=isObjectLike(value)?value.length:undefined;return isLength(length)&&objToString.call(value)==argsTag}function isEmpty(value){if(null==value)return!0;var length=getLength(value);return isLength(length)&&(isArray(value)||isString(value)||isArguments(value)||isObjectLike(value)&&isFunction(value.splice))?!length:!keys(value).length}function isObject(value){var type=typeof value;return"function"==type||!!value&&"object"==type}function isNative(value){return null==value?!1:objToString.call(value)==funcTag?reIsNative.test(fnToString.call(value)):isObjectLike(value)&&reIsHostCtor.test(value)}function isNumber(value){return"number"==typeof value||isObjectLike(value)&&objToString.call(value)==numberTag}function isString(value){return"string"==typeof value||isObjectLike(value)&&objToString.call(value)==stringTag}function isTypedArray(value){return isObjectLike(value)&&isLength(value.length)&&!!typedArrayTags[objToString.call(value)]}function toPlainObject(value){return baseCopy(value,keysIn(value))}function has(object,path){if(null==object)return!1;var result=hasOwnProperty.call(object,path);return result||isKey(path)||(path=toPath(path),object=1==path.length?object:baseGet(object,baseSlice(path,0,-1)),path=last(path),result=null!=object&&hasOwnProperty.call(object,path)),result}function keysIn(object){if(null==object)return[];isObject(object)||(object=Object(object));var length=object.length;length=length&&isLength(length)&&(isArray(object)||support.nonEnumArgs&&isArguments(object))&&length||0;for(var Ctor=object.constructor,index=-1,isProto="function"==typeof Ctor&&Ctor.prototype===object,result=Array(length),skipIndexes=length>0;length>++index;)result[index]=index+"";for(var key in object)skipIndexes&&isIndex(key,length)||"constructor"==key&&(isProto||!hasOwnProperty.call(object,key))||result.push(key);return result}function values(object){return baseValues(object,keys(object))}function escapeRegExp(string){return string=baseToString(string),string&&reHasRegExpChars.test(string)?string.replace(reRegExpChars,"\\\\$&"):string}function callback(func,thisArg,guard){return guard&&isIterateeCall(func,thisArg,guard)&&(thisArg=null),baseCallback(func,thisArg)}function constant(value){return function(){return value}}function identity(value){return value}function property(path){return isKey(path)?baseProperty(path):basePropertyDeep(path)}var undefined,VERSION="3.7.0",FUNC_ERROR_TEXT="Expected a function",argsTag="[object Arguments]",arrayTag="[object Array]",boolTag="[object Boolean]",dateTag="[object Date]",errorTag="[object Error]",funcTag="[object Function]",mapTag="[object Map]",numberTag="[object Number]",objectTag="[object Object]",regexpTag="[object RegExp]",setTag="[object Set]",stringTag="[object String]",weakMapTag="[object WeakMap]",arrayBufferTag="[object ArrayBuffer]",float32Tag="[object Float32Array]",float64Tag="[object Float64Array]",int8Tag="[object Int8Array]",int16Tag="[object Int16Array]",int32Tag="[object Int32Array]",uint8Tag="[object Uint8Array]",uint8ClampedTag="[object Uint8ClampedArray]",uint16Tag="[object Uint16Array]",uint32Tag="[object Uint32Array]",reIsDeepProp=/\\.|\\[(?:[^[\\]]+|(["'])(?:(?!\\1)[^\\n\\\\]|\\\\.)*?)\\1\\]/,reIsPlainProp=/^\\w*$/,rePropName=/[^.[\\]]+|\\[(?:(-?\\d+(?:\\.\\d+)?)|(["'])((?:(?!\\2)[^\\n\\\\]|\\\\.)*?)\\2)\\]/g,reRegExpChars=/[.*+?^\${}()|[\\]\\/\\\\]/g,reHasRegExpChars=RegExp(reRegExpChars.source),reEscapeChar=/\\\\(\\\\)?/g,reFlags=/\\w*$/,reIsHostCtor=/^\\[object .+?Constructor\\]$/,typedArrayTags={};typedArrayTags[float32Tag]=typedArrayTags[float64Tag]=typedArrayTags[int8Tag]=typedArrayTags[int16Tag]=typedArrayTags[int32Tag]=typedArrayTags[uint8Tag]=typedArrayTags[uint8ClampedTag]=typedArrayTags[uint16Tag]=typedArrayTags[uint32Tag]=!0,typedArrayTags[argsTag]=typedArrayTags[arrayTag]=typedArrayTags[arrayBufferTag]=typedArrayTags[boolTag]=typedArrayTags[dateTag]=typedArrayTags[errorTag]=typedArrayTags[funcTag]=typedArrayTags[mapTag]=typedArrayTags[numberTag]=typedArrayTags[objectTag]=typedArrayTags[regexpTag]=typedArrayTags[setTag]=typedArrayTags[stringTag]=typedArrayTags[weakMapTag]=!1;var cloneableTags={};cloneableTags[argsTag]=cloneableTags[arrayTag]=cloneableTags[arrayBufferTag]=cloneableTags[boolTag]=cloneableTags[dateTag]=cloneableTags[float32Tag]=cloneableTags[float64Tag]=cloneableTags[int8Tag]=cloneableTags[int16Tag]=cloneableTags[int32Tag]=cloneableTags[numberTag]=cloneableTags[objectTag]=cloneableTags[regexpTag]=cloneableTags[stringTag]=cloneableTags[uint8Tag]=cloneableTags[uint8ClampedTag]=cloneableTags[uint16Tag]=cloneableTags[uint32Tag]=!0,cloneableTags[errorTag]=cloneableTags[funcTag]=cloneableTags[mapTag]=cloneableTags[setTag]=cloneableTags[weakMapTag]=!1;var objectTypes={"function":!0,object:!0},freeExports=objectTypes[typeof exports]&&exports&&!exports.nodeType&&exports,freeModule=objectTypes[typeof module]&&module&&!module.nodeType&&module,freeGlobal=freeExports&&freeModule&&"object"==typeof global&&global&&global.Object&&global,freeSelf=objectTypes[typeof self]&&self&&self.Object&&self,freeWindow=objectTypes[typeof window]&&window&&window.Object&&window,moduleExports=freeModule&&freeModule.exports===freeExports&&freeExports,root=freeGlobal||freeWindow!==(this&&this.window)&&freeWindow||freeSelf||this,arrayProto=Array.prototype,objectProto=Object.prototype,fnToString=Function.prototype.toString,hasOwnProperty=objectProto.hasOwnProperty,objToString=objectProto.toString,reIsNative=RegExp("^"+escapeRegExp(objToString).replace(/toString|(function).*?(?=\\\\\\()| for .+?(?=\\\\\\])/g,"$1.*?")+"$"),ArrayBuffer=isNative(ArrayBuffer=root.ArrayBuffer)&&ArrayBuffer,bufferSlice=isNative(bufferSlice=ArrayBuffer&&new ArrayBuffer(0).slice)&&bufferSlice,floor=Math.floor,getOwnPropertySymbols=isNative(getOwnPropertySymbols=Object.getOwnPropertySymbols)&&getOwnPropertySymbols,getPrototypeOf=isNative(getPrototypeOf=Object.getPrototypeOf)&&getPrototypeOf,push=arrayProto.push,preventExtensions=isNative(Object.preventExtensions=Object.preventExtensions)&&preventExtensions,propertyIsEnumerable=objectProto.propertyIsEnumerable,Uint8Array=isNative(Uint8Array=root.Uint8Array)&&Uint8Array,Float64Array=function(){try{var func=isNative(func=root.Float64Array)&&func,result=new func(new ArrayBuffer(10),0,1)&&func}catch(e){}return result}(),nativeAssign=function(){var object={1:0},func=preventExtensions&&isNative(func=Object.assign)&&func;try{func(preventExtensions(object),"xo")}catch(e){}return!object[1]&&func}(),nativeIsArray=isNative(nativeIsArray=Array.isArray)&&nativeIsArray,nativeKeys=isNative(nativeKeys=Object.keys)&&nativeKeys,nativeMax=Math.max,nativeMin=Math.min,NEGATIVE_INFINITY=Number.NEGATIVE_INFINITY,MAX_ARRAY_LENGTH=Math.pow(2,32)-1,MAX_ARRAY_INDEX=MAX_ARRAY_LENGTH-1,HALF_MAX_ARRAY_LENGTH=MAX_ARRAY_LENGTH>>>1,FLOAT64_BYTES_PER_ELEMENT=Float64Array?Float64Array.BYTES_PER_ELEMENT:0,MAX_SAFE_INTEGER=Math.pow(2,53)-1,support=lodash.support={};(function(x){var Ctor=function(){this.x=x},props=[];Ctor.prototype={valueOf:x,y:x};for(var key in new Ctor)props.push(key);support.funcDecomp=/\\bthis\\b/.test(function(){return this}),support.funcNames="string"==typeof Function.name;try{support.nonEnumArgs=!propertyIsEnumerable.call(arguments,1)}catch(e){support.nonEnumArgs=!0}})(1,0);var baseAssign=nativeAssign||function(object,source){return null==source?object:baseCopy(source,getSymbols(source),baseCopy(source,keys(source),object))},baseEach=createBaseEach(baseForOwn),baseFor=createBaseFor();bufferSlice||(bufferClone=ArrayBuffer&&Uint8Array?function(buffer){var byteLength=buffer.byteLength,floatLength=Float64Array?floor(byteLength/FLOAT64_BYTES_PER_ELEMENT):0,offset=floatLength*FLOAT64_BYTES_PER_ELEMENT,result=new ArrayBuffer(byteLength);if(floatLength){var view=new Float64Array(result,0,floatLength);view.set(new Float64Array(buffer,0,floatLength))}return byteLength!=offset&&(view=new Uint8Array(result,offset),view.set(new Uint8Array(buffer,offset))),result}:constant(null));var getLength=baseProperty("length"),getSymbols=getOwnPropertySymbols?function(object){return getOwnPropertySymbols(toObject(object))}:constant([]),findLastIndex=createFindIndex(!0),zip=restParam(unzip),forEach=createForEach(arrayEach,baseEach),isArray=nativeIsArray||function(value){return isObjectLike(value)&&isLength(value.length)&&objToString.call(value)==arrayTag},isFunction=baseIsFunction(/x/)||Uint8Array&&!baseIsFunction(Uint8Array)?function(value){return objToString.call(value)==funcTag}:baseIsFunction,isPlainObject=getPrototypeOf?function(value){if(!value||objToString.call(value)!=objectTag)return!1;var valueOf=value.valueOf,objProto=isNative(valueOf)&&(objProto=getPrototypeOf(valueOf))&&getPrototypeOf(objProto);return objProto?value==objProto||getPrototypeOf(value)==objProto:shimIsPlainObject(value)}:shimIsPlainObject,assign=createAssigner(function(object,source,customizer){return customizer?assignWith(object,source,customizer):baseAssign(object,source)}),keys=nativeKeys?function(object){if(object)var Ctor=object.constructor,length=object.length;return"function"==typeof Ctor&&Ctor.prototype===object||"function"!=typeof object&&isLength(length)?shimKeys(object):isObject(object)?nativeKeys(object):[]}:shimKeys,merge=createAssigner(baseMerge);lodash.assign=assign,lodash.callback=callback,lodash.constant=constant,lodash.forEach=forEach,lodash.keys=keys,lodash.keysIn=keysIn,lodash.merge=merge,lodash.property=property,lodash.reject=reject,lodash.restParam=restParam,lodash.slice=slice,lodash.toPlainObject=toPlainObject,lodash.unzip=unzip,lodash.values=values,lodash.zip=zip,lodash.each=forEach,lodash.extend=assign,lodash.iteratee=callback,lodash.clone=clone,lodash.escapeRegExp=escapeRegExp,lodash.findLastIndex=findLastIndex,lodash.has=has,lodash.identity=identity,lodash.includes=includes,lodash.indexOf=indexOf,lodash.isArguments=isArguments,lodash.isArray=isArray,lodash.isEmpty=isEmpty,lodash.isFunction=isFunction,lodash.isNative=isNative,lodash.isNumber=isNumber,lodash.isObject=isObject,lodash.isPlainObject=isPlainObject,lodash.isString=isString,lodash.isTypedArray=isTypedArray,lodash.last=last,lodash.some=some,lodash.any=some,lodash.contains=includes,lodash.include=includes,lodash.VERSION=VERSION,freeExports&&freeModule?moduleExports?(freeModule.exports=lodash)._=lodash:freeExports._=lodash:root._=lodash }).call(this)}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],"/node_modules/jshint/src/jshint.js":[function(_dereq_,module,exports){var _=_dereq_("../lodash"),events=_dereq_("events"),vars=_dereq_("./vars.js"),messages=_dereq_("./messages.js"),Lexer=_dereq_("./lex.js").Lexer,reg=_dereq_("./reg.js"),state=_dereq_("./state.js").state,style=_dereq_("./style.js"),options=_dereq_("./options.js"),scopeManager=_dereq_("./scope-manager.js"),JSHINT=function(){"use strict";function checkOption(name,t){return name=name.trim(),/^[+-]W\\d{3}$/g.test(name)?!0:-1!==options.validNames.indexOf(name)||"jslint"===t.type||_.has(options.removed,name)?!0:(error("E001",t,name),!1)}function isString(obj){return"[object String]"===Object.prototype.toString.call(obj)}function isIdentifier(tkn,value){return tkn?tkn.identifier&&tkn.value===value?!0:!1:!1}function isReserved(token){if(!token.reserved)return!1;var meta=token.meta;if(meta&&meta.isFutureReservedWord&&state.inES5()){if(!meta.es5)return!1;if(meta.strictOnly&&!state.option.strict&&!state.isStrict())return!1;if(token.isProperty)return!1}return!0}function supplant(str,data){return str.replace(/\\{([^{}]*)\\}/g,function(a,b){var r=data[b];return"string"==typeof r||"number"==typeof r?r:a})}function combine(dest,src){Object.keys(src).forEach(function(name){_.has(JSHINT.blacklist,name)||(dest[name]=src[name])})}function processenforceall(){if(state.option.enforceall){for(var enforceopt in options.bool.enforcing)void 0!==state.option[enforceopt]||options.noenforceall[enforceopt]||(state.option[enforceopt]=!0);for(var relaxopt in options.bool.relaxing)void 0===state.option[relaxopt]&&(state.option[relaxopt]=!1)}}function assume(){processenforceall(),state.option.esversion||state.option.moz||(state.option.esversion=state.option.es3?3:state.option.esnext?6:5),state.inES5()&&combine(predefined,vars.ecmaIdentifiers[5]),state.inES6()&&combine(predefined,vars.ecmaIdentifiers[6]),state.option.module&&(state.option.strict===!0&&(state.option.strict="global"),state.inES6()||warning("W134",state.tokens.next,"module",6)),state.option.couch&&combine(predefined,vars.couch),state.option.qunit&&combine(predefined,vars.qunit),state.option.rhino&&combine(predefined,vars.rhino),state.option.shelljs&&(combine(predefined,vars.shelljs),combine(predefined,vars.node)),state.option.typed&&combine(predefined,vars.typed),state.option.phantom&&(combine(predefined,vars.phantom),state.option.strict===!0&&(state.option.strict="global")),state.option.prototypejs&&combine(predefined,vars.prototypejs),state.option.node&&(combine(predefined,vars.node),combine(predefined,vars.typed),state.option.strict===!0&&(state.option.strict="global")),state.option.devel&&combine(predefined,vars.devel),state.option.dojo&&combine(predefined,vars.dojo),state.option.browser&&(combine(predefined,vars.browser),combine(predefined,vars.typed)),state.option.browserify&&(combine(predefined,vars.browser),combine(predefined,vars.typed),combine(predefined,vars.browserify),state.option.strict===!0&&(state.option.strict="global")),state.option.nonstandard&&combine(predefined,vars.nonstandard),state.option.jasmine&&combine(predefined,vars.jasmine),state.option.jquery&&combine(predefined,vars.jquery),state.option.mootools&&combine(predefined,vars.mootools),state.option.worker&&combine(predefined,vars.worker),state.option.wsh&&combine(predefined,vars.wsh),state.option.globalstrict&&state.option.strict!==!1&&(state.option.strict="global"),state.option.yui&&combine(predefined,vars.yui),state.option.mocha&&combine(predefined,vars.mocha)}function quit(code,line,chr){var percentage=Math.floor(100*(line/state.lines.length)),message=messages.errors[code].desc;throw{name:"JSHintError",line:line,character:chr,message:message+" ("+percentage+"% scanned).",raw:message,code:code}}function removeIgnoredMessages(){var ignored=state.ignoredLines;_.isEmpty(ignored)||(JSHINT.errors=_.reject(JSHINT.errors,function(err){return ignored[err.line]}))}function warning(code,t,a,b,c,d){var ch,l,w,msg;if(/^W\\d{3}$/.test(code)){if(state.ignored[code])return;msg=messages.warnings[code]}else/E\\d{3}/.test(code)?msg=messages.errors[code]:/I\\d{3}/.test(code)&&(msg=messages.info[code]);return t=t||state.tokens.next||{},"(end)"===t.id&&(t=state.tokens.curr),l=t.line||0,ch=t.from||0,w={id:"(error)",raw:msg.desc,code:msg.code,evidence:state.lines[l-1]||"",line:l,character:ch,scope:JSHINT.scope,a:a,b:b,c:c,d:d},w.reason=supplant(msg.desc,w),JSHINT.errors.push(w),removeIgnoredMessages(),JSHINT.errors.length>=state.option.maxerr&&quit("E043",l,ch),w}function warningAt(m,l,ch,a,b,c,d){return warning(m,{line:l,from:ch},a,b,c,d)}function error(m,t,a,b,c,d){warning(m,t,a,b,c,d)}function errorAt(m,l,ch,a,b,c,d){return error(m,{line:l,from:ch},a,b,c,d)}function addInternalSrc(elem,src){var i;return i={id:"(internal)",elem:elem,value:src},JSHINT.internals.push(i),i}function doOption(){var nt=state.tokens.next,body=nt.body.match(/(-\\s+)?[^\\s,:]+(?:\\s*:\\s*(-\\s+)?[^\\s,]+)?/g)||[],predef={};if("globals"===nt.type){body.forEach(function(g,idx){g=g.split(":");var key=(g[0]||"").trim(),val=(g[1]||"").trim();if("-"===key||!key.length){if(idx>0&&idx===body.length-1)return;return error("E002",nt),void 0}"-"===key.charAt(0)?(key=key.slice(1),val=!1,JSHINT.blacklist[key]=key,delete predefined[key]):predef[key]="true"===val}),combine(predefined,predef);for(var key in predef)_.has(predef,key)&&(declared[key]=nt)}"exported"===nt.type&&body.forEach(function(e,idx){if(!e.length){if(idx>0&&idx===body.length-1)return;return error("E002",nt),void 0}state.funct["(scope)"].addExported(e)}),"members"===nt.type&&(membersOnly=membersOnly||{},body.forEach(function(m){var ch1=m.charAt(0),ch2=m.charAt(m.length-1);ch1!==ch2||'"'!==ch1&&"'"!==ch1||(m=m.substr(1,m.length-2).replace('\\\\"','"')),membersOnly[m]=!1}));var numvals=["maxstatements","maxparams","maxdepth","maxcomplexity","maxerr","maxlen","indent"];("jshint"===nt.type||"jslint"===nt.type)&&(body.forEach(function(g){g=g.split(":");var key=(g[0]||"").trim(),val=(g[1]||"").trim();if(checkOption(key,nt))if(numvals.indexOf(key)>=0)if("false"!==val){if(val=+val,"number"!=typeof val||!isFinite(val)||0>=val||Math.floor(val)!==val)return error("E032",nt,g[1].trim()),void 0;state.option[key]=val}else state.option[key]="indent"===key?4:!1;else{if("validthis"===key)return state.funct["(global)"]?void error("E009"):"true"!==val&&"false"!==val?void error("E002",nt):(state.option.validthis="true"===val,void 0);if("quotmark"!==key)if("shadow"!==key)if("unused"!==key)if("latedef"!==key)if("ignore"!==key)if("strict"!==key){"module"===key&&(hasParsedCode(state.funct)||error("E055",state.tokens.next,"module"));var esversions={es3:3,es5:5,esnext:6};if(!_.has(esversions,key)){if("esversion"===key){switch(val){case"5":state.inES5(!0)&&warning("I003");case"3":case"6":state.option.moz=!1,state.option.esversion=+val;break;case"2015":state.option.moz=!1,state.option.esversion=6;break;default:error("E002",nt)}return hasParsedCode(state.funct)||error("E055",state.tokens.next,"esversion"),void 0}var match=/^([+-])(W\\d{3})$/g.exec(key);if(match)return state.ignored[match[2]]="-"===match[1],void 0;var tn;return"true"===val||"false"===val?("jslint"===nt.type?(tn=options.renamed[key]||key,state.option[tn]="true"===val,void 0!==options.inverted[tn]&&(state.option[tn]=!state.option[tn])):state.option[key]="true"===val,"newcap"===key&&(state.option["(explicitNewcap)"]=!0),void 0):(error("E002",nt),void 0)}switch(val){case"true":state.option.moz=!1,state.option.esversion=esversions[key];break;case"false":state.option.moz||(state.option.esversion=5);break;default:error("E002",nt)}}else switch(val){case"true":state.option.strict=!0;break;case"false":state.option.strict=!1;break;case"func":case"global":case"implied":state.option.strict=val;break;default:error("E002",nt)}else switch(val){case"line":state.ignoredLines[nt.line]=!0,removeIgnoredMessages();break;default:error("E002",nt)}else switch(val){case"true":state.option.latedef=!0;break;case"false":state.option.latedef=!1;break;case"nofunc":state.option.latedef="nofunc";break;default:error("E002",nt)}else switch(val){case"true":state.option.unused=!0;break;case"false":state.option.unused=!1;break;case"vars":case"strict":state.option.unused=val;break;default:error("E002",nt)}else switch(val){case"true":state.option.shadow=!0;break;case"outer":state.option.shadow="outer";break;case"false":case"inner":state.option.shadow="inner";break;default:error("E002",nt)}else switch(val){case"true":case"false":state.option.quotmark="true"===val;break;case"double":case"single":state.option.quotmark=val;break;default:error("E002",nt)}}}),assume())}function peek(p){var t,i=p||0,j=lookahead.length;if(j>i)return lookahead[i];for(;i>=j;)t=lookahead[j],t||(t=lookahead[j]=lex.token()),j+=1;return t||"(end)"!==state.tokens.next.id?t:state.tokens.next}function peekIgnoreEOL(){var t,i=0;do t=peek(i++);while("(endline)"===t.id);return t}function advance(id,t){switch(state.tokens.curr.id){case"(number)":"."===state.tokens.next.id&&warning("W005",state.tokens.curr);break;case"-":("-"===state.tokens.next.id||"--"===state.tokens.next.id)&&warning("W006");break;case"+":("+"===state.tokens.next.id||"++"===state.tokens.next.id)&&warning("W007")}for(id&&state.tokens.next.id!==id&&(t?"(end)"===state.tokens.next.id?error("E019",t,t.id):error("E020",state.tokens.next,id,t.id,t.line,state.tokens.next.value):("(identifier)"!==state.tokens.next.type||state.tokens.next.value!==id)&&warning("W116",state.tokens.next,id,state.tokens.next.value)),state.tokens.prev=state.tokens.curr,state.tokens.curr=state.tokens.next;;){if(state.tokens.next=lookahead.shift()||lex.token(),state.tokens.next||quit("E041",state.tokens.curr.line),"(end)"===state.tokens.next.id||"(error)"===state.tokens.next.id)return;if(state.tokens.next.check&&state.tokens.next.check(),state.tokens.next.isSpecial)"falls through"===state.tokens.next.type?state.tokens.curr.caseFallsThrough=!0:doOption();else if("(endline)"!==state.tokens.next.id)break}}function isInfix(token){return token.infix||!token.identifier&&!token.template&&!!token.led}function isEndOfExpr(){var curr=state.tokens.curr,next=state.tokens.next;return";"===next.id||"}"===next.id||":"===next.id?!0:isInfix(next)===isInfix(curr)||"yield"===curr.id&&state.inMoz()?curr.line!==startLine(next):!1}function isBeginOfExpr(prev){return!prev.left&&"unary"!==prev.arity}function expression(rbp,initial){var left,isArray=!1,isObject=!1,isLetExpr=!1;state.nameStack.push(),initial||"let"!==state.tokens.next.value||"("!==peek(0).value||(state.inMoz()||warning("W118",state.tokens.next,"let expressions"),isLetExpr=!0,state.funct["(scope)"].stack(),advance("let"),advance("("),state.tokens.prev.fud(),advance(")")),"(end)"===state.tokens.next.id&&error("E006",state.tokens.curr);var isDangerous=state.option.asi&&state.tokens.prev.line!==startLine(state.tokens.curr)&&_.contains(["]",")"],state.tokens.prev.id)&&_.contains(["[","("],state.tokens.curr.id);if(isDangerous&&warning("W014",state.tokens.curr,state.tokens.curr.id),advance(),initial&&(state.funct["(verb)"]=state.tokens.curr.value,state.tokens.curr.beginsStmt=!0),initial===!0&&state.tokens.curr.fud)left=state.tokens.curr.fud();else for(state.tokens.curr.nud?left=state.tokens.curr.nud():error("E030",state.tokens.curr,state.tokens.curr.id);(state.tokens.next.lbp>rbp||"(template)"===state.tokens.next.type)&&!isEndOfExpr();)isArray="Array"===state.tokens.curr.value,isObject="Object"===state.tokens.curr.value,left&&(left.value||left.first&&left.first.value)&&("new"!==left.value||left.first&&left.first.value&&"."===left.first.value)&&(isArray=!1,left.value!==state.tokens.curr.value&&(isObject=!1)),advance(),isArray&&"("===state.tokens.curr.id&&")"===state.tokens.next.id&&warning("W009",state.tokens.curr),isObject&&"("===state.tokens.curr.id&&")"===state.tokens.next.id&&warning("W010",state.tokens.curr),left&&state.tokens.curr.led?left=state.tokens.curr.led(left):error("E033",state.tokens.curr,state.tokens.curr.id);return isLetExpr&&state.funct["(scope)"].unstack(),state.nameStack.pop(),left}function startLine(token){return token.startLine||token.line}function nobreaknonadjacent(left,right){left=left||state.tokens.curr,right=right||state.tokens.next,state.option.laxbreak||left.line===startLine(right)||warning("W014",right,right.value)}function nolinebreak(t){t=t||state.tokens.curr,t.line!==startLine(state.tokens.next)&&warning("E022",t,t.value)}function nobreakcomma(left,right){left.line!==startLine(right)&&(state.option.laxcomma||(comma.first&&(warning("I001"),comma.first=!1),warning("W014",left,right.value)))}function comma(opts){if(opts=opts||{},opts.peek?nobreakcomma(state.tokens.prev,state.tokens.curr):(nobreakcomma(state.tokens.curr,state.tokens.next),advance(",")),state.tokens.next.identifier&&(!opts.property||!state.inES5()))switch(state.tokens.next.value){case"break":case"case":case"catch":case"continue":case"default":case"do":case"else":case"finally":case"for":case"if":case"in":case"instanceof":case"return":case"switch":case"throw":case"try":case"var":case"let":case"while":case"with":return error("E024",state.tokens.next,state.tokens.next.value),!1}if("(punctuator)"===state.tokens.next.type)switch(state.tokens.next.value){case"}":case"]":case",":if(opts.allowTrailing)return!0;case")":return error("E024",state.tokens.next,state.tokens.next.value),!1}return!0}function symbol(s,p){var x=state.syntax[s];return x&&"object"==typeof x||(state.syntax[s]=x={id:s,lbp:p,value:s}),x}function delim(s){var x=symbol(s,0);return x.delim=!0,x}function stmt(s,f){var x=delim(s);return x.identifier=x.reserved=!0,x.fud=f,x}function blockstmt(s,f){var x=stmt(s,f);return x.block=!0,x}function reserveName(x){var c=x.id.charAt(0);return(c>="a"&&"z">=c||c>="A"&&"Z">=c)&&(x.identifier=x.reserved=!0),x}function prefix(s,f){var x=symbol(s,150);return reserveName(x),x.nud="function"==typeof f?f:function(){return this.arity="unary",this.right=expression(150),("++"===this.id||"--"===this.id)&&(state.option.plusplus?warning("W016",this,this.id):!this.right||this.right.identifier&&!isReserved(this.right)||"."===this.right.id||"["===this.right.id||warning("W017",this),this.right&&this.right.isMetaProperty?error("E031",this):this.right&&this.right.identifier&&state.funct["(scope)"].block.modify(this.right.value,this)),this},x}function type(s,f){var x=delim(s);return x.type=s,x.nud=f,x}function reserve(name,func){var x=type(name,func);return x.identifier=!0,x.reserved=!0,x}function FutureReservedWord(name,meta){var x=type(name,meta&&meta.nud||function(){return this});return meta=meta||{},meta.isFutureReservedWord=!0,x.value=name,x.identifier=!0,x.reserved=!0,x.meta=meta,x}function reservevar(s,v){return reserve(s,function(){return"function"==typeof v&&v(this),this})}function infix(s,f,p,w){var x=symbol(s,p);return reserveName(x),x.infix=!0,x.led=function(left){return w||nobreaknonadjacent(state.tokens.prev,state.tokens.curr),"in"!==s&&"instanceof"!==s||"!"!==left.id||warning("W018",left,"!"),"function"==typeof f?f(left,this):(this.left=left,this.right=expression(p),this)},x}function application(s){var x=symbol(s,42);return x.led=function(left){return nobreaknonadjacent(state.tokens.prev,state.tokens.curr),this.left=left,this.right=doFunction({type:"arrow",loneArg:left}),this},x}function relation(s,f){var x=symbol(s,100);return x.led=function(left){nobreaknonadjacent(state.tokens.prev,state.tokens.curr),this.left=left;var right=this.right=expression(100);return isIdentifier(left,"NaN")||isIdentifier(right,"NaN")?warning("W019",this):f&&f.apply(this,[left,right]),left&&right||quit("E041",state.tokens.curr.line),"!"===left.id&&warning("W018",left,"!"),"!"===right.id&&warning("W018",right,"!"),this},x}function isPoorRelation(node){return node&&("(number)"===node.type&&0===+node.value||"(string)"===node.type&&""===node.value||"null"===node.type&&!state.option.eqnull||"true"===node.type||"false"===node.type||"undefined"===node.type)}function isTypoTypeof(left,right,state){var values;return state.option.notypeof?!1:left&&right?(values=state.inES6()?typeofValues.es6:typeofValues.es3,"(identifier)"===right.type&&"typeof"===right.value&&"(string)"===left.type?!_.contains(values,left.value):!1):!1}function isGlobalEval(left,state){var isGlobal=!1;return"this"===left.type&&null===state.funct["(context)"]?isGlobal=!0:"(identifier)"===left.type&&(state.option.node&&"global"===left.value?isGlobal=!0:!state.option.browser||"window"!==left.value&&"document"!==left.value||(isGlobal=!0)),isGlobal}function findNativePrototype(left){function walkPrototype(obj){return"object"==typeof obj?"prototype"===obj.right?obj:walkPrototype(obj.left):void 0}function walkNative(obj){for(;!obj.identifier&&"object"==typeof obj.left;)obj=obj.left;return obj.identifier&&natives.indexOf(obj.value)>=0?obj.value:void 0}var natives=["Array","ArrayBuffer","Boolean","Collator","DataView","Date","DateTimeFormat","Error","EvalError","Float32Array","Float64Array","Function","Infinity","Intl","Int16Array","Int32Array","Int8Array","Iterator","Number","NumberFormat","Object","RangeError","ReferenceError","RegExp","StopIteration","String","SyntaxError","TypeError","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray","URIError"],prototype=walkPrototype(left);return prototype?walkNative(prototype):void 0}function checkLeftSideAssign(left,assignToken,options){var allowDestructuring=options&&options.allowDestructuring;if(assignToken=assignToken||left,state.option.freeze){var nativeObject=findNativePrototype(left);nativeObject&&warning("W121",left,nativeObject)}return left.identifier&&!left.isMetaProperty&&state.funct["(scope)"].block.reassign(left.value,left),"."===left.id?((!left.left||"arguments"===left.left.value&&!state.isStrict())&&warning("E031",assignToken),state.nameStack.set(state.tokens.prev),!0):"{"===left.id||"["===left.id?(allowDestructuring&&state.tokens.curr.left.destructAssign?state.tokens.curr.left.destructAssign.forEach(function(t){t.id&&state.funct["(scope)"].block.modify(t.id,t.token)}):"{"!==left.id&&left.left?"arguments"!==left.left.value||state.isStrict()||warning("E031",assignToken):warning("E031",assignToken),"["===left.id&&state.nameStack.set(left.right),!0):left.isMetaProperty?(error("E031",assignToken),!0):left.identifier&&!isReserved(left)?("exception"===state.funct["(scope)"].labeltype(left.value)&&warning("W022",left),state.nameStack.set(left),!0):(left===state.syntax["function"]&&warning("W023",state.tokens.curr),!1)}function assignop(s,f,p){var x=infix(s,"function"==typeof f?f:function(left,that){return that.left=left,left&&checkLeftSideAssign(left,that,{allowDestructuring:!0})?(that.right=expression(10),that):(error("E031",that),void 0)},p);return x.exps=!0,x.assign=!0,x}function bitwise(s,f,p){var x=symbol(s,p);return reserveName(x),x.led="function"==typeof f?f:function(left){return state.option.bitwise&&warning("W016",this,this.id),this.left=left,this.right=expression(p),this},x}function bitwiseassignop(s){return assignop(s,function(left,that){return state.option.bitwise&&warning("W016",that,that.id),left&&checkLeftSideAssign(left,that)?(that.right=expression(10),that):(error("E031",that),void 0)},20)}function suffix(s){var x=symbol(s,150);return x.led=function(left){return state.option.plusplus?warning("W016",this,this.id):left.identifier&&!isReserved(left)||"."===left.id||"["===left.id||warning("W017",this),left.isMetaProperty?error("E031",this):left&&left.identifier&&state.funct["(scope)"].block.modify(left.value,left),this.left=left,this},x}function optionalidentifier(fnparam,prop,preserve){if(state.tokens.next.identifier){preserve||advance();var curr=state.tokens.curr,val=state.tokens.curr.value;return isReserved(curr)?prop&&state.inES5()?val:fnparam&&"undefined"===val?val:(warning("W024",state.tokens.curr,state.tokens.curr.id),val):val}}function identifier(fnparam,prop){var i=optionalidentifier(fnparam,prop,!1);if(i)return i;if("..."===state.tokens.next.value){if(state.inES6(!0)||warning("W119",state.tokens.next,"spread/rest operator","6"),advance(),checkPunctuator(state.tokens.next,"..."))for(warning("E024",state.tokens.next,"...");checkPunctuator(state.tokens.next,"...");)advance();return state.tokens.next.identifier?identifier(fnparam,prop):(warning("E024",state.tokens.curr,"..."),void 0)}error("E030",state.tokens.next,state.tokens.next.value),";"!==state.tokens.next.id&&advance()}function reachable(controlToken){var t,i=0;if(";"===state.tokens.next.id&&!controlToken.inBracelessBlock)for(;;){do t=peek(i),i+=1;while("(end)"!==t.id&&"(comment)"===t.id);if(t.reach)return;if("(endline)"!==t.id){if("function"===t.id){state.option.latedef===!0&&warning("W026",t);break}warning("W027",t,t.value,controlToken.value);break}}}function parseFinalSemicolon(){if(";"!==state.tokens.next.id){if(state.tokens.next.isUnclosed)return advance();var sameLine=startLine(state.tokens.next)===state.tokens.curr.line&&"(end)"!==state.tokens.next.id,blockEnd=checkPunctuator(state.tokens.next,"}");sameLine&&!blockEnd?errorAt("E058",state.tokens.curr.line,state.tokens.curr.character):state.option.asi||(blockEnd&&!state.option.lastsemic||!sameLine)&&warningAt("W033",state.tokens.curr.line,state.tokens.curr.character)}else advance(";")}function statement(){var r,i=indent,t=state.tokens.next,hasOwnScope=!1;if(";"===t.id)return advance(";"),void 0;var res=isReserved(t);if(res&&t.meta&&t.meta.isFutureReservedWord&&":"===peek().id&&(warning("W024",t,t.id),res=!1),t.identifier&&!res&&":"===peek().id&&(advance(),advance(":"),hasOwnScope=!0,state.funct["(scope)"].stack(),state.funct["(scope)"].block.addBreakLabel(t.value,{token:state.tokens.curr}),state.tokens.next.labelled||"{"===state.tokens.next.value||warning("W028",state.tokens.next,t.value,state.tokens.next.value),state.tokens.next.label=t.value,t=state.tokens.next),"{"===t.id){var iscase="case"===state.funct["(verb)"]&&":"===state.tokens.curr.value;return block(!0,!0,!1,!1,iscase),void 0}return r=expression(0,!0),!r||r.identifier&&"function"===r.value||"(punctuator)"===r.type&&r.left&&r.left.identifier&&"function"===r.left.value||state.isStrict()||"global"!==state.option.strict||warning("E007"),t.block||(state.option.expr||r&&r.exps?state.option.nonew&&r&&r.left&&"("===r.id&&"new"===r.left.id&&warning("W031",t):warning("W030",state.tokens.curr),parseFinalSemicolon()),indent=i,hasOwnScope&&state.funct["(scope)"].unstack(),r}function statements(){for(var p,a=[];!state.tokens.next.reach&&"(end)"!==state.tokens.next.id;)";"===state.tokens.next.id?(p=peek(),(!p||"("!==p.id&&"["!==p.id)&&warning("W032"),advance(";")):a.push(statement());return a}function directives(){for(var i,p,pn;"(string)"===state.tokens.next.id;){if(p=peek(0),"(endline)"===p.id){i=1;do pn=peek(i++);while("(endline)"===pn.id);if(";"===pn.id)p=pn;else{if("["===pn.value||"."===pn.value)break;state.option.asi&&"("!==pn.value||warning("W033",state.tokens.next)}}else{if("."===p.id||"["===p.id)break;";"!==p.id&&warning("W033",p)}advance();var directive=state.tokens.curr.value;(state.directive[directive]||"use strict"===directive&&"implied"===state.option.strict)&&warning("W034",state.tokens.curr,directive),state.directive[directive]=!0,";"===p.id&&advance(";")}state.isStrict()&&(state.option["(explicitNewcap)"]||(state.option.newcap=!0),state.option.undef=!0)}function block(ordinary,stmt,isfunc,isfatarrow,iscase){var a,m,t,line,d,b=inblock,old_indent=indent;inblock=ordinary,t=state.tokens.next;var metrics=state.funct["(metrics)"];if(metrics.nestedBlockDepth+=1,metrics.verifyMaxNestedBlockDepthPerFunction(),"{"===state.tokens.next.id){if(advance("{"),state.funct["(scope)"].stack(),line=state.tokens.curr.line,"}"!==state.tokens.next.id){for(indent+=state.option.indent;!ordinary&&state.tokens.next.from>indent;)indent+=state.option.indent;if(isfunc){m={};for(d in state.directive)_.has(state.directive,d)&&(m[d]=state.directive[d]);directives(),state.option.strict&&state.funct["(context)"]["(global)"]&&(m["use strict"]||state.isStrict()||warning("E007"))}a=statements(),metrics.statementCount+=a.length,indent-=state.option.indent}advance("}",t),isfunc&&(state.funct["(scope)"].validateParams(),m&&(state.directive=m)),state.funct["(scope)"].unstack(),indent=old_indent}else if(ordinary)state.funct["(noblockscopedvar)"]="for"!==state.tokens.next.id,state.funct["(scope)"].stack(),(!stmt||state.option.curly)&&warning("W116",state.tokens.next,"{",state.tokens.next.value),state.tokens.next.inBracelessBlock=!0,indent+=state.option.indent,a=[statement()],indent-=state.option.indent,state.funct["(scope)"].unstack(),delete state.funct["(noblockscopedvar)"];else if(isfunc){if(state.funct["(scope)"].stack(),m={},!stmt||isfatarrow||state.inMoz()||error("W118",state.tokens.curr,"function closure expressions"),!stmt)for(d in state.directive)_.has(state.directive,d)&&(m[d]=state.directive[d]);expression(10),state.option.strict&&state.funct["(context)"]["(global)"]&&(m["use strict"]||state.isStrict()||warning("E007")),state.funct["(scope)"].unstack()}else error("E021",state.tokens.next,"{",state.tokens.next.value);switch(state.funct["(verb)"]){case"break":case"continue":case"return":case"throw":if(iscase)break;default:state.funct["(verb)"]=null}return inblock=b,!ordinary||!state.option.noempty||a&&0!==a.length||warning("W035",state.tokens.prev),metrics.nestedBlockDepth-=1,a}function countMember(m){membersOnly&&"boolean"!=typeof membersOnly[m]&&warning("W036",state.tokens.curr,m),"number"==typeof member[m]?member[m]+=1:member[m]=1}function comprehensiveArrayExpression(){var res={};res.exps=!0,state.funct["(comparray)"].stack();var reversed=!1;return"for"!==state.tokens.next.value&&(reversed=!0,state.inMoz()||warning("W116",state.tokens.next,"for",state.tokens.next.value),state.funct["(comparray)"].setState("use"),res.right=expression(10)),advance("for"),"each"===state.tokens.next.value&&(advance("each"),state.inMoz()||warning("W118",state.tokens.curr,"for each")),advance("("),state.funct["(comparray)"].setState("define"),res.left=expression(130),_.contains(["in","of"],state.tokens.next.value)?advance():error("E045",state.tokens.curr),state.funct["(comparray)"].setState("generate"),expression(10),advance(")"),"if"===state.tokens.next.value&&(advance("if"),advance("("),state.funct["(comparray)"].setState("filter"),res.filter=expression(10),advance(")")),reversed||(state.funct["(comparray)"].setState("use"),res.right=expression(10)),advance("]"),state.funct["(comparray)"].unstack(),res}function isMethod(){return state.funct["(statement)"]&&"class"===state.funct["(statement)"].type||state.funct["(context)"]&&"class"===state.funct["(context)"]["(verb)"]}function isPropertyName(token){return token.identifier||"(string)"===token.id||"(number)"===token.id}function propertyName(preserveOrToken){var id,preserve=!0;return"object"==typeof preserveOrToken?id=preserveOrToken:(preserve=preserveOrToken,id=optionalidentifier(!1,!0,preserve)),id?"object"==typeof id&&("(string)"===id.id||"(identifier)"===id.id?id=id.value:"(number)"===id.id&&(id=""+id.value)):"(string)"===state.tokens.next.id?(id=state.tokens.next.value,preserve||advance()):"(number)"===state.tokens.next.id&&(id=""+state.tokens.next.value,preserve||advance()),"hasOwnProperty"===id&&warning("W001"),id}function functionparams(options){function addParam(addParamArgs){state.funct["(scope)"].addParam.apply(state.funct["(scope)"],addParamArgs)}var next,ident,t,paramsIds=[],tokens=[],pastDefault=!1,pastRest=!1,arity=0,loneArg=options&&options.loneArg;if(loneArg&&loneArg.identifier===!0)return state.funct["(scope)"].addParam(loneArg.value,loneArg),{arity:1,params:[loneArg.value]};if(next=state.tokens.next,options&&options.parsedOpening||advance("("),")"===state.tokens.next.id)return advance(")"),void 0;for(;;){arity++;var currentParams=[];if(_.contains(["{","["],state.tokens.next.id)){tokens=destructuringPattern();for(t in tokens)t=tokens[t],t.id&&(paramsIds.push(t.id),currentParams.push([t.id,t.token]))}else if(checkPunctuator(state.tokens.next,"...")&&(pastRest=!0),ident=identifier(!0))paramsIds.push(ident),currentParams.push([ident,state.tokens.curr]);else for(;!checkPunctuators(state.tokens.next,[",",")"]);)advance();if(pastDefault&&"="!==state.tokens.next.id&&error("W138",state.tokens.current),"="===state.tokens.next.id&&(state.inES6()||warning("W119",state.tokens.next,"default parameters","6"),advance("="),pastDefault=!0,expression(10)),currentParams.forEach(addParam),","!==state.tokens.next.id)return advance(")",next),{arity:arity,params:paramsIds};pastRest&&warning("W131",state.tokens.next),comma()}}function functor(name,token,overwrites){var funct={"(name)":name,"(breakage)":0,"(loopage)":0,"(tokens)":{},"(properties)":{},"(catch)":!1,"(global)":!1,"(line)":null,"(character)":null,"(metrics)":null,"(statement)":null,"(context)":null,"(scope)":null,"(comparray)":null,"(generator)":null,"(arrow)":null,"(params)":null};return token&&_.extend(funct,{"(line)":token.line,"(character)":token.character,"(metrics)":createMetrics(token)}),_.extend(funct,overwrites),funct["(context)"]&&(funct["(scope)"]=funct["(context)"]["(scope)"],funct["(comparray)"]=funct["(context)"]["(comparray)"]),funct}function isFunctor(token){return"(scope)"in token}function hasParsedCode(funct){return funct["(global)"]&&!funct["(verb)"]}function doTemplateLiteral(left){function end(){if(state.tokens.curr.template&&state.tokens.curr.tail&&state.tokens.curr.context===ctx)return!0;var complete=state.tokens.next.template&&state.tokens.next.tail&&state.tokens.next.context===ctx;return complete&&advance(),complete||state.tokens.next.isUnclosed}var ctx=this.context,noSubst=this.noSubst,depth=this.depth;if(!noSubst)for(;!end();)!state.tokens.next.template||state.tokens.next.depth>depth?expression(0):advance();return{id:"(template)",type:"(template)",tag:left}}function doFunction(options){var f,token,name,statement,classExprBinding,isGenerator,isArrow,ignoreLoopFunc,oldOption=state.option,oldIgnored=state.ignored;options&&(name=options.name,statement=options.statement,classExprBinding=options.classExprBinding,isGenerator="generator"===options.type,isArrow="arrow"===options.type,ignoreLoopFunc=options.ignoreLoopFunc),state.option=Object.create(state.option),state.ignored=Object.create(state.ignored),state.funct=functor(name||state.nameStack.infer(),state.tokens.next,{"(statement)":statement,"(context)":state.funct,"(arrow)":isArrow,"(generator)":isGenerator}),f=state.funct,token=state.tokens.curr,token.funct=state.funct,functions.push(state.funct),state.funct["(scope)"].stack("functionouter");var internallyAccessibleName=name||classExprBinding;internallyAccessibleName&&state.funct["(scope)"].block.add(internallyAccessibleName,classExprBinding?"class":"function",state.tokens.curr,!1),state.funct["(scope)"].stack("functionparams");var paramsInfo=functionparams(options);return paramsInfo?(state.funct["(params)"]=paramsInfo.params,state.funct["(metrics)"].arity=paramsInfo.arity,state.funct["(metrics)"].verifyMaxParametersPerFunction()):state.funct["(metrics)"].arity=0,isArrow&&(state.inES6(!0)||warning("W119",state.tokens.curr,"arrow function syntax (=>)","6"),options.loneArg||advance("=>")),block(!1,!0,!0,isArrow),!state.option.noyield&&isGenerator&&"yielded"!==state.funct["(generator)"]&&warning("W124",state.tokens.curr),state.funct["(metrics)"].verifyMaxStatementsPerFunction(),state.funct["(metrics)"].verifyMaxComplexityPerFunction(),state.funct["(unusedOption)"]=state.option.unused,state.option=oldOption,state.ignored=oldIgnored,state.funct["(last)"]=state.tokens.curr.line,state.funct["(lastcharacter)"]=state.tokens.curr.character,state.funct["(scope)"].unstack(),state.funct["(scope)"].unstack(),state.funct=state.funct["(context)"],ignoreLoopFunc||state.option.loopfunc||!state.funct["(loopage)"]||f["(isCapturing)"]&&warning("W083",token),f}function createMetrics(functionStartToken){return{statementCount:0,nestedBlockDepth:-1,ComplexityCount:1,arity:0,verifyMaxStatementsPerFunction:function(){state.option.maxstatements&&this.statementCount>state.option.maxstatements&&warning("W071",functionStartToken,this.statementCount) },verifyMaxParametersPerFunction:function(){_.isNumber(state.option.maxparams)&&this.arity>state.option.maxparams&&warning("W072",functionStartToken,this.arity)},verifyMaxNestedBlockDepthPerFunction:function(){state.option.maxdepth&&this.nestedBlockDepth>0&&this.nestedBlockDepth===state.option.maxdepth+1&&warning("W073",null,this.nestedBlockDepth)},verifyMaxComplexityPerFunction:function(){var max=state.option.maxcomplexity,cc=this.ComplexityCount;max&&cc>max&&warning("W074",functionStartToken,cc)}}}function increaseComplexityCount(){state.funct["(metrics)"].ComplexityCount+=1}function checkCondAssignment(expr){var id,paren;switch(expr&&(id=expr.id,paren=expr.paren,","===id&&(expr=expr.exprs[expr.exprs.length-1])&&(id=expr.id,paren=paren||expr.paren)),id){case"=":case"+=":case"-=":case"*=":case"%=":case"&=":case"|=":case"^=":case"/=":paren||state.option.boss||warning("W084")}}function checkProperties(props){if(state.inES5())for(var name in props)props[name]&&props[name].setterToken&&!props[name].getterToken&&warning("W078",props[name].setterToken)}function metaProperty(name,c){if(checkPunctuator(state.tokens.next,".")){var left=state.tokens.curr.id;advance(".");var id=identifier();return state.tokens.curr.isMetaProperty=!0,name!==id?error("E057",state.tokens.prev,left,id):c(),state.tokens.curr}}function destructuringPattern(options){var isAssignment=options&&options.assignment;return state.inES6()||warning("W104",state.tokens.curr,isAssignment?"destructuring assignment":"destructuring binding","6"),destructuringPatternRecursive(options)}function destructuringPatternRecursive(options){var ids,identifiers=[],openingParsed=options&&options.openingParsed,isAssignment=options&&options.assignment,recursiveOptions=isAssignment?{assignment:isAssignment}:null,firstToken=openingParsed?state.tokens.curr:state.tokens.next,nextInnerDE=function(){var ident;if(checkPunctuators(state.tokens.next,["[","{"])){ids=destructuringPatternRecursive(recursiveOptions);for(var id in ids)id=ids[id],identifiers.push({id:id.id,token:id.token})}else if(checkPunctuator(state.tokens.next,","))identifiers.push({id:null,token:state.tokens.curr});else{if(!checkPunctuator(state.tokens.next,"(")){var is_rest=checkPunctuator(state.tokens.next,"...");if(isAssignment){var identifierToken=is_rest?peek(0):state.tokens.next;identifierToken.identifier||warning("E030",identifierToken,identifierToken.value);var assignTarget=expression(155);assignTarget&&(checkLeftSideAssign(assignTarget),assignTarget.identifier&&(ident=assignTarget.value))}else ident=identifier();return ident&&identifiers.push({id:ident,token:state.tokens.curr}),is_rest}advance("("),nextInnerDE(),advance(")")}return!1},assignmentProperty=function(){var id;checkPunctuator(state.tokens.next,"[")?(advance("["),expression(10),advance("]"),advance(":"),nextInnerDE()):"(string)"===state.tokens.next.id||"(number)"===state.tokens.next.id?(advance(),advance(":"),nextInnerDE()):(id=identifier(),checkPunctuator(state.tokens.next,":")?(advance(":"),nextInnerDE()):id&&(isAssignment&&checkLeftSideAssign(state.tokens.curr),identifiers.push({id:id,token:state.tokens.curr})))};if(checkPunctuator(firstToken,"[")){openingParsed||advance("["),checkPunctuator(state.tokens.next,"]")&&warning("W137",state.tokens.curr);for(var element_after_rest=!1;!checkPunctuator(state.tokens.next,"]");)nextInnerDE()&&!element_after_rest&&checkPunctuator(state.tokens.next,",")&&(warning("W130",state.tokens.next),element_after_rest=!0),checkPunctuator(state.tokens.next,"=")&&(checkPunctuator(state.tokens.prev,"...")?advance("]"):advance("="),"undefined"===state.tokens.next.id&&warning("W080",state.tokens.prev,state.tokens.prev.value),expression(10)),checkPunctuator(state.tokens.next,"]")||advance(",");advance("]")}else if(checkPunctuator(firstToken,"{")){for(openingParsed||advance("{"),checkPunctuator(state.tokens.next,"}")&&warning("W137",state.tokens.curr);!checkPunctuator(state.tokens.next,"}")&&(assignmentProperty(),checkPunctuator(state.tokens.next,"=")&&(advance("="),"undefined"===state.tokens.next.id&&warning("W080",state.tokens.prev,state.tokens.prev.value),expression(10)),checkPunctuator(state.tokens.next,"}")||(advance(","),!checkPunctuator(state.tokens.next,"}"))););advance("}")}return identifiers}function destructuringPatternMatch(tokens,value){var first=value.first;first&&_.zip(tokens,Array.isArray(first)?first:[first]).forEach(function(val){var token=val[0],value=val[1];token&&value?token.first=value:token&&token.first&&!value&&warning("W080",token.first,token.first.value)})}function blockVariableStatement(type,statement,context){var tokens,lone,value,letblock,prefix=context&&context.prefix,inexport=context&&context.inexport,isLet="let"===type,isConst="const"===type;for(state.inES6()||warning("W104",state.tokens.curr,type,"6"),isLet&&"("===state.tokens.next.value?(state.inMoz()||warning("W118",state.tokens.next,"let block"),advance("("),state.funct["(scope)"].stack(),letblock=!0):state.funct["(noblockscopedvar)"]&&error("E048",state.tokens.curr,isConst?"Const":"Let"),statement.first=[];;){var names=[];_.contains(["{","["],state.tokens.next.value)?(tokens=destructuringPattern(),lone=!1):(tokens=[{id:identifier(),token:state.tokens.curr}],lone=!0),!prefix&&isConst&&"="!==state.tokens.next.id&&warning("E012",state.tokens.curr,state.tokens.curr.value);for(var t in tokens)tokens.hasOwnProperty(t)&&(t=tokens[t],state.funct["(scope)"].block.isGlobal()&&predefined[t.id]===!1&&warning("W079",t.token,t.id),t.id&&!state.funct["(noblockscopedvar)"]&&(state.funct["(scope)"].addlabel(t.id,{type:type,token:t.token}),names.push(t.token),lone&&inexport&&state.funct["(scope)"].setExported(t.token.value,t.token)));if("="===state.tokens.next.id&&(advance("="),prefix||"undefined"!==state.tokens.next.id||warning("W080",state.tokens.prev,state.tokens.prev.value),!prefix&&"="===peek(0).id&&state.tokens.next.identifier&&warning("W120",state.tokens.next,state.tokens.next.value),value=expression(prefix?120:10),lone?tokens[0].first=value:destructuringPatternMatch(names,value)),statement.first=statement.first.concat(names),","!==state.tokens.next.id)break;comma()}return letblock&&(advance(")"),block(!0,!0),statement.block=!0,state.funct["(scope)"].unstack()),statement}function classdef(isStatement){return state.inES6()||warning("W104",state.tokens.curr,"class","6"),isStatement?(this.name=identifier(),state.funct["(scope)"].addlabel(this.name,{type:"class",token:state.tokens.curr})):state.tokens.next.identifier&&"extends"!==state.tokens.next.value?(this.name=identifier(),this.namedExpr=!0):this.name=state.nameStack.infer(),classtail(this),this}function classtail(c){var wasInClassBody=state.inClassBody;"extends"===state.tokens.next.value&&(advance("extends"),c.heritage=expression(10)),state.inClassBody=!0,advance("{"),c.body=classbody(c),advance("}"),state.inClassBody=wasInClassBody}function classbody(c){for(var name,isStatic,isGenerator,getset,computed,props=Object.create(null),staticProps=Object.create(null),i=0;"}"!==state.tokens.next.id;++i)if(name=state.tokens.next,isStatic=!1,isGenerator=!1,getset=null,";"!==name.id){if("*"===name.id&&(isGenerator=!0,advance("*"),name=state.tokens.next),"["===name.id)name=computedPropertyName(),computed=!0;else{if(!isPropertyName(name)){warning("W052",state.tokens.next,state.tokens.next.value||state.tokens.next.type),advance();continue}advance(),computed=!1,name.identifier&&"static"===name.value&&(checkPunctuator(state.tokens.next,"*")&&(isGenerator=!0,advance("*")),(isPropertyName(state.tokens.next)||"["===state.tokens.next.id)&&(computed="["===state.tokens.next.id,isStatic=!0,name=state.tokens.next,"["===state.tokens.next.id?name=computedPropertyName():advance())),!name.identifier||"get"!==name.value&&"set"!==name.value||(isPropertyName(state.tokens.next)||"["===state.tokens.next.id)&&(computed="["===state.tokens.next.id,getset=name,name=state.tokens.next,"["===state.tokens.next.id?name=computedPropertyName():advance())}if(!checkPunctuator(state.tokens.next,"(")){for(error("E054",state.tokens.next,state.tokens.next.value);"}"!==state.tokens.next.id&&!checkPunctuator(state.tokens.next,"(");)advance();"("!==state.tokens.next.value&&doFunction({statement:c})}if(computed||(getset?saveAccessor(getset.value,isStatic?staticProps:props,name.value,name,!0,isStatic):("constructor"===name.value?state.nameStack.set(c):state.nameStack.set(name),saveProperty(isStatic?staticProps:props,name.value,name,!0,isStatic))),getset&&"constructor"===name.value){var propDesc="get"===getset.value?"class getter method":"class setter method";error("E049",name,propDesc,"constructor")}else"prototype"===name.value&&error("E049",name,"class method","prototype");propertyName(name),doFunction({statement:c,type:isGenerator?"generator":null,classExprBinding:c.namedExpr?c.name:null})}else warning("W032"),advance(";");checkProperties(props)}function saveProperty(props,name,tkn,isClass,isStatic){var msg=["key","class method","static class method"];msg=msg[(isClass||!1)+(isStatic||!1)],tkn.identifier&&(name=tkn.value),props[name]&&"__proto__"!==name?warning("W075",state.tokens.next,msg,name):props[name]=Object.create(null),props[name].basic=!0,props[name].basictkn=tkn}function saveAccessor(accessorType,props,name,tkn,isClass,isStatic){var flagName="get"===accessorType?"getterToken":"setterToken",msg="";isClass?(isStatic&&(msg+="static "),msg+=accessorType+"ter method"):msg="key",state.tokens.curr.accessorType=accessorType,state.nameStack.set(tkn),props[name]?(props[name].basic||props[name][flagName])&&"__proto__"!==name&&warning("W075",state.tokens.next,msg,name):props[name]=Object.create(null),props[name][flagName]=tkn}function computedPropertyName(){advance("["),state.inES6()||warning("W119",state.tokens.curr,"computed property names","6");var value=expression(10);return advance("]"),value}function checkPunctuators(token,values){return"(punctuator)"===token.type?_.contains(values,token.value):!1}function checkPunctuator(token,value){return"(punctuator)"===token.type&&token.value===value}function destructuringAssignOrJsonValue(){var block=lookupBlockType();block.notJson?(!state.inES6()&&block.isDestAssign&&warning("W104",state.tokens.curr,"destructuring assignment","6"),statements()):(state.option.laxbreak=!0,state.jsonMode=!0,jsonValue())}function jsonValue(){function jsonObject(){var o={},t=state.tokens.next;if(advance("{"),"}"!==state.tokens.next.id)for(;;){if("(end)"===state.tokens.next.id)error("E026",state.tokens.next,t.line);else{if("}"===state.tokens.next.id){warning("W094",state.tokens.curr);break}","===state.tokens.next.id?error("E028",state.tokens.next):"(string)"!==state.tokens.next.id&&warning("W095",state.tokens.next,state.tokens.next.value)}if(o[state.tokens.next.value]===!0?warning("W075",state.tokens.next,"key",state.tokens.next.value):"__proto__"===state.tokens.next.value&&!state.option.proto||"__iterator__"===state.tokens.next.value&&!state.option.iterator?warning("W096",state.tokens.next,state.tokens.next.value):o[state.tokens.next.value]=!0,advance(),advance(":"),jsonValue(),","!==state.tokens.next.id)break;advance(",")}advance("}")}function jsonArray(){var t=state.tokens.next;if(advance("["),"]"!==state.tokens.next.id)for(;;){if("(end)"===state.tokens.next.id)error("E027",state.tokens.next,t.line);else{if("]"===state.tokens.next.id){warning("W094",state.tokens.curr);break}","===state.tokens.next.id&&error("E028",state.tokens.next)}if(jsonValue(),","!==state.tokens.next.id)break;advance(",")}advance("]")}switch(state.tokens.next.id){case"{":jsonObject();break;case"[":jsonArray();break;case"true":case"false":case"null":case"(number)":case"(string)":advance();break;case"-":advance("-"),advance("(number)");break;default:error("E003",state.tokens.next)}}var api,declared,functions,inblock,indent,lookahead,lex,member,membersOnly,predefined,stack,urls,bang={"<":!0,"<=":!0,"==":!0,"===":!0,"!==":!0,"!=":!0,">":!0,">=":!0,"+":!0,"-":!0,"*":!0,"/":!0,"%":!0},functionicity=["closure","exception","global","label","outer","unused","var"],extraModules=[],emitter=new events.EventEmitter,typeofValues={};typeofValues.legacy=["xml","unknown"],typeofValues.es3=["undefined","boolean","number","string","function","object"],typeofValues.es3=typeofValues.es3.concat(typeofValues.legacy),typeofValues.es6=typeofValues.es3.concat("symbol"),type("(number)",function(){return this}),type("(string)",function(){return this}),state.syntax["(identifier)"]={type:"(identifier)",lbp:0,identifier:!0,nud:function(){var v=this.value;return"=>"===state.tokens.next.id?this:(state.funct["(comparray)"].check(v)||state.funct["(scope)"].block.use(v,state.tokens.curr),this)},led:function(){error("E033",state.tokens.next,state.tokens.next.value)}};var baseTemplateSyntax={lbp:0,identifier:!1,template:!0};state.syntax["(template)"]=_.extend({type:"(template)",nud:doTemplateLiteral,led:doTemplateLiteral,noSubst:!1},baseTemplateSyntax),state.syntax["(template middle)"]=_.extend({type:"(template middle)",middle:!0,noSubst:!1},baseTemplateSyntax),state.syntax["(template tail)"]=_.extend({type:"(template tail)",tail:!0,noSubst:!1},baseTemplateSyntax),state.syntax["(no subst template)"]=_.extend({type:"(template)",nud:doTemplateLiteral,led:doTemplateLiteral,noSubst:!0,tail:!0},baseTemplateSyntax),type("(regexp)",function(){return this}),delim("(endline)"),delim("(begin)"),delim("(end)").reach=!0,delim("(error)").reach=!0,delim("}").reach=!0,delim(")"),delim("]"),delim('"').reach=!0,delim("'").reach=!0,delim(";"),delim(":").reach=!0,delim("#"),reserve("else"),reserve("case").reach=!0,reserve("catch"),reserve("default").reach=!0,reserve("finally"),reservevar("arguments",function(x){state.isStrict()&&state.funct["(global)"]&&warning("E008",x)}),reservevar("eval"),reservevar("false"),reservevar("Infinity"),reservevar("null"),reservevar("this",function(x){state.isStrict()&&!isMethod()&&!state.option.validthis&&(state.funct["(statement)"]&&state.funct["(name)"].charAt(0)>"Z"||state.funct["(global)"])&&warning("W040",x)}),reservevar("true"),reservevar("undefined"),assignop("=","assign",20),assignop("+=","assignadd",20),assignop("-=","assignsub",20),assignop("*=","assignmult",20),assignop("/=","assigndiv",20).nud=function(){error("E014")},assignop("%=","assignmod",20),bitwiseassignop("&="),bitwiseassignop("|="),bitwiseassignop("^="),bitwiseassignop("<<="),bitwiseassignop(">>="),bitwiseassignop(">>>="),infix(",",function(left,that){var expr;if(that.exprs=[left],state.option.nocomma&&warning("W127"),!comma({peek:!0}))return that;for(;;){if(!(expr=expression(10)))break;if(that.exprs.push(expr),","!==state.tokens.next.value||!comma())break}return that},10,!0),infix("?",function(left,that){return increaseComplexityCount(),that.left=left,that.right=expression(10),advance(":"),that["else"]=expression(10),that},30);var orPrecendence=40;infix("||",function(left,that){return increaseComplexityCount(),that.left=left,that.right=expression(orPrecendence),that},orPrecendence),infix("&&","and",50),bitwise("|","bitor",70),bitwise("^","bitxor",80),bitwise("&","bitand",90),relation("==",function(left,right){var eqnull=state.option.eqnull&&("null"===(left&&left.value)||"null"===(right&&right.value));switch(!0){case!eqnull&&state.option.eqeqeq:this.from=this.character,warning("W116",this,"===","==");break;case isPoorRelation(left):warning("W041",this,"===",left.value);break;case isPoorRelation(right):warning("W041",this,"===",right.value);break;case isTypoTypeof(right,left,state):warning("W122",this,right.value);break;case isTypoTypeof(left,right,state):warning("W122",this,left.value)}return this}),relation("===",function(left,right){return isTypoTypeof(right,left,state)?warning("W122",this,right.value):isTypoTypeof(left,right,state)&&warning("W122",this,left.value),this}),relation("!=",function(left,right){var eqnull=state.option.eqnull&&("null"===(left&&left.value)||"null"===(right&&right.value));return!eqnull&&state.option.eqeqeq?(this.from=this.character,warning("W116",this,"!==","!=")):isPoorRelation(left)?warning("W041",this,"!==",left.value):isPoorRelation(right)?warning("W041",this,"!==",right.value):isTypoTypeof(right,left,state)?warning("W122",this,right.value):isTypoTypeof(left,right,state)&&warning("W122",this,left.value),this}),relation("!==",function(left,right){return isTypoTypeof(right,left,state)?warning("W122",this,right.value):isTypoTypeof(left,right,state)&&warning("W122",this,left.value),this}),relation("<"),relation(">"),relation("<="),relation(">="),bitwise("<<","shiftleft",120),bitwise(">>","shiftright",120),bitwise(">>>","shiftrightunsigned",120),infix("in","in",120),infix("instanceof","instanceof",120),infix("+",function(left,that){var right;return that.left=left,that.right=right=expression(130),left&&right&&"(string)"===left.id&&"(string)"===right.id?(left.value+=right.value,left.character=right.character,!state.option.scripturl&®.javascriptURL.test(left.value)&&warning("W050",left),left):that},130),prefix("+","num"),prefix("+++",function(){return warning("W007"),this.arity="unary",this.right=expression(150),this}),infix("+++",function(left){return warning("W007"),this.left=left,this.right=expression(130),this},130),infix("-","sub",130),prefix("-","neg"),prefix("---",function(){return warning("W006"),this.arity="unary",this.right=expression(150),this}),infix("---",function(left){return warning("W006"),this.left=left,this.right=expression(130),this},130),infix("*","mult",140),infix("/","div",140),infix("%","mod",140),suffix("++"),prefix("++","preinc"),state.syntax["++"].exps=!0,suffix("--"),prefix("--","predec"),state.syntax["--"].exps=!0,prefix("delete",function(){var p=expression(10);return p?("."!==p.id&&"["!==p.id&&warning("W051"),this.first=p,p.identifier&&!state.isStrict()&&(p.forgiveUndef=!0),this):this}).exps=!0,prefix("~",function(){return state.option.bitwise&&warning("W016",this,"~"),this.arity="unary",this.right=expression(150),this}),prefix("...",function(){return state.inES6(!0)||warning("W119",this,"spread/rest operator","6"),state.tokens.next.identifier||"(string)"===state.tokens.next.type||checkPunctuators(state.tokens.next,["[","("])||error("E030",state.tokens.next,state.tokens.next.value),expression(150),this}),prefix("!",function(){return this.arity="unary",this.right=expression(150),this.right||quit("E041",this.line||0),bang[this.right.id]===!0&&warning("W018",this,"!"),this}),prefix("typeof",function(){var p=expression(150);return this.first=this.right=p,p||quit("E041",this.line||0,this.character||0),p.identifier&&(p.forgiveUndef=!0),this}),prefix("new",function(){var mp=metaProperty("target",function(){state.inES6(!0)||warning("W119",state.tokens.prev,"new.target","6");for(var inFunction,c=state.funct;c&&(inFunction=!c["(global)"],c["(arrow)"]);)c=c["(context)"];inFunction||warning("W136",state.tokens.prev,"new.target")});if(mp)return mp;var i,c=expression(155);if(c&&"function"!==c.id)if(c.identifier)switch(c["new"]=!0,c.value){case"Number":case"String":case"Boolean":case"Math":case"JSON":warning("W053",state.tokens.prev,c.value);break;case"Symbol":state.inES6()&&warning("W053",state.tokens.prev,c.value);break;case"Function":state.option.evil||warning("W054");break;case"Date":case"RegExp":case"this":break;default:"function"!==c.id&&(i=c.value.substr(0,1),state.option.newcap&&("A">i||i>"Z")&&!state.funct["(scope)"].isPredefined(c.value)&&warning("W055",state.tokens.curr))}else"."!==c.id&&"["!==c.id&&"("!==c.id&&warning("W056",state.tokens.curr);else state.option.supernew||warning("W057",this);return"("===state.tokens.next.id||state.option.supernew||warning("W058",state.tokens.curr,state.tokens.curr.value),this.first=this.right=c,this}),state.syntax["new"].exps=!0,prefix("void").exps=!0,infix(".",function(left,that){var m=identifier(!1,!0);return"string"==typeof m&&countMember(m),that.left=left,that.right=m,m&&"hasOwnProperty"===m&&"="===state.tokens.next.value&&warning("W001"),!left||"arguments"!==left.value||"callee"!==m&&"caller"!==m?state.option.evil||!left||"document"!==left.value||"write"!==m&&"writeln"!==m||warning("W060",left):state.option.noarg?warning("W059",left,m):state.isStrict()&&error("E008"),state.option.evil||"eval"!==m&&"execScript"!==m||isGlobalEval(left,state)&&warning("W061"),that},160,!0),infix("(",function(left,that){state.option.immed&&left&&!left.immed&&"function"===left.id&&warning("W062");var n=0,p=[];if(left&&"(identifier)"===left.type&&left.value.match(/^[A-Z]([A-Z0-9_$]*[a-z][A-Za-z0-9_$]*)?$/)&&-1==="Array Number String Boolean Date Object Error Symbol".indexOf(left.value)&&("Math"===left.value?warning("W063",left):state.option.newcap&&warning("W064",left)),")"!==state.tokens.next.id)for(;p[p.length]=expression(10),n+=1,","===state.tokens.next.id;)comma();return advance(")"),"object"==typeof left&&(state.inES5()||"parseInt"!==left.value||1!==n||warning("W065",state.tokens.curr),state.option.evil||("eval"===left.value||"Function"===left.value||"execScript"===left.value?(warning("W061",left),p[0]&&"(string)"===[0].id&&addInternalSrc(left,p[0].value)):!p[0]||"(string)"!==p[0].id||"setTimeout"!==left.value&&"setInterval"!==left.value?!p[0]||"(string)"!==p[0].id||"."!==left.value||"window"!==left.left.value||"setTimeout"!==left.right&&"setInterval"!==left.right||(warning("W066",left),addInternalSrc(left,p[0].value)):(warning("W066",left),addInternalSrc(left,p[0].value))),left.identifier||"."===left.id||"["===left.id||"=>"===left.id||"("===left.id||"&&"===left.id||"||"===left.id||"?"===left.id||state.inES6()&&left["(name)"]||warning("W067",that)),that.left=left,that},155,!0).exps=!0,prefix("(",function(){var pn1,ret,triggerFnExpr,first,last,pn=state.tokens.next,i=-1,parens=1,opening=state.tokens.curr,preceeding=state.tokens.prev,isNecessary=!state.option.singleGroups;do"("===pn.value?parens+=1:")"===pn.value&&(parens-=1),i+=1,pn1=pn,pn=peek(i);while((0!==parens||")"!==pn1.value)&&";"!==pn.value&&"(end)"!==pn.type);if("function"===state.tokens.next.id&&(triggerFnExpr=state.tokens.next.immed=!0),"=>"===pn.value)return doFunction({type:"arrow",parsedOpening:!0});var exprs=[];if(")"!==state.tokens.next.id)for(;exprs.push(expression(10)),","===state.tokens.next.id;)state.option.nocomma&&warning("W127"),comma();return advance(")",this),state.option.immed&&exprs[0]&&"function"===exprs[0].id&&"("!==state.tokens.next.id&&"."!==state.tokens.next.id&&"["!==state.tokens.next.id&&warning("W068",this),exprs.length?(exprs.length>1?(ret=Object.create(state.syntax[","]),ret.exprs=exprs,first=exprs[0],last=exprs[exprs.length-1],isNecessary||(isNecessary=preceeding.assign||preceeding.delim)):(ret=first=last=exprs[0],isNecessary||(isNecessary=opening.beginsStmt&&("{"===ret.id||triggerFnExpr||isFunctor(ret))||triggerFnExpr&&(!isEndOfExpr()||"}"!==state.tokens.prev.id)||isFunctor(ret)&&!isEndOfExpr()||"{"===ret.id&&"=>"===preceeding.id||"(number)"===ret.type&&checkPunctuator(pn,".")&&/^\\d+$/.test(ret.value))),ret&&(!isNecessary&&(first.left||first.right||ret.exprs)&&(isNecessary=!isBeginOfExpr(preceeding)&&first.lbp<=preceeding.lbp||!isEndOfExpr()&&last.lbp"),infix("[",function(left,that){var s,e=expression(10);return e&&"(string)"===e.type&&(state.option.evil||"eval"!==e.value&&"execScript"!==e.value||isGlobalEval(left,state)&&warning("W061"),countMember(e.value),!state.option.sub&®.identifier.test(e.value)&&(s=state.syntax[e.value],s&&isReserved(s)||warning("W069",state.tokens.prev,e.value))),advance("]",that),e&&"hasOwnProperty"===e.value&&"="===state.tokens.next.value&&warning("W001"),that.left=left,that.right=e,that},160,!0),prefix("[",function(){var blocktype=lookupBlockType();if(blocktype.isCompArray)return state.option.esnext||state.inMoz()||warning("W118",state.tokens.curr,"array comprehension"),comprehensiveArrayExpression();if(blocktype.isDestAssign)return this.destructAssign=destructuringPattern({openingParsed:!0,assignment:!0}),this;var b=state.tokens.curr.line!==startLine(state.tokens.next);for(this.first=[],b&&(indent+=state.option.indent,state.tokens.next.from===indent+state.option.indent&&(indent+=state.option.indent));"(end)"!==state.tokens.next.id;){for(;","===state.tokens.next.id;){if(!state.option.elision){if(state.inES5()){warning("W128");do advance(",");while(","===state.tokens.next.id);continue}warning("W070")}advance(",")}if("]"===state.tokens.next.id)break;if(this.first.push(expression(10)),","!==state.tokens.next.id)break;if(comma({allowTrailing:!0}),"]"===state.tokens.next.id&&!state.inES5()){warning("W070",state.tokens.curr);break}}return b&&(indent-=state.option.indent),advance("]",this),this}),function(x){x.nud=function(){var b,f,i,p,t,nextVal,isGeneratorMethod=!1,props=Object.create(null);b=state.tokens.curr.line!==startLine(state.tokens.next),b&&(indent+=state.option.indent,state.tokens.next.from===indent+state.option.indent&&(indent+=state.option.indent));var blocktype=lookupBlockType();if(blocktype.isDestAssign)return this.destructAssign=destructuringPattern({openingParsed:!0,assignment:!0}),this;for(;"}"!==state.tokens.next.id;){if(nextVal=state.tokens.next.value,!state.tokens.next.identifier||","!==peekIgnoreEOL().id&&"}"!==peekIgnoreEOL().id)if(":"===peek().id||"get"!==nextVal&&"set"!==nextVal){if("*"===state.tokens.next.value&&"(punctuator)"===state.tokens.next.type?(state.inES6()||warning("W104",state.tokens.next,"generator functions","6"),advance("*"),isGeneratorMethod=!0):isGeneratorMethod=!1,"["===state.tokens.next.id)i=computedPropertyName(),state.nameStack.set(i);else if(state.nameStack.set(state.tokens.next),i=propertyName(),saveProperty(props,i,state.tokens.next),"string"!=typeof i)break;"("===state.tokens.next.value?(state.inES6()||warning("W104",state.tokens.curr,"concise methods","6"),doFunction({type:isGeneratorMethod?"generator":null})):(advance(":"),expression(10))}else advance(nextVal),state.inES5()||error("E034"),i=propertyName(),i||state.inES6()||error("E035"),i&&saveAccessor(nextVal,props,i,state.tokens.curr),t=state.tokens.next,f=doFunction(),p=f["(params)"],"get"===nextVal&&i&&p?warning("W076",t,p[0],i):"set"!==nextVal||!i||p&&1===p.length||warning("W077",t,i);else state.inES6()||warning("W104",state.tokens.next,"object short notation","6"),i=propertyName(!0),saveProperty(props,i,state.tokens.next),expression(10);if(countMember(i),","!==state.tokens.next.id)break;comma({allowTrailing:!0,property:!0}),","===state.tokens.next.id?warning("W070",state.tokens.curr):"}"!==state.tokens.next.id||state.inES5()||warning("W070",state.tokens.curr)}return b&&(indent-=state.option.indent),advance("}",this),checkProperties(props),this},x.fud=function(){error("E036",state.tokens.curr)}}(delim("{"));var conststatement=stmt("const",function(context){return blockVariableStatement("const",this,context)});conststatement.exps=!0;var letstatement=stmt("let",function(context){return blockVariableStatement("let",this,context)});letstatement.exps=!0;var varstatement=stmt("var",function(context){var tokens,lone,value,prefix=context&&context.prefix,inexport=context&&context.inexport,implied=context&&context.implied,report=!(context&&context.ignore);for(this.first=[];;){var names=[];_.contains(["{","["],state.tokens.next.value)?(tokens=destructuringPattern(),lone=!1):(tokens=[{id:identifier(),token:state.tokens.curr}],lone=!0),prefix&&implied||!report||!state.option.varstmt||warning("W132",this),this.first=this.first.concat(names);for(var t in tokens)tokens.hasOwnProperty(t)&&(t=tokens[t],!implied&&state.funct["(global)"]&&(predefined[t.id]===!1?warning("W079",t.token,t.id):state.option.futurehostile===!1&&(!state.inES5()&&vars.ecmaIdentifiers[5][t.id]===!1||!state.inES6()&&vars.ecmaIdentifiers[6][t.id]===!1)&&warning("W129",t.token,t.id)),t.id&&("for"===implied?(state.funct["(scope)"].has(t.id)||report&&warning("W088",t.token,t.id),state.funct["(scope)"].block.use(t.id,t.token)):(state.funct["(scope)"].addlabel(t.id,{type:"var",token:t.token}),lone&&inexport&&state.funct["(scope)"].setExported(t.id,t.token)),names.push(t.token)));if("="===state.tokens.next.id&&(state.nameStack.set(state.tokens.curr),advance("="),prefix||!report||state.funct["(loopage)"]||"undefined"!==state.tokens.next.id||warning("W080",state.tokens.prev,state.tokens.prev.value),"="===peek(0).id&&state.tokens.next.identifier&&(!prefix&&report&&!state.funct["(params)"]||-1===state.funct["(params)"].indexOf(state.tokens.next.value))&&warning("W120",state.tokens.next,state.tokens.next.value),value=expression(prefix?120:10),lone?tokens[0].first=value:destructuringPatternMatch(names,value)),","!==state.tokens.next.id)break;comma()}return this});varstatement.exps=!0,blockstmt("class",function(){return classdef.call(this,!0)}),blockstmt("function",function(context){var inexport=context&&context.inexport,generator=!1;"*"===state.tokens.next.value&&(advance("*"),state.inES6({strict:!0})?generator=!0:warning("W119",state.tokens.curr,"function*","6")),inblock&&warning("W082",state.tokens.curr);var i=optionalidentifier();return state.funct["(scope)"].addlabel(i,{type:"function",token:state.tokens.curr}),void 0===i?warning("W025"):inexport&&state.funct["(scope)"].setExported(i,state.tokens.prev),doFunction({name:i,statement:this,type:generator?"generator":null,ignoreLoopFunc:inblock}),"("===state.tokens.next.id&&state.tokens.next.line===state.tokens.curr.line&&error("E039"),this}),prefix("function",function(){var generator=!1;"*"===state.tokens.next.value&&(state.inES6()||warning("W119",state.tokens.curr,"function*","6"),advance("*"),generator=!0);var i=optionalidentifier();return doFunction({name:i,type:generator?"generator":null}),this}),blockstmt("if",function(){var t=state.tokens.next;increaseComplexityCount(),state.condition=!0,advance("(");var expr=expression(0);checkCondAssignment(expr);var forinifcheck=null;state.option.forin&&state.forinifcheckneeded&&(state.forinifcheckneeded=!1,forinifcheck=state.forinifchecks[state.forinifchecks.length-1],forinifcheck.type="(punctuator)"===expr.type&&"!"===expr.value?"(negative)":"(positive)"),advance(")",t),state.condition=!1;var s=block(!0,!0);return forinifcheck&&"(negative)"===forinifcheck.type&&s&&s[0]&&"(identifier)"===s[0].type&&"continue"===s[0].value&&(forinifcheck.type="(negative-with-continue)"),"else"===state.tokens.next.id&&(advance("else"),"if"===state.tokens.next.id||"switch"===state.tokens.next.id?statement():block(!0,!0)),this}),blockstmt("try",function(){function doCatch(){if(advance("catch"),advance("("),state.funct["(scope)"].stack("catchparams"),checkPunctuators(state.tokens.next,["[","{"])){var tokens=destructuringPattern();_.each(tokens,function(token){token.id&&state.funct["(scope)"].addParam(token.id,token,"exception")})}else"(identifier)"!==state.tokens.next.type?warning("E030",state.tokens.next,state.tokens.next.value):state.funct["(scope)"].addParam(identifier(),state.tokens.curr,"exception");"if"===state.tokens.next.value&&(state.inMoz()||warning("W118",state.tokens.curr,"catch filter"),advance("if"),expression(0)),advance(")"),block(!1),state.funct["(scope)"].unstack()}var b;for(block(!0);"catch"===state.tokens.next.id;)increaseComplexityCount(),b&&!state.inMoz()&&warning("W118",state.tokens.next,"multiple catch blocks"),doCatch(),b=!0;return"finally"===state.tokens.next.id?(advance("finally"),block(!0),void 0):(b||error("E021",state.tokens.next,"catch",state.tokens.next.value),this)}),blockstmt("while",function(){var t=state.tokens.next;return state.funct["(breakage)"]+=1,state.funct["(loopage)"]+=1,increaseComplexityCount(),advance("("),checkCondAssignment(expression(0)),advance(")",t),block(!0,!0),state.funct["(breakage)"]-=1,state.funct["(loopage)"]-=1,this}).labelled=!0,blockstmt("with",function(){var t=state.tokens.next;return state.isStrict()?error("E010",state.tokens.curr):state.option.withstmt||warning("W085",state.tokens.curr),advance("("),expression(0),advance(")",t),block(!0,!0),this}),blockstmt("switch",function(){var t=state.tokens.next,g=!1,noindent=!1; for(state.funct["(breakage)"]+=1,advance("("),checkCondAssignment(expression(0)),advance(")",t),t=state.tokens.next,advance("{"),state.tokens.next.from===indent&&(noindent=!0),noindent||(indent+=state.option.indent),this.cases=[];;)switch(state.tokens.next.id){case"case":switch(state.funct["(verb)"]){case"yield":case"break":case"case":case"continue":case"return":case"switch":case"throw":break;default:state.tokens.curr.caseFallsThrough||warning("W086",state.tokens.curr,"case")}advance("case"),this.cases.push(expression(0)),increaseComplexityCount(),g=!0,advance(":"),state.funct["(verb)"]="case";break;case"default":switch(state.funct["(verb)"]){case"yield":case"break":case"continue":case"return":case"throw":break;default:this.cases.length&&(state.tokens.curr.caseFallsThrough||warning("W086",state.tokens.curr,"default"))}advance("default"),g=!0,advance(":");break;case"}":return noindent||(indent-=state.option.indent),advance("}",t),state.funct["(breakage)"]-=1,state.funct["(verb)"]=void 0,void 0;case"(end)":return error("E023",state.tokens.next,"}"),void 0;default:if(indent+=state.option.indent,g)switch(state.tokens.curr.id){case",":return error("E040"),void 0;case":":g=!1,statements();break;default:return error("E025",state.tokens.curr),void 0}else{if(":"!==state.tokens.curr.id)return error("E021",state.tokens.next,"case",state.tokens.next.value),void 0;advance(":"),error("E024",state.tokens.curr,":"),statements()}indent-=state.option.indent}return this}).labelled=!0,stmt("debugger",function(){return state.option.debug||warning("W087",this),this}).exps=!0,function(){var x=stmt("do",function(){state.funct["(breakage)"]+=1,state.funct["(loopage)"]+=1,increaseComplexityCount(),this.first=block(!0,!0),advance("while");var t=state.tokens.next;return advance("("),checkCondAssignment(expression(0)),advance(")",t),state.funct["(breakage)"]-=1,state.funct["(loopage)"]-=1,this});x.labelled=!0,x.exps=!0}(),blockstmt("for",function(){var s,t=state.tokens.next,letscope=!1,foreachtok=null;"each"===t.value&&(foreachtok=t,advance("each"),state.inMoz()||warning("W118",state.tokens.curr,"for each")),increaseComplexityCount(),advance("(");var nextop,comma,initializer,i=0,inof=["in","of"],level=0;checkPunctuators(state.tokens.next,["{","["])&&++level;do{if(nextop=peek(i),++i,checkPunctuators(nextop,["{","["])?++level:checkPunctuators(nextop,["}","]"])&&--level,0>level)break;0===level&&(!comma&&checkPunctuator(nextop,",")?comma=nextop:!initializer&&checkPunctuator(nextop,"=")&&(initializer=nextop))}while(level>0||!_.contains(inof,nextop.value)&&";"!==nextop.value&&"(end)"!==nextop.type);if(_.contains(inof,nextop.value)){state.inES6()||"of"!==nextop.value||warning("W104",nextop,"for of","6");var ok=!(initializer||comma);if(initializer&&error("W133",comma,nextop.value,"initializer is forbidden"),comma&&error("W133",comma,nextop.value,"more than one ForBinding"),"var"===state.tokens.next.id?(advance("var"),state.tokens.curr.fud({prefix:!0})):"let"===state.tokens.next.id||"const"===state.tokens.next.id?(advance(state.tokens.next.id),letscope=!0,state.funct["(scope)"].stack(),state.tokens.curr.fud({prefix:!0})):Object.create(varstatement).fud({prefix:!0,implied:"for",ignore:!ok}),advance(nextop.value),expression(20),advance(")",t),"in"===nextop.value&&state.option.forin&&(state.forinifcheckneeded=!0,void 0===state.forinifchecks&&(state.forinifchecks=[]),state.forinifchecks.push({type:"(none)"})),state.funct["(breakage)"]+=1,state.funct["(loopage)"]+=1,s=block(!0,!0),"in"===nextop.value&&state.option.forin){if(state.forinifchecks&&state.forinifchecks.length>0){var check=state.forinifchecks.pop();(s&&s.length>0&&("object"!=typeof s[0]||"if"!==s[0].value)||"(positive)"===check.type&&s.length>1||"(negative)"===check.type)&&warning("W089",this)}state.forinifcheckneeded=!1}state.funct["(breakage)"]-=1,state.funct["(loopage)"]-=1}else{if(foreachtok&&error("E045",foreachtok),";"!==state.tokens.next.id)if("var"===state.tokens.next.id)advance("var"),state.tokens.curr.fud();else if("let"===state.tokens.next.id)advance("let"),letscope=!0,state.funct["(scope)"].stack(),state.tokens.curr.fud();else for(;expression(0,"for"),","===state.tokens.next.id;)comma();if(nolinebreak(state.tokens.curr),advance(";"),state.funct["(loopage)"]+=1,";"!==state.tokens.next.id&&checkCondAssignment(expression(0)),nolinebreak(state.tokens.curr),advance(";"),";"===state.tokens.next.id&&error("E021",state.tokens.next,")",";"),")"!==state.tokens.next.id)for(;expression(0,"for"),","===state.tokens.next.id;)comma();advance(")",t),state.funct["(breakage)"]+=1,block(!0,!0),state.funct["(breakage)"]-=1,state.funct["(loopage)"]-=1}return letscope&&state.funct["(scope)"].unstack(),this}).labelled=!0,stmt("break",function(){var v=state.tokens.next.value;return state.option.asi||nolinebreak(this),";"===state.tokens.next.id||state.tokens.next.reach||state.tokens.curr.line!==startLine(state.tokens.next)?0===state.funct["(breakage)"]&&warning("W052",state.tokens.next,this.value):(state.funct["(scope)"].funct.hasBreakLabel(v)||warning("W090",state.tokens.next,v),this.first=state.tokens.next,advance()),reachable(this),this}).exps=!0,stmt("continue",function(){var v=state.tokens.next.value;return 0===state.funct["(breakage)"]&&warning("W052",state.tokens.next,this.value),state.funct["(loopage)"]||warning("W052",state.tokens.next,this.value),state.option.asi||nolinebreak(this),";"===state.tokens.next.id||state.tokens.next.reach||state.tokens.curr.line===startLine(state.tokens.next)&&(state.funct["(scope)"].funct.hasBreakLabel(v)||warning("W090",state.tokens.next,v),this.first=state.tokens.next,advance()),reachable(this),this}).exps=!0,stmt("return",function(){return this.line===startLine(state.tokens.next)?";"===state.tokens.next.id||state.tokens.next.reach||(this.first=expression(0),!this.first||"(punctuator)"!==this.first.type||"="!==this.first.value||this.first.paren||state.option.boss||warningAt("W093",this.first.line,this.first.character)):"(punctuator)"===state.tokens.next.type&&["[","{","+","-"].indexOf(state.tokens.next.value)>-1&&nolinebreak(this),reachable(this),this}).exps=!0,function(x){x.exps=!0,x.lbp=25}(prefix("yield",function(){var prev=state.tokens.prev;state.inES6(!0)&&!state.funct["(generator)"]?"(catch)"===state.funct["(name)"]&&state.funct["(context)"]["(generator)"]||error("E046",state.tokens.curr,"yield"):state.inES6()||warning("W104",state.tokens.curr,"yield","6"),state.funct["(generator)"]="yielded";var delegatingYield=!1;return"*"===state.tokens.next.value&&(delegatingYield=!0,advance("*")),this.line!==startLine(state.tokens.next)&&state.inMoz()?state.option.asi||nolinebreak(this):((delegatingYield||";"!==state.tokens.next.id&&!state.option.asi&&!state.tokens.next.reach&&state.tokens.next.nud)&&(nobreaknonadjacent(state.tokens.curr,state.tokens.next),this.first=expression(10),"(punctuator)"!==this.first.type||"="!==this.first.value||this.first.paren||state.option.boss||warningAt("W093",this.first.line,this.first.character)),state.inMoz()&&")"!==state.tokens.next.id&&(prev.lbp>30||!prev.assign&&!isEndOfExpr()||"yield"===prev.id)&&error("E050",this)),this})),stmt("throw",function(){return nolinebreak(this),this.first=expression(20),reachable(this),this}).exps=!0,stmt("import",function(){if(state.inES6()||warning("W119",state.tokens.curr,"import","6"),"(string)"===state.tokens.next.type)return advance("(string)"),this;if(state.tokens.next.identifier){if(this.name=identifier(),state.funct["(scope)"].addlabel(this.name,{type:"const",token:state.tokens.curr}),","!==state.tokens.next.value)return advance("from"),advance("(string)"),this;advance(",")}if("*"===state.tokens.next.id)advance("*"),advance("as"),state.tokens.next.identifier&&(this.name=identifier(),state.funct["(scope)"].addlabel(this.name,{type:"const",token:state.tokens.curr}));else for(advance("{");;){if("}"===state.tokens.next.value){advance("}");break}var importName;if("default"===state.tokens.next.type?(importName="default",advance("default")):importName=identifier(),"as"===state.tokens.next.value&&(advance("as"),importName=identifier()),state.funct["(scope)"].addlabel(importName,{type:"const",token:state.tokens.curr}),","!==state.tokens.next.value){if("}"===state.tokens.next.value){advance("}");break}error("E024",state.tokens.next,state.tokens.next.value);break}advance(",")}return advance("from"),advance("(string)"),this}).exps=!0,stmt("export",function(){var token,identifier,ok=!0;if(state.inES6()||(warning("W119",state.tokens.curr,"export","6"),ok=!1),state.funct["(scope)"].block.isGlobal()||(error("E053",state.tokens.curr),ok=!1),"*"===state.tokens.next.value)return advance("*"),advance("from"),advance("(string)"),this;if("default"===state.tokens.next.type){state.nameStack.set(state.tokens.next),advance("default");var exportType=state.tokens.next.id;return("function"===exportType||"class"===exportType)&&(this.block=!0),token=peek(),expression(10),identifier=token.value,this.block&&(state.funct["(scope)"].addlabel(identifier,{type:exportType,token:token}),state.funct["(scope)"].setExported(identifier,token)),this}if("{"===state.tokens.next.value){advance("{");for(var exportedTokens=[];;){if(state.tokens.next.identifier||error("E030",state.tokens.next,state.tokens.next.value),advance(),exportedTokens.push(state.tokens.curr),"as"===state.tokens.next.value&&(advance("as"),state.tokens.next.identifier||error("E030",state.tokens.next,state.tokens.next.value),advance()),","!==state.tokens.next.value){if("}"===state.tokens.next.value){advance("}");break}error("E024",state.tokens.next,state.tokens.next.value);break}advance(",")}return"from"===state.tokens.next.value?(advance("from"),advance("(string)")):ok&&exportedTokens.forEach(function(token){state.funct["(scope)"].setExported(token.value,token)}),this}if("var"===state.tokens.next.id)advance("var"),state.tokens.curr.fud({inexport:!0});else if("let"===state.tokens.next.id)advance("let"),state.tokens.curr.fud({inexport:!0});else if("const"===state.tokens.next.id)advance("const"),state.tokens.curr.fud({inexport:!0});else if("function"===state.tokens.next.id)this.block=!0,advance("function"),state.syntax["function"].fud({inexport:!0});else if("class"===state.tokens.next.id){this.block=!0,advance("class");var classNameToken=state.tokens.next;state.syntax["class"].fud(),state.funct["(scope)"].setExported(classNameToken.value,classNameToken)}else error("E024",state.tokens.next,state.tokens.next.value);return this}).exps=!0,FutureReservedWord("abstract"),FutureReservedWord("boolean"),FutureReservedWord("byte"),FutureReservedWord("char"),FutureReservedWord("class",{es5:!0,nud:classdef}),FutureReservedWord("double"),FutureReservedWord("enum",{es5:!0}),FutureReservedWord("export",{es5:!0}),FutureReservedWord("extends",{es5:!0}),FutureReservedWord("final"),FutureReservedWord("float"),FutureReservedWord("goto"),FutureReservedWord("implements",{es5:!0,strictOnly:!0}),FutureReservedWord("import",{es5:!0}),FutureReservedWord("int"),FutureReservedWord("interface",{es5:!0,strictOnly:!0}),FutureReservedWord("long"),FutureReservedWord("native"),FutureReservedWord("package",{es5:!0,strictOnly:!0}),FutureReservedWord("private",{es5:!0,strictOnly:!0}),FutureReservedWord("protected",{es5:!0,strictOnly:!0}),FutureReservedWord("public",{es5:!0,strictOnly:!0}),FutureReservedWord("short"),FutureReservedWord("static",{es5:!0,strictOnly:!0}),FutureReservedWord("super",{es5:!0}),FutureReservedWord("synchronized"),FutureReservedWord("transient"),FutureReservedWord("volatile");var lookupBlockType=function(){var pn,pn1,prev,i=-1,bracketStack=0,ret={};checkPunctuators(state.tokens.curr,["[","{"])&&(bracketStack+=1);do{if(prev=-1===i?state.tokens.curr:pn,pn=-1===i?state.tokens.next:peek(i),pn1=peek(i+1),i+=1,checkPunctuators(pn,["[","{"])?bracketStack+=1:checkPunctuators(pn,["]","}"])&&(bracketStack-=1),1===bracketStack&&pn.identifier&&"for"===pn.value&&!checkPunctuator(prev,".")){ret.isCompArray=!0,ret.notJson=!0;break}if(0===bracketStack&&checkPunctuators(pn,["}","]"])){if("="===pn1.value){ret.isDestAssign=!0,ret.notJson=!0;break}if("."===pn1.value){ret.notJson=!0;break}}checkPunctuator(pn,";")&&(ret.isBlock=!0,ret.notJson=!0)}while(bracketStack>0&&"(end)"!==pn.id);return ret},arrayComprehension=function(){function declare(v){var l=_current.variables.filter(function(elt){return elt.value===v?(elt.undef=!1,v):void 0}).length;return 0!==l}function use(v){var l=_current.variables.filter(function(elt){return elt.value!==v||elt.undef?void 0:(elt.unused===!0&&(elt.unused=!1),v)}).length;return 0===l}var _current,CompArray=function(){this.mode="use",this.variables=[]},_carrays=[];return{stack:function(){_current=new CompArray,_carrays.push(_current)},unstack:function(){_current.variables.filter(function(v){v.unused&&warning("W098",v.token,v.raw_text||v.value),v.undef&&state.funct["(scope)"].block.use(v.value,v.token)}),_carrays.splice(-1,1),_current=_carrays[_carrays.length-1]},setState:function(s){_.contains(["use","define","generate","filter"],s)&&(_current.mode=s)},check:function(v){return _current?_current&&"use"===_current.mode?(use(v)&&_current.variables.push({funct:state.funct,token:state.tokens.curr,value:v,undef:!0,unused:!1}),!0):_current&&"define"===_current.mode?(declare(v)||_current.variables.push({funct:state.funct,token:state.tokens.curr,value:v,undef:!1,unused:!0}),!0):_current&&"generate"===_current.mode?(state.funct["(scope)"].block.use(v,state.tokens.curr),!0):_current&&"filter"===_current.mode?(use(v)&&state.funct["(scope)"].block.use(v,state.tokens.curr),!0):!1:void 0}}},escapeRegex=function(str){return str.replace(/[-\\/\\\\^$*+?.()|[\\]{}]/g,"\\\\$&")},itself=function(s,o,g){function each(obj,cb){obj&&(Array.isArray(obj)||"object"!=typeof obj||(obj=Object.keys(obj)),obj.forEach(cb))}var i,k,x,reIgnoreStr,reIgnore,optionKeys,newOptionObj={},newIgnoredObj={};o=_.clone(o),state.reset(),o&&o.scope?JSHINT.scope=o.scope:(JSHINT.errors=[],JSHINT.undefs=[],JSHINT.internals=[],JSHINT.blacklist={},JSHINT.scope="(main)"),predefined=Object.create(null),combine(predefined,vars.ecmaIdentifiers[3]),combine(predefined,vars.reservedVars),combine(predefined,g||{}),declared=Object.create(null);var exported=Object.create(null);if(o)for(each(o.predef||null,function(item){var slice,prop;"-"===item[0]?(slice=item.slice(1),JSHINT.blacklist[slice]=slice,delete predefined[slice]):(prop=Object.getOwnPropertyDescriptor(o.predef,item),predefined[item]=prop?prop.value:!1)}),each(o.exported||null,function(item){exported[item]=!0}),delete o.predef,delete o.exported,optionKeys=Object.keys(o),x=0;optionKeys.length>x;x++)if(/^-W\\d{3}$/g.test(optionKeys[x]))newIgnoredObj[optionKeys[x].slice(1)]=!0;else{var optionKey=optionKeys[x];newOptionObj[optionKey]=o[optionKey],("esversion"===optionKey&&5===o[optionKey]||"es5"===optionKey&&o[optionKey])&&warning("I003"),"newcap"===optionKeys[x]&&o[optionKey]===!1&&(newOptionObj["(explicitNewcap)"]=!0)}state.option=newOptionObj,state.ignored=newIgnoredObj,state.option.indent=state.option.indent||4,state.option.maxerr=state.option.maxerr||50,indent=1;var scopeManagerInst=scopeManager(state,predefined,exported,declared);if(scopeManagerInst.on("warning",function(ev){warning.apply(null,[ev.code,ev.token].concat(ev.data))}),scopeManagerInst.on("error",function(ev){error.apply(null,[ev.code,ev.token].concat(ev.data))}),state.funct=functor("(global)",null,{"(global)":!0,"(scope)":scopeManagerInst,"(comparray)":arrayComprehension(),"(metrics)":createMetrics(state.tokens.next)}),functions=[state.funct],urls=[],stack=null,member={},membersOnly=null,inblock=!1,lookahead=[],!isString(s)&&!Array.isArray(s))return errorAt("E004",0),!1;api={get isJSON(){return state.jsonMode},getOption:function(name){return state.option[name]||null},getCache:function(name){return state.cache[name]},setCache:function(name,value){state.cache[name]=value},warn:function(code,data){warningAt.apply(null,[code,data.line,data.char].concat(data.data))},on:function(names,listener){names.split(" ").forEach(function(name){emitter.on(name,listener)}.bind(this))}},emitter.removeAllListeners(),(extraModules||[]).forEach(function(func){func(api)}),state.tokens.prev=state.tokens.curr=state.tokens.next=state.syntax["(begin)"],o&&o.ignoreDelimiters&&(Array.isArray(o.ignoreDelimiters)||(o.ignoreDelimiters=[o.ignoreDelimiters]),o.ignoreDelimiters.forEach(function(delimiterPair){delimiterPair.start&&delimiterPair.end&&(reIgnoreStr=escapeRegex(delimiterPair.start)+"[\\\\s\\\\S]*?"+escapeRegex(delimiterPair.end),reIgnore=RegExp(reIgnoreStr,"ig"),s=s.replace(reIgnore,function(match){return match.replace(/./g," ")}))})),lex=new Lexer(s),lex.on("warning",function(ev){warningAt.apply(null,[ev.code,ev.line,ev.character].concat(ev.data))}),lex.on("error",function(ev){errorAt.apply(null,[ev.code,ev.line,ev.character].concat(ev.data))}),lex.on("fatal",function(ev){quit("E041",ev.line,ev.from)}),lex.on("Identifier",function(ev){emitter.emit("Identifier",ev)}),lex.on("String",function(ev){emitter.emit("String",ev)}),lex.on("Number",function(ev){emitter.emit("Number",ev)}),lex.start();for(var name in o)_.has(o,name)&&checkOption(name,state.tokens.curr);assume(),combine(predefined,g||{}),comma.first=!0;try{switch(advance(),state.tokens.next.id){case"{":case"[":destructuringAssignOrJsonValue();break;default:directives(),state.directive["use strict"]&&"global"!==state.option.strict&&warning("W097",state.tokens.prev),statements()}"(end)"!==state.tokens.next.id&&quit("E041",state.tokens.curr.line),state.funct["(scope)"].unstack()}catch(err){if(!err||"JSHintError"!==err.name)throw err;var nt=state.tokens.next||{};JSHINT.errors.push({scope:"(main)",raw:err.raw,code:err.code,reason:err.message,line:err.line||nt.line,character:err.character||nt.from},null)}if("(main)"===JSHINT.scope)for(o=o||{},i=0;JSHINT.internals.length>i;i+=1)k=JSHINT.internals[i],o.scope=k.elem,itself(k.value,o,g);return 0===JSHINT.errors.length};return itself.addModule=function(func){extraModules.push(func)},itself.addModule(style.register),itself.data=function(){var fu,f,i,j,n,globals,data={functions:[],options:state.option};itself.errors.length&&(data.errors=itself.errors),state.jsonMode&&(data.json=!0);var impliedGlobals=state.funct["(scope)"].getImpliedGlobals();for(impliedGlobals.length>0&&(data.implieds=impliedGlobals),urls.length>0&&(data.urls=urls),globals=state.funct["(scope)"].getUsedOrDefinedGlobals(),globals.length>0&&(data.globals=globals),i=1;functions.length>i;i+=1){for(f=functions[i],fu={},j=0;functionicity.length>j;j+=1)fu[functionicity[j]]=[];for(j=0;functionicity.length>j;j+=1)0===fu[functionicity[j]].length&&delete fu[functionicity[j]];fu.name=f["(name)"],fu.param=f["(params)"],fu.line=f["(line)"],fu.character=f["(character)"],fu.last=f["(last)"],fu.lastcharacter=f["(lastcharacter)"],fu.metrics={complexity:f["(metrics)"].ComplexityCount,parameters:f["(metrics)"].arity,statements:f["(metrics)"].statementCount},data.functions.push(fu)}var unuseds=state.funct["(scope)"].getUnuseds();unuseds.length>0&&(data.unused=unuseds);for(n in member)if("number"==typeof member[n]){data.member=member;break}return data},itself.jshint=itself,itself}();"object"==typeof exports&&exports&&(exports.JSHINT=JSHINT)},{"../lodash":"/node_modules/jshint/lodash.js","./lex.js":"/node_modules/jshint/src/lex.js","./messages.js":"/node_modules/jshint/src/messages.js","./options.js":"/node_modules/jshint/src/options.js","./reg.js":"/node_modules/jshint/src/reg.js","./scope-manager.js":"/node_modules/jshint/src/scope-manager.js","./state.js":"/node_modules/jshint/src/state.js","./style.js":"/node_modules/jshint/src/style.js","./vars.js":"/node_modules/jshint/src/vars.js",events:"/node_modules/browserify/node_modules/events/events.js"}],"/node_modules/jshint/src/lex.js":[function(_dereq_,module,exports){"use strict";function asyncTrigger(){var _checks=[];return{push:function(fn){_checks.push(fn)},check:function(){for(var check=0;_checks.length>check;++check)_checks[check]();_checks.splice(0,_checks.length)}}}function Lexer(source){var lines=source;"string"==typeof lines&&(lines=lines.replace(/\\r\\n/g,"\\n").replace(/\\r/g,"\\n").split("\\n")),lines[0]&&"#!"===lines[0].substr(0,2)&&(-1!==lines[0].indexOf("node")&&(state.option.node=!0),lines[0]=""),this.emitter=new events.EventEmitter,this.source=source,this.setLines(lines),this.prereg=!0,this.line=0,this.char=1,this.from=1,this.input="",this.inComment=!1,this.context=[],this.templateStarts=[];for(var i=0;state.option.indent>i;i+=1)state.tab+=" ";this.ignoreLinterErrors=!1}var _=_dereq_("../lodash"),events=_dereq_("events"),reg=_dereq_("./reg.js"),state=_dereq_("./state.js").state,unicodeData=_dereq_("../data/ascii-identifier-data.js"),asciiIdentifierStartTable=unicodeData.asciiIdentifierStartTable,asciiIdentifierPartTable=unicodeData.asciiIdentifierPartTable,Token={Identifier:1,Punctuator:2,NumericLiteral:3,StringLiteral:4,Comment:5,Keyword:6,NullLiteral:7,BooleanLiteral:8,RegExp:9,TemplateHead:10,TemplateMiddle:11,TemplateTail:12,NoSubstTemplate:13},Context={Block:1,Template:2};Lexer.prototype={_lines:[],inContext:function(ctxType){return this.context.length>0&&this.context[this.context.length-1].type===ctxType},pushContext:function(ctxType){this.context.push({type:ctxType})},popContext:function(){return this.context.pop()},isContext:function(context){return this.context.length>0&&this.context[this.context.length-1]===context},currentContext:function(){return this.context.length>0&&this.context[this.context.length-1]},getLines:function(){return this._lines=state.lines,this._lines},setLines:function(val){this._lines=val,state.lines=this._lines},peek:function(i){return this.input.charAt(i||0)},skip:function(i){i=i||1,this.char+=i,this.input=this.input.slice(i)},on:function(names,listener){names.split(" ").forEach(function(name){this.emitter.on(name,listener)}.bind(this))},trigger:function(){this.emitter.emit.apply(this.emitter,Array.prototype.slice.call(arguments))},triggerAsync:function(type,args,checks,fn){checks.push(function(){fn()&&this.trigger(type,args)}.bind(this))},scanPunctuator:function(){var ch2,ch3,ch4,ch1=this.peek();switch(ch1){case".":if(/^[0-9]$/.test(this.peek(1)))return null;if("."===this.peek(1)&&"."===this.peek(2))return{type:Token.Punctuator,value:"..."};case"(":case")":case";":case",":case"[":case"]":case":":case"~":case"?":return{type:Token.Punctuator,value:ch1};case"{":return this.pushContext(Context.Block),{type:Token.Punctuator,value:ch1};case"}":return this.inContext(Context.Block)&&this.popContext(),{type:Token.Punctuator,value:ch1};case"#":return{type:Token.Punctuator,value:ch1};case"":return null}return ch2=this.peek(1),ch3=this.peek(2),ch4=this.peek(3),">"===ch1&&">"===ch2&&">"===ch3&&"="===ch4?{type:Token.Punctuator,value:">>>="}:"="===ch1&&"="===ch2&&"="===ch3?{type:Token.Punctuator,value:"==="}:"!"===ch1&&"="===ch2&&"="===ch3?{type:Token.Punctuator,value:"!=="}:">"===ch1&&">"===ch2&&">"===ch3?{type:Token.Punctuator,value:">>>"}:"<"===ch1&&"<"===ch2&&"="===ch3?{type:Token.Punctuator,value:"<<="}:">"===ch1&&">"===ch2&&"="===ch3?{type:Token.Punctuator,value:">>="}:"="===ch1&&">"===ch2?{type:Token.Punctuator,value:ch1+ch2}:ch1===ch2&&"+-<>&|".indexOf(ch1)>=0?{type:Token.Punctuator,value:ch1+ch2}:"<>=!+-*%&|^".indexOf(ch1)>=0?"="===ch2?{type:Token.Punctuator,value:ch1+ch2}:{type:Token.Punctuator,value:ch1}:"/"===ch1?"="===ch2?{type:Token.Punctuator,value:"/="}:{type:Token.Punctuator,value:"/"}:null},scanComments:function(){function commentToken(label,body,opt){var special=["jshint","jslint","members","member","globals","global","exported"],isSpecial=!1,value=label+body,commentType="plain";return opt=opt||{},opt.isMultiline&&(value+="*/"),body=body.replace(/\\n/g," "),"/*"===label&®.fallsThrough.test(body)&&(isSpecial=!0,commentType="falls through"),special.forEach(function(str){if(!isSpecial&&("//"!==label||"jshint"===str)&&(" "===body.charAt(str.length)&&body.substr(0,str.length)===str&&(isSpecial=!0,label+=str,body=body.substr(str.length)),isSpecial||" "!==body.charAt(0)||" "!==body.charAt(str.length+1)||body.substr(1,str.length)!==str||(isSpecial=!0,label=label+" "+str,body=body.substr(str.length+1)),isSpecial))switch(str){case"member":commentType="members";break;case"global":commentType="globals";break;default:var options=body.split(":").map(function(v){return v.replace(/^\\s+/,"").replace(/\\s+$/,"")});if(2===options.length)switch(options[0]){case"ignore":switch(options[1]){case"start":self.ignoringLinterErrors=!0,isSpecial=!1;break;case"end":self.ignoringLinterErrors=!1,isSpecial=!1}}commentType=str}}),{type:Token.Comment,commentType:commentType,value:value,body:body,isSpecial:isSpecial,isMultiline:opt.isMultiline||!1,isMalformed:opt.isMalformed||!1}}var ch1=this.peek(),ch2=this.peek(1),rest=this.input.substr(2),startLine=this.line,startChar=this.char,self=this;if("*"===ch1&&"/"===ch2)return this.trigger("error",{code:"E018",line:startLine,character:startChar}),this.skip(2),null;if("/"!==ch1||"*"!==ch2&&"/"!==ch2)return null;if("/"===ch2)return this.skip(this.input.length),commentToken("//",rest);var body="";if("*"===ch2){for(this.inComment=!0,this.skip(2);"*"!==this.peek()||"/"!==this.peek(1);)if(""===this.peek()){if(body+="\\n",!this.nextLine())return this.trigger("error",{code:"E017",line:startLine,character:startChar}),this.inComment=!1,commentToken("/*",body,{isMultiline:!0,isMalformed:!0})}else body+=this.peek(),this.skip();return this.skip(2),this.inComment=!1,commentToken("/*",body,{isMultiline:!0})}},scanKeyword:function(){var result=/^[a-zA-Z_$][a-zA-Z0-9_$]*/.exec(this.input),keywords=["if","in","do","var","for","new","try","let","this","else","case","void","with","enum","while","break","catch","throw","const","yield","class","super","return","typeof","delete","switch","export","import","default","finally","extends","function","continue","debugger","instanceof"];return result&&keywords.indexOf(result[0])>=0?{type:Token.Keyword,value:result[0]}:null},scanIdentifier:function(){function isNonAsciiIdentifierStart(code){return code>256}function isNonAsciiIdentifierPart(code){return code>256}function isHexDigit(str){return/^[0-9a-fA-F]$/.test(str)}function removeEscapeSequences(id){return id.replace(/\\\\u([0-9a-fA-F]{4})/g,function(m0,codepoint){return String.fromCharCode(parseInt(codepoint,16))})}var type,char,id="",index=0,readUnicodeEscapeSequence=function(){if(index+=1,"u"!==this.peek(index))return null;var code,ch1=this.peek(index+1),ch2=this.peek(index+2),ch3=this.peek(index+3),ch4=this.peek(index+4);return isHexDigit(ch1)&&isHexDigit(ch2)&&isHexDigit(ch3)&&isHexDigit(ch4)?(code=parseInt(ch1+ch2+ch3+ch4,16),asciiIdentifierPartTable[code]||isNonAsciiIdentifierPart(code)?(index+=5,"\\\\u"+ch1+ch2+ch3+ch4):null):null}.bind(this),getIdentifierStart=function(){var chr=this.peek(index),code=chr.charCodeAt(0);return 92===code?readUnicodeEscapeSequence():128>code?asciiIdentifierStartTable[code]?(index+=1,chr):null:isNonAsciiIdentifierStart(code)?(index+=1,chr):null}.bind(this),getIdentifierPart=function(){var chr=this.peek(index),code=chr.charCodeAt(0);return 92===code?readUnicodeEscapeSequence():128>code?asciiIdentifierPartTable[code]?(index+=1,chr):null:isNonAsciiIdentifierPart(code)?(index+=1,chr):null}.bind(this);if(char=getIdentifierStart(),null===char)return null;for(id=char;char=getIdentifierPart(),null!==char;)id+=char;switch(id){case"true":case"false":type=Token.BooleanLiteral;break;case"null":type=Token.NullLiteral;break;default:type=Token.Identifier}return{type:type,value:removeEscapeSequences(id),text:id,tokenLength:id.length}},scanNumericLiteral:function(){function isDecimalDigit(str){return/^[0-9]$/.test(str)}function isOctalDigit(str){return/^[0-7]$/.test(str)}function isBinaryDigit(str){return/^[01]$/.test(str)}function isHexDigit(str){return/^[0-9a-fA-F]$/.test(str)}function isIdentifierStart(ch){return"$"===ch||"_"===ch||"\\\\"===ch||ch>="a"&&"z">=ch||ch>="A"&&"Z">=ch}var bad,index=0,value="",length=this.input.length,char=this.peek(index),isAllowedDigit=isDecimalDigit,base=10,isLegacy=!1;if("."!==char&&!isDecimalDigit(char))return null;if("."!==char){for(value=this.peek(index),index+=1,char=this.peek(index),"0"===value&&(("x"===char||"X"===char)&&(isAllowedDigit=isHexDigit,base=16,index+=1,value+=char),("o"===char||"O"===char)&&(isAllowedDigit=isOctalDigit,base=8,state.inES6(!0)||this.trigger("warning",{code:"W119",line:this.line,character:this.char,data:["Octal integer literal","6"]}),index+=1,value+=char),("b"===char||"B"===char)&&(isAllowedDigit=isBinaryDigit,base=2,state.inES6(!0)||this.trigger("warning",{code:"W119",line:this.line,character:this.char,data:["Binary integer literal","6"]}),index+=1,value+=char),isOctalDigit(char)&&(isAllowedDigit=isOctalDigit,base=8,isLegacy=!0,bad=!1,index+=1,value+=char),!isOctalDigit(char)&&isDecimalDigit(char)&&(index+=1,value+=char));length>index;){if(char=this.peek(index),isLegacy&&isDecimalDigit(char))bad=!0;else if(!isAllowedDigit(char))break;value+=char,index+=1}if(isAllowedDigit!==isDecimalDigit)return!isLegacy&&2>=value.length?{type:Token.NumericLiteral,value:value,isMalformed:!0}:length>index&&(char=this.peek(index),isIdentifierStart(char))?null:{type:Token.NumericLiteral,value:value,base:base,isLegacy:isLegacy,isMalformed:!1}}if("."===char)for(value+=char,index+=1;length>index&&(char=this.peek(index),isDecimalDigit(char));)value+=char,index+=1;if("e"===char||"E"===char){if(value+=char,index+=1,char=this.peek(index),("+"===char||"-"===char)&&(value+=this.peek(index),index+=1),char=this.peek(index),!isDecimalDigit(char))return null;for(value+=char,index+=1;length>index&&(char=this.peek(index),isDecimalDigit(char));)value+=char,index+=1}return length>index&&(char=this.peek(index),isIdentifierStart(char))?null:{type:Token.NumericLiteral,value:value,base:base,isMalformed:!isFinite(value)}},scanEscapeSequence:function(checks){var allowNewLine=!1,jump=1;this.skip();var char=this.peek();switch(char){case"'":this.triggerAsync("warning",{code:"W114",line:this.line,character:this.char,data:["\\\\'"]},checks,function(){return state.jsonMode});break;case"b":char="\\\\b";break;case"f":char="\\\\f";break;case"n":char="\\\\n";break;case"r":char="\\\\r";break;case"t":char="\\\\t";break;case"0":char="\\\\0";var n=parseInt(this.peek(1),10);this.triggerAsync("warning",{code:"W115",line:this.line,character:this.char},checks,function(){return n>=0&&7>=n&&state.isStrict()});break;case"u":var hexCode=this.input.substr(1,4),code=parseInt(hexCode,16);isNaN(code)&&this.trigger("warning",{code:"W052",line:this.line,character:this.char,data:["u"+hexCode]}),char=String.fromCharCode(code),jump=5;break;case"v":this.triggerAsync("warning",{code:"W114",line:this.line,character:this.char,data:["\\\\v"]},checks,function(){return state.jsonMode}),char="\v";break;case"x":var x=parseInt(this.input.substr(1,2),16);this.triggerAsync("warning",{code:"W114",line:this.line,character:this.char,data:["\\\\x-"]},checks,function(){return state.jsonMode}),char=String.fromCharCode(x),jump=3;break;case"\\\\":char="\\\\\\\\";break;case'"':char='\\\\"';break;case"/":break;case"":allowNewLine=!0,char=""}return{"char":char,jump:jump,allowNewLine:allowNewLine}},scanTemplateLiteral:function(checks){var tokenType,ch,value="",startLine=this.line,startChar=this.char,depth=this.templateStarts.length;if(!state.inES6(!0))return null;if("\`"===this.peek())tokenType=Token.TemplateHead,this.templateStarts.push({line:this.line,"char":this.char}),depth=this.templateStarts.length,this.skip(1),this.pushContext(Context.Template);else{if(!this.inContext(Context.Template)||"}"!==this.peek())return null;tokenType=Token.TemplateMiddle}for(;"\`"!==this.peek();){for(;""===(ch=this.peek());)if(value+="\\n",!this.nextLine()){var startPos=this.templateStarts.pop();return this.trigger("error",{code:"E052",line:startPos.line,character:startPos.char}),{type:tokenType,value:value,startLine:startLine,startChar:startChar,isUnclosed:!0,depth:depth,context:this.popContext()}}if("$"===ch&&"{"===this.peek(1))return value+="\${",this.skip(2),{type:tokenType,value:value,startLine:startLine,startChar:startChar,isUnclosed:!1,depth:depth,context:this.currentContext()}; if("\\\\"===ch){var escape=this.scanEscapeSequence(checks);value+=escape.char,this.skip(escape.jump)}else"\`"!==ch&&(value+=ch,this.skip(1))}return tokenType=tokenType===Token.TemplateHead?Token.NoSubstTemplate:Token.TemplateTail,this.skip(1),this.templateStarts.pop(),{type:tokenType,value:value,startLine:startLine,startChar:startChar,isUnclosed:!1,depth:depth,context:this.popContext()}},scanStringLiteral:function(checks){var quote=this.peek();if('"'!==quote&&"'"!==quote)return null;this.triggerAsync("warning",{code:"W108",line:this.line,character:this.char},checks,function(){return state.jsonMode&&'"'!==quote});var value="",startLine=this.line,startChar=this.char,allowNewLine=!1;for(this.skip();this.peek()!==quote;)if(""===this.peek()){if(allowNewLine?(allowNewLine=!1,this.triggerAsync("warning",{code:"W043",line:this.line,character:this.char},checks,function(){return!state.option.multistr}),this.triggerAsync("warning",{code:"W042",line:this.line,character:this.char},checks,function(){return state.jsonMode&&state.option.multistr})):this.trigger("warning",{code:"W112",line:this.line,character:this.char}),!this.nextLine())return this.trigger("error",{code:"E029",line:startLine,character:startChar}),{type:Token.StringLiteral,value:value,startLine:startLine,startChar:startChar,isUnclosed:!0,quote:quote}}else{allowNewLine=!1;var char=this.peek(),jump=1;if(" ">char&&this.trigger("warning",{code:"W113",line:this.line,character:this.char,data:[""]}),"\\\\"===char){var parsed=this.scanEscapeSequence(checks);char=parsed.char,jump=parsed.jump,allowNewLine=parsed.allowNewLine}value+=char,this.skip(jump)}return this.skip(),{type:Token.StringLiteral,value:value,startLine:startLine,startChar:startChar,isUnclosed:!1,quote:quote}},scanRegExp:function(){var terminated,index=0,length=this.input.length,char=this.peek(),value=char,body="",flags=[],malformed=!1,isCharSet=!1,scanUnexpectedChars=function(){" ">char&&(malformed=!0,this.trigger("warning",{code:"W048",line:this.line,character:this.char})),"<"===char&&(malformed=!0,this.trigger("warning",{code:"W049",line:this.line,character:this.char,data:[char]}))}.bind(this);if(!this.prereg||"/"!==char)return null;for(index+=1,terminated=!1;length>index;)if(char=this.peek(index),value+=char,body+=char,isCharSet)"]"===char&&("\\\\"!==this.peek(index-1)||"\\\\"===this.peek(index-2))&&(isCharSet=!1),"\\\\"===char&&(index+=1,char=this.peek(index),body+=char,value+=char,scanUnexpectedChars()),index+=1;else{if("\\\\"===char){if(index+=1,char=this.peek(index),body+=char,value+=char,scanUnexpectedChars(),"/"===char){index+=1;continue}if("["===char){index+=1;continue}}if("["!==char){if("/"===char){body=body.substr(0,body.length-1),terminated=!0,index+=1;break}index+=1}else isCharSet=!0,index+=1}if(!terminated)return this.trigger("error",{code:"E015",line:this.line,character:this.from}),void this.trigger("fatal",{line:this.line,from:this.from});for(;length>index&&(char=this.peek(index),/[gim]/.test(char));)flags.push(char),value+=char,index+=1;try{RegExp(body,flags.join(""))}catch(err){malformed=!0,this.trigger("error",{code:"E016",line:this.line,character:this.char,data:[err.message]})}return{type:Token.RegExp,value:value,flags:flags,isMalformed:malformed}},scanNonBreakingSpaces:function(){return state.option.nonbsp?this.input.search(/(\\u00A0)/):-1},scanUnsafeChars:function(){return this.input.search(reg.unsafeChars)},next:function(checks){this.from=this.char;var start;if(/\\s/.test(this.peek()))for(start=this.char;/\\s/.test(this.peek());)this.from+=1,this.skip();var match=this.scanComments()||this.scanStringLiteral(checks)||this.scanTemplateLiteral(checks);return match?match:(match=this.scanRegExp()||this.scanPunctuator()||this.scanKeyword()||this.scanIdentifier()||this.scanNumericLiteral(),match?(this.skip(match.tokenLength||match.value.length),match):null)},nextLine:function(){var char;if(this.line>=this.getLines().length)return!1;this.input=this.getLines()[this.line],this.line+=1,this.char=1,this.from=1;var inputTrimmed=this.input.trim(),startsWith=function(){return _.some(arguments,function(prefix){return 0===inputTrimmed.indexOf(prefix)})},endsWith=function(){return _.some(arguments,function(suffix){return-1!==inputTrimmed.indexOf(suffix,inputTrimmed.length-suffix.length)})};if(this.ignoringLinterErrors===!0&&(startsWith("/*","//")||this.inComment&&endsWith("*/")||(this.input="")),char=this.scanNonBreakingSpaces(),char>=0&&this.trigger("warning",{code:"W125",line:this.line,character:char+1}),this.input=this.input.replace(/\\t/g,state.tab),char=this.scanUnsafeChars(),char>=0&&this.trigger("warning",{code:"W100",line:this.line,character:char}),!this.ignoringLinterErrors&&state.option.maxlen&&state.option.maxlen=0;--i){var scopeLabels=_scopeStack[i]["(labels)"];if(scopeLabels[labelName])return scopeLabels}}function usedSoFarInCurrentFunction(labelName){for(var i=_scopeStack.length-1;i>=0;i--){var current=_scopeStack[i];if(current["(usages)"][labelName])return current["(usages)"][labelName];if(current===_currentFunctBody)break}return!1}function _checkOuterShadow(labelName,token){if("outer"===state.option.shadow)for(var isGlobal="global"===_currentFunctBody["(type)"],isNewFunction="functionparams"===_current["(type)"],outsideCurrentFunction=!isGlobal,i=0;_scopeStack.length>i;i++){var stackItem=_scopeStack[i];isNewFunction||_scopeStack[i+1]!==_currentFunctBody||(outsideCurrentFunction=!1),outsideCurrentFunction&&stackItem["(labels)"][labelName]&&warning("W123",token,labelName),stackItem["(breakLabels)"][labelName]&&warning("W123",token,labelName)}}function _latedefWarning(type,labelName,token){state.option.latedef&&(state.option.latedef===!0&&"function"===type||"function"!==type)&&warning("W003",token,labelName)}var _current,_scopeStack=[];_newScope("global"),_current["(predefined)"]=predefined;var _currentFunctBody=_current,usedPredefinedAndGlobals=Object.create(null),impliedGlobals=Object.create(null),unuseds=[],emitter=new events.EventEmitter,_getUnusedOption=function(unused_opt){return void 0===unused_opt&&(unused_opt=state.option.unused),unused_opt===!0&&(unused_opt="last-param"),unused_opt},_warnUnused=function(name,tkn,type,unused_opt){var line=tkn.line,chr=tkn.from,raw_name=tkn.raw_text||name;unused_opt=_getUnusedOption(unused_opt);var warnable_types={vars:["var"],"last-param":["var","param"],strict:["var","param","last-param"]};unused_opt&&warnable_types[unused_opt]&&-1!==warnable_types[unused_opt].indexOf(type)&&warning("W098",{line:line,from:chr},raw_name),(unused_opt||"var"===type)&&unuseds.push({name:name,line:line,character:chr})},scopeManagerInst={on:function(names,listener){names.split(" ").forEach(function(name){emitter.on(name,listener)})},isPredefined:function(labelName){return!this.has(labelName)&&_.has(_scopeStack[0]["(predefined)"],labelName)},stack:function(type){var previousScope=_current;_newScope(type),type||"functionparams"!==previousScope["(type)"]||(_current["(isFuncBody)"]=!0,_current["(context)"]=_currentFunctBody,_currentFunctBody=_current)},unstack:function(){var i,j,subScope=_scopeStack.length>1?_scopeStack[_scopeStack.length-2]:null,isUnstackingFunctionBody=_current===_currentFunctBody,isUnstackingFunctionParams="functionparams"===_current["(type)"],isUnstackingFunctionOuter="functionouter"===_current["(type)"],currentUsages=_current["(usages)"],currentLabels=_current["(labels)"],usedLabelNameList=Object.keys(currentUsages);for(currentUsages.__proto__&&-1===usedLabelNameList.indexOf("__proto__")&&usedLabelNameList.push("__proto__"),i=0;usedLabelNameList.length>i;i++){var usedLabelName=usedLabelNameList[i],usage=currentUsages[usedLabelName],usedLabel=currentLabels[usedLabelName];if(usedLabel){var usedLabelType=usedLabel["(type)"];if(usedLabel["(useOutsideOfScope)"]&&!state.option.funcscope){var usedTokens=usage["(tokens)"];if(usedTokens)for(j=0;usedTokens.length>j;j++)usedLabel["(function)"]===usedTokens[j]["(function)"]&&error("W038",usedTokens[j],usedLabelName)}if(_current["(labels)"][usedLabelName]["(unused)"]=!1,"const"===usedLabelType&&usage["(modified)"])for(j=0;usage["(modified)"].length>j;j++)error("E013",usage["(modified)"][j],usedLabelName);if(("function"===usedLabelType||"class"===usedLabelType)&&usage["(reassigned)"])for(j=0;usage["(reassigned)"].length>j;j++)error("W021",usage["(reassigned)"][j],usedLabelName,usedLabelType)}else if(isUnstackingFunctionOuter&&(state.funct["(isCapturing)"]=!0),subScope)if(subScope["(usages)"][usedLabelName]){var subScopeUsage=subScope["(usages)"][usedLabelName];subScopeUsage["(modified)"]=subScopeUsage["(modified)"].concat(usage["(modified)"]),subScopeUsage["(tokens)"]=subScopeUsage["(tokens)"].concat(usage["(tokens)"]),subScopeUsage["(reassigned)"]=subScopeUsage["(reassigned)"].concat(usage["(reassigned)"]),subScopeUsage["(onlyUsedSubFunction)"]=!1}else subScope["(usages)"][usedLabelName]=usage,isUnstackingFunctionBody&&(subScope["(usages)"][usedLabelName]["(onlyUsedSubFunction)"]=!0);else if("boolean"==typeof _current["(predefined)"][usedLabelName]){if(delete declared[usedLabelName],usedPredefinedAndGlobals[usedLabelName]=marker,_current["(predefined)"][usedLabelName]===!1&&usage["(reassigned)"])for(j=0;usage["(reassigned)"].length>j;j++)warning("W020",usage["(reassigned)"][j])}else if(usage["(tokens)"])for(j=0;usage["(tokens)"].length>j;j++){var undefinedToken=usage["(tokens)"][j];undefinedToken.forgiveUndef||(state.option.undef&&!undefinedToken.ignoreUndef&&warning("W117",undefinedToken,usedLabelName),impliedGlobals[usedLabelName]?impliedGlobals[usedLabelName].line.push(undefinedToken.line):impliedGlobals[usedLabelName]={name:usedLabelName,line:[undefinedToken.line]})}}if(subScope||Object.keys(declared).forEach(function(labelNotUsed){_warnUnused(labelNotUsed,declared[labelNotUsed],"var")}),subScope&&!isUnstackingFunctionBody&&!isUnstackingFunctionParams&&!isUnstackingFunctionOuter){var labelNames=Object.keys(currentLabels);for(i=0;labelNames.length>i;i++){var defLabelName=labelNames[i];currentLabels[defLabelName]["(blockscoped)"]||"exception"===currentLabels[defLabelName]["(type)"]||this.funct.has(defLabelName,{excludeCurrent:!0})||(subScope["(labels)"][defLabelName]=currentLabels[defLabelName],"global"!==_currentFunctBody["(type)"]&&(subScope["(labels)"][defLabelName]["(useOutsideOfScope)"]=!0),delete currentLabels[defLabelName])}}_checkForUnused(),_scopeStack.pop(),isUnstackingFunctionBody&&(_currentFunctBody=_scopeStack[_.findLastIndex(_scopeStack,function(scope){return scope["(isFuncBody)"]||"global"===scope["(type)"]})]),_current=subScope},addParam:function(labelName,token,type){if(type=type||"param","exception"===type){var previouslyDefinedLabelType=this.funct.labeltype(labelName);previouslyDefinedLabelType&&"exception"!==previouslyDefinedLabelType&&(state.option.node||warning("W002",state.tokens.next,labelName))}if(_.has(_current["(labels)"],labelName)?_current["(labels)"][labelName].duplicated=!0:(_checkOuterShadow(labelName,token,type),_current["(labels)"][labelName]={"(type)":type,"(token)":token,"(unused)":!0},_current["(params)"].push(labelName)),_.has(_current["(usages)"],labelName)){var usage=_current["(usages)"][labelName];usage["(onlyUsedSubFunction)"]?_latedefWarning(type,labelName,token):warning("E056",token,labelName,type)}},validateParams:function(){if("global"!==_currentFunctBody["(type)"]){var isStrict=state.isStrict(),currentFunctParamScope=_currentFunctBody["(parent)"];currentFunctParamScope["(params)"]&¤tFunctParamScope["(params)"].forEach(function(labelName){var label=currentFunctParamScope["(labels)"][labelName];label&&label.duplicated&&(isStrict?warning("E011",label["(token)"],labelName):state.option.shadow!==!0&&warning("W004",label["(token)"],labelName))})}},getUsedOrDefinedGlobals:function(){var list=Object.keys(usedPredefinedAndGlobals);return usedPredefinedAndGlobals.__proto__===marker&&-1===list.indexOf("__proto__")&&list.push("__proto__"),list},getImpliedGlobals:function(){var values=_.values(impliedGlobals),hasProto=!1;return impliedGlobals.__proto__&&(hasProto=values.some(function(value){return"__proto__"===value.name}),hasProto||values.push(impliedGlobals.__proto__)),values},getUnuseds:function(){return unuseds},has:function(labelName){return Boolean(_getLabel(labelName))},labeltype:function(labelName){var scopeLabels=_getLabel(labelName);return scopeLabels?scopeLabels[labelName]["(type)"]:null},addExported:function(labelName){var globalLabels=_scopeStack[0]["(labels)"];if(_.has(declared,labelName))delete declared[labelName];else if(_.has(globalLabels,labelName))globalLabels[labelName]["(unused)"]=!1;else{for(var i=1;_scopeStack.length>i;i++){var scope=_scopeStack[i];if(scope["(type)"])break;if(_.has(scope["(labels)"],labelName)&&!scope["(labels)"][labelName]["(blockscoped)"])return scope["(labels)"][labelName]["(unused)"]=!1,void 0}exported[labelName]=!0}},setExported:function(labelName,token){this.block.use(labelName,token) },addlabel:function(labelName,opts){var type=opts.type,token=opts.token,isblockscoped="let"===type||"const"===type||"class"===type,isexported="global"===(isblockscoped?_current:_currentFunctBody)["(type)"]&&_.has(exported,labelName);if(_checkOuterShadow(labelName,token,type),isblockscoped){var declaredInCurrentScope=_current["(labels)"][labelName];if(declaredInCurrentScope||_current!==_currentFunctBody||"global"===_current["(type)"]||(declaredInCurrentScope=!!_currentFunctBody["(parent)"]["(labels)"][labelName]),!declaredInCurrentScope&&_current["(usages)"][labelName]){var usage=_current["(usages)"][labelName];usage["(onlyUsedSubFunction)"]?_latedefWarning(type,labelName,token):warning("E056",token,labelName,type)}declaredInCurrentScope?warning("E011",token,labelName):"outer"===state.option.shadow&&scopeManagerInst.funct.has(labelName)&&warning("W004",token,labelName),scopeManagerInst.block.add(labelName,type,token,!isexported)}else{var declaredInCurrentFunctionScope=scopeManagerInst.funct.has(labelName);!declaredInCurrentFunctionScope&&usedSoFarInCurrentFunction(labelName)&&_latedefWarning(type,labelName,token),scopeManagerInst.funct.has(labelName,{onlyBlockscoped:!0})?warning("E011",token,labelName):state.option.shadow!==!0&&declaredInCurrentFunctionScope&&"__proto__"!==labelName&&"global"!==_currentFunctBody["(type)"]&&warning("W004",token,labelName),scopeManagerInst.funct.add(labelName,type,token,!isexported),"global"===_currentFunctBody["(type)"]&&(usedPredefinedAndGlobals[labelName]=marker)}},funct:{labeltype:function(labelName,options){for(var onlyBlockscoped=options&&options.onlyBlockscoped,excludeParams=options&&options.excludeParams,currentScopeIndex=_scopeStack.length-(options&&options.excludeCurrent?2:1),i=currentScopeIndex;i>=0;i--){var current=_scopeStack[i];if(current["(labels)"][labelName]&&(!onlyBlockscoped||current["(labels)"][labelName]["(blockscoped)"]))return current["(labels)"][labelName]["(type)"];var scopeCheck=excludeParams?_scopeStack[i-1]:current;if(scopeCheck&&"functionparams"===scopeCheck["(type)"])return null}return null},hasBreakLabel:function(labelName){for(var i=_scopeStack.length-1;i>=0;i--){var current=_scopeStack[i];if(current["(breakLabels)"][labelName])return!0;if("functionparams"===current["(type)"])return!1}return!1},has:function(labelName,options){return Boolean(this.labeltype(labelName,options))},add:function(labelName,type,tok,unused){_current["(labels)"][labelName]={"(type)":type,"(token)":tok,"(blockscoped)":!1,"(function)":_currentFunctBody,"(unused)":unused}}},block:{isGlobal:function(){return"global"===_current["(type)"]},use:function(labelName,token){var paramScope=_currentFunctBody["(parent)"];paramScope&¶mScope["(labels)"][labelName]&&"param"===paramScope["(labels)"][labelName]["(type)"]&&(scopeManagerInst.funct.has(labelName,{excludeParams:!0,onlyBlockscoped:!0})||(paramScope["(labels)"][labelName]["(unused)"]=!1)),token&&(state.ignored.W117||state.option.undef===!1)&&(token.ignoreUndef=!0),_setupUsages(labelName),token&&(token["(function)"]=_currentFunctBody,_current["(usages)"][labelName]["(tokens)"].push(token))},reassign:function(labelName,token){this.modify(labelName,token),_current["(usages)"][labelName]["(reassigned)"].push(token)},modify:function(labelName,token){_setupUsages(labelName),_current["(usages)"][labelName]["(modified)"].push(token)},add:function(labelName,type,tok,unused){_current["(labels)"][labelName]={"(type)":type,"(token)":tok,"(blockscoped)":!0,"(unused)":unused}},addBreakLabel:function(labelName,opts){var token=opts.token;scopeManagerInst.funct.hasBreakLabel(labelName)?warning("E011",token,labelName):"outer"===state.option.shadow&&(scopeManagerInst.funct.has(labelName)?warning("W004",token,labelName):_checkOuterShadow(labelName,token)),_current["(breakLabels)"][labelName]=token}}};return scopeManagerInst};module.exports=scopeManager},{"../lodash":"/node_modules/jshint/lodash.js",events:"/node_modules/browserify/node_modules/events/events.js"}],"/node_modules/jshint/src/state.js":[function(_dereq_,module,exports){"use strict";var NameStack=_dereq_("./name-stack.js"),state={syntax:{},isStrict:function(){return this.directive["use strict"]||this.inClassBody||this.option.module||"implied"===this.option.strict},inMoz:function(){return this.option.moz},inES6:function(){return this.option.moz||this.option.esversion>=6},inES5:function(strict){return strict?!(this.option.esversion&&5!==this.option.esversion||this.option.moz):!this.option.esversion||this.option.esversion>=5||this.option.moz},reset:function(){this.tokens={prev:null,next:null,curr:null},this.option={},this.funct=null,this.ignored={},this.directive={},this.jsonMode=!1,this.jsonWarnings=[],this.lines=[],this.tab="",this.cache={},this.ignoredLines={},this.forinifcheckneeded=!1,this.nameStack=new NameStack,this.inClassBody=!1}};exports.state=state},{"./name-stack.js":"/node_modules/jshint/src/name-stack.js"}],"/node_modules/jshint/src/style.js":[function(_dereq_,module,exports){"use strict";exports.register=function(linter){linter.on("Identifier",function(data){linter.getOption("proto")||"__proto__"===data.name&&linter.warn("W103",{line:data.line,"char":data.char,data:[data.name,"6"]})}),linter.on("Identifier",function(data){linter.getOption("iterator")||"__iterator__"===data.name&&linter.warn("W103",{line:data.line,"char":data.char,data:[data.name]})}),linter.on("Identifier",function(data){linter.getOption("camelcase")&&data.name.replace(/^_+|_+$/g,"").indexOf("_")>-1&&!data.name.match(/^[A-Z0-9_]*$/)&&linter.warn("W106",{line:data.line,"char":data.from,data:[data.name]})}),linter.on("String",function(data){var code,quotmark=linter.getOption("quotmark");quotmark&&("single"===quotmark&&"'"!==data.quote&&(code="W109"),"double"===quotmark&&'"'!==data.quote&&(code="W108"),quotmark===!0&&(linter.getCache("quotmark")||linter.setCache("quotmark",data.quote),linter.getCache("quotmark")!==data.quote&&(code="W110")),code&&linter.warn(code,{line:data.line,"char":data.char}))}),linter.on("Number",function(data){"."===data.value.charAt(0)&&linter.warn("W008",{line:data.line,"char":data.char,data:[data.value]}),"."===data.value.substr(data.value.length-1)&&linter.warn("W047",{line:data.line,"char":data.char,data:[data.value]}),/^00+/.test(data.value)&&linter.warn("W046",{line:data.line,"char":data.char,data:[data.value]})}),linter.on("String",function(data){var re=/^(?:javascript|jscript|ecmascript|vbscript|livescript)\\s*:/i;linter.getOption("scripturl")||re.test(data.value)&&linter.warn("W107",{line:data.line,"char":data.char})})}},{}],"/node_modules/jshint/src/vars.js":[function(_dereq_,module,exports){"use strict";exports.reservedVars={arguments:!1,NaN:!1},exports.ecmaIdentifiers={3:{Array:!1,Boolean:!1,Date:!1,decodeURI:!1,decodeURIComponent:!1,encodeURI:!1,encodeURIComponent:!1,Error:!1,eval:!1,EvalError:!1,Function:!1,hasOwnProperty:!1,isFinite:!1,isNaN:!1,Math:!1,Number:!1,Object:!1,parseInt:!1,parseFloat:!1,RangeError:!1,ReferenceError:!1,RegExp:!1,String:!1,SyntaxError:!1,TypeError:!1,URIError:!1},5:{JSON:!1},6:{Map:!1,Promise:!1,Proxy:!1,Reflect:!1,Set:!1,Symbol:!1,WeakMap:!1,WeakSet:!1}},exports.browser={Audio:!1,Blob:!1,addEventListener:!1,applicationCache:!1,atob:!1,blur:!1,btoa:!1,cancelAnimationFrame:!1,CanvasGradient:!1,CanvasPattern:!1,CanvasRenderingContext2D:!1,CSS:!1,clearInterval:!1,clearTimeout:!1,close:!1,closed:!1,Comment:!1,CustomEvent:!1,DOMParser:!1,defaultStatus:!1,Document:!1,document:!1,DocumentFragment:!1,Element:!1,ElementTimeControl:!1,Event:!1,event:!1,fetch:!1,FileReader:!1,FormData:!1,focus:!1,frames:!1,getComputedStyle:!1,HTMLElement:!1,HTMLAnchorElement:!1,HTMLBaseElement:!1,HTMLBlockquoteElement:!1,HTMLBodyElement:!1,HTMLBRElement:!1,HTMLButtonElement:!1,HTMLCanvasElement:!1,HTMLCollection:!1,HTMLDirectoryElement:!1,HTMLDivElement:!1,HTMLDListElement:!1,HTMLFieldSetElement:!1,HTMLFontElement:!1,HTMLFormElement:!1,HTMLFrameElement:!1,HTMLFrameSetElement:!1,HTMLHeadElement:!1,HTMLHeadingElement:!1,HTMLHRElement:!1,HTMLHtmlElement:!1,HTMLIFrameElement:!1,HTMLImageElement:!1,HTMLInputElement:!1,HTMLIsIndexElement:!1,HTMLLabelElement:!1,HTMLLayerElement:!1,HTMLLegendElement:!1,HTMLLIElement:!1,HTMLLinkElement:!1,HTMLMapElement:!1,HTMLMenuElement:!1,HTMLMetaElement:!1,HTMLModElement:!1,HTMLObjectElement:!1,HTMLOListElement:!1,HTMLOptGroupElement:!1,HTMLOptionElement:!1,HTMLParagraphElement:!1,HTMLParamElement:!1,HTMLPreElement:!1,HTMLQuoteElement:!1,HTMLScriptElement:!1,HTMLSelectElement:!1,HTMLStyleElement:!1,HTMLTableCaptionElement:!1,HTMLTableCellElement:!1,HTMLTableColElement:!1,HTMLTableElement:!1,HTMLTableRowElement:!1,HTMLTableSectionElement:!1,HTMLTemplateElement:!1,HTMLTextAreaElement:!1,HTMLTitleElement:!1,HTMLUListElement:!1,HTMLVideoElement:!1,history:!1,Image:!1,Intl:!1,length:!1,localStorage:!1,location:!1,matchMedia:!1,MessageChannel:!1,MessageEvent:!1,MessagePort:!1,MouseEvent:!1,moveBy:!1,moveTo:!1,MutationObserver:!1,name:!1,Node:!1,NodeFilter:!1,NodeList:!1,Notification:!1,navigator:!1,onbeforeunload:!0,onblur:!0,onerror:!0,onfocus:!0,onload:!0,onresize:!0,onunload:!0,open:!1,openDatabase:!1,opener:!1,Option:!1,parent:!1,performance:!1,print:!1,Range:!1,requestAnimationFrame:!1,removeEventListener:!1,resizeBy:!1,resizeTo:!1,screen:!1,scroll:!1,scrollBy:!1,scrollTo:!1,sessionStorage:!1,setInterval:!1,setTimeout:!1,SharedWorker:!1,status:!1,SVGAElement:!1,SVGAltGlyphDefElement:!1,SVGAltGlyphElement:!1,SVGAltGlyphItemElement:!1,SVGAngle:!1,SVGAnimateColorElement:!1,SVGAnimateElement:!1,SVGAnimateMotionElement:!1,SVGAnimateTransformElement:!1,SVGAnimatedAngle:!1,SVGAnimatedBoolean:!1,SVGAnimatedEnumeration:!1,SVGAnimatedInteger:!1,SVGAnimatedLength:!1,SVGAnimatedLengthList:!1,SVGAnimatedNumber:!1,SVGAnimatedNumberList:!1,SVGAnimatedPathData:!1,SVGAnimatedPoints:!1,SVGAnimatedPreserveAspectRatio:!1,SVGAnimatedRect:!1,SVGAnimatedString:!1,SVGAnimatedTransformList:!1,SVGAnimationElement:!1,SVGCSSRule:!1,SVGCircleElement:!1,SVGClipPathElement:!1,SVGColor:!1,SVGColorProfileElement:!1,SVGColorProfileRule:!1,SVGComponentTransferFunctionElement:!1,SVGCursorElement:!1,SVGDefsElement:!1,SVGDescElement:!1,SVGDocument:!1,SVGElement:!1,SVGElementInstance:!1,SVGElementInstanceList:!1,SVGEllipseElement:!1,SVGExternalResourcesRequired:!1,SVGFEBlendElement:!1,SVGFEColorMatrixElement:!1,SVGFEComponentTransferElement:!1,SVGFECompositeElement:!1,SVGFEConvolveMatrixElement:!1,SVGFEDiffuseLightingElement:!1,SVGFEDisplacementMapElement:!1,SVGFEDistantLightElement:!1,SVGFEFloodElement:!1,SVGFEFuncAElement:!1,SVGFEFuncBElement:!1,SVGFEFuncGElement:!1,SVGFEFuncRElement:!1,SVGFEGaussianBlurElement:!1,SVGFEImageElement:!1,SVGFEMergeElement:!1,SVGFEMergeNodeElement:!1,SVGFEMorphologyElement:!1,SVGFEOffsetElement:!1,SVGFEPointLightElement:!1,SVGFESpecularLightingElement:!1,SVGFESpotLightElement:!1,SVGFETileElement:!1,SVGFETurbulenceElement:!1,SVGFilterElement:!1,SVGFilterPrimitiveStandardAttributes:!1,SVGFitToViewBox:!1,SVGFontElement:!1,SVGFontFaceElement:!1,SVGFontFaceFormatElement:!1,SVGFontFaceNameElement:!1,SVGFontFaceSrcElement:!1,SVGFontFaceUriElement:!1,SVGForeignObjectElement:!1,SVGGElement:!1,SVGGlyphElement:!1,SVGGlyphRefElement:!1,SVGGradientElement:!1,SVGHKernElement:!1,SVGICCColor:!1,SVGImageElement:!1,SVGLangSpace:!1,SVGLength:!1,SVGLengthList:!1,SVGLineElement:!1,SVGLinearGradientElement:!1,SVGLocatable:!1,SVGMPathElement:!1,SVGMarkerElement:!1,SVGMaskElement:!1,SVGMatrix:!1,SVGMetadataElement:!1,SVGMissingGlyphElement:!1,SVGNumber:!1,SVGNumberList:!1,SVGPaint:!1,SVGPathElement:!1,SVGPathSeg:!1,SVGPathSegArcAbs:!1,SVGPathSegArcRel:!1,SVGPathSegClosePath:!1,SVGPathSegCurvetoCubicAbs:!1,SVGPathSegCurvetoCubicRel:!1,SVGPathSegCurvetoCubicSmoothAbs:!1,SVGPathSegCurvetoCubicSmoothRel:!1,SVGPathSegCurvetoQuadraticAbs:!1,SVGPathSegCurvetoQuadraticRel:!1,SVGPathSegCurvetoQuadraticSmoothAbs:!1,SVGPathSegCurvetoQuadraticSmoothRel:!1,SVGPathSegLinetoAbs:!1,SVGPathSegLinetoHorizontalAbs:!1,SVGPathSegLinetoHorizontalRel:!1,SVGPathSegLinetoRel:!1,SVGPathSegLinetoVerticalAbs:!1,SVGPathSegLinetoVerticalRel:!1,SVGPathSegList:!1,SVGPathSegMovetoAbs:!1,SVGPathSegMovetoRel:!1,SVGPatternElement:!1,SVGPoint:!1,SVGPointList:!1,SVGPolygonElement:!1,SVGPolylineElement:!1,SVGPreserveAspectRatio:!1,SVGRadialGradientElement:!1,SVGRect:!1,SVGRectElement:!1,SVGRenderingIntent:!1,SVGSVGElement:!1,SVGScriptElement:!1,SVGSetElement:!1,SVGStopElement:!1,SVGStringList:!1,SVGStylable:!1,SVGStyleElement:!1,SVGSwitchElement:!1,SVGSymbolElement:!1,SVGTRefElement:!1,SVGTSpanElement:!1,SVGTests:!1,SVGTextContentElement:!1,SVGTextElement:!1,SVGTextPathElement:!1,SVGTextPositioningElement:!1,SVGTitleElement:!1,SVGTransform:!1,SVGTransformList:!1,SVGTransformable:!1,SVGURIReference:!1,SVGUnitTypes:!1,SVGUseElement:!1,SVGVKernElement:!1,SVGViewElement:!1,SVGViewSpec:!1,SVGZoomAndPan:!1,Text:!1,TextDecoder:!1,TextEncoder:!1,TimeEvent:!1,top:!1,URL:!1,WebGLActiveInfo:!1,WebGLBuffer:!1,WebGLContextEvent:!1,WebGLFramebuffer:!1,WebGLProgram:!1,WebGLRenderbuffer:!1,WebGLRenderingContext:!1,WebGLShader:!1,WebGLShaderPrecisionFormat:!1,WebGLTexture:!1,WebGLUniformLocation:!1,WebSocket:!1,window:!1,Window:!1,Worker:!1,XDomainRequest:!1,XMLHttpRequest:!1,XMLSerializer:!1,XPathEvaluator:!1,XPathException:!1,XPathExpression:!1,XPathNamespace:!1,XPathNSResolver:!1,XPathResult:!1},exports.devel={alert:!1,confirm:!1,console:!1,Debug:!1,opera:!1,prompt:!1},exports.worker={importScripts:!0,postMessage:!0,self:!0,FileReaderSync:!0},exports.nonstandard={escape:!1,unescape:!1},exports.couch={require:!1,respond:!1,getRow:!1,emit:!1,send:!1,start:!1,sum:!1,log:!1,exports:!1,module:!1,provides:!1},exports.node={__filename:!1,__dirname:!1,GLOBAL:!1,global:!1,module:!1,acequire:!1,Buffer:!0,console:!0,exports:!0,process:!0,setTimeout:!0,clearTimeout:!0,setInterval:!0,clearInterval:!0,setImmediate:!0,clearImmediate:!0},exports.browserify={__filename:!1,__dirname:!1,global:!1,module:!1,acequire:!1,Buffer:!0,exports:!0,process:!0},exports.phantom={phantom:!0,acequire:!0,WebPage:!0,console:!0,exports:!0},exports.qunit={asyncTest:!1,deepEqual:!1,equal:!1,expect:!1,module:!1,notDeepEqual:!1,notEqual:!1,notPropEqual:!1,notStrictEqual:!1,ok:!1,propEqual:!1,QUnit:!1,raises:!1,start:!1,stop:!1,strictEqual:!1,test:!1,"throws":!1},exports.rhino={defineClass:!1,deserialize:!1,gc:!1,help:!1,importClass:!1,importPackage:!1,java:!1,load:!1,loadClass:!1,Packages:!1,print:!1,quit:!1,readFile:!1,readUrl:!1,runCommand:!1,seal:!1,serialize:!1,spawn:!1,sync:!1,toint32:!1,version:!1},exports.shelljs={target:!1,echo:!1,exit:!1,cd:!1,pwd:!1,ls:!1,find:!1,cp:!1,rm:!1,mv:!1,mkdir:!1,test:!1,cat:!1,sed:!1,grep:!1,which:!1,dirs:!1,pushd:!1,popd:!1,env:!1,exec:!1,chmod:!1,config:!1,error:!1,tempdir:!1},exports.typed={ArrayBuffer:!1,ArrayBufferView:!1,DataView:!1,Float32Array:!1,Float64Array:!1,Int16Array:!1,Int32Array:!1,Int8Array:!1,Uint16Array:!1,Uint32Array:!1,Uint8Array:!1,Uint8ClampedArray:!1},exports.wsh={ActiveXObject:!0,Enumerator:!0,GetObject:!0,ScriptEngine:!0,ScriptEngineBuildVersion:!0,ScriptEngineMajorVersion:!0,ScriptEngineMinorVersion:!0,VBArray:!0,WSH:!0,WScript:!0,XDomainRequest:!0},exports.dojo={dojo:!1,dijit:!1,dojox:!1,define:!1,require:!1},exports.jquery={$:!1,jQuery:!1},exports.mootools={$:!1,$$:!1,Asset:!1,Browser:!1,Chain:!1,Class:!1,Color:!1,Cookie:!1,Core:!1,Document:!1,DomReady:!1,DOMEvent:!1,DOMReady:!1,Drag:!1,Element:!1,Elements:!1,Event:!1,Events:!1,Fx:!1,Group:!1,Hash:!1,HtmlTable:!1,IFrame:!1,IframeShim:!1,InputValidator:!1,instanceOf:!1,Keyboard:!1,Locale:!1,Mask:!1,MooTools:!1,Native:!1,Options:!1,OverText:!1,Request:!1,Scroller:!1,Slick:!1,Slider:!1,Sortables:!1,Spinner:!1,Swiff:!1,Tips:!1,Type:!1,typeOf:!1,URI:!1,Window:!1},exports.prototypejs={$:!1,$$:!1,$A:!1,$F:!1,$H:!1,$R:!1,$break:!1,$continue:!1,$w:!1,Abstract:!1,Ajax:!1,Class:!1,Enumerable:!1,Element:!1,Event:!1,Field:!1,Form:!1,Hash:!1,Insertion:!1,ObjectRange:!1,PeriodicalExecuter:!1,Position:!1,Prototype:!1,Selector:!1,Template:!1,Toggle:!1,Try:!1,Autocompleter:!1,Builder:!1,Control:!1,Draggable:!1,Draggables:!1,Droppables:!1,Effect:!1,Sortable:!1,SortableObserver:!1,Sound:!1,Scriptaculous:!1},exports.yui={YUI:!1,Y:!1,YUI_config:!1},exports.mocha={mocha:!1,describe:!1,xdescribe:!1,it:!1,xit:!1,context:!1,xcontext:!1,before:!1,after:!1,beforeEach:!1,afterEach:!1,suite:!1,test:!1,setup:!1,teardown:!1,suiteSetup:!1,suiteTeardown:!1},exports.jasmine={jasmine:!1,describe:!1,xdescribe:!1,it:!1,xit:!1,beforeEach:!1,afterEach:!1,setFixtures:!1,loadFixtures:!1,spyOn:!1,expect:!1,runs:!1,waitsFor:!1,waits:!1,beforeAll:!1,afterAll:!1,fail:!1,fdescribe:!1,fit:!1,pending:!1}},{}]},{},["/node_modules/jshint/src/jshint.js"])}),ace.define("ace/mode/javascript_worker",["require","exports","module","ace/lib/oop","ace/worker/mirror","ace/mode/javascript/jshint"],function(acequire,exports,module){"use strict";function startRegex(arr){return RegExp("^("+arr.join("|")+")")}var oop=acequire("../lib/oop"),Mirror=acequire("../worker/mirror").Mirror,lint=acequire("./javascript/jshint").JSHINT,disabledWarningsRe=startRegex(["Bad for in variable '(.+)'.",'Missing "use strict"']),errorsRe=startRegex(["Unexpected","Expected ","Confusing (plus|minus)","\\\\{a\\\\} unterminated regular expression","Unclosed ","Unmatched ","Unbegun comment","Bad invocation","Missing space after","Missing operator at"]),infoRe=startRegex(["Expected an assignment","Bad escapement of EOL","Unexpected comma","Unexpected space","Missing radix parameter.","A leading decimal point can","\\\\['{a}'\\\\] is better written in dot notation.","'{a}' used out of scope"]),JavaScriptWorker=exports.JavaScriptWorker=function(sender){Mirror.call(this,sender),this.setTimeout(500),this.setOptions()};oop.inherits(JavaScriptWorker,Mirror),function(){this.setOptions=function(options){this.options=options||{esnext:!0,moz:!0,devel:!0,browser:!0,node:!0,laxcomma:!0,laxbreak:!0,lastsemic:!0,onevar:!1,passfail:!1,maxerr:100,expr:!0,multistr:!0,globalstrict:!0},this.doc.getValue()&&this.deferredUpdate.schedule(100)},this.changeOptions=function(newOptions){oop.mixin(this.options,newOptions),this.doc.getValue()&&this.deferredUpdate.schedule(100)},this.isValidJS=function(str){try{eval("throw 0;"+str)}catch(e){if(0===e)return!0}return!1},this.onUpdate=function(){var value=this.doc.getValue();if(value=value.replace(/^#!.*\\n/,"\\n"),!value)return this.sender.emit("annotate",[]);var errors=[],maxErrorLevel=this.isValidJS(value)?"warning":"error";lint(value,this.options,this.options.globals);for(var results=lint.errors,errorAdded=!1,i=0;results.length>i;i++){var error=results[i];if(error){var raw=error.raw,type="warning";if("Missing semicolon."==raw){var str=error.evidence.substr(error.character);str=str.charAt(str.search(/\\S/)),"error"==maxErrorLevel&&str&&/[\\w\\d{(['"]/.test(str)?(error.reason='Missing ";" before statement',type="error"):type="info"}else{if(disabledWarningsRe.test(raw))continue;infoRe.test(raw)?type="info":errorsRe.test(raw)?(errorAdded=!0,type=maxErrorLevel):"'{a}' is not defined."==raw?type="warning":"'{a}' is defined but never used."==raw&&(type="info")}errors.push({row:error.line-1,column:error.character-1,text:error.reason,type:type,raw:raw})}}this.sender.emit("annotate",errors)}}.call(JavaScriptWorker.prototype)}),ace.define("ace/lib/es5-shim",["require","exports","module"],function(){function Empty(){}function doesDefinePropertyWork(object){try{return Object.defineProperty(object,"sentinel",{}),"sentinel"in object}catch(exception){}}function toInteger(n){return n=+n,n!==n?n=0:0!==n&&n!==1/0&&n!==-(1/0)&&(n=(n>0||-1)*Math.floor(Math.abs(n))),n}Function.prototype.bind||(Function.prototype.bind=function(that){var target=this;if("function"!=typeof target)throw new TypeError("Function.prototype.bind called on incompatible "+target);var args=slice.call(arguments,1),bound=function(){if(this instanceof bound){var result=target.apply(this,args.concat(slice.call(arguments)));return Object(result)===result?result:this}return target.apply(that,args.concat(slice.call(arguments)))};return target.prototype&&(Empty.prototype=target.prototype,bound.prototype=new Empty,Empty.prototype=null),bound});var defineGetter,defineSetter,lookupGetter,lookupSetter,supportsAccessors,call=Function.prototype.call,prototypeOfArray=Array.prototype,prototypeOfObject=Object.prototype,slice=prototypeOfArray.slice,_toString=call.bind(prototypeOfObject.toString),owns=call.bind(prototypeOfObject.hasOwnProperty);if((supportsAccessors=owns(prototypeOfObject,"__defineGetter__"))&&(defineGetter=call.bind(prototypeOfObject.__defineGetter__),defineSetter=call.bind(prototypeOfObject.__defineSetter__),lookupGetter=call.bind(prototypeOfObject.__lookupGetter__),lookupSetter=call.bind(prototypeOfObject.__lookupSetter__)),2!=[1,2].splice(0).length)if(function(){function makeArray(l){var a=Array(l+2);return a[0]=a[1]=0,a}var lengthBefore,array=[];return array.splice.apply(array,makeArray(20)),array.splice.apply(array,makeArray(26)),lengthBefore=array.length,array.splice(5,0,"XXX"),lengthBefore+1==array.length,lengthBefore+1==array.length?!0:void 0}()){var array_splice=Array.prototype.splice;Array.prototype.splice=function(start,deleteCount){return arguments.length?array_splice.apply(this,[void 0===start?0:start,void 0===deleteCount?this.length-start:deleteCount].concat(slice.call(arguments,2))):[]}}else Array.prototype.splice=function(pos,removeCount){var length=this.length;pos>0?pos>length&&(pos=length):void 0==pos?pos=0:0>pos&&(pos=Math.max(length+pos,0)),length>pos+removeCount||(removeCount=length-pos);var removed=this.slice(pos,pos+removeCount),insert=slice.call(arguments,2),add=insert.length;if(pos===length)add&&this.push.apply(this,insert);else{var remove=Math.min(removeCount,length-pos),tailOldPos=pos+remove,tailNewPos=tailOldPos+add-remove,tailCount=length-tailOldPos,lengthAfterRemove=length-remove;if(tailOldPos>tailNewPos)for(var i=0;tailCount>i;++i)this[tailNewPos+i]=this[tailOldPos+i];else if(tailNewPos>tailOldPos)for(i=tailCount;i--;)this[tailNewPos+i]=this[tailOldPos+i];if(add&&pos===lengthAfterRemove)this.length=lengthAfterRemove,this.push.apply(this,insert);else for(this.length=lengthAfterRemove+add,i=0;add>i;++i)this[pos+i]=insert[i]}return removed};Array.isArray||(Array.isArray=function(obj){return"[object Array]"==_toString(obj)});var boxedString=Object("a"),splitString="a"!=boxedString[0]||!(0 in boxedString);if(Array.prototype.forEach||(Array.prototype.forEach=function(fun){var object=toObject(this),self=splitString&&"[object String]"==_toString(this)?this.split(""):object,thisp=arguments[1],i=-1,length=self.length>>>0;if("[object Function]"!=_toString(fun))throw new TypeError;for(;length>++i;)i in self&&fun.call(thisp,self[i],i,object)}),Array.prototype.map||(Array.prototype.map=function(fun){var object=toObject(this),self=splitString&&"[object String]"==_toString(this)?this.split(""):object,length=self.length>>>0,result=Array(length),thisp=arguments[1];if("[object Function]"!=_toString(fun))throw new TypeError(fun+" is not a function");for(var i=0;length>i;i++)i in self&&(result[i]=fun.call(thisp,self[i],i,object));return result}),Array.prototype.filter||(Array.prototype.filter=function(fun){var value,object=toObject(this),self=splitString&&"[object String]"==_toString(this)?this.split(""):object,length=self.length>>>0,result=[],thisp=arguments[1];if("[object Function]"!=_toString(fun))throw new TypeError(fun+" is not a function");for(var i=0;length>i;i++)i in self&&(value=self[i],fun.call(thisp,value,i,object)&&result.push(value));return result}),Array.prototype.every||(Array.prototype.every=function(fun){var object=toObject(this),self=splitString&&"[object String]"==_toString(this)?this.split(""):object,length=self.length>>>0,thisp=arguments[1];if("[object Function]"!=_toString(fun))throw new TypeError(fun+" is not a function");for(var i=0;length>i;i++)if(i in self&&!fun.call(thisp,self[i],i,object))return!1;return!0}),Array.prototype.some||(Array.prototype.some=function(fun){var object=toObject(this),self=splitString&&"[object String]"==_toString(this)?this.split(""):object,length=self.length>>>0,thisp=arguments[1];if("[object Function]"!=_toString(fun))throw new TypeError(fun+" is not a function");for(var i=0;length>i;i++)if(i in self&&fun.call(thisp,self[i],i,object))return!0;return!1}),Array.prototype.reduce||(Array.prototype.reduce=function(fun){var object=toObject(this),self=splitString&&"[object String]"==_toString(this)?this.split(""):object,length=self.length>>>0;if("[object Function]"!=_toString(fun))throw new TypeError(fun+" is not a function");if(!length&&1==arguments.length)throw new TypeError("reduce of empty array with no initial value");var result,i=0;if(arguments.length>=2)result=arguments[1];else for(;;){if(i in self){result=self[i++];break}if(++i>=length)throw new TypeError("reduce of empty array with no initial value")}for(;length>i;i++)i in self&&(result=fun.call(void 0,result,self[i],i,object));return result}),Array.prototype.reduceRight||(Array.prototype.reduceRight=function(fun){var object=toObject(this),self=splitString&&"[object String]"==_toString(this)?this.split(""):object,length=self.length>>>0;if("[object Function]"!=_toString(fun))throw new TypeError(fun+" is not a function");if(!length&&1==arguments.length)throw new TypeError("reduceRight of empty array with no initial value");var result,i=length-1;if(arguments.length>=2)result=arguments[1];else for(;;){if(i in self){result=self[i--];break}if(0>--i)throw new TypeError("reduceRight of empty array with no initial value")}do i in this&&(result=fun.call(void 0,result,self[i],i,object));while(i--);return result}),Array.prototype.indexOf&&-1==[0,1].indexOf(1,2)||(Array.prototype.indexOf=function(sought){var self=splitString&&"[object String]"==_toString(this)?this.split(""):toObject(this),length=self.length>>>0;if(!length)return-1;var i=0;for(arguments.length>1&&(i=toInteger(arguments[1])),i=i>=0?i:Math.max(0,length+i);length>i;i++)if(i in self&&self[i]===sought)return i;return-1}),Array.prototype.lastIndexOf&&-1==[0,1].lastIndexOf(0,-3)||(Array.prototype.lastIndexOf=function(sought){var self=splitString&&"[object String]"==_toString(this)?this.split(""):toObject(this),length=self.length>>>0;if(!length)return-1;var i=length-1;for(arguments.length>1&&(i=Math.min(i,toInteger(arguments[1]))),i=i>=0?i:length-Math.abs(i);i>=0;i--)if(i in self&&sought===self[i])return i;return-1}),Object.getPrototypeOf||(Object.getPrototypeOf=function(object){return object.__proto__||(object.constructor?object.constructor.prototype:prototypeOfObject)}),!Object.getOwnPropertyDescriptor){var ERR_NON_OBJECT="Object.getOwnPropertyDescriptor called on a non-object: ";Object.getOwnPropertyDescriptor=function(object,property){if("object"!=typeof object&&"function"!=typeof object||null===object)throw new TypeError(ERR_NON_OBJECT+object);if(owns(object,property)){var descriptor,getter,setter;if(descriptor={enumerable:!0,configurable:!0},supportsAccessors){var prototype=object.__proto__;object.__proto__=prototypeOfObject;var getter=lookupGetter(object,property),setter=lookupSetter(object,property);if(object.__proto__=prototype,getter||setter)return getter&&(descriptor.get=getter),setter&&(descriptor.set=setter),descriptor}return descriptor.value=object[property],descriptor}}}if(Object.getOwnPropertyNames||(Object.getOwnPropertyNames=function(object){return Object.keys(object)}),!Object.create){var createEmpty;createEmpty=null===Object.prototype.__proto__?function(){return{__proto__:null}}:function(){var empty={};for(var i in empty)empty[i]=null;return empty.constructor=empty.hasOwnProperty=empty.propertyIsEnumerable=empty.isPrototypeOf=empty.toLocaleString=empty.toString=empty.valueOf=empty.__proto__=null,empty},Object.create=function(prototype,properties){var object;if(null===prototype)object=createEmpty();else{if("object"!=typeof prototype)throw new TypeError("typeof prototype["+typeof prototype+"] != 'object'");var Type=function(){};Type.prototype=prototype,object=new Type,object.__proto__=prototype}return void 0!==properties&&Object.defineProperties(object,properties),object}}if(Object.defineProperty){var definePropertyWorksOnObject=doesDefinePropertyWork({}),definePropertyWorksOnDom="undefined"==typeof document||doesDefinePropertyWork(document.createElement("div"));if(!definePropertyWorksOnObject||!definePropertyWorksOnDom)var definePropertyFallback=Object.defineProperty}if(!Object.defineProperty||definePropertyFallback){var ERR_NON_OBJECT_DESCRIPTOR="Property description must be an object: ",ERR_NON_OBJECT_TARGET="Object.defineProperty called on non-object: ",ERR_ACCESSORS_NOT_SUPPORTED="getters & setters can not be defined on this javascript engine";Object.defineProperty=function(object,property,descriptor){if("object"!=typeof object&&"function"!=typeof object||null===object)throw new TypeError(ERR_NON_OBJECT_TARGET+object);if("object"!=typeof descriptor&&"function"!=typeof descriptor||null===descriptor)throw new TypeError(ERR_NON_OBJECT_DESCRIPTOR+descriptor);if(definePropertyFallback)try{return definePropertyFallback.call(Object,object,property,descriptor)}catch(exception){}if(owns(descriptor,"value"))if(supportsAccessors&&(lookupGetter(object,property)||lookupSetter(object,property))){var prototype=object.__proto__;object.__proto__=prototypeOfObject,delete object[property],object[property]=descriptor.value,object.__proto__=prototype}else object[property]=descriptor.value;else{if(!supportsAccessors)throw new TypeError(ERR_ACCESSORS_NOT_SUPPORTED);owns(descriptor,"get")&&defineGetter(object,property,descriptor.get),owns(descriptor,"set")&&defineSetter(object,property,descriptor.set)}return object}}Object.defineProperties||(Object.defineProperties=function(object,properties){for(var property in properties)owns(properties,property)&&Object.defineProperty(object,property,properties[property]);return object}),Object.seal||(Object.seal=function(object){return object}),Object.freeze||(Object.freeze=function(object){return object});try{Object.freeze(function(){})}catch(exception){Object.freeze=function(freezeObject){return function(object){return"function"==typeof object?object:freezeObject(object)}}(Object.freeze)}if(Object.preventExtensions||(Object.preventExtensions=function(object){return object}),Object.isSealed||(Object.isSealed=function(){return!1}),Object.isFrozen||(Object.isFrozen=function(){return!1}),Object.isExtensible||(Object.isExtensible=function(object){if(Object(object)===object)throw new TypeError;for(var name="";owns(object,name);)name+="?";object[name]=!0;var returnValue=owns(object,name);return delete object[name],returnValue}),!Object.keys){var hasDontEnumBug=!0,dontEnums=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],dontEnumsLength=dontEnums.length;for(var key in{toString:null})hasDontEnumBug=!1;Object.keys=function(object){if("object"!=typeof object&&"function"!=typeof object||null===object)throw new TypeError("Object.keys called on a non-object");var keys=[];for(var name in object)owns(object,name)&&keys.push(name);if(hasDontEnumBug)for(var i=0,ii=dontEnumsLength;ii>i;i++){var dontEnum=dontEnums[i];owns(object,dontEnum)&&keys.push(dontEnum)}return keys}}Date.now||(Date.now=function(){return(new Date).getTime()});var ws=" \\n\v\\f\\r   ᠎              \\u2028\\u2029\uFEFF";if(!String.prototype.trim||ws.trim()){ws="["+ws+"]";var trimBeginRegexp=RegExp("^"+ws+ws+"*"),trimEndRegexp=RegExp(ws+ws+"*$");String.prototype.trim=function(){return(this+"").replace(trimBeginRegexp,"").replace(trimEndRegexp,"")}}var toObject=function(o){if(null==o)throw new TypeError("can't convert "+o+" to object");return Object(o)}});`),javascript}ace.define("ace/mode/doc_comment_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],function(ti,ni,oi){var ui=ti("../lib/oop"),fi=ti("./text_highlight_rules").TextHighlightRules,mi=function(){this.$rules={start:[{token:"comment.doc.tag",regex:"@[\\w\\d_]+"},mi.getTagRule(),{defaultToken:"comment.doc",caseInsensitive:!0}]}};ui.inherits(mi,fi),mi.getTagRule=function(gi){return{token:"comment.doc.tag.storage.type",regex:"\\b(?:TODO|FIXME|XXX|HACK)\\b"}},mi.getStartRule=function(gi){return{token:"comment.doc",regex:"\\/\\*(?=\\*)",next:gi}},mi.getEndRule=function(gi){return{token:"comment.doc",regex:"\\*\\/",next:gi}},ni.DocCommentHighlightRules=mi});ace.define("ace/mode/javascript_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/doc_comment_highlight_rules","ace/mode/text_highlight_rules"],function(ti,ni,oi){var ui=ti("../lib/oop"),fi=ti("./doc_comment_highlight_rules").DocCommentHighlightRules,mi=ti("./text_highlight_rules").TextHighlightRules,gi="[a-zA-Z\\$_¡-￿][a-zA-Z\\d\\$_¡-￿]*",di=function(pi){var bi=this.createKeywordMapper({"variable.language":"Array|Boolean|Date|Function|Iterator|Number|Object|RegExp|String|Proxy|Namespace|QName|XML|XMLList|ArrayBuffer|Float32Array|Float64Array|Int16Array|Int32Array|Int8Array|Uint16Array|Uint32Array|Uint8Array|Uint8ClampedArray|Error|EvalError|InternalError|RangeError|ReferenceError|StopIteration|SyntaxError|TypeError|URIError|decodeURI|decodeURIComponent|encodeURI|encodeURIComponent|eval|isFinite|isNaN|parseFloat|parseInt|JSON|Math|this|arguments|prototype|window|document",keyword:"const|yield|import|get|set|async|await|break|case|catch|continue|default|delete|do|else|finally|for|function|if|in|of|instanceof|new|return|switch|throw|try|typeof|let|var|while|with|debugger|__parent__|__count__|escape|unescape|with|__proto__|class|enum|extends|super|export|implements|private|public|interface|package|protected|static","storage.type":"const|let|var|function","constant.language":"null|Infinity|NaN|undefined","support.function":"alert","constant.language.boolean":"true|false"},"identifier"),vi="case|do|else|finally|in|instanceof|return|throw|try|typeof|yield|void",Ai="\\\\(?:x[0-9a-fA-F]{2}|u[0-9a-fA-F]{4}|u{[0-9a-fA-F]{1,6}}|[0-2][0-7]{0,2}|3[0-7][0-7]?|[4-7][0-7]?|.)";this.$rules={no_regex:[fi.getStartRule("doc-start"),ci("no_regex"),{token:"string",regex:"'(?=.)",next:"qstring"},{token:"string",regex:'"(?=.)',next:"qqstring"},{token:"constant.numeric",regex:/0(?:[xX][0-9a-fA-F]+|[oO][0-7]+|[bB][01]+)\b/},{token:"constant.numeric",regex:/(?:\d\d*(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+\b)?/},{token:["storage.type","punctuation.operator","support.function","punctuation.operator","entity.name.function","text","keyword.operator"],regex:"("+gi+")(\\.)(prototype)(\\.)("+gi+")(\\s*)(=)",next:"function_arguments"},{token:["storage.type","punctuation.operator","entity.name.function","text","keyword.operator","text","storage.type","text","paren.lparen"],regex:"("+gi+")(\\.)("+gi+")(\\s*)(=)(\\s*)(function)(\\s*)(\\()",next:"function_arguments"},{token:["entity.name.function","text","keyword.operator","text","storage.type","text","paren.lparen"],regex:"("+gi+")(\\s*)(=)(\\s*)(function)(\\s*)(\\()",next:"function_arguments"},{token:["storage.type","punctuation.operator","entity.name.function","text","keyword.operator","text","storage.type","text","entity.name.function","text","paren.lparen"],regex:"("+gi+")(\\.)("+gi+")(\\s*)(=)(\\s*)(function)(\\s+)(\\w+)(\\s*)(\\()",next:"function_arguments"},{token:["storage.type","text","entity.name.function","text","paren.lparen"],regex:"(function)(\\s+)("+gi+")(\\s*)(\\()",next:"function_arguments"},{token:["entity.name.function","text","punctuation.operator","text","storage.type","text","paren.lparen"],regex:"("+gi+")(\\s*)(:)(\\s*)(function)(\\s*)(\\()",next:"function_arguments"},{token:["text","text","storage.type","text","paren.lparen"],regex:"(:)(\\s*)(function)(\\s*)(\\()",next:"function_arguments"},{token:"keyword",regex:`from(?=\\s*('|"))`},{token:"keyword",regex:"(?:"+vi+")\\b",next:"start"},{token:["support.constant"],regex:/that\b/},{token:["storage.type","punctuation.operator","support.function.firebug"],regex:/(console)(\.)(warn|info|log|error|time|trace|timeEnd|assert)\b/},{token:bi,regex:gi},{token:"punctuation.operator",regex:/[.](?![.])/,next:"property"},{token:"storage.type",regex:/=>/},{token:"keyword.operator",regex:/--|\+\+|\.{3}|===|==|=|!=|!==|<+=?|>+=?|!|&&|\|\||\?:|[!$%&*+\-~\/^]=?/,next:"start"},{token:"punctuation.operator",regex:/[?:,;.]/,next:"start"},{token:"paren.lparen",regex:/[\[({]/,next:"start"},{token:"paren.rparen",regex:/[\])}]/},{token:"comment",regex:/^#!.*$/}],property:[{token:"text",regex:"\\s+"},{token:["storage.type","punctuation.operator","entity.name.function","text","keyword.operator","text","storage.type","text","entity.name.function","text","paren.lparen"],regex:"("+gi+")(\\.)("+gi+")(\\s*)(=)(\\s*)(function)(?:(\\s+)(\\w+))?(\\s*)(\\()",next:"function_arguments"},{token:"punctuation.operator",regex:/[.](?![.])/},{token:"support.function",regex:/(s(?:h(?:ift|ow(?:Mod(?:elessDialog|alDialog)|Help))|croll(?:X|By(?:Pages|Lines)?|Y|To)?|t(?:op|rike)|i(?:n|zeToContent|debar|gnText)|ort|u(?:p|b(?:str(?:ing)?)?)|pli(?:ce|t)|e(?:nd|t(?:Re(?:sizable|questHeader)|M(?:i(?:nutes|lliseconds)|onth)|Seconds|Ho(?:tKeys|urs)|Year|Cursor|Time(?:out)?|Interval|ZOptions|Date|UTC(?:M(?:i(?:nutes|lliseconds)|onth)|Seconds|Hours|Date|FullYear)|FullYear|Active)|arch)|qrt|lice|avePreferences|mall)|h(?:ome|andleEvent)|navigate|c(?:har(?:CodeAt|At)|o(?:s|n(?:cat|textual|firm)|mpile)|eil|lear(?:Timeout|Interval)?|a(?:ptureEvents|ll)|reate(?:StyleSheet|Popup|EventObject))|t(?:o(?:GMTString|S(?:tring|ource)|U(?:TCString|pperCase)|Lo(?:caleString|werCase))|est|a(?:n|int(?:Enabled)?))|i(?:s(?:NaN|Finite)|ndexOf|talics)|d(?:isableExternalCapture|ump|etachEvent)|u(?:n(?:shift|taint|escape|watch)|pdateCommands)|j(?:oin|avaEnabled)|p(?:o(?:p|w)|ush|lugins.refresh|a(?:ddings|rse(?:Int|Float)?)|r(?:int|ompt|eference))|e(?:scape|nableExternalCapture|val|lementFromPoint|x(?:p|ec(?:Script|Command)?))|valueOf|UTC|queryCommand(?:State|Indeterm|Enabled|Value)|f(?:i(?:nd|le(?:ModifiedDate|Size|CreatedDate|UpdatedDate)|xed)|o(?:nt(?:size|color)|rward)|loor|romCharCode)|watch|l(?:ink|o(?:ad|g)|astIndexOf)|a(?:sin|nchor|cos|t(?:tachEvent|ob|an(?:2)?)|pply|lert|b(?:s|ort))|r(?:ou(?:nd|teEvents)|e(?:size(?:By|To)|calc|turnValue|place|verse|l(?:oad|ease(?:Capture|Events)))|andom)|g(?:o|et(?:ResponseHeader|M(?:i(?:nutes|lliseconds)|onth)|Se(?:conds|lection)|Hours|Year|Time(?:zoneOffset)?|Da(?:y|te)|UTC(?:M(?:i(?:nutes|lliseconds)|onth)|Seconds|Hours|Da(?:y|te)|FullYear)|FullYear|A(?:ttention|llResponseHeaders)))|m(?:in|ove(?:B(?:y|elow)|To(?:Absolute)?|Above)|ergeAttributes|a(?:tch|rgins|x))|b(?:toa|ig|o(?:ld|rderWidths)|link|ack))\b(?=\()/},{token:"support.function.dom",regex:/(s(?:ub(?:stringData|mit)|plitText|e(?:t(?:NamedItem|Attribute(?:Node)?)|lect))|has(?:ChildNodes|Feature)|namedItem|c(?:l(?:ick|o(?:se|neNode))|reate(?:C(?:omment|DATASection|aption)|T(?:Head|extNode|Foot)|DocumentFragment|ProcessingInstruction|E(?:ntityReference|lement)|Attribute))|tabIndex|i(?:nsert(?:Row|Before|Cell|Data)|tem)|open|delete(?:Row|C(?:ell|aption)|T(?:Head|Foot)|Data)|focus|write(?:ln)?|a(?:dd|ppend(?:Child|Data))|re(?:set|place(?:Child|Data)|move(?:NamedItem|Child|Attribute(?:Node)?)?)|get(?:NamedItem|Element(?:sBy(?:Name|TagName|ClassName)|ById)|Attribute(?:Node)?)|blur)\b(?=\()/},{token:"support.constant",regex:/(s(?:ystemLanguage|cr(?:ipts|ollbars|een(?:X|Y|Top|Left))|t(?:yle(?:Sheets)?|atus(?:Text|bar)?)|ibling(?:Below|Above)|ource|uffixes|e(?:curity(?:Policy)?|l(?:ection|f)))|h(?:istory|ost(?:name)?|as(?:h|Focus))|y|X(?:MLDocument|SLDocument)|n(?:ext|ame(?:space(?:s|URI)|Prop))|M(?:IN_VALUE|AX_VALUE)|c(?:haracterSet|o(?:n(?:structor|trollers)|okieEnabled|lorDepth|mp(?:onents|lete))|urrent|puClass|l(?:i(?:p(?:boardData)?|entInformation)|osed|asses)|alle(?:e|r)|rypto)|t(?:o(?:olbar|p)|ext(?:Transform|Indent|Decoration|Align)|ags)|SQRT(?:1_2|2)|i(?:n(?:ner(?:Height|Width)|put)|ds|gnoreCase)|zIndex|o(?:scpu|n(?:readystatechange|Line)|uter(?:Height|Width)|p(?:sProfile|ener)|ffscreenBuffering)|NEGATIVE_INFINITY|d(?:i(?:splay|alog(?:Height|Top|Width|Left|Arguments)|rectories)|e(?:scription|fault(?:Status|Ch(?:ecked|arset)|View)))|u(?:ser(?:Profile|Language|Agent)|n(?:iqueID|defined)|pdateInterval)|_content|p(?:ixelDepth|ort|ersonalbar|kcs11|l(?:ugins|atform)|a(?:thname|dding(?:Right|Bottom|Top|Left)|rent(?:Window|Layer)?|ge(?:X(?:Offset)?|Y(?:Offset)?))|r(?:o(?:to(?:col|type)|duct(?:Sub)?|mpter)|e(?:vious|fix)))|e(?:n(?:coding|abledPlugin)|x(?:ternal|pando)|mbeds)|v(?:isibility|endor(?:Sub)?|Linkcolor)|URLUnencoded|P(?:I|OSITIVE_INFINITY)|f(?:ilename|o(?:nt(?:Size|Family|Weight)|rmName)|rame(?:s|Element)|gColor)|E|whiteSpace|l(?:i(?:stStyleType|n(?:eHeight|kColor))|o(?:ca(?:tion(?:bar)?|lName)|wsrc)|e(?:ngth|ft(?:Context)?)|a(?:st(?:M(?:odified|atch)|Index|Paren)|yer(?:s|X)|nguage))|a(?:pp(?:MinorVersion|Name|Co(?:deName|re)|Version)|vail(?:Height|Top|Width|Left)|ll|r(?:ity|guments)|Linkcolor|bove)|r(?:ight(?:Context)?|e(?:sponse(?:XML|Text)|adyState))|global|x|m(?:imeTypes|ultiline|enubar|argin(?:Right|Bottom|Top|Left))|L(?:N(?:10|2)|OG(?:10E|2E))|b(?:o(?:ttom|rder(?:Width|RightWidth|BottomWidth|Style|Color|TopWidth|LeftWidth))|ufferDepth|elow|ackground(?:Color|Image)))\b/},{token:"identifier",regex:gi},{regex:"",token:"empty",next:"no_regex"}],start:[fi.getStartRule("doc-start"),ci("start"),{token:"string.regexp",regex:"\\/",next:"regex"},{token:"text",regex:"\\s+|^$",next:"start"},{token:"empty",regex:"",next:"no_regex"}],regex:[{token:"regexp.keyword.operator",regex:"\\\\(?:u[\\da-fA-F]{4}|x[\\da-fA-F]{2}|.)"},{token:"string.regexp",regex:"/[sxngimy]*",next:"no_regex"},{token:"invalid",regex:/\{\d+\b,?\d*\}[+*]|[+*$^?][+*]|[$^][?]|\?{3,}/},{token:"constant.language.escape",regex:/\(\?[:=!]|\)|\{\d+\b,?\d*\}|[+*]\?|[()$^+*?.]/},{token:"constant.language.delimiter",regex:/\|/},{token:"constant.language.escape",regex:/\[\^?/,next:"regex_character_class"},{token:"empty",regex:"$",next:"no_regex"},{defaultToken:"string.regexp"}],regex_character_class:[{token:"regexp.charclass.keyword.operator",regex:"\\\\(?:u[\\da-fA-F]{4}|x[\\da-fA-F]{2}|.)"},{token:"constant.language.escape",regex:"]",next:"regex"},{token:"constant.language.escape",regex:"-"},{token:"empty",regex:"$",next:"no_regex"},{defaultToken:"string.regexp.charachterclass"}],function_arguments:[{token:"variable.parameter",regex:gi},{token:"punctuation.operator",regex:"[, ]+"},{token:"punctuation.operator",regex:"$"},{token:"empty",regex:"",next:"no_regex"}],qqstring:[{token:"constant.language.escape",regex:Ai},{token:"string",regex:"\\\\$",consumeLineEnd:!0},{token:"string",regex:'"|$',next:"no_regex"},{defaultToken:"string"}],qstring:[{token:"constant.language.escape",regex:Ai},{token:"string",regex:"\\\\$",consumeLineEnd:!0},{token:"string",regex:"'|$",next:"no_regex"},{defaultToken:"string"}]},(!pi||!pi.noES6)&&(this.$rules.no_regex.unshift({regex:"[{}]",onMatch:function(Li,Bi,Ri){if(this.next=Li=="{"?this.nextState:"",Li=="{"&&Ri.length)Ri.unshift("start",Bi);else if(Li=="}"&&Ri.length&&(Ri.shift(),this.next=Ri.shift(),this.next.indexOf("string")!=-1||this.next.indexOf("jsx")!=-1))return"paren.quasi.end";return Li=="{"?"paren.lparen":"paren.rparen"},nextState:"start"},{token:"string.quasi.start",regex:/`/,push:[{token:"constant.language.escape",regex:Ai},{token:"paren.quasi.start",regex:/\${/,push:"start"},{token:"string.quasi.end",regex:/`/,next:"pop"},{defaultToken:"string.quasi"}]}),(!pi||pi.jsx!=!1)&&li.call(this)),this.embedRules(fi,"doc-",[fi.getEndRule("no_regex")]),this.normalizeRules()};ui.inherits(di,mi);function li(){var pi=gi.replace("\\d","\\d\\-"),bi={onMatch:function(Ai,Li,Bi){var Ri=Ai.charAt(1)=="/"?2:1;return Ri==1?(Li!=this.nextState?Bi.unshift(this.next,this.nextState,0):Bi.unshift(this.next),Bi[2]++):Ri==2&&Li==this.nextState&&(Bi[1]--,(!Bi[1]||Bi[1]<0)&&(Bi.shift(),Bi.shift())),[{type:"meta.tag.punctuation."+(Ri==1?"":"end-")+"tag-open.xml",value:Ai.slice(0,Ri)},{type:"meta.tag.tag-name.xml",value:Ai.substr(Ri)}]},regex:"",onMatch:function(Ai,Li,Bi){return Li==Bi[0]&&Bi.shift(),Ai.length==2&&(Bi[0]==this.nextState&&Bi[1]--,(!Bi[1]||Bi[1]<0)&&Bi.splice(0,2)),this.next=Bi[0]||"start",[{type:this.token,value:Ai}]},nextState:"jsx"},vi,ci("jsxAttributes"),{token:"entity.other.attribute-name.xml",regex:pi},{token:"keyword.operator.attribute-equals.xml",regex:"="},{token:"text.tag-whitespace.xml",regex:"\\s+"},{token:"string.attribute-value.xml",regex:"'",stateName:"jsx_attr_q",push:[{token:"string.attribute-value.xml",regex:"'",next:"pop"},{include:"reference"},{defaultToken:"string.attribute-value.xml"}]},{token:"string.attribute-value.xml",regex:'"',stateName:"jsx_attr_qq",push:[{token:"string.attribute-value.xml",regex:'"',next:"pop"},{include:"reference"},{defaultToken:"string.attribute-value.xml"}]},bi],this.$rules.reference=[{token:"constant.language.escape.reference.xml",regex:"(?:&#[0-9]+;)|(?:&#x[0-9a-fA-F]+;)|(?:&[a-zA-Z0-9_:\\.-]+;)"}]}function ci(pi){return[{token:"comment",regex:/\/\*/,next:[fi.getTagRule(),{token:"comment",regex:"\\*\\/",next:pi||"pop"},{defaultToken:"comment",caseInsensitive:!0}]},{token:"comment",regex:"\\/\\/",next:[fi.getTagRule(),{token:"comment",regex:"$|^",next:pi||"pop"},{defaultToken:"comment",caseInsensitive:!0}]}]}ni.JavaScriptHighlightRules=di});ace.define("ace/mode/matching_brace_outdent",["require","exports","module","ace/range"],function(ti,ni,oi){var ui=ti("../range").Range,fi=function(){};(function(){this.checkOutdent=function(mi,gi){return/^\s+$/.test(mi)?/^\s*\}/.test(gi):!1},this.autoOutdent=function(mi,gi){var di=mi.getLine(gi),li=di.match(/^(\s*\})/);if(!li)return 0;var ci=li[1].length,pi=mi.findMatchingBracket({row:gi,column:ci});if(!pi||pi.row==gi)return 0;var bi=this.$getIndent(mi.getLine(pi.row));mi.replace(new ui(gi,0,gi,ci-1),bi)},this.$getIndent=function(mi){return mi.match(/^\s*/)[0]}}).call(fi.prototype),ni.MatchingBraceOutdent=fi});ace.define("ace/mode/folding/cstyle",["require","exports","module","ace/lib/oop","ace/range","ace/mode/folding/fold_mode"],function(ti,ni,oi){var ui=ti("../../lib/oop"),fi=ti("../../range").Range,mi=ti("./fold_mode").FoldMode,gi=ni.FoldMode=function(di){di&&(this.foldingStartMarker=new RegExp(this.foldingStartMarker.source.replace(/\|[^|]*?$/,"|"+di.start)),this.foldingStopMarker=new RegExp(this.foldingStopMarker.source.replace(/\|[^|]*?$/,"|"+di.end)))};ui.inherits(gi,mi),(function(){this.foldingStartMarker=/([\{\[\(])[^\}\]\)]*$|^\s*(\/\*)/,this.foldingStopMarker=/^[^\[\{\(]*([\}\]\)])|^[\s\*]*(\*\/)/,this.singleLineBlockCommentRe=/^\s*(\/\*).*\*\/\s*$/,this.tripleStarBlockCommentRe=/^\s*(\/\*\*\*).*\*\/\s*$/,this.startRegionRe=/^\s*(\/\*|\/\/)#?region\b/,this._getFoldWidgetBase=this.getFoldWidget,this.getFoldWidget=function(di,li,ci){var pi=di.getLine(ci);if(this.singleLineBlockCommentRe.test(pi)&&!this.startRegionRe.test(pi)&&!this.tripleStarBlockCommentRe.test(pi))return"";var bi=this._getFoldWidgetBase(di,li,ci);return!bi&&this.startRegionRe.test(pi)?"start":bi},this.getFoldWidgetRange=function(di,li,ci,pi){var bi=di.getLine(ci);if(this.startRegionRe.test(bi))return this.getCommentRegionBlock(di,bi,ci);var Li=bi.match(this.foldingStartMarker);if(Li){var vi=Li.index;if(Li[1])return this.openingBracketBlock(di,Li[1],ci,vi);var Ai=di.getCommentFoldRange(ci,vi+Li[0].length,1);return Ai&&!Ai.isMultiLine()&&(pi?Ai=this.getSectionRange(di,ci):li!="all"&&(Ai=null)),Ai}if(li!=="markbegin"){var Li=bi.match(this.foldingStopMarker);if(Li){var vi=Li.index+Li[0].length;return Li[1]?this.closingBracketBlock(di,Li[1],ci,vi):di.getCommentFoldRange(ci,vi,-1)}}},this.getSectionRange=function(di,li){var ci=di.getLine(li),pi=ci.search(/\S/),bi=li,vi=ci.length;li=li+1;for(var Ai=li,Li=di.getLength();++liBi)break;var Ri=this.getFoldWidgetRange(di,"all",li);if(Ri){if(Ri.start.row<=bi)break;if(Ri.isMultiLine())li=Ri.end.row;else if(pi==Bi)break}Ai=li}}return new fi(bi,vi,Ai,di.getLine(Ai).length)},this.getCommentRegionBlock=function(di,li,ci){for(var pi=li.search(/\s*$/),bi=di.getLength(),vi=ci,Ai=/^\s*(?:\/\*|\/\/|--)#?(end)?region\b/,Li=1;++civi)return new fi(vi,pi,Ri,li.length)}}).call(gi.prototype)});ace.define("ace/mode/javascript",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/javascript_highlight_rules","ace/mode/matching_brace_outdent","ace/worker/worker_client","ace/mode/behaviour/cstyle","ace/mode/folding/cstyle"],function(ti,ni,oi){var ui=ti("../lib/oop"),fi=ti("./text").Mode,mi=ti("./javascript_highlight_rules").JavaScriptHighlightRules,gi=ti("./matching_brace_outdent").MatchingBraceOutdent,di=ti("../worker/worker_client").WorkerClient,li=ti("./behaviour/cstyle").CstyleBehaviour,ci=ti("./folding/cstyle").FoldMode,pi=function(){this.HighlightRules=mi,this.$outdent=new gi,this.$behaviour=new li,this.foldingRules=new ci};ui.inherits(pi,fi),(function(){this.lineCommentStart="//",this.blockComment={start:"/*",end:"*/"},this.$quotes={'"':'"',"'":"'","`":"`"},this.getNextLineIndent=function(bi,vi,Ai){var Li=this.$getIndent(vi),Bi=this.getTokenizer().getLineTokens(vi,bi),Ri=Bi.tokens,zi=Bi.state;if(Ri.length&&Ri[Ri.length-1].type=="comment")return Li;if(bi=="start"||bi=="no_regex"){var Ei=vi.match(/^.*(?:\bcase\b.*:|[\{\(\[])\s*$/);Ei&&(Li+=Ai)}else if(bi=="doc-start"){if(zi=="start"||zi=="no_regex")return"";var Ei=vi.match(/^\s*(\/?)\*/);Ei&&(Ei[1]&&(Li+=" "),Li+="* ")}return Li},this.checkOutdent=function(bi,vi,Ai){return this.$outdent.checkOutdent(vi,Ai)},this.autoOutdent=function(bi,vi,Ai){this.$outdent.autoOutdent(vi,Ai)},this.createWorker=function(bi){var vi=new di(["ace"],requireJavascript(),"JavaScriptWorker");return vi.attachToDocument(bi.getDocument()),vi.on("annotate",function(Ai){bi.setAnnotations(Ai.data)}),vi.on("terminate",function(){bi.clearAnnotations()}),vi},this.$id="ace/mode/javascript"}).call(pi.prototype),ni.Mode=pi});ace.define("ace/mode/plain_text",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/text_highlight_rules","ace/mode/behaviour"],function(ti,ni,oi){var ui=ti("../lib/oop"),fi=ti("./text").Mode,mi=ti("./text_highlight_rules").TextHighlightRules,gi=ti("./behaviour").Behaviour,di=function(){this.HighlightRules=mi,this.$behaviour=new gi};ui.inherits(di,fi),(function(){this.type="text",this.getNextLineIndent=function(li,ci,pi){return""},this.$id="ace/mode/plain_text"}).call(di.prototype),ni.Mode=di});ace.define("ace/mode/sh_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],function(ti,ni,oi){var ui=ti("../lib/oop"),fi=ti("./text_highlight_rules").TextHighlightRules,mi=ni.reservedKeywords="!|{|}|case|do|done|elif|else|esac|fi|for|if|in|then|until|while|&|;|export|local|read|typeset|unset|elif|select|set|function|declare|readonly",gi=ni.languageConstructs="[|]|alias|bg|bind|break|builtin|cd|command|compgen|complete|continue|dirs|disown|echo|enable|eval|exec|exit|fc|fg|getopts|hash|help|history|jobs|kill|let|logout|popd|printf|pushd|pwd|return|set|shift|shopt|source|suspend|test|times|trap|type|ulimit|umask|unalias|wait",di=function(){var li=this.createKeywordMapper({keyword:mi,"support.function.builtin":gi,"invalid.deprecated":"debugger"},"identifier"),ci="(?:(?:[1-9]\\d*)|(?:0))",pi="(?:\\.\\d+)",bi="(?:\\d+)",vi="(?:(?:"+bi+"?"+pi+")|(?:"+bi+"\\.))",Ai="(?:(?:"+vi+"|"+bi+"))",Li="(?:"+Ai+"|"+vi+")",Bi="(?:&"+bi+")",Ri="[a-zA-Z_][a-zA-Z0-9_]*",zi="(?:"+Ri+"(?==))",Ei="(?:\\$(?:SHLVL|\\$|\\!|\\?))",Ii="(?:"+Ri+"\\s*\\(\\))";this.$rules={start:[{token:"constant",regex:/\\./},{token:["text","comment"],regex:/(^|\s)(#.*)$/},{token:"string.start",regex:'"',push:[{token:"constant.language.escape",regex:/\\(?:[$`"\\]|$)/},{include:"variables"},{token:"keyword.operator",regex:/`/},{token:"string.end",regex:'"',next:"pop"},{defaultToken:"string"}]},{token:"string",regex:"\\$'",push:[{token:"constant.language.escape",regex:/\\(?:[abeEfnrtv\\'"]|x[a-fA-F\d]{1,2}|u[a-fA-F\d]{4}([a-fA-F\d]{4})?|c.|\d{1,3})/},{token:"string",regex:"'",next:"pop"},{defaultToken:"string"}]},{regex:"<<<",token:"keyword.operator"},{stateName:"heredoc",regex:"(<<-?)(\\s*)(['\"`]?)([\\w\\-]+)(['\"`]?)",onMatch:function(ki,Ti,Pi){var ji=ki[2]=="-"?"indentedHeredoc":"heredoc",Di=ki.split(this.splitRegex);return Pi.push(ji,Di[4]),[{type:"constant",value:Di[1]},{type:"text",value:Di[2]},{type:"string",value:Di[3]},{type:"support.class",value:Di[4]},{type:"string",value:Di[5]}]},rules:{heredoc:[{onMatch:function(ki,Ti,Pi){return ki===Pi[1]?(Pi.shift(),Pi.shift(),this.next=Pi[0]||"start","support.class"):(this.next="","string")},regex:".*$",next:"start"}],indentedHeredoc:[{token:"string",regex:"^ +"},{onMatch:function(ki,Ti,Pi){return ki===Pi[1]?(Pi.shift(),Pi.shift(),this.next=Pi[0]||"start","support.class"):(this.next="","string")},regex:".*$",next:"start"}]}},{regex:"$",token:"empty",next:function(ki,Ti){return Ti[0]==="heredoc"||Ti[0]==="indentedHeredoc"?Ti[0]:ki}},{token:["keyword","text","text","text","variable"],regex:/(declare|local|readonly)(\s+)(?:(-[fixar]+)(\s+))?([a-zA-Z_][a-zA-Z0-9_]*\b)/},{token:"variable.language",regex:Ei},{token:"variable",regex:zi},{include:"variables"},{token:"support.function",regex:Ii},{token:"support.function",regex:Bi},{token:"string",start:"'",end:"'"},{token:"constant.numeric",regex:Li},{token:"constant.numeric",regex:ci+"\\b"},{token:li,regex:"[a-zA-Z_][a-zA-Z0-9_]*\\b"},{token:"keyword.operator",regex:"\\+|\\-|\\*|\\*\\*|\\/|\\/\\/|~|<|>|<=|=>|=|!=|[%&|`]"},{token:"punctuation.operator",regex:";"},{token:"paren.lparen",regex:"[\\[\\(\\{]"},{token:"paren.rparen",regex:"[\\]]"},{token:"paren.rparen",regex:"[\\)\\}]",next:"pop"}],variables:[{token:"variable",regex:/(\$)(\w+)/},{token:["variable","paren.lparen"],regex:/(\$)(\()/,push:"start"},{token:["variable","paren.lparen","keyword.operator","variable","keyword.operator"],regex:/(\$)(\{)([#!]?)(\w+|[*@#?\-$!0_])(:[?+\-=]?|##?|%%?|,,?\/|\^\^?)?/,push:"start"},{token:"variable",regex:/\$[*@#?\-$!0_]/},{token:["variable","paren.lparen"],regex:/(\$)(\{)/,push:"start"}]},this.normalizeRules()};ui.inherits(di,fi),ni.ShHighlightRules=di});ace.define("ace/mode/folding/cstyle",["require","exports","module","ace/lib/oop","ace/range","ace/mode/folding/fold_mode"],function(ti,ni,oi){var ui=ti("../../lib/oop"),fi=ti("../../range").Range,mi=ti("./fold_mode").FoldMode,gi=ni.FoldMode=function(di){di&&(this.foldingStartMarker=new RegExp(this.foldingStartMarker.source.replace(/\|[^|]*?$/,"|"+di.start)),this.foldingStopMarker=new RegExp(this.foldingStopMarker.source.replace(/\|[^|]*?$/,"|"+di.end)))};ui.inherits(gi,mi),(function(){this.foldingStartMarker=/([\{\[\(])[^\}\]\)]*$|^\s*(\/\*)/,this.foldingStopMarker=/^[^\[\{\(]*([\}\]\)])|^[\s\*]*(\*\/)/,this.singleLineBlockCommentRe=/^\s*(\/\*).*\*\/\s*$/,this.tripleStarBlockCommentRe=/^\s*(\/\*\*\*).*\*\/\s*$/,this.startRegionRe=/^\s*(\/\*|\/\/)#?region\b/,this._getFoldWidgetBase=this.getFoldWidget,this.getFoldWidget=function(di,li,ci){var pi=di.getLine(ci);if(this.singleLineBlockCommentRe.test(pi)&&!this.startRegionRe.test(pi)&&!this.tripleStarBlockCommentRe.test(pi))return"";var bi=this._getFoldWidgetBase(di,li,ci);return!bi&&this.startRegionRe.test(pi)?"start":bi},this.getFoldWidgetRange=function(di,li,ci,pi){var bi=di.getLine(ci);if(this.startRegionRe.test(bi))return this.getCommentRegionBlock(di,bi,ci);var Li=bi.match(this.foldingStartMarker);if(Li){var vi=Li.index;if(Li[1])return this.openingBracketBlock(di,Li[1],ci,vi);var Ai=di.getCommentFoldRange(ci,vi+Li[0].length,1);return Ai&&!Ai.isMultiLine()&&(pi?Ai=this.getSectionRange(di,ci):li!="all"&&(Ai=null)),Ai}if(li!=="markbegin"){var Li=bi.match(this.foldingStopMarker);if(Li){var vi=Li.index+Li[0].length;return Li[1]?this.closingBracketBlock(di,Li[1],ci,vi):di.getCommentFoldRange(ci,vi,-1)}}},this.getSectionRange=function(di,li){var ci=di.getLine(li),pi=ci.search(/\S/),bi=li,vi=ci.length;li=li+1;for(var Ai=li,Li=di.getLength();++liBi)break;var Ri=this.getFoldWidgetRange(di,"all",li);if(Ri){if(Ri.start.row<=bi)break;if(Ri.isMultiLine())li=Ri.end.row;else if(pi==Bi)break}Ai=li}}return new fi(bi,vi,Ai,di.getLine(Ai).length)},this.getCommentRegionBlock=function(di,li,ci){for(var pi=li.search(/\s*$/),bi=di.getLength(),vi=ci,Ai=/^\s*(?:\/\*|\/\/|--)#?(end)?region\b/,Li=1;++civi)return new fi(vi,pi,Ri,li.length)}}).call(gi.prototype)});ace.define("ace/mode/sh",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/sh_highlight_rules","ace/range","ace/mode/folding/cstyle","ace/mode/behaviour/cstyle"],function(ti,ni,oi){var ui=ti("../lib/oop"),fi=ti("./text").Mode,mi=ti("./sh_highlight_rules").ShHighlightRules,gi=ti("../range").Range,di=ti("./folding/cstyle").FoldMode,li=ti("./behaviour/cstyle").CstyleBehaviour,ci=function(){this.HighlightRules=mi,this.foldingRules=new di,this.$behaviour=new li};ui.inherits(ci,fi),(function(){this.lineCommentStart="#",this.getNextLineIndent=function(bi,vi,Ai){var Li=this.$getIndent(vi),Bi=this.getTokenizer().getLineTokens(vi,bi),Ri=Bi.tokens;if(Ri.length&&Ri[Ri.length-1].type=="comment")return Li;if(bi=="start"){var zi=vi.match(/^.*[\{\(\[:]\s*$/);zi&&(Li+=Ai)}return Li};var pi={pass:1,return:1,raise:1,break:1,continue:1};this.checkOutdent=function(bi,vi,Ai){if(Ai!==`\r `&&Ai!=="\r"&&Ai!==` `)return!1;var Li=this.getTokenizer().getLineTokens(vi.trim(),bi).tokens;if(!Li)return!1;do var Bi=Li.pop();while(Bi&&(Bi.type=="comment"||Bi.type=="text"&&Bi.value.match(/^\s+$/)));return Bi?Bi.type=="keyword"&&pi[Bi.value]:!1},this.autoOutdent=function(bi,vi,Ai){Ai+=1;var Li=this.$getIndent(vi.getLine(Ai)),Bi=vi.getTabString();Li.slice(-Bi.length)==Bi&&vi.remove(new gi(Ai,Li.length-Bi.length,Ai,Li.length))},this.$id="ace/mode/sh"}).call(ci.prototype),ni.Mode=ci});ace.define("ace/mode/ini_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],function(ti,ni,oi){var ui=ti("../lib/oop"),fi=ti("./text_highlight_rules").TextHighlightRules,mi="\\\\(?:[\\\\0abtrn;#=:]|x[a-fA-F\\d]{4})",gi=function(){this.$rules={start:[{token:"punctuation.definition.comment.ini",regex:"#.*",push_:[{token:"comment.line.number-sign.ini",regex:"$|^",next:"pop"},{defaultToken:"comment.line.number-sign.ini"}]},{token:"punctuation.definition.comment.ini",regex:";.*",push_:[{token:"comment.line.semicolon.ini",regex:"$|^",next:"pop"},{defaultToken:"comment.line.semicolon.ini"}]},{token:["keyword.other.definition.ini","text","punctuation.separator.key-value.ini"],regex:"\\b([a-zA-Z0-9_.-]+)\\b(\\s*)(=)"},{token:["punctuation.definition.entity.ini","constant.section.group-title.ini","punctuation.definition.entity.ini"],regex:"^(\\[)(.*?)(\\])"},{token:"punctuation.definition.string.begin.ini",regex:"'",push:[{token:"punctuation.definition.string.end.ini",regex:"'",next:"pop"},{token:"constant.language.escape",regex:mi},{defaultToken:"string.quoted.single.ini"}]},{token:"punctuation.definition.string.begin.ini",regex:'"',push:[{token:"constant.language.escape",regex:mi},{token:"punctuation.definition.string.end.ini",regex:'"',next:"pop"},{defaultToken:"string.quoted.double.ini"}]}]},this.normalizeRules()};gi.metaData={fileTypes:["ini","conf"],keyEquivalent:"^~I",name:"Ini",scopeName:"source.ini"},ui.inherits(gi,fi),ni.IniHighlightRules=gi});ace.define("ace/mode/folding/ini",["require","exports","module","ace/lib/oop","ace/range","ace/mode/folding/fold_mode"],function(ti,ni,oi){var ui=ti("../../lib/oop"),fi=ti("../../range").Range,mi=ti("./fold_mode").FoldMode,gi=ni.FoldMode=function(){};ui.inherits(gi,mi),(function(){this.foldingStartMarker=/^\s*\[([^\])]*)]\s*(?:$|[;#])/,this.getFoldWidgetRange=function(di,li,ci){var pi=this.foldingStartMarker,bi=di.getLine(ci),vi=bi.match(pi);if(vi){for(var Ai=vi[1]+".",Li=bi.length,Bi=di.getLength(),Ri=ci,zi=ci;++ciRi){var Ei=di.getLine(zi).length;return new fi(Ri,Li,zi,Ei)}}}}).call(gi.prototype)});ace.define("ace/mode/ini",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/ini_highlight_rules","ace/mode/folding/ini"],function(ti,ni,oi){var ui=ti("../lib/oop"),fi=ti("./text").Mode,mi=ti("./ini_highlight_rules").IniHighlightRules,gi=ti("./folding/ini").FoldMode,di=function(){this.HighlightRules=mi,this.foldingRules=new gi,this.$behaviour=this.$defaultBehaviour};ui.inherits(di,fi),(function(){this.lineCommentStart=";",this.blockComment=null,this.$id="ace/mode/ini"}).call(di.prototype),ni.Mode=di});ace.define("ace/ext/searchbox",["require","exports","module","ace/lib/dom","ace/lib/lang","ace/lib/event","ace/keyboard/hash_handler","ace/lib/keys"],function(ti,ni,oi){var ui=ti("../lib/dom"),fi=ti("../lib/lang"),mi=ti("../lib/event"),gi='.ace_search {background-color: #ddd;color: #666;border: 1px solid #cbcbcb;border-top: 0 none;overflow: hidden;margin: 0;padding: 4px 6px 0 4px;position: absolute;top: 0;z-index: 99;white-space: normal;}.ace_search.left {border-left: 0 none;border-radius: 0px 0px 5px 0px;left: 0;}.ace_search.right {border-radius: 0px 0px 0px 5px;border-right: 0 none;right: 0;}.ace_search_form, .ace_replace_form {margin: 0 20px 4px 0;overflow: hidden;line-height: 1.9;}.ace_replace_form {margin-right: 0;}.ace_search_form.ace_nomatch {outline: 1px solid red;}.ace_search_field {border-radius: 3px 0 0 3px;background-color: white;color: black;border: 1px solid #cbcbcb;border-right: 0 none;box-sizing: border-box!important;outline: 0;padding: 0;font-size: inherit;margin: 0;line-height: inherit;padding: 0 6px;min-width: 17em;vertical-align: top;}.ace_searchbtn {border: 1px solid #cbcbcb;line-height: inherit;display: inline-block;padding: 0 6px;background: #fff;border-right: 0 none;border-left: 1px solid #dcdcdc;cursor: pointer;margin: 0;position: relative;box-sizing: content-box!important;color: #666;}.ace_searchbtn:last-child {border-radius: 0 3px 3px 0;border-right: 1px solid #cbcbcb;}.ace_searchbtn:disabled {background: none;cursor: default;}.ace_searchbtn:hover {background-color: #eef1f6;}.ace_searchbtn.prev, .ace_searchbtn.next {padding: 0px 0.7em}.ace_searchbtn.prev:after, .ace_searchbtn.next:after {content: "";border: solid 2px #888;width: 0.5em;height: 0.5em;border-width: 2px 0 0 2px;display:inline-block;transform: rotate(-45deg);}.ace_searchbtn.next:after {border-width: 0 2px 2px 0 ;}.ace_searchbtn_close {background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAcCAYAAABRVo5BAAAAZ0lEQVR42u2SUQrAMAhDvazn8OjZBilCkYVVxiis8H4CT0VrAJb4WHT3C5xU2a2IQZXJjiQIRMdkEoJ5Q2yMqpfDIo+XY4k6h+YXOyKqTIj5REaxloNAd0xiKmAtsTHqW8sR2W5f7gCu5nWFUpVjZwAAAABJRU5ErkJggg==) no-repeat 50% 0;border-radius: 50%;border: 0 none;color: #656565;cursor: pointer;font: 16px/16px Arial;padding: 0;height: 14px;width: 14px;top: 9px;right: 7px;position: absolute;}.ace_searchbtn_close:hover {background-color: #656565;background-position: 50% 100%;color: white;}.ace_button {margin-left: 2px;cursor: pointer;-webkit-user-select: none;-moz-user-select: none;-o-user-select: none;-ms-user-select: none;user-select: none;overflow: hidden;opacity: 0.7;border: 1px solid rgba(100,100,100,0.23);padding: 1px;box-sizing: border-box!important;color: black;}.ace_button:hover {background-color: #eee;opacity:1;}.ace_button:active {background-color: #ddd;}.ace_button.checked {border-color: #3399ff;opacity:1;}.ace_search_options{margin-bottom: 3px;text-align: right;-webkit-user-select: none;-moz-user-select: none;-o-user-select: none;-ms-user-select: none;user-select: none;clear: both;}.ace_search_counter {float: left;font-family: arial;padding: 0 8px;}',di=ti("../keyboard/hash_handler").HashHandler,li=ti("../lib/keys"),ci=999;ui.importCssString(gi,"ace_searchbox");var pi=''.replace(/> +/g,">"),bi=function(vi,Ai,Li){var Bi=ui.createElement("div");Bi.innerHTML=pi,this.element=Bi.firstChild,this.setSession=this.setSession.bind(this),this.$init(),this.setEditor(vi)};(function(){this.setEditor=function(vi){vi.searchBox=this,vi.renderer.scroller.appendChild(this.element),this.editor=vi},this.setSession=function(vi){this.searchRange=null,this.$syncOptions(!0)},this.$initElements=function(vi){this.searchBox=vi.querySelector(".ace_search_form"),this.replaceBox=vi.querySelector(".ace_replace_form"),this.searchOption=vi.querySelector("[action=searchInSelection]"),this.replaceOption=vi.querySelector("[action=toggleReplace]"),this.regExpOption=vi.querySelector("[action=toggleRegexpMode]"),this.caseSensitiveOption=vi.querySelector("[action=toggleCaseSensitive]"),this.wholeWordOption=vi.querySelector("[action=toggleWholeWords]"),this.searchInput=this.searchBox.querySelector(".ace_search_field"),this.replaceInput=this.replaceBox.querySelector(".ace_search_field"),this.searchCounter=vi.querySelector(".ace_search_counter")},this.$init=function(){var vi=this.element;this.$initElements(vi);var Ai=this;mi.addListener(vi,"mousedown",function(Li){setTimeout(function(){Ai.activeInput.focus()},0),mi.stopPropagation(Li)}),mi.addListener(vi,"click",function(Li){var Bi=Li.target||Li.srcElement,Ri=Bi.getAttribute("action");Ri&&Ai[Ri]?Ai[Ri]():Ai.$searchBarKb.commands[Ri]&&Ai.$searchBarKb.commands[Ri].exec(Ai),mi.stopPropagation(Li)}),mi.addCommandKeyListener(vi,function(Li,Bi,Ri){var zi=li.keyCodeToString(Ri),Ei=Ai.$searchBarKb.findKeyCommand(Bi,zi);Ei&&Ei.exec&&(Ei.exec(Ai),mi.stopEvent(Li))}),this.$onChange=fi.delayedCall(function(){Ai.find(!1,!1)}),mi.addListener(this.searchInput,"input",function(){Ai.$onChange.schedule(20)}),mi.addListener(this.searchInput,"focus",function(){Ai.activeInput=Ai.searchInput,Ai.searchInput.value&&Ai.highlight()}),mi.addListener(this.replaceInput,"focus",function(){Ai.activeInput=Ai.replaceInput,Ai.searchInput.value&&Ai.highlight()})},this.$closeSearchBarKb=new di([{bindKey:"Esc",name:"closeSearchBar",exec:function(vi){vi.searchBox.hide()}}]),this.$searchBarKb=new di,this.$searchBarKb.bindKeys({"Ctrl-f|Command-f":function(vi){var Ai=vi.isReplace=!vi.isReplace;vi.replaceBox.style.display=Ai?"":"none",vi.replaceOption.checked=!1,vi.$syncOptions(),vi.searchInput.focus()},"Ctrl-H|Command-Option-F":function(vi){vi.replaceOption.checked=!0,vi.$syncOptions(),vi.replaceInput.focus()},"Ctrl-G|Command-G":function(vi){vi.findNext()},"Ctrl-Shift-G|Command-Shift-G":function(vi){vi.findPrev()},esc:function(vi){setTimeout(function(){vi.hide()})},Return:function(vi){vi.activeInput==vi.replaceInput&&vi.replace(),vi.findNext()},"Shift-Return":function(vi){vi.activeInput==vi.replaceInput&&vi.replace(),vi.findPrev()},"Alt-Return":function(vi){vi.activeInput==vi.replaceInput&&vi.replaceAll(),vi.findAll()},Tab:function(vi){(vi.activeInput==vi.replaceInput?vi.searchInput:vi.replaceInput).focus()}}),this.$searchBarKb.addCommands([{name:"toggleRegexpMode",bindKey:{win:"Alt-R|Alt-/",mac:"Ctrl-Alt-R|Ctrl-Alt-/"},exec:function(vi){vi.regExpOption.checked=!vi.regExpOption.checked,vi.$syncOptions()}},{name:"toggleCaseSensitive",bindKey:{win:"Alt-C|Alt-I",mac:"Ctrl-Alt-R|Ctrl-Alt-I"},exec:function(vi){vi.caseSensitiveOption.checked=!vi.caseSensitiveOption.checked,vi.$syncOptions()}},{name:"toggleWholeWords",bindKey:{win:"Alt-B|Alt-W",mac:"Ctrl-Alt-B|Ctrl-Alt-W"},exec:function(vi){vi.wholeWordOption.checked=!vi.wholeWordOption.checked,vi.$syncOptions()}},{name:"toggleReplace",exec:function(vi){vi.replaceOption.checked=!vi.replaceOption.checked,vi.$syncOptions()}},{name:"searchInSelection",exec:function(vi){vi.searchOption.checked=!vi.searchRange,vi.setSearchRange(vi.searchOption.checked&&vi.editor.getSelectionRange()),vi.$syncOptions()}}]),this.setSearchRange=function(vi){this.searchRange=vi,vi?this.searchRangeMarker=this.editor.session.addMarker(vi,"ace_active-line"):this.searchRangeMarker&&(this.editor.session.removeMarker(this.searchRangeMarker),this.searchRangeMarker=null)},this.$syncOptions=function(vi){ui.setCssClass(this.replaceOption,"checked",this.searchRange),ui.setCssClass(this.searchOption,"checked",this.searchOption.checked),this.replaceOption.textContent=this.replaceOption.checked?"-":"+",ui.setCssClass(this.regExpOption,"checked",this.regExpOption.checked),ui.setCssClass(this.wholeWordOption,"checked",this.wholeWordOption.checked),ui.setCssClass(this.caseSensitiveOption,"checked",this.caseSensitiveOption.checked),this.replaceBox.style.display=this.replaceOption.checked?"":"none",this.find(!1,!1,vi)},this.highlight=function(vi){this.editor.session.highlight(vi||this.editor.$search.$options.re),this.editor.renderer.updateBackMarkers()},this.find=function(vi,Ai,Li){var Bi=this.editor.find(this.searchInput.value,{skipCurrent:vi,backwards:Ai,wrap:!0,regExp:this.regExpOption.checked,caseSensitive:this.caseSensitiveOption.checked,wholeWord:this.wholeWordOption.checked,preventScroll:Li,range:this.searchRange}),Ri=!Bi&&this.searchInput.value;ui.setCssClass(this.searchBox,"ace_nomatch",Ri),this.editor._emit("findSearchBox",{match:!Ri}),this.highlight(),this.updateCounter()},this.updateCounter=function(){var vi=this.editor,Ai=vi.$search.$options.re,Li=0,Bi=0;if(Ai){var Ri=this.searchRange?vi.session.getTextRange(this.searchRange):vi.getValue(),zi=vi.session.doc.positionToIndex(vi.selection.anchor);this.searchRange&&(zi-=vi.session.doc.positionToIndex(this.searchRange.start));for(var Ei=Ai.lastIndex=0,Ii;(Ii=Ai.exec(Ri))&&(Li++,Ei=Ii.index,Ei<=zi&&Bi++,!(Li>ci||!Ii[0]&&(Ai.lastIndex=Ei+=1,Ei>=Ri.length))););}this.searchCounter.textContent=Bi+" of "+(Li>ci?ci+"+":Li)},this.findNext=function(){this.find(!0,!1)},this.findPrev=function(){this.find(!0,!0)},this.findAll=function(){var vi=this.editor.findAll(this.searchInput.value,{regExp:this.regExpOption.checked,caseSensitive:this.caseSensitiveOption.checked,wholeWord:this.wholeWordOption.checked}),Ai=!vi&&this.searchInput.value;ui.setCssClass(this.searchBox,"ace_nomatch",Ai),this.editor._emit("findSearchBox",{match:!Ai}),this.highlight(),this.hide()},this.replace=function(){this.editor.getReadOnly()||this.editor.replace(this.replaceInput.value)},this.replaceAndFindNext=function(){this.editor.getReadOnly()||(this.editor.replace(this.replaceInput.value),this.findNext())},this.replaceAll=function(){this.editor.getReadOnly()||this.editor.replaceAll(this.replaceInput.value)},this.hide=function(){this.active=!1,this.setSearchRange(null),this.editor.off("changeSession",this.setSession),this.element.style.display="none",this.editor.keyBinding.removeKeyboardHandler(this.$closeSearchBarKb),this.editor.focus()},this.show=function(vi,Ai){this.active=!0,this.editor.on("changeSession",this.setSession),this.element.style.display="",this.replaceOption.checked=Ai,vi&&(this.searchInput.value=vi),this.searchInput.focus(),this.searchInput.select(),this.editor.keyBinding.addKeyboardHandler(this.$closeSearchBarKb),this.$syncOptions(!0)},this.isFocused=function(){var vi=document.activeElement;return vi==this.searchInput||vi==this.replaceInput}}).call(bi.prototype),ni.SearchBox=bi,ni.Search=function(vi,Ai){var Li=vi.searchBox||new bi(vi);Li.show(vi.session.getTextRange(),Ai)}});(function(){ace.acequire(["ace/ext/searchbox"],function(){})})();ace.define("ace/theme/vito",["require","exports","module","ace/lib/dom"],function(ti,ni){ni.isDark=!0,ni.cssClass="ace-vito rounded-lg w-full",ni.cssText=` .ace-vito .ace_scrollbar::-webkit-scrollbar { width: 12px;} .ace-vito .ace_scrollbar::-webkit-scrollbar-track { background: #111827;} .ace-vito .ace_scrollbar::-webkit-scrollbar-thumb { background: #374151; border-radius: 4px;} .ace-vito .ace_gutter {background: #151c27;color: rgb(128,145,160)} .ace-vito .ace_print-margin {width: 1px;background: #555555} .ace-vito {background-color: #0f172a;color: #F9FAFB} .ace-vito .ace_cursor {color: #F9FAFB} .ace-vito .ace_marker-layer .ace_selection {background: rgba(179, 101, 57, 0.75)} .ace-vito.ace_multiselect .ace_selection.ace_start {box-shadow: 0 0 3px 0px #002240;} .ace-vito .ace_marker-layer .ace_step {background: rgb(127, 111, 19)} .ace-vito .ace_marker-layer .ace_bracket {margin: -1px 0 0 -1px;border: 1px solid rgba(255, 255, 255, 0.15)} .ace-vito .ace_marker-layer .ace_active-line {background: rgba(24, 182, 155, 0.10)} .ace-vito .ace_gutter-active-line {background-color: rgba(0, 0, 0, 0.35)} .ace-vito .ace_marker-layer .ace_selected-word {border: 1px solid rgba(179, 101, 57, 0.75)} .ace-vito .ace_invisible {color: rgba(255, 255, 255, 0.15)} .ace-vito .ace_keyword,.ace-vito .ace_meta {color: #FF9D00} .ace-vito .ace_constant,.ace-vito .ace_constant.ace_character,.ace-vito .ace_constant.ace_character.ace_escape,.ace-vito .ace_constant.ace_other {color: #FF628C} .ace-vito .ace_invalid {color: #F8F8F8;background-color: #800F00} .ace-vito .ace_support {color: #80FFBB} .ace-vito .ace_support.ace_constant {color: #EB939A} .ace-vito .ace_fold {background-color: #FF9D00;border-color: #F9FAFB} .ace-vito .ace_support.ace_function {color: #FFB054} .ace-vito .ace_storage {color: #FFEE80} .ace-vito .ace_entity {color: #FFDD00} .ace-vito .ace_string {color: #7cd827} .ace-vito .ace_string.ace_regexp {color: #80FFC2} .ace-vito .ace_comment {font-style: italic;color: #6B7280} .ace-vito .ace_heading,.ace-vito .ace_markup.ace_heading {color: #C8E4FD;background-color: #001221} .ace-vito .ace_list,.ace-vito .ace_markup.ace_list {background-color: #130D26} .ace-vito .ace_variable {color: #CCCCCC} .ace-vito .ace_variable.ace_language {color: #FF80E1} .ace-vito .ace_meta.ace_tag {color: #9EFFFF} .ace-vito .ace_indent-guide {background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAEklEQVQImWNgYGBgYHCLSvkPAAP3AgSDTRd4AAAAAElFTkSuQmCC) right repeat-y} `;var oi=ti("../lib/dom");oi.importCssString(ni.cssText,ni.cssClass)});ace.define("ace/mode/env",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/env_highlight_rules","ace/mode/folding/ini","ace/mode/behaviour"],function(ti,ni){var oi=ti("../lib/oop"),ui=ti("./text").Mode,fi=ti("./behaviour").Behaviour,mi=ti("./env_highlight_rules").envHighlightRules,gi=function(){this.HighlightRules=mi,this.$behaviour=new fi};oi.inherits(gi,ui),(function(){this.lineCommentStart="#",this.blockComment=null,this.$id="ace/mode/env"}).call(gi.prototype),ni.Mode=gi});ace.define("ace/mode/env_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],function(ti,ni,oi){var ui=ti("../lib/oop"),fi=ti("./text_highlight_rules").TextHighlightRules,mi=function(){this.$rules={start:[{token:"punctuation.definition.comment.env",regex:"#.*",push_:[{token:"comment.line.number-sign.env",regex:"$|^",next:"pop"},{defaultToken:"comment.line.number-sign.env"}]},{token:"punctuation.definition.comment.env",regex:"#.*",push_:[{token:"comment.line.semicolon.env",regex:"$|^",next:"pop"},{defaultToken:"comment.line.semicolon.env"}]},{token:["keyword.other.definition.env","text","punctuation.separator.key-value.env"],regex:"\\b([a-zA-Z0-9_.-]+)\\b(\\s*)(=)"},{token:["punctuation.definition.entity.env","constant.section.group-title.env","punctuation.definition.entity.env"],regex:"^(\\[)(.*?)(\\])"},{token:"punctuation.definition.string.begin.env",regex:"'",push:[{token:"punctuation.definition.string.end.env",regex:"'",next:"pop"},{token:"constant.language.escape",regex:"\\\\(?:[\\\\0abtrn;#=:]|x[a-fA-F\\d]{4})"},{defaultToken:"string.quoted.single.env"}]},{token:"punctuation.definition.string.begin.env",regex:'"',push:[{token:"constant.language.escape",regex:"\\\\(?:[\\\\0abtrn;#=:]|x[a-fA-F\\d]{4})"},{token:"support.constant.color",regex:/\${[\w]+}/},{token:"punctuation.definition.string.end.env",regex:'"',next:"pop"},{defaultToken:"string.quoted.double.env"}]},{token:"constant.language.boolean",regex:/(?:true|false)\b/}]},this.normalizeRules()};mi.metaData={fileTypes:["env"],keyEquivalent:"^~I",name:"Env",scopeName:"source.env"},ui.inherits(mi,fi),ni.envHighlightRules=mi});ace.define("ace/mode/nginx_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],function(ti,ni){var oi=ti("../lib/oop"),ui=ti("./text_highlight_rules").TextHighlightRules,fi=function(){var mi="include|index|absolute_redirect|aio|output_buffers|directio|sendfile|aio_write|alias|root|chunked_transfer_encoding|client_body_buffer_size|client_body_in_file_only|client_body_in_single_buffer|client_body_temp_path|client_body_timeout|client_header_buffer_size|client_header_timeout|client_max_body_size|connection_pool_size|default_type|disable_symlinks|directio_alignment|error_page|etag|if_modified_since|ignore_invalid_headers|internal|keepalive_requests|keepalive_disable|keepalive_timeout|limit_except|large_client_header_buffers|limit_rate|limit_rate_after|lingering_close|lingering_time|lingering_timeout|listen|log_not_found|log_subrequest|max_ranges|merge_slashes|msie_padding|msie_refresh|open_file_cache|open_file_cache_errors|open_file_cache_min_uses|open_file_cache_valid|output_buffers|port_in_redirect|postpone_output|read_ahead|recursive_error_pages|request_pool_size|reset_timedout_connection|resolver|resolver_timeout|satisfy|send_lowat|send_timeout|sendfile|sendfile_max_chunk|server_name|server_name_in_redirect|server_names_hash_bucket_size|server_names_hash_max_size|server_tokens|subrequest_output_buffer_size|tcp_nodelay|tcp_nopush|try_files|types|types_hash_bucket_size|types_hash_max_size|underscores_in_headers|variables_hash_bucket_size|variables_hash_max_size|accept_mutex|accept_mutex_delay|debug_connection|error_log|daemon|debug_points|env|load_module|lock_file|master_process|multi_accept|pcre_jit|pid|ssl_engine|thread_pool|timer_resolution|use|user|worker_aio_requests|worker_connections|worker_cpu_affinity|worker_priority|worker_processes|worker_rlimit_core|worker_rlimit_nofile|worker_shutdown_timeout|working_directory|allow|deny|add_before_body|add_after_body|addition_types|api|status_zone|auth_basic|auth_basic_user_file|auth_jwt|auth_jwt|auth_jwt_claim_set|auth_jwt_header_set|auth_jwt_key_file|auth_jwt_key_request|auth_jwt_leeway|auth_request|auth_request_set|autoindex|autoindex_exact_size|autoindex_format|autoindex_localtime|ancient_browser|ancient_browser_value|modern_browser|modern_browser_value|charset|charset_map|charset_types|override_charset|source_charset|create_full_put_path|dav_access|dav_methods|min_delete_depth|empty_gif|f4f|f4f_buffer_size|fastcgi_bind|fastcgi_buffer_size|fastcgi_buffering|fastcgi_buffers|fastcgi_busy_buffers_size|fastcgi_cache|fastcgi_cache_background_update|fastcgi_cache_bypass|fastcgi_cache_key|fastcgi_cache_lock|fastcgi_cache_lock_age|fastcgi_cache_lock_timeout|fastcgi_cache_max_range_offset|fastcgi_cache_methods|fastcgi_cache_min_uses|fastcgi_cache_min_uses|fastcgi_cache_path|fastcgi_cache_purge|fastcgi_cache_revalidate|fastcgi_cache_use_stale|fastcgi_cache_valid|fastcgi_catch_stderr|fastcgi_connect_timeout|fastcgi_force_ranges|fastcgi_hide_header|fastcgi_ignore_client_abort|fastcgi_ignore_headers|fastcgi_index|fastcgi_intercept_errors|fastcgi_keep_conn|fastcgi_limit_rate|fastcgi_max_temp_file_size|fastcgi_next_upstream|fastcgi_next_upstream_timeout|fastcgi_next_upstream_tries|fastcgi_no_cache|fastcgi_param|fastcgi_pass|fastcgi_pass_header|fastcgi_pass_request_body|fastcgi_pass_request_headers|fastcgi_read_timeout|fastcgi_request_buffering|fastcgi_send_lowat|fastcgi_send_timeout|fastcgi_socket_keepalive|fastcgi_split_path_info|fastcgi_store|fastcgi_store_access|fastcgi_temp_file_write_size|fastcgi_temp_path|flv|geoip_country|geoip_city|geoip_org|geoip_proxy|geoip_proxy_recursive|grpc_bind|grpc_buffer_size|grpc_connect_timeout|grpc_hide_header|grpc_ignore_headers|grpc_intercept_errors|grpc_next_upstream|grpc_next_upstream_timeout|grpc_next_upstream_tries|grpc_pass|grpc_pass_header|grpc_read_timeout|grpc_send_timeout|grpc_set_header|grpc_socket_keepalive|grpc_ssl_certificate|grpc_ssl_certificate_key|grpc_ssl_ciphers|grpc_ssl_crl|grpc_ssl_name|grpc_ssl_password_file|grpc_ssl_protocols|grpc_ssl_server_name|grpc_ssl_session_reuse|grpc_ssl_trusted_certificate|grpc_ssl_verify|grpc_ssl_verify_depth|gunzip|gunzip_buffers|gzip|gzip_buffers|gzip_comp_level|gzip_disable|gzip_http_version|gzip_min_length|gzip_proxied|gzip_types|gzip_vary|gzip_static|add_header|add_trailer|expires|hlshls_buffers|hls_forward_args|hls_fragment|hls_mp4_buffer_size|hls_mp4_max_buffer_size|image_filter|image_filter_buffer|image_filter_interlace|image_filter_jpeg_quality|image_filter_sharpen|image_filter_transparency|image_filter_webp_quality|js_content|js_include|js_set|keyval|keyval_zone|limit_conn|limit_conn_log_level|limit_conn_status|limit_conn_zone|limit_zone|limit_req|limit_req_log_level|limit_req_status|limit_req_zone|access_log|log_format|open_log_file_cache|map_hash_bucket_size|map_hash_max_size|memcached_bind|memcached_buffer_size|memcached_connect_timeout|memcached_force_ranges|memcached_gzip_flag|memcached_next_upstream|memcached_next_upstream_timeout|memcached_next_upstream_tries|memcached_pass|memcached_read_timeout|memcached_send_timeout|memcached_socket_keepalive|mirror|mirror_request_body|mp4|mp4_buffer_size|mp4_max_buffer_size|mp4_limit_rate|mp4_limit_rate_after|perl_modules|perl_require|perl_set|proxy_bind|proxy_buffer_size|proxy_buffering|proxy_buffers|proxy_busy_buffers_size|proxy_cache|proxy_cache_background_update|proxy_cache_bypass|proxy_cache_convert_head|proxy_cache_key|proxy_cache_lock|proxy_cache_lock_age|proxy_cache_lock_timeout|proxy_cache_max_range_offset|proxy_cache_methods|proxy_cache_min_uses|proxy_cache_path|proxy_cache_purge|proxy_cache_revalidate|proxy_cache_use_stale|proxy_cache_valid|proxy_connect_timeout|proxy_cookie_domain|proxy_cookie_path|proxy_force_ranges|proxy_headers_hash_bucket_size|proxy_headers_hash_max_size|proxy_hide_header|proxy_http_version|proxy_ignore_client_abort|proxy_ignore_headers|proxy_intercept_errors|proxy_limit_rate|proxy_max_temp_file_size|proxy_method|proxy_next_upstream|proxy_next_upstream_timeout|proxy_next_upstream_tries|proxy_no_cache|proxy_pass|proxy_pass_header|proxy_pass_request_body|proxy_pass_request_headers|proxy_read_timeout|proxy_redirect|proxy_send_lowat|proxy_send_timeout|proxy_set_body|proxy_set_header|proxy_socket_keepalive|proxy_ssl_certificate|proxy_ssl_certificate_key|proxy_ssl_ciphers|proxy_ssl_crl|proxy_ssl_name|proxy_ssl_password_file|proxy_ssl_protocols|proxy_ssl_server_name|proxy_ssl_session_reuse|proxy_ssl_trusted_certificate|proxy_ssl_verify|proxy_ssl_verify_depth|proxy_store|proxy_store_access|proxy_temp_file_write_size|proxy_temp_path|random_index|set_real_ip_from|real_ip_header|real_ip_recursive|referer_hash_bucket_size|referer_hash_max_size|valid_referers|break|return|rewrite_log|set|uninitialized_variable_warn|scgi_bind|scgi_buffer_size|scgi_buffering|scgi_buffers|scgi_busy_buffers_size|scgi_cache|scgi_cache_background_update|scgi_cache_key|scgi_cache_lock|scgi_cache_lock_age|scgi_cache_lock_timeout|scgi_cache_max_range_offset|scgi_cache_methods|scgi_cache_min_uses|scgi_cache_path|scgi_cache_purge|scgi_cache_revalidate|scgi_cache_use_stale|scgi_cache_valid|scgi_connect_timeout|scgi_force_ranges|scgi_hide_header|scgi_ignore_client_abort|scgi_ignore_headers|scgi_intercept_errors|scgi_limit_rate|scgi_max_temp_file_size|scgi_next_upstream|scgi_next_upstream_timeout|scgi_next_upstream_tries|scgi_no_cache|scgi_param|scgi_pass|scgi_pass_header|scgi_pass_request_body|scgi_pass_request_headers|scgi_read_timeout|scgi_request_buffering|scgi_send_timeout|scgi_socket_keepalive|scgi_store|scgi_store_access|scgi_temp_file_write_size|scgi_temp_path|secure_link|secure_link_md5|secure_link_secret|session_log|session_log_format|session_log_zone|slice|spdy_chunk_size|spdy_headers_comp|ssi|ssi_last_modified|ssi_min_file_chunk|ssi_silent_errors|ssi_types|ssi_value_length|ssl|ssl_buffer_size|ssl_certificate|ssl_certificate_key|ssl_ciphers|ssl_client_certificate|ssl_crl|ssl_dhparam|ssl_early_data|ssl_ecdh_curve|ssl_password_file|ssl_prefer_server_ciphers|ssl_protocols|ssl_session_cache|ssl_session_ticket_key|ssl_session_tickets|ssl_session_timeout|ssl_stapling|ssl_stapling_file|ssl_stapling_responder|ssl_stapling_verify|ssl_trusted_certificate|ssl_verify_client|ssl_verify_depth|status|status_format|status_zone|stub_status|sub_filter|sub_filter_last_modified|sub_filter_once|sub_filter_types|server|zone|state|hash|ip_hash|keepalive|keepalive_requests|keepalive_timeout|ntlm|least_conn|least_time|queue|random|sticky|sticky_cookie_insert|upstream_conf|health_check|userid|userid_domain|userid_expires|userid_mark|userid_name|userid_p3p|userid_path|userid_service|uwsgi_bind|uwsgi_buffer_size|uwsgi_buffering|uwsgi_buffers|uwsgi_busy_buffers_size|uwsgi_cache|uwsgi_cache_background_update|uwsgi_cache_bypass|uwsgi_cache_key|uwsgi_cache_lock|uwsgi_cache_lock_age|uwsgi_cache_lock_timeout|uwsgi_cache_max_range_offset|uwsgi_cache_methods|uwsgi_cache_min_uses|uwsgi_cache_path|uwsgi_cache_purge|uwsgi_cache_revalidate|uwsgi_cache_use_stale|uwsgi_cache_valid|uwsgi_connect_timeout|uwsgi_force_ranges|uwsgi_hide_header|uwsgi_ignore_client_abort|uwsgi_ignore_headers|uwsgi_intercept_errors|uwsgi_limit_rate|uwsgi_max_temp_file_size|uwsgi_modifier1|uwsgi_modifier2|uwsgi_next_upstream|uwsgi_next_upstream_timeout|uwsgi_next_upstream_tries|uwsgi_no_cache|uwsgi_param|uwsgi_pass|uwsgi_pass_header|uwsgi_pass_request_body|uwsgi_pass_request_headers|uwsgi_read_timeout|uwsgi_request_buffering|uwsgi_send_timeout|uwsgi_socket_keepalive|uwsgi_ssl_certificate|uwsgi_ssl_certificate_key|uwsgi_ssl_ciphers|uwsgi_ssl_crl|uwsgi_ssl_name|uwsgi_ssl_password_file|uwsgi_ssl_protocols|uwsgi_ssl_server_name|uwsgi_ssl_session_reuse|uwsgi_ssl_trusted_certificate|uwsgi_ssl_verify|uwsgi_ssl_verify_depth|uwsgi_store|uwsgi_store_access|uwsgi_temp_file_write_size|uwsgi_temp_path|http2_body_preread_size|http2_chunk_size|http2_idle_timeout|http2_max_concurrent_pushes|http2_max_concurrent_streams|http2_max_field_size|http2_max_header_size|http2_max_requests|http2_push|http2_push_preload|http2_recv_buffer_size|http2_recv_timeout|xml_entities|xslt_last_modified|xslt_param|xslt_string_param|xslt_stylesheet|xslt_types|listen|protocol|resolver|resolver_timeout|timeout|auth_http|auth_http_header|auth_http_pass_client_cert|auth_http_timeout|proxy_buffer|proxy_pass_error_message|proxy_timeout|xclient|starttls|imap_auth|imap_capabilities|imap_client_buffer|pop3_auth|pop3_capabilities|smtp_auth|smtp_capabilities|smtp_client_buffer|smtp_greeting_delay|preread_buffer_size|preread_timeout|proxy_protocol_timeout|js_access|js_filter|js_preread|proxy_download_rate|proxy_requests|proxy_responses|proxy_upload_rate|ssl_handshake_timeout|ssl_preread|health_check_timeout|zone_sync|zone_sync_buffers|zone_sync_connect_retry_interval|zone_sync_connect_timeout|zone_sync_interval|zone_sync_recv_buffer_size|zone_sync_server|zone_sync_ssl|zone_sync_ssl_certificate|zone_sync_ssl_certificate_key|zone_sync_ssl_ciphers|zone_sync_ssl_crl|zone_sync_ssl_name|zone_sync_ssl_password_file|zone_sync_ssl_protocols|zone_sync_ssl_server_name|zone_sync_ssl_trusted_certificate|zone_sync_ssl_verify_depth|zone_sync_timeout|google_perftools_profiles|proxy|perl";this.$rules={start:[{token:["storage.type","text","string.regexp","paren.lparen"],regex:"\\b(location)(\\s+)([\\^]?~[\\*]?\\s+.*?)({)"},{token:["storage.type","text","text","paren.lparen"],regex:"\\b(location|match|upstream)(\\s+)(.*?)({)"},{token:["storage.type","text","string","text","variable","text","paren.lparen"],regex:'\\b(split_clients|map)(\\s+)(\\".*\\")(\\s+)(\\$[\\w_]+)(\\s*)({)'},{token:["storage.type","text","paren.lparen"],regex:"\\b(http|events|server|mail|stream)(\\s*)({)"},{token:["storage.type","text","variable","text","variable","text","paren.lparen"],regex:"\\b(geo|map)(\\s+)(\\$[\\w_]+)?(\\s*)(\\$[\\w_]+)(\\s*)({)"},{token:"paren.rparen",regex:"(})"},{token:"paren.lparen",regex:"({)"},{token:["storage.type","text","paren.lparen"],regex:"\\b(if)(\\s+)(\\()",push:[{token:"paren.rparen",regex:"\\)|$",next:"pop"},{include:"lexical"}]},{token:"keyword",regex:"\\b("+mi+")\\b",push:[{token:"punctuation",regex:";",next:"pop"},{include:"lexical"}]},{token:["keyword","text","string.regexp","text","punctuation"],regex:"\\b(rewrite)(\\s)(\\S*)(\\s.*)(;)"},{include:"lexical"},{include:"comments"}],comments:[{token:"comment",regex:"#.*$"}],lexical:[{token:"string",regex:"'",push:[{token:"string",regex:"'",next:"pop"},{include:"variables"},{defaultToken:"string"}]},{token:"string",regex:'"',push:[{token:"string",regex:'"',next:"pop"},{include:"variables"},{defaultToken:"string"}]},{token:"string.regexp",regex:/[!]?[~][*]?\s+.*(?=\))/},{token:"string.regexp",regex:/[\^]\S*(?=;$)/},{token:"string.regexp",regex:/[\^]\S*(?=;|\s|$)/},{token:"keyword.operator",regex:"\\B(\\+|\\-|\\*|\\=|!=)\\B"},{token:"constant.language",regex:"\\b(true|false|on|off|all|any|main|always)\\b"},{token:"text",regex:"\\s+"},{include:"variables"}],variables:[{token:"variable",regex:"\\$[\\w_]+"},{token:"variable.language",regex:"\\b(GET|POST|HEAD)\\b"}]},this.normalizeRules()};oi.inherits(fi,ui),ni.NginxHighlightRules=fi});ace.define("ace/mode/nginx",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/nginx_highlight_rules"],function(ti,ni,oi){var ui=ti("../lib/oop"),fi=ti("./text").Mode,mi=ti("./nginx_highlight_rules").NginxHighlightRules,gi=function(){this.HighlightRules=mi};ui.inherits(gi,fi),(function(){this.$id="ace/mode/nginx"}).call(gi.prototype),ni.Mode=gi});window.initAceEditor=function(ti={}){const ni=JSON.parse(ti.value||""),oi=ace$1.edit(ti.id);return oi.setTheme("ace/theme/vito"),oi.getSession().setMode(`ace/mode/${ti.lang||"plain_text"}`),oi.setValue(ni,-1),oi.clearSelection(),oi.focus(),oi.setOptions({enableBasicAutocompletion:!0,enableSnippets:!0,enableLiveAutocompletion:!0,printMargin:!1}),oi.renderer.setScrollMargin(15,15,0,0),oi.renderer.setPadding(15),oi.getSession().on("change",function(){document.getElementById(`textarea-${ti.id}`).value=oi.getValue()}),window.addEventListener("resize",function(){oi.resize()}),document.getElementById(`textarea-${ti.id}`).innerHTML=ni,oi};var flushPending=!1,flushing=!1,queue=[],lastFlushedIndex=-1;function scheduler(ti){queueJob(ti)}function queueJob(ti){queue.includes(ti)||queue.push(ti),queueFlush()}function dequeueJob(ti){let ni=queue.indexOf(ti);ni!==-1&&ni>lastFlushedIndex&&queue.splice(ni,1)}function queueFlush(){!flushing&&!flushPending&&(flushPending=!0,queueMicrotask(flushJobs))}function flushJobs(){flushPending=!1,flushing=!0;for(let ti=0;titi.effect(ni,{scheduler:oi=>{shouldSchedule?scheduler(oi):oi()}}),raw=ti.raw}function overrideEffect(ti){effect=ti}function elementBoundEffect(ti){let ni=()=>{};return[ui=>{let fi=effect(ui);return ti._x_effects||(ti._x_effects=new Set,ti._x_runEffects=()=>{ti._x_effects.forEach(mi=>mi())}),ti._x_effects.add(fi),ni=()=>{fi!==void 0&&(ti._x_effects.delete(fi),release(fi))},fi},()=>{ni()}]}function watch(ti,ni){let oi=!0,ui,fi=effect(()=>{let mi=ti();JSON.stringify(mi),oi?ui=mi:queueMicrotask(()=>{ni(mi,ui),ui=mi}),oi=!1});return()=>release(fi)}var onAttributeAddeds=[],onElRemoveds=[],onElAddeds=[];function onElAdded(ti){onElAddeds.push(ti)}function onElRemoved(ti,ni){typeof ni=="function"?(ti._x_cleanups||(ti._x_cleanups=[]),ti._x_cleanups.push(ni)):(ni=ti,onElRemoveds.push(ni))}function onAttributesAdded(ti){onAttributeAddeds.push(ti)}function onAttributeRemoved(ti,ni,oi){ti._x_attributeCleanups||(ti._x_attributeCleanups={}),ti._x_attributeCleanups[ni]||(ti._x_attributeCleanups[ni]=[]),ti._x_attributeCleanups[ni].push(oi)}function cleanupAttributes(ti,ni){ti._x_attributeCleanups&&Object.entries(ti._x_attributeCleanups).forEach(([oi,ui])=>{(ni===void 0||ni.includes(oi))&&(ui.forEach(fi=>fi()),delete ti._x_attributeCleanups[oi])})}function cleanupElement(ti){if(ti._x_cleanups)for(;ti._x_cleanups.length;)ti._x_cleanups.pop()()}var observer=new MutationObserver(onMutate),currentlyObserving=!1;function startObservingMutations(){observer.observe(document,{subtree:!0,childList:!0,attributes:!0,attributeOldValue:!0}),currentlyObserving=!0}function stopObservingMutations(){flushObserver(),observer.disconnect(),currentlyObserving=!1}var queuedMutations=[];function flushObserver(){let ti=observer.takeRecords();queuedMutations.push(()=>ti.length>0&&onMutate(ti));let ni=queuedMutations.length;queueMicrotask(()=>{if(queuedMutations.length===ni)for(;queuedMutations.length>0;)queuedMutations.shift()()})}function mutateDom(ti){if(!currentlyObserving)return ti();stopObservingMutations();let ni=ti();return startObservingMutations(),ni}var isCollecting=!1,deferredMutations=[];function deferMutations(){isCollecting=!0}function flushAndStopDeferringMutations(){isCollecting=!1,onMutate(deferredMutations),deferredMutations=[]}function onMutate(ti){if(isCollecting){deferredMutations=deferredMutations.concat(ti);return}let ni=new Set,oi=new Set,ui=new Map,fi=new Map;for(let mi=0;migi.nodeType===1&&ni.add(gi)),ti[mi].removedNodes.forEach(gi=>gi.nodeType===1&&oi.add(gi))),ti[mi].type==="attributes")){let gi=ti[mi].target,di=ti[mi].attributeName,li=ti[mi].oldValue,ci=()=>{ui.has(gi)||ui.set(gi,[]),ui.get(gi).push({name:di,value:gi.getAttribute(di)})},pi=()=>{fi.has(gi)||fi.set(gi,[]),fi.get(gi).push(di)};gi.hasAttribute(di)&&li===null?ci():gi.hasAttribute(di)?(pi(),ci()):pi()}fi.forEach((mi,gi)=>{cleanupAttributes(gi,mi)}),ui.forEach((mi,gi)=>{onAttributeAddeds.forEach(di=>di(gi,mi))});for(let mi of oi)ni.has(mi)||onElRemoveds.forEach(gi=>gi(mi));ni.forEach(mi=>{mi._x_ignoreSelf=!0,mi._x_ignore=!0});for(let mi of ni)oi.has(mi)||mi.isConnected&&(delete mi._x_ignoreSelf,delete mi._x_ignore,onElAddeds.forEach(gi=>gi(mi)),mi._x_ignore=!0,mi._x_ignoreSelf=!0);ni.forEach(mi=>{delete mi._x_ignoreSelf,delete mi._x_ignore}),ni=null,oi=null,ui=null,fi=null}function scope(ti){return mergeProxies(closestDataStack(ti))}function addScopeToNode(ti,ni,oi){return ti._x_dataStack=[ni,...closestDataStack(oi||ti)],()=>{ti._x_dataStack=ti._x_dataStack.filter(ui=>ui!==ni)}}function closestDataStack(ti){return ti._x_dataStack?ti._x_dataStack:typeof ShadowRoot=="function"&&ti instanceof ShadowRoot?closestDataStack(ti.host):ti.parentNode?closestDataStack(ti.parentNode):[]}function mergeProxies(ti){return new Proxy({objects:ti},mergeProxyTrap)}var mergeProxyTrap={ownKeys({objects:ti}){return Array.from(new Set(ti.flatMap(ni=>Object.keys(ni))))},has({objects:ti},ni){return ni==Symbol.unscopables?!1:ti.some(oi=>Object.prototype.hasOwnProperty.call(oi,ni)||Reflect.has(oi,ni))},get({objects:ti},ni,oi){return ni=="toJSON"?collapseProxies:Reflect.get(ti.find(ui=>Reflect.has(ui,ni))||{},ni,oi)},set({objects:ti},ni,oi,ui){const fi=ti.find(gi=>Object.prototype.hasOwnProperty.call(gi,ni))||ti[ti.length-1],mi=Object.getOwnPropertyDescriptor(fi,ni);return mi!=null&&mi.set&&(mi!=null&&mi.get)?Reflect.set(fi,ni,oi,ui):Reflect.set(fi,ni,oi)}};function collapseProxies(){return Reflect.ownKeys(this).reduce((ni,oi)=>(ni[oi]=Reflect.get(this,oi),ni),{})}function initInterceptors(ti){let ni=ui=>typeof ui=="object"&&!Array.isArray(ui)&&ui!==null,oi=(ui,fi="")=>{Object.entries(Object.getOwnPropertyDescriptors(ui)).forEach(([mi,{value:gi,enumerable:di}])=>{if(di===!1||gi===void 0||typeof gi=="object"&&gi!==null&&gi.__v_skip)return;let li=fi===""?mi:`${fi}.${mi}`;typeof gi=="object"&&gi!==null&&gi._x_interceptor?ui[mi]=gi.initialize(ti,li,mi):ni(gi)&&gi!==ui&&!(gi instanceof Element)&&oi(gi,li)})};return oi(ti)}function interceptor(ti,ni=()=>{}){let oi={initialValue:void 0,_x_interceptor:!0,initialize(ui,fi,mi){return ti(this.initialValue,()=>get(ui,fi),gi=>set(ui,fi,gi),fi,mi)}};return ni(oi),ui=>{if(typeof ui=="object"&&ui!==null&&ui._x_interceptor){let fi=oi.initialize.bind(oi);oi.initialize=(mi,gi,di)=>{let li=ui.initialize(mi,gi,di);return oi.initialValue=li,fi(mi,gi,di)}}else oi.initialValue=ui;return oi}}function get(ti,ni){return ni.split(".").reduce((oi,ui)=>oi[ui],ti)}function set(ti,ni,oi){if(typeof ni=="string"&&(ni=ni.split(".")),ni.length===1)ti[ni[0]]=oi;else{if(ni.length===0)throw error;return ti[ni[0]]||(ti[ni[0]]={}),set(ti[ni[0]],ni.slice(1),oi)}}var magics={};function magic(ti,ni){magics[ti]=ni}function injectMagics(ti,ni){return Object.entries(magics).forEach(([oi,ui])=>{let fi=null;function mi(){if(fi)return fi;{let[gi,di]=getElementBoundUtilities(ni);return fi={interceptor,...gi},onElRemoved(ni,di),fi}}Object.defineProperty(ti,`$${oi}`,{get(){return ui(ni,mi())},enumerable:!1})}),ti}function tryCatch(ti,ni,oi,...ui){try{return oi(...ui)}catch(fi){handleError(fi,ti,ni)}}function handleError(ti,ni,oi=void 0){ti=Object.assign(ti??{message:"No error message given."},{el:ni,expression:oi}),console.warn(`Alpine Expression Error: ${ti.message} ${oi?'Expression: "'+oi+`" `:""}`,ni),setTimeout(()=>{throw ti},0)}var shouldAutoEvaluateFunctions=!0;function dontAutoEvaluateFunctions(ti){let ni=shouldAutoEvaluateFunctions;shouldAutoEvaluateFunctions=!1;let oi=ti();return shouldAutoEvaluateFunctions=ni,oi}function evaluate(ti,ni,oi={}){let ui;return evaluateLater(ti,ni)(fi=>ui=fi,oi),ui}function evaluateLater(...ti){return theEvaluatorFunction(...ti)}var theEvaluatorFunction=normalEvaluator;function setEvaluator(ti){theEvaluatorFunction=ti}function normalEvaluator(ti,ni){let oi={};injectMagics(oi,ti);let ui=[oi,...closestDataStack(ti)],fi=typeof ni=="function"?generateEvaluatorFromFunction(ui,ni):generateEvaluatorFromString(ui,ni,ti);return tryCatch.bind(null,ti,ni,fi)}function generateEvaluatorFromFunction(ti,ni){return(oi=()=>{},{scope:ui={},params:fi=[]}={})=>{let mi=ni.apply(mergeProxies([ui,...ti]),fi);runIfTypeOfFunction(oi,mi)}}var evaluatorMemo={};function generateFunctionFromString(ti,ni){if(evaluatorMemo[ti])return evaluatorMemo[ti];let oi=Object.getPrototypeOf(async function(){}).constructor,ui=/^[\n\s]*if.*\(.*\)/.test(ti.trim())||/^(let|const)\s/.test(ti.trim())?`(async()=>{ ${ti} })()`:ti,mi=(()=>{try{let gi=new oi(["__self","scope"],`with (scope) { __self.result = ${ui} }; __self.finished = true; return __self.result;`);return Object.defineProperty(gi,"name",{value:`[Alpine] ${ti}`}),gi}catch(gi){return handleError(gi,ni,ti),Promise.resolve()}})();return evaluatorMemo[ti]=mi,mi}function generateEvaluatorFromString(ti,ni,oi){let ui=generateFunctionFromString(ni,oi);return(fi=()=>{},{scope:mi={},params:gi=[]}={})=>{ui.result=void 0,ui.finished=!1;let di=mergeProxies([mi,...ti]);if(typeof ui=="function"){let li=ui(ui,di).catch(ci=>handleError(ci,oi,ni));ui.finished?(runIfTypeOfFunction(fi,ui.result,di,gi,oi),ui.result=void 0):li.then(ci=>{runIfTypeOfFunction(fi,ci,di,gi,oi)}).catch(ci=>handleError(ci,oi,ni)).finally(()=>ui.result=void 0)}}}function runIfTypeOfFunction(ti,ni,oi,ui,fi){if(shouldAutoEvaluateFunctions&&typeof ni=="function"){let mi=ni.apply(oi,ui);mi instanceof Promise?mi.then(gi=>runIfTypeOfFunction(ti,gi,oi,ui)).catch(gi=>handleError(gi,fi,ni)):ti(mi)}else typeof ni=="object"&&ni instanceof Promise?ni.then(mi=>ti(mi)):ti(ni)}var prefixAsString="x-";function prefix(ti=""){return prefixAsString+ti}function setPrefix(ti){prefixAsString=ti}var directiveHandlers={};function directive(ti,ni){return directiveHandlers[ti]=ni,{before(oi){if(!directiveHandlers[oi]){console.warn(String.raw`Cannot find directive \`${oi}\`. \`${ti}\` will use the default order of execution`);return}const ui=directiveOrder.indexOf(oi);directiveOrder.splice(ui>=0?ui:directiveOrder.indexOf("DEFAULT"),0,ti)}}}function directiveExists(ti){return Object.keys(directiveHandlers).includes(ti)}function directives(ti,ni,oi){if(ni=Array.from(ni),ti._x_virtualDirectives){let mi=Object.entries(ti._x_virtualDirectives).map(([di,li])=>({name:di,value:li})),gi=attributesOnly(mi);mi=mi.map(di=>gi.find(li=>li.name===di.name)?{name:`x-bind:${di.name}`,value:`"${di.value}"`}:di),ni=ni.concat(mi)}let ui={};return ni.map(toTransformedAttributes((mi,gi)=>ui[mi]=gi)).filter(outNonAlpineAttributes).map(toParsedDirectives(ui,oi)).sort(byPriority).map(mi=>getDirectiveHandler(ti,mi))}function attributesOnly(ti){return Array.from(ti).map(toTransformedAttributes()).filter(ni=>!outNonAlpineAttributes(ni))}var isDeferringHandlers=!1,directiveHandlerStacks=new Map,currentHandlerStackKey=Symbol();function deferHandlingDirectives(ti){isDeferringHandlers=!0;let ni=Symbol();currentHandlerStackKey=ni,directiveHandlerStacks.set(ni,[]);let oi=()=>{for(;directiveHandlerStacks.get(ni).length;)directiveHandlerStacks.get(ni).shift()();directiveHandlerStacks.delete(ni)},ui=()=>{isDeferringHandlers=!1,oi()};ti(oi),ui()}function getElementBoundUtilities(ti){let ni=[],oi=di=>ni.push(di),[ui,fi]=elementBoundEffect(ti);return ni.push(fi),[{Alpine:alpine_default,effect:ui,cleanup:oi,evaluateLater:evaluateLater.bind(evaluateLater,ti),evaluate:evaluate.bind(evaluate,ti)},()=>ni.forEach(di=>di())]}function getDirectiveHandler(ti,ni){let oi=()=>{},ui=directiveHandlers[ni.type]||oi,[fi,mi]=getElementBoundUtilities(ti);onAttributeRemoved(ti,ni.original,mi);let gi=()=>{ti._x_ignore||ti._x_ignoreSelf||(ui.inline&&ui.inline(ti,ni,fi),ui=ui.bind(ui,ti,ni,fi),isDeferringHandlers?directiveHandlerStacks.get(currentHandlerStackKey).push(ui):ui())};return gi.runCleanups=mi,gi}var startingWith=(ti,ni)=>({name:oi,value:ui})=>(oi.startsWith(ti)&&(oi=oi.replace(ti,ni)),{name:oi,value:ui}),into=ti=>ti;function toTransformedAttributes(ti=()=>{}){return({name:ni,value:oi})=>{let{name:ui,value:fi}=attributeTransformers.reduce((mi,gi)=>gi(mi),{name:ni,value:oi});return ui!==ni&&ti(ui,ni),{name:ui,value:fi}}}var attributeTransformers=[];function mapAttributes(ti){attributeTransformers.push(ti)}function outNonAlpineAttributes({name:ti}){return alpineAttributeRegex().test(ti)}var alpineAttributeRegex=()=>new RegExp(`^${prefixAsString}([^:^.]+)\\b`);function toParsedDirectives(ti,ni){return({name:oi,value:ui})=>{let fi=oi.match(alpineAttributeRegex()),mi=oi.match(/:([a-zA-Z0-9\-_:]+)/),gi=oi.match(/\.[^.\]]+(?=[^\]]*$)/g)||[],di=ni||ti[oi]||oi;return{type:fi?fi[1]:null,value:mi?mi[1]:null,modifiers:gi.map(li=>li.replace(".","")),expression:ui,original:di}}}var DEFAULT="DEFAULT",directiveOrder=["ignore","ref","data","id","anchor","bind","init","for","model","modelable","transition","show","if",DEFAULT,"teleport"];function byPriority(ti,ni){let oi=directiveOrder.indexOf(ti.type)===-1?DEFAULT:ti.type,ui=directiveOrder.indexOf(ni.type)===-1?DEFAULT:ni.type;return directiveOrder.indexOf(oi)-directiveOrder.indexOf(ui)}function dispatch(ti,ni,oi={}){ti.dispatchEvent(new CustomEvent(ni,{detail:oi,bubbles:!0,composed:!0,cancelable:!0}))}function walk(ti,ni){if(typeof ShadowRoot=="function"&&ti instanceof ShadowRoot){Array.from(ti.children).forEach(fi=>walk(fi,ni));return}let oi=!1;if(ni(ti,()=>oi=!0),oi)return;let ui=ti.firstElementChild;for(;ui;)walk(ui,ni),ui=ui.nextElementSibling}function warn(ti,...ni){console.warn(`Alpine Warning: ${ti}`,...ni)}var started=!1;function start(){started&&warn("Alpine has already been initialized on this page. Calling Alpine.start() more than once can cause problems."),started=!0,document.body||warn("Unable to initialize. Trying to load Alpine before `` is available. Did you forget to add `defer` in Alpine's `