var Mp=Object.defineProperty;var Ep=(e,t,n)=>t in e?Mp(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Ne=(e,t,n)=>Ep(e,typeof t!="symbol"?t+"":t,n);(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))i(s);new MutationObserver(s=>{for(const a of s)if(a.type==="childList")for(const d of a.addedNodes)d.tagName==="LINK"&&d.rel==="modulepreload"&&i(d)}).observe(document,{childList:!0,subtree:!0});function n(s){const a={};return s.integrity&&(a.integrity=s.integrity),s.referrerPolicy&&(a.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?a.credentials="include":s.crossOrigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function i(s){if(s.ep)return;s.ep=!0;const a=n(s);fetch(s.href,a)}})();const Vl=()=>{};let Ga={},Hu={},Uu=null,Vu={mark:Vl,measure:Vl};try{typeof window<"u"&&(Ga=window),typeof document<"u"&&(Hu=document),typeof MutationObserver<"u"&&(Uu=MutationObserver),typeof performance<"u"&&(Vu=performance)}catch{}const{userAgent:Gl=""}=Ga.navigator||{},Nn=Ga,rt=Hu,Yl=Uu,Qr=Vu;Nn.document;const Sn=!!rt.documentElement&&!!rt.head&&typeof rt.addEventListener=="function"&&typeof rt.createElement=="function",Gu=~Gl.indexOf("MSIE")||~Gl.indexOf("Trident/");var ot="classic",Yu="duotone",It="sharp",Nt="sharp-duotone",Tp=[ot,Yu,It,Nt],Lp={classic:{900:"fas",400:"far",normal:"far",300:"fal",100:"fat"},sharp:{900:"fass",400:"fasr",300:"fasl",100:"fast"},"sharp-duotone":{900:"fasds"}},Kl={kit:{fak:"kit","fa-kit":"kit"},"kit-duotone":{fakd:"kit-duotone","fa-kit-duotone":"kit-duotone"}},Rp=["kit"],Op=/fa(s|r|l|t|d|b|k|kd|ss|sr|sl|st|sds)?[\-\ ]/,Ip=/Font ?Awesome ?([56 ]*)(Solid|Regular|Light|Thin|Duotone|Brands|Free|Pro|Sharp Duotone|Sharp|Kit)?.*/i,Np={"Font Awesome 5 Free":{900:"fas",400:"far"},"Font Awesome 5 Pro":{900:"fas",400:"far",normal:"far",300:"fal"},"Font Awesome 5 Brands":{400:"fab",normal:"fab"},"Font Awesome 5 Duotone":{900:"fad"}},Dp={"Font Awesome 6 Free":{900:"fas",400:"far"},"Font Awesome 6 Pro":{900:"fas",400:"far",normal:"far",300:"fal",100:"fat"},"Font Awesome 6 Brands":{400:"fab",normal:"fab"},"Font Awesome 6 Duotone":{900:"fad"},"Font Awesome 6 Sharp":{900:"fass",400:"fasr",normal:"fasr",300:"fasl",100:"fast"},"Font Awesome 6 Sharp Duotone":{900:"fasds"}},Fp={classic:{"fa-brands":"fab","fa-duotone":"fad","fa-light":"fal","fa-regular":"far","fa-solid":"fas","fa-thin":"fat"},sharp:{"fa-solid":"fass","fa-regular":"fasr","fa-light":"fasl","fa-thin":"fast"},"sharp-duotone":{"fa-solid":"fasds"}},Pp={classic:["fas","far","fal","fat"],sharp:["fass","fasr","fasl","fast"],"sharp-duotone":["fasds"]},Wp={classic:{fab:"fa-brands",fad:"fa-duotone",fal:"fa-light",far:"fa-regular",fas:"fa-solid",fat:"fa-thin"},sharp:{fass:"fa-solid",fasr:"fa-regular",fasl:"fa-light",fast:"fa-thin"},"sharp-duotone":{fasds:"fa-solid"}},Bp={classic:{solid:"fas",regular:"far",light:"fal",thin:"fat",duotone:"fad",brands:"fab"},sharp:{solid:"fass",regular:"fasr",light:"fasl",thin:"fast"},"sharp-duotone":{solid:"fasds"}},Ku={classic:{fa:"solid",fas:"solid","fa-solid":"solid",far:"regular","fa-regular":"regular",fal:"light","fa-light":"light",fat:"thin","fa-thin":"thin",fad:"duotone","fa-duotone":"duotone",fab:"brands","fa-brands":"brands"},sharp:{fa:"solid",fass:"solid","fa-solid":"solid",fasr:"regular","fa-regular":"regular",fasl:"light","fa-light":"light",fast:"thin","fa-thin":"thin"},"sharp-duotone":{fa:"solid",fasds:"solid","fa-solid":"solid"}},zp=["solid","regular","light","thin","duotone","brands"],Zu=[1,2,3,4,5,6,7,8,9,10],jp=Zu.concat([11,12,13,14,15,16,17,18,19,20]),Qi={GROUP:"duotone-group",SWAP_OPACITY:"swap-opacity",PRIMARY:"primary",SECONDARY:"secondary"},Hp=[...Object.keys(Pp),...zp,"2xs","xs","sm","lg","xl","2xl","beat","border","fade","beat-fade","bounce","flip-both","flip-horizontal","flip-vertical","flip","fw","inverse","layers-counter","layers-text","layers","li","pull-left","pull-right","pulse","rotate-180","rotate-270","rotate-90","rotate-by","shake","spin-pulse","spin-reverse","spin","stack-1x","stack-2x","stack","ul",Qi.GROUP,Qi.SWAP_OPACITY,Qi.PRIMARY,Qi.SECONDARY].concat(Zu.map(e=>"".concat(e,"x"))).concat(jp.map(e=>"w-".concat(e))),Up={"Font Awesome Kit":{400:"fak",normal:"fak"},"Font Awesome Kit Duotone":{400:"fakd",normal:"fakd"}},Vp={kit:{"fa-kit":"fak"},"kit-duotone":{"fa-kit-duotone":"fakd"}},Gp={kit:{fak:"fa-kit"},"kit-duotone":{fakd:"fa-kit-duotone"}},Zl={kit:{kit:"fak"},"kit-duotone":{"kit-duotone":"fakd"}};const bn="___FONT_AWESOME___",Xo=16,Xu="fa",Qu="svg-inline--fa",ii="data-fa-i2svg",Qo="data-fa-pseudo-element",Yp="data-fa-pseudo-element-pending",Ya="data-prefix",Ka="data-icon",Xl="fontawesome-i2svg",Kp="async",Zp=["HTML","HEAD","STYLE","SCRIPT"],qu=(()=>{try{return!0}catch{return!1}})(),Ju=[ot,It,Nt];function Fr(e){return new Proxy(e,{get(t,n){return n in t?t[n]:t[ot]}})}const eh={...Ku};eh[ot]={...Ku[ot],...Kl.kit,...Kl["kit-duotone"]};const qn=Fr(eh),qo={...Bp};qo[ot]={...qo[ot],...Zl.kit,...Zl["kit-duotone"]};const dr=Fr(qo),Jo={...Wp};Jo[ot]={...Jo[ot],...Gp.kit};const Jn=Fr(Jo),ea={...Fp};ea[ot]={...ea[ot],...Vp.kit};const Xp=Fr(ea),Qp=Op,th="fa-layers-text",qp=Ip,Jp={...Lp};Fr(Jp);const eg=["class","data-prefix","data-icon","data-fa-transform","data-fa-mask"],_o=Qi,Ei=new Set;Object.keys(dr[ot]).map(Ei.add.bind(Ei));Object.keys(dr[It]).map(Ei.add.bind(Ei));Object.keys(dr[Nt]).map(Ei.add.bind(Ei));const tg=[...Rp,...Hp],nr=Nn.FontAwesomeConfig||{};function ng(e){var t=rt.querySelector("script["+e+"]");if(t)return t.getAttribute(e)}function ig(e){return e===""?!0:e==="false"?!1:e==="true"?!0:e}rt&&typeof rt.querySelector=="function"&&[["data-family-prefix","familyPrefix"],["data-css-prefix","cssPrefix"],["data-family-default","familyDefault"],["data-style-default","styleDefault"],["data-replacement-class","replacementClass"],["data-auto-replace-svg","autoReplaceSvg"],["data-auto-add-css","autoAddCss"],["data-auto-a11y","autoA11y"],["data-search-pseudo-elements","searchPseudoElements"],["data-observe-mutations","observeMutations"],["data-mutate-approach","mutateApproach"],["data-keep-original-source","keepOriginalSource"],["data-measure-performance","measurePerformance"],["data-show-missing-icons","showMissingIcons"]].forEach(t=>{let[n,i]=t;const s=ig(ng(n));s!=null&&(nr[i]=s)});const nh={styleDefault:"solid",familyDefault:"classic",cssPrefix:Xu,replacementClass:Qu,autoReplaceSvg:!0,autoAddCss:!0,autoA11y:!0,searchPseudoElements:!1,observeMutations:!0,mutateApproach:"async",keepOriginalSource:!0,measurePerformance:!1,showMissingIcons:!0};nr.familyPrefix&&(nr.cssPrefix=nr.familyPrefix);const Ti={...nh,...nr};Ti.autoReplaceSvg||(Ti.observeMutations=!1);const _e={};Object.keys(nh).forEach(e=>{Object.defineProperty(_e,e,{enumerable:!0,set:function(t){Ti[e]=t,ir.forEach(n=>n(_e))},get:function(){return Ti[e]}})});Object.defineProperty(_e,"familyPrefix",{enumerable:!0,set:function(e){Ti.cssPrefix=e,ir.forEach(t=>t(_e))},get:function(){return Ti.cssPrefix}});Nn.FontAwesomeConfig=_e;const ir=[];function rg(e){return ir.push(e),()=>{ir.splice(ir.indexOf(e),1)}}const An=Xo,Jt={size:16,x:0,y:0,rotate:0,flipX:!1,flipY:!1};function sg(e){if(!e||!Sn)return;const t=rt.createElement("style");t.setAttribute("type","text/css"),t.innerHTML=e;const n=rt.head.childNodes;let i=null;for(let s=n.length-1;s>-1;s--){const a=n[s],d=(a.tagName||"").toUpperCase();["STYLE","LINK"].indexOf(d)>-1&&(i=a)}return rt.head.insertBefore(t,i),e}const og="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";function fr(){let e=12,t="";for(;e-- >0;)t+=og[Math.random()*62|0];return t}function Wi(e){const t=[];for(let n=(e||[]).length>>>0;n--;)t[n]=e[n];return t}function Za(e){return e.classList?Wi(e.classList):(e.getAttribute("class")||"").split(" ").filter(t=>t)}function ih(e){return"".concat(e).replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(//g,">")}function ag(e){return Object.keys(e||{}).reduce((t,n)=>t+"".concat(n,'="').concat(ih(e[n]),'" '),"").trim()}function Ws(e){return Object.keys(e||{}).reduce((t,n)=>t+"".concat(n,": ").concat(e[n].trim(),";"),"")}function Xa(e){return e.size!==Jt.size||e.x!==Jt.x||e.y!==Jt.y||e.rotate!==Jt.rotate||e.flipX||e.flipY}function lg(e){let{transform:t,containerWidth:n,iconWidth:i}=e;const s={transform:"translate(".concat(n/2," 256)")},a="translate(".concat(t.x*32,", ").concat(t.y*32,") "),d="scale(".concat(t.size/16*(t.flipX?-1:1),", ").concat(t.size/16*(t.flipY?-1:1),") "),g="rotate(".concat(t.rotate," 0 0)"),l={transform:"".concat(a," ").concat(d," ").concat(g)},p={transform:"translate(".concat(i/2*-1," -256)")};return{outer:s,inner:l,path:p}}function cg(e){let{transform:t,width:n=Xo,height:i=Xo,startCentered:s=!1}=e,a="";return s&&Gu?a+="translate(".concat(t.x/An-n/2,"em, ").concat(t.y/An-i/2,"em) "):s?a+="translate(calc(-50% + ".concat(t.x/An,"em), calc(-50% + ").concat(t.y/An,"em)) "):a+="translate(".concat(t.x/An,"em, ").concat(t.y/An,"em) "),a+="scale(".concat(t.size/An*(t.flipX?-1:1),", ").concat(t.size/An*(t.flipY?-1:1),") "),a+="rotate(".concat(t.rotate,"deg) "),a}var ug=`:root, :host { --fa-font-solid: normal 900 1em/1 "Font Awesome 6 Free"; --fa-font-regular: normal 400 1em/1 "Font Awesome 6 Free"; --fa-font-light: normal 300 1em/1 "Font Awesome 6 Pro"; --fa-font-thin: normal 100 1em/1 "Font Awesome 6 Pro"; --fa-font-duotone: normal 900 1em/1 "Font Awesome 6 Duotone"; --fa-font-brands: normal 400 1em/1 "Font Awesome 6 Brands"; --fa-font-sharp-solid: normal 900 1em/1 "Font Awesome 6 Sharp"; --fa-font-sharp-regular: normal 400 1em/1 "Font Awesome 6 Sharp"; --fa-font-sharp-light: normal 300 1em/1 "Font Awesome 6 Sharp"; --fa-font-sharp-thin: normal 100 1em/1 "Font Awesome 6 Sharp"; --fa-font-sharp-duotone-solid: normal 900 1em/1 "Font Awesome 6 Sharp Duotone"; } svg:not(:root).svg-inline--fa, svg:not(:host).svg-inline--fa { overflow: visible; box-sizing: content-box; } .svg-inline--fa { display: var(--fa-display, inline-block); height: 1em; overflow: visible; vertical-align: -0.125em; } .svg-inline--fa.fa-2xs { vertical-align: 0.1em; } .svg-inline--fa.fa-xs { vertical-align: 0em; } .svg-inline--fa.fa-sm { vertical-align: -0.0714285705em; } .svg-inline--fa.fa-lg { vertical-align: -0.2em; } .svg-inline--fa.fa-xl { vertical-align: -0.25em; } .svg-inline--fa.fa-2xl { vertical-align: -0.3125em; } .svg-inline--fa.fa-pull-left { margin-right: var(--fa-pull-margin, 0.3em); width: auto; } .svg-inline--fa.fa-pull-right { margin-left: var(--fa-pull-margin, 0.3em); width: auto; } .svg-inline--fa.fa-li { width: var(--fa-li-width, 2em); top: 0.25em; } .svg-inline--fa.fa-fw { width: var(--fa-fw-width, 1.25em); } .fa-layers svg.svg-inline--fa { bottom: 0; left: 0; margin: auto; position: absolute; right: 0; top: 0; } .fa-layers-counter, .fa-layers-text { display: inline-block; position: absolute; text-align: center; } .fa-layers { display: inline-block; height: 1em; position: relative; text-align: center; vertical-align: -0.125em; width: 1em; } .fa-layers svg.svg-inline--fa { transform-origin: center center; } .fa-layers-text { left: 50%; top: 50%; transform: translate(-50%, -50%); transform-origin: center center; } .fa-layers-counter { background-color: var(--fa-counter-background-color, #ff253a); border-radius: var(--fa-counter-border-radius, 1em); box-sizing: border-box; color: var(--fa-inverse, #fff); line-height: var(--fa-counter-line-height, 1); max-width: var(--fa-counter-max-width, 5em); min-width: var(--fa-counter-min-width, 1.5em); overflow: hidden; padding: var(--fa-counter-padding, 0.25em 0.5em); right: var(--fa-right, 0); text-overflow: ellipsis; top: var(--fa-top, 0); transform: scale(var(--fa-counter-scale, 0.25)); transform-origin: top right; } .fa-layers-bottom-right { bottom: var(--fa-bottom, 0); right: var(--fa-right, 0); top: auto; transform: scale(var(--fa-layers-scale, 0.25)); transform-origin: bottom right; } .fa-layers-bottom-left { bottom: var(--fa-bottom, 0); left: var(--fa-left, 0); right: auto; top: auto; transform: scale(var(--fa-layers-scale, 0.25)); transform-origin: bottom left; } .fa-layers-top-right { top: var(--fa-top, 0); right: var(--fa-right, 0); transform: scale(var(--fa-layers-scale, 0.25)); transform-origin: top right; } .fa-layers-top-left { left: var(--fa-left, 0); right: auto; top: var(--fa-top, 0); transform: scale(var(--fa-layers-scale, 0.25)); transform-origin: top left; } .fa-1x { font-size: 1em; } .fa-2x { font-size: 2em; } .fa-3x { font-size: 3em; } .fa-4x { font-size: 4em; } .fa-5x { font-size: 5em; } .fa-6x { font-size: 6em; } .fa-7x { font-size: 7em; } .fa-8x { font-size: 8em; } .fa-9x { font-size: 9em; } .fa-10x { font-size: 10em; } .fa-2xs { font-size: 0.625em; line-height: 0.1em; vertical-align: 0.225em; } .fa-xs { font-size: 0.75em; line-height: 0.0833333337em; vertical-align: 0.125em; } .fa-sm { font-size: 0.875em; line-height: 0.0714285718em; vertical-align: 0.0535714295em; } .fa-lg { font-size: 1.25em; line-height: 0.05em; vertical-align: -0.075em; } .fa-xl { font-size: 1.5em; line-height: 0.0416666682em; vertical-align: -0.125em; } .fa-2xl { font-size: 2em; line-height: 0.03125em; vertical-align: -0.1875em; } .fa-fw { text-align: center; width: 1.25em; } .fa-ul { list-style-type: none; margin-left: var(--fa-li-margin, 2.5em); padding-left: 0; } .fa-ul > li { position: relative; } .fa-li { left: calc(-1 * var(--fa-li-width, 2em)); position: absolute; text-align: center; width: var(--fa-li-width, 2em); line-height: inherit; } .fa-border { border-color: var(--fa-border-color, #eee); border-radius: var(--fa-border-radius, 0.1em); border-style: var(--fa-border-style, solid); border-width: var(--fa-border-width, 0.08em); padding: var(--fa-border-padding, 0.2em 0.25em 0.15em); } .fa-pull-left { float: left; margin-right: var(--fa-pull-margin, 0.3em); } .fa-pull-right { float: right; margin-left: var(--fa-pull-margin, 0.3em); } .fa-beat { animation-name: fa-beat; animation-delay: var(--fa-animation-delay, 0s); animation-direction: var(--fa-animation-direction, normal); animation-duration: var(--fa-animation-duration, 1s); animation-iteration-count: var(--fa-animation-iteration-count, infinite); animation-timing-function: var(--fa-animation-timing, ease-in-out); } .fa-bounce { animation-name: fa-bounce; animation-delay: var(--fa-animation-delay, 0s); animation-direction: var(--fa-animation-direction, normal); animation-duration: var(--fa-animation-duration, 1s); animation-iteration-count: var(--fa-animation-iteration-count, infinite); animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.28, 0.84, 0.42, 1)); } .fa-fade { animation-name: fa-fade; animation-delay: var(--fa-animation-delay, 0s); animation-direction: var(--fa-animation-direction, normal); animation-duration: var(--fa-animation-duration, 1s); animation-iteration-count: var(--fa-animation-iteration-count, infinite); animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1)); } .fa-beat-fade { animation-name: fa-beat-fade; animation-delay: var(--fa-animation-delay, 0s); animation-direction: var(--fa-animation-direction, normal); animation-duration: var(--fa-animation-duration, 1s); animation-iteration-count: var(--fa-animation-iteration-count, infinite); animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1)); } .fa-flip { animation-name: fa-flip; animation-delay: var(--fa-animation-delay, 0s); animation-direction: var(--fa-animation-direction, normal); animation-duration: var(--fa-animation-duration, 1s); animation-iteration-count: var(--fa-animation-iteration-count, infinite); animation-timing-function: var(--fa-animation-timing, ease-in-out); } .fa-shake { animation-name: fa-shake; animation-delay: var(--fa-animation-delay, 0s); animation-direction: var(--fa-animation-direction, normal); animation-duration: var(--fa-animation-duration, 1s); animation-iteration-count: var(--fa-animation-iteration-count, infinite); animation-timing-function: var(--fa-animation-timing, linear); } .fa-spin { animation-name: fa-spin; animation-delay: var(--fa-animation-delay, 0s); animation-direction: var(--fa-animation-direction, normal); animation-duration: var(--fa-animation-duration, 2s); animation-iteration-count: var(--fa-animation-iteration-count, infinite); animation-timing-function: var(--fa-animation-timing, linear); } .fa-spin-reverse { --fa-animation-direction: reverse; } .fa-pulse, .fa-spin-pulse { animation-name: fa-spin; animation-direction: var(--fa-animation-direction, normal); animation-duration: var(--fa-animation-duration, 1s); animation-iteration-count: var(--fa-animation-iteration-count, infinite); animation-timing-function: var(--fa-animation-timing, steps(8)); } @media (prefers-reduced-motion: reduce) { .fa-beat, .fa-bounce, .fa-fade, .fa-beat-fade, .fa-flip, .fa-pulse, .fa-shake, .fa-spin, .fa-spin-pulse { animation-delay: -1ms; animation-duration: 1ms; animation-iteration-count: 1; transition-delay: 0s; transition-duration: 0s; } } @keyframes fa-beat { 0%, 90% { transform: scale(1); } 45% { transform: scale(var(--fa-beat-scale, 1.25)); } } @keyframes fa-bounce { 0% { transform: scale(1, 1) translateY(0); } 10% { transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0); } 30% { transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em)); } 50% { transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0); } 57% { transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em)); } 64% { transform: scale(1, 1) translateY(0); } 100% { transform: scale(1, 1) translateY(0); } } @keyframes fa-fade { 50% { opacity: var(--fa-fade-opacity, 0.4); } } @keyframes fa-beat-fade { 0%, 100% { opacity: var(--fa-beat-fade-opacity, 0.4); transform: scale(1); } 50% { opacity: 1; transform: scale(var(--fa-beat-fade-scale, 1.125)); } } @keyframes fa-flip { 50% { transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg)); } } @keyframes fa-shake { 0% { transform: rotate(-15deg); } 4% { transform: rotate(15deg); } 8%, 24% { transform: rotate(-18deg); } 12%, 28% { transform: rotate(18deg); } 16% { transform: rotate(-22deg); } 20% { transform: rotate(22deg); } 32% { transform: rotate(-12deg); } 36% { transform: rotate(12deg); } 40%, 100% { transform: rotate(0deg); } } @keyframes fa-spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } } .fa-rotate-90 { transform: rotate(90deg); } .fa-rotate-180 { transform: rotate(180deg); } .fa-rotate-270 { transform: rotate(270deg); } .fa-flip-horizontal { transform: scale(-1, 1); } .fa-flip-vertical { transform: scale(1, -1); } .fa-flip-both, .fa-flip-horizontal.fa-flip-vertical { transform: scale(-1, -1); } .fa-rotate-by { transform: rotate(var(--fa-rotate-angle, 0)); } .fa-stack { display: inline-block; vertical-align: middle; height: 2em; position: relative; width: 2.5em; } .fa-stack-1x, .fa-stack-2x { bottom: 0; left: 0; margin: auto; position: absolute; right: 0; top: 0; z-index: var(--fa-stack-z-index, auto); } .svg-inline--fa.fa-stack-1x { height: 1em; width: 1.25em; } .svg-inline--fa.fa-stack-2x { height: 2em; width: 2.5em; } .fa-inverse { color: var(--fa-inverse, #fff); } .sr-only, .fa-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border-width: 0; } .sr-only-focusable:not(:focus), .fa-sr-only-focusable:not(:focus) { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border-width: 0; } .svg-inline--fa .fa-primary { fill: var(--fa-primary-color, currentColor); opacity: var(--fa-primary-opacity, 1); } .svg-inline--fa .fa-secondary { fill: var(--fa-secondary-color, currentColor); opacity: var(--fa-secondary-opacity, 0.4); } .svg-inline--fa.fa-swap-opacity .fa-primary { opacity: var(--fa-secondary-opacity, 0.4); } .svg-inline--fa.fa-swap-opacity .fa-secondary { opacity: var(--fa-primary-opacity, 1); } .svg-inline--fa mask .fa-primary, .svg-inline--fa mask .fa-secondary { fill: black; } .fad.fa-inverse, .fa-duotone.fa-inverse { color: var(--fa-inverse, #fff); }`;function rh(){const e=Xu,t=Qu,n=_e.cssPrefix,i=_e.replacementClass;let s=ug;if(n!==e||i!==t){const a=new RegExp("\\.".concat(e,"\\-"),"g"),d=new RegExp("\\--".concat(e,"\\-"),"g"),g=new RegExp("\\.".concat(t),"g");s=s.replace(a,".".concat(n,"-")).replace(d,"--".concat(n,"-")).replace(g,".".concat(i))}return s}let Ql=!1;function So(){_e.autoAddCss&&!Ql&&(sg(rh()),Ql=!0)}var hg={mixout(){return{dom:{css:rh,insertCss:So}}},hooks(){return{beforeDOMElementCreation(){So()},beforeI2svg(){So()}}}};const wn=Nn||{};wn[bn]||(wn[bn]={});wn[bn].styles||(wn[bn].styles={});wn[bn].hooks||(wn[bn].hooks={});wn[bn].shims||(wn[bn].shims=[]);var en=wn[bn];const sh=[],oh=function(){rt.removeEventListener("DOMContentLoaded",oh),gs=1,sh.map(e=>e())};let gs=!1;Sn&&(gs=(rt.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(rt.readyState),gs||rt.addEventListener("DOMContentLoaded",oh));function dg(e){Sn&&(gs?setTimeout(e,0):sh.push(e))}function Pr(e){const{tag:t,attributes:n={},children:i=[]}=e;return typeof e=="string"?ih(e):"<".concat(t," ").concat(ag(n),">").concat(i.map(Pr).join(""),"")}function ql(e,t,n){if(e&&e[t]&&e[t][n])return{prefix:t,iconName:n,icon:e[t][n]}}var xo=function(t,n,i,s){var a=Object.keys(t),d=a.length,g=n,l,p,o;for(i===void 0?(l=1,o=t[a[0]]):(l=0,o=i);l=55296&&s<=56319&&n=55296&&i<=56319&&n>t+1&&(s=e.charCodeAt(t+1),s>=56320&&s<=57343)?(i-55296)*1024+s-56320+65536:i}function Jl(e){return Object.keys(e).reduce((t,n)=>{const i=e[n];return!!i.icon?t[i.iconName]=i.icon:t[n]=i,t},{})}function na(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const{skipHooks:i=!1}=n,s=Jl(t);typeof en.hooks.addPack=="function"&&!i?en.hooks.addPack(e,Jl(t)):en.styles[e]={...en.styles[e]||{},...s},e==="fas"&&na("fa",t)}const{styles:Xn,shims:gg}=en,mg={[ot]:Object.values(Jn[ot]),[It]:Object.values(Jn[It]),[Nt]:Object.values(Jn[Nt])};let Qa=null,ah={},lh={},ch={},uh={},hh={};const vg={[ot]:Object.keys(qn[ot]),[It]:Object.keys(qn[It]),[Nt]:Object.keys(qn[Nt])};function yg(e){return~tg.indexOf(e)}function bg(e,t){const n=t.split("-"),i=n[0],s=n.slice(1).join("-");return i===e&&s!==""&&!yg(s)?s:null}const dh=()=>{const e=i=>xo(Xn,(s,a,d)=>(s[d]=xo(a,i,{}),s),{});ah=e((i,s,a)=>(s[3]&&(i[s[3]]=a),s[2]&&s[2].filter(g=>typeof g=="number").forEach(g=>{i[g.toString(16)]=a}),i)),lh=e((i,s,a)=>(i[a]=a,s[2]&&s[2].filter(g=>typeof g=="string").forEach(g=>{i[g]=a}),i)),hh=e((i,s,a)=>{const d=s[2];return i[a]=a,d.forEach(g=>{i[g]=a}),i});const t="far"in Xn||_e.autoFetchSvg,n=xo(gg,(i,s)=>{const a=s[0];let d=s[1];const g=s[2];return d==="far"&&!t&&(d="fas"),typeof a=="string"&&(i.names[a]={prefix:d,iconName:g}),typeof a=="number"&&(i.unicodes[a.toString(16)]={prefix:d,iconName:g}),i},{names:{},unicodes:{}});ch=n.names,uh=n.unicodes,Qa=Bs(_e.styleDefault,{family:_e.familyDefault})};rg(e=>{Qa=Bs(e.styleDefault,{family:_e.familyDefault})});dh();function qa(e,t){return(ah[e]||{})[t]}function wg(e,t){return(lh[e]||{})[t]}function On(e,t){return(hh[e]||{})[t]}function fh(e){return ch[e]||{prefix:null,iconName:null}}function _g(e){const t=uh[e],n=qa("fas",e);return t||(n?{prefix:"fas",iconName:n}:null)||{prefix:null,iconName:null}}function Dn(){return Qa}const Ja=()=>({prefix:null,iconName:null,rest:[]});function Bs(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{family:n=ot}=t,i=qn[n][e],s=dr[n][e]||dr[n][i],a=e in en.styles?e:null;return s||a||null}const Sg={[ot]:Object.keys(Jn[ot]),[It]:Object.keys(Jn[It]),[Nt]:Object.keys(Jn[Nt])};function zs(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{skipLookups:n=!1}=t,i={[ot]:"".concat(_e.cssPrefix,"-").concat(ot),[It]:"".concat(_e.cssPrefix,"-").concat(It),[Nt]:"".concat(_e.cssPrefix,"-").concat(Nt)};let s=null,a=ot;const d=Tp.filter(l=>l!==Yu);d.forEach(l=>{(e.includes(i[l])||e.some(p=>Sg[l].includes(p)))&&(a=l)});const g=e.reduce((l,p)=>{const o=bg(_e.cssPrefix,p);if(Xn[p]?(p=mg[a].includes(p)?Xp[a][p]:p,s=p,l.prefix=p):vg[a].indexOf(p)>-1?(s=p,l.prefix=Bs(p,{family:a})):o?l.iconName=o:p!==_e.replacementClass&&!d.some(r=>p===i[r])&&l.rest.push(p),!n&&l.prefix&&l.iconName){const r=s==="fa"?fh(l.iconName):{},c=On(l.prefix,l.iconName);r.prefix&&(s=null),l.iconName=r.iconName||c||l.iconName,l.prefix=r.prefix||l.prefix,l.prefix==="far"&&!Xn.far&&Xn.fas&&!_e.autoFetchSvg&&(l.prefix="fas")}return l},Ja());return(e.includes("fa-brands")||e.includes("fab"))&&(g.prefix="fab"),(e.includes("fa-duotone")||e.includes("fad"))&&(g.prefix="fad"),!g.prefix&&a===It&&(Xn.fass||_e.autoFetchSvg)&&(g.prefix="fass",g.iconName=On(g.prefix,g.iconName)||g.iconName),!g.prefix&&a===Nt&&(Xn.fasds||_e.autoFetchSvg)&&(g.prefix="fasds",g.iconName=On(g.prefix,g.iconName)||g.iconName),(g.prefix==="fa"||s==="fa")&&(g.prefix=Dn()||"fas"),g}class xg{constructor(){this.definitions={}}add(){for(var t=arguments.length,n=new Array(t),i=0;i{this.definitions[a]={...this.definitions[a]||{},...s[a]},na(a,s[a]);const d=Jn[ot][a];d&&na(d,s[a]),dh()})}reset(){this.definitions={}}_pullDefinitions(t,n){const i=n.prefix&&n.iconName&&n.icon?{0:n}:n;return Object.keys(i).map(s=>{const{prefix:a,iconName:d,icon:g}=i[s],l=g[2];t[a]||(t[a]={}),l.length>0&&l.forEach(p=>{typeof p=="string"&&(t[a][p]=g)}),t[a][d]=g}),t}}let ec=[],bi={};const Si={},Cg=Object.keys(Si);function $g(e,t){let{mixoutsTo:n}=t;return ec=e,bi={},Object.keys(Si).forEach(i=>{Cg.indexOf(i)===-1&&delete Si[i]}),ec.forEach(i=>{const s=i.mixout?i.mixout():{};if(Object.keys(s).forEach(a=>{typeof s[a]=="function"&&(n[a]=s[a]),typeof s[a]=="object"&&Object.keys(s[a]).forEach(d=>{n[a]||(n[a]={}),n[a][d]=s[a][d]})}),i.hooks){const a=i.hooks();Object.keys(a).forEach(d=>{bi[d]||(bi[d]=[]),bi[d].push(a[d])})}i.provides&&i.provides(Si)}),n}function ia(e,t){for(var n=arguments.length,i=new Array(n>2?n-2:0),s=2;s{t=d.apply(null,[t,...i])}),t}function ri(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i{a.apply(null,n)})}function Fn(){const e=arguments[0],t=Array.prototype.slice.call(arguments,1);return Si[e]?Si[e].apply(null,t):void 0}function ra(e){e.prefix==="fa"&&(e.prefix="fas");let{iconName:t}=e;const n=e.prefix||Dn();if(t)return t=On(n,t)||t,ql(ph.definitions,n,t)||ql(en.styles,n,t)}const ph=new xg,Ag=()=>{_e.autoReplaceSvg=!1,_e.observeMutations=!1,ri("noAuto")},kg={i2svg:function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Sn?(ri("beforeI2svg",e),Fn("pseudoElements2svg",e),Fn("i2svg",e)):Promise.reject(new Error("Operation requires a DOM of some kind."))},watch:function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{autoReplaceSvgRoot:t}=e;_e.autoReplaceSvg===!1&&(_e.autoReplaceSvg=!0),_e.observeMutations=!0,dg(()=>{Eg({autoReplaceSvgRoot:t}),ri("watch",e)})}},Mg={icon:e=>{if(e===null)return null;if(typeof e=="object"&&e.prefix&&e.iconName)return{prefix:e.prefix,iconName:On(e.prefix,e.iconName)||e.iconName};if(Array.isArray(e)&&e.length===2){const t=e[1].indexOf("fa-")===0?e[1].slice(3):e[1],n=Bs(e[0]);return{prefix:n,iconName:On(n,t)||t}}if(typeof e=="string"&&(e.indexOf("".concat(_e.cssPrefix,"-"))>-1||e.match(Qp))){const t=zs(e.split(" "),{skipLookups:!0});return{prefix:t.prefix||Dn(),iconName:On(t.prefix,t.iconName)||t.iconName}}if(typeof e=="string"){const t=Dn();return{prefix:t,iconName:On(t,e)||e}}}},Wt={noAuto:Ag,config:_e,dom:kg,parse:Mg,library:ph,findIconDefinition:ra,toHtml:Pr},Eg=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{autoReplaceSvgRoot:t=rt}=e;(Object.keys(en.styles).length>0||_e.autoFetchSvg)&&Sn&&_e.autoReplaceSvg&&Wt.dom.i2svg({node:t})};function js(e,t){return Object.defineProperty(e,"abstract",{get:t}),Object.defineProperty(e,"html",{get:function(){return e.abstract.map(n=>Pr(n))}}),Object.defineProperty(e,"node",{get:function(){if(!Sn)return;const n=rt.createElement("div");return n.innerHTML=e.html,n.children}}),e}function Tg(e){let{children:t,main:n,mask:i,attributes:s,styles:a,transform:d}=e;if(Xa(d)&&n.found&&!i.found){const{width:g,height:l}=n,p={x:g/l/2,y:.5};s.style=Ws({...a,"transform-origin":"".concat(p.x+d.x/16,"em ").concat(p.y+d.y/16,"em")})}return[{tag:"svg",attributes:s,children:t}]}function Lg(e){let{prefix:t,iconName:n,children:i,attributes:s,symbol:a}=e;const d=a===!0?"".concat(t,"-").concat(_e.cssPrefix,"-").concat(n):a;return[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:{...s,id:d},children:i}]}]}function el(e){const{icons:{main:t,mask:n},prefix:i,iconName:s,transform:a,symbol:d,title:g,maskId:l,titleId:p,extra:o,watchable:r=!1}=e,{width:c,height:u}=n.found?n:t,h=i==="fak",f=[_e.replacementClass,s?"".concat(_e.cssPrefix,"-").concat(s):""].filter(S=>o.classes.indexOf(S)===-1).filter(S=>S!==""||!!S).concat(o.classes).join(" ");let m={children:[],attributes:{...o.attributes,"data-prefix":i,"data-icon":s,class:f,role:o.attributes.role||"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 ".concat(c," ").concat(u)}};const v=h&&!~o.classes.indexOf("fa-fw")?{width:"".concat(c/u*16*.0625,"em")}:{};r&&(m.attributes[ii]=""),g&&(m.children.push({tag:"title",attributes:{id:m.attributes["aria-labelledby"]||"title-".concat(p||fr())},children:[g]}),delete m.attributes.title);const y={...m,prefix:i,iconName:s,main:t,mask:n,maskId:l,transform:a,symbol:d,styles:{...v,...o.styles}},{children:$,attributes:_}=n.found&&t.found?Fn("generateAbstractMask",y)||{children:[],attributes:{}}:Fn("generateAbstractIcon",y)||{children:[],attributes:{}};return y.children=$,y.attributes=_,d?Lg(y):Tg(y)}function tc(e){const{content:t,width:n,height:i,transform:s,title:a,extra:d,watchable:g=!1}=e,l={...d.attributes,...a?{title:a}:{},class:d.classes.join(" ")};g&&(l[ii]="");const p={...d.styles};Xa(s)&&(p.transform=cg({transform:s,startCentered:!0,width:n,height:i}),p["-webkit-transform"]=p.transform);const o=Ws(p);o.length>0&&(l.style=o);const r=[];return r.push({tag:"span",attributes:l,children:[t]}),a&&r.push({tag:"span",attributes:{class:"sr-only"},children:[a]}),r}function Rg(e){const{content:t,title:n,extra:i}=e,s={...i.attributes,...n?{title:n}:{},class:i.classes.join(" ")},a=Ws(i.styles);a.length>0&&(s.style=a);const d=[];return d.push({tag:"span",attributes:s,children:[t]}),n&&d.push({tag:"span",attributes:{class:"sr-only"},children:[n]}),d}const{styles:Co}=en;function sa(e){const t=e[0],n=e[1],[i]=e.slice(4);let s=null;return Array.isArray(i)?s={tag:"g",attributes:{class:"".concat(_e.cssPrefix,"-").concat(_o.GROUP)},children:[{tag:"path",attributes:{class:"".concat(_e.cssPrefix,"-").concat(_o.SECONDARY),fill:"currentColor",d:i[0]}},{tag:"path",attributes:{class:"".concat(_e.cssPrefix,"-").concat(_o.PRIMARY),fill:"currentColor",d:i[1]}}]}:s={tag:"path",attributes:{fill:"currentColor",d:i}},{found:!0,width:t,height:n,icon:s}}const Og={found:!1,width:512,height:512};function Ig(e,t){!qu&&!_e.showMissingIcons&&e&&console.error('Icon with name "'.concat(e,'" and prefix "').concat(t,'" is missing.'))}function oa(e,t){let n=t;return t==="fa"&&_e.styleDefault!==null&&(t=Dn()),new Promise((i,s)=>{if(n==="fa"){const a=fh(e)||{};e=a.iconName||e,t=a.prefix||t}if(e&&t&&Co[t]&&Co[t][e]){const a=Co[t][e];return i(sa(a))}Ig(e,t),i({...Og,icon:_e.showMissingIcons&&e?Fn("missingIconAbstract")||{}:{}})})}const nc=()=>{},aa=_e.measurePerformance&&Qr&&Qr.mark&&Qr.measure?Qr:{mark:nc,measure:nc},qi='FA "6.6.0"',Ng=e=>(aa.mark("".concat(qi," ").concat(e," begins")),()=>gh(e)),gh=e=>{aa.mark("".concat(qi," ").concat(e," ends")),aa.measure("".concat(qi," ").concat(e),"".concat(qi," ").concat(e," begins"),"".concat(qi," ").concat(e," ends"))};var tl={begin:Ng,end:gh};const rs=()=>{};function ic(e){return typeof(e.getAttribute?e.getAttribute(ii):null)=="string"}function Dg(e){const t=e.getAttribute?e.getAttribute(Ya):null,n=e.getAttribute?e.getAttribute(Ka):null;return t&&n}function Fg(e){return e&&e.classList&&e.classList.contains&&e.classList.contains(_e.replacementClass)}function Pg(){return _e.autoReplaceSvg===!0?ss.replace:ss[_e.autoReplaceSvg]||ss.replace}function Wg(e){return rt.createElementNS("http://www.w3.org/2000/svg",e)}function Bg(e){return rt.createElement(e)}function mh(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{ceFn:n=e.tag==="svg"?Wg:Bg}=t;if(typeof e=="string")return rt.createTextNode(e);const i=n(e.tag);return Object.keys(e.attributes||[]).forEach(function(a){i.setAttribute(a,e.attributes[a])}),(e.children||[]).forEach(function(a){i.appendChild(mh(a,{ceFn:n}))}),i}function zg(e){let t=" ".concat(e.outerHTML," ");return t="".concat(t,"Font Awesome fontawesome.com "),t}const ss={replace:function(e){const t=e[0];if(t.parentNode)if(e[1].forEach(n=>{t.parentNode.insertBefore(mh(n),t)}),t.getAttribute(ii)===null&&_e.keepOriginalSource){let n=rt.createComment(zg(t));t.parentNode.replaceChild(n,t)}else t.remove()},nest:function(e){const t=e[0],n=e[1];if(~Za(t).indexOf(_e.replacementClass))return ss.replace(e);const i=new RegExp("".concat(_e.cssPrefix,"-.*"));if(delete n[0].attributes.id,n[0].attributes.class){const a=n[0].attributes.class.split(" ").reduce((d,g)=>(g===_e.replacementClass||g.match(i)?d.toSvg.push(g):d.toNode.push(g),d),{toNode:[],toSvg:[]});n[0].attributes.class=a.toSvg.join(" "),a.toNode.length===0?t.removeAttribute("class"):t.setAttribute("class",a.toNode.join(" "))}const s=n.map(a=>Pr(a)).join(` `);t.setAttribute(ii,""),t.innerHTML=s}};function rc(e){e()}function vh(e,t){const n=typeof t=="function"?t:rs;if(e.length===0)n();else{let i=rc;_e.mutateApproach===Kp&&(i=Nn.requestAnimationFrame||rc),i(()=>{const s=Pg(),a=tl.begin("mutate");e.map(s),a(),n()})}}let nl=!1;function yh(){nl=!0}function la(){nl=!1}let ms=null;function sc(e){if(!Yl||!_e.observeMutations)return;const{treeCallback:t=rs,nodeCallback:n=rs,pseudoElementsCallback:i=rs,observeMutationsRoot:s=rt}=e;ms=new Yl(a=>{if(nl)return;const d=Dn();Wi(a).forEach(g=>{if(g.type==="childList"&&g.addedNodes.length>0&&!ic(g.addedNodes[0])&&(_e.searchPseudoElements&&i(g.target),t(g.target)),g.type==="attributes"&&g.target.parentNode&&_e.searchPseudoElements&&i(g.target.parentNode),g.type==="attributes"&&ic(g.target)&&~eg.indexOf(g.attributeName))if(g.attributeName==="class"&&Dg(g.target)){const{prefix:l,iconName:p}=zs(Za(g.target));g.target.setAttribute(Ya,l||d),p&&g.target.setAttribute(Ka,p)}else Fg(g.target)&&n(g.target)})}),Sn&&ms.observe(s,{childList:!0,attributes:!0,characterData:!0,subtree:!0})}function jg(){ms&&ms.disconnect()}function Hg(e){const t=e.getAttribute("style");let n=[];return t&&(n=t.split(";").reduce((i,s)=>{const a=s.split(":"),d=a[0],g=a.slice(1);return d&&g.length>0&&(i[d]=g.join(":").trim()),i},{})),n}function Ug(e){const t=e.getAttribute("data-prefix"),n=e.getAttribute("data-icon"),i=e.innerText!==void 0?e.innerText.trim():"";let s=zs(Za(e));return s.prefix||(s.prefix=Dn()),t&&n&&(s.prefix=t,s.iconName=n),s.iconName&&s.prefix||(s.prefix&&i.length>0&&(s.iconName=wg(s.prefix,e.innerText)||qa(s.prefix,ta(e.innerText))),!s.iconName&&_e.autoFetchSvg&&e.firstChild&&e.firstChild.nodeType===Node.TEXT_NODE&&(s.iconName=e.firstChild.data)),s}function Vg(e){const t=Wi(e.attributes).reduce((s,a)=>(s.name!=="class"&&s.name!=="style"&&(s[a.name]=a.value),s),{}),n=e.getAttribute("title"),i=e.getAttribute("data-fa-title-id");return _e.autoA11y&&(n?t["aria-labelledby"]="".concat(_e.replacementClass,"-title-").concat(i||fr()):(t["aria-hidden"]="true",t.focusable="false")),t}function Gg(){return{iconName:null,title:null,titleId:null,prefix:null,transform:Jt,symbol:!1,mask:{iconName:null,prefix:null,rest:[]},maskId:null,extra:{classes:[],styles:{},attributes:{}}}}function oc(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{styleParser:!0};const{iconName:n,prefix:i,rest:s}=Ug(e),a=Vg(e),d=ia("parseNodeAttributes",{},e);let g=t.styleParser?Hg(e):[];return{iconName:n,title:e.getAttribute("title"),titleId:e.getAttribute("data-fa-title-id"),prefix:i,transform:Jt,mask:{iconName:null,prefix:null,rest:[]},maskId:null,symbol:!1,extra:{classes:s,styles:g,attributes:a},...d}}const{styles:Yg}=en;function bh(e){const t=_e.autoReplaceSvg==="nest"?oc(e,{styleParser:!1}):oc(e);return~t.extra.classes.indexOf(th)?Fn("generateLayersText",e,t):Fn("generateSvgReplacementMutation",e,t)}let sn=new Set;Ju.map(e=>{sn.add("fa-".concat(e))});Object.keys(qn[ot]).map(sn.add.bind(sn));Object.keys(qn[It]).map(sn.add.bind(sn));Object.keys(qn[Nt]).map(sn.add.bind(sn));sn=[...sn];function ac(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(!Sn)return Promise.resolve();const n=rt.documentElement.classList,i=o=>n.add("".concat(Xl,"-").concat(o)),s=o=>n.remove("".concat(Xl,"-").concat(o)),a=_e.autoFetchSvg?sn:Ju.map(o=>"fa-".concat(o)).concat(Object.keys(Yg));a.includes("fa")||a.push("fa");const d=[".".concat(th,":not([").concat(ii,"])")].concat(a.map(o=>".".concat(o,":not([").concat(ii,"])"))).join(", ");if(d.length===0)return Promise.resolve();let g=[];try{g=Wi(e.querySelectorAll(d))}catch{}if(g.length>0)i("pending"),s("complete");else return Promise.resolve();const l=tl.begin("onTree"),p=g.reduce((o,r)=>{try{const c=bh(r);c&&o.push(c)}catch(c){qu||c.name==="MissingIcon"&&console.error(c)}return o},[]);return new Promise((o,r)=>{Promise.all(p).then(c=>{vh(c,()=>{i("active"),i("complete"),s("pending"),typeof t=="function"&&t(),l(),o()})}).catch(c=>{l(),r(c)})})}function Kg(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;bh(e).then(n=>{n&&vh([n],t)})}function Zg(e){return function(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const i=(t||{}).icon?t:ra(t||{});let{mask:s}=n;return s&&(s=(s||{}).icon?s:ra(s||{})),e(i,{...n,mask:s})}}const Xg=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{transform:n=Jt,symbol:i=!1,mask:s=null,maskId:a=null,title:d=null,titleId:g=null,classes:l=[],attributes:p={},styles:o={}}=t;if(!e)return;const{prefix:r,iconName:c,icon:u}=e;return js({type:"icon",...e},()=>(ri("beforeDOMElementCreation",{iconDefinition:e,params:t}),_e.autoA11y&&(d?p["aria-labelledby"]="".concat(_e.replacementClass,"-title-").concat(g||fr()):(p["aria-hidden"]="true",p.focusable="false")),el({icons:{main:sa(u),mask:s?sa(s.icon):{found:!1,width:null,height:null,icon:{}}},prefix:r,iconName:c,transform:{...Jt,...n},symbol:i,title:d,maskId:a,titleId:g,extra:{attributes:p,styles:o,classes:l}})))};var Qg={mixout(){return{icon:Zg(Xg)}},hooks(){return{mutationObserverCallbacks(e){return e.treeCallback=ac,e.nodeCallback=Kg,e}}},provides(e){e.i2svg=function(t){const{node:n=rt,callback:i=()=>{}}=t;return ac(n,i)},e.generateSvgReplacementMutation=function(t,n){const{iconName:i,title:s,titleId:a,prefix:d,transform:g,symbol:l,mask:p,maskId:o,extra:r}=n;return new Promise((c,u)=>{Promise.all([oa(i,d),p.iconName?oa(p.iconName,p.prefix):Promise.resolve({found:!1,width:512,height:512,icon:{}})]).then(h=>{let[f,m]=h;c([t,el({icons:{main:f,mask:m},prefix:d,iconName:i,transform:g,symbol:l,maskId:o,title:s,titleId:a,extra:r,watchable:!0})])}).catch(u)})},e.generateAbstractIcon=function(t){let{children:n,attributes:i,main:s,transform:a,styles:d}=t;const g=Ws(d);g.length>0&&(i.style=g);let l;return Xa(a)&&(l=Fn("generateAbstractTransformGrouping",{main:s,transform:a,containerWidth:s.width,iconWidth:s.width})),n.push(l||s.icon),{children:n,attributes:i}}}},qg={mixout(){return{layer(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{classes:n=[]}=t;return js({type:"layer"},()=>{ri("beforeDOMElementCreation",{assembler:e,params:t});let i=[];return e(s=>{Array.isArray(s)?s.map(a=>{i=i.concat(a.abstract)}):i=i.concat(s.abstract)}),[{tag:"span",attributes:{class:["".concat(_e.cssPrefix,"-layers"),...n].join(" ")},children:i}]})}}}},Jg={mixout(){return{counter(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{title:n=null,classes:i=[],attributes:s={},styles:a={}}=t;return js({type:"counter",content:e},()=>(ri("beforeDOMElementCreation",{content:e,params:t}),Rg({content:e.toString(),title:n,extra:{attributes:s,styles:a,classes:["".concat(_e.cssPrefix,"-layers-counter"),...i]}})))}}}},em={mixout(){return{text(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{transform:n=Jt,title:i=null,classes:s=[],attributes:a={},styles:d={}}=t;return js({type:"text",content:e},()=>(ri("beforeDOMElementCreation",{content:e,params:t}),tc({content:e,transform:{...Jt,...n},title:i,extra:{attributes:a,styles:d,classes:["".concat(_e.cssPrefix,"-layers-text"),...s]}})))}}},provides(e){e.generateLayersText=function(t,n){const{title:i,transform:s,extra:a}=n;let d=null,g=null;if(Gu){const l=parseInt(getComputedStyle(t).fontSize,10),p=t.getBoundingClientRect();d=p.width/l,g=p.height/l}return _e.autoA11y&&!i&&(a.attributes["aria-hidden"]="true"),Promise.resolve([t,tc({content:t.innerHTML,width:d,height:g,transform:s,title:i,extra:a,watchable:!0})])}}};const tm=new RegExp('"',"ug"),lc=[1105920,1112319],cc={FontAwesome:{normal:"fas",400:"fas"},...Dp,...Np,...Up},ca=Object.keys(cc).reduce((e,t)=>(e[t.toLowerCase()]=cc[t],e),{}),nm=Object.keys(ca).reduce((e,t)=>{const n=ca[t];return e[t]=n[900]||[...Object.entries(n)][0][1],e},{});function im(e){const t=e.replace(tm,""),n=pg(t,0),i=n>=lc[0]&&n<=lc[1],s=t.length===2?t[0]===t[1]:!1;return{value:ta(s?t[0]:t),isSecondary:i||s}}function rm(e,t){const n=e.replace(/^['"]|['"]$/g,"").toLowerCase(),i=parseInt(t),s=isNaN(i)?"normal":i;return(ca[n]||{})[s]||nm[n]}function uc(e,t){const n="".concat(Yp).concat(t.replace(":","-"));return new Promise((i,s)=>{if(e.getAttribute(n)!==null)return i();const d=Wi(e.children).filter(c=>c.getAttribute(Qo)===t)[0],g=Nn.getComputedStyle(e,t),l=g.getPropertyValue("font-family"),p=l.match(qp),o=g.getPropertyValue("font-weight"),r=g.getPropertyValue("content");if(d&&!p)return e.removeChild(d),i();if(p&&r!=="none"&&r!==""){const c=g.getPropertyValue("content");let u=rm(l,o);const{value:h,isSecondary:f}=im(c),m=p[0].startsWith("FontAwesome");let v=qa(u,h),y=v;if(m){const $=_g(h);$.iconName&&$.prefix&&(v=$.iconName,u=$.prefix)}if(v&&!f&&(!d||d.getAttribute(Ya)!==u||d.getAttribute(Ka)!==y)){e.setAttribute(n,y),d&&e.removeChild(d);const $=Gg(),{extra:_}=$;_.attributes[Qo]=t,oa(v,u).then(S=>{const b=el({...$,icons:{main:S,mask:Ja()},prefix:u,iconName:y,extra:_,watchable:!0}),M=rt.createElementNS("http://www.w3.org/2000/svg","svg");t==="::before"?e.insertBefore(M,e.firstChild):e.appendChild(M),M.outerHTML=b.map(O=>Pr(O)).join(` `),e.removeAttribute(n),i()}).catch(s)}else i()}else i()})}function sm(e){return Promise.all([uc(e,"::before"),uc(e,"::after")])}function om(e){return e.parentNode!==document.head&&!~Zp.indexOf(e.tagName.toUpperCase())&&!e.getAttribute(Qo)&&(!e.parentNode||e.parentNode.tagName!=="svg")}function hc(e){if(Sn)return new Promise((t,n)=>{const i=Wi(e.querySelectorAll("*")).filter(om).map(sm),s=tl.begin("searchPseudoElements");yh(),Promise.all(i).then(()=>{s(),la(),t()}).catch(()=>{s(),la(),n()})})}var am={hooks(){return{mutationObserverCallbacks(e){return e.pseudoElementsCallback=hc,e}}},provides(e){e.pseudoElements2svg=function(t){const{node:n=rt}=t;_e.searchPseudoElements&&hc(n)}}};let dc=!1;var lm={mixout(){return{dom:{unwatch(){yh(),dc=!0}}}},hooks(){return{bootstrap(){sc(ia("mutationObserverCallbacks",{}))},noAuto(){jg()},watch(e){const{observeMutationsRoot:t}=e;dc?la():sc(ia("mutationObserverCallbacks",{observeMutationsRoot:t}))}}}};const fc=e=>{let t={size:16,x:0,y:0,flipX:!1,flipY:!1,rotate:0};return e.toLowerCase().split(" ").reduce((n,i)=>{const s=i.toLowerCase().split("-"),a=s[0];let d=s.slice(1).join("-");if(a&&d==="h")return n.flipX=!0,n;if(a&&d==="v")return n.flipY=!0,n;if(d=parseFloat(d),isNaN(d))return n;switch(a){case"grow":n.size=n.size+d;break;case"shrink":n.size=n.size-d;break;case"left":n.x=n.x-d;break;case"right":n.x=n.x+d;break;case"up":n.y=n.y-d;break;case"down":n.y=n.y+d;break;case"rotate":n.rotate=n.rotate+d;break}return n},t)};var cm={mixout(){return{parse:{transform:e=>fc(e)}}},hooks(){return{parseNodeAttributes(e,t){const n=t.getAttribute("data-fa-transform");return n&&(e.transform=fc(n)),e}}},provides(e){e.generateAbstractTransformGrouping=function(t){let{main:n,transform:i,containerWidth:s,iconWidth:a}=t;const d={transform:"translate(".concat(s/2," 256)")},g="translate(".concat(i.x*32,", ").concat(i.y*32,") "),l="scale(".concat(i.size/16*(i.flipX?-1:1),", ").concat(i.size/16*(i.flipY?-1:1),") "),p="rotate(".concat(i.rotate," 0 0)"),o={transform:"".concat(g," ").concat(l," ").concat(p)},r={transform:"translate(".concat(a/2*-1," -256)")},c={outer:d,inner:o,path:r};return{tag:"g",attributes:{...c.outer},children:[{tag:"g",attributes:{...c.inner},children:[{tag:n.icon.tag,children:n.icon.children,attributes:{...n.icon.attributes,...c.path}}]}]}}}};const $o={x:0,y:0,width:"100%",height:"100%"};function pc(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return e.attributes&&(e.attributes.fill||t)&&(e.attributes.fill="black"),e}function um(e){return e.tag==="g"?e.children:[e]}var hm={hooks(){return{parseNodeAttributes(e,t){const n=t.getAttribute("data-fa-mask"),i=n?zs(n.split(" ").map(s=>s.trim())):Ja();return i.prefix||(i.prefix=Dn()),e.mask=i,e.maskId=t.getAttribute("data-fa-mask-id"),e}}},provides(e){e.generateAbstractMask=function(t){let{children:n,attributes:i,main:s,mask:a,maskId:d,transform:g}=t;const{width:l,icon:p}=s,{width:o,icon:r}=a,c=lg({transform:g,containerWidth:o,iconWidth:l}),u={tag:"rect",attributes:{...$o,fill:"white"}},h=p.children?{children:p.children.map(pc)}:{},f={tag:"g",attributes:{...c.inner},children:[pc({tag:p.tag,attributes:{...p.attributes,...c.path},...h})]},m={tag:"g",attributes:{...c.outer},children:[f]},v="mask-".concat(d||fr()),y="clip-".concat(d||fr()),$={tag:"mask",attributes:{...$o,id:v,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"},children:[u,m]},_={tag:"defs",children:[{tag:"clipPath",attributes:{id:y},children:um(r)},$]};return n.push(_,{tag:"rect",attributes:{fill:"currentColor","clip-path":"url(#".concat(y,")"),mask:"url(#".concat(v,")"),...$o}}),{children:n,attributes:i}}}},dm={provides(e){let t=!1;Nn.matchMedia&&(t=Nn.matchMedia("(prefers-reduced-motion: reduce)").matches),e.missingIconAbstract=function(){const n=[],i={fill:"currentColor"},s={attributeType:"XML",repeatCount:"indefinite",dur:"2s"};n.push({tag:"path",attributes:{...i,d:"M156.5,447.7l-12.6,29.5c-18.7-9.5-35.9-21.2-51.5-34.9l22.7-22.7C127.6,430.5,141.5,440,156.5,447.7z M40.6,272H8.5 c1.4,21.2,5.4,41.7,11.7,61.1L50,321.2C45.1,305.5,41.8,289,40.6,272z M40.6,240c1.4-18.8,5.2-37,11.1-54.1l-29.5-12.6 C14.7,194.3,10,216.7,8.5,240H40.6z M64.3,156.5c7.8-14.9,17.2-28.8,28.1-41.5L69.7,92.3c-13.7,15.6-25.5,32.8-34.9,51.5 L64.3,156.5z M397,419.6c-13.9,12-29.4,22.3-46.1,30.4l11.9,29.8c20.7-9.9,39.8-22.6,56.9-37.6L397,419.6z M115,92.4 c13.9-12,29.4-22.3,46.1-30.4l-11.9-29.8c-20.7,9.9-39.8,22.6-56.8,37.6L115,92.4z M447.7,355.5c-7.8,14.9-17.2,28.8-28.1,41.5 l22.7,22.7c13.7-15.6,25.5-32.9,34.9-51.5L447.7,355.5z M471.4,272c-1.4,18.8-5.2,37-11.1,54.1l29.5,12.6 c7.5-21.1,12.2-43.5,13.6-66.8H471.4z M321.2,462c-15.7,5-32.2,8.2-49.2,9.4v32.1c21.2-1.4,41.7-5.4,61.1-11.7L321.2,462z M240,471.4c-18.8-1.4-37-5.2-54.1-11.1l-12.6,29.5c21.1,7.5,43.5,12.2,66.8,13.6V471.4z M462,190.8c5,15.7,8.2,32.2,9.4,49.2h32.1 c-1.4-21.2-5.4-41.7-11.7-61.1L462,190.8z M92.4,397c-12-13.9-22.3-29.4-30.4-46.1l-29.8,11.9c9.9,20.7,22.6,39.8,37.6,56.9 L92.4,397z M272,40.6c18.8,1.4,36.9,5.2,54.1,11.1l12.6-29.5C317.7,14.7,295.3,10,272,8.5V40.6z M190.8,50 c15.7-5,32.2-8.2,49.2-9.4V8.5c-21.2,1.4-41.7,5.4-61.1,11.7L190.8,50z M442.3,92.3L419.6,115c12,13.9,22.3,29.4,30.5,46.1 l29.8-11.9C470,128.5,457.3,109.4,442.3,92.3z M397,92.4l22.7-22.7c-15.6-13.7-32.8-25.5-51.5-34.9l-12.6,29.5 C370.4,72.1,384.4,81.5,397,92.4z"}});const a={...s,attributeName:"opacity"},d={tag:"circle",attributes:{...i,cx:"256",cy:"364",r:"28"},children:[]};return t||d.children.push({tag:"animate",attributes:{...s,attributeName:"r",values:"28;14;28;28;14;28;"}},{tag:"animate",attributes:{...a,values:"1;0;1;1;0;1;"}}),n.push(d),n.push({tag:"path",attributes:{...i,opacity:"1",d:"M263.7,312h-16c-6.6,0-12-5.4-12-12c0-71,77.4-63.9,77.4-107.8c0-20-17.8-40.2-57.4-40.2c-29.1,0-44.3,9.6-59.2,28.7 c-3.9,5-11.1,6-16.2,2.4l-13.1-9.2c-5.6-3.9-6.9-11.8-2.6-17.2c21.2-27.2,46.4-44.7,91.2-44.7c52.3,0,97.4,29.8,97.4,80.2 c0,67.6-77.4,63.5-77.4,107.8C275.7,306.6,270.3,312,263.7,312z"},children:t?[]:[{tag:"animate",attributes:{...a,values:"1;0;0;0;0;1;"}}]}),t||n.push({tag:"path",attributes:{...i,opacity:"0",d:"M232.5,134.5l7,168c0.3,6.4,5.6,11.5,12,11.5h9c6.4,0,11.7-5.1,12-11.5l7-168c0.3-6.8-5.2-12.5-12-12.5h-23 C237.7,122,232.2,127.7,232.5,134.5z"},children:[{tag:"animate",attributes:{...a,values:"0;0;1;1;0;0;"}}]}),{tag:"g",attributes:{class:"missing"},children:n}}}},fm={hooks(){return{parseNodeAttributes(e,t){const n=t.getAttribute("data-fa-symbol"),i=n===null?!1:n===""?!0:n;return e.symbol=i,e}}}},pm=[hg,Qg,qg,Jg,em,am,lm,cm,hm,dm,fm];$g(pm,{mixoutsTo:Wt});Wt.noAuto;Wt.config;const gm=Wt.library;Wt.dom;const ua=Wt.parse;Wt.findIconDefinition;Wt.toHtml;const mm=Wt.icon;Wt.layer;Wt.text;Wt.counter;const vm={prefix:"fas",iconName:"lightbulb",icon:[384,512,[128161],"f0eb","M272 384c9.6-31.9 29.5-59.1 49.2-86.2c0 0 0 0 0 0c5.2-7.1 10.4-14.2 15.4-21.4c19.8-28.5 31.4-63 31.4-100.3C368 78.8 289.2 0 192 0S16 78.8 16 176c0 37.3 11.6 71.9 31.4 100.3c5 7.2 10.2 14.3 15.4 21.4c0 0 0 0 0 0c19.8 27.1 39.7 54.4 49.2 86.2l160 0zM192 512c44.2 0 80-35.8 80-80l0-16-160 0 0 16c0 44.2 35.8 80 80 80zM112 176c0 8.8-7.2 16-16 16s-16-7.2-16-16c0-61.9 50.1-112 112-112c8.8 0 16 7.2 16 16s-7.2 16-16 16c-44.2 0-80 35.8-80 80z"]},ym={prefix:"fas",iconName:"pen-to-square",icon:[512,512,["edit"],"f044","M471.6 21.7c-21.9-21.9-57.3-21.9-79.2 0L362.3 51.7l97.9 97.9 30.1-30.1c21.9-21.9 21.9-57.3 0-79.2L471.6 21.7zm-299.2 220c-6.1 6.1-10.8 13.6-13.5 21.9l-29.6 88.8c-2.9 8.6-.6 18.1 5.8 24.6s15.9 8.7 24.6 5.8l88.8-29.6c8.2-2.7 15.7-7.4 21.9-13.5L437.7 172.3 339.7 74.3 172.4 241.7zM96 64C43 64 0 107 0 160L0 416c0 53 43 96 96 96l256 0c53 0 96-43 96-96l0-96c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 96c0 17.7-14.3 32-32 32L96 448c-17.7 0-32-14.3-32-32l0-256c0-17.7 14.3-32 32-32l96 0c17.7 0 32-14.3 32-32s-14.3-32-32-32L96 64z"]},bm=ym,wm={prefix:"fas",iconName:"question",icon:[320,512,[10067,10068,61736],"3f","M80 160c0-35.3 28.7-64 64-64l32 0c35.3 0 64 28.7 64 64l0 3.6c0 21.8-11.1 42.1-29.4 53.8l-42.2 27.1c-25.2 16.2-40.4 44.1-40.4 74l0 1.4c0 17.7 14.3 32 32 32s32-14.3 32-32l0-1.4c0-8.2 4.2-15.8 11-20.2l42.2-27.1c36.6-23.6 58.8-64.1 58.8-107.7l0-3.6c0-70.7-57.3-128-128-128l-32 0C73.3 32 16 89.3 16 160c0 17.7 14.3 32 32 32s32-14.3 32-32zm80 320a40 40 0 1 0 0-80 40 40 0 1 0 0 80z"]},_m={prefix:"fas",iconName:"arrow-right",icon:[448,512,[8594],"f061","M438.6 278.6c12.5-12.5 12.5-32.8 0-45.3l-160-160c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L338.8 224 32 224c-17.7 0-32 14.3-32 32s14.3 32 32 32l306.7 0L233.4 393.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0l160-160z"]},Sm={prefix:"fas",iconName:"circle-info",icon:[512,512,["info-circle"],"f05a","M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM216 336l24 0 0-64-24 0c-13.3 0-24-10.7-24-24s10.7-24 24-24l48 0c13.3 0 24 10.7 24 24l0 88 8 0c13.3 0 24 10.7 24 24s-10.7 24-24 24l-80 0c-13.3 0-24-10.7-24-24s10.7-24 24-24zm40-208a32 32 0 1 1 0 64 32 32 0 1 1 0-64z"]},xm=Sm,Cm={prefix:"fas",iconName:"ticket",icon:[576,512,[127903],"f145","M64 64C28.7 64 0 92.7 0 128l0 64c0 8.8 7.4 15.7 15.7 18.6C34.5 217.1 48 235 48 256s-13.5 38.9-32.3 45.4C7.4 304.3 0 311.2 0 320l0 64c0 35.3 28.7 64 64 64l448 0c35.3 0 64-28.7 64-64l0-64c0-8.8-7.4-15.7-15.7-18.6C541.5 294.9 528 277 528 256s13.5-38.9 32.3-45.4c8.3-2.9 15.7-9.8 15.7-18.6l0-64c0-35.3-28.7-64-64-64L64 64zm64 112l0 160c0 8.8 7.2 16 16 16l288 0c8.8 0 16-7.2 16-16l0-160c0-8.8-7.2-16-16-16l-288 0c-8.8 0-16 7.2-16 16zM96 160c0-17.7 14.3-32 32-32l320 0c17.7 0 32 14.3 32 32l0 192c0 17.7-14.3 32-32 32l-320 0c-17.7 0-32-14.3-32-32l0-192z"]},$m={prefix:"fas",iconName:"sun",icon:[512,512,[9728],"f185","M361.5 1.2c5 2.1 8.6 6.6 9.6 11.9L391 121l107.9 19.8c5.3 1 9.8 4.6 11.9 9.6s1.5 10.7-1.6 15.2L446.9 256l62.3 90.3c3.1 4.5 3.7 10.2 1.6 15.2s-6.6 8.6-11.9 9.6L391 391 371.1 498.9c-1 5.3-4.6 9.8-9.6 11.9s-10.7 1.5-15.2-1.6L256 446.9l-90.3 62.3c-4.5 3.1-10.2 3.7-15.2 1.6s-8.6-6.6-9.6-11.9L121 391 13.1 371.1c-5.3-1-9.8-4.6-11.9-9.6s-1.5-10.7 1.6-15.2L65.1 256 2.8 165.7c-3.1-4.5-3.7-10.2-1.6-15.2s6.6-8.6 11.9-9.6L121 121 140.9 13.1c1-5.3 4.6-9.8 9.6-11.9s10.7-1.5 15.2 1.6L256 65.1 346.3 2.8c4.5-3.1 10.2-3.7 15.2-1.6zM160 256a96 96 0 1 1 192 0 96 96 0 1 1 -192 0zm224 0a128 128 0 1 0 -256 0 128 128 0 1 0 256 0z"]},Am={prefix:"fas",iconName:"bell",icon:[448,512,[128276,61602],"f0f3","M224 0c-17.7 0-32 14.3-32 32l0 19.2C119 66 64 130.6 64 208l0 18.8c0 47-17.3 92.4-48.5 127.6l-7.4 8.3c-8.4 9.4-10.4 22.9-5.3 34.4S19.4 416 32 416l384 0c12.6 0 24-7.4 29.2-18.9s3.1-25-5.3-34.4l-7.4-8.3C401.3 319.2 384 273.9 384 226.8l0-18.8c0-77.4-55-142-128-156.8L256 32c0-17.7-14.3-32-32-32zm45.3 493.3c12-12 18.7-28.3 18.7-45.3l-64 0-64 0c0 17 6.7 33.3 18.7 45.3s28.3 18.7 45.3 18.7s33.3-6.7 45.3-18.7z"]},km={prefix:"fas",iconName:"file",icon:[384,512,[128196,128459,61462],"f15b","M0 64C0 28.7 28.7 0 64 0L224 0l0 128c0 17.7 14.3 32 32 32l128 0 0 288c0 35.3-28.7 64-64 64L64 512c-35.3 0-64-28.7-64-64L0 64zm384 64l-128 0L256 0 384 128z"]},wh={prefix:"fas",iconName:"magnifying-glass",icon:[512,512,[128269,"search"],"f002","M416 208c0 45.9-14.9 88.3-40 122.7L502.6 457.4c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0L330.7 376c-34.4 25.2-76.8 40-122.7 40C93.1 416 0 322.9 0 208S93.1 0 208 0S416 93.1 416 208zM208 352a144 144 0 1 0 0-288 144 144 0 1 0 0 288z"]},Mm=wh,Em={prefix:"fas",iconName:"plus",icon:[448,512,[10133,61543,"add"],"2b","M256 80c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 144L48 224c-17.7 0-32 14.3-32 32s14.3 32 32 32l144 0 0 144c0 17.7 14.3 32 32 32s32-14.3 32-32l0-144 144 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-144 0 0-144z"]},Tm={prefix:"fas",iconName:"xmark",icon:[384,512,[128473,10005,10006,10060,215,"close","multiply","remove","times"],"f00d","M342.6 150.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L192 210.7 86.6 105.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L146.7 256 41.4 361.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L192 301.3 297.4 406.6c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L237.3 256 342.6 150.6z"]},Lm=Tm,Rm={prefix:"fas",iconName:"spinner",icon:[512,512,[],"f110","M304 48a48 48 0 1 0 -96 0 48 48 0 1 0 96 0zm0 416a48 48 0 1 0 -96 0 48 48 0 1 0 96 0zM48 304a48 48 0 1 0 0-96 48 48 0 1 0 0 96zm464-48a48 48 0 1 0 -96 0 48 48 0 1 0 96 0zM142.9 437A48 48 0 1 0 75 369.1 48 48 0 1 0 142.9 437zm0-294.2A48 48 0 1 0 75 75a48 48 0 1 0 67.9 67.9zM369.1 437A48 48 0 1 0 437 369.1 48 48 0 1 0 369.1 437z"]},Om={prefix:"fas",iconName:"moon",icon:[384,512,[127769,9214],"f186","M223.5 32C100 32 0 132.3 0 256S100 480 223.5 480c60.6 0 115.5-24.2 155.8-63.4c5-4.9 6.3-12.5 3.1-18.7s-10.1-9.7-17-8.5c-9.8 1.7-19.8 2.6-30.1 2.6c-96.9 0-175.5-78.8-175.5-176c0-65.8 36-123.1 89.3-153.3c6.1-3.5 9.2-10.5 7.7-17.3s-7.3-11.9-14.3-12.5c-6.3-.5-12.6-.8-19-.8z"]},Im={prefix:"fas",iconName:"check",icon:[448,512,[10003,10004],"f00c","M438.6 105.4c12.5 12.5 12.5 32.8 0 45.3l-256 256c-12.5 12.5-32.8 12.5-45.3 0l-128-128c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0L160 338.7 393.4 105.4c12.5-12.5 32.8-12.5 45.3 0z"]},Nm={prefix:"fas",iconName:"triangle-exclamation",icon:[512,512,[9888,"exclamation-triangle","warning"],"f071","M256 32c14.2 0 27.3 7.5 34.5 19.8l216 368c7.3 12.4 7.3 27.7 .2 40.1S486.3 480 472 480L40 480c-14.3 0-27.6-7.7-34.7-20.1s-7-27.8 .2-40.1l216-368C228.7 39.5 241.8 32 256 32zm0 128c-13.3 0-24 10.7-24 24l0 112c0 13.3 10.7 24 24 24s24-10.7 24-24l0-112c0-13.3-10.7-24-24-24zm32 224a32 32 0 1 0 -64 0 32 32 0 1 0 64 0z"]},Dm={prefix:"fas",iconName:"exclamation",icon:[128,512,[10069,10071,61738],"21","M96 64c0-17.7-14.3-32-32-32S32 46.3 32 64l0 256c0 17.7 14.3 32 32 32s32-14.3 32-32L96 64zM64 480a40 40 0 1 0 0-80 40 40 0 1 0 0 80z"]},Fm={prefix:"fas",iconName:"barcode",icon:[512,512,[],"f02a","M24 32C10.7 32 0 42.7 0 56L0 456c0 13.3 10.7 24 24 24l16 0c13.3 0 24-10.7 24-24L64 56c0-13.3-10.7-24-24-24L24 32zm88 0c-8.8 0-16 7.2-16 16l0 416c0 8.8 7.2 16 16 16s16-7.2 16-16l0-416c0-8.8-7.2-16-16-16zm72 0c-13.3 0-24 10.7-24 24l0 400c0 13.3 10.7 24 24 24l16 0c13.3 0 24-10.7 24-24l0-400c0-13.3-10.7-24-24-24l-16 0zm96 0c-13.3 0-24 10.7-24 24l0 400c0 13.3 10.7 24 24 24l16 0c13.3 0 24-10.7 24-24l0-400c0-13.3-10.7-24-24-24l-16 0zM448 56l0 400c0 13.3 10.7 24 24 24l16 0c13.3 0 24-10.7 24-24l0-400c0-13.3-10.7-24-24-24l-16 0c-13.3 0-24 10.7-24 24zm-64-8l0 416c0 8.8 7.2 16 16 16s16-7.2 16-16l0-416c0-8.8-7.2-16-16-16s-16 7.2-16 16z"]};/** * @vue/shared v3.5.12 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT **//*! #__NO_SIDE_EFFECTS__ */function il(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const qe={},xi=[],tn=()=>{},Pm=()=>!1,Hs=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),rl=e=>e.startsWith("onUpdate:"),ht=Object.assign,sl=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},Wm=Object.prototype.hasOwnProperty,Ke=(e,t)=>Wm.call(e,t),Re=Array.isArray,Ci=e=>Us(e)==="[object Map]",_h=e=>Us(e)==="[object Set]",Oe=e=>typeof e=="function",ut=e=>typeof e=="string",jn=e=>typeof e=="symbol",st=e=>e!==null&&typeof e=="object",Sh=e=>(st(e)||Oe(e))&&Oe(e.then)&&Oe(e.catch),xh=Object.prototype.toString,Us=e=>xh.call(e),Bm=e=>Us(e).slice(8,-1),Ch=e=>Us(e)==="[object Object]",ol=e=>ut(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,rr=il(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Vs=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},zm=/-(\w)/g,jt=Vs(e=>e.replace(zm,(t,n)=>n?n.toUpperCase():"")),jm=/\B([A-Z])/g,fi=Vs(e=>e.replace(jm,"-$1").toLowerCase()),Wr=Vs(e=>e.charAt(0).toUpperCase()+e.slice(1)),Ao=Vs(e=>e?`on${Wr(e)}`:""),In=(e,t)=>!Object.is(e,t),os=(e,...t)=>{for(let n=0;n{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:i,value:n})},ha=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let gc;const Gs=()=>gc||(gc=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function al(e){if(Re(e)){const t={};for(let n=0;n{if(n){const i=n.split(Um);i.length>1&&(t[i[0].trim()]=i[1].trim())}}),t}function Br(e){let t="";if(ut(e))t=e;else if(Re(e))for(let n=0;n!!(e&&e.__v_isRef===!0),Se=e=>ut(e)?e:e==null?"":Re(e)||st(e)&&(e.toString===xh||!Oe(e.toString))?kh(e)?Se(e.value):JSON.stringify(e,Mh,2):String(e),Mh=(e,t)=>kh(t)?Mh(e,t.value):Ci(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[i,s],a)=>(n[ko(i,a)+" =>"]=s,n),{})}:_h(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>ko(n))}:jn(t)?ko(t):st(t)&&!Re(t)&&!Ch(t)?String(t):t,ko=(e,t="")=>{var n;return jn(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};/** * @vue/reactivity v3.5.12 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT **/let Ct;class Eh{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=Ct,!t&&Ct&&(this.index=(Ct.scopes||(Ct.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t0)return;if(or){let t=or;for(or=void 0;t;){const n=t.next;t.next=void 0,t.flags&=-9,t=n}}let e;for(;sr;){let t=sr;for(sr=void 0;t;){const n=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(i){e||(e=i)}t=n}}if(e)throw e}function Ih(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function Nh(e){let t,n=e.depsTail,i=n;for(;i;){const s=i.prevDep;i.version===-1?(i===n&&(n=s),ul(i),Qm(i)):t=i,i.dep.activeLink=i.prevActiveLink,i.prevActiveLink=void 0,i=s}e.deps=t,e.depsTail=n}function da(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(Dh(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function Dh(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===pr))return;e.globalVersion=pr;const t=e.dep;if(e.flags|=2,t.version>0&&!e.isSSR&&e.deps&&!da(e)){e.flags&=-3;return}const n=et,i=Ut;et=e,Ut=!0;try{Ih(e);const s=e.fn(e._value);(t.version===0||In(s,e._value))&&(e._value=s,t.version++)}catch(s){throw t.version++,s}finally{et=n,Ut=i,Nh(e),e.flags&=-3}}function ul(e,t=!1){const{dep:n,prevSub:i,nextSub:s}=e;if(i&&(i.nextSub=s,e.prevSub=void 0),s&&(s.prevSub=i,e.nextSub=void 0),n.subs===e&&(n.subs=i,!i&&n.computed)){n.computed.flags&=-5;for(let a=n.computed.deps;a;a=a.nextDep)ul(a,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function Qm(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}let Ut=!0;const Fh=[];function Hn(){Fh.push(Ut),Ut=!1}function Un(){const e=Fh.pop();Ut=e===void 0?!0:e}function mc(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=et;et=void 0;try{t()}finally{et=n}}}let pr=0,qm=class{constructor(t,n){this.sub=t,this.dep=n,this.version=n.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}};class Ys{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0}track(t){if(!et||!Ut||et===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==et)n=this.activeLink=new qm(et,this),et.deps?(n.prevDep=et.depsTail,et.depsTail.nextDep=n,et.depsTail=n):et.deps=et.depsTail=n,Ph(n);else if(n.version===-1&&(n.version=this.version,n.nextDep)){const i=n.nextDep;i.prevDep=n.prevDep,n.prevDep&&(n.prevDep.nextDep=i),n.prevDep=et.depsTail,n.nextDep=void 0,et.depsTail.nextDep=n,et.depsTail=n,et.deps===n&&(et.deps=i)}return n}trigger(t){this.version++,pr++,this.notify(t)}notify(t){ll();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{cl()}}}function Ph(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let i=t.deps;i;i=i.nextDep)Ph(i)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}const vs=new WeakMap,ei=Symbol(""),fa=Symbol(""),gr=Symbol("");function yt(e,t,n){if(Ut&&et){let i=vs.get(e);i||vs.set(e,i=new Map);let s=i.get(n);s||(i.set(n,s=new Ys),s.map=i,s.key=n),s.track()}}function gn(e,t,n,i,s,a){const d=vs.get(e);if(!d){pr++;return}const g=l=>{l&&l.trigger()};if(ll(),t==="clear")d.forEach(g);else{const l=Re(e),p=l&&ol(n);if(l&&n==="length"){const o=Number(i);d.forEach((r,c)=>{(c==="length"||c===gr||!jn(c)&&c>=o)&&g(r)})}else switch((n!==void 0||d.has(void 0))&&g(d.get(n)),p&&g(d.get(gr)),t){case"add":l?p&&g(d.get("length")):(g(d.get(ei)),Ci(e)&&g(d.get(fa)));break;case"delete":l||(g(d.get(ei)),Ci(e)&&g(d.get(fa)));break;case"set":Ci(e)&&g(d.get(ei));break}}cl()}function Jm(e,t){const n=vs.get(e);return n&&n.get(t)}function pi(e){const t=Ge(e);return t===e?t:(yt(t,"iterate",gr),zt(e)?t:t.map(bt))}function Ks(e){return yt(e=Ge(e),"iterate",gr),e}const ev={__proto__:null,[Symbol.iterator](){return Eo(this,Symbol.iterator,bt)},concat(...e){return pi(this).concat(...e.map(t=>Re(t)?pi(t):t))},entries(){return Eo(this,"entries",e=>(e[1]=bt(e[1]),e))},every(e,t){return hn(this,"every",e,t,void 0,arguments)},filter(e,t){return hn(this,"filter",e,t,n=>n.map(bt),arguments)},find(e,t){return hn(this,"find",e,t,bt,arguments)},findIndex(e,t){return hn(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return hn(this,"findLast",e,t,bt,arguments)},findLastIndex(e,t){return hn(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return hn(this,"forEach",e,t,void 0,arguments)},includes(...e){return To(this,"includes",e)},indexOf(...e){return To(this,"indexOf",e)},join(e){return pi(this).join(e)},lastIndexOf(...e){return To(this,"lastIndexOf",e)},map(e,t){return hn(this,"map",e,t,void 0,arguments)},pop(){return Gi(this,"pop")},push(...e){return Gi(this,"push",e)},reduce(e,...t){return vc(this,"reduce",e,t)},reduceRight(e,...t){return vc(this,"reduceRight",e,t)},shift(){return Gi(this,"shift")},some(e,t){return hn(this,"some",e,t,void 0,arguments)},splice(...e){return Gi(this,"splice",e)},toReversed(){return pi(this).toReversed()},toSorted(e){return pi(this).toSorted(e)},toSpliced(...e){return pi(this).toSpliced(...e)},unshift(...e){return Gi(this,"unshift",e)},values(){return Eo(this,"values",bt)}};function Eo(e,t,n){const i=Ks(e),s=i[t]();return i!==e&&!zt(e)&&(s._next=s.next,s.next=()=>{const a=s._next();return a.value&&(a.value=n(a.value)),a}),s}const tv=Array.prototype;function hn(e,t,n,i,s,a){const d=Ks(e),g=d!==e&&!zt(e),l=d[t];if(l!==tv[t]){const r=l.apply(e,a);return g?bt(r):r}let p=n;d!==e&&(g?p=function(r,c){return n.call(this,bt(r),c,e)}:n.length>2&&(p=function(r,c){return n.call(this,r,c,e)}));const o=l.call(d,p,i);return g&&s?s(o):o}function vc(e,t,n,i){const s=Ks(e);let a=n;return s!==e&&(zt(e)?n.length>3&&(a=function(d,g,l){return n.call(this,d,g,l,e)}):a=function(d,g,l){return n.call(this,d,bt(g),l,e)}),s[t](a,...i)}function To(e,t,n){const i=Ge(e);yt(i,"iterate",gr);const s=i[t](...n);return(s===-1||s===!1)&&fl(n[0])?(n[0]=Ge(n[0]),i[t](...n)):s}function Gi(e,t,n=[]){Hn(),ll();const i=Ge(e)[t].apply(e,n);return cl(),Un(),i}const nv=il("__proto__,__v_isRef,__isVue"),Wh=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(jn));function iv(e){jn(e)||(e=String(e));const t=Ge(this);return yt(t,"has",e),t.hasOwnProperty(e)}class Bh{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,i){const s=this._isReadonly,a=this._isShallow;if(n==="__v_isReactive")return!s;if(n==="__v_isReadonly")return s;if(n==="__v_isShallow")return a;if(n==="__v_raw")return i===(s?a?fv:Uh:a?Hh:jh).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(i)?t:void 0;const d=Re(t);if(!s){let l;if(d&&(l=ev[n]))return l;if(n==="hasOwnProperty")return iv}const g=Reflect.get(t,n,lt(t)?t:i);return(jn(n)?Wh.has(n):nv(n))||(s||yt(t,"get",n),a)?g:lt(g)?d&&ol(n)?g:g.value:st(g)?s?Zs(g):Bi(g):g}}class zh extends Bh{constructor(t=!1){super(!1,t)}set(t,n,i,s){let a=t[n];if(!this._isShallow){const l=si(a);if(!zt(i)&&!si(i)&&(a=Ge(a),i=Ge(i)),!Re(t)&<(a)&&!lt(i))return l?!1:(a.value=i,!0)}const d=Re(t)&&ol(n)?Number(n)e,qr=e=>Reflect.getPrototypeOf(e);function lv(e,t,n){return function(...i){const s=this.__v_raw,a=Ge(s),d=Ci(a),g=e==="entries"||e===Symbol.iterator&&d,l=e==="keys"&&d,p=s[e](...i),o=n?pa:t?ga:bt;return!t&&yt(a,"iterate",l?fa:ei),{next(){const{value:r,done:c}=p.next();return c?{value:r,done:c}:{value:g?[o(r[0]),o(r[1])]:o(r),done:c}},[Symbol.iterator](){return this}}}}function Jr(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function cv(e,t){const n={get(s){const a=this.__v_raw,d=Ge(a),g=Ge(s);e||(In(s,g)&&yt(d,"get",s),yt(d,"get",g));const{has:l}=qr(d),p=t?pa:e?ga:bt;if(l.call(d,s))return p(a.get(s));if(l.call(d,g))return p(a.get(g));a!==d&&a.get(s)},get size(){const s=this.__v_raw;return!e&&yt(Ge(s),"iterate",ei),Reflect.get(s,"size",s)},has(s){const a=this.__v_raw,d=Ge(a),g=Ge(s);return e||(In(s,g)&&yt(d,"has",s),yt(d,"has",g)),s===g?a.has(s):a.has(s)||a.has(g)},forEach(s,a){const d=this,g=d.__v_raw,l=Ge(g),p=t?pa:e?ga:bt;return!e&&yt(l,"iterate",ei),g.forEach((o,r)=>s.call(a,p(o),p(r),d))}};return ht(n,e?{add:Jr("add"),set:Jr("set"),delete:Jr("delete"),clear:Jr("clear")}:{add(s){!t&&!zt(s)&&!si(s)&&(s=Ge(s));const a=Ge(this);return qr(a).has.call(a,s)||(a.add(s),gn(a,"add",s,s)),this},set(s,a){!t&&!zt(a)&&!si(a)&&(a=Ge(a));const d=Ge(this),{has:g,get:l}=qr(d);let p=g.call(d,s);p||(s=Ge(s),p=g.call(d,s));const o=l.call(d,s);return d.set(s,a),p?In(a,o)&&gn(d,"set",s,a):gn(d,"add",s,a),this},delete(s){const a=Ge(this),{has:d,get:g}=qr(a);let l=d.call(a,s);l||(s=Ge(s),l=d.call(a,s)),g&&g.call(a,s);const p=a.delete(s);return l&&gn(a,"delete",s,void 0),p},clear(){const s=Ge(this),a=s.size!==0,d=s.clear();return a&&gn(s,"clear",void 0,void 0),d}}),["keys","values","entries",Symbol.iterator].forEach(s=>{n[s]=lv(s,e,t)}),n}function hl(e,t){const n=cv(e,t);return(i,s,a)=>s==="__v_isReactive"?!e:s==="__v_isReadonly"?e:s==="__v_raw"?i:Reflect.get(Ke(n,s)&&s in i?n:i,s,a)}const uv={get:hl(!1,!1)},hv={get:hl(!1,!0)},dv={get:hl(!0,!1)};const jh=new WeakMap,Hh=new WeakMap,Uh=new WeakMap,fv=new WeakMap;function pv(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function gv(e){return e.__v_skip||!Object.isExtensible(e)?0:pv(Bm(e))}function Bi(e){return si(e)?e:dl(e,!1,sv,uv,jh)}function Vh(e){return dl(e,!1,av,hv,Hh)}function Zs(e){return dl(e,!0,ov,dv,Uh)}function dl(e,t,n,i,s){if(!st(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const a=s.get(e);if(a)return a;const d=gv(e);if(d===0)return e;const g=new Proxy(e,d===2?i:n);return s.set(e,g),g}function $i(e){return si(e)?$i(e.__v_raw):!!(e&&e.__v_isReactive)}function si(e){return!!(e&&e.__v_isReadonly)}function zt(e){return!!(e&&e.__v_isShallow)}function fl(e){return e?!!e.__v_raw:!1}function Ge(e){const t=e&&e.__v_raw;return t?Ge(t):e}function Gh(e){return!Ke(e,"__v_skip")&&Object.isExtensible(e)&&$h(e,"__v_skip",!0),e}const bt=e=>st(e)?Bi(e):e,ga=e=>st(e)?Zs(e):e;function lt(e){return e?e.__v_isRef===!0:!1}function He(e){return Kh(e,!1)}function Yh(e){return Kh(e,!0)}function Kh(e,t){return lt(e)?e:new mv(e,t)}class mv{constructor(t,n){this.dep=new Ys,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?t:Ge(t),this._value=n?t:bt(t),this.__v_isShallow=n}get value(){return this.dep.track(),this._value}set value(t){const n=this._rawValue,i=this.__v_isShallow||zt(t)||si(t);t=i?t:Ge(t),In(t,n)&&(this._rawValue=t,this._value=i?t:bt(t),this.dep.trigger())}}function ce(e){return lt(e)?e.value:e}const vv={get:(e,t,n)=>t==="__v_raw"?e:ce(Reflect.get(e,t,n)),set:(e,t,n,i)=>{const s=e[t];return lt(s)&&!lt(n)?(s.value=n,!0):Reflect.set(e,t,n,i)}};function Zh(e){return $i(e)?e:new Proxy(e,vv)}class yv{constructor(t){this.__v_isRef=!0,this._value=void 0;const n=this.dep=new Ys,{get:i,set:s}=t(n.track.bind(n),n.trigger.bind(n));this._get=i,this._set=s}get value(){return this._value=this._get()}set value(t){this._set(t)}}function Xh(e){return new yv(e)}class bv{constructor(t,n,i){this._object=t,this._key=n,this._defaultValue=i,this.__v_isRef=!0,this._value=void 0}get value(){const t=this._object[this._key];return this._value=t===void 0?this._defaultValue:t}set value(t){this._object[this._key]=t}get dep(){return Jm(Ge(this._object),this._key)}}class wv{constructor(t){this._getter=t,this.__v_isRef=!0,this.__v_isReadonly=!0,this._value=void 0}get value(){return this._value=this._getter()}}function pl(e,t,n){return lt(e)?e:Oe(e)?new wv(e):st(e)&&arguments.length>1?_v(e,t,n):He(e)}function _v(e,t,n){const i=e[t];return lt(i)?i:new bv(e,t,n)}class Sv{constructor(t,n,i){this.fn=t,this.setter=n,this._value=void 0,this.dep=new Ys(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=pr-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!n,this.isSSR=i}notify(){if(this.flags|=16,!(this.flags&8)&&et!==this)return Oh(this,!0),!0}get value(){const t=this.dep.track();return Dh(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function xv(e,t,n=!1){let i,s;return Oe(e)?i=e:(i=e.get,s=e.set),new Sv(i,s,n)}const es={},ys=new WeakMap;let Yn;function Cv(e,t=!1,n=Yn){if(n){let i=ys.get(n);i||ys.set(n,i=[]),i.push(e)}}function $v(e,t,n=qe){const{immediate:i,deep:s,once:a,scheduler:d,augmentJob:g,call:l}=n,p=_=>s?_:zt(_)||s===!1||s===0?mn(_,1):mn(_);let o,r,c,u,h=!1,f=!1;if(lt(e)?(r=()=>e.value,h=zt(e)):$i(e)?(r=()=>p(e),h=!0):Re(e)?(f=!0,h=e.some(_=>$i(_)||zt(_)),r=()=>e.map(_=>{if(lt(_))return _.value;if($i(_))return p(_);if(Oe(_))return l?l(_,2):_()})):Oe(e)?t?r=l?()=>l(e,2):e:r=()=>{if(c){Hn();try{c()}finally{Un()}}const _=Yn;Yn=o;try{return l?l(e,3,[u]):e(u)}finally{Yn=_}}:r=tn,t&&s){const _=r,S=s===!0?1/0:s;r=()=>mn(_(),S)}const m=Th(),v=()=>{o.stop(),m&&sl(m.effects,o)};if(a&&t){const _=t;t=(...S)=>{_(...S),v()}}let y=f?new Array(e.length).fill(es):es;const $=_=>{if(!(!(o.flags&1)||!o.dirty&&!_))if(t){const S=o.run();if(s||h||(f?S.some((b,M)=>In(b,y[M])):In(S,y))){c&&c();const b=Yn;Yn=o;try{const M=[S,y===es?void 0:f&&y[0]===es?[]:y,u];l?l(t,3,M):t(...M),y=S}finally{Yn=b}}}else o.run()};return g&&g($),o=new Lh(r),o.scheduler=d?()=>d($,!1):$,u=_=>Cv(_,!1,o),c=o.onStop=()=>{const _=ys.get(o);if(_){if(l)l(_,4);else for(const S of _)S();ys.delete(o)}},t?i?$(!0):y=o.run():d?d($.bind(null,!0),!0):o.run(),v.pause=o.pause.bind(o),v.resume=o.resume.bind(o),v.stop=v,v}function mn(e,t=1/0,n){if(t<=0||!st(e)||e.__v_skip||(n=n||new Set,n.has(e)))return e;if(n.add(e),t--,lt(e))mn(e.value,t,n);else if(Re(e))for(let i=0;i{mn(i,t,n)});else if(Ch(e)){for(const i in e)mn(e[i],t,n);for(const i of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,i)&&mn(e[i],t,n)}return e}/** * @vue/runtime-core v3.5.12 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT **/function zr(e,t,n,i){try{return i?e(...i):e()}catch(s){Xs(s,t,n)}}function on(e,t,n,i){if(Oe(e)){const s=zr(e,t,n,i);return s&&Sh(s)&&s.catch(a=>{Xs(a,t,n)}),s}if(Re(e)){const s=[];for(let a=0;a>>1,s=$t[i],a=mr(s);a=mr(n)?$t.push(e):$t.splice(kv(t),0,e),e.flags|=1,qh()}}function qh(){bs||(bs=Qh.then(ed))}function Mv(e){Re(e)?Ai.push(...e):En&&e.id===-1?En.splice(gi+1,0,e):e.flags&1||(Ai.push(e),e.flags|=1),qh()}function yc(e,t,n=Qt+1){for(;n<$t.length;n++){const i=$t[n];if(i&&i.flags&2){if(e&&i.id!==e.uid)continue;$t.splice(n,1),n--,i.flags&4&&(i.flags&=-2),i(),i.flags&4||(i.flags&=-2)}}}function Jh(e){if(Ai.length){const t=[...new Set(Ai)].sort((n,i)=>mr(n)-mr(i));if(Ai.length=0,En){En.push(...t);return}for(En=t,gi=0;gie.id==null?e.flags&2?-1:1/0:e.id;function ed(e){try{for(Qt=0;Qt<$t.length;Qt++){const t=$t[Qt];t&&!(t.flags&8)&&(t.flags&4&&(t.flags&=-2),zr(t,t.i,t.i?15:14),t.flags&4||(t.flags&=-2))}}finally{for(;Qt<$t.length;Qt++){const t=$t[Qt];t&&(t.flags&=-2)}Qt=-1,$t.length=0,Jh(),bs=null,($t.length||Ai.length)&&ed()}}let Mt=null,td=null;function ws(e){const t=Mt;return Mt=e,td=e&&e.type.__scopeId||null,t}function nt(e,t=Mt,n){if(!t||e._n)return e;const i=(...s)=>{i._d&&kc(-1);const a=ws(t);let d;try{d=e(...s)}finally{ws(a),i._d&&kc(1)}return d};return i._n=!0,i._c=!0,i._d=!0,i}function ml(e,t){if(Mt===null)return e;const n=eo(Mt),i=e.dirs||(e.dirs=[]);for(let s=0;se.__isTeleport;function vl(e,t){e.shapeFlag&6&&e.component?(e.transition=t,vl(e.component.subTree,t)):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}/*! #__NO_SIDE_EFFECTS__ */function Ce(e,t){return Oe(e)?ht({name:e.name},t,{setup:e}):e}function nd(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function ma(e,t,n,i,s=!1){if(Re(e)){e.forEach((h,f)=>ma(h,t&&(Re(t)?t[f]:t),n,i,s));return}if(ar(i)&&!s)return;const a=i.shapeFlag&4?eo(i.component):i.el,d=s?null:a,{i:g,r:l}=e,p=t&&t.r,o=g.refs===qe?g.refs={}:g.refs,r=g.setupState,c=Ge(r),u=r===qe?()=>!1:h=>Ke(c,h);if(p!=null&&p!==l&&(ut(p)?(o[p]=null,u(p)&&(r[p]=null)):lt(p)&&(p.value=null)),Oe(l))zr(l,g,12,[d,o]);else{const h=ut(l),f=lt(l);if(h||f){const m=()=>{if(e.f){const v=h?u(l)?r[l]:o[l]:l.value;s?Re(v)&&sl(v,a):Re(v)?v.includes(a)||v.push(a):h?(o[l]=[a],u(l)&&(r[l]=o[l])):(l.value=[a],e.k&&(o[e.k]=l.value))}else h?(o[l]=d,u(l)&&(r[l]=d)):f&&(l.value=d,e.k&&(o[e.k]=d))};d?(m.id=-1,Rt(m,n)):m()}}}Gs().requestIdleCallback;Gs().cancelIdleCallback;const ar=e=>!!e.type.__asyncLoader,id=e=>e.type.__isKeepAlive;function Lv(e,t){rd(e,"a",t)}function Rv(e,t){rd(e,"da",t)}function rd(e,t,n=gt){const i=e.__wdc||(e.__wdc=()=>{let s=n;for(;s;){if(s.isDeactivated)return;s=s.parent}return e()});if(Qs(t,i,n),n){let s=n.parent;for(;s&&s.parent;)id(s.parent.vnode)&&Ov(i,t,n,s),s=s.parent}}function Ov(e,t,n,i){const s=Qs(t,e,i,!0);sd(()=>{sl(i[t],s)},n)}function Qs(e,t,n=gt,i=!1){if(n){const s=n[e]||(n[e]=[]),a=t.__weh||(t.__weh=(...d)=>{Hn();const g=Hr(n),l=on(t,n,e,d);return g(),Un(),l});return i?s.unshift(a):s.push(a),a}}const xn=e=>(t,n=gt)=>{(!yr||e==="sp")&&Qs(e,(...i)=>t(...i),n)},Iv=xn("bm"),ct=xn("m"),Nv=xn("bu"),Dv=xn("u"),yl=xn("bum"),sd=xn("um"),Fv=xn("sp"),Pv=xn("rtg"),Wv=xn("rtc");function Bv(e,t=gt){Qs("ec",e,t)}const zv="components";function Xe(e,t){return Hv(zv,e,!0,t)||e}const jv=Symbol.for("v-ndc");function Hv(e,t,n=!0,i=!1){const s=Mt||gt;if(s){const a=s.type;{const g=Ey(a,!1);if(g&&(g===t||g===jt(t)||g===Wr(jt(t))))return a}const d=bc(s[e]||a[e],t)||bc(s.appContext[e],t);return!d&&i?a:d}}function bc(e,t){return e&&(e[t]||e[jt(t)]||e[Wr(jt(t))])}function Pt(e,t,n,i){let s;const a=n,d=Re(e);if(d||ut(e)){const g=d&&$i(e);let l=!1;g&&(l=!zt(e),e=Ks(e)),s=new Array(e.length);for(let p=0,o=e.length;pt(g,l,void 0,a));else{const g=Object.keys(e);s=new Array(g.length);for(let l=0,p=g.length;le?Cd(e)?eo(e):va(e.parent):null,lr=ht(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>va(e.parent),$root:e=>va(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>bl(e),$forceUpdate:e=>e.f||(e.f=()=>{gl(e.update)}),$nextTick:e=>e.n||(e.n=jr.bind(e.proxy)),$watch:e=>uy.bind(e)}),Lo=(e,t)=>e!==qe&&!e.__isScriptSetup&&Ke(e,t),Uv={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:i,data:s,props:a,accessCache:d,type:g,appContext:l}=e;let p;if(t[0]!=="$"){const u=d[t];if(u!==void 0)switch(u){case 1:return i[t];case 2:return s[t];case 4:return n[t];case 3:return a[t]}else{if(Lo(i,t))return d[t]=1,i[t];if(s!==qe&&Ke(s,t))return d[t]=2,s[t];if((p=e.propsOptions[0])&&Ke(p,t))return d[t]=3,a[t];if(n!==qe&&Ke(n,t))return d[t]=4,n[t];ya&&(d[t]=0)}}const o=lr[t];let r,c;if(o)return t==="$attrs"&&yt(e.attrs,"get",""),o(e);if((r=g.__cssModules)&&(r=r[t]))return r;if(n!==qe&&Ke(n,t))return d[t]=4,n[t];if(c=l.config.globalProperties,Ke(c,t))return c[t]},set({_:e},t,n){const{data:i,setupState:s,ctx:a}=e;return Lo(s,t)?(s[t]=n,!0):i!==qe&&Ke(i,t)?(i[t]=n,!0):Ke(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(a[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:i,appContext:s,propsOptions:a}},d){let g;return!!n[d]||e!==qe&&Ke(e,d)||Lo(t,d)||(g=a[0])&&Ke(g,d)||Ke(i,d)||Ke(lr,d)||Ke(s.config.globalProperties,d)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:Ke(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function wc(e){return Re(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}let ya=!0;function Vv(e){const t=bl(e),n=e.proxy,i=e.ctx;ya=!1,t.beforeCreate&&_c(t.beforeCreate,e,"bc");const{data:s,computed:a,methods:d,watch:g,provide:l,inject:p,created:o,beforeMount:r,mounted:c,beforeUpdate:u,updated:h,activated:f,deactivated:m,beforeDestroy:v,beforeUnmount:y,destroyed:$,unmounted:_,render:S,renderTracked:b,renderTriggered:M,errorCaptured:O,serverPrefetch:L,expose:T,inheritAttrs:k,components:x,directives:C,filters:w}=t;if(p&&Gv(p,i,null),d)for(const R in d){const I=d[R];Oe(I)&&(i[R]=I.bind(n))}if(s){const R=s.call(n,n);st(R)&&(e.data=Bi(R))}if(ya=!0,a)for(const R in a){const I=a[R],N=Oe(I)?I.bind(n,n):Oe(I.get)?I.get.bind(n,n):tn,F=!Oe(I)&&Oe(I.set)?I.set.bind(n):tn,z=ke({get:N,set:F});Object.defineProperty(i,R,{enumerable:!0,configurable:!0,get:()=>z.value,set:U=>z.value=U})}if(g)for(const R in g)od(g[R],i,n,R);if(l){const R=Oe(l)?l.call(n):l;Reflect.ownKeys(R).forEach(I=>{as(I,R[I])})}o&&_c(o,e,"c");function E(R,I){Re(I)?I.forEach(N=>R(N.bind(n))):I&&R(I.bind(n))}if(E(Iv,r),E(ct,c),E(Nv,u),E(Dv,h),E(Lv,f),E(Rv,m),E(Bv,O),E(Wv,b),E(Pv,M),E(yl,y),E(sd,_),E(Fv,L),Re(T))if(T.length){const R=e.exposed||(e.exposed={});T.forEach(I=>{Object.defineProperty(R,I,{get:()=>n[I],set:N=>n[I]=N})})}else e.exposed||(e.exposed={});S&&e.render===tn&&(e.render=S),k!=null&&(e.inheritAttrs=k),x&&(e.components=x),C&&(e.directives=C),L&&nd(e)}function Gv(e,t,n=tn){Re(e)&&(e=ba(e));for(const i in e){const s=e[i];let a;st(s)?"default"in s?a=Vt(s.from||i,s.default,!0):a=Vt(s.from||i):a=Vt(s),lt(a)?Object.defineProperty(t,i,{enumerable:!0,configurable:!0,get:()=>a.value,set:d=>a.value=d}):t[i]=a}}function _c(e,t,n){on(Re(e)?e.map(i=>i.bind(t.proxy)):e.bind(t.proxy),t,n)}function od(e,t,n,i){let s=i.includes(".")?bd(n,i):()=>n[i];if(ut(e)){const a=t[e];Oe(a)&&Je(s,a)}else if(Oe(e))Je(s,e.bind(n));else if(st(e))if(Re(e))e.forEach(a=>od(a,t,n,i));else{const a=Oe(e.handler)?e.handler.bind(n):t[e.handler];Oe(a)&&Je(s,a,e)}}function bl(e){const t=e.type,{mixins:n,extends:i}=t,{mixins:s,optionsCache:a,config:{optionMergeStrategies:d}}=e.appContext,g=a.get(t);let l;return g?l=g:!s.length&&!n&&!i?l=t:(l={},s.length&&s.forEach(p=>_s(l,p,d,!0)),_s(l,t,d)),st(t)&&a.set(t,l),l}function _s(e,t,n,i=!1){const{mixins:s,extends:a}=t;a&&_s(e,a,n,!0),s&&s.forEach(d=>_s(e,d,n,!0));for(const d in t)if(!(i&&d==="expose")){const g=Yv[d]||n&&n[d];e[d]=g?g(e[d],t[d]):t[d]}return e}const Yv={data:Sc,props:xc,emits:xc,methods:Ji,computed:Ji,beforeCreate:xt,created:xt,beforeMount:xt,mounted:xt,beforeUpdate:xt,updated:xt,beforeDestroy:xt,beforeUnmount:xt,destroyed:xt,unmounted:xt,activated:xt,deactivated:xt,errorCaptured:xt,serverPrefetch:xt,components:Ji,directives:Ji,watch:Zv,provide:Sc,inject:Kv};function Sc(e,t){return t?e?function(){return ht(Oe(e)?e.call(this,this):e,Oe(t)?t.call(this,this):t)}:t:e}function Kv(e,t){return Ji(ba(e),ba(t))}function ba(e){if(Re(e)){const t={};for(let n=0;n1)return n&&Oe(t)?t.call(i&&i.proxy):t}}const ld={},cd=()=>Object.create(ld),ud=e=>Object.getPrototypeOf(e)===ld;function qv(e,t,n,i=!1){const s={},a=cd();e.propsDefaults=Object.create(null),hd(e,t,s,a);for(const d in e.propsOptions[0])d in s||(s[d]=void 0);n?e.props=i?s:Vh(s):e.type.props?e.props=s:e.props=a,e.attrs=a}function Jv(e,t,n,i){const{props:s,attrs:a,vnode:{patchFlag:d}}=e,g=Ge(s),[l]=e.propsOptions;let p=!1;if((i||d>0)&&!(d&16)){if(d&8){const o=e.vnode.dynamicProps;for(let r=0;r{l=!0;const[c,u]=dd(r,t,!0);ht(d,c),u&&g.push(...u)};!n&&t.mixins.length&&t.mixins.forEach(o),e.extends&&o(e.extends),e.mixins&&e.mixins.forEach(o)}if(!a&&!l)return st(e)&&i.set(e,xi),xi;if(Re(a))for(let o=0;oe[0]==="_"||e==="$stable",wl=e=>Re(e)?e.map(qt):[qt(e)],ty=(e,t,n)=>{if(t._n)return t;const i=nt((...s)=>wl(t(...s)),n);return i._c=!1,i},pd=(e,t,n)=>{const i=e._ctx;for(const s in e){if(fd(s))continue;const a=e[s];if(Oe(a))t[s]=ty(s,a,i);else if(a!=null){const d=wl(a);t[s]=()=>d}}},gd=(e,t)=>{const n=wl(t);e.slots.default=()=>n},md=(e,t,n)=>{for(const i in t)(n||i!=="_")&&(e[i]=t[i])},ny=(e,t,n)=>{const i=e.slots=cd();if(e.vnode.shapeFlag&32){const s=t._;s?(md(i,t,n),n&&$h(i,"_",s,!0)):pd(t,i)}else t&&gd(e,t)},iy=(e,t,n)=>{const{vnode:i,slots:s}=e;let a=!0,d=qe;if(i.shapeFlag&32){const g=t._;g?n&&g===1?a=!1:md(s,t,n):(a=!t.$stable,pd(t,s)),d=t}else t&&(gd(e,t),d={default:1});if(a)for(const g in s)!fd(g)&&d[g]==null&&delete s[g]},Rt=vy;function ry(e){return sy(e)}function sy(e,t){const n=Gs();n.__VUE__=!0;const{insert:i,remove:s,patchProp:a,createElement:d,createText:g,createComment:l,setText:p,setElementText:o,parentNode:r,nextSibling:c,setScopeId:u=tn,insertStaticContent:h}=e,f=(P,W,G,ne=null,ee=null,re=null,pe=void 0,de=null,he=!!W.dynamicChildren)=>{if(P===W)return;P&&!Yi(P,W)&&(ne=H(P),U(P,ee,re,!0),P=null),W.patchFlag===-2&&(he=!1,W.dynamicChildren=null);const{type:oe,ref:Me,shapeFlag:me}=W;switch(oe){case Js:m(P,W,G,ne);break;case oi:v(P,W,G,ne);break;case ls:P==null&&y(W,G,ne,pe);break;case Pe:x(P,W,G,ne,ee,re,pe,de,he);break;default:me&1?S(P,W,G,ne,ee,re,pe,de,he):me&6?C(P,W,G,ne,ee,re,pe,de,he):(me&64||me&128)&&oe.process(P,W,G,ne,ee,re,pe,de,he,q)}Me!=null&&ee&&ma(Me,P&&P.ref,re,W||P,!W)},m=(P,W,G,ne)=>{if(P==null)i(W.el=g(W.children),G,ne);else{const ee=W.el=P.el;W.children!==P.children&&p(ee,W.children)}},v=(P,W,G,ne)=>{P==null?i(W.el=l(W.children||""),G,ne):W.el=P.el},y=(P,W,G,ne)=>{[P.el,P.anchor]=h(P.children,W,G,ne,P.el,P.anchor)},$=({el:P,anchor:W},G,ne)=>{let ee;for(;P&&P!==W;)ee=c(P),i(P,G,ne),P=ee;i(W,G,ne)},_=({el:P,anchor:W})=>{let G;for(;P&&P!==W;)G=c(P),s(P),P=G;s(W)},S=(P,W,G,ne,ee,re,pe,de,he)=>{W.type==="svg"?pe="svg":W.type==="math"&&(pe="mathml"),P==null?b(W,G,ne,ee,re,pe,de,he):L(P,W,ee,re,pe,de,he)},b=(P,W,G,ne,ee,re,pe,de)=>{let he,oe;const{props:Me,shapeFlag:me,transition:$e,dirs:K}=P;if(he=P.el=d(P.type,re,Me&&Me.is,Me),me&8?o(he,P.children):me&16&&O(P.children,he,null,ne,ee,Ro(P,re),pe,de),K&&Vn(P,null,ne,"created"),M(he,P,P.scopeId,pe,ne),Me){for(const fe in Me)fe!=="value"&&!rr(fe)&&a(he,fe,null,Me[fe],re,ne);"value"in Me&&a(he,"value",null,Me.value,re),(oe=Me.onVnodeBeforeMount)&&Xt(oe,ne,P)}K&&Vn(P,null,ne,"beforeMount");const ae=oy(ee,$e);ae&&$e.beforeEnter(he),i(he,W,G),((oe=Me&&Me.onVnodeMounted)||ae||K)&&Rt(()=>{oe&&Xt(oe,ne,P),ae&&$e.enter(he),K&&Vn(P,null,ne,"mounted")},ee)},M=(P,W,G,ne,ee)=>{if(G&&u(P,G),ne)for(let re=0;re{for(let oe=he;oe{const de=W.el=P.el;let{patchFlag:he,dynamicChildren:oe,dirs:Me}=W;he|=P.patchFlag&16;const me=P.props||qe,$e=W.props||qe;let K;if(G&&Gn(G,!1),(K=$e.onVnodeBeforeUpdate)&&Xt(K,G,W,P),Me&&Vn(W,P,G,"beforeUpdate"),G&&Gn(G,!0),(me.innerHTML&&$e.innerHTML==null||me.textContent&&$e.textContent==null)&&o(de,""),oe?T(P.dynamicChildren,oe,de,G,ne,Ro(W,ee),re):pe||I(P,W,de,null,G,ne,Ro(W,ee),re,!1),he>0){if(he&16)k(de,me,$e,G,ee);else if(he&2&&me.class!==$e.class&&a(de,"class",null,$e.class,ee),he&4&&a(de,"style",me.style,$e.style,ee),he&8){const ae=W.dynamicProps;for(let fe=0;fe{K&&Xt(K,G,W,P),Me&&Vn(W,P,G,"updated")},ne)},T=(P,W,G,ne,ee,re,pe)=>{for(let de=0;de{if(W!==G){if(W!==qe)for(const re in W)!rr(re)&&!(re in G)&&a(P,re,W[re],null,ee,ne);for(const re in G){if(rr(re))continue;const pe=G[re],de=W[re];pe!==de&&re!=="value"&&a(P,re,de,pe,ee,ne)}"value"in G&&a(P,"value",W.value,G.value,ee)}},x=(P,W,G,ne,ee,re,pe,de,he)=>{const oe=W.el=P?P.el:g(""),Me=W.anchor=P?P.anchor:g("");let{patchFlag:me,dynamicChildren:$e,slotScopeIds:K}=W;K&&(de=de?de.concat(K):K),P==null?(i(oe,G,ne),i(Me,G,ne),O(W.children||[],G,Me,ee,re,pe,de,he)):me>0&&me&64&&$e&&P.dynamicChildren?(T(P.dynamicChildren,$e,G,ee,re,pe,de),(W.key!=null||ee&&W===ee.subTree)&&vd(P,W,!0)):I(P,W,G,Me,ee,re,pe,de,he)},C=(P,W,G,ne,ee,re,pe,de,he)=>{W.slotScopeIds=de,P==null?W.shapeFlag&512?ee.ctx.activate(W,G,ne,pe,he):w(W,G,ne,ee,re,pe,he):A(P,W,he)},w=(P,W,G,ne,ee,re,pe)=>{const de=P.component=Cy(P,ne,ee);if(id(P)&&(de.ctx.renderer=q),$y(de,!1,pe),de.asyncDep){if(ee&&ee.registerDep(de,E,pe),!P.el){const he=de.subTree=se(oi);v(null,he,W,G)}}else E(de,P,W,G,ee,re,pe)},A=(P,W,G)=>{const ne=W.component=P.component;if(gy(P,W,G))if(ne.asyncDep&&!ne.asyncResolved){R(ne,W,G);return}else ne.next=W,ne.update();else W.el=P.el,ne.vnode=W},E=(P,W,G,ne,ee,re,pe)=>{const de=()=>{if(P.isMounted){let{next:me,bu:$e,u:K,parent:ae,vnode:fe}=P;{const ze=yd(P);if(ze){me&&(me.el=fe.el,R(P,me,pe)),ze.asyncDep.then(()=>{P.isUnmounted||de()});return}}let be=me,Ie;Gn(P,!1),me?(me.el=fe.el,R(P,me,pe)):me=fe,$e&&os($e),(Ie=me.props&&me.props.onVnodeBeforeUpdate)&&Xt(Ie,ae,me,fe),Gn(P,!0);const Be=Oo(P),Ue=P.subTree;P.subTree=Be,f(Ue,Be,r(Ue.el),H(Ue),P,ee,re),me.el=Be.el,be===null&&my(P,Be.el),K&&Rt(K,ee),(Ie=me.props&&me.props.onVnodeUpdated)&&Rt(()=>Xt(Ie,ae,me,fe),ee)}else{let me;const{el:$e,props:K}=W,{bm:ae,m:fe,parent:be,root:Ie,type:Be}=P,Ue=ar(W);if(Gn(P,!1),ae&&os(ae),!Ue&&(me=K&&K.onVnodeBeforeMount)&&Xt(me,be,W),Gn(P,!0),$e&&we){const ze=()=>{P.subTree=Oo(P),we($e,P.subTree,P,ee,null)};Ue&&Be.__asyncHydrate?Be.__asyncHydrate($e,P,ze):ze()}else{Ie.ce&&Ie.ce._injectChildStyle(Be);const ze=P.subTree=Oo(P);f(null,ze,G,ne,P,ee,re),W.el=ze.el}if(fe&&Rt(fe,ee),!Ue&&(me=K&&K.onVnodeMounted)){const ze=W;Rt(()=>Xt(me,be,ze),ee)}(W.shapeFlag&256||be&&ar(be.vnode)&&be.vnode.shapeFlag&256)&&P.a&&Rt(P.a,ee),P.isMounted=!0,W=G=ne=null}};P.scope.on();const he=P.effect=new Lh(de);P.scope.off();const oe=P.update=he.run.bind(he),Me=P.job=he.runIfDirty.bind(he);Me.i=P,Me.id=P.uid,he.scheduler=()=>gl(Me),Gn(P,!0),oe()},R=(P,W,G)=>{W.component=P;const ne=P.vnode.props;P.vnode=W,P.next=null,Jv(P,W.props,ne,G),iy(P,W.children,G),Hn(),yc(P),Un()},I=(P,W,G,ne,ee,re,pe,de,he=!1)=>{const oe=P&&P.children,Me=P?P.shapeFlag:0,me=W.children,{patchFlag:$e,shapeFlag:K}=W;if($e>0){if($e&128){F(oe,me,G,ne,ee,re,pe,de,he);return}else if($e&256){N(oe,me,G,ne,ee,re,pe,de,he);return}}K&8?(Me&16&&Q(oe,ee,re),me!==oe&&o(G,me)):Me&16?K&16?F(oe,me,G,ne,ee,re,pe,de,he):Q(oe,ee,re,!0):(Me&8&&o(G,""),K&16&&O(me,G,ne,ee,re,pe,de,he))},N=(P,W,G,ne,ee,re,pe,de,he)=>{P=P||xi,W=W||xi;const oe=P.length,Me=W.length,me=Math.min(oe,Me);let $e;for($e=0;$eMe?Q(P,ee,re,!0,!1,me):O(W,G,ne,ee,re,pe,de,he,me)},F=(P,W,G,ne,ee,re,pe,de,he)=>{let oe=0;const Me=W.length;let me=P.length-1,$e=Me-1;for(;oe<=me&&oe<=$e;){const K=P[oe],ae=W[oe]=he?Tn(W[oe]):qt(W[oe]);if(Yi(K,ae))f(K,ae,G,null,ee,re,pe,de,he);else break;oe++}for(;oe<=me&&oe<=$e;){const K=P[me],ae=W[$e]=he?Tn(W[$e]):qt(W[$e]);if(Yi(K,ae))f(K,ae,G,null,ee,re,pe,de,he);else break;me--,$e--}if(oe>me){if(oe<=$e){const K=$e+1,ae=K$e)for(;oe<=me;)U(P[oe],ee,re,!0),oe++;else{const K=oe,ae=oe,fe=new Map;for(oe=ae;oe<=$e;oe++){const Qe=W[oe]=he?Tn(W[oe]):qt(W[oe]);Qe.key!=null&&fe.set(Qe.key,oe)}let be,Ie=0;const Be=$e-ae+1;let Ue=!1,ze=0;const Ye=new Array(Be);for(oe=0;oe=Be){U(Qe,ee,re,!0);continue}let vt;if(Qe.key!=null)vt=fe.get(Qe.key);else for(be=ae;be<=$e;be++)if(Ye[be-ae]===0&&Yi(Qe,W[be])){vt=be;break}vt===void 0?U(Qe,ee,re,!0):(Ye[vt-ae]=oe+1,vt>=ze?ze=vt:Ue=!0,f(Qe,W[vt],G,null,ee,re,pe,de,he),Ie++)}const Ve=Ue?ay(Ye):xi;for(be=Ve.length-1,oe=Be-1;oe>=0;oe--){const Qe=ae+oe,vt=W[Qe],Vi=Qe+1{const{el:re,type:pe,transition:de,children:he,shapeFlag:oe}=P;if(oe&6){z(P.component.subTree,W,G,ne);return}if(oe&128){P.suspense.move(W,G,ne);return}if(oe&64){pe.move(P,W,G,q);return}if(pe===Pe){i(re,W,G);for(let me=0;mede.enter(re),ee);else{const{leave:me,delayLeave:$e,afterLeave:K}=de,ae=()=>i(re,W,G),fe=()=>{me(re,()=>{ae(),K&&K()})};$e?$e(re,ae,fe):fe()}else i(re,W,G)},U=(P,W,G,ne=!1,ee=!1)=>{const{type:re,props:pe,ref:de,children:he,dynamicChildren:oe,shapeFlag:Me,patchFlag:me,dirs:$e,cacheIndex:K}=P;if(me===-2&&(ee=!1),de!=null&&ma(de,null,G,P,!0),K!=null&&(W.renderCache[K]=void 0),Me&256){W.ctx.deactivate(P);return}const ae=Me&1&&$e,fe=!ar(P);let be;if(fe&&(be=pe&&pe.onVnodeBeforeUnmount)&&Xt(be,W,P),Me&6)V(P.component,G,ne);else{if(Me&128){P.suspense.unmount(G,ne);return}ae&&Vn(P,null,W,"beforeUnmount"),Me&64?P.type.remove(P,W,G,q,ne):oe&&!oe.hasOnce&&(re!==Pe||me>0&&me&64)?Q(oe,W,G,!1,!0):(re===Pe&&me&384||!ee&&Me&16)&&Q(he,W,G),ne&&j(P)}(fe&&(be=pe&&pe.onVnodeUnmounted)||ae)&&Rt(()=>{be&&Xt(be,W,P),ae&&Vn(P,null,W,"unmounted")},G)},j=P=>{const{type:W,el:G,anchor:ne,transition:ee}=P;if(W===Pe){B(G,ne);return}if(W===ls){_(P);return}const re=()=>{s(G),ee&&!ee.persisted&&ee.afterLeave&&ee.afterLeave()};if(P.shapeFlag&1&&ee&&!ee.persisted){const{leave:pe,delayLeave:de}=ee,he=()=>pe(G,re);de?de(P.el,re,he):he()}else re()},B=(P,W)=>{let G;for(;P!==W;)G=c(P),s(P),P=G;s(W)},V=(P,W,G)=>{const{bum:ne,scope:ee,job:re,subTree:pe,um:de,m:he,a:oe}=P;$c(he),$c(oe),ne&&os(ne),ee.stop(),re&&(re.flags|=8,U(pe,P,W,G)),de&&Rt(de,W),Rt(()=>{P.isUnmounted=!0},W),W&&W.pendingBranch&&!W.isUnmounted&&P.asyncDep&&!P.asyncResolved&&P.suspenseId===W.pendingId&&(W.deps--,W.deps===0&&W.resolve())},Q=(P,W,G,ne=!1,ee=!1,re=0)=>{for(let pe=re;pe{if(P.shapeFlag&6)return H(P.component.subTree);if(P.shapeFlag&128)return P.suspense.next();const W=c(P.anchor||P.el),G=W&&W[Ev];return G?c(G):W};let Z=!1;const X=(P,W,G)=>{P==null?W._vnode&&U(W._vnode,null,null,!0):f(W._vnode||null,P,W,null,null,null,G),W._vnode=P,Z||(Z=!0,yc(),Jh(),Z=!1)},q={p:f,um:U,m:z,r:j,mt:w,mc:O,pc:I,pbc:T,n:H,o:e};let ue,we;return{render:X,hydrate:ue,createApp:Qv(X,ue)}}function Ro({type:e,props:t},n){return n==="svg"&&e==="foreignObject"||n==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function Gn({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function oy(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function vd(e,t,n=!1){const i=e.children,s=t.children;if(Re(i)&&Re(s))for(let a=0;a>1,e[n[g]]0&&(t[i]=n[a-1]),n[a]=i)}}for(a=n.length,d=n[a-1];a-- >0;)n[a]=d,d=t[d];return n}function yd(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:yd(t)}function $c(e){if(e)for(let t=0;tVt(ly);function _l(e,t){return Sl(e,null,t)}function Je(e,t,n){return Sl(e,t,n)}function Sl(e,t,n=qe){const{immediate:i,deep:s,flush:a,once:d}=n,g=ht({},n),l=t&&i||!t&&a!=="post";let p;if(yr){if(a==="sync"){const u=cy();p=u.__watcherHandles||(u.__watcherHandles=[])}else if(!l){const u=()=>{};return u.stop=tn,u.resume=tn,u.pause=tn,u}}const o=gt;g.call=(u,h,f)=>on(u,o,h,f);let r=!1;a==="post"?g.scheduler=u=>{Rt(u,o&&o.suspense)}:a!=="sync"&&(r=!0,g.scheduler=(u,h)=>{h?u():gl(u)}),g.augmentJob=u=>{t&&(u.flags|=4),r&&(u.flags|=2,o&&(u.id=o.uid,u.i=o))};const c=$v(e,t,g);return yr&&(p?p.push(c):l&&c()),c}function uy(e,t,n){const i=this.proxy,s=ut(e)?e.includes(".")?bd(i,e):()=>i[e]:e.bind(i,i);let a;Oe(t)?a=t:(a=t.handler,n=t);const d=Hr(this),g=Sl(s,a.bind(i),n);return d(),g}function bd(e,t){const n=t.split(".");return()=>{let i=e;for(let s=0;st==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${jt(t)}Modifiers`]||e[`${fi(t)}Modifiers`];function dy(e,t,...n){if(e.isUnmounted)return;const i=e.vnode.props||qe;let s=n;const a=t.startsWith("update:"),d=a&&hy(i,t.slice(7));d&&(d.trim&&(s=n.map(o=>ut(o)?o.trim():o)),d.number&&(s=n.map(ha)));let g,l=i[g=Ao(t)]||i[g=Ao(jt(t))];!l&&a&&(l=i[g=Ao(fi(t))]),l&&on(l,e,6,s);const p=i[g+"Once"];if(p){if(!e.emitted)e.emitted={};else if(e.emitted[g])return;e.emitted[g]=!0,on(p,e,6,s)}}function wd(e,t,n=!1){const i=t.emitsCache,s=i.get(e);if(s!==void 0)return s;const a=e.emits;let d={},g=!1;if(!Oe(e)){const l=p=>{const o=wd(p,t,!0);o&&(g=!0,ht(d,o))};!n&&t.mixins.length&&t.mixins.forEach(l),e.extends&&l(e.extends),e.mixins&&e.mixins.forEach(l)}return!a&&!g?(st(e)&&i.set(e,null),null):(Re(a)?a.forEach(l=>d[l]=null):ht(d,a),st(e)&&i.set(e,d),d)}function qs(e,t){return!e||!Hs(t)?!1:(t=t.slice(2).replace(/Once$/,""),Ke(e,t[0].toLowerCase()+t.slice(1))||Ke(e,fi(t))||Ke(e,t))}function Oo(e){const{type:t,vnode:n,proxy:i,withProxy:s,propsOptions:[a],slots:d,attrs:g,emit:l,render:p,renderCache:o,props:r,data:c,setupState:u,ctx:h,inheritAttrs:f}=e,m=ws(e);let v,y;try{if(n.shapeFlag&4){const _=s||i,S=_;v=qt(p.call(S,_,o,r,u,c,h)),y=g}else{const _=t;v=qt(_.length>1?_(r,{attrs:g,slots:d,emit:l}):_(r,null)),y=t.props?g:fy(g)}}catch(_){cr.length=0,Xs(_,e,1),v=se(oi)}let $=v;if(y&&f!==!1){const _=Object.keys(y),{shapeFlag:S}=$;_.length&&S&7&&(a&&_.some(rl)&&(y=py(y,a)),$=Li($,y,!1,!0))}return n.dirs&&($=Li($,null,!1,!0),$.dirs=$.dirs?$.dirs.concat(n.dirs):n.dirs),n.transition&&vl($,n.transition),v=$,ws(m),v}const fy=e=>{let t;for(const n in e)(n==="class"||n==="style"||Hs(n))&&((t||(t={}))[n]=e[n]);return t},py=(e,t)=>{const n={};for(const i in e)(!rl(i)||!(i.slice(9)in t))&&(n[i]=e[i]);return n};function gy(e,t,n){const{props:i,children:s,component:a}=e,{props:d,children:g,patchFlag:l}=t,p=a.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&l>=0){if(l&1024)return!0;if(l&16)return i?Ac(i,d,p):!!d;if(l&8){const o=t.dynamicProps;for(let r=0;re.__isSuspense;function vy(e,t){t&&t.pendingBranch?Re(e)?t.effects.push(...e):t.effects.push(e):Mv(e)}const Pe=Symbol.for("v-fgt"),Js=Symbol.for("v-txt"),oi=Symbol.for("v-cmt"),ls=Symbol.for("v-stc"),cr=[];let Ot=null;function Y(e=!1){cr.push(Ot=e?null:[])}function yy(){cr.pop(),Ot=cr[cr.length-1]||null}let vr=1;function kc(e){vr+=e,e<0&&Ot&&(Ot.hasOnce=!0)}function Sd(e){return e.dynamicChildren=vr>0?Ot||xi:null,yy(),vr>0&&Ot&&Ot.push(e),e}function ie(e,t,n,i,s,a){return Sd(D(e,t,n,i,s,a,!0))}function xe(e,t,n,i,s){return Sd(se(e,t,n,i,s,!0))}function Ss(e){return e?e.__v_isVNode===!0:!1}function Yi(e,t){return e.type===t.type&&e.key===t.key}const xd=({key:e})=>e??null,cs=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?ut(e)||lt(e)||Oe(e)?{i:Mt,r:e,k:t,f:!!n}:e:null);function D(e,t=null,n=null,i=0,s=null,a=e===Pe?0:1,d=!1,g=!1){const l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&xd(t),ref:t&&cs(t),scopeId:td,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:a,patchFlag:i,dynamicProps:s,dynamicChildren:null,appContext:null,ctx:Mt};return g?(Cl(l,n),a&128&&e.normalize(l)):n&&(l.shapeFlag|=ut(n)?8:16),vr>0&&!d&&Ot&&(l.patchFlag>0||a&6)&&l.patchFlag!==32&&Ot.push(l),l}const se=by;function by(e,t=null,n=null,i=0,s=null,a=!1){if((!e||e===jv)&&(e=oi),Ss(e)){const g=Li(e,t,!0);return n&&Cl(g,n),vr>0&&!a&&Ot&&(g.shapeFlag&6?Ot[Ot.indexOf(e)]=g:Ot.push(g)),g.patchFlag=-2,g}if(Ty(e)&&(e=e.__vccOpts),t){t=wy(t);let{class:g,style:l}=t;g&&!ut(g)&&(t.class=Br(g)),st(l)&&(fl(l)&&!Re(l)&&(l=ht({},l)),t.style=al(l))}const d=ut(e)?1:_d(e)?128:Tv(e)?64:st(e)?4:Oe(e)?2:0;return D(e,t,n,i,s,d,a,!0)}function wy(e){return e?fl(e)||ud(e)?ht({},e):e:null}function Li(e,t,n=!1,i=!1){const{props:s,ref:a,patchFlag:d,children:g,transition:l}=e,p=t?_y(s||{},t):s,o={__v_isVNode:!0,__v_skip:!0,type:e.type,props:p,key:p&&xd(p),ref:t&&t.ref?n&&a?Re(a)?a.concat(cs(t)):[a,cs(t)]:cs(t):a,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:g,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Pe?d===-1?16:d|16:d,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:l,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Li(e.ssContent),ssFallback:e.ssFallback&&Li(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return l&&i&&vl(o,l.clone(o)),o}function it(e=" ",t=0){return se(Js,null,e,t)}function xl(e,t){const n=se(ls,null,e);return n.staticCount=t,n}function ge(e="",t=!1){return t?(Y(),xe(oi,null,e)):se(oi,null,e)}function qt(e){return e==null||typeof e=="boolean"?se(oi):Re(e)?se(Pe,null,e.slice()):Ss(e)?Tn(e):se(Js,null,String(e))}function Tn(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Li(e)}function Cl(e,t){let n=0;const{shapeFlag:i}=e;if(t==null)t=null;else if(Re(t))n=16;else if(typeof t=="object")if(i&65){const s=t.default;s&&(s._c&&(s._d=!1),Cl(e,s()),s._c&&(s._d=!0));return}else{n=32;const s=t._;!s&&!ud(t)?t._ctx=Mt:s===3&&Mt&&(Mt.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else Oe(t)?(t={default:t,_ctx:Mt},n=32):(t=String(t),i&64?(n=16,t=[it(t)]):n=8);e.children=t,e.shapeFlag|=n}function _y(...e){const t={};for(let n=0;ngt||Mt;let xs,_a;{const e=Gs(),t=(n,i)=>{let s;return(s=e[n])||(s=e[n]=[]),s.push(i),a=>{s.length>1?s.forEach(d=>d(a)):s[0](a)}};xs=t("__VUE_INSTANCE_SETTERS__",n=>gt=n),_a=t("__VUE_SSR_SETTERS__",n=>yr=n)}const Hr=e=>{const t=gt;return xs(e),e.scope.on(),()=>{e.scope.off(),xs(t)}},Mc=()=>{gt&>.scope.off(),xs(null)};function Cd(e){return e.vnode.shapeFlag&4}let yr=!1;function $y(e,t=!1,n=!1){t&&_a(t);const{props:i,children:s}=e.vnode,a=Cd(e);qv(e,i,a,t),ny(e,s,n);const d=a?Ay(e,t):void 0;return t&&_a(!1),d}function Ay(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,Uv);const{setup:i}=n;if(i){Hn();const s=e.setupContext=i.length>1?My(e):null,a=Hr(e),d=zr(i,e,0,[e.props,s]),g=Sh(d);if(Un(),a(),(g||e.sp)&&!ar(e)&&nd(e),g){if(d.then(Mc,Mc),t)return d.then(l=>{Ec(e,l,t)}).catch(l=>{Xs(l,e,0)});e.asyncDep=d}else Ec(e,d,t)}else $d(e,t)}function Ec(e,t,n){Oe(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:st(t)&&(e.setupState=Zh(t)),$d(e,n)}let Tc;function $d(e,t,n){const i=e.type;if(!e.render){if(!t&&Tc&&!i.render){const s=i.template||bl(e).template;if(s){const{isCustomElement:a,compilerOptions:d}=e.appContext.config,{delimiters:g,compilerOptions:l}=i,p=ht(ht({isCustomElement:a,delimiters:g},d),l);i.render=Tc(s,p)}}e.render=i.render||tn}{const s=Hr(e);Hn();try{Vv(e)}finally{Un(),s()}}}const ky={get(e,t){return yt(e,"get",""),e[t]}};function My(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,ky),slots:e.slots,emit:e.emit,expose:t}}function eo(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(Zh(Gh(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in lr)return lr[n](e)},has(t,n){return n in t||n in lr}})):e.proxy}function Ey(e,t=!0){return Oe(e)?e.displayName||e.name:e.name||t&&e.__name}function Ty(e){return Oe(e)&&"__vccOpts"in e}const ke=(e,t)=>xv(e,t,yr);function to(e,t,n){const i=arguments.length;return i===2?st(t)&&!Re(t)?Ss(t)?se(e,null,[t]):se(e,t):se(e,null,t):(i>3?n=Array.prototype.slice.call(arguments,2):i===3&&Ss(n)&&(n=[n]),se(e,t,n))}const Ly="3.5.12";/** * @vue/runtime-dom v3.5.12 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT **/let Sa;const Lc=typeof window<"u"&&window.trustedTypes;if(Lc)try{Sa=Lc.createPolicy("vue",{createHTML:e=>e})}catch{}const Ad=Sa?e=>Sa.createHTML(e):e=>e,Ry="http://www.w3.org/2000/svg",Oy="http://www.w3.org/1998/Math/MathML",pn=typeof document<"u"?document:null,Rc=pn&&pn.createElement("template"),Iy={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,i)=>{const s=t==="svg"?pn.createElementNS(Ry,e):t==="mathml"?pn.createElementNS(Oy,e):n?pn.createElement(e,{is:n}):pn.createElement(e);return e==="select"&&i&&i.multiple!=null&&s.setAttribute("multiple",i.multiple),s},createText:e=>pn.createTextNode(e),createComment:e=>pn.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>pn.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,i,s,a){const d=n?n.previousSibling:t.lastChild;if(s&&(s===a||s.nextSibling))for(;t.insertBefore(s.cloneNode(!0),n),!(s===a||!(s=s.nextSibling)););else{Rc.innerHTML=Ad(i==="svg"?`${e}`:i==="mathml"?`${e}`:e);const g=Rc.content;if(i==="svg"||i==="mathml"){const l=g.firstChild;for(;l.firstChild;)g.appendChild(l.firstChild);g.removeChild(l)}t.insertBefore(g,n)}return[d?d.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},Ny=Symbol("_vtc");function Dy(e,t,n){const i=e[Ny];i&&(t=(t?[t,...i]:[...i]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const Oc=Symbol("_vod"),Fy=Symbol("_vsh"),Py=Symbol(""),Wy=/(^|;)\s*display\s*:/;function By(e,t,n){const i=e.style,s=ut(n);let a=!1;if(n&&!s){if(t)if(ut(t))for(const d of t.split(";")){const g=d.slice(0,d.indexOf(":")).trim();n[g]==null&&us(i,g,"")}else for(const d in t)n[d]==null&&us(i,d,"");for(const d in n)d==="display"&&(a=!0),us(i,d,n[d])}else if(s){if(t!==n){const d=i[Py];d&&(n+=";"+d),i.cssText=n,a=Wy.test(n)}}else t&&e.removeAttribute("style");Oc in e&&(e[Oc]=a?i.display:"",e[Fy]&&(i.display="none"))}const Ic=/\s*!important$/;function us(e,t,n){if(Re(n))n.forEach(i=>us(e,t,i));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const i=zy(e,t);Ic.test(n)?e.setProperty(fi(i),n.replace(Ic,""),"important"):e[i]=n}}const Nc=["Webkit","Moz","ms"],Io={};function zy(e,t){const n=Io[t];if(n)return n;let i=jt(t);if(i!=="filter"&&i in e)return Io[t]=i;i=Wr(i);for(let s=0;sNo||(Vy.then(()=>No=0),No=Date.now());function Yy(e,t){const n=i=>{if(!i._vts)i._vts=Date.now();else if(i._vts<=n.attached)return;on(Ky(i,n.value),t,5,[i])};return n.value=e,n.attached=Gy(),n}function Ky(e,t){if(Re(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(i=>s=>!s._stopped&&i&&i(s))}else return t}const zc=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,Zy=(e,t,n,i,s,a)=>{const d=s==="svg";t==="class"?Dy(e,i,d):t==="style"?By(e,n,i):Hs(t)?rl(t)||Hy(e,t,n,i,a):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):Xy(e,t,i,d))?(Pc(e,t,i),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&Fc(e,t,i,d,a,t!=="value")):e._isVueCE&&(/[A-Z]/.test(t)||!ut(i))?Pc(e,jt(t),i,a,t):(t==="true-value"?e._trueValue=i:t==="false-value"&&(e._falseValue=i),Fc(e,t,i,d))};function Xy(e,t,n,i){if(i)return!!(t==="innerHTML"||t==="textContent"||t in e&&zc(t)&&Oe(n));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const s=e.tagName;if(s==="IMG"||s==="VIDEO"||s==="CANVAS"||s==="SOURCE")return!1}return zc(t)&&ut(n)?!1:t in e}const jc=e=>{const t=e.props["onUpdate:modelValue"]||!1;return Re(t)?n=>os(t,n):t};function Qy(e){e.target.composing=!0}function Hc(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Do=Symbol("_assign"),Al={created(e,{modifiers:{lazy:t,trim:n,number:i}},s){e[Do]=jc(s);const a=i||s.props&&s.props.type==="number";mi(e,t?"change":"input",d=>{if(d.target.composing)return;let g=e.value;n&&(g=g.trim()),a&&(g=ha(g)),e[Do](g)}),n&&mi(e,"change",()=>{e.value=e.value.trim()}),t||(mi(e,"compositionstart",Qy),mi(e,"compositionend",Hc),mi(e,"change",Hc))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:i,trim:s,number:a}},d){if(e[Do]=jc(d),e.composing)return;const g=(a||e.type==="number")&&!/^0\d/.test(e.value)?ha(e.value):e.value,l=t??"";g!==l&&(document.activeElement===e&&e.type!=="range"&&(i&&t===n||s&&e.value.trim()===l)||(e.value=l))}},qy=ht({patchProp:Zy},Iy);let Uc;function Jy(){return Uc||(Uc=ry(qy))}const e0=(...e)=>{const t=Jy().createApp(...e),{mount:n}=t;return t.mount=i=>{const s=n0(i);if(!s)return;const a=t._component;!Oe(a)&&!a.render&&!a.template&&(a.template=s.innerHTML),s.nodeType===1&&(s.textContent="");const d=n(s,!1,t0(s));return s instanceof Element&&(s.removeAttribute("v-cloak"),s.setAttribute("data-v-app","")),d},t};function t0(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function n0(e){return ut(e)?document.querySelector(e):e}function Vc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),n.push.apply(n,i)}return n}function vn(e){for(var t=1;t=0)continue;n[i]=e[i]}return n}function o0(e,t){if(e==null)return{};var n=s0(e,t),i,s;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(s=0;s=0)&&Object.prototype.propertyIsEnumerable.call(e,i)&&(n[i]=e[i])}return n}var a0=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},kd={exports:{}};(function(e){(function(t){var n=function(v,y,$){if(!p(y)||r(y)||c(y)||u(y)||l(y))return y;var _,S=0,b=0;if(o(y))for(_=[],b=y.length;S1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(typeof e=="string")return e;var i=(e.children||[]).map(function(l){return Md(l)}),s=Object.keys(e.attributes||{}).reduce(function(l,p){var o=e.attributes[p];switch(p){case"class":l.class=h0(o);break;case"style":l.style=u0(o);break;default:l.attrs[p]=o}return l},{attrs:{},class:{},style:{}});n.class;var a=n.style,d=a===void 0?{}:a,g=o0(n,c0);return to(e.tag,vn(vn(vn({},t),{},{class:s.class,style:vn(vn({},s.style),d)},s.attrs),g),i)}var Ed=!1;try{Ed=!0}catch{}function d0(){if(!Ed&&console&&typeof console.error=="function"){var e;(e=console).error.apply(e,arguments)}}function Fo(e,t){return Array.isArray(t)&&t.length>0||!Array.isArray(t)&&t?kt({},e,t):{}}function f0(e){var t,n=(t={"fa-spin":e.spin,"fa-pulse":e.pulse,"fa-fw":e.fixedWidth,"fa-border":e.border,"fa-li":e.listItem,"fa-inverse":e.inverse,"fa-flip":e.flip===!0,"fa-flip-horizontal":e.flip==="horizontal"||e.flip==="both","fa-flip-vertical":e.flip==="vertical"||e.flip==="both"},kt(kt(kt(kt(kt(kt(kt(kt(kt(kt(t,"fa-".concat(e.size),e.size!==null),"fa-rotate-".concat(e.rotation),e.rotation!==null),"fa-pull-".concat(e.pull),e.pull!==null),"fa-swap-opacity",e.swapOpacity),"fa-bounce",e.bounce),"fa-shake",e.shake),"fa-beat",e.beat),"fa-fade",e.fade),"fa-beat-fade",e.beatFade),"fa-flash",e.flash),kt(kt(t,"fa-spin-pulse",e.spinPulse),"fa-spin-reverse",e.spinReverse));return Object.keys(n).map(function(i){return n[i]?i:null}).filter(function(i){return i})}function Gc(e){if(e&&Cs(e)==="object"&&e.prefix&&e.iconName&&e.icon)return e;if(ua.icon)return ua.icon(e);if(e===null)return null;if(Cs(e)==="object"&&e.prefix&&e.iconName)return e;if(Array.isArray(e)&&e.length===2)return{prefix:e[0],iconName:e[1]};if(typeof e=="string")return{prefix:"fas",iconName:e}}var p0=Ce({name:"FontAwesomeIcon",props:{border:{type:Boolean,default:!1},fixedWidth:{type:Boolean,default:!1},flip:{type:[Boolean,String],default:!1,validator:function(t){return[!0,!1,"horizontal","vertical","both"].indexOf(t)>-1}},icon:{type:[Object,Array,String],required:!0},mask:{type:[Object,Array,String],default:null},maskId:{type:String,default:null},listItem:{type:Boolean,default:!1},pull:{type:String,default:null,validator:function(t){return["right","left"].indexOf(t)>-1}},pulse:{type:Boolean,default:!1},rotation:{type:[String,Number],default:null,validator:function(t){return[90,180,270].indexOf(Number.parseInt(t,10))>-1}},swapOpacity:{type:Boolean,default:!1},size:{type:String,default:null,validator:function(t){return["2xs","xs","sm","lg","xl","2xl","1x","2x","3x","4x","5x","6x","7x","8x","9x","10x"].indexOf(t)>-1}},spin:{type:Boolean,default:!1},transform:{type:[String,Object],default:null},symbol:{type:[Boolean,String],default:!1},title:{type:String,default:null},titleId:{type:String,default:null},inverse:{type:Boolean,default:!1},bounce:{type:Boolean,default:!1},shake:{type:Boolean,default:!1},beat:{type:Boolean,default:!1},fade:{type:Boolean,default:!1},beatFade:{type:Boolean,default:!1},flash:{type:Boolean,default:!1},spinPulse:{type:Boolean,default:!1},spinReverse:{type:Boolean,default:!1}},setup:function(t,n){var i=n.attrs,s=ke(function(){return Gc(t.icon)}),a=ke(function(){return Fo("classes",f0(t))}),d=ke(function(){return Fo("transform",typeof t.transform=="string"?ua.transform(t.transform):t.transform)}),g=ke(function(){return Fo("mask",Gc(t.mask))}),l=ke(function(){return mm(s.value,vn(vn(vn(vn({},a.value),d.value),g.value),{},{symbol:t.symbol,title:t.title,titleId:t.titleId,maskId:t.maskId}))});Je(l,function(o){if(!o)return d0("Could not find one or more icon(s)",s.value,g.value)},{immediate:!0});var p=ke(function(){return l.value?Md(l.value.abstract[0],{},i):null});return function(){return p.value}}});function no(e){return Th()?(Xm(e),!0):!1}function an(e){return typeof e=="function"?e():ce(e)}const Td=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const g0=e=>e!=null,m0=Object.prototype.toString,v0=e=>m0.call(e)==="[object Object]",Ld=()=>{};function y0(e,t){function n(...i){return new Promise((s,a)=>{Promise.resolve(e(()=>t.apply(this,i),{fn:t,thisArg:this,args:i})).then(s).catch(a)})}return n}const Rd=e=>e();function b0(e=Rd){const t=He(!0);function n(){t.value=!1}function i(){t.value=!0}const s=(...a)=>{t.value&&e(...a)};return{isActive:Zs(t),pause:n,resume:i,eventFilter:s}}function Od(e){return $l()}function Id(...e){if(e.length!==1)return pl(...e);const t=e[0];return typeof t=="function"?Zs(Xh(()=>({get:t,set:Ld}))):He(t)}function w0(e,t,n={}){const{eventFilter:i=Rd,...s}=n;return Je(e,y0(i,t),s)}function _0(e,t,n={}){const{eventFilter:i,...s}=n,{eventFilter:a,pause:d,resume:g,isActive:l}=b0(i);return{stop:w0(e,t,{...s,eventFilter:a}),pause:d,resume:g,isActive:l}}function S0(e,t){Od()&&yl(e,t)}function Nd(e,t=!0,n){Od()?ct(e,n):t?e():jr(e)}function Ur(e=!1,t={}){const{truthyValue:n=!0,falsyValue:i=!1}=t,s=lt(e),a=He(e);function d(g){if(arguments.length)return a.value=g,a.value;{const l=an(n);return a.value=a.value===l?an(i):l,a.value}}return s?d:[a,d]}const ai=Td?window:void 0,x0=Td?window.document:void 0;function kl(e){var t;const n=an(e);return(t=n==null?void 0:n.$el)!=null?t:n}function Yc(...e){let t,n,i,s;if(typeof e[0]=="string"||Array.isArray(e[0])?([n,i,s]=e,t=ai):[t,n,i,s]=e,!t)return Ld;Array.isArray(n)||(n=[n]),Array.isArray(i)||(i=[i]);const a=[],d=()=>{a.forEach(o=>o()),a.length=0},g=(o,r,c,u)=>(o.addEventListener(r,c,u),()=>o.removeEventListener(r,c,u)),l=Je(()=>[kl(t),an(s)],([o,r])=>{if(d(),!o)return;const c=v0(r)?{...r}:r;a.push(...n.flatMap(u=>i.map(h=>g(o,u,h,c))))},{immediate:!0,flush:"post"}),p=()=>{l(),d()};return no(p),p}function C0(){const e=He(!1),t=$l();return t&&ct(()=>{e.value=!0},t),e}function Dd(e){const t=C0();return ke(()=>(t.value,!!e()))}function $0(e,t,n={}){const{window:i=ai,...s}=n;let a;const d=Dd(()=>i&&"MutationObserver"in i),g=()=>{a&&(a.disconnect(),a=void 0)},l=ke(()=>{const c=an(e),u=(Array.isArray(c)?c:[c]).map(kl).filter(g0);return new Set(u)}),p=Je(()=>l.value,c=>{g(),d.value&&c.size&&(a=new MutationObserver(t),c.forEach(u=>a.observe(u,s)))},{immediate:!0,flush:"post"}),o=()=>a==null?void 0:a.takeRecords(),r=()=>{p(),g()};return no(r),{isSupported:d,stop:r,takeRecords:o}}function A0(e,t={}){const{window:n=ai}=t,i=Dd(()=>n&&"matchMedia"in n&&typeof n.matchMedia=="function");let s;const a=He(!1),d=p=>{a.value=p.matches},g=()=>{s&&("removeEventListener"in s?s.removeEventListener("change",d):s.removeListener(d))},l=_l(()=>{i.value&&(g(),s=n.matchMedia(an(e)),"addEventListener"in s?s.addEventListener("change",d):s.addListener(d),a.value=s.matches)});return no(()=>{l(),g(),s=void 0}),a}const ts=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},ns="__vueuse_ssr_handlers__",k0=M0();function M0(){return ns in ts||(ts[ns]=ts[ns]||{}),ts[ns]}function Fd(e,t){return k0[e]||t}function Pd(e){return A0("(prefers-color-scheme: dark)",e)}function E0(e){return e==null?"any":e instanceof Set?"set":e instanceof Map?"map":e instanceof Date?"date":typeof e=="boolean"?"boolean":typeof e=="string"?"string":typeof e=="object"?"object":Number.isNaN(e)?"any":"number"}const T0={boolean:{read:e=>e==="true",write:e=>String(e)},object:{read:e=>JSON.parse(e),write:e=>JSON.stringify(e)},number:{read:e=>Number.parseFloat(e),write:e=>String(e)},any:{read:e=>e,write:e=>String(e)},string:{read:e=>e,write:e=>String(e)},map:{read:e=>new Map(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e.entries()))},set:{read:e=>new Set(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e))},date:{read:e=>new Date(e),write:e=>e.toISOString()}},Kc="vueuse-storage";function L0(e,t,n,i={}){var s;const{flush:a="pre",deep:d=!0,listenToStorageChanges:g=!0,writeDefaults:l=!0,mergeDefaults:p=!1,shallow:o,window:r=ai,eventFilter:c,onError:u=T=>{console.error(T)},initOnMounted:h}=i,f=(o?Yh:He)(typeof t=="function"?t():t);if(!n)try{n=Fd("getDefaultStorage",()=>{var T;return(T=ai)==null?void 0:T.localStorage})()}catch(T){u(T)}if(!n)return f;const m=an(t),v=E0(m),y=(s=i.serializer)!=null?s:T0[v],{pause:$,resume:_}=_0(f,()=>b(f.value),{flush:a,deep:d,eventFilter:c});r&&g&&Nd(()=>{n instanceof Storage?Yc(r,"storage",O):Yc(r,Kc,L),h&&O()}),h||O();function S(T,k){if(r){const x={key:e,oldValue:T,newValue:k,storageArea:n};r.dispatchEvent(n instanceof Storage?new StorageEvent("storage",x):new CustomEvent(Kc,{detail:x}))}}function b(T){try{const k=n.getItem(e);if(T==null)S(k,null),n.removeItem(e);else{const x=y.write(T);k!==x&&(n.setItem(e,x),S(k,x))}}catch(k){u(k)}}function M(T){const k=T?T.newValue:n.getItem(e);if(k==null)return l&&m!=null&&n.setItem(e,y.write(m)),m;if(!T&&p){const x=y.read(k);return typeof p=="function"?p(x,m):v==="object"&&!Array.isArray(x)?{...m,...x}:x}else return typeof k!="string"?k:y.read(k)}function O(T){if(!(T&&T.storageArea!==n)){if(T&&T.key==null){f.value=m;return}if(!(T&&T.key!==e)){$();try{(T==null?void 0:T.newValue)!==y.write(f.value)&&(f.value=M(T))}catch(k){u(k)}finally{T?jr(_):_()}}}}function L(T){O(T.detail)}return f}const R0="*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}";function O0(e={}){const{selector:t="html",attribute:n="class",initialValue:i="auto",window:s=ai,storage:a,storageKey:d="vueuse-color-scheme",listenToStorageChanges:g=!0,storageRef:l,emitAuto:p,disableTransition:o=!0}=e,r={auto:"",light:"light",dark:"dark",...e.modes||{}},c=Pd({window:s}),u=ke(()=>c.value?"dark":"light"),h=l||(d==null?Id(i):L0(d,i,a,{window:s,listenToStorageChanges:g})),f=ke(()=>h.value==="auto"?u.value:h.value),m=Fd("updateHTMLAttrs",(_,S,b)=>{const M=typeof _=="string"?s==null?void 0:s.document.querySelector(_):kl(_);if(!M)return;const O=new Set,L=new Set;let T=null;if(S==="class"){const x=b.split(/\s/g);Object.values(r).flatMap(C=>(C||"").split(/\s/g)).filter(Boolean).forEach(C=>{x.includes(C)?O.add(C):L.add(C)})}else T={key:S,value:b};if(O.size===0&&L.size===0&&T===null)return;let k;o&&(k=s.document.createElement("style"),k.appendChild(document.createTextNode(R0)),s.document.head.appendChild(k));for(const x of O)M.classList.add(x);for(const x of L)M.classList.remove(x);T&&M.setAttribute(T.key,T.value),o&&(s.getComputedStyle(k).opacity,document.head.removeChild(k))});function v(_){var S;m(t,n,(S=r[_])!=null?S:_)}function y(_){e.onChanged?e.onChanged(_,v):v(_)}Je(f,y,{flush:"post",immediate:!0}),Nd(()=>y(f.value));const $=ke({get(){return p?h.value:f.value},set(_){h.value=_}});try{return Object.assign($,{store:h,system:u,state:f})}catch{return $}}function Wd(e={}){const{valueDark:t="dark",valueLight:n="",window:i=ai}=e,s=O0({...e,onChanged:(g,l)=>{var p;e.onChanged?(p=e.onChanged)==null||p.call(e,g==="dark",l,g):l(g)},modes:{dark:t,light:n}}),a=ke(()=>s.system?s.system.value:Pd({window:i}).value?"dark":"light");return ke({get(){return s.value==="dark"},set(g){const l=g?"dark":"light";a.value===l?s.value="auto":s.value=l}})}function Cn(e=null,t={}){var n,i,s;const{document:a=x0,restoreOnUnmount:d=r=>r}=t,g=(n=a==null?void 0:a.title)!=null?n:"",l=Id((i=e??(a==null?void 0:a.title))!=null?i:null),p=e&&typeof e=="function";function o(r){if(!("titleTemplate"in t))return r;const c=t.titleTemplate||"%s";return typeof c=="function"?c(r):an(c).replace(/%s/g,r)}return Je(l,(r,c)=>{r!==c&&a&&(a.title=o(typeof r=="string"?r:""))},{immediate:!0}),t.observe&&!t.titleTemplate&&a&&!p&&$0((s=a.head)==null?void 0:s.querySelector("title"),()=>{a&&a.title!==l.value&&(l.value=o(a.title))},{childList:!0}),S0(()=>{if(d){const r=d(g,l.value||"");r!=null&&a&&(a.title=r)}}),l}const I0={role:"navigation","aria-label":"main navigation",class:"navbar is-fixed-top"},N0={class:"navbar-menu"},D0={class:"navbar-start"},F0={class:"navbar-end"},P0={class:"navbar-item"},W0=Ce({__name:"NavbarItem",setup(e){const t=Wd({selector:"html",valueDark:"theme-dark",valueLight:"theme-light"}),n=Ur(t);return(i,s)=>{const a=Xe("router-link"),d=Xe("font-awesome-icon");return Y(),ie("nav",I0,[s[8]||(s[8]=D("div",{class:"navbar-brand"},[D("a",{class:"navbar-item"},[D("h1",{class:"title"},"Mihari")])],-1)),D("div",N0,[D("div",D0,[se(a,{class:"navbar-item",to:{name:"Alerts"}},{default:nt(()=>s[1]||(s[1]=[it("Alerts")])),_:1}),se(a,{class:"navbar-item",to:{name:"Artifacts"}},{default:nt(()=>s[2]||(s[2]=[it("Artifacts")])),_:1}),se(a,{class:"navbar-item",to:{name:"Rules"}},{default:nt(()=>s[3]||(s[3]=[it("Rules")])),_:1}),se(a,{class:"navbar-item",to:{name:"NewRule"}},{default:nt(()=>s[4]||(s[4]=[it("New Rule")])),_:1}),se(a,{class:"navbar-item",to:{name:"Config"}},{default:nt(()=>s[5]||(s[5]=[it("Config")])),_:1}),s[6]||(s[6]=D("a",{class:"navbar-item"},[D("a",{href:"/redoc-static.html",target:"_blank",class:"navbar-item"},"API")],-1)),s[7]||(s[7]=D("a",{class:"navbar-item"},[D("a",{href:"https://github.com/ninoseki/mihari",target:"_blank",class:"navbar-item"},"GitHub")],-1))]),D("div",F0,[D("div",P0,[D("span",{class:"icon",onClick:s[0]||(s[0]=g=>ce(n)())},[se(d,{icon:ce(t)?"moon":"sun"},null,8,["icon"])])])])])])}}}),Vr=(e,t)=>{const n=e.__vccOpts||e;for(const[i,s]of t)n[i]=s;return n},B0=Vr(W0,[["__scopeId","data-v-a9b95eb0"]]),z0={class:"section is-medium"},j0={class:"container"},H0=Ce({__name:"App",setup(e){return(t,n)=>{const i=Xe("router-view");return Y(),ie(Pe,null,[se(B0),D("section",z0,[D("div",j0,[se(i)])])],64)}}});/*! * vue-router v4.4.5 * (c) 2024 Eduardo San Martin Morote * @license MIT */const vi=typeof document<"u";function Bd(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function U0(e){return e.__esModule||e[Symbol.toStringTag]==="Module"||e.default&&Bd(e.default)}const Ze=Object.assign;function Po(e,t){const n={};for(const i in t){const s=t[i];n[i]=Yt(s)?s.map(e):e(s)}return n}const ur=()=>{},Yt=Array.isArray,zd=/#/g,V0=/&/g,G0=/\//g,Y0=/=/g,K0=/\?/g,jd=/\+/g,Z0=/%5B/g,X0=/%5D/g,Hd=/%5E/g,Q0=/%60/g,Ud=/%7B/g,q0=/%7C/g,Vd=/%7D/g,J0=/%20/g;function Ml(e){return encodeURI(""+e).replace(q0,"|").replace(Z0,"[").replace(X0,"]")}function eb(e){return Ml(e).replace(Ud,"{").replace(Vd,"}").replace(Hd,"^")}function xa(e){return Ml(e).replace(jd,"%2B").replace(J0,"+").replace(zd,"%23").replace(V0,"%26").replace(Q0,"`").replace(Ud,"{").replace(Vd,"}").replace(Hd,"^")}function tb(e){return xa(e).replace(Y0,"%3D")}function nb(e){return Ml(e).replace(zd,"%23").replace(K0,"%3F")}function ib(e){return e==null?"":nb(e).replace(G0,"%2F")}function br(e){try{return decodeURIComponent(""+e)}catch{}return""+e}const rb=/\/$/,sb=e=>e.replace(rb,"");function Wo(e,t,n="/"){let i,s={},a="",d="";const g=t.indexOf("#");let l=t.indexOf("?");return g=0&&(l=-1),l>-1&&(i=t.slice(0,l),a=t.slice(l+1,g>-1?g:t.length),s=e(a)),g>-1&&(i=i||t.slice(0,g),d=t.slice(g,t.length)),i=cb(i??t,n),{fullPath:i+(a&&"?")+a+d,path:i,query:s,hash:br(d)}}function ob(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function Zc(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function ab(e,t,n){const i=t.matched.length-1,s=n.matched.length-1;return i>-1&&i===s&&Ri(t.matched[i],n.matched[s])&&Gd(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function Ri(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function Gd(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!lb(e[n],t[n]))return!1;return!0}function lb(e,t){return Yt(e)?Xc(e,t):Yt(t)?Xc(t,e):e===t}function Xc(e,t){return Yt(t)?e.length===t.length&&e.every((n,i)=>n===t[i]):e.length===1&&e[0]===t}function cb(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),i=e.split("/"),s=i[i.length-1];(s===".."||s===".")&&i.push("");let a=n.length-1,d,g;for(d=0;d1&&a--;else break;return n.slice(0,a).join("/")+"/"+i.slice(d).join("/")}const kn={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};var wr;(function(e){e.pop="pop",e.push="push"})(wr||(wr={}));var hr;(function(e){e.back="back",e.forward="forward",e.unknown=""})(hr||(hr={}));function ub(e){if(!e)if(vi){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),sb(e)}const hb=/^[^#]+#/;function db(e,t){return e.replace(hb,"#")+t}function fb(e,t){const n=document.documentElement.getBoundingClientRect(),i=e.getBoundingClientRect();return{behavior:t.behavior,left:i.left-n.left-(t.left||0),top:i.top-n.top-(t.top||0)}}const io=()=>({left:window.scrollX,top:window.scrollY});function pb(e){let t;if("el"in e){const n=e.el,i=typeof n=="string"&&n.startsWith("#"),s=typeof n=="string"?i?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!s)return;t=fb(s,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.scrollX,t.top!=null?t.top:window.scrollY)}function Qc(e,t){return(history.state?history.state.position-t:-1)+e}const Ca=new Map;function gb(e,t){Ca.set(e,t)}function mb(e){const t=Ca.get(e);return Ca.delete(e),t}let vb=()=>location.protocol+"//"+location.host;function Yd(e,t){const{pathname:n,search:i,hash:s}=t,a=e.indexOf("#");if(a>-1){let g=s.includes(e.slice(a))?e.slice(a).length:1,l=s.slice(g);return l[0]!=="/"&&(l="/"+l),Zc(l,"")}return Zc(n,e)+i+s}function yb(e,t,n,i){let s=[],a=[],d=null;const g=({state:c})=>{const u=Yd(e,location),h=n.value,f=t.value;let m=0;if(c){if(n.value=u,t.value=c,d&&d===h){d=null;return}m=f?c.position-f.position:0}else i(u);s.forEach(v=>{v(n.value,h,{delta:m,type:wr.pop,direction:m?m>0?hr.forward:hr.back:hr.unknown})})};function l(){d=n.value}function p(c){s.push(c);const u=()=>{const h=s.indexOf(c);h>-1&&s.splice(h,1)};return a.push(u),u}function o(){const{history:c}=window;c.state&&c.replaceState(Ze({},c.state,{scroll:io()}),"")}function r(){for(const c of a)c();a=[],window.removeEventListener("popstate",g),window.removeEventListener("beforeunload",o)}return window.addEventListener("popstate",g),window.addEventListener("beforeunload",o,{passive:!0}),{pauseListeners:l,listen:p,destroy:r}}function qc(e,t,n,i=!1,s=!1){return{back:e,current:t,forward:n,replaced:i,position:window.history.length,scroll:s?io():null}}function bb(e){const{history:t,location:n}=window,i={value:Yd(e,n)},s={value:t.state};s.value||a(i.value,{back:null,current:i.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function a(l,p,o){const r=e.indexOf("#"),c=r>-1?(n.host&&document.querySelector("base")?e:e.slice(r))+l:vb()+e+l;try{t[o?"replaceState":"pushState"](p,"",c),s.value=p}catch(u){console.error(u),n[o?"replace":"assign"](c)}}function d(l,p){const o=Ze({},t.state,qc(s.value.back,l,s.value.forward,!0),p,{position:s.value.position});a(l,o,!0),i.value=l}function g(l,p){const o=Ze({},s.value,t.state,{forward:l,scroll:io()});a(o.current,o,!0);const r=Ze({},qc(i.value,l,null),{position:o.position+1},p);a(l,r,!1),i.value=l}return{location:i,state:s,push:g,replace:d}}function wb(e){e=ub(e);const t=bb(e),n=yb(e,t.state,t.location,t.replace);function i(a,d=!0){d||n.pauseListeners(),history.go(a)}const s=Ze({location:"",base:e,go:i,createHref:db.bind(null,e)},t,n);return Object.defineProperty(s,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(s,"state",{enumerable:!0,get:()=>t.state.value}),s}function _b(e){return e=location.host?e||location.pathname+location.search:"",e.includes("#")||(e+="#"),wb(e)}function Sb(e){return typeof e=="string"||e&&typeof e=="object"}function Kd(e){return typeof e=="string"||typeof e=="symbol"}const Zd=Symbol("");var Jc;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(Jc||(Jc={}));function Oi(e,t){return Ze(new Error,{type:e,[Zd]:!0},t)}function dn(e,t){return e instanceof Error&&Zd in e&&(t==null||!!(e.type&t))}const eu="[^/]+?",xb={sensitive:!1,strict:!1,start:!0,end:!0},Cb=/[.+*?^${}()[\]/\\]/g;function $b(e,t){const n=Ze({},xb,t),i=[];let s=n.start?"^":"";const a=[];for(const p of e){const o=p.length?[]:[90];n.strict&&!p.length&&(s+="/");for(let r=0;rt.length?t.length===1&&t[0]===80?1:-1:0}function Xd(e,t){let n=0;const i=e.score,s=t.score;for(;n0&&t[t.length-1]<0}const kb={type:0,value:""},Mb=/[a-zA-Z0-9_]/;function Eb(e){if(!e)return[[]];if(e==="/")return[[kb]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(u){throw new Error(`ERR (${n})/"${p}": ${u}`)}let n=0,i=n;const s=[];let a;function d(){a&&s.push(a),a=[]}let g=0,l,p="",o="";function r(){p&&(n===0?a.push({type:0,value:p}):n===1||n===2||n===3?(a.length>1&&(l==="*"||l==="+")&&t(`A repeatable param (${p}) must be alone in its segment. eg: '/:ids+.`),a.push({type:1,value:p,regexp:o,repeatable:l==="*"||l==="+",optional:l==="*"||l==="?"})):t("Invalid state to consume buffer"),p="")}function c(){p+=l}for(;g{d($)}:ur}function d(r){if(Kd(r)){const c=i.get(r);c&&(i.delete(r),n.splice(n.indexOf(c),1),c.children.forEach(d),c.alias.forEach(d))}else{const c=n.indexOf(r);c>-1&&(n.splice(c,1),r.record.name&&i.delete(r.record.name),r.children.forEach(d),r.alias.forEach(d))}}function g(){return n}function l(r){const c=Ib(r,n);n.splice(c,0,r),r.record.name&&!ru(r)&&i.set(r.record.name,r)}function p(r,c){let u,h={},f,m;if("name"in r&&r.name){if(u=i.get(r.name),!u)throw Oi(1,{location:r});m=u.record.name,h=Ze(nu(c.params,u.keys.filter($=>!$.optional).concat(u.parent?u.parent.keys.filter($=>$.optional):[]).map($=>$.name)),r.params&&nu(r.params,u.keys.map($=>$.name))),f=u.stringify(h)}else if(r.path!=null)f=r.path,u=n.find($=>$.re.test(f)),u&&(h=u.parse(f),m=u.record.name);else{if(u=c.name?i.get(c.name):n.find($=>$.re.test(c.path)),!u)throw Oi(1,{location:r,currentLocation:c});m=u.record.name,h=Ze({},c.params,r.params),f=u.stringify(h)}const v=[];let y=u;for(;y;)v.unshift(y.record),y=y.parent;return{name:m,path:f,params:h,matched:v,meta:Ob(v)}}e.forEach(r=>a(r));function o(){n.length=0,i.clear()}return{addRoute:a,resolve:p,removeRoute:d,clearRoutes:o,getRoutes:g,getRecordMatcher:s}}function nu(e,t){const n={};for(const i of t)i in e&&(n[i]=e[i]);return n}function iu(e){const t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:Rb(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}};return Object.defineProperty(t,"mods",{value:{}}),t}function Rb(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const i in e.components)t[i]=typeof n=="object"?n[i]:n;return t}function ru(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function Ob(e){return e.reduce((t,n)=>Ze(t,n.meta),{})}function su(e,t){const n={};for(const i in e)n[i]=i in t?t[i]:e[i];return n}function Ib(e,t){let n=0,i=t.length;for(;n!==i;){const a=n+i>>1;Xd(e,t[a])<0?i=a:n=a+1}const s=Nb(e);return s&&(i=t.lastIndexOf(s,i-1)),i}function Nb(e){let t=e;for(;t=t.parent;)if(Qd(t)&&Xd(e,t)===0)return t}function Qd({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function Db(e){const t={};if(e===""||e==="?")return t;const i=(e[0]==="?"?e.slice(1):e).split("&");for(let s=0;sa&&xa(a)):[i&&xa(i)]).forEach(a=>{a!==void 0&&(t+=(t.length?"&":"")+n,a!=null&&(t+="="+a))})}return t}function Fb(e){const t={};for(const n in e){const i=e[n];i!==void 0&&(t[n]=Yt(i)?i.map(s=>s==null?null:""+s):i==null?i:""+i)}return t}const Pb=Symbol(""),au=Symbol(""),ro=Symbol(""),El=Symbol(""),$a=Symbol("");function Ki(){let e=[];function t(i){return e.push(i),()=>{const s=e.indexOf(i);s>-1&&e.splice(s,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function Ln(e,t,n,i,s,a=d=>d()){const d=i&&(i.enterCallbacks[s]=i.enterCallbacks[s]||[]);return()=>new Promise((g,l)=>{const p=c=>{c===!1?l(Oi(4,{from:n,to:t})):c instanceof Error?l(c):Sb(c)?l(Oi(2,{from:t,to:c})):(d&&i.enterCallbacks[s]===d&&typeof c=="function"&&d.push(c),g())},o=a(()=>e.call(i&&i.instances[s],t,n,p));let r=Promise.resolve(o);e.length<3&&(r=r.then(p)),r.catch(c=>l(c))})}function Bo(e,t,n,i,s=a=>a()){const a=[];for(const d of e)for(const g in d.components){let l=d.components[g];if(!(t!=="beforeRouteEnter"&&!d.instances[g]))if(Bd(l)){const o=(l.__vccOpts||l)[t];o&&a.push(Ln(o,n,i,d,g,s))}else{let p=l();a.push(()=>p.then(o=>{if(!o)throw new Error(`Couldn't resolve component "${g}" at "${d.path}"`);const r=U0(o)?o.default:o;d.mods[g]=o,d.components[g]=r;const u=(r.__vccOpts||r)[t];return u&&Ln(u,n,i,d,g,s)()}))}}return a}function lu(e){const t=Vt(ro),n=Vt(El),i=ke(()=>{const l=ce(e.to);return t.resolve(l)}),s=ke(()=>{const{matched:l}=i.value,{length:p}=l,o=l[p-1],r=n.matched;if(!o||!r.length)return-1;const c=r.findIndex(Ri.bind(null,o));if(c>-1)return c;const u=cu(l[p-2]);return p>1&&cu(o)===u&&r[r.length-1].path!==u?r.findIndex(Ri.bind(null,l[p-2])):c}),a=ke(()=>s.value>-1&&jb(n.params,i.value.params)),d=ke(()=>s.value>-1&&s.value===n.matched.length-1&&Gd(n.params,i.value.params));function g(l={}){return zb(l)?t[ce(e.replace)?"replace":"push"](ce(e.to)).catch(ur):Promise.resolve()}return{route:i,href:ke(()=>i.value.href),isActive:a,isExactActive:d,navigate:g}}const Wb=Ce({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:lu,setup(e,{slots:t}){const n=Bi(lu(e)),{options:i}=Vt(ro),s=ke(()=>({[uu(e.activeClass,i.linkActiveClass,"router-link-active")]:n.isActive,[uu(e.exactActiveClass,i.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const a=t.default&&t.default(n);return e.custom?a:to("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:s.value},a)}}}),Bb=Wb;function zb(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function jb(e,t){for(const n in t){const i=t[n],s=e[n];if(typeof i=="string"){if(i!==s)return!1}else if(!Yt(s)||s.length!==i.length||i.some((a,d)=>a!==s[d]))return!1}return!0}function cu(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const uu=(e,t,n)=>e??t??n,Hb=Ce({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const i=Vt($a),s=ke(()=>e.route||i.value),a=Vt(au,0),d=ke(()=>{let p=ce(a);const{matched:o}=s.value;let r;for(;(r=o[p])&&!r.components;)p++;return p}),g=ke(()=>s.value.matched[d.value]);as(au,ke(()=>d.value+1)),as(Pb,g),as($a,s);const l=He();return Je(()=>[l.value,g.value,e.name],([p,o,r],[c,u,h])=>{o&&(o.instances[r]=p,u&&u!==o&&p&&p===c&&(o.leaveGuards.size||(o.leaveGuards=u.leaveGuards),o.updateGuards.size||(o.updateGuards=u.updateGuards))),p&&o&&(!u||!Ri(o,u)||!c)&&(o.enterCallbacks[r]||[]).forEach(f=>f(p))},{flush:"post"}),()=>{const p=s.value,o=e.name,r=g.value,c=r&&r.components[o];if(!c)return hu(n.default,{Component:c,route:p});const u=r.props[o],h=u?u===!0?p.params:typeof u=="function"?u(p):u:null,m=to(c,Ze({},h,t,{onVnodeUnmounted:v=>{v.component.isUnmounted&&(r.instances[o]=null)},ref:l}));return hu(n.default,{Component:m,route:p})||m}}});function hu(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const Ub=Hb;function Vb(e){const t=Lb(e.routes,e),n=e.parseQuery||Db,i=e.stringifyQuery||ou,s=e.history,a=Ki(),d=Ki(),g=Ki(),l=Yh(kn);let p=kn;vi&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const o=Po.bind(null,H=>""+H),r=Po.bind(null,ib),c=Po.bind(null,br);function u(H,Z){let X,q;return Kd(H)?(X=t.getRecordMatcher(H),q=Z):q=H,t.addRoute(q,X)}function h(H){const Z=t.getRecordMatcher(H);Z&&t.removeRoute(Z)}function f(){return t.getRoutes().map(H=>H.record)}function m(H){return!!t.getRecordMatcher(H)}function v(H,Z){if(Z=Ze({},Z||l.value),typeof H=="string"){const W=Wo(n,H,Z.path),G=t.resolve({path:W.path},Z),ne=s.createHref(W.fullPath);return Ze(W,G,{params:c(G.params),hash:br(W.hash),redirectedFrom:void 0,href:ne})}let X;if(H.path!=null)X=Ze({},H,{path:Wo(n,H.path,Z.path).path});else{const W=Ze({},H.params);for(const G in W)W[G]==null&&delete W[G];X=Ze({},H,{params:r(W)}),Z.params=r(Z.params)}const q=t.resolve(X,Z),ue=H.hash||"";q.params=o(c(q.params));const we=ob(i,Ze({},H,{hash:eb(ue),path:q.path})),P=s.createHref(we);return Ze({fullPath:we,hash:ue,query:i===ou?Fb(H.query):H.query||{}},q,{redirectedFrom:void 0,href:P})}function y(H){return typeof H=="string"?Wo(n,H,l.value.path):Ze({},H)}function $(H,Z){if(p!==H)return Oi(8,{from:Z,to:H})}function _(H){return M(H)}function S(H){return _(Ze(y(H),{replace:!0}))}function b(H){const Z=H.matched[H.matched.length-1];if(Z&&Z.redirect){const{redirect:X}=Z;let q=typeof X=="function"?X(H):X;return typeof q=="string"&&(q=q.includes("?")||q.includes("#")?q=y(q):{path:q},q.params={}),Ze({query:H.query,hash:H.hash,params:q.path!=null?{}:H.params},q)}}function M(H,Z){const X=p=v(H),q=l.value,ue=H.state,we=H.force,P=H.replace===!0,W=b(X);if(W)return M(Ze(y(W),{state:typeof W=="object"?Ze({},ue,W.state):ue,force:we,replace:P}),Z||X);const G=X;G.redirectedFrom=Z;let ne;return!we&&ab(i,q,X)&&(ne=Oi(16,{to:G,from:q}),z(q,q,!0,!1)),(ne?Promise.resolve(ne):T(G,q)).catch(ee=>dn(ee)?dn(ee,2)?ee:F(ee):I(ee,G,q)).then(ee=>{if(ee){if(dn(ee,2))return M(Ze({replace:P},y(ee.to),{state:typeof ee.to=="object"?Ze({},ue,ee.to.state):ue,force:we}),Z||G)}else ee=x(G,q,!0,P,ue);return k(G,q,ee),ee})}function O(H,Z){const X=$(H,Z);return X?Promise.reject(X):Promise.resolve()}function L(H){const Z=B.values().next().value;return Z&&typeof Z.runWithContext=="function"?Z.runWithContext(H):H()}function T(H,Z){let X;const[q,ue,we]=Gb(H,Z);X=Bo(q.reverse(),"beforeRouteLeave",H,Z);for(const W of q)W.leaveGuards.forEach(G=>{X.push(Ln(G,H,Z))});const P=O.bind(null,H,Z);return X.push(P),Q(X).then(()=>{X=[];for(const W of a.list())X.push(Ln(W,H,Z));return X.push(P),Q(X)}).then(()=>{X=Bo(ue,"beforeRouteUpdate",H,Z);for(const W of ue)W.updateGuards.forEach(G=>{X.push(Ln(G,H,Z))});return X.push(P),Q(X)}).then(()=>{X=[];for(const W of we)if(W.beforeEnter)if(Yt(W.beforeEnter))for(const G of W.beforeEnter)X.push(Ln(G,H,Z));else X.push(Ln(W.beforeEnter,H,Z));return X.push(P),Q(X)}).then(()=>(H.matched.forEach(W=>W.enterCallbacks={}),X=Bo(we,"beforeRouteEnter",H,Z,L),X.push(P),Q(X))).then(()=>{X=[];for(const W of d.list())X.push(Ln(W,H,Z));return X.push(P),Q(X)}).catch(W=>dn(W,8)?W:Promise.reject(W))}function k(H,Z,X){g.list().forEach(q=>L(()=>q(H,Z,X)))}function x(H,Z,X,q,ue){const we=$(H,Z);if(we)return we;const P=Z===kn,W=vi?history.state:{};X&&(q||P?s.replace(H.fullPath,Ze({scroll:P&&W&&W.scroll},ue)):s.push(H.fullPath,ue)),l.value=H,z(H,Z,X,P),F()}let C;function w(){C||(C=s.listen((H,Z,X)=>{if(!V.listening)return;const q=v(H),ue=b(q);if(ue){M(Ze(ue,{replace:!0}),q).catch(ur);return}p=q;const we=l.value;vi&&gb(Qc(we.fullPath,X.delta),io()),T(q,we).catch(P=>dn(P,12)?P:dn(P,2)?(M(P.to,q).then(W=>{dn(W,20)&&!X.delta&&X.type===wr.pop&&s.go(-1,!1)}).catch(ur),Promise.reject()):(X.delta&&s.go(-X.delta,!1),I(P,q,we))).then(P=>{P=P||x(q,we,!1),P&&(X.delta&&!dn(P,8)?s.go(-X.delta,!1):X.type===wr.pop&&dn(P,20)&&s.go(-1,!1)),k(q,we,P)}).catch(ur)}))}let A=Ki(),E=Ki(),R;function I(H,Z,X){F(H);const q=E.list();return q.length?q.forEach(ue=>ue(H,Z,X)):console.error(H),Promise.reject(H)}function N(){return R&&l.value!==kn?Promise.resolve():new Promise((H,Z)=>{A.add([H,Z])})}function F(H){return R||(R=!H,w(),A.list().forEach(([Z,X])=>H?X(H):Z()),A.reset()),H}function z(H,Z,X,q){const{scrollBehavior:ue}=e;if(!vi||!ue)return Promise.resolve();const we=!X&&mb(Qc(H.fullPath,0))||(q||!X)&&history.state&&history.state.scroll||null;return jr().then(()=>ue(H,Z,we)).then(P=>P&&pb(P)).catch(P=>I(P,H,Z))}const U=H=>s.go(H);let j;const B=new Set,V={currentRoute:l,listening:!0,addRoute:u,removeRoute:h,clearRoutes:t.clearRoutes,hasRoute:m,getRoutes:f,resolve:v,options:e,push:_,replace:S,go:U,back:()=>U(-1),forward:()=>U(1),beforeEach:a.add,beforeResolve:d.add,afterEach:g.add,onError:E.add,isReady:N,install(H){const Z=this;H.component("RouterLink",Bb),H.component("RouterView",Ub),H.config.globalProperties.$router=Z,Object.defineProperty(H.config.globalProperties,"$route",{enumerable:!0,get:()=>ce(l)}),vi&&!j&&l.value===kn&&(j=!0,_(s.location).catch(ue=>{}));const X={};for(const ue in kn)Object.defineProperty(X,ue,{get:()=>l.value[ue],enumerable:!0});H.provide(ro,Z),H.provide(El,Vh(X)),H.provide($a,l);const q=H.unmount;B.add(H),H.unmount=function(){B.delete(H),B.size<1&&(p=kn,C&&C(),C=null,l.value=kn,j=!1,R=!1),q()}}};function Q(H){return H.reduce((Z,X)=>Z.then(()=>L(X)),Promise.resolve())}return V}function Gb(e,t){const n=[],i=[],s=[],a=Math.max(t.matched.length,e.matched.length);for(let d=0;dRi(p,g))?i.push(g):n.push(g));const l=e.matched[d];l&&(t.matched.find(p=>Ri(p,l))||s.push(l))}return[n,i,s]}function zi(){return Vt(ro)}function Yb(e){return Vt(El)}const zo=new WeakMap;function Ii(e,t,n={}){const{mode:i="replace",route:s=Yb(),router:a=zi(),transform:d=r=>r}=n;zo.has(a)||zo.set(a,new Map);const g=zo.get(a);let l=s.query[e];no(()=>{l=void 0});let p;const o=Xh((r,c)=>(p=c,{get(){return r(),d(l!==void 0?l:an(t))},set(u){l!==u&&(l=u===t||u===null?void 0:u,g.set(e,u===t||u===null?void 0:u),c(),jr(()=>{if(g.size===0)return;const h=Object.fromEntries(g.entries());g.clear();const{params:f,query:m,hash:v}=s;a[an(i)]({params:f,query:{...m,...h},hash:v})}))}}));return Je(()=>s.query[e],r=>{l!==r&&(l=r,p())},{flush:"sync"}),o}/*! CAF: shared.mjs v15.0.1 (c) 2022 Kyle Simpson MIT License: http://getify.mit-license.org */const yn=Symbol("Cleanup Function"),Tl=Symbol("Timeout Token"),wi=Symbol("Signal Reason"),pt=Symbol("Unset"),[hs,Kb]=function(){var t=new AbortController,n=!!Object.getOwnPropertyDescriptor(Object.getPrototypeOf(t.signal),"reason");try{t.abort()}catch{}return[n,Rl(t.signal.reason)]}();class li{constructor(t=new AbortController){var n;this.controller=t,this.signal=t.signal,this.signal[wi]=pt;var i=(s,a)=>{var d=()=>{if(a&&this.signal){let g=Gr(this.signal);this._trackSignalReason(g),a(g!==pt?g:void 0)}a=null};this.signal.addEventListener("abort",d,!1),n=()=>{this.signal&&(this.signal.removeEventListener("abort",d,!1),this.signal.pr&&(this.signal.pr[yn]=null)),d=null}};this.signal.pr=new Promise(i),this.signal.pr[yn]=n,this.signal.pr.catch(n),i=n=null}abort(...t){var n=t.length>0?t[0]:pt;this._trackSignalReason(n),this.controller&&(hs&&n!==pt?this.controller.abort(n):this.controller.abort())}discard(){this.signal&&(this.signal.pr&&(this.signal.pr[yn]&&this.signal.pr[yn](),this.signal.pr=null),delete this.signal[wi],hs||(this.signal.reason=null),this.signal=null),this.controller=null}_trackSignalReason(t){this.signal&&t!==pt&&(hs||"reason"in this.signal||(this.signal.reason=t),this.signal[wi]===pt&&(this.signal[wi]=t))}}function Gr(e){return e&&e.aborted?hs&&Kb?Rl(e.reason)?pt:e.reason:wi in e?e[wi]:pt:pt}function qd(e){if(e.pr)return e.pr;var t,n=new Promise(function(s,a){t=()=>{if(a&&e){let d=Gr(e);a(d!==pt?d:void 0)}a=null},e.addEventListener("abort",t,!1)});return n[yn]=function(){e&&(e.removeEventListener("abort",t,!1),e=null),n&&(n=n[yn]=t=null)},n.catch(n[yn]),n}function Ll(e){e instanceof AbortController&&(e=new li(e));var t=e&&e instanceof li?e.signal:e;return{tokenOrSignal:e,signal:t,signalPr:qd(t)}}function Aa(){var e;return{pr:new Promise(t=>e=t),resolve:e}}function Kn(e){return typeof e=="function"}function Zb(e){return e&&typeof e=="object"&&typeof e.then=="function"}function Rl(e){return typeof e=="object"&&e instanceof Error&&e.name=="AbortError"}function so(e,t){Rl(t)||t===pt?e.abort():e.abort(t)}/*! CAF: caf.mjs v15.0.1 (c) 2022 Kyle Simpson MIT License: http://getify.mit-license.org */const ka=Object.assign(Xb,{cancelToken:li,delay:Jd,timeout:Qb,signalRace:qb,signalAll:Jb,tokenCycle:e1});function Xb(e){return function(n,...i){var s,a;if({tokenOrSignal:n,signal:s,signalPr:a}=Ll(n),s.aborted)return a;var d=a.catch(function(r){var c=Gr(s);c=c!==pt?c:r;try{var u=g.return();throw u.value!==void 0?u.value:c!==pt?c:void 0}finally{g=l=d=p=null}}),{it:g,result:l}=t1.call(this,e,s,...i),p=Promise.race([l,d]);if(n!==s&&n[Tl]){let o=function(c){so(n,c),Kn(n.discard)&&n.discard(),n=o=null};p.then(o,o)}else p.catch(()=>{}),n=null;return i=null,p}}function Jd(e,t){var n,i;return typeof e=="number"&&typeof t!="number"&&([t,e]=[e,t]),e&&({tokenOrSignal:e,signal:n,signalPr:i}=Ll(e)),n&&n.aborted?i:new Promise(function(a,d){n&&(i.catch(function(){if(d&&n&&g){let p=Gr(n);clearTimeout(g),d(p!==pt?p:`delay (${t}) interrupted`),a=d=g=n=null}}),i=null);var g=setTimeout(function(){a(`delayed: ${t}`),a=d=g=n=null},t)})}function Qb(e,t="Timeout"){e=Number(e)||0;var n=new li;return Jd(n.signal,e).then(()=>i(t),i),Object.defineProperty(n,Tl,{value:!0,writable:!1,enumerable:!1,configurable:!1}),n;function i(...s){so(n,s.length>0?s[0]:pt),n.discard(),n=null}}function ef(e){return e.reduce(function(n,i){var s=qd(i);return n[0].push(s),i.pr||n[1].push(s),n},[[],[]])}function tf(e,t,n){e.then(function(s){so(t,s),t.discard(),t=null}).then(function(){for(let s of n)s[yn]&&s[yn]();n=null})}function nf(e){return e.catch(t=>t)}function qb(e){var t=new li,[n,i]=ef(e);return tf(nf(Promise.race(n)),t,i),t.signal}function Jb(e){var t=new li,[n,i]=ef(e);return tf(Promise.all(n.map(nf)),t,i),t.signal}function e1(){var e;return function(...n){return e&&(so(e,n.length>0?n[0]:pt),e.discard()),e=new li}}function t1(e,...t){var n=e.apply(this,t);return e=t=null,{it:n,result:function i(s){try{var a=n.next(s);s=null}catch(d){return Promise.reject(d)}return function d(g){var l=Promise.resolve(g.value);return g.done?n=null:(l=l.then(i,function(o){return Promise.resolve(n.throw(o)).then(d)})).catch(function(){n=null}),g=null,l}(a)}()}}/*! CAF: cag.mjs v15.0.1 (c) 2022 Kyle Simpson MIT License: http://getify.mit-license.org */Ea=ka(Ea);Object.assign(sf,{onEvent:of,onceEvent:Ea});var Ma=new WeakSet;const jo=Symbol("unset"),rf=Symbol("returned"),du=Symbol("canceled");function sf(e){return function(n,...i){var s,a;if({tokenOrSignal:n,signal:s,signalPr:a}=Ll(n),s.aborted){let r=Gr(s);throw r=r!==pt?r:"Aborted",r}var d=Aa(),{it:g,ait:l}=i1(e,d.pr,o,s,...i),p=l.return;return l.return=function(c){try{return d.pr.resolved=!0,d.resolve(rf),Promise.resolve(g.return(c))}finally{p.call(l),o()}},l;function o(){n&&n!==s&&n[Tl]&&n.abort(),l&&(l.return=p,n=d=g=l=p=null)}}}function of(e,t,n,i=!1){var s,a,d=!1,g=sf(function*({pwait:r}){d||l();try{for(;;){if(s.length==0){let{pr:c,resolve:u}=Aa();s.push(c),a.push(u)}yield yield r(s.shift())}}finally{Kn(t.removeEventListener)?t.removeEventListener(n,p,i):Kn(t.removeListener)?t.removeListener(n,p):Kn(t.off)&&t.off(n,p),s.length=a.length=0}})(e,t,n,i);return g.start=l,g;function l(){d||(d=!0,s=[],a=[],Kn(t.addEventListener)?t.addEventListener(n,p,i):Kn(t.addListener)?t.addListener(n,p):Kn(t.on)&&t.on(n,p))}function p(o){if(a.length>0)a.shift()(o);else{let{pr:r,resolve:c}=Aa();s.push(r),c(o)}}}function*Ea(e,t,n,i=!1){try{var s=of(e,t,n,i);return(yield s.next()).value}finally{s.return()}}function n1(e){var t=Promise.resolve(e);return Ma.add(t),t}function i1(e,t,n,i,...s){var a=e.call(this,{signal:i,pwait:n1},...s);e=s=null;var d=i.pr.catch(g=>{throw{[du]:!0,reason:g}});return d.catch(()=>{}),{it:a,ait:async function*(){var l,p=jo;try{for(;!t.resolved;)if(p!==jo?(l=p,p=jo,l=a.throw(l)):l=a.next(l),Zb(l.value))if(Ma.has(l.value)){Ma.delete(l.value);try{if((l=await Promise.race([t,d,l.value]))===rf)return}catch(o){if(o[du]){let r=a.return();throw r.value!==void 0?r.value:o.reason}p=o}}else l=yield l.value;else{if(l.done)return l.value;l=yield l.value}}finally{a=t=null,n()}}()}}const r1=e=>e._runningInstances.length>=e._maxConcurrency,s1=e=>{const t=e._activeInstances[0];t&&t.cancel()},o1=e=>{e._enqueuedInstances.forEach(t=>{t.isEnqueued=!1,t.isDropped=!0})};function Zi(e,t){return t?a1(()=>e()._instances,t):ke(()=>[])}function a1(e,t,n){return ke(()=>e().filter(i=>i[t]))}function l1(e){return ke(()=>e().length)}function fu(e){return ke(()=>{const t=e();return t[t.length-1]})}function c1(e){return ke(()=>e()[0])}const af=e=>e;function lf(e){return Bi(e)}function u1(){const e={},t=new Promise((n,i)=>{e.resolve=n,e.reject=i});return e.promise=t,e}function _t(e){return f1(function*(t,...n){return e(t,...n)})}function h1(e,t,n){const i=af({id:n.id,isDropped:!1,isEnqueued:!1,hasStarted:!1,isRunning:!1,isFinished:!1,isCanceling:!1,isCanceled:ke(()=>s.isCanceling&&s.isFinished),isActive:ke(()=>s.isRunning&&!s.isCanceling),isSuccessful:!1,isNotDropped:ke(()=>!s.isDropped),isError:ke(()=>!!s.error),status:ke(()=>{const d=s,g=[[d.isRunning,"running"],[d.isEnqueued,"enqueued"],[d.isCanceled,"canceled"],[d.isCanceling,"canceling"],[d.isDropped,"dropped"],[d.isError,"error"],[d.isSuccessful,"success"]].find(([l])=>l);return g&&g[1]}),error:null,value:null,cancel({force:d}={force:!1}){if(d||(s.isCanceling=!0,s.isEnqueued&&(s.isFinished=!0),s.isEnqueued=!1),s.token&&s._canAbort){s.token.abort("cancel");try{s.token.discard()}catch{}s.token=void 0,s._canAbort=!1}},canceledOn(d){return d.pr.catch(()=>{s.cancel()}),s},_run(){d1(s,e,t,n)},_handled:!0,_deferredObject:u1(),_shouldThrow:!1,_canAbort:!0,then(d,g){return s._shouldThrow=!0,s._deferredObject.promise.then(d,g)},catch(d,g=!0){return s._shouldThrow=g,s._deferredObject.promise.catch(d)},finally(d){return s._shouldThrow=!0,s._deferredObject.promise.finally(d)}}),s=lf(i),{modifiers:a}=n;return a.drop?s.isDropped=!0:a.enqueue?s.isEnqueued=!0:s._run(),s}function d1(e,t,n,i){const s=new ka.cancelToken,a=ka(t,s);e.token=s,e.hasStarted=!0,e.isRunning=!0,e.isEnqueued=!1;function d(){e.isRunning=!1,e.isFinished=!0}a.call(e,s,...n).then(g=>{e.value=g,e.isSuccessful=!0,d(),e._deferredObject.resolve(g),e._canAbort=!1,i.onFinish(e)}).catch(g=>{g!=="cancel"&&(e.error=g),d(),e._shouldThrow&&e._deferredObject.reject(g),i.onFinish(e)})}function f1(e,t={cancelOnUnmount:!0}){const n=$l(),i=Zm(),s=af({_isRestartable:!1,_isDropping:!1,_isEnqueuing:!1,_isKeepingLatest:!1,_maxConcurrency:1,_hasConcurrency:ke(()=>a._isRestartable||a._isDropping||a._isEnqueuing||a._isKeepingLatest),isIdle:ke(()=>!a.isRunning),isRunning:ke(()=>!!a._instances.find(d=>d.isRunning)),isError:ke(()=>!!(a.last&&a.last.isError)),_instances:[],_successfulInstances:Zi(()=>a,"isSuccessful"),_runningInstances:Zi(()=>a,"isRunning"),_enqueuedInstances:Zi(()=>a,"isEnqueued"),_notDroppedInstances:Zi(()=>a,"isNotDropped"),_activeInstances:Zi(()=>a,"isActive"),performCount:l1(()=>a._instances),last:fu(()=>a._notDroppedInstances),lastSuccessful:fu(()=>a._successfulInstances),firstEnqueued:c1(()=>a._enqueuedInstances),cancelAll({force:d}={force:!1}){a._instances.forEach(g=>{try{(d||!g.isDropped&&!g.isFinished)&&g.cancel({force:d})}catch(l){if(l!=="cancel")throw l}})},perform(...d){const g={enqueue:!1,drop:!1};a._hasConcurrency&&r1(a)&&(a._isDropping&&(g.drop=!0),a._isRestartable&&s1(a),a._isKeepingLatest&&o1(a),(a._isEnqueuing||a._isKeepingLatest)&&(g.enqueue=!0));const l=()=>p1(a),p=()=>h1(e,d,{modifiers:g,onFinish:l,scope:i,id:a._instances.length+1}),o=i.active?i.run(p):p();return i.active||console.warn("Task instance has been created in inactive scope. Perhaps youre creating task out of setup?"),a._instances=[...a._instances,o],o},clear(){this.cancelAll({force:!0}),this._instances=[]},destroy(){i.stop(),this.clear()},restartable(){return a._resetModifierFlags(),a._isRestartable=!0,a},drop(){return a._resetModifierFlags(),a._isDropping=!0,a},enqueue(){return a._resetModifierFlags(),a._isEnqueuing=!0,a},keepLatest(){return a._resetModifierFlags(),a._isKeepingLatest=!0,a},_resetModifierFlags(){a._isKeepingLatest=!1,a._isRestartable=!1,a._isEnqueuing=!1,a._isDropping=!1},maxConcurrency(d){return a._maxConcurrency=d,a}}),a=lf(s);return n&&t.cancelOnUnmount&&yl(()=>{a._instances&&a.destroy()}),a}function p1(e){if(e._isEnqueuing||e._isKeepingLatest){const{firstEnqueued:t}=e;t&&t._run()}}function cf(e,t){return function(){return e.apply(t,arguments)}}const{toString:g1}=Object.prototype,{getPrototypeOf:Ol}=Object,oo=(e=>t=>{const n=g1.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Zt=e=>(e=e.toLowerCase(),t=>oo(t)===e),ao=e=>t=>typeof t===e,{isArray:ji}=Array,_r=ao("undefined");function m1(e){return e!==null&&!_r(e)&&e.constructor!==null&&!_r(e.constructor)&&Dt(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const uf=Zt("ArrayBuffer");function v1(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&uf(e.buffer),t}const y1=ao("string"),Dt=ao("function"),hf=ao("number"),lo=e=>e!==null&&typeof e=="object",b1=e=>e===!0||e===!1,ds=e=>{if(oo(e)!=="object")return!1;const t=Ol(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},w1=Zt("Date"),_1=Zt("File"),S1=Zt("Blob"),x1=Zt("FileList"),C1=e=>lo(e)&&Dt(e.pipe),$1=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Dt(e.append)&&((t=oo(e))==="formdata"||t==="object"&&Dt(e.toString)&&e.toString()==="[object FormData]"))},A1=Zt("URLSearchParams"),[k1,M1,E1,T1]=["ReadableStream","Request","Response","Headers"].map(Zt),L1=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Yr(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let i,s;if(typeof e!="object"&&(e=[e]),ji(e))for(i=0,s=e.length;i0;)if(s=n[i],t===s.toLowerCase())return s;return null}const Qn=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,ff=e=>!_r(e)&&e!==Qn;function Ta(){const{caseless:e}=ff(this)&&this||{},t={},n=(i,s)=>{const a=e&&df(t,s)||s;ds(t[a])&&ds(i)?t[a]=Ta(t[a],i):ds(i)?t[a]=Ta({},i):ji(i)?t[a]=i.slice():t[a]=i};for(let i=0,s=arguments.length;i(Yr(t,(s,a)=>{n&&Dt(s)?e[a]=cf(s,n):e[a]=s},{allOwnKeys:i}),e),O1=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),I1=(e,t,n,i)=>{e.prototype=Object.create(t.prototype,i),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},N1=(e,t,n,i)=>{let s,a,d;const g={};if(t=t||{},e==null)return t;do{for(s=Object.getOwnPropertyNames(e),a=s.length;a-- >0;)d=s[a],(!i||i(d,e,t))&&!g[d]&&(t[d]=e[d],g[d]=!0);e=n!==!1&&Ol(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},D1=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const i=e.indexOf(t,n);return i!==-1&&i===n},F1=e=>{if(!e)return null;if(ji(e))return e;let t=e.length;if(!hf(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},P1=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Ol(Uint8Array)),W1=(e,t)=>{const i=(e&&e[Symbol.iterator]).call(e);let s;for(;(s=i.next())&&!s.done;){const a=s.value;t.call(e,a[0],a[1])}},B1=(e,t)=>{let n;const i=[];for(;(n=e.exec(t))!==null;)i.push(n);return i},z1=Zt("HTMLFormElement"),j1=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,i,s){return i.toUpperCase()+s}),pu=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),H1=Zt("RegExp"),pf=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),i={};Yr(n,(s,a)=>{let d;(d=t(s,a,e))!==!1&&(i[a]=d||s)}),Object.defineProperties(e,i)},U1=e=>{pf(e,(t,n)=>{if(Dt(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const i=e[n];if(Dt(i)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},V1=(e,t)=>{const n={},i=s=>{s.forEach(a=>{n[a]=!0})};return ji(e)?i(e):i(String(e).split(t)),n},G1=()=>{},Y1=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t,Ho="abcdefghijklmnopqrstuvwxyz",gu="0123456789",gf={DIGIT:gu,ALPHA:Ho,ALPHA_DIGIT:Ho+Ho.toUpperCase()+gu},K1=(e=16,t=gf.ALPHA_DIGIT)=>{let n="";const{length:i}=t;for(;e--;)n+=t[Math.random()*i|0];return n};function Z1(e){return!!(e&&Dt(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const X1=e=>{const t=new Array(10),n=(i,s)=>{if(lo(i)){if(t.indexOf(i)>=0)return;if(!("toJSON"in i)){t[s]=i;const a=ji(i)?[]:{};return Yr(i,(d,g)=>{const l=n(d,s+1);!_r(l)&&(a[g]=l)}),t[s]=void 0,a}}return i};return n(e,0)},Q1=Zt("AsyncFunction"),q1=e=>e&&(lo(e)||Dt(e))&&Dt(e.then)&&Dt(e.catch),mf=((e,t)=>e?setImmediate:t?((n,i)=>(Qn.addEventListener("message",({source:s,data:a})=>{s===Qn&&a===n&&i.length&&i.shift()()},!1),s=>{i.push(s),Qn.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",Dt(Qn.postMessage)),J1=typeof queueMicrotask<"u"?queueMicrotask.bind(Qn):typeof process<"u"&&process.nextTick||mf,J={isArray:ji,isArrayBuffer:uf,isBuffer:m1,isFormData:$1,isArrayBufferView:v1,isString:y1,isNumber:hf,isBoolean:b1,isObject:lo,isPlainObject:ds,isReadableStream:k1,isRequest:M1,isResponse:E1,isHeaders:T1,isUndefined:_r,isDate:w1,isFile:_1,isBlob:S1,isRegExp:H1,isFunction:Dt,isStream:C1,isURLSearchParams:A1,isTypedArray:P1,isFileList:x1,forEach:Yr,merge:Ta,extend:R1,trim:L1,stripBOM:O1,inherits:I1,toFlatObject:N1,kindOf:oo,kindOfTest:Zt,endsWith:D1,toArray:F1,forEachEntry:W1,matchAll:B1,isHTMLForm:z1,hasOwnProperty:pu,hasOwnProp:pu,reduceDescriptors:pf,freezeMethods:U1,toObjectSet:V1,toCamelCase:j1,noop:G1,toFiniteNumber:Y1,findKey:df,global:Qn,isContextDefined:ff,ALPHABET:gf,generateString:K1,isSpecCompliantForm:Z1,toJSONObject:X1,isAsyncFn:Q1,isThenable:q1,setImmediate:mf,asap:J1};function De(e,t,n,i,s){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),i&&(this.request=i),s&&(this.response=s,this.status=s.status?s.status:null)}J.inherits(De,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:J.toJSONObject(this.config),code:this.code,status:this.status}}});const vf=De.prototype,yf={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{yf[e]={value:e}});Object.defineProperties(De,yf);Object.defineProperty(vf,"isAxiosError",{value:!0});De.from=(e,t,n,i,s,a)=>{const d=Object.create(vf);return J.toFlatObject(e,d,function(l){return l!==Error.prototype},g=>g!=="isAxiosError"),De.call(d,e.message,t,n,i,s),d.cause=e,d.name=e.name,a&&Object.assign(d,a),d};const ew=null;function La(e){return J.isPlainObject(e)||J.isArray(e)}function bf(e){return J.endsWith(e,"[]")?e.slice(0,-2):e}function mu(e,t,n){return e?e.concat(t).map(function(s,a){return s=bf(s),!n&&a?"["+s+"]":s}).join(n?".":""):t}function tw(e){return J.isArray(e)&&!e.some(La)}const nw=J.toFlatObject(J,{},null,function(t){return/^is[A-Z]/.test(t)});function co(e,t,n){if(!J.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=J.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(f,m){return!J.isUndefined(m[f])});const i=n.metaTokens,s=n.visitor||o,a=n.dots,d=n.indexes,l=(n.Blob||typeof Blob<"u"&&Blob)&&J.isSpecCompliantForm(t);if(!J.isFunction(s))throw new TypeError("visitor must be a function");function p(h){if(h===null)return"";if(J.isDate(h))return h.toISOString();if(!l&&J.isBlob(h))throw new De("Blob is not supported. Use a Buffer instead.");return J.isArrayBuffer(h)||J.isTypedArray(h)?l&&typeof Blob=="function"?new Blob([h]):Buffer.from(h):h}function o(h,f,m){let v=h;if(h&&!m&&typeof h=="object"){if(J.endsWith(f,"{}"))f=i?f:f.slice(0,-2),h=JSON.stringify(h);else if(J.isArray(h)&&tw(h)||(J.isFileList(h)||J.endsWith(f,"[]"))&&(v=J.toArray(h)))return f=bf(f),v.forEach(function($,_){!(J.isUndefined($)||$===null)&&t.append(d===!0?mu([f],_,a):d===null?f:f+"[]",p($))}),!1}return La(h)?!0:(t.append(mu(m,f,a),p(h)),!1)}const r=[],c=Object.assign(nw,{defaultVisitor:o,convertValue:p,isVisitable:La});function u(h,f){if(!J.isUndefined(h)){if(r.indexOf(h)!==-1)throw Error("Circular reference detected in "+f.join("."));r.push(h),J.forEach(h,function(v,y){(!(J.isUndefined(v)||v===null)&&s.call(t,v,J.isString(y)?y.trim():y,f,c))===!0&&u(v,f?f.concat(y):[y])}),r.pop()}}if(!J.isObject(e))throw new TypeError("data must be an object");return u(e),t}function vu(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(i){return t[i]})}function Il(e,t){this._pairs=[],e&&co(e,this,t)}const wf=Il.prototype;wf.append=function(t,n){this._pairs.push([t,n])};wf.toString=function(t){const n=t?function(i){return t.call(this,i,vu)}:vu;return this._pairs.map(function(s){return n(s[0])+"="+n(s[1])},"").join("&")};function iw(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function _f(e,t,n){if(!t)return e;const i=n&&n.encode||iw,s=n&&n.serialize;let a;if(s?a=s(t,n):a=J.isURLSearchParams(t)?t.toString():new Il(t,n).toString(i),a){const d=e.indexOf("#");d!==-1&&(e=e.slice(0,d)),e+=(e.indexOf("?")===-1?"?":"&")+a}return e}class yu{constructor(){this.handlers=[]}use(t,n,i){return this.handlers.push({fulfilled:t,rejected:n,synchronous:i?i.synchronous:!1,runWhen:i?i.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){J.forEach(this.handlers,function(i){i!==null&&t(i)})}}const Sf={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},rw=typeof URLSearchParams<"u"?URLSearchParams:Il,sw=typeof FormData<"u"?FormData:null,ow=typeof Blob<"u"?Blob:null,aw={isBrowser:!0,classes:{URLSearchParams:rw,FormData:sw,Blob:ow},protocols:["http","https","file","blob","url","data"]},Nl=typeof window<"u"&&typeof document<"u",Ra=typeof navigator=="object"&&navigator||void 0,lw=Nl&&(!Ra||["ReactNative","NativeScript","NS"].indexOf(Ra.product)<0),cw=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",uw=Nl&&window.location.href||"http://localhost",hw=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Nl,hasStandardBrowserEnv:lw,hasStandardBrowserWebWorkerEnv:cw,navigator:Ra,origin:uw},Symbol.toStringTag,{value:"Module"})),Et={...hw,...aw};function dw(e,t){return co(e,new Et.classes.URLSearchParams,Object.assign({visitor:function(n,i,s,a){return Et.isNode&&J.isBuffer(n)?(this.append(i,n.toString("base64")),!1):a.defaultVisitor.apply(this,arguments)}},t))}function fw(e){return J.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function pw(e){const t={},n=Object.keys(e);let i;const s=n.length;let a;for(i=0;i=n.length;return d=!d&&J.isArray(s)?s.length:d,l?(J.hasOwnProp(s,d)?s[d]=[s[d],i]:s[d]=i,!g):((!s[d]||!J.isObject(s[d]))&&(s[d]=[]),t(n,i,s[d],a)&&J.isArray(s[d])&&(s[d]=pw(s[d])),!g)}if(J.isFormData(e)&&J.isFunction(e.entries)){const n={};return J.forEachEntry(e,(i,s)=>{t(fw(i),s,n,0)}),n}return null}function gw(e,t,n){if(J.isString(e))try{return(t||JSON.parse)(e),J.trim(e)}catch(i){if(i.name!=="SyntaxError")throw i}return(0,JSON.stringify)(e)}const Kr={transitional:Sf,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const i=n.getContentType()||"",s=i.indexOf("application/json")>-1,a=J.isObject(t);if(a&&J.isHTMLForm(t)&&(t=new FormData(t)),J.isFormData(t))return s?JSON.stringify(xf(t)):t;if(J.isArrayBuffer(t)||J.isBuffer(t)||J.isStream(t)||J.isFile(t)||J.isBlob(t)||J.isReadableStream(t))return t;if(J.isArrayBufferView(t))return t.buffer;if(J.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let g;if(a){if(i.indexOf("application/x-www-form-urlencoded")>-1)return dw(t,this.formSerializer).toString();if((g=J.isFileList(t))||i.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return co(g?{"files[]":t}:t,l&&new l,this.formSerializer)}}return a||s?(n.setContentType("application/json",!1),gw(t)):t}],transformResponse:[function(t){const n=this.transitional||Kr.transitional,i=n&&n.forcedJSONParsing,s=this.responseType==="json";if(J.isResponse(t)||J.isReadableStream(t))return t;if(t&&J.isString(t)&&(i&&!this.responseType||s)){const d=!(n&&n.silentJSONParsing)&&s;try{return JSON.parse(t)}catch(g){if(d)throw g.name==="SyntaxError"?De.from(g,De.ERR_BAD_RESPONSE,this,null,this.response):g}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Et.classes.FormData,Blob:Et.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};J.forEach(["delete","get","head","post","put","patch"],e=>{Kr.headers[e]={}});const mw=J.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),vw=e=>{const t={};let n,i,s;return e&&e.split(` `).forEach(function(d){s=d.indexOf(":"),n=d.substring(0,s).trim().toLowerCase(),i=d.substring(s+1).trim(),!(!n||t[n]&&mw[n])&&(n==="set-cookie"?t[n]?t[n].push(i):t[n]=[i]:t[n]=t[n]?t[n]+", "+i:i)}),t},bu=Symbol("internals");function Xi(e){return e&&String(e).trim().toLowerCase()}function fs(e){return e===!1||e==null?e:J.isArray(e)?e.map(fs):String(e)}function yw(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let i;for(;i=n.exec(e);)t[i[1]]=i[2];return t}const bw=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Uo(e,t,n,i,s){if(J.isFunction(i))return i.call(this,t,n);if(s&&(t=n),!!J.isString(t)){if(J.isString(i))return t.indexOf(i)!==-1;if(J.isRegExp(i))return i.test(t)}}function ww(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,i)=>n.toUpperCase()+i)}function _w(e,t){const n=J.toCamelCase(" "+t);["get","set","has"].forEach(i=>{Object.defineProperty(e,i+n,{value:function(s,a,d){return this[i].call(this,t,s,a,d)},configurable:!0})})}let Tt=class{constructor(t){t&&this.set(t)}set(t,n,i){const s=this;function a(g,l,p){const o=Xi(l);if(!o)throw new Error("header name must be a non-empty string");const r=J.findKey(s,o);(!r||s[r]===void 0||p===!0||p===void 0&&s[r]!==!1)&&(s[r||l]=fs(g))}const d=(g,l)=>J.forEach(g,(p,o)=>a(p,o,l));if(J.isPlainObject(t)||t instanceof this.constructor)d(t,n);else if(J.isString(t)&&(t=t.trim())&&!bw(t))d(vw(t),n);else if(J.isHeaders(t))for(const[g,l]of t.entries())a(l,g,i);else t!=null&&a(n,t,i);return this}get(t,n){if(t=Xi(t),t){const i=J.findKey(this,t);if(i){const s=this[i];if(!n)return s;if(n===!0)return yw(s);if(J.isFunction(n))return n.call(this,s,i);if(J.isRegExp(n))return n.exec(s);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=Xi(t),t){const i=J.findKey(this,t);return!!(i&&this[i]!==void 0&&(!n||Uo(this,this[i],i,n)))}return!1}delete(t,n){const i=this;let s=!1;function a(d){if(d=Xi(d),d){const g=J.findKey(i,d);g&&(!n||Uo(i,i[g],g,n))&&(delete i[g],s=!0)}}return J.isArray(t)?t.forEach(a):a(t),s}clear(t){const n=Object.keys(this);let i=n.length,s=!1;for(;i--;){const a=n[i];(!t||Uo(this,this[a],a,t,!0))&&(delete this[a],s=!0)}return s}normalize(t){const n=this,i={};return J.forEach(this,(s,a)=>{const d=J.findKey(i,a);if(d){n[d]=fs(s),delete n[a];return}const g=t?ww(a):String(a).trim();g!==a&&delete n[a],n[g]=fs(s),i[g]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return J.forEach(this,(i,s)=>{i!=null&&i!==!1&&(n[s]=t&&J.isArray(i)?i.join(", "):i)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(` `)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const i=new this(t);return n.forEach(s=>i.set(s)),i}static accessor(t){const i=(this[bu]=this[bu]={accessors:{}}).accessors,s=this.prototype;function a(d){const g=Xi(d);i[g]||(_w(s,d),i[g]=!0)}return J.isArray(t)?t.forEach(a):a(t),this}};Tt.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);J.reduceDescriptors(Tt.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(i){this[n]=i}}});J.freezeMethods(Tt);function Vo(e,t){const n=this||Kr,i=t||n,s=Tt.from(i.headers);let a=i.data;return J.forEach(e,function(g){a=g.call(n,a,s.normalize(),t?t.status:void 0)}),s.normalize(),a}function Cf(e){return!!(e&&e.__CANCEL__)}function Hi(e,t,n){De.call(this,e??"canceled",De.ERR_CANCELED,t,n),this.name="CanceledError"}J.inherits(Hi,De,{__CANCEL__:!0});function $f(e,t,n){const i=n.config.validateStatus;!n.status||!i||i(n.status)?e(n):t(new De("Request failed with status code "+n.status,[De.ERR_BAD_REQUEST,De.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function Sw(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function xw(e,t){e=e||10;const n=new Array(e),i=new Array(e);let s=0,a=0,d;return t=t!==void 0?t:1e3,function(l){const p=Date.now(),o=i[a];d||(d=p),n[s]=l,i[s]=p;let r=a,c=0;for(;r!==s;)c+=n[r++],r=r%e;if(s=(s+1)%e,s===a&&(a=(a+1)%e),p-d{n=o,s=null,a&&(clearTimeout(a),a=null),e.apply(null,p)};return[(...p)=>{const o=Date.now(),r=o-n;r>=i?d(p,o):(s=p,a||(a=setTimeout(()=>{a=null,d(s)},i-r)))},()=>s&&d(s)]}const $s=(e,t,n=3)=>{let i=0;const s=xw(50,250);return Cw(a=>{const d=a.loaded,g=a.lengthComputable?a.total:void 0,l=d-i,p=s(l),o=d<=g;i=d;const r={loaded:d,total:g,progress:g?d/g:void 0,bytes:l,rate:p||void 0,estimated:p&&g&&o?(g-d)/p:void 0,event:a,lengthComputable:g!=null,[t?"download":"upload"]:!0};e(r)},n)},wu=(e,t)=>{const n=e!=null;return[i=>t[0]({lengthComputable:n,total:e,loaded:i}),t[1]]},_u=e=>(...t)=>J.asap(()=>e(...t)),$w=Et.hasStandardBrowserEnv?function(){const t=Et.navigator&&/(msie|trident)/i.test(Et.navigator.userAgent),n=document.createElement("a");let i;function s(a){let d=a;return t&&(n.setAttribute("href",d),d=n.href),n.setAttribute("href",d),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return i=s(window.location.href),function(d){const g=J.isString(d)?s(d):d;return g.protocol===i.protocol&&g.host===i.host}}():function(){return function(){return!0}}(),Aw=Et.hasStandardBrowserEnv?{write(e,t,n,i,s,a){const d=[e+"="+encodeURIComponent(t)];J.isNumber(n)&&d.push("expires="+new Date(n).toGMTString()),J.isString(i)&&d.push("path="+i),J.isString(s)&&d.push("domain="+s),a===!0&&d.push("secure"),document.cookie=d.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function kw(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function Mw(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function Af(e,t){return e&&!kw(t)?Mw(e,t):t}const Su=e=>e instanceof Tt?{...e}:e;function ci(e,t){t=t||{};const n={};function i(p,o,r){return J.isPlainObject(p)&&J.isPlainObject(o)?J.merge.call({caseless:r},p,o):J.isPlainObject(o)?J.merge({},o):J.isArray(o)?o.slice():o}function s(p,o,r){if(J.isUndefined(o)){if(!J.isUndefined(p))return i(void 0,p,r)}else return i(p,o,r)}function a(p,o){if(!J.isUndefined(o))return i(void 0,o)}function d(p,o){if(J.isUndefined(o)){if(!J.isUndefined(p))return i(void 0,p)}else return i(void 0,o)}function g(p,o,r){if(r in t)return i(p,o);if(r in e)return i(void 0,p)}const l={url:a,method:a,data:a,baseURL:d,transformRequest:d,transformResponse:d,paramsSerializer:d,timeout:d,timeoutMessage:d,withCredentials:d,withXSRFToken:d,adapter:d,responseType:d,xsrfCookieName:d,xsrfHeaderName:d,onUploadProgress:d,onDownloadProgress:d,decompress:d,maxContentLength:d,maxBodyLength:d,beforeRedirect:d,transport:d,httpAgent:d,httpsAgent:d,cancelToken:d,socketPath:d,responseEncoding:d,validateStatus:g,headers:(p,o)=>s(Su(p),Su(o),!0)};return J.forEach(Object.keys(Object.assign({},e,t)),function(o){const r=l[o]||s,c=r(e[o],t[o],o);J.isUndefined(c)&&r!==g||(n[o]=c)}),n}const kf=e=>{const t=ci({},e);let{data:n,withXSRFToken:i,xsrfHeaderName:s,xsrfCookieName:a,headers:d,auth:g}=t;t.headers=d=Tt.from(d),t.url=_f(Af(t.baseURL,t.url),e.params,e.paramsSerializer),g&&d.set("Authorization","Basic "+btoa((g.username||"")+":"+(g.password?unescape(encodeURIComponent(g.password)):"")));let l;if(J.isFormData(n)){if(Et.hasStandardBrowserEnv||Et.hasStandardBrowserWebWorkerEnv)d.setContentType(void 0);else if((l=d.getContentType())!==!1){const[p,...o]=l?l.split(";").map(r=>r.trim()).filter(Boolean):[];d.setContentType([p||"multipart/form-data",...o].join("; "))}}if(Et.hasStandardBrowserEnv&&(i&&J.isFunction(i)&&(i=i(t)),i||i!==!1&&$w(t.url))){const p=s&&a&&Aw.read(a);p&&d.set(s,p)}return t},Ew=typeof XMLHttpRequest<"u",Tw=Ew&&function(e){return new Promise(function(n,i){const s=kf(e);let a=s.data;const d=Tt.from(s.headers).normalize();let{responseType:g,onUploadProgress:l,onDownloadProgress:p}=s,o,r,c,u,h;function f(){u&&u(),h&&h(),s.cancelToken&&s.cancelToken.unsubscribe(o),s.signal&&s.signal.removeEventListener("abort",o)}let m=new XMLHttpRequest;m.open(s.method.toUpperCase(),s.url,!0),m.timeout=s.timeout;function v(){if(!m)return;const $=Tt.from("getAllResponseHeaders"in m&&m.getAllResponseHeaders()),S={data:!g||g==="text"||g==="json"?m.responseText:m.response,status:m.status,statusText:m.statusText,headers:$,config:e,request:m};$f(function(M){n(M),f()},function(M){i(M),f()},S),m=null}"onloadend"in m?m.onloadend=v:m.onreadystatechange=function(){!m||m.readyState!==4||m.status===0&&!(m.responseURL&&m.responseURL.indexOf("file:")===0)||setTimeout(v)},m.onabort=function(){m&&(i(new De("Request aborted",De.ECONNABORTED,e,m)),m=null)},m.onerror=function(){i(new De("Network Error",De.ERR_NETWORK,e,m)),m=null},m.ontimeout=function(){let _=s.timeout?"timeout of "+s.timeout+"ms exceeded":"timeout exceeded";const S=s.transitional||Sf;s.timeoutErrorMessage&&(_=s.timeoutErrorMessage),i(new De(_,S.clarifyTimeoutError?De.ETIMEDOUT:De.ECONNABORTED,e,m)),m=null},a===void 0&&d.setContentType(null),"setRequestHeader"in m&&J.forEach(d.toJSON(),function(_,S){m.setRequestHeader(S,_)}),J.isUndefined(s.withCredentials)||(m.withCredentials=!!s.withCredentials),g&&g!=="json"&&(m.responseType=s.responseType),p&&([c,h]=$s(p,!0),m.addEventListener("progress",c)),l&&m.upload&&([r,u]=$s(l),m.upload.addEventListener("progress",r),m.upload.addEventListener("loadend",u)),(s.cancelToken||s.signal)&&(o=$=>{m&&(i(!$||$.type?new Hi(null,e,m):$),m.abort(),m=null)},s.cancelToken&&s.cancelToken.subscribe(o),s.signal&&(s.signal.aborted?o():s.signal.addEventListener("abort",o)));const y=Sw(s.url);if(y&&Et.protocols.indexOf(y)===-1){i(new De("Unsupported protocol "+y+":",De.ERR_BAD_REQUEST,e));return}m.send(a||null)})},Lw=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let i=new AbortController,s;const a=function(p){if(!s){s=!0,g();const o=p instanceof Error?p:this.reason;i.abort(o instanceof De?o:new Hi(o instanceof Error?o.message:o))}};let d=t&&setTimeout(()=>{d=null,a(new De(`timeout ${t} of ms exceeded`,De.ETIMEDOUT))},t);const g=()=>{e&&(d&&clearTimeout(d),d=null,e.forEach(p=>{p.unsubscribe?p.unsubscribe(a):p.removeEventListener("abort",a)}),e=null)};e.forEach(p=>p.addEventListener("abort",a));const{signal:l}=i;return l.unsubscribe=()=>J.asap(g),l}},Rw=function*(e,t){let n=e.byteLength;if(n{const s=Ow(e,t);let a=0,d,g=l=>{d||(d=!0,i&&i(l))};return new ReadableStream({async pull(l){try{const{done:p,value:o}=await s.next();if(p){g(),l.close();return}let r=o.byteLength;if(n){let c=a+=r;n(c)}l.enqueue(new Uint8Array(o))}catch(p){throw g(p),p}},cancel(l){return g(l),s.return()}},{highWaterMark:2})},uo=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",Mf=uo&&typeof ReadableStream=="function",Nw=uo&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),Ef=(e,...t)=>{try{return!!e(...t)}catch{return!1}},Dw=Mf&&Ef(()=>{let e=!1;const t=new Request(Et.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),Cu=64*1024,Oa=Mf&&Ef(()=>J.isReadableStream(new Response("").body)),As={stream:Oa&&(e=>e.body)};uo&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!As[t]&&(As[t]=J.isFunction(e[t])?n=>n[t]():(n,i)=>{throw new De(`Response type '${t}' is not supported`,De.ERR_NOT_SUPPORT,i)})})})(new Response);const Fw=async e=>{if(e==null)return 0;if(J.isBlob(e))return e.size;if(J.isSpecCompliantForm(e))return(await new Request(Et.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(J.isArrayBufferView(e)||J.isArrayBuffer(e))return e.byteLength;if(J.isURLSearchParams(e)&&(e=e+""),J.isString(e))return(await Nw(e)).byteLength},Pw=async(e,t)=>{const n=J.toFiniteNumber(e.getContentLength());return n??Fw(t)},Ww=uo&&(async e=>{let{url:t,method:n,data:i,signal:s,cancelToken:a,timeout:d,onDownloadProgress:g,onUploadProgress:l,responseType:p,headers:o,withCredentials:r="same-origin",fetchOptions:c}=kf(e);p=p?(p+"").toLowerCase():"text";let u=Lw([s,a&&a.toAbortSignal()],d),h;const f=u&&u.unsubscribe&&(()=>{u.unsubscribe()});let m;try{if(l&&Dw&&n!=="get"&&n!=="head"&&(m=await Pw(o,i))!==0){let S=new Request(t,{method:"POST",body:i,duplex:"half"}),b;if(J.isFormData(i)&&(b=S.headers.get("content-type"))&&o.setContentType(b),S.body){const[M,O]=wu(m,$s(_u(l)));i=xu(S.body,Cu,M,O)}}J.isString(r)||(r=r?"include":"omit");const v="credentials"in Request.prototype;h=new Request(t,{...c,signal:u,method:n.toUpperCase(),headers:o.normalize().toJSON(),body:i,duplex:"half",credentials:v?r:void 0});let y=await fetch(h);const $=Oa&&(p==="stream"||p==="response");if(Oa&&(g||$&&f)){const S={};["status","statusText","headers"].forEach(L=>{S[L]=y[L]});const b=J.toFiniteNumber(y.headers.get("content-length")),[M,O]=g&&wu(b,$s(_u(g),!0))||[];y=new Response(xu(y.body,Cu,M,()=>{O&&O(),f&&f()}),S)}p=p||"text";let _=await As[J.findKey(As,p)||"text"](y,e);return!$&&f&&f(),await new Promise((S,b)=>{$f(S,b,{data:_,headers:Tt.from(y.headers),status:y.status,statusText:y.statusText,config:e,request:h})})}catch(v){throw f&&f(),v&&v.name==="TypeError"&&/fetch/i.test(v.message)?Object.assign(new De("Network Error",De.ERR_NETWORK,e,h),{cause:v.cause||v}):De.from(v,v&&v.code,e,h)}}),Ia={http:ew,xhr:Tw,fetch:Ww};J.forEach(Ia,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const $u=e=>`- ${e}`,Bw=e=>J.isFunction(e)||e===null||e===!1,Tf={getAdapter:e=>{e=J.isArray(e)?e:[e];const{length:t}=e;let n,i;const s={};for(let a=0;a`adapter ${g} `+(l===!1?"is not supported by the environment":"is not available in the build"));let d=t?a.length>1?`since : `+a.map($u).join(` `):" "+$u(a[0]):"as no adapter specified";throw new De("There is no suitable adapter to dispatch the request "+d,"ERR_NOT_SUPPORT")}return i},adapters:Ia};function Go(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Hi(null,e)}function Au(e){return Go(e),e.headers=Tt.from(e.headers),e.data=Vo.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Tf.getAdapter(e.adapter||Kr.adapter)(e).then(function(i){return Go(e),i.data=Vo.call(e,e.transformResponse,i),i.headers=Tt.from(i.headers),i},function(i){return Cf(i)||(Go(e),i&&i.response&&(i.response.data=Vo.call(e,e.transformResponse,i.response),i.response.headers=Tt.from(i.response.headers))),Promise.reject(i)})}const Lf="1.7.7",Dl={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Dl[e]=function(i){return typeof i===e||"a"+(t<1?"n ":" ")+e}});const ku={};Dl.transitional=function(t,n,i){function s(a,d){return"[Axios v"+Lf+"] Transitional option '"+a+"'"+d+(i?". "+i:"")}return(a,d,g)=>{if(t===!1)throw new De(s(d," has been removed"+(n?" in "+n:"")),De.ERR_DEPRECATED);return n&&!ku[d]&&(ku[d]=!0,console.warn(s(d," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(a,d,g):!0}};function zw(e,t,n){if(typeof e!="object")throw new De("options must be an object",De.ERR_BAD_OPTION_VALUE);const i=Object.keys(e);let s=i.length;for(;s-- >0;){const a=i[s],d=t[a];if(d){const g=e[a],l=g===void 0||d(g,a,e);if(l!==!0)throw new De("option "+a+" must be "+l,De.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new De("Unknown option "+a,De.ERR_BAD_OPTION)}}const Na={assertOptions:zw,validators:Dl},Mn=Na.validators;let ti=class{constructor(t){this.defaults=t,this.interceptors={request:new yu,response:new yu}}async request(t,n){try{return await this._request(t,n)}catch(i){if(i instanceof Error){let s;Error.captureStackTrace?Error.captureStackTrace(s={}):s=new Error;const a=s.stack?s.stack.replace(/^.+\n/,""):"";try{i.stack?a&&!String(i.stack).endsWith(a.replace(/^.+\n.+\n/,""))&&(i.stack+=` `+a):i.stack=a}catch{}}throw i}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=ci(this.defaults,n);const{transitional:i,paramsSerializer:s,headers:a}=n;i!==void 0&&Na.assertOptions(i,{silentJSONParsing:Mn.transitional(Mn.boolean),forcedJSONParsing:Mn.transitional(Mn.boolean),clarifyTimeoutError:Mn.transitional(Mn.boolean)},!1),s!=null&&(J.isFunction(s)?n.paramsSerializer={serialize:s}:Na.assertOptions(s,{encode:Mn.function,serialize:Mn.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let d=a&&J.merge(a.common,a[n.method]);a&&J.forEach(["delete","get","head","post","put","patch","common"],h=>{delete a[h]}),n.headers=Tt.concat(d,a);const g=[];let l=!0;this.interceptors.request.forEach(function(f){typeof f.runWhen=="function"&&f.runWhen(n)===!1||(l=l&&f.synchronous,g.unshift(f.fulfilled,f.rejected))});const p=[];this.interceptors.response.forEach(function(f){p.push(f.fulfilled,f.rejected)});let o,r=0,c;if(!l){const h=[Au.bind(this),void 0];for(h.unshift.apply(h,g),h.push.apply(h,p),c=h.length,o=Promise.resolve(n);r{if(!i._listeners)return;let a=i._listeners.length;for(;a-- >0;)i._listeners[a](s);i._listeners=null}),this.promise.then=s=>{let a;const d=new Promise(g=>{i.subscribe(g),a=g}).then(s);return d.cancel=function(){i.unsubscribe(a)},d},t(function(a,d,g){i.reason||(i.reason=new Hi(a,d,g),n(i.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=i=>{t.abort(i)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new Rf(function(s){t=s}),cancel:t}}};function Hw(e){return function(n){return e.apply(null,n)}}function Uw(e){return J.isObject(e)&&e.isAxiosError===!0}const Da={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Da).forEach(([e,t])=>{Da[t]=e});function Of(e){const t=new ti(e),n=cf(ti.prototype.request,t);return J.extend(n,ti.prototype,t,{allOwnKeys:!0}),J.extend(n,t,null,{allOwnKeys:!0}),n.create=function(s){return Of(ci(e,s))},n}const tt=Of(Kr);tt.Axios=ti;tt.CanceledError=Hi;tt.CancelToken=jw;tt.isCancel=Cf;tt.VERSION=Lf;tt.toFormData=co;tt.AxiosError=De;tt.Cancel=tt.CanceledError;tt.all=function(t){return Promise.all(t)};tt.spread=Hw;tt.isAxiosError=Uw;tt.mergeConfig=ci;tt.AxiosHeaders=Tt;tt.formToJSON=e=>xf(J.isHTMLForm(e)?new FormData(e):e);tt.getAdapter=Tf.getAdapter;tt.HttpStatusCode=Da;tt.default=tt;const{Axios:Lk,AxiosError:Vw,CanceledError:Rk,isCancel:Ok,CancelToken:Ik,VERSION:Nk,all:Dk,Cancel:Fk,isAxiosError:Pk,spread:Wk,toFormData:Bk,AxiosHeaders:zk,HttpStatusCode:jk,formToJSON:Hk,getAdapter:Uk,mergeConfig:Vk}=tt;var je;(function(e){e.assertEqual=s=>s;function t(s){}e.assertIs=t;function n(s){throw new Error}e.assertNever=n,e.arrayToEnum=s=>{const a={};for(const d of s)a[d]=d;return a},e.getValidEnumValues=s=>{const a=e.objectKeys(s).filter(g=>typeof s[s[g]]!="number"),d={};for(const g of a)d[g]=s[g];return e.objectValues(d)},e.objectValues=s=>e.objectKeys(s).map(function(a){return s[a]}),e.objectKeys=typeof Object.keys=="function"?s=>Object.keys(s):s=>{const a=[];for(const d in s)Object.prototype.hasOwnProperty.call(s,d)&&a.push(d);return a},e.find=(s,a)=>{for(const d of s)if(a(d))return d},e.isInteger=typeof Number.isInteger=="function"?s=>Number.isInteger(s):s=>typeof s=="number"&&isFinite(s)&&Math.floor(s)===s;function i(s,a=" | "){return s.map(d=>typeof d=="string"?`'${d}'`:d).join(a)}e.joinValues=i,e.jsonStringifyReplacer=(s,a)=>typeof a=="bigint"?a.toString():a})(je||(je={}));var Fa;(function(e){e.mergeShapes=(t,n)=>({...t,...n})})(Fa||(Fa={}));const ye=je.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),Rn=e=>{switch(typeof e){case"undefined":return ye.undefined;case"string":return ye.string;case"number":return isNaN(e)?ye.nan:ye.number;case"boolean":return ye.boolean;case"function":return ye.function;case"bigint":return ye.bigint;case"symbol":return ye.symbol;case"object":return Array.isArray(e)?ye.array:e===null?ye.null:e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?ye.promise:typeof Map<"u"&&e instanceof Map?ye.map:typeof Set<"u"&&e instanceof Set?ye.set:typeof Date<"u"&&e instanceof Date?ye.date:ye.object;default:return ye.unknown}},le=je.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]),Gw=e=>JSON.stringify(e,null,2).replace(/"([^"]+)":/g,"$1:");class Ft extends Error{constructor(t){super(),this.issues=[],this.addIssue=i=>{this.issues=[...this.issues,i]},this.addIssues=(i=[])=>{this.issues=[...this.issues,...i]};const n=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,n):this.__proto__=n,this.name="ZodError",this.issues=t}get errors(){return this.issues}format(t){const n=t||function(a){return a.message},i={_errors:[]},s=a=>{for(const d of a.issues)if(d.code==="invalid_union")d.unionErrors.map(s);else if(d.code==="invalid_return_type")s(d.returnTypeError);else if(d.code==="invalid_arguments")s(d.argumentsError);else if(d.path.length===0)i._errors.push(n(d));else{let g=i,l=0;for(;ln.message){const n={},i=[];for(const s of this.issues)s.path.length>0?(n[s.path[0]]=n[s.path[0]]||[],n[s.path[0]].push(t(s))):i.push(t(s));return{formErrors:i,fieldErrors:n}}get formErrors(){return this.flatten()}}Ft.create=e=>new Ft(e);const Ni=(e,t)=>{let n;switch(e.code){case le.invalid_type:e.received===ye.undefined?n="Required":n=`Expected ${e.expected}, received ${e.received}`;break;case le.invalid_literal:n=`Invalid literal value, expected ${JSON.stringify(e.expected,je.jsonStringifyReplacer)}`;break;case le.unrecognized_keys:n=`Unrecognized key(s) in object: ${je.joinValues(e.keys,", ")}`;break;case le.invalid_union:n="Invalid input";break;case le.invalid_union_discriminator:n=`Invalid discriminator value. Expected ${je.joinValues(e.options)}`;break;case le.invalid_enum_value:n=`Invalid enum value. Expected ${je.joinValues(e.options)}, received '${e.received}'`;break;case le.invalid_arguments:n="Invalid function arguments";break;case le.invalid_return_type:n="Invalid function return type";break;case le.invalid_date:n="Invalid date";break;case le.invalid_string:typeof e.validation=="object"?"includes"in e.validation?(n=`Invalid input: must include "${e.validation.includes}"`,typeof e.validation.position=="number"&&(n=`${n} at one or more positions greater than or equal to ${e.validation.position}`)):"startsWith"in e.validation?n=`Invalid input: must start with "${e.validation.startsWith}"`:"endsWith"in e.validation?n=`Invalid input: must end with "${e.validation.endsWith}"`:je.assertNever(e.validation):e.validation!=="regex"?n=`Invalid ${e.validation}`:n="Invalid";break;case le.too_small:e.type==="array"?n=`Array must contain ${e.exact?"exactly":e.inclusive?"at least":"more than"} ${e.minimum} element(s)`:e.type==="string"?n=`String must contain ${e.exact?"exactly":e.inclusive?"at least":"over"} ${e.minimum} character(s)`:e.type==="number"?n=`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:e.type==="date"?n=`Date must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(e.minimum))}`:n="Invalid input";break;case le.too_big:e.type==="array"?n=`Array must contain ${e.exact?"exactly":e.inclusive?"at most":"less than"} ${e.maximum} element(s)`:e.type==="string"?n=`String must contain ${e.exact?"exactly":e.inclusive?"at most":"under"} ${e.maximum} character(s)`:e.type==="number"?n=`Number must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="bigint"?n=`BigInt must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="date"?n=`Date must be ${e.exact?"exactly":e.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(e.maximum))}`:n="Invalid input";break;case le.custom:n="Invalid input";break;case le.invalid_intersection_types:n="Intersection results could not be merged";break;case le.not_multiple_of:n=`Number must be a multiple of ${e.multipleOf}`;break;case le.not_finite:n="Number must be finite";break;default:n=t.defaultError,je.assertNever(e)}return{message:n}};let If=Ni;function Yw(e){If=e}function ks(){return If}const Ms=e=>{const{data:t,path:n,errorMaps:i,issueData:s}=e,a=[...n,...s.path||[]],d={...s,path:a};if(s.message!==void 0)return{...s,path:a,message:s.message};let g="";const l=i.filter(p=>!!p).slice().reverse();for(const p of l)g=p(d,{data:t,defaultError:g}).message;return{...s,path:a,message:g}},Kw=[];function ve(e,t){const n=ks(),i=Ms({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,n,n===Ni?void 0:Ni].filter(s=>!!s)});e.common.issues.push(i)}class wt{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(t,n){const i=[];for(const s of n){if(s.status==="aborted")return Le;s.status==="dirty"&&t.dirty(),i.push(s.value)}return{status:t.value,value:i}}static async mergeObjectAsync(t,n){const i=[];for(const s of n){const a=await s.key,d=await s.value;i.push({key:a,value:d})}return wt.mergeObjectSync(t,i)}static mergeObjectSync(t,n){const i={};for(const s of n){const{key:a,value:d}=s;if(a.status==="aborted"||d.status==="aborted")return Le;a.status==="dirty"&&t.dirty(),d.status==="dirty"&&t.dirty(),a.value!=="__proto__"&&(typeof d.value<"u"||s.alwaysSet)&&(i[a.value]=d.value)}return{status:t.value,value:i}}}const Le=Object.freeze({status:"aborted"}),_i=e=>({status:"dirty",value:e}),At=e=>({status:"valid",value:e}),Pa=e=>e.status==="aborted",Wa=e=>e.status==="dirty",Sr=e=>e.status==="valid",xr=e=>typeof Promise<"u"&&e instanceof Promise;function Es(e,t,n,i){if(typeof t=="function"?e!==t||!i:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return t.get(e)}function Nf(e,t,n,i,s){if(typeof t=="function"?e!==t||!s:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return t.set(e,n),n}var Ae;(function(e){e.errToObj=t=>typeof t=="string"?{message:t}:t||{},e.toString=t=>typeof t=="string"?t:t==null?void 0:t.message})(Ae||(Ae={}));var er,tr;class ln{constructor(t,n,i,s){this._cachedPath=[],this.parent=t,this.data=n,this._path=i,this._key=s}get path(){return this._cachedPath.length||(this._key instanceof Array?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}const Mu=(e,t)=>{if(Sr(t))return{success:!0,data:t.value};if(!e.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;const n=new Ft(e.common.issues);return this._error=n,this._error}}};function Fe(e){if(!e)return{};const{errorMap:t,invalid_type_error:n,required_error:i,description:s}=e;if(t&&(n||i))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return t?{errorMap:t,description:s}:{errorMap:(d,g)=>{var l,p;const{message:o}=e;return d.code==="invalid_enum_value"?{message:o??g.defaultError}:typeof g.data>"u"?{message:(l=o??i)!==null&&l!==void 0?l:g.defaultError}:d.code!=="invalid_type"?{message:g.defaultError}:{message:(p=o??n)!==null&&p!==void 0?p:g.defaultError}},description:s}}class We{constructor(t){this.spa=this.safeParseAsync,this._def=t,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this)}get description(){return this._def.description}_getType(t){return Rn(t.data)}_getOrReturnCtx(t,n){return n||{common:t.parent.common,data:t.data,parsedType:Rn(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}_processInputParams(t){return{status:new wt,ctx:{common:t.parent.common,data:t.data,parsedType:Rn(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}}_parseSync(t){const n=this._parse(t);if(xr(n))throw new Error("Synchronous parse encountered promise.");return n}_parseAsync(t){const n=this._parse(t);return Promise.resolve(n)}parse(t,n){const i=this.safeParse(t,n);if(i.success)return i.data;throw i.error}safeParse(t,n){var i;const s={common:{issues:[],async:(i=n==null?void 0:n.async)!==null&&i!==void 0?i:!1,contextualErrorMap:n==null?void 0:n.errorMap},path:(n==null?void 0:n.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:Rn(t)},a=this._parseSync({data:t,path:s.path,parent:s});return Mu(s,a)}async parseAsync(t,n){const i=await this.safeParseAsync(t,n);if(i.success)return i.data;throw i.error}async safeParseAsync(t,n){const i={common:{issues:[],contextualErrorMap:n==null?void 0:n.errorMap,async:!0},path:(n==null?void 0:n.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:Rn(t)},s=this._parse({data:t,path:i.path,parent:i}),a=await(xr(s)?s:Promise.resolve(s));return Mu(i,a)}refine(t,n){const i=s=>typeof n=="string"||typeof n>"u"?{message:n}:typeof n=="function"?n(s):n;return this._refinement((s,a)=>{const d=t(s),g=()=>a.addIssue({code:le.custom,...i(s)});return typeof Promise<"u"&&d instanceof Promise?d.then(l=>l?!0:(g(),!1)):d?!0:(g(),!1)})}refinement(t,n){return this._refinement((i,s)=>t(i)?!0:(s.addIssue(typeof n=="function"?n(i,s):n),!1))}_refinement(t){return new Kt({schema:this,typeName:Te.ZodEffects,effect:{type:"refinement",refinement:t}})}superRefine(t){return this._refinement(t)}optional(){return nn.create(this,this._def)}nullable(){return zn.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return Gt.create(this,this._def)}promise(){return Fi.create(this,this._def)}or(t){return kr.create([this,t],this._def)}and(t){return Mr.create(this,t,this._def)}transform(t){return new Kt({...Fe(this._def),schema:this,typeName:Te.ZodEffects,effect:{type:"transform",transform:t}})}default(t){const n=typeof t=="function"?t:()=>t;return new Or({...Fe(this._def),innerType:this,defaultValue:n,typeName:Te.ZodDefault})}brand(){return new Fl({typeName:Te.ZodBranded,type:this,...Fe(this._def)})}catch(t){const n=typeof t=="function"?t:()=>t;return new Ir({...Fe(this._def),innerType:this,catchValue:n,typeName:Te.ZodCatch})}describe(t){const n=this.constructor;return new n({...this._def,description:t})}pipe(t){return Zr.create(this,t)}readonly(){return Nr.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const Zw=/^c[^\s-]{8,}$/i,Xw=/^[0-9a-z]+$/,Qw=/^[0-9A-HJKMNP-TV-Z]{26}$/,qw=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,Jw=/^[a-z0-9_-]{21}$/i,e_=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,t_=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,n_="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";let Yo;const i_=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,r_=/^(([a-f0-9]{1,4}:){7}|::([a-f0-9]{1,4}:){0,6}|([a-f0-9]{1,4}:){1}:([a-f0-9]{1,4}:){0,5}|([a-f0-9]{1,4}:){2}:([a-f0-9]{1,4}:){0,4}|([a-f0-9]{1,4}:){3}:([a-f0-9]{1,4}:){0,3}|([a-f0-9]{1,4}:){4}:([a-f0-9]{1,4}:){0,2}|([a-f0-9]{1,4}:){5}:([a-f0-9]{1,4}:){0,1})([a-f0-9]{1,4}|(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2})))$/,s_=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,Df="((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))",o_=new RegExp(`^${Df}$`);function Ff(e){let t="([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d";return e.precision?t=`${t}\\.\\d{${e.precision}}`:e.precision==null&&(t=`${t}(\\.\\d+)?`),t}function a_(e){return new RegExp(`^${Ff(e)}$`)}function Pf(e){let t=`${Df}T${Ff(e)}`;const n=[];return n.push(e.local?"Z?":"Z"),e.offset&&n.push("([+-]\\d{2}:?\\d{2})"),t=`${t}(${n.join("|")})`,new RegExp(`^${t}$`)}function l_(e,t){return!!((t==="v4"||!t)&&i_.test(e)||(t==="v6"||!t)&&r_.test(e))}class Ht extends We{_parse(t){if(this._def.coerce&&(t.data=String(t.data)),this._getType(t)!==ye.string){const a=this._getOrReturnCtx(t);return ve(a,{code:le.invalid_type,expected:ye.string,received:a.parsedType}),Le}const i=new wt;let s;for(const a of this._def.checks)if(a.kind==="min")t.data.lengtha.value&&(s=this._getOrReturnCtx(t,s),ve(s,{code:le.too_big,maximum:a.value,type:"string",inclusive:!0,exact:!1,message:a.message}),i.dirty());else if(a.kind==="length"){const d=t.data.length>a.value,g=t.data.lengtht.test(s),{validation:n,code:le.invalid_string,...Ae.errToObj(i)})}_addCheck(t){return new Ht({...this._def,checks:[...this._def.checks,t]})}email(t){return this._addCheck({kind:"email",...Ae.errToObj(t)})}url(t){return this._addCheck({kind:"url",...Ae.errToObj(t)})}emoji(t){return this._addCheck({kind:"emoji",...Ae.errToObj(t)})}uuid(t){return this._addCheck({kind:"uuid",...Ae.errToObj(t)})}nanoid(t){return this._addCheck({kind:"nanoid",...Ae.errToObj(t)})}cuid(t){return this._addCheck({kind:"cuid",...Ae.errToObj(t)})}cuid2(t){return this._addCheck({kind:"cuid2",...Ae.errToObj(t)})}ulid(t){return this._addCheck({kind:"ulid",...Ae.errToObj(t)})}base64(t){return this._addCheck({kind:"base64",...Ae.errToObj(t)})}ip(t){return this._addCheck({kind:"ip",...Ae.errToObj(t)})}datetime(t){var n,i;return typeof t=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:t}):this._addCheck({kind:"datetime",precision:typeof(t==null?void 0:t.precision)>"u"?null:t==null?void 0:t.precision,offset:(n=t==null?void 0:t.offset)!==null&&n!==void 0?n:!1,local:(i=t==null?void 0:t.local)!==null&&i!==void 0?i:!1,...Ae.errToObj(t==null?void 0:t.message)})}date(t){return this._addCheck({kind:"date",message:t})}time(t){return typeof t=="string"?this._addCheck({kind:"time",precision:null,message:t}):this._addCheck({kind:"time",precision:typeof(t==null?void 0:t.precision)>"u"?null:t==null?void 0:t.precision,...Ae.errToObj(t==null?void 0:t.message)})}duration(t){return this._addCheck({kind:"duration",...Ae.errToObj(t)})}regex(t,n){return this._addCheck({kind:"regex",regex:t,...Ae.errToObj(n)})}includes(t,n){return this._addCheck({kind:"includes",value:t,position:n==null?void 0:n.position,...Ae.errToObj(n==null?void 0:n.message)})}startsWith(t,n){return this._addCheck({kind:"startsWith",value:t,...Ae.errToObj(n)})}endsWith(t,n){return this._addCheck({kind:"endsWith",value:t,...Ae.errToObj(n)})}min(t,n){return this._addCheck({kind:"min",value:t,...Ae.errToObj(n)})}max(t,n){return this._addCheck({kind:"max",value:t,...Ae.errToObj(n)})}length(t,n){return this._addCheck({kind:"length",value:t,...Ae.errToObj(n)})}nonempty(t){return this.min(1,Ae.errToObj(t))}trim(){return new Ht({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new Ht({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new Ht({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(t=>t.kind==="datetime")}get isDate(){return!!this._def.checks.find(t=>t.kind==="date")}get isTime(){return!!this._def.checks.find(t=>t.kind==="time")}get isDuration(){return!!this._def.checks.find(t=>t.kind==="duration")}get isEmail(){return!!this._def.checks.find(t=>t.kind==="email")}get isURL(){return!!this._def.checks.find(t=>t.kind==="url")}get isEmoji(){return!!this._def.checks.find(t=>t.kind==="emoji")}get isUUID(){return!!this._def.checks.find(t=>t.kind==="uuid")}get isNANOID(){return!!this._def.checks.find(t=>t.kind==="nanoid")}get isCUID(){return!!this._def.checks.find(t=>t.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(t=>t.kind==="cuid2")}get isULID(){return!!this._def.checks.find(t=>t.kind==="ulid")}get isIP(){return!!this._def.checks.find(t=>t.kind==="ip")}get isBase64(){return!!this._def.checks.find(t=>t.kind==="base64")}get minLength(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxLength(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value{var t;return new Ht({checks:[],typeName:Te.ZodString,coerce:(t=e==null?void 0:e.coerce)!==null&&t!==void 0?t:!1,...Fe(e)})};function c_(e,t){const n=(e.toString().split(".")[1]||"").length,i=(t.toString().split(".")[1]||"").length,s=n>i?n:i,a=parseInt(e.toFixed(s).replace(".","")),d=parseInt(t.toFixed(s).replace(".",""));return a%d/Math.pow(10,s)}class Pn extends We{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(t){if(this._def.coerce&&(t.data=Number(t.data)),this._getType(t)!==ye.number){const a=this._getOrReturnCtx(t);return ve(a,{code:le.invalid_type,expected:ye.number,received:a.parsedType}),Le}let i;const s=new wt;for(const a of this._def.checks)a.kind==="int"?je.isInteger(t.data)||(i=this._getOrReturnCtx(t,i),ve(i,{code:le.invalid_type,expected:"integer",received:"float",message:a.message}),s.dirty()):a.kind==="min"?(a.inclusive?t.dataa.value:t.data>=a.value)&&(i=this._getOrReturnCtx(t,i),ve(i,{code:le.too_big,maximum:a.value,type:"number",inclusive:a.inclusive,exact:!1,message:a.message}),s.dirty()):a.kind==="multipleOf"?c_(t.data,a.value)!==0&&(i=this._getOrReturnCtx(t,i),ve(i,{code:le.not_multiple_of,multipleOf:a.value,message:a.message}),s.dirty()):a.kind==="finite"?Number.isFinite(t.data)||(i=this._getOrReturnCtx(t,i),ve(i,{code:le.not_finite,message:a.message}),s.dirty()):je.assertNever(a);return{status:s.value,value:t.data}}gte(t,n){return this.setLimit("min",t,!0,Ae.toString(n))}gt(t,n){return this.setLimit("min",t,!1,Ae.toString(n))}lte(t,n){return this.setLimit("max",t,!0,Ae.toString(n))}lt(t,n){return this.setLimit("max",t,!1,Ae.toString(n))}setLimit(t,n,i,s){return new Pn({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:i,message:Ae.toString(s)}]})}_addCheck(t){return new Pn({...this._def,checks:[...this._def.checks,t]})}int(t){return this._addCheck({kind:"int",message:Ae.toString(t)})}positive(t){return this._addCheck({kind:"min",value:0,inclusive:!1,message:Ae.toString(t)})}negative(t){return this._addCheck({kind:"max",value:0,inclusive:!1,message:Ae.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:0,inclusive:!0,message:Ae.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:0,inclusive:!0,message:Ae.toString(t)})}multipleOf(t,n){return this._addCheck({kind:"multipleOf",value:t,message:Ae.toString(n)})}finite(t){return this._addCheck({kind:"finite",message:Ae.toString(t)})}safe(t){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:Ae.toString(t)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:Ae.toString(t)})}get minValue(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxValue(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.valuet.kind==="int"||t.kind==="multipleOf"&&je.isInteger(t.value))}get isFinite(){let t=null,n=null;for(const i of this._def.checks){if(i.kind==="finite"||i.kind==="int"||i.kind==="multipleOf")return!0;i.kind==="min"?(n===null||i.value>n)&&(n=i.value):i.kind==="max"&&(t===null||i.valuenew Pn({checks:[],typeName:Te.ZodNumber,coerce:(e==null?void 0:e.coerce)||!1,...Fe(e)});class Wn extends We{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(t){if(this._def.coerce&&(t.data=BigInt(t.data)),this._getType(t)!==ye.bigint){const a=this._getOrReturnCtx(t);return ve(a,{code:le.invalid_type,expected:ye.bigint,received:a.parsedType}),Le}let i;const s=new wt;for(const a of this._def.checks)a.kind==="min"?(a.inclusive?t.dataa.value:t.data>=a.value)&&(i=this._getOrReturnCtx(t,i),ve(i,{code:le.too_big,type:"bigint",maximum:a.value,inclusive:a.inclusive,message:a.message}),s.dirty()):a.kind==="multipleOf"?t.data%a.value!==BigInt(0)&&(i=this._getOrReturnCtx(t,i),ve(i,{code:le.not_multiple_of,multipleOf:a.value,message:a.message}),s.dirty()):je.assertNever(a);return{status:s.value,value:t.data}}gte(t,n){return this.setLimit("min",t,!0,Ae.toString(n))}gt(t,n){return this.setLimit("min",t,!1,Ae.toString(n))}lte(t,n){return this.setLimit("max",t,!0,Ae.toString(n))}lt(t,n){return this.setLimit("max",t,!1,Ae.toString(n))}setLimit(t,n,i,s){return new Wn({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:i,message:Ae.toString(s)}]})}_addCheck(t){return new Wn({...this._def,checks:[...this._def.checks,t]})}positive(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:Ae.toString(t)})}negative(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:Ae.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:Ae.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:Ae.toString(t)})}multipleOf(t,n){return this._addCheck({kind:"multipleOf",value:t,message:Ae.toString(n)})}get minValue(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxValue(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value{var t;return new Wn({checks:[],typeName:Te.ZodBigInt,coerce:(t=e==null?void 0:e.coerce)!==null&&t!==void 0?t:!1,...Fe(e)})};class Cr extends We{_parse(t){if(this._def.coerce&&(t.data=!!t.data),this._getType(t)!==ye.boolean){const i=this._getOrReturnCtx(t);return ve(i,{code:le.invalid_type,expected:ye.boolean,received:i.parsedType}),Le}return At(t.data)}}Cr.create=e=>new Cr({typeName:Te.ZodBoolean,coerce:(e==null?void 0:e.coerce)||!1,...Fe(e)});class ui extends We{_parse(t){if(this._def.coerce&&(t.data=new Date(t.data)),this._getType(t)!==ye.date){const a=this._getOrReturnCtx(t);return ve(a,{code:le.invalid_type,expected:ye.date,received:a.parsedType}),Le}if(isNaN(t.data.getTime())){const a=this._getOrReturnCtx(t);return ve(a,{code:le.invalid_date}),Le}const i=new wt;let s;for(const a of this._def.checks)a.kind==="min"?t.data.getTime()a.value&&(s=this._getOrReturnCtx(t,s),ve(s,{code:le.too_big,message:a.message,inclusive:!0,exact:!1,maximum:a.value,type:"date"}),i.dirty()):je.assertNever(a);return{status:i.value,value:new Date(t.data.getTime())}}_addCheck(t){return new ui({...this._def,checks:[...this._def.checks,t]})}min(t,n){return this._addCheck({kind:"min",value:t.getTime(),message:Ae.toString(n)})}max(t,n){return this._addCheck({kind:"max",value:t.getTime(),message:Ae.toString(n)})}get minDate(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t!=null?new Date(t):null}get maxDate(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.valuenew ui({checks:[],coerce:(e==null?void 0:e.coerce)||!1,typeName:Te.ZodDate,...Fe(e)});class Ts extends We{_parse(t){if(this._getType(t)!==ye.symbol){const i=this._getOrReturnCtx(t);return ve(i,{code:le.invalid_type,expected:ye.symbol,received:i.parsedType}),Le}return At(t.data)}}Ts.create=e=>new Ts({typeName:Te.ZodSymbol,...Fe(e)});class $r extends We{_parse(t){if(this._getType(t)!==ye.undefined){const i=this._getOrReturnCtx(t);return ve(i,{code:le.invalid_type,expected:ye.undefined,received:i.parsedType}),Le}return At(t.data)}}$r.create=e=>new $r({typeName:Te.ZodUndefined,...Fe(e)});class Ar extends We{_parse(t){if(this._getType(t)!==ye.null){const i=this._getOrReturnCtx(t);return ve(i,{code:le.invalid_type,expected:ye.null,received:i.parsedType}),Le}return At(t.data)}}Ar.create=e=>new Ar({typeName:Te.ZodNull,...Fe(e)});class Di extends We{constructor(){super(...arguments),this._any=!0}_parse(t){return At(t.data)}}Di.create=e=>new Di({typeName:Te.ZodAny,...Fe(e)});class ni extends We{constructor(){super(...arguments),this._unknown=!0}_parse(t){return At(t.data)}}ni.create=e=>new ni({typeName:Te.ZodUnknown,...Fe(e)});class _n extends We{_parse(t){const n=this._getOrReturnCtx(t);return ve(n,{code:le.invalid_type,expected:ye.never,received:n.parsedType}),Le}}_n.create=e=>new _n({typeName:Te.ZodNever,...Fe(e)});class Ls extends We{_parse(t){if(this._getType(t)!==ye.undefined){const i=this._getOrReturnCtx(t);return ve(i,{code:le.invalid_type,expected:ye.void,received:i.parsedType}),Le}return At(t.data)}}Ls.create=e=>new Ls({typeName:Te.ZodVoid,...Fe(e)});class Gt extends We{_parse(t){const{ctx:n,status:i}=this._processInputParams(t),s=this._def;if(n.parsedType!==ye.array)return ve(n,{code:le.invalid_type,expected:ye.array,received:n.parsedType}),Le;if(s.exactLength!==null){const d=n.data.length>s.exactLength.value,g=n.data.lengths.maxLength.value&&(ve(n,{code:le.too_big,maximum:s.maxLength.value,type:"array",inclusive:!0,exact:!1,message:s.maxLength.message}),i.dirty()),n.common.async)return Promise.all([...n.data].map((d,g)=>s.type._parseAsync(new ln(n,d,n.path,g)))).then(d=>wt.mergeArray(i,d));const a=[...n.data].map((d,g)=>s.type._parseSync(new ln(n,d,n.path,g)));return wt.mergeArray(i,a)}get element(){return this._def.type}min(t,n){return new Gt({...this._def,minLength:{value:t,message:Ae.toString(n)}})}max(t,n){return new Gt({...this._def,maxLength:{value:t,message:Ae.toString(n)}})}length(t,n){return new Gt({...this._def,exactLength:{value:t,message:Ae.toString(n)}})}nonempty(t){return this.min(1,t)}}Gt.create=(e,t)=>new Gt({type:e,minLength:null,maxLength:null,exactLength:null,typeName:Te.ZodArray,...Fe(t)});function yi(e){if(e instanceof at){const t={};for(const n in e.shape){const i=e.shape[n];t[n]=nn.create(yi(i))}return new at({...e._def,shape:()=>t})}else return e instanceof Gt?new Gt({...e._def,type:yi(e.element)}):e instanceof nn?nn.create(yi(e.unwrap())):e instanceof zn?zn.create(yi(e.unwrap())):e instanceof cn?cn.create(e.items.map(t=>yi(t))):e}class at extends We{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;const t=this._def.shape(),n=je.objectKeys(t);return this._cached={shape:t,keys:n}}_parse(t){if(this._getType(t)!==ye.object){const p=this._getOrReturnCtx(t);return ve(p,{code:le.invalid_type,expected:ye.object,received:p.parsedType}),Le}const{status:i,ctx:s}=this._processInputParams(t),{shape:a,keys:d}=this._getCached(),g=[];if(!(this._def.catchall instanceof _n&&this._def.unknownKeys==="strip"))for(const p in s.data)d.includes(p)||g.push(p);const l=[];for(const p of d){const o=a[p],r=s.data[p];l.push({key:{status:"valid",value:p},value:o._parse(new ln(s,r,s.path,p)),alwaysSet:p in s.data})}if(this._def.catchall instanceof _n){const p=this._def.unknownKeys;if(p==="passthrough")for(const o of g)l.push({key:{status:"valid",value:o},value:{status:"valid",value:s.data[o]}});else if(p==="strict")g.length>0&&(ve(s,{code:le.unrecognized_keys,keys:g}),i.dirty());else if(p!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const p=this._def.catchall;for(const o of g){const r=s.data[o];l.push({key:{status:"valid",value:o},value:p._parse(new ln(s,r,s.path,o)),alwaysSet:o in s.data})}}return s.common.async?Promise.resolve().then(async()=>{const p=[];for(const o of l){const r=await o.key,c=await o.value;p.push({key:r,value:c,alwaysSet:o.alwaysSet})}return p}).then(p=>wt.mergeObjectSync(i,p)):wt.mergeObjectSync(i,l)}get shape(){return this._def.shape()}strict(t){return Ae.errToObj,new at({...this._def,unknownKeys:"strict",...t!==void 0?{errorMap:(n,i)=>{var s,a,d,g;const l=(d=(a=(s=this._def).errorMap)===null||a===void 0?void 0:a.call(s,n,i).message)!==null&&d!==void 0?d:i.defaultError;return n.code==="unrecognized_keys"?{message:(g=Ae.errToObj(t).message)!==null&&g!==void 0?g:l}:{message:l}}}:{}})}strip(){return new at({...this._def,unknownKeys:"strip"})}passthrough(){return new at({...this._def,unknownKeys:"passthrough"})}extend(t){return new at({...this._def,shape:()=>({...this._def.shape(),...t})})}merge(t){return new at({unknownKeys:t._def.unknownKeys,catchall:t._def.catchall,shape:()=>({...this._def.shape(),...t._def.shape()}),typeName:Te.ZodObject})}setKey(t,n){return this.augment({[t]:n})}catchall(t){return new at({...this._def,catchall:t})}pick(t){const n={};return je.objectKeys(t).forEach(i=>{t[i]&&this.shape[i]&&(n[i]=this.shape[i])}),new at({...this._def,shape:()=>n})}omit(t){const n={};return je.objectKeys(this.shape).forEach(i=>{t[i]||(n[i]=this.shape[i])}),new at({...this._def,shape:()=>n})}deepPartial(){return yi(this)}partial(t){const n={};return je.objectKeys(this.shape).forEach(i=>{const s=this.shape[i];t&&!t[i]?n[i]=s:n[i]=s.optional()}),new at({...this._def,shape:()=>n})}required(t){const n={};return je.objectKeys(this.shape).forEach(i=>{if(t&&!t[i])n[i]=this.shape[i];else{let a=this.shape[i];for(;a instanceof nn;)a=a._def.innerType;n[i]=a}}),new at({...this._def,shape:()=>n})}keyof(){return Wf(je.objectKeys(this.shape))}}at.create=(e,t)=>new at({shape:()=>e,unknownKeys:"strip",catchall:_n.create(),typeName:Te.ZodObject,...Fe(t)});at.strictCreate=(e,t)=>new at({shape:()=>e,unknownKeys:"strict",catchall:_n.create(),typeName:Te.ZodObject,...Fe(t)});at.lazycreate=(e,t)=>new at({shape:e,unknownKeys:"strip",catchall:_n.create(),typeName:Te.ZodObject,...Fe(t)});class kr extends We{_parse(t){const{ctx:n}=this._processInputParams(t),i=this._def.options;function s(a){for(const g of a)if(g.result.status==="valid")return g.result;for(const g of a)if(g.result.status==="dirty")return n.common.issues.push(...g.ctx.common.issues),g.result;const d=a.map(g=>new Ft(g.ctx.common.issues));return ve(n,{code:le.invalid_union,unionErrors:d}),Le}if(n.common.async)return Promise.all(i.map(async a=>{const d={...n,common:{...n.common,issues:[]},parent:null};return{result:await a._parseAsync({data:n.data,path:n.path,parent:d}),ctx:d}})).then(s);{let a;const d=[];for(const l of i){const p={...n,common:{...n.common,issues:[]},parent:null},o=l._parseSync({data:n.data,path:n.path,parent:p});if(o.status==="valid")return o;o.status==="dirty"&&!a&&(a={result:o,ctx:p}),p.common.issues.length&&d.push(p.common.issues)}if(a)return n.common.issues.push(...a.ctx.common.issues),a.result;const g=d.map(l=>new Ft(l));return ve(n,{code:le.invalid_union,unionErrors:g}),Le}}get options(){return this._def.options}}kr.create=(e,t)=>new kr({options:e,typeName:Te.ZodUnion,...Fe(t)});const fn=e=>e instanceof Tr?fn(e.schema):e instanceof Kt?fn(e.innerType()):e instanceof Lr?[e.value]:e instanceof Bn?e.options:e instanceof Rr?je.objectValues(e.enum):e instanceof Or?fn(e._def.innerType):e instanceof $r?[void 0]:e instanceof Ar?[null]:e instanceof nn?[void 0,...fn(e.unwrap())]:e instanceof zn?[null,...fn(e.unwrap())]:e instanceof Fl||e instanceof Nr?fn(e.unwrap()):e instanceof Ir?fn(e._def.innerType):[];class ho extends We{_parse(t){const{ctx:n}=this._processInputParams(t);if(n.parsedType!==ye.object)return ve(n,{code:le.invalid_type,expected:ye.object,received:n.parsedType}),Le;const i=this.discriminator,s=n.data[i],a=this.optionsMap.get(s);return a?n.common.async?a._parseAsync({data:n.data,path:n.path,parent:n}):a._parseSync({data:n.data,path:n.path,parent:n}):(ve(n,{code:le.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[i]}),Le)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(t,n,i){const s=new Map;for(const a of n){const d=fn(a.shape[t]);if(!d.length)throw new Error(`A discriminator value for key \`${t}\` could not be extracted from all schema options`);for(const g of d){if(s.has(g))throw new Error(`Discriminator property ${String(t)} has duplicate value ${String(g)}`);s.set(g,a)}}return new ho({typeName:Te.ZodDiscriminatedUnion,discriminator:t,options:n,optionsMap:s,...Fe(i)})}}function Ba(e,t){const n=Rn(e),i=Rn(t);if(e===t)return{valid:!0,data:e};if(n===ye.object&&i===ye.object){const s=je.objectKeys(t),a=je.objectKeys(e).filter(g=>s.indexOf(g)!==-1),d={...e,...t};for(const g of a){const l=Ba(e[g],t[g]);if(!l.valid)return{valid:!1};d[g]=l.data}return{valid:!0,data:d}}else if(n===ye.array&&i===ye.array){if(e.length!==t.length)return{valid:!1};const s=[];for(let a=0;a{if(Pa(a)||Pa(d))return Le;const g=Ba(a.value,d.value);return g.valid?((Wa(a)||Wa(d))&&n.dirty(),{status:n.value,value:g.data}):(ve(i,{code:le.invalid_intersection_types}),Le)};return i.common.async?Promise.all([this._def.left._parseAsync({data:i.data,path:i.path,parent:i}),this._def.right._parseAsync({data:i.data,path:i.path,parent:i})]).then(([a,d])=>s(a,d)):s(this._def.left._parseSync({data:i.data,path:i.path,parent:i}),this._def.right._parseSync({data:i.data,path:i.path,parent:i}))}}Mr.create=(e,t,n)=>new Mr({left:e,right:t,typeName:Te.ZodIntersection,...Fe(n)});class cn extends We{_parse(t){const{status:n,ctx:i}=this._processInputParams(t);if(i.parsedType!==ye.array)return ve(i,{code:le.invalid_type,expected:ye.array,received:i.parsedType}),Le;if(i.data.lengththis._def.items.length&&(ve(i,{code:le.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),n.dirty());const a=[...i.data].map((d,g)=>{const l=this._def.items[g]||this._def.rest;return l?l._parse(new ln(i,d,i.path,g)):null}).filter(d=>!!d);return i.common.async?Promise.all(a).then(d=>wt.mergeArray(n,d)):wt.mergeArray(n,a)}get items(){return this._def.items}rest(t){return new cn({...this._def,rest:t})}}cn.create=(e,t)=>{if(!Array.isArray(e))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new cn({items:e,typeName:Te.ZodTuple,rest:null,...Fe(t)})};class Er extends We{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){const{status:n,ctx:i}=this._processInputParams(t);if(i.parsedType!==ye.object)return ve(i,{code:le.invalid_type,expected:ye.object,received:i.parsedType}),Le;const s=[],a=this._def.keyType,d=this._def.valueType;for(const g in i.data)s.push({key:a._parse(new ln(i,g,i.path,g)),value:d._parse(new ln(i,i.data[g],i.path,g)),alwaysSet:g in i.data});return i.common.async?wt.mergeObjectAsync(n,s):wt.mergeObjectSync(n,s)}get element(){return this._def.valueType}static create(t,n,i){return n instanceof We?new Er({keyType:t,valueType:n,typeName:Te.ZodRecord,...Fe(i)}):new Er({keyType:Ht.create(),valueType:t,typeName:Te.ZodRecord,...Fe(n)})}}class Rs extends We{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){const{status:n,ctx:i}=this._processInputParams(t);if(i.parsedType!==ye.map)return ve(i,{code:le.invalid_type,expected:ye.map,received:i.parsedType}),Le;const s=this._def.keyType,a=this._def.valueType,d=[...i.data.entries()].map(([g,l],p)=>({key:s._parse(new ln(i,g,i.path,[p,"key"])),value:a._parse(new ln(i,l,i.path,[p,"value"]))}));if(i.common.async){const g=new Map;return Promise.resolve().then(async()=>{for(const l of d){const p=await l.key,o=await l.value;if(p.status==="aborted"||o.status==="aborted")return Le;(p.status==="dirty"||o.status==="dirty")&&n.dirty(),g.set(p.value,o.value)}return{status:n.value,value:g}})}else{const g=new Map;for(const l of d){const p=l.key,o=l.value;if(p.status==="aborted"||o.status==="aborted")return Le;(p.status==="dirty"||o.status==="dirty")&&n.dirty(),g.set(p.value,o.value)}return{status:n.value,value:g}}}}Rs.create=(e,t,n)=>new Rs({valueType:t,keyType:e,typeName:Te.ZodMap,...Fe(n)});class hi extends We{_parse(t){const{status:n,ctx:i}=this._processInputParams(t);if(i.parsedType!==ye.set)return ve(i,{code:le.invalid_type,expected:ye.set,received:i.parsedType}),Le;const s=this._def;s.minSize!==null&&i.data.sizes.maxSize.value&&(ve(i,{code:le.too_big,maximum:s.maxSize.value,type:"set",inclusive:!0,exact:!1,message:s.maxSize.message}),n.dirty());const a=this._def.valueType;function d(l){const p=new Set;for(const o of l){if(o.status==="aborted")return Le;o.status==="dirty"&&n.dirty(),p.add(o.value)}return{status:n.value,value:p}}const g=[...i.data.values()].map((l,p)=>a._parse(new ln(i,l,i.path,p)));return i.common.async?Promise.all(g).then(l=>d(l)):d(g)}min(t,n){return new hi({...this._def,minSize:{value:t,message:Ae.toString(n)}})}max(t,n){return new hi({...this._def,maxSize:{value:t,message:Ae.toString(n)}})}size(t,n){return this.min(t,n).max(t,n)}nonempty(t){return this.min(1,t)}}hi.create=(e,t)=>new hi({valueType:e,minSize:null,maxSize:null,typeName:Te.ZodSet,...Fe(t)});class Mi extends We{constructor(){super(...arguments),this.validate=this.implement}_parse(t){const{ctx:n}=this._processInputParams(t);if(n.parsedType!==ye.function)return ve(n,{code:le.invalid_type,expected:ye.function,received:n.parsedType}),Le;function i(g,l){return Ms({data:g,path:n.path,errorMaps:[n.common.contextualErrorMap,n.schemaErrorMap,ks(),Ni].filter(p=>!!p),issueData:{code:le.invalid_arguments,argumentsError:l}})}function s(g,l){return Ms({data:g,path:n.path,errorMaps:[n.common.contextualErrorMap,n.schemaErrorMap,ks(),Ni].filter(p=>!!p),issueData:{code:le.invalid_return_type,returnTypeError:l}})}const a={errorMap:n.common.contextualErrorMap},d=n.data;if(this._def.returns instanceof Fi){const g=this;return At(async function(...l){const p=new Ft([]),o=await g._def.args.parseAsync(l,a).catch(u=>{throw p.addIssue(i(l,u)),p}),r=await Reflect.apply(d,this,o);return await g._def.returns._def.type.parseAsync(r,a).catch(u=>{throw p.addIssue(s(r,u)),p})})}else{const g=this;return At(function(...l){const p=g._def.args.safeParse(l,a);if(!p.success)throw new Ft([i(l,p.error)]);const o=Reflect.apply(d,this,p.data),r=g._def.returns.safeParse(o,a);if(!r.success)throw new Ft([s(o,r.error)]);return r.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...t){return new Mi({...this._def,args:cn.create(t).rest(ni.create())})}returns(t){return new Mi({...this._def,returns:t})}implement(t){return this.parse(t)}strictImplement(t){return this.parse(t)}static create(t,n,i){return new Mi({args:t||cn.create([]).rest(ni.create()),returns:n||ni.create(),typeName:Te.ZodFunction,...Fe(i)})}}class Tr extends We{get schema(){return this._def.getter()}_parse(t){const{ctx:n}=this._processInputParams(t);return this._def.getter()._parse({data:n.data,path:n.path,parent:n})}}Tr.create=(e,t)=>new Tr({getter:e,typeName:Te.ZodLazy,...Fe(t)});class Lr extends We{_parse(t){if(t.data!==this._def.value){const n=this._getOrReturnCtx(t);return ve(n,{received:n.data,code:le.invalid_literal,expected:this._def.value}),Le}return{status:"valid",value:t.data}}get value(){return this._def.value}}Lr.create=(e,t)=>new Lr({value:e,typeName:Te.ZodLiteral,...Fe(t)});function Wf(e,t){return new Bn({values:e,typeName:Te.ZodEnum,...Fe(t)})}class Bn extends We{constructor(){super(...arguments),er.set(this,void 0)}_parse(t){if(typeof t.data!="string"){const n=this._getOrReturnCtx(t),i=this._def.values;return ve(n,{expected:je.joinValues(i),received:n.parsedType,code:le.invalid_type}),Le}if(Es(this,er)||Nf(this,er,new Set(this._def.values)),!Es(this,er).has(t.data)){const n=this._getOrReturnCtx(t),i=this._def.values;return ve(n,{received:n.data,code:le.invalid_enum_value,options:i}),Le}return At(t.data)}get options(){return this._def.values}get enum(){const t={};for(const n of this._def.values)t[n]=n;return t}get Values(){const t={};for(const n of this._def.values)t[n]=n;return t}get Enum(){const t={};for(const n of this._def.values)t[n]=n;return t}extract(t,n=this._def){return Bn.create(t,{...this._def,...n})}exclude(t,n=this._def){return Bn.create(this.options.filter(i=>!t.includes(i)),{...this._def,...n})}}er=new WeakMap;Bn.create=Wf;class Rr extends We{constructor(){super(...arguments),tr.set(this,void 0)}_parse(t){const n=je.getValidEnumValues(this._def.values),i=this._getOrReturnCtx(t);if(i.parsedType!==ye.string&&i.parsedType!==ye.number){const s=je.objectValues(n);return ve(i,{expected:je.joinValues(s),received:i.parsedType,code:le.invalid_type}),Le}if(Es(this,tr)||Nf(this,tr,new Set(je.getValidEnumValues(this._def.values))),!Es(this,tr).has(t.data)){const s=je.objectValues(n);return ve(i,{received:i.data,code:le.invalid_enum_value,options:s}),Le}return At(t.data)}get enum(){return this._def.values}}tr=new WeakMap;Rr.create=(e,t)=>new Rr({values:e,typeName:Te.ZodNativeEnum,...Fe(t)});class Fi extends We{unwrap(){return this._def.type}_parse(t){const{ctx:n}=this._processInputParams(t);if(n.parsedType!==ye.promise&&n.common.async===!1)return ve(n,{code:le.invalid_type,expected:ye.promise,received:n.parsedType}),Le;const i=n.parsedType===ye.promise?n.data:Promise.resolve(n.data);return At(i.then(s=>this._def.type.parseAsync(s,{path:n.path,errorMap:n.common.contextualErrorMap})))}}Fi.create=(e,t)=>new Fi({type:e,typeName:Te.ZodPromise,...Fe(t)});class Kt extends We{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===Te.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(t){const{status:n,ctx:i}=this._processInputParams(t),s=this._def.effect||null,a={addIssue:d=>{ve(i,d),d.fatal?n.abort():n.dirty()},get path(){return i.path}};if(a.addIssue=a.addIssue.bind(a),s.type==="preprocess"){const d=s.transform(i.data,a);if(i.common.async)return Promise.resolve(d).then(async g=>{if(n.value==="aborted")return Le;const l=await this._def.schema._parseAsync({data:g,path:i.path,parent:i});return l.status==="aborted"?Le:l.status==="dirty"||n.value==="dirty"?_i(l.value):l});{if(n.value==="aborted")return Le;const g=this._def.schema._parseSync({data:d,path:i.path,parent:i});return g.status==="aborted"?Le:g.status==="dirty"||n.value==="dirty"?_i(g.value):g}}if(s.type==="refinement"){const d=g=>{const l=s.refinement(g,a);if(i.common.async)return Promise.resolve(l);if(l instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return g};if(i.common.async===!1){const g=this._def.schema._parseSync({data:i.data,path:i.path,parent:i});return g.status==="aborted"?Le:(g.status==="dirty"&&n.dirty(),d(g.value),{status:n.value,value:g.value})}else return this._def.schema._parseAsync({data:i.data,path:i.path,parent:i}).then(g=>g.status==="aborted"?Le:(g.status==="dirty"&&n.dirty(),d(g.value).then(()=>({status:n.value,value:g.value}))))}if(s.type==="transform")if(i.common.async===!1){const d=this._def.schema._parseSync({data:i.data,path:i.path,parent:i});if(!Sr(d))return d;const g=s.transform(d.value,a);if(g instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:n.value,value:g}}else return this._def.schema._parseAsync({data:i.data,path:i.path,parent:i}).then(d=>Sr(d)?Promise.resolve(s.transform(d.value,a)).then(g=>({status:n.value,value:g})):d);je.assertNever(s)}}Kt.create=(e,t,n)=>new Kt({schema:e,typeName:Te.ZodEffects,effect:t,...Fe(n)});Kt.createWithPreprocess=(e,t,n)=>new Kt({schema:t,effect:{type:"preprocess",transform:e},typeName:Te.ZodEffects,...Fe(n)});class nn extends We{_parse(t){return this._getType(t)===ye.undefined?At(void 0):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}nn.create=(e,t)=>new nn({innerType:e,typeName:Te.ZodOptional,...Fe(t)});class zn extends We{_parse(t){return this._getType(t)===ye.null?At(null):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}zn.create=(e,t)=>new zn({innerType:e,typeName:Te.ZodNullable,...Fe(t)});class Or extends We{_parse(t){const{ctx:n}=this._processInputParams(t);let i=n.data;return n.parsedType===ye.undefined&&(i=this._def.defaultValue()),this._def.innerType._parse({data:i,path:n.path,parent:n})}removeDefault(){return this._def.innerType}}Or.create=(e,t)=>new Or({innerType:e,typeName:Te.ZodDefault,defaultValue:typeof t.default=="function"?t.default:()=>t.default,...Fe(t)});class Ir extends We{_parse(t){const{ctx:n}=this._processInputParams(t),i={...n,common:{...n.common,issues:[]}},s=this._def.innerType._parse({data:i.data,path:i.path,parent:{...i}});return xr(s)?s.then(a=>({status:"valid",value:a.status==="valid"?a.value:this._def.catchValue({get error(){return new Ft(i.common.issues)},input:i.data})})):{status:"valid",value:s.status==="valid"?s.value:this._def.catchValue({get error(){return new Ft(i.common.issues)},input:i.data})}}removeCatch(){return this._def.innerType}}Ir.create=(e,t)=>new Ir({innerType:e,typeName:Te.ZodCatch,catchValue:typeof t.catch=="function"?t.catch:()=>t.catch,...Fe(t)});class Os extends We{_parse(t){if(this._getType(t)!==ye.nan){const i=this._getOrReturnCtx(t);return ve(i,{code:le.invalid_type,expected:ye.nan,received:i.parsedType}),Le}return{status:"valid",value:t.data}}}Os.create=e=>new Os({typeName:Te.ZodNaN,...Fe(e)});const u_=Symbol("zod_brand");class Fl extends We{_parse(t){const{ctx:n}=this._processInputParams(t),i=n.data;return this._def.type._parse({data:i,path:n.path,parent:n})}unwrap(){return this._def.type}}class Zr extends We{_parse(t){const{status:n,ctx:i}=this._processInputParams(t);if(i.common.async)return(async()=>{const a=await this._def.in._parseAsync({data:i.data,path:i.path,parent:i});return a.status==="aborted"?Le:a.status==="dirty"?(n.dirty(),_i(a.value)):this._def.out._parseAsync({data:a.value,path:i.path,parent:i})})();{const s=this._def.in._parseSync({data:i.data,path:i.path,parent:i});return s.status==="aborted"?Le:s.status==="dirty"?(n.dirty(),{status:"dirty",value:s.value}):this._def.out._parseSync({data:s.value,path:i.path,parent:i})}}static create(t,n){return new Zr({in:t,out:n,typeName:Te.ZodPipeline})}}class Nr extends We{_parse(t){const n=this._def.innerType._parse(t),i=s=>(Sr(s)&&(s.value=Object.freeze(s.value)),s);return xr(n)?n.then(s=>i(s)):i(n)}unwrap(){return this._def.innerType}}Nr.create=(e,t)=>new Nr({innerType:e,typeName:Te.ZodReadonly,...Fe(t)});function Bf(e,t={},n){return e?Di.create().superRefine((i,s)=>{var a,d;if(!e(i)){const g=typeof t=="function"?t(i):typeof t=="string"?{message:t}:t,l=(d=(a=g.fatal)!==null&&a!==void 0?a:n)!==null&&d!==void 0?d:!0,p=typeof g=="string"?{message:g}:g;s.addIssue({code:"custom",...p,fatal:l})}}):Di.create()}const h_={object:at.lazycreate};var Te;(function(e){e.ZodString="ZodString",e.ZodNumber="ZodNumber",e.ZodNaN="ZodNaN",e.ZodBigInt="ZodBigInt",e.ZodBoolean="ZodBoolean",e.ZodDate="ZodDate",e.ZodSymbol="ZodSymbol",e.ZodUndefined="ZodUndefined",e.ZodNull="ZodNull",e.ZodAny="ZodAny",e.ZodUnknown="ZodUnknown",e.ZodNever="ZodNever",e.ZodVoid="ZodVoid",e.ZodArray="ZodArray",e.ZodObject="ZodObject",e.ZodUnion="ZodUnion",e.ZodDiscriminatedUnion="ZodDiscriminatedUnion",e.ZodIntersection="ZodIntersection",e.ZodTuple="ZodTuple",e.ZodRecord="ZodRecord",e.ZodMap="ZodMap",e.ZodSet="ZodSet",e.ZodFunction="ZodFunction",e.ZodLazy="ZodLazy",e.ZodLiteral="ZodLiteral",e.ZodEnum="ZodEnum",e.ZodEffects="ZodEffects",e.ZodNativeEnum="ZodNativeEnum",e.ZodOptional="ZodOptional",e.ZodNullable="ZodNullable",e.ZodDefault="ZodDefault",e.ZodCatch="ZodCatch",e.ZodPromise="ZodPromise",e.ZodBranded="ZodBranded",e.ZodPipeline="ZodPipeline",e.ZodReadonly="ZodReadonly"})(Te||(Te={}));const d_=(e,t={message:`Input not instance of ${e.name}`})=>Bf(n=>n instanceof e,t),zf=Ht.create,jf=Pn.create,f_=Os.create,p_=Wn.create,Hf=Cr.create,g_=ui.create,m_=Ts.create,v_=$r.create,y_=Ar.create,b_=Di.create,w_=ni.create,__=_n.create,S_=Ls.create,x_=Gt.create,C_=at.create,$_=at.strictCreate,A_=kr.create,k_=ho.create,M_=Mr.create,E_=cn.create,T_=Er.create,L_=Rs.create,R_=hi.create,O_=Mi.create,I_=Tr.create,N_=Lr.create,D_=Bn.create,F_=Rr.create,P_=Fi.create,Eu=Kt.create,W_=nn.create,B_=zn.create,z_=Kt.createWithPreprocess,j_=Zr.create,H_=()=>zf().optional(),U_=()=>jf().optional(),V_=()=>Hf().optional(),G_={string:e=>Ht.create({...e,coerce:!0}),number:e=>Pn.create({...e,coerce:!0}),boolean:e=>Cr.create({...e,coerce:!0}),bigint:e=>Wn.create({...e,coerce:!0}),date:e=>ui.create({...e,coerce:!0})},Y_=Le;var te=Object.freeze({__proto__:null,defaultErrorMap:Ni,setErrorMap:Yw,getErrorMap:ks,makeIssue:Ms,EMPTY_PATH:Kw,addIssueToContext:ve,ParseStatus:wt,INVALID:Le,DIRTY:_i,OK:At,isAborted:Pa,isDirty:Wa,isValid:Sr,isAsync:xr,get util(){return je},get objectUtil(){return Fa},ZodParsedType:ye,getParsedType:Rn,ZodType:We,datetimeRegex:Pf,ZodString:Ht,ZodNumber:Pn,ZodBigInt:Wn,ZodBoolean:Cr,ZodDate:ui,ZodSymbol:Ts,ZodUndefined:$r,ZodNull:Ar,ZodAny:Di,ZodUnknown:ni,ZodNever:_n,ZodVoid:Ls,ZodArray:Gt,ZodObject:at,ZodUnion:kr,ZodDiscriminatedUnion:ho,ZodIntersection:Mr,ZodTuple:cn,ZodRecord:Er,ZodMap:Rs,ZodSet:hi,ZodFunction:Mi,ZodLazy:Tr,ZodLiteral:Lr,ZodEnum:Bn,ZodNativeEnum:Rr,ZodPromise:Fi,ZodEffects:Kt,ZodTransformer:Kt,ZodOptional:nn,ZodNullable:zn,ZodDefault:Or,ZodCatch:Ir,ZodNaN:Os,BRAND:u_,ZodBranded:Fl,ZodPipeline:Zr,ZodReadonly:Nr,custom:Bf,Schema:We,ZodSchema:We,late:h_,get ZodFirstPartyTypeKind(){return Te},coerce:G_,any:b_,array:x_,bigint:p_,boolean:Hf,date:g_,discriminatedUnion:k_,effect:Eu,enum:D_,function:O_,instanceof:d_,intersection:M_,lazy:I_,literal:N_,map:L_,nan:f_,nativeEnum:F_,never:__,null:y_,nullable:B_,number:jf,object:C_,oboolean:V_,onumber:U_,optional:W_,ostring:H_,pipeline:j_,preprocess:z_,promise:P_,record:T_,set:R_,strictObject:$_,string:zf,symbol:m_,transformer:Eu,tuple:E_,undefined:v_,union:A_,unknown:w_,void:S_,NEVER:Y_,ZodIssueCode:le,quotelessJson:Gw,ZodError:Ft});const fo=te.object({total:te.number(),currentPage:te.number(),pageSize:te.number()}),K_=te.object({key:te.string(),value:te.string().nullish()}),Z_=te.object({name:te.string(),configured:te.boolean(),items:te.array(K_).nullish(),type:te.string()}),X_=te.object({results:te.array(Z_)}),po=te.object({id:te.number(),name:te.string()}),Q_=fo.extend({results:te.array(po)}),q_=te.object({resource:te.string(),value:te.string()}),Tu=te.object({name:te.string().nullish()}),J_=te.object({createdOn:te.string().nullish(),updatedOn:te.string().nullish(),expiresOn:te.string().nullish(),registrar:Tu.nullish(),contacts:te.array(Tu)}),eS=te.object({number:te.number()}),tS=te.object({country:te.string(),countryCode:te.string()}),nS=te.object({name:te.string()}),iS=te.object({name:te.string()}),rS=te.object({name:te.string()}),sS=te.object({number:te.number()}),Pl=te.object({id:te.number(),data:te.string(),dataType:te.string(),source:te.string(),query:te.string().nullish(),metadata:te.any().nullish(),createdAt:te.string(),autonomousSystem:eS.nullish(),whoisRecord:J_.nullish(),geolocation:tS.nullish(),dnsRecords:te.array(q_).nullish(),reverseDnsNames:te.array(nS).nullish(),cpes:te.array(iS).nullish(),ports:te.array(sS).nullish(),vulnerabilities:te.array(rS).nullish(),tags:te.array(po)}),Uf=te.object({id:te.number(),ruleId:te.string(),createdAt:te.string(),tags:te.array(po),artifacts:te.array(Pl)}),oS=fo.extend({results:te.array(Uf)});te.object({q:te.string(),page:te.number().nullish(),limit:te.number().nullish()});te.object({countryCode:te.string(),asn:te.string().nullish(),loc:te.string().nullish()});te.object({lat:te.number(),long:te.number()});te.object({name:te.string(),code:te.string(),lat:te.number(),long:te.number()});te.union([te.literal("ip"),te.literal("domain"),te.literal("url"),te.literal("hash"),te.literal("mail")]);te.object({name:te.string(),type:te.string(),baseURL:te.string(),favicon:te.function().returns(te.string()),href:te.function().args(te.string()).returns(te.string())});const ps=te.object({id:te.string(),title:te.string(),description:te.string(),yaml:te.string(),createdAt:te.string(),updatedAt:te.string(),tags:te.array(po)});te.object({yaml:te.string()});te.object({yaml:te.string()});te.object({analyzer:te.string(),query:te.string()});const aS=fo.extend({results:te.array(ps)}),lS=fo.extend({results:te.array(Pl)}),Vf=te.object({message:te.string()});Vf.extend({detail:te.any().nullish()});const Lu=Vf.extend({queued:te.boolean()});te.union([te.literal("Alerts"),te.literal("Rules"),te.literal("Artifacts")]);const dt=tt.create(),St={async getConfigs(){const e=await dt.get("/api/configs");return X_.parse(e.data)},async getAlerts(e){e.page=e.page||1;const t=await dt.get("/api/alerts",{params:e});return oS.parse(t.data)},async getAlert(e){const t=await dt.get(`/api/alerts/${e}`);return Uf.parse(t.data)},async getTags(){const e=await dt.get("/api/tags");return Q_.parse(e.data)},async deleteAlert(e){await dt.delete(`/api/alerts/${e}`)},async getArtifact(e){const t=await dt.get(`/api/artifacts/${e}`);return Pl.parse(t.data)},async getArtifacts(e){e.page=e.page||1;const t=await dt.get("/api/artifacts",{params:e});return lS.parse(t.data)},async enrichArtifact(e){const t=await dt.post(`/api/artifacts/${e}/enrich`);return Lu.parse(t.data)},async deleteArtifact(e){await dt.delete(`/api/artifacts/${e}`)},async getRules(e){e.page=e.page||1;const t=await dt.get("/api/rules",{params:e});return aS.parse(t.data)},async getRule(e){const t=await dt.get(`/api/rules/${e}`);return ps.parse(t.data)},async searchRule(e){const t=await dt.post(`/api/rules/${e}/search`);return Lu.parse(t.data)},async createRule(e){const t=await dt.post("/api/rules/",e);return ps.parse(t.data)},async updateRule(e){const t=await dt.put("/api/rules/",e);return ps.parse(t.data)},async deleteRule(e){await dt.delete(`/api/rules/${e}`)},async deleteTag(e){await dt.delete(`/api/tags/${e}`)},async getIpInfo(e){return(await dt.get(`/api/ip_addresses/${e}`)).data}};function go(){return _t(async(e,t)=>await St.getAlerts(t))}function cS(){return _t(async(e,t)=>await St.deleteAlert(t))}function uS(){return _t(async(e,t)=>await St.deleteTag(t))}function hS(){return _t(async(e,t)=>await St.getArtifact(t))}function Gf(){return _t(async(e,t)=>await St.deleteArtifact(t))}function dS(){return _t(async(e,t)=>await St.enrichArtifact(t))}function fS(){return _t(async()=>await St.getConfigs())}function pS(){return _t(async(e,t)=>await St.getIpInfo(t))}function Yf(){return _t(async(e,t)=>await St.getRules(t))}function Kf(){return _t(async(e,t)=>await St.getRule(t))}function gS(){return _t(async(e,t)=>await St.deleteRule(t))}function mS(){return _t(async(e,t)=>await St.searchRule(t))}function vS(){return _t(async(e,t)=>await St.createRule(t))}function yS(){return _t(async(e,t)=>await St.updateRule(t))}function Wl(){return _t(async(e,t)=>await St.getArtifacts(t))}function bS(){return _t(async(e,t)=>await St.getAlert(t))}const wS={class:"buttons is-pulled-right"},_S=["href"],SS={class:"icon is-small"},xS={class:"icon is-small"},Zf=Ce({__name:"ActionButtons",props:{alert:{type:Object,required:!0}},emits:["delete","set-error"],setup(e,{emit:t}){const n=e,i=t,s=ke(()=>`/api/alerts/${n.alert.id}`),a=cS(),d=async()=>{if(window.confirm(`Are you sure you want to delete ${n.alert.id}?`))try{await a.perform(n.alert.id),i("delete")}catch(l){tt.isAxiosError(l)&&i("set-error",l)}};return(g,l)=>{const p=Xe("font-awesome-icon");return Y(),ie("span",wS,[D("a",{class:"button is-link is-light is-small",href:s.value,target:"_blank"},[l[0]||(l[0]=D("span",null,"JSON",-1)),D("span",SS,[se(p,{icon:"barcode"})])],8,_S),D("button",{class:"button is-light is-small",onClick:d},[l[1]||(l[1]=D("span",null,"Delete",-1)),D("span",xS,[se(p,{icon:"times"})])])])}}});var Dr=CS;function CS(e,t,n){return t==null||t>=e.length?e:(n==null&&(n="..."),e.slice(0,Math.max(0,t-n.length))+n)}const $S={key:0,class:"control"},AS=Ce({__name:"ArtifactTag",props:{artifact:{type:Object,required:!0}},emits:["delete"],setup(e,{emit:t}){const n=e,i=t,s=He(!1),a=He(!1),d=Gf(),g=async()=>{window.confirm(`Are you sure you want to delete ${n.artifact.data}?`)&&(await d.perform(n.artifact.id),s.value=!0,i("delete"))},l=()=>{a.value=!0},p=()=>{a.value=!1};return(o,r)=>{const c=Xe("router-link");return s.value?ge("",!0):(Y(),ie("div",$S,[D("div",{class:"tags has-addons are-medium",onMouseover:l,onMouseleave:p},[se(c,{class:"tag is-link is-light",to:{name:"Artifact",params:{id:e.artifact.id}}},{default:nt(()=>[it(Se(ce(Dr)(e.artifact.data,32)),1)]),_:1},8,["to"]),a.value?(Y(),ie("span",{key:0,class:"tag is-delete",onClick:g})):ge("",!0)],32)]))}}}),kS={class:"field is-grouped is-grouped-multiline"},Xf=Ce({__name:"ArtifactTags",props:{artifacts:{type:Array,required:!0}},emits:["delete"],setup(e,{emit:t}){const n=e,i=t,s=He(0),a=()=>{s.value+=1};return Je(s,()=>{s.value>=n.artifacts.length&&i("delete")}),(d,g)=>(Y(),ie("div",kS,[(Y(!0),ie(Pe,null,Pt(e.artifacts,l=>(Y(),xe(AS,{key:l.id,artifact:l,onDelete:a},null,8,["artifact"]))),128))]))}});var Is={d:(e,t)=>{for(var n in t)Is.o(t,n)&&!Is.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t)},Qf={};function za(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);nRS});const Ee=(Ru={computed:()=>ke,createTextVNode:()=>it,createVNode:()=>se,defineComponent:()=>Ce,reactive:()=>Bi,ref:()=>He,watch:()=>Je,watchEffect:()=>_l},Ko={},Is.d(Ko,Ru),Ko),MS=(0,Ee.defineComponent)({props:{data:{required:!0,type:String},onClick:Function},render:function(){var e=this.data,t=this.onClick;return(0,Ee.createVNode)("span",{class:"vjs-tree-brackets",onClick:t},[e])}}),ES=(0,Ee.defineComponent)({emits:["change","update:modelValue"],props:{checked:{type:Boolean,default:!1},isMultiple:Boolean,onChange:Function},setup:function(e,t){var n=t.emit;return{uiType:(0,Ee.computed)(function(){return e.isMultiple?"checkbox":"radio"}),model:(0,Ee.computed)({get:function(){return e.checked},set:function(i){return n("update:modelValue",i)}})}},render:function(){var e=this.uiType,t=this.model,n=this.$emit;return(0,Ee.createVNode)("label",{class:["vjs-check-controller",t?"is-checked":""],onClick:function(i){return i.stopPropagation()}},[(0,Ee.createVNode)("span",{class:"vjs-check-controller-inner is-".concat(e)},null),(0,Ee.createVNode)("input",{checked:t,class:"vjs-check-controller-original is-".concat(e),type:e,onChange:function(){return n("change",t)}},null)])}}),TS=(0,Ee.defineComponent)({props:{nodeType:{required:!0,type:String},onClick:Function},render:function(){var e=this.nodeType,t=this.onClick,n=e==="objectStart"||e==="arrayStart";return n||e==="objectCollapsed"||e==="arrayCollapsed"?(0,Ee.createVNode)("span",{class:"vjs-carets vjs-carets-".concat(n?"open":"close"),onClick:t},[(0,Ee.createVNode)("svg",{viewBox:"0 0 1024 1024",focusable:"false","data-icon":"caret-down",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},[(0,Ee.createVNode)("path",{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"},null)])]):null}});var Ru,Ko;function ja(e){return ja=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ja(e)}function Jf(e){return Object.prototype.toString.call(e).slice(8,-1).toLowerCase()}function Zn(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"root",n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,i=arguments.length>3?arguments[3]:void 0,s=i||{},a=s.key,d=s.index,g=s.type,l=g===void 0?"content":g,p=s.showComma,o=p!==void 0&&p,r=s.length,c=r===void 0?1:r,u=Jf(e);if(u==="array"){var h=Ou(e.map(function(v,y,$){return Zn(v,"".concat(t,"[").concat(y,"]"),n+1,{index:y,showComma:y!==$.length-1,length:c,type:l})}));return[Zn("[",t,n,{showComma:!1,key:a,length:e.length,type:"arrayStart"})[0]].concat(h,Zn("]",t,n,{showComma:o,length:e.length,type:"arrayEnd"})[0])}if(u==="object"){var f=Object.keys(e),m=Ou(f.map(function(v,y,$){return Zn(e[v],/^[a-zA-Z_]\w*$/.test(v)?"".concat(t,".").concat(v):"".concat(t,'["').concat(v,'"]'),n+1,{key:v,showComma:y!==$.length-1,length:c,type:l})}));return[Zn("{",t,n,{showComma:!1,key:a,index:d,length:f.length,type:"objectStart"})[0]].concat(m,Zn("}",t,n,{showComma:o,length:f.length,type:"objectEnd"})[0])}return[{content:e,level:n,key:a,index:d,path:t,showComma:o,length:c,type:l}]}function Ou(e){if(typeof Array.prototype.flat=="function")return e.flat();for(var t=Ns(e),n=[];t.length;){var i=t.shift();Array.isArray(i)?t.unshift.apply(t,Ns(i)):n.push(i)}return n}function Ha(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:new WeakMap;if(e==null)return e;if(e instanceof Date)return new Date(e);if(e instanceof RegExp)return new RegExp(e);if(ja(e)!=="object")return e;if(t.get(e))return t.get(e);if(Array.isArray(e)){var n=e.map(function(a){return Ha(a,t)});return t.set(e,n),n}var i={};for(var s in e)i[s]=Ha(e[s],t);return t.set(e,i),i}function Iu(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),n.push.apply(n,i)}return n}function Nu(e){for(var t=1;t=$||b.length>=_,L=(M=e.pathCollapsible)===null||M===void 0?void 0:M.call(e,b);return b.type!=="objectStart"&&b.type!=="arrayStart"||!O&&!L?S:Lt(Lt({},S),{},Ds({},b.path,1))},{})},g=(0,Ee.reactive)({translateY:0,visibleData:null,hiddenPaths:d(e.deep,e.collapsedNodeLength)}),l=(0,Ee.computed)(function(){for(var $=null,_=[],S=a.value.length,b=0;b$.length?$.length-S:M;O<0&&(O=0);var L=O+S;g.translateY=O*e.itemHeight,g.visibleData=$.filter(function(T,k){return k>=O&&k{var d;if(n.error.response)return(d=n.error.response)==null?void 0:d.data}),a=()=>{i("dispose")};return(d,g)=>{var l;return Y(),ie(Pe,null,[D("div",OS,[e.disposable?(Y(),ie("button",{key:0,class:"delete",onClick:a})):ge("",!0),s.value?(Y(),ie("p",IS,Se(s.value.message),1)):(Y(),ie("p",NS,Se(e.error),1))]),(l=s.value)!=null&&l.detail?(Y(),ie("article",DS,[D("div",FS,[se(ce(tp),{data:s.value.detail},null,8,["data"])])])):ge("",!0)],64)}}}),PS={key:0,class:"control"},WS=Ce({__name:"TagItem",props:{tag:{type:Object,required:!0},deletable:{type:Boolean,default:!1},navigateTo:{type:String,required:!0}},setup(e){const t=e,n=He(!1),i=He(!1),s=uS(),a=async()=>{window.confirm(`Are you sure you want to delete ${t.tag.name} (ID: ${t.tag.id})?`)&&(await s.perform(t.tag.id),n.value=!0)},d=()=>{i.value=!0},g=()=>{i.value=!1},l=p=>`tag:"${p}"`;return(p,o)=>{const r=Xe("router-link");return n.value?ge("",!0):(Y(),ie("div",PS,[D("div",{class:"tags has-addons are-medium",onMouseover:d,onMouseleave:g},[se(r,{class:"tag is-info is-light",to:{name:e.navigateTo,query:{q:l(e.tag.name)}}},{default:nt(()=>[it(Se(e.tag.name),1)]),_:1},8,["to"]),i.value&&e.deletable?(Y(),ie("a",{key:0,class:"tag is-delete",onClick:a})):ge("",!0)],32)]))}}}),BS={class:"field is-grouped is-grouped-multiline"},Xr=Ce({__name:"TagsItem",props:{tags:{type:Array,required:!0},deletable:{type:Boolean,default:!1},navigateTo:{type:String,required:!0}},setup(e){return(t,n)=>(Y(),ie("div",BS,[(Y(!0),ie(Pe,null,Pt(e.tags,i=>(Y(),xe(WS,{tag:i,key:i.name,deletable:e.deletable,"navigate-to":e.navigateTo},null,8,["tag","deletable","navigate-to"]))),128))]))}}),zS={key:0,class:"box"},jS={class:"table is-fullwidth is-completely-borderless"},HS={key:0},US={class:"help"},VS=Ce({__name:"AlertItem",props:{alert:{type:Object,required:!0}},emits:["delete"],setup(e,{emit:t}){const n=t,i=He(!1),s=He(),a=p=>{s.value=p},d=()=>{s.value=void 0},g=()=>{n("delete")},l=()=>{i.value=!0};return(p,o)=>{const r=Xe("router-link");return i.value?ge("",!0):(Y(),ie("div",zS,[s.value?(Y(),xe(mt,{key:0,class:"block",error:s.value,disposable:!0,onDispose:d},null,8,["error"])):ge("",!0),D("p",null,[se(Zf,{alert:e.alert,onDelete:g,onSetError:a},null,8,["alert"])]),se(r,{class:"is-size-4",to:{name:"Alert",params:{id:e.alert.id}}},{default:nt(()=>[it(Se(e.alert.id),1)]),_:1},8,["to"]),D("table",jS,[D("tr",null,[o[0]||(o[0]=D("th",null,"Rule",-1)),D("td",null,[se(r,{to:{name:"Rule",params:{id:e.alert.ruleId}}},{default:nt(()=>[it(Se(e.alert.ruleId),1)]),_:1},8,["to"])])]),D("tr",null,[o[1]||(o[1]=D("th",null,"Artifacts",-1)),D("td",null,[se(Xf,{artifacts:e.alert.artifacts,onDelete:l},null,8,["artifacts"])])]),e.alert.tags.length>0?(Y(),ie("tr",HS,[o[2]||(o[2]=D("th",null,"Tags",-1)),D("td",null,[se(Xr,{tags:e.alert.tags,"navigate-to":"Alerts"},null,8,["tags"])])])):ge("",!0)]),D("p",US,"Created at: "+Se(e.alert.createdAt),1)]))}}}),GS={key:0,class:"message is-warning"},YS={key:1,class:"pagination",role:"navigation","aria-label":"pagination"},KS={key:0,class:"pagination-list"},ZS={key:1,class:"pagination-list"},XS={key:0},QS={key:1},qS={key:2},JS={key:3},ex={key:4},tx={key:5},Bl=Ce({__name:"PaginationItem",props:{currentPage:{type:Number,required:!0},pageSize:{type:Number,required:!0},total:{type:Number,required:!0}},emits:["update-page"],setup(e,{emit:t}){const n=e,i=t,s=c=>c===n.currentPage+1||c===n.currentPage-1,a=ke(()=>Math.ceil(n.total/n.pageSize)),d=ke(()=>a.value===1),g=ke(()=>n.currentPage>1),l=ke(()=>n.currentPage-1===1),p=ke(()=>n.currentPagen.currentPage+1===a.value),r=c=>{i("update-page",c)};return(c,u)=>e.total===0?(Y(),ie("article",GS,u[6]||(u[6]=[D("div",{class:"message-body"},"There is no result to show.",-1)]))):(Y(),ie("nav",YS,[d.value?(Y(),ie("ul",KS,[D("li",null,[D("a",{class:"pagination-link mt-2 is-current",onClick:u[0]||(u[0]=h=>r(1))},"1")])])):(Y(),ie("ul",ZS,[g.value&&!l.value?(Y(),ie("li",XS,[D("a",{class:"pagination-link mt-2",onClick:u[1]||(u[1]=h=>r(1))}," 1")])):ge("",!0),g.value&&!l.value&&!s(2)?(Y(),ie("li",QS,u[7]||(u[7]=[D("span",{class:"pagination-ellipsis"},"…",-1)]))):ge("",!0),g.value?(Y(),ie("li",qS,[D("a",{class:"pagination-link mt-2",onClick:u[2]||(u[2]=h=>r(e.currentPage-1))},Se(e.currentPage-1),1)])):ge("",!0),D("li",null,[D("a",{class:"pagination-link mt-2 is-current",onClick:u[3]||(u[3]=h=>r(e.currentPage))},Se(e.currentPage),1)]),p.value?(Y(),ie("li",JS,[D("a",{class:"pagination-link mt-2",onClick:u[4]||(u[4]=h=>r(e.currentPage+1))},Se(e.currentPage+1),1)])):ge("",!0),p.value&&!o.value&&!s(a.value-1)?(Y(),ie("li",ex,u[8]||(u[8]=[D("span",{class:"pagination-ellipsis"},"…",-1)]))):ge("",!0),p.value&&!o.value?(Y(),ie("li",tx,[D("a",{class:"pagination-link mt-2",onClick:u[5]||(u[5]=h=>r(a.value))},Se(a.value),1)])):ge("",!0)]))]))}}),nx={key:0},ix={class:"help"},rx={key:1},np=Ce({__name:"AlertsItem",props:{page:{type:String,required:!0},alerts:{type:Object,required:!0}},emits:["refresh","update-page"],setup(e,{emit:t}){const n=e,i=t,s=g=>{i("update-page",g)},a=()=>{i("refresh")},d=ke(()=>n.alerts.results.length>0);return(g,l)=>d.value?(Y(),ie("div",nx,[(Y(!0),ie(Pe,null,Pt(e.alerts.results,p=>(Y(),xe(VS,{alert:p,key:p.id,onDelete:a},null,8,["alert"]))),128)),se(Bl,{total:e.alerts.total,currentPage:e.alerts.currentPage,pageSize:e.alerts.pageSize,onUpdatePage:s},null,8,["total","currentPage","pageSize"]),D("p",ix,"("+Se(e.alerts.total)+" results in total, "+Se(e.alerts.results.length)+" shown)",1)])):(Y(),ie("div",rx,l[0]||(l[0]=[D("div",{class:"notification is-warning is-light"},"There is no alert to show",-1)])))}}),sx=Ce({name:"LoadingItem"}),ox={class:"has-text-centered"},ax={class:"fa-3x"};function lx(e,t,n,i,s,a){const d=Xe("font-awesome-icon");return Y(),ie("div",ox,[D("div",ax,[se(d,{icon:"spinner",spin:""})])])}const $n=Vr(sx,[["render",lx]]),cx={class:"block"},ux={class:"field has-addons"},hx={class:"control is-expanded"},dx={class:"control"},fx={class:"icon is-small"},px={class:"control"},gx={class:"icon is-small"},mx={key:0,class:"content"},vx={key:0,class:"block"},yx=Ce({__name:"AlertsWrapper",setup(e){const t=Ii("page","1"),n=Ii("q",""),i=He(!1),s=go(),a=async()=>{const o={q:n.value,page:parseInt(t.value)};return await s.perform(o)},d=o=>{t.value=o.toString()},g=async()=>{t.value="1",await a()},l=g,p=Ur(i);return ct(async()=>{await a()}),Je(t,async()=>{await a()}),Je(n,async()=>{window.scrollTo({top:0,behavior:"smooth"})}),(o,r)=>{var h,f;const c=Xe("font-awesome-icon"),u=Xe("router-link");return Y(),ie(Pe,null,[D("div",cx,[D("div",ux,[D("p",hx,[ml(D("input",{class:"input",type:"text","onUpdate:modelValue":r[0]||(r[0]=m=>lt(n)?n.value=m:null)},null,512),[[Al,ce(n)]])]),D("p",dx,[D("a",{class:"button is-primary",onClick:g},[D("span",fx,[se(c,{icon:"search"})]),r[2]||(r[2]=D("span",null,"Search",-1))])]),D("p",px,[D("a",{class:"button is-info",onClick:r[1]||(r[1]=m=>ce(p)())},[D("span",gx,[se(c,{icon:"question"})]),r[3]||(r[3]=D("span",null,"Help",-1))])])]),i.value?(Y(),ie("div",mx,[r[6]||(r[6]=xl('

Help

  • Search query supports AND, OR, :, =, !=, <, <=, >, >=, NOT and ().
  • Searchable fields are id, tag, created_at, rule.id, rule.title, rule.description, artifact.data, artifact.data_type, artifact.source and artifact.query.

Examples

',3)),D("ul",null,[D("li",null,[se(u,{to:{name:"Alerts",query:{q:"rule.id:foo AND artifact.data:example.com"}}},{default:nt(()=>r[4]||(r[4]=[it("rule.id:foo AND artifact.data:example.com")])),_:1})]),D("li",null,[se(u,{to:{name:"Alerts",query:{q:"tag:foo AND created_at >= 2020-01-01"}}},{default:nt(()=>r[5]||(r[5]=[it("tag:foo AND created_at >= 2020-01-01")])),_:1})])])])):ge("",!0)]),ce(s).performCount>0?(Y(),ie("div",vx,[ce(s).isRunning?(Y(),xe($n,{key:0})):ge("",!0),ce(s).isError?(Y(),xe(mt,{key:1,error:(h=ce(s).last)==null?void 0:h.error},null,8,["error"])):ge("",!0),(f=ce(s).last)!=null&&f.value?(Y(),xe(np,{key:2,alerts:ce(s).last.value,page:ce(t),onUpdatePage:d,onRefresh:ce(l)},null,8,["alerts","page","onRefresh"])):ge("",!0)])):ge("",!0)],64)}}}),bx={class:"columns"},wx={class:"column is-one-third"},_x={class:"card"},Sx={class:"card-content"},xx={class:"level is-mobile"},Cx={class:"level-item"},$x={class:"title"},Ax={class:"level-item"},kx={class:"icon"},Mx={class:"column is-one-third"},Ex={class:"card"},Tx={class:"card-content"},Lx={class:"level is-mobile"},Rx={class:"level-item"},Ox={class:"title"},Ix={class:"level-item"},Nx={class:"icon"},Dx={class:"column is-one-third"},Fx={class:"card"},Px={class:"card-content"},Wx={class:"level is-mobile"},Bx={class:"level-item"},zx={class:"title"},jx={class:"level-item"},Hx={class:"icon"},Ux=Ce({__name:"OverviewCards",setup(e){const t=go(),n=Yf(),i=Wl();return ct(()=>{t.perform({q:"",page:1,limit:0}),n.perform({q:"",page:1,limit:0}),i.perform({q:"",page:1,limit:0})}),(s,a)=>{var g,l,p,o,r,c;const d=Xe("font-awesome-icon");return Y(),ie("div",bx,[D("div",wx,[D("div",_x,[D("div",Sx,[D("div",xx,[D("div",Cx,[D("div",null,[a[0]||(a[0]=D("h3",{class:"subtitle is-spaced"},"Rules",-1)),D("h1",$x,Se(((l=(g=ce(n).last)==null?void 0:g.value)==null?void 0:l.total)??"N/A"),1)])]),D("div",Ax,[D("span",kx,[se(d,{icon:"file",size:"2x"})])])])])])]),D("div",Mx,[D("div",Ex,[D("div",Tx,[D("div",Lx,[D("div",Rx,[D("div",null,[a[1]||(a[1]=D("h3",{class:"subtitle is-spaced"},"Alerts",-1)),D("h1",Ox,Se(((o=(p=ce(t).last)==null?void 0:p.value)==null?void 0:o.total)??"N/A"),1)])]),D("div",Ix,[D("span",Nx,[se(d,{icon:"bell",size:"2x"})])])])])])]),D("div",Dx,[D("div",Fx,[D("div",Px,[D("div",Wx,[D("div",Bx,[D("div",null,[a[2]||(a[2]=D("h3",{class:"subtitle is-spaced"},"Artifacts",-1)),D("h1",zx,Se(((c=(r=ce(i).last)==null?void 0:r.value)==null?void 0:c.total)??"N/A"),1)])]),D("div",jx,[D("span",Hx,[se(d,{icon:"ticket",size:"2x"})])])])])])])])}}}),Vx=Ce({__name:"AlertsView",setup(e){return Cn("Alerts - Mihari"),(t,n)=>(Y(),ie(Pe,null,[se(Ux),n[0]||(n[0]=D("hr",null,null,-1)),se(yx)],64))}}),ip=Ce({__name:"AlertsWithPagination",props:{ruleId:{type:String,required:!0},excludeAlertId:{type:Number,required:!1}},setup(e){const t=e,n=He(1),i=ke(()=>t.excludeAlertId?`rule.id:"${t.ruleId}" AND NOT id:${t.excludeAlertId}`:`rule.id:"${t.ruleId}"`),s=go(),a=async()=>{const g={q:i.value,page:n.value};return await s.perform(g)},d=g=>{n.value=g};return ct(async()=>{await a()}),Je([t,n],async()=>{await a()}),(g,l)=>{var p,o;return Y(),ie(Pe,null,[ce(s).isRunning?(Y(),xe($n,{key:0})):ge("",!0),ce(s).isError?(Y(),xe(mt,{key:1,error:(p=ce(s).last)==null?void 0:p.error},null,8,["error"])):ge("",!0),(o=ce(s).last)!=null&&o.value?(Y(),xe(np,{key:2,page:n.value.toString(),alerts:ce(s).last.value,onUpdatePage:d},null,8,["page","alerts"])):ge("",!0)],64)}}}),Gx={class:"block"},Yx={class:"is-size-2"},Kx={class:"is-clearfix"},Zx={class:"table is-fullwidth is-completely-borderless"},Xx={key:0},Qx={class:"help"},qx={class:"block"},Jx=Ce({__name:"AlertDetail",props:{alert:{type:Object,required:!0}},emits:["delete"],setup(e,{emit:t}){const n=t,i=He(),s=l=>{i.value=l},a=()=>{i.value=void 0},d=()=>{n("delete")},g=d;return(l,p)=>{const o=Xe("router-link");return Y(),ie(Pe,null,[i.value?(Y(),xe(mt,{key:0,class:"block",error:i.value,disposable:!0,onDispose:a},null,8,["error"])):ge("",!0),D("div",Gx,[D("h2",Yx,Se(e.alert.id),1),D("p",Kx,[se(Zf,{alert:e.alert,onDelete:d,onSetError:s},null,8,["alert"])]),D("table",Zx,[D("tr",null,[p[0]||(p[0]=D("th",null,"Rule",-1)),D("td",null,[se(o,{to:{name:"Rule",params:{id:e.alert.ruleId}}},{default:nt(()=>[it(Se(e.alert.ruleId),1)]),_:1},8,["to"])])]),D("tr",null,[p[1]||(p[1]=D("th",null,"Artifacts",-1)),D("td",null,[se(Xf,{artifacts:e.alert.artifacts,onDelete:ce(g)},null,8,["artifacts","onDelete"])])]),e.alert.tags.length>0?(Y(),ie("tr",Xx,[p[2]||(p[2]=D("th",null,"Tags",-1)),D("td",null,[se(Xr,{tags:e.alert.tags,"navigate-to":"Alerts"},null,8,["tags"])])])):ge("",!0)]),D("p",Qx,"Created at: "+Se(e.alert.createdAt),1)]),p[4]||(p[4]=D("hr",null,null,-1)),D("div",qx,[p[3]||(p[3]=D("h2",{class:"is-size-2 block"},"Related Alerts",-1)),se(ip,{"rule-id":e.alert.ruleId,"exclude-alert-id":e.alert.id},null,8,["rule-id","exclude-alert-id"])])],64)}}}),eC=Ce({__name:"AlertDetailWrapper",props:{id:{type:Number,required:!0}},setup(e){const t=e,n=zi(),i=bS(),s=()=>{n.push("/")};return ct(async()=>{await i.perform(t.id)}),(a,d)=>{var g,l;return Y(),ie(Pe,null,[ce(i).isRunning?(Y(),xe($n,{key:0})):ge("",!0),ce(i).isError?(Y(),xe(mt,{key:1,error:(g=ce(i).last)==null?void 0:g.error},null,8,["error"])):ge("",!0),(l=ce(i).last)!=null&&l.value?(Y(),xe(Jx,{key:2,alert:ce(i).last.value,onDelete:s},null,8,["alert"])):ge("",!0)],64)}}}),tC=Ce({__name:"AlertView",props:{id:{type:String,required:!0}},setup(e){const t=e,n=()=>{Cn(`Alert:${t.id} - Mihari`)};return ct(()=>{n()}),Je(()=>t.id,()=>{n()}),(i,s)=>(Y(),xe(eC,{id:parseInt(e.id)},null,8,["id"]))}}),nC={class:"buttons is-pulled-right"},iC=["href"],rC={class:"icon is-small"},sC={class:"icon is-small"},oC={class:"icon is-small"},aC={class:"icon is-small"},lC={key:0},cC={class:"modal is-active"},uC={class:"modal-card"},hC={class:"modal-card-head"},dC={class:"modal-card-body"},fC=Ce({__name:"ActionButtons",props:{artifact:{type:Object,required:!0}},emits:["delete","set-error","set-message"],setup(e,{emit:t}){const n=e,i=t,s=ke(()=>`/api/artifacts/${n.artifact.id}`),a=He(!1),d=Gf(),g=dS(),l=async()=>{if(window.confirm(`Are you sure you want to delete ${n.artifact.data}?`))try{await d.perform(n.artifact.id),i("delete")}catch(c){tt.isAxiosError(c)&&i("set-error",c)}},p=async()=>{try{const r=await g.perform(n.artifact.id);i("set-message",r)}catch(r){tt.isAxiosError(r)&&i("set-error",r)}},o=Ur(a);return(r,c)=>{const u=Xe("font-awesome-icon");return Y(),ie(Pe,null,[D("span",nC,[D("a",{class:"button is-link is-light is-small",href:s.value,target:"_blank"},[c[3]||(c[3]=D("span",null,"JSON",-1)),D("span",rC,[se(u,{icon:"barcode"})])],8,iC),e.artifact.metadata?(Y(),ie("button",{key:0,class:"button is-info is-light is-small",onClick:c[0]||(c[0]=h=>ce(o)())},[c[4]||(c[4]=D("span",null,"Metadata",-1)),D("span",sC,[se(u,{icon:"info-circle"})])])):ge("",!0),D("button",{class:"button is-primary is-light is-small",onClick:p},[c[5]||(c[5]=D("span",null,"Enrich",-1)),D("span",oC,[ce(g).isRunning?(Y(),xe(u,{key:0,icon:"spinner",spin:""})):(Y(),xe(u,{key:1,icon:"lightbulb"}))])]),D("button",{class:"button is-light is-small",onClick:l},[c[6]||(c[6]=D("span",null,"Delete",-1)),D("span",aC,[se(u,{icon:"times"})])])]),e.artifact.metadata&&a.value?(Y(),ie("div",lC,[D("div",cC,[D("div",{class:"modal-background",onClick:c[1]||(c[1]=h=>ce(o)())}),D("div",uC,[D("header",hC,[c[7]||(c[7]=D("p",{class:"modal-card-title"},"Metadata",-1)),D("button",{class:"delete","aria-label":"close",onClick:c[2]||(c[2]=h=>ce(o)())})]),D("section",dC,[se(ce(tp),{data:e.artifact.metadata},null,8,["data"])])])])])):ge("",!0)],64)}}}),rp=Vr(fC,[["__scopeId","data-v-dac610f8"]]),pC={class:"notification is-info is-light"},mo=Ce({__name:"MessageItem",props:{message:{type:Object,required:!0},disposable:{type:Boolean,default:!1}},emits:["dispose"],setup(e,{emit:t}){const n=t,i=()=>{n("dispose")};return(s,a)=>(Y(),ie("div",pC,[e.disposable?(Y(),ie("button",{key:0,class:"delete",onClick:i})):ge("",!0),D("p",null,Se(e.message.message),1)]))}}),gC={class:"box"},mC={class:"block"},vC={class:"table is-fullwidth is-completely-borderless"},yC={key:0},bC={class:"help"},wC=Ce({__name:"ArtifactItem",props:{artifact:{type:Object,required:!0}},emits:["delete"],setup(e,{emit:t}){const n=t,i=He(),s=He(),a=o=>{i.value=o},d=()=>{i.value=void 0},g=()=>{n("delete")},l=o=>{o.queued&&(s.value=o)},p=()=>{s.value=void 0};return(o,r)=>{const c=Xe("router-link");return Y(),ie("div",gC,[i.value?(Y(),xe(mt,{key:0,class:"block",error:i.value,disposable:!0,onDispose:d},null,8,["error"])):ge("",!0),s.value?(Y(),xe(mo,{key:1,class:"block",message:s.value,disposable:!0,onDispose:p},null,8,["message"])):ge("",!0),D("div",mC,[D("p",null,[se(rp,{artifact:e.artifact,onDelete:g,onSetError:a,onSetMessage:l},null,8,["artifact"])]),se(c,{class:"is-size-4",to:{name:"Artifact",params:{id:e.artifact.id}}},{default:nt(()=>[it(Se(e.artifact.id),1)]),_:1},8,["to"])]),D("table",vC,[D("tr",null,[r[0]||(r[0]=D("th",null,"Data",-1)),D("td",null,Se(e.artifact.data),1)]),D("tr",null,[r[1]||(r[1]=D("th",null,"Data Type",-1)),D("td",null,Se(e.artifact.dataType),1)]),D("tr",null,[r[2]||(r[2]=D("th",null,"Source",-1)),D("td",null,Se(e.artifact.source),1)]),D("tr",null,[r[3]||(r[3]=D("th",null,"Query",-1)),D("td",null,Se(ce(Dr)(e.artifact.query||"N/A",64)),1)]),e.artifact.tags.length>0?(Y(),ie("tr",yC,[r[4]||(r[4]=D("th",null,"Tags",-1)),D("td",null,[se(Xr,{tags:e.artifact.tags,"navigate-to":"Artifacts"},null,8,["tags"])])])):ge("",!0)]),r[5]||(r[5]=D("p",{class:"block is-clearfix"},null,-1)),D("p",bC,"Created at: "+Se(e.artifact.createdAt),1)])}}}),_C={key:0},SC={class:"help"},xC={key:1},CC=Ce({__name:"ArtifactsItem",props:{artifacts:{type:Object,required:!0}},emits:["refresh","update-page"],setup(e,{emit:t}){const n=e,i=t,s=ke(()=>n.artifacts.results.length>0),a=g=>{i("update-page",g)},d=()=>{i("refresh")};return(g,l)=>s.value?(Y(),ie("div",_C,[(Y(!0),ie(Pe,null,Pt(e.artifacts.results,p=>(Y(),xe(wC,{artifact:p,key:p.id,onDelete:d},null,8,["artifact"]))),128)),se(Bl,{total:e.artifacts.total,currentPage:e.artifacts.currentPage,pageSize:e.artifacts.pageSize,onUpdatePage:a},null,8,["total","currentPage","pageSize"]),D("p",SC," ("+Se(e.artifacts.total)+" results in total, "+Se(e.artifacts.results.length)+" shown) ",1)])):(Y(),ie("div",xC,l[0]||(l[0]=[D("div",{class:"notification is-warning is-light"},"There is no artifact to show",-1)])))}}),$C={class:"block"},AC={class:"field has-addons"},kC={class:"control is-expanded"},MC={class:"control"},EC={class:"icon is-small"},TC={class:"control"},LC={class:"icon is-small"},RC={key:0,class:"content mt-3"},OC={key:0,class:"block"},IC=Ce({__name:"ArtifactsWrapper",setup(e){const t=Ii("page","1"),n=Ii("q",""),i=He(!1),s=Wl(),a=async()=>{const o={q:n.value,page:parseInt(t.value)};return await s.perform(o)},d=o=>{t.value=o.toString()},g=async()=>{t.value="1",await a()},l=g,p=Ur(i);return ct(async()=>{await a()}),Je(t,async()=>{await a()}),Je(n,async()=>{window.scrollTo({top:0,behavior:"smooth"})}),(o,r)=>{var u,h;const c=Xe("font-awesome-icon");return Y(),ie(Pe,null,[D("div",$C,[D("div",AC,[D("p",kC,[ml(D("input",{class:"input",type:"text","onUpdate:modelValue":r[0]||(r[0]=f=>lt(n)?n.value=f:null)},null,512),[[Al,ce(n)]])]),D("p",MC,[D("a",{class:"button is-primary",onClick:g},[D("span",EC,[se(c,{icon:"search"})]),r[2]||(r[2]=D("span",null,"Search",-1))])]),D("p",TC,[D("a",{class:"button is-info",onClick:r[1]||(r[1]=f=>ce(p)())},[D("span",LC,[se(c,{icon:"question"})]),r[3]||(r[3]=D("span",null,"Help",-1))])])]),i.value?(Y(),ie("div",RC,r[4]||(r[4]=[xl('

Help

  • Search query supports AND, OR, :, =, !=, <, <=, >, >=, NOT and ().
  • id, data, data_type, source, query, tag, rule.id, rule.title, rule.description, tag,created_at, asn, country_code, dns_record.value, dns_record.resource, reverse_dns_name, cpe, vuln and port.
',2)]))):ge("",!0)]),ce(s).performCount>0?(Y(),ie("div",OC,[ce(s).isRunning?(Y(),xe($n,{key:0})):ge("",!0),ce(s).isError?(Y(),xe(mt,{key:1,error:(u=ce(s).last)==null?void 0:u.error},null,8,["error"])):ge("",!0),(h=ce(s).last)!=null&&h.value?(Y(),xe(CC,{key:2,artifacts:ce(s).last.value,onUpdatePage:d,onRefresh:ce(l)},null,8,["artifacts","onRefresh"])):ge("",!0)])):ge("",!0)],64)}}}),NC=Ce({__name:"ArtifactsView",setup(e){const t=()=>{Cn("Artifacts - Mihari")};return ct(()=>{t()}),(n,i)=>(Y(),xe(IC))}}),DC={class:"tags are-medium"},FC=Ce({__name:"AsItem",props:{autonomousSystem:{type:Object,required:!0}},setup(e){const t=n=>`asn:${n}`;return(n,i)=>{const s=Xe("router-link");return Y(),ie("div",DC,[se(s,{class:"tag",to:{name:"Artifacts",query:{q:t(e.autonomousSystem.number)}}},{default:nt(()=>[it(Se(e.autonomousSystem.number),1)]),_:1},8,["to"])])}}}),PC={class:"tags are-medium"},WC=Ce({__name:"CpesItem",props:{cpes:{type:Array,required:!0}},setup(e){const t=n=>`cpe:"${n}"`;return(n,i)=>{const s=Xe("router-link");return Y(),ie("div",PC,[(Y(!0),ie(Pe,null,Pt(e.cpes,a=>(Y(),xe(s,{class:"tag",key:a.name,to:{name:"Artifacts",query:{q:t(a.name)}}},{default:nt(()=>[it(Se(a.name),1)]),_:2},1032,["to"]))),128))])}}}),BC={class:"field is-grouped is-grouped-multiline"},zC={class:"tags has-addons are-medium"},jC={class:"tag is-dark"},HC=Ce({__name:"DnsRecordsItem",props:{dnsRecords:{type:Array,required:!0}},setup(e){const t=({resource:n,value:i})=>`dns_record.value:"${i}" AND dns_record.resource:"${n}"`;return(n,i)=>{const s=Xe("router-link");return Y(),ie("div",BC,[(Y(!0),ie(Pe,null,Pt(e.dnsRecords,(a,d)=>(Y(),ie("div",{class:"control",key:d},[D("div",zC,[D("span",jC,Se(a.resource),1),se(s,{class:"tag",to:{name:"Artifacts",query:{q:t({resource:a.resource,value:a.value})}}},{default:nt(()=>[it(Se(ce(Dr)(a.value,50)),1)]),_:2},1032,["to"])])]))),128))])}}}),UC={class:"tags are-medium"},VC=Ce({__name:"PortsItem",props:{ports:{type:Array,required:!0}},setup(e){const t=n=>`port:${n}`;return(n,i)=>{const s=Xe("router-link");return Y(),ie("div",UC,[(Y(!0),ie(Pe,null,Pt(e.ports,a=>(Y(),xe(s,{class:"tag",key:a.number,to:{name:"Artifacts",query:{q:t(a.number)}}},{default:nt(()=>[it(Se(a.number),1)]),_:2},1032,["to"]))),128))])}}}),GC={class:"tags are-medium"},YC=Ce({__name:"ReverseDnsNames",props:{reverseDnsNames:{type:Array,required:!0}},setup(e){const t=n=>`reverse_dns_name:"${n}"`;return(n,i)=>{const s=Xe("router-link");return Y(),ie("div",GC,[(Y(!0),ie(Pe,null,Pt(e.reverseDnsNames,a=>(Y(),xe(s,{class:"tag",key:a.name,to:{name:"Artifacts",query:{q:t(a.name)}}},{default:nt(()=>[it(Se(a.name),1)]),_:2},1032,["to"]))),128))])}}}),KC={class:"tags are-medium"},ZC=Ce({__name:"VulnerabilitiesItem",props:{vulnerabilities:{type:Array,required:!0}},setup(e){const t=n=>`vuln:"${n}"`;return(n,i)=>{const s=Xe("router-link");return Y(),ie("div",KC,[(Y(!0),ie(Pe,null,Pt(e.vulnerabilities,a=>(Y(),xe(s,{class:"tag",key:a.name,to:{name:"Artifacts",query:{q:t(a.name)}}},{default:nt(()=>[it(Se(a.name),1)]),_:2},1032,["to"]))),128))])}}}),XC={class:"field is-grouped is-grouped-multiline"},QC={class:"control"},qC={class:"tags has-addons are-medium"},JC={class:"tag"},e$={class:"control"},t$={class:"tags has-addons are-medium"},n$={class:"tag"},i$={class:"control"},r$={class:"tags has-addons are-medium"},s$={class:"tag"},o$={class:"control"},a$={class:"tags has-addons are-medium"},l$={class:"tag"},c$=Ce({__name:"WhoisRecord",props:{whoisRecord:{type:Object,required:!0}},setup(e){return(t,n)=>{var i;return Y(),ie("div",XC,[D("div",QC,[D("div",qC,[n[0]||(n[0]=D("span",{class:"tag is-dark"},"Registrar",-1)),D("span",JC,Se(((i=e.whoisRecord.registrar)==null?void 0:i.name)||"N/A"),1)])]),D("div",e$,[D("div",t$,[n[1]||(n[1]=D("span",{class:"tag is-dark"},"Created on",-1)),D("span",n$,Se(e.whoisRecord.createdOn||"N/A"),1)])]),D("div",i$,[D("div",r$,[n[2]||(n[2]=D("span",{class:"tag is-dark"},"Updated on",-1)),D("span",s$,Se(e.whoisRecord.updatedOn||"N/A"),1)])]),D("div",o$,[D("div",a$,[n[3]||(n[3]=D("span",{class:"tag is-dark"},"Expires on",-1)),D("span",l$,Se(e.whoisRecord.expiresOn||"N/A"),1)])])])}}}),u$=["href"],h$=["src"],d$=Ce({__name:"LinkItem",props:{data:{type:String,required:!0},link:{type:Object,required:!0}},setup(e){const t=Wd();return(n,i)=>(Y(),ie("a",{href:e.link.href(e.data),class:Br(["tag",ce(t)?"":"is-white"]),target:"_blank"},[D("img",{src:e.link.favicon(),alt:"favicon"},null,8,h$),D("span",null,Se(e.link.name),1)],10,u$))}}),f$=Vr(d$,[["__scopeId","data-v-d0b695fc"]]);class Bt{constructor(){Ne(this,"baseURL");this.baseURL="https://example.com"}favicon(){return"https://t0.gstatic.com/faviconV2?client=SOCIAL&type=FAVICON&fallback_opts=TYPE,SIZE,URL&url="+this.baseURL}}class p$ extends Bt{constructor(){super();Ne(this,"baseURL");Ne(this,"name");Ne(this,"type");this.baseURL="https://app.any.run",this.name="ANY.RUN",this.type="hash"}href(n){return this.baseURL+`/submissions/#filehash:${n}`}}class g$ extends Bt{constructor(){super();Ne(this,"baseURL");Ne(this,"name");Ne(this,"type");this.baseURL="https://search.censys.io",this.name="Censys",this.type="ip"}href(n){return this.baseURL+`/hosts/${n}`}}class m$ extends Bt{constructor(){super();Ne(this,"baseURL");Ne(this,"name");Ne(this,"type");this.baseURL="https://crt.sh",this.name="crt.sh",this.type="domain"}href(n){return this.baseURL+`/?q=${n}`}}class v$ extends Bt{constructor(){super();Ne(this,"baseURL");Ne(this,"name");Ne(this,"type");this.baseURL="https://dnslytics.com",this.name="DNSlytics",this.type="ip"}href(n){return this.baseURL+`/ip/${n}`}}class y$ extends Bt{constructor(){super();Ne(this,"baseURL");Ne(this,"name");Ne(this,"type");this.baseURL="https://dnslytics.com",this.name="DNSlytics",this.type="domain"}href(n){return this.baseURL+`/domain/${n}`}}class b$ extends Bt{constructor(){super();Ne(this,"baseURL");Ne(this,"name");Ne(this,"type");this.baseURL="https://emailrep.io",this.name="EmailRep",this.type="mail"}href(n){return this.baseURL+`/${n}`}}class w$ extends Bt{constructor(){super();Ne(this,"baseURL");Ne(this,"name");Ne(this,"type");this.baseURL="https://viz.greynoise.io",this.name="GreyNoise",this.type="ip"}href(n){return this.baseURL+`/ip/${n}`}}class _$ extends Bt{constructor(){super();Ne(this,"baseURL");Ne(this,"name");Ne(this,"type");this.baseURL="https://analyze.intezer.com",this.name="Intezer",this.type="hash"}href(n){return this.baseURL+`/#/files/${n}`}}class sp extends Bt{constructor(){super();Ne(this,"baseURL");Ne(this,"name");Ne(this,"type");this.baseURL="https://otx.alienvault.com",this.name="OTX",this.type="ip"}href(n){return this.baseURL+`/indicator/ip/${n}`}}class S$ extends sp{constructor(){super();Ne(this,"type");this.type="domain"}href(n){return this.baseURL+`/indicator/domain/${n}`}}class op extends Bt{constructor(){super();Ne(this,"baseURL");Ne(this,"name");Ne(this,"type");this.baseURL="https://securitytrails.com",this.name="SecurityTrails",this.type="domain"}}class x$ extends op{constructor(){super(),this.type="domain"}href(t){return this.baseURL+`/domain/${t}/dns`}}class C$ extends op{constructor(){super(),this.type="ip"}href(t){return this.baseURL+`/list/ip/${t}`}}class $$ extends Bt{constructor(){super();Ne(this,"baseURL");Ne(this,"name");Ne(this,"type");this.baseURL="https://www.shodan.io",this.name="Shodan",this.type="ip"}href(n){return this.baseURL+`/host/${n}`}}class zl extends Bt{constructor(){super();Ne(this,"baseURL");Ne(this,"name");Ne(this,"type");this.baseURL="https://urlscan.io",this.name="urlscan.io",this.type="domain"}}class A$ extends zl{constructor(){super(),this.type="domain"}href(t){return this.baseURL+`/domain/${t}`}}class k$ extends zl{constructor(){super(),this.type="ip"}href(t){return this.baseURL+`/ip/${t}`}}class M$ extends zl{constructor(){super(),this.type="url"}href(t){const n=encodeURIComponent(`page.url:"${t}" OR task.url:"${t}"`);return this.baseURL+`/search/#${n}`}}var di=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ui(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function E$(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function i(){return this instanceof i?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(i){var s=Object.getOwnPropertyDescriptor(e,i);Object.defineProperty(n,i,s.get?s:{enumerable:!0,get:function(){return e[i]}})}),n}var ap={exports:{}};const T$={},L$=Object.freeze(Object.defineProperty({__proto__:null,default:T$},Symbol.toStringTag,{value:"Module"})),Fu=E$(L$);/** * [js-sha256]{@link https://github.com/emn178/js-sha256} * * @version 0.11.0 * @author Chen, Yi-Cyuan [emn178@gmail.com] * @copyright Chen, Yi-Cyuan 2014-2024 * @license MIT */(function(e){(function(){var t="input is invalid type",n=typeof window=="object",i=n?window:{};i.JS_SHA256_NO_WINDOW&&(n=!1);var s=!n&&typeof self=="object",a=!i.JS_SHA256_NO_NODE_JS&&typeof process=="object"&&process.versions&&process.versions.node;a?i=di:s&&(i=self);var d=!i.JS_SHA256_NO_COMMON_JS&&!0&&e.exports,g=!i.JS_SHA256_NO_ARRAY_BUFFER&&typeof ArrayBuffer<"u",l="0123456789abcdef".split(""),p=[-2147483648,8388608,32768,128],o=[24,16,8,0],r=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],c=["hex","array","digest","arrayBuffer"],u=[];(i.JS_SHA256_NO_NODE_JS||!Array.isArray)&&(Array.isArray=function(b){return Object.prototype.toString.call(b)==="[object Array]"}),g&&(i.JS_SHA256_NO_ARRAY_BUFFER_IS_VIEW||!ArrayBuffer.isView)&&(ArrayBuffer.isView=function(b){return typeof b=="object"&&b.buffer&&b.buffer.constructor===ArrayBuffer});var h=function(b,M){return function(O){return new $(M,!0).update(O)[b]()}},f=function(b){var M=h("hex",b);a&&(M=m(M,b)),M.create=function(){return new $(b)},M.update=function(T){return M.create().update(T)};for(var O=0;O>>2]|=b[T]<>>2]|=L<>>2]|=(192|L>>>6)<>>2]|=(128|L&63)<=57344?(C[k>>>2]|=(224|L>>>12)<>>2]|=(128|L>>>6&63)<>>2]|=(128|L&63)<>>2]|=(240|L>>>18)<>>2]|=(128|L>>>12&63)<>>2]|=(128|L>>>6&63)<>>2]|=(128|L&63)<=64?(this.block=C[16],this.start=k-64,this.hash(),this.hashed=!0):this.start=k}return this.bytes>4294967295&&(this.hBytes+=this.bytes/4294967296<<0,this.bytes=this.bytes%4294967296),this}},$.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var b=this.blocks,M=this.lastByteIndex;b[16]=this.block,b[M>>>2]|=p[M&3],this.block=b[16],M>=56&&(this.hashed||this.hash(),b[0]=this.block,b[16]=b[1]=b[2]=b[3]=b[4]=b[5]=b[6]=b[7]=b[8]=b[9]=b[10]=b[11]=b[12]=b[13]=b[14]=b[15]=0),b[14]=this.hBytes<<3|this.bytes>>>29,b[15]=this.bytes<<3,this.hash()}},$.prototype.hash=function(){var b=this.h0,M=this.h1,O=this.h2,L=this.h3,T=this.h4,k=this.h5,x=this.h6,C=this.h7,w=this.blocks,A,E,R,I,N,F,z,U,j,B,V;for(A=16;A<64;++A)N=w[A-15],E=(N>>>7|N<<25)^(N>>>18|N<<14)^N>>>3,N=w[A-2],R=(N>>>17|N<<15)^(N>>>19|N<<13)^N>>>10,w[A]=w[A-16]+E+w[A-7]+R<<0;for(V=M&O,A=0;A<64;A+=4)this.first?(this.is224?(U=300032,N=w[0]-1413257819,C=N-150054599<<0,L=N+24177077<<0):(U=704751109,N=w[0]-210244248,C=N-1521486534<<0,L=N+143694565<<0),this.first=!1):(E=(b>>>2|b<<30)^(b>>>13|b<<19)^(b>>>22|b<<10),R=(T>>>6|T<<26)^(T>>>11|T<<21)^(T>>>25|T<<7),U=b&M,I=U^b&O^V,z=T&k^~T&x,N=C+R+z+r[A]+w[A],F=E+I,C=L+N<<0,L=N+F<<0),E=(L>>>2|L<<30)^(L>>>13|L<<19)^(L>>>22|L<<10),R=(C>>>6|C<<26)^(C>>>11|C<<21)^(C>>>25|C<<7),j=L&b,I=j^L&M^U,z=C&T^~C&k,N=x+R+z+r[A+1]+w[A+1],F=E+I,x=O+N<<0,O=N+F<<0,E=(O>>>2|O<<30)^(O>>>13|O<<19)^(O>>>22|O<<10),R=(x>>>6|x<<26)^(x>>>11|x<<21)^(x>>>25|x<<7),B=O&L,I=B^O&b^j,z=x&C^~x&T,N=k+R+z+r[A+2]+w[A+2],F=E+I,k=M+N<<0,M=N+F<<0,E=(M>>>2|M<<30)^(M>>>13|M<<19)^(M>>>22|M<<10),R=(k>>>6|k<<26)^(k>>>11|k<<21)^(k>>>25|k<<7),V=M&O,I=V^M&L^B,z=k&x^~k&C,N=T+R+z+r[A+3]+w[A+3],F=E+I,T=b+N<<0,b=N+F<<0,this.chromeBugWorkAround=!0;this.h0=this.h0+b<<0,this.h1=this.h1+M<<0,this.h2=this.h2+O<<0,this.h3=this.h3+L<<0,this.h4=this.h4+T<<0,this.h5=this.h5+k<<0,this.h6=this.h6+x<<0,this.h7=this.h7+C<<0},$.prototype.hex=function(){this.finalize();var b=this.h0,M=this.h1,O=this.h2,L=this.h3,T=this.h4,k=this.h5,x=this.h6,C=this.h7,w=l[b>>>28&15]+l[b>>>24&15]+l[b>>>20&15]+l[b>>>16&15]+l[b>>>12&15]+l[b>>>8&15]+l[b>>>4&15]+l[b&15]+l[M>>>28&15]+l[M>>>24&15]+l[M>>>20&15]+l[M>>>16&15]+l[M>>>12&15]+l[M>>>8&15]+l[M>>>4&15]+l[M&15]+l[O>>>28&15]+l[O>>>24&15]+l[O>>>20&15]+l[O>>>16&15]+l[O>>>12&15]+l[O>>>8&15]+l[O>>>4&15]+l[O&15]+l[L>>>28&15]+l[L>>>24&15]+l[L>>>20&15]+l[L>>>16&15]+l[L>>>12&15]+l[L>>>8&15]+l[L>>>4&15]+l[L&15]+l[T>>>28&15]+l[T>>>24&15]+l[T>>>20&15]+l[T>>>16&15]+l[T>>>12&15]+l[T>>>8&15]+l[T>>>4&15]+l[T&15]+l[k>>>28&15]+l[k>>>24&15]+l[k>>>20&15]+l[k>>>16&15]+l[k>>>12&15]+l[k>>>8&15]+l[k>>>4&15]+l[k&15]+l[x>>>28&15]+l[x>>>24&15]+l[x>>>20&15]+l[x>>>16&15]+l[x>>>12&15]+l[x>>>8&15]+l[x>>>4&15]+l[x&15];return this.is224||(w+=l[C>>>28&15]+l[C>>>24&15]+l[C>>>20&15]+l[C>>>16&15]+l[C>>>12&15]+l[C>>>8&15]+l[C>>>4&15]+l[C&15]),w},$.prototype.toString=$.prototype.hex,$.prototype.digest=function(){this.finalize();var b=this.h0,M=this.h1,O=this.h2,L=this.h3,T=this.h4,k=this.h5,x=this.h6,C=this.h7,w=[b>>>24&255,b>>>16&255,b>>>8&255,b&255,M>>>24&255,M>>>16&255,M>>>8&255,M&255,O>>>24&255,O>>>16&255,O>>>8&255,O&255,L>>>24&255,L>>>16&255,L>>>8&255,L&255,T>>>24&255,T>>>16&255,T>>>8&255,T&255,k>>>24&255,k>>>16&255,k>>>8&255,k&255,x>>>24&255,x>>>16&255,x>>>8&255,x&255];return this.is224||w.push(C>>>24&255,C>>>16&255,C>>>8&255,C&255),w},$.prototype.array=$.prototype.digest,$.prototype.arrayBuffer=function(){this.finalize();var b=new ArrayBuffer(this.is224?28:32),M=new DataView(b);return M.setUint32(0,this.h0),M.setUint32(4,this.h1),M.setUint32(8,this.h2),M.setUint32(12,this.h3),M.setUint32(16,this.h4),M.setUint32(20,this.h5),M.setUint32(24,this.h6),this.is224||M.setUint32(28,this.h7),b};function _(b,M,O){var L,T=typeof b;if(T==="string"){var k=[],x=b.length,C=0,w;for(L=0;L>>6,k[C++]=128|w&63):w<55296||w>=57344?(k[C++]=224|w>>>12,k[C++]=128|w>>>6&63,k[C++]=128|w&63):(w=65536+((w&1023)<<10|b.charCodeAt(++L)&1023),k[C++]=240|w>>>18,k[C++]=128|w>>>12&63,k[C++]=128|w>>>6&63,k[C++]=128|w&63);b=k}else if(T==="object"){if(b===null)throw new Error(t);if(g&&b.constructor===ArrayBuffer)b=new Uint8Array(b);else if(!Array.isArray(b)&&(!g||!ArrayBuffer.isView(b)))throw new Error(t)}else throw new Error(t);b.length>64&&(b=new $(M,!0).update(b).array());var A=[],E=[];for(L=0;L<64;++L){var R=b[L]||0;A[L]=92^R,E[L]=54^R}$.call(this,M,O),this.update(E),this.oKeyPad=A,this.inner=!0,this.sharedMemory=O}_.prototype=new $,_.prototype.finalize=function(){if($.prototype.finalize.call(this),this.inner){this.inner=!1;var b=this.array();$.call(this,this.is224,this.sharedMemory),this.update(this.oKeyPad),this.update(b),$.prototype.finalize.call(this)}};var S=f();S.sha256=S,S.sha224=f(!0),S.sha256.hmac=y(),S.sha224.hmac=y(!0),d?e.exports=S:(i.sha256=S.sha256,i.sha224=S.sha224)})()})(ap);var R$=ap.exports,O$=function(t,n){if(n=n.split(":")[0],t=+t,!t)return!1;switch(n){case"http":case"ws":return t!==80;case"https":case"wss":return t!==443;case"ftp":return t!==21;case"gopher":return t!==70;case"file":return!1}return t!==0},jl={},I$=Object.prototype.hasOwnProperty,N$;function Pu(e){try{return decodeURIComponent(e.replace(/\+/g," "))}catch{return null}}function Wu(e){try{return encodeURIComponent(e)}catch{return null}}function D$(e){for(var t=/([^=?#&]+)=?([^&]*)/g,n={},i;i=t.exec(e);){var s=Pu(i[1]),a=Pu(i[2]);s===null||a===null||s in n||(n[s]=a)}return n}function F$(e,t){t=t||"";var n=[],i,s;typeof t!="string"&&(t="?");for(s in e)if(I$.call(e,s)){if(i=e[s],!i&&(i===null||i===N$||isNaN(i))&&(i=""),s=Wu(s),i=Wu(i),s===null||i===null)continue;n.push(s+"="+i)}return n.length?t+n.join("&"):""}jl.stringify=F$;jl.parse=D$;var lp=O$,vo=jl,P$=/^[\x00-\x20\u00a0\u1680\u2000-\u200a\u2028\u2029\u202f\u205f\u3000\ufeff]+/,cp=/[\n\r\t]/g,W$=/^[A-Za-z][A-Za-z0-9+-.]*:\/\//,up=/:\d+$/,B$=/^([a-z][a-z0-9.+-]*:)?(\/\/)?([\\/]+)?([\S\s]*)/i,z$=/^[a-zA-Z]:/;function Hl(e){return(e||"").toString().replace(P$,"")}var Ua=[["#","hash"],["?","query"],function(t,n){return rn(n.protocol)?t.replace(/\\/g,"/"):t},["/","pathname"],["@","auth",1],[NaN,"host",void 0,1,1],[/:(\d*)$/,"port",void 0,1],[NaN,"hostname",void 0,1,1]],Bu={hash:1,query:1};function hp(e){var t;typeof window<"u"?t=window:typeof di<"u"?t=di:typeof self<"u"?t=self:t={};var n=t.location||{};e=e||n;var i={},s=typeof e,a;if(e.protocol==="blob:")i=new un(unescape(e.pathname),{});else if(s==="string"){i=new un(e,{});for(a in Bu)delete i[a]}else if(s==="object"){for(a in e)a in Bu||(i[a]=e[a]);i.slashes===void 0&&(i.slashes=W$.test(e.href))}return i}function rn(e){return e==="file:"||e==="ftp:"||e==="http:"||e==="https:"||e==="ws:"||e==="wss:"}function dp(e,t){e=Hl(e),e=e.replace(cp,""),t=t||{};var n=B$.exec(e),i=n[1]?n[1].toLowerCase():"",s=!!n[2],a=!!n[3],d=0,g;return s?a?(g=n[2]+n[3]+n[4],d=n[2].length+n[3].length):(g=n[2]+n[4],d=n[2].length):a?(g=n[3]+n[4],d=n[3].length):g=n[4],i==="file:"?d>=2&&(g=g.slice(2)):rn(i)?g=n[4]:i?s&&(g=g.slice(2)):d>=2&&rn(t.protocol)&&(g=n[4]),{protocol:i,slashes:s||rn(i),slashesCount:d,rest:g}}function j$(e,t){if(e==="")return t;for(var n=(t||"/").split("/").slice(0,-1).concat(e.split("/")),i=n.length,s=n[i-1],a=!1,d=0;i--;)n[i]==="."?n.splice(i,1):n[i]===".."?(n.splice(i,1),d++):d&&(i===0&&(a=!0),n.splice(i,1),d--);return a&&n.unshift(""),(s==="."||s==="..")&&n.push(""),n.join("/")}function un(e,t,n){if(e=Hl(e),e=e.replace(cp,""),!(this instanceof un))return new un(e,t,n);var i,s,a,d,g,l,p=Ua.slice(),o=typeof t,r=this,c=0;for(o!=="object"&&o!=="string"&&(n=t,t=null),n&&typeof n!="function"&&(n=vo.parse),t=hp(t),s=dp(e||"",t),i=!s.protocol&&!s.slashes,r.slashes=s.slashes||i&&t.slashes,r.protocol=s.protocol||t.protocol||"",e=s.rest,(s.protocol==="file:"&&(s.slashesCount!==2||z$.test(e))||!s.slashes&&(s.protocol||s.slashesCount<2||!rn(r.protocol)))&&(p[3]=[/(.*)/,"pathname"]);cQ$.filter(i=>i.type===t.type));return(i,s)=>(Y(),ie("div",q$,[(Y(!0),ie(Pe,null,Pt(n.value,a=>(Y(),xe(f$,{data:e.data,link:a,key:a.name},null,8,["data","link"]))),128))]))}});var fp={exports:{}};(function(e,t){(function(n,i){e.exports=i()})(di,function(){var n=1e3,i=6e4,s=36e5,a="millisecond",d="second",g="minute",l="hour",p="day",o="week",r="month",c="quarter",u="year",h="date",f="Invalid Date",m=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,v=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,y={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(w){var A=["th","st","nd","rd"],E=w%100;return"["+w+(A[(E-20)%10]||A[E]||A[0])+"]"}},$=function(w,A,E){var R=String(w);return!R||R.length>=A?w:""+Array(A+1-R.length).join(E)+w},_={s:$,z:function(w){var A=-w.utcOffset(),E=Math.abs(A),R=Math.floor(E/60),I=E%60;return(A<=0?"+":"-")+$(R,2,"0")+":"+$(I,2,"0")},m:function w(A,E){if(A.date()1)return w(F[0])}else{var z=A.name;b[z]=A,I=z}return!R&&I&&(S=I),I||!R&&S},T=function(w,A){if(O(w))return w.clone();var E=typeof A=="object"?A:{};return E.date=w,E.args=arguments,new x(E)},k=_;k.l=L,k.i=O,k.w=function(w,A){return T(w,{locale:A.$L,utc:A.$u,x:A.$x,$offset:A.$offset})};var x=function(){function w(E){this.$L=L(E.locale,null,!0),this.parse(E),this.$x=this.$x||E.x||{},this[M]=!0}var A=w.prototype;return A.parse=function(E){this.$d=function(R){var I=R.date,N=R.utc;if(I===null)return new Date(NaN);if(k.u(I))return new Date;if(I instanceof Date)return new Date(I);if(typeof I=="string"&&!/Z$/i.test(I)){var F=I.match(m);if(F){var z=F[2]-1||0,U=(F[7]||"0").substring(0,3);return N?new Date(Date.UTC(F[1],z,F[3]||1,F[4]||0,F[5]||0,F[6]||0,U)):new Date(F[1],z,F[3]||1,F[4]||0,F[5]||0,F[6]||0,U)}}return new Date(I)}(E),this.init()},A.init=function(){var E=this.$d;this.$y=E.getFullYear(),this.$M=E.getMonth(),this.$D=E.getDate(),this.$W=E.getDay(),this.$H=E.getHours(),this.$m=E.getMinutes(),this.$s=E.getSeconds(),this.$ms=E.getMilliseconds()},A.$utils=function(){return k},A.isValid=function(){return this.$d.toString()!==f},A.isSame=function(E,R){var I=T(E);return this.startOf(R)<=I&&I<=this.endOf(R)},A.isAfter=function(E,R){return T(E)0,b<=S.r||!S.r){b<=1&&_>0&&(S=y[_-1]);var M=v[S.l];u&&(b=u(""+b)),f=typeof M=="string"?M.replace("%d",b):M(b,o,S.l,m);break}}if(o)return f;var O=m?v.future:v.past;return typeof O=="function"?O(f):O.replace("%s",f)},a.to=function(p,o){return g(p,o,this,!0)},a.from=function(p,o){return g(p,o,this)};var l=function(p){return p.$u?s.utc():s()};a.toNow=function(p){return this.to(l(this),p)},a.fromNow=function(p){return this.from(l(this),p)}}})})(pp);var tA=pp.exports;const nA=Ui(tA);var gp={exports:{}};(function(e,t){(function(n,i){e.exports=i()})(di,function(){var n={year:0,month:1,day:2,hour:3,minute:4,second:5},i={};return function(s,a,d){var g,l=function(c,u,h){h===void 0&&(h={});var f=new Date(c),m=function(v,y){y===void 0&&(y={});var $=y.timeZoneName||"short",_=v+"|"+$,S=i[_];return S||(S=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:v,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",timeZoneName:$}),i[_]=S),S}(u,h);return m.formatToParts(f)},p=function(c,u){for(var h=l(c,u),f=[],m=0;m=0&&(f[_]=parseInt($,10))}var S=f[3],b=S===24?0:S,M=f[0]+"-"+f[1]+"-"+f[2]+" "+b+":"+f[4]+":"+f[5]+":000",O=+c;return(d.utc(M).valueOf()-(O-=O%1e3))/6e4},o=a.prototype;o.tz=function(c,u){c===void 0&&(c=g);var h,f=this.utcOffset(),m=this.toDate(),v=m.toLocaleString("en-US",{timeZone:c}),y=Math.round((m-new Date(v))/1e3/60),$=15*-Math.round(m.getTimezoneOffset()/15)-y;if(!Number($))h=this.utcOffset(0,u);else if(h=d(v,{locale:this.$L}).$set("millisecond",this.$ms).utcOffset($,!0),u){var _=h.utcOffset();h=h.add(f-_,"minute")}return h.$x.$timezone=c,h},o.offsetName=function(c){var u=this.$x.$timezone||d.tz.guess(),h=l(this.valueOf(),u,{timeZoneName:c}).find(function(f){return f.type.toLowerCase()==="timezonename"});return h&&h.value};var r=o.startOf;o.startOf=function(c,u){if(!this.$x||!this.$x.$timezone)return r.call(this,c,u);var h=d(this.format("YYYY-MM-DD HH:mm:ss:SSS"),{locale:this.$L});return r.call(h,c,u).tz(this.$x.$timezone,!0)},d.tz=function(c,u,h){var f=h&&u,m=h||u||g,v=p(+d(),m);if(typeof c!="string")return d(c).tz(m);var y=function(b,M,O){var L=b-60*M*1e3,T=p(L,O);if(M===T)return[L,M];var k=p(L-=60*(T-M)*1e3,O);return T===k?[L,T]:[b-60*Math.min(T,k)*1e3,Math.max(T,k)]}(d.utc(c,f).valueOf(),v,m),$=y[0],_=y[1],S=d($).utcOffset(_);return S.$x.$timezone=m,S},d.tz.guess=function(){return Intl.DateTimeFormat().resolvedOptions().timeZone},d.tz.setDefault=function(c){g=c}}})})(gp);var iA=gp.exports;const rA=Ui(iA);var mp={exports:{}};(function(e,t){(function(n,i){e.exports=i()})(di,function(){var n="minute",i=/[+-]\d\d(?::?\d\d)?/g,s=/([+-]|\d\d)/g;return function(a,d,g){var l=d.prototype;g.utc=function(f){var m={date:f,utc:!0,args:arguments};return new d(m)},l.utc=function(f){var m=g(this.toDate(),{locale:this.$L,utc:!0});return f?m.add(this.utcOffset(),n):m},l.local=function(){return g(this.toDate(),{locale:this.$L,utc:!1})};var p=l.parse;l.parse=function(f){f.utc&&(this.$u=!0),this.$utils().u(f.$offset)||(this.$offset=f.$offset),p.call(this,f)};var o=l.init;l.init=function(){if(this.$u){var f=this.$d;this.$y=f.getUTCFullYear(),this.$M=f.getUTCMonth(),this.$D=f.getUTCDate(),this.$W=f.getUTCDay(),this.$H=f.getUTCHours(),this.$m=f.getUTCMinutes(),this.$s=f.getUTCSeconds(),this.$ms=f.getUTCMilliseconds()}else o.call(this)};var r=l.utcOffset;l.utcOffset=function(f,m){var v=this.$utils().u;if(v(f))return this.$u?0:v(this.$offset)?r.call(this):this.$offset;if(typeof f=="string"&&(f=function(S){S===void 0&&(S="");var b=S.match(i);if(!b)return null;var M=(""+b[0]).match(s)||["-",0,0],O=M[0],L=60*+M[1]+ +M[2];return L===0?0:O==="+"?L:-L}(f),f===null))return this;var y=Math.abs(f)<=16?60*f:f,$=this;if(m)return $.$offset=y,$.$u=f===0,$;if(f!==0){var _=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();($=this.local().add(y+_,n)).$offset=y,$.$x.$localOffset=_}else $=this.utc();return $};var c=l.format;l.format=function(f){var m=f||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return c.call(this,m)},l.valueOf=function(){var f=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*f},l.isUTC=function(){return!!this.$u},l.toISOString=function(){return this.toDate().toISOString()},l.toString=function(){return this.toDate().toUTCString()};var u=l.toDate;l.toDate=function(f){return f==="s"&&this.$offset?g(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():u.call(this)};var h=l.diff;l.diff=function(f,m,v){if(f&&this.$u===f.$u)return h.call(this,f,m,v);var y=this.local(),$=g(f).local();return h.call(y,$,m,v)}}})})(mp);var sA=mp.exports;const oA=Ui(sA),aA=[{name:"Afghanistan",lat:33.93911,long:67.709953,code:"AF"},{name:"Albania",lat:41.153332,long:20.168331,code:"AL"},{name:"Algeria",lat:28.033886,long:1.659626,code:"DZ"},{name:"American Samoa",lat:-14.270972,long:-170.132217,code:"AS"},{name:"Andorra",lat:42.546245,long:1.601554,code:"AD"},{name:"Angola",lat:-11.202692,long:17.873887,code:"AO"},{name:"Anguilla",lat:18.220554,long:-63.068615,code:"AI"},{name:"Antarctica",lat:-75.250973,long:-.071389,code:"AQ"},{name:"Antigua and Barbuda",lat:17.060816,long:-61.796428,code:"AG"},{name:"Argentina",lat:-38.416097,long:-63.616672,code:"AR"},{name:"Armenia",lat:40.069099,long:45.038189,code:"AM"},{name:"Aruba",lat:12.52111,long:-69.968338,code:"AW"},{name:"Australia",lat:-25.274398,long:133.775136,code:"AU"},{name:"Austria",lat:47.516231,long:14.550072,code:"AT"},{name:"Azerbaijan",lat:40.143105,long:47.576927,code:"AZ"},{name:"Bahamas",lat:25.03428,long:-77.39628,code:"BS"},{name:"Bahrain",lat:25.930414,long:50.637772,code:"BH"},{name:"Bangladesh",lat:23.684994,long:90.356331,code:"BD"},{name:"Barbados",lat:13.193887,long:-59.543198,code:"BB"},{name:"Belarus",lat:53.709807,long:27.953389,code:"BY"},{name:"Belgium",lat:50.503887,long:4.469936,code:"BE"},{name:"Belize",lat:17.189877,long:-88.49765,code:"BZ"},{name:"Benin",lat:9.30769,long:2.315834,code:"BJ"},{name:"Bermuda",lat:32.321384,long:-64.75737,code:"BM"},{name:"Bhutan",lat:27.514162,long:90.433601,code:"BT"},{name:"Bolivia",lat:-16.290154,long:-63.588653,code:"BO"},{name:"Bosnia",lat:43.915886,long:17.679076,code:"BA"},{name:"Botswana",lat:-22.328474,long:24.684866,code:"BW"},{name:"Bouvet Island",lat:-54.423199,long:3.413194,code:"BV"},{name:"Brazil",lat:-14.235004,long:-51.92528,code:"BR"},{name:"British Indian Ocean Territory",lat:-6.343194,long:71.876519,code:"IO"},{name:"Brunei",lat:4.535277,long:114.727669,code:"BN"},{name:"Bulgaria",lat:42.733883,long:25.48583,code:"BG"},{name:"Burkina Faso",lat:12.238333,long:-1.561593,code:"BF"},{name:"Burundi",lat:-3.373056,long:29.918886,code:"BI"},{name:"Cabo Verde",lat:16.002082,long:-24.013197,code:"CV"},{name:"Cambodia",lat:12.565679,long:104.990963,code:"KH"},{name:"Cameroon",lat:7.369722,long:12.354722,code:"CM"},{name:"Canada",lat:56.130366,long:-106.346771,code:"CA"},{name:"Cayman Islands",lat:19.513469,long:-80.566956,code:"KY"},{name:"Central African Republic",lat:6.611111,long:20.939444,code:"CF"},{name:"Caribbean Netherlands",lat:12.2,long:-68.26,code:"BQ"},{name:"Chad",lat:15.454166,long:18.732207,code:"TD"},{name:"Chile",lat:-35.675147,long:-71.542969,code:"CL"},{name:"China",lat:35.86166,long:104.195397,code:"CN"},{name:"Christmas Island",lat:-10.447525,long:105.690449,code:"CX"},{name:"Cocos (Keeling) Islands",lat:-12.164165,long:96.870956,code:"CC"},{name:"Colombia",lat:4.570868,long:-74.297333,code:"CO"},{name:"Comoros",lat:-11.875001,long:43.872219,code:"KM"},{name:"Congo",lat:-.228021,long:15.827659,code:"CG"},{name:"DRC",lat:-4.038333,long:21.758664,code:"CD"},{name:"Cook Islands",lat:-21.236736,long:-159.777671,code:"CK"},{name:"Costa Rica",lat:9.748917,long:-83.753428,code:"CR"},{name:'Côte d"Ivoire',lat:7.539989,long:-5.54708,code:"CI"},{name:"Croatia",lat:45.1,long:15.2,code:"HR"},{name:"Cuba",lat:21.521757,long:-77.781167,code:"CU"},{name:"Curaçao",lat:12.15,long:-68.97,code:"CW"},{name:"Cyprus",lat:35.126413,long:33.429859,code:"CY"},{name:"Czechia",lat:49.817492,long:15.472962,code:"CZ"},{name:"Denmark",lat:56.26392,long:9.501785,code:"DK"},{name:"Djibouti",lat:11.825138,long:42.590275,code:"DJ"},{name:"Dominica",lat:15.414999,long:-61.370976,code:"DM"},{name:"Dominican Republic",lat:18.735693,long:-70.162651,code:"DO"},{name:"Ecuador",lat:-1.831239,long:-78.183406,code:"EC"},{name:"Egypt",lat:26.820553,long:30.802498,code:"EG"},{name:"El Salvador",lat:13.794185,long:-88.89653,code:"SV"},{name:"Equatorial Guinea",lat:1.650801,long:10.267895,code:"GQ"},{name:"Eritrea",lat:15.179384,long:39.782334,code:"ER"},{name:"Estonia",lat:58.595272,long:25.013607,code:"EE"},{name:"Ethiopia",lat:9.145,long:40.489673,code:"ET"},{name:"Falkland Islands (Malvinas)",lat:-51.796253,long:-59.523613,code:"FK"},{name:"Faroe Islands",lat:61.892635,long:-6.911806,code:"FO"},{name:"Fiji",lat:-16.578193,long:179.414413,code:"FJ"},{name:"Finland",lat:61.92411,long:25.748151,code:"FI"},{name:"France",lat:46.227638,long:2.213749,code:"FR"},{name:"French Guiana",lat:3.933889,long:-53.125782,code:"GF"},{name:"French Polynesia",lat:-17.679742,long:-149.406843,code:"PF"},{name:"French Southern Territories",lat:-49.280366,long:69.348557,code:"TF"},{name:"Gabon",lat:-.803689,long:11.609444,code:"GA"},{name:"Gambia",lat:13.443182,long:-15.310139,code:"GM"},{name:"Georgia",lat:42.315407,long:43.356892,code:"GE"},{name:"Germany",lat:51.165691,long:10.451526,code:"DE"},{name:"Ghana",lat:7.946527,long:-1.023194,code:"GH"},{name:"Gibraltar",lat:36.137741,long:-5.345374,code:"GI"},{name:"Greece",lat:39.074208,long:21.824312,code:"GR"},{name:"Greenland",lat:71.706936,long:-42.604303,code:"GL"},{name:"Grenada",lat:12.262776,long:-61.604171,code:"GD"},{name:"Guadeloupe",lat:16.995971,long:-62.067641,code:"GP"},{name:"Guam",lat:13.444304,long:144.793731,code:"GU"},{name:"Guatemala",lat:15.783471,long:-90.230759,code:"GT"},{name:"Guernsey",lat:49.465691,long:-2.585278,code:"GG"},{name:"Guinea",lat:9.945587,long:-9.696645,code:"GN"},{name:"Guinea-Bissau",lat:11.803749,long:-15.180413,code:"GW"},{name:"Guyana",lat:4.860416,long:-58.93018,code:"GY"},{name:"Haiti",lat:18.971187,long:-72.285215,code:"HT"},{name:"Heard Island and McDonald Islands",lat:-53.08181,long:73.504158,code:"HM"},{name:"Holy See (Vatican City State)",lat:41.902916,long:12.453389,code:"VA"},{name:"Honduras",lat:15.199999,long:-86.241905,code:"HN"},{name:"Hong Kong",lat:22.396428,long:114.109497,code:"HK"},{name:"Hungary",lat:47.162494,long:19.503304,code:"HU"},{name:"Iceland",lat:64.963051,long:-19.020835,code:"IS"},{name:"India",lat:20.593684,long:78.96288,code:"IN"},{name:"Indonesia",lat:-.789275,long:113.921327,code:"ID"},{name:"Iran",lat:32.427908,long:53.688046,code:"IR"},{name:"Iraq",lat:33.223191,long:43.679291,code:"IQ"},{name:"Ireland",lat:53.41291,long:-8.24389,code:"IE"},{name:"Isle of Man",lat:54.236107,long:-4.548056,code:"IM"},{name:"Israel",lat:31.046051,long:34.851612,code:"IL"},{name:"Italy",lat:41.87194,long:12.56738,code:"IT"},{name:"Jamaica",lat:18.109581,long:-77.297508,code:"JM"},{name:"Japan",lat:36.204824,long:138.252924,code:"JP"},{name:"Channel Islands",lat:49.214439,long:-2.13125,code:"JE"},{name:"Jordan",lat:30.585164,long:36.238414,code:"JO"},{name:"Kazakhstan",lat:48.019573,long:66.923684,code:"KZ"},{name:"Kenya",lat:-.023559,long:37.906193,code:"KE"},{name:"Kiribati",lat:-3.370417,long:-168.734039,code:"KI"},{name:"Kosovo",lat:42.602636,long:20.902977,code:"XK"},{name:"N. Korea",lat:40.339852,long:127.510093,code:"KP"},{name:"S. Korea",lat:35.907757,long:127.766922,code:"KR"},{name:"Kuwait",lat:29.31166,long:47.481766,code:"KW"},{name:"Kyrgyzstan",lat:41.20438,long:74.766098,code:"KG"},{name:'Lao People"s Democratic Republic',lat:19.85627,long:102.495496,code:"LA"},{name:"Latvia",lat:56.879635,long:24.603189,code:"LV"},{name:"Lebanon",lat:33.854721,long:35.862285,code:"LB"},{name:"Lesotho",lat:-29.609988,long:28.233608,code:"LS"},{name:"Liberia",lat:6.428055,long:-9.429499,code:"LR"},{name:"Libyan Arab Jamahiriya",lat:26.3351,long:17.228331,code:"LY"},{name:"Liechtenstein",lat:47.166,long:9.555373,code:"LI"},{name:"Lithuania",lat:55.169438,long:23.881275,code:"LT"},{name:"Luxembourg",lat:49.815273,long:6.129583,code:"LU"},{name:"Macao",lat:22.198745,long:113.543873,code:"MO"},{name:"Macedonia",lat:41.608635,long:21.745275,code:"MK"},{name:"Madagascar",lat:-18.766947,long:46.869107,code:"MG"},{name:"Malawi",lat:-13.254308,long:34.301525,code:"MW"},{name:"Malaysia",lat:4.210484,long:101.975766,code:"MY"},{name:"Maldives",lat:3.202778,long:73.22068,code:"MV"},{name:"Mali",lat:17.570692,long:-3.996166,code:"ML"},{name:"Malta",lat:35.937496,long:14.375416,code:"MT"},{name:"Marshall Islands",lat:7.131474,long:171.184478,code:"MH"},{name:"Martinique",lat:14.641528,long:-61.024174,code:"MQ"},{name:"Mauritania",lat:21.00789,long:-10.940835,code:"MR"},{name:"Mauritius",lat:-20.348404,long:57.552152,code:"MU"},{name:"Mayotte",lat:-12.8275,long:45.166244,code:"YT"},{name:"Mexico",lat:23.634501,long:-102.552784,code:"MX"},{name:"Micronesia",lat:7.425554,long:150.550812,code:"FM"},{name:"Moldova",lat:47.411631,long:28.369885,code:"MD"},{name:"Monaco",lat:43.750298,long:7.412841,code:"MC"},{name:"Mongolia",lat:46.862496,long:103.846656,code:"MN"},{name:"Montenegro",lat:42.708678,long:19.37439,code:"ME"},{name:"Montserrat",lat:16.742498,long:-62.187366,code:"MS"},{name:"Morocco",lat:31.791702,long:-7.09262,code:"MA"},{name:"Mozambique",lat:-18.665695,long:35.529562,code:"MZ"},{name:"Myanmar",lat:21.913965,long:95.956223,code:"MM"},{name:"Burma",lat:22,long:98,code:"BU"},{name:"Namibia",lat:-22.95764,long:18.49041,code:"NA"},{name:"Nauru",lat:-.522778,long:166.931503,code:"NR"},{name:"Nepal",lat:28.394857,long:84.124008,code:"NP"},{name:"Netherlands",lat:52.132633,long:5.291266,code:"NL"},{name:"Netherlands Antilles",lat:12.226079,long:-69.060087,code:"AN"},{name:"New Caledonia",lat:-20.904305,long:165.618042,code:"NC"},{name:"New Zealand",lat:-40.900557,long:174.885971,code:"NZ"},{name:"Nicaragua",lat:12.865416,long:-85.207229,code:"NI"},{name:"Niger",lat:17.607789,long:8.081666,code:"NE"},{name:"Nigeria",lat:9.081999,long:8.675277,code:"NG"},{name:"Niue",lat:-19.054445,long:-169.867233,code:"NU"},{name:"Norfolk Island",lat:-29.040835,long:167.954712,code:"NF"},{name:"Northern Mariana Islands",lat:17.33083,long:145.38469,code:"MP"},{name:"Norway",lat:60.472024,long:8.468946,code:"NO"},{name:"Oman",lat:21.512583,long:55.923255,code:"OM"},{name:"Pakistan",lat:30.375321,long:69.345116,code:"PK"},{name:"Palau",lat:7.51498,long:134.58252,code:"PW"},{name:"Palestine",lat:31.952162,long:35.233154,code:"PS"},{name:"Panama",lat:8.537981,long:-80.782127,code:"PA"},{name:"Papua New Guinea",lat:-6.314993,long:143.95555,code:"PG"},{name:"Paraguay",lat:-23.442503,long:-58.443832,code:"PY"},{name:"Peru",lat:-9.189967,long:-75.015152,code:"PE"},{name:"Philippines",lat:12.879721,long:121.774017,code:"PH"},{name:"Pitcairn",lat:-24.703615,long:-127.439308,code:"PN"},{name:"Poland",lat:51.919438,long:19.145136,code:"PL"},{name:"Portugal",lat:39.399872,long:-8.224454,code:"PT"},{name:"Puerto Rico",lat:18.220833,long:-66.590149,code:"PR"},{name:"Qatar",lat:25.354826,long:51.183884,code:"QA"},{name:"Réunion",lat:-21.115141,long:55.536384,code:"RE"},{name:"Romania",lat:45.943161,long:24.96676,code:"RO"},{name:"Russia",lat:61.52401,long:105.318756,code:"RU"},{name:"Rwanda",lat:-1.940278,long:29.873888,code:"RW"},{name:"St. Barth",lat:17.89,long:-62.82,code:"BL"},{name:"Saint Helena",lat:-24.143474,long:-10.030696,code:"SH"},{name:"Saint Kitts and Nevis",lat:17.357822,long:-62.782998,code:"KN"},{name:"Saint Lucia",lat:13.909444,long:-60.978893,code:"LC"},{name:"Saint Pierre Miquelon",lat:46.941936,long:-56.27111,code:"PM"},{name:"Saint Martin",lat:18.11,long:-63.03,code:"MF"},{name:"Sint Maarten",lat:18.02,long:-63.06,code:"SX"},{name:"Saint Vincent and the Grenadines",lat:12.984305,long:-61.287228,code:"VC"},{name:"Samoa",lat:-13.759029,long:-172.104629,code:"WS"},{name:"San Marino",lat:43.94236,long:12.457777,code:"SM"},{name:"Sao Tome and Principe",lat:.18636,long:6.613081,code:"ST"},{name:"Saudi Arabia",lat:23.885942,long:45.079162,code:"SA"},{name:"Senegal",lat:14.497401,long:-14.452362,code:"SN"},{name:"Serbia",lat:44.016521,long:21.005859,code:"RS"},{name:"Seychelles",lat:-4.679574,long:55.491977,code:"SC"},{name:"Sierra Leone",lat:8.460555,long:-11.779889,code:"SL"},{name:"Singapore",lat:1.352083,long:103.819836,code:"SG"},{name:"Slovakia",lat:48.669026,long:19.699024,code:"SK"},{name:"Slovenia",lat:46.151241,long:14.995463,code:"SI"},{name:"Solomon Islands",lat:-9.64571,long:160.156194,code:"SB"},{name:"Somalia",lat:5.152149,long:46.199616,code:"SO"},{name:"South Africa",lat:-30.559482,long:22.937506,code:"ZA"},{name:"South Georgia and the South Sandwich Islands",lat:-54.429579,long:-36.587909,code:"GS"},{name:"South Sudan",lat:6.8769,long:31.3069,code:"SS"},{name:"Spain",lat:40.463667,long:-3.74922,code:"ES"},{name:"Sri Lanka",lat:7.873054,long:80.771797,code:"LK"},{name:"Sudan",lat:12.862807,long:30.217636,code:"SD"},{name:"Suriname",lat:3.919305,long:-56.027783,code:"SR"},{name:"Svalbard and Jan Mayen",lat:77.553604,long:23.670272,code:"SJ"},{name:"Swaziland",lat:-26.522503,long:31.465866,code:"SZ"},{name:"Sweden",lat:60.128161,long:18.643501,code:"SE"},{name:"Switzerland",lat:46.818188,long:8.227512,code:"CH"},{name:"Syrian Arab Republic",lat:34.802075,long:38.996815,code:"SY"},{name:"Taiwan",lat:23.69781,long:120.960515,code:"TW"},{name:"Tajikistan",lat:38.861034,long:71.276093,code:"TJ"},{name:"Tanzania",lat:-6.369028,long:34.888822,code:"TZ"},{name:"Thailand",lat:15.870032,long:100.992541,code:"TH"},{name:"Timor-Leste",lat:-8.874217,long:125.727539,code:"TL"},{name:"Togo",lat:8.619543,long:.824782,code:"TG"},{name:"Tokelau",lat:-8.967363,long:-171.855881,code:"TK"},{name:"Tonga",lat:-21.178986,long:-175.198242,code:"TO"},{name:"Trinidad and Tobago",lat:10.691803,long:-61.222503,code:"TT"},{name:"Tunisia",lat:33.886917,long:9.537499,code:"TN"},{name:"Turkey",lat:38.963745,long:35.243322,code:"TR"},{name:"Turkmenistan",lat:38.969719,long:59.556278,code:"TM"},{name:"Turks and Caicos Islands",lat:21.694025,long:-71.797928,code:"TC"},{name:"Tuvalu",lat:-7.109535,long:177.64933,code:"TV"},{name:"Uganda",lat:1.373333,long:32.290275,code:"UG"},{name:"Ukraine",lat:48.379433,long:31.16558,code:"UA"},{name:"UAE",lat:23.424076,long:53.847818,code:"AE"},{name:"UK",lat:55.378051,long:-3.435973,code:"GB"},{name:"USA",lat:37.09024,long:-95.712891,code:"US"},{name:"United States Minor Outlying Islands",lat:0,long:0,code:"UM"},{name:"Uruguay",lat:-32.522779,long:-55.765835,code:"UY"},{name:"Uzbekistan",lat:41.377491,long:64.585262,code:"UZ"},{name:"Vanuatu",lat:-15.376706,long:166.959158,code:"VU"},{name:"Venezuela",lat:6.42375,long:-66.58973,code:"VE"},{name:"Vietnam",lat:14.058324,long:108.277199,code:"VN"},{name:"British Virgin Islands",lat:18.420695,long:-64.639968,code:"VG"},{name:"U.S. Virgin Islands",lat:18.335765,long:-64.896335,code:"VI"},{name:"Wallis and Futuna",lat:-13.768752,long:-177.156097,code:"WF"},{name:"Western Sahara",lat:24.215527,long:-12.885834,code:"EH"},{name:"Yemen",lat:15.552727,long:48.516388,code:"YE"},{name:"Zambia",lat:-13.133897,long:27.849332,code:"ZM"},{name:"Zimbabwe",lat:-19.015438,long:29.154857,code:"ZW"}];function lA(e){return aA.find(n=>n.code===e)}bo.extend(nA);bo.extend(rA);bo.extend(oA);function vp(e){const t=lA(e);if(t)return{lat:t.lat,long:t.long}}function cA(e){if(e.loc){const t=e.loc.split(",");if(t.length===2){const n=t[0],i=t[1];return{lat:parseFloat(n),long:parseFloat(i)}}}return vp(e.countryCode)}const uA={class:"block"},hA={class:"is-size-2"},dA={class:"is-clearfix"},fA={class:"columns"},pA={key:0,class:"column is-half"},gA={key:0},mA={class:"is-size-4"},vA={class:"has-text-grey"},yA=["src"],bA={key:1},wA=["src"],_A={class:"column"},SA={class:"table is-fullwidth is-completely-borderless"},xA={key:0},CA={class:"help"},$A={class:"block"},AA={class:"block"},kA={key:0,class:"block"},MA={key:1,class:"block"},EA={key:2,class:"block"},TA={key:3,class:"block"},LA={key:4,class:"block"},RA={key:5,class:"block"},OA={key:6,class:"block"},IA=Ce({__name:"ArtifactDetail",props:{artifact:{type:Object,required:!0}},emits:["delete","refresh"],setup(e,{emit:t}){const n=e,i=t,s=He(),a=He(),d=He(),g=He(),l=m=>{d.value=m},p=()=>{d.value=void 0},o=()=>{i("delete")},r=m=>{m.queued?g.value=m:i("refresh")},c=()=>{g.value=void 0},u=ke(()=>{if(n.artifact.dataType==="domain")return`https://urlscan.io/liveshot/?url=${`http://${n.artifact.data}`}`;if(n.artifact.dataType==="url")return`https://urlscan.io/liveshot/?url=${n.artifact.data}`}),h=m=>{if(m)return`https://maps.google.co.jp/maps?output=embed&q=${m.lat},${m.long}&z=3`},f=pS();return ct(async()=>{if(n.artifact.dataType==="ip"){let m;if(n.artifact.geolocation)m=vp(n.artifact.geolocation.countryCode);else{const v=await f.perform(n.artifact.data);m=cA(v),a.value=v.countryCode}s.value=h(m)}}),(m,v)=>{var y;return Y(),ie(Pe,null,[d.value?(Y(),xe(mt,{key:0,class:"block",error:d.value,disposable:!0,onDispose:p},null,8,["error"])):ge("",!0),g.value?(Y(),xe(mo,{key:1,class:"block",message:g.value,disposable:!0,onDispose:c},null,8,["message"])):ge("",!0),D("div",uA,[D("h2",hA,Se(e.artifact.id),1),D("p",dA,[se(rp,{artifact:e.artifact,onDelete:o,onSetError:l,onSetMessage:r},null,8,["artifact"])])]),D("div",fA,[s.value||u.value?(Y(),ie("div",pA,[s.value?(Y(),ie("div",gA,[D("h4",mA,[v[0]||(v[0]=it(" Geolocation ")),D("span",vA,Se(a.value||((y=e.artifact.geolocation)==null?void 0:y.countryCode)),1)]),D("iframe",{class:"mb-4",src:s.value,width:"100%",height:"240px"},null,8,yA)])):ge("",!0),u.value?(Y(),ie("div",bA,[v[1]||(v[1]=D("h4",{class:"is-size-4"},"Live screenshot",-1)),v[2]||(v[2]=D("p",{class:"help"},"Hover to expand",-1)),D("img",{src:u.value,class:"liveshot",alt:"liveshot"},null,8,wA)])):ge("",!0)])):ge("",!0),D("div",_A,[v[9]||(v[9]=D("h4",{class:"is-size-4"},"Information",-1)),D("table",SA,[D("tr",null,[v[3]||(v[3]=D("th",null,"Data",-1)),D("td",null,Se(ce(Dr)(e.artifact.data,64)),1)]),D("tr",null,[v[4]||(v[4]=D("th",null,"Data type",-1)),D("td",null,Se(e.artifact.dataType),1)]),D("tr",null,[v[5]||(v[5]=D("th",null,"Source",-1)),D("td",null,Se(e.artifact.source),1)]),D("tr",null,[v[6]||(v[6]=D("th",null,"Query",-1)),D("td",null,Se(ce(Dr)(e.artifact.query||"N/A",64)),1)]),e.artifact.tags.length>0?(Y(),ie("tr",xA,[v[8]||(v[8]=D("th",null,"Tags",-1)),D("td",null,[se(Xr,{tags:e.artifact.tags,"navigate-to":"Artifacts"},null,8,["tags"]),v[7]||(v[7]=it("/td>"))])])):ge("",!0)]),D("p",CA,"Created at: "+Se(e.artifact.createdAt),1)])]),D("div",$A,[se(J$,{data:e.artifact.data,type:e.artifact.dataType},null,8,["data","type"])]),D("div",AA,[e.artifact.autonomousSystem?(Y(),ie("div",kA,[v[10]||(v[10]=D("h4",{class:"is-size-4 mb-2"},"AS",-1)),se(FC,{autonomousSystem:e.artifact.autonomousSystem},null,8,["autonomousSystem"])])):ge("",!0),e.artifact.reverseDnsNames?(Y(),ie("div",MA,[v[11]||(v[11]=D("h4",{class:"is-size-4 mb-2"},"Reverse DNS",-1)),se(YC,{reverseDnsNames:e.artifact.reverseDnsNames},null,8,["reverseDnsNames"])])):ge("",!0),e.artifact.dnsRecords?(Y(),ie("div",EA,[v[12]||(v[12]=D("h4",{class:"is-size-4 mb-2"},"DNS records",-1)),se(HC,{dnsRecords:e.artifact.dnsRecords},null,8,["dnsRecords"])])):ge("",!0),e.artifact.cpes?(Y(),ie("div",TA,[v[13]||(v[13]=D("h4",{class:"is-size-4 mb-2"},"CPEs",-1)),se(WC,{cpes:e.artifact.cpes},null,8,["cpes"])])):ge("",!0),e.artifact.vulnerabilities?(Y(),ie("div",LA,[v[14]||(v[14]=D("h4",{class:"is-size-4 mb-2"},"Vulnerabilities",-1)),se(ZC,{vulnerabilities:e.artifact.vulnerabilities},null,8,["vulnerabilities"])])):ge("",!0),e.artifact.ports?(Y(),ie("div",RA,[v[15]||(v[15]=D("h4",{class:"is-size-4 mb-2"},"Ports",-1)),se(VC,{ports:e.artifact.ports},null,8,["ports"])])):ge("",!0),e.artifact.whoisRecord?(Y(),ie("div",OA,[v[16]||(v[16]=D("h4",{class:"is-size-4 mb-2"},"Whois record",-1)),se(c$,{whoisRecord:e.artifact.whoisRecord},null,8,["whoisRecord"])])):ge("",!0)])],64)}}}),NA=Vr(IA,[["__scopeId","data-v-aadb0460"]]),DA=Ce({__name:"ArtifactDetailWrapper",props:{id:{type:Number,required:!0}},setup(e){const t=e,n=hS(),i=zi(),s=async()=>{await n.perform(t.id)},a=async()=>{await s()},d=async()=>{i.push("/")};return ct(async()=>{await s()}),Je(t,async()=>{await s()}),(g,l)=>{var p,o;return Y(),ie(Pe,null,[ce(n).isRunning?(Y(),xe($n,{key:0})):ge("",!0),ce(n).isError?(Y(),xe(mt,{key:1,error:(p=ce(n).last)==null?void 0:p.error},null,8,["error"])):ge("",!0),(o=ce(n).last)!=null&&o.value?(Y(),xe(NA,{key:2,artifact:ce(n).last.value,onRefresh:a,onDelete:d},null,8,["artifact"])):ge("",!0)],64)}}}),FA=Ce({__name:"ArtifactView",props:{id:{type:String,required:!0}},setup(e){const t=e,n=()=>{Cn(`Artifact:${t.id} - Mihari`)};return ct(()=>{n()}),Je(()=>t.id,()=>{n()}),(i,s)=>(Y(),xe(DA,{id:parseInt(e.id)},null,8,["id"]))}}),PA={class:"box"},WA={class:"table-container"},BA={class:"table is-fullwidth"},zA={key:0,class:"button is-success is-small ml-1"},jA={class:"icon is-small"},HA={key:1,class:"button is-warning is-small ml-1"},UA={class:"icon is-small"},VA={class:"field is-grouped is-grouped-multiline"},GA={class:"tags has-addons"},YA={class:"tag is-dark"},KA=Ce({__name:"ConfigsItem",props:{configs:{type:Object,required:!0}},setup(e){return(t,n)=>{const i=Xe("font-awesome-icon");return Y(),ie("div",PA,[D("div",WA,[D("table",BA,[n[2]||(n[2]=D("thead",null,[D("tr",null,[D("th",null,"Name"),D("th",null,"Type"),D("th",null,"Configured?"),D("th",null,"Items")])],-1)),D("tbody",null,[(Y(!0),ie(Pe,null,Pt(e.configs.results,s=>(Y(),ie("tr",{key:s.name},[D("td",null,Se(s.name),1),D("td",null,Se(s.type),1),D("td",null,[s.configured?(Y(),ie("button",zA,[D("span",jA,[se(i,{icon:"check"})]),n[0]||(n[0]=D("span",null,"Yes",-1))])):(Y(),ie("button",HA,[D("span",UA,[se(i,{icon:"exclamation"})]),n[1]||(n[1]=D("span",null,"No",-1))]))]),D("td",null,[D("div",VA,[(Y(!0),ie(Pe,null,Pt(s.items,(a,d)=>(Y(),ie("div",{class:"control",key:d},[D("div",GA,[D("span",YA,Se(a.key),1),D("span",{class:Br(["tag",{"is-success":a.value,"is-warning":!a.value}])},Se(a.value||"N/A"),3)])]))),128))])])]))),128))])])])])}}}),ZA=Ce({__name:"ConfigsWrapper",setup(e){const t=fS();return ct(async()=>{await t.perform()}),(n,i)=>{var s,a;return Y(),ie(Pe,null,[ce(t).isRunning?(Y(),xe($n,{key:0})):ge("",!0),ce(t).isError?(Y(),xe(mt,{key:1,error:(s=ce(t).last)==null?void 0:s.error},null,8,["error"])):ge("",!0),(a=ce(t).last)!=null&&a.value?(Y(),xe(KA,{key:2,configs:ce(t).last.value},null,8,["configs"])):ge("",!0)],64)}}}),XA=Ce({__name:"ConfigView",setup(e){return Cn("Configuration - Mihari"),(t,n)=>(Y(),xe(ZA))}});var yp={exports:{}};(function(e,t){(function(){var n="ace",i=function(){return this}();!i&&typeof window<"u"&&(i=window);var s=function(o,r,c){if(typeof o!="string"){s.original?s.original.apply(this,arguments):(console.error("dropping module because define wasn't a string."),console.trace());return}arguments.length==2&&(c=r),s.modules[o]||(s.payloads[o]=c,s.modules[o]=null)};s.modules={},s.payloads={};var a=function(o,r,c){if(typeof r=="string"){var u=l(o,r);if(u!=null)return c&&c(),u}else if(Object.prototype.toString.call(r)==="[object Array]"){for(var h=[],f=0,m=r.length;fl.length)&&(g=l.length),g-=d.length;var p=l.indexOf(d,g);return p!==-1&&p===g}),String.prototype.repeat||a(String.prototype,"repeat",function(d){for(var g="",l=this;d>0;)d&1&&(g+=l),(d>>=1)&&(l+=l);return g}),String.prototype.includes||a(String.prototype,"includes",function(d,g){return this.indexOf(d,g)!=-1}),Object.assign||(Object.assign=function(d){if(d==null)throw new TypeError("Cannot convert undefined or null to object");for(var g=Object(d),l=1;l>>0,p=arguments[1],o=p>>0,r=o<0?Math.max(l+o,0):Math.min(o,l),c=arguments[2],u=c===void 0?l:c>>0,h=u<0?Math.max(l+u,0):Math.min(u,l);r0;)l&1&&(p+=g),(l>>=1)&&(g+=g);return p};var a=/^\s\s*/,d=/\s\s*$/;i.stringTrimLeft=function(g){return g.replace(a,"")},i.stringTrimRight=function(g){return g.replace(d,"")},i.copyObject=function(g){var l={};for(var p in g)l[p]=g[p];return l},i.copyArray=function(g){for(var l=[],p=0,o=g.length;p65535?2:1}}),ace.define("ace/lib/useragent",["require","exports","module"],function(n,i,s){i.OS={LINUX:"LINUX",MAC:"MAC",WINDOWS:"WINDOWS"},i.getOS=function(){return i.isMac?i.OS.MAC:i.isLinux?i.OS.LINUX:i.OS.WINDOWS};var a=typeof navigator=="object"?navigator:{},d=(/mac|win|linux/i.exec(a.platform)||["other"])[0].toLowerCase(),g=a.userAgent||"",l=a.appName||"";i.isWin=d=="win",i.isMac=d=="mac",i.isLinux=d=="linux",i.isIE=l=="Microsoft Internet Explorer"||l.indexOf("MSAppHost")>=0?parseFloat((g.match(/(?:MSIE |Trident\/[0-9]+[\.0-9]+;.*rv:)([0-9]+[\.0-9]+)/)||[])[1]):parseFloat((g.match(/(?:Trident\/[0-9]+[\.0-9]+;.*rv:)([0-9]+[\.0-9]+)/)||[])[1]),i.isOldIE=i.isIE&&i.isIE<9,i.isGecko=i.isMozilla=g.match(/ Gecko\/\d+/),i.isOpera=typeof opera=="object"&&Object.prototype.toString.call(window.opera)=="[object Opera]",i.isWebKit=parseFloat(g.split("WebKit/")[1])||void 0,i.isChrome=parseFloat(g.split(" Chrome/")[1])||void 0,i.isSafari=parseFloat(g.split(" Safari/")[1])&&!i.isChrome||void 0,i.isEdge=parseFloat(g.split(" Edge/")[1])||void 0,i.isAIR=g.indexOf("AdobeAIR")>=0,i.isAndroid=g.indexOf("Android")>=0,i.isChromeOS=g.indexOf(" CrOS ")>=0,i.isIOS=/iPad|iPhone|iPod/.test(g)&&!window.MSStream,i.isIOS&&(i.isMac=!0),i.isMobile=i.isIOS||i.isAndroid}),ace.define("ace/lib/dom",["require","exports","module","ace/lib/useragent"],function(n,i,s){var a=n("./useragent"),d="http://www.w3.org/1999/xhtml";i.buildDom=function c(u,h,f){if(typeof u=="string"&&u){var m=document.createTextNode(u);return h&&h.appendChild(m),m}if(!Array.isArray(u))return u&&u.appendChild&&h&&h.appendChild(u),u;if(typeof u[0]!="string"||!u[0]){for(var v=[],y=0;y"u")){if(l){if(h)p();else if(h===!1)return l.push([c,u])}if(!g){var f=h;!h||!h.getRootNode?f=document:(f=h.getRootNode(),(!f||f==h)&&(f=document));var m=f.ownerDocument||f;if(u&&i.hasCssString(u,f))return null;u&&(c+=` /*# sourceURL=ace/css/`+u+" */");var v=i.createElement("style");v.appendChild(m.createTextNode(c)),u&&(v.id=u),f==m&&(f=i.getDocumentHead(m)),f.insertBefore(v,f.firstChild)}}}if(i.importCssString=o,i.importCssStylsheet=function(c,u){i.buildDom(["link",{rel:"stylesheet",href:c}],i.getDocumentHead(u))},i.scrollbarWidth=function(c){var u=i.createElement("ace_inner");u.style.width="100%",u.style.minWidth="0px",u.style.height="200px",u.style.display="block";var h=i.createElement("ace_outer"),f=h.style;f.position="absolute",f.left="-10000px",f.overflow="hidden",f.width="200px",f.minWidth="0px",f.height="150px",f.display="block",h.appendChild(u);var m=c&&c.documentElement||document&&document.documentElement;if(!m)return 0;m.appendChild(h);var v=u.offsetWidth;f.overflow="scroll";var y=u.offsetWidth;return v===y&&(y=h.clientWidth),m.removeChild(h),v-y},i.computedStyle=function(c,u){return window.getComputedStyle(c,"")||{}},i.setStyle=function(c,u,h){c[u]!==h&&(c[u]=h)},i.HAS_CSS_ANIMATION=!1,i.HAS_CSS_TRANSFORMS=!1,i.HI_DPI=a.isWin?typeof window<"u"&&window.devicePixelRatio>=1.5:!0,a.isChromeOS&&(i.HI_DPI=!1),typeof document<"u"){var r=document.createElement("div");i.HI_DPI&&r.style.transform!==void 0&&(i.HAS_CSS_TRANSFORMS=!0),!a.isEdge&&typeof r.style.animationName<"u"&&(i.HAS_CSS_ANIMATION=!0),r=null}i.HAS_CSS_TRANSFORMS?i.translate=function(c,u,h){c.style.transform="translate("+Math.round(u)+"px, "+Math.round(h)+"px)"}:i.translate=function(c,u,h){c.style.top=Math.round(h)+"px",c.style.left=Math.round(u)+"px"}}),ace.define("ace/lib/net",["require","exports","module","ace/lib/dom"],function(n,i,s){/* * based on code from: * * @license RequireJS text 0.25.0 Copyright (c) 2010-2011, The Dojo Foundation All Rights Reserved. * Available via the MIT or new BSD license. * see: http://github.com/jrburke/requirejs for details */var a=n("./dom");i.get=function(d,g){var l=new XMLHttpRequest;l.open("GET",d,!0),l.onreadystatechange=function(){l.readyState===4&&g(l.responseText)},l.send(null)},i.loadScript=function(d,g){var l=a.getDocumentHead(),p=document.createElement("script");p.src=d,l.appendChild(p),p.onload=p.onreadystatechange=function(o,r){(r||!p.readyState||p.readyState=="loaded"||p.readyState=="complete")&&(p=p.onload=p.onreadystatechange=null,r||g())}},i.qualifyURL=function(d){var g=document.createElement("a");return g.href=d,g.href}}),ace.define("ace/lib/oop",["require","exports","module"],function(n,i,s){i.inherits=function(a,d){a.super_=d,a.prototype=Object.create(d.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}})},i.mixin=function(a,d){for(var g in d)a[g]=d[g];return a},i.implement=function(a,d){i.mixin(a,d)}}),ace.define("ace/lib/event_emitter",["require","exports","module"],function(n,i,s){var a={},d=function(){this.propagationStopped=!0},g=function(){this.defaultPrevented=!0};a._emit=a._dispatchEvent=function(l,p){this._eventRegistry||(this._eventRegistry={}),this._defaultHandlers||(this._defaultHandlers={});var o=this._eventRegistry[l]||[],r=this._defaultHandlers[l];if(!(!o.length&&!r)){(typeof p!="object"||!p)&&(p={}),p.type||(p.type=l),p.stopPropagation||(p.stopPropagation=d),p.preventDefault||(p.preventDefault=g),o=o.slice();for(var c=0;c1&&(v=f[f.length-2]);var $=p[h+"Path"];return $==null?$=p.basePath:m=="/"&&(h=m=""),$&&$.slice(-1)!="/"&&($+="/"),$+h+m+v+this.get("suffix")},i.setModuleUrl=function(u,h){return p.$moduleUrls[u]=h};var o=function(u,h){if(u==="ace/theme/textmate"||u==="./theme/textmate")return h(null,n("./theme/textmate"));if(r)return r(u,h);console.error("loader is not configured")},r;i.setLoader=function(u){r=u},i.dynamicModules=Object.create(null),i.$loading={},i.$loaded={},i.loadModule=function(u,h){var f;if(Array.isArray(u))var m=u[0],v=u[1];else if(typeof u=="string")var v=u;var y=function($){if($&&!i.$loading[v])return h&&h($);if(i.$loading[v]||(i.$loading[v]=[]),i.$loading[v].push(h),!(i.$loading[v].length>1)){var _=function(){o(v,function(S,b){b&&(i.$loaded[v]=b),i._emit("load.module",{name:v,module:b});var M=i.$loading[v];i.$loading[v]=null,M.forEach(function(O){O&&O(b)})})};if(!i.get("packaged"))return _();d.loadScript(i.moduleUrl(v,m),_),c()}};if(i.dynamicModules[v])i.dynamicModules[v]().then(function($){$.default?y($.default):y($)});else{try{f=this.$require(v)}catch{}y(f||i.$loaded[v])}},i.$require=function(u){if(typeof s.require=="function"){var h="require";return s[h](u)}},i.setModuleLoader=function(u,h){i.dynamicModules[u]=h};var c=function(){!p.basePath&&!p.workerPath&&!p.modePath&&!p.themePath&&!Object.keys(p.$moduleUrls).length&&(console.error("Unable to infer path to ace from script src,","use ace.config.set('basePath', 'path') to enable dynamic loading of modes and themes","or with webpack use ace/webpack-resolver"),c=function(){})};i.version="1.36.4"}),ace.define("ace/loader_build",["require","exports","module","ace/lib/fixoldbrowsers","ace/config"],function(n,i,s){n("./lib/fixoldbrowsers");var a=n("./config");a.setLoader(function(p,o){n([p],function(r){o(null,r)})});var d=function(){return this||typeof window<"u"&&window}();s.exports=function(p){a.init=g,a.$require=n,p.require=n},g(!0);function g(p){if(!(!d||!d.document)){a.set("packaged",p||n.packaged||s.packaged||d.define&&(void 0).packaged);var o={},r="",c=document.currentScript||document._currentScript,u=c&&c.ownerDocument||document;c&&c.src&&(r=c.src.split(/[?#]/)[0].split("/").slice(0,-1).join("/")||"");for(var h=u.getElementsByTagName("script"),f=0;f ["+this.end.row+"/"+this.end.column+"]"},d.prototype.contains=function(g,l){return this.compare(g,l)==0},d.prototype.compareRange=function(g){var l,p=g.end,o=g.start;return l=this.compare(p.row,p.column),l==1?(l=this.compare(o.row,o.column),l==1?2:l==0?1:0):l==-1?-2:(l=this.compare(o.row,o.column),l==-1?-1:l==1?42:0)},d.prototype.comparePoint=function(g){return this.compare(g.row,g.column)},d.prototype.containsRange=function(g){return this.comparePoint(g.start)==0&&this.comparePoint(g.end)==0},d.prototype.intersects=function(g){var l=this.compareRange(g);return l==-1||l==0||l==1},d.prototype.isEnd=function(g,l){return this.end.row==g&&this.end.column==l},d.prototype.isStart=function(g,l){return this.start.row==g&&this.start.column==l},d.prototype.setStart=function(g,l){typeof g=="object"?(this.start.column=g.column,this.start.row=g.row):(this.start.row=g,this.start.column=l)},d.prototype.setEnd=function(g,l){typeof g=="object"?(this.end.column=g.column,this.end.row=g.row):(this.end.row=g,this.end.column=l)},d.prototype.inside=function(g,l){return this.compare(g,l)==0?!(this.isEnd(g,l)||this.isStart(g,l)):!1},d.prototype.insideStart=function(g,l){return this.compare(g,l)==0?!this.isEnd(g,l):!1},d.prototype.insideEnd=function(g,l){return this.compare(g,l)==0?!this.isStart(g,l):!1},d.prototype.compare=function(g,l){return!this.isMultiLine()&&g===this.start.row?lthis.end.column?1:0:gthis.end.row?1:this.start.row===g?l>=this.start.column?0:-1:this.end.row===g?l<=this.end.column?0:1:0},d.prototype.compareStart=function(g,l){return this.start.row==g&&this.start.column==l?-1:this.compare(g,l)},d.prototype.compareEnd=function(g,l){return this.end.row==g&&this.end.column==l?1:this.compare(g,l)},d.prototype.compareInside=function(g,l){return this.end.row==g&&this.end.column==l?1:this.start.row==g&&this.start.column==l?-1:this.compare(g,l)},d.prototype.clipRows=function(g,l){if(this.end.row>l)var p={row:l+1,column:0};else if(this.end.rowl)var o={row:l+1,column:0};else if(this.start.row1?(O++,O>4&&(O=1)):O=1,d.isIE){var A=Math.abs(w.clientX-L)>5||Math.abs(w.clientY-T)>5;(!k||A)&&(O=1),k&&clearTimeout(k),k=setTimeout(function(){k=null},_[O-1]||600),O==1&&(L=w.clientX,T=w.clientY)}if(w._clicks=O,S[b]("mousedown",w),O>4)O=0;else if(O>1)return S[b](x[O],w)}Array.isArray($)||($=[$]),$.forEach(function(w){u(w,"mousedown",C,M)})};function f($){return 0|($.ctrlKey?1:0)|($.altKey?2:0)|($.shiftKey?4:0)|($.metaKey?8:0)}i.getModifierString=function($){return a.KEY_MODS[f($)]};function m($,_,S){var b=f(_);if(!S&&_.code&&(S=a.$codeToKeyCode[_.code]||S),!d.isMac&&g){if(_.getModifierState&&(_.getModifierState("OS")||_.getModifierState("Win"))&&(b|=8),g.altGr)if((3&b)!=3)g.altGr=0;else return;if(S===18||S===17){var M=_.location;if(S===17&&M===1)g[S]==1&&(l=_.timeStamp);else if(S===18&&b===3&&M===2){var O=_.timeStamp-l;O<50&&(g.altGr=!0)}}}if(S in a.MODIFIER_KEYS&&(S=-1),!(!b&&S===13&&_.location===3&&($(_,b,-S),_.defaultPrevented))){if(d.isChromeOS&&b&8){if($(_,b,S),_.defaultPrevented)return;b&=-9}return!b&&!(S in a.FUNCTION_KEYS)&&!(S in a.PRINTABLE_KEYS)?!1:$(_,b,S)}}i.addCommandKeyListener=function($,_,S){var b=null;u($,"keydown",function(M){g[M.keyCode]=(g[M.keyCode]||0)+1;var O=m(_,M,M.keyCode);return b=M.defaultPrevented,O},S),u($,"keypress",function(M){b&&(M.ctrlKey||M.altKey||M.shiftKey||M.metaKey)&&(i.stopEvent(M),b=null)},S),u($,"keyup",function(M){g[M.keyCode]=null},S),g||(v(),u(window,"focus",v))};function v(){g=Object.create(null)}if(typeof window=="object"&&window.postMessage&&!d.isOldIE){var y=1;i.nextTick=function($,_){_=_||window;var S="zero-timeout-message-"+y++,b=function(M){M.data==S&&(i.stopPropagation(M),h(_,"message",b),$())};u(_,"message",b),_.postMessage(S,"*")}}i.$idleBlocked=!1,i.onIdle=function($,_){return setTimeout(function S(){i.$idleBlocked?setTimeout(S,100):$()},_)},i.$idleBlockId=null,i.blockIdle=function($){i.$idleBlockId&&clearTimeout(i.$idleBlockId),i.$idleBlocked=!0,i.$idleBlockId=setTimeout(function(){i.$idleBlocked=!1},$||100)},i.nextFrame=typeof window=="object"&&(window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame||window.oRequestAnimationFrame),i.nextFrame?i.nextFrame=i.nextFrame.bind(window):i.nextFrame=function($){setTimeout($,17)}}),ace.define("ace/clipboard",["require","exports","module"],function(n,i,s){var a;s.exports={lineMode:!1,pasteCancelled:function(){return a&&a>Date.now()-50?!0:a=!1},cancel:function(){a=Date.now()}}}),ace.define("ace/keyboard/textinput",["require","exports","module","ace/lib/event","ace/config","ace/lib/useragent","ace/lib/dom","ace/lib/lang","ace/clipboard","ace/lib/keys"],function(n,i,s){var a=n("../lib/event"),d=n("../config").nls,g=n("../lib/useragent"),l=n("../lib/dom"),p=n("../lib/lang"),o=n("../clipboard"),r=g.isChrome<18,c=g.isIE,u=g.isChrome>63,h=400,f=n("../lib/keys"),m=f.KEY_MODS,v=g.isIOS,y=v?/\s/:/\n/,$=g.isMobile,_;_=function(S,b){var M=l.createElement("textarea");M.className="ace_text-input",M.setAttribute("wrap","off"),M.setAttribute("autocorrect","off"),M.setAttribute("autocapitalize","off"),M.setAttribute("spellcheck","false"),M.style.opacity="0",S.insertBefore(M,S.firstChild);var O=!1,L=!1,T=!1,k=!1,x="";$||(M.style.fontSize="1px");var C=!1,w=!1,A="",E=0,R=0,I=0,N=Number.MAX_SAFE_INTEGER,F=Number.MIN_SAFE_INTEGER,z=0;try{var U=document.activeElement===M}catch{}this.setNumberOfExtraLines=function(K){if(N=Number.MAX_SAFE_INTEGER,F=Number.MIN_SAFE_INTEGER,K<0){z=0;return}z=K},this.setAriaLabel=function(){var K="";if(b.$textInputAriaLabel&&(K+="".concat(b.$textInputAriaLabel,", ")),b.session){var ae=b.session.selection.cursor.row;K+=d("text-input.aria-label","Cursor at row $0",[ae+1])}M.setAttribute("aria-label",K)},this.setAriaOptions=function(K){K.activeDescendant?(M.setAttribute("aria-haspopup","true"),M.setAttribute("aria-autocomplete",K.inline?"both":"list"),M.setAttribute("aria-activedescendant",K.activeDescendant)):(M.setAttribute("aria-haspopup","false"),M.setAttribute("aria-autocomplete","both"),M.removeAttribute("aria-activedescendant")),K.role&&M.setAttribute("role",K.role),K.setLabel&&(M.setAttribute("aria-roledescription",d("text-input.aria-roledescription","editor")),this.setAriaLabel())},this.setAriaOptions({role:"textbox"}),a.addListener(M,"blur",function(K){w||(b.onBlur(K),U=!1)},b),a.addListener(M,"focus",function(K){if(!w){if(U=!0,g.isEdge)try{if(!document.hasFocus())return}catch{}b.onFocus(K),g.isEdge?setTimeout(B):B()}},b),this.$focusScroll=!1,this.focus=function(){if(this.setAriaOptions({setLabel:b.renderer.enableKeyboardAccessibility}),x||u||this.$focusScroll=="browser")return M.focus({preventScroll:!0});var K=M.style.top;M.style.position="fixed",M.style.top="0px";try{var ae=M.getBoundingClientRect().top!=0}catch{return}var fe=[];if(ae)for(var be=M.parentElement;be&&be.nodeType==1;)fe.push(be),be.setAttribute("ace_nocontext","true"),!be.parentElement&&be.getRootNode?be=be.getRootNode().host:be=be.parentElement;M.focus({preventScroll:!0}),ae&&fe.forEach(function(Ie){Ie.removeAttribute("ace_nocontext")}),setTimeout(function(){M.style.position="",M.style.top=="0px"&&(M.style.top=K)},0)},this.blur=function(){M.blur()},this.isFocused=function(){return U},b.on("beforeEndOperation",function(){var K=b.curOp,ae=K&&K.command&&K.command.name;if(ae!="insertstring"){var fe=ae&&(K.docChanged||K.selectionChanged);T&&fe&&(A=M.value="",re()),B()}}),b.on("changeSelection",this.setAriaLabel);var j=function(K,ae){for(var fe=ae,be=1;be<=K-N&&be<2*z+1;be++)fe+=b.session.getLine(K-be).length+1;return fe},B=v?function(K){if(!(!U||O&&!K||k)){K||(K="");var ae=` ab`+K+`cde fg `;ae!=M.value&&(M.value=A=ae);var fe=4,be=4+(K.length||(b.selection.isEmpty()?0:1));(E!=fe||R!=be)&&M.setSelectionRange(fe,be),E=fe,R=be}}:function(){if(!(T||k)&&!(!U&&!Z)){T=!0;var K=0,ae=0,fe="";if(b.session){var be=b.selection,Ie=be.getRange(),Be=be.cursor.row;Be===F+1?(N=F+1,F=N+2*z):Be===N-1?(F=N-1,N=F-2*z):(BeF+1)&&(N=Be>z?Be-z:0,F=Be>z?Be+z:2*z);for(var Ue=[],ze=N;ze<=F;ze++)Ue.push(b.session.getLine(ze));if(fe=Ue.join(` `),K=j(Ie.start.row,Ie.start.column),ae=j(Ie.end.row,Ie.end.column),Ie.start.rowF){var Ve=b.session.getLine(F+1);ae=Ie.end.row>F+1?Ve.length:Ie.end.column,ae+=fe.length+1,fe=fe+` `+Ve}else $&&Be>0&&(fe=` `+fe,ae+=1,K+=1);fe.length>h&&(K=A.length&&K.value===A&&A&&K.selectionEnd!==R},Q=function(K){T||(O?O=!1:V(M)?(b.selectAll(),B()):$&&M.selectionStart!=E&&B())},H=null;this.setInputHandler=function(K){H=K},this.getInputHandler=function(){return H};var Z=!1,X=function(K,ae){if(Z&&(Z=!1),L)return B(),K&&b.onPaste(K),L=!1,"";for(var fe=M.selectionStart,be=M.selectionEnd,Ie=E,Be=A.length-R,Ue=K,ze=K.length-fe,Ye=K.length-be,Ve=0;Ie>0&&A[Ve]==K[Ve];)Ve++,Ie--;for(Ue=Ue.slice(Ve),Ve=1;Be>0&&A.length-Ve>E-1&&A[A.length-Ve]==K[K.length-Ve];)Ve++,Be--;ze-=Ve-1,Ye-=Ve-1;var Qe=Ue.length-Ve+1;if(Qe<0&&(Ie=-Qe,Qe=0),Ue=Ue.slice(0,Qe),!ae&&!Ue&&!ze&&!Ie&&!Be&&!Ye)return"";k=!0;var vt=!1;return g.isAndroid&&Ue==". "&&(Ue=" ",vt=!0),Ue&&!Ie&&!Be&&!ze&&!Ye||C?b.onTextInput(Ue):b.onTextInput(Ue,{extendLeft:Ie,extendRight:Be,restoreStart:ze,restoreEnd:Ye}),k=!1,A=K,E=fe,R=be,I=Ye,vt?` `:Ue},q=function(K){if(T)return ee();if(K&&K.inputType){if(K.inputType=="historyUndo")return b.execCommand("undo");if(K.inputType=="historyRedo")return b.execCommand("redo")}var ae=M.value,fe=X(ae,!0);(ae.length>h+100||y.test(fe)||$&&E<1&&E==R)&&B()},ue=function(K,ae,fe){var be=K.clipboardData||window.clipboardData;if(!(!be||r)){var Ie=c||fe?"Text":"text/plain";try{return ae?be.setData(Ie,ae)!==!1:be.getData(Ie)}catch(Be){if(!fe)return ue(Be,ae,!0)}}},we=function(K,ae){var fe=b.getCopyText();if(!fe)return a.preventDefault(K);ue(K,fe)?(v&&(B(fe),O=fe,setTimeout(function(){O=!1},10)),ae?b.onCut():b.onCopy(),a.preventDefault(K)):(O=!0,M.value=fe,M.select(),setTimeout(function(){O=!1,B(),ae?b.onCut():b.onCopy()}))},P=function(K){we(K,!0)},W=function(K){we(K,!1)},G=function(K){var ae=ue(K);o.pasteCancelled()||(typeof ae=="string"?(ae&&b.onPaste(ae,K),g.isIE&&setTimeout(B),a.preventDefault(K)):(M.value="",L=!0))};a.addCommandKeyListener(M,function(K,ae,fe){if(!T)return b.onCommandKey(K,ae,fe)},b),a.addListener(M,"select",Q,b),a.addListener(M,"input",q,b),a.addListener(M,"cut",P,b),a.addListener(M,"copy",W,b),a.addListener(M,"paste",G,b),(!("oncut"in M)||!("oncopy"in M)||!("onpaste"in M))&&a.addListener(S,"keydown",function(K){if(!(g.isMac&&!K.metaKey||!K.ctrlKey))switch(K.keyCode){case 67:W(K);break;case 86:G(K);break;case 88:P(K);break}},b);var ne=function(K){if(!(T||!b.onCompositionStart||b.$readOnly)&&(T={},!C)){K.data&&(T.useTextareaForIME=!1),setTimeout(ee,0),b._signal("compositionStart"),b.on("mousedown",pe);var ae=b.getSelectionRange();ae.end.row=ae.start.row,ae.end.column=ae.start.column,T.markerRange=ae,T.selectionStart=E,b.onCompositionStart(T),T.useTextareaForIME?(A=M.value="",E=0,R=0):(M.msGetInputContext&&(T.context=M.msGetInputContext()),M.getInputContext&&(T.context=M.getInputContext()))}},ee=function(){if(!(!T||!b.onCompositionUpdate||b.$readOnly)){if(C)return pe();if(T.useTextareaForIME)b.onCompositionUpdate(M.value);else{var K=M.value;X(K),T.markerRange&&(T.context&&(T.markerRange.start.column=T.selectionStart=T.context.compositionStartOffset),T.markerRange.end.column=T.markerRange.start.column+R-T.selectionStart+I)}}},re=function(K){!b.onCompositionEnd||b.$readOnly||(T=!1,b.onCompositionEnd(),b.off("mousedown",pe),K&&q())};function pe(){w=!0,M.blur(),M.focus(),w=!1}var de=p.delayedCall(ee,50).schedule.bind(null,null);function he(K){K.keyCode==27&&M.value.lengthR&&A[Ye]==` `?Ve=f.end:zeR&&A.slice(0,Ye).split(` `).length>2?Ve=f.down:Ye>R&&A[Ye-1]==" "?(Ve=f.right,Qe=m.option):(Ye>R||Ye==R&&R!=E&&ze==Ye)&&(Ve=f.right),ze!==Ye&&(Qe|=m.shift),Ve){var vt=ae.onCommandKey({},Qe,Ve);if(!vt&&ae.commands){Ve=f.keyCodeToString(Ve);var Vi=ae.commands.findKeyCommand(Qe,Ve);Vi&&ae.execCommand(Vi)}E=ze,R=Ye,B("")}}};document.addEventListener("selectionchange",Be),ae.on("destroy",function(){document.removeEventListener("selectionchange",Be)})}this.destroy=function(){M.parentElement&&M.parentElement.removeChild(M)}},i.TextInput=_,i.$setUserAgentForTests=function(S,b){$=S,v=b}}),ace.define("ace/mouse/default_handlers",["require","exports","module","ace/lib/useragent"],function(n,i,s){var a=n("../lib/useragent"),d=0,g=550,l=function(){function r(c){c.$clickSelection=null;var u=c.editor;u.setDefaultHandler("mousedown",this.onMouseDown.bind(c)),u.setDefaultHandler("dblclick",this.onDoubleClick.bind(c)),u.setDefaultHandler("tripleclick",this.onTripleClick.bind(c)),u.setDefaultHandler("quadclick",this.onQuadClick.bind(c)),u.setDefaultHandler("mousewheel",this.onMouseWheel.bind(c));var h=["select","startSelect","selectEnd","selectAllEnd","selectByWordsEnd","selectByLinesEnd","dragWait","dragWaitEnd","focusWait"];h.forEach(function(f){c[f]=this[f]},this),c.selectByLines=this.extendSelectionBy.bind(c,"getLineRange"),c.selectByWords=this.extendSelectionBy.bind(c,"getWordRange")}return r.prototype.onMouseDown=function(c){var u=c.inSelection(),h=c.getDocumentPosition();this.mousedownEvent=c;var f=this.editor,m=c.getButton();if(m!==0){var v=f.getSelectionRange(),y=v.isEmpty();(y||m==1)&&f.selection.moveToPosition(h),m==2&&(f.textInput.onContextMenu(c.domEvent),a.isMozilla||c.preventDefault());return}if(this.mousedownEvent.time=Date.now(),u&&!f.isFocused()&&(f.focus(),this.$focusTimeout&&!this.$clickSelection&&!f.inMultiSelectMode)){this.setState("focusWait"),this.captureMouse(c);return}return this.captureMouse(c),this.startSelect(h,c.domEvent._clicks>1),c.preventDefault()},r.prototype.startSelect=function(c,u){c=c||this.editor.renderer.screenToTextCoordinates(this.x,this.y);var h=this.editor;this.mousedownEvent&&(this.mousedownEvent.getShiftKey()?h.selection.selectToPosition(c):u||h.selection.moveToPosition(c),u||this.select(),h.setStyle("ace_selecting"),this.setState("select"))},r.prototype.select=function(){var c,u=this.editor,h=u.renderer.screenToTextCoordinates(this.x,this.y);if(this.$clickSelection){var f=this.$clickSelection.comparePoint(h);if(f==-1)c=this.$clickSelection.end;else if(f==1)c=this.$clickSelection.start;else{var m=o(this.$clickSelection,h);h=m.cursor,c=m.anchor}u.selection.setSelectionAnchor(c.row,c.column)}u.selection.selectToPosition(h),u.renderer.scrollCursorIntoView()},r.prototype.extendSelectionBy=function(c){var u,h=this.editor,f=h.renderer.screenToTextCoordinates(this.x,this.y),m=h.selection[c](f.row,f.column);if(this.$clickSelection){var v=this.$clickSelection.comparePoint(m.start),y=this.$clickSelection.comparePoint(m.end);if(v==-1&&y<=0)u=this.$clickSelection.end,(m.end.row!=f.row||m.end.column!=f.column)&&(f=m.start);else if(y==1&&v>=0)u=this.$clickSelection.start,(m.start.row!=f.row||m.start.column!=f.column)&&(f=m.end);else if(v==-1&&y==1)f=m.end,u=m.start;else{var $=o(this.$clickSelection,f);f=$.cursor,u=$.anchor}h.selection.setSelectionAnchor(u.row,u.column)}h.selection.selectToPosition(f),h.renderer.scrollCursorIntoView()},r.prototype.selectByLinesEnd=function(){this.$clickSelection=null,this.editor.unsetStyle("ace_selecting")},r.prototype.focusWait=function(){var c=p(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y),u=Date.now();(c>d||u-this.mousedownEvent.time>this.$focusTimeout)&&this.startSelect(this.mousedownEvent.getDocumentPosition())},r.prototype.onDoubleClick=function(c){var u=c.getDocumentPosition(),h=this.editor,f=h.session,m=f.getBracketRange(u);m?(m.isEmpty()&&(m.start.column--,m.end.column++),this.setState("select")):(m=h.selection.getWordRange(u.row,u.column),this.setState("selectByWords")),this.$clickSelection=m,this.select()},r.prototype.onTripleClick=function(c){var u=c.getDocumentPosition(),h=this.editor;this.setState("selectByLines");var f=h.getSelectionRange();f.isMultiLine()&&f.contains(u.row,u.column)?(this.$clickSelection=h.selection.getLineRange(f.start.row),this.$clickSelection.end=h.selection.getLineRange(f.end.row).end):this.$clickSelection=h.selection.getLineRange(u.row),this.select()},r.prototype.onQuadClick=function(c){var u=this.editor;u.selectAll(),this.$clickSelection=u.getSelectionRange(),this.setState("selectAll")},r.prototype.onMouseWheel=function(c){if(!c.getAccelKey()){c.getShiftKey()&&c.wheelY&&!c.wheelX&&(c.wheelX=c.wheelY,c.wheelY=0);var u=this.editor;this.$lastScroll||(this.$lastScroll={t:0,vx:0,vy:0,allowed:0});var h=this.$lastScroll,f=c.domEvent.timeStamp,m=f-h.t,v=m?c.wheelX/m:h.vx,y=m?c.wheelY/m:h.vy;m=1&&u.renderer.isScrollableBy(c.wheelX*c.speed,0)&&(_=!0),$<=1&&u.renderer.isScrollableBy(0,c.wheelY*c.speed)&&(_=!0),_)h.allowed=f;else if(f-h.allowedg.clientHeight;l||d.preventDefault()}}),ace.define("ace/tooltip",["require","exports","module","ace/lib/dom","ace/lib/event","ace/range","ace/lib/scroll"],function(n,i,s){var a=this&&this.__extends||function(){var f=function(m,v){return f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(y,$){y.__proto__=$}||function(y,$){for(var _ in $)Object.prototype.hasOwnProperty.call($,_)&&(y[_]=$[_])},f(m,v)};return function(m,v){if(typeof v!="function"&&v!==null)throw new TypeError("Class extends value "+String(v)+" is not a constructor or null");f(m,v);function y(){this.constructor=m}m.prototype=v===null?Object.create(v):(y.prototype=v.prototype,new y)}}(),d=this&&this.__values||function(f){var m=typeof Symbol=="function"&&Symbol.iterator,v=m&&f[m],y=0;if(v)return v.call(f);if(f&&typeof f.length=="number")return{next:function(){return f&&y>=f.length&&(f=void 0),{value:f&&f[y++],done:!f}}};throw new TypeError(m?"Object is not iterable.":"Symbol.iterator is not defined.")},g=n("./lib/dom");n("./lib/event");var l=n("./range").Range,p=n("./lib/scroll").preventParentScroll,o="ace_tooltip",r=function(){function f(m){this.isOpen=!1,this.$element=null,this.$parentNode=m}return f.prototype.$init=function(){return this.$element=g.createElement("div"),this.$element.className=o,this.$element.style.display="none",this.$parentNode.appendChild(this.$element),this.$element},f.prototype.getElement=function(){return this.$element||this.$init()},f.prototype.setText=function(m){this.getElement().textContent=m},f.prototype.setHtml=function(m){this.getElement().innerHTML=m},f.prototype.setPosition=function(m,v){this.getElement().style.left=m+"px",this.getElement().style.top=v+"px"},f.prototype.setClassName=function(m){g.addCssClass(this.getElement(),m)},f.prototype.setTheme=function(m){this.$element.className=o+" "+(m.isDark?"ace_dark ":"")+(m.cssClass||"")},f.prototype.show=function(m,v,y){m!=null&&this.setText(m),v!=null&&y!=null&&this.setPosition(v,y),this.isOpen||(this.getElement().style.display="block",this.isOpen=!0)},f.prototype.hide=function(m){this.isOpen&&(this.getElement().style.display="none",this.getElement().className=o,this.isOpen=!1)},f.prototype.getHeight=function(){return this.getElement().offsetHeight},f.prototype.getWidth=function(){return this.getElement().offsetWidth},f.prototype.destroy=function(){this.isOpen=!1,this.$element&&this.$element.parentNode&&this.$element.parentNode.removeChild(this.$element)},f}(),c=function(){function f(){this.popups=[]}return f.prototype.addPopup=function(m){this.popups.push(m),this.updatePopups()},f.prototype.removePopup=function(m){var v=this.popups.indexOf(m);v!==-1&&(this.popups.splice(v,1),this.updatePopups())},f.prototype.updatePopups=function(){var m,v,y,$;this.popups.sort(function(x,C){return C.priority-x.priority});var _=[];try{for(var S=d(this.popups),b=S.next();!b.done;b=S.next()){var M=b.value,O=!0;try{for(var L=(y=void 0,d(_)),T=L.next();!T.done;T=L.next()){var k=T.value;if(this.doPopupsOverlap(k,M)){O=!1;break}}}catch(x){y={error:x}}finally{try{T&&!T.done&&($=L.return)&&$.call(L)}finally{if(y)throw y.error}}O?_.push(M):M.hide()}}catch(x){m={error:x}}finally{try{b&&!b.done&&(v=S.return)&&v.call(S)}finally{if(m)throw m.error}}},f.prototype.doPopupsOverlap=function(m,v){var y=m.getElement().getBoundingClientRect(),$=v.getElement().getBoundingClientRect();return y.left<$.right&&y.right>$.left&&y.top<$.bottom&&y.bottom>$.top},f}(),u=new c;i.popupManager=u,i.Tooltip=r;var h=function(f){a(m,f);function m(v){v===void 0&&(v=document.body);var y=f.call(this,v)||this;y.timeout=void 0,y.lastT=0,y.idleTime=350,y.lastEvent=void 0,y.onMouseOut=y.onMouseOut.bind(y),y.onMouseMove=y.onMouseMove.bind(y),y.waitForHover=y.waitForHover.bind(y),y.hide=y.hide.bind(y);var $=y.getElement();return $.style.whiteSpace="pre-wrap",$.style.pointerEvents="auto",$.addEventListener("mouseout",y.onMouseOut),$.tabIndex=-1,$.addEventListener("blur",(function(){$.contains(document.activeElement)||this.hide()}).bind(y)),$.addEventListener("wheel",p),y}return m.prototype.addToEditor=function(v){v.on("mousemove",this.onMouseMove),v.on("mousedown",this.hide),v.renderer.getMouseEventTarget().addEventListener("mouseout",this.onMouseOut,!0)},m.prototype.removeFromEditor=function(v){v.off("mousemove",this.onMouseMove),v.off("mousedown",this.hide),v.renderer.getMouseEventTarget().removeEventListener("mouseout",this.onMouseOut,!0),this.timeout&&(clearTimeout(this.timeout),this.timeout=null)},m.prototype.onMouseMove=function(v,y){this.lastEvent=v,this.lastT=Date.now();var $=y.$mouseHandler.isMousePressed;if(this.isOpen){var _=this.lastEvent&&this.lastEvent.getDocumentPosition();(!this.range||!this.range.contains(_.row,_.column)||$||this.isOutsideOfText(this.lastEvent))&&this.hide()}this.timeout||$||(this.lastEvent=v,this.timeout=setTimeout(this.waitForHover,this.idleTime))},m.prototype.waitForHover=function(){this.timeout&&clearTimeout(this.timeout);var v=Date.now()-this.lastT;if(this.idleTime-v>10){this.timeout=setTimeout(this.waitForHover,this.idleTime-v);return}this.timeout=null,this.lastEvent&&!this.isOutsideOfText(this.lastEvent)&&this.$gatherData(this.lastEvent,this.lastEvent.editor)},m.prototype.isOutsideOfText=function(v){var y=v.editor,$=v.getDocumentPosition(),_=y.session.getLine($.row);if($.column==_.length){var S=y.renderer.pixelToScreenCoordinates(v.clientX,v.clientY),b=y.session.documentToScreenPosition($.row,$.column);if(b.column!=S.column||b.row!=S.row)return!0}return!1},m.prototype.setDataProvider=function(v){this.$gatherData=v},m.prototype.showForRange=function(v,y,$,_){var S=10;if(!(_&&_!=this.lastEvent)&&!(this.isOpen&&document.activeElement==this.getElement())){var b=v.renderer;this.isOpen||(u.addPopup(this),this.$registerCloseEvents(),this.setTheme(b.theme)),this.isOpen=!0,this.addMarker(y,v.session),this.range=l.fromPoints(y.start,y.end);var M=b.textToScreenCoordinates(y.start.row,y.start.column),O=b.scroller.getBoundingClientRect();M.pageX=u.length&&(u=void 0),{value:u&&u[m++],done:!u}}};throw new TypeError(h?"Object is not iterable.":"Symbol.iterator is not defined.")},g=n("../lib/dom"),l=n("../lib/event"),p=n("../tooltip").Tooltip,o=n("../config").nls;n("../lib/lang");function r(u){var h=u.editor,f=h.renderer.$gutterLayer,m=new c(h);u.editor.setDefaultHandler("guttermousedown",function(b){if(!(!h.isFocused()||b.getButton()!=0)){var M=f.getRegion(b);if(M!="foldWidgets"){var O=b.getDocumentPosition().row,L=h.session.selection;if(b.getShiftKey())L.selectTo(O,0);else{if(b.domEvent.detail==2)return h.selectAll(),b.preventDefault();u.$clickSelection=h.selection.getLineRange(O)}return u.setState("selectByLines"),u.captureMouse(b),b.preventDefault()}}});var v,y;function $(){var b=y.getDocumentPosition().row,M=h.session.getLength();if(b==M){var O=h.renderer.pixelToScreenCoordinates(0,y.y).row,L=y.$pos;if(O>h.session.documentToScreenRow(L.row,L.column))return _()}if(m.showTooltip(b),!!m.isOpen)if(h.on("mousewheel",_),u.$tooltipFollowsMouse)S(y);else{var T=y.getGutterRow(),k=f.$lines.get(T);if(k){var x=k.element.querySelector(".ace_gutter_annotation"),C=x.getBoundingClientRect(),w=m.getElement().style;w.left=C.right+"px",w.top=C.bottom+"px"}else S(y)}}function _(){v&&(v=clearTimeout(v)),m.isOpen&&(m.hideTooltip(),h.off("mousewheel",_))}function S(b){m.setPosition(b.x,b.y)}u.editor.setDefaultHandler("guttermousemove",function(b){var M=b.domEvent.target||b.domEvent.srcElement;if(g.hasCssClass(M,"ace_fold-widget"))return _();m.isOpen&&u.$tooltipFollowsMouse&&S(b),y=b,!v&&(v=setTimeout(function(){v=null,y&&!u.isMousePressed?$():_()},50))}),l.addListener(h.renderer.$gutter,"mouseout",function(b){y=null,!(!m.isOpen||v)&&(v=setTimeout(function(){v=null,_()},50))},h),h.on("changeSession",_),h.on("input",_)}i.GutterHandler=r;var c=function(u){a(h,u);function h(f){var m=u.call(this,f.container)||this;return m.editor=f,m}return h.prototype.setPosition=function(f,m){var v=window.innerWidth||document.documentElement.clientWidth,y=window.innerHeight||document.documentElement.clientHeight,$=this.getWidth(),_=this.getHeight();f+=15,m+=15,f+$>v&&(f-=f+$-v),m+_>y&&(m-=20+_),p.prototype.setPosition.call(this,f,m)},Object.defineProperty(h,"annotationLabels",{get:function(){return{error:{singular:o("gutter-tooltip.aria-label.error.singular","error"),plural:o("gutter-tooltip.aria-label.error.plural","errors")},security:{singular:o("gutter-tooltip.aria-label.security.singular","security finding"),plural:o("gutter-tooltip.aria-label.security.plural","security findings")},warning:{singular:o("gutter-tooltip.aria-label.warning.singular","warning"),plural:o("gutter-tooltip.aria-label.warning.plural","warnings")},info:{singular:o("gutter-tooltip.aria-label.info.singular","information message"),plural:o("gutter-tooltip.aria-label.info.plural","information messages")},hint:{singular:o("gutter-tooltip.aria-label.hint.singular","suggestion"),plural:o("gutter-tooltip.aria-label.hint.plural","suggestions")}}},enumerable:!1,configurable:!0}),h.prototype.showTooltip=function(f){var m,v=this.editor.renderer.$gutterLayer,y=v.$annotations[f],$;y?$={displayText:Array.from(y.displayText),type:Array.from(y.type)}:$={displayText:[],type:[]};var _=v.session.getFoldLine(f);if(_&&v.$showFoldedAnnotations){for(var S={error:[],security:[],warning:[],info:[],hint:[]},b={error:1,security:2,warning:3,info:4,hint:5},M,O=f+1;O<=_.end.row;O++)if(v.$annotations[O])for(var L=0;Lo?x=null:V-x>=p&&(h.renderer.scrollCursorIntoView(),x=null)}}function A(j,B){var V=Date.now(),Q=h.renderer.layerConfig.lineHeight,H=h.renderer.layerConfig.characterWidth,Z=h.renderer.scroller.getBoundingClientRect(),X={x:{left:$-Z.left,right:Z.right-$},y:{top:_-Z.top,bottom:Z.bottom-_}},q=Math.min(X.x.left,X.x.right),ue=Math.min(X.y.top,X.y.bottom),we={row:j.row,column:j.column};q/H<=2&&(we.column+=X.x.left=l&&h.renderer.scrollCursorIntoView(we):k=V:k=null}function E(){var j=M;M=h.renderer.screenToTextCoordinates($,_),w(M,j),A(M,j)}function R(){b=h.selection.toOrientedRange(),y=h.session.addMarker(b,"ace_selection",h.getSelectionStyle()),h.clearSelection(),h.isFocused()&&h.renderer.$cursorLayer.setBlinking(!1),clearInterval(S),E(),S=setInterval(E,20),O=0,d.addListener(document,"mousemove",F)}function I(){clearInterval(S),h.session.removeMarker(y),y=null,h.selection.fromOrientedRange(b),h.isFocused()&&!T&&h.$resetCursorStyle(),b=null,M=null,O=0,k=null,x=null,d.removeListener(document,"mousemove",F)}var N=null;function F(){N==null&&(N=setTimeout(function(){N!=null&&y&&I()},20))}function z(j){var B=j.types;return!B||Array.prototype.some.call(B,function(V){return V=="text/plain"||V=="Text"})}function U(j){var B=["copy","copymove","all","uninitialized"],V=["move","copymove","linkmove","all","uninitialized"],Q=g.isMac?j.altKey:j.ctrlKey,H="uninitialized";try{H=j.dataTransfer.effectAllowed.toLowerCase()}catch{}var Z="none";return Q&&B.indexOf(H)>=0?Z="copy":V.indexOf(H)>=0?Z="move":B.indexOf(H)>=0&&(Z="copy"),Z}}(function(){this.dragWait=function(){var u=Date.now()-this.mousedownEvent.time;u>this.editor.getDragDelay()&&this.startDrag()},this.dragWaitEnd=function(){var u=this.editor.container;u.draggable=!1,this.startSelect(this.mousedownEvent.getDocumentPosition()),this.selectEnd()},this.dragReadyEnd=function(u){this.editor.$resetCursorStyle(),this.editor.unsetStyle("ace_dragging"),this.editor.renderer.setCursorStyle(""),this.dragWaitEnd()},this.startDrag=function(){this.cancelDrag=!1;var u=this.editor,h=u.container;h.draggable=!0,u.renderer.$cursorLayer.setBlinking(!1),u.setStyle("ace_dragging");var f=g.isWin?"default":"move";u.renderer.setCursorStyle(f),this.setState("dragReady")},this.onMouseDrag=function(u){var h=this.editor.container;if(g.isIE&&this.state=="dragReady"){var f=c(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y);f>3&&h.dragDrop()}if(this.state==="dragWait"){var f=c(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y);f>0&&(h.draggable=!1,this.startSelect(this.mousedownEvent.getDocumentPosition()))}},this.onMouseDown=function(u){if(this.$dragEnabled){this.mousedownEvent=u;var h=this.editor,f=u.inSelection(),m=u.getButton(),v=u.domEvent.detail||1;if(v===1&&m===0&&f){if(u.editor.inMultiSelectMode&&(u.getAccelKey()||u.getShiftKey()))return;this.mousedownEvent.time=Date.now();var y=u.domEvent.target||u.domEvent.srcElement;if("unselectable"in y&&(y.unselectable="on"),h.getDragDelay()){if(g.isWebKit){this.cancelDrag=!0;var $=h.container;$.draggable=!0}this.setState("dragWait")}else this.startDrag();this.captureMouse(u,this.onMouseDrag.bind(this)),u.defaultPrevented=!0}}}}).call(r.prototype);function c(u,h,f,m){return Math.sqrt(Math.pow(f-u,2)+Math.pow(m-h,2))}i.DragdropHandler=r}),ace.define("ace/mouse/touch_handler",["require","exports","module","ace/mouse/mouse_event","ace/lib/event","ace/lib/dom"],function(n,i,s){var a=n("./mouse_event").MouseEvent,d=n("../lib/event"),g=n("../lib/dom");i.addTouchListeners=function(l,p){var o="scroll",r,c,u,h,f,m,v=0,y,$=0,_=0,S=0,b,M;function O(){var w=window.navigator&&window.navigator.clipboard,A=!1,E=function(){var N=p.getCopyText(),F=p.session.getUndoManager().hasUndo();M.replaceChild(g.buildDom(A?["span",!N&&R("selectall")&&["span",{class:"ace_mobile-button",action:"selectall"},"Select All"],N&&R("copy")&&["span",{class:"ace_mobile-button",action:"copy"},"Copy"],N&&R("cut")&&["span",{class:"ace_mobile-button",action:"cut"},"Cut"],w&&R("paste")&&["span",{class:"ace_mobile-button",action:"paste"},"Paste"],F&&R("undo")&&["span",{class:"ace_mobile-button",action:"undo"},"Undo"],R("find")&&["span",{class:"ace_mobile-button",action:"find"},"Find"],R("openCommandPalette")&&["span",{class:"ace_mobile-button",action:"openCommandPalette"},"Palette"]]:["span"]),M.firstChild)},R=function(N){return p.commands.canExecute(N,p)},I=function(N){var F=N.target.getAttribute("action");if(F=="more"||!A)return A=!A,E();F=="paste"?w.readText().then(function(z){p.execCommand(F,z)}):F&&((F=="cut"||F=="copy")&&(w?w.writeText(p.getCopyText()):document.execCommand("copy")),p.execCommand(F)),M.firstChild.style.display="none",A=!1,F!="openCommandPalette"&&p.focus()};M=g.buildDom(["div",{class:"ace_mobile-menu",ontouchstart:function(N){o="menu",N.stopPropagation(),N.preventDefault(),p.textInput.focus()},ontouchend:function(N){N.stopPropagation(),N.preventDefault(),I(N)},onclick:I},["span"],["span",{class:"ace_mobile-button",action:"more"},"..."]],p.container)}function L(){if(!p.getOption("enableMobileMenu")){M&&T();return}M||O();var w=p.selection.cursor,A=p.renderer.textToScreenCoordinates(w.row,w.column),E=p.renderer.textToScreenCoordinates(0,0).pageX,R=p.renderer.scrollLeft,I=p.container.getBoundingClientRect();M.style.top=A.pageY-I.top-3+"px",A.pageX-I.left=2?p.selection.getLineRange(y.row):p.session.getBracketRange(y);w&&!w.isEmpty()?p.selection.setRange(w):p.selection.selectWord(),o="wait"}d.addListener(l,"contextmenu",function(w){if(b){var A=p.textInput.getElement();A.focus()}},p),d.addListener(l,"touchstart",function(w){var A=w.touches;if(f||A.length>1){clearTimeout(f),f=null,u=-1,o="zoom";return}b=p.$mouseHandler.isMousePressed=!0;var E=p.renderer.layerConfig.lineHeight,R=p.renderer.layerConfig.lineHeight,I=w.timeStamp;h=I;var N=A[0],F=N.clientX,z=N.clientY;Math.abs(r-F)+Math.abs(c-z)>E&&(u=-1),r=w.clientX=F,c=w.clientY=z,_=S=0;var U=new a(w,p);if(y=U.getDocumentPosition(),I-u<500&&A.length==1&&!v)$++,w.preventDefault(),w.button=0,x();else{$=0;var j=p.selection.cursor,B=p.selection.isEmpty()?j:p.selection.anchor,V=p.renderer.$cursorLayer.getPixelPosition(j,!0),Q=p.renderer.$cursorLayer.getPixelPosition(B,!0),H=p.renderer.scroller.getBoundingClientRect(),Z=p.renderer.layerConfig.offset,X=p.renderer.scrollLeft,q=function(P,W){return P=P/R,W=W/E-.75,P*P+W*W};if(w.clientXwe?"cursor":"anchor"),we<3.5?o="anchor":ue<3.5?o="cursor":o="scroll",f=setTimeout(k,450)}u=I},p),d.addListener(l,"touchend",function(w){b=p.$mouseHandler.isMousePressed=!1,m&&clearInterval(m),o=="zoom"?(o="",v=0):f?(p.selection.moveToPosition(y),v=0,L()):o=="scroll"?(C(),T()):L(),clearTimeout(f),f=null},p),d.addListener(l,"touchmove",function(w){f&&(clearTimeout(f),f=null);var A=w.touches;if(!(A.length>1||o=="zoom")){var E=A[0],R=r-E.clientX,I=c-E.clientY;if(o=="wait")if(R*R+I*I>4)o="cursor";else return w.preventDefault();r=E.clientX,c=E.clientY,w.clientX=E.clientX,w.clientY=E.clientY;var N=w.timeStamp,F=N-h;if(h=N,o=="scroll"){var z=new a(w,p);z.speed=1,z.wheelX=R,z.wheelY=I,10*Math.abs(R)0)if(we==16){for(G=W;G-1){for(G=W;G=0&&Q[re]==b;re--)B[re]=a}}}function F(j,B,V){if(!(d=j){for(Z=H+1;Z=j;)Z++;for(X=H,q=Z-1;X=B.length||(Z=V[Q-1])!=m&&Z!=v||(X=B[Q+1])!=m&&X!=v?y:(g&&(X=v),X==Z?X:y);case O:return Z=Q>0?V[Q-1]:$,Z==m&&Q+10&&V[Q-1]==m)return m;if(g)return y;for(ue=Q+1,q=B.length;ue=1425&&we<=2303||we==64286;if(Z=B[ue],P&&(Z==f||Z==S))return f}return Q<1||(Z=B[Q-1])==$?y:V[Q-1];case $:return g=!1,l=!0,a;case _:return p=!0,y;case k:case x:case w:case A:case C:g=!1;case E:return y}}function U(j){var B=j.charCodeAt(0),V=B>>8;return V==0?B>191?h:R[B]:V==5?/[\u0591-\u05f4]/.test(j)?f:h:V==6?/[\u0610-\u061a\u064b-\u065f\u06d6-\u06e4\u06e7-\u06ed]/.test(j)?T:/[\u0660-\u0669\u066b-\u066c]/.test(j)?v:B==1642?L:/[\u06f0-\u06f9]/.test(j)?m:S:V==32&&B<=8287?I[B&255]:V==254&&B>=65136?S:y}i.L=h,i.R=f,i.EN=m,i.ON_R=3,i.AN=4,i.R_H=5,i.B=6,i.RLE=7,i.DOT="·",i.doBidiReorder=function(j,B,V){if(j.length<2)return{};var Q=j.split(""),H=new Array(Q.length),Z=new Array(Q.length),X=[];a=V?u:c,N(Q,X,Q.length,B);for(var q=0;qS&&B[q]0&&Q[q-1]==="Ù„"&&/\u0622|\u0623|\u0625|\u0627/.test(Q[q])&&(X[q-1]=X[q]=i.R_H,q++);Q[Q.length-1]===i.DOT&&(X[Q.length-1]=i.B),Q[0]==="‫"&&(X[0]=i.RLE);for(var q=0;q=0&&(o=this.session.$docRowCache[c])}return o},p.prototype.getSplitIndex=function(){var o=0,r=this.session.$screenRowCache;if(r.length)for(var c,u=this.session.$getRowCacheIndex(r,this.currentRow);this.currentRow-o>0&&(c=this.session.$getRowCacheIndex(r,this.currentRow-o-1),c===u);)u=c,o++;else o=this.currentRow;return o},p.prototype.updateRowLine=function(o,r){o===void 0&&(o=this.getDocumentRow());var c=o===this.session.getLength()-1,u=c?this.EOF:this.EOL;if(this.wrapIndent=0,this.line=this.session.getLine(o),this.isRtlDir=this.$isRtl||this.line.charAt(0)===this.RLE,this.session.$useWrapMode){var h=this.session.$wrapData[o];h&&(r===void 0&&(r=this.getSplitIndex()),r>0&&h.length?(this.wrapIndent=h.indent,this.wrapOffset=this.wrapIndent*this.charWidths[a.L],this.line=rr?this.session.getOverwrite()?o:o-1:r,u=a.getVisualFromLogicalIdx(c,this.bidiMap),h=this.bidiMap.bidiLevels,f=0;!this.session.getOverwrite()&&o<=r&&h[u]%2!==0&&u++;for(var m=0;mr&&h[u]%2===0&&(f+=this.charWidths[h[u]]),this.wrapIndent&&(f+=this.isRtlDir?-1*this.wrapOffset:this.wrapOffset),this.isRtlDir&&(f+=this.rtlLineOffset),f},p.prototype.getSelections=function(o,r){var c=this.bidiMap,u=c.bidiLevels,h,f=[],m=0,v=Math.min(o,r)-this.wrapIndent,y=Math.max(o,r)-this.wrapIndent,$=!1,_=!1,S=0;this.wrapIndent&&(m+=this.isRtlDir?-1*this.wrapOffset:this.wrapOffset);for(var b,M=0;M=v&&bu+m/2;){if(u+=m,h===f.length-1){m=0;break}m=this.charWidths[f[++h]]}return h>0&&f[h-1]%2!==0&&f[h]%2===0?(c0&&f[h-1]%2===0&&f[h]%2!==0?r=1+(c>u?this.bidiMap.logicalFromVisual[h]:this.bidiMap.logicalFromVisual[h-1]):this.isRtlDir&&h===f.length-1&&m===0&&f[h-1]%2===0||!this.isRtlDir&&h===0&&f[h]%2!==0?r=1+this.bidiMap.logicalFromVisual[h]:(h>0&&f[h-1]%2!==0&&m!==0&&h--,r=this.bidiMap.logicalFromVisual[h]),r===0&&this.isRtlDir&&r++,r+this.wrapIndent},p}();i.BidiHandler=l}),ace.define("ace/selection",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/lib/event_emitter","ace/range"],function(n,i,s){var a=n("./lib/oop"),d=n("./lib/lang"),g=n("./lib/event_emitter").EventEmitter,l=n("./range").Range,p=function(){function o(r){this.session=r,this.doc=r.getDocument(),this.clearSelection(),this.cursor=this.lead=this.doc.createAnchor(0,0),this.anchor=this.doc.createAnchor(0,0),this.$silent=!1;var c=this;this.cursor.on("change",function(u){c.$cursorChanged=!0,c.$silent||c._emit("changeCursor"),!c.$isEmpty&&!c.$silent&&c._emit("changeSelection"),!c.$keepDesiredColumnOnChange&&u.old.column!=u.value.column&&(c.$desiredColumn=null)}),this.anchor.on("change",function(){c.$anchorChanged=!0,!c.$isEmpty&&!c.$silent&&c._emit("changeSelection")})}return o.prototype.isEmpty=function(){return this.$isEmpty||this.anchor.row==this.lead.row&&this.anchor.column==this.lead.column},o.prototype.isMultiLine=function(){return!this.$isEmpty&&this.anchor.row!=this.cursor.row},o.prototype.getCursor=function(){return this.lead.getPosition()},o.prototype.setAnchor=function(r,c){this.$isEmpty=!1,this.anchor.setPosition(r,c)},o.prototype.getAnchor=function(){return this.$isEmpty?this.getSelectionLead():this.anchor.getPosition()},o.prototype.getSelectionLead=function(){return this.lead.getPosition()},o.prototype.isBackwards=function(){var r=this.anchor,c=this.lead;return r.row>c.row||r.row==c.row&&r.column>c.column},o.prototype.getRange=function(){var r=this.anchor,c=this.lead;return this.$isEmpty?l.fromPoints(c,c):this.isBackwards()?l.fromPoints(c,r):l.fromPoints(r,c)},o.prototype.clearSelection=function(){this.$isEmpty||(this.$isEmpty=!0,this._emit("changeSelection"))},o.prototype.selectAll=function(){this.$setSelection(0,0,Number.MAX_VALUE,Number.MAX_VALUE)},o.prototype.setRange=function(r,c){var u=c?r.end:r.start,h=c?r.start:r.end;this.$setSelection(u.row,u.column,h.row,h.column)},o.prototype.$setSelection=function(r,c,u,h){if(!this.$silent){var f=this.$isEmpty,m=this.inMultiSelectMode;this.$silent=!0,this.$cursorChanged=this.$anchorChanged=!1,this.anchor.setPosition(r,c),this.cursor.setPosition(u,h),this.$isEmpty=!l.comparePoints(this.anchor,this.cursor),this.$silent=!1,this.$cursorChanged&&this._emit("changeCursor"),(this.$cursorChanged||this.$anchorChanged||f!=this.$isEmpty||m)&&this._emit("changeSelection")}},o.prototype.$moveSelection=function(r){var c=this.lead;this.$isEmpty&&this.setSelectionAnchor(c.row,c.column),r.call(this)},o.prototype.selectTo=function(r,c){this.$moveSelection(function(){this.moveCursorTo(r,c)})},o.prototype.selectToPosition=function(r){this.$moveSelection(function(){this.moveCursorToPosition(r)})},o.prototype.moveTo=function(r,c){this.clearSelection(),this.moveCursorTo(r,c)},o.prototype.moveToPosition=function(r){this.clearSelection(),this.moveCursorToPosition(r)},o.prototype.selectUp=function(){this.$moveSelection(this.moveCursorUp)},o.prototype.selectDown=function(){this.$moveSelection(this.moveCursorDown)},o.prototype.selectRight=function(){this.$moveSelection(this.moveCursorRight)},o.prototype.selectLeft=function(){this.$moveSelection(this.moveCursorLeft)},o.prototype.selectLineStart=function(){this.$moveSelection(this.moveCursorLineStart)},o.prototype.selectLineEnd=function(){this.$moveSelection(this.moveCursorLineEnd)},o.prototype.selectFileEnd=function(){this.$moveSelection(this.moveCursorFileEnd)},o.prototype.selectFileStart=function(){this.$moveSelection(this.moveCursorFileStart)},o.prototype.selectWordRight=function(){this.$moveSelection(this.moveCursorWordRight)},o.prototype.selectWordLeft=function(){this.$moveSelection(this.moveCursorWordLeft)},o.prototype.getWordRange=function(r,c){if(typeof c>"u"){var u=r||this.lead;r=u.row,c=u.column}return this.session.getWordRange(r,c)},o.prototype.selectWord=function(){this.setSelectionRange(this.getWordRange())},o.prototype.selectAWord=function(){var r=this.getCursor(),c=this.session.getAWordRange(r.row,r.column);this.setSelectionRange(c)},o.prototype.getLineRange=function(r,c){var u=typeof r=="number"?r:this.lead.row,h,f=this.session.getFoldLine(u);return f?(u=f.start.row,h=f.end.row):h=u,c===!0?new l(u,0,h,this.session.getLine(h).length):new l(u,0,h+1,0)},o.prototype.selectLine=function(){this.setSelectionRange(this.getLineRange())},o.prototype.moveCursorUp=function(){this.moveCursorBy(-1,0)},o.prototype.moveCursorDown=function(){this.moveCursorBy(1,0)},o.prototype.wouldMoveIntoSoftTab=function(r,c,u){var h=r.column,f=r.column+c;return u<0&&(h=r.column-c,f=r.column),this.session.isTabStop(r)&&this.doc.getLine(r.row).slice(h,f).split(" ").length-1==c},o.prototype.moveCursorLeft=function(){var r=this.lead.getPosition(),c;if(c=this.session.getFoldAt(r.row,r.column,-1))this.moveCursorTo(c.start.row,c.start.column);else if(r.column===0)r.row>0&&this.moveCursorTo(r.row-1,this.doc.getLine(r.row-1).length);else{var u=this.session.getTabSize();this.wouldMoveIntoSoftTab(r,u,-1)&&!this.session.getNavigateWithinSoftTabs()?this.moveCursorBy(0,-u):this.moveCursorBy(0,-1)}},o.prototype.moveCursorRight=function(){var r=this.lead.getPosition(),c;if(c=this.session.getFoldAt(r.row,r.column,1))this.moveCursorTo(c.end.row,c.end.column);else if(this.lead.column==this.doc.getLine(this.lead.row).length)this.lead.row0&&(c.column=h)}}this.moveCursorTo(c.row,c.column)},o.prototype.moveCursorFileEnd=function(){var r=this.doc.getLength()-1,c=this.doc.getLine(r).length;this.moveCursorTo(r,c)},o.prototype.moveCursorFileStart=function(){this.moveCursorTo(0,0)},o.prototype.moveCursorLongWordRight=function(){var r=this.lead.row,c=this.lead.column,u=this.doc.getLine(r),h=u.substring(c);this.session.nonTokenRe.lastIndex=0,this.session.tokenRe.lastIndex=0;var f=this.session.getFoldAt(r,c,1);if(f){this.moveCursorTo(f.end.row,f.end.column);return}if(this.session.nonTokenRe.exec(h)&&(c+=this.session.nonTokenRe.lastIndex,this.session.nonTokenRe.lastIndex=0,h=u.substring(c)),c>=u.length){this.moveCursorTo(r,u.length),this.moveCursorRight(),r0&&this.moveCursorWordLeft();return}this.session.tokenRe.exec(f)&&(c-=this.session.tokenRe.lastIndex,this.session.tokenRe.lastIndex=0),this.moveCursorTo(r,c)},o.prototype.$shortWordEndIndex=function(r){var c=0,u,h=/\s/,f=this.session.tokenRe;if(f.lastIndex=0,this.session.tokenRe.exec(r))c=this.session.tokenRe.lastIndex;else{for(;(u=r[c])&&h.test(u);)c++;if(c<1){for(f.lastIndex=0;(u=r[c])&&!f.test(u);)if(f.lastIndex=0,c++,h.test(u))if(c>2){c--;break}else{for(;(u=r[c])&&h.test(u);)c++;if(c>2)break}}}return f.lastIndex=0,c},o.prototype.moveCursorShortWordRight=function(){var r=this.lead.row,c=this.lead.column,u=this.doc.getLine(r),h=u.substring(c),f=this.session.getFoldAt(r,c,1);if(f)return this.moveCursorTo(f.end.row,f.end.column);if(c==u.length){var m=this.doc.getLength();do r++,h=this.doc.getLine(r);while(r0&&/^\s*$/.test(h));c=h.length,/\s+$/.test(h)||(h="")}var f=d.stringReverse(h),m=this.$shortWordEndIndex(f);return this.moveCursorTo(r,c-m)},o.prototype.moveCursorWordRight=function(){this.session.$selectLongWords?this.moveCursorLongWordRight():this.moveCursorShortWordRight()},o.prototype.moveCursorWordLeft=function(){this.session.$selectLongWords?this.moveCursorLongWordLeft():this.moveCursorShortWordLeft()},o.prototype.moveCursorBy=function(r,c){var u=this.session.documentToScreenPosition(this.lead.row,this.lead.column),h;if(c===0&&(r!==0&&(this.session.$bidiHandler.isBidiRow(u.row,this.lead.row)?(h=this.session.$bidiHandler.getPosLeft(u.column),u.column=Math.round(h/this.session.$bidiHandler.charWidths[0])):h=u.column*this.session.$bidiHandler.charWidths[0]),this.$desiredColumn?u.column=this.$desiredColumn:this.$desiredColumn=u.column),r!=0&&this.session.lineWidgets&&this.session.lineWidgets[this.lead.row]){var f=this.session.lineWidgets[this.lead.row];r<0?r-=f.rowsAbove||0:r>0&&(r+=f.rowCount-(f.rowsAbove||0))}var m=this.session.screenToDocumentPosition(u.row+r,u.column,h);r!==0&&c===0&&m.row===this.lead.row&&(m.column,this.lead.column),this.moveCursorTo(m.row,m.column+c,c===0)},o.prototype.moveCursorToPosition=function(r){this.moveCursorTo(r.row,r.column)},o.prototype.moveCursorTo=function(r,c,u){var h=this.session.getFoldAt(r,c,1);h&&(r=h.start.row,c=h.start.column),this.$keepDesiredColumnOnChange=!0;var f=this.session.getLine(r);/[\uDC00-\uDFFF]/.test(f.charAt(c))&&f.charAt(c-1)&&(this.lead.row==r&&this.lead.column==c+1?c=c-1:c=c+1),this.lead.setPosition(r,c),this.$keepDesiredColumnOnChange=!1,u||(this.$desiredColumn=null)},o.prototype.moveCursorToScreen=function(r,c,u){var h=this.session.screenToDocumentPosition(r,c);this.moveCursorTo(h.row,h.column,u)},o.prototype.detach=function(){this.lead.detach(),this.anchor.detach()},o.prototype.fromOrientedRange=function(r){this.setSelectionRange(r,r.cursor==r.start),this.$desiredColumn=r.desiredColumn||this.$desiredColumn},o.prototype.toOrientedRange=function(r){var c=this.getRange();return r?(r.start.column=c.start.column,r.start.row=c.start.row,r.end.column=c.end.column,r.end.row=c.end.row):r=c,r.cursor=this.isBackwards()?r.start:r.end,r.desiredColumn=this.$desiredColumn,r},o.prototype.getRangeOfMovements=function(r){var c=this.getCursor();try{r(this);var u=this.getCursor();return l.fromPoints(c,u)}catch{return l.fromPoints(c,c)}finally{this.moveCursorToPosition(c)}},o.prototype.toJSON=function(){if(this.rangeCount)var r=this.ranges.map(function(c){var u=c.clone();return u.isBackwards=c.cursor==c.start,u});else{var r=this.getRange();r.isBackwards=this.isBackwards()}return r},o.prototype.fromJSON=function(r){if(r.start==null)if(this.rangeList&&r.length>1){this.toSingleRange(r[0]);for(var c=r.length;c--;){var u=l.fromPoints(r[c].start,r[c].end);r[c].isBackwards&&(u.cursor=u.start),this.addRange(u,!0)}return}else r=r[0];this.rangeList&&this.toSingleRange(r),this.setSelectionRange(r,r.isBackwards)},o.prototype.isEqual=function(r){if((r.length||this.rangeCount)&&r.length!=this.rangeCount)return!1;if(!r.length||!this.ranges)return this.getRange().isEqual(r);for(var c=this.ranges.length;c--;)if(!this.ranges[c].isEqual(r[c]))return!1;return!0},o}();p.prototype.setSelectionAnchor=p.prototype.setAnchor,p.prototype.getSelectionAnchor=p.prototype.getAnchor,p.prototype.setSelectionRange=p.prototype.setRange,a.implement(p.prototype,g),i.Selection=p}),ace.define("ace/tokenizer",["require","exports","module","ace/lib/report_error"],function(n,i,s){var a=n("./lib/report_error").reportError,d=2e3,g=function(){function l(p){this.splitRegex,this.states=p,this.regExps={},this.matchMappings={};for(var o in this.states){for(var r=this.states[o],c=[],u=0,h=this.matchMappings[o]={defaultToken:"text"},f="g",m=[],v=0;v1?y.onMatch=this.$applyToken:y.onMatch=y.token),_>1&&(/\\\d/.test(y.regex)?$=y.regex.replace(/\\([0-9]+)/g,function(S,b){return"\\"+(parseInt(b,10)+u+1)}):(_=1,$=this.removeCapturingGroups(y.regex)),!y.splitRegex&&typeof y.token!="string"&&m.push(y)),h[u]=v,u+=_,c.push($),y.onMatch||(y.onMatch=null)}}c.length||(h[0]=0,c.push("$")),m.forEach(function(S){S.splitRegex=this.createSplitterRegexp(S.regex,f)},this),this.regExps[o]=new RegExp("("+c.join(")|(")+")|($)",f)}}return l.prototype.$setMaxTokenCount=function(p){d=p|0},l.prototype.$applyToken=function(p){var o=this.splitRegex.exec(p).slice(1),r=this.token.apply(this,o);if(typeof r=="string")return[{type:r,value:p}];for(var c=[],u=0,h=r.length;uy){var L=p.substring(y,O-M.length);_.type==S?_.value+=L:(_.type&&v.push(_),_={type:S,value:L})}for(var T=0;Td){for($>2*p.length&&this.reportError("infinite loop with in ace tokenizer",{startState:o,line:p});y1&&r[0]!==c&&r.unshift("#tmp",c),{tokens:v,state:r.length?r:c}},l}();g.prototype.reportError=a,i.Tokenizer=g}),ace.define("ace/mode/text_highlight_rules",["require","exports","module","ace/lib/deep_copy"],function(n,i,s){var a=n("../lib/deep_copy").deepCopy,d;d=function(){this.$rules={start:[{token:"empty_line",regex:"^$"},{defaultToken:"text"}]}},(function(){this.addRules=function(p,o){if(!o){for(var r in p)this.$rules[r]=p[r];return}for(var r in p){for(var c=p[r],u=0;u=this.$rowTokens.length;){if(this.$row+=1,l||(l=this.$session.getLength()),this.$row>=l)return this.$row=l-1,null;this.$rowTokens=this.$session.getTokens(this.$row),this.$tokenIndex=0}return this.$rowTokens[this.$tokenIndex]},g.prototype.getCurrentToken=function(){return this.$rowTokens[this.$tokenIndex]},g.prototype.getCurrentTokenRow=function(){return this.$row},g.prototype.getCurrentTokenColumn=function(){var l=this.$rowTokens,p=this.$tokenIndex,o=l[p].start;if(o!==void 0)return o;for(o=0;p>0;)p-=1,o+=l[p].value.length;return o},g.prototype.getCurrentTokenPosition=function(){return{row:this.$row,column:this.getCurrentTokenColumn()}},g.prototype.getCurrentTokenRange=function(){var l=this.$rowTokens[this.$tokenIndex],p=this.getCurrentTokenColumn();return new a(this.$row,p,this.$row,p+l.value.length)},g}();i.TokenIterator=d}),ace.define("ace/mode/behaviour/cstyle",["require","exports","module","ace/lib/oop","ace/mode/behaviour","ace/token_iterator","ace/lib/lang"],function(n,i,s){var a=n("../../lib/oop"),d=n("../behaviour").Behaviour,g=n("../../token_iterator").TokenIterator,l=n("../../lib/lang"),p=["text","paren.rparen","rparen","paren","punctuation.operator"],o=["text","paren.rparen","rparen","paren","punctuation.operator","comment"],r,c={},u={'"':'"',"'":"'"},h=function(v){var y=-1;if(v.multiSelect&&(y=v.selection.index,c.rangeCount!=v.multiSelect.rangeCount&&(c={rangeCount:v.multiSelect.rangeCount})),c[y])return r=c[y];r=c[y]={autoInsertedBrackets:0,autoInsertedRow:-1,autoInsertedLineEnd:"",maybeInsertedBrackets:0,maybeInsertedRow:-1,maybeInsertedLineStart:"",maybeInsertedLineEnd:""}},f=function(v,y,$,_){var S=v.end.row-v.start.row;return{text:$+y+_,selection:[0,v.start.column+1,S,v.end.column+(S?0:1)]}},m;m=function(v){v=v||{},this.add("braces","insertion",function(y,$,_,S,b){var M=_.getCursorPosition(),O=S.doc.getLine(M.row);if(b=="{"){h(_);var L=_.getSelectionRange(),T=S.doc.getTextRange(L),k=S.getTokenAt(M.row,M.column);if(T!==""&&T!=="{"&&_.getWrapBehavioursEnabled())return f(L,T,"{","}");if(k&&/(?:string)\.quasi|\.xml/.test(k.type)){var x=[/tag\-(?:open|name)/,/attribute\-name/];return x.some(function(N){return N.test(k.type)})||/(string)\.quasi/.test(k.type)&&k.value[M.column-k.start-1]!=="$"?void 0:(m.recordAutoInsert(_,S,"}"),{text:"{}",selection:[1,1]})}else if(m.isSaneInsertion(_,S))return/[\]\}\)]/.test(O[M.column])||_.inMultiSelectMode||v.braces?(m.recordAutoInsert(_,S,"}"),{text:"{}",selection:[1,1]}):(m.recordMaybeInsert(_,S,"{"),{text:"{",selection:[1,1]})}else if(b=="}"){h(_);var C=O.substring(M.column,M.column+1);if(C=="}"){var w=S.$findOpeningBracket("}",{column:M.column+1,row:M.row});if(w!==null&&m.isAutoInsertedClosing(M,O,b))return m.popAutoInsertedClosing(),{text:"",selection:[1,1]}}}else if(b==` `||b==`\r `){h(_);var A="";m.isMaybeInsertedClosing(M,O)&&(A=l.stringRepeat("}",r.maybeInsertedBrackets),m.clearMaybeInsertedClosing());var C=O.substring(M.column,M.column+1);if(C==="}"){var E=S.findMatchingBracket({row:M.row,column:M.column+1},"}");if(!E)return null;var R=this.$getIndent(S.getLine(E.row))}else if(A)var R=this.$getIndent(O);else{m.clearMaybeInsertedClosing();return}var I=R+S.getTabString();return{text:` `+I+` `+R+A,selection:[1,I.length,1,I.length]}}else m.clearMaybeInsertedClosing()}),this.add("braces","deletion",function(y,$,_,S,b){var M=S.doc.getTextRange(b);if(!b.isMultiLine()&&M=="{"){h(_);var O=S.doc.getLine(b.start.row),L=O.substring(b.end.column,b.end.column+1);if(L=="}")return b.end.column++,b;r.maybeInsertedBrackets--}}),this.add("parens","insertion",function(y,$,_,S,b){if(b=="("){h(_);var M=_.getSelectionRange(),O=S.doc.getTextRange(M);if(O!==""&&_.getWrapBehavioursEnabled())return f(M,O,"(",")");if(m.isSaneInsertion(_,S))return m.recordAutoInsert(_,S,")"),{text:"()",selection:[1,1]}}else if(b==")"){h(_);var L=_.getCursorPosition(),T=S.doc.getLine(L.row),k=T.substring(L.column,L.column+1);if(k==")"){var x=S.$findOpeningBracket(")",{column:L.column+1,row:L.row});if(x!==null&&m.isAutoInsertedClosing(L,T,b))return m.popAutoInsertedClosing(),{text:"",selection:[1,1]}}}}),this.add("parens","deletion",function(y,$,_,S,b){var M=S.doc.getTextRange(b);if(!b.isMultiLine()&&M=="("){h(_);var O=S.doc.getLine(b.start.row),L=O.substring(b.start.column+1,b.start.column+2);if(L==")")return b.end.column++,b}}),this.add("brackets","insertion",function(y,$,_,S,b){if(b=="["){h(_);var M=_.getSelectionRange(),O=S.doc.getTextRange(M);if(O!==""&&_.getWrapBehavioursEnabled())return f(M,O,"[","]");if(m.isSaneInsertion(_,S))return m.recordAutoInsert(_,S,"]"),{text:"[]",selection:[1,1]}}else if(b=="]"){h(_);var L=_.getCursorPosition(),T=S.doc.getLine(L.row),k=T.substring(L.column,L.column+1);if(k=="]"){var x=S.$findOpeningBracket("]",{column:L.column+1,row:L.row});if(x!==null&&m.isAutoInsertedClosing(L,T,b))return m.popAutoInsertedClosing(),{text:"",selection:[1,1]}}}}),this.add("brackets","deletion",function(y,$,_,S,b){var M=S.doc.getTextRange(b);if(!b.isMultiLine()&&M=="["){h(_);var O=S.doc.getLine(b.start.row),L=O.substring(b.start.column+1,b.start.column+2);if(L=="]")return b.end.column++,b}}),this.add("string_dquotes","insertion",function(y,$,_,S,b){var M=S.$mode.$quotes||u;if(b.length==1&&M[b]){if(this.lineCommentStart&&this.lineCommentStart.indexOf(b)!=-1)return;h(_);var O=b,L=_.getSelectionRange(),T=S.doc.getTextRange(L);if(T!==""&&(T.length!=1||!M[T])&&_.getWrapBehavioursEnabled())return f(L,T,O,O);if(!T){var k=_.getCursorPosition(),x=S.doc.getLine(k.row),C=x.substring(k.column-1,k.column),w=x.substring(k.column,k.column+1),A=S.getTokenAt(k.row,k.column),E=S.getTokenAt(k.row,k.column+1);if(C=="\\"&&A&&/escape/.test(A.type))return null;var R=A&&/string|escape/.test(A.type),I=!E||/string|escape/.test(E.type),N;if(w==O)N=R!==I,N&&/string\.end/.test(E.type)&&(N=!1);else{if(R&&!I||R&&I)return null;var F=S.$mode.tokenRe;F.lastIndex=0;var z=F.test(C);F.lastIndex=0;var U=F.test(w),j=S.$mode.$pairQuotesAfter,B=j&&j[O]&&j[O].test(C);if(!B&&z||U||w&&!/[\s;,.})\]\\]/.test(w))return null;var V=x[k.column-2];if(C==O&&(V==O||F.test(V)))return null;N=!0}return{text:N?O+O:"",selection:[1,1]}}}}),this.add("string_dquotes","deletion",function(y,$,_,S,b){var M=S.$mode.$quotes||u,O=S.doc.getTextRange(b);if(!b.isMultiLine()&&M.hasOwnProperty(O)){h(_);var L=S.doc.getLine(b.start.row),T=L.substring(b.start.column+1,b.start.column+2);if(T==O)return b.end.column++,b}}),v.closeDocComment!==!1&&this.add("doc comment end","insertion",function(y,$,_,S,b){if(y==="doc-start"&&(b===` `||b===`\r `)&&_.selection.isEmpty()){var M=_.getCursorPosition();if(M.column===0)return;for(var O=S.doc.getLine(M.row),L=S.doc.getLine(M.row+1),T=S.getTokens(M.row),k=0,x=0;x=M.column){if(k===M.column){if(!/\.doc/.test(C.type))return;if(/\*\//.test(C.value)){var w=T[x+1];if(!w||!/\.doc/.test(w.type))return}}var A=M.column-(k-C.value.length),E=C.value.indexOf("*/"),R=C.value.indexOf("/**",E>-1?E+2:0);if(R!==-1&&A>R&&A=E&&A<=R||!/\.doc/.test(C.type))return;break}}var I=this.$getIndent(O);if(/\s*\*/.test(L))return/^\s*\*/.test(O)?{text:b+I+"* ",selection:[1,2+I.length,1,2+I.length]}:{text:b+I+" * ",selection:[1,3+I.length,1,3+I.length]};if(/\/\*\*/.test(O.substring(0,M.column)))return{text:b+I+" * "+b+" "+I+"*/",selection:[1,4+I.length,1,4+I.length]}}})},m.isSaneInsertion=function(v,y){var $=v.getCursorPosition(),_=new g(y,$.row,$.column);if(!this.$matchTokenType(_.getCurrentToken()||"text",p)){if(/[)}\]]/.test(v.session.getLine($.row)[$.column]))return!0;var S=new g(y,$.row,$.column+1);if(!this.$matchTokenType(S.getCurrentToken()||"text",p))return!1}return _.stepForward(),_.getCurrentTokenRow()!==$.row||this.$matchTokenType(_.getCurrentToken()||"text",o)},m.$matchTokenType=function(v,y){return y.indexOf(v.type||v)>-1},m.recordAutoInsert=function(v,y,$){var _=v.getCursorPosition(),S=y.doc.getLine(_.row);this.isAutoInsertedClosing(_,S,r.autoInsertedLineEnd[0])||(r.autoInsertedBrackets=0),r.autoInsertedRow=_.row,r.autoInsertedLineEnd=$+S.substr(_.column),r.autoInsertedBrackets++},m.recordMaybeInsert=function(v,y,$){var _=v.getCursorPosition(),S=y.doc.getLine(_.row);this.isMaybeInsertedClosing(_,S)||(r.maybeInsertedBrackets=0),r.maybeInsertedRow=_.row,r.maybeInsertedLineStart=S.substr(0,_.column)+$,r.maybeInsertedLineEnd=S.substr(_.column),r.maybeInsertedBrackets++},m.isAutoInsertedClosing=function(v,y,$){return r.autoInsertedBrackets>0&&v.row===r.autoInsertedRow&&$===r.autoInsertedLineEnd[0]&&y.substr(v.column)===r.autoInsertedLineEnd},m.isMaybeInsertedClosing=function(v,y){return r.maybeInsertedBrackets>0&&v.row===r.maybeInsertedRow&&y.substr(v.column)===r.maybeInsertedLineEnd&&y.substr(0,v.column)==r.maybeInsertedLineStart},m.popAutoInsertedClosing=function(){r.autoInsertedLineEnd=r.autoInsertedLineEnd.substr(1),r.autoInsertedBrackets--},m.clearMaybeInsertedClosing=function(){r&&(r.maybeInsertedBrackets=0,r.maybeInsertedRow=-1)},a.inherits(m,d),i.CstyleBehaviour=m}),ace.define("ace/unicode",["require","exports","module"],function(n,i,s){for(var a=[48,9,8,25,5,0,2,25,48,0,11,0,5,0,6,22,2,30,2,457,5,11,15,4,8,0,2,0,18,116,2,1,3,3,9,0,2,2,2,0,2,19,2,82,2,138,2,4,3,155,12,37,3,0,8,38,10,44,2,0,2,1,2,1,2,0,9,26,6,2,30,10,7,61,2,9,5,101,2,7,3,9,2,18,3,0,17,58,3,100,15,53,5,0,6,45,211,57,3,18,2,5,3,11,3,9,2,1,7,6,2,2,2,7,3,1,3,21,2,6,2,0,4,3,3,8,3,1,3,3,9,0,5,1,2,4,3,11,16,2,2,5,5,1,3,21,2,6,2,1,2,1,2,1,3,0,2,4,5,1,3,2,4,0,8,3,2,0,8,15,12,2,2,8,2,2,2,21,2,6,2,1,2,4,3,9,2,2,2,2,3,0,16,3,3,9,18,2,2,7,3,1,3,21,2,6,2,1,2,4,3,8,3,1,3,2,9,1,5,1,2,4,3,9,2,0,17,1,2,5,4,2,2,3,4,1,2,0,2,1,4,1,4,2,4,11,5,4,4,2,2,3,3,0,7,0,15,9,18,2,2,7,2,2,2,22,2,9,2,4,4,7,2,2,2,3,8,1,2,1,7,3,3,9,19,1,2,7,2,2,2,22,2,9,2,4,3,8,2,2,2,3,8,1,8,0,2,3,3,9,19,1,2,7,2,2,2,22,2,15,4,7,2,2,2,3,10,0,9,3,3,9,11,5,3,1,2,17,4,23,2,8,2,0,3,6,4,0,5,5,2,0,2,7,19,1,14,57,6,14,2,9,40,1,2,0,3,1,2,0,3,0,7,3,2,6,2,2,2,0,2,0,3,1,2,12,2,2,3,4,2,0,2,5,3,9,3,1,35,0,24,1,7,9,12,0,2,0,2,0,5,9,2,35,5,19,2,5,5,7,2,35,10,0,58,73,7,77,3,37,11,42,2,0,4,328,2,3,3,6,2,0,2,3,3,40,2,3,3,32,2,3,3,6,2,0,2,3,3,14,2,56,2,3,3,66,5,0,33,15,17,84,13,619,3,16,2,25,6,74,22,12,2,6,12,20,12,19,13,12,2,2,2,1,13,51,3,29,4,0,5,1,3,9,34,2,3,9,7,87,9,42,6,69,11,28,4,11,5,11,11,39,3,4,12,43,5,25,7,10,38,27,5,62,2,28,3,10,7,9,14,0,89,75,5,9,18,8,13,42,4,11,71,55,9,9,4,48,83,2,2,30,14,230,23,280,3,5,3,37,3,5,3,7,2,0,2,0,2,0,2,30,3,52,2,6,2,0,4,2,2,6,4,3,3,5,5,12,6,2,2,6,67,1,20,0,29,0,14,0,17,4,60,12,5,0,4,11,18,0,5,0,3,9,2,0,4,4,7,0,2,0,2,0,2,3,2,10,3,3,6,4,5,0,53,1,2684,46,2,46,2,132,7,6,15,37,11,53,10,0,17,22,10,6,2,6,2,6,2,6,2,6,2,6,2,6,2,6,2,31,48,0,470,1,36,5,2,4,6,1,5,85,3,1,3,2,2,89,2,3,6,40,4,93,18,23,57,15,513,6581,75,20939,53,1164,68,45,3,268,4,27,21,31,3,13,13,1,2,24,9,69,11,1,38,8,3,102,3,1,111,44,25,51,13,68,12,9,7,23,4,0,5,45,3,35,13,28,4,64,15,10,39,54,10,13,3,9,7,22,4,1,5,66,25,2,227,42,2,1,3,9,7,11171,13,22,5,48,8453,301,3,61,3,105,39,6,13,4,6,11,2,12,2,4,2,0,2,1,2,1,2,107,34,362,19,63,3,53,41,11,5,15,17,6,13,1,25,2,33,4,2,134,20,9,8,25,5,0,2,25,12,88,4,5,3,5,3,5,3,2],d=0,g=[],l=0;l2?V%b!=b-1:V%b==0}}else{if(!this.blockComment)return!1;var O=this.blockComment.start,L=this.blockComment.end,T=new RegExp("^(\\s*)(?:"+o.escapeRegExp(O)+")"),k=new RegExp("(?:"+o.escapeRegExp(L)+")\\s*$"),x=function(N,F){w(N,F)||(!$||/\S/.test(N))&&(y.insertInLine({row:F,column:N.length},L),y.insertInLine({row:F,column:S},O))},C=function(N,F){var z;(z=N.match(k))&&y.removeInLine(F,N.length-z[0].length,N.length),(z=N.match(T))&&y.removeInLine(F,z[1].length,z[0].length)},w=function(N,F){if(T.test(N))return!0;for(var z=f.getTokens(F),U=0;UN.length&&(I=N.length)}),S==1/0&&(S=I,$=!1,_=!1),M&&S%b!=0&&(S=Math.floor(S/b)*b),R(_?C:x)},this.toggleBlockComment=function(h,f,m,v){var y=this.blockComment;if(y){!y.start&&y[0]&&(y=y[0]);var $=new r(f,v.row,v.column),_=$.getCurrentToken();f.selection;var S=f.selection.toOrientedRange(),b,M;if(_&&/comment/.test(_.type)){for(var O,L;_&&/comment/.test(_.type);){var T=_.value.indexOf(y.start);if(T!=-1){var k=$.getCurrentTokenRow(),x=$.getCurrentTokenColumn()+T;O=new c(k,x,k,x+y.start.length);break}_=$.stepBackward()}for(var $=new r(f,v.row,v.column),_=$.getCurrentToken();_&&/comment/.test(_.type);){var T=_.value.indexOf(y.end);if(T!=-1){var k=$.getCurrentTokenRow(),x=$.getCurrentTokenColumn()+T;L=new c(k,x,k,x+y.end.length);break}_=$.stepForward()}L&&f.remove(L),O&&(f.remove(O),b=O.start.row,M=-y.start.length)}else M=y.start.length,b=m.start.row,f.insert(m.end,y.end),f.insert(m.start,y.start);S.start.row==b&&(S.start.column+=M),S.end.row==b&&(S.end.column+=M),f.selection.fromOrientedRange(S)}},this.getNextLineIndent=function(h,f,m){return this.$getIndent(f)},this.checkOutdent=function(h,f,m){return!1},this.autoOutdent=function(h,f,m){},this.$getIndent=function(h){return h.match(/^\s*/)[0]},this.createWorker=function(h){return null},this.createModeDelegates=function(h){this.$embeds=[],this.$modes={};for(var f in h)if(h[f]){var m=h[f],v=m.prototype.$id,y=a.$modes[v];y||(a.$modes[v]=y=new m),a.$modes[f]||(a.$modes[f]=y),this.$embeds.push(f),this.$modes[f]=y}for(var $=["toggleBlockComment","toggleCommentLines","getNextLineIndent","checkOutdent","autoOutdent","transformAction","getCompletions"],_=function(b){(function(M){var O=$[b],L=M[O];M[$[b]]=function(){return this.$delegator(O,arguments,L)}})(S)},S=this,f=0;f<$.length;f++)_(f)},this.$delegator=function(h,f,m){var v=f[0]||"start";if(typeof v!="string"){if(Array.isArray(v[2])){var y=v[2][v[2].length-1],$=this.$modes[y];if($)return $[h].apply($,[v[1]].concat([].slice.call(f,1)))}v=v[0]||"start"}for(var _=0;_this.row)){var c=p(r,{row:this.row,column:this.column},this.$insertRight);this.setPosition(c.row,c.column,!0)}},o.prototype.setPosition=function(r,c,u){var h;if(u?h={row:r,column:c}:h=this.$clipPositionToDocument(r,c),!(this.row==h.row&&this.column==h.column)){var f={row:this.row,column:this.column};this.row=h.row,this.column=h.column,this._signal("change",{old:f,value:h})}},o.prototype.detach=function(){this.document.off("change",this.$onChange)},o.prototype.attach=function(r){this.document=r||this.document,this.document.on("change",this.$onChange)},o.prototype.$clipPositionToDocument=function(r,c){var u={};return r>=this.document.getLength()?(u.row=Math.max(0,this.document.getLength()-1),u.column=this.document.getLine(u.row).length):r<0?(u.row=0,u.column=0):(u.row=r,u.column=Math.min(this.document.getLine(u.row).length,Math.max(0,c))),c<0&&(u.column=0),u},o}();g.prototype.$insertRight=!1,a.implement(g.prototype,d);function l(o,r,c){var u=c?o.column<=r.column:o.column=h&&(c=h-1,u=void 0);var f=this.getLine(c);return u==null&&(u=f.length),u=Math.min(Math.max(u,0),f.length),{row:c,column:u}},r.prototype.clonePos=function(c){return{row:c.row,column:c.column}},r.prototype.pos=function(c,u){return{row:c,column:u}},r.prototype.$clipPosition=function(c){var u=this.getLength();return c.row>=u?(c.row=Math.max(0,u-1),c.column=this.getLine(u-1).length):(c.row=Math.max(0,c.row),c.column=Math.min(Math.max(c.column,0),this.getLine(c.row).length)),c},r.prototype.insertFullLines=function(c,u){c=Math.min(Math.max(c,0),this.getLength());var h=0;c0,f=u=0&&this.applyDelta({start:this.pos(c,this.getLine(c).length),end:this.pos(c+1,0),action:"remove",lines:["",""]})},r.prototype.replace=function(c,u){if(c instanceof l||(c=l.fromPoints(c.start,c.end)),u.length===0&&c.isEmpty())return c.start;if(u==this.getTextRange(c))return c.end;this.remove(c);var h;return u?h=this.insert(c.start,u):h=c.start,h},r.prototype.applyDeltas=function(c){for(var u=0;u=0;u--)this.revertDelta(c[u])},r.prototype.applyDelta=function(c,u){var h=c.action=="insert";(h?c.lines.length<=1&&!c.lines[0]:!l.comparePoints(c.start,c.end))||(h&&c.lines.length>2e4?this.$splitAndapplyLargeDelta(c,2e4):(d(this.$lines,c,u),this._signal("change",c)))},r.prototype.$safeApplyDelta=function(c){var u=this.$lines.length;(c.action=="remove"&&c.start.row20){r.running=setTimeout(r.$worker,20);break}}r.currentLine=u,h==-1&&(h=u),m<=h&&r.fireUpdateEvent(m,h)}}}return l.prototype.setTokenizer=function(p){this.tokenizer=p,this.lines=[],this.states=[],this.start(0)},l.prototype.setDocument=function(p){this.doc=p,this.lines=[],this.states=[],this.stop()},l.prototype.fireUpdateEvent=function(p,o){var r={first:p,last:o};this._signal("update",{data:r})},l.prototype.start=function(p){this.currentLine=Math.min(p||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)},l.prototype.scheduleStart=function(){this.running||(this.running=setTimeout(this.$worker,700))},l.prototype.$updateOnChange=function(p){var o=p.start.row,r=p.end.row-o;if(r===0)this.lines[o]=null;else if(p.action=="remove")this.lines.splice(o,r+1,null),this.states.splice(o,r+1,null);else{var c=Array(r+1);c.unshift(o,1),this.lines.splice.apply(this.lines,c),this.states.splice.apply(this.states,c)}this.currentLine=Math.min(o,this.currentLine,this.doc.getLength()),this.stop()},l.prototype.stop=function(){this.running&&clearTimeout(this.running),this.running=!1},l.prototype.getTokens=function(p){return this.lines[p]||this.$tokenizeRow(p)},l.prototype.getState=function(p){return this.currentLine==p&&this.$tokenizeRow(p),this.states[p]||"start"},l.prototype.$tokenizeRow=function(p){var o=this.doc.getLine(p),r=this.states[p-1],c=this.tokenizer.getLineTokens(o,r,p);return this.states[p]+""!=c.state+""?(this.states[p]=c.state,this.lines[p+1]=null,this.currentLine>p+1&&(this.currentLine=p+1)):this.currentLine==p&&(this.currentLine=p+1),this.lines[p]=c.tokens},l.prototype.cleanup=function(){this.running=!1,this.lines=[],this.states=[],this.currentLine=0,this.removeAllListeners()},l}();a.implement(g.prototype,d),i.BackgroundTokenizer=g}),ace.define("ace/search_highlight",["require","exports","module","ace/lib/lang","ace/range"],function(n,i,s){var a=n("./lib/lang"),d=n("./range").Range,g=function(){function l(p,o,r){r===void 0&&(r="text"),this.setRegexp(p),this.clazz=o,this.type=r}return l.prototype.setRegexp=function(p){this.regExp+""!=p+""&&(this.regExp=p,this.cache=[])},l.prototype.update=function(p,o,r,c){if(this.regExp)for(var u=c.firstRow,h=c.lastRow,f={},m=u;m<=h;m++){var v=this.cache[m];v==null&&(v=a.getMatchOffsets(r.getLine(m),this.regExp),v.length>this.MAX_RANGES&&(v=v.slice(0,this.MAX_RANGES)),v=v.map(function(S){return new d(m,S.offset,m,S.offset+S.length)}),this.cache[m]=v.length?v:"");for(var y=v.length;y--;){var $=v[y].toScreenRange(r),_=$.toString();f[_]||(f[_]=!0,o.drawSingleLineMarker(p,$,this.clazz,c))}}},l}();g.prototype.MAX_RANGES=500,i.SearchHighlight=g}),ace.define("ace/undomanager",["require","exports","module","ace/range"],function(n,i,s){var a=function(){function S(){this.$keepRedoStack,this.$maxRev=0,this.$fromUndo=!1,this.$undoDepth=1/0,this.reset()}return S.prototype.addSession=function(b){this.$session=b},S.prototype.add=function(b,M,O){if(!this.$fromUndo&&b!=this.$lastDelta){if(this.$keepRedoStack||(this.$redoStack.length=0),M===!1||!this.lastDeltas){this.lastDeltas=[];var L=this.$undoStack.length;L>this.$undoDepth-1&&this.$undoStack.splice(0,L-this.$undoDepth+1),this.$undoStack.push(this.lastDeltas),b.id=this.$rev=++this.$maxRev}(b.action=="remove"||b.action=="insert")&&(this.$lastDelta=b),this.lastDeltas.push(b)}},S.prototype.addSelection=function(b,M){this.selections.push({value:b,rev:M||this.$rev})},S.prototype.startNewGroup=function(){return this.lastDeltas=null,this.$rev},S.prototype.markIgnored=function(b,M){M==null&&(M=this.$rev+1);for(var O=this.$undoStack,L=O.length;L--;){var T=O[L][0];if(T.id<=b)break;T.id0},S.prototype.canRedo=function(){return this.$redoStack.length>0},S.prototype.bookmark=function(b){b==null&&(b=this.$rev),this.mark=b},S.prototype.isAtBookmark=function(){return this.$rev===this.mark},S.prototype.toJSON=function(){return{$redoStack:this.$redoStack,$undoStack:this.$undoStack}},S.prototype.fromJSON=function(b){this.reset(),this.$undoStack=b.$undoStack,this.$redoStack=b.$redoStack},S.prototype.$prettyPrint=function(b){return b?r(b):r(this.$undoStack)+` --- `+r(this.$redoStack)},S}();a.prototype.hasUndo=a.prototype.canUndo,a.prototype.hasRedo=a.prototype.canRedo,a.prototype.isClean=a.prototype.isAtBookmark,a.prototype.markClean=a.prototype.bookmark;function d(S,b){for(var M=b;M--;){var O=S[M];if(O&&!O[0].ignore){for(;M"+S.end.row+":"+S.end.column}function u(S,b){var M=S.action=="insert",O=b.action=="insert";if(M&&O)if(l(b.start,S.end)>=0)m(b,S,-1);else if(l(b.start,S.start)<=0)m(S,b,1);else return null;else if(M&&!O)if(l(b.start,S.end)>=0)m(b,S,-1);else if(l(b.end,S.start)<=0)m(S,b,-1);else return null;else if(!M&&O)if(l(b.start,S.start)>=0)m(b,S,1);else if(l(b.start,S.start)<=0)m(S,b,1);else return null;else if(!M&&!O)if(l(b.start,S.start)>=0)m(b,S,1);else if(l(b.end,S.start)<=0)m(S,b,-1);else return null;return[b,S]}function h(S,b){for(var M=S.length;M--;)for(var O=0;O=0?m(S,b,-1):(l(S.start,b.start)<=0||m(S,g.fromPoints(b.start,S.start),-1),m(b,S,1));else if(!M&&O)l(b.start,S.end)>=0?m(b,S,-1):(l(b.start,S.start)<=0||m(b,g.fromPoints(S.start,b.start),-1),m(S,b,1));else if(!M&&!O)if(l(b.start,S.end)>=0)m(b,S,-1);else if(l(b.end,S.start)<=0)m(S,b,-1);else{var L,T;return l(S.start,b.start)<0&&(L=S,S=y(S,b.start)),l(S.end,b.end)>0&&(T=y(S,b.end)),v(b.end,S.start,S.end,-1),T&&!L&&(S.lines=T.lines,S.start=T.start,S.end=T.end,T=S),[b,L,T].filter(Boolean)}return[b,S]}function m(S,b,M){v(S.start,b.start,b.end,M),v(S.end,b.start,b.end,M)}function v(S,b,M,O){S.row==(O==1?b:M).row&&(S.column+=O*(M.column-b.column)),S.row+=O*(M.row-b.row)}function y(S,b){var M=S.lines,O=S.end;S.end=p(b);var L=S.end.row-S.start.row,T=M.splice(L,M.length),k=L?b.column:b.column-S.start.column;M.push(T[0].substring(0,k)),T[0]=T[0].substr(k);var x={start:p(b),end:O,lines:T,action:S.action};return x}function $(S,b){b=o(b);for(var M=S.length;M--;){for(var O=S[M],L=0;Lthis.endRow)throw new Error("Can't add a fold to this FoldLine as it has no connection");this.folds.push(l),this.folds.sort(function(p,o){return-p.range.compareEnd(o.start.row,o.start.column)}),this.range.compareEnd(l.start.row,l.start.column)>0?(this.end.row=l.end.row,this.end.column=l.end.column):this.range.compareStart(l.end.row,l.end.column)<0&&(this.start.row=l.start.row,this.start.column=l.start.column)}else if(l.start.row==this.end.row)this.folds.push(l),this.end.row=l.end.row,this.end.column=l.end.column;else if(l.end.row==this.start.row)this.folds.unshift(l),this.start.row=l.start.row,this.start.column=l.start.column;else throw new Error("Trying to add fold to FoldRow that doesn't have a matching row");l.foldLine=this},g.prototype.containsRow=function(l){return l>=this.start.row&&l<=this.end.row},g.prototype.walk=function(l,p,o){var r=0,c=this.folds,u,h,f,m=!0;p==null&&(p=this.end.row,o=this.end.column);for(var v=0;v0)){var m=d(p,h.start);return f===0?o&&m!==0?-u-2:u:m>0||m===0&&!o?u:-u-1}}return-u-1},l.prototype.add=function(p){var o=!p.isEmpty(),r=this.pointIndex(p.start,o);r<0&&(r=-r-1);var c=this.pointIndex(p.end,o,r);return c<0?c=-c-1:c++,this.ranges.splice(r,c-r,p)},l.prototype.addList=function(p){for(var o=[],r=p.length;r--;)o.push.apply(o,this.add(p[r]));return o},l.prototype.substractPoint=function(p){var o=this.pointIndex(p);if(o>=0)return this.ranges.splice(o,1)},l.prototype.merge=function(){var p=[],o=this.ranges;o=o.sort(function(f,m){return d(f.start,m.start)});for(var r=o[0],c,u=1;u=0},l.prototype.containsPoint=function(p){return this.pointIndex(p)>=0},l.prototype.rangeAtPoint=function(p){var o=this.pointIndex(p);if(o>=0)return this.ranges[o]},l.prototype.clipRows=function(p,o){var r=this.ranges;if(r[0].start.row>o||r[r.length-1].start.row=c)break}if(p.action=="insert")for(var y=u-c,$=-o.column+r.column;fc)break;if(v.start.row==c&&v.start.column>=o.column&&(v.start.column==o.column&&this.$bias<=0||(v.start.column+=$,v.start.row+=y)),v.end.row==c&&v.end.column>=o.column){if(v.end.column==o.column&&this.$bias<0)continue;v.end.column==o.column&&$>0&&fv.start.column&&v.end.column==h[f+1].start.column&&(v.end.column-=$),v.end.column+=$,v.end.row+=y}}else for(var y=c-u,$=o.column-r.column;fu)break;v.end.rowo.column)&&(v.end.column=o.column,v.end.row=o.row):(v.end.column+=$,v.end.row+=y):v.end.row>u&&(v.end.row+=y),v.start.rowo.column)&&(v.start.column=o.column,v.start.row=o.row):(v.start.column+=$,v.start.row+=y):v.start.row>u&&(v.start.row+=y)}if(y!=0&&f=r)return f;if(f.end.row>r)return null}return null},this.getNextFoldLine=function(r,c){var u=this.$foldData,h=0;for(c&&(h=u.indexOf(c)),h==-1&&(h=0),h;h=r)return f}return null},this.getFoldedRowCount=function(r,c){for(var u=this.$foldData,h=c-r+1,f=0;f=c){y=r?h-=c-y:h=0);break}else v>=r&&(y>=r?h-=v-y:h-=v-r+1)}return h},this.$addFoldLine=function(r){return this.$foldData.push(r),this.$foldData.sort(function(c,u){return c.start.row-u.start.row}),r},this.addFold=function(r,c){var u=this.$foldData,h=!1,f;r instanceof g?f=r:(f=new g(c,r),f.collapseChildren=c.collapseChildren),this.$clipRangeToDocument(f.range);var m=f.start.row,v=f.start.column,y=f.end.row,$=f.end.column,_=this.getFoldAt(m,v,1),S=this.getFoldAt(y,$,-1);if(_&&S==_)return _.addSubFold(f);_&&!_.range.isStart(m,v)&&this.removeFold(_),S&&!S.range.isEnd(y,$)&&this.removeFold(S);var b=this.getFoldsInRange(f.range);b.length>0&&(this.removeFolds(b),f.collapseChildren||b.forEach(function(T){f.addSubFold(T)}));for(var M=0;M0&&this.foldAll(r.start.row+1,r.end.row,r.collapseChildren-1),r.subFolds=[]},this.expandFolds=function(r){r.forEach(function(c){this.expandFold(c)},this)},this.unfold=function(r,c){var u,h;if(r==null)u=new a(0,0,this.getLength(),0),c==null&&(c=!0);else if(typeof r=="number")u=new a(r,0,r,this.getLine(r).length);else if("row"in r)u=a.fromPoints(r,r);else{if(Array.isArray(r))return h=[],r.forEach(function(m){h=h.concat(this.unfold(m))},this),h;u=r}h=this.getFoldsInRangeList(u);for(var f=h;h.length==1&&a.comparePoints(h[0].start,u.start)<0&&a.comparePoints(h[0].end,u.end)>0;)this.expandFolds(h),h=this.getFoldsInRangeList(u);if(c!=!1?this.removeFolds(h):this.expandFolds(h),f.length)return f},this.isRowFolded=function(r,c){return!!this.getFoldLine(r,c)},this.getRowFoldEnd=function(r,c){var u=this.getFoldLine(r,c);return u?u.end.row:r},this.getRowFoldStart=function(r,c){var u=this.getFoldLine(r,c);return u?u.start.row:r},this.getFoldDisplayLine=function(r,c,u,h,f){h==null&&(h=r.start.row),f==null&&(f=0),c==null&&(c=r.end.row),u==null&&(u=this.getLine(c).length);var m=this.doc,v="";return r.walk(function(y,$,_,S){if(!($_)break;while(f&&v.test(f.type));f=h.stepBackward()}else f=h.getCurrentToken();return y.end.row=h.getCurrentTokenRow(),y.end.column=h.getCurrentTokenColumn(),y}},this.foldAll=function(r,c,u,h){u==null&&(u=1e5);var f=this.foldWidgets;if(f){c=c||this.getLength(),r=r||0;for(var m=r;m=r&&(m=v.end.row,v.collapseChildren=u,this.addFold("...",v))}}},this.foldToLevel=function(r){for(this.foldAll();r-- >0;)this.unfold(null,!1)},this.foldAllComments=function(){var r=this;this.foldAll(null,null,null,function(c){for(var u=r.getTokens(c),h=0;h=0;){var m=u[h];if(m==null&&(m=u[h]=this.getFoldWidget(h)),m=="start"){var v=this.getFoldWidgetRange(h);if(f||(f=v),v&&v.end.row>=r)break}h--}return{range:h!==-1&&v,firstRange:f}},this.onFoldWidgetClick=function(r,c){c instanceof p&&(c=c.domEvent);var u={children:c.shiftKey,all:c.ctrlKey||c.metaKey,siblings:c.altKey},h=this.$toggleFoldWidget(r,u);if(!h){var f=c.target||c.srcElement;f&&/ace_fold-widget/.test(f.className)&&(f.className+=" ace_invalid")}},this.$toggleFoldWidget=function(r,c){if(this.getFoldWidget){var u=this.getFoldWidget(r),h=this.getLine(r),f=u==="end"?-1:1,m=this.getFoldAt(r,f===-1?0:h.length,f);if(m)return c.children||c.all?this.removeFold(m):this.expandFold(m),m;var v=this.getFoldWidgetRange(r,!0);if(v&&!v.isMultiLine()&&(m=this.getFoldAt(v.start.row,v.start.column,1),m&&v.isEqual(m.range)))return this.removeFold(m),m;if(c.siblings){var y=this.getParentFoldRangeData(r);if(y.range)var $=y.range.start.row+1,_=y.range.end.row;this.foldAll($,_,c.all?1e4:0)}else c.children?(_=v?v.end.row:this.getLength(),this.foldAll(r+1,_,c.all?1e4:0)):v&&(c.all&&(v.collapseChildren=1e4),this.addFold("...",v));return v}},this.toggleFoldWidget=function(r){var c=this.selection.getCursor().row;c=this.getRowFoldStart(c);var u=this.$toggleFoldWidget(c,{});if(!u){var h=this.getParentFoldRangeData(c,!0);if(u=h.range||h.firstRange,u){c=u.start.row;var f=this.getFoldAt(c,this.getLine(c).length,1);f?this.removeFold(f):this.addFold("...",u)}}},this.updateFoldWidgets=function(r){var c=r.start.row,u=r.end.row-c;if(u===0)this.foldWidgets[c]=null;else if(r.action=="remove")this.foldWidgets.splice(c,u+1,null);else{var h=Array(u+1);h.unshift(c,1),this.foldWidgets.splice.apply(this.foldWidgets,h)}},this.tokenizerUpdateFoldWidgets=function(r){var c=r.data;c.first!=c.last&&this.foldWidgets.length>c.first&&this.foldWidgets.splice(c.first,this.foldWidgets.length)}}i.Folding=o}),ace.define("ace/edit_session/bracket_match",["require","exports","module","ace/token_iterator","ace/range"],function(n,i,s){var a=n("../token_iterator").TokenIterator,d=n("../range").Range;function g(){this.findMatchingBracket=function(l,p){if(l.column==0)return null;var o=p||this.getLine(l.row).charAt(l.column-1);if(o=="")return null;var r=o.match(/([\(\[\{])|([\)\]\}])/);return r?r[1]?this.$findClosingBracket(r[1],l):this.$findOpeningBracket(r[2],l):null},this.getBracketRange=function(l){var p=this.getLine(l.row),o=!0,r,c=p.charAt(l.column-1),u=c&&c.match(/([\(\[\{])|([\)\]\}])/);if(u||(c=p.charAt(l.column),l={row:l.row,column:l.column+1},u=c&&c.match(/([\(\[\{])|([\)\]\}])/),o=!1),!u)return null;if(u[1]){var h=this.$findClosingBracket(u[1],l);if(!h)return null;r=d.fromPoints(l,h),o||(r.end.column++,r.start.column--),r.cursor=r.end}else{var h=this.$findOpeningBracket(u[2],l);if(!h)return null;r=d.fromPoints(h,l),o||(r.start.column++,r.end.column--),r.cursor=r.start}return r},this.getMatchingBracketRanges=function(l,p){var o=this.getLine(l.row),r=/([\(\[\{])|([\)\]\}])/,c=!p&&o.charAt(l.column-1),u=c&&c.match(r);if(u||(c=(p===void 0||p)&&o.charAt(l.column),l={row:l.row,column:l.column+1},u=c&&c.match(r)),!u)return null;var h=new d(l.row,l.column-1,l.row,l.column),f=u[1]?this.$findClosingBracket(u[1],l):this.$findOpeningBracket(u[2],l);if(!f)return[h];var m=new d(f.row,f.column,f.row,f.column+1);return[h,m]},this.$brackets={")":"(","(":")","]":"[","[":"]","{":"}","}":"{","<":">",">":"<"},this.$findOpeningBracket=function(l,p,o){var r=this.$brackets[l],c=1,u=new a(this,p.row,p.column),h=u.getCurrentToken();if(h||(h=u.stepForward()),!!h){o||(o=new RegExp("(\\.?"+h.type.replace(".","\\.").replace("rparen",".paren").replace(/\b(?:end)\b/,"(?:start|begin|end)").replace(/-close\b/,"-(close|open)")+")+"));for(var f=p.column-u.getCurrentTokenColumn()-2,m=h.value;;){for(;f>=0;){var v=m.charAt(f);if(v==r){if(c-=1,c==0)return{row:u.getCurrentTokenRow(),column:f+u.getCurrentTokenColumn()}}else v==l&&(c+=1);f-=1}do h=u.stepBackward();while(h&&!o.test(h.type));if(h==null)break;m=h.value,f=m.length-1}return null}},this.$findClosingBracket=function(l,p,o){var r=this.$brackets[l],c=1,u=new a(this,p.row,p.column),h=u.getCurrentToken();if(h||(h=u.stepForward()),!!h){o||(o=new RegExp("(\\.?"+h.type.replace(".","\\.").replace("lparen",".paren").replace(/\b(?:start|begin)\b/,"(?:start|begin|end)").replace(/-open\b/,"-(close|open)")+")+"));for(var f=p.column-u.getCurrentTokenColumn();;){for(var m=h.value,v=m.length;f"?r=!0:p.type.indexOf("tag-name")!==-1&&(o=!0));while(p&&!o);return p},this.$findClosingTag=function(l,p){var o,r=p.value,c=p.value,u=0,h=new d(l.getCurrentTokenRow(),l.getCurrentTokenColumn(),l.getCurrentTokenRow(),l.getCurrentTokenColumn()+1);p=l.stepForward();var f=new d(l.getCurrentTokenRow(),l.getCurrentTokenColumn(),l.getCurrentTokenRow(),l.getCurrentTokenColumn()+p.value.length),m=!1;do{if(o=p,o.type.indexOf("tag-close")!==-1&&!m){var v=new d(l.getCurrentTokenRow(),l.getCurrentTokenColumn(),l.getCurrentTokenRow(),l.getCurrentTokenColumn()+1);m=!0}if(p=l.stepForward(),p){if(p.value===">"&&!m){var v=new d(l.getCurrentTokenRow(),l.getCurrentTokenColumn(),l.getCurrentTokenRow(),l.getCurrentTokenColumn()+1);m=!0}if(p.type.indexOf("tag-name")!==-1){if(r=p.value,c===r){if(o.value==="<")u++;else if(o.value==="")var _=new d(l.getCurrentTokenRow(),l.getCurrentTokenColumn(),l.getCurrentTokenRow(),l.getCurrentTokenColumn()+1);else return}}}else if(c===r&&p.value==="/>"&&(u--,u<0))var y=new d(l.getCurrentTokenRow(),l.getCurrentTokenColumn(),l.getCurrentTokenRow(),l.getCurrentTokenColumn()+2),$=y,_=$,v=new d(f.end.row,f.end.column,f.end.row,f.end.column+1)}}while(p&&u>=0);if(h&&v&&y&&_&&f&&$)return{openTag:new d(h.start.row,h.start.column,v.end.row,v.end.column),closeTag:new d(y.start.row,y.start.column,_.end.row,_.end.column),openTagName:f,closeTagName:$}},this.$findOpeningTag=function(l,p){var o=l.getCurrentToken(),r=p.value,c=0,u=l.getCurrentTokenRow(),h=l.getCurrentTokenColumn(),f=h+2,m=new d(u,h,u,f);l.stepForward();var v=new d(l.getCurrentTokenRow(),l.getCurrentTokenColumn(),l.getCurrentTokenRow(),l.getCurrentTokenColumn()+p.value.length);if(p.type.indexOf("tag-close")===-1&&(p=l.stepForward()),!(!p||p.value!==">")){var y=new d(l.getCurrentTokenRow(),l.getCurrentTokenColumn(),l.getCurrentTokenRow(),l.getCurrentTokenColumn()+1);l.stepBackward(),l.stepBackward();do if(p=o,u=l.getCurrentTokenRow(),h=l.getCurrentTokenColumn(),f=h+p.value.length,o=l.stepBackward(),p){if(p.type.indexOf("tag-name")!==-1){if(r===p.value)if(o.value==="<"){if(c++,c>0){var $=new d(u,h,u,f),_=new d(l.getCurrentTokenRow(),l.getCurrentTokenColumn(),l.getCurrentTokenRow(),l.getCurrentTokenColumn()+1);do p=l.stepForward();while(p&&p.value!==">");var S=new d(l.getCurrentTokenRow(),l.getCurrentTokenColumn(),l.getCurrentTokenRow(),l.getCurrentTokenColumn()+1)}}else o.value===""){for(var b=0,M=o;M;){if(M.type.indexOf("tag-name")!==-1&&M.value===r){c--;break}else if(M.value==="<")break;M=l.stepBackward(),b++}for(var O=0;Ow&&(this.$docRowCache.splice(w,C),this.$screenRowCache.splice(w,C))},k.prototype.$getRowCacheIndex=function(x,C){for(var w=0,A=x.length-1;w<=A;){var E=w+A>>1,R=x[E];if(C>R)w=E+1;else if(C=C));R++);return A=w[R],A?(A.index=R,A.start=E-A.value.length,A):null},k.prototype.setUndoManager=function(x){if(this.$undoManager=x,this.$informUndoManager&&this.$informUndoManager.cancel(),x){var C=this;x.addSession(this),this.$syncInformUndoManager=function(){C.$informUndoManager.cancel(),C.mergeUndoDeltas=!1},this.$informUndoManager=d.delayedCall(this.$syncInformUndoManager)}else this.$syncInformUndoManager=function(){}},k.prototype.markUndoGroup=function(){this.$syncInformUndoManager&&this.$syncInformUndoManager()},k.prototype.getUndoManager=function(){return this.$undoManager||this.$defaultUndoManager},k.prototype.getTabString=function(){return this.getUseSoftTabs()?d.stringRepeat(" ",this.getTabSize()):" "},k.prototype.setUseSoftTabs=function(x){this.setOption("useSoftTabs",x)},k.prototype.getUseSoftTabs=function(){return this.$useSoftTabs&&!this.$mode.$indentWithTabs},k.prototype.setTabSize=function(x){this.setOption("tabSize",x)},k.prototype.getTabSize=function(){return this.$tabSize},k.prototype.isTabStop=function(x){return this.$useSoftTabs&&x.column%this.$tabSize===0},k.prototype.setNavigateWithinSoftTabs=function(x){this.setOption("navigateWithinSoftTabs",x)},k.prototype.getNavigateWithinSoftTabs=function(){return this.$navigateWithinSoftTabs},k.prototype.setOverwrite=function(x){this.setOption("overwrite",x)},k.prototype.getOverwrite=function(){return this.$overwrite},k.prototype.toggleOverwrite=function(){this.setOverwrite(!this.$overwrite)},k.prototype.addGutterDecoration=function(x,C){this.$decorations[x]||(this.$decorations[x]=""),this.$decorations[x]+=" "+C,this._signal("changeBreakpoint",{})},k.prototype.removeGutterDecoration=function(x,C){this.$decorations[x]=(this.$decorations[x]||"").replace(" "+C,""),this._signal("changeBreakpoint",{})},k.prototype.getBreakpoints=function(){return this.$breakpoints},k.prototype.setBreakpoints=function(x){this.$breakpoints=[];for(var C=0;C0&&(A=!!w.charAt(C-1).match(this.tokenRe)),A||(A=!!w.charAt(C).match(this.tokenRe)),A)var E=this.tokenRe;else if(/^\s+$/.test(w.slice(C-1,C+1)))var E=/\s/;else var E=this.nonTokenRe;var R=C;if(R>0){do R--;while(R>=0&&w.charAt(R).match(E));R++}for(var I=C;Ix&&(x=C.screenWidth)}),this.lineWidgetWidth=x},k.prototype.$computeWidth=function(x){if(this.$modified||x){if(this.$modified=!1,this.$useWrapMode)return this.screenWidth=this.$wrapLimit;for(var C=this.doc.getAllLines(),w=this.$rowLengthCache,A=0,E=0,R=this.$foldData[E],I=R?R.start.row:1/0,N=C.length,F=0;FI){if(F=R.end.row+1,F>=N)break;R=this.$foldData[E++],I=R?R.start.row:1/0}w[F]==null&&(w[F]=this.$getStringScreenWidth(C[F])[0]),w[F]>A&&(A=w[F])}this.screenWidth=A}},k.prototype.getLine=function(x){return this.doc.getLine(x)},k.prototype.getLines=function(x,C){return this.doc.getLines(x,C)},k.prototype.getLength=function(){return this.doc.getLength()},k.prototype.getTextRange=function(x){return this.doc.getTextRange(x||this.selection.getRange())},k.prototype.insert=function(x,C){return this.doc.insert(x,C)},k.prototype.remove=function(x){return this.doc.remove(x)},k.prototype.removeFullLines=function(x,C){return this.doc.removeFullLines(x,C)},k.prototype.undoChanges=function(x,C){if(x.length){this.$fromUndo=!0;for(var w=x.length-1;w!=-1;w--){var A=x[w];A.action=="insert"||A.action=="remove"?this.doc.revertDelta(A):A.folds&&this.addFolds(A.folds)}!C&&this.$undoSelect&&(x.selectionBefore?this.selection.fromJSON(x.selectionBefore):this.selection.setRange(this.$getUndoSelection(x,!0))),this.$fromUndo=!1}},k.prototype.redoChanges=function(x,C){if(x.length){this.$fromUndo=!0;for(var w=0;wx.end.column&&(R.start.column+=N),R.end.row==x.end.row&&R.end.column>x.end.column&&(R.end.column+=N)),I&&R.start.row>=x.end.row&&(R.start.row+=I,R.end.row+=I)}if(R.end=this.insert(R.start,A),E.length){var F=x.start,z=R.start,I=z.row-F.row,N=z.column-F.column;this.addFolds(E.map(function(B){return B=B.clone(),B.start.row==F.row&&(B.start.column+=N),B.end.row==F.row&&(B.end.column+=N),B.start.row+=I,B.end.row+=I,B}))}return R},k.prototype.indentRows=function(x,C,w){w=w.replace(/\t/g,this.getTabString());for(var A=x;A<=C;A++)this.doc.insertInLine({row:A,column:0},w)},k.prototype.outdentRows=function(x){for(var C=x.collapseRows(),w=new c(0,0,0,0),A=this.getTabSize(),E=C.start.row;E<=C.end.row;++E){var R=this.getLine(E);w.start.row=E,w.end.row=E;for(var I=0;I0){var A=this.getRowFoldEnd(C+w);if(A>this.doc.getLength()-1)return 0;var E=A-C}else{x=this.$clipRowToDocument(x),C=this.$clipRowToDocument(C);var E=C-x+1}var R=new c(x,0,C,Number.MAX_VALUE),I=this.getFoldsInRange(R).map(function(F){return F=F.clone(),F.start.row+=E,F.end.row+=E,F}),N=w==0?this.doc.getLines(x,C):this.doc.removeFullLines(x,C);return this.doc.insertFullLines(x+E,N),I.length&&this.addFolds(I),E},k.prototype.moveLinesUp=function(x,C){return this.$moveLines(x,C,-1)},k.prototype.moveLinesDown=function(x,C){return this.$moveLines(x,C,1)},k.prototype.duplicateLines=function(x,C){return this.$moveLines(x,C,0)},k.prototype.$clipRowToDocument=function(x){return Math.max(0,Math.min(x,this.doc.getLength()-1))},k.prototype.$clipColumnToRow=function(x,C){return C<0?0:Math.min(this.doc.getLine(x).length,C)},k.prototype.$clipPositionToDocument=function(x,C){if(C=Math.max(0,C),x<0)x=0,C=0;else{var w=this.doc.getLength();x>=w?(x=w-1,C=this.doc.getLine(w-1).length):C=Math.min(this.doc.getLine(x).length,C)}return{row:x,column:C}},k.prototype.$clipRangeToDocument=function(x){x.start.row<0?(x.start.row=0,x.start.column=0):x.start.column=this.$clipColumnToRow(x.start.row,x.start.column);var C=this.doc.getLength()-1;return x.end.row>C?(x.end.row=C,x.end.column=this.doc.getLine(C).length):x.end.column=this.$clipColumnToRow(x.end.row,x.end.column),x},k.prototype.setUseWrapMode=function(x){if(x!=this.$useWrapMode){if(this.$useWrapMode=x,this.$modified=!0,this.$resetRowCache(0),x){var C=this.getLength();this.$wrapData=Array(C),this.$updateWrapData(0,C-1)}this._signal("changeWrapMode")}},k.prototype.getUseWrapMode=function(){return this.$useWrapMode},k.prototype.setWrapLimitRange=function(x,C){(this.$wrapLimitRange.min!==x||this.$wrapLimitRange.max!==C)&&(this.$wrapLimitRange={min:x,max:C},this.$modified=!0,this.$bidiHandler.markAsDirty(),this.$useWrapMode&&this._signal("changeWrapMode"))},k.prototype.adjustWrapLimit=function(x,C){var w=this.$wrapLimitRange;w.max<0&&(w={min:C,max:C});var A=this.$constrainWrapLimit(x,w.min,w.max);return A!=this.$wrapLimit&&A>1?(this.$wrapLimit=A,this.$modified=!0,this.$useWrapMode&&(this.$updateWrapData(0,this.getLength()-1),this.$resetRowCache(0),this._signal("changeWrapLimit")),!0):!1},k.prototype.$constrainWrapLimit=function(x,C,w){return C&&(x=Math.max(C,x)),w&&(x=Math.min(w,x)),x},k.prototype.getWrapLimit=function(){return this.$wrapLimit},k.prototype.setWrapLimit=function(x){this.setWrapLimitRange(x,x)},k.prototype.getWrapLimitRange=function(){return{min:this.$wrapLimitRange.min,max:this.$wrapLimitRange.max}},k.prototype.$updateInternalDataOnChange=function(x){var C=this.$useWrapMode,w=x.action,A=x.start,E=x.end,R=A.row,I=E.row,N=I-R,F=null;if(this.$updating=!0,N!=0)if(w==="remove"){this[C?"$wrapData":"$rowLengthCache"].splice(R,N);var z=this.$foldData;F=this.getFoldsInRange(x),this.removeFolds(F);var U=this.getFoldLine(E.row),j=0;if(U){U.addRemoveChars(E.row,E.column,A.column-E.column),U.shiftRow(-N);var B=this.getFoldLine(R);B&&B!==U&&(B.merge(U),U=B),j=z.indexOf(U)+1}for(j;j=E.row&&U.shiftRow(-N)}I=R}else{var V=Array(N);V.unshift(R,0);var Q=C?this.$wrapData:this.$rowLengthCache;Q.splice.apply(Q,V);var z=this.$foldData,U=this.getFoldLine(R),j=0;if(U){var H=U.range.compareInside(A.row,A.column);H==0?(U=U.split(A.row,A.column),U&&(U.shiftRow(N),U.addRemoveChars(I,0,E.column-A.column))):H==-1&&(U.addRemoveChars(R,0,E.column-A.column),U.shiftRow(N)),j=z.indexOf(U)+1}for(j;j=R&&U.shiftRow(N)}}else{N=Math.abs(x.start.column-x.end.column),w==="remove"&&(F=this.getFoldsInRange(x),this.removeFolds(F),N=-N);var U=this.getFoldLine(R);U&&U.addRemoveChars(R,A.column,N)}return C&&this.$wrapData.length!=this.doc.getLength()&&console.error("doc.getLength() and $wrapData.length have to be the same!"),this.$updating=!1,C?this.$updateWrapData(R,I):this.$updateRowLengthCache(R,I),F},k.prototype.$updateRowLengthCache=function(x,C){this.$rowLengthCache[x]=null,this.$rowLengthCache[C]=null},k.prototype.$updateWrapData=function(x,C){var w=this.doc.getAllLines(),A=this.getTabSize(),E=this.$wrapData,R=this.$wrapLimit,I,N,F=x;for(C=Math.min(C,w.length-1);F<=C;)N=this.getFoldLine(F,N),N?(I=[],N.walk((function(z,U,j,B){var V;if(z!=null){V=this.$getDisplayTokens(z,I.length),V[0]=_;for(var Q=1;QC-B;){var V=R+C-B;if(x[V-1]>=M&&x[V]>=M){j(V);continue}if(x[V]==_||x[V]==S){for(V;V!=R-1&&x[V]!=_;V--);if(V>R){j(V);continue}for(V=R+C,V;V>2)),R-1);V>Q&&x[V]<_;)V--;if(N){for(;V>Q&&x[V]<_;)V--;for(;V>Q&&x[V]==b;)V--}else for(;V>Q&&x[V]Q){j(++V);continue}V=R+C,x[V]==$&&V--,j(V-B)}return A},k.prototype.$getDisplayTokens=function(x,C){var w=[],A;C=C||0;for(var E=0;E39&&R<48||R>57&&R<64?w.push(b):R>=4352&&T(R)?w.push(y,$):w.push(y)}return w},k.prototype.$getStringScreenWidth=function(x,C,w){if(C==0)return[0,0];C==null&&(C=1/0),w=w||0;var A,E;for(E=0;E=4352&&T(A)?w+=2:w+=1,!(w>C));E++);return[w,E]},k.prototype.getRowLength=function(x){var C=1;return this.lineWidgets&&(C+=this.lineWidgets[x]&&this.lineWidgets[x].rowCount||0),!this.$useWrapMode||!this.$wrapData[x]?C:this.$wrapData[x].length+C},k.prototype.getRowLineCount=function(x){return!this.$useWrapMode||!this.$wrapData[x]?1:this.$wrapData[x].length+1},k.prototype.getRowWrapIndent=function(x){if(this.$useWrapMode){var C=this.screenToDocumentPosition(x,Number.MAX_VALUE),w=this.$wrapData[C.row];return w.length&&w[0]=0)var N=z[U],E=this.$docRowCache[U],B=x>z[j-1];else var B=!j;for(var V=this.getLength()-1,Q=this.getNextFoldLine(E),H=Q?Q.start.row:1/0;N<=x&&(F=this.getRowLength(E),!(N+F>x||E>=V));)N+=F,E++,E>H&&(E=Q.end.row+1,Q=this.getNextFoldLine(E,Q),H=Q?Q.start.row:1/0),B&&(this.$docRowCache.push(E),this.$screenRowCache.push(N));if(Q&&Q.start.row<=E)A=this.getFoldDisplayLine(Q),E=Q.start.row;else{if(N+F<=x||E>V)return{row:V,column:this.getLine(V).length};A=this.getLine(E),Q=null}var Z=0,X=Math.floor(x-N);if(this.$useWrapMode){var q=this.$wrapData[E];q&&(I=q[X],X>0&&q.length&&(Z=q.indent,R=q[X-1]||q[q.length-1],A=A.substring(R)))}return w!==void 0&&this.$bidiHandler.isBidiRow(N+X,E,X)&&(C=this.$bidiHandler.offsetToCol(w)),R+=this.$getStringScreenWidth(A,C-Z)[1],this.$useWrapMode&&R>=I&&(R=I-1),Q?Q.idxToPosition(R):{row:E,column:R}},k.prototype.documentToScreenPosition=function(x,C){if(typeof C>"u")var w=this.$clipPositionToDocument(x.row,x.column);else w=this.$clipPositionToDocument(x,C);x=w.row,C=w.column;var A=0,E=null,R=null;R=this.getFoldAt(x,C,1),R&&(x=R.start.row,C=R.start.column);var I,N=0,F=this.$docRowCache,z=this.$getRowCacheIndex(F,x),U=F.length;if(U&&z>=0)var N=F[z],A=this.$screenRowCache[z],j=x>F[U-1];else var j=!U;for(var B=this.getNextFoldLine(N),V=B?B.start.row:1/0;N=V){if(I=B.end.row+1,I>x)break;B=this.getNextFoldLine(I,B),V=B?B.start.row:1/0}else I=N+1;A+=this.getRowLength(N),N=I,j&&(this.$docRowCache.push(N),this.$screenRowCache.push(A))}var Q="";B&&N>=V?(Q=this.getFoldDisplayLine(B,x,C),E=B.start.row):(Q=this.getLine(x).substring(0,C),E=x);var H=0;if(this.$useWrapMode){var Z=this.$wrapData[E];if(Z){for(var X=0;Q.length>=Z[X];)A++,X++;Q=Q.substring(Z[X-1]||0,Q.length),H=X>0?Z.indent:0}}return this.lineWidgets&&this.lineWidgets[N]&&this.lineWidgets[N].rowsAbove&&(A+=this.lineWidgets[N].rowsAbove),{row:A,column:H+this.$getStringScreenWidth(Q)[0]}},k.prototype.documentToScreenColumn=function(x,C){return this.documentToScreenPosition(x,C).column},k.prototype.documentToScreenRow=function(x,C){return this.documentToScreenPosition(x,C).row},k.prototype.getScreenLength=function(){var x=0,C=null;if(this.$useWrapMode)for(var E=this.$wrapData.length,R=0,A=0,C=this.$foldData[A++],I=C?C.start.row:1/0;RI&&(R=C.end.row+1,C=this.$foldData[A++],I=C?C.start.row:1/0)}else{x=this.getLength();for(var w=this.$foldData,A=0;Aw));R++);return[A,R]})},k.prototype.getPrecedingCharacter=function(){var x=this.selection.getCursor();if(x.column===0)return x.row===0?"":this.doc.getNewLineCharacter();var C=this.getLine(x.row);return C[x.column-1]},k.prototype.destroy=function(){this.destroyed||(this.bgTokenizer.setDocument(null),this.bgTokenizer.cleanup(),this.destroyed=!0),this.endOperation(),this.$stopWorker(),this.removeAllListeners(),this.doc&&this.doc.off("change",this.$onChange),this.selection&&(this.selection.off("changeCursor",this.$onSelectionChange),this.selection.off("changeSelection",this.$onSelectionChange)),this.selection.detach()},k}();v.$uid=0,v.prototype.$modes=l.$modes,v.prototype.getValue=v.prototype.toString,v.prototype.$defaultUndoManager={undo:function(){},redo:function(){},hasUndo:function(){},hasRedo:function(){},reset:function(){},add:function(){},addSelection:function(){},startNewGroup:function(){},addSession:function(){}},v.prototype.$overwrite=!1,v.prototype.$mode=null,v.prototype.$modeId=null,v.prototype.$scrollTop=0,v.prototype.$scrollLeft=0,v.prototype.$wrapLimit=80,v.prototype.$useWrapMode=!1,v.prototype.$wrapLimitRange={min:null,max:null},v.prototype.lineWidgets=null,v.prototype.isFullWidth=T,a.implement(v.prototype,p);var y=1,$=2,_=3,S=4,b=9,M=10,O=11,L=12;function T(k){return k<4352?!1:k>=4352&&k<=4447||k>=4515&&k<=4519||k>=4602&&k<=4607||k>=9001&&k<=9002||k>=11904&&k<=11929||k>=11931&&k<=12019||k>=12032&&k<=12245||k>=12272&&k<=12283||k>=12288&&k<=12350||k>=12353&&k<=12438||k>=12441&&k<=12543||k>=12549&&k<=12589||k>=12593&&k<=12686||k>=12688&&k<=12730||k>=12736&&k<=12771||k>=12784&&k<=12830||k>=12832&&k<=12871||k>=12880&&k<=13054||k>=13056&&k<=19903||k>=19968&&k<=42124||k>=42128&&k<=42182||k>=43360&&k<=43388||k>=44032&&k<=55203||k>=55216&&k<=55238||k>=55243&&k<=55291||k>=63744&&k<=64255||k>=65040&&k<=65049||k>=65072&&k<=65106||k>=65108&&k<=65126||k>=65128&&k<=65131||k>=65281&&k<=65376||k>=65504&&k<=65510}n("./edit_session/folding").Folding.call(v.prototype),n("./edit_session/bracket_match").BracketMatch.call(v.prototype),l.defineOptions(v.prototype,"session",{wrap:{set:function(k){if(!k||k=="off"?k=!1:k=="free"?k=!0:k=="printMargin"?k=-1:typeof k=="string"&&(k=parseInt(k,10)||!1),this.$wrap!=k)if(this.$wrap=k,!k)this.setUseWrapMode(!1);else{var x=typeof k=="number"?k:null;this.setWrapLimitRange(x,x),this.setUseWrapMode(!0)}},get:function(){return this.getUseWrapMode()?this.$wrap==-1?"printMargin":this.getWrapLimitRange().min?this.$wrap:"free":"off"},handlesSet:!0},wrapMethod:{set:function(k){k=k=="auto"?this.$mode.type!="text":k!="text",k!=this.$wrapAsCode&&(this.$wrapAsCode=k,this.$useWrapMode&&(this.$useWrapMode=!1,this.setUseWrapMode(!0)))},initialValue:"auto"},indentedSoftWrap:{set:function(){this.$useWrapMode&&(this.$useWrapMode=!1,this.setUseWrapMode(!0))},initialValue:!0},firstLineNumber:{set:function(){this._signal("changeBreakpoint")},initialValue:1},useWorker:{set:function(k){this.$useWorker=k,this.$stopWorker(),k&&this.$startWorker()},initialValue:!0},useSoftTabs:{initialValue:!0},tabSize:{set:function(k){k=parseInt(k),k>0&&this.$tabSize!==k&&(this.$modified=!0,this.$rowLengthCache=[],this.$tabSize=k,this._signal("changeTabSize"))},initialValue:4,handlesSet:!0},navigateWithinSoftTabs:{initialValue:!1},foldStyle:{set:function(k){this.setFoldStyle(k)},handlesSet:!0},overwrite:{set:function(k){this._signal("changeOverwrite")},initialValue:!1},newLineMode:{set:function(k){this.doc.setNewLineMode(k)},get:function(){return this.doc.getNewLineMode()},handlesSet:!0},mode:{set:function(k){this.setMode(k)},get:function(){return this.$modeId},handlesSet:!0}}),i.EditSession=v}),ace.define("ace/search",["require","exports","module","ace/lib/lang","ace/lib/oop","ace/range"],function(n,i,s){var a=n("./lib/lang"),d=n("./lib/oop"),g=n("./range").Range,l=function(){function o(){this.$options={}}return o.prototype.set=function(r){return d.mixin(this.$options,r),this},o.prototype.getOptions=function(){return a.copyObject(this.$options)},o.prototype.setOptions=function(r){this.$options=r},o.prototype.find=function(r){var c=this.$options,u=this.$matchIterator(r,c);if(!u)return!1;var h=null;return u.forEach(function(f,m,v,y){return h=new g(f,m,v,y),m==y&&c.start&&c.start.start&&c.skipCurrent!=!1&&h.isEqual(c.start)?(h=null,!1):!0}),h},o.prototype.findAll=function(r){var c=this.$options;if(!c.needle)return[];this.$assembleRegExp(c);var u=c.range,h=u?r.getLines(u.start.row,u.end.row):r.doc.getAllLines(),f=[],m=c.re;if(c.$isMultiLine){var v=m.length,y=h.length-v,$;e:for(var _=m.offset||0;_<=y;_++){for(var S=0;SO||(f.push($=new g(_,O,_+v-1,L)),v>2&&(_=_+v-2))}}else for(var T=0;Tw&&f[S].end.row==A;)S--;for(f=f.slice(T,S+1),T=0,S=f.length;T=$;L--)if(M(L,Number.MAX_VALUE,O))return;if(c.wrap!=!1){for(L=_,$=y.row;L>=$;L--)if(M(L,Number.MAX_VALUE,O))return}}};else var S=function(L){var T=y.row;if(!M(T,y.column,L)){for(T=T+1;T<=_;T++)if(M(T,0,L))return;if(c.wrap!=!1){for(T=$,_=y.row;T<=_;T++)if(M(T,0,L))return}}};if(c.$isMultiLine)var b=u.length,M=function(O,L,T){var k=h?O-b+1:O;if(!(k<0||k+b>r.getLength())){var x=r.getLine(k),C=x.search(u[0]);if(!(!h&&CL)&&T(k,C,k+b-1,A))return!0}}};else if(h)var M=function(L,T,k){var x=r.getLine(L),C=[],w,A=0;for(u.lastIndex=0;w=u.exec(x);){var E=w[0].length;if(A=w.index,!E){if(A>=x.length)break;u.lastIndex=A+=a.skipEmptyMatch(x,A,m)}if(w.index+E>T)break;C.push(w.index,E)}for(var R=C.length-1;R>=0;R-=2){var I=C[R-1],E=C[R];if(k(L,I,L,I+E))return!0}};else var M=function(L,T,k){var x=r.getLine(L),C,w;for(u.lastIndex=T;w=u.exec(x);){var A=w[0].length;if(C=w.index,k(L,C,L,C+A))return!0;if(!A&&(u.lastIndex=C+=a.skipEmptyMatch(x,C,m),C>=x.length))return!1}};return{forEach:S}},o}();function p(o,r){var c=a.supportsLookbehind();function u(v,y){y===void 0&&(y=!0);var $=c&&r.$supportsUnicodeFlag?new RegExp("[\\p{L}\\p{N}_]","u"):new RegExp("\\w");return $.test(v)||r.regExp?c&&r.$supportsUnicodeFlag?y?"(?<=^|[^\\p{L}\\p{N}_])":"(?=[^\\p{L}\\p{N}_]|$)":"\\b":""}var h=Array.from(o),f=h[0],m=h[h.length-1];return u(f)+o+u(m,!1)}i.Search=l}),ace.define("ace/keyboard/hash_handler",["require","exports","module","ace/lib/keys","ace/lib/useragent"],function(n,i,s){var a=this&&this.__extends||function(){var c=function(u,h){return c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,m){f.__proto__=m}||function(f,m){for(var v in m)Object.prototype.hasOwnProperty.call(m,v)&&(f[v]=m[v])},c(u,h)};return function(u,h){if(typeof h!="function"&&h!==null)throw new TypeError("Class extends value "+String(h)+" is not a constructor or null");c(u,h);function f(){this.constructor=u}u.prototype=h===null?Object.create(h):(f.prototype=h.prototype,new f)}}(),d=n("../lib/keys"),g=n("../lib/useragent"),l=d.KEY_MODS,p=function(){function c(u,h){this.$init(u,h,!1)}return c.prototype.$init=function(u,h,f){this.platform=h||(g.isMac?"mac":"win"),this.commands={},this.commandKeyBinding={},this.addCommands(u),this.$singleCommand=f},c.prototype.addCommand=function(u){this.commands[u.name]&&this.removeCommand(u),this.commands[u.name]=u,u.bindKey&&this._buildKeyHash(u)},c.prototype.removeCommand=function(u,h){var f=u&&(typeof u=="string"?u:u.name);u=this.commands[f],h||delete this.commands[f];var m=this.commandKeyBinding;for(var v in m){var y=m[v];if(y==u)delete m[v];else if(Array.isArray(y)){var $=y.indexOf(u);$!=-1&&(y.splice($,1),y.length==1&&(m[v]=y[0]))}}},c.prototype.bindKey=function(u,h,f){if(typeof u=="object"&&u&&(f==null&&(f=u.position),u=u[this.platform]),!!u){if(typeof h=="function")return this.addCommand({exec:h,bindKey:u,name:h.name||u});u.split("|").forEach(function(m){var v="";if(m.indexOf(" ")!=-1){var y=m.split(/\s+/);m=y.pop(),y.forEach(function(S){var b=this.parseKeys(S),M=l[b.hashId]+b.key;v+=(v?" ":"")+M,this._addCommandToBinding(v,"chainKeys")},this),v+=" "}var $=this.parseKeys(m),_=l[$.hashId]+$.key;this._addCommandToBinding(v+_,h,f)},this)}},c.prototype._addCommandToBinding=function(u,h,f){var m=this.commandKeyBinding,v;if(!h)delete m[u];else if(!m[u]||this.$singleCommand)m[u]=h;else{Array.isArray(m[u])?(v=m[u].indexOf(h))!=-1&&m[u].splice(v,1):m[u]=[m[u]],typeof f!="number"&&(f=o(h));var y=m[u];for(v=0;vf)break}y.splice(v,0,h)}},c.prototype.addCommands=function(u){u&&Object.keys(u).forEach(function(h){var f=u[h];if(f){if(typeof f=="string")return this.bindKey(f,h);typeof f=="function"&&(f={exec:f}),typeof f=="object"&&(f.name||(f.name=h),this.addCommand(f))}},this)},c.prototype.removeCommands=function(u){Object.keys(u).forEach(function(h){this.removeCommand(u[h])},this)},c.prototype.bindKeys=function(u){Object.keys(u).forEach(function(h){this.bindKey(h,u[h])},this)},c.prototype._buildKeyHash=function(u){this.bindKey(u.bindKey,u)},c.prototype.parseKeys=function(u){var h=u.toLowerCase().split(/[\-\+]([\-\+])?/).filter(function(_){return _}),f=h.pop(),m=d[f];if(d.FUNCTION_KEYS[m])f=d.FUNCTION_KEYS[m].toLowerCase();else if(h.length){if(h.length==1&&h[0]=="shift")return{key:f.toUpperCase(),hashId:-1}}else return{key:f,hashId:-1};for(var v=0,y=h.length;y--;){var $=d.KEY_MODS[h[y]];if($==null)return typeof console<"u"&&console.error("invalid modifier "+h[y]+" in "+u),!1;v|=$}return{key:f,hashId:v}},c.prototype.findKeyCommand=function(u,h){var f=l[u]+h;return this.commandKeyBinding[f]},c.prototype.handleKeyboard=function(u,h,f,m){if(!(m<0)){var v=l[h]+f,y=this.commandKeyBinding[v];return u.$keyChain&&(u.$keyChain+=" "+v,y=this.commandKeyBinding[u.$keyChain]||y),y&&(y=="chainKeys"||y[y.length-1]=="chainKeys")?(u.$keyChain=u.$keyChain||v,{command:"null"}):(u.$keyChain&&((!h||h==4)&&f.length==1?u.$keyChain=u.$keyChain.slice(0,-v.length-1):(h==-1||m>0)&&(u.$keyChain="")),{command:y})}},c.prototype.getStatusText=function(u,h){return h.$keyChain||""},c}();function o(c){return typeof c=="object"&&c.bindKey&&c.bindKey.position||(c.isDefault?-100:0)}var r=function(c){a(u,c);function u(h,f){var m=c.call(this,h,f)||this;return m.$singleCommand=!0,m}return u}(p);r.call=function(c,u,h){p.prototype.$init.call(c,u,h,!0)},p.call=function(c,u,h){p.prototype.$init.call(c,u,h,!1)},i.HashHandler=r,i.MultiHashHandler=p}),ace.define("ace/commands/command_manager",["require","exports","module","ace/lib/oop","ace/keyboard/hash_handler","ace/lib/event_emitter"],function(n,i,s){var a=this&&this.__extends||function(){var o=function(r,c){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,h){u.__proto__=h}||function(u,h){for(var f in h)Object.prototype.hasOwnProperty.call(h,f)&&(u[f]=h[f])},o(r,c)};return function(r,c){if(typeof c!="function"&&c!==null)throw new TypeError("Class extends value "+String(c)+" is not a constructor or null");o(r,c);function u(){this.constructor=r}r.prototype=c===null?Object.create(c):(u.prototype=c.prototype,new u)}}(),d=n("../lib/oop"),g=n("../keyboard/hash_handler").MultiHashHandler,l=n("../lib/event_emitter").EventEmitter,p=function(o){a(r,o);function r(c,u){var h=o.call(this,u,c)||this;return h.byName=h.commands,h.setDefaultHandler("exec",function(f){return f.args?f.command.exec(f.editor,f.args,f.event,!1):f.command.exec(f.editor,{},f.event,!0)}),h}return r.prototype.exec=function(c,u,h){if(Array.isArray(c)){for(var f=c.length;f--;)if(this.exec(c[f],u,h))return!0;return!1}if(typeof c=="string"&&(c=this.commands[c]),!this.canExecute(c,u))return!1;var m={editor:u,command:c,args:h};return m.returnValue=this._emit("exec",m),this._signal("afterExec",m),m.returnValue!==!1},r.prototype.canExecute=function(c,u){return typeof c=="string"&&(c=this.commands[c]),!(!c||u&&u.$readOnly&&!c.readOnly||this.$checkCommandState!=!1&&c.isAvailable&&!c.isAvailable(u))},r.prototype.toggleRecording=function(c){if(!this.$inReplay)return c&&c._emit("changeStatus"),this.recording?(this.macro.pop(),this.off("exec",this.$addCommandToMacro),this.macro.length||(this.macro=this.oldMacro),this.recording=!1):(this.$addCommandToMacro||(this.$addCommandToMacro=(function(u){this.macro.push([u.command,u.args])}).bind(this)),this.oldMacro=this.macro,this.macro=[],this.on("exec",this.$addCommandToMacro),this.recording=!0)},r.prototype.replay=function(c){if(!(this.$inReplay||!this.macro)){if(this.recording)return this.toggleRecording(c);try{this.$inReplay=!0,this.macro.forEach(function(u){typeof u=="string"?this.exec(u,c):this.exec(u[0],c,u[1])},this)}finally{this.$inReplay=!1}}},r.prototype.trimMacro=function(c){return c.map(function(u){return typeof u[0]!="string"&&(u[0]=u[0].name),u[1]||(u=u[0]),u})},r}(g);d.implement(p.prototype,l),i.CommandManager=p}),ace.define("ace/commands/default_commands",["require","exports","module","ace/lib/lang","ace/config","ace/range"],function(n,i,s){var a=n("../lib/lang"),d=n("../config"),g=n("../range").Range;function l(o,r){return{win:o,mac:r}}i.commands=[{name:"showSettingsMenu",description:"Show settings menu",bindKey:l("Ctrl-,","Command-,"),exec:function(o){d.loadModule("ace/ext/settings_menu",function(r){r.init(o),o.showSettingsMenu()})},readOnly:!0},{name:"goToNextError",description:"Go to next error",bindKey:l("Alt-E","F4"),exec:function(o){d.loadModule("ace/ext/error_marker",function(r){r.showErrorMarker(o,1)})},scrollIntoView:"animate",readOnly:!0},{name:"goToPreviousError",description:"Go to previous error",bindKey:l("Alt-Shift-E","Shift-F4"),exec:function(o){d.loadModule("ace/ext/error_marker",function(r){r.showErrorMarker(o,-1)})},scrollIntoView:"animate",readOnly:!0},{name:"selectall",description:"Select all",bindKey:l("Ctrl-A","Command-A"),exec:function(o){o.selectAll()},readOnly:!0},{name:"centerselection",description:"Center selection",bindKey:l(null,"Ctrl-L"),exec:function(o){o.centerSelection()},readOnly:!0},{name:"gotoline",description:"Go to line...",bindKey:l("Ctrl-L","Command-L"),exec:function(o,r){typeof r=="number"&&!isNaN(r)&&o.gotoLine(r),o.prompt({$type:"gotoLine"})},readOnly:!0},{name:"fold",bindKey:l("Alt-L|Ctrl-F1","Command-Alt-L|Command-F1"),exec:function(o){o.session.toggleFold(!1)},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"unfold",bindKey:l("Alt-Shift-L|Ctrl-Shift-F1","Command-Alt-Shift-L|Command-Shift-F1"),exec:function(o){o.session.toggleFold(!0)},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"toggleFoldWidget",description:"Toggle fold widget",bindKey:l("F2","F2"),exec:function(o){o.session.toggleFoldWidget()},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"toggleParentFoldWidget",description:"Toggle parent fold widget",bindKey:l("Alt-F2","Alt-F2"),exec:function(o){o.session.toggleFoldWidget(!0)},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"foldall",description:"Fold all",bindKey:l(null,"Ctrl-Command-Option-0"),exec:function(o){o.session.foldAll()},scrollIntoView:"center",readOnly:!0},{name:"foldAllComments",description:"Fold all comments",bindKey:l(null,"Ctrl-Command-Option-0"),exec:function(o){o.session.foldAllComments()},scrollIntoView:"center",readOnly:!0},{name:"foldOther",description:"Fold other",bindKey:l("Alt-0","Command-Option-0"),exec:function(o){o.session.foldAll(),o.session.unfold(o.selection.getAllRanges())},scrollIntoView:"center",readOnly:!0},{name:"unfoldall",description:"Unfold all",bindKey:l("Alt-Shift-0","Command-Option-Shift-0"),exec:function(o){o.session.unfold()},scrollIntoView:"center",readOnly:!0},{name:"findnext",description:"Find next",bindKey:l("Ctrl-K","Command-G"),exec:function(o){o.findNext()},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"findprevious",description:"Find previous",bindKey:l("Ctrl-Shift-K","Command-Shift-G"),exec:function(o){o.findPrevious()},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"selectOrFindNext",description:"Select or find next",bindKey:l("Alt-K","Ctrl-G"),exec:function(o){o.selection.isEmpty()?o.selection.selectWord():o.findNext()},readOnly:!0},{name:"selectOrFindPrevious",description:"Select or find previous",bindKey:l("Alt-Shift-K","Ctrl-Shift-G"),exec:function(o){o.selection.isEmpty()?o.selection.selectWord():o.findPrevious()},readOnly:!0},{name:"find",description:"Find",bindKey:l("Ctrl-F","Command-F"),exec:function(o){d.loadModule("ace/ext/searchbox",function(r){r.Search(o)})},readOnly:!0},{name:"overwrite",description:"Overwrite",bindKey:"Insert",exec:function(o){o.toggleOverwrite()},readOnly:!0},{name:"selecttostart",description:"Select to start",bindKey:l("Ctrl-Shift-Home","Command-Shift-Home|Command-Shift-Up"),exec:function(o){o.getSelection().selectFileStart()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"gotostart",description:"Go to start",bindKey:l("Ctrl-Home","Command-Home|Command-Up"),exec:function(o){o.navigateFileStart()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"selectup",description:"Select up",bindKey:l("Shift-Up","Shift-Up|Ctrl-Shift-P"),exec:function(o){o.getSelection().selectUp()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"golineup",description:"Go line up",bindKey:l("Up","Up|Ctrl-P"),exec:function(o,r){o.navigateUp(r.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selecttoend",description:"Select to end",bindKey:l("Ctrl-Shift-End","Command-Shift-End|Command-Shift-Down"),exec:function(o){o.getSelection().selectFileEnd()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"gotoend",description:"Go to end",bindKey:l("Ctrl-End","Command-End|Command-Down"),exec:function(o){o.navigateFileEnd()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"selectdown",description:"Select down",bindKey:l("Shift-Down","Shift-Down|Ctrl-Shift-N"),exec:function(o){o.getSelection().selectDown()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"golinedown",description:"Go line down",bindKey:l("Down","Down|Ctrl-N"),exec:function(o,r){o.navigateDown(r.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectwordleft",description:"Select word left",bindKey:l("Ctrl-Shift-Left","Option-Shift-Left"),exec:function(o){o.getSelection().selectWordLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotowordleft",description:"Go to word left",bindKey:l("Ctrl-Left","Option-Left"),exec:function(o){o.navigateWordLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selecttolinestart",description:"Select to line start",bindKey:l("Alt-Shift-Left","Command-Shift-Left|Ctrl-Shift-A"),exec:function(o){o.getSelection().selectLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotolinestart",description:"Go to line start",bindKey:l("Alt-Left|Home","Command-Left|Home|Ctrl-A"),exec:function(o){o.navigateLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectleft",description:"Select left",bindKey:l("Shift-Left","Shift-Left|Ctrl-Shift-B"),exec:function(o){o.getSelection().selectLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotoleft",description:"Go to left",bindKey:l("Left","Left|Ctrl-B"),exec:function(o,r){o.navigateLeft(r.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectwordright",description:"Select word right",bindKey:l("Ctrl-Shift-Right","Option-Shift-Right"),exec:function(o){o.getSelection().selectWordRight()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotowordright",description:"Go to word right",bindKey:l("Ctrl-Right","Option-Right"),exec:function(o){o.navigateWordRight()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selecttolineend",description:"Select to line end",bindKey:l("Alt-Shift-Right","Command-Shift-Right|Shift-End|Ctrl-Shift-E"),exec:function(o){o.getSelection().selectLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotolineend",description:"Go to line end",bindKey:l("Alt-Right|End","Command-Right|End|Ctrl-E"),exec:function(o){o.navigateLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectright",description:"Select right",bindKey:l("Shift-Right","Shift-Right"),exec:function(o){o.getSelection().selectRight()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotoright",description:"Go to right",bindKey:l("Right","Right|Ctrl-F"),exec:function(o,r){o.navigateRight(r.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectpagedown",description:"Select page down",bindKey:"Shift-PageDown",exec:function(o){o.selectPageDown()},readOnly:!0},{name:"pagedown",description:"Page down",bindKey:l(null,"Option-PageDown"),exec:function(o){o.scrollPageDown()},readOnly:!0},{name:"gotopagedown",description:"Go to page down",bindKey:l("PageDown","PageDown|Ctrl-V"),exec:function(o){o.gotoPageDown()},readOnly:!0},{name:"selectpageup",description:"Select page up",bindKey:"Shift-PageUp",exec:function(o){o.selectPageUp()},readOnly:!0},{name:"pageup",description:"Page up",bindKey:l(null,"Option-PageUp"),exec:function(o){o.scrollPageUp()},readOnly:!0},{name:"gotopageup",description:"Go to page up",bindKey:"PageUp",exec:function(o){o.gotoPageUp()},readOnly:!0},{name:"scrollup",description:"Scroll up",bindKey:l("Ctrl-Up",null),exec:function(o){o.renderer.scrollBy(0,-2*o.renderer.layerConfig.lineHeight)},readOnly:!0},{name:"scrolldown",description:"Scroll down",bindKey:l("Ctrl-Down",null),exec:function(o){o.renderer.scrollBy(0,2*o.renderer.layerConfig.lineHeight)},readOnly:!0},{name:"selectlinestart",description:"Select line start",bindKey:"Shift-Home",exec:function(o){o.getSelection().selectLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectlineend",description:"Select line end",bindKey:"Shift-End",exec:function(o){o.getSelection().selectLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"togglerecording",description:"Toggle recording",bindKey:l("Ctrl-Alt-E","Command-Option-E"),exec:function(o){o.commands.toggleRecording(o)},readOnly:!0},{name:"replaymacro",description:"Replay macro",bindKey:l("Ctrl-Shift-E","Command-Shift-E"),exec:function(o){o.commands.replay(o)},readOnly:!0},{name:"jumptomatching",description:"Jump to matching",bindKey:l("Ctrl-\\|Ctrl-P","Command-\\"),exec:function(o){o.jumpToMatching()},multiSelectAction:"forEach",scrollIntoView:"animate",readOnly:!0},{name:"selecttomatching",description:"Select to matching",bindKey:l("Ctrl-Shift-\\|Ctrl-Shift-P","Command-Shift-\\"),exec:function(o){o.jumpToMatching(!0)},multiSelectAction:"forEach",scrollIntoView:"animate",readOnly:!0},{name:"expandToMatching",description:"Expand to matching",bindKey:l("Ctrl-Shift-M","Ctrl-Shift-M"),exec:function(o){o.jumpToMatching(!0,!0)},multiSelectAction:"forEach",scrollIntoView:"animate",readOnly:!0},{name:"passKeysToBrowser",description:"Pass keys to browser",bindKey:l(null,null),exec:function(){},passEvent:!0,readOnly:!0},{name:"copy",description:"Copy",exec:function(o){},readOnly:!0},{name:"cut",description:"Cut",exec:function(o){var r=o.$copyWithEmptySelection&&o.selection.isEmpty(),c=r?o.selection.getLineRange():o.selection.getRange();o._emit("cut",c),c.isEmpty()||o.session.remove(c),o.clearSelection()},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"paste",description:"Paste",exec:function(o,r){o.$handlePaste(r)},scrollIntoView:"cursor"},{name:"removeline",description:"Remove line",bindKey:l("Ctrl-D","Command-D"),exec:function(o){o.removeLines()},scrollIntoView:"cursor",multiSelectAction:"forEachLine"},{name:"duplicateSelection",description:"Duplicate selection",bindKey:l("Ctrl-Shift-D","Command-Shift-D"),exec:function(o){o.duplicateSelection()},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"sortlines",description:"Sort lines",bindKey:l("Ctrl-Alt-S","Command-Alt-S"),exec:function(o){o.sortLines()},scrollIntoView:"selection",multiSelectAction:"forEachLine"},{name:"togglecomment",description:"Toggle comment",bindKey:l("Ctrl-/","Command-/"),exec:function(o){o.toggleCommentLines()},multiSelectAction:"forEachLine",scrollIntoView:"selectionPart"},{name:"toggleBlockComment",description:"Toggle block comment",bindKey:l("Ctrl-Shift-/","Command-Shift-/"),exec:function(o){o.toggleBlockComment()},multiSelectAction:"forEach",scrollIntoView:"selectionPart"},{name:"modifyNumberUp",description:"Modify number up",bindKey:l("Ctrl-Shift-Up","Alt-Shift-Up"),exec:function(o){o.modifyNumber(1)},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"modifyNumberDown",description:"Modify number down",bindKey:l("Ctrl-Shift-Down","Alt-Shift-Down"),exec:function(o){o.modifyNumber(-1)},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"replace",description:"Replace",bindKey:l("Ctrl-H","Command-Option-F"),exec:function(o){d.loadModule("ace/ext/searchbox",function(r){r.Search(o,!0)})}},{name:"undo",description:"Undo",bindKey:l("Ctrl-Z","Command-Z"),exec:function(o){o.undo()}},{name:"redo",description:"Redo",bindKey:l("Ctrl-Shift-Z|Ctrl-Y","Command-Shift-Z|Command-Y"),exec:function(o){o.redo()}},{name:"copylinesup",description:"Copy lines up",bindKey:l("Alt-Shift-Up","Command-Option-Up"),exec:function(o){o.copyLinesUp()},scrollIntoView:"cursor"},{name:"movelinesup",description:"Move lines up",bindKey:l("Alt-Up","Option-Up"),exec:function(o){o.moveLinesUp()},scrollIntoView:"cursor"},{name:"copylinesdown",description:"Copy lines down",bindKey:l("Alt-Shift-Down","Command-Option-Down"),exec:function(o){o.copyLinesDown()},scrollIntoView:"cursor"},{name:"movelinesdown",description:"Move lines down",bindKey:l("Alt-Down","Option-Down"),exec:function(o){o.moveLinesDown()},scrollIntoView:"cursor"},{name:"del",description:"Delete",bindKey:l("Delete","Delete|Ctrl-D|Shift-Delete"),exec:function(o){o.remove("right")},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"backspace",description:"Backspace",bindKey:l("Shift-Backspace|Backspace","Ctrl-Backspace|Shift-Backspace|Backspace|Ctrl-H"),exec:function(o){o.remove("left")},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"cut_or_delete",description:"Cut or delete",bindKey:l("Shift-Delete",null),exec:function(o){if(o.selection.isEmpty())o.remove("left");else return!1},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolinestart",description:"Remove to line start",bindKey:l("Alt-Backspace","Command-Backspace"),exec:function(o){o.removeToLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolineend",description:"Remove to line end",bindKey:l("Alt-Delete","Ctrl-K|Command-Delete"),exec:function(o){o.removeToLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolinestarthard",description:"Remove to line start hard",bindKey:l("Ctrl-Shift-Backspace",null),exec:function(o){var r=o.selection.getRange();r.start.column=0,o.session.remove(r)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolineendhard",description:"Remove to line end hard",bindKey:l("Ctrl-Shift-Delete",null),exec:function(o){var r=o.selection.getRange();r.end.column=Number.MAX_VALUE,o.session.remove(r)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removewordleft",description:"Remove word left",bindKey:l("Ctrl-Backspace","Alt-Backspace|Ctrl-Alt-Backspace"),exec:function(o){o.removeWordLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removewordright",description:"Remove word right",bindKey:l("Ctrl-Delete","Alt-Delete"),exec:function(o){o.removeWordRight()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"outdent",description:"Outdent",bindKey:l("Shift-Tab","Shift-Tab"),exec:function(o){o.blockOutdent()},multiSelectAction:"forEach",scrollIntoView:"selectionPart"},{name:"indent",description:"Indent",bindKey:l("Tab","Tab"),exec:function(o){o.indent()},multiSelectAction:"forEach",scrollIntoView:"selectionPart"},{name:"blockoutdent",description:"Block outdent",bindKey:l("Ctrl-[","Ctrl-["),exec:function(o){o.blockOutdent()},multiSelectAction:"forEachLine",scrollIntoView:"selectionPart"},{name:"blockindent",description:"Block indent",bindKey:l("Ctrl-]","Ctrl-]"),exec:function(o){o.blockIndent()},multiSelectAction:"forEachLine",scrollIntoView:"selectionPart"},{name:"insertstring",description:"Insert string",exec:function(o,r){o.insert(r)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"inserttext",description:"Insert text",exec:function(o,r){o.insert(a.stringRepeat(r.text||"",r.times||1))},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"splitline",description:"Split line",bindKey:l(null,"Ctrl-O"),exec:function(o){o.splitLine()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"transposeletters",description:"Transpose letters",bindKey:l("Alt-Shift-X","Ctrl-T"),exec:function(o){o.transposeLetters()},multiSelectAction:function(o){o.transposeSelections(1)},scrollIntoView:"cursor"},{name:"touppercase",description:"To uppercase",bindKey:l("Ctrl-U","Ctrl-U"),exec:function(o){o.toUpperCase()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"tolowercase",description:"To lowercase",bindKey:l("Ctrl-Shift-U","Ctrl-Shift-U"),exec:function(o){o.toLowerCase()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"autoindent",description:"Auto Indent",bindKey:l(null,null),exec:function(o){o.autoIndent()},scrollIntoView:"animate"},{name:"expandtoline",description:"Expand to line",bindKey:l("Ctrl-Shift-L","Command-Shift-L"),exec:function(o){var r=o.selection.getRange();r.start.column=r.end.column=0,r.end.row++,o.selection.setRange(r,!1)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"openlink",bindKey:l("Ctrl+F3","F3"),exec:function(o){o.openLink()}},{name:"joinlines",description:"Join lines",bindKey:l(null,null),exec:function(o){for(var r=o.selection.isBackwards(),c=r?o.selection.getSelectionLead():o.selection.getSelectionAnchor(),u=r?o.selection.getSelectionAnchor():o.selection.getSelectionLead(),h=o.session.doc.getLine(c.row).length,f=o.session.doc.getTextRange(o.selection.getRange()),m=f.replace(/\n\s*/," ").length,v=o.session.doc.getLine(c.row),y=c.row+1;y<=u.row+1;y++){var $=a.stringTrimLeft(a.stringTrimRight(o.session.doc.getLine(y)));$.length!==0&&($=" "+$),v+=$}u.row+10?(o.selection.moveCursorTo(c.row,c.column),o.selection.selectTo(c.row,c.column+m)):(h=o.session.doc.getLine(c.row).length>h?h+1:h,o.selection.moveCursorTo(c.row,h))},multiSelectAction:"forEach",readOnly:!0},{name:"invertSelection",description:"Invert selection",bindKey:l(null,null),exec:function(o){var r=o.session.doc.getLength()-1,c=o.session.doc.getLine(r).length,u=o.selection.rangeList.ranges,h=[];u.length<1&&(u=[o.selection.getRange()]);for(var f=0;fp[o].column&&o++,u.unshift(o,0),p.splice.apply(p,u),this.$updateRows()}}},g.prototype.$updateRows=function(){var l=this.session.lineWidgets;if(l){var p=!0;l.forEach(function(o,r){if(o)for(p=!1,o.row=r;o.$oldWidget;)o.$oldWidget.row=r,o=o.$oldWidget}),p&&(this.session.lineWidgets=null)}},g.prototype.$registerLineWidget=function(l){this.session.lineWidgets||(this.session.lineWidgets=new Array(this.session.getLength()));var p=this.session.lineWidgets[l.row];return p&&(l.$oldWidget=p,p.el&&p.el.parentNode&&(p.el.parentNode.removeChild(p.el),p._inDocument=!1)),this.session.lineWidgets[l.row]=l,l},g.prototype.addLineWidget=function(l){if(this.$registerLineWidget(l),l.session=this.session,!this.editor)return l;var p=this.editor.renderer;l.html&&!l.el&&(l.el=a.createElement("div"),l.el.innerHTML=l.html),l.text&&!l.el&&(l.el=a.createElement("div"),l.el.textContent=l.text),l.el&&(a.addCssClass(l.el,"ace_lineWidgetContainer"),l.className&&a.addCssClass(l.el,l.className),l.el.style.position="absolute",l.el.style.zIndex="5",p.container.appendChild(l.el),l._inDocument=!0,l.coverGutter||(l.el.style.zIndex="3"),l.pixelHeight==null&&(l.pixelHeight=l.el.offsetHeight)),l.rowCount==null&&(l.rowCount=l.pixelHeight/p.layerConfig.lineHeight);var o=this.session.getFoldAt(l.row,0);if(l.$fold=o,o){var r=this.session.lineWidgets;l.row==o.end.row&&!r[o.start.row]?r[o.start.row]=l:l.hidden=!0}return this.session._emit("changeFold",{data:{start:{row:l.row}}}),this.$updateRows(),this.renderWidgets(null,p),this.onWidgetChanged(l),l},g.prototype.removeLineWidget=function(l){if(l._inDocument=!1,l.session=null,l.el&&l.el.parentNode&&l.el.parentNode.removeChild(l.el),l.editor&&l.editor.destroy)try{l.editor.destroy()}catch{}if(this.session.lineWidgets){var p=this.session.lineWidgets[l.row];if(p==l)this.session.lineWidgets[l.row]=l.$oldWidget,l.$oldWidget&&this.onWidgetChanged(l.$oldWidget);else for(;p;){if(p.$oldWidget==l){p.$oldWidget=l.$oldWidget;break}p=p.$oldWidget}}this.session._emit("changeFold",{data:{start:{row:l.row}}}),this.$updateRows()},g.prototype.getWidgetsAtRow=function(l){for(var p=this.session.lineWidgets,o=p&&p[l],r=[];o;)r.push(o),o=o.$oldWidget;return r},g.prototype.onWidgetChanged=function(l){this.session._changedWidgets.push(l),this.editor&&this.editor.renderer.updateFull()},g.prototype.measureWidgets=function(l,p){var o=this.session._changedWidgets,r=p.layerConfig;if(!(!o||!o.length)){for(var c=1/0,u=0;u0&&!r[c];)c--;this.firstRow=o.firstRow,this.lastRow=o.lastRow,p.$cursorLayer.config=o;for(var h=c;h<=u;h++){var f=r[h];if(!(!f||!f.el)){if(f.hidden){f.el.style.top=-100-(f.pixelHeight||0)+"px";continue}f._inDocument||(f._inDocument=!0,p.container.appendChild(f.el));var m=p.$cursorLayer.getPixelPosition({row:h,column:0},!0).top;f.coverLine||(m+=o.lineHeight*this.session.getRowLineCount(f.row)),f.el.style.top=m-o.offset+"px";var v=f.coverGutter?0:p.gutterWidth;f.fixedWidth||(v-=p.scrollLeft),f.el.style.left=v+"px",f.fullWidth&&f.screenWidth&&(f.el.style.minWidth=o.width+2*o.padding+"px"),f.fixedWidth?f.el.style.right=p.scrollBar.getWidth()+"px":f.el.style.right=""}}}},g}();i.LineWidgets=d}),ace.define("ace/keyboard/gutter_handler",["require","exports","module","ace/lib/keys","ace/mouse/default_gutter_handler"],function(n,i,s){var a=n("../lib/keys"),d=n("../mouse/default_gutter_handler").GutterTooltip,g=function(){function p(o){this.editor=o,this.gutterLayer=o.renderer.$gutterLayer,this.element=o.renderer.$gutter,this.lines=o.renderer.$gutterLayer.$lines,this.activeRowIndex=null,this.activeLane=null,this.annotationTooltip=new d(this.editor)}return p.prototype.addListener=function(){this.element.addEventListener("keydown",this.$onGutterKeyDown.bind(this)),this.element.addEventListener("focusout",this.$blurGutter.bind(this)),this.editor.on("mousewheel",this.$blurGutter.bind(this))},p.prototype.removeListener=function(){this.element.removeEventListener("keydown",this.$onGutterKeyDown.bind(this)),this.element.removeEventListener("focusout",this.$blurGutter.bind(this)),this.editor.off("mousewheel",this.$blurGutter.bind(this))},p.prototype.$onGutterKeyDown=function(o){if(this.annotationTooltip.isOpen){o.preventDefault(),o.keyCode===a.escape&&this.annotationTooltip.hideTooltip();return}if(o.target===this.element){if(o.keyCode!=a.enter)return;o.preventDefault();var r=this.editor.getCursorPosition().row;this.editor.isRowVisible(r)||this.editor.scrollToLine(r,!0,!0),setTimeout((function(){var c=this.$rowToRowIndex(this.gutterLayer.$cursorCell.row),u=this.$findNearestFoldWidget(c),h=this.$findNearestAnnotation(c);if(!(u===null&&h===null)){if(u===null&&h!==null){this.activeRowIndex=h,this.activeLane="annotation",this.$focusAnnotation(this.activeRowIndex);return}if(u!==null&&h===null){this.activeRowIndex=u,this.activeLane="fold",this.$focusFoldWidget(this.activeRowIndex);return}if(Math.abs(h-c)0||o+r=0&&this.$isFoldWidgetVisible(o-r))return o-r;if(o+r<=this.lines.getLength()-1&&this.$isFoldWidgetVisible(o+r))return o+r}return null},p.prototype.$findNearestAnnotation=function(o){if(this.$isAnnotationVisible(o))return o;for(var r=0;o-r>0||o+r=0&&this.$isAnnotationVisible(o-r))return o-r;if(o+r<=this.lines.getLength()-1&&this.$isAnnotationVisible(o+r))return o+r}return null},p.prototype.$focusFoldWidget=function(o){if(o!=null){var r=this.$getFoldWidget(o);r.classList.add(this.editor.renderer.keyboardFocusClassName),r.focus()}},p.prototype.$focusAnnotation=function(o){if(o!=null){var r=this.$getAnnotation(o);r.classList.add(this.editor.renderer.keyboardFocusClassName),r.focus()}},p.prototype.$blurFoldWidget=function(o){var r=this.$getFoldWidget(o);r.classList.remove(this.editor.renderer.keyboardFocusClassName),r.blur()},p.prototype.$blurAnnotation=function(o){var r=this.$getAnnotation(o);r.classList.remove(this.editor.renderer.keyboardFocusClassName),r.blur()},p.prototype.$moveFoldWidgetUp=function(){for(var o=this.activeRowIndex;o>0;)if(o--,this.$isFoldWidgetVisible(o)){this.$blurFoldWidget(this.activeRowIndex),this.activeRowIndex=o,this.$focusFoldWidget(this.activeRowIndex);return}},p.prototype.$moveFoldWidgetDown=function(){for(var o=this.activeRowIndex;o0;)if(o--,this.$isAnnotationVisible(o)){this.$blurAnnotation(this.activeRowIndex),this.activeRowIndex=o,this.$focusAnnotation(this.activeRowIndex);return}},p.prototype.$moveAnnotationDown=function(){for(var o=this.activeRowIndex;o=C.length&&(C=void 0),{value:C&&C[E++],done:!C}}};throw new TypeError(w?"Object is not iterable.":"Symbol.iterator is not defined.")},d=n("./lib/oop"),g=n("./lib/dom"),l=n("./lib/lang"),p=n("./lib/useragent"),o=n("./keyboard/textinput").TextInput,r=n("./mouse/mouse_handler").MouseHandler,c=n("./mouse/fold_handler").FoldHandler,u=n("./keyboard/keybinding").KeyBinding,h=n("./edit_session").EditSession,f=n("./search").Search,m=n("./range").Range,v=n("./lib/event_emitter").EventEmitter,y=n("./commands/command_manager").CommandManager,$=n("./commands/default_commands").commands,_=n("./config"),S=n("./token_iterator").TokenIterator,b=n("./line_widgets").LineWidgets,M=n("./keyboard/gutter_handler").GutterKeyboardHandler,O=n("./config").nls,L=n("./clipboard"),T=n("./lib/keys"),k=function(){function C(w,A,E){this.session,this.$toDestroy=[];var R=w.getContainerElement();this.container=R,this.renderer=w,this.id="editor"+ ++C.$uid,this.commands=new y(p.isMac?"mac":"win",$),typeof document=="object"&&(this.textInput=new o(w.getTextAreaContainer(),this),this.renderer.textarea=this.textInput.getElement(),this.$mouseHandler=new r(this),new c(this)),this.keyBinding=new u(this),this.$search=new f().set({wrap:!0}),this.$historyTracker=this.$historyTracker.bind(this),this.commands.on("exec",this.$historyTracker),this.$initOperationListeners(),this._$emitInputEvent=l.delayedCall((function(){this._signal("input",{}),this.session&&!this.session.destroyed&&this.session.bgTokenizer.scheduleStart()}).bind(this)),this.on("change",function(I,N){N._$emitInputEvent.schedule(31)}),this.setSession(A||E&&E.session||new h("")),_.resetOptions(this),E&&this.setOptions(E),_._signal("editor",this)}return C.prototype.$initOperationListeners=function(){this.commands.on("exec",this.startOperation.bind(this),!0),this.commands.on("afterExec",this.endOperation.bind(this),!0)},C.prototype.startOperation=function(w){this.session.startOperation(w)},C.prototype.endOperation=function(w){this.session.endOperation(w)},C.prototype.onStartOperation=function(w){this.curOp=this.session.curOp,this.curOp.scrollTop=this.renderer.scrollTop,this.prevOp=this.session.prevOp,w||(this.previousCommand=null)},C.prototype.onEndOperation=function(w){if(this.curOp&&this.session){if(w&&w.returnValue===!1){this.curOp=null;return}if(this._signal("beforeEndOperation"),!this.curOp)return;var A=this.curOp.command,E=A&&A.scrollIntoView;if(E){switch(E){case"center-animate":E="animate";case"center":this.renderer.scrollCursorIntoView(null,.5);break;case"animate":case"cursor":this.renderer.scrollCursorIntoView();break;case"selectionPart":var R=this.selection.getRange(),I=this.renderer.layerConfig;(R.start.row>=I.lastRow||R.end.row<=I.firstRow)&&this.renderer.scrollSelectionIntoView(this.selection.anchor,this.selection.lead);break}E=="animate"&&this.renderer.animateScrolling(this.curOp.scrollTop)}this.$lastSel=this.session.selection.toJSON(),this.prevOp=this.curOp,this.curOp=null}},C.prototype.$historyTracker=function(w){if(this.$mergeUndoDeltas){var A=this.prevOp,E=this.$mergeableCommands,R=A.command&&w.command.name==A.command.name;if(w.command.name=="insertstring"){var I=w.args;this.mergeNextCommand===void 0&&(this.mergeNextCommand=!0),R=R&&this.mergeNextCommand&&(!/\s/.test(I)||/\s/.test(A.args)),this.mergeNextCommand=!0}else R=R&&E.indexOf(w.command.name)!==-1;this.$mergeUndoDeltas!="always"&&Date.now()-this.sequenceStartTime>2e3&&(R=!1),R?this.session.mergeUndoDeltas=!0:E.indexOf(w.command.name)!==-1&&(this.sequenceStartTime=Date.now())}},C.prototype.setKeyboardHandler=function(w,A){if(w&&typeof w=="string"&&w!="ace"){this.$keybindingId=w;var E=this;_.loadModule(["keybinding",w],function(R){E.$keybindingId==w&&E.keyBinding.setKeyboardHandler(R&&R.handler),A&&A()})}else this.$keybindingId=null,this.keyBinding.setKeyboardHandler(w),A&&A()},C.prototype.getKeyboardHandler=function(){return this.keyBinding.getKeyboardHandler()},C.prototype.setSession=function(w){if(this.session!=w){this.curOp&&this.endOperation(),this.curOp={};var A=this.session;if(A){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),this.session.off("startOperation",this.$onStartOperation),this.session.off("endOperation",this.$onEndOperation);var E=this.session.getSelection();E.off("changeCursor",this.$onCursorChange),E.off("changeSelection",this.$onSelectionChange)}this.session=w,w?(this.$onDocumentChange=this.onDocumentChange.bind(this),w.on("change",this.$onDocumentChange),this.renderer.setSession(w),this.$onChangeMode=this.onChangeMode.bind(this),w.on("changeMode",this.$onChangeMode),this.$onTokenizerUpdate=this.onTokenizerUpdate.bind(this),w.on("tokenizerUpdate",this.$onTokenizerUpdate),this.$onChangeTabSize=this.renderer.onChangeTabSize.bind(this.renderer),w.on("changeTabSize",this.$onChangeTabSize),this.$onChangeWrapLimit=this.onChangeWrapLimit.bind(this),w.on("changeWrapLimit",this.$onChangeWrapLimit),this.$onChangeWrapMode=this.onChangeWrapMode.bind(this),w.on("changeWrapMode",this.$onChangeWrapMode),this.$onChangeFold=this.onChangeFold.bind(this),w.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=w.getSelection(),this.selection.on("changeCursor",this.$onCursorChange),this.$onSelectionChange=this.onSelectionChange.bind(this),this.selection.on("changeSelection",this.$onSelectionChange),this.$onStartOperation=this.onStartOperation.bind(this),this.session.on("startOperation",this.$onStartOperation),this.$onEndOperation=this.onEndOperation.bind(this),this.session.on("endOperation",this.$onEndOperation),this.onChangeMode(),this.onCursorChange(),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(w)),this._signal("changeSession",{session:w,oldSession:A}),this.curOp=null,A&&A._signal("changeEditor",{oldEditor:this}),w&&w._signal("changeEditor",{editor:this}),w&&!w.destroyed&&w.bgTokenizer.scheduleStart()}},C.prototype.getSession=function(){return this.session},C.prototype.setValue=function(w,A){return this.session.doc.setValue(w),A?A==1?this.navigateFileEnd():A==-1&&this.navigateFileStart():this.selectAll(),w},C.prototype.getValue=function(){return this.session.getValue()},C.prototype.getSelection=function(){return this.selection},C.prototype.resize=function(w){this.renderer.onResize(w)},C.prototype.setTheme=function(w,A){this.renderer.setTheme(w,A)},C.prototype.getTheme=function(){return this.renderer.getTheme()},C.prototype.setStyle=function(w){this.renderer.setStyle(w)},C.prototype.unsetStyle=function(w){this.renderer.unsetStyle(w)},C.prototype.getFontSize=function(){return this.getOption("fontSize")||g.computedStyle(this.container).fontSize},C.prototype.setFontSize=function(w){this.setOption("fontSize",w)},C.prototype.$highlightBrackets=function(){if(!this.$highlightPending){var w=this;this.$highlightPending=!0,setTimeout(function(){w.$highlightPending=!1;var A=w.session;if(!(!A||A.destroyed)){A.$bracketHighlight&&(A.$bracketHighlight.markerIds.forEach(function(B){A.removeMarker(B)}),A.$bracketHighlight=null);var E=w.getCursorPosition(),R=w.getKeyboardHandler(),I=R&&R.$getDirectionForHighlight&&R.$getDirectionForHighlight(w),N=A.getMatchingBracketRanges(E,I);if(!N){var F=new S(A,E.row,E.column),z=F.getCurrentToken();if(z&&/\b(?:tag-open|tag-name)/.test(z.type)){var U=A.getMatchingTags(E);U&&(N=[U.openTagName.isEmpty()?U.openTag:U.openTagName,U.closeTagName.isEmpty()?U.closeTag:U.closeTagName])}}if(!N&&A.$mode.getMatching&&(N=A.$mode.getMatching(w.session)),!N){w.getHighlightIndentGuides()&&w.renderer.$textLayer.$highlightIndentGuide();return}var j="ace_bracket";Array.isArray(N)?N.length==1&&(j="ace_error_bracket"):N=[N],N.length==2&&(m.comparePoints(N[0].end,N[1].start)==0?N=[m.fromPoints(N[0].start,N[1].end)]:m.comparePoints(N[0].start,N[1].end)==0&&(N=[m.fromPoints(N[1].start,N[0].end)])),A.$bracketHighlight={ranges:N,markerIds:N.map(function(B){return A.addMarker(B,j,"text")})},w.getHighlightIndentGuides()&&w.renderer.$textLayer.$highlightIndentGuide()}},50)}},C.prototype.focus=function(){this.textInput.focus()},C.prototype.isFocused=function(){return this.textInput.isFocused()},C.prototype.blur=function(){this.textInput.blur()},C.prototype.onFocus=function(w){this.$isFocused||(this.$isFocused=!0,this.renderer.showCursor(),this.renderer.visualizeFocus(),this._emit("focus",w))},C.prototype.onBlur=function(w){this.$isFocused&&(this.$isFocused=!1,this.renderer.hideCursor(),this.renderer.visualizeBlur(),this._emit("blur",w))},C.prototype.$cursorChange=function(){this.renderer.updateCursor(),this.$highlightBrackets(),this.$updateHighlightActiveLine()},C.prototype.onDocumentChange=function(w){var A=this.session.$useWrapMode,E=w.start.row==w.end.row?w.end.row:1/0;this.renderer.updateLines(w.start.row,E,A),this._signal("change",w),this.$cursorChange()},C.prototype.onTokenizerUpdate=function(w){var A=w.data;this.renderer.updateLines(A.first,A.last)},C.prototype.onScrollTopChange=function(){this.renderer.scrollToY(this.session.getScrollTop())},C.prototype.onScrollLeftChange=function(){this.renderer.scrollToX(this.session.getScrollLeft())},C.prototype.onCursorChange=function(){this.$cursorChange(),this._signal("changeSelection")},C.prototype.$updateHighlightActiveLine=function(){var w=this.getSession(),A;if(this.$highlightActiveLine&&((this.$selectionStyle!="line"||!this.selection.isMultiLine())&&(A=this.getCursorPosition()),this.renderer.theme&&this.renderer.theme.$selectionColorConflict&&!this.selection.isEmpty()&&(A=!1),this.renderer.$maxLines&&this.session.getLength()===1&&!(this.renderer.$minLines>1)&&(A=!1)),w.$highlightLineMarker&&!A)w.removeMarker(w.$highlightLineMarker.id),w.$highlightLineMarker=null;else if(!w.$highlightLineMarker&&A){var E=new m(A.row,A.column,A.row,1/0);E.id=w.addMarker(E,"ace_active-line","screenLine"),w.$highlightLineMarker=E}else A&&(w.$highlightLineMarker.start.row=A.row,w.$highlightLineMarker.end.row=A.row,w.$highlightLineMarker.start.column=A.column,w._signal("changeBackMarker"))},C.prototype.onSelectionChange=function(w){var A=this.session;if(A.$selectionMarker&&A.removeMarker(A.$selectionMarker),A.$selectionMarker=null,this.selection.isEmpty())this.$updateHighlightActiveLine();else{var E=this.selection.getRange(),R=this.getSelectionStyle();A.$selectionMarker=A.addMarker(E,"ace_selection",R)}var I=this.$highlightSelectedWord&&this.$getSelectionHighLightRegexp();this.session.highlight(I),this._signal("changeSelection")},C.prototype.$getSelectionHighLightRegexp=function(){var w=this.session,A=this.getSelectionRange();if(!(A.isEmpty()||A.isMultiLine())){var E=A.start.column,R=A.end.column,I=w.getLine(A.start.row),N=I.substring(E,R);if(!(N.length>5e3||!/[\w\d]/.test(N))){var F=this.$search.$assembleRegExp({wholeWord:!0,caseSensitive:!0,needle:N}),z=I.substring(E-1,R+1);if(F.test(z))return F}}},C.prototype.onChangeFrontMarker=function(){this.renderer.updateFrontMarkers()},C.prototype.onChangeBackMarker=function(){this.renderer.updateBackMarkers()},C.prototype.onChangeBreakpoint=function(){this.renderer.updateBreakpoints()},C.prototype.onChangeAnnotation=function(){this.renderer.setAnnotations(this.session.getAnnotations())},C.prototype.onChangeMode=function(w){this.renderer.updateText(),this._emit("changeMode",w)},C.prototype.onChangeWrapLimit=function(){this.renderer.updateFull()},C.prototype.onChangeWrapMode=function(){this.renderer.onResize(!0)},C.prototype.onChangeFold=function(){this.$updateHighlightActiveLine(),this.renderer.updateFull()},C.prototype.getSelectedText=function(){return this.session.getTextRange(this.getSelectionRange())},C.prototype.getCopyText=function(){var w=this.getSelectedText(),A=this.session.doc.getNewLineCharacter(),E=!1;if(!w&&this.$copyWithEmptySelection){E=!0;for(var R=this.selection.getAllRanges(),I=0;IB.search(/\S|$/)){var z=B.substr(I.column).search(/\S|$/);E.doc.removeInLine(I.row,I.column,I.column+z)}}this.clearSelection();var U=I.column,j=E.getState(I.row),B=E.getLine(I.row),V=R.checkOutdent(j,B,w);if(E.insert(I,w),N&&N.selection&&(N.selection.length==2?this.selection.setSelectionRange(new m(I.row,U+N.selection[0],I.row,U+N.selection[1])):this.selection.setSelectionRange(new m(I.row+N.selection[0],N.selection[1],I.row+N.selection[2],N.selection[3]))),this.$enableAutoIndent){if(E.getDocument().isNewLine(w)){var Q=R.getNextLineIndent(j,B.slice(0,I.column),E.getTabString());E.insert({row:I.row+1,column:0},Q)}V&&R.autoOutdent(j,E,I.row)}},C.prototype.autoIndent=function(){for(var w=this.session,A=w.getMode(),E=this.selection.isEmpty()?[new m(0,0,w.doc.getLength()-1,0)]:this.selection.getAllRanges(),R="",I="",N="",F=w.getTabString(),z=0;z0&&(R=w.getState(B-1),I=w.getLine(B-1),N=A.getNextLineIndent(R,I,F));var V=w.getLine(B),Q=A.$getIndent(V);if(N!==Q){if(Q.length>0){var H=new m(B,0,B,Q.length);w.remove(H)}N.length>0&&w.insert({row:B,column:0},N)}A.autoOutdent(R,w,B)}},C.prototype.onTextInput=function(w,A){if(!A)return this.keyBinding.onTextInput(w);this.startOperation({command:{name:"insertstring"}});var E=this.applyComposition.bind(this,w,A);this.selection.rangeCount?this.forEachSelection(E):E(),this.endOperation()},C.prototype.applyComposition=function(w,A){if(A.extendLeft||A.extendRight){var E=this.selection.getRange();E.start.column-=A.extendLeft,E.end.column+=A.extendRight,E.start.column<0&&(E.start.row--,E.start.column+=this.session.getLine(E.start.row).length+1),this.selection.setRange(E),!w&&!E.isEmpty()&&this.remove()}if((w||!this.selection.isEmpty())&&this.insert(w,!0),A.restoreStart||A.restoreEnd){var E=this.selection.getRange();E.start.column-=A.restoreStart,E.end.column-=A.restoreEnd,this.selection.setRange(E)}},C.prototype.onCommandKey=function(w,A,E){return this.keyBinding.onCommandKey(w,A,E)},C.prototype.setOverwrite=function(w){this.session.setOverwrite(w)},C.prototype.getOverwrite=function(){return this.session.getOverwrite()},C.prototype.toggleOverwrite=function(){this.session.toggleOverwrite()},C.prototype.setScrollSpeed=function(w){this.setOption("scrollSpeed",w)},C.prototype.getScrollSpeed=function(){return this.getOption("scrollSpeed")},C.prototype.setDragDelay=function(w){this.setOption("dragDelay",w)},C.prototype.getDragDelay=function(){return this.getOption("dragDelay")},C.prototype.setSelectionStyle=function(w){this.setOption("selectionStyle",w)},C.prototype.getSelectionStyle=function(){return this.getOption("selectionStyle")},C.prototype.setHighlightActiveLine=function(w){this.setOption("highlightActiveLine",w)},C.prototype.getHighlightActiveLine=function(){return this.getOption("highlightActiveLine")},C.prototype.setHighlightGutterLine=function(w){this.setOption("highlightGutterLine",w)},C.prototype.getHighlightGutterLine=function(){return this.getOption("highlightGutterLine")},C.prototype.setHighlightSelectedWord=function(w){this.setOption("highlightSelectedWord",w)},C.prototype.getHighlightSelectedWord=function(){return this.$highlightSelectedWord},C.prototype.setAnimatedScroll=function(w){this.renderer.setAnimatedScroll(w)},C.prototype.getAnimatedScroll=function(){return this.renderer.getAnimatedScroll()},C.prototype.setShowInvisibles=function(w){this.renderer.setShowInvisibles(w)},C.prototype.getShowInvisibles=function(){return this.renderer.getShowInvisibles()},C.prototype.setDisplayIndentGuides=function(w){this.renderer.setDisplayIndentGuides(w)},C.prototype.getDisplayIndentGuides=function(){return this.renderer.getDisplayIndentGuides()},C.prototype.setHighlightIndentGuides=function(w){this.renderer.setHighlightIndentGuides(w)},C.prototype.getHighlightIndentGuides=function(){return this.renderer.getHighlightIndentGuides()},C.prototype.setShowPrintMargin=function(w){this.renderer.setShowPrintMargin(w)},C.prototype.getShowPrintMargin=function(){return this.renderer.getShowPrintMargin()},C.prototype.setPrintMarginColumn=function(w){this.renderer.setPrintMarginColumn(w)},C.prototype.getPrintMarginColumn=function(){return this.renderer.getPrintMarginColumn()},C.prototype.setReadOnly=function(w){this.setOption("readOnly",w)},C.prototype.getReadOnly=function(){return this.getOption("readOnly")},C.prototype.setBehavioursEnabled=function(w){this.setOption("behavioursEnabled",w)},C.prototype.getBehavioursEnabled=function(){return this.getOption("behavioursEnabled")},C.prototype.setWrapBehavioursEnabled=function(w){this.setOption("wrapBehavioursEnabled",w)},C.prototype.getWrapBehavioursEnabled=function(){return this.getOption("wrapBehavioursEnabled")},C.prototype.setShowFoldWidgets=function(w){this.setOption("showFoldWidgets",w)},C.prototype.getShowFoldWidgets=function(){return this.getOption("showFoldWidgets")},C.prototype.setFadeFoldWidgets=function(w){this.setOption("fadeFoldWidgets",w)},C.prototype.getFadeFoldWidgets=function(){return this.getOption("fadeFoldWidgets")},C.prototype.remove=function(w){this.selection.isEmpty()&&(w=="left"?this.selection.selectLeft():this.selection.selectRight());var A=this.getSelectionRange();if(this.getBehavioursEnabled()){var E=this.session,R=E.getState(A.start.row),I=E.getMode().transformAction(R,"deletion",this,E,A);if(A.end.column===0){var N=E.getTextRange(A);if(N[N.length-1]==` `){var F=E.getLine(A.end.row);/^\s+$/.test(F)&&(A.end.column=F.length)}}I&&(A=I)}this.session.remove(A),this.clearSelection()},C.prototype.removeWordRight=function(){this.selection.isEmpty()&&this.selection.selectWordRight(),this.session.remove(this.getSelectionRange()),this.clearSelection()},C.prototype.removeWordLeft=function(){this.selection.isEmpty()&&this.selection.selectWordLeft(),this.session.remove(this.getSelectionRange()),this.clearSelection()},C.prototype.removeToLineStart=function(){this.selection.isEmpty()&&this.selection.selectLineStart(),this.selection.isEmpty()&&this.selection.selectLeft(),this.session.remove(this.getSelectionRange()),this.clearSelection()},C.prototype.removeToLineEnd=function(){this.selection.isEmpty()&&this.selection.selectLineEnd();var w=this.getSelectionRange();w.start.column==w.end.column&&w.start.row==w.end.row&&(w.end.column=0,w.end.row++),this.session.remove(w),this.clearSelection()},C.prototype.splitLine=function(){this.selection.isEmpty()||(this.session.remove(this.getSelectionRange()),this.clearSelection());var w=this.getCursorPosition();this.insert(` `),this.moveCursorToPosition(w)},C.prototype.setGhostText=function(w,A){this.session.widgetManager||(this.session.widgetManager=new b(this.session),this.session.widgetManager.attach(this)),this.renderer.setGhostText(w,A)},C.prototype.removeGhostText=function(){this.session.widgetManager&&this.renderer.removeGhostText()},C.prototype.transposeLetters=function(){if(this.selection.isEmpty()){var w=this.getCursorPosition(),A=w.column;if(A!==0){var E=this.session.getLine(w.row),R,I;Az.toLowerCase()?1:0});for(var I=new m(0,0,0,0),R=w.first;R<=w.last;R++){var N=A.getLine(R);I.start.row=R,I.end.row=R,I.end.column=N.length,A.replace(I,E[R-w.first])}},C.prototype.toggleCommentLines=function(){var w=this.session.getState(this.getCursorPosition().row),A=this.$getSelectedRows();this.session.getMode().toggleCommentLines(w,this.session,A.first,A.last)},C.prototype.toggleBlockComment=function(){var w=this.getCursorPosition(),A=this.session.getState(w.row),E=this.getSelectionRange();this.session.getMode().toggleBlockComment(A,this.session,E,w)},C.prototype.getNumberAt=function(w,A){var E=/[\-]?[0-9]+(?:\.[0-9]+)?/g;E.lastIndex=0;for(var R=this.session.getLine(w);E.lastIndex=A){var N={value:I[0],start:I.index,end:I.index+I[0].length};return N}}return null},C.prototype.modifyNumber=function(w){var A=this.selection.getCursor().row,E=this.selection.getCursor().column,R=new m(A,E-1,A,E),I=this.session.getTextRange(R);if(!isNaN(parseFloat(I))&&isFinite(I)){var N=this.getNumberAt(A,E);if(N){var F=N.value.indexOf(".")>=0?N.start+N.value.indexOf(".")+1:N.end,z=N.start+N.value.length-F,U=parseFloat(N.value);U*=Math.pow(10,z),F!==N.end&&E=F&&N<=z&&(E=ue,U.selection.clearSelection(),U.moveCursorTo(w,F+R),U.selection.selectTo(w,z+R)),F=z});for(var j=this.$toggleWordPairs,B,V=0;V=z&&F<=U&&Q.match(/((?:https?|ftp):\/\/[\S]+)/)){j=Q.replace(/[\s:.,'";}\]]+$/,"");break}z=U}}catch(H){E={error:H}}finally{try{V&&!V.done&&(R=B.return)&&R.call(B)}finally{if(E)throw E.error}}return j},C.prototype.openLink=function(){var w=this.selection.getCursor(),A=this.findLinkAt(w.row,w.column);return A&&window.open(A,"_blank"),A!=null},C.prototype.removeLines=function(){var w=this.$getSelectedRows();this.session.removeFullLines(w.first,w.last),this.clearSelection()},C.prototype.duplicateSelection=function(){var w=this.selection,A=this.session,E=w.getRange(),R=w.isBackwards();if(E.isEmpty()){var I=E.start.row;A.duplicateLines(I,I)}else{var N=R?E.start:E.end,F=A.insert(N,A.getTextRange(E));E.start=N,E.end=F,w.setSelectionRange(E,R)}},C.prototype.moveLinesDown=function(){this.$moveLines(1,!1)},C.prototype.moveLinesUp=function(){this.$moveLines(-1,!1)},C.prototype.moveText=function(w,A,E){return this.session.moveText(w,A,E)},C.prototype.copyLinesUp=function(){this.$moveLines(-1,!0)},C.prototype.copyLinesDown=function(){this.$moveLines(1,!0)},C.prototype.$moveLines=function(w,A){var E,R,I=this.selection;if(!I.inMultiSelectMode||this.inVirtualSelectionMode){var N=I.toOrientedRange();E=this.$getSelectedRows(N),R=this.session.$moveLines(E.first,E.last,A?0:w),A&&w==-1&&(R=0),N.moveBy(R,0),I.fromOrientedRange(N)}else{var F=I.rangeList.ranges;I.rangeList.detach(this.session),this.inVirtualSelectionMode=!0;for(var z=0,U=0,j=F.length,B=0;BH+1)break;H=Z.last}for(B--,z=this.session.$moveLines(Q,H,A?0:w),A&&w==-1&&(V=B+1);V<=B;)F[V].moveBy(z,0),V++;A||(z=0),U+=z}I.fromOrientedRange(I.ranges[0]),I.rangeList.attach(this.session),this.inVirtualSelectionMode=!1}},C.prototype.$getSelectedRows=function(w){return w=(w||this.getSelectionRange()).collapseRows(),{first:this.session.getRowFoldStart(w.start.row),last:this.session.getRowFoldEnd(w.end.row)}},C.prototype.onCompositionStart=function(w){this.renderer.showComposition(w)},C.prototype.onCompositionUpdate=function(w){this.renderer.setCompositionText(w)},C.prototype.onCompositionEnd=function(){this.renderer.hideComposition()},C.prototype.getFirstVisibleRow=function(){return this.renderer.getFirstVisibleRow()},C.prototype.getLastVisibleRow=function(){return this.renderer.getLastVisibleRow()},C.prototype.isRowVisible=function(w){return w>=this.getFirstVisibleRow()&&w<=this.getLastVisibleRow()},C.prototype.isRowFullyVisible=function(w){return w>=this.renderer.getFirstFullyVisibleRow()&&w<=this.renderer.getLastFullyVisibleRow()},C.prototype.$getVisibleRowCount=function(){return this.renderer.getScrollBottomRow()-this.renderer.getScrollTopRow()+1},C.prototype.$moveByPage=function(w,A){var E=this.renderer,R=this.renderer.layerConfig,I=w*Math.floor(R.height/R.lineHeight);A===!0?this.selection.$moveSelection(function(){this.moveCursorBy(I,0)}):A===!1&&(this.selection.moveCursorBy(I,0),this.selection.clearSelection());var N=E.scrollTop;E.scrollBy(0,I*R.lineHeight),A!=null&&E.scrollCursorIntoView(null,.5),E.animateScrolling(N)},C.prototype.selectPageDown=function(){this.$moveByPage(1,!0)},C.prototype.selectPageUp=function(){this.$moveByPage(-1,!0)},C.prototype.gotoPageDown=function(){this.$moveByPage(1,!1)},C.prototype.gotoPageUp=function(){this.$moveByPage(-1,!1)},C.prototype.scrollPageDown=function(){this.$moveByPage(1)},C.prototype.scrollPageUp=function(){this.$moveByPage(-1)},C.prototype.scrollToRow=function(w){this.renderer.scrollToRow(w)},C.prototype.scrollToLine=function(w,A,E,R){this.renderer.scrollToLine(w,A,E,R)},C.prototype.centerSelection=function(){var w=this.getSelectionRange(),A={row:Math.floor(w.start.row+(w.end.row-w.start.row)/2),column:Math.floor(w.start.column+(w.end.column-w.start.column)/2)};this.renderer.alignCursor(A,.5)},C.prototype.getCursorPosition=function(){return this.selection.getCursor()},C.prototype.getCursorPositionScreen=function(){return this.session.documentToScreenPosition(this.getCursorPosition())},C.prototype.getSelectionRange=function(){return this.selection.getRange()},C.prototype.selectAll=function(){this.selection.selectAll()},C.prototype.clearSelection=function(){this.selection.clearSelection()},C.prototype.moveCursorTo=function(w,A){this.selection.moveCursorTo(w,A)},C.prototype.moveCursorToPosition=function(w){this.selection.moveCursorToPosition(w)},C.prototype.jumpToMatching=function(w,A){var E=this.getCursorPosition(),R=new S(this.session,E.row,E.column),I=R.getCurrentToken(),N=0;I&&I.type.indexOf("tag-name")!==-1&&(I=R.stepBackward());var F=I||R.stepForward();if(F){var z,U=!1,j={},B=E.column-F.start,V,Q={")":"(","(":"(","]":"[","[":"[","{":"{","}":"{"};do{if(F.value.match(/[{}()\[\]]/g)){for(;B1?j[F.value]++:I.value==="=0;--N)this.$tryReplace(E[N],w)&&R++;return this.selection.setSelectionRange(I),R},C.prototype.$tryReplace=function(w,A){var E=this.session.getTextRange(w);return A=this.$search.replace(E,A),A!==null?(w.end=this.session.replace(w,A),w):null},C.prototype.getLastSearchOptions=function(){return this.$search.getOptions()},C.prototype.find=function(w,A,E){A||(A={}),typeof w=="string"||w instanceof RegExp?A.needle=w:typeof w=="object"&&d.mixin(A,w);var R=this.selection.getRange();A.needle==null&&(w=this.session.getTextRange(R)||this.$search.$options.needle,w||(R=this.session.getWordRange(R.start.row,R.start.column),w=this.session.getTextRange(R)),this.$search.set({needle:w})),this.$search.set(A),A.start||this.$search.set({start:R});var I=this.$search.find(this.session);if(A.preventScroll)return I;if(I)return this.revealRange(I,E),I;A.backwards?R.start=R.end:R.end=R.start,this.selection.setRange(R)},C.prototype.findNext=function(w,A){this.find({skipCurrent:!0,backwards:!1},w,A)},C.prototype.findPrevious=function(w,A){this.find(w,{skipCurrent:!0,backwards:!0},A)},C.prototype.revealRange=function(w,A){this.session.unfold(w),this.selection.setSelectionRange(w);var E=this.renderer.scrollTop;this.renderer.scrollSelectionIntoView(w.start,w.end,.5),A!==!1&&this.renderer.animateScrolling(E)},C.prototype.undo=function(){this.session.getUndoManager().undo(this.session),this.renderer.scrollCursorIntoView(null,.5)},C.prototype.redo=function(){this.session.getUndoManager().redo(this.session),this.renderer.scrollCursorIntoView(null,.5)},C.prototype.destroy=function(){this.$toDestroy&&(this.$toDestroy.forEach(function(w){w.destroy()}),this.$toDestroy=null),this.$mouseHandler&&this.$mouseHandler.destroy(),this.renderer.destroy(),this._signal("destroy",this),this.session&&this.session.destroy(),this._$emitInputEvent&&this._$emitInputEvent.cancel(),this.removeAllListeners()},C.prototype.setAutoScrollEditorIntoView=function(w){if(w){var A,E=this,R=!1;this.$scrollAnchor||(this.$scrollAnchor=document.createElement("div"));var I=this.$scrollAnchor;I.style.cssText="position:absolute",this.container.insertBefore(I,this.container.firstChild);var N=this.on("changeSelection",function(){R=!0}),F=this.renderer.on("beforeRender",function(){R&&(A=E.renderer.container.getBoundingClientRect())}),z=this.renderer.on("afterRender",function(){if(R&&A&&(E.isFocused()||E.searchBox&&E.searchBox.isFocused())){var U=E.renderer,j=U.$cursorLayer.$pixelPos,B=U.layerConfig,V=j.top-B.offset;j.top>=0&&V+A.top<0?R=!0:j.topwindow.innerHeight?R=!1:R=null,R!=null&&(I.style.top=V+"px",I.style.left=j.left+"px",I.style.height=B.lineHeight+"px",I.scrollIntoView(R)),R=A=null}});this.setAutoScrollEditorIntoView=function(U){U||(delete this.setAutoScrollEditorIntoView,this.off("changeSelection",N),this.renderer.off("afterRender",z),this.renderer.off("beforeRender",F))}}},C.prototype.$resetCursorStyle=function(){var w=this.$cursorStyle||"ace",A=this.renderer.$cursorLayer;A&&(A.setSmoothBlinking(/smooth/.test(w)),A.isBlinking=!this.$readOnly&&w!="wide",g.setCssClass(A.element,"ace_slim-cursors",/slim/.test(w)))},C.prototype.prompt=function(w,A,E){var R=this;_.loadModule("ace/ext/prompt",function(I){I.prompt(R,w,A,E)})},C}();k.$uid=0,k.prototype.curOp=null,k.prototype.prevOp={},k.prototype.$mergeableCommands=["backspace","del","insertstring"],k.prototype.$toggleWordPairs=[["first","last"],["true","false"],["yes","no"],["width","height"],["top","bottom"],["right","left"],["on","off"],["x","y"],["get","set"],["max","min"],["horizontal","vertical"],["show","hide"],["add","remove"],["up","down"],["before","after"],["even","odd"],["in","out"],["inside","outside"],["next","previous"],["increase","decrease"],["attach","detach"],["&&","||"],["==","!="]],d.implement(k.prototype,v),_.defineOptions(k.prototype,"editor",{selectionStyle:{set:function(C){this.onSelectionChange(),this._signal("changeSelectionStyle",{data:C})},initialValue:"line"},highlightActiveLine:{set:function(){this.$updateHighlightActiveLine()},initialValue:!0},highlightSelectedWord:{set:function(C){this.$onSelectionChange()},initialValue:!0},readOnly:{set:function(C){this.textInput.setReadOnly(C),this.$resetCursorStyle()},initialValue:!1},copyWithEmptySelection:{set:function(C){this.textInput.setCopyWithEmptySelection(C)},initialValue:!1},cursorStyle:{set:function(C){this.$resetCursorStyle()},values:["ace","slim","smooth","wide"],initialValue:"ace"},mergeUndoDeltas:{values:[!1,!0,"always"],initialValue:!0},behavioursEnabled:{initialValue:!0},wrapBehavioursEnabled:{initialValue:!0},enableAutoIndent:{initialValue:!0},autoScrollEditorIntoView:{set:function(C){this.setAutoScrollEditorIntoView(C)}},keyboardHandler:{set:function(C){this.setKeyboardHandler(C)},get:function(){return this.$keybindingId},handlesSet:!0},value:{set:function(C){this.session.setValue(C)},get:function(){return this.getValue()},handlesSet:!0,hidden:!0},session:{set:function(C){this.setSession(C)},get:function(){return this.session},handlesSet:!0,hidden:!0},showLineNumbers:{set:function(C){this.renderer.$gutterLayer.setShowLineNumbers(C),this.renderer.$loop.schedule(this.renderer.CHANGE_GUTTER),C&&this.$relativeLineNumbers?x.attach(this):x.detach(this)},initialValue:!0},relativeLineNumbers:{set:function(C){this.$showLineNumbers&&C?x.attach(this):x.detach(this)}},placeholder:{set:function(C){this.$updatePlaceholder||(this.$updatePlaceholder=(function(){var w=this.session&&(this.renderer.$composition||this.session.getLength()>1||this.session.getLine(0).length>0);if(w&&this.renderer.placeholderNode)this.renderer.off("afterRender",this.$updatePlaceholder),g.removeCssClass(this.container,"ace_hasPlaceholder"),this.renderer.placeholderNode.remove(),this.renderer.placeholderNode=null;else if(!w&&!this.renderer.placeholderNode){this.renderer.on("afterRender",this.$updatePlaceholder),g.addCssClass(this.container,"ace_hasPlaceholder");var A=g.createElement("div");A.className="ace_placeholder",A.textContent=this.$placeholder||"",this.renderer.placeholderNode=A,this.renderer.content.appendChild(this.renderer.placeholderNode)}else!w&&this.renderer.placeholderNode&&(this.renderer.placeholderNode.textContent=this.$placeholder||"")}).bind(this),this.on("input",this.$updatePlaceholder)),this.$updatePlaceholder()}},enableKeyboardAccessibility:{set:function(C){var w={name:"blurTextInput",description:"Set focus to the editor content div to allow tabbing through the page",bindKey:"Esc",exec:function(R){R.blur(),R.renderer.scroller.focus()},readOnly:!0},A=function(R){if(R.target==this.renderer.scroller&&R.keyCode===T.enter){R.preventDefault();var I=this.getCursorPosition().row;this.isRowVisible(I)||this.scrollToLine(I,!0,!0),this.focus()}},E;C?(this.renderer.enableKeyboardAccessibility=!0,this.renderer.keyboardFocusClassName="ace_keyboard-focus",this.textInput.getElement().setAttribute("tabindex",-1),this.textInput.setNumberOfExtraLines(p.isWin?3:0),this.renderer.scroller.setAttribute("tabindex",0),this.renderer.scroller.setAttribute("role","group"),this.renderer.scroller.setAttribute("aria-roledescription",O("editor.scroller.aria-roledescription","editor")),this.renderer.scroller.classList.add(this.renderer.keyboardFocusClassName),this.renderer.scroller.setAttribute("aria-label",O("editor.scroller.aria-label","Editor content, press Enter to start editing, press Escape to exit")),this.renderer.scroller.addEventListener("keyup",A.bind(this)),this.commands.addCommand(w),this.renderer.$gutter.setAttribute("tabindex",0),this.renderer.$gutter.setAttribute("aria-hidden",!1),this.renderer.$gutter.setAttribute("role","group"),this.renderer.$gutter.setAttribute("aria-roledescription",O("editor.gutter.aria-roledescription","editor")),this.renderer.$gutter.setAttribute("aria-label",O("editor.gutter.aria-label","Editor gutter, press Enter to interact with controls using arrow keys, press Escape to exit")),this.renderer.$gutter.classList.add(this.renderer.keyboardFocusClassName),this.renderer.content.setAttribute("aria-hidden",!0),E||(E=new M(this)),E.addListener(),this.textInput.setAriaOptions({setLabel:!0})):(this.renderer.enableKeyboardAccessibility=!1,this.textInput.getElement().setAttribute("tabindex",0),this.textInput.setNumberOfExtraLines(0),this.renderer.scroller.setAttribute("tabindex",-1),this.renderer.scroller.removeAttribute("role"),this.renderer.scroller.removeAttribute("aria-roledescription"),this.renderer.scroller.classList.remove(this.renderer.keyboardFocusClassName),this.renderer.scroller.removeAttribute("aria-label"),this.renderer.scroller.removeEventListener("keyup",A.bind(this)),this.commands.removeCommand(w),this.renderer.content.removeAttribute("aria-hidden"),this.renderer.$gutter.setAttribute("tabindex",-1),this.renderer.$gutter.setAttribute("aria-hidden",!0),this.renderer.$gutter.removeAttribute("role"),this.renderer.$gutter.removeAttribute("aria-roledescription"),this.renderer.$gutter.removeAttribute("aria-label"),this.renderer.$gutter.classList.remove(this.renderer.keyboardFocusClassName),E&&E.removeListener())},initialValue:!1},textInputAriaLabel:{set:function(C){this.$textInputAriaLabel=C},initialValue:""},enableMobileMenu:{set:function(C){this.$enableMobileMenu=C},initialValue:!0},customScrollbar:"renderer",hScrollBarAlwaysVisible:"renderer",vScrollBarAlwaysVisible:"renderer",highlightGutterLine:"renderer",animatedScroll:"renderer",showInvisibles:"renderer",showPrintMargin:"renderer",printMarginColumn:"renderer",printMargin:"renderer",fadeFoldWidgets:"renderer",showFoldWidgets:"renderer",displayIndentGuides:"renderer",highlightIndentGuides:"renderer",showGutter:"renderer",fontSize:"renderer",fontFamily:"renderer",maxLines:"renderer",minLines:"renderer",scrollPastEnd:"renderer",fixedWidthGutter:"renderer",theme:"renderer",hasCssTransforms:"renderer",maxPixelHeight:"renderer",useTextareaForIME:"renderer",useResizeObserver:"renderer",useSvgGutterIcons:"renderer",showFoldedAnnotations:"renderer",scrollSpeed:"$mouseHandler",dragDelay:"$mouseHandler",dragEnabled:"$mouseHandler",focusTimeout:"$mouseHandler",tooltipFollowsMouse:"$mouseHandler",firstLineNumber:"session",overwrite:"session",newLineMode:"session",useWorker:"session",useSoftTabs:"session",navigateWithinSoftTabs:"session",tabSize:"session",wrap:"session",indentedSoftWrap:"session",foldStyle:"session",mode:"session"});var x={getText:function(C,w){return(Math.abs(C.selection.lead.row-w)||w+1+(w<9?"·":""))+""},getWidth:function(C,w,A){return Math.max(w.toString().length,(A.lastRow+1).toString().length,2)*A.characterWidth},update:function(C,w){w.renderer.$loop.schedule(w.renderer.CHANGE_GUTTER)},attach:function(C){C.renderer.$gutterLayer.$renderer=this,C.on("changeSelection",this.update),this.update(null,C)},detach:function(C){C.renderer.$gutterLayer.$renderer==this&&(C.renderer.$gutterLayer.$renderer=null),C.off("changeSelection",this.update),this.update(null,C)}};i.Editor=k}),ace.define("ace/layer/lines",["require","exports","module","ace/lib/dom"],function(n,i,s){var a=n("../lib/dom"),d=function(){function g(l,p){this.element=l,this.canvasHeight=p||5e5,this.element.style.height=this.canvasHeight*2+"px",this.cells=[],this.cellCache=[],this.$offsetCoefficient=0}return g.prototype.moveContainer=function(l){a.translate(this.element,0,-(l.firstRowScreen*l.lineHeight%this.canvasHeight)-l.offset*this.$offsetCoefficient)},g.prototype.pageChanged=function(l,p){return Math.floor(l.firstRowScreen*l.lineHeight/this.canvasHeight)!==Math.floor(p.firstRowScreen*p.lineHeight/this.canvasHeight)},g.prototype.computeLineTop=function(l,p,o){var r=p.firstRowScreen*p.lineHeight,c=Math.floor(r/this.canvasHeight),u=o.documentToScreenRow(l,0)*p.lineHeight;return u-c*this.canvasHeight},g.prototype.computeLineHeight=function(l,p,o){return p.lineHeight*o.getRowLineCount(l)},g.prototype.getLength=function(){return this.cells.length},g.prototype.get=function(l){return this.cells[l]},g.prototype.shift=function(){this.$cacheCell(this.cells.shift())},g.prototype.pop=function(){this.$cacheCell(this.cells.pop())},g.prototype.push=function(l){if(Array.isArray(l)){this.cells.push.apply(this.cells,l);for(var p=a.createFragment(this.element),o=0;o$&&(b=y.end.row+1,y=f.getNextFoldLine(b,y),$=y?y.start.row:1/0),b>v){for(;this.$lines.getLength()>S+1;)this.$lines.pop();break}_=this.$lines.get(++S),_?_.row=b:(_=this.$lines.createCell(b,h,this.session,c),this.$lines.push(_)),this.$renderCell(_,h,y,b),b++}this._signal("afterRender"),this.$updateGutterWidth(h)},u.prototype.$updateGutterWidth=function(h){var f=this.session,m=f.gutterRenderer||this.$renderer,v=f.$firstLineNumber,y=this.$lines.last()?this.$lines.last().text:"";(this.$fixedWidth||f.$useWrapMode)&&(y=f.getLength()+v-1);var $=m?m.getWidth(f,y,h):y.toString().length*h.characterWidth,_=this.$padding||this.$computePadding();$+=_.left+_.right,$!==this.gutterWidth&&!isNaN($)&&(this.gutterWidth=$,this.element.parentNode.style.width=this.element.style.width=Math.ceil(this.gutterWidth)+"px",this._signal("changeGutterWidth",$))},u.prototype.$updateCursorRow=function(){if(this.$highlightGutterLine){var h=this.session.selection.getCursor();this.$cursorRow!==h.row&&(this.$cursorRow=h.row)}},u.prototype.updateLineHighlight=function(){if(this.$highlightGutterLine){var h=this.session.selection.cursor.row;if(this.$cursorRow=h,!(this.$cursorCell&&this.$cursorCell.row==h)){this.$cursorCell&&(this.$cursorCell.element.className=this.$cursorCell.element.className.replace("ace_gutter-active-line ",""));var f=this.$lines.cells;this.$cursorCell=null;for(var m=0;m=this.$cursorRow){if(v.row>this.$cursorRow){var y=this.session.getFoldLine(this.$cursorRow);if(m>0&&y&&y.start.row==f[m-1].row)v=f[m-1];else break}v.element.className="ace_gutter-active-line "+v.element.className,this.$cursorCell=v;break}}}}},u.prototype.scrollLines=function(h){var f=this.config;if(this.config=h,this.$updateCursorRow(),this.$lines.pageChanged(f,h))return this.update(h);this.$lines.moveContainer(h);var m=Math.min(h.lastRow+h.gutterOffset,this.session.getLength()-1),v=this.oldLastRow;if(this.oldLastRow=m,!f||v0;y--)this.$lines.shift();if(v>m)for(var y=this.session.getFoldedRowCount(m+1,v);y>0;y--)this.$lines.pop();h.firstRowv&&this.$lines.push(this.$renderLines(h,v+1,m)),this.updateLineHighlight(),this._signal("afterRender"),this.$updateGutterWidth(h)},u.prototype.$renderLines=function(h,f,m){for(var v=[],y=f,$=this.session.getNextFoldLine(y),_=$?$.start.row:1/0;y>_&&(y=$.end.row+1,$=this.session.getNextFoldLine(y,$),_=$?$.start.row:1/0),!(y>m);){var S=this.$lines.createCell(y,h,this.session,c);this.$renderCell(S,h,$,y),v.push(S),y++}return v},u.prototype.$renderCell=function(h,f,m,v){var y=h.element,$=this.session,_=y.childNodes[0],S=y.childNodes[1],b=y.childNodes[2],M=b.firstChild,O=$.$firstLineNumber,L=$.$breakpoints,T=$.$decorations,k=$.gutterRenderer||this.$renderer,x=this.$showFoldWidgets&&$.foldWidgets,C=m?m.start.row:Number.MAX_VALUE,w=f.lineHeight+"px",A=this.$useSvgGutterIcons?"ace_gutter-cell_svg-icons ":"ace_gutter-cell ",E=this.$useSvgGutterIcons?"ace_icon_svg":"ace_icon",R=(k?k.getText($,v):v+O).toString();if(this.$highlightGutterLine&&(v==this.$cursorRow||m&&v=C&&this.$cursorRow<=m.end.row)&&(A+="ace_gutter-active-line ",this.$cursorCell!=h&&(this.$cursorCell&&(this.$cursorCell.element.className=this.$cursorCell.element.className.replace("ace_gutter-active-line ","")),this.$cursorCell=h)),L[v]&&(A+=L[v]),T[v]&&(A+=T[v]),this.$annotations[v]&&v!==C&&(A+=this.$annotations[v].className),x){var I=x[v];I==null&&(I=x[v]=$.getFoldWidget(v))}if(I){var N="ace_fold-widget ace_"+I,F=I=="start"&&v==C&&vm.right-f.right)return"foldWidgets"},u}();r.prototype.$fixedWidth=!1,r.prototype.$highlightGutterLine=!0,r.prototype.$renderer="",r.prototype.$showLineNumbers=!0,r.prototype.$showFoldWidgets=!0,d.implement(r.prototype,l);function c(u){var h=document.createTextNode("");u.appendChild(h);var f=a.createElement("span");u.appendChild(f);var m=a.createElement("span");u.appendChild(m);var v=a.createElement("span");return m.appendChild(v),u}i.Gutter=r}),ace.define("ace/layer/marker",["require","exports","module","ace/range","ace/lib/dom"],function(n,i,s){var a=n("../range").Range,d=n("../lib/dom"),g=function(){function p(o){this.element=d.createElement("div"),this.element.className="ace_layer ace_marker-layer",o.appendChild(this.element)}return p.prototype.setPadding=function(o){this.$padding=o},p.prototype.setSession=function(o){this.session=o},p.prototype.setMarkers=function(o){this.markers=o},p.prototype.elt=function(o,r){var c=this.i!=-1&&this.element.childNodes[this.i];c?this.i++:(c=document.createElement("div"),this.element.appendChild(c),this.i=-1),c.style.cssText=r,c.className=o},p.prototype.update=function(o){if(o){this.config=o,this.i=0;var r;for(var c in this.markers){var u=this.markers[c];if(!u.range){u.update(r,this,this.session,o);continue}var h=u.range.clipRows(o.firstRow,o.lastRow);if(!h.isEmpty())if(h=h.toScreenRange(this.session),u.renderer){var f=this.$getTop(h.start.row,o),m=this.$padding+h.start.column*o.characterWidth;u.renderer(r,h,m,f,o)}else u.type=="fullLine"?this.drawFullLineMarker(r,h,u.clazz,o):u.type=="screenLine"?this.drawScreenLineMarker(r,h,u.clazz,o):h.isMultiLine()?u.type=="text"?this.drawTextMarker(r,h,u.clazz,o):this.drawMultiLineMarker(r,h,u.clazz,o):this.drawSingleLineMarker(r,h,u.clazz+" ace_start ace_br15",o)}if(this.i!=-1)for(;this.iS,y==v),u,y==v?0:1,h)},p.prototype.drawMultiLineMarker=function(o,r,c,u,h){var f=this.$padding,m=u.lineHeight,v=this.$getTop(r.start.row,u),y=f+r.start.column*u.characterWidth;if(h=h||"",this.session.$bidiHandler.isBidiRow(r.start.row)){var $=r.clone();$.end.row=$.start.row,$.end.column=this.session.getLine($.start.row).length,this.drawBidiSingleLineMarker(o,$,c+" ace_br1 ace_start",u,null,h)}else this.elt(c+" ace_br1 ace_start","height:"+m+"px;right:"+f+"px;top:"+v+"px;left:"+y+"px;"+(h||""));if(this.session.$bidiHandler.isBidiRow(r.end.row)){var $=r.clone();$.start.row=$.end.row,$.start.column=0,this.drawBidiSingleLineMarker(o,$,c+" ace_br12",u,null,h)}else{v=this.$getTop(r.end.row,u);var _=r.end.column*u.characterWidth;this.elt(c+" ace_br12","height:"+m+"px;width:"+_+"px;top:"+v+"px;left:"+f+"px;"+(h||""))}if(m=(r.end.row-r.start.row-1)*u.lineHeight,!(m<=0)){v=this.$getTop(r.start.row+1,u);var S=(r.start.column?1:0)|(r.end.column?0:8);this.elt(c+(S?" ace_br"+S:""),"height:"+m+"px;right:"+f+"px;top:"+v+"px;left:"+f+"px;"+(h||""))}},p.prototype.drawSingleLineMarker=function(o,r,c,u,h,f){if(this.session.$bidiHandler.isBidiRow(r.start.row))return this.drawBidiSingleLineMarker(o,r,c,u,h,f);var m=u.lineHeight,v=(r.end.column+(h||0)-r.start.column)*u.characterWidth,y=this.$getTop(r.start.row,u),$=this.$padding+r.start.column*u.characterWidth;this.elt(c,"height:"+m+"px;width:"+v+"px;top:"+y+"px;left:"+$+"px;"+(f||""))},p.prototype.drawBidiSingleLineMarker=function(o,r,c,u,h,f){var m=u.lineHeight,v=this.$getTop(r.start.row,u),y=this.$padding,$=this.session.$bidiHandler.getSelections(r.start.column,r.end.column);$.forEach(function(_){this.elt(c,"height:"+m+"px;width:"+(_.width+(h||0))+"px;top:"+v+"px;left:"+(y+_.left)+"px;"+(f||""))},this)},p.prototype.drawFullLineMarker=function(o,r,c,u,h){var f=this.$getTop(r.start.row,u),m=u.lineHeight;r.start.row!=r.end.row&&(m+=this.$getTop(r.end.row,u)-f),this.elt(c,"height:"+m+"px;top:"+f+"px;left:0;right:0;"+(h||""))},p.prototype.drawScreenLineMarker=function(o,r,c,u,h){var f=this.$getTop(r.start.row,u),m=u.lineHeight;this.elt(c,"height:"+m+"px;top:"+f+"px;left:0;right:0;"+(h||""))},p}();g.prototype.$padding=0;function l(p,o,r,c){return(p?1:0)|(o?2:0)|(r?4:0)|(c?8:0)}i.Marker=g}),ace.define("ace/layer/text_util",["require","exports","module"],function(n,i,s){var a=new Set(["text","rparen","lparen"]);i.isTextToken=function(d){return a.has(d)}}),ace.define("ace/layer/text",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/lang","ace/layer/lines","ace/lib/event_emitter","ace/config","ace/layer/text_util"],function(n,i,s){var a=n("../lib/oop"),d=n("../lib/dom"),g=n("../lib/lang"),l=n("./lines").Lines,p=n("../lib/event_emitter").EventEmitter,o=n("../config").nls,r=n("./text_util").isTextToken,c=function(){function u(h){this.dom=d,this.element=this.dom.createElement("div"),this.element.className="ace_layer ace_text-layer",h.appendChild(this.element),this.$updateEolChar=this.$updateEolChar.bind(this),this.$lines=new l(this.element)}return u.prototype.$updateEolChar=function(){var h=this.session.doc,f=h.getNewLineCharacter()==` `&&h.getNewLineMode()!="windows",m=f?this.EOL_CHAR_LF:this.EOL_CHAR_CRLF;if(this.EOL_CHAR!=m)return this.EOL_CHAR=m,!0},u.prototype.setPadding=function(h){this.$padding=h,this.element.style.margin="0 "+h+"px"},u.prototype.getLineHeight=function(){return this.$fontMetrics.$characterSize.height||0},u.prototype.getCharacterWidth=function(){return this.$fontMetrics.$characterSize.width||0},u.prototype.$setFontMetrics=function(h){this.$fontMetrics=h,this.$fontMetrics.on("changeCharacterSize",(function(f){this._signal("changeCharacterSize",f)}).bind(this)),this.$pollSizeChanges()},u.prototype.checkForSizeChanges=function(){this.$fontMetrics.checkForSizeChanges()},u.prototype.$pollSizeChanges=function(){return this.$pollSizeChangesTimer=this.$fontMetrics.$pollSizeChanges()},u.prototype.setSession=function(h){this.session=h,h&&this.$computeTabString()},u.prototype.setShowInvisibles=function(h){return this.showInvisibles==h?!1:(this.showInvisibles=h,typeof h=="string"?(this.showSpaces=/tab/i.test(h),this.showTabs=/space/i.test(h),this.showEOL=/eol/i.test(h)):this.showSpaces=this.showTabs=this.showEOL=h,this.$computeTabString(),!0)},u.prototype.setDisplayIndentGuides=function(h){return this.displayIndentGuides==h?!1:(this.displayIndentGuides=h,this.$computeTabString(),!0)},u.prototype.setHighlightIndentGuides=function(h){return this.$highlightIndentGuides===h?!1:(this.$highlightIndentGuides=h,h)},u.prototype.$computeTabString=function(){var h=this.session.getTabSize();this.tabSize=h;for(var f=this.$tabStrings=[0],m=1;mO&&(b=M.end.row+1,M=this.session.getNextFoldLine(b,M),O=M?M.start.row:1/0),!(b>y);){var L=$[_++];if(L){this.dom.removeChildren(L),this.$renderLine(L,b,b==O?M:!1),S&&(L.style.top=this.$lines.computeLineTop(b,h,this.session)+"px");var T=h.lineHeight*this.session.getRowLength(b)+"px";L.style.height!=T&&(S=!0,L.style.height=T)}b++}if(S)for(;_0;y--)this.$lines.shift();if(f.lastRow>h.lastRow)for(var y=this.session.getFoldedRowCount(h.lastRow+1,f.lastRow);y>0;y--)this.$lines.pop();h.firstRowf.lastRow&&this.$lines.push(this.$renderLinesFragment(h,f.lastRow+1,h.lastRow)),this.$highlightIndentGuide()},u.prototype.$renderLinesFragment=function(h,f,m){for(var v=[],y=f,$=this.session.getNextFoldLine(y),_=$?$.start.row:1/0;y>_&&(y=$.end.row+1,$=this.session.getNextFoldLine(y,$),_=$?$.start.row:1/0),!(y>m);){var S=this.$lines.createCell(y,h,this.session),b=S.element;this.dom.removeChildren(b),d.setStyle(b.style,"height",this.$lines.computeLineHeight(y,h,this.session)+"px"),d.setStyle(b.style,"top",this.$lines.computeLineTop(y,h,this.session)+"px"),this.$renderLine(b,y,y==_?$:!1),this.$useLineGroups()?b.className="ace_line_group":b.className="ace_line",v.push(S),y++}return v},u.prototype.update=function(h){this.$lines.moveContainer(h),this.config=h;for(var f=h.firstRow,m=h.lastRow,v=this.$lines;v.getLength();)v.pop();v.push(this.$renderLinesFragment(h,f,m))},u.prototype.$renderToken=function(h,f,m,v){for(var y=this,$=/(\t)|( +)|([\x00-\x1f\x80-\xa0\xad\u1680\u180E\u2000-\u200f\u2028\u2029\u202F\u205F\uFEFF\uFFF9-\uFFFC\u2066\u2067\u2068\u202A\u202B\u202D\u202E\u202C\u2069\u2060\u2061\u2062\u2063\u2064\u206A\u206B\u206B\u206C\u206D\u206E\u206F]+)|(\u3000)|([\u1100-\u115F\u11A3-\u11A7\u11FA-\u11FF\u2329-\u232A\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFB\u3001-\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,_=this.dom.createFragment(this.element),S,b=0;S=$.exec(v);){var M=S[1],O=S[2],L=S[3],T=S[4],k=S[5];if(!(!y.showSpaces&&O)){var x=b!=S.index?v.slice(b,S.index):"";if(b=S.index+S[0].length,x&&_.appendChild(this.dom.createTextNode(x,this.element)),M){var C=y.session.getScreenTabSize(f+S.index);_.appendChild(y.$tabStrings[C].cloneNode(!0)),f+=C-1}else if(O)if(y.showSpaces){var w=this.dom.createElement("span");w.className="ace_invisible ace_invisible_space",w.textContent=g.stringRepeat(y.SPACE_CHAR,O.length),_.appendChild(w)}else _.appendChild(this.dom.createTextNode(O,this.element));else if(L){var w=this.dom.createElement("span");w.className="ace_invisible ace_invisible_space ace_invalid",w.textContent=g.stringRepeat(y.SPACE_CHAR,L.length),_.appendChild(w)}else if(T){f+=1;var w=this.dom.createElement("span");w.style.width=y.config.characterWidth*2+"px",w.className=y.showSpaces?"ace_cjk ace_invisible ace_invisible_space":"ace_cjk",w.textContent=y.showSpaces?y.SPACE_CHAR:T,_.appendChild(w)}else if(k){f+=1;var w=this.dom.createElement("span");w.style.width=y.config.characterWidth*2+"px",w.className="ace_cjk",w.textContent=k,_.appendChild(w)}}}if(_.appendChild(this.dom.createTextNode(b?v.slice(b):v,this.element)),r(m.type))h.appendChild(_);else{var A="ace_"+m.type.replace(/\./g," ace_"),w=this.dom.createElement("span");m.type=="fold"&&(w.style.width=m.value.length*this.config.characterWidth+"px",w.setAttribute("title",o("inline-fold.closed.title","Unfold code"))),w.className=A,w.appendChild(_),h.appendChild(w)}return f+v.length},u.prototype.renderIndentGuide=function(h,f,m){var v=f.search(this.$indentGuideRe);if(v<=0||v>=m)return f;if(f[0]==" "){v-=v%this.tabSize;for(var y=v/this.tabSize,$=0;$$[_].start.row?this.$highlightIndentGuideMarker.dir=-1:this.$highlightIndentGuideMarker.dir=1;break}}if(!this.$highlightIndentGuideMarker.end&&h[f.row]!==""&&f.column===h[f.row].length){this.$highlightIndentGuideMarker.dir=1;for(var _=f.row+1;_0){for(var y=0;y=this.$highlightIndentGuideMarker.start+1){if(v.row>=this.$highlightIndentGuideMarker.end)break;this.$setIndentGuideActive(v,f)}}else for(var m=h.length-1;m>=0;m--){var v=h[m];if(this.$highlightIndentGuideMarker.end&&v.row=$;)_=this.$renderToken(S,_,M,O.substring(0,$-v)),O=O.substring($-v),v=$,S=this.$createLineElement(),h.appendChild(S),S.appendChild(this.dom.createTextNode(g.stringRepeat(" ",m.indent),this.element)),y++,_=0,$=m[y]||Number.MAX_VALUE;O.length!=0&&(v+=O.length,_=this.$renderToken(S,_,M,O))}}m[m.length-1]>this.MAX_LINE_LENGTH&&this.$renderOverflowMessage(S,_,null,"",!0)},u.prototype.$renderSimpleLine=function(h,f){for(var m=0,v=0;vthis.MAX_LINE_LENGTH)return this.$renderOverflowMessage(h,m,y,$);m=this.$renderToken(h,m,y,$)}}},u.prototype.$renderOverflowMessage=function(h,f,m,v,y){m&&this.$renderToken(h,f,m,v.slice(0,this.MAX_LINE_LENGTH-f));var $=this.dom.createElement("span");$.className="ace_inline_button ace_keyword ace_toggle_wrap",$.textContent=y?"":"",h.appendChild($)},u.prototype.$renderLine=function(h,f,m){if(!m&&m!=!1&&(m=this.session.getFoldLine(f)),m)var v=this.$getFoldLineTokens(f,m);else var v=this.session.getTokens(f);var y=h;if(v.length){var $=this.session.getRowSplitData(f);if($&&$.length){this.$renderWrappedLine(h,v,$);var y=h.lastChild}else{var y=h;this.$useLineGroups()&&(y=this.$createLineElement(),h.appendChild(y)),this.$renderSimpleLine(y,v)}}else this.$useLineGroups()&&(y=this.$createLineElement(),h.appendChild(y));if(this.showEOL&&y){m&&(f=m.end.row);var _=this.dom.createElement("span");_.className="ace_invisible ace_invisible_eol",_.textContent=f==this.session.getLength()-1?this.EOF_CHAR:this.EOL_CHAR,y.appendChild(_)}},u.prototype.$getFoldLineTokens=function(h,f){var m=this.session,v=[];function y(_,S,b){for(var M=0,O=0;O+_[M].value.lengthb-S&&(L=L.substring(0,b-S)),v.push({type:_[M].type,value:L}),O=S+L.length,M+=1}for(;Ob?v.push({type:_[M].type,value:L.substring(0,b-O)}):v.push(_[M]),O+=L.length,M+=1}}var $=m.getTokens(h);return f.walk(function(_,S,b,M,O){_!=null?v.push({type:"fold",value:_}):(O&&($=m.getTokens(S)),$.length&&y($,M,b))},f.end.row,this.session.getLine(f.end.row).length),v},u.prototype.$useLineGroups=function(){return this.session.getUseWrapMode()},u}();c.prototype.EOF_CHAR="¶",c.prototype.EOL_CHAR_LF="¬",c.prototype.EOL_CHAR_CRLF="¤",c.prototype.EOL_CHAR=c.prototype.EOL_CHAR_LF,c.prototype.TAB_CHAR="—",c.prototype.SPACE_CHAR="·",c.prototype.$padding=0,c.prototype.MAX_LINE_LENGTH=1e4,c.prototype.showInvisibles=!1,c.prototype.showSpaces=!1,c.prototype.showTabs=!1,c.prototype.showEOL=!1,c.prototype.displayIndentGuides=!0,c.prototype.$highlightIndentGuides=!0,c.prototype.$tabStrings=[],c.prototype.destroy={},c.prototype.onChangeTabSize=c.prototype.$computeTabString,a.implement(c.prototype,p),i.Text=c}),ace.define("ace/layer/cursor",["require","exports","module","ace/lib/dom"],function(n,i,s){var a=n("../lib/dom"),d=function(){function g(l){this.element=a.createElement("div"),this.element.className="ace_layer ace_cursor-layer",l.appendChild(this.element),this.isVisible=!1,this.isBlinking=!0,this.blinkInterval=1e3,this.smoothBlinking=!1,this.cursors=[],this.cursor=this.addCursor(),a.addCssClass(this.element,"ace_hidden-cursors"),this.$updateCursors=this.$updateOpacity.bind(this)}return g.prototype.$updateOpacity=function(l){for(var p=this.cursors,o=p.length;o--;)a.setStyle(p[o].style,"opacity",l?"":"0")},g.prototype.$startCssAnimation=function(){for(var l=this.cursors,p=l.length;p--;)l[p].style.animationDuration=this.blinkInterval+"ms";this.$isAnimating=!0,setTimeout((function(){this.$isAnimating&&a.addCssClass(this.element,"ace_animate-blinking")}).bind(this))},g.prototype.$stopCssAnimation=function(){this.$isAnimating=!1,a.removeCssClass(this.element,"ace_animate-blinking")},g.prototype.setPadding=function(l){this.$padding=l},g.prototype.setSession=function(l){this.session=l},g.prototype.setBlinking=function(l){l!=this.isBlinking&&(this.isBlinking=l,this.restartTimer())},g.prototype.setBlinkInterval=function(l){l!=this.blinkInterval&&(this.blinkInterval=l,this.restartTimer())},g.prototype.setSmoothBlinking=function(l){l!=this.smoothBlinking&&(this.smoothBlinking=l,a.setCssClass(this.element,"ace_smooth-blinking",l),this.$updateCursors(!0),this.restartTimer())},g.prototype.addCursor=function(){var l=a.createElement("div");return l.className="ace_cursor",this.element.appendChild(l),this.cursors.push(l),l},g.prototype.removeCursor=function(){if(this.cursors.length>1){var l=this.cursors.pop();return l.parentNode.removeChild(l),l}},g.prototype.hideCursor=function(){this.isVisible=!1,a.addCssClass(this.element,"ace_hidden-cursors"),this.restartTimer()},g.prototype.showCursor=function(){this.isVisible=!0,a.removeCssClass(this.element,"ace_hidden-cursors"),this.restartTimer()},g.prototype.restartTimer=function(){var l=this.$updateCursors;if(clearInterval(this.intervalId),clearTimeout(this.timeoutId),this.$stopCssAnimation(),this.smoothBlinking&&(this.$isSmoothBlinking=!1,a.removeCssClass(this.element,"ace_smooth-blinking")),l(!0),!this.isBlinking||!this.blinkInterval||!this.isVisible){this.$stopCssAnimation();return}if(this.smoothBlinking&&(this.$isSmoothBlinking=!0,setTimeout((function(){this.$isSmoothBlinking&&a.addCssClass(this.element,"ace_smooth-blinking")}).bind(this))),a.HAS_CSS_ANIMATION)this.$startCssAnimation();else{var p=(function(){this.timeoutId=setTimeout(function(){l(!1)},.6*this.blinkInterval)}).bind(this);this.intervalId=setInterval(function(){l(!0),p()},this.blinkInterval),p()}},g.prototype.getPixelPosition=function(l,p){if(!this.config||!this.session)return{left:0,top:0};l||(l=this.session.selection.getCursor());var o=this.session.documentToScreenPosition(l),r=this.$padding+(this.session.$bidiHandler.isBidiRow(o.row,l.row)?this.session.$bidiHandler.getPosLeft(o.column):o.column*this.config.characterWidth),c=(o.row-(p?this.config.firstRowScreen:0))*this.config.lineHeight;return{left:r,top:c}},g.prototype.isCursorInView=function(l,p){return l.top>=0&&l.topl.height+l.offset||u.top<0)&&o>1)){var h=this.cursors[r++]||this.addCursor(),f=h.style;this.drawCursor?this.drawCursor(h,u,l,p[o],this.session):this.isCursorInView(u,l)?(a.setStyle(f,"display","block"),a.translate(h,u.left,u.top),a.setStyle(f,"width",Math.round(l.characterWidth)+"px"),a.setStyle(f,"height",l.lineHeight+"px")):a.setStyle(f,"display","none")}}for(;this.cursors.length>r;)this.removeCursor();var m=this.session.getOverwrite();this.$setOverwrite(m),this.$pixelPos=u,this.restartTimer()},g.prototype.$setOverwrite=function(l){l!=this.overwrite&&(this.overwrite=l,l?a.addCssClass(this.element,"ace_overwrite-cursors"):a.removeCssClass(this.element,"ace_overwrite-cursors"))},g.prototype.destroy=function(){clearInterval(this.intervalId),clearTimeout(this.timeoutId)},g}();d.prototype.$padding=0,d.prototype.drawCursor=null,i.Cursor=d}),ace.define("ace/scrollbar",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/event","ace/lib/event_emitter"],function(n,i,s){var a=this&&this.__extends||function(){var h=function(f,m){return h=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(v,y){v.__proto__=y}||function(v,y){for(var $ in y)Object.prototype.hasOwnProperty.call(y,$)&&(v[$]=y[$])},h(f,m)};return function(f,m){if(typeof m!="function"&&m!==null)throw new TypeError("Class extends value "+String(m)+" is not a constructor or null");h(f,m);function v(){this.constructor=f}f.prototype=m===null?Object.create(m):(v.prototype=m.prototype,new v)}}(),d=n("./lib/oop"),g=n("./lib/dom"),l=n("./lib/event"),p=n("./lib/event_emitter").EventEmitter,o=32768,r=function(){function h(f,m){this.element=g.createElement("div"),this.element.className="ace_scrollbar ace_scrollbar"+m,this.inner=g.createElement("div"),this.inner.className="ace_scrollbar-inner",this.inner.textContent=" ",this.element.appendChild(this.inner),f.appendChild(this.element),this.setVisible(!1),this.skipEvent=!1,l.addListener(this.element,"scroll",this.onScroll.bind(this)),l.addListener(this.element,"mousedown",l.preventDefault)}return h.prototype.setVisible=function(f){this.element.style.display=f?"":"none",this.isVisible=f,this.coeff=1},h}();d.implement(r.prototype,p);var c=function(h){a(f,h);function f(m,v){var y=h.call(this,m,"-v")||this;return y.scrollTop=0,y.scrollHeight=0,v.$scrollbarWidth=y.width=g.scrollbarWidth(m.ownerDocument),y.inner.style.width=y.element.style.width=(y.width||15)+5+"px",y.$minWidth=0,y}return f.prototype.onScroll=function(){if(!this.skipEvent){if(this.scrollTop=this.element.scrollTop,this.coeff!=1){var m=this.element.clientHeight/this.scrollHeight;this.scrollTop=this.scrollTop*(1-m)/(this.coeff-m)}this._emit("scroll",{data:this.scrollTop})}this.skipEvent=!1},f.prototype.getWidth=function(){return Math.max(this.isVisible?this.width:0,this.$minWidth||0)},f.prototype.setHeight=function(m){this.element.style.height=m+"px"},f.prototype.setScrollHeight=function(m){this.scrollHeight=m,m>o?(this.coeff=o/m,m=o):this.coeff!=1&&(this.coeff=1),this.inner.style.height=m+"px"},f.prototype.setScrollTop=function(m){this.scrollTop!=m&&(this.skipEvent=!0,this.scrollTop=m,this.element.scrollTop=m*this.coeff)},f}(r);c.prototype.setInnerHeight=c.prototype.setScrollHeight;var u=function(h){a(f,h);function f(m,v){var y=h.call(this,m,"-h")||this;return y.scrollLeft=0,y.height=v.$scrollbarWidth,y.inner.style.height=y.element.style.height=(y.height||15)+5+"px",y}return f.prototype.onScroll=function(){this.skipEvent||(this.scrollLeft=this.element.scrollLeft,this._emit("scroll",{data:this.scrollLeft})),this.skipEvent=!1},f.prototype.getHeight=function(){return this.isVisible?this.height:0},f.prototype.setWidth=function(m){this.element.style.width=m+"px"},f.prototype.setInnerWidth=function(m){this.inner.style.width=m+"px"},f.prototype.setScrollWidth=function(m){this.inner.style.width=m+"px"},f.prototype.setScrollLeft=function(m){this.scrollLeft!=m&&(this.skipEvent=!0,this.scrollLeft=this.element.scrollLeft=m)},f}(r);i.ScrollBar=c,i.ScrollBarV=c,i.ScrollBarH=u,i.VScrollBar=c,i.HScrollBar=u}),ace.define("ace/scrollbar_custom",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/event","ace/lib/event_emitter"],function(n,i,s){var a=this&&this.__extends||function(){var u=function(h,f){return u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(m,v){m.__proto__=v}||function(m,v){for(var y in v)Object.prototype.hasOwnProperty.call(v,y)&&(m[y]=v[y])},u(h,f)};return function(h,f){if(typeof f!="function"&&f!==null)throw new TypeError("Class extends value "+String(f)+" is not a constructor or null");u(h,f);function m(){this.constructor=h}h.prototype=f===null?Object.create(f):(m.prototype=f.prototype,new m)}}(),d=n("./lib/oop"),g=n("./lib/dom"),l=n("./lib/event"),p=n("./lib/event_emitter").EventEmitter;g.importCssString(`.ace_editor>.ace_sb-v div, .ace_editor>.ace_sb-h div{ position: absolute; background: rgba(128, 128, 128, 0.6); -moz-box-sizing: border-box; box-sizing: border-box; border: 1px solid #bbb; border-radius: 2px; z-index: 8; } .ace_editor>.ace_sb-v, .ace_editor>.ace_sb-h { position: absolute; z-index: 6; background: none; overflow: hidden!important; } .ace_editor>.ace_sb-v { z-index: 6; right: 0; top: 0; width: 12px; } .ace_editor>.ace_sb-v div { z-index: 8; right: 0; width: 100%; } .ace_editor>.ace_sb-h { bottom: 0; left: 0; height: 12px; } .ace_editor>.ace_sb-h div { bottom: 0; height: 100%; } .ace_editor>.ace_sb_grabbed { z-index: 8; background: #000; }`,"ace_scrollbar.css",!1);var o=function(){function u(h,f){this.element=g.createElement("div"),this.element.className="ace_sb"+f,this.inner=g.createElement("div"),this.inner.className="",this.element.appendChild(this.inner),this.VScrollWidth=12,this.HScrollHeight=12,h.appendChild(this.element),this.setVisible(!1),this.skipEvent=!1,l.addMultiMouseDownListener(this.element,[500,300,300],this,"onMouseDown")}return u.prototype.setVisible=function(h){this.element.style.display=h?"":"none",this.isVisible=h,this.coeff=1},u}();d.implement(o.prototype,p);var r=function(u){a(h,u);function h(f,m){var v=u.call(this,f,"-v")||this;return v.scrollTop=0,v.scrollHeight=0,v.parent=f,v.width=v.VScrollWidth,v.renderer=m,v.inner.style.width=v.element.style.width=(v.width||15)+"px",v.$minWidth=0,v}return h.prototype.onMouseDown=function(f,m){if(f==="mousedown"&&!(l.getButton(m)!==0||m.detail===2)){if(m.target===this.inner){var v=this,y=m.clientY,$=function(T){y=T.clientY},_=function(){clearInterval(O)},S=m.clientY,b=this.thumbTop,M=function(){if(y!==void 0){var T=v.scrollTopFromThumbTop(b+y-S);T!==v.scrollTop&&v._emit("scroll",{data:T})}};l.capture(this.inner,$,_);var O=setInterval(M,20);return l.preventDefault(m)}var L=m.clientY-this.element.getBoundingClientRect().top-this.thumbHeight/2;return this._emit("scroll",{data:this.scrollTopFromThumbTop(L)}),l.preventDefault(m)}},h.prototype.getHeight=function(){return this.height},h.prototype.scrollTopFromThumbTop=function(f){var m=f*(this.pageHeight-this.viewHeight)/(this.slideHeight-this.thumbHeight);return m=m>>0,m<0?m=0:m>this.pageHeight-this.viewHeight&&(m=this.pageHeight-this.viewHeight),m},h.prototype.getWidth=function(){return Math.max(this.isVisible?this.width:0,this.$minWidth||0)},h.prototype.setHeight=function(f){this.height=Math.max(0,f),this.slideHeight=this.height,this.viewHeight=this.height,this.setScrollHeight(this.pageHeight,!0)},h.prototype.setScrollHeight=function(f,m){this.pageHeight===f&&!m||(this.pageHeight=f,this.thumbHeight=this.slideHeight*this.viewHeight/this.pageHeight,this.thumbHeight>this.slideHeight&&(this.thumbHeight=this.slideHeight),this.thumbHeight<15&&(this.thumbHeight=15),this.inner.style.height=this.thumbHeight+"px",this.scrollTop>this.pageHeight-this.viewHeight&&(this.scrollTop=this.pageHeight-this.viewHeight,this.scrollTop<0&&(this.scrollTop=0),this._emit("scroll",{data:this.scrollTop})))},h.prototype.setScrollTop=function(f){this.scrollTop=f,f<0&&(f=0),this.thumbTop=f*(this.slideHeight-this.thumbHeight)/(this.pageHeight-this.viewHeight),this.inner.style.top=this.thumbTop+"px"},h}(o);r.prototype.setInnerHeight=r.prototype.setScrollHeight;var c=function(u){a(h,u);function h(f,m){var v=u.call(this,f,"-h")||this;return v.scrollLeft=0,v.scrollWidth=0,v.height=v.HScrollHeight,v.inner.style.height=v.element.style.height=(v.height||12)+"px",v.renderer=m,v}return h.prototype.onMouseDown=function(f,m){if(f==="mousedown"&&!(l.getButton(m)!==0||m.detail===2)){if(m.target===this.inner){var v=this,y=m.clientX,$=function(T){y=T.clientX},_=function(){clearInterval(O)},S=m.clientX,b=this.thumbLeft,M=function(){if(y!==void 0){var T=v.scrollLeftFromThumbLeft(b+y-S);T!==v.scrollLeft&&v._emit("scroll",{data:T})}};l.capture(this.inner,$,_);var O=setInterval(M,20);return l.preventDefault(m)}var L=m.clientX-this.element.getBoundingClientRect().left-this.thumbWidth/2;return this._emit("scroll",{data:this.scrollLeftFromThumbLeft(L)}),l.preventDefault(m)}},h.prototype.getHeight=function(){return this.isVisible?this.height:0},h.prototype.scrollLeftFromThumbLeft=function(f){var m=f*(this.pageWidth-this.viewWidth)/(this.slideWidth-this.thumbWidth);return m=m>>0,m<0?m=0:m>this.pageWidth-this.viewWidth&&(m=this.pageWidth-this.viewWidth),m},h.prototype.setWidth=function(f){this.width=Math.max(0,f),this.element.style.width=this.width+"px",this.slideWidth=this.width,this.viewWidth=this.width,this.setScrollWidth(this.pageWidth,!0)},h.prototype.setScrollWidth=function(f,m){this.pageWidth===f&&!m||(this.pageWidth=f,this.thumbWidth=this.slideWidth*this.viewWidth/this.pageWidth,this.thumbWidth>this.slideWidth&&(this.thumbWidth=this.slideWidth),this.thumbWidth<15&&(this.thumbWidth=15),this.inner.style.width=this.thumbWidth+"px",this.scrollLeft>this.pageWidth-this.viewWidth&&(this.scrollLeft=this.pageWidth-this.viewWidth,this.scrollLeft<0&&(this.scrollLeft=0),this._emit("scroll",{data:this.scrollLeft})))},h.prototype.setScrollLeft=function(f){this.scrollLeft=f,f<0&&(f=0),this.thumbLeft=f*(this.slideWidth-this.thumbWidth)/(this.pageWidth-this.viewWidth),this.inner.style.left=this.thumbLeft+"px"},h}(o);c.prototype.setInnerWidth=c.prototype.setScrollWidth,i.ScrollBar=r,i.ScrollBarV=r,i.ScrollBarH=c,i.VScrollBar=r,i.HScrollBar=c}),ace.define("ace/renderloop",["require","exports","module","ace/lib/event"],function(n,i,s){var a=n("./lib/event"),d=function(){function g(l,p){this.onRender=l,this.pending=!1,this.changes=0,this.$recursionLimit=2,this.window=p||window;var o=this;this._flush=function(r){o.pending=!1;var c=o.changes;if(c&&(a.blockIdle(100),o.changes=0,o.onRender(c)),o.changes){if(o.$recursionLimit--<0)return;o.schedule()}else o.$recursionLimit=2}}return g.prototype.schedule=function(l){this.changes=this.changes|l,this.changes&&!this.pending&&(a.nextFrame(this._flush),this.pending=!0)},g.prototype.clear=function(l){var p=this.changes;return this.changes=0,p},g}();i.RenderLoop=d}),ace.define("ace/layer/font_metrics",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/lang","ace/lib/event","ace/lib/useragent","ace/lib/event_emitter"],function(n,i,s){var a=n("../lib/oop"),d=n("../lib/dom"),g=n("../lib/lang"),l=n("../lib/event"),p=n("../lib/useragent"),o=n("../lib/event_emitter").EventEmitter,r=512,c=typeof ResizeObserver=="function",u=200,h=function(){function f(m){this.el=d.createElement("div"),this.$setMeasureNodeStyles(this.el.style,!0),this.$main=d.createElement("div"),this.$setMeasureNodeStyles(this.$main.style),this.$measureNode=d.createElement("div"),this.$setMeasureNodeStyles(this.$measureNode.style),this.el.appendChild(this.$main),this.el.appendChild(this.$measureNode),m.appendChild(this.el),this.$measureNode.textContent=g.stringRepeat("X",r),this.$characterSize={width:0,height:0},c?this.$addObserver():this.checkForSizeChanges()}return f.prototype.$setMeasureNodeStyles=function(m,v){m.width=m.height="auto",m.left=m.top="0px",m.visibility="hidden",m.position="absolute",m.whiteSpace="pre",p.isIE<8?m["font-family"]="inherit":m.font="inherit",m.overflow=v?"hidden":"visible"},f.prototype.checkForSizeChanges=function(m){if(m===void 0&&(m=this.$measureSizes()),m&&(this.$characterSize.width!==m.width||this.$characterSize.height!==m.height)){this.$measureNode.style.fontWeight="bold";var v=this.$measureSizes();this.$measureNode.style.fontWeight="",this.$characterSize=m,this.charSizes=Object.create(null),this.allowBoldFonts=v&&v.width===m.width&&v.height===m.height,this._emit("changeCharacterSize",{data:m})}},f.prototype.$addObserver=function(){var m=this;this.$observer=new window.ResizeObserver(function(v){m.checkForSizeChanges()}),this.$observer.observe(this.$measureNode)},f.prototype.$pollSizeChanges=function(){if(this.$pollSizeChangesTimer||this.$observer)return this.$pollSizeChangesTimer;var m=this;return this.$pollSizeChangesTimer=l.onIdle(function v(){m.checkForSizeChanges(),l.onIdle(v,500)},500)},f.prototype.setPolling=function(m){m?this.$pollSizeChanges():this.$pollSizeChangesTimer&&(clearInterval(this.$pollSizeChangesTimer),this.$pollSizeChangesTimer=0)},f.prototype.$measureSizes=function(m){var v={height:(m||this.$measureNode).clientHeight,width:(m||this.$measureNode).clientWidth/r};return v.width===0||v.height===0?null:v},f.prototype.$measureCharWidth=function(m){this.$main.textContent=g.stringRepeat(m,r);var v=this.$main.getBoundingClientRect();return v.width/r},f.prototype.getCharacterWidth=function(m){var v=this.charSizes[m];return v===void 0&&(v=this.charSizes[m]=this.$measureCharWidth(m)/this.$characterSize.width),v},f.prototype.destroy=function(){clearInterval(this.$pollSizeChangesTimer),this.$observer&&this.$observer.disconnect(),this.el&&this.el.parentNode&&this.el.parentNode.removeChild(this.el)},f.prototype.$getZoom=function(m){return!m||!m.parentElement?1:(Number(window.getComputedStyle(m).zoom)||1)*this.$getZoom(m.parentElement)},f.prototype.$initTransformMeasureNodes=function(){var m=function(v,y){return["div",{style:"position: absolute;top:"+v+"px;left:"+y+"px;"}]};this.els=d.buildDom([m(0,0),m(u,0),m(0,u),m(u,u)],this.el)},f.prototype.transformCoordinates=function(m,v){if(m){var y=this.$getZoom(this.el);m=b(1/y,m)}function $(F,z,U){var j=F[1]*z[0]-F[0]*z[1];return[(-z[1]*U[0]+z[0]*U[1])/j,(+F[1]*U[0]-F[0]*U[1])/j]}function _(F,z){return[F[0]-z[0],F[1]-z[1]]}function S(F,z){return[F[0]+z[0],F[1]+z[1]]}function b(F,z){return[F*z[0],F*z[1]]}this.els||this.$initTransformMeasureNodes();function M(F){var z=F.getBoundingClientRect();return[z.left,z.top]}var O=M(this.els[0]),L=M(this.els[1]),T=M(this.els[2]),k=M(this.els[3]),x=$(_(k,L),_(k,T),_(S(L,T),S(k,O))),C=b(1+x[0],_(L,O)),w=b(1+x[1],_(T,O));if(v){var A=v,E=x[0]*A[0]/u+x[1]*A[1]/u+1,R=S(b(A[0],C),b(A[1],w));return S(b(1/E/u,R),O)}var I=_(m,O),N=$(_(C,b(x[0],I)),_(w,b(x[1],I)),I);return b(u,N)},f}();h.prototype.$characterSize={width:0,height:0},a.implement(h.prototype,o),i.FontMetrics=h}),ace.define("ace/css/editor-css",["require","exports","module"],function(n,i,s){s.exports=` .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_editor { position: relative; overflow: hidden; padding: 0; font: 12px/normal 'Monaco', 'Menlo', 'Ubuntu Mono', 'Consolas', 'Source Code Pro', 'source-code-pro', monospace; direction: ltr; text-align: left; -webkit-tap-highlight-color: rgba(0, 0, 0, 0); forced-color-adjust: none; } .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; box-sizing: border-box; min-width: 100%; contain: style size layout; font-variant-ligatures: no-common-ligatures; } .ace_keyboard-focus:focus { box-shadow: inset 0 0 0 2px #5E9ED6; outline: none; } .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_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; contain: style size layout; } .ace_gutter-active-line { position: absolute; left: 0; right: 0; } .ace_scroller.ace_scroll-left:after { content: ""; position: absolute; top: 0; right: 0; bottom: 0; left: 0; box-shadow: 17px 0 16px -16px rgba(0, 0, 0, 0.4) inset; pointer-events: none; } .ace_gutter-cell, .ace_gutter-cell_svg-icons { position: absolute; top: 0; left: 0; right: 0; padding-left: 19px; padding-right: 6px; background-repeat: no-repeat; } .ace_gutter-cell_svg-icons .ace_gutter_annotation { margin-left: -14px; float: left; } .ace_gutter-cell .ace_gutter_annotation { margin-left: -19px; float: left; } .ace_gutter-cell.ace_error, .ace_icon.ace_error, .ace_icon.ace_error_fold, .ace_gutter-cell.ace_security, .ace_icon.ace_security, .ace_icon.ace_security_fold { 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, .ace_icon.ace_warning, .ace_icon.ace_warning_fold { 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-repeat: no-repeat; background-position: 2px center; } .ace_gutter-cell.ace_info, .ace_icon.ace_info, .ace_gutter-cell.ace_hint, .ace_icon.ace_hint { background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAAAAAA6mKC9AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAAJ0Uk5TAAB2k804AAAAPklEQVQY02NgIB68QuO3tiLznjAwpKTgNyDbMegwisCHZUETUZV0ZqOquBpXj2rtnpSJT1AEnnRmL2OgGgAAIKkRQap2htgAAAAASUVORK5CYII="); background-repeat: no-repeat; background-position: 2px center; } .ace_dark .ace_gutter-cell.ace_info, .ace_dark .ace_icon.ace_info, .ace_dark .ace_gutter-cell.ace_hint, .ace_dark .ace_icon.ace_hint { background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQBAMAAADt3eJSAAAAJFBMVEUAAAChoaGAgIAqKiq+vr6tra1ZWVmUlJSbm5s8PDxubm56enrdgzg3AAAAAXRSTlMAQObYZgAAAClJREFUeNpjYMAPdsMYHegyJZFQBlsUlMFVCWUYKkAZMxZAGdxlDMQBAG+TBP4B6RyJAAAAAElFTkSuQmCC"); } .ace_icon_svg.ace_error { -webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMCAxNiI+CjxnIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlPSJyZWQiIHNoYXBlLXJlbmRlcmluZz0iZ2VvbWV0cmljUHJlY2lzaW9uIj4KPGNpcmNsZSBmaWxsPSJub25lIiBjeD0iOCIgY3k9IjgiIHI9IjciIHN0cm9rZS1saW5lam9pbj0icm91bmQiLz4KPGxpbmUgeDE9IjExIiB5MT0iNSIgeDI9IjUiIHkyPSIxMSIvPgo8bGluZSB4MT0iMTEiIHkxPSIxMSIgeDI9IjUiIHkyPSI1Ii8+CjwvZz4KPC9zdmc+"); background-color: crimson; } .ace_icon_svg.ace_security { -webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgMjAgMTYiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CiAgICA8ZyBzdHJva2Utd2lkdGg9IjIiIHN0cm9rZT0iZGFya29yYW5nZSIgZmlsbD0ibm9uZSIgc2hhcGUtcmVuZGVyaW5nPSJnZW9tZXRyaWNQcmVjaXNpb24iPgogICAgICAgIDxwYXRoIGNsYXNzPSJzdHJva2UtbGluZWpvaW4tcm91bmQiIGQ9Ik04IDE0LjgzMDdDOCAxNC44MzA3IDIgMTIuOTA0NyAyIDguMDg5OTJWMy4yNjU0OEM1LjMxIDMuMjY1NDggNy45ODk5OSAxLjM0OTE4IDcuOTg5OTkgMS4zNDkxOEM3Ljk4OTk5IDEuMzQ5MTggMTAuNjkgMy4yNjU0OCAxNCAzLjI2NTQ4VjguMDg5OTJDMTQgMTIuOTA0NyA4IDE0LjgzMDcgOCAxNC44MzA3WiIvPgogICAgICAgIDxwYXRoIGQ9Ik0yIDguMDg5OTJWMy4yNjU0OEM1LjMxIDMuMjY1NDggNy45ODk5OSAxLjM0OTE4IDcuOTg5OTkgMS4zNDkxOCIvPgogICAgICAgIDxwYXRoIGQ9Ik0xMy45OSA4LjA4OTkyVjMuMjY1NDhDMTAuNjggMy4yNjU0OCA4IDEuMzQ5MTggOCAxLjM0OTE4Ii8+CiAgICAgICAgPHBhdGggY2xhc3M9InN0cm9rZS1saW5lam9pbi1yb3VuZCIgZD0iTTggNFY5Ii8+CiAgICAgICAgPHBhdGggY2xhc3M9InN0cm9rZS1saW5lam9pbi1yb3VuZCIgZD0iTTggMTBWMTIiLz4KICAgIDwvZz4KPC9zdmc+"); background-color: crimson; } .ace_icon_svg.ace_warning { -webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMCAxNiI+CjxnIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlPSJkYXJrb3JhbmdlIiBzaGFwZS1yZW5kZXJpbmc9Imdlb21ldHJpY1ByZWNpc2lvbiI+Cjxwb2x5Z29uIHN0cm9rZS1saW5lam9pbj0icm91bmQiIGZpbGw9Im5vbmUiIHBvaW50cz0iOCAxIDE1IDE1IDEgMTUgOCAxIi8+CjxyZWN0IHg9IjgiIHk9IjEyIiB3aWR0aD0iMC4wMSIgaGVpZ2h0PSIwLjAxIi8+CjxsaW5lIHgxPSI4IiB5MT0iNiIgeDI9IjgiIHkyPSIxMCIvPgo8L2c+Cjwvc3ZnPg=="); background-color: darkorange; } .ace_icon_svg.ace_info { -webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMCAxNiI+CjxnIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlPSJibHVlIiBzaGFwZS1yZW5kZXJpbmc9Imdlb21ldHJpY1ByZWNpc2lvbiI+CjxjaXJjbGUgZmlsbD0ibm9uZSIgY3g9IjgiIGN5PSI4IiByPSI3IiBzdHJva2UtbGluZWpvaW49InJvdW5kIi8+Cjxwb2x5bGluZSBwb2ludHM9IjggMTEgOCA4Ii8+Cjxwb2x5bGluZSBwb2ludHM9IjkgOCA2IDgiLz4KPGxpbmUgeDE9IjEwIiB5MT0iMTEiIHgyPSI2IiB5Mj0iMTEiLz4KPHJlY3QgeD0iOCIgeT0iNSIgd2lkdGg9IjAuMDEiIGhlaWdodD0iMC4wMSIvPgo8L2c+Cjwvc3ZnPg=="); background-color: royalblue; } .ace_icon_svg.ace_hint { -webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgMjAgMTYiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CiAgICA8ZyBzdHJva2Utd2lkdGg9IjIiIHN0cm9rZT0ic2lsdmVyIiBmaWxsPSJub25lIiBzaGFwZS1yZW5kZXJpbmc9Imdlb21ldHJpY1ByZWNpc2lvbiI+CiAgICAgICAgPHBhdGggY2xhc3M9InN0cm9rZS1saW5lam9pbi1yb3VuZCIgZD0iTTYgMTRIMTAiLz4KICAgICAgICA8cGF0aCBkPSJNOCAxMUg5QzkgOS40NzAwMiAxMiA4LjU0MDAyIDEyIDUuNzYwMDJDMTIuMDIgNC40MDAwMiAxMS4zOSAzLjM2MDAyIDEwLjQzIDIuNjcwMDJDOSAxLjY0MDAyIDcuMDAwMDEgMS42NDAwMiA1LjU3MDAxIDIuNjcwMDJDNC42MTAwMSAzLjM2MDAyIDMuOTggNC40MDAwMiA0IDUuNzYwMDJDNCA4LjU0MDAyIDcuMDAwMDEgOS40NzAwMiA3LjAwMDAxIDExSDhaIi8+CiAgICA8L2c+Cjwvc3ZnPg=="); background-color: silver; } .ace_icon_svg.ace_error_fold { -webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMCAxNiIgZmlsbD0ibm9uZSI+CiAgPHBhdGggZD0ibSAxOC45Mjk4NTEsNy44Mjk4MDc2IGMgMC4xNDYzNTMsNi4zMzc0NjA0IC02LjMyMzE0Nyw3Ljc3Nzg0NDQgLTcuNDc3OTEyLDcuNzc3ODQ0NCAtMi4xMDcyNzI2LC0wLjEyODc1IDUuMTE3Njc4LDAuMzU2MjQ5IDUuMDUxNjk4LC03Ljg3MDA2MTggLTAuNjA0NjcyLC04LjAwMzk3MzQ5IC03LjA3NzI3MDYsLTcuNTYzMTE4OSAtNC44NTczLC03LjQzMDM5NTU2IDEuNjA2LC0wLjExNTE0MjI1IDYuODk3NDg1LDEuMjYyNTQ1OTYgNy4yODM1MTQsNy41MjI2MTI5NiB6IiBmaWxsPSJjcmltc29uIiBzdHJva2Utd2lkdGg9IjIiLz4KICA8cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZD0ibSA4LjExNDc1NjIsMi4wNTI5ODI4IGMgMy4zNDkxNjk4LDAgNi4wNjQxMzI4LDIuNjc2ODYyNyA2LjA2NDEzMjgsNS45Nzg5NTMgMCwzLjMwMjExMjIgLTIuNzE0OTYzLDUuOTc4OTIwMiAtNi4wNjQxMzI4LDUuOTc4OTIwMiAtMy4zNDkxNDczLDAgLTYuMDY0MTc3MiwtMi42NzY4MDggLTYuMDY0MTc3MiwtNS45Nzg5MjAyIDAuMDA1MzksLTMuMjk5ODg2MSAyLjcxNzI2NTYsLTUuOTczNjQwOCA2LjA2NDE3NzIsLTUuOTc4OTUzIHogbSAwLC0xLjczNTgyNzE5IGMgLTQuMzIxNDgzNiwwIC03LjgyNDc0MDM4LDMuNDU0MDE4NDkgLTcuODI0NzQwMzgsNy43MTQ3ODAxOSAwLDQuMjYwNzI4MiAzLjUwMzI1Njc4LDcuNzE0NzQ1MiA3LjgyNDc0MDM4LDcuNzE0NzQ1MiA0LjMyMTQ0OTgsMCA3LjgyNDY5OTgsLTMuNDU0MDE3IDcuODI0Njk5OCwtNy43MTQ3NDUyIDAsLTIuMDQ2MDkxNCAtMC44MjQzOTIsLTQuMDA4MzY3MiAtMi4yOTE3NTYsLTUuNDU1MTc0NiBDIDEyLjE4MDIyNSwxLjEyOTk2NDggMTAuMTkwMDEzLDAuMzE3MTU1NjEgOC4xMTQ3NTYyLDAuMzE3MTU1NjEgWiBNIDYuOTM3NDU2Myw4LjI0MDU5ODUgNC42NzE4Njg1LDEwLjQ4NTg1MiA2LjAwODY4MTQsMTEuODc2NzI4IDguMzE3MDAzNSw5LjYwMDc5MTEgMTAuNjI1MzM3LDExLjg3NjcyOCAxMS45NjIxMzgsMTAuNDg1ODUyIDkuNjk2NTUwOCw4LjI0MDU5ODUgMTEuOTYyMTM4LDYuMDA2ODA2NiAxMC41NzMyNDYsNC42Mzc0MzM1IDguMzE3MDAzNSw2Ljg3MzQyOTcgNi4wNjA3NjA3LDQuNjM3NDMzNSA0LjY3MTg2ODUsNi4wMDY4MDY2IFoiIGZpbGw9ImNyaW1zb24iIHN0cm9rZS13aWR0aD0iMiIvPgo8L3N2Zz4="); background-color: crimson; } .ace_icon_svg.ace_security_fold { -webkit-mask-image: url("data:image/svg+xml;base64,CjxzdmcgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB2aWV3Qm94PSIwIDAgMTcgMTQiIGZpbGw9Im5vbmUiPgogICAgPHBhdGggZD0iTTEwLjAwMDEgMTMuNjk5MkMxMC4wMDAxIDEzLjY5OTIgMTEuOTI0MSAxMy40NzYzIDEzIDEyLjY5OTJDMTQuNDEzOSAxMS42NzgxIDE2IDEwLjUgMTYuMTI1MSA2LjgxMTI2VjIuNTg5ODdDMTYuMTI1MSAyLjU0NzY4IDE2LjEyMjEgMi41MDYxOSAxNi4xMTY0IDIuNDY1NTlWMS43MTQ4NUgxNS4yNDE0TDE1LjIzMDcgMS43MTQ4NEwxNC42MjUxIDEuNjk5MjJWNi44MTEyM0MxNC42MjUxIDguNTEwNjEgMTQuNjI1MSA5LjQ2NDYxIDEyLjc4MjQgMTEuNzIxQzEyLjE1ODYgMTIuNDg0OCAxMC4wMDAxIDEzLjY5OTIgMTAuMDAwMSAxMy42OTkyWiIgZmlsbD0iY3JpbXNvbiIgc3Ryb2tlLXdpZHRoPSIyIi8+CiAgICA8cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZD0iTTcuMzM2MDkgMC4zNjc0NzVDNy4wMzIxNCAwLjE1MjY1MiA2LjYyNTQ4IDAuMTUzNjE0IDYuMzIyNTMgMC4zNjk5OTdMNi4zMDg2OSAwLjM3OTU1NEM2LjI5NTUzIDAuMzg4NTg4IDYuMjczODggMC40MDMyNjYgNi4yNDQxNyAwLjQyMjc4OUM2LjE4NDcxIDAuNDYxODYgNi4wOTMyMSAwLjUyMDE3MSA1Ljk3MzEzIDAuNTkxMzczQzUuNzMyNTEgMC43MzQwNTkgNS4zNzk5IDAuOTI2ODY0IDQuOTQyNzkgMS4xMjAwOUM0LjA2MTQ0IDEuNTA5NyAyLjg3NTQxIDEuODgzNzcgMS41ODk4NCAxLjg4Mzc3SDAuNzE0ODQ0VjIuNzU4NzdWNi45ODAxNUMwLjcxNDg0NCA5LjQ5Mzc0IDIuMjg4NjYgMTEuMTk3MyAzLjcwMjU0IDEyLjIxODVDNC40MTg0NSAxMi43MzU1IDUuMTI4NzQgMTMuMTA1MyA1LjY1NzMzIDEzLjM0NTdDNS45MjI4NCAxMy40NjY0IDYuMTQ1NjYgMTMuNTU1OSA2LjMwNDY1IDEzLjYxNjFDNi4zODQyMyAxMy42NDYyIDYuNDQ4MDUgMTMuNjY5IDYuNDkzNDkgMTMuNjg0OEM2LjUxNjIyIDEzLjY5MjcgNi41MzQzOCAxMy42OTg5IDYuNTQ3NjQgMTMuNzAzM0w2LjU2MzgyIDEzLjcwODdMNi41NjkwOCAxMy43MTA0TDYuNTcwOTkgMTMuNzExTDYuODM5ODQgMTMuNzUzM0w2LjU3MjQyIDEzLjcxMTVDNi43NDYzMyAxMy43NjczIDYuOTMzMzUgMTMuNzY3MyA3LjEwNzI3IDEzLjcxMTVMNy4xMDg3IDEzLjcxMUw3LjExMDYxIDEzLjcxMDRMNy4xMTU4NyAxMy43MDg3TDcuMTMyMDUgMTMuNzAzM0M3LjE0NTMxIDEzLjY5ODkgNy4xNjM0NiAxMy42OTI3IDcuMTg2MTkgMTMuNjg0OEM3LjIzMTY0IDEzLjY2OSA3LjI5NTQ2IDEzLjY0NjIgNy4zNzUwMyAxMy42MTYxQzcuNTM0MDMgMTMuNTU1OSA3Ljc1Njg1IDEzLjQ2NjQgOC4wMjIzNiAxMy4zNDU3QzguNTUwOTUgMTMuMTA1MyA5LjI2MTIzIDEyLjczNTUgOS45NzcxNSAxMi4yMTg1QzExLjM5MSAxMS4xOTczIDEyLjk2NDggOS40OTM3NyAxMi45NjQ4IDYuOTgwMThWMi43NTg4QzEyLjk2NDggMi43MTY2IDEyLjk2MTkgMi42NzUxMSAxMi45NTYxIDIuNjM0NTFWMS44ODM3N0gxMi4wODExQzEyLjA3NzUgMS44ODM3NyAxMi4wNzQgMS44ODM3NyAxMi4wNzA0IDEuODgzNzdDMTAuNzk3OSAxLjg4MDA0IDkuNjE5NjIgMS41MTEwMiA4LjczODk0IDEuMTI0ODZDOC43MzUzNCAxLjEyMzI3IDguNzMxNzQgMS4xMjE2OCA4LjcyODE0IDEuMTIwMDlDOC4yOTEwMyAwLjkyNjg2NCA3LjkzODQyIDAuNzM0MDU5IDcuNjk3NzkgMC41OTEzNzNDNy41Nzc3MiAwLjUyMDE3MSA3LjQ4NjIyIDAuNDYxODYgNy40MjY3NiAwLjQyMjc4OUM3LjM5NzA1IDAuNDAzMjY2IDcuMzc1MzkgMC4zODg1ODggNy4zNjIyNCAwLjM3OTU1NEw3LjM0ODk2IDAuMzcwMzVDNy4zNDg5NiAwLjM3MDM1IDcuMzQ4NDcgMC4zNzAwMiA3LjM0NTYzIDAuMzc0MDU0TDcuMzM3NzkgMC4zNjg2NTlMNy4zMzYwOSAwLjM2NzQ3NVpNOC4wMzQ3MSAyLjcyNjkxQzguODYwNCAzLjA5MDYzIDkuOTYwNjYgMy40NjMwOSAxMS4yMDYxIDMuNTg5MDdWNi45ODAxNUgxMS4yMTQ4QzExLjIxNDggOC42Nzk1MyAxMC4xNjM3IDkuOTI1MDcgOC45NTI1NCAxMC43OTk4QzguMzU1OTUgMTEuMjMwNiA3Ljc1Mzc0IDExLjU0NTQgNy4yOTc5NiAxMS43NTI3QzcuMTE2NzEgMTEuODM1MSA2Ljk2MDYyIDExLjg5OTYgNi44Mzk4NCAxMS45NDY5QzYuNzE5MDYgMTEuODk5NiA2LjU2Mjk3IDExLjgzNTEgNi4zODE3MyAxMS43NTI3QzUuOTI1OTUgMTEuNTQ1NCA1LjMyMzczIDExLjIzMDYgNC43MjcxNSAxMC43OTk4QzMuNTE2MDMgOS45MjUwNyAyLjQ2NDg0IDguNjc5NTUgMi40NjQ4NCA2Ljk4MDE4VjMuNTg5MDlDMy43MTczOCAzLjQ2MjM5IDQuODIzMDggMy4wODYzOSA1LjY1MDMzIDIuNzIwNzFDNi4xNDIyOCAyLjUwMzI0IDYuNTQ0ODUgMi4yODUzNyA2LjgzMjU0IDIuMTE2MjRDNy4xMjE4MSAyLjI4NTM1IDcuNTI3IDIuNTAzNTIgOC4wMjE5NiAyLjcyMTMxQzguMDI2MiAyLjcyMzE3IDguMDMwNDUgMi43MjUwNCA4LjAzNDcxIDIuNzI2OTFaTTUuOTY0ODQgMy40MDE0N1Y3Ljc3NjQ3SDcuNzE0ODRWMy40MDE0N0g1Ljk2NDg0Wk01Ljk2NDg0IDEwLjQwMTVWOC42NTE0N0g3LjcxNDg0VjEwLjQwMTVINS45NjQ4NFoiIGZpbGw9ImNyaW1zb24iIHN0cm9rZS13aWR0aD0iMiIvPgo8L3N2Zz4="); background-color: crimson; } .ace_icon_svg.ace_warning_fold { -webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAyMCAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0xNC43NzY5IDE0LjczMzdMOC42NTE5MiAyLjQ4MzY5QzguMzI5NDYgMS44Mzg3NyA3LjQwOTEzIDEuODM4NzcgNy4wODY2NyAyLjQ4MzY5TDAuOTYxNjY5IDE0LjczMzdDMC42NzA3NzUgMTUuMzE1NSAxLjA5MzgzIDE2IDEuNzQ0MjkgMTZIMTMuOTk0M0MxNC42NDQ4IDE2IDE1LjA2NzggMTUuMzE1NSAxNC43NzY5IDE0LjczMzdaTTMuMTYwMDcgMTQuMjVMNy44NjkyOSA0LjgzMTU2TDEyLjU3ODUgMTQuMjVIMy4xNjAwN1pNOC43NDQyOSAxMS42MjVWMTMuMzc1SDYuOTk0MjlWMTEuNjI1SDguNzQ0MjlaTTYuOTk0MjkgMTAuNzVWNy4yNUg4Ljc0NDI5VjEwLjc1SDYuOTk0MjlaIiBmaWxsPSIjRUM3MjExIi8+CjxwYXRoIGQ9Ik0xMS4xOTkxIDIuOTUyMzhDMTAuODgwOSAyLjMxNDY3IDEwLjM1MzcgMS44MDUyNiA5LjcwNTUgMS41MDlMMTEuMDQxIDEuMDY5NzhDMTEuNjg4MyAwLjk0OTgxNCAxMi4zMzcgMS4yNzI2MyAxMi42MzE3IDEuODYxNDFMMTcuNjEzNiAxMS44MTYxQzE4LjM1MjcgMTMuMjkyOSAxNy41OTM4IDE1LjA4MDQgMTYuMDE4IDE1LjU3NDVDMTYuNDA0NCAxNC40NTA3IDE2LjMyMzEgMTMuMjE4OCAxNS43OTI0IDEyLjE1NTVMMTEuMTk5MSAyLjk1MjM4WiIgZmlsbD0iI0VDNzIxMSIvPgo8L3N2Zz4="); background-color: darkorange; } .ace_scrollbar { contain: strict; 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; contain: strict; -ms-user-select: text; -moz-user-select: text; -webkit-user-select: text; user-select: text; /*with \`pre-line\` chrome inserts   instead of space*/ white-space: pre!important; } .ace_text-input.ace_composition { background: transparent; color: inherit; z-index: 1000; opacity: 1; } .ace_composition_placeholder { color: transparent } .ace_composition_marker { border-bottom: 1px solid; position: absolute; border-radius: 0; margin-top: 1px; } [ace_nocontext=true] { transform: none!important; filter: none!important; clip-path: none!important; mask : none!important; contain: none!important; perspective: none!important; mix-blend-mode: initial!important; z-index: auto; } .ace_layer { z-index: 1; position: absolute; overflow: hidden; /* workaround for chrome bug https://github.com/ajaxorg/ace/issues/2312*/ word-wrap: normal; white-space: pre; height: 100%; width: 100%; box-sizing: border-box; /* setting pointer-events: auto; on node under the mouse, which changes during scroll, will break mouse wheel scrolling in Safari */ pointer-events: none; } .ace_gutter-layer { position: relative; width: auto; text-align: right; pointer-events: auto; height: 1000000px; contain: style size layout; } .ace_text-layer { font: inherit !important; position: absolute; height: 1000000px; width: 1000000px; contain: style size layout; } .ace_text-layer > .ace_line, .ace_text-layer > .ace_line_group { contain: style size layout; position: absolute; top: 0; left: 0; right: 0; } .ace_hidpi .ace_text-layer, .ace_hidpi .ace_gutter-layer, .ace_hidpi .ace_content, .ace_hidpi .ace_gutter { contain: strict; } .ace_hidpi .ace_text-layer > .ace_line, .ace_hidpi .ace_text-layer > .ace_line_group { contain: strict; } .ace_cjk { display: inline-block; text-align: center; } .ace_cursor-layer { z-index: 4; } .ace_cursor { z-index: 4; position: absolute; box-sizing: border-box; border-left: 2px solid; /* workaround for smooth cursor repaintng whole screen in chrome */ 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_hasPlaceholder .ace_hidden-cursors .ace_cursor { opacity: 0; } .ace_smooth-blinking .ace_cursor { transition: opacity 0.18s; } .ace_animate-blinking .ace_cursor { animation-duration: 1000ms; animation-timing-function: step-end; animation-name: blink-ace-animate; animation-iteration-count: infinite; } .ace_animate-blinking.ace_smooth-blinking .ace_cursor { animation-duration: 1000ms; animation-timing-function: ease-in-out; animation-name: blink-ace-animate-smooth; } @keyframes blink-ace-animate { from, to { opacity: 1; } 60% { opacity: 0; } } @keyframes blink-ace-animate-smooth { from, to { opacity: 1; } 45% { opacity: 1; } 60% { opacity: 0; } 85% { opacity: 0; } } .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_error_bracket { position: absolute; border-bottom: 1px solid #DE5555; border-radius: 0; } .ace_marker-layer .ace_active-line { position: absolute; z-index: 2; } .ace_marker-layer .ace_selected-word { position: absolute; z-index: 4; box-sizing: border-box; } .ace_line .ace_fold { 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: #f5f5f5; 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; box-sizing: border-box; cursor: default; white-space: pre-wrap; word-wrap: break-word; line-height: normal; font-style: normal; font-weight: normal; letter-spacing: normal; pointer-events: none; overflow: auto; max-width: min(60em, 66vw); overscroll-behavior: contain; } .ace_tooltip pre { white-space: pre-wrap; } .ace_tooltip.ace_dark { background-color: #636363; color: #fff; } .ace_tooltip:focus { outline: 1px solid #5E9ED6; } .ace_icon { display: inline-block; width: 18px; vertical-align: top; } .ace_icon_svg { display: inline-block; width: 12px; vertical-align: top; -webkit-mask-repeat: no-repeat; -webkit-mask-size: 12px; -webkit-mask-position: center; } .ace_folding-enabled > .ace_gutter-cell, .ace_folding-enabled > .ace_gutter-cell_svg-icons { padding-right: 13px; } .ace_fold-widget { 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); } /** * Dark version for fold widgets */ .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_inline_button { border: 1px solid lightgray; display: inline-block; margin: -1px 8px; padding: 0 5px; pointer-events: auto; cursor: pointer; } .ace_inline_button:hover { border-color: gray; background: rgba(200,200,200,0.2); display: inline-block; pointer-events: auto; } .ace_fold-widget.ace_invalid { background-color: #FFB4B4; border-color: #DE5555; } .ace_fade-fold-widgets .ace_fold-widget { transition: opacity 0.4s ease 0.05s; opacity: 0; } .ace_fade-fold-widgets:hover .ace_fold-widget { 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_mobile-menu { position: absolute; line-height: 1.5; border-radius: 4px; -ms-user-select: none; -moz-user-select: none; -webkit-user-select: none; user-select: none; background: white; box-shadow: 1px 3px 2px grey; border: 1px solid #dcdcdc; color: black; } .ace_dark > .ace_mobile-menu { background: #333; color: #ccc; box-shadow: 1px 3px 2px grey; border: 1px solid #444; } .ace_mobile-button { padding: 2px; cursor: pointer; overflow: hidden; } .ace_mobile-button:hover { background-color: #eee; opacity:1; } .ace_mobile-button:active { background-color: #ddd; } .ace_placeholder { position: relative; font-family: arial; transform: scale(0.9); transform-origin: left; white-space: pre; opacity: 0.7; margin: 0 10px; z-index: 1; } .ace_ghost_text { opacity: 0.5; font-style: italic; } .ace_ghost_text_container > div { white-space: pre; } .ghost_text_line_wrapped::after { content: "↩"; position: absolute; } .ace_lineWidgetContainer.ace_ghost_text { margin: 0px 4px } .ace_screenreader-only { position:absolute; left:-10000px; top:auto; width:1px; height:1px; overflow:hidden; } .ace_hidden_token { display: none; }`}),ace.define("ace/layer/decorators",["require","exports","module","ace/lib/dom","ace/lib/oop","ace/lib/event_emitter"],function(n,i,s){var a=n("../lib/dom"),d=n("../lib/oop"),g=n("../lib/event_emitter").EventEmitter,l=function(){function p(o,r){this.canvas=a.createElement("canvas"),this.renderer=r,this.pixelRatio=1,this.maxHeight=r.layerConfig.maxHeight,this.lineHeight=r.layerConfig.lineHeight,this.canvasHeight=o.parent.scrollHeight,this.heightRatio=this.canvasHeight/this.maxHeight,this.canvasWidth=o.width,this.minDecorationHeight=2*this.pixelRatio|0,this.halfMinDecorationHeight=this.minDecorationHeight/2|0,this.canvas.width=this.canvasWidth,this.canvas.height=this.canvasHeight,this.canvas.style.top="0px",this.canvas.style.right="0px",this.canvas.style.zIndex="7px",this.canvas.style.position="absolute",this.colors={},this.colors.dark={error:"rgba(255, 18, 18, 1)",warning:"rgba(18, 136, 18, 1)",info:"rgba(18, 18, 136, 1)"},this.colors.light={error:"rgb(255,51,51)",warning:"rgb(32,133,72)",info:"rgb(35,68,138)"},o.element.appendChild(this.canvas)}return p.prototype.$updateDecorators=function(o){var r=this.renderer.theme.isDark===!0?this.colors.dark:this.colors.light;if(o){this.maxHeight=o.maxHeight,this.lineHeight=o.lineHeight,this.canvasHeight=o.height;var c=(o.lastRow+1)*this.lineHeight;cx.priority?1:0}var f=this.renderer.session.$annotations;if(u.clearRect(0,0,this.canvas.width,this.canvas.height),f){var m={info:1,warning:2,error:3};f.forEach(function(k){k.priority=m[k.type]||null}),f=f.sort(h);for(var v=this.renderer.session.$foldData,y=0;ythis.canvasHeight&&(L=this.canvasHeight-this.halfMinDecorationHeight),b=Math.round(L-this.halfMinDecorationHeight),M=Math.round(L+this.halfMinDecorationHeight)}u.fillStyle=r[f[y].type]||null,u.fillRect(0,S,this.canvasWidth,M-b)}}var T=this.renderer.session.selection.getCursor();if(T){var _=this.compensateFoldRows(T.row,v),S=Math.round((T.row-_)*this.lineHeight*this.heightRatio);u.fillStyle="rgba(0, 0, 0, 0.5)",u.fillRect(0,S,this.canvasWidth,2)}},p.prototype.compensateFoldRows=function(o,r){var c=0;if(r&&r.length>0)for(var u=0;ur[u].start.row&&o=r[u].end.row&&(c+=r[u].end.row-r[u].start.row);return c},p}();d.implement(l.prototype,g),i.Decorator=l}),ace.define("ace/virtual_renderer",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/lang","ace/config","ace/layer/gutter","ace/layer/marker","ace/layer/text","ace/layer/cursor","ace/scrollbar","ace/scrollbar","ace/scrollbar_custom","ace/scrollbar_custom","ace/renderloop","ace/layer/font_metrics","ace/lib/event_emitter","ace/css/editor-css","ace/layer/decorators","ace/lib/useragent","ace/layer/text_util"],function(n,i,s){var a=n("./lib/oop"),d=n("./lib/dom"),g=n("./lib/lang"),l=n("./config"),p=n("./layer/gutter").Gutter,o=n("./layer/marker").Marker,r=n("./layer/text").Text,c=n("./layer/cursor").Cursor,u=n("./scrollbar").HScrollBar,h=n("./scrollbar").VScrollBar,f=n("./scrollbar_custom").HScrollBar,m=n("./scrollbar_custom").VScrollBar,v=n("./renderloop").RenderLoop,y=n("./layer/font_metrics").FontMetrics,$=n("./lib/event_emitter").EventEmitter,_=n("./css/editor-css"),S=n("./layer/decorators").Decorator,b=n("./lib/useragent"),M=n("./layer/text_util").isTextToken;d.importCssString(_,"ace_editor.css",!1);var O=function(){function L(T,k){var x=this;this.container=T||d.createElement("div"),d.addCssClass(this.container,"ace_editor"),d.HI_DPI&&d.addCssClass(this.container,"ace_hidpi"),this.setTheme(k),l.get("useStrictCSP")==null&&l.set("useStrictCSP",!1),this.$gutter=d.createElement("div"),this.$gutter.className="ace_gutter",this.container.appendChild(this.$gutter),this.$gutter.setAttribute("aria-hidden","true"),this.scroller=d.createElement("div"),this.scroller.className="ace_scroller",this.container.appendChild(this.scroller),this.content=d.createElement("div"),this.content.className="ace_content",this.scroller.appendChild(this.content),this.$gutterLayer=new p(this.$gutter),this.$gutterLayer.on("changeGutterWidth",this.onGutterResize.bind(this)),this.$markerBack=new o(this.content);var C=this.$textLayer=new r(this.content);this.canvas=C.element,this.$markerFront=new o(this.content),this.$cursorLayer=new c(this.content),this.$horizScroll=!1,this.$vScroll=!1,this.scrollBar=this.scrollBarV=new h(this.container,this),this.scrollBarH=new u(this.container,this),this.scrollBarV.on("scroll",function(w){x.$scrollAnimation||x.session.setScrollTop(w.data-x.scrollMargin.top)}),this.scrollBarH.on("scroll",function(w){x.$scrollAnimation||x.session.setScrollLeft(w.data-x.scrollMargin.left)}),this.scrollTop=0,this.scrollLeft=0,this.cursorPos={row:0,column:0},this.$fontMetrics=new y(this.container),this.$textLayer.$setFontMetrics(this.$fontMetrics),this.$textLayer.on("changeCharacterSize",function(w){x.updateCharacterSize(),x.onResize(!0,x.gutterWidth,x.$size.width,x.$size.height),x._signal("changeCharacterSize",w)}),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.margin={left:0,right:0,top:0,bottom:0,v:0,h:0},this.$keepTextAreaAtCursor=!b.isIOS,this.$loop=new v(this.$renderChanges.bind(this),this.container.ownerDocument.defaultView),this.$loop.schedule(this.CHANGE_FULL),this.updateCharacterSize(),this.setPadding(4),this.$addResizeObserver(),l.resetOptions(this),l._signal("renderer",this)}return L.prototype.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(),d.setStyle(this.scroller.style,"line-height",this.lineHeight+"px")},L.prototype.setSession=function(T){this.session&&this.session.doc.off("changeNewLineMode",this.onChangeNewLineMode),this.session=T,T&&this.scrollMargin.top&&T.getScrollTop()<=0&&T.setScrollTop(-this.scrollMargin.top),this.$cursorLayer.setSession(T),this.$markerBack.setSession(T),this.$markerFront.setSession(T),this.$gutterLayer.setSession(T),this.$textLayer.setSession(T),T&&(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))},L.prototype.updateLines=function(T,k,x){if(k===void 0&&(k=1/0),this.$changedLines?(this.$changedLines.firstRow>T&&(this.$changedLines.firstRow=T),this.$changedLines.lastRowthis.layerConfig.lastRow||this.$loop.schedule(this.CHANGE_LINES)},L.prototype.onChangeNewLineMode=function(){this.$loop.schedule(this.CHANGE_TEXT),this.$textLayer.$updateEolChar(),this.session.$bidiHandler.setEolChar(this.$textLayer.EOL_CHAR)},L.prototype.onChangeTabSize=function(){this.$loop.schedule(this.CHANGE_TEXT|this.CHANGE_MARKER),this.$textLayer.onChangeTabSize()},L.prototype.updateText=function(){this.$loop.schedule(this.CHANGE_TEXT)},L.prototype.updateFull=function(T){T?this.$renderChanges(this.CHANGE_FULL,!0):this.$loop.schedule(this.CHANGE_FULL)},L.prototype.updateFontSize=function(){this.$textLayer.checkForSizeChanges()},L.prototype.$updateSizeAsync=function(){this.$loop.pending?this.$size.$dirty=!0:this.onResize()},L.prototype.onResize=function(T,k,x,C){if(!(this.resizing>2)){this.resizing>0?this.resizing++:this.resizing=T?1:0;var w=this.container;C||(C=w.clientHeight||w.scrollHeight),!C&&this.$maxLines&&this.lineHeight>1&&(!w.style.height||w.style.height=="0px")&&(w.style.height="1px",C=w.clientHeight||w.scrollHeight),x||(x=w.clientWidth||w.scrollWidth);var A=this.$updateCachedSize(T,k,x,C);if(this.$resizeTimer&&this.$resizeTimer.cancel(),!this.$size.scrollerHeight||!x&&!C)return this.resizing=0;T&&(this.$gutterLayer.$padding=null),T?this.$renderChanges(A|this.$changes,!0):this.$loop.schedule(A|this.$changes),this.resizing&&(this.resizing=0),this.scrollBarH.scrollLeft=this.scrollBarV.scrollTop=null,this.$customScrollbar&&this.$updateCustomScrollbar(!0)}},L.prototype.$updateCachedSize=function(T,k,x,C){C-=this.$extraHeight||0;var w=0,A=this.$size,E={width:A.width,height:A.height,scrollerHeight:A.scrollerHeight,scrollerWidth:A.scrollerWidth};if(C&&(T||A.height!=C)&&(A.height=C,w|=this.CHANGE_SIZE,A.scrollerHeight=A.height,this.$horizScroll&&(A.scrollerHeight-=this.scrollBarH.getHeight()),this.scrollBarV.setHeight(A.scrollerHeight),this.scrollBarV.element.style.bottom=this.scrollBarH.getHeight()+"px",w=w|this.CHANGE_SCROLL),x&&(T||A.width!=x)){w|=this.CHANGE_SIZE,A.width=x,k==null&&(k=this.$showGutter?this.$gutter.offsetWidth:0),this.gutterWidth=k,d.setStyle(this.scrollBarH.element.style,"left",k+"px"),d.setStyle(this.scroller.style,"left",k+this.margin.left+"px"),A.scrollerWidth=Math.max(0,x-k-this.scrollBarV.getWidth()-this.margin.h),d.setStyle(this.$gutter.style,"left",this.margin.left+"px");var R=this.scrollBarV.getWidth()+"px";d.setStyle(this.scrollBarH.element.style,"right",R),d.setStyle(this.scroller.style,"right",R),d.setStyle(this.scroller.style,"bottom",this.scrollBarH.getHeight()),this.scrollBarH.setWidth(A.scrollerWidth),(this.session&&this.session.getUseWrapMode()&&this.adjustWrapLimit()||T)&&(w|=this.CHANGE_FULL)}return A.$dirty=!x||!C,w&&this._signal("resize",E),w},L.prototype.onGutterResize=function(T){var k=this.$showGutter?T:0;k!=this.gutterWidth&&(this.$changes|=this.$updateCachedSize(!0,k,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()},L.prototype.adjustWrapLimit=function(){var T=this.$size.scrollerWidth-this.$padding*2,k=Math.floor(T/this.characterWidth);return this.session.adjustWrapLimit(k,this.$showPrintMargin&&this.$printMarginColumn)},L.prototype.setAnimatedScroll=function(T){this.setOption("animatedScroll",T)},L.prototype.getAnimatedScroll=function(){return this.$animatedScroll},L.prototype.setShowInvisibles=function(T){this.setOption("showInvisibles",T),this.session.$bidiHandler.setShowInvisibles(T)},L.prototype.getShowInvisibles=function(){return this.getOption("showInvisibles")},L.prototype.getDisplayIndentGuides=function(){return this.getOption("displayIndentGuides")},L.prototype.setDisplayIndentGuides=function(T){this.setOption("displayIndentGuides",T)},L.prototype.getHighlightIndentGuides=function(){return this.getOption("highlightIndentGuides")},L.prototype.setHighlightIndentGuides=function(T){this.setOption("highlightIndentGuides",T)},L.prototype.setShowPrintMargin=function(T){this.setOption("showPrintMargin",T)},L.prototype.getShowPrintMargin=function(){return this.getOption("showPrintMargin")},L.prototype.setPrintMarginColumn=function(T){this.setOption("printMarginColumn",T)},L.prototype.getPrintMarginColumn=function(){return this.getOption("printMarginColumn")},L.prototype.getShowGutter=function(){return this.getOption("showGutter")},L.prototype.setShowGutter=function(T){return this.setOption("showGutter",T)},L.prototype.getFadeFoldWidgets=function(){return this.getOption("fadeFoldWidgets")},L.prototype.setFadeFoldWidgets=function(T){this.setOption("fadeFoldWidgets",T)},L.prototype.setHighlightGutterLine=function(T){this.setOption("highlightGutterLine",T)},L.prototype.getHighlightGutterLine=function(){return this.getOption("highlightGutterLine")},L.prototype.$updatePrintMargin=function(){if(!(!this.$showPrintMargin&&!this.$printMarginEl)){if(!this.$printMarginEl){var T=d.createElement("div");T.className="ace_layer ace_print-margin-layer",this.$printMarginEl=d.createElement("div"),this.$printMarginEl.className="ace_print-margin",T.appendChild(this.$printMarginEl),this.content.insertBefore(T,this.content.firstChild)}var k=this.$printMarginEl.style;k.left=Math.round(this.characterWidth*this.$printMarginColumn+this.$padding)+"px",k.visibility=this.$showPrintMargin?"visible":"hidden",this.session&&this.session.$wrap==-1&&this.adjustWrapLimit()}},L.prototype.getContainerElement=function(){return this.container},L.prototype.getMouseEventTarget=function(){return this.scroller},L.prototype.getTextAreaContainer=function(){return this.container},L.prototype.$moveTextAreaToCursor=function(){if(!this.$isMousePressed){var T=this.textarea.style,k=this.$composition;if(!this.$keepTextAreaAtCursor&&!k){d.translate(this.textarea,-100,0);return}var x=this.$cursorLayer.$pixelPos;if(x){k&&k.markerRange&&(x=this.$cursorLayer.getPixelPosition(k.markerRange.start,!0));var C=this.layerConfig,w=x.top,A=x.left;w-=C.offset;var E=k&&k.useTextareaForIME||b.isMobile?this.lineHeight:1;if(w<0||w>C.height-E){d.translate(this.textarea,0,0);return}var R=1,I=this.$size.height-E;if(!k)w+=this.lineHeight;else if(k.useTextareaForIME){var N=this.textarea.value;R=this.characterWidth*this.session.$getStringScreenWidth(N)[0]}else w+=this.lineHeight+2;A-=this.scrollLeft,A>this.$size.scrollerWidth-R&&(A=this.$size.scrollerWidth-R),A+=this.gutterWidth+this.margin.left,d.setStyle(T,"height",E+"px"),d.setStyle(T,"width",R+"px"),d.translate(this.textarea,Math.min(A,this.$size.scrollerWidth-R),Math.min(w,I))}}},L.prototype.getFirstVisibleRow=function(){return this.layerConfig.firstRow},L.prototype.getFirstFullyVisibleRow=function(){return this.layerConfig.firstRow+(this.layerConfig.offset===0?0:1)},L.prototype.getLastFullyVisibleRow=function(){var T=this.layerConfig,k=T.lastRow,x=this.session.documentToScreenRow(k,0)*T.lineHeight;return x-this.session.getScrollTop()>T.height-T.lineHeight?k-1:k},L.prototype.getLastVisibleRow=function(){return this.layerConfig.lastRow},L.prototype.setPadding=function(T){this.$padding=T,this.$textLayer.setPadding(T),this.$cursorLayer.setPadding(T),this.$markerFront.setPadding(T),this.$markerBack.setPadding(T),this.$loop.schedule(this.CHANGE_FULL),this.$updatePrintMargin()},L.prototype.setScrollMargin=function(T,k,x,C){var w=this.scrollMargin;w.top=T|0,w.bottom=k|0,w.right=C|0,w.left=x|0,w.v=w.top+w.bottom,w.h=w.left+w.right,w.top&&this.scrollTop<=0&&this.session&&this.session.setScrollTop(-w.top),this.updateFull()},L.prototype.setMargin=function(T,k,x,C){var w=this.margin;w.top=T|0,w.bottom=k|0,w.right=C|0,w.left=x|0,w.v=w.top+w.bottom,w.h=w.left+w.right,this.$updateCachedSize(!0,this.gutterWidth,this.$size.width,this.$size.height),this.updateFull()},L.prototype.getHScrollBarAlwaysVisible=function(){return this.$hScrollBarAlwaysVisible},L.prototype.setHScrollBarAlwaysVisible=function(T){this.setOption("hScrollBarAlwaysVisible",T)},L.prototype.getVScrollBarAlwaysVisible=function(){return this.$vScrollBarAlwaysVisible},L.prototype.setVScrollBarAlwaysVisible=function(T){this.setOption("vScrollBarAlwaysVisible",T)},L.prototype.$updateScrollBarV=function(){var T=this.layerConfig.maxHeight,k=this.$size.scrollerHeight;!this.$maxLines&&this.$scrollPastEnd&&(T-=(k-this.lineHeight)*this.$scrollPastEnd,this.scrollTop>T-k&&(T=this.scrollTop+k,this.scrollBarV.scrollTop=null)),this.scrollBarV.setScrollHeight(T+this.scrollMargin.v),this.scrollBarV.setScrollTop(this.scrollTop+this.scrollMargin.top)},L.prototype.$updateScrollBarH=function(){this.scrollBarH.setScrollWidth(this.layerConfig.width+2*this.$padding+this.scrollMargin.h),this.scrollBarH.setScrollLeft(this.scrollLeft+this.scrollMargin.left)},L.prototype.freeze=function(){this.$frozen=!0},L.prototype.unfreeze=function(){this.$frozen=!1},L.prototype.$renderChanges=function(T,k){if(this.$changes&&(T|=this.$changes,this.$changes=0),!this.session||!this.container.offsetWidth||this.$frozen||!T&&!k){this.$changes|=T;return}if(this.$size.$dirty)return this.$changes|=T,this.onResize(!0);this.lineHeight||this.$textLayer.checkForSizeChanges(),this._signal("beforeRender",T),this.session&&this.session.$bidiHandler&&this.session.$bidiHandler.updateCharacterWidths(this.$fontMetrics);var x=this.layerConfig;if(T&this.CHANGE_FULL||T&this.CHANGE_SIZE||T&this.CHANGE_TEXT||T&this.CHANGE_LINES||T&this.CHANGE_SCROLL||T&this.CHANGE_H_SCROLL){if(T|=this.$computeLayerConfig()|this.$loop.clear(),x.firstRow!=this.layerConfig.firstRow&&x.firstRowScreen==this.layerConfig.firstRowScreen){var C=this.scrollTop+(x.firstRow-Math.max(this.layerConfig.firstRow,0))*this.lineHeight;C>0&&(this.scrollTop=C,T=T|this.CHANGE_SCROLL,T|=this.$computeLayerConfig()|this.$loop.clear())}x=this.layerConfig,this.$updateScrollBarV(),T&this.CHANGE_H_SCROLL&&this.$updateScrollBarH(),d.translate(this.content,-this.scrollLeft,-x.offset);var w=x.width+2*this.$padding+"px",A=x.minHeight+"px";d.setStyle(this.content.style,"width",w),d.setStyle(this.content.style,"height",A)}if(T&this.CHANGE_H_SCROLL&&(d.translate(this.content,-this.scrollLeft,-x.offset),this.scroller.className=this.scrollLeft<=0?"ace_scroller ":"ace_scroller ace_scroll-left ",this.enableKeyboardAccessibility&&(this.scroller.className+=this.keyboardFocusClassName)),T&this.CHANGE_FULL){this.$changedLines=null,this.$textLayer.update(x),this.$showGutter&&this.$gutterLayer.update(x),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(x),this.$markerBack.update(x),this.$markerFront.update(x),this.$cursorLayer.update(x),this.$moveTextAreaToCursor(),this._signal("afterRender",T);return}if(T&this.CHANGE_SCROLL){this.$changedLines=null,T&this.CHANGE_TEXT||T&this.CHANGE_LINES?this.$textLayer.update(x):this.$textLayer.scrollLines(x),this.$showGutter&&(T&this.CHANGE_GUTTER||T&this.CHANGE_LINES?this.$gutterLayer.update(x):this.$gutterLayer.scrollLines(x)),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(x),this.$markerBack.update(x),this.$markerFront.update(x),this.$cursorLayer.update(x),this.$moveTextAreaToCursor(),this._signal("afterRender",T);return}T&this.CHANGE_TEXT?(this.$changedLines=null,this.$textLayer.update(x),this.$showGutter&&this.$gutterLayer.update(x),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(x)):T&this.CHANGE_LINES?((this.$updateLines()||T&this.CHANGE_GUTTER&&this.$showGutter)&&this.$gutterLayer.update(x),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(x)):T&this.CHANGE_TEXT||T&this.CHANGE_GUTTER?(this.$showGutter&&this.$gutterLayer.update(x),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(x)):T&this.CHANGE_CURSOR&&(this.$highlightGutterLine&&this.$gutterLayer.updateLineHighlight(x),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(x)),T&this.CHANGE_CURSOR&&(this.$cursorLayer.update(x),this.$moveTextAreaToCursor()),T&(this.CHANGE_MARKER|this.CHANGE_MARKER_FRONT)&&this.$markerFront.update(x),T&(this.CHANGE_MARKER|this.CHANGE_MARKER_BACK)&&this.$markerBack.update(x),this._signal("afterRender",T)},L.prototype.$autosize=function(){var T=this.session.getScreenLength()*this.lineHeight,k=this.$maxLines*this.lineHeight,x=Math.min(k,Math.max((this.$minLines||1)*this.lineHeight,T))+this.scrollMargin.v+(this.$extraHeight||0);this.$horizScroll&&(x+=this.scrollBarH.getHeight()),this.$maxPixelHeight&&x>this.$maxPixelHeight&&(x=this.$maxPixelHeight);var C=x<=2*this.lineHeight,w=!C&&T>k;if(x!=this.desiredHeight||this.$size.height!=this.desiredHeight||w!=this.$vScroll){w!=this.$vScroll&&(this.$vScroll=w,this.scrollBarV.setVisible(w));var A=this.container.clientWidth;this.container.style.height=x+"px",this.$updateCachedSize(!0,this.$gutterWidth,A,x),this.desiredHeight=x,this._signal("autosize")}},L.prototype.$computeLayerConfig=function(){var T=this.session,k=this.$size,x=k.height<=2*this.lineHeight,C=this.session.getScreenLength(),w=C*this.lineHeight,A=this.$getLongestLine(),E=!x&&(this.$hScrollBarAlwaysVisible||k.scrollerWidth-A-2*this.$padding<0),R=this.$horizScroll!==E;R&&(this.$horizScroll=E,this.scrollBarH.setVisible(E));var I=this.$vScroll;this.$maxLines&&this.lineHeight>1&&this.$autosize();var N=k.scrollerHeight+this.lineHeight,F=!this.$maxLines&&this.$scrollPastEnd?(k.scrollerHeight-this.lineHeight)*this.$scrollPastEnd:0;w+=F;var z=this.scrollMargin;this.session.setScrollTop(Math.max(-z.top,Math.min(this.scrollTop,w-k.scrollerHeight+z.bottom))),this.session.setScrollLeft(Math.max(-z.left,Math.min(this.scrollLeft,A+2*this.$padding-k.scrollerWidth+z.right)));var U=!x&&(this.$vScrollBarAlwaysVisible||k.scrollerHeight-w+F<0||this.scrollTop>z.top),j=I!==U;j&&(this.$vScroll=U,this.scrollBarV.setVisible(U));var B=this.scrollTop%this.lineHeight,V=Math.ceil(N/this.lineHeight)-1,Q=Math.max(0,Math.round((this.scrollTop-B)/this.lineHeight)),H=Q+V,Z,X,q=this.lineHeight;Q=T.screenToDocumentRow(Q,0);var ue=T.getFoldLine(Q);ue&&(Q=ue.start.row),Z=T.documentToScreenRow(Q,0),X=T.getRowLength(Q)*q,H=Math.min(T.screenToDocumentRow(H,0),T.getLength()-1),N=k.scrollerHeight+T.getRowLength(H)*q+X,B=this.scrollTop-Z*q;var we=0;return(this.layerConfig.width!=A||R)&&(we=this.CHANGE_H_SCROLL),(R||j)&&(we|=this.$updateCachedSize(!0,this.gutterWidth,k.width,k.height),this._signal("scrollbarVisibilityChanged"),j&&(A=this.$getLongestLine())),this.layerConfig={width:A,padding:this.$padding,firstRow:Q,firstRowScreen:Z,lastRow:H,lineHeight:q,characterWidth:this.characterWidth,minHeight:N,maxHeight:w,offset:B,gutterOffset:q?Math.max(0,Math.ceil((B+k.height-k.scrollerHeight)/q)):0,height:this.$size.scrollerHeight},this.session.$bidiHandler&&this.session.$bidiHandler.setContentWidth(A-this.$padding),we},L.prototype.$updateLines=function(){if(this.$changedLines){var T=this.$changedLines.firstRow,k=this.$changedLines.lastRow;this.$changedLines=null;var x=this.layerConfig;if(!(T>x.lastRow+1)&&!(kthis.$textLayer.MAX_LINE_LENGTH&&(T=this.$textLayer.MAX_LINE_LENGTH+30),Math.max(this.$size.scrollerWidth-2*this.$padding,Math.round(T*this.characterWidth))},L.prototype.updateFrontMarkers=function(){this.$markerFront.setMarkers(this.session.getMarkers(!0)),this.$loop.schedule(this.CHANGE_MARKER_FRONT)},L.prototype.updateBackMarkers=function(){this.$markerBack.setMarkers(this.session.getMarkers()),this.$loop.schedule(this.CHANGE_MARKER_BACK)},L.prototype.addGutterDecoration=function(T,k){this.$gutterLayer.addGutterDecoration(T,k)},L.prototype.removeGutterDecoration=function(T,k){this.$gutterLayer.removeGutterDecoration(T,k)},L.prototype.updateBreakpoints=function(T){this._rows=T,this.$loop.schedule(this.CHANGE_GUTTER)},L.prototype.setAnnotations=function(T){this.$gutterLayer.setAnnotations(T),this.$loop.schedule(this.CHANGE_GUTTER)},L.prototype.updateCursor=function(){this.$loop.schedule(this.CHANGE_CURSOR)},L.prototype.hideCursor=function(){this.$cursorLayer.hideCursor()},L.prototype.showCursor=function(){this.$cursorLayer.showCursor()},L.prototype.scrollSelectionIntoView=function(T,k,x){this.scrollCursorIntoView(T,x),this.scrollCursorIntoView(k,x)},L.prototype.scrollCursorIntoView=function(T,k,x){if(this.$size.scrollerHeight!==0){var C=this.$cursorLayer.getPixelPosition(T),w=C.left,A=C.top,E=x&&x.top||0,R=x&&x.bottom||0;this.$scrollAnimation&&(this.$stopAnimation=!0);var I=this.$scrollAnimation?this.session.getScrollTop():this.scrollTop;I+E>A?(k&&I+E>A+this.lineHeight&&(A-=k*this.$size.scrollerHeight),A===0&&(A=-this.scrollMargin.top),this.session.setScrollTop(A)):I+this.$size.scrollerHeight-R=1-this.scrollMargin.top||k>0&&this.session.getScrollTop()+this.$size.scrollerHeight-this.layerConfig.maxHeight<-1+this.scrollMargin.bottom||T<0&&this.session.getScrollLeft()>=1-this.scrollMargin.left||T>0&&this.session.getScrollLeft()+this.$size.scrollerWidth-this.layerConfig.width<-1+this.scrollMargin.right)return!0},L.prototype.pixelToScreenCoordinates=function(T,k){var x;if(this.$hasCssTransforms){x={top:0,left:0};var C=this.$fontMetrics.transformCoordinates([T,k]);T=C[1]-this.gutterWidth-this.margin.left,k=C[0]}else x=this.scroller.getBoundingClientRect();var w=T+this.scrollLeft-x.left-this.$padding,A=w/this.characterWidth,E=Math.floor((k+this.scrollTop-x.top)/this.lineHeight),R=this.$blockCursor?Math.floor(A):Math.round(A);return{row:E,column:R,side:A-R>0?1:-1,offsetX:w}},L.prototype.screenToTextCoordinates=function(T,k){var x;if(this.$hasCssTransforms){x={top:0,left:0};var C=this.$fontMetrics.transformCoordinates([T,k]);T=C[1]-this.gutterWidth-this.margin.left,k=C[0]}else x=this.scroller.getBoundingClientRect();var w=T+this.scrollLeft-x.left-this.$padding,A=w/this.characterWidth,E=this.$blockCursor?Math.floor(A):Math.round(A),R=Math.floor((k+this.scrollTop-x.top)/this.lineHeight);return this.session.screenToDocumentPosition(R,Math.max(E,0),w)},L.prototype.textToScreenCoordinates=function(T,k){var x=this.scroller.getBoundingClientRect(),C=this.session.documentToScreenPosition(T,k),w=this.$padding+(this.session.$bidiHandler.isBidiRow(C.row,T)?this.session.$bidiHandler.getPosLeft(C.column):Math.round(C.column*this.characterWidth)),A=C.row*this.lineHeight;return{pageX:x.left+w-this.scrollLeft,pageY:x.top+A-this.scrollTop}},L.prototype.visualizeFocus=function(){d.addCssClass(this.container,"ace_focus")},L.prototype.visualizeBlur=function(){d.removeCssClass(this.container,"ace_focus")},L.prototype.showComposition=function(T){this.$composition=T,T.cssText||(T.cssText=this.textarea.style.cssText),T.useTextareaForIME==null&&(T.useTextareaForIME=this.$useTextareaForIME),this.$useTextareaForIME?(d.addCssClass(this.textarea,"ace_composition"),this.textarea.style.cssText="",this.$moveTextAreaToCursor(),this.$cursorLayer.element.style.display="none"):T.markerId=this.session.addMarker(T.markerRange,"ace_composition_marker","text")},L.prototype.setCompositionText=function(T){var k=this.session.selection.cursor;this.addToken(T,"composition_placeholder",k.row,k.column),this.$moveTextAreaToCursor()},L.prototype.hideComposition=function(){if(this.$composition){this.$composition.markerId&&this.session.removeMarker(this.$composition.markerId),d.removeCssClass(this.textarea,"ace_composition"),this.textarea.style.cssText=this.$composition.cssText;var T=this.session.selection.cursor;this.removeExtraToken(T.row,T.column),this.$composition=null,this.$cursorLayer.element.style.display=""}},L.prototype.setGhostText=function(T,k){var x=this.session.selection.cursor,C=k||{row:x.row,column:x.column};this.removeGhostText();var w=this.$calculateWrappedTextChunks(T,C);this.addToken(w[0].text,"ghost_text",C.row,C.column),this.$ghostText={text:T,position:{row:C.row,column:C.column}};var A=d.createElement("div");if(w.length>1){var E=this.hideTokensAfterPosition(C.row,C.column),R;w.slice(1).forEach(function(j){var B=d.createElement("div"),V=d.createElement("span");V.className="ace_ghost_text",j.wrapped&&(B.className="ghost_text_line_wrapped"),j.text.length===0&&(j.text=" "),V.appendChild(d.createTextNode(j.text)),B.appendChild(V),A.appendChild(B),R=B}),E.forEach(function(j){var B=d.createElement("span");M(j.type)||(B.className="ace_"+j.type.replace(/\./g," ace_")),B.appendChild(d.createTextNode(j.value)),R.appendChild(B)}),this.$ghostTextWidget={el:A,row:C.row,column:C.column,className:"ace_ghost_text_container"},this.session.widgetManager.addLineWidget(this.$ghostTextWidget);var I=this.$cursorLayer.getPixelPosition(C,!0),N=this.container,F=N.getBoundingClientRect().height,z=w.length*this.lineHeight,U=z0){var N=0;I.push(w[E].length);for(var F=0;F1||Math.abs(T.$size.height-C)>1?T.$resizeTimer.delay():T.$resizeTimer.cancel()}),this.$resizeObserver.observe(this.container)}},L}();O.prototype.CHANGE_CURSOR=1,O.prototype.CHANGE_MARKER=2,O.prototype.CHANGE_GUTTER=4,O.prototype.CHANGE_SCROLL=8,O.prototype.CHANGE_LINES=16,O.prototype.CHANGE_TEXT=32,O.prototype.CHANGE_SIZE=64,O.prototype.CHANGE_MARKER_BACK=128,O.prototype.CHANGE_MARKER_FRONT=256,O.prototype.CHANGE_FULL=512,O.prototype.CHANGE_H_SCROLL=1024,O.prototype.$changes=0,O.prototype.$padding=null,O.prototype.$frozen=!1,O.prototype.STEPS=8,a.implement(O.prototype,$),l.defineOptions(O.prototype,"renderer",{useResizeObserver:{set:function(L){!L&&this.$resizeObserver?(this.$resizeObserver.disconnect(),this.$resizeTimer.cancel(),this.$resizeTimer=this.$resizeObserver=null):L&&!this.$resizeObserver&&this.$addResizeObserver()}},animatedScroll:{initialValue:!1},showInvisibles:{set:function(L){this.$textLayer.setShowInvisibles(L)&&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(L){typeof L=="number"&&(this.$printMarginColumn=L),this.$showPrintMargin=!!L,this.$updatePrintMargin()},get:function(){return this.$showPrintMargin&&this.$printMarginColumn}},showGutter:{set:function(L){this.$gutter.style.display=L?"block":"none",this.$loop.schedule(this.CHANGE_FULL),this.onGutterResize()},initialValue:!0},useSvgGutterIcons:{set:function(L){this.$gutterLayer.$useSvgGutterIcons=L},initialValue:!1},showFoldedAnnotations:{set:function(L){this.$gutterLayer.$showFoldedAnnotations=L},initialValue:!1},fadeFoldWidgets:{set:function(L){d.setCssClass(this.$gutter,"ace_fade-fold-widgets",L)},initialValue:!1},showFoldWidgets:{set:function(L){this.$gutterLayer.setShowFoldWidgets(L),this.$loop.schedule(this.CHANGE_GUTTER)},initialValue:!0},displayIndentGuides:{set:function(L){this.$textLayer.setDisplayIndentGuides(L)&&this.$loop.schedule(this.CHANGE_TEXT)},initialValue:!0},highlightIndentGuides:{set:function(L){this.$textLayer.setHighlightIndentGuides(L)==!0?this.$textLayer.$highlightIndentGuide():this.$textLayer.$clearActiveIndentGuide(this.$textLayer.$lines.cells)},initialValue:!0},highlightGutterLine:{set:function(L){this.$gutterLayer.setHighlightGutterLine(L),this.$loop.schedule(this.CHANGE_GUTTER)},initialValue:!0},hScrollBarAlwaysVisible:{set:function(L){(!this.$hScrollBarAlwaysVisible||!this.$horizScroll)&&this.$loop.schedule(this.CHANGE_SCROLL)},initialValue:!1},vScrollBarAlwaysVisible:{set:function(L){(!this.$vScrollBarAlwaysVisible||!this.$vScroll)&&this.$loop.schedule(this.CHANGE_SCROLL)},initialValue:!1},fontSize:{set:function(L){typeof L=="number"&&(L=L+"px"),this.container.style.fontSize=L,this.updateFontSize()},initialValue:12},fontFamily:{set:function(L){this.container.style.fontFamily=L,this.updateFontSize()}},maxLines:{set:function(L){this.updateFull()}},minLines:{set:function(L){this.$minLines<562949953421311||(this.$minLines=0),this.updateFull()}},maxPixelHeight:{set:function(L){this.updateFull()},initialValue:0},scrollPastEnd:{set:function(L){L=+L||0,this.$scrollPastEnd!=L&&(this.$scrollPastEnd=L,this.$loop.schedule(this.CHANGE_SCROLL))},initialValue:0,handlesSet:!0},fixedWidthGutter:{set:function(L){this.$gutterLayer.$fixedWidth=!!L,this.$loop.schedule(this.CHANGE_GUTTER)}},customScrollbar:{set:function(L){this.$updateCustomScrollbar(L)},initialValue:!1},theme:{set:function(L){this.setTheme(L)},get:function(){return this.$themeId||this.theme},initialValue:"./theme/textmate",handlesSet:!0},hasCssTransforms:{},useTextareaForIME:{initialValue:!b.isMobile&&!b.isIE}}),i.VirtualRenderer=O}),ace.define("ace/worker/worker_client",["require","exports","module","ace/lib/oop","ace/lib/net","ace/lib/event_emitter","ace/config"],function(n,i,s){var a=n("../lib/oop"),d=n("../lib/net"),g=n("../lib/event_emitter").EventEmitter,l=n("../config");function p(u){var h="importScripts('"+d.qualifyURL(u)+"');";try{return new Blob([h],{type:"application/javascript"})}catch{var f=window.BlobBuilder||window.WebKitBlobBuilder||window.MozBlobBuilder,m=new f;return m.append(h),m.getBlob("application/javascript")}}function o(u){if(typeof Worker>"u")return{postMessage:function(){},terminate:function(){}};if(l.get("loadWorkerFromBlob")){var h=p(u),f=window.URL||window.webkitURL,m=f.createObjectURL(h);return new Worker(m)}return new Worker(u)}var r=function(u){u.postMessage||(u=this.$createWorkerFromOldConfig.apply(this,arguments)),this.$worker=u,this.$sendDeltaQueue=this.$sendDeltaQueue.bind(this),this.changeListener=this.changeListener.bind(this),this.onMessage=this.onMessage.bind(this),this.callbackId=1,this.callbacks={},this.$worker.onmessage=this.onMessage};(function(){a.implement(this,g),this.$createWorkerFromOldConfig=function(u,h,f,m,v){if(n.nameToUrl&&!n.toUrl&&(n.toUrl=n.nameToUrl),l.get("packaged")||!n.toUrl)m=m||l.moduleUrl(h,"worker");else{var y=this.$normalizePath;m=m||y(n.toUrl("ace/worker/worker.js",null,"_"));var $={};u.forEach(function(_){$[_]=y(n.toUrl(_,null,"_").replace(/(\.js)?(\?.*)?$/,""))})}return this.$worker=o(m),v&&this.send("importScripts",v),this.$worker.postMessage({init:!0,tlns:$,module:h,classname:f}),this.$worker},this.onMessage=function(u){var h=u.data;switch(h.type){case"event":this._signal(h.name,{data:h.data});break;case"call":var f=this.callbacks[h.id];f&&(f(h.data),delete this.callbacks[h.id]);break;case"error":this.reportError(h.data);break;case"log":window.console&&console.log&&console.log.apply(console,h.data);break}},this.reportError=function(u){window.console&&console.error&&console.error(u)},this.$normalizePath=function(u){return d.qualifyURL(u)},this.terminate=function(){this._signal("terminate",{}),this.deltaQueue=null,this.$worker.terminate(),this.$worker.onerror=function(u){u.preventDefault()},this.$worker=null,this.$doc&&this.$doc.off("change",this.changeListener),this.$doc=null},this.send=function(u,h){this.$worker.postMessage({command:u,args:h})},this.call=function(u,h,f){if(f){var m=this.callbackId++;this.callbacks[m]=f,h.push(m)}this.send(u,h)},this.emit=function(u,h){try{h.data&&h.data.err&&(h.data.err={message:h.data.err.message,stack:h.data.err.stack,code:h.data.err.code}),this.$worker&&this.$worker.postMessage({event:u,data:{data:h.data}})}catch(f){console.error(f.stack)}},this.attachToDocument=function(u){this.$doc&&this.terminate(),this.$doc=u,this.call("setValue",[u.getValue()]),u.on("change",this.changeListener,!0)},this.changeListener=function(u){this.deltaQueue||(this.deltaQueue=[],setTimeout(this.$sendDeltaQueue,0)),u.action=="insert"?this.deltaQueue.push(u.start,u.lines):this.deltaQueue.push(u.start,u.end)},this.$sendDeltaQueue=function(){var u=this.deltaQueue;u&&(this.deltaQueue=null,u.length>50&&u.length>this.$doc.getLength()>>1?this.call("setValue",[this.$doc.getValue()]):this.emit("change",{data:u}))}}).call(r.prototype);var c=function(u,h,f){var m=null,v=!1,y=Object.create(g),$=[],_=new r({messageBuffer:$,terminate:function(){},postMessage:function(b){$.push(b),m&&(v?setTimeout(S):S())}});_.setEmitSync=function(b){v=b};var S=function(){var b=$.shift();b.command?m[b.command].apply(m,b.args):b.event&&y._signal(b.event,b.data)};return y.postMessage=function(b){_.onMessage({data:b})},y.callback=function(b,M){this.postMessage({type:"call",id:M,data:b})},y.emit=function(b,M){this.postMessage({type:"event",name:b,data:M})},l.loadModule(["worker",h],function(b){for(m=new b[f](y);$.length;)S()}),_};i.UIWorkerClient=c,i.WorkerClient=r,i.createWorker=o}),ace.define("ace/placeholder",["require","exports","module","ace/range","ace/lib/event_emitter","ace/lib/oop"],function(n,i,s){var a=n("./range").Range,d=n("./lib/event_emitter").EventEmitter,g=n("./lib/oop"),l=function(){function p(o,r,c,u,h,f){var m=this;this.length=r,this.session=o,this.doc=o.getDocument(),this.mainClass=h,this.othersClass=f,this.$onUpdate=this.onUpdate.bind(this),this.doc.on("change",this.$onUpdate,!0),this.$others=u,this.$onCursorChange=function(){setTimeout(function(){m.onCursorChange()})},this.$pos=c;var v=o.getUndoManager().$undoStack||o.getUndoManager().$undostack||{length:-1};this.$undoStackDepth=v.length,this.setup(),o.selection.on("changeCursor",this.$onCursorChange)}return p.prototype.setup=function(){var o=this,r=this.doc,c=this.session;this.selectionBefore=c.selection.toJSON(),c.selection.inMultiSelectMode&&c.selection.toSingleRange(),this.pos=r.createAnchor(this.$pos.row,this.$pos.column);var u=this.pos;u.$insertRight=!0,u.detach(),u.markerId=c.addMarker(new a(u.row,u.column,u.row,u.column+this.length),this.mainClass,null,!1),this.others=[],this.$others.forEach(function(h){var f=r.createAnchor(h.row,h.column);f.$insertRight=!0,f.detach(),o.others.push(f)}),c.setUndoSelect(!1)},p.prototype.showOtherMarkers=function(){if(!this.othersActive){var o=this.session,r=this;this.othersActive=!0,this.others.forEach(function(c){c.markerId=o.addMarker(new a(c.row,c.column,c.row,c.column+r.length),r.othersClass,null,!1)})}},p.prototype.hideOtherMarkers=function(){if(this.othersActive){this.othersActive=!1;for(var o=0;o=this.pos.column&&r.start.column<=this.pos.column+this.length+1,h=r.start.column-this.pos.column;if(this.updateAnchors(o),u&&(this.length+=c),u&&!this.session.$fromUndo){if(o.action==="insert")for(var f=this.others.length-1;f>=0;f--){var m=this.others[f],v={row:m.row,column:m.column+h};this.doc.insertMergedLines(v,o.lines)}else if(o.action==="remove")for(var f=this.others.length-1;f>=0;f--){var m=this.others[f],v={row:m.row,column:m.column+h};this.doc.remove(new a(v.row,v.column,v.row,v.column-c))}}this.$updating=!1,this.updateMarkers()}},p.prototype.updateAnchors=function(o){this.pos.onChange(o);for(var r=this.others.length;r--;)this.others[r].onChange(o);this.updateMarkers()},p.prototype.updateMarkers=function(){if(!this.$updating){var o=this,r=this.session,c=function(h,f){r.removeMarker(h.markerId),h.markerId=r.addMarker(new a(h.row,h.column,h.row,h.column+o.length),f,null,!1)};c(this.pos,this.mainClass);for(var u=this.others.length;u--;)c(this.others[u],this.othersClass)}},p.prototype.onCursorChange=function(o){if(!(this.$updating||!this.session)){var r=this.session.selection.getCursor();r.row===this.pos.row&&r.column>=this.pos.column&&r.column<=this.pos.column+this.length?(this.showOtherMarkers(),this._emit("cursorEnter",o)):(this.hideOtherMarkers(),this._emit("cursorLeave",o))}},p.prototype.detach=function(){this.session.removeMarker(this.pos&&this.pos.markerId),this.hideOtherMarkers(),this.doc.off("change",this.$onUpdate),this.session.selection.off("changeCursor",this.$onCursorChange),this.session.setUndoSelect(!0),this.session=null},p.prototype.cancel=function(){if(this.$undoStackDepth!==-1){for(var o=this.session.getUndoManager(),r=(o.$undoStack||o.$undostack).length-this.$undoStackDepth,c=0;c1?d.multiSelect.joinSelections():d.multiSelect.splitIntoLines()},bindKey:{win:"Ctrl-Alt-L",mac:"Ctrl-Alt-L"},readOnly:!0},{name:"splitSelectionIntoLines",description:"Split into lines",exec:function(d){d.multiSelect.splitIntoLines()},readOnly:!0},{name:"alignCursors",description:"Align cursors",exec:function(d){d.alignCursors()},bindKey:{win:"Ctrl-Alt-A",mac:"Ctrl-Alt-A"},scrollIntoView:"cursor"},{name:"findAll",description:"Find all",exec:function(d){d.findAll()},bindKey:{win:"Ctrl-Alt-K",mac:"Ctrl-Alt-G"},scrollIntoView:"cursor",readOnly:!0}],i.multiSelectCommands=[{name:"singleSelection",description:"Single selection",bindKey:"esc",exec:function(d){d.exitMultiSelectMode()},scrollIntoView:"cursor",readOnly:!0,isAvailable:function(d){return d&&d.inMultiSelectMode}}];var a=n("../keyboard/hash_handler").HashHandler;i.keyboardHandler=new a(i.multiSelectCommands)}),ace.define("ace/multi_select",["require","exports","module","ace/range_list","ace/range","ace/selection","ace/mouse/multi_select_handler","ace/lib/event","ace/lib/lang","ace/commands/multi_select_commands","ace/search","ace/edit_session","ace/editor","ace/config"],function(n,i,s){var a=n("./range_list").RangeList,d=n("./range").Range,g=n("./selection").Selection,l=n("./mouse/multi_select_handler").onMouseDown,p=n("./lib/event"),o=n("./lib/lang"),r=n("./commands/multi_select_commands");i.commands=r.defaultCommands.concat(r.multiSelectCommands);var c=n("./search").Search,u=new c;function h(_,S,b){return u.$options.wrap=!0,u.$options.needle=S,u.$options.backwards=b==-1,u.find(_)}var f=n("./edit_session").EditSession;(function(){this.getSelectionMarkers=function(){return this.$selectionMarkers}}).call(f.prototype),(function(){this.ranges=null,this.rangeList=null,this.addRange=function(_,S){if(_){if(!this.inMultiSelectMode&&this.rangeCount===0){var b=this.toOrientedRange();if(this.rangeList.add(b),this.rangeList.add(_),this.rangeList.ranges.length!=2)return this.rangeList.removeAll(),S||this.fromOrientedRange(_);this.rangeList.removeAll(),this.rangeList.add(b),this.$onAddRange(b)}_.cursor||(_.cursor=_.end);var M=this.rangeList.add(_);return this.$onAddRange(_),M.length&&this.$onRemoveRange(M),this.rangeCount>1&&!this.inMultiSelectMode&&(this._signal("multiSelect"),this.inMultiSelectMode=!0,this.session.$undoSelect=!1,this.rangeList.attach(this.session)),S||this.fromOrientedRange(_)}},this.toSingleRange=function(_){_=_||this.ranges[0];var S=this.rangeList.removeAll();S.length&&this.$onRemoveRange(S),_&&this.fromOrientedRange(_)},this.substractPoint=function(_){var S=this.rangeList.substractPoint(_);if(S)return this.$onRemoveRange(S),S[0]},this.mergeOverlappingRanges=function(){var _=this.rangeList.merge();_.length&&this.$onRemoveRange(_)},this.$onAddRange=function(_){this.rangeCount=this.rangeList.ranges.length,this.ranges.unshift(_),this._signal("addRange",{range:_})},this.$onRemoveRange=function(_){if(this.rangeCount=this.rangeList.ranges.length,this.rangeCount==1&&this.inMultiSelectMode){var S=this.rangeList.ranges.pop();_.push(S),this.rangeCount=0}for(var b=_.length;b--;){var M=this.ranges.indexOf(_[b]);this.ranges.splice(M,1)}this._signal("removeRange",{ranges:_}),this.rangeCount===0&&this.inMultiSelectMode&&(this.inMultiSelectMode=!1,this._signal("singleSelect"),this.session.$undoSelect=!0,this.rangeList.detach(this.session)),S=S||this.ranges[0],S&&!S.isEqual(this.getRange())&&this.fromOrientedRange(S)},this.$initRangeList=function(){this.rangeList||(this.rangeList=new a,this.ranges=[],this.rangeCount=0)},this.getAllRanges=function(){return this.rangeCount?this.rangeList.ranges.concat():[this.getRange()]},this.splitIntoLines=function(){for(var _=this.ranges.length?this.ranges:[this.getRange()],S=[],b=0;b<_.length;b++){var M=_[b],O=M.start.row,L=M.end.row;if(O===L)S.push(M.clone());else{for(S.push(new d(O,M.start.column,O,this.session.getLine(O).length));++O1){var _=this.rangeList.ranges,S=_[_.length-1],b=d.fromPoints(_[0].start,S.end);this.toSingleRange(),this.setSelectionRange(b,S.cursor==S.start)}else{var M=this.session.documentToScreenPosition(this.cursor),O=this.session.documentToScreenPosition(this.anchor),L=this.rectangularRangeBlock(M,O);L.forEach(this.addRange,this)}},this.rectangularRangeBlock=function(_,S,b){var M=[],O=_.column0;)N--;if(N>0)for(var F=0;M[F].isEmpty();)F++;for(var z=N;z>=F;z--)M[z].isEmpty()&&M.splice(z,1)}return M}}).call(g.prototype);var m=n("./editor").Editor;(function(){this.updateSelectionMarkers=function(){this.renderer.updateCursor(),this.renderer.updateBackMarkers()},this.addSelectionMarker=function(_){_.cursor||(_.cursor=_.end);var S=this.getSelectionStyle();return _.marker=this.session.addMarker(_,"ace_selection",S),this.session.$selectionMarkers.push(_),this.session.selectionMarkerCount=this.session.$selectionMarkers.length,_},this.removeSelectionMarker=function(_){if(_.marker){this.session.removeMarker(_.marker);var S=this.session.$selectionMarkers.indexOf(_);S!=-1&&this.session.$selectionMarkers.splice(S,1),this.session.selectionMarkerCount=this.session.$selectionMarkers.length}},this.removeSelectionMarkers=function(_){for(var S=this.session.$selectionMarkers,b=_.length;b--;){var M=_[b];if(M.marker){this.session.removeMarker(M.marker);var O=S.indexOf(M);O!=-1&&S.splice(O,1)}}this.session.selectionMarkerCount=S.length},this.$onAddRange=function(_){this.addSelectionMarker(_.range),this.renderer.updateCursor(),this.renderer.updateBackMarkers()},this.$onRemoveRange=function(_){this.removeSelectionMarkers(_.ranges),this.renderer.updateCursor(),this.renderer.updateBackMarkers()},this.$onMultiSelect=function(_){this.inMultiSelectMode||(this.inMultiSelectMode=!0,this.setStyle("ace_multiselect"),this.keyBinding.addKeyboardHandler(r.keyboardHandler),this.commands.setDefaultHandler("exec",this.$onMultiSelectExec),this.renderer.updateCursor(),this.renderer.updateBackMarkers())},this.$onSingleSelect=function(_){this.session.multiSelect.inVirtualMode||(this.inMultiSelectMode=!1,this.unsetStyle("ace_multiselect"),this.keyBinding.removeKeyboardHandler(r.keyboardHandler),this.commands.removeDefaultHandler("exec",this.$onMultiSelectExec),this.renderer.updateCursor(),this.renderer.updateBackMarkers(),this._emit("changeSelection"))},this.$onMultiSelectExec=function(_){var S=_.command,b=_.editor;if(b.multiSelect){if(S.multiSelectAction)S.multiSelectAction=="forEach"?M=b.forEachSelection(S,_.args):S.multiSelectAction=="forEachLine"?M=b.forEachSelection(S,_.args,!0):S.multiSelectAction=="single"?(b.exitMultiSelectMode(),M=S.exec(b,_.args||{})):M=S.multiSelectAction(b,_.args||{});else{var M=S.exec(b,_.args||{});b.multiSelect.addRange(b.multiSelect.toOrientedRange()),b.multiSelect.mergeOverlappingRanges()}return M}},this.forEachSelection=function(_,S,b){if(!this.inVirtualSelectionMode){var M=b&&b.keepOrder,O=b==!0||b&&b.$byLines,L=this.session,T=this.selection,k=T.rangeList,x=(M?T:k).ranges,C;if(!x.length)return _.exec?_.exec(this,S||{}):_(this,S||{});var w=T._eventRegistry;T._eventRegistry={};var A=new g(L);this.inVirtualSelectionMode=!0;for(var E=x.length;E--;){if(O)for(;E>0&&x[E].start.row==x[E-1].end.row;)E--;A.fromOrientedRange(x[E]),A.index=E,this.selection=L.selection=A;var R=_.exec?_.exec(this,S||{}):_(this,S||{});!C&&R!==void 0&&(C=R),A.toOrientedRange(x[E])}A.detach(),this.selection=L.selection=T,this.inVirtualSelectionMode=!1,T._eventRegistry=w,T.mergeOverlappingRanges(),T.ranges[0]&&T.fromOrientedRange(T.ranges[0]);var I=this.renderer.$scrollAnimation;return this.onCursorChange(),this.onSelectionChange(),I&&I.from==I.to&&this.renderer.animateScrolling(I.from),C}},this.exitMultiSelectMode=function(){!this.inMultiSelectMode||this.inVirtualSelectionMode||this.multiSelect.toSingleRange()},this.getSelectedText=function(){var _="";if(this.inMultiSelectMode&&!this.inVirtualSelectionMode){for(var S=this.multiSelect.rangeList.ranges,b=[],M=0;M0);T<0&&(T=0),k>=C&&(k=C-1)}var A=this.session.removeFullLines(T,k);A=this.$reAlignText(A,x),this.session.insert({row:T,column:0},A.join(` `)+` `),x||(L.start.column=0,L.end.column=A[A.length-1].length),this.selection.setRange(L)}else{O.forEach(function(N){S.substractPoint(N.cursor)});var E=0,R=1/0,I=b.map(function(N){var F=N.cursor,z=_.getLine(F.row),U=z.substr(F.column).search(/\S/g);return U==-1&&(U=0),F.column>E&&(E=F.column),Uj?_.insert(z,o.stringRepeat(" ",U-j)):_.remove(new d(z.row,z.column,z.row,z.column-U+j)),N.start.column=N.end.column=E,N.start.row=N.end.row=z.row,N.cursor=N.end}),S.fromOrientedRange(b[0]),this.renderer.updateCursor(),this.renderer.updateBackMarkers()}},this.$reAlignText=function(_,S){var b=!0,M=!0,O,L,T;return _.map(function(A){var E=A.match(/(\s*)(.*?)(\s*)([=:].*)/);return E?O==null?(O=E[1].length,L=E[2].length,T=E[3].length,E):(O+L+T!=E[1].length+E[2].length+E[3].length&&(M=!1),O!=E[1].length&&(b=!1),O>E[1].length&&(O=E[1].length),LE[3].length&&(T=E[3].length),E):[A]}).map(S?x:b?M?C:x:w);function k(A){return o.stringRepeat(" ",A)}function x(A){return A[2]?k(O)+A[2]+k(L-A[2].length+T)+A[4].replace(/^([=:])\s+/,"$1 "):A[0]}function C(A){return A[2]?k(O+L-A[2].length)+A[2]+k(T)+A[4].replace(/^([=:])\s+/,"$1 "):A[0]}function w(A){return A[2]?k(O)+A[2]+k(T)+A[4].replace(/^([=:])\s+/,"$1 "):A[0]}}}).call(m.prototype);function v(_,S){return _.row==S.row&&_.column==S.column}i.onSessionChange=function(_){var S=_.session;S&&!S.multiSelect&&(S.$selectionMarkers=[],S.selection.$initRangeList(),S.multiSelect=S.selection),this.multiSelect=S&&S.multiSelect;var b=_.oldSession;b&&(b.multiSelect.off("addRange",this.$onAddRange),b.multiSelect.off("removeRange",this.$onRemoveRange),b.multiSelect.off("multiSelect",this.$onMultiSelect),b.multiSelect.off("singleSelect",this.$onSingleSelect),b.multiSelect.lead.off("change",this.$checkMultiselectChange),b.multiSelect.anchor.off("change",this.$checkMultiselectChange)),S&&(S.multiSelect.on("addRange",this.$onAddRange),S.multiSelect.on("removeRange",this.$onRemoveRange),S.multiSelect.on("multiSelect",this.$onMultiSelect),S.multiSelect.on("singleSelect",this.$onSingleSelect),S.multiSelect.lead.on("change",this.$checkMultiselectChange),S.multiSelect.anchor.on("change",this.$checkMultiselectChange)),S&&this.inMultiSelectMode!=S.selection.inMultiSelectMode&&(S.selection.inMultiSelectMode?this.$onMultiSelect():this.$onSingleSelect())};function y(_){_.$multiselectOnSessionChange||(_.$onAddRange=_.$onAddRange.bind(_),_.$onRemoveRange=_.$onRemoveRange.bind(_),_.$onMultiSelect=_.$onMultiSelect.bind(_),_.$onSingleSelect=_.$onSingleSelect.bind(_),_.$multiselectOnSessionChange=i.onSessionChange.bind(_),_.$checkMultiselectChange=_.$checkMultiselectChange.bind(_),_.$multiselectOnSessionChange(_),_.on("changeSession",_.$multiselectOnSessionChange),_.on("mousedown",l),_.commands.addCommands(r.defaultCommands),$(_))}function $(_){if(!_.textInput)return;var S=_.textInput.getElement(),b=!1;p.addListener(S,"keydown",function(O){var L=O.keyCode==18&&!(O.ctrlKey||O.shiftKey||O.metaKey);_.$blockSelectEnabled&&L?b||(_.renderer.setMouseCursor("crosshair"),b=!0):b&&M()},_),p.addListener(S,"keyup",M,_),p.addListener(S,"blur",M,_);function M(O){b&&(_.renderer.setMouseCursor(""),b=!1)}}i.MultiSelect=y,n("./config").defineOptions(m.prototype,"editor",{enableMultiselect:{set:function(_){y(this),_?this.on("mousedown",l):this.off("mousedown",l)},value:!0},enableBlockSelect:{set:function(_){this.$blockSelectEnabled=_},value:!0}})}),ace.define("ace/mode/folding/fold_mode",["require","exports","module","ace/range"],function(n,i,s){var a=n("../../range").Range,d=i.FoldMode=function(){};(function(){this.foldingStartMarker=null,this.foldingStopMarker=null,this.getFoldWidget=function(g,l,p){var o=g.getLine(p);return this.foldingStartMarker.test(o)?"start":l=="markbeginend"&&this.foldingStopMarker&&this.foldingStopMarker.test(o)?"end":""},this.getFoldWidgetRange=function(g,l,p){return null},this.indentationBlock=function(g,l,p){var o=/\S/,r=g.getLine(l),c=r.search(o);if(c!=-1){for(var u=p||r.length,h=g.getLength(),f=l,m=l;++lf){var $=g.getLine(m).length;return new a(f,u,m,$)}}},this.openingBracketBlock=function(g,l,p,o,r){var c={row:p,column:o+1},u=g.$findClosingBracket(l,c,r);if(u){var h=g.foldWidgets[u.row];return h==null&&(h=g.getFoldWidget(u.row)),h=="start"&&u.row>c.row&&(u.row--,u.column=g.getLine(u.row).length),a.fromPoints(c,u)}},this.closingBracketBlock=function(g,l,p,o,r){var c={row:p,column:o},u=g.$findOpeningBracket(l,c);if(u)return u.column++,c.column--,a.fromPoints(u,c)}}).call(d.prototype)}),ace.define("ace/ext/error_marker",["require","exports","module","ace/line_widgets","ace/lib/dom","ace/range","ace/config"],function(n,i,s){var a=n("../line_widgets").LineWidgets,d=n("../lib/dom"),g=n("../range").Range,l=n("../config").nls;function p(r,c,u){for(var h=0,f=r.length-1;h<=f;){var m=h+f>>1,v=u(c,r[m]);if(v>0)h=m+1;else if(v<0)f=m-1;else return m}return-(h+1)}function o(r,c,u){var h=r.getAnnotations().sort(g.comparePoints);if(h.length){var f=p(h,{row:c,column:-1},g.comparePoints);f<0&&(f=-f-1),f>=h.length?f=u>0?0:h.length-1:f===0&&u<0&&(f=h.length-1);var m=h[f];if(!(!m||!u)){if(m.row===c){do m=h[f+=u];while(m&&m.row===c);if(!m)return h.slice()}var v=[];c=m.row;do v[u<0?"unshift":"push"](m),m=h[f+=u];while(m&&m.row==c);return v.length&&v}}}i.showErrorMarker=function(r,c){var u=r.session;u.widgetManager||(u.widgetManager=new a(u),u.widgetManager.attach(r));var h=r.getCursorPosition(),f=h.row,m=u.widgetManager.getWidgetsAtRow(f).filter(function(L){return L.type=="errorMarker"})[0];m?m.destroy():f-=c;var v=o(u,f,c),y;if(v){var $=v[0];h.column=($.pos&&typeof $.column!="number"?$.pos.sc:$.column)||0,h.row=$.row,y=r.renderer.$gutterLayer.$annotations[h.row]}else{if(m)return;y={displayText:[l("error-marker.good-state","Looks good!")],className:"ace_ok"}}r.session.unfold(h.row),r.selection.moveToPosition(h);var _={row:h.row,fixedWidth:!0,coverGutter:!0,el:d.createElement("div"),type:"errorMarker"},S=_.el.appendChild(d.createElement("div")),b=_.el.appendChild(d.createElement("div"));b.className="error_widget_arrow "+y.className;var M=r.renderer.$cursorLayer.getPixelPosition(h).left;b.style.left=M+r.renderer.gutterWidth-5+"px",_.el.className="error_widget_wrapper",S.className="error_widget "+y.className,y.displayText.forEach(function(L,T){S.appendChild(d.createTextNode(L)),T0},e.prototype.connect_=function(){!Va||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),s2?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){!Va||!this.connected_||(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(t){var n=t.propertyName,i=n===void 0?"":n,s=r2.some(function(a){return!!~i.indexOf(a)});s&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),wp=function(e,t){for(var n=0,i=Object.keys(t);n"u"||!(Element instanceof Object))){if(!(t instanceof Pi(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(t)||(n.set(t,new p2(t)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(t instanceof Pi(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(t)&&(n.delete(t),n.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var t=this;this.clearActive(),this.observations_.forEach(function(n){n.isActive()&&t.activeObservations_.push(n)})},e.prototype.broadcastActive=function(){if(this.hasActive()){var t=this.callbackCtx_,n=this.activeObservations_.map(function(i){return new g2(i.target,i.broadcastRect())});this.callback_.call(t,n,t),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),Sp=typeof WeakMap<"u"?new WeakMap:new bp,xp=function(){function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=o2.getInstance(),i=new m2(t,n,this);Sp.set(this,i)}return e}();["observe","unobserve","disconnect"].forEach(function(e){xp.prototype[e]=function(){var t;return(t=Sp.get(this))[e].apply(t,arguments)}});var v2=function(){return typeof Fs.ResizeObserver<"u"?Fs.ResizeObserver:xp}();const ju=["blur","input","change","changeSelectionStyle","changeSession","copy","focus","paste"],Cp=Ce({name:"VAceEditor",props:{value:{type:String,required:!0},lang:{type:String,default:"text"},theme:{type:String,default:"chrome"},options:Object,placeholder:String,readonly:Boolean,wrap:Boolean,printMargin:{type:[Boolean,Number],default:!0},minLines:Number,maxLines:Number},emits:["update:value","init",...ju],render(){return to("div")},mounted(){const e=this._editor=Gh(Ul.edit(this.$el,{placeholder:this.placeholder,readOnly:this.readonly,value:this.value,mode:"ace/mode/"+this.lang,theme:"ace/theme/"+this.theme,wrap:this.wrap,printMargin:this.printMargin,useWorker:!1,minLines:this.minLines,maxLines:this.maxLines,...this.options}));this._contentBackup=this.value,this._isSettingContent=!1,e.on("change",()=>{if(this._isSettingContent)return;const t=e.getValue();this._contentBackup=t,this.$emit("update:value",t)}),ju.forEach(t=>{const n="on"+Wr(t);typeof this.$.vnode.props[n]=="function"&&e.on(t,this.$emit.bind(this,t))}),this._ro=new v2(()=>e.resize()),this._ro.observe(this.$el),this.$emit("init",e)},beforeUnmount(){var e,t;(e=this._ro)===null||e===void 0||e.disconnect(),(t=this._editor)===null||t===void 0||t.destroy()},methods:{focus(){this._editor.focus()},blur(){this._editor.blur()},selectAll(){this._editor.selectAll()},getAceInstance(){return this._editor}},watch:{value(e){if(this._contentBackup!==e){try{this._isSettingContent=!0,this._editor.setValue(e,1)}finally{this._isSettingContent=!1}this._contentBackup=e}},theme(e){this._editor.setTheme("ace/theme/"+e)},options(e){this._editor.setOptions(e)},readonly(e){this._editor.setReadOnly(e)},placeholder(e){this._editor.setOption("placeholder",e)},wrap(e){this._editor.setWrapBehavioursEnabled(e)},printMargin(e){this._editor.setOption("printMargin",e)},lang(e){this._editor.setOption("mode","ace/mode/"+e)},minLines(e){this._editor.setOption("minLines",e)},maxLines(e){this._editor.setOption("maxLines",e)}}}),y2={class:"block"},$p=Ce({__name:"InputForm",props:{yaml:{type:String,required:!0}},emits:["update-yaml"],setup(e,{emit:t}){const n=e,i=t,s=pl(n,"yaml");return _l(()=>{i("update-yaml",s.value)}),(a,d)=>(Y(),ie("div",y2,[se(ce(Cp),{class:"vue-ace-editor",value:s.value,"onUpdate:value":d[0]||(d[0]=g=>s.value=g),lang:"yaml",theme:"monokai",options:{fontSize:16,minLines:6,maxLines:1e4}},null,8,["value"])]))}}),b2={class:"block"},w2={class:"is-size-2 block"},_2={class:"field is-grouped is-grouped-centered"},S2={class:"control"},x2={class:"icon is-small"},C2={key:0,class:"block"},$2=Ce({__name:"EditRule",props:{rule:{type:Object,required:!0}},setup(e){const t=e,n=zi(),i=pl(t.rule.yaml),s=yS(),a=g=>{i.value=g},d=async()=>{const g=await s.perform({yaml:i.value});n.push({name:"Rule",params:{id:g.id}})};return(g,l)=>{var o,r;const p=Xe("font-awesome-icon");return Y(),ie(Pe,null,[D("div",b2,[D("h2",w2,"Edit rule: "+Se(e.rule.id),1),se($p,{yaml:i.value,"onUpdate:yaml":l[0]||(l[0]=c=>i.value=c),onUpdateYaml:a},null,8,["yaml"]),D("div",_2,[D("p",S2,[D("a",{class:"button is-primary",onClick:d},[D("span",x2,[se(p,{icon:"edit"})]),l[1]||(l[1]=D("span",null,"Edit",-1))])])])]),(o=ce(s).last)!=null&&o.error?(Y(),ie("div",C2,[l[2]||(l[2]=D("hr",null,null,-1)),se(mt,{error:(r=ce(s).last)==null?void 0:r.error},null,8,["error"])])):ge("",!0)],64)}}}),A2=Ce({__name:"EditRuleWrapper",props:{id:{type:String,required:!0}},setup(e){const t=e,n=Kf(),i=async()=>{await n.perform(t.id)};return ct(async()=>{await i()}),Je(t,async()=>{await i()}),(s,a)=>{var d,g;return Y(),ie(Pe,null,[ce(n).isRunning?(Y(),xe($n,{key:0})):ge("",!0),ce(n).isError?(Y(),xe(mt,{key:1,error:(d=ce(n).last)==null?void 0:d.error},null,8,["error"])):ge("",!0),(g=ce(n).last)!=null&&g.value?(Y(),xe($2,{key:2,rule:ce(n).last.value},null,8,["rule"])):ge("",!0)],64)}}}),k2=Ce({__name:"EditRule",props:{id:{type:String,required:!0}},setup(e){const t=e,n=()=>{Cn(`Edit rule:${t.id} - Mihari`)};return ct(()=>{n()}),Je(()=>t.id,()=>{n()}),(i,s)=>(Y(),xe(A2,{id:e.id},null,8,["id"]))}});function M2(e){for(var t=[],n=1;n1&&arguments[1]!==void 0?arguments[1]:0,n=(ft[e[t+0]]+ft[e[t+1]]+ft[e[t+2]]+ft[e[t+3]]+"-"+ft[e[t+4]]+ft[e[t+5]]+"-"+ft[e[t+6]]+ft[e[t+7]]+"-"+ft[e[t+8]]+ft[e[t+9]]+"-"+ft[e[t+10]]+ft[e[t+11]]+ft[e[t+12]]+ft[e[t+13]]+ft[e[t+14]]+ft[e[t+15]]).toLowerCase();if(!R2(n))throw TypeError("Stringified UUID is invalid");return n}function I2(e,t,n){e=e||{};var i=e.random||(e.rng||T2)();return i[6]=i[6]&15|64,i[8]=i[8]&63|128,O2(i)}function N2(){const e=I2(),t=bo();return M2`--- id: ${e} title: Title goes here description: Description goes here created_on: ${t.format("YYYY-MM-DD")} queries: []`}const D2={class:"block"},F2={class:"field is-grouped is-grouped-centered"},P2={class:"control"},W2={class:"icon is-small"},B2={key:0,class:"block"},z2=Ce({__name:"NewRule",setup(e){const t=zi(),n=He(N2()),i=vS(),s=d=>{n.value=d},a=async()=>{const d=await i.perform({yaml:n.value});t.push({name:"Rule",params:{id:d.id}})};return(d,g)=>{var p,o;const l=Xe("font-awesome-icon");return Y(),ie(Pe,null,[D("div",D2,[g[2]||(g[2]=D("h2",{class:"is-size-2 block"},"New rule",-1)),se($p,{yaml:n.value,"onUpdate:yaml":g[0]||(g[0]=r=>n.value=r),onUpdateYaml:s},null,8,["yaml"]),D("div",F2,[D("p",P2,[D("a",{class:"button is-primary",onClick:a},[D("span",W2,[se(l,{icon:"plus"})]),g[1]||(g[1]=D("span",null,"Create",-1))])])])]),(p=ce(i).last)!=null&&p.error?(Y(),ie("div",B2,[g[3]||(g[3]=D("hr",null,null,-1)),se(mt,{error:(o=ce(i).last)==null?void 0:o.error},null,8,["error"])])):ge("",!0)],64)}}}),j2=Ce({__name:"NewRule",setup(e){const t=()=>{Cn("New rule - Mihari")};return ct(()=>{t()}),(n,i)=>(Y(),xe(z2))}}),H2={class:"buttons is-pulled-right"},U2=["href"],V2={class:"icon is-small"},G2={class:"icon is-small"},Y2={class:"icon is-small"},K2={class:"icon is-small"},Ap=Ce({__name:"ActionButtons",props:{rule:{type:Object,required:!0}},emits:["delete","set-error","set-message"],setup(e,{emit:t}){const n=e,i=t,s=ke(()=>`/api/rules/${n.rule.id}`),a=ke(()=>`rule.id:"${n.rule.id}"`),d=gS(),g=mS(),l=go(),p=Wl(),o=async()=>{if(window.confirm(`Are you sure you want to delete ${n.rule.id}?`))try{await d.perform(n.rule.id),i("delete")}catch(u){tt.isAxiosError(u)&&i("set-error",u)}},r=async()=>{try{const c=await g.perform(n.rule.id);i("set-message",c)}catch(c){tt.isAxiosError(c)&&i("set-error",c)}};return ct(()=>{l.perform({q:a.value,page:1,limit:0}),p.perform({q:a.value,page:1,limit:0})}),(c,u)=>{const h=Xe("router-link"),f=Xe("font-awesome-icon");return Y(),ie("span",H2,[se(h,{class:"button is-warning is-small is-rounded",to:{name:"Alerts",query:{q:a.value}}},{default:nt(()=>{var m,v;return[u[0]||(u[0]=D("span",null,"Alerts:",-1)),D("span",null,Se((v=(m=ce(l).last)==null?void 0:m.value)==null?void 0:v.total),1)]}),_:1},8,["to"]),se(h,{class:"button is-success is-small is-rounded",to:{name:"Artifacts",query:{q:a.value}}},{default:nt(()=>{var m,v;return[u[1]||(u[1]=D("span",null,"Artifacts:",-1)),D("span",null,Se((v=(m=ce(p).last)==null?void 0:m.value)==null?void 0:v.total),1)]}),_:1},8,["to"]),D("a",{class:"button is-link is-light is-small",href:s.value,target:"_blank"},[u[2]||(u[2]=D("span",null,"JSON",-1)),D("span",V2,[se(f,{icon:"barcode"})])],8,U2),D("button",{class:"button is-primary is-light is-small",onClick:r},[u[3]||(u[3]=D("span",null,"Search",-1)),D("span",G2,[ce(g).isRunning?(Y(),xe(f,{key:0,icon:"spinner",spin:""})):(Y(),xe(f,{key:1,icon:"magnifying-glass"}))])]),se(h,{class:"button is-info is-light is-small",to:{name:"EditRule",params:{id:e.rule.id}}},{default:nt(()=>[u[4]||(u[4]=D("span",null,"Edit",-1)),D("span",Y2,[se(f,{icon:"edit"})])]),_:1},8,["to"]),D("button",{class:"button is-light is-small",onClick:o},[u[5]||(u[5]=D("span",null,"Delete",-1)),D("span",K2,[se(f,{icon:"times"})])])])}}}),Z2={class:"box"},X2={class:"block"},Q2={class:"table is-fullwidth is-completely-borderless"},q2={key:0},J2={class:"help"},ek=Ce({__name:"RuleItem",props:{rule:{type:Object,required:!0}},emits:["delete"],setup(e,{emit:t}){const n=t,i=He(),s=He(),a=o=>{i.value=o},d=()=>{i.value=void 0},g=o=>{s.value=o},l=()=>{s.value=void 0},p=()=>{n("delete")};return(o,r)=>{const c=Xe("router-link");return Y(),ie("div",Z2,[i.value?(Y(),xe(mt,{key:0,class:"block",error:i.value,disposable:!0,onDispose:d},null,8,["error"])):ge("",!0),s.value?(Y(),xe(mo,{key:1,class:"block",message:s.value,disposable:!0,onDispose:l},null,8,["message"])):ge("",!0),D("div",X2,[D("p",null,[se(Ap,{rule:e.rule,onSetError:a,onDelete:p,onSetMessage:g},null,8,["rule"])]),se(c,{class:"is-size-4",to:{name:"Rule",params:{id:e.rule.id}}},{default:nt(()=>[it(Se(e.rule.id),1)]),_:1},8,["to"])]),D("table",Q2,[D("tr",null,[r[0]||(r[0]=D("th",null,"Title",-1)),D("td",null,Se(e.rule.title),1)]),D("tr",null,[r[1]||(r[1]=D("th",null,"Description",-1)),D("td",null,Se(e.rule.description),1)]),e.rule.tags.length>0?(Y(),ie("tr",q2,[r[2]||(r[2]=D("th",null,"Tags",-1)),D("td",null,[se(Xr,{tags:e.rule.tags,"navigate-to":"Rules"},null,8,["tags"])])])):ge("",!0)]),r[3]||(r[3]=D("p",{class:"block is-clearfix"},null,-1)),D("p",J2,"Created at: "+Se(e.rule.createdAt),1)])}}}),tk={key:0,class:"block"},nk={class:"help"},ik={key:1,class:"block"},rk=Ce({__name:"RulesItem",props:{rules:{type:Object,required:!0}},emits:["refresh","update-page"],setup(e,{emit:t}){const n=e,i=t,s=g=>{i("update-page",g)},a=()=>{i("refresh")},d=ke(()=>n.rules.results.length>0);return(g,l)=>d.value?(Y(),ie("div",tk,[(Y(!0),ie(Pe,null,Pt(e.rules.results,p=>(Y(),xe(ek,{rule:p,key:p.id,onRefresh:a,onDelete:a},null,8,["rule"]))),128)),se(Bl,{currentPage:e.rules.currentPage,total:e.rules.total,pageSize:e.rules.pageSize,onUpdatePage:s},null,8,["currentPage","total","pageSize"]),D("p",nk,"("+Se(e.rules.total)+" results in total, "+Se(e.rules.results.length)+" shown)",1)])):(Y(),ie("div",ik,l[0]||(l[0]=[D("div",{class:"notification is-warning is-light"},"There is no alert to show",-1)])))}}),sk={class:"block"},ok={class:"field has-addons"},ak={class:"control is-expanded"},lk={class:"control"},ck={class:"icon is-small"},uk={class:"control"},hk={class:"icon is-small"},dk={key:0,class:"content mt-3"},fk={key:0,class:"block"},pk=Ce({__name:"RulesWrapper",setup(e){const t=Ii("page","1"),n=Ii("q",""),i=He(!1),s=Yf(),a=async()=>{const o={q:n.value,page:parseInt(t.value)};return await s.perform(o)},d=o=>{t.value=o.toString()},g=async()=>{t.value="1",await a()},l=g,p=Ur(i);return ct(async()=>{await a()}),Je(t,async()=>{await a()}),Je(n,async()=>{window.scrollTo({top:0,behavior:"smooth"})}),(o,r)=>{var h,f;const c=Xe("font-awesome-icon"),u=Xe("router-link");return Y(),ie(Pe,null,[D("div",sk,[D("div",ok,[D("p",ak,[ml(D("input",{class:"input",type:"text","onUpdate:modelValue":r[0]||(r[0]=m=>lt(n)?n.value=m:null)},null,512),[[Al,ce(n)]])]),D("p",lk,[D("a",{class:"button is-primary",onClick:g},[D("span",ck,[se(c,{icon:"search"})]),r[2]||(r[2]=D("span",null,"Search",-1))])]),D("p",uk,[D("a",{class:"button is-info",onClick:r[1]||(r[1]=m=>ce(p)())},[D("span",hk,[se(c,{icon:"question"})]),r[3]||(r[3]=D("span",null,"Help",-1))])])]),i.value?(Y(),ie("div",dk,[r[5]||(r[5]=xl('

Help

  • Search query supports AND, OR, :, =, !=, <, <=, >, >=, NOT and ().
  • Searchable fields are id, title, description, tag, created_at and updated_at.

Examples

',3)),D("ul",null,[D("li",null,[se(u,{to:{name:"Rules",query:{q:"title:foo AND created_at >= 2020-01-01"}}},{default:nt(()=>r[4]||(r[4]=[it("title:foo AND created_at >= 2020-01-01")])),_:1})])])])):ge("",!0)]),ce(s).performCount>0?(Y(),ie("div",fk,[ce(s).isRunning?(Y(),xe($n,{key:0})):ge("",!0),ce(s).isError?(Y(),xe(mt,{key:1,error:(h=ce(s).last)==null?void 0:h.error},null,8,["error"])):ge("",!0),(f=ce(s).last)!=null&&f.value?(Y(),xe(rk,{key:2,rules:ce(s).last.value,onUpdatePage:d,onRefresh:ce(l)},null,8,["rules","onRefresh"])):ge("",!0)])):ge("",!0)],64)}}}),gk=Ce({__name:"RulesView",setup(e){return Cn("Rules - Mihari"),(t,n)=>(Y(),xe(pk))}}),mk={class:"block"},vk=Ce({__name:"YamlItem",props:{yaml:{type:String,required:!0}},setup(e){return(t,n)=>(Y(),ie("div",mk,[se(ce(Cp),{class:"vue-ace-editor",value:e.yaml,lang:"yaml",theme:"monokai",options:{readOnly:!0,fontSize:16,maxLines:1e4,minLines:6}},null,8,["value"])]))}}),yk={class:"block"},bk={class:"is-size-2 block"},wk={class:"block is-clearfix"},_k={class:"block"},Sk=Ce({__name:"RuleDetail",props:{rule:{type:Object,required:!0}},emits:["delete","refresh"],setup(e,{emit:t}){const n=t,i=He(),s=He(),a=()=>{n("delete")},d=o=>{i.value=o},g=()=>{i.value=void 0},l=o=>{o.queued?s.value=o:n("refresh")},p=()=>{s.value=void 0};return(o,r)=>(Y(),ie(Pe,null,[D("div",yk,[D("h2",bk,Se(e.rule.id),1),i.value?(Y(),xe(mt,{key:0,class:"mt-3 mb-3",error:i.value,disposable:!0,onDispose:g},null,8,["error"])):ge("",!0),s.value?(Y(),xe(mo,{key:1,class:"block",message:s.value,disposable:!0,onDispose:p},null,8,["message"])):ge("",!0),D("p",wk,[se(Ap,{rule:e.rule,onSetMessage:l,onDelete:a,onSetError:d},null,8,["rule"])]),se(vk,{yaml:e.rule.yaml},null,8,["yaml"])]),r[1]||(r[1]=D("hr",null,null,-1)),D("div",_k,[r[0]||(r[0]=D("h2",{class:"is-size-2 block"},"Alerts",-1)),se(ip,{ruleId:e.rule.id},null,8,["ruleId"])])],64))}}),xk=Ce({__name:"RuleDetailWrapper",props:{id:{type:String,required:!0}},setup(e){const t=e,n=Kf(),i=zi(),s=async()=>{await n.perform(t.id)},a=async()=>{await s()},d=()=>{i.push("/")};return ct(async()=>{await s()}),Je(t,async()=>{await s()}),(g,l)=>{var p,o;return Y(),ie(Pe,null,[ce(n).isRunning?(Y(),xe($n,{key:0})):ge("",!0),ce(n).isError?(Y(),xe(mt,{key:1,error:(p=ce(n).last)==null?void 0:p.error},null,8,["error"])):ge("",!0),(o=ce(n).last)!=null&&o.value?(Y(),xe(Sk,{key:2,rule:ce(n).last.value,onRefresh:a,onDelete:d},null,8,["rule"])):ge("",!0)],64)}}}),Ck=Ce({__name:"RuleView",props:{id:{type:String,required:!0}},setup(e){const t=e,n=()=>{Cn(`Rule:${t.id} - Mihari`)};return ct(()=>{n()}),Je(()=>t.id,()=>{n()}),(i,s)=>(Y(),xe(xk,{id:e.id},null,8,["id"]))}}),$k=[{path:"/",name:"Alerts",component:Vx},{path:"/alerts/:id",name:"Alert",component:tC,props:!0},{path:"/config",name:"Config",component:XA},{path:"/artifacts/",name:"Artifacts",component:NC},{path:"/artifacts/:id",name:"Artifact",component:FA,props:!0},{path:"/rules",name:"Rules",component:gk},{path:"/rules/new",name:"NewRule",component:j2},{path:"/rules/:id",name:"Rule",component:Ck,props:!0},{path:"/rules/:id/edit",name:"EditRule",component:k2,props:!0}],Ak=Vb({history:_b(),routes:$k});gm.add(_m,Fm,Im,bm,Dm,xm,vm,Em,Mm,Rm,Lm,wm,wh,km,Am,Cm,Nm,Om,$m);const kp=e0(H0);kp.component("font-awesome-icon",p0);kp.use(Ak).mount("#app");